ERC20Handler

package
v1.1.2-0...-53e37db Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ERC20HandlerABI = "" /* 5191-byte string literal not displayed */

ERC20HandlerABI is the input ABI used to generate the binding from.

Variables

View Source
var ERC20HandlerBin = "" /* 18426-byte string literal not displayed */

ERC20HandlerBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type ERC20Handler

type ERC20Handler struct {
	ERC20HandlerCaller     // Read-only binding to the contract
	ERC20HandlerTransactor // Write-only binding to the contract
	ERC20HandlerFilterer   // Log filterer for contract events
}

ERC20Handler is an auto generated Go binding around an Ethereum contract.

func DeployERC20Handler

func DeployERC20Handler(auth *bind.TransactOpts, backend bind.ContractBackend, bridgeAddress common.Address, initialResourceIDs [][32]byte, initialContractAddresses []common.Address, burnableContractAddresses []common.Address) (common.Address, *types.Transaction, *ERC20Handler, error)

DeployERC20Handler deploys a new Ethereum contract, binding an instance of ERC20Handler to it.

func NewERC20Handler

func NewERC20Handler(address common.Address, backend bind.ContractBackend) (*ERC20Handler, error)

NewERC20Handler creates a new instance of ERC20Handler, bound to a specific deployed contract.

type ERC20HandlerCaller

type ERC20HandlerCaller struct {
	// contains filtered or unexported fields
}

ERC20HandlerCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewERC20HandlerCaller

func NewERC20HandlerCaller(address common.Address, caller bind.ContractCaller) (*ERC20HandlerCaller, error)

NewERC20HandlerCaller creates a new read-only instance of ERC20Handler, bound to a specific deployed contract.

func (*ERC20HandlerCaller) BridgeAddress

func (_ERC20Handler *ERC20HandlerCaller) BridgeAddress(opts *bind.CallOpts) (common.Address, error)

BridgeAddress is a free data retrieval call binding the contract method 0x318c136e.

Solidity: function _bridgeAddress() view returns(address)

func (*ERC20HandlerCaller) BurnList

func (_ERC20Handler *ERC20HandlerCaller) BurnList(opts *bind.CallOpts, arg0 common.Address) (bool, error)

BurnList is a free data retrieval call binding the contract method 0x6a70d081.

Solidity: function _burnList(address ) view returns(bool)

func (*ERC20HandlerCaller) ContractWhitelist

func (_ERC20Handler *ERC20HandlerCaller) ContractWhitelist(opts *bind.CallOpts, arg0 common.Address) (bool, error)

ContractWhitelist is a free data retrieval call binding the contract method 0x7f79bea8.

Solidity: function _contractWhitelist(address ) view returns(bool)

func (*ERC20HandlerCaller) DepositRecords

func (_ERC20Handler *ERC20HandlerCaller) DepositRecords(opts *bind.CallOpts, arg0 uint8, arg1 uint64) (struct {
	TokenAddress                   common.Address
	LenDestinationRecipientAddress uint8
	DestinationChainID             uint8
	ResourceID                     [32]byte
	DestinationRecipientAddress    []byte
	Depositer                      common.Address
	Amount                         *big.Int
}, error)

DepositRecords is a free data retrieval call binding the contract method 0x4402027f.

Solidity: function _depositRecords(uint8 , uint64 ) view returns(address _tokenAddress, uint8 _lenDestinationRecipientAddress, uint8 _destinationChainID, bytes32 _resourceID, bytes _destinationRecipientAddress, address _depositer, uint256 _amount)

func (*ERC20HandlerCaller) GetDepositRecord

func (_ERC20Handler *ERC20HandlerCaller) GetDepositRecord(opts *bind.CallOpts, depositNonce uint64, destId uint8) (ERC20HandlerDepositRecord, error)

GetDepositRecord is a free data retrieval call binding the contract method 0xba484c09.

Solidity: function getDepositRecord(uint64 depositNonce, uint8 destId) view returns((address,uint8,uint8,bytes32,bytes,address,uint256))

