Documentation ¶
Index ¶
- type StakingBridge
- func (sb *StakingBridge) GetStakeBalance(vegaPubKey string) (balance *big.Int, err error)
- func (sb *StakingBridge) RemoveStake(opts *bind.TransactOpts, amount *big.Int, vegaPubKey string) (*types.Transaction, error)
- func (sb *StakingBridge) Stake(opts *bind.TransactOpts, amount *big.Int, vegaPubKey string) (*types.Transaction, error)
- func (sb *StakingBridge) StakeBalance(opts *bind.CallOpts, target common.Address, vegaPubKey string) (*big.Int, error)
- type StakingBridgeCommon
- type StakingBridgeVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StakingBridge ¶
type StakingBridge struct { StakingBridgeCommon Address common.Address Version StakingBridgeVersion // contains filtered or unexported fields }
func NewStakingBridge ¶
func NewStakingBridge( ethClient *ethclient.Client, hexAddress string, version StakingBridgeVersion, ) (*StakingBridge, error)
func (*StakingBridge) GetStakeBalance ¶
func (sb *StakingBridge) GetStakeBalance( vegaPubKey string, ) (balance *big.Int, err error)
func (*StakingBridge) RemoveStake ¶
func (sb *StakingBridge) RemoveStake(opts *bind.TransactOpts, amount *big.Int, vegaPubKey string) (*types.Transaction, error)
func (*StakingBridge) Stake ¶
func (sb *StakingBridge) Stake(opts *bind.TransactOpts, amount *big.Int, vegaPubKey string) (*types.Transaction, error)
type StakingBridgeCommon ¶
type StakingBridgeCommon interface { StakeBalance(opts *bind.CallOpts, target common.Address, vega_public_key [32]byte) (*big.Int, error) StakingToken(opts *bind.CallOpts) (common.Address, error) TotalStaked(opts *bind.CallOpts) (*big.Int, error) RemoveStake(opts *bind.TransactOpts, amount *big.Int, vega_public_key [32]byte) (*types.Transaction, error) Stake(opts *bind.TransactOpts, amount *big.Int, vega_public_key [32]byte) (*types.Transaction, error) TransferStake(opts *bind.TransactOpts, amount *big.Int, new_address common.Address, vega_public_key [32]byte) (*types.Transaction, error) }
type StakingBridgeVersion ¶
type StakingBridgeVersion string
const (
StakingBridgeV1 StakingBridgeVersion = "v1"
)
func (StakingBridgeVersion) IsValid ¶
func (n StakingBridgeVersion) IsValid() error
Click to show internal directories.
Click to hide internal directories.