erc20assetpool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 7 Imported by: 0 modules, 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

func DeployERC20AssetPool

func DeployERC20AssetPool(
	version ERC20AssetPoolVersion,
	auth *bind.TransactOpts,
	backend bind.ContractBackend,
	multisigControlAddress common.Address,
) (address common.Address, tx *ethTypes.Transaction, err error)

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