Skip to content

Commit

Permalink
feat(taiko-client): move numTransactions and timestamp to blobs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Feb 28, 2025
1 parent 6afec95 commit e5c0bfb
Show file tree
Hide file tree
Showing 19 changed files with 192 additions and 173 deletions.
12 changes: 0 additions & 12 deletions packages/taiko-client/bindings/encoding/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,6 @@ var (
Name: "anchorBlockId",
Type: "uint64",
},
{
Name: "lastBlockTimestamp",
Type: "uint64",
},
{
Name: "revertIfNotFirstProposal",
Type: "bool",
Expand Down Expand Up @@ -240,14 +236,6 @@ var (
Name: "blocks",
Type: "tuple[]",
Components: []abi.ArgumentMarshaling{
{
Name: "numTransactions",
Type: "uint16",
},
{
Name: "timeShift",
Type: "uint8",
},
{
Name: "signalSlots",
Type: "bytes32[]",
Expand Down
1 change: 0 additions & 1 deletion packages/taiko-client/bindings/encoding/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ type BatchParams struct {
Coinbase common.Address
ParentMetaHash [32]byte
AnchorBlockId uint64
LastBlockTimestamp uint64
RevertIfNotFirstProposal bool
BlobParams BlobParams
Blocks []pacayaBindings.ITaikoInboxBlockParams
Expand Down
3 changes: 1 addition & 2 deletions packages/taiko-client/bindings/metadata/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ type TaikoBatchMetaDataPacaya interface {
GetCoinbase() common.Address
GetBatchID() *big.Int
GetGasLimit() uint32
GetLastBlockTimestamp() uint64
GetProposer() common.Address
GetProposedAt() uint64
GetProposedIn() uint64
Expand All @@ -71,7 +70,7 @@ type TaikoBatchMetaDataPacaya interface {
GetAnchorBlockID() uint64
GetAnchorBlockHash() common.Hash
GetBlocks() []pacayaBindings.ITaikoInboxBlockParams
GetBaseFeeConfig() *pacayaBindings.LibSharedDataBaseFeeConfig
GetConfig() *pacayaBindings.ITaikoInboxConfig
GetRawBlockHeight() *big.Int
GetRawBlockHash() common.Hash
GetTxIndex() uint
Expand Down
11 changes: 3 additions & 8 deletions packages/taiko-client/bindings/metadata/metadata_pacaya.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ func (m *TaikoDataBlockMetadataPacaya) GetGasLimit() uint32 {
return m.GasLimit
}

// GetLastBlockTimestamp returns last block's timestamp in this batch.
func (m *TaikoDataBlockMetadataPacaya) GetLastBlockTimestamp() uint64 {
return m.LastBlockTimestamp
}

// GetBlobHashes returns blob hashes in this batch.
func (m *TaikoDataBlockMetadataPacaya) GetBlobHashes() []common.Hash {
var blobHashes []common.Hash
Expand Down Expand Up @@ -133,9 +128,9 @@ func (m *TaikoDataBlockMetadataPacaya) GetBlocks() []pacayaBindings.ITaikoInboxB
return m.Blocks
}

// GetBaseFeeConfig returns the L2 block basefee configs.
func (m *TaikoDataBlockMetadataPacaya) GetBaseFeeConfig() *pacayaBindings.LibSharedDataBaseFeeConfig {
return &m.BaseFeeConfig
// GetConfig returns the L2 protocol configs.
func (m *TaikoDataBlockMetadataPacaya) GetConfig() *pacayaBindings.ITaikoInboxConfig {
return &m.Config
}

// GetRawBlockHeight returns the raw L1 block height.
Expand Down
2 changes: 1 addition & 1 deletion packages/taiko-client/bindings/pacaya/.githead
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1c4e3afc3c628471b6467bcf461b55dc6e41150e
67858b549da9a106a630c205b58193d7c5612f6a

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

Loading

0 comments on commit e5c0bfb

Please sign in to comment.