Skip to content

Commit

Permalink
feat(taiko-client): changes based on the latest basefee improvements (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Aug 15, 2024
1 parent 8f31dd0 commit 0c10ac9
Show file tree
Hide file tree
Showing 17 changed files with 205 additions and 184 deletions.
2 changes: 1 addition & 1 deletion packages/taiko-client/bindings/.githead
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ba21f6836845ea0227116b701e701815f210d56d
920bd6873d3e9e1bbb00751fb9c0056ac85b8554
30 changes: 24 additions & 6 deletions packages/taiko-client/bindings/encoding/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,30 @@ var (
Type: "uint8",
},
{
Name: "basefeeAdjustmentQuotient",
Type: "uint8",
},
{
Name: "gasIssuancePerSecond",
Type: "uint32",
Name: "baseFeeConfig",
Type: "tuple",
Components: []abi.ArgumentMarshaling{
{
Name: "adjustmentQuotient",
Type: "uint8",
},
{
Name: "sharingPctg",
Type: "uint8",
},
{
Name: "gasIssuancePerSecond",
Type: "uint32",
},
{
Name: "minGasExcess",
Type: "uint64",
},
{
Name: "maxGasIssuancePerBlock",
Type: "uint32",
},
},
},
}
transitionComponents = []abi.ArgumentMarshaling{
Expand Down
81 changes: 45 additions & 36 deletions packages/taiko-client/bindings/encoding/protocol_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,55 @@ import (
var (
livenessBond, _ = new(big.Int).SetString("125000000000000000000", 10)
InternlDevnetProtocolConfig = &bindings.TaikoDataConfig{
ChainId: params.TaikoInternalL2ANetworkID.Uint64(),
BlockMaxProposals: 324_000,
BlockRingBufferSize: 360_000,
MaxBlocksToVerify: 16,
BlockMaxGasLimit: 240_000_000,
LivenessBond: livenessBond,
StateRootSyncInternal: 16,
MaxAnchorHeightOffset: 64,
BasefeeAdjustmentQuotient: 8,
BasefeeSharingPctg: 75,
GasIssuancePerSecond: 5_000_000,
OntakeForkHeight: 374_400,
ChainId: params.TaikoInternalL2ANetworkID.Uint64(),
BlockMaxProposals: 324_000,
BlockRingBufferSize: 360_000,
MaxBlocksToVerify: 16,
BlockMaxGasLimit: 240_000_000,
LivenessBond: livenessBond,
StateRootSyncInternal: 16,
MaxAnchorHeightOffset: 64,
OntakeForkHeight: 2,
BaseFeeConfig: bindings.TaikoDataBaseFeeConfig{
AdjustmentQuotient: 8,
GasIssuancePerSecond: 5_000_000,
MinGasExcess: 1_340_000_000,
MaxGasIssuancePerBlock: 600_000_000,
},
}
HeklaProtocolConfig = &bindings.TaikoDataConfig{
ChainId: params.HeklaNetworkID.Uint64(),
BlockMaxProposals: 324_000,
BlockRingBufferSize: 324_512,
MaxBlocksToVerify: 16,
BlockMaxGasLimit: 240_000_000,
LivenessBond: livenessBond,
StateRootSyncInternal: 16,
MaxAnchorHeightOffset: 64,
BasefeeAdjustmentQuotient: 8,
BasefeeSharingPctg: 75,
GasIssuancePerSecond: 5_000_000,
OntakeForkHeight: 540_000,
ChainId: params.HeklaNetworkID.Uint64(),
BlockMaxProposals: 324_000,
BlockRingBufferSize: 324_512,
MaxBlocksToVerify: 16,
BlockMaxGasLimit: 240_000_000,
LivenessBond: livenessBond,
StateRootSyncInternal: 16,
MaxAnchorHeightOffset: 64,
OntakeForkHeight: 540_000,
BaseFeeConfig: bindings.TaikoDataBaseFeeConfig{
AdjustmentQuotient: 8,
GasIssuancePerSecond: 5_000_000,
MinGasExcess: 1_340_000_000,
MaxGasIssuancePerBlock: 600_000_000,
},
}
MainnetProtocolConfig = &bindings.TaikoDataConfig{
ChainId: params.TaikoMainnetNetworkID.Uint64(),
BlockMaxProposals: 324_000,
BlockRingBufferSize: 360_000,
MaxBlocksToVerify: 16,
BlockMaxGasLimit: 240_000_000,
LivenessBond: livenessBond,
StateRootSyncInternal: 16,
MaxAnchorHeightOffset: 64,
BasefeeAdjustmentQuotient: 8,
BasefeeSharingPctg: 75,
GasIssuancePerSecond: 5_000_000,
OntakeForkHeight: 374_400,
ChainId: params.TaikoMainnetNetworkID.Uint64(),
BlockMaxProposals: 324_000,
BlockRingBufferSize: 360_000,
MaxBlocksToVerify: 16,
BlockMaxGasLimit: 240_000_000,
LivenessBond: livenessBond,
StateRootSyncInternal: 16,
MaxAnchorHeightOffset: 64,
OntakeForkHeight: 374_400,
BaseFeeConfig: bindings.TaikoDataBaseFeeConfig{
AdjustmentQuotient: 8,
GasIssuancePerSecond: 5_000_000,
MinGasExcess: 1_340_000_000,
MaxGasIssuancePerBlock: 600_000_000,
},
}
)

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.

Loading

0 comments on commit 0c10ac9

Please sign in to comment.