sidechain

package
v0.0.0-...-092bff5 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 8 Imported by: 8

Documentation

Index

Constants

View Source
const BlockCommitteeABI = "" /* 3264-byte string literal not displayed */

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

View Source
const DummyAppABI = "" /* 455-byte string literal not displayed */

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

View Source
const SidechainERC20ABI = "" /* 8000-byte string literal not displayed */

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

View Source
const TokenMapperABI = "" /* 2009-byte string literal not displayed */

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

Variables

View Source
var BlockCommitteeBin = "" /* 21898-byte string literal not displayed */

BlockCommitteeBin is the compiled bytecode used for deploying new contracts.

View Source
var DummyAppBin = "" /* 2328-byte string literal not displayed */

DummyAppBin is the compiled bytecode used for deploying new contracts.

View Source
var SidechainERC20Bin = "" /* 22866-byte string literal not displayed */

SidechainERC20Bin is the compiled bytecode used for deploying new contracts.

View Source
var TokenMapperBin = "" /* 29852-byte string literal not displayed */

TokenMapperBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type BlockCommittee

type BlockCommittee struct {
	BlockCommitteeCaller     // Read-only binding to the contract
	BlockCommitteeTransactor // Write-only binding to the contract
	BlockCommitteeFilterer   // Log filterer for contract events
}

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

func DeployBlockCommittee

func DeployBlockCommittee(auth *bind.TransactOpts, backend bind.ContractBackend, _validators []common.Address) (common.Address, *types.Transaction, *BlockCommittee, error)

DeployBlockCommittee deploys a new Ethereum contract, binding an instance of BlockCommittee to it.

func NewBlockCommittee

func NewBlockCommittee(address common.Address, backend bind.ContractBackend) (*BlockCommittee, error)

NewBlockCommittee creates a new instance of BlockCommittee, bound to a specific deployed contract.

type BlockCommitteeBlockConsensusReached

type BlockCommitteeBlockConsensusReached struct {
	Proposal   BlockCommitteeBlockProposal
	Signatures [][]byte
	Raw        types.Log // Blockchain specific contextual infos
}

BlockCommitteeBlockConsensusReached represents a BlockConsensusReached event raised by the BlockCommittee contract.

type BlockCommitteeBlockConsensusReachedIterator

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

BlockCommitteeBlockConsensusReachedIterator is returned from FilterBlockConsensusReached and is used to iterate over the raw logs and unpacked data for BlockConsensusReached events raised by the BlockCommittee contract.

func (*BlockCommitteeBlockConsensusReachedIterator) Close

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

func (*BlockCommitteeBlockConsensusReachedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BlockCommitteeBlockConsensusReachedIterator) 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 BlockCommitteeBlockProposal

type BlockCommitteeBlockProposal struct {
	BlockNumber *big.Int
	Transitions [][]byte
}

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

type BlockCommitteeBlockProposed

type BlockCommitteeBlockProposed struct {
	BlockNumber *big.Int
	Transitions [][]byte
	Raw         types.Log // Blockchain specific contextual infos
}

BlockCommitteeBlockProposed represents a BlockProposed event raised by the BlockCommittee contract.

type BlockCommitteeBlockProposedIterator

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

BlockCommitteeBlockProposedIterator is returned from FilterBlockProposed and is used to iterate over the raw logs and unpacked data for BlockProposed events raised by the BlockCommittee contract.

func (*BlockCommitteeBlockProposedIterator) Close

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

func (*BlockCommitteeBlockProposedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BlockCommitteeBlockProposedIterator) 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 BlockCommitteeCaller

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

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

func NewBlockCommitteeCaller

func NewBlockCommitteeCaller(address common.Address, caller bind.ContractCaller) (*BlockCommitteeCaller, error)

NewBlockCommitteeCaller creates a new read-only instance of BlockCommittee, bound to a specific deployed contract.

func (*BlockCommitteeCaller) CurrentProposer

func (_BlockCommittee *BlockCommitteeCaller) CurrentProposer(opts *bind.CallOpts) (common.Address, error)

CurrentProposer is a free data retrieval call binding the contract method 0xfe82d082.

Solidity: function currentProposer() view returns(address)

func (*BlockCommitteeCaller) Owner

func (_BlockCommittee *BlockCommitteeCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BlockCommitteeCaller) Signatures

func (_BlockCommittee *BlockCommitteeCaller) Signatures(opts *bind.CallOpts, arg0 *big.Int) ([]byte, error)

Signatures is a free data retrieval call binding the contract method 0x8be10194.

Solidity: function signatures(uint256 ) view returns(bytes)

func (*BlockCommitteeCaller) Validators