func (*ERC20HandlerCaller) ResourceIDToTokenContractAddress

func (_ERC20Handler *ERC20HandlerCaller) ResourceIDToTokenContractAddress(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

ResourceIDToTokenContractAddress is a free data retrieval call binding the contract method 0x0a6d55d8.

Solidity: function _resourceIDToTokenContractAddress(bytes32 ) view returns(address)

func (*ERC20HandlerCaller) TokenContractAddressToResourceID

func (_ERC20Handler *ERC20HandlerCaller) TokenContractAddressToResourceID(opts *bind.CallOpts, arg0 common.Address) ([32]byte, error)

TokenContractAddressToResourceID is a free data retrieval call binding the contract method 0xc8ba6c87.

Solidity: function _tokenContractAddressToResourceID(address ) view returns(bytes32)

type ERC20HandlerCallerRaw

type ERC20HandlerCallerRaw struct {
	Contract *ERC20HandlerCaller // Generic read-only contract binding to access the raw methods on
}

ERC20HandlerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ERC20HandlerCallerRaw) Call

func (_ERC20Handler *ERC20HandlerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ERC20HandlerCallerSession

type ERC20HandlerCallerSession struct {
	Contract *ERC20HandlerCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts       // Call options to use throughout this session
}

ERC20HandlerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ERC20HandlerCallerSession) BridgeAddress

func (_ERC20Handler *ERC20HandlerCallerSession) BridgeAddress() (common.Address, error)

BridgeAddress is a free data retrieval call binding the contract method 0x318c136e.

Solidity: function _bridgeAddress() view returns(address)

func (*ERC20HandlerCallerSession) BurnList

func (_ERC20Handler *ERC20HandlerCallerSession) BurnList(arg0 common.Address) (bool, error)

BurnList is a free data retrieval call binding the contract method 0x6a70d081.

Solidity: function _burnList(address ) view returns(bool)

func (*ERC20HandlerCallerSession) ContractWhitelist

func (_ERC20Handler *ERC20HandlerCallerSession) ContractWhitelist(arg0 common.Address) (bool, error)

ContractWhitelist is a free data retrieval call binding the contract method 0x7f79bea8.

Solidity: function _contractWhitelist(address ) view returns(bool)

func (*ERC20HandlerCallerSession) DepositRecords

func (_ERC20Handler *ERC20HandlerCallerSession) DepositRecords(arg0 uint8, arg1 uint64) (struct {
	TokenAddress                   common.Address
	LenDestinationRecipientAddress uint8
	DestinationChainID             uint8
	ResourceID                     [32]byte
	DestinationRecipientAddress    []byte
	Depositer                      common.Address
	Amount                         *big.Int
}, error)

DepositRecords is a free data retrieval call binding the contract method 0x4402027f.

Solidity: function _depositRecords(uint8 , uint64 ) view returns(address _tokenAddress, uint8 _lenDestinationRecipientAddress, uint8 _destinationChainID, bytes32 _resourceID, bytes _destinationRecipientAddress, address _depositer, uint256 _amount)

func (*ERC20HandlerCallerSession) GetDepositRecord

func (_ERC20Handler *ERC20HandlerCallerSession) GetDepositRecord(depositNonce uint64, destId uint8) (ERC20HandlerDepositRecord, error)

GetDepositRecord is a free data retrieval call binding the contract method 0xba484c09.

Solidity: function getDepositRecord(uint64 depositNonce, uint8 destId) view returns((address,uint8,uint8,bytes32,bytes,address,uint256))

func (*ERC20HandlerCallerSession) ResourceIDToTokenContractAddress

func (_ERC20Handler *ERC20HandlerCallerSession) ResourceIDToTokenContractAddress(arg0 [32]byte) (common.Address, error)

ResourceIDToTokenContractAddress is a free data retrieval call binding the contract method 0x0a6d55d8.

Solidity: function _resourceIDToTokenContractAddress(bytes32 ) view returns(address)

