NFTBridge

package
v0.0.0-...-e30b66f Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const NFTBridgeABI = "" /* 13506-byte string literal not displayed */

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

Variables

View Source
var NFTBridgeBin = "" /* 39626-byte string literal not displayed */

NFTBridgeBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type NFTBridge

type NFTBridge struct {
	NFTBridgeCaller     // Read-only binding to the contract
	NFTBridgeTransactor // Write-only binding to the contract
	NFTBridgeFilterer   // Log filterer for contract events
}

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

func DeployNFTBridge

func DeployNFTBridge(auth *bind.TransactOpts, backend bind.ContractBackend, chainID uint8, initialRelayers []common.Address, initialRelayerThreshold *big.Int) (common.Address, *types.Transaction, *NFTBridge, error)

DeployNFTBridge deploys a new Ethereum contract, binding an instance of NFTBridge to it.

func NewNFTBridge

func NewNFTBridge(address common.Address, backend bind.ContractBackend) (*NFTBridge, error)

NewNFTBridge creates a new instance of NFTBridge, bound to a specific deployed contract.

type NFTBridgeCaller

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

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

func NewNFTBridgeCaller

func NewNFTBridgeCaller(address common.Address, caller bind.ContractCaller) (*NFTBridgeCaller, error)

NewNFTBridgeCaller creates a new read-only instance of NFTBridge, bound to a specific deployed contract.

func (*NFTBridgeCaller) BridgeCounterAddress

func (_NFTBridge *NFTBridgeCaller) BridgeCounterAddress(opts *bind.CallOpts) (common.Address, error)

BridgeCounterAddress is a free data retrieval call binding the contract method 0x50366faf.

Solidity: function bridgeCounterAddress() view returns(address)

func (*NFTBridgeCaller) BytesToBytes32

func (_NFTBridge *NFTBridgeCaller) BytesToBytes32(opts *bind.CallOpts, source []byte) ([32]byte, error)

BytesToBytes32 is a free data retrieval call binding the contract method 0xbfe370d9.

Solidity: function bytesToBytes32(bytes source) pure returns(bytes32 result)

func (*NFTBridgeCaller) ChainID

func (_NFTBridge *NFTBridgeCaller) ChainID(opts *bind.CallOpts) (uint8, error)

ChainID is a free data retrieval call binding the contract method 0xbeab7131.

Solidity: function _chainID() view returns(uint8)

func (*NFTBridgeCaller) DEFAULTADMINROLE

func (_NFTBridge *NFTBridgeCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*NFTBridgeCaller) DepositRecords

func (_NFTBridge *NFTBridgeCaller) DepositRecords(opts *bind.CallOpts, arg0 uint64, arg1 uint8) ([]byte, error)

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

Solidity: function _depositRecords(uint64 , uint8 ) view returns(bytes)

func (*NFTBridgeCaller) EcrecoverDecode

func (_NFTBridge *NFTBridgeCaller) EcrecoverDecode(opts *bind.CallOpts, signHash [32]byte, sign []byte) (common.Address, error)

EcrecoverDecode is a free data retrieval call binding the contract method 0x12494f48.

Solidity: function ecrecoverDecode(bytes32 signHash, bytes sign) pure returns(address addr)

func (*NFTBridgeCaller) FeeHandlerAddress

func (_NFTBridge *NFTBridgeCaller) FeeHandlerAddress(opts *bind.CallOpts) (common.Address, error)

FeeHandlerAddress is a free data retrieval call binding the contract method 0x7a4151d0.

Solidity: function feeHandlerAddress() view returns(address)

func (*NFTBridgeCaller) GetProposal

func (_NFTBridge *NFTBridgeCaller) GetProposal(opts *bind.CallOpts, originChainID uint8, depositNonce uint64, dataHash [32]byte) (NFTBridgeProposal, error)

GetProposal is a free data retrieval call binding the contract method 0xa9cf69fa.

Solidity: function getProposal(uint8 originChainID, uint64 depositNonce, bytes32 dataHash) view returns((bytes32,bytes32,address[],address[],uint8,uint256))

func (*NFTBridgeCaller) GetRoleAdmin

func (_NFTBridge *NFTBridgeCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*NFTBridgeCaller) GetRoleMember

func (_NFTBridge *NFTBridgeCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*NFTBridgeCaller) GetRoleMemberCount

func (_NFTBridge *NFTBridgeCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*NFTBridgeCaller) HasRole

func (_NFTBridge *NFTBridgeCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*NFTBridgeCaller) HasVotedOnProposal

func (_NFTBridge *NFTBridgeCaller) HasVotedOnProposal(opts *bind.CallOpts, arg0 *big.Int, arg1 [32]byte, arg2 common.Address) (bool, error)

HasVotedOnProposal is a free data retrieval call binding the contract method 0x7febe63f.

Solidity: function _hasVotedOnProposal(uint72 , bytes32 , address ) view returns(bool)

func (*NFTBridgeCaller) IsRelayer

func (_NFTBridge *NFTBridgeCaller) IsRelayer(opts *bind.CallOpts, relayer common.Address) (bool, error)

IsRelayer is a free data retrieval call binding the contract method 0x541d5548.

Solidity: function isRelayer(address relayer) view returns(bool)

func (*NFTBridgeCaller) Paused

func (_NFTBridge *NFTBridgeCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*NFTBridgeCaller) Proposals

func (_NFTBridge *NFTBridgeCaller) Proposals(opts *bind.CallOpts, arg0 *big.Int, arg1 [32]byte) (struct {
	ResourceID    [32]byte
	DataHash      [32]byte
	Status        uint8
	ProposedBlock *big.Int
}, error)

Proposals is a free data retrieval call binding the contract method 0x50598719.

Solidity: function _proposals(uint72 , bytes32 ) view returns(bytes32 _resourceID, bytes32 _dataHash, uint8 _status, uint256 _proposedBlock)

func (*NFTBridgeCaller) RELAYERROLE

func (_NFTBridge *NFTBridgeCaller) RELAYERROLE(opts *bind.CallOpts) ([32]byte, error)

RELAYERROLE is a free data retrieval call binding the contract method 0x926d7d7f.

Solidity: function RELAYER_ROLE() view returns(bytes32)

func (*NFTBridgeCaller) RelayerThreshold

func (_NFTBridge *NFTBridgeCaller) RelayerThreshold(opts *bind.CallOpts) (*big.Int, error)

RelayerThreshold is a free data retrieval call binding the contract method 0xd7a9cd79.

Solidity: function _relayerThreshold() view returns(uint256)

func (*NFTBridgeCaller) Slice

func (_NFTBridge *NFTBridgeCaller) Slice(opts *bind.CallOpts, data []byte, start *big.Int, len *big.Int) ([]byte, error)

Slice is a free data retrieval call binding the contract method 0xe0041396.

Solidity: function slice(bytes data, uint256 start, uint256 len) pure returns(bytes)

func (*NFTBridgeCaller) Src721HandlerAddress