func (_BlockCommittee *BlockCommitteeCaller) Validators(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

Validators is a free data retrieval call binding the contract method 0x35aa2e44.

Solidity: function validators(uint256 ) view returns(address)

type BlockCommitteeCallerRaw

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

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

func (*BlockCommitteeCallerRaw) Call

func (_BlockCommittee *BlockCommitteeCallerRaw) 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 BlockCommitteeCallerSession

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

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

func (*BlockCommitteeCallerSession) CurrentProposer

func (_BlockCommittee *BlockCommitteeCallerSession) CurrentProposer() (common.Address, error)

CurrentProposer is a free data retrieval call binding the contract method 0xfe82d082.

Solidity: function currentProposer() view returns(address)

func (*BlockCommitteeCallerSession) Owner

func (_BlockCommittee *BlockCommitteeCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BlockCommitteeCallerSession) Signatures

func (_BlockCommittee *BlockCommitteeCallerSession) Signatures(arg0 *big.Int) ([]byte, error)

Signatures is a free data retrieval call binding the contract method 0x8be10194.

Solidity: function signatures(uint256 ) view returns(bytes)

func (*BlockCommitteeCallerSession) Validators

func (_BlockCommittee *BlockCommitteeCallerSession) Validators(arg0 *big.Int) (common.Address, error)

Validators is a free data retrieval call binding the contract method 0x35aa2e44.

Solidity: function validators(uint256 ) view returns(address)

type BlockCommitteeFilterer

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

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

func NewBlockCommitteeFilterer

func NewBlockCommitteeFilterer(address common.Address, filterer bind.ContractFilterer) (*BlockCommitteeFilterer, error)

NewBlockCommitteeFilterer creates a new log filterer instance of BlockCommittee, bound to a specific deployed contract.

func (*BlockCommitteeFilterer) FilterBlockConsensusReached

func (_BlockCommittee *BlockCommitteeFilterer) FilterBlockConsensusReached(opts *bind.FilterOpts) (*BlockCommitteeBlockConsensusReachedIterator, error)

FilterBlockConsensusReached is a free log retrieval operation binding the contract event 0xd7caf9f2fc3f80c9c139f02c1fe8d4dea9f3e20d4afbca1df37f080630cc1253.

Solidity: event BlockConsensusReached((uint256,bytes[]) proposal, bytes[] signatures)

func (*BlockCommitteeFilterer) FilterBlockProposed

func (_BlockCommittee *BlockCommitteeFilterer) FilterBlockProposed(opts *bind.FilterOpts) (*BlockCommitteeBlockProposedIterator, error)

FilterBlockProposed is a free log retrieval operation binding the contract event 0x08f3dc9ea534e005aacb952cad2a7d85b6d631123cba3ee204bcc4ddb0aa5d4e.

Solidity: event BlockProposed(uint256 blockNumber, bytes[] transitions)

func (*BlockCommitteeFilterer) FilterOwnershipTransferred

func (_BlockCommittee *BlockCommitteeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BlockCommitteeOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BlockCommitteeFilterer) FilterProposerChanged

func (_BlockCommittee *BlockCommitteeFilterer) FilterProposerChanged(opts *bind.FilterOpts) (*BlockCommitteeProposerChangedIterator, error)

FilterProposerChanged is a free log retrieval operation binding the contract event 0x2249b0c82a2ebea913220f5abb96055181481cd617cd96e91b957c25bc570693.

Solidity: event ProposerChanged(address newProposer)

func (*BlockCommitteeFilterer) ParseBlockConsensusReached

func (_BlockCommittee *BlockCommitteeFilterer) ParseBlockConsensusReached(log types.Log) (*BlockCommitteeBlockConsensusReached, error)

ParseBlockConsensusReached is a log parse operation binding the contract event 0xd7caf9f2fc3f80c9c139f02c1fe8d4dea9f3e20d4afbca1df37f080630cc1253.

Solidity: event BlockConsensusReached((uint256,bytes[]) proposal, bytes[] signatures)

func (*BlockCommitteeFilterer) ParseBlockProposed

func (_BlockCommittee *BlockCommitteeFilterer) ParseBlockProposed(log types.Log) (*BlockCommitteeBlockProposed, error)

ParseBlockProposed is a log parse operation binding the contract event 0x08f3dc9ea534e005aacb952cad2a7d85b6d631123cba3ee204bcc4ddb0aa5d4e.

Solidity: event BlockProposed(uint256 blockNumber, bytes[] transitions)

func (*BlockCommitteeFilterer) ParseOwnershipTransferred

func (_BlockCommittee *BlockCommitteeFilterer) ParseOwnershipTransferred(log types.Log) (*BlockCommitteeOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BlockCommitteeFilterer) ParseProposerChanged

func (_BlockCommittee *BlockCommitteeFilterer) ParseProposerChanged(log types.Log) (*BlockCommitteeProposerChanged, error)

ParseProposerChanged is a log parse operation binding the contract event 0x2249b0c82a2ebea913220f5abb96055181481cd617cd96e91b957c25bc570693.

Solidity: event ProposerChanged(address newProposer)

func (*BlockCommitteeFilterer) WatchBlockConsensusReached

func (_BlockCommittee *BlockCommitteeFilterer) WatchBlockConsensusReached(opts *bind.WatchOpts, sink chan<- *BlockCommitteeBlockConsensusReached) (event.Subscription, error)

WatchBlockConsensusReached is a free log subscription operation binding the contract event 0xd7caf9f2fc3f80c9c139f02c1fe8d4dea9f3e20d4afbca1df37f080630cc1253.

Solidity: event BlockConsensusReached((uint256,bytes[]) proposal, bytes[] signatures)

func (*BlockCommitteeFilterer) WatchBlockProposed

func (_BlockCommittee *BlockCommitteeFilterer) WatchBlockProposed(opts *bind.WatchOpts, sink chan<- *BlockCommitteeBlockProposed) (event.Subscription, error)

WatchBlockProposed is a free log subscription operation binding the contract event 0x08f3dc9ea534e005aacb952cad2a7d85b6d631123cba3ee204bcc4ddb0aa5d4e.

Solidity: event BlockProposed(uint256 blockNumber, bytes[] transitions)

func (*BlockCommitteeFilterer) WatchOwnershipTransferred

func (_BlockCommittee *BlockCommitteeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BlockCommitteeOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BlockCommitteeFilterer) WatchProposerChanged

func (_BlockCommittee *BlockCommitteeFilterer) WatchProposerChanged(opts *bind.WatchOpts, sink chan<- *BlockCommitteeProposerChanged) (event.Subscription, error)

WatchProposerChanged is a free log subscription operation binding the contract event 0x2249b0c82a2ebea913220f5abb96055181481cd617cd96e91b957c25bc570693.

Solidity: event ProposerChanged(address newProposer)

type BlockCommitteeOwnershipTransferred

type BlockCommitteeOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

BlockCommitteeOwnershipTransferred represents a OwnershipTransferred event raised by the BlockCommittee contract.

type BlockCommitteeOwnershipTransferredIterator

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

BlockCommitteeOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the BlockCommittee contract.

func (*BlockCommitteeOwnershipTransferredIterator) Close

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

func (*BlockCommitteeOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BlockCommitteeOwnershipTransferredIterator) 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 BlockCommitteeProposerChanged

type BlockCommitteeProposerChanged struct {
	NewProposer common.Address
	Raw         types.Log // Blockchain specific contextual infos
}

BlockCommitteeProposerChanged represents a ProposerChanged event raised by the BlockCommittee contract.

type BlockCommitteeProposerChangedIterator

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

BlockCommitteeProposerChangedIterator is returned from FilterProposerChanged and is used to iterate over the raw logs and unpacked data for ProposerChanged events raised by the BlockCommittee contract.

func (*BlockCommitteeProposerChangedIterator) Close

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

func (*BlockCommitteeProposerChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BlockCommitteeProposerChangedIterator) 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 BlockCommitteeRaw

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

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

func (*BlockCommitteeRaw) Call

func (_BlockCommittee *BlockCommitteeRaw) 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 (*BlockCommitteeRaw) Transact

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

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

func (*BlockCommitteeRaw) Transfer

func (_BlockCommittee *BlockCommitteeRaw) 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 BlockCommitteeSession

type BlockCommitteeSession struct {
	Contract     *BlockCommittee   // 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
}

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

func (*BlockCommitteeSession) CurrentProposer

func (_BlockCommittee *BlockCommitteeSession) CurrentProposer() (common.Address, error)

CurrentProposer is a free data retrieval call binding the contract method 0xfe82d082.

Solidity: function currentProposer() view returns(address)

func (*BlockCommitteeSession) Owner

func (_BlockCommittee *BlockCommitteeSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BlockCommitteeSession) ProposeBlock

func (_BlockCommittee *BlockCommitteeSession) ProposeBlock(_blockNumber *big.Int, _transitions [][]byte, _signature []byte) (*types.Transaction, error)

ProposeBlock is a paid mutator transaction binding the contract method 0x7194d4b2.

Solidity: function proposeBlock(uint256 _blockNumber, bytes[] _transitions, bytes _signature) returns()

func (*BlockCommitteeSession) RenounceOwnership

func (_BlockCommittee *BlockCommitteeSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BlockCommitteeSession) SetValidators

func (_BlockCommittee *BlockCommitteeSession) SetValidators(_validators []common.Address) (*types.Transaction, error)

SetValidators is a paid mutator transaction binding the contract method 0x9300c926.

Solidity: function setValidators(address[] _validators) returns()

func (*BlockCommitteeSession) SignBlock

func (_BlockCommittee *BlockCommitteeSession) SignBlock(_signer common.Address, _signature []byte) (*types.Transaction, error)

SignBlock is a paid mutator transaction binding the contract method 0xd6119e70.

Solidity: function signBlock(address _signer, bytes _signature) returns()

func (*BlockCommitteeSession) Signatures

func (_BlockCommittee *BlockCommitteeSession) Signatures(arg0 *big.Int) ([]byte, error)

Signatures is a free data retrieval call binding the contract method 0x8be10194.

Solidity: function signatures(uint256 ) view returns(bytes)

func (*BlockCommitteeSession) TransferOwnership

func (_BlockCommittee *BlockCommitteeSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*BlockCommitteeSession) Validators

func (_BlockCommittee *BlockCommitteeSession) Validators(arg0 *big.Int) (common.Address, error)

Validators is a free data retrieval call binding the contract method 0x35aa2e44.

Solidity: function validators(uint256 ) view returns(address)

type BlockCommitteeTransactor

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

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

func NewBlockCommitteeTransactor

func NewBlockCommitteeTransactor(address common.Address, transactor bind.ContractTransactor) (*BlockCommitteeTransactor, error)

NewBlockCommitteeTransactor creates a new write-only instance of BlockCommittee, bound to a specific deployed contract.

func (*BlockCommitteeTransactor) ProposeBlock

func (_BlockCommittee *BlockCommitteeTransactor) ProposeBlock(opts *bind.TransactOpts, _blockNumber *big.Int, _transitions [][]byte, _signature []byte) (*types.Transaction, error)

ProposeBlock is a paid mutator transaction binding the contract method 0x7194d4b2.

Solidity: function proposeBlock(uint256 _blockNumber, bytes[] _transitions, bytes _signature) returns()

func (*BlockCommitteeTransactor) RenounceOwnership

func (_BlockCommittee *BlockCommitteeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BlockCommitteeTransactor) SetValidators

func (_BlockCommittee *BlockCommitteeTransactor) SetValidators(opts *bind.TransactOpts, _validators []common.Address) (*types.Transaction, error)

SetValidators is a paid mutator transaction binding the contract method 0x9300c926.

Solidity: function setValidators(address[] _validators) returns()

func (*BlockCommitteeTransactor) SignBlock

func (_BlockCommittee *BlockCommitteeTransactor) SignBlock(opts *bind.TransactOpts, _signer common.Address, _signature []byte) (*types.Transaction, error)

SignBlock is a paid mutator transaction binding the contract method 0xd6119e70.

Solidity: function signBlock(address _signer, bytes _signature) returns()

func (*BlockCommitteeTransactor) TransferOwnership

func (_BlockCommittee *BlockCommitteeTransactor) 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 BlockCommitteeTransactorRaw

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

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

func (*BlockCommitteeTransactorRaw) Transact

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

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

func (*BlockCommitteeTransactorRaw) Transfer

func (_BlockCommittee *BlockCommitteeTransactorRaw) 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 BlockCommitteeTransactorSession

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

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

func (*BlockCommitteeTransactorSession) ProposeBlock

func (_BlockCommittee *BlockCommitteeTransactorSession) ProposeBlock(_blockNumber *big.Int, _transitions [][]byte, _signature []byte) (*types.Transaction, error)

ProposeBlock is a paid mutator transaction binding the contract method 0x7194d4b2.

Solidity: function proposeBlock(uint256 _blockNumber, bytes[] _transitions, bytes _signature) returns()

func (*BlockCommitteeTransactorSession) RenounceOwnership

func (_BlockCommittee *BlockCommitteeTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BlockCommitteeTransactorSession) SetValidators

func (_BlockCommittee *BlockCommitteeTransactorSession) SetValidators(_validators []common.Address) (*types.Transaction, error)

SetValidators is a paid mutator transaction binding the contract method 0x9300c926.

Solidity: function setValidators(address[] _validators) returns()

func (*BlockCommitteeTransactorSession) SignBlock

func (_BlockCommittee *BlockCommitteeTransactorSession) SignBlock(_signer common.Address, _signature []byte) (*types.Transaction, error)

SignBlock is a paid mutator transaction binding the contract method 0xd6119e70.

Solidity: function signBlock(address _signer, bytes _signature) returns()

func (*BlockCommitteeTransactorSession) TransferOwnership

func (_BlockCommittee *BlockCommitteeTransactorSession) 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 DummyApp

type DummyApp struct {
	DummyAppCaller     // Read-only binding to the contract
	DummyAppTransactor // Write-only binding to the contract
	DummyAppFilterer   // Log filterer for contract events
}

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

func DeployDummyApp

func DeployDummyApp(auth *bind.TransactOpts, backend bind.ContractBackend, _token common.Address) (common.Address, *types.Transaction, *DummyApp, error)

DeployDummyApp deploys a new Ethereum contract, binding an instance of DummyApp to it.

func NewDummyApp

func NewDummyApp(address common.Address, backend bind.ContractBackend) (*DummyApp, error)

NewDummyApp creates a new instance of DummyApp, bound to a specific deployed contract.

type DummyAppCaller

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

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

func NewDummyAppCaller

func NewDummyAppCaller(address common.Address, caller bind.ContractCaller) (*DummyAppCaller, error)

NewDummyAppCaller creates a new read-only instance of DummyApp, bound to a specific deployed contract.

type DummyAppCallerRaw

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

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

func (*DummyAppCallerRaw) Call

func (_DummyApp *DummyAppCallerRaw) 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 DummyAppCallerSession

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

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

type DummyAppFilterer

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

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

func NewDummyAppFilterer

func NewDummyAppFilterer(address common.Address, filterer bind.ContractFilterer) (*DummyAppFilterer, error)

NewDummyAppFilterer creates a new log filterer instance of DummyApp, bound to a specific deployed contract.

type DummyAppRaw

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

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

func (*DummyAppRaw) Call

func (_DummyApp *DummyAppRaw) 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 (*DummyAppRaw) Transact

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

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

func (*DummyAppRaw) Transfer

func (_DummyApp *DummyAppRaw) 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 DummyAppSession

type DummyAppSession struct {
	Contract     *DummyApp         // 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
}

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

func (*DummyAppSession) PlayerOneDeposit

func (_DummyApp *DummyAppSession) PlayerOneDeposit(signature []byte) (*types.Transaction, error)

PlayerOneDeposit is a paid mutator transaction binding the contract method 0xe0a572e3.

Solidity: function playerOneDeposit(bytes signature) returns()

func (*DummyAppSession) PlayerTwoWithdraw

func (_DummyApp *DummyAppSession) PlayerTwoWithdraw() (*types.Transaction, error)

PlayerTwoWithdraw is a paid mutator transaction binding the contract method 0x2b4f82eb.

Solidity: function playerTwoWithdraw() returns()

type DummyAppTransactor

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

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

func NewDummyAppTransactor

func NewDummyAppTransactor(address common.Address, transactor bind.ContractTransactor) (*DummyAppTransactor, error)

NewDummyAppTransactor creates a new write-only instance of DummyApp, bound to a specific deployed contract.

func (*DummyAppTransactor) PlayerOneDeposit

func (_DummyApp *DummyAppTransactor) PlayerOneDeposit(opts *bind.TransactOpts, signature []byte) (*types.Transaction, error)

PlayerOneDeposit is a paid mutator transaction binding the contract method 0xe0a572e3.

Solidity: function playerOneDeposit(bytes signature) returns()

func (*DummyAppTransactor) PlayerTwoWithdraw

func (_DummyApp *DummyAppTransactor) PlayerTwoWithdraw(opts *bind.TransactOpts) (*types.Transaction, error)

PlayerTwoWithdraw is a paid mutator transaction binding the contract method 0x2b4f82eb.

Solidity: function playerTwoWithdraw() returns()

type DummyAppTransactorRaw

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

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

func (*DummyAppTransactorRaw) Transact

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

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

func (*DummyAppTransactorRaw) Transfer

func (_DummyApp *DummyAppTransactorRaw) 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 DummyAppTransactorSession

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

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

func (*DummyAppTransactorSession) PlayerOneDeposit

func (_DummyApp *DummyAppTransactorSession) PlayerOneDeposit(signature []byte) (*types.Transaction, error)

PlayerOneDeposit is a paid mutator transaction binding the contract method 0xe0a572e3.

Solidity: function playerOneDeposit(bytes signature) returns()

func (*DummyAppTransactorSession) PlayerTwoWithdraw

func (_DummyApp *DummyAppTransactorSession) PlayerTwoWithdraw() (*types.Transaction, error)

PlayerTwoWithdraw is a paid mutator transaction binding the contract method 0x2b4f82eb.

Solidity: function playerTwoWithdraw() returns()

type SidechainERC20

type SidechainERC20 struct {
	SidechainERC20Caller     // Read-only binding to the contract
	SidechainERC20Transactor // Write-only binding to the contract
	SidechainERC20Filterer   // Log filterer for contract events
}

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

func DeploySidechainERC20

func DeploySidechainERC20(auth *bind.TransactOpts, backend bind.ContractBackend, _mainchainToken common.Address, _name string, _symbol string, _decimals uint8) (common.Address, *types.Transaction, *SidechainERC20, error)

DeploySidechainERC20 deploys a new Ethereum contract, binding an instance of SidechainERC20 to it.

func NewSidechainERC20

func NewSidechainERC20(address common.Address, backend bind.ContractBackend) (*SidechainERC20, error)

NewSidechainERC20 creates a new instance of SidechainERC20, bound to a specific deployed contract.

type SidechainERC20Approval

type SidechainERC20Approval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

SidechainERC20Approval represents a Approval event raised by the SidechainERC20 contract.

type SidechainERC20ApprovalIterator

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

SidechainERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the SidechainERC20 contract.

func (*SidechainERC20ApprovalIterator) Close

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

func (*SidechainERC20ApprovalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SidechainERC20ApprovalIterator) 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 SidechainERC20Caller

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

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

func NewSidechainERC20Caller

func NewSidechainERC20Caller(address common.Address, caller bind.ContractCaller) (*SidechainERC20Caller, error)

NewSidechainERC20Caller creates a new read-only instance of SidechainERC20, bound to a specific deployed contract.

func (*SidechainERC20Caller) Allowance

func (_SidechainERC20 *SidechainERC20Caller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address , address ) view returns(uint256)

func (*SidechainERC20Caller) BalanceOf

func (_SidechainERC20 *SidechainERC20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*SidechainERC20Caller) Decimals

func (_SidechainERC20 *SidechainERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*SidechainERC20Caller) MainchainToken

func (_SidechainERC20 *SidechainERC20Caller) MainchainToken(opts *bind.CallOpts) (common.Address, error)

MainchainToken is a free data retrieval call binding the contract method 0x9cdcac9c.

Solidity: function mainchainToken() view returns(address)

func (*SidechainERC20Caller) Name

func (_SidechainERC20 *SidechainERC20Caller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*SidechainERC20Caller) Owner

func (_SidechainERC20 *SidechainERC20Caller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SidechainERC20Caller) Symbol

func (_SidechainERC20 *SidechainERC20Caller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*SidechainERC20Caller) TotalSupply

func (_SidechainERC20 *SidechainERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*SidechainERC20Caller) TransferNonces

func (_SidechainERC20 *SidechainERC20Caller) TransferNonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

TransferNonces is a free data retrieval call binding the contract method 0xf6f0e8a6.

Solidity: function transferNonces(address ) view returns(uint256)

func (*SidechainERC20Caller) WithdrawNonces

func (_SidechainERC20 *SidechainERC20Caller) WithdrawNonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

WithdrawNonces is a free data retrieval call binding the contract method 0xf5aa42bb.

Solidity: function withdrawNonces(address ) view returns(uint256)

type SidechainERC20CallerRaw

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

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

func (*SidechainERC20CallerRaw) Call

func (_SidechainERC20 *SidechainERC20CallerRaw) 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 SidechainERC20CallerSession

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

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

func (*SidechainERC20CallerSession) Allowance

func (_SidechainERC20 *SidechainERC20CallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address , address ) view returns(uint256)

func (*SidechainERC20CallerSession) BalanceOf

func (_SidechainERC20 *SidechainERC20CallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*SidechainERC20CallerSession) Decimals

func (_SidechainERC20 *SidechainERC20CallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*SidechainERC20CallerSession) MainchainToken

func (_SidechainERC20 *SidechainERC20CallerSession) MainchainToken() (common.Address, error)

MainchainToken is a free data retrieval call binding the contract method 0x9cdcac9c.

Solidity: function mainchainToken() view returns(address)

func (*SidechainERC20CallerSession) Name

func (_SidechainERC20 *SidechainERC20CallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*SidechainERC20CallerSession) Owner

func (_SidechainERC20 *SidechainERC20CallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SidechainERC20CallerSession) Symbol

func (_SidechainERC20 *SidechainERC20CallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*SidechainERC20CallerSession) TotalSupply

func (_SidechainERC20 *SidechainERC20CallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*SidechainERC20CallerSession) TransferNonces

func (_SidechainERC20 *SidechainERC20CallerSession) TransferNonces(arg0 common.Address) (*big.Int, error)

TransferNonces is a free data retrieval call binding the contract method 0xf6f0e8a6.

Solidity: function transferNonces(address ) view returns(uint256)

func (*SidechainERC20CallerSession) WithdrawNonces

func (_SidechainERC20 *SidechainERC20CallerSession) WithdrawNonces(arg0 common.Address) (*big.Int, error)

WithdrawNonces is a free data retrieval call binding the contract method 0xf5aa42bb.

Solidity: function withdrawNonces(address ) view returns(uint256)

type SidechainERC20Deposit

type SidechainERC20Deposit struct {
	MainchainToken common.Address
	Account        common.Address
	Amount         *big.Int
	Signature      []byte
	Raw            types.Log // Blockchain specific contextual infos
}

SidechainERC20Deposit represents a Deposit event raised by the SidechainERC20 contract.

type SidechainERC20DepositIterator

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

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

func (*SidechainERC20DepositIterator) Close

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

func (*SidechainERC20DepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SidechainERC20DepositIterator) 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 SidechainERC20Filterer

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

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

func NewSidechainERC20Filterer

func NewSidechainERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*SidechainERC20Filterer, error)

