Bridge

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 BridgeABI = "" /* 14191-byte string literal not displayed */

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

Variables

View Source
var BridgeBin = "" /* 39700-byte string literal not displayed */

BridgeBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	BridgeCaller     // Read-only binding to the contract
	BridgeTransactor // Write-only binding to the contract
	BridgeFilterer   // Log filterer for contract events
}

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

func DeployBridge

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

DeployBridge deploys a new Ethereum contract, binding an instance of Bridge to it.

func NewBridge

func NewBridge(address common.Address, backend bind.ContractBackend) (*Bridge, error)

NewBridge creates a new instance of Bridge, bound to a specific deployed contract.

type BridgeCaller

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

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

func NewBridgeCaller

func NewBridgeCaller(address common.Address, caller bind.ContractCaller) (*BridgeCaller, error)

NewBridgeCaller creates a new read-only instance of Bridge, bound to a specific deployed contract.

func (*BridgeCaller) ChainID

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) DEFAULTADMINROLE

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) DepositCounts

func (_Bridge *BridgeCaller) DepositCounts(opts *bind.CallOpts, arg0 uint8) (uint64, error)

DepositCounts is a free data retrieval call binding the contract method 0x4b0b919d.

Solidity: function _depositCounts(uint8 ) view returns(uint64)

func (*BridgeCaller) DepositRecords

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) Expiry

func (_Bridge *BridgeCaller) Expiry(opts *bind.CallOpts) (*big.Int, error)

Expiry is a free data retrieval call binding the contract method 0xc5ec8970.

Solidity: function _expiry() view returns(uint256)

func (*BridgeCaller) Fee

func (_Bridge *BridgeCaller) Fee(opts *bind.CallOpts) (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xc5b37c22.

Solidity: function _fee() view returns(uint256)

func (*BridgeCaller) GetProposal

func (_Bridge *BridgeCaller) GetProposal(opts *bind.CallOpts, originChainID uint8, depositNonce uint64, dataHash [32]byte) (BridgeProposal, 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 (*BridgeCaller) GetRoleAdmin

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) GetRoleMember

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) GetRoleMemberCount

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) HasRole

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) HasVotedOnProposal

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) IsRelayer

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) Paused

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) Proposals

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) RELAYERROLE

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) RelayerThreshold

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) ResourceIDToHandlerAddress

func (_Bridge *BridgeCaller) ResourceIDToHandlerAddress(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

ResourceIDToHandlerAddress is a free data retrieval call binding the contract method 0x84db809f.

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

func (*BridgeCaller) TotalProposals

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) TotalRelayers

func (_Bridge *BridgeCaller) 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 BridgeCallerRaw

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

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

func (*BridgeCallerRaw) Call

func (_Bridge *BridgeCallerRaw) 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 BridgeCallerSession

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

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

func (*BridgeCallerSession) ChainID

func (_Bridge *BridgeCallerSession) ChainID() (uint8, error)

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

Solidity: function _chainID() view returns(uint8)

func (*BridgeCallerSession) DEFAULTADMINROLE

func (_Bridge *BridgeCallerSession) 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 (*BridgeCallerSession) DepositCounts

func (_Bridge *BridgeCallerSession) DepositCounts(arg0 uint8) (uint64, error)

DepositCounts is a free data retrieval call binding the contract method 0x4b0b919d.

Solidity: function _depositCounts(uint8 ) view returns(uint64)

func (*BridgeCallerSession) DepositRecords

func (_Bridge *BridgeCallerSession) 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 (*BridgeCallerSession) Expiry

func (_Bridge *BridgeCallerSession) Expiry() (*big.Int, error)

Expiry is a free data retrieval call binding the contract method 0xc5ec8970.

Solidity: function _expiry() view returns(uint256)

func (*BridgeCallerSession) Fee

func (_Bridge *BridgeCallerSession) Fee() (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xc5b37c22.

Solidity: function _fee() view returns(uint256)

func (*BridgeCallerSession) GetProposal

func (_Bridge *BridgeCallerSession) GetProposal(originChainID uint8, depositNonce uint64, dataHash [32]byte) (BridgeProposal, 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 (*BridgeCallerSession) GetRoleAdmin

func (_Bridge *BridgeCallerSession) 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 (*BridgeCallerSession) GetRoleMember

func (_Bridge *BridgeCallerSession) 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 (*BridgeCallerSession) GetRoleMemberCount

func (_Bridge *BridgeCallerSession) 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 (*BridgeCallerSession) HasRole

func (_Bridge *BridgeCallerSession) 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 (*BridgeCallerSession) HasVotedOnProposal

func (_Bridge *BridgeCallerSession) 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 (*BridgeCallerSession) IsRelayer

func (_Bridge *BridgeCallerSession) 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 (*BridgeCallerSession) Paused

func (_Bridge *BridgeCallerSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

func (*BridgeCallerSession) Proposals

func (_Bridge *BridgeCallerSession) 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 (*BridgeCallerSession) RELAYERROLE

func (_Bridge *BridgeCallerSession) RELAYERROLE() ([32]byte, error)

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

Solidity: function RELAYER_ROLE() view returns(bytes32)

func (*BridgeCallerSession) RelayerThreshold

func (_Bridge *BridgeCallerSession) RelayerThreshold() (*big.Int, error)

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

Solidity: function _relayerThreshold() view returns(uint256)

func (*BridgeCallerSession) ResourceIDToHandlerAddress

func (_Bridge *BridgeCallerSession) ResourceIDToHandlerAddress(arg0 [32]byte) (common.Address, error)

ResourceIDToHandlerAddress is a free data retrieval call binding the contract method 0x84db809f.

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

func (*BridgeCallerSession) TotalProposals

func (_Bridge *BridgeCallerSession) TotalProposals() (*big.Int, error)

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

Solidity: function _totalProposals() view returns(uint256)

func (*BridgeCallerSession) TotalRelayers

func (_Bridge *BridgeCallerSession) TotalRelayers() (*big.Int, error)

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

Solidity: function _totalRelayers() view returns(uint256)

type BridgeDeposit

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

BridgeDeposit represents a Deposit event raised by the Bridge contract.

type BridgeDepositIterator

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

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

func (*BridgeDepositIterator) Close

func (it *BridgeDepositIterator) Close() error

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

func (*BridgeDepositIterator) Error

func (it *BridgeDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeDepositIterator) Next

func (it *BridgeDepositIterator) 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 BridgeFilterer

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

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

func NewBridgeFilterer

func NewBridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*BridgeFilterer, error)

NewBridgeFilterer creates a new log filterer instance of Bridge, bound to a specific deployed contract.

func (*BridgeFilterer) FilterDeposit

func (_Bridge *BridgeFilterer) FilterDeposit(opts *bind.FilterOpts, destinationChainID []uint8, resourceID [][32]byte, depositNonce []uint64) (*BridgeDepositIterator, 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 (*BridgeFilterer) FilterPaused

func (_Bridge *BridgeFilterer) FilterPaused(opts *bind.FilterOpts) (*BridgePausedIterator, error)

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

Solidity: event Paused(address account)

func (*BridgeFilterer) FilterProposalEvent

func (_Bridge *BridgeFilterer) FilterProposalEvent(opts *bind.FilterOpts, originChainID []uint8, depositNonce []uint64, status []uint8) (*BridgeProposalEventIterator, 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 (*BridgeFilterer) FilterProposalVote

func (_Bridge *BridgeFilterer) FilterProposalVote(opts *bind.FilterOpts, originChainID []uint8, depositNonce []uint64, status []uint8) (*BridgeProposalVoteIterator, error)

FilterProposalVote is a free log retrieval operation binding the contract event 0x25f8daaa4635a7729927ba3f5b3d59cc3320aca7c32c9db4e7ca7b9574343640.

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

func (*BridgeFilterer) FilterRelayerAdded

func (_Bridge *BridgeFilterer) FilterRelayerAdded(opts *bind.FilterOpts, relayer []common.Address) (*BridgeRelayerAddedIterator, error)

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

Solidity: event RelayerAdded(address indexed relayer)

func (*BridgeFilterer) FilterRelayerRemoved

func (_Bridge *BridgeFilterer) FilterRelayerRemoved(opts *bind.FilterOpts, relayer []common.Address) (*BridgeRelayerRemovedIterator, error)

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

Solidity: event RelayerRemoved(address indexed relayer)

func (*BridgeFilterer) FilterRelayerThresholdChanged

func (_Bridge *BridgeFilterer) FilterRelayerThresholdChanged(opts *bind.FilterOpts, newThreshold []*big.Int) (*BridgeRelayerThresholdChangedIterator, error)

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

Solidity: event RelayerThresholdChanged(uint256 indexed newThreshold)

func (*BridgeFilterer) FilterRoleGranted

func (_Bridge *BridgeFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*BridgeRoleGrantedIterator, 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 (*BridgeFilterer) FilterRoleRevoked

func (_Bridge *BridgeFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*BridgeRoleRevokedIterator, 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 (*BridgeFilterer) FilterUnpaused

func (_Bridge *BridgeFilterer) FilterUnpaused(opts *bind.FilterOpts) (*BridgeUnpausedIterator, error)

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

Solidity: event Unpaused(address account)

func (*BridgeFilterer) ParseDeposit

func (_Bridge *BridgeFilterer) ParseDeposit(log types.Log) (*BridgeDeposit, 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 (*BridgeFilterer) ParsePaused

func (_Bridge *BridgeFilterer) ParsePaused(log types.Log) (*BridgePaused, error)

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

Solidity: event Paused(address account)

func (*BridgeFilterer) ParseProposalEvent

func (_Bridge *BridgeFilterer) ParseProposalEvent(log types.Log) (*BridgeProposalEvent, 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 (*BridgeFilterer) ParseProposalVote

func (_Bridge *BridgeFilterer) ParseProposalVote(log types.Log) (*BridgeProposalVote, error)

ParseProposalVote is a log parse operation binding the contract event 0x25f8daaa4635a7729927ba3f5b3d59cc3320aca7c32c9db4e7ca7b9574343640.

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

func (*BridgeFilterer) ParseRelayerAdded

func (_Bridge *BridgeFilterer) ParseRelayerAdded(log types.Log) (*BridgeRelayerAdded, error)

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

Solidity: event RelayerAdded(address indexed relayer)

func (*BridgeFilterer) ParseRelayerRemoved

func (_Bridge *BridgeFilterer) ParseRelayerRemoved(log types.Log) (*BridgeRelayerRemoved, error)

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

Solidity: event RelayerRemoved(address indexed relayer)

func (*BridgeFilterer) ParseRelayerThresholdChanged

func (_Bridge *BridgeFilterer) ParseRelayerThresholdChanged(log types.Log) (*BridgeRelayerThresholdChanged, error)

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

Solidity: event RelayerThresholdChanged(uint256 indexed newThreshold)

func (*BridgeFilterer) ParseRoleGranted

func (_Bridge *BridgeFilterer) ParseRoleGranted(log types.Log) (*BridgeRoleGranted, 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 (*BridgeFilterer) ParseRoleRevoked

func (_Bridge *BridgeFilterer) ParseRoleRevoked(log types.Log) (*BridgeRoleRevoked, 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 (*BridgeFilterer) ParseUnpaused

func (_Bridge *BridgeFilterer) ParseUnpaused(log types.Log) (*BridgeUnpaused, error)

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

Solidity: event Unpaused(address account)

func (*BridgeFilterer) WatchDeposit

func (_Bridge *BridgeFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *BridgeDeposit, 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 (*BridgeFilterer) WatchPaused

func (_Bridge *BridgeFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *BridgePaused) (event.Subscription, error)

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

Solidity: event Paused(address account)

func (*BridgeFilterer) WatchProposalEvent

func (_Bridge *BridgeFilterer) WatchProposalEvent(opts *bind.WatchOpts, sink chan<- *BridgeProposalEvent, 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 (*BridgeFilterer) WatchProposalVote

func (_Bridge *BridgeFilterer) WatchProposalVote(opts *bind.WatchOpts, sink chan<- *BridgeProposalVote, originChainID []uint8, depositNonce []uint64, status []uint8) (event.Subscription, error)

WatchProposalVote is a free log subscription operation binding the contract event 0x25f8daaa4635a7729927ba3f5b3d59cc3320aca7c32c9db4e7ca7b9574343640.

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

func (*BridgeFilterer) WatchRelayerAdded

func (_Bridge *BridgeFilterer) WatchRelayerAdded(opts *bind.WatchOpts, sink chan<- *BridgeRelayerAdded, 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 (*BridgeFilterer) WatchRelayerRemoved

func (_Bridge *BridgeFilterer) WatchRelayerRemoved(opts *bind.WatchOpts, sink chan<- *BridgeRelayerRemoved, 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 (*BridgeFilterer) WatchRelayerThresholdChanged

func (_Bridge *BridgeFilterer) WatchRelayerThresholdChanged(opts *bind.WatchOpts, sink chan<- *BridgeRelayerThresholdChanged, 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 (*BridgeFilterer) WatchRoleGranted

func (_Bridge *BridgeFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *BridgeRoleGranted, 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 (*BridgeFilterer) WatchRoleRevoked

func (_Bridge *BridgeFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *BridgeRoleRevoked, 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 (*BridgeFilterer) WatchUnpaused

func (_Bridge *BridgeFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *BridgeUnpaused) (event.Subscription, error)

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

Solidity: event Unpaused(address account)

type BridgePaused

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

BridgePaused represents a Paused event raised by the Bridge contract.

type BridgePausedIterator

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

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

func (*BridgePausedIterator) Close

func (it *BridgePausedIterator) Close() error

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

func (*BridgePausedIterator) Error

func (it *BridgePausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgePausedIterator) Next

func (it *BridgePausedIterator) 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 BridgeProposal

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

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

type BridgeProposalEvent

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

BridgeProposalEvent represents a ProposalEvent event raised by the Bridge contract.

type BridgeProposalEventIterator

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

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

func (*BridgeProposalEventIterator) Close

func (it *BridgeProposalEventIterator) Close() error

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

func (*BridgeProposalEventIterator) Error

func (it *BridgeProposalEventIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeProposalEventIterator) Next

func (it *BridgeProposalEventIterator) 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 BridgeProposalVote

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

BridgeProposalVote represents a ProposalVote event raised by the Bridge contract.

type BridgeProposalVoteIterator

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

BridgeProposalVoteIterator is returned from FilterProposalVote and is used to iterate over the raw logs and unpacked data for ProposalVote events raised by the Bridge contract.

func (*BridgeProposalVoteIterator) Close

func (it *BridgeProposalVoteIterator) Close() error

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

func (*BridgeProposalVoteIterator) Error

func (it *BridgeProposalVoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeProposalVoteIterator) Next

func (it *BridgeProposalVoteIterator) 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 BridgeRaw

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

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

func (*BridgeRaw) Call

func (_Bridge *BridgeRaw) 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 (*BridgeRaw) Transact

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

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

func (*BridgeRaw) Transfer

func (_Bridge *BridgeRaw) 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 BridgeRelayerAdded

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

BridgeRelayerAdded represents a RelayerAdded event raised by the Bridge contract.

type BridgeRelayerAddedIterator

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

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

func (*BridgeRelayerAddedIterator) Close

func (it *BridgeRelayerAddedIterator) Close() error

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

func (*BridgeRelayerAddedIterator) Error

func (it *BridgeRelayerAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeRelayerAddedIterator) Next

func (it *BridgeRelayerAddedIterator) 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 BridgeRelayerRemoved

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

BridgeRelayerRemoved represents a RelayerRemoved event raised by the Bridge contract.

type BridgeRelayerRemovedIterator

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

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

func (*BridgeRelayerRemovedIterator) Close

func (it *BridgeRelayerRemovedIterator) Close() error

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

func (*BridgeRelayerRemovedIterator) Error

func (it *BridgeRelayerRemovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeRelayerRemovedIterator) 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 BridgeRelayerThresholdChanged

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

BridgeRelayerThresholdChanged represents a RelayerThresholdChanged event raised by the Bridge contract.

type BridgeRelayerThresholdChangedIterator

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

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

func (*BridgeRelayerThresholdChangedIterator) Close

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

func (*BridgeRelayerThresholdChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeRelayerThresholdChangedIterator) 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 BridgeRoleGranted

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

BridgeRoleGranted represents a RoleGranted event raised by the Bridge contract.

type BridgeRoleGrantedIterator

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

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

func (*BridgeRoleGrantedIterator) Close

func (it *BridgeRoleGrantedIterator) Close() error

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

func (*BridgeRoleGrantedIterator) Error

func (it *BridgeRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeRoleGrantedIterator) Next

func (it *BridgeRoleGrantedIterator) 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 BridgeRoleRevoked

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

BridgeRoleRevoked represents a RoleRevoked event raised by the Bridge contract.

type BridgeRoleRevokedIterator

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

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

func (*BridgeRoleRevokedIterator) Close

func (it *BridgeRoleRevokedIterator) Close() error

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

func (*BridgeRoleRevokedIterator) Error

func (it *BridgeRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeRoleRevokedIterator) Next

func (it *BridgeRoleRevokedIterator) 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 BridgeSession

type BridgeSession struct {
	Contract     *Bridge           // 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
}

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

func (*BridgeSession) AdminAddRelayer

func (_Bridge *BridgeSession) 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 (*BridgeSession) AdminChangeFee

func (_Bridge *BridgeSession) AdminChangeFee(newFee *big.Int) (*types.Transaction, error)

AdminChangeFee is a paid mutator transaction binding the contract method 0x91c404ac.

Solidity: function adminChangeFee(uint256 newFee) returns()

func (*BridgeSession) AdminChangeRelayerThreshold

func (_Bridge *BridgeSession) 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 (*BridgeSession) AdminPauseTransfers

func (_Bridge *BridgeSession) AdminPauseTransfers() (*types.Transaction, error)

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

Solidity: function adminPauseTransfers() returns()

func (*BridgeSession) AdminRemoveRelayer

func (_Bridge *BridgeSession) 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 (*BridgeSession) AdminSetBurnable

func (_Bridge *BridgeSession) AdminSetBurnable(handlerAddress common.Address, tokenAddress common.Address) (*types.Transaction, error)

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

Solidity: function adminSetBurnable(address handlerAddress, address tokenAddress) returns()

func (*BridgeSession) AdminSetGenericResource

func (_Bridge *BridgeSession) AdminSetGenericResource(handlerAddress common.Address, resourceID [32]byte, contractAddress common.Address, depositFunctionSig [4]byte, executeFunctionSig [4]byte) (*types.Transaction, error)

AdminSetGenericResource is a paid mutator transaction binding the contract method 0xe8437ee7.

Solidity: function adminSetGenericResource(address handlerAddress, bytes32 resourceID, address contractAddress, bytes4 depositFunctionSig, bytes4 executeFunctionSig) returns()

func (*BridgeSession) AdminSetResource

func (_Bridge *BridgeSession) 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 (*BridgeSession) AdminUnpauseTransfers

func (_Bridge *BridgeSession) AdminUnpauseTransfers() (*types.Transaction, error)

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

Solidity: function adminUnpauseTransfers() returns()

func (*BridgeSession) AdminWithdraw

func (_Bridge *BridgeSession) AdminWithdraw(handlerAddress common.Address, tokenAddress common.Address, recipient common.Address, amountOrTokenID *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 amountOrTokenID) returns()

func (*BridgeSession) CancelProposal

func (_Bridge *BridgeSession) 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 (*BridgeSession) ChainID

func (_Bridge *BridgeSession) ChainID() (uint8, error)

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

Solidity: function _chainID() view returns(uint8)

func (*BridgeSession) DEFAULTADMINROLE

func (_Bridge *BridgeSession) 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 (*BridgeSession) Deposit

func (_Bridge *BridgeSession) Deposit(destinationChainID uint8, resourceID [32]byte, data []byte) (*types.Transaction, error)

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

Solidity: function deposit(uint8 destinationChainID, bytes32 resourceID, bytes data) payable returns()

func (*BridgeSession) DepositCounts

func (_Bridge *BridgeSession) DepositCounts(arg0 uint8) (uint64, error)

DepositCounts is a free data retrieval call binding the contract method 0x4b0b919d.

Solidity: function _depositCounts(uint8 ) view returns(uint64)

func (*BridgeSession) DepositRecords

func (_Bridge *BridgeSession) 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 (*BridgeSession) ExecuteProposal

func (_Bridge *BridgeSession) ExecuteProposal(chainID uint8, depositNonce uint64, data []byte, resourceID [32]byte) (*types.Transaction, error)

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

Solidity: function executeProposal(uint8 chainID, uint64 depositNonce, bytes data, bytes32 resourceID) returns()

func (*BridgeSession) Expiry

func (_Bridge *BridgeSession) Expiry() (*big.Int, error)

Expiry is a free data retrieval call binding the contract method 0xc5ec8970.

Solidity: function _expiry() view returns(uint256)

func (*BridgeSession) Fee

func (_Bridge *BridgeSession) Fee() (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xc5b37c22.

Solidity: function _fee() view returns(uint256)

func (*BridgeSession) GetProposal

func (_Bridge *BridgeSession) GetProposal(originChainID uint8, depositNonce uint64, dataHash [32]byte) (BridgeProposal, 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 (*BridgeSession) GetRoleAdmin

func (_Bridge *BridgeSession) 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 (*BridgeSession) GetRoleMember

func (_Bridge *BridgeSession) 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 (*BridgeSession) GetRoleMemberCount

func (_Bridge *BridgeSession) 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 (*BridgeSession) GrantRole

func (_Bridge *BridgeSession) 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 (*BridgeSession) HasRole

func (_Bridge *BridgeSession) 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 (*BridgeSession) HasVotedOnProposal

func (_Bridge *BridgeSession) 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 (*BridgeSession) IsRelayer

func (_Bridge *BridgeSession) 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 (*BridgeSession) Paused

func (_Bridge *BridgeSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

func (*BridgeSession) Proposals

func (_Bridge *BridgeSession) 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 (*BridgeSession) RELAYERROLE

func (_Bridge *BridgeSession) RELAYERROLE() ([32]byte, error)

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

Solidity: function RELAYER_ROLE() view returns(bytes32)

func (*BridgeSession) RelayerThreshold

func (_Bridge *BridgeSession) RelayerThreshold() (*big.Int, error)

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

Solidity: function _relayerThreshold() view returns(uint256)

func (*BridgeSession) RenounceAdmin

func (_Bridge *BridgeSession) 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 (*BridgeSession) RenounceRole

func (_Bridge *BridgeSession) 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 (*BridgeSession) ResourceIDToHandlerAddress

func (_Bridge *BridgeSession) ResourceIDToHandlerAddress(arg0 [32]byte) (common.Address, error)

ResourceIDToHandlerAddress is a free data retrieval call binding the contract method 0x84db809f.

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

func (*BridgeSession) RevokeRole

func (_Bridge *BridgeSession) 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 (*BridgeSession) TotalProposals

func (_Bridge *BridgeSession) TotalProposals() (*big.Int, error)

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

Solidity: function _totalProposals() view returns(uint256)

func (*BridgeSession) TotalRelayers

func (_Bridge *BridgeSession) TotalRelayers() (*big.Int, error)

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

Solidity: function _totalRelayers() view returns(uint256)

func (*BridgeSession) TransferFunds

func (_Bridge *BridgeSession) TransferFunds(addrs []common.Address, amounts []*big.Int) (*types.Transaction, error)

TransferFunds is a paid mutator transaction binding the contract method 0x4603ae38.

Solidity: function transferFunds(address[] addrs, uint256[] amounts) returns()

func (*BridgeSession) VoteProposal

func (_Bridge *BridgeSession) VoteProposal(chainID uint8, depositNonce uint64, resourceID [32]byte, dataHash [32]byte) (*types.Transaction, error)

VoteProposal is a paid mutator transaction binding the contract method 0x1ff013f1.

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

type BridgeTransactor

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

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

func NewBridgeTransactor

func NewBridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*BridgeTransactor, error)

NewBridgeTransactor creates a new write-only instance of Bridge, bound to a specific deployed contract.

func (*BridgeTransactor) AdminAddRelayer

func (_Bridge *BridgeTransactor) 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 (*BridgeTransactor) AdminChangeFee

func (_Bridge *BridgeTransactor) AdminChangeFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error)

AdminChangeFee is a paid mutator transaction binding the contract method 0x91c404ac.

Solidity: function adminChangeFee(uint256 newFee) returns()

func (*BridgeTransactor) AdminChangeRelayerThreshold

func (_Bridge *BridgeTransactor) 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 (*BridgeTransactor) AdminPauseTransfers

func (_Bridge *BridgeTransactor) AdminPauseTransfers(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function adminPauseTransfers() returns()

func (*BridgeTransactor) AdminRemoveRelayer

func (_Bridge *BridgeTransactor) 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 (*BridgeTransactor) AdminSetBurnable

func (_Bridge *BridgeTransactor) AdminSetBurnable(opts *bind.TransactOpts, handlerAddress common.Address, tokenAddress common.Address) (*types.Transaction, error)

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

Solidity: function adminSetBurnable(address handlerAddress, address tokenAddress) returns()

func (*BridgeTransactor) AdminSetGenericResource

func (_Bridge *BridgeTransactor) AdminSetGenericResource(opts *bind.TransactOpts, handlerAddress common.Address, resourceID [32]byte, contractAddress common.Address, depositFunctionSig [4]byte, executeFunctionSig [4]byte) (*types.Transaction, error)

AdminSetGenericResource is a paid mutator transaction binding the contract method 0xe8437ee7.

Solidity: function adminSetGenericResource(address handlerAddress, bytes32 resourceID, address contractAddress, bytes4 depositFunctionSig, bytes4 executeFunctionSig) returns()

func (*BridgeTransactor) AdminSetResource

func (_Bridge *BridgeTransactor) 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 (*BridgeTransactor) AdminUnpauseTransfers

func (_Bridge *BridgeTransactor) AdminUnpauseTransfers(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function adminUnpauseTransfers() returns()

func (*BridgeTransactor) AdminWithdraw

func (_Bridge *BridgeTransactor) AdminWithdraw(opts *bind.TransactOpts, handlerAddress common.Address, tokenAddress common.Address, recipient common.Address, amountOrTokenID *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 amountOrTokenID) returns()

func (*BridgeTransactor) CancelProposal

func (_Bridge *BridgeTransactor) 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 (*BridgeTransactor) Deposit

func (_Bridge *BridgeTransactor) Deposit(opts *bind.TransactOpts, destinationChainID uint8, resourceID [32]byte, data []byte) (*types.Transaction, error)

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

Solidity: function deposit(uint8 destinationChainID, bytes32 resourceID, bytes data) payable returns()

func (*BridgeTransactor) ExecuteProposal

func (_Bridge *BridgeTransactor) ExecuteProposal(opts *bind.TransactOpts, chainID uint8, depositNonce uint64, data []byte, resourceID [32]byte) (*types.Transaction, error)

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

Solidity: function executeProposal(uint8 chainID, uint64 depositNonce, bytes data, bytes32 resourceID) returns()

func (*BridgeTransactor) GrantRole

func (_Bridge *BridgeTransactor) 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 (*BridgeTransactor) RenounceAdmin

func (_Bridge *BridgeTransactor) 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 (*BridgeTransactor) RenounceRole

func (_Bridge *BridgeTransactor) 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 (*BridgeTransactor) RevokeRole

func (_Bridge *BridgeTransactor) 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()

func (*BridgeTransactor) TransferFunds

func (_Bridge *BridgeTransactor) TransferFunds(opts *bind.TransactOpts, addrs []common.Address, amounts []*big.Int) (*types.Transaction, error)

TransferFunds is a paid mutator transaction binding the contract method 0x4603ae38.

Solidity: function transferFunds(address[] addrs, uint256[] amounts) returns()

func (*BridgeTransactor) VoteProposal

func (_Bridge *BridgeTransactor) VoteProposal(opts *bind.TransactOpts, chainID uint8, depositNonce uint64, resourceID [32]byte, dataHash [32]byte) (*types.Transaction, error)

VoteProposal is a paid mutator transaction binding the contract method 0x1ff013f1.

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

type BridgeTransactorRaw

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

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

func (*BridgeTransactorRaw) Transact

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

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

func (*BridgeTransactorRaw) Transfer

func (_Bridge *BridgeTransactorRaw) 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 BridgeTransactorSession

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

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

func (*BridgeTransactorSession) AdminAddRelayer

func (_Bridge *BridgeTransactorSession) 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 (*BridgeTransactorSession) AdminChangeFee

func (_Bridge *BridgeTransactorSession) AdminChangeFee(newFee *big.Int) (*types.Transaction, error)

AdminChangeFee is a paid mutator transaction binding the contract method 0x91c404ac.

Solidity: function adminChangeFee(uint256 newFee) returns()

func (*BridgeTransactorSession) AdminChangeRelayerThreshold

func (_Bridge *BridgeTransactorSession) 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 (*BridgeTransactorSession) AdminPauseTransfers

func (_Bridge *BridgeTransactorSession) AdminPauseTransfers() (*types.Transaction, error)

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

Solidity: function adminPauseTransfers() returns()

func (*BridgeTransactorSession) AdminRemoveRelayer

func (_Bridge *BridgeTransactorSession) 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 (*BridgeTransactorSession) AdminSetBurnable

func (_Bridge *BridgeTransactorSession) AdminSetBurnable(handlerAddress common.Address, tokenAddress common.Address) (*types.Transaction, error)

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

Solidity: function adminSetBurnable(address handlerAddress, address tokenAddress) returns()

func (*BridgeTransactorSession) AdminSetGenericResource

func (_Bridge *BridgeTransactorSession) AdminSetGenericResource(handlerAddress common.Address, resourceID [32]byte, contractAddress common.Address, depositFunctionSig [4]byte, executeFunctionSig [4]byte) (*types.Transaction, error)

AdminSetGenericResource is a paid mutator transaction binding the contract method 0xe8437ee7.

Solidity: function adminSetGenericResource(address handlerAddress, bytes32 resourceID, address contractAddress, bytes4 depositFunctionSig, bytes4 executeFunctionSig) returns()

func (*BridgeTransactorSession) AdminSetResource

func (_Bridge *BridgeTransactorSession) 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 (*BridgeTransactorSession) AdminUnpauseTransfers

func (_Bridge *BridgeTransactorSession) AdminUnpauseTransfers() (*types.Transaction, error)

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

Solidity: function adminUnpauseTransfers() returns()

func (*BridgeTransactorSession) AdminWithdraw

func (_Bridge *BridgeTransactorSession) AdminWithdraw(handlerAddress common.Address, tokenAddress common.Address, recipient common.Address, amountOrTokenID *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 amountOrTokenID) returns()

func (*BridgeTransactorSession) CancelProposal

func (_Bridge *BridgeTransactorSession) 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 (*BridgeTransactorSession) Deposit

func (_Bridge *BridgeTransactorSession) Deposit(destinationChainID uint8, resourceID [32]byte, data []byte) (*types.Transaction, error)

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

Solidity: function deposit(uint8 destinationChainID, bytes32 resourceID, bytes data) payable returns()

func (*BridgeTransactorSession) ExecuteProposal

func (_Bridge *BridgeTransactorSession) ExecuteProposal(chainID uint8, depositNonce uint64, data []byte, resourceID [32]byte) (*types.Transaction, error)

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

Solidity: function executeProposal(uint8 chainID, uint64 depositNonce, bytes data, bytes32 resourceID) returns()

func (*BridgeTransactorSession) GrantRole

func (_Bridge *BridgeTransactorSession) 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 (*BridgeTransactorSession) RenounceAdmin

func (_Bridge *BridgeTransactorSession) 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 (*BridgeTransactorSession) RenounceRole

func (_Bridge *BridgeTransactorSession) 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 (*BridgeTransactorSession) RevokeRole

func (_Bridge *BridgeTransactorSession) 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 (*BridgeTransactorSession) TransferFunds

func (_Bridge *BridgeTransactorSession) TransferFunds(addrs []common.Address, amounts []*big.Int) (*types.Transaction, error)

TransferFunds is a paid mutator transaction binding the contract method 0x4603ae38.

Solidity: function transferFunds(address[] addrs, uint256[] amounts) returns()

func (*BridgeTransactorSession) VoteProposal

func (_Bridge *BridgeTransactorSession) VoteProposal(chainID uint8, depositNonce uint64, resourceID [32]byte, dataHash [32]byte) (*types.Transaction, error)

VoteProposal is a paid mutator transaction binding the contract method 0x1ff013f1.

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

type BridgeUnpaused

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

BridgeUnpaused represents a Unpaused event raised by the Bridge contract.

type BridgeUnpausedIterator

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

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

func (*BridgeUnpausedIterator) Close

func (it *BridgeUnpausedIterator) Close() error

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

func (*BridgeUnpausedIterator) Error

func (it *BridgeUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeUnpausedIterator) Next

func (it *BridgeUnpausedIterator) 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