Collector

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

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

Variables

View Source
var SignatureCollectorBin = "" /* 7830-byte string literal not displayed */

SignatureCollectorBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type SignatureCollector

type SignatureCollector struct {
	SignatureCollectorCaller     // Read-only binding to the contract
	SignatureCollectorTransactor // Write-only binding to the contract
	SignatureCollectorFilterer   // Log filterer for contract events
}

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

func DeploySignatureCollector

func DeploySignatureCollector(auth *bind.TransactOpts, backend bind.ContractBackend, bridgeAccessAddr common.Address) (common.Address, *types.Transaction, *SignatureCollector, error)

DeploySignatureCollector deploys a new Ethereum contract, binding an instance of SignatureCollector to it.

func NewSignatureCollector

func NewSignatureCollector(address common.Address, backend bind.ContractBackend) (*SignatureCollector, error)

NewSignatureCollector creates a new instance of SignatureCollector, bound to a specific deployed contract.

type SignatureCollectorCaller

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

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

func NewSignatureCollectorCaller

func NewSignatureCollectorCaller(address common.Address, caller bind.ContractCaller) (*SignatureCollectorCaller, error)

NewSignatureCollectorCaller creates a new read-only instance of SignatureCollector, bound to a specific deployed contract.

func (*SignatureCollectorCaller) BridgeAccess

func (_SignatureCollector *SignatureCollectorCaller) BridgeAccess(opts *bind.CallOpts) (common.ContractAddress, error)

BridgeAccess is a free data retrieval call binding the contract method 0x1b350ac1.

Solidity: function bridgeAccess() view returns(address)

func (*SignatureCollectorCaller) CoId

func (_SignatureCollector *SignatureCollectorCaller) CoId(opts *bind.CallOpts, originChainId uint8, destinationId uint8) (*big.Int, error)

CoId is a free data retrieval call binding the contract method 0x8b98dbad.

Solidity: function coId(uint8 originChainId, uint8 destinationId) pure returns(uint72)

func (*SignatureCollectorCaller) DestinationProposals

func (_SignatureCollector *SignatureCollectorCaller) DestinationProposals(opts *bind.CallOpts, arg0 *big.Int, arg1 uint64) (uint8, error)

DestinationProposals is a free data retrieval call binding the contract method 0x3ee27649.

Solidity: function destinationProposals(uint72 , uint64 ) view returns(uint8 status)

func (*SignatureCollectorCaller) DestinationStartNonce

func (_SignatureCollector *SignatureCollectorCaller) DestinationStartNonce(opts *bind.CallOpts, arg0 *big.Int) (uint64, error)

DestinationStartNonce is a free data retrieval call binding the contract method 0x602b5d7e.

Solidity: function _destinationStartNonce(uint72 ) view returns(uint64)

func (*SignatureCollectorCaller) GetDestinationStartNoncee

func (_SignatureCollector *SignatureCollectorCaller) GetDestinationStartNoncee(opts *bind.CallOpts, srcId uint8, destId uint8) (uint64, error)

GetDestinationStartNoncee is a free data retrieval call binding the contract method 0xea1d71c1.

Solidity: function getDestinationStartNoncee(uint8 srcId, uint8 destId) view returns(uint64)

func (*SignatureCollectorCaller) GetProposalSignatures

func (_SignatureCollector *SignatureCollectorCaller) GetProposalSignatures(opts *bind.CallOpts, srcId uint8, destId uint8, depositNonce uint64) (struct {
	Status     uint8
	Signatures [][]byte
}, error)

GetProposalSignatures is a free data retrieval call binding the contract method 0x80c22a24.

Solidity: function getProposalSignatures(uint8 srcId, uint8 destId, uint64 depositNonce) view returns(uint8 status, bytes[] signatures)

func (*SignatureCollectorCaller) HasSignedProposal

func (_SignatureCollector *SignatureCollectorCaller) HasSignedProposal(opts *bind.CallOpts, srcId uint8, destId uint8, depositNonce uint64, sender common.Address) (bool, error)

HasSignedProposal is a free data retrieval call binding the contract method 0xaf4f6257.

Solidity: function hasSignedProposal(uint8 srcId, uint8 destId, uint64 depositNonce, address sender) view returns(bool)

func (*SignatureCollectorCaller) Owner

func (_SignatureCollector *SignatureCollectorCaller) Owner(opts *bind.CallOpts) (common.ContractAddress, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

type SignatureCollectorCallerRaw

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

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

func (*SignatureCollectorCallerRaw) Call

func (_SignatureCollector *SignatureCollectorCallerRaw) 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 SignatureCollectorCallerSession

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

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

func (*SignatureCollectorCallerSession) BridgeAccess

func (_SignatureCollector *SignatureCollectorCallerSession) BridgeAccess() (common.ContractAddress, error)

BridgeAccess is a free data retrieval call binding the contract method 0x1b350ac1.

Solidity: function bridgeAccess() view returns(address)

func (*SignatureCollectorCallerSession) CoId

func (_SignatureCollector *SignatureCollectorCallerSession) CoId(originChainId uint8, destinationId uint8) (*big.Int, error)

CoId is a free data retrieval call binding the contract method 0x8b98dbad.

Solidity: function coId(uint8 originChainId, uint8 destinationId) pure returns(uint72)

func (*SignatureCollectorCallerSession) DestinationProposals

func (_SignatureCollector *SignatureCollectorCallerSession) DestinationProposals(arg0 *big.Int, arg1 uint64) (uint8, error)

DestinationProposals is a free data retrieval call binding the contract method 0x3ee27649.

Solidity: function destinationProposals(uint72 , uint64 ) view returns(uint8 status)

func (*SignatureCollectorCallerSession) DestinationStartNonce

func (_SignatureCollector *SignatureCollectorCallerSession) DestinationStartNonce(arg0 *big.Int) (uint64, error)

DestinationStartNonce is a free data retrieval call binding the contract method 0x602b5d7e.

Solidity: function _destinationStartNonce(uint72 ) view returns(uint64)

func (*SignatureCollectorCallerSession) GetDestinationStartNoncee

func (_SignatureCollector *SignatureCollectorCallerSession) GetDestinationStartNoncee(srcId uint8, destId uint8) (uint64, error)

GetDestinationStartNoncee is a free data retrieval call binding the contract method 0xea1d71c1.

Solidity: function getDestinationStartNoncee(uint8 srcId, uint8 destId) view returns(uint64)

func (*SignatureCollectorCallerSession) GetProposalSignatures

func (_SignatureCollector *SignatureCollectorCallerSession) GetProposalSignatures(srcId uint8, destId uint8, depositNonce uint64) (struct {
	Status     uint8
	Signatures [][]byte
}, error)

GetProposalSignatures is a free data retrieval call binding the contract method 0x80c22a24.

Solidity: function getProposalSignatures(uint8 srcId, uint8 destId, uint64 depositNonce) view returns(uint8 status, bytes[] signatures)

func (*SignatureCollectorCallerSession) HasSignedProposal

func (_SignatureCollector *SignatureCollectorCallerSession) HasSignedProposal(srcId uint8, destId uint8, depositNonce uint64, sender common.Address) (bool, error)

HasSignedProposal is a free data retrieval call binding the contract method 0xaf4f6257.

Solidity: function hasSignedProposal(uint8 srcId, uint8 destId, uint64 depositNonce, address sender) view returns(bool)

func (*SignatureCollectorCallerSession) Owner

func (_SignatureCollector *SignatureCollectorCallerSession) Owner() (common.ContractAddress, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

type SignatureCollectorFilterer

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

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

func NewSignatureCollectorFilterer

func NewSignatureCollectorFilterer(address common.Address, filterer bind.ContractFilterer) (*SignatureCollectorFilterer, error)

NewSignatureCollectorFilterer creates a new log filterer instance of SignatureCollector, bound to a specific deployed contract.

func (*SignatureCollectorFilterer) FilterSignProposalEvent

func (_SignatureCollector *SignatureCollectorFilterer) FilterSignProposalEvent(opts *bind.FilterOpts, resourceChainId []uint8, destinationChainId []uint8, depositNonce []uint64) (*SignatureCollectorSignProposalEventIterator, error)

FilterSignProposalEvent is a free log retrieval operation binding the contract event 0xf3e1949d167ac18929f02f5eb320d0379bac1f3196f1bf0ce9ececdd44b6cf45.

Solidity: event SignProposalEvent(uint8 indexed resourceChainId, uint8 indexed destinationChainId, uint64 indexed depositNonce, uint8 typ, uint8 status)

func (*SignatureCollectorFilterer) ParseSignProposalEvent

func (_SignatureCollector *SignatureCollectorFilterer) ParseSignProposalEvent(log types.Log) (*SignatureCollectorSignProposalEvent, error)

ParseSignProposalEvent is a log parse operation binding the contract event 0xf3e1949d167ac18929f02f5eb320d0379bac1f3196f1bf0ce9ececdd44b6cf45.

Solidity: event SignProposalEvent(uint8 indexed resourceChainId, uint8 indexed destinationChainId, uint64 indexed depositNonce, uint8 typ, uint8 status)

func (*SignatureCollectorFilterer) WatchSignProposalEvent

func (_SignatureCollector *SignatureCollectorFilterer) WatchSignProposalEvent(opts *bind.WatchOpts, sink chan<- *SignatureCollectorSignProposalEvent, resourceChainId []uint8, destinationChainId []uint8, depositNonce []uint64) (event.Subscription, error)

WatchSignProposalEvent is a free log subscription operation binding the contract event 0xf3e1949d167ac18929f02f5eb320d0379bac1f3196f1bf0ce9ececdd44b6cf45.

Solidity: event SignProposalEvent(uint8 indexed resourceChainId, uint8 indexed destinationChainId, uint64 indexed depositNonce, uint8 typ, uint8 status)

type SignatureCollectorRaw

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

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

func (*SignatureCollectorRaw) Call

func (_SignatureCollector *SignatureCollectorRaw) 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 (*SignatureCollectorRaw) Transact

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

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

func (*SignatureCollectorRaw) Transfer

func (_SignatureCollector *SignatureCollectorRaw) 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 SignatureCollectorSession

type SignatureCollectorSession struct {
	Contract     *SignatureCollector // 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
}

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

func (*SignatureCollectorSession) BridgeAccess

func (_SignatureCollector *SignatureCollectorSession) BridgeAccess() (common.ContractAddress, error)

BridgeAccess is a free data retrieval call binding the contract method 0x1b350ac1.

Solidity: function bridgeAccess() view returns(address)

func (*SignatureCollectorSession) ChangeBridgeAccess

func (_SignatureCollector *SignatureCollectorSession) ChangeBridgeAccess(bridgeAccessAddr common.Address) (*types.Transaction, error)

ChangeBridgeAccess is a paid mutator transaction binding the contract method 0x7de0ac85.

Solidity: function changeBridgeAccess(address bridgeAccessAddr) returns()

func (*SignatureCollectorSession) CoId

func (_SignatureCollector *SignatureCollectorSession) CoId(originChainId uint8, destinationId uint8) (*big.Int, error)

CoId is a free data retrieval call binding the contract method 0x8b98dbad.

Solidity: function coId(uint8 originChainId, uint8 destinationId) pure returns(uint72)

func (*SignatureCollectorSession) DestinationProposals

func (_SignatureCollector *SignatureCollectorSession) DestinationProposals(arg0 *big.Int, arg1 uint64) (uint8, error)

DestinationProposals is a free data retrieval call binding the contract method 0x3ee27649.

Solidity: function destinationProposals(uint72 , uint64 ) view returns(uint8 status)

func (*SignatureCollectorSession) DestinationStartNonce

func (_SignatureCollector *SignatureCollectorSession) DestinationStartNonce(arg0 *big.Int) (uint64, error)

DestinationStartNonce is a free data retrieval call binding the contract method 0x602b5d7e.

Solidity: function _destinationStartNonce(uint72 ) view returns(uint64)

func (*SignatureCollectorSession) GetDestinationStartNoncee

func (_SignatureCollector *SignatureCollectorSession) GetDestinationStartNoncee(srcId uint8, destId uint8) (uint64, error)

GetDestinationStartNoncee is a free data retrieval call binding the contract method 0xea1d71c1.

Solidity: function getDestinationStartNoncee(uint8 srcId, uint8 destId) view returns(uint64)

func (*SignatureCollectorSession) GetProposalSignatures

func (_SignatureCollector *SignatureCollectorSession) GetProposalSignatures(srcId uint8, destId uint8, depositNonce uint64) (struct {
	Status     uint8
	Signatures [][]byte
}, error)

GetProposalSignatures is a free data retrieval call binding the contract method 0x80c22a24.

Solidity: function getProposalSignatures(uint8 srcId, uint8 destId, uint64 depositNonce) view returns(uint8 status, bytes[] signatures)

func (*SignatureCollectorSession) HasSignedProposal

func (_SignatureCollector *SignatureCollectorSession) HasSignedProposal(srcId uint8, destId uint8, depositNonce uint64, sender common.Address) (bool, error)

HasSignedProposal is a free data retrieval call binding the contract method 0xaf4f6257.

Solidity: function hasSignedProposal(uint8 srcId, uint8 destId, uint64 depositNonce, address sender) view returns(bool)

func (*SignatureCollectorSession) Owner

func (_SignatureCollector *SignatureCollectorSession) Owner() (common.ContractAddress, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*SignatureCollectorSession) SetDestinationStartNonce

func (_SignatureCollector *SignatureCollectorSession) SetDestinationStartNonce(srcId uint8, destId uint8, startNonce uint64) (*types.Transaction, error)

SetDestinationStartNonce is a paid mutator transaction binding the contract method 0xd1b0628c.

Solidity: function setDestinationStartNonce(uint8 srcId, uint8 destId, uint64 startNonce) returns()

func (*SignatureCollectorSession) SignProposal

func (_SignatureCollector *SignatureCollectorSession) SignProposal(srcId uint8, destId uint8, depositNonce uint64, typ uint8, signature []byte) (*types.Transaction, error)

SignProposal is a paid mutator transaction binding the contract method 0x533703da.

Solidity: function signProposal(uint8 srcId, uint8 destId, uint64 depositNonce, uint8 typ, bytes signature) returns()

func (*SignatureCollectorSession) TransferOwnership

func (_SignatureCollector *SignatureCollectorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type SignatureCollectorSignProposalEvent

type SignatureCollectorSignProposalEvent struct {
	ResourceChainId    uint8
	DestinationChainId uint8
	DepositNonce       uint64
	Typ                uint8
	Status             uint8
	Raw                types.Log // Blockchain specific contextual infos
}

SignatureCollectorSignProposalEvent represents a SignProposalEvent event raised by the SignatureCollector contract.

type SignatureCollectorSignProposalEventIterator

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

SignatureCollectorSignProposalEventIterator is returned from FilterSignProposalEvent and is used to iterate over the raw logs and unpacked data for SignProposalEvent events raised by the SignatureCollector contract.

func (*SignatureCollectorSignProposalEventIterator) Close

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

func (*SignatureCollectorSignProposalEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SignatureCollectorSignProposalEventIterator) 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 SignatureCollectorTransactor

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

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

func NewSignatureCollectorTransactor

func NewSignatureCollectorTransactor(address common.Address, transactor bind.ContractTransactor) (*SignatureCollectorTransactor, error)

NewSignatureCollectorTransactor creates a new write-only instance of SignatureCollector, bound to a specific deployed contract.

func (*SignatureCollectorTransactor) ChangeBridgeAccess

func (_SignatureCollector *SignatureCollectorTransactor) ChangeBridgeAccess(opts *bind.TransactOpts, bridgeAccessAddr common.Address) (*types.Transaction, error)

ChangeBridgeAccess is a paid mutator transaction binding the contract method 0x7de0ac85.

Solidity: function changeBridgeAccess(address bridgeAccessAddr) returns()

func (*SignatureCollectorTransactor) SetDestinationStartNonce

func (_SignatureCollector *SignatureCollectorTransactor) SetDestinationStartNonce(opts *bind.TransactOpts, srcId uint8, destId uint8, startNonce uint64) (*types.Transaction, error)

SetDestinationStartNonce is a paid mutator transaction binding the contract method 0xd1b0628c.

Solidity: function setDestinationStartNonce(uint8 srcId, uint8 destId, uint64 startNonce) returns()

func (*SignatureCollectorTransactor) SignProposal

func (_SignatureCollector *SignatureCollectorTransactor) SignProposal(opts *bind.TransactOpts, srcId uint8, destId uint8, depositNonce uint64, typ uint8, signature []byte) (*types.Transaction, error)

SignProposal is a paid mutator transaction binding the contract method 0x533703da.

Solidity: function signProposal(uint8 srcId, uint8 destId, uint64 depositNonce, uint8 typ, bytes signature) returns()

func (*SignatureCollectorTransactor) TransferOwnership

func (_SignatureCollector *SignatureCollectorTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type SignatureCollectorTransactorRaw

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

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

func (*SignatureCollectorTransactorRaw) Transact

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

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

func (*SignatureCollectorTransactorRaw) Transfer

func (_SignatureCollector *SignatureCollectorTransactorRaw) 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 SignatureCollectorTransactorSession

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

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

func (*SignatureCollectorTransactorSession) ChangeBridgeAccess

func (_SignatureCollector *SignatureCollectorTransactorSession) ChangeBridgeAccess(bridgeAccessAddr common.Address) (*types.Transaction, error)

ChangeBridgeAccess is a paid mutator transaction binding the contract method 0x7de0ac85.

Solidity: function changeBridgeAccess(address bridgeAccessAddr) returns()

func (*SignatureCollectorTransactorSession) SetDestinationStartNonce

func (_SignatureCollector *SignatureCollectorTransactorSession) SetDestinationStartNonce(srcId uint8, destId uint8, startNonce uint64) (*types.Transaction, error)

SetDestinationStartNonce is a paid mutator transaction binding the contract method 0xd1b0628c.

Solidity: function setDestinationStartNonce(uint8 srcId, uint8 destId, uint64 startNonce) returns()

func (*SignatureCollectorTransactorSession) SignProposal

func (_SignatureCollector *SignatureCollectorTransactorSession) SignProposal(srcId uint8, destId uint8, depositNonce uint64, typ uint8, signature []byte) (*types.Transaction, error)

SignProposal is a paid mutator transaction binding the contract method 0x533703da.

Solidity: function signProposal(uint8 srcId, uint8 destId, uint64 depositNonce, uint8 typ, bytes signature) returns()

func (*SignatureCollectorTransactorSession) TransferOwnership

func (_SignatureCollector *SignatureCollectorTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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