Skip to content

Commit 437b5c6

Browse files
authored
chore(ethclient): remove some unused APIs (#387)
1 parent 838f653 commit 437b5c6

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

ethclient/taiko_api.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ func (ec *Client) HeadL1Origin(ctx context.Context) (*rawdb.L1Origin, error) {
1919
return res, nil
2020
}
2121

22-
// SetHeadL1Origin sets the latest L2 block's corresponding L1 origin.
23-
func (ec *Client) SetHeadL1Origin(ctx context.Context, blockID *big.Int) (*big.Int, error) {
24-
var res *big.Int
25-
26-
if err := ec.c.CallContext(ctx, &res, "taiko_setHeadL1Origin", blockID); err != nil {
27-
return nil, err
28-
}
29-
30-
return res, nil
31-
}
32-
3322
// L1OriginByID returns the L2 block's corresponding L1 origin.
3423
func (ec *Client) L1OriginByID(ctx context.Context, blockID *big.Int) (*rawdb.L1Origin, error) {
3524
var res *rawdb.L1Origin
@@ -41,17 +30,6 @@ func (ec *Client) L1OriginByID(ctx context.Context, blockID *big.Int) (*rawdb.L1
4130
return res, nil
4231
}
4332

44-
// UpdateL1Origin sets the L2 block's corresponding L1 origin.
45-
func (ec *Client) UpdateL1Origin(ctx context.Context, l1Origin *rawdb.L1Origin) (*rawdb.L1Origin, error) {
46-
var res *rawdb.L1Origin
47-
48-
if err := ec.c.CallContext(ctx, &res, "taiko_updateL1Origin", l1Origin); err != nil {
49-
return nil, err
50-
}
51-
52-
return res, nil
53-
}
54-
5533
// GetSyncMode returns the current sync mode of the L2 node.
5634
func (ec *Client) GetSyncMode(ctx context.Context) (string, error) {
5735
var res string

0 commit comments

Comments
 (0)