Documentation ¶
Index ¶
- func NewClient(rpcClient *evmclient.Client, chain *xc.ChainConfig, ...) (xcclient.StakingClient, error)
- type Client
- func (cli *Client) CompleteManualUnstaking(ctx context.Context, unstake *xcclient.Unstake) error
- func (cli *Client) FetchActiveValidators(ctx context.Context, from xc.Address) ([][]byte, error)
- func (cli *Client) FetchStakeBalance(ctx context.Context, args xcclient.StakedBalanceArgs) ([]*xcclient.StakedBalance, error)
- func (cli *Client) FetchStakingInput(ctx context.Context, args xcbuilder.StakeArgs) (xc.StakeTxInput, error)
- func (cli *Client) FetchUnstakingInput(ctx context.Context, args xcbuilder.StakeArgs) (xc.UnstakeTxInput, error)
- func (cli *Client) FetchWithdrawInput(ctx context.Context, args xcbuilder.StakeArgs) (xc.WithdrawTxInput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(rpcClient *evmclient.Client, chain *xc.ChainConfig, figmentCfg *services.FigmentConfig) (xcclient.StakingClient, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CompleteManualUnstaking ¶
We only want to unstake from a predetermined list of validators, as opposed to asking the provider to unstake N validators for us. This is because we don't want to risk a double-unstake (unstaking double the amount we intended). By only unstaking from a predetermined list, we can ensure this is safely idempotent.
func (*Client) FetchActiveValidators ¶
func (*Client) FetchStakeBalance ¶
func (cli *Client) FetchStakeBalance(ctx context.Context, args xcclient.StakedBalanceArgs) ([]*xcclient.StakedBalance, error)
func (*Client) FetchStakingInput ¶
func (*Client) FetchUnstakingInput ¶
func (*Client) FetchWithdrawInput ¶
Click to show internal directories.
Click to hide internal directories.