Skip to content

Commit

Permalink
chore(ethclient): remove some unused APIs (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp authored Feb 18, 2025
1 parent 838f653 commit 437b5c6
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions ethclient/taiko_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@ func (ec *Client) HeadL1Origin(ctx context.Context) (*rawdb.L1Origin, error) {
return res, nil
}

// SetHeadL1Origin sets the latest L2 block's corresponding L1 origin.
func (ec *Client) SetHeadL1Origin(ctx context.Context, blockID *big.Int) (*big.Int, error) {
var res *big.Int

if err := ec.c.CallContext(ctx, &res, "taiko_setHeadL1Origin", blockID); err != nil {
return nil, err
}

return res, nil
}

// L1OriginByID returns the L2 block's corresponding L1 origin.
func (ec *Client) L1OriginByID(ctx context.Context, blockID *big.Int) (*rawdb.L1Origin, error) {
var res *rawdb.L1Origin
Expand All @@ -41,17 +30,6 @@ func (ec *Client) L1OriginByID(ctx context.Context, blockID *big.Int) (*rawdb.L1
return res, nil
}

// UpdateL1Origin sets the L2 block's corresponding L1 origin.
func (ec *Client) UpdateL1Origin(ctx context.Context, l1Origin *rawdb.L1Origin) (*rawdb.L1Origin, error) {
var res *rawdb.L1Origin

if err := ec.c.CallContext(ctx, &res, "taiko_updateL1Origin", l1Origin); err != nil {
return nil, err
}

return res, nil
}

// GetSyncMode returns the current sync mode of the L2 node.
func (ec *Client) GetSyncMode(ctx context.Context) (string, error) {
var res string
Expand Down

0 comments on commit 437b5c6

Please sign in to comment.