ERC721Handler

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ERC721HandlerABI = "" /* 5153-byte string literal not displayed */

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

Variables

View Source
var ERC721HandlerBin = "" /* 13080-byte string literal not displayed */

ERC721HandlerBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type ERC721Handler

type ERC721Handler struct {
	ERC721HandlerCaller     // Read-only binding to the contract
	ERC721HandlerTransactor // Write-only binding to the contract
	ERC721HandlerFilterer   // Log filterer for contract events
}

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

func DeployERC721Handler

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

DeployERC721Handler deploys a new Ethereum contract, binding an instance of ERC721Handler to it.

func NewERC721Handler

func NewERC721Handler(address common.Address, backend bind.ContractBackend) (*ERC721Handler, error)

NewERC721Handler creates a new instance of ERC721Handler, bound to a specific deployed contract.

type ERC721HandlerCaller

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

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

func NewERC721HandlerCaller

func NewERC721HandlerCaller(address common.Address, caller bind.ContractCaller) (*ERC721HandlerCaller, error)

NewERC721HandlerCaller creates a new read-only instance of ERC721Handler, bound to a specific deployed contract.

func (*ERC721HandlerCaller) BridgeAddress

func (_ERC721Handler *ERC721HandlerCaller) 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 (*ERC721HandlerCaller) BurnList

func (_ERC721Handler *ERC721HandlerCaller) 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 (*ERC721HandlerCaller) ContractWhitelist

func (_ERC721Handler *ERC721HandlerCaller) 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 (*ERC721HandlerCaller) DepositRecords

func (_ERC721Handler *ERC721HandlerCaller) DepositRecords(opts *bind.CallOpts, arg0 uint8, arg1 uint64) (struct {
	TokenAddress                common.Address
	DestinationChainID          uint8
	ResourceID                  [32]byte
	DestinationRecipientAddress []byte
	Depositer                   common.Address
	TokenID                     *big.Int
	MetaData                    []byte
}, error)

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

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

func (*ERC721HandlerCaller) GetDepositRecord

func (_ERC721Handler *ERC721HandlerCaller) GetDepositRecord(opts *bind.CallOpts, depositNonce uint64, destId uint8) (ERC721HandlerDepositRecord, error)

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

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

func (*ERC721HandlerCaller) ResourceIDToTokenContractAddress

func (_ERC721Handler *ERC721HandlerCaller) 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 (*ERC721HandlerCaller) TokenContractAddressToResourceID

func (_ERC721Handler *ERC721HandlerCaller) 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 ERC721HandlerCallerRaw

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

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

func (*ERC721HandlerCallerRaw) Call

func (_ERC721Handler *ERC721HandlerCallerRaw) 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 ERC721HandlerCallerSession

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

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

func (*ERC721HandlerCallerSession) BridgeAddress

func (_ERC721Handler *ERC721HandlerCallerSession) BridgeAddress() (common.Address, error)

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

Solidity: function _bridgeAddress() view returns(address)

func (*ERC721HandlerCallerSession) BurnList

func (_ERC721Handler *ERC721HandlerCallerSession) 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 (*ERC721HandlerCallerSession) ContractWhitelist

func (_ERC721Handler *ERC721HandlerCallerSession) 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 (*ERC721HandlerCallerSession) DepositRecords

func (_ERC721Handler *ERC721HandlerCallerSession) DepositRecords(arg0 uint8, arg1 uint64) (struct {
	TokenAddress                common.Address
	DestinationChainID          uint8
	ResourceID                  [32]byte
	DestinationRecipientAddress []byte
	Depositer                   common.Address
	TokenID                     *big.Int
	MetaData                    []byte
}, error)

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

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

func (*ERC721HandlerCallerSession) GetDepositRecord

func (_ERC721Handler *ERC721HandlerCallerSession) GetDepositRecord(depositNonce uint64, destId uint8) (ERC721HandlerDepositRecord, error)

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

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

func (*ERC721HandlerCallerSession) ResourceIDToTokenContractAddress

func (_ERC721Handler *ERC721HandlerCallerSession) 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 (*ERC721HandlerCallerSession) TokenContractAddressToResourceID

func (_ERC721Handler *ERC721HandlerCallerSession) 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 ERC721HandlerDepositRecord

type ERC721HandlerDepositRecord struct {
	TokenAddress                common.Address
	DestinationChainID          uint8
	ResourceID                  [32]byte
	DestinationRecipientAddress []byte
	Depositer                   common.Address
	TokenID                     *big.Int
	MetaData                    []byte
}

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

type ERC721HandlerFilterer

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

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

func NewERC721HandlerFilterer

func NewERC721HandlerFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC721HandlerFilterer, error)

NewERC721HandlerFilterer creates a new log filterer instance of ERC721Handler, bound to a specific deployed contract.

type ERC721HandlerRaw

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

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

func (*ERC721HandlerRaw) Call

func (_ERC721Handler *ERC721HandlerRaw) 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 (*ERC721HandlerRaw) Transact

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

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

func (*ERC721HandlerRaw) Transfer

func (_ERC721Handler *ERC721HandlerRaw) 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 ERC721HandlerSession

type ERC721HandlerSession struct {
	Contract     *ERC721Handler    // 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
}

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

func (*ERC721HandlerSession) BridgeAddress