NewSidechainERC20Filterer creates a new log filterer instance of SidechainERC20, bound to a specific deployed contract.

func (*SidechainERC20Filterer) FilterApproval

func (_SidechainERC20 *SidechainERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*SidechainERC20ApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*SidechainERC20Filterer) FilterDeposit

func (_SidechainERC20 *SidechainERC20Filterer) FilterDeposit(opts *bind.FilterOpts, mainchainToken []common.Address, account []common.Address) (*SidechainERC20DepositIterator, error)

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

Solidity: event Deposit(address indexed mainchainToken, address indexed account, uint256 amount, bytes signature)

func (*SidechainERC20Filterer) FilterOwnershipTransferred

func (_SidechainERC20 *SidechainERC20Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SidechainERC20OwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*SidechainERC20Filterer) FilterTransfer

func (_SidechainERC20 *SidechainERC20Filterer) FilterTransfer(opts *bind.FilterOpts, mainchainToken []common.Address, sender []common.Address, recipient []common.Address) (*SidechainERC20TransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0x17058394898febb944da4757aec20238c33e9566d2f7b14b2289184e107741b9.

Solidity: event Transfer(address indexed mainchainToken, address indexed sender, address indexed recipient, uint256 amount, uint256 nonce, bytes signature)

func (*SidechainERC20Filterer) FilterTransfer0

func (_SidechainERC20 *SidechainERC20Filterer) FilterTransfer0(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*SidechainERC20Transfer0Iterator, error)

FilterTransfer0 is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*SidechainERC20Filterer) FilterWithdraw

