stakingbridge

package
v0.75.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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)

func (*StakingBridge) StakeBalance

func (sb *StakingBridge) StakeBalance(opts *bind.CallOpts, target common.Address, vegaPubKey string) (*big.Int, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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