Skip to content

Commit

Permalink
[Client] Add client getter for deposit offers (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
knikos authored Oct 24, 2023
1 parent 54fcc72 commit 6d48010
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vms/platformvm/camino_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ type CaminoClient interface {

// GetMultisigAlias returns the alias definition of the given multisig address
GetMultisigAlias(ctx context.Context, multisigAddress string, options ...rpc.Option) (*GetMultisigAliasReply, error)

GetAllDepositOffers(ctx context.Context, getAllDepositOffersArgs *GetAllDepositOffersArgs, options ...rpc.Option) (*GetAllDepositOffersReply, error)
}

func (c *client) GetConfiguration(ctx context.Context, options ...rpc.Option) (*GetConfigurationReply, error) {
Expand All @@ -31,3 +33,9 @@ func (c *client) GetMultisigAlias(ctx context.Context, multisigAddress string, o
}, res, options...)
return res, err
}

func (c *client) GetAllDepositOffers(ctx context.Context, getAllDepositOffersArgs *GetAllDepositOffersArgs, options ...rpc.Option) (*GetAllDepositOffersReply, error) {
res := &GetAllDepositOffersReply{}
err := c.requester.SendRequest(ctx, "platform.getAllDepositOffers", &getAllDepositOffersArgs, res, options...)
return res, err
}

0 comments on commit 6d48010

Please sign in to comment.