Skip to content

Commit

Permalink
GetAllRollupInfo client rpc method
Browse files Browse the repository at this point in the history
  • Loading branch information
bianyuanop committed Dec 17, 2024
1 parent 77e3a07 commit 4901100
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rpc/jsonrpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,17 @@ func (cli *JSONRPCClient) GetRollupInfo(ctx context.Context, namespace []byte) (
return &resp.Info, err
}

func (cli *JSONRPCClient) GetAllRollupInfo(ctx context.Context) (*types.GetAllRollupInfoReply, error) {
resp := new(types.GetAllRollupInfoReply)
err := cli.requester.SendRequest(
ctx,
"getAllRollupInfo",
nil,
resp,
)
return resp, err
}

func (cli *JSONRPCClient) GetEpochExits(ctx context.Context, epoch uint64) (*hactions.EpochExitInfo, error) {
resp := new(types.EpochExitsReply)
args := &types.EpochExitsArgs{Epoch: epoch}
Expand Down

0 comments on commit 4901100

Please sign in to comment.