func (_SidechainERC20 *SidechainERC20Filterer) FilterWithdraw(opts *bind.FilterOpts, mainchainToken []common.Address, account []common.Address) (*SidechainERC20WithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0x33be7eabd8ed368ca1aa14ce2ad1e90a0c9bf21edbb3820d5591546e4eb84157.

Solidity: event Withdraw(address indexed mainchainToken, address indexed account, uint256 amount, uint256 nonce, bytes signature)

func (*SidechainERC20Filterer) ParseApproval

func (_SidechainERC20 *SidechainERC20Filterer) ParseApproval(log types.Log) (*SidechainERC20Approval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*SidechainERC20Filterer) ParseDeposit

func (_SidechainERC20 *SidechainERC20Filterer) ParseDeposit(log types.Log) (*SidechainERC20Deposit, error)

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

Solidity: event Deposit(address indexed mainchainToken, address indexed account, uint256 amount, bytes signature)

func (*SidechainERC20Filterer) ParseOwnershipTransferred

func (_SidechainERC20 *SidechainERC20Filterer) ParseOwnershipTransferred(log types.Log) (*SidechainERC20OwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*SidechainERC20Filterer) ParseTransfer

func (_SidechainERC20 *SidechainERC20Filterer) ParseTransfer(log types.Log) (*SidechainERC20Transfer, error)

ParseTransfer is a log parse operation binding the contract event 0x17058394898febb944da4757aec20238c33e9566d2f7b14b2289184e107741b9.

Solidity: event Transfer(address indexed mainchainToken, address indexed sender, address indexed recipient, uint256 amount, uint256 nonce, bytes signature)

func (*SidechainERC20Filterer) ParseTransfer0

func (_SidechainERC20 *SidechainERC20Filterer) ParseTransfer0(log types.Log) (*SidechainERC20Transfer0, error)

ParseTransfer0 is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*SidechainERC20Filterer) ParseWithdraw

func (_SidechainERC20 *SidechainERC20Filterer) ParseWithdraw(log types.Log) (*SidechainERC20Withdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0x33be7eabd8ed368ca1aa14ce2ad1e90a0c9bf21edbb3820d5591546e4eb84157.

Solidity: event Withdraw(address indexed mainchainToken, address indexed account, uint256 amount, uint256 nonce, bytes signature)

func (*SidechainERC20Filterer) WatchApproval

func (_SidechainERC20 *SidechainERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *SidechainERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*SidechainERC20Filterer) WatchDeposit

func (_SidechainERC20 *SidechainERC20Filterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *SidechainERC20Deposit, mainchainToken []common.Address, account []common.Address) (event.Subscription, error)

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

Solidity: event Deposit(address indexed mainchainToken, address indexed account, uint256 amount, bytes signature)

func (*SidechainERC20Filterer) WatchOwnershipTransferred

func (_SidechainERC20 *SidechainERC20Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SidechainERC20OwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*SidechainERC20Filterer) WatchTransfer

func (_SidechainERC20 *SidechainERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *SidechainERC20Transfer, mainchainToken []common.Address, sender []common.Address, recipient []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0x17058394898febb944da4757aec20238c33e9566d2f7b14b2289184e107741b9.

Solidity: event Transfer(address indexed mainchainToken, address indexed sender, address indexed recipient, uint256 amount, uint256 nonce, bytes signature)

func (*SidechainERC20Filterer) WatchTransfer0

func (_SidechainERC20 *SidechainERC20Filterer) WatchTransfer0(opts *bind.WatchOpts, sink chan<- *SidechainERC20Transfer0, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer0 is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*SidechainERC20Filterer) WatchWithdraw

func (_SidechainERC20 *SidechainERC20Filterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *SidechainERC20Withdraw, mainchainToken []common.Address, account []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0x33be7eabd8ed368ca1aa14ce2ad1e90a0c9bf21edbb3820d5591546e4eb84157.

Solidity: event Withdraw(address indexed mainchainToken, address indexed account, uint256 amount, uint256 nonce, bytes signature)

type SidechainERC20OwnershipTransferred

type SidechainERC20OwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

SidechainERC20OwnershipTransferred represents a OwnershipTransferred event raised by the SidechainERC20 contract.

type SidechainERC20OwnershipTransferredIterator

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

SidechainERC20OwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the SidechainERC20 contract.

func (*SidechainERC20OwnershipTransferredIterator) Close

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

func (*SidechainERC20OwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SidechainERC20OwnershipTransferredIterator) 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 SidechainERC20Raw

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

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

func (*SidechainERC20Raw) Call

func (_SidechainERC20 *SidechainERC20Raw) 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 (*SidechainERC20Raw) Transact

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

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

func (*SidechainERC20Raw) Transfer

func (_SidechainERC20 *SidechainERC20Raw) 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 SidechainERC20Session

type SidechainERC20Session struct {
	Contract     *SidechainERC20   // 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
}

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

func (*SidechainERC20Session) Allowance

func (_SidechainERC20 *SidechainERC20Session) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address , address ) view returns(uint256)

func (*SidechainERC20Session) Approve

func (_SidechainERC20 *SidechainERC20Session) Approve(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address , uint256 ) returns(bool)

func (*SidechainERC20Session) BalanceOf

func (_SidechainERC20 *SidechainERC20Session) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*SidechainERC20Session) Decimals

func (_SidechainERC20 *SidechainERC20Session) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*SidechainERC20Session) DecreaseAllowance

func (_SidechainERC20 *SidechainERC20Session) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*SidechainERC20Session) Deposit

func (_SidechainERC20 *SidechainERC20Session) Deposit(_account common.Address, _amount *big.Int, _signature []byte) (*types.Transaction, error)

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

Solidity: function deposit(address _account, uint256 _amount, bytes _signature) returns()

func (*SidechainERC20Session) IncreaseAllowance

func (_SidechainERC20 *SidechainERC20Session) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*SidechainERC20Session) MainchainToken

func (_SidechainERC20 *SidechainERC20Session) MainchainToken() (common.Address, error)

MainchainToken is a free data retrieval call binding the contract method 0x9cdcac9c.

Solidity: function mainchainToken() view returns(address)

func (*SidechainERC20Session) Name

func (_SidechainERC20 *SidechainERC20Session) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*SidechainERC20Session) Owner

func (_SidechainERC20 *SidechainERC20Session) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SidechainERC20Session) RenounceOwnership

func (_SidechainERC20 *SidechainERC20Session) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*SidechainERC20Session) Symbol

func (_SidechainERC20 *SidechainERC20Session) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*SidechainERC20Session) TotalSupply

func (_SidechainERC20 *SidechainERC20Session) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*SidechainERC20Session) Transfer

func (_SidechainERC20 *SidechainERC20Session) Transfer(_sender common.Address, _recipient common.Address, _amount *big.Int, _signature []byte) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0x12a837b4.

Solidity: function transfer(address _sender, address _recipient, uint256 _amount, bytes _signature) returns(bool)

func (*SidechainERC20Session) Transfer0

func (_SidechainERC20 *SidechainERC20Session) Transfer0(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)

Transfer0 is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address , uint256 ) returns(bool)

func (*SidechainERC20Session) TransferFrom

func (_SidechainERC20 *SidechainERC20Session) TransferFrom(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address , address , uint256 ) returns(bool)

func (*SidechainERC20Session) TransferNonces

func (_SidechainERC20 *SidechainERC20Session) TransferNonces(arg0 common.Address) (*big.Int, error)

TransferNonces is a free data retrieval call binding the contract method 0xf6f0e8a6.

Solidity: function transferNonces(address ) view returns(uint256)

func (*SidechainERC20Session) TransferOwnership

func (_SidechainERC20 *SidechainERC20Session) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*SidechainERC20Session) Withdraw

func (_SidechainERC20 *SidechainERC20Session) Withdraw(_account common.Address, _amount *big.Int, _signature []byte) (*types.Transaction, error)

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

Solidity: function withdraw(address _account, uint256 _amount, bytes _signature) returns()

func (*SidechainERC20Session) WithdrawNonces

func (_SidechainERC20 *SidechainERC20Session) WithdrawNonces(arg0 common.Address) (*big.Int, error)

WithdrawNonces is a free data retrieval call binding the contract method 0xf5aa42bb.

Solidity: function withdrawNonces(address ) view returns(uint256)

type SidechainERC20Transactor

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

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

func NewSidechainERC20Transactor

func NewSidechainERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*SidechainERC20Transactor, error)

NewSidechainERC20Transactor creates a new write-only instance of SidechainERC20, bound to a specific deployed contract.

func (*SidechainERC20Transactor) Approve

func (_SidechainERC20 *SidechainERC20Transactor) Approve(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address , uint256 ) returns(bool)

func (*SidechainERC20Transactor) DecreaseAllowance

func (_SidechainERC20 *SidechainERC20Transactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*SidechainERC20Transactor) Deposit

func (_SidechainERC20 *SidechainERC20Transactor) Deposit(opts *bind.TransactOpts, _account common.Address, _amount *big.Int, _signature []byte) (*types.Transaction, error)

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

Solidity: function deposit(address _account, uint256 _amount, bytes _signature) returns()

func (*SidechainERC20Transactor) IncreaseAllowance

func (_SidechainERC20 *SidechainERC20Transactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*SidechainERC20Transactor) RenounceOwnership

func (_SidechainERC20 *SidechainERC20Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*SidechainERC20Transactor) Transfer

func (_SidechainERC20 *SidechainERC20Transactor) Transfer(opts *bind.TransactOpts, _sender common.Address, _recipient common.Address, _amount *big.Int, _signature []byte) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0x12a837b4.

Solidity: function transfer(address _sender, address _recipient, uint256 _amount, bytes _signature) returns(bool)

func (*SidechainERC20Transactor) Transfer0

func (_SidechainERC20 *SidechainERC20Transactor) Transfer0(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)

Transfer0 is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address , uint256 ) returns(bool)

func (*SidechainERC20Transactor) TransferFrom

func (_SidechainERC20 *SidechainERC20Transactor) TransferFrom(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address , address , uint256 ) returns(bool)

func (*SidechainERC20Transactor) TransferOwnership

func (_SidechainERC20 *SidechainERC20Transactor) 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()

func (*SidechainERC20Transactor) Withdraw

func (_SidechainERC20 *SidechainERC20Transactor) Withdraw(opts *bind.TransactOpts, _account common.Address, _amount *big.Int, _signature []byte) (*types.Transaction, error)

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

Solidity: function withdraw(address _account, uint256 _amount, bytes _signature) returns()

type SidechainERC20TransactorRaw

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

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

func (*SidechainERC20TransactorRaw) Transact

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

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

func (*SidechainERC20TransactorRaw) Transfer

func (_SidechainERC20 *SidechainERC20TransactorRaw) 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 SidechainERC20TransactorSession

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

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

func (*SidechainERC20TransactorSession) Approve

func (_SidechainERC20 *SidechainERC20TransactorSession) Approve(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address , uint256 ) returns(bool)

func (*SidechainERC20TransactorSession) DecreaseAllowance

func (_SidechainERC20 *SidechainERC20TransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*SidechainERC20TransactorSession) Deposit

func (_SidechainERC20 *SidechainERC20TransactorSession) Deposit(_account common.Address, _amount *big.Int, _signature []byte) (*types.Transaction, error)

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

Solidity: function deposit(address _account, uint256 _amount, bytes _signature) returns()

func (*SidechainERC20TransactorSession) IncreaseAllowance

func (_SidechainERC20 *SidechainERC20TransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*SidechainERC20TransactorSession) RenounceOwnership

func (_SidechainERC20 *SidechainERC20TransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*SidechainERC20TransactorSession) Transfer

func (_SidechainERC20 *SidechainERC20TransactorSession) Transfer(_sender common.Address, _recipient common.Address, _amount *big.Int, _signature []byte) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0x12a837b4.

Solidity: function transfer(address _sender, address _recipient, uint256 _amount, bytes _signature) returns(bool)

func (*SidechainERC20TransactorSession) Transfer0

func (_SidechainERC20 *SidechainERC20TransactorSession) Transfer0(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)

Transfer0 is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address , uint256 ) returns(bool)

func (*SidechainERC20TransactorSession) TransferFrom

func (_SidechainERC20 *SidechainERC20TransactorSession) TransferFrom(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address , address , uint256 ) returns(bool)

func (*SidechainERC20TransactorSession) TransferOwnership

func (_SidechainERC20 *SidechainERC20TransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*SidechainERC20TransactorSession) Withdraw

func (_SidechainERC20 *SidechainERC20TransactorSession) Withdraw(_account common.Address, _amount *big.Int, _signature []byte) (*types.Transaction, error)

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

Solidity: function withdraw(address _account, uint256 _amount, bytes _signature) returns()

type SidechainERC20Transfer

type SidechainERC20Transfer struct {
	MainchainToken common.Address
	Sender         common.Address
	Recipient      common.Address
	Amount         *big.Int
	Nonce          *big.Int
	Signature      []byte
	Raw            types.Log // Blockchain specific contextual infos
}

SidechainERC20Transfer represents a Transfer event raised by the SidechainERC20 contract.

type SidechainERC20Transfer0

type SidechainERC20Transfer0 struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

SidechainERC20Transfer0 represents a Transfer0 event raised by the SidechainERC20 contract.

type SidechainERC20Transfer0Iterator

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

SidechainERC20Transfer0Iterator is returned from FilterTransfer0 and is used to iterate over the raw logs and unpacked data for Transfer0 events raised by the SidechainERC20 contract.

func (*SidechainERC20Transfer0Iterator) Close

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

func (*SidechainERC20Transfer0Iterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SidechainERC20Transfer0Iterator) 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 SidechainERC20TransferIterator

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

SidechainERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the SidechainERC20 contract.

func (*SidechainERC20TransferIterator) Close

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

func (*SidechainERC20TransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SidechainERC20TransferIterator) 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 SidechainERC20Withdraw

type SidechainERC20Withdraw struct {
	MainchainToken common.Address
	Account        common.Address
	Amount         *big.Int
	Nonce          *big.Int
	Signature      []byte
	Raw            types.Log // Blockchain specific contextual infos
}

SidechainERC20Withdraw represents a Withdraw event raised by the SidechainERC20 contract.

type SidechainERC20WithdrawIterator

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

SidechainERC20WithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the SidechainERC20 contract.

func (*SidechainERC20WithdrawIterator) Close

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

func (*SidechainERC20WithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SidechainERC20WithdrawIterator) 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 TokenMapper

type TokenMapper struct {
	TokenMapperCaller     // Read-only binding to the contract
	TokenMapperTransactor // Write-only binding to the contract
	TokenMapperFilterer   // Log filterer for contract events
}

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

func DeployTokenMapper

func DeployTokenMapper(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *TokenMapper, error)

DeployTokenMapper deploys a new Ethereum contract, binding an instance of TokenMapper to it.

func NewTokenMapper

func NewTokenMapper(address common.Address, backend bind.ContractBackend) (*TokenMapper, error)

NewTokenMapper creates a new instance of TokenMapper, bound to a specific deployed contract.

type TokenMapperCaller

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

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

func NewTokenMapperCaller

func NewTokenMapperCaller(address common.Address, caller bind.ContractCaller) (*TokenMapperCaller, error)

NewTokenMapperCaller creates a new read-only instance of TokenMapper, bound to a specific deployed contract.

func (*TokenMapperCaller) MainchainTokenToSidechainToken

