stakingbridge

package
v0.76.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common added in v0.76.8

type Common 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 StakingBridge

type StakingBridge struct {
	Common
	Address common.Address
	Version Version
	// contains filtered or unexported fields
}

func NewStakingBridge

func NewStakingBridge(
	ethClient *ethclient.Client,
	hexAddress string,
	version Version,
) (*StakingBridge, 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)

func (*StakingBridge) StakeBalance

func (sb *StakingBridge) StakeBalance(opts *bind.CallOpts, target common.Address, vegaPubKey string) (*big.Int, error)

type Version added in v0.76.8

type Version string
const (
	V1 Version = "v1"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL