erc20assetpool

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ERC20AssetPool

type ERC20AssetPool struct {
	ERC20AssetPoolCommon
	Address common.Address
	Version ERC20AssetPoolVersion
	// contains filtered or unexported fields
}

func NewERC20AssetPool

func NewERC20AssetPool(
	ethClient *ethclient.Client,
	hexAddress string,
	version ERC20AssetPoolVersion,
) (*ERC20AssetPool, error)

type ERC20AssetPoolCommon

type ERC20AssetPoolCommon interface {
	Erc20BridgeAddress(opts *bind.CallOpts) (common.Address, error)
	MultisigControlAddress(opts *bind.CallOpts) (common.Address, error)
	SetBridgeAddress(opts *bind.TransactOpts, new_address common.Address, nonce *big.Int, signatures []byte) (*types.Transaction, error)
	SetMultisigControl(opts *bind.TransactOpts, new_address common.Address, nonce *big.Int, signatures []byte) (*types.Transaction, error)
	Withdraw(opts *bind.TransactOpts, token_address common.Address, target common.Address, amount *big.Int) (*types.Transaction, error)
}

type ERC20AssetPoolVersion

type ERC20AssetPoolVersion string
const (
	ERC20AssetPoolV1 ERC20AssetPoolVersion = "v1"
)

func (ERC20AssetPoolVersion) IsValid

func (n ERC20AssetPoolVersion) IsValid() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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