func (_TokenMapper *TokenMapperCaller) MainchainTokenToSidechainToken(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

MainchainTokenToSidechainToken is a free data retrieval call binding the contract method 0x98aed3ff.

Solidity: function mainchainTokenToSidechainToken(address ) view returns(address)

func (*TokenMapperCaller) Owner

func (_TokenMapper *TokenMapperCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*TokenMapperCaller) SidechainTokenToMainchainToken

func (_TokenMapper *TokenMapperCaller) SidechainTokenToMainchainToken(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

SidechainTokenToMainchainToken is a free data retrieval call binding the contract method 0xe5d24c32.

Solidity: function sidechainTokenToMainchainToken(address ) view returns(address)

type TokenMapperCallerRaw

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

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

func (*TokenMapperCallerRaw) Call

func (_TokenMapper *TokenMapperCallerRaw) 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 TokenMapperCallerSession

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

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

func (*TokenMapperCallerSession) MainchainTokenToSidechainToken

func (_TokenMapper *TokenMapperCallerSession) MainchainTokenToSidechainToken(arg0 common.Address) (common.Address, error)

MainchainTokenToSidechainToken is a free data retrieval call binding the contract method 0x98aed3ff.

Solidity: function mainchainTokenToSidechainToken(address ) view returns(address)

func (*TokenMapperCallerSession) Owner

func (_TokenMapper *TokenMapperCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*TokenMapperCallerSession) SidechainTokenToMainchainToken

func (_TokenMapper *TokenMapperCallerSession) SidechainTokenToMainchainToken(arg0 common.Address) (common.Address, error)

SidechainTokenToMainchainToken is a free data retrieval call binding the contract method 0xe5d24c32.

Solidity: function sidechainTokenToMainchainToken(address ) view returns(address)

type TokenMapperFilterer

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

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

func NewTokenMapperFilterer

func NewTokenMapperFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenMapperFilterer, error)

NewTokenMapperFilterer creates a new log filterer instance of TokenMapper, bound to a specific deployed contract.

func (*TokenMapperFilterer) FilterOwnershipTransferred

func (_TokenMapper *TokenMapperFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenMapperOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*TokenMapperFilterer) FilterTokenMapped

func (_TokenMapper *TokenMapperFilterer) FilterTokenMapped(opts *bind.FilterOpts, mainchainToken []common.Address, sidechainToken []common.Address) (*TokenMapperTokenMappedIterator, error)

FilterTokenMapped is a free log retrieval operation binding the contract event 0x85920d35e6c72f6b2affffa04298b0cecfeba86e4a9f407df661f1cb8ab5e617.

Solidity: event TokenMapped(address indexed mainchainToken, address indexed sidechainToken)

func (*TokenMapperFilterer) ParseOwnershipTransferred

func (_TokenMapper *TokenMapperFilterer) ParseOwnershipTransferred(log types.Log) (*TokenMapperOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*TokenMapperFilterer) ParseTokenMapped

func (_TokenMapper *TokenMapperFilterer) ParseTokenMapped(log types.Log) (*TokenMapperTokenMapped, error)

ParseTokenMapped is a log parse operation binding the contract event 0x85920d35e6c72f6b2affffa04298b0cecfeba86e4a9f407df661f1cb8ab5e617.

Solidity: event TokenMapped(address indexed mainchainToken, address indexed sidechainToken)

func (*TokenMapperFilterer) WatchOwnershipTransferred

func (_TokenMapper *TokenMapperFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenMapperOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*TokenMapperFilterer) WatchTokenMapped

func (_TokenMapper *TokenMapperFilterer) WatchTokenMapped(opts *bind.WatchOpts, sink chan<- *TokenMapperTokenMapped, mainchainToken []common.Address, sidechainToken []common.Address) (event.Subscription, error)

WatchTokenMapped is a free log subscription operation binding the contract event 0x85920d35e6c72f6b2affffa04298b0cecfeba86e4a9f407df661f1cb8ab5e617.

Solidity: event TokenMapped(address indexed mainchainToken, address indexed sidechainToken)

type TokenMapperOwnershipTransferred

type TokenMapperOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

TokenMapperOwnershipTransferred represents a OwnershipTransferred event raised by the TokenMapper contract.

type TokenMapperOwnershipTransferredIterator

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

TokenMapperOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the TokenMapper contract.

func (*TokenMapperOwnershipTransferredIterator) Close

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

func (*TokenMapperOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenMapperOwnershipTransferredIterator) 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 TokenMapperRaw

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

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

func (*TokenMapperRaw) Call

func (_TokenMapper *TokenMapperRaw) 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 (*TokenMapperRaw) Transact

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

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

func (*TokenMapperRaw) Transfer

func (_TokenMapper *TokenMapperRaw) 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 TokenMapperSession

type TokenMapperSession struct {
	Contract     *TokenMapper      // 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
}

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

func (*TokenMapperSession) MainchainTokenToSidechainToken

func (_TokenMapper *TokenMapperSession) MainchainTokenToSidechainToken(arg0 common.Address) (common.Address, error)

MainchainTokenToSidechainToken is a free data retrieval call binding the contract method 0x98aed3ff.

Solidity: function mainchainTokenToSidechainToken(address ) view returns(address)

func (*TokenMapperSession) MapToken

func (_TokenMapper *TokenMapperSession) MapToken(_mainchainToken common.Address, _name string, _symbol string, _decimals uint8) (*types.Transaction, error)

MapToken is a paid mutator transaction binding the contract method 0xed51c1c8.

Solidity: function mapToken(address _mainchainToken, string _name, string _symbol, uint8 _decimals) returns(address token)

func (*TokenMapperSession) Owner

func (_TokenMapper *TokenMapperSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*TokenMapperSession) RenounceOwnership

func (_TokenMapper *TokenMapperSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*TokenMapperSession) SidechainTokenToMainchainToken

func (_TokenMapper *TokenMapperSession) SidechainTokenToMainchainToken(arg0 common.Address) (common.Address, error)

SidechainTokenToMainchainToken is a free data retrieval call binding the contract method 0xe5d24c32.

Solidity: function sidechainTokenToMainchainToken(address ) view returns(address)

func (*TokenMapperSession) TransferOwnership

func (_TokenMapper *TokenMapperSession) 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 TokenMapperTokenMapped

type TokenMapperTokenMapped struct {
	MainchainToken common.Address
	SidechainToken common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

TokenMapperTokenMapped represents a TokenMapped event raised by the TokenMapper contract.

type TokenMapperTokenMappedIterator

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

TokenMapperTokenMappedIterator is returned from FilterTokenMapped and is used to iterate over the raw logs and unpacked data for TokenMapped events raised by the TokenMapper contract.

func (*TokenMapperTokenMappedIterator) Close

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

func (*TokenMapperTokenMappedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenMapperTokenMappedIterator) 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 TokenMapperTransactor

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

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

func NewTokenMapperTransactor

func NewTokenMapperTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenMapperTransactor, error)

NewTokenMapperTransactor creates a new write-only instance of TokenMapper, bound to a specific deployed contract.

func (*TokenMapperTransactor) MapToken

func (_TokenMapper *TokenMapperTransactor) MapToken(opts *bind.TransactOpts, _mainchainToken common.Address, _name string, _symbol string, _decimals uint8) (*types.Transaction, error)

MapToken is a paid mutator transaction binding the contract method 0xed51c1c8.

Solidity: function mapToken(address _mainchainToken, string _name, string _symbol, uint8 _decimals) returns(address token)

func (*TokenMapperTransactor) RenounceOwnership

func (_TokenMapper *TokenMapperTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*TokenMapperTransactor) TransferOwnership

func (_TokenMapper *TokenMapperTransactor) 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 TokenMapperTransactorRaw

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

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

func (*TokenMapperTransactorRaw) Transact

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

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

func (*TokenMapperTransactorRaw) Transfer

func (_TokenMapper *TokenMapperTransactorRaw) 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 TokenMapperTransactorSession

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

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

func (*TokenMapperTransactorSession) MapToken

func (_TokenMapper *TokenMapperTransactorSession) MapToken(_mainchainToken common.Address, _name string, _symbol string, _decimals uint8) (*types.Transaction, error)

MapToken is a paid mutator transaction binding the contract method 0xed51c1c8.

Solidity: function mapToken(address _mainchainToken, string _name, string _symbol, uint8 _decimals) returns(address token)

func (*TokenMapperTransactorSession) RenounceOwnership

func (_TokenMapper *TokenMapperTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*TokenMapperTransactorSession) TransferOwnership

func (_TokenMapper *TokenMapperTransactorSession) 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