Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(taiko-client): remove basefeeSharingPctg from metadata #17890

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/taiko-client/bindings/.githead
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bcb57cb81d12d0c09656582ad9140b38015b3a58
5f3cbc97cbe2636314c4a2945fdf01ef641702e7
4 changes: 0 additions & 4 deletions packages/taiko-client/bindings/encoding/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ var (
Name: "basefeeAdjustmentQuotient",
Type: "uint8",
},
{
Name: "basefeeSharingPctg",
Type: "uint8",
},
{
Name: "gasIssuancePerSecond",
Type: "uint32",
Expand Down
14 changes: 7 additions & 7 deletions packages/taiko-client/bindings/gen_guardian_prover.go

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions packages/taiko-client/bindings/gen_lib_proposing.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 13 additions & 14 deletions packages/taiko-client/bindings/gen_taiko_l1.go

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion packages/taiko-client/bindings/metadata/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ type TaikoBlockMetaData interface {
GetBlobTxListLength() uint32
GetBlobIndex() uint8
GetBasefeeAdjustmentQuotient() uint8
GetBasefeeSharingPctg() uint8
GetGasIssuancePerSecond() uint32
GetRawBlockHeight() *big.Int
GetRawBlockHash() common.Hash
Expand Down
5 changes: 0 additions & 5 deletions packages/taiko-client/bindings/metadata/metadata_legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@ func (m *TaikoDataBlockMetadataLegacy) GetBasefeeAdjustmentQuotient() uint8 {
return 0
}

// GetBasefeeSharingPctg returns the L2 block basefee sharing percentage.
func (m *TaikoDataBlockMetadataLegacy) GetBasefeeSharingPctg() uint8 {
return 0
}

// GetGasIssuancePerSecond returns the L2 block gas issuance per second.
func (m *TaikoDataBlockMetadataLegacy) GetGasIssuancePerSecond() uint32 {
return 0
Expand Down
5 changes: 0 additions & 5 deletions packages/taiko-client/bindings/metadata/metadata_ontake.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,6 @@ func (m *TaikoDataBlockMetadataOntake) GetBasefeeAdjustmentQuotient() uint8 {
return m.BasefeeAdjustmentQuotient
}

// GetBasefeeSharingPctg returns the L2 block basefee sharing percentage.
func (m *TaikoDataBlockMetadataOntake) GetBasefeeSharingPctg() uint8 {
return m.BasefeeSharingPctg
}

// GetGasIssuancePerSecond returns the L2 block gas issuance per second.
func (m *TaikoDataBlockMetadataOntake) GetGasIssuancePerSecond() uint32 {
return m.GasIssuancePerSecond
Expand Down
14 changes: 6 additions & 8 deletions packages/taiko-client/driver/chain_syncer/blob/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,13 +466,12 @@ func (s *Syncer) createExecutionPayloads(
SuggestedFeeRecipient: meta.GetCoinbase(),
Withdrawals: withdrawals,
BlockMetadata: &engine.BlockMetadata{
Beneficiary: meta.GetCoinbase(),
GasLimit: uint64(meta.GetGasLimit()) + consensus.AnchorGasLimit,
Timestamp: meta.GetTimestamp(),
TxList: txListBytes,
MixHash: meta.GetDifficulty(),
ExtraData: meta.GetExtraData(),
BasefeeSharingPctg: meta.GetBasefeeSharingPctg(),
Beneficiary: meta.GetCoinbase(),
GasLimit: uint64(meta.GetGasLimit()) + consensus.AnchorGasLimit,
Timestamp: meta.GetTimestamp(),
TxList: txListBytes,
MixHash: meta.GetDifficulty(),
ExtraData: meta.GetExtraData(),
},
BaseFeePerGas: baseFee,
L1Origin: l1Origin,
Expand All @@ -485,7 +484,6 @@ func (s *Syncer) createExecutionPayloads(
"random", attributes.Random,
"suggestedFeeRecipient", attributes.SuggestedFeeRecipient,
"withdrawals", len(attributes.Withdrawals),
"basefeeSharingPctg", attributes.BlockMetadata.BasefeeSharingPctg,
"gasLimit", attributes.BlockMetadata.GasLimit,
"timestamp", attributes.BlockMetadata.Timestamp,
"mixHash", attributes.BlockMetadata.MixHash,
Expand Down
Loading