func (_ERC721Handler *ERC721HandlerSession) BridgeAddress() (common.Address, error)

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

Solidity: function _bridgeAddress() view returns(address)

func (*ERC721HandlerSession) BurnList

func (_ERC721Handler *ERC721HandlerSession) 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 (*ERC721HandlerSession) ContractWhitelist

func (_ERC721Handler *ERC721HandlerSession) 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 (*ERC721HandlerSession) Deposit

func (_ERC721Handler *ERC721HandlerSession) 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 (*ERC721HandlerSession) DepositRecords

func (_ERC721Handler *ERC721HandlerSession) DepositRecords(arg0 uint8, arg1 uint64) (struct {
	TokenAddress                common.Address
	DestinationChainID          uint8
	ResourceID                  [32]byte
	DestinationRecipientAddress []byte
	Depositer                   common.Address
	TokenID                     *big.Int
	MetaData                    []byte
}, error)

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

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

func (*ERC721HandlerSession) ExecuteProposal

func (_ERC721Handler *ERC721HandlerSession) 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 (*ERC721HandlerSession) FundERC721

func (_ERC721Handler *ERC721HandlerSession) FundERC721(tokenAddress common.Address, owner common.Address, tokenID *big.Int) (*types.Transaction, error)

FundERC721 is a paid mutator transaction binding the contract method 0x73542980.

Solidity: function fundERC721(address tokenAddress, address owner, uint256 tokenID) returns()

func (*ERC721HandlerSession) GetDepositRecord

func (_ERC721Handler *ERC721HandlerSession) GetDepositRecord(depositNonce uint64, destId uint8) (ERC721HandlerDepositRecord, error)

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

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

func (*ERC721HandlerSession) ResourceIDToTokenContractAddress

func (_ERC721Handler *ERC721HandlerSession) 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 (*ERC721HandlerSession) SetBurnable

func (_ERC721Handler *ERC721HandlerSession) 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 (*ERC721HandlerSession) SetResource

func (_ERC721Handler *ERC721HandlerSession) 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 (*ERC721HandlerSession) TokenContractAddressToResourceID

func (_ERC721Handler *ERC721HandlerSession) 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 (*ERC721HandlerSession) Withdraw

func (_ERC721Handler *ERC721HandlerSession) Withdraw(tokenAddress common.Address, recipient common.Address, tokenID *big.Int) (*types.Transaction, error)

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

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

type ERC721HandlerTransactor

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

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

func NewERC721HandlerTransactor

func NewERC721HandlerTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC721HandlerTransactor, error)

NewERC721HandlerTransactor creates a new write-only instance of ERC721Handler, bound to a specific deployed contract.

func (*ERC721HandlerTransactor) Deposit

func (_ERC721Handler *ERC721HandlerTransactor) 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 (*ERC721HandlerTransactor) ExecuteProposal

func (_ERC721Handler *ERC721HandlerTransactor) 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 (*ERC721HandlerTransactor) FundERC721

func (_ERC721Handler *ERC721HandlerTransactor) FundERC721(opts *bind.TransactOpts, tokenAddress common.Address, owner common.Address, tokenID *big.Int) (*types.Transaction, error)

FundERC721 is a paid mutator transaction binding the contract method 0x73542980.

Solidity: function fundERC721(address tokenAddress, address owner, uint256 tokenID) returns()

func (*ERC721HandlerTransactor) SetBurnable

func (_ERC721Handler *ERC721HandlerTransactor) 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 (*ERC721HandlerTransactor) SetResource

func (_ERC721Handler *ERC721HandlerTransactor) 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 (*ERC721HandlerTransactor) Withdraw

func (_ERC721Handler *ERC721HandlerTransactor) Withdraw(opts *bind.TransactOpts, tokenAddress common.Address, recipient common.Address, tokenID *big.Int) (*types.Transaction, error)

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

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

type ERC721HandlerTransactorRaw

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

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

func (*ERC721HandlerTransactorRaw) Transact

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

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

func (*ERC721HandlerTransactorRaw) Transfer

func (_ERC721Handler *ERC721HandlerTransactorRaw) 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 ERC721HandlerTransactorSession

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

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

func (*ERC721HandlerTransactorSession) Deposit

func (_ERC721Handler *ERC721HandlerTransactorSession) 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 (*ERC721HandlerTransactorSession) ExecuteProposal

func (_ERC721Handler *ERC721HandlerTransactorSession) 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 (*ERC721HandlerTransactorSession) FundERC721

func (_ERC721Handler *ERC721HandlerTransactorSession) FundERC721(tokenAddress common.Address, owner common.Address, tokenID *big.Int) (*types.Transaction, error)

FundERC721 is a paid mutator transaction binding the contract method 0x73542980.

Solidity: function fundERC721(address tokenAddress, address owner, uint256 tokenID) returns()

func (*ERC721HandlerTransactorSession) SetBurnable

func (_ERC721Handler *ERC721HandlerTransactorSession) 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 (*ERC721HandlerTransactorSession) SetResource

func (_ERC721Handler *ERC721HandlerTransactorSession) 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 (*ERC721HandlerTransactorSession) Withdraw

func (_ERC721Handler *ERC721HandlerTransactorSession) Withdraw(tokenAddress common.Address, recipient common.Address, tokenID *big.Int) (*types.Transaction, error)

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

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

Jump to

Keyboard shortcuts

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