func (*ERC20HandlerCallerSession) TokenContractAddressToResourceID

func (_ERC20Handler *ERC20HandlerCallerSession) TokenContractAddressToResourceID(arg0 common.Address) ([32]byte, error)

TokenContractAddressToResourceID is a free data retrieval call binding the contract method 0xc8ba6c87.

Solidity: function _tokenContractAddressToResourceID(address ) view returns(bytes32)

type ERC20HandlerDepositRecord

type ERC20HandlerDepositRecord struct {
	TokenAddress                   common.Address
	LenDestinationRecipientAddress uint8
	DestinationChainID             uint8
	ResourceID                     [32]byte
	DestinationRecipientAddress    []byte
	Depositer                      common.Address
	Amount                         *big.Int
}

ERC20HandlerDepositRecord is an auto generated low-level Go binding around an user-defined struct.

type ERC20HandlerFilterer

type ERC20HandlerFilterer struct {
	// contains filtered or unexported fields
}

ERC20HandlerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewERC20HandlerFilterer

func NewERC20HandlerFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC20HandlerFilterer, error)

NewERC20HandlerFilterer creates a new log filterer instance of ERC20Handler, bound to a specific deployed contract.

type ERC20HandlerRaw

type ERC20HandlerRaw struct {
	Contract *ERC20Handler // Generic contract binding to access the raw methods on
}

ERC20HandlerRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ERC20HandlerRaw) Call

func (_ERC20Handler *ERC20HandlerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ERC20HandlerRaw) Transact

func (_ERC20Handler *ERC20HandlerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ERC20HandlerRaw) Transfer

