From 4901100b6cdf76f2c023c64d872e9ae4ff011877 Mon Sep 17 00:00:00 2001 From: bianyuanop Date: Tue, 17 Dec 2024 17:04:02 -0500 Subject: [PATCH] GetAllRollupInfo client rpc method --- rpc/jsonrpc_client.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rpc/jsonrpc_client.go b/rpc/jsonrpc_client.go index 97718d4..7eebada 100644 --- a/rpc/jsonrpc_client.go +++ b/rpc/jsonrpc_client.go @@ -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}