func (_NFTBridge *NFTBridgeCaller) Src721HandlerAddress(opts *bind.CallOpts) (common.Address, error)

Src721HandlerAddress is a free data retrieval call binding the contract method 0xce804db7.

Solidity: function src721HandlerAddress() view returns(address)

func (*NFTBridgeCaller) TotalProposals

func (_NFTBridge *NFTBridgeCaller) TotalProposals(opts *bind.CallOpts) (*big.Int, error)

TotalProposals is a free data retrieval call binding the contract method 0x9d5773e0.

Solidity: function _totalProposals() view returns(uint256)

func (*NFTBridgeCaller) TotalRelayers

func (_NFTBridge *NFTBridgeCaller) TotalRelayers(opts *bind.CallOpts) (*big.Int, error)

TotalRelayers is a free data retrieval call binding the contract method 0x802aabe8.

Solidity: function _totalRelayers() view returns(uint256)

type NFTBridgeCallerRaw

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

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

func (*NFTBridgeCallerRaw) Call

func (_NFTBridge *NFTBridgeCallerRaw) 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 NFTBridgeCallerSession

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

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

func (*NFTBridgeCallerSession) BridgeCounterAddress

func (_NFTBridge *NFTBridgeCallerSession) BridgeCounterAddress() (common.Address, error)

BridgeCounterAddress is a free data retrieval call binding the contract method 0x50366faf.

Solidity: function bridgeCounterAddress() view returns(address)

func (*NFTBridgeCallerSession) BytesToBytes32

func (_NFTBridge *NFTBridgeCallerSession) BytesToBytes32(source []byte) ([32]byte, error)

BytesToBytes32 is a free data retrieval call binding the contract method 0xbfe370d9.

Solidity: function bytesToBytes32(bytes source) pure returns(bytes32 result)

func (*NFTBridgeCallerSession) ChainID

func (_NFTBridge *NFTBridgeCallerSession) ChainID() (uint8, error)

ChainID is a free data retrieval call binding the contract method 0xbeab7131.

Solidity: function _chainID() view returns(uint8)

func (*NFTBridgeCallerSession) DEFAULTADMINROLE

func (_NFTBridge *NFTBridgeCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*NFTBridgeCallerSession) DepositRecords

func (_NFTBridge *NFTBridgeCallerSession) DepositRecords(arg0 uint64, arg1 uint8) ([]byte, error)

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

Solidity: function _depositRecords(uint64 , uint8 ) view returns(bytes)

func (*NFTBridgeCallerSession) EcrecoverDecode

func (_NFTBridge *NFTBridgeCallerSession) EcrecoverDecode(signHash [32]byte, sign []byte) (common.Address, error)

EcrecoverDecode is a free data retrieval call binding the contract method 0x12494f48.

Solidity: function ecrecoverDecode(bytes32 signHash, bytes sign) pure returns(address addr)

func (*NFTBridgeCallerSession) FeeHandlerAddress

func (_NFTBridge *NFTBridgeCallerSession) FeeHandlerAddress() (common.Address, error)

FeeHandlerAddress is a free data retrieval call binding the contract method 0x7a4151d0.

Solidity: function feeHandlerAddress() view returns(address)

func (*NFTBridgeCallerSession) GetProposal

func (_NFTBridge *NFTBridgeCallerSession) GetProposal(originChainID uint8, depositNonce uint64, dataHash [32]byte) (NFTBridgeProposal, error)

GetProposal is a free data retrieval call binding the contract method 0xa9cf69fa.

Solidity: function getProposal(uint8 originChainID, uint64 depositNonce, bytes32 dataHash) view returns((bytes32,bytes32,address[],address[],uint8,uint256))

func (*NFTBridgeCallerSession) GetRoleAdmin

func (_NFTBridge *NFTBridgeCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*NFTBridgeCallerSession) GetRoleMember

func (_NFTBridge *NFTBridgeCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*NFTBridgeCallerSession) GetRoleMemberCount

func (_NFTBridge *NFTBridgeCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*NFTBridgeCallerSession) HasRole

func (_NFTBridge *NFTBridgeCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*NFTBridgeCallerSession) HasVotedOnProposal

func (_NFTBridge *NFTBridgeCallerSession) HasVotedOnProposal(arg0 *big.Int, arg1 [32]byte, arg2 common.Address) (bool, error)

HasVotedOnProposal is a free data retrieval call binding the contract method 0x7febe63f.

Solidity: function _hasVotedOnProposal(uint72 , bytes32 , address ) view returns(bool)

func (*NFTBridgeCallerSession) IsRelayer

func (_NFTBridge *NFTBridgeCallerSession) IsRelayer(relayer common.Address) (bool, error)

IsRelayer is a free data retrieval call binding the contract method 0x541d5548.

Solidity: function isRelayer(address relayer) view returns(bool)

func (*NFTBridgeCallerSession) Paused

func (_NFTBridge *NFTBridgeCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*NFTBridgeCallerSession) Proposals

func (_NFTBridge *NFTBridgeCallerSession) Proposals(arg0 *big.Int, arg1 [32]byte) (struct {
	ResourceID    [32]byte
	DataHash      [32]byte
	Status        uint8
	ProposedBlock *big.Int
}, error)

Proposals is a free data retrieval call binding the contract method 0x50598719.

Solidity: function _proposals(uint72 , bytes32 ) view returns(bytes32 _resourceID, bytes32 _dataHash, uint8 _status, uint256 _proposedBlock)

func (*NFTBridgeCallerSession) RELAYERROLE

func (_NFTBridge *NFTBridgeCallerSession) RELAYERROLE() ([32]byte, error)

RELAYERROLE is a free data retrieval call binding the contract method 0x926d7d7f.

Solidity: function RELAYER_ROLE() view returns(bytes32)

func (*NFTBridgeCallerSession) RelayerThreshold

func (_NFTBridge *NFTBridgeCallerSession) RelayerThreshold() (*big.Int, error)

RelayerThreshold is a free data retrieval call binding the contract method 0xd7a9cd79.

Solidity: function _relayerThreshold() view returns(uint256)

func (*NFTBridgeCallerSession) Slice

func (_NFTBridge *NFTBridgeCallerSession) Slice(data []byte, start *big.Int, len *big.Int) ([]byte, error)

Slice is a free data retrieval call binding the contract method 0xe0041396.

Solidity: function slice(bytes data, uint256 start, uint256 len) pure returns(bytes)

func (*NFTBridgeCallerSession) Src721HandlerAddress

func (_NFTBridge *NFTBridgeCallerSession) Src721HandlerAddress() (common.Address, error)

Src721HandlerAddress is a free data retrieval call binding the contract method 0xce804db7.

Solidity: function src721HandlerAddress() view returns(address)

func (*NFTBridgeCallerSession) TotalProposals

func (_NFTBridge *NFTBridgeCallerSession) TotalProposals() (*big.Int, error)

TotalProposals is a free data retrieval call binding the contract method 0x9d5773e0.

Solidity: function _totalProposals() view returns(uint256)

func (*NFTBridgeCallerSession) TotalRelayers

func (_NFTBridge *NFTBridgeCallerSession) TotalRelayers() (*big.Int, error)

TotalRelayers is a free data retrieval call binding the contract method 0x802aabe8.

Solidity: function _totalRelayers() view returns(uint256)

type NFTBridgeDeposit

type NFTBridgeDeposit struct {
	DestinationChainID uint8
	ResourceID         [32]byte
	DepositNonce       uint64
	Raw                types.Log // Blockchain specific contextual infos
}

NFTBridgeDeposit represents a Deposit event raised by the NFTBridge contract.

type NFTBridgeDepositIterator

type NFTBridgeDepositIterator struct {
	Event *NFTBridgeDeposit // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NFTBridgeDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the NFTBridge contract.

func (*NFTBridgeDepositIterator) Close

func (it *NFTBridgeDepositIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*NFTBridgeDepositIterator) Error

func (it *NFTBridgeDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBridgeDepositIterator) Next

func (it *NFTBridgeDepositIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NFTBridgeFilterer

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

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

func NewNFTBridgeFilterer

func NewNFTBridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*NFTBridgeFilterer, error)

NewNFTBridgeFilterer creates a new log filterer instance of NFTBridge, bound to a specific deployed contract.

func (*NFTBridgeFilterer) FilterDeposit

func (_NFTBridge *NFTBridgeFilterer) FilterDeposit(opts *bind.FilterOpts, destinationChainID []uint8, resourceID [][32]byte, depositNonce []uint64) (*NFTBridgeDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0xdbb69440df8433824a026ef190652f29929eb64b4d1d5d2a69be8afe3e6eaed8.

Solidity: event Deposit(uint8 indexed destinationChainID, bytes32 indexed resourceID, uint64 indexed depositNonce)

func (*NFTBridgeFilterer) FilterPaused

func (_NFTBridge *NFTBridgeFilterer) FilterPaused(opts *bind.FilterOpts) (*NFTBridgePausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*NFTBridgeFilterer) FilterProposalEvent

func (_NFTBridge *NFTBridgeFilterer) FilterProposalEvent(opts *bind.FilterOpts, originChainID []uint8, depositNonce []uint64, status []uint8) (*NFTBridgeProposalEventIterator, error)

FilterProposalEvent is a free log retrieval operation binding the contract event 0x803c5a12f6bde629cea32e63d4b92d1b560816a6fb72e939d3c89e1cab650417.

Solidity: event ProposalEvent(uint8 indexed originChainID, uint64 indexed depositNonce, uint8 indexed status, bytes32 resourceID, bytes32 dataHash)

func (*NFTBridgeFilterer) FilterRelayerAdded

func (_NFTBridge *NFTBridgeFilterer) FilterRelayerAdded(opts *bind.FilterOpts, relayer []common.Address) (*NFTBridgeRelayerAddedIterator, error)

FilterRelayerAdded is a free log retrieval operation binding the contract event 0x03580ee9f53a62b7cb409a2cb56f9be87747dd15017afc5cef6eef321e4fb2c5.

Solidity: event RelayerAdded(address indexed relayer)

func (*NFTBridgeFilterer) FilterRelayerRemoved

func (_NFTBridge *NFTBridgeFilterer) FilterRelayerRemoved(opts *bind.FilterOpts, relayer []common.Address) (*NFTBridgeRelayerRemovedIterator, error)

FilterRelayerRemoved is a free log retrieval operation binding the contract event 0x10e1f7ce9fd7d1b90a66d13a2ab3cb8dd7f29f3f8d520b143b063ccfbab6906b.

Solidity: event RelayerRemoved(address indexed relayer)

func (*NFTBridgeFilterer) FilterRelayerThresholdChanged

func (_NFTBridge *NFTBridgeFilterer) FilterRelayerThresholdChanged(opts *bind.FilterOpts, newThreshold []*big.Int) (*NFTBridgeRelayerThresholdChangedIterator, error)

FilterRelayerThresholdChanged is a free log retrieval operation binding the contract event 0xa20d6b84cd798a24038be305eff8a45ca82ef54a2aa2082005d8e14c0a4746c8.

Solidity: event RelayerThresholdChanged(uint256 indexed newThreshold)

func (*NFTBridgeFilterer) FilterRoleGranted

func (_NFTBridge *NFTBridgeFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*NFTBridgeRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*NFTBridgeFilterer) FilterRoleRevoked

func (_NFTBridge *NFTBridgeFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*NFTBridgeRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*NFTBridgeFilterer) FilterUnpaused

func (_NFTBridge *NFTBridgeFilterer) FilterUnpaused(opts *bind.FilterOpts) (*NFTBridgeUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*NFTBridgeFilterer) ParseDeposit

func (_NFTBridge *NFTBridgeFilterer) ParseDeposit(log types.Log) (*NFTBridgeDeposit, error)

ParseDeposit is a log parse operation binding the contract event 0xdbb69440df8433824a026ef190652f29929eb64b4d1d5d2a69be8afe3e6eaed8.

Solidity: event Deposit(uint8 indexed destinationChainID, bytes32 indexed resourceID, uint64 indexed depositNonce)

func (*NFTBridgeFilterer) ParsePaused

func (_NFTBridge *NFTBridgeFilterer) ParsePaused(log types.Log) (*NFTBridgePaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*NFTBridgeFilterer) ParseProposalEvent

func (_NFTBridge *NFTBridgeFilterer) ParseProposalEvent(log types.Log) (*NFTBridgeProposalEvent, error)

ParseProposalEvent is a log parse operation binding the contract event 0x803c5a12f6bde629cea32e63d4b92d1b560816a6fb72e939d3c89e1cab650417.

Solidity: event ProposalEvent(uint8 indexed originChainID, uint64 indexed depositNonce, uint8 indexed status, bytes32 resourceID, bytes32 dataHash)

func (*NFTBridgeFilterer) ParseRelayerAdded

func (_NFTBridge *NFTBridgeFilterer) ParseRelayerAdded(log types.Log) (*NFTBridgeRelayerAdded, error)

ParseRelayerAdded is a log parse operation binding the contract event 0x03580ee9f53a62b7cb409a2cb56f9be87747dd15017afc5cef6eef321e4fb2c5.

Solidity: event RelayerAdded(address indexed relayer)

func (*NFTBridgeFilterer) ParseRelayerRemoved

func (_NFTBridge *NFTBridgeFilterer) ParseRelayerRemoved(log types.Log) (*NFTBridgeRelayerRemoved, error)

ParseRelayerRemoved is a log parse operation binding the contract event 0x10e1f7ce9fd7d1b90a66d13a2ab3cb8dd7f29f3f8d520b143b063ccfbab6906b.

Solidity: event RelayerRemoved(address indexed relayer)

func (*NFTBridgeFilterer) ParseRelayerThresholdChanged

func (_NFTBridge *NFTBridgeFilterer) ParseRelayerThresholdChanged(log types.Log) (*NFTBridgeRelayerThresholdChanged, error)

ParseRelayerThresholdChanged is a log parse operation binding the contract event 0xa20d6b84cd798a24038be305eff8a45ca82ef54a2aa2082005d8e14c0a4746c8.

Solidity: event RelayerThresholdChanged(uint256 indexed newThreshold)

func (*NFTBridgeFilterer) ParseRoleGranted

func (_NFTBridge *NFTBridgeFilterer) ParseRoleGranted(log types.Log) (*NFTBridgeRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*NFTBridgeFilterer) ParseRoleRevoked

func (_NFTBridge *NFTBridgeFilterer) ParseRoleRevoked(log types.Log) (*NFTBridgeRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*NFTBridgeFilterer) ParseUnpaused

func (_NFTBridge *NFTBridgeFilterer) ParseUnpaused(log types.Log) (*NFTBridgeUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*NFTBridgeFilterer) WatchDeposit

func (_NFTBridge *NFTBridgeFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *NFTBridgeDeposit, destinationChainID []uint8, resourceID [][32]byte, depositNonce []uint64) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0xdbb69440df8433824a026ef190652f29929eb64b4d1d5d2a69be8afe3e6eaed8.

Solidity: event Deposit(uint8 indexed destinationChainID, bytes32 indexed resourceID, uint64 indexed depositNonce)

func (*NFTBridgeFilterer) WatchPaused

func (_NFTBridge *NFTBridgeFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *NFTBridgePaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*NFTBridgeFilterer) WatchProposalEvent

func (_NFTBridge *NFTBridgeFilterer) WatchProposalEvent(opts *bind.WatchOpts, sink chan<- *NFTBridgeProposalEvent, originChainID []uint8, depositNonce []uint64, status []uint8) (event.Subscription, error)

WatchProposalEvent is a free log subscription operation binding the contract event 0x803c5a12f6bde629cea32e63d4b92d1b560816a6fb72e939d3c89e1cab650417.

Solidity: event ProposalEvent(uint8 indexed originChainID, uint64 indexed depositNonce, uint8 indexed status, bytes32 resourceID, bytes32 dataHash)

func (*NFTBridgeFilterer) WatchRelayerAdded

func (_NFTBridge *NFTBridgeFilterer) WatchRelayerAdded(opts *bind.WatchOpts, sink chan<- *NFTBridgeRelayerAdded, relayer []common.Address) (event.Subscription, error)

WatchRelayerAdded is a free log subscription operation binding the contract event 0x03580ee9f53a62b7cb409a2cb56f9be87747dd15017afc5cef6eef321e4fb2c5.

Solidity: event RelayerAdded(address indexed relayer)

func (*NFTBridgeFilterer) WatchRelayerRemoved

func (_NFTBridge *NFTBridgeFilterer) WatchRelayerRemoved(opts *bind.WatchOpts, sink chan<- *NFTBridgeRelayerRemoved, relayer []common.Address) (event.Subscription, error)

WatchRelayerRemoved is a free log subscription operation binding the contract event 0x10e1f7ce9fd7d1b90a66d13a2ab3cb8dd7f29f3f8d520b143b063ccfbab6906b.

Solidity: event RelayerRemoved(address indexed relayer)

func (*NFTBridgeFilterer) WatchRelayerThresholdChanged

func (_NFTBridge *NFTBridgeFilterer) WatchRelayerThresholdChanged(opts *bind.WatchOpts, sink chan<- *NFTBridgeRelayerThresholdChanged, newThreshold []*big.Int) (event.Subscription, error)

WatchRelayerThresholdChanged is a free log subscription operation binding the contract event 0xa20d6b84cd798a24038be305eff8a45ca82ef54a2aa2082005d8e14c0a4746c8.

Solidity: event RelayerThresholdChanged(uint256 indexed newThreshold)

func (*NFTBridgeFilterer) WatchRoleGranted

func (_NFTBridge *NFTBridgeFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *NFTBridgeRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*NFTBridgeFilterer) WatchRoleRevoked

func (_NFTBridge *NFTBridgeFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *NFTBridgeRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*NFTBridgeFilterer) WatchUnpaused

func (_NFTBridge *NFTBridgeFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *NFTBridgeUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

type NFTBridgePaused

type NFTBridgePaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

NFTBridgePaused represents a Paused event raised by the NFTBridge contract.

type NFTBridgePausedIterator

type NFTBridgePausedIterator struct {
	Event *NFTBridgePaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NFTBridgePausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the NFTBridge contract.

func (*NFTBridgePausedIterator) Close

func (it *NFTBridgePausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*NFTBridgePausedIterator) Error

func (it *NFTBridgePausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBridgePausedIterator) Next

func (it *NFTBridgePausedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NFTBridgeProposal

type NFTBridgeProposal struct {
	ResourceID    [32]byte
	DataHash      [32]byte
	YesVotes      []common.Address
	NoVotes       []common.Address
	Status        uint8
	ProposedBlock *big.Int
}

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

type NFTBridgeProposalEvent

type NFTBridgeProposalEvent struct {
	OriginChainID uint8
	DepositNonce  uint64
	Status        uint8
	ResourceID    [32]byte
	DataHash      [32]byte
	Raw           types.Log // Blockchain specific contextual infos
}

NFTBridgeProposalEvent represents a ProposalEvent event raised by the NFTBridge contract.

type NFTBridgeProposalEventIterator

type NFTBridgeProposalEventIterator struct {
	Event *NFTBridgeProposalEvent // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NFTBridgeProposalEventIterator is returned from FilterProposalEvent and is used to iterate over the raw logs and unpacked data for ProposalEvent events raised by the NFTBridge contract.

func (*NFTBridgeProposalEventIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NFTBridgeProposalEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBridgeProposalEventIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NFTBridgeRaw

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

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

func (*NFTBridgeRaw) Call

func (_NFTBridge *NFTBridgeRaw) 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 (*NFTBridgeRaw) Transact

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

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

func (*NFTBridgeRaw) Transfer

func (_NFTBridge *NFTBridgeRaw) 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 NFTBridgeRelayerAdded

type NFTBridgeRelayerAdded struct {
	Relayer common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

NFTBridgeRelayerAdded represents a RelayerAdded event raised by the NFTBridge contract.

type NFTBridgeRelayerAddedIterator

type NFTBridgeRelayerAddedIterator struct {
	Event *NFTBridgeRelayerAdded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NFTBridgeRelayerAddedIterator is returned from FilterRelayerAdded and is used to iterate over the raw logs and unpacked data for RelayerAdded events raised by the NFTBridge contract.

func (*NFTBridgeRelayerAddedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NFTBridgeRelayerAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBridgeRelayerAddedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NFTBridgeRelayerRemoved

type NFTBridgeRelayerRemoved struct {
	Relayer common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

NFTBridgeRelayerRemoved represents a RelayerRemoved event raised by the NFTBridge contract.

type NFTBridgeRelayerRemovedIterator

type NFTBridgeRelayerRemovedIterator struct {
	Event *NFTBridgeRelayerRemoved // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NFTBridgeRelayerRemovedIterator is returned from FilterRelayerRemoved and is used to iterate over the raw logs and unpacked data for RelayerRemoved events raised by the NFTBridge contract.

func (*NFTBridgeRelayerRemovedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NFTBridgeRelayerRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBridgeRelayerRemovedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NFTBridgeRelayerThresholdChanged

type NFTBridgeRelayerThresholdChanged struct {
	NewThreshold *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

NFTBridgeRelayerThresholdChanged represents a RelayerThresholdChanged event raised by the NFTBridge contract.

type NFTBridgeRelayerThresholdChangedIterator

type NFTBridgeRelayerThresholdChangedIterator struct {
	Event *NFTBridgeRelayerThresholdChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NFTBridgeRelayerThresholdChangedIterator is returned from FilterRelayerThresholdChanged and is used to iterate over the raw logs and unpacked data for RelayerThresholdChanged events raised by the NFTBridge contract.

func (*NFTBridgeRelayerThresholdChangedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NFTBridgeRelayerThresholdChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBridgeRelayerThresholdChangedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NFTBridgeRoleGranted

type NFTBridgeRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

NFTBridgeRoleGranted represents a RoleGranted event raised by the NFTBridge contract.

type NFTBridgeRoleGrantedIterator

type NFTBridgeRoleGrantedIterator struct {
	Event *NFTBridgeRoleGranted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NFTBridgeRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the NFTBridge contract.

func (*NFTBridgeRoleGrantedIterator) Close

func (it *NFTBridgeRoleGrantedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*NFTBridgeRoleGrantedIterator) Error

func (it *NFTBridgeRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBridgeRoleGrantedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NFTBridgeRoleRevoked

type NFTBridgeRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

NFTBridgeRoleRevoked represents a RoleRevoked event raised by the NFTBridge contract.

type NFTBridgeRoleRevokedIterator

type NFTBridgeRoleRevokedIterator struct {
	Event *NFTBridgeRoleRevoked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NFTBridgeRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the NFTBridge contract.

func (*NFTBridgeRoleRevokedIterator) Close

func (it *NFTBridgeRoleRevokedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*NFTBridgeRoleRevokedIterator) Error

func (it *NFTBridgeRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBridgeRoleRevokedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NFTBridgeSession

type NFTBridgeSession struct {
	Contract     *NFTBridge        // 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
}

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

func (*NFTBridgeSession) AdminAddRelayer

func (_NFTBridge *NFTBridgeSession) AdminAddRelayer(relayerAddress common.Address) (*types.Transaction, error)

AdminAddRelayer is a paid mutator transaction binding the contract method 0xcdb0f73a.

Solidity: function adminAddRelayer(address relayerAddress) returns()

func (*NFTBridgeSession) AdminChangeRelayerThreshold

func (_NFTBridge *NFTBridgeSession) AdminChangeRelayerThreshold(newThreshold *big.Int) (*types.Transaction, error)

AdminChangeRelayerThreshold is a paid mutator transaction binding the contract method 0x4e056005.

Solidity: function adminChangeRelayerThreshold(uint256 newThreshold) returns()

func (*NFTBridgeSession) AdminPauseTransfers

func (_NFTBridge *NFTBridgeSession) AdminPauseTransfers() (*types.Transaction, error)

AdminPauseTransfers is a paid mutator transaction binding the contract method 0x80ae1c28.

Solidity: function adminPauseTransfers() returns()

func (*NFTBridgeSession) AdminRemoveRelayer

func (_NFTBridge *NFTBridgeSession) AdminRemoveRelayer(relayerAddress common.Address) (*types.Transaction, error)

AdminRemoveRelayer is a paid mutator transaction binding the contract method 0x9d82dd63.

Solidity: function adminRemoveRelayer(address relayerAddress) returns()

func (*NFTBridgeSession) AdminSetBridgeCounterContract

func (_NFTBridge *NFTBridgeSession) AdminSetBridgeCounterContract(bridgeCounter_ common.Address) (*types.Transaction, error)

AdminSetBridgeCounterContract is a paid mutator transaction binding the contract method 0x12d93656.

Solidity: function adminSetBridgeCounterContract(address bridgeCounter_) returns()

func (*NFTBridgeSession) AdminSetBurnable

func (_NFTBridge *NFTBridgeSession) AdminSetBurnable(tokenAddress common.Address) (*types.Transaction, error)

AdminSetBurnable is a paid mutator transaction binding the contract method 0x1ba3d96c.

Solidity: function adminSetBurnable(address tokenAddress) returns()

func (*NFTBridgeSession) AdminSetFeeHandler

func (_NFTBridge *NFTBridgeSession) AdminSetFeeHandler(resourceId [32]byte, feeHandlerAddress_ common.Address, feeTokenAddress common.Address) (*types.Transaction, error)

AdminSetFeeHandler is a paid mutator transaction binding the contract method 0xa78507d9.

Solidity: function adminSetFeeHandler(bytes32 resourceId, address feeHandlerAddress_, address feeTokenAddress) returns()

func (*NFTBridgeSession) AdminSetResource

func (_NFTBridge *NFTBridgeSession) AdminSetResource(handlerAddress common.Address, resourceID [32]byte, tokenAddress common.Address) (*types.Transaction, error)

AdminSetResource is a paid mutator transaction binding the contract method 0xcb10f215.

Solidity: function adminSetResource(address handlerAddress, bytes32 resourceID, address tokenAddress) returns()

func (*NFTBridgeSession) AdminUnpauseTransfers

func (_NFTBridge *NFTBridgeSession) AdminUnpauseTransfers() (*types.Transaction, error)

AdminUnpauseTransfers is a paid mutator transaction binding the contract method 0xffaac0eb.

Solidity: function adminUnpauseTransfers() returns()

func (*NFTBridgeSession) AdminWithdraw

func (_NFTBridge *NFTBridgeSession) AdminWithdraw(handlerAddress common.Address, tokenAddress common.Address, recipient common.Address, tokenId *big.Int) (*types.Transaction, error)

AdminWithdraw is a paid mutator transaction binding the contract method 0x780cf004.

Solidity: function adminWithdraw(address handlerAddress, address tokenAddress, address recipient, uint256 tokenId) returns()

func (*NFTBridgeSession) BridgeCounterAddress

func (_NFTBridge *NFTBridgeSession) BridgeCounterAddress() (common.Address, error)

BridgeCounterAddress is a free data retrieval call binding the contract method 0x50366faf.

Solidity: function bridgeCounterAddress() view returns(address)

func (*NFTBridgeSession) BytesToBytes32

func (_NFTBridge *NFTBridgeSession) BytesToBytes32(source []byte) ([32]byte, error)

BytesToBytes32 is a free data retrieval call binding the contract method 0xbfe370d9.

Solidity: function bytesToBytes32(bytes source) pure returns(bytes32 result)

func (*NFTBridgeSession) CancelProposal

func (_NFTBridge *NFTBridgeSession) CancelProposal(chainID uint8, depositNonce uint64, dataHash [32]byte) (*types.Transaction, error)

CancelProposal is a paid mutator transaction binding the contract method 0x17f03ce5.

Solidity: function cancelProposal(uint8 chainID, uint64 depositNonce, bytes32 dataHash) returns()

func (*NFTBridgeSession) ChainID

func (_NFTBridge *NFTBridgeSession) ChainID() (uint8, error)

ChainID is a free data retrieval call binding the contract method 0xbeab7131.

Solidity: function _chainID() view returns(uint8)

func (*NFTBridgeSession) CommitVotes

func (_NFTBridge *NFTBridgeSession) CommitVotes(originChainID uint8, depositNonce uint64, resourceID [32]byte, asset []byte, signs [][]byte) (*types.Transaction, error)

CommitVotes is a paid mutator transaction binding the contract method 0xb70021a9.

Solidity: function commitVotes(uint8 originChainID, uint64 depositNonce, bytes32 resourceID, bytes asset, bytes[] signs) returns()

func (*NFTBridgeSession) DEFAULTADMINROLE

func (_NFTBridge *NFTBridgeSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*NFTBridgeSession) DepositNFT

func (_NFTBridge *NFTBridgeSession) DepositNFT(destinationChainID uint8, resourceID [32]byte, recipient []byte, tokenId *big.Int) (*types.Transaction, error)

DepositNFT is a paid mutator transaction binding the contract method 0xdfeed9f6.

Solidity: function depositNFT(uint8 destinationChainID, bytes32 resourceID, bytes recipient, uint256 tokenId) returns()

func (*NFTBridgeSession) DepositRecords

func (_NFTBridge *NFTBridgeSession) DepositRecords(arg0 uint64, arg1 uint8) ([]byte, error)

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

Solidity: function _depositRecords(uint64 , uint8 ) view returns(bytes)

func (*NFTBridgeSession) EcrecoverDecode

func (_NFTBridge *NFTBridgeSession) EcrecoverDecode(signHash [32]byte, sign []byte) (common.Address, error)

EcrecoverDecode is a free data retrieval call binding the contract method 0x12494f48.

Solidity: function ecrecoverDecode(bytes32 signHash, bytes sign) pure returns(address addr)

func (*NFTBridgeSession) FeeHandlerAddress

func (_NFTBridge *NFTBridgeSession) FeeHandlerAddress() (common.Address, error)

FeeHandlerAddress is a free data retrieval call binding the contract method 0x7a4151d0.

Solidity: function feeHandlerAddress() view returns(address)

func (*NFTBridgeSession) GetProposal

func (_NFTBridge *NFTBridgeSession) GetProposal(originChainID uint8, depositNonce uint64, dataHash [32]byte) (NFTBridgeProposal, error)

GetProposal is a free data retrieval call binding the contract method 0xa9cf69fa.

Solidity: function getProposal(uint8 originChainID, uint64 depositNonce, bytes32 dataHash) view returns((bytes32,bytes32,address[],address[],uint8,uint256))

func (*NFTBridgeSession) GetRoleAdmin

func (_NFTBridge *NFTBridgeSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*NFTBridgeSession) GetRoleMember

func (_NFTBridge *NFTBridgeSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*NFTBridgeSession) GetRoleMemberCount

func (_NFTBridge *NFTBridgeSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*NFTBridgeSession) GrantRole

func (_NFTBridge *NFTBridgeSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*NFTBridgeSession) HasRole

func (_NFTBridge *NFTBridgeSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*NFTBridgeSession) HasVotedOnProposal

func (_NFTBridge *NFTBridgeSession) HasVotedOnProposal(arg0 *big.Int, arg1 [32]byte, arg2 common.Address) (bool, error)

HasVotedOnProposal is a free data retrieval call binding the contract method 0x7febe63f.

Solidity: function _hasVotedOnProposal(uint72 , bytes32 , address ) view returns(bool)

func (*NFTBridgeSession) IsRelayer

func (_NFTBridge *NFTBridgeSession) IsRelayer(relayer common.Address) (bool, error)

IsRelayer is a free data retrieval call binding the contract method 0x541d5548.

Solidity: function isRelayer(address relayer) view returns(bool)

func (*NFTBridgeSession) Paused

func (_NFTBridge *NFTBridgeSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*NFTBridgeSession) Proposals

func (_NFTBridge *NFTBridgeSession) Proposals(arg0 *big.Int, arg1 [32]byte) (struct {
	ResourceID    [32]byte
	DataHash      [32]byte
	Status        uint8
	ProposedBlock *big.Int
}, error)

Proposals is a free data retrieval call binding the contract method 0x50598719.

Solidity: function _proposals(uint72 , bytes32 ) view returns(bytes32 _resourceID, bytes32 _dataHash, uint8 _status, uint256 _proposedBlock)

func (*NFTBridgeSession) RELAYERROLE

func (_NFTBridge *NFTBridgeSession) RELAYERROLE() ([32]byte, error)

RELAYERROLE is a free data retrieval call binding the contract method 0x926d7d7f.

Solidity: function RELAYER_ROLE() view returns(bytes32)

func (*NFTBridgeSession) RelayerThreshold

func (_NFTBridge *NFTBridgeSession) RelayerThreshold() (*big.Int, error)

RelayerThreshold is a free data retrieval call binding the contract method 0xd7a9cd79.

Solidity: function _relayerThreshold() view returns(uint256)

func (*NFTBridgeSession) RenounceAdmin

func (_NFTBridge *NFTBridgeSession) RenounceAdmin(newAdmin common.Address) (*types.Transaction, error)

RenounceAdmin is a paid mutator transaction binding the contract method 0x5e1fab0f.

Solidity: function renounceAdmin(address newAdmin) returns()

func (*NFTBridgeSession) RenounceRole

func (_NFTBridge *NFTBridgeSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*NFTBridgeSession) RevokeRole

func (_NFTBridge *NFTBridgeSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*NFTBridgeSession) Slice

func (_NFTBridge *NFTBridgeSession) Slice(data []byte, start *big.Int, len *big.Int) ([]byte, error)

Slice is a free data retrieval call binding the contract method 0xe0041396.

Solidity: function slice(bytes data, uint256 start, uint256 len) pure returns(bytes)

func (*NFTBridgeSession) Src721HandlerAddress

func (_NFTBridge *NFTBridgeSession) Src721HandlerAddress() (common.Address, error)

Src721HandlerAddress is a free data retrieval call binding the contract method 0xce804db7.

Solidity: function src721HandlerAddress() view returns(address)

func (*NFTBridgeSession) TotalProposals

func (_NFTBridge *NFTBridgeSession) TotalProposals() (*big.Int, error)

TotalProposals is a free data retrieval call binding the contract method 0x9d5773e0.

Solidity: function _totalProposals() view returns(uint256)

func (*NFTBridgeSession) TotalRelayers

func (_NFTBridge *NFTBridgeSession) TotalRelayers() (*big.Int, error)

TotalRelayers is a free data retrieval call binding the contract method 0x802aabe8.

Solidity: function _totalRelayers() view returns(uint256)

type NFTBridgeTransactor

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

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

func NewNFTBridgeTransactor

func NewNFTBridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*NFTBridgeTransactor, error)

NewNFTBridgeTransactor creates a new write-only instance of NFTBridge, bound to a specific deployed contract.

func (*NFTBridgeTransactor) AdminAddRelayer

func (_NFTBridge *NFTBridgeTransactor) AdminAddRelayer(opts *bind.TransactOpts, relayerAddress common.Address) (*types.Transaction, error)

AdminAddRelayer is a paid mutator transaction binding the contract method 0xcdb0f73a.

Solidity: function adminAddRelayer(address relayerAddress) returns()

func (*NFTBridgeTransactor) AdminChangeRelayerThreshold

func (_NFTBridge *NFTBridgeTransactor) AdminChangeRelayerThreshold(opts *bind.TransactOpts, newThreshold *big.Int) (*types.Transaction, error)

AdminChangeRelayerThreshold is a paid mutator transaction binding the contract method 0x4e056005.

Solidity: function adminChangeRelayerThreshold(uint256 newThreshold) returns()

func (*NFTBridgeTransactor) AdminPauseTransfers

func (_NFTBridge *NFTBridgeTransactor) AdminPauseTransfers(opts *bind.TransactOpts) (*types.Transaction, error)

AdminPauseTransfers is a paid mutator transaction binding the contract method 0x80ae1c28.

Solidity: function adminPauseTransfers() returns()

func (*NFTBridgeTransactor) AdminRemoveRelayer

func (_NFTBridge *NFTBridgeTransactor) AdminRemoveRelayer(opts *bind.TransactOpts, relayerAddress common.Address) (*types.Transaction, error)

AdminRemoveRelayer is a paid mutator transaction binding the contract method 0x9d82dd63.

Solidity: function adminRemoveRelayer(address relayerAddress) returns()

func (*NFTBridgeTransactor) AdminSetBridgeCounterContract

func (_NFTBridge *NFTBridgeTransactor) AdminSetBridgeCounterContract(opts *bind.TransactOpts, bridgeCounter_ common.Address) (*types.Transaction, error)

AdminSetBridgeCounterContract is a paid mutator transaction binding the contract method 0x12d93656.

Solidity: function adminSetBridgeCounterContract(address bridgeCounter_) returns()

func (*NFTBridgeTransactor) AdminSetBurnable

func (_NFTBridge *NFTBridgeTransactor) AdminSetBurnable(opts *bind.TransactOpts, tokenAddress common.Address) (*types.Transaction, error)

AdminSetBurnable is a paid mutator transaction binding the contract method 0x1ba3d96c.

Solidity: function adminSetBurnable(address tokenAddress) returns()

func (*NFTBridgeTransactor) AdminSetFeeHandler

func (_NFTBridge *NFTBridgeTransactor) AdminSetFeeHandler(opts *bind.TransactOpts, resourceId [32]byte, feeHandlerAddress_ common.Address, feeTokenAddress common.Address) (*types.Transaction, error)

AdminSetFeeHandler is a paid mutator transaction binding the contract method 0xa78507d9.

Solidity: function adminSetFeeHandler(bytes32 resourceId, address feeHandlerAddress_, address feeTokenAddress) returns()

func (*NFTBridgeTransactor) AdminSetResource

func (_NFTBridge *NFTBridgeTransactor) AdminSetResource(opts *bind.TransactOpts, handlerAddress common.Address, resourceID [32]byte, tokenAddress common.Address) (*types.Transaction, error)

AdminSetResource is a paid mutator transaction binding the contract method 0xcb10f215.

Solidity: function adminSetResource(address handlerAddress, bytes32 resourceID, address tokenAddress) returns()

func (*NFTBridgeTransactor) AdminUnpauseTransfers

func (_NFTBridge *NFTBridgeTransactor) AdminUnpauseTransfers(opts *bind.TransactOpts) (*types.Transaction, error)

AdminUnpauseTransfers is a paid mutator transaction binding the contract method 0xffaac0eb.

Solidity: function adminUnpauseTransfers() returns()

func (*NFTBridgeTransactor) AdminWithdraw

func (_NFTBridge *NFTBridgeTransactor) AdminWithdraw(opts *bind.TransactOpts, handlerAddress common.Address, tokenAddress common.Address, recipient common.Address, tokenId *big.Int) (*types.Transaction, error)

AdminWithdraw is a paid mutator transaction binding the contract method 0x780cf004.

Solidity: function adminWithdraw(address handlerAddress, address tokenAddress, address recipient, uint256 tokenId) returns()

func (*NFTBridgeTransactor) CancelProposal

func (_NFTBridge *NFTBridgeTransactor) CancelProposal(opts *bind.TransactOpts, chainID uint8, depositNonce uint64, dataHash [32]byte) (*types.Transaction, error)

CancelProposal is a paid mutator transaction binding the contract method 0x17f03ce5.

Solidity: function cancelProposal(uint8 chainID, uint64 depositNonce, bytes32 dataHash) returns()

func (*NFTBridgeTransactor) CommitVotes

func (_NFTBridge *NFTBridgeTransactor) CommitVotes(opts *bind.TransactOpts, originChainID uint8, depositNonce uint64, resourceID [32]byte, asset []byte, signs [][]byte) (*types.Transaction, error)

CommitVotes is a paid mutator transaction binding the contract method 0xb70021a9.

Solidity: function commitVotes(uint8 originChainID, uint64 depositNonce, bytes32 resourceID, bytes asset, bytes[] signs) returns()

func (*NFTBridgeTransactor) DepositNFT

func (_NFTBridge *NFTBridgeTransactor) DepositNFT(opts *bind.TransactOpts, destinationChainID uint8, resourceID [32]byte, recipient []byte, tokenId *big.Int) (*types.Transaction, error)

DepositNFT is a paid mutator transaction binding the contract method 0xdfeed9f6.

Solidity: function depositNFT(uint8 destinationChainID, bytes32 resourceID, bytes recipient, uint256 tokenId) returns()

func (*NFTBridgeTransactor) GrantRole

func (_NFTBridge *NFTBridgeTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*NFTBridgeTransactor) RenounceAdmin

func (_NFTBridge *NFTBridgeTransactor) RenounceAdmin(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error)

RenounceAdmin is a paid mutator transaction binding the contract method 0x5e1fab0f.

Solidity: function renounceAdmin(address newAdmin) returns()

func (*NFTBridgeTransactor) RenounceRole

func (_NFTBridge *NFTBridgeTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*NFTBridgeTransactor) RevokeRole

func (_NFTBridge *NFTBridgeTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

type NFTBridgeTransactorRaw

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

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

func (*NFTBridgeTransactorRaw) Transact

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

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

func (*NFTBridgeTransactorRaw) Transfer

func (_NFTBridge *NFTBridgeTransactorRaw) 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 NFTBridgeTransactorSession

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

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

func (*NFTBridgeTransactorSession) AdminAddRelayer

func (_NFTBridge *NFTBridgeTransactorSession) AdminAddRelayer(relayerAddress common.Address) (*types.Transaction, error)

AdminAddRelayer is a paid mutator transaction binding the contract method 0xcdb0f73a.

Solidity: function adminAddRelayer(address relayerAddress) returns()

func (*NFTBridgeTransactorSession) AdminChangeRelayerThreshold

func (_NFTBridge *NFTBridgeTransactorSession) AdminChangeRelayerThreshold(newThreshold *big.Int) (*types.Transaction, error)

AdminChangeRelayerThreshold is a paid mutator transaction binding the contract method 0x4e056005.

Solidity: function adminChangeRelayerThreshold(uint256 newThreshold) returns()

func (*NFTBridgeTransactorSession) AdminPauseTransfers

func (_NFTBridge *NFTBridgeTransactorSession) AdminPauseTransfers() (*types.Transaction, error)

AdminPauseTransfers is a paid mutator transaction binding the contract method 0x80ae1c28.

Solidity: function adminPauseTransfers() returns()

func (*NFTBridgeTransactorSession) AdminRemoveRelayer

func (_NFTBridge *NFTBridgeTransactorSession) AdminRemoveRelayer(relayerAddress common.Address) (*types.Transaction, error)

AdminRemoveRelayer is a paid mutator transaction binding the contract method 0x9d82dd63.

Solidity: function adminRemoveRelayer(address relayerAddress) returns()

func (*NFTBridgeTransactorSession) AdminSetBridgeCounterContract

func (_NFTBridge *NFTBridgeTransactorSession) AdminSetBridgeCounterContract(bridgeCounter_ common.Address) (*types.Transaction, error)

AdminSetBridgeCounterContract is a paid mutator transaction binding the contract method 0x12d93656.

Solidity: function adminSetBridgeCounterContract(address bridgeCounter_) returns()

func (*NFTBridgeTransactorSession) AdminSetBurnable

func (_NFTBridge *NFTBridgeTransactorSession) AdminSetBurnable(tokenAddress common.Address) (*types.Transaction, error)

AdminSetBurnable is a paid mutator transaction binding the contract method 0x1ba3d96c.

Solidity: function adminSetBurnable(address tokenAddress) returns()

func (*NFTBridgeTransactorSession) AdminSetFeeHandler

func (_NFTBridge *NFTBridgeTransactorSession) AdminSetFeeHandler(resourceId [32]byte, feeHandlerAddress_ common.Address, feeTokenAddress common.Address) (*types.Transaction, error)

AdminSetFeeHandler is a paid mutator transaction binding the contract method 0xa78507d9.

Solidity: function adminSetFeeHandler(bytes32 resourceId, address feeHandlerAddress_, address feeTokenAddress) returns()

func (*NFTBridgeTransactorSession) AdminSetResource

func (_NFTBridge *NFTBridgeTransactorSession) AdminSetResource(handlerAddress common.Address, resourceID [32]byte, tokenAddress common.Address) (*types.Transaction, error)

AdminSetResource is a paid mutator transaction binding the contract method 0xcb10f215.

Solidity: function adminSetResource(address handlerAddress, bytes32 resourceID, address tokenAddress) returns()

func (*NFTBridgeTransactorSession) AdminUnpauseTransfers

func (_NFTBridge *NFTBridgeTransactorSession) AdminUnpauseTransfers() (*types.Transaction, error)

AdminUnpauseTransfers is a paid mutator transaction binding the contract method 0xffaac0eb.

Solidity: function adminUnpauseTransfers() returns()

func (*NFTBridgeTransactorSession) AdminWithdraw

func (_NFTBridge *NFTBridgeTransactorSession) AdminWithdraw(handlerAddress common.Address, tokenAddress common.Address, recipient common.Address, tokenId *big.Int) (*types.Transaction, error)

AdminWithdraw is a paid mutator transaction binding the contract method 0x780cf004.

Solidity: function adminWithdraw(address handlerAddress, address tokenAddress, address recipient, uint256 tokenId) returns()

func (*NFTBridgeTransactorSession) CancelProposal

func (_NFTBridge *NFTBridgeTransactorSession) CancelProposal(chainID uint8, depositNonce uint64, dataHash [32]byte) (*types.Transaction, error)

CancelProposal is a paid mutator transaction binding the contract method 0x17f03ce5.

Solidity: function cancelProposal(uint8 chainID, uint64 depositNonce, bytes32 dataHash) returns()

func (*NFTBridgeTransactorSession) CommitVotes

func (_NFTBridge *NFTBridgeTransactorSession) CommitVotes(originChainID uint8, depositNonce uint64, resourceID [32]byte, asset []byte, signs [][]byte) (*types.Transaction, error)

CommitVotes is a paid mutator transaction binding the contract method 0xb70021a9.

Solidity: function commitVotes(uint8 originChainID, uint64 depositNonce, bytes32 resourceID, bytes asset, bytes[] signs) returns()

func (*NFTBridgeTransactorSession) DepositNFT

func (_NFTBridge *NFTBridgeTransactorSession) DepositNFT(destinationChainID uint8, resourceID [32]byte, recipient []byte, tokenId *big.Int) (*types.Transaction, error)

DepositNFT is a paid mutator transaction binding the contract method 0xdfeed9f6.

Solidity: function depositNFT(uint8 destinationChainID, bytes32 resourceID, bytes recipient, uint256 tokenId) returns()

func (*NFTBridgeTransactorSession) GrantRole

func (_NFTBridge *NFTBridgeTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*NFTBridgeTransactorSession) RenounceAdmin

func (_NFTBridge *NFTBridgeTransactorSession) RenounceAdmin(newAdmin common.Address) (*types.Transaction, error)

RenounceAdmin is a paid mutator transaction binding the contract method 0x5e1fab0f.

Solidity: function renounceAdmin(address newAdmin) returns()

func (*NFTBridgeTransactorSession) RenounceRole

func (_NFTBridge *NFTBridgeTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*NFTBridgeTransactorSession) RevokeRole

func (_NFTBridge *NFTBridgeTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

type NFTBridgeUnpaused

type NFTBridgeUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

NFTBridgeUnpaused represents a Unpaused event raised by the NFTBridge contract.

type NFTBridgeUnpausedIterator

type NFTBridgeUnpausedIterator struct {
	Event *NFTBridgeUnpaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NFTBridgeUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the NFTBridge contract.

func (*NFTBridgeUnpausedIterator) Close

func (it *NFTBridgeUnpausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*NFTBridgeUnpausedIterator) Error

func (it *NFTBridgeUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBridgeUnpausedIterator) Next

func (it *NFTBridgeUnpausedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

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