func (_ERC20Handler *ERC20HandlerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20HandlerSession

type ERC20HandlerSession struct {
	Contract     *ERC20Handler     // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

ERC20HandlerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ERC20HandlerSession) BridgeAddress

func (_ERC20Handler *ERC20HandlerSession) BridgeAddress() (common.Address, error)

BridgeAddress is a free data retrieval call binding the contract method 0x318c136e.

Solidity: function _bridgeAddress() view returns(address)

func (*ERC20HandlerSession) BurnList

func (_ERC20Handler *ERC20HandlerSession) BurnList(arg0 common.Address) (bool, error)

BurnList is a free data retrieval call binding the contract method 0x6a70d081.

Solidity: function _burnList(address ) view returns(bool)

func (*ERC20HandlerSession) ContractWhitelist

func (_ERC20Handler *ERC20HandlerSession) ContractWhitelist(arg0 common.Address) (bool, error)

ContractWhitelist is a free data retrieval call binding the contract method 0x7f79bea8.

Solidity: function _contractWhitelist(address ) view returns(bool)

func (*ERC20HandlerSession) Deposit

func (_ERC20Handler *ERC20HandlerSession) Deposit(resourceID [32]byte, destinationChainID uint8, depositNonce uint64, depositer common.Address, data []byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x38995da9.

Solidity: function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes data) returns()

func (*ERC20HandlerSession) DepositRecords

func (_ERC20Handler *ERC20HandlerSession) DepositRecords(arg0 uint8, arg1 uint64) (struct {
	TokenAddress                   common.Address
	LenDestinationRecipientAddress uint8
	DestinationChainID             uint8
	ResourceID                     [32]byte
	DestinationRecipientAddress    []byte
	Depositer                      common.Address
	Amount                         *big.Int
}, error)

DepositRecords is a free data retrieval call binding the contract method 0x4402027f.

Solidity: function _depositRecords(uint8 , uint64 ) view returns(address _tokenAddress, uint8 _lenDestinationRecipientAddress, uint8 _destinationChainID, bytes32 _resourceID, bytes _destinationRecipientAddress, address _depositer, uint256 _amount)

func (*ERC20HandlerSession) ExecuteProposal

func (_ERC20Handler *ERC20HandlerSession) ExecuteProposal(resourceID [32]byte, data []byte) (*types.Transaction, error)

ExecuteProposal is a paid mutator transaction binding the contract method 0xe248cff2.

Solidity: function executeProposal(bytes32 resourceID, bytes data) returns()

func (*ERC20HandlerSession) FundERC20

func (_ERC20Handler *ERC20HandlerSession) FundERC20(tokenAddress common.Address, owner common.Address, amount *big.Int) (*types.Transaction, error)

FundERC20 is a paid mutator transaction binding the contract method 0x95601f09.

Solidity: function fundERC20(address tokenAddress, address owner, uint256 amount) returns()

func (*ERC20HandlerSession) GetDepositRecord

func (_ERC20Handler *ERC20HandlerSession) GetDepositRecord(depositNonce uint64, destId uint8) (ERC20HandlerDepositRecord, error)

GetDepositRecord is a free data retrieval call binding the contract method 0xba484c09.

Solidity: function getDepositRecord(uint64 depositNonce, uint8 destId) view returns((address,uint8,uint8,bytes32,bytes,address,uint256))

func (*ERC20HandlerSession) ResourceIDToTokenContractAddress

func (_ERC20Handler *ERC20HandlerSession) ResourceIDToTokenContractAddress(arg0 [32]byte) (common.Address, error)

ResourceIDToTokenContractAddress is a free data retrieval call binding the contract method 0x0a6d55d8.

Solidity: function _resourceIDToTokenContractAddress(bytes32 ) view returns(address)

func (*ERC20HandlerSession) SetBurnable

func (_ERC20Handler *ERC20HandlerSession) SetBurnable(contractAddress common.Address) (*types.Transaction, error)

SetBurnable is a paid mutator transaction binding the contract method 0x07b7ed99.

Solidity: function setBurnable(address contractAddress) returns()

func (*ERC20HandlerSession) SetResource

func (_ERC20Handler *ERC20HandlerSession) SetResource(resourceID [32]byte, contractAddress common.Address) (*types.Transaction, error)

SetResource is a paid mutator transaction binding the contract method 0xb8fa3736.

Solidity: function setResource(bytes32 resourceID, address contractAddress) returns()

func (*ERC20HandlerSession) TokenContractAddressToResourceID

func (_ERC20Handler *ERC20HandlerSession) TokenContractAddressToResourceID(arg0 common.Address) ([32]byte, error)

TokenContractAddressToResourceID is a free data retrieval call binding the contract method 0xc8ba6c87.

Solidity: function _tokenContractAddressToResourceID(address ) view returns(bytes32)

func (*ERC20HandlerSession) Withdraw

func (_ERC20Handler *ERC20HandlerSession) Withdraw(tokenAddress common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xd9caed12.

Solidity: function withdraw(address tokenAddress, address recipient, uint256 amount) returns()

type ERC20HandlerTransactor

type ERC20HandlerTransactor struct {
	// contains filtered or unexported fields
}

ERC20HandlerTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewERC20HandlerTransactor

func NewERC20HandlerTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC20HandlerTransactor, error)

NewERC20HandlerTransactor creates a new write-only instance of ERC20Handler, bound to a specific deployed contract.

func (*ERC20HandlerTransactor) Deposit

func (_ERC20Handler *ERC20HandlerTransactor) Deposit(opts *bind.TransactOpts, resourceID [32]byte, destinationChainID uint8, depositNonce uint64, depositer common.Address, data []byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x38995da9.

Solidity: function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes data) returns()

func (*ERC20HandlerTransactor) ExecuteProposal

func (_ERC20Handler *ERC20HandlerTransactor) ExecuteProposal(opts *bind.TransactOpts, resourceID [32]byte, data []byte) (*types.Transaction, error)

ExecuteProposal is a paid mutator transaction binding the contract method 0xe248cff2.

Solidity: function executeProposal(bytes32 resourceID, bytes data) returns()

func (*ERC20HandlerTransactor) FundERC20

func (_ERC20Handler *ERC20HandlerTransactor) FundERC20(opts *bind.TransactOpts, tokenAddress common.Address, owner common.Address, amount *big.Int) (*types.Transaction, error)

FundERC20 is a paid mutator transaction binding the contract method 0x95601f09.

Solidity: function fundERC20(address tokenAddress, address owner, uint256 amount) returns()

func (*ERC20HandlerTransactor) SetBurnable

func (_ERC20Handler *ERC20HandlerTransactor) SetBurnable(opts *bind.TransactOpts, contractAddress common.Address) (*types.Transaction, error)

SetBurnable is a paid mutator transaction binding the contract method 0x07b7ed99.

Solidity: function setBurnable(address contractAddress) returns()

func (*ERC20HandlerTransactor) SetResource

func (_ERC20Handler *ERC20HandlerTransactor) SetResource(opts *bind.TransactOpts, resourceID [32]byte, contractAddress common.Address) (*types.Transaction, error)

SetResource is a paid mutator transaction binding the contract method 0xb8fa3736.

Solidity: function setResource(bytes32 resourceID, address contractAddress) returns()

func (*ERC20HandlerTransactor) Withdraw

func (_ERC20Handler *ERC20HandlerTransactor) Withdraw(opts *bind.TransactOpts, tokenAddress common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xd9caed12.

Solidity: function withdraw(address tokenAddress, address recipient, uint256 amount) returns()

type ERC20HandlerTransactorRaw

type ERC20HandlerTransactorRaw struct {
	Contract *ERC20HandlerTransactor // Generic write-only contract binding to access the raw methods on
}

ERC20HandlerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ERC20HandlerTransactorRaw) Transact

func (_ERC20Handler *ERC20HandlerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ERC20HandlerTransactorRaw) Transfer

func (_ERC20Handler *ERC20HandlerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20HandlerTransactorSession

type ERC20HandlerTransactorSession struct {
	Contract     *ERC20HandlerTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts       // Transaction auth options to use throughout this session
}

ERC20HandlerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ERC20HandlerTransactorSession) Deposit

func (_ERC20Handler *ERC20HandlerTransactorSession) Deposit(resourceID [32]byte, destinationChainID uint8, depositNonce uint64, depositer common.Address, data []byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x38995da9.

Solidity: function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes data) returns()

func (*ERC20HandlerTransactorSession) ExecuteProposal

func (_ERC20Handler *ERC20HandlerTransactorSession) ExecuteProposal(resourceID [32]byte, data []byte) (*types.Transaction, error)

ExecuteProposal is a paid mutator transaction binding the contract method 0xe248cff2.

Solidity: function executeProposal(bytes32 resourceID, bytes data) returns()

func (*ERC20HandlerTransactorSession) FundERC20

func (_ERC20Handler *ERC20HandlerTransactorSession) FundERC20(tokenAddress common.Address, owner common.Address, amount *big.Int) (*types.Transaction, error)

FundERC20 is a paid mutator transaction binding the contract method 0x95601f09.

Solidity: function fundERC20(address tokenAddress, address owner, uint256 amount) returns()

func (*ERC20HandlerTransactorSession) SetBurnable

func (_ERC20Handler *ERC20HandlerTransactorSession) SetBurnable(contractAddress common.Address) (*types.Transaction, error)

SetBurnable is a paid mutator transaction binding the contract method 0x07b7ed99.

Solidity: function setBurnable(address contractAddress) returns()

func (*ERC20HandlerTransactorSession) SetResource

func (_ERC20Handler *ERC20HandlerTransactorSession) SetResource(resourceID [32]byte, contractAddress common.Address) (*types.Transaction, error)

SetResource is a paid mutator transaction binding the contract method 0xb8fa3736.

Solidity: function setResource(bytes32 resourceID, address contractAddress) returns()

func (*ERC20HandlerTransactorSession) Withdraw

func (_ERC20Handler *ERC20HandlerTransactorSession) Withdraw(tokenAddress common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xd9caed12.

Solidity: function withdraw(address tokenAddress, address recipient, uint256 amount) returns()

Jump to

Keyboard shortcuts

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