veganetworksmartcontracts

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VegaNetworkSmartContracts

type VegaNetworkSmartContracts struct {
	VegaToken       *erc20token.ERC20Token
	AssetPool       *erc20assetpool.ERC20AssetPool
	ERC20Bridge     *erc20bridge.ERC20Bridge
	MultisigControl *multisigcontrol.MultisigControl
	StakingBridge   *stakingbridge.StakingBridge

	EthClient *ethclient.Client
	// contains filtered or unexported fields
}

func NewVegaNetworkSmartContracts

func NewVegaNetworkSmartContracts(
	ethClient *ethclient.Client,
	vegaTokenHexAddress string,
	assetPoolHexAddress string,
	erc20BridgeHexAddress string,
	multisigControlHexAddress string,
	stakingBridgeHexAddress string,
	logger *zap.Logger,
) (*VegaNetworkSmartContracts, error)

func (*VegaNetworkSmartContracts) RemoveStake

func (m *VegaNetworkSmartContracts) RemoveStake(ethWallet *wallet.EthWallet, partyPubKey string) error

func (*VegaNetworkSmartContracts) TopUpStake

func (m *VegaNetworkSmartContracts) TopUpStake(minterWallet *wallet.EthWallet, requiredStakeByParty map[string]*big.Int) error

func (*VegaNetworkSmartContracts) TopUpStakeForOne

func (m *VegaNetworkSmartContracts) TopUpStakeForOne(minterWallet *wallet.EthWallet, partyPubKey string, amount *big.Int) error

Jump to

Keyboard shortcuts

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