eth

package
v0.0.0-...-77960fc Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RootChainABI = "" /* 5715-byte string literal not displayed */

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

View Source
const RootChainBin = `` /* 24884-byte string literal not displayed */

RootChainBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type RootChain

type RootChain struct {
	RootChainCaller     // Read-only binding to the contract
	RootChainTransactor // Write-only binding to the contract
	RootChainFilterer   // Log filterer for contract events
}

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

func DeployRootChain

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

DeployRootChain deploys a new Ethereum contract, binding an instance of RootChain to it.

func NewRootChain

func NewRootChain(address common.Address, backend bind.ContractBackend) (*RootChain, error)

NewRootChain creates a new instance of RootChain, bound to a specific deployed contract.

type RootChainBlockSubmitted

type RootChainBlockSubmitted struct {
	Root                [32]byte
	LastDepositBlockNum *big.Int
	SubmittedBlockNum   *big.Int
	Timestamp           *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

RootChainBlockSubmitted represents a BlockSubmitted event raised by the RootChain contract.

type RootChainBlockSubmittedIterator

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

RootChainBlockSubmittedIterator is returned from FilterBlockSubmitted and is used to iterate over the raw logs and unpacked data for BlockSubmitted events raised by the RootChain contract.

func (*RootChainBlockSubmittedIterator) Close

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

func (*RootChainBlockSubmittedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainBlockSubmittedIterator) 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 RootChainCaller

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

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

func NewRootChainCaller

func NewRootChainCaller(address common.Address, caller bind.ContractCaller) (*RootChainCaller, error)

NewRootChainCaller creates a new read-only instance of RootChain, bound to a specific deployed contract.

func (*RootChainCaller) CHILDBLOCKINTERVAL

func (_RootChain *RootChainCaller) CHILDBLOCKINTERVAL(opts *bind.CallOpts) (*big.Int, error)

CHILDBLOCKINTERVAL is a free data retrieval call binding the contract method 0xa831fa07.

Solidity: function CHILD_BLOCK_INTERVAL() constant returns(uint256)

func (*RootChainCaller) ChildChain

func (_RootChain *RootChainCaller) ChildChain(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Root      [32]byte
	Timestamp *big.Int
}, error)

ChildChain is a free data retrieval call binding the contract method 0xf95643b1.

Solidity: function childChain( uint256) constant returns(root bytes32, timestamp uint256)

func (*RootChainCaller) CurrentChildBlock

func (_RootChain *RootChainCaller) CurrentChildBlock(opts *bind.CallOpts) (*big.Int, error)

CurrentChildBlock is a free data retrieval call binding the contract method 0x7a95f1e8.

Solidity: function currentChildBlock() constant returns(uint256)

func (*RootChainCaller) CurrentDepositBlock

func (_RootChain *RootChainCaller) CurrentDepositBlock(opts *bind.CallOpts) (*big.Int, error)

CurrentDepositBlock is a free data retrieval call binding the contract method 0xa98c7f2c.

Solidity: function currentDepositBlock() constant returns(uint256)

func (*RootChainCaller) CurrentFeeExit

func (_RootChain *RootChainCaller) CurrentFeeExit(opts *bind.CallOpts) (*big.Int, error)

CurrentFeeExit is a free data retrieval call binding the contract method 0xcfe7d855.

Solidity: function currentFeeExit() constant returns(uint256)

func (*RootChainCaller) Exits

func (_RootChain *RootChainCaller) Exits(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Owner  common.Address
	Token  common.Address
	Amount *big.Int
}, error)

Exits is a free data retrieval call binding the contract method 0x342de179.

Solidity: function exits( uint256) constant returns(owner address, token address, amount uint256)

func (*RootChainCaller) ExitsQueues

func (_RootChain *RootChainCaller) ExitsQueues(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

ExitsQueues is a free data retrieval call binding the contract method 0xd11f045c.

Solidity: function exitsQueues( address) constant returns(address)

func (*RootChainCaller) GetChildChain

func (_RootChain *RootChainCaller) GetChildChain(opts *bind.CallOpts, _blockNumber *big.Int) ([32]byte, *big.Int, error)

GetChildChain is a free data retrieval call binding the contract method 0x85444de3.

Solidity: function getChildChain(_blockNumber uint256) constant returns(bytes32, uint256)

func (*RootChainCaller) GetDepositBlock

func (_RootChain *RootChainCaller) GetDepositBlock(opts *bind.CallOpts) (*big.Int, error)

GetDepositBlock is a free data retrieval call binding the contract method 0xbcd59261.

Solidity: function getDepositBlock() constant returns(uint256)

func (*RootChainCaller) GetExit

func (_RootChain *RootChainCaller) GetExit(opts *bind.CallOpts, _utxoPos *big.Int) (common.Address, common.Address, *big.Int, error)

GetExit is a free data retrieval call binding the contract method 0xe60f1ff1.

Solidity: function getExit(_utxoPos uint256) constant returns(address, address, uint256)

func (*RootChainCaller) GetNextExit

func (_RootChain *RootChainCaller) GetNextExit(opts *bind.CallOpts, _token common.Address) (*big.Int, *big.Int, error)

GetNextExit is a free data retrieval call binding the contract method 0x8bfe0aec.

Solidity: function getNextExit(_token address) constant returns(uint256, uint256)

func (*RootChainCaller) Operator

func (_RootChain *RootChainCaller) Operator(opts *bind.CallOpts) (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() constant returns(address)

type RootChainCallerRaw

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

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

func (*RootChainCallerRaw) Call

func (_RootChain *RootChainCallerRaw) 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 RootChainCallerSession

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

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

func (*RootChainCallerSession) CHILDBLOCKINTERVAL

func (_RootChain *RootChainCallerSession) CHILDBLOCKINTERVAL() (*big.Int, error)

CHILDBLOCKINTERVAL is a free data retrieval call binding the contract method 0xa831fa07.

Solidity: function CHILD_BLOCK_INTERVAL() constant returns(uint256)

func (*RootChainCallerSession) ChildChain

func (_RootChain *RootChainCallerSession) ChildChain(arg0 *big.Int) (struct {
	Root      [32]byte
	Timestamp *big.Int
}, error)

ChildChain is a free data retrieval call binding the contract method 0xf95643b1.

Solidity: function childChain( uint256) constant returns(root bytes32, timestamp uint256)

func (*RootChainCallerSession) CurrentChildBlock

func (_RootChain *RootChainCallerSession) CurrentChildBlock() (*big.Int, error)

CurrentChildBlock is a free data retrieval call binding the contract method 0x7a95f1e8.

Solidity: function currentChildBlock() constant returns(uint256)

func (*RootChainCallerSession) CurrentDepositBlock

func (_RootChain *RootChainCallerSession) CurrentDepositBlock() (*big.Int, error)

CurrentDepositBlock is a free data retrieval call binding the contract method 0xa98c7f2c.

Solidity: function currentDepositBlock() constant returns(uint256)

func (*RootChainCallerSession) CurrentFeeExit

func (_RootChain *RootChainCallerSession) CurrentFeeExit() (*big.Int, error)

CurrentFeeExit is a free data retrieval call binding the contract method 0xcfe7d855.

Solidity: function currentFeeExit() constant returns(uint256)

func (*RootChainCallerSession) Exits

func (_RootChain *RootChainCallerSession) Exits(arg0 *big.Int) (struct {
	Owner  common.Address
	Token  common.Address
	Amount *big.Int
}, error)

Exits is a free data retrieval call binding the contract method 0x342de179.

Solidity: function exits( uint256) constant returns(owner address, token address, amount uint256)

func (*RootChainCallerSession) ExitsQueues

func (_RootChain *RootChainCallerSession) ExitsQueues(arg0 common.Address) (common.Address, error)

ExitsQueues is a free data retrieval call binding the contract method 0xd11f045c.

Solidity: function exitsQueues( address) constant returns(address)

func (*RootChainCallerSession) GetChildChain

func (_RootChain *RootChainCallerSession) GetChildChain(_blockNumber *big.Int) ([32]byte, *big.Int, error)

GetChildChain is a free data retrieval call binding the contract method 0x85444de3.

Solidity: function getChildChain(_blockNumber uint256) constant returns(bytes32, uint256)

func (*RootChainCallerSession) GetDepositBlock

func (_RootChain *RootChainCallerSession) GetDepositBlock() (*big.Int, error)

GetDepositBlock is a free data retrieval call binding the contract method 0xbcd59261.

Solidity: function getDepositBlock() constant returns(uint256)

func (*RootChainCallerSession) GetExit

func (_RootChain *RootChainCallerSession) GetExit(_utxoPos *big.Int) (common.Address, common.Address, *big.Int, error)

GetExit is a free data retrieval call binding the contract method 0xe60f1ff1.

Solidity: function getExit(_utxoPos uint256) constant returns(address, address, uint256)

func (*RootChainCallerSession) GetNextExit

func (_RootChain *RootChainCallerSession) GetNextExit(_token common.Address) (*big.Int, *big.Int, error)

GetNextExit is a free data retrieval call binding the contract method 0x8bfe0aec.

Solidity: function getNextExit(_token address) constant returns(uint256, uint256)

func (*RootChainCallerSession) Operator

func (_RootChain *RootChainCallerSession) Operator() (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() constant returns(address)

type RootChainDeposit

type RootChainDeposit struct {
	Depositor    common.Address
	DepositBlock *big.Int
	Token        common.Address
	Amount       *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

RootChainDeposit represents a Deposit event raised by the RootChain contract.

type RootChainDepositIterator

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

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

func (*RootChainDepositIterator) Close

func (it *RootChainDepositIterator) Close() error

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

func (*RootChainDepositIterator) Error

func (it *RootChainDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainDepositIterator) Next

func (it *RootChainDepositIterator) Next() bool

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

type RootChainExitStarted

type RootChainExitStarted struct {
	Exitor  common.Address
	UtxoPos *big.Int
	Token   common.Address
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

RootChainExitStarted represents a ExitStarted event raised by the RootChain contract.

type RootChainExitStartedIterator

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

RootChainExitStartedIterator is returned from FilterExitStarted and is used to iterate over the raw logs and unpacked data for ExitStarted events raised by the RootChain contract.

func (*RootChainExitStartedIterator) Close

func (it *RootChainExitStartedIterator) Close() error

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

func (*RootChainExitStartedIterator) Error

func (it *RootChainExitStartedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainExitStartedIterator) 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 RootChainFilterer

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

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

func NewRootChainFilterer

func NewRootChainFilterer(address common.Address, filterer bind.ContractFilterer) (*RootChainFilterer, error)

NewRootChainFilterer creates a new log filterer instance of RootChain, bound to a specific deployed contract.

func (*RootChainFilterer) FilterBlockSubmitted

func (_RootChain *RootChainFilterer) FilterBlockSubmitted(opts *bind.FilterOpts) (*RootChainBlockSubmittedIterator, error)

FilterBlockSubmitted is a free log retrieval operation binding the contract event 0x044ff3798f9b3ad55d1155cea9a40508c71b4c64335f5dae87e8e11551515a06.

Solidity: e BlockSubmitted(root bytes32, lastDepositBlockNum uint256, submittedBlockNum uint256, timestamp uint256)

func (*RootChainFilterer) FilterDeposit

func (_RootChain *RootChainFilterer) FilterDeposit(opts *bind.FilterOpts, depositor []common.Address, depositBlock []*big.Int) (*RootChainDepositIterator, error)

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

Solidity: e Deposit(depositor indexed address, depositBlock indexed uint256, token address, amount uint256)

func (*RootChainFilterer) FilterExitStarted

func (_RootChain *RootChainFilterer) FilterExitStarted(opts *bind.FilterOpts, exitor []common.Address, utxoPos []*big.Int) (*RootChainExitStartedIterator, error)

FilterExitStarted is a free log retrieval operation binding the contract event 0xf0537507c0bb9b823a1e4f5522ed9f25512618d4d169c9eb70a5ee2e9fb8bd57.

Solidity: e ExitStarted(exitor indexed address, utxoPos indexed uint256, token address, amount uint256)

func (*RootChainFilterer) FilterTokenAdded

func (_RootChain *RootChainFilterer) FilterTokenAdded(opts *bind.FilterOpts) (*RootChainTokenAddedIterator, error)

FilterTokenAdded is a free log retrieval operation binding the contract event 0x784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a4.

Solidity: e TokenAdded(token address)

func (*RootChainFilterer) WatchBlockSubmitted

func (_RootChain *RootChainFilterer) WatchBlockSubmitted(opts *bind.WatchOpts, sink chan<- *RootChainBlockSubmitted) (event.Subscription, error)

WatchBlockSubmitted is a free log subscription operation binding the contract event 0x044ff3798f9b3ad55d1155cea9a40508c71b4c64335f5dae87e8e11551515a06.

Solidity: e BlockSubmitted(root bytes32, lastDepositBlockNum uint256, submittedBlockNum uint256, timestamp uint256)

func (*RootChainFilterer) WatchDeposit

func (_RootChain *RootChainFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *RootChainDeposit, depositor []common.Address, depositBlock []*big.Int) (event.Subscription, error)

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

Solidity: e Deposit(depositor indexed address, depositBlock indexed uint256, token address, amount uint256)

func (*RootChainFilterer) WatchExitStarted

func (_RootChain *RootChainFilterer) WatchExitStarted(opts *bind.WatchOpts, sink chan<- *RootChainExitStarted, exitor []common.Address, utxoPos []*big.Int) (event.Subscription, error)

WatchExitStarted is a free log subscription operation binding the contract event 0xf0537507c0bb9b823a1e4f5522ed9f25512618d4d169c9eb70a5ee2e9fb8bd57.

Solidity: e ExitStarted(exitor indexed address, utxoPos indexed uint256, token address, amount uint256)

func (*RootChainFilterer) WatchTokenAdded

func (_RootChain *RootChainFilterer) WatchTokenAdded(opts *bind.WatchOpts, sink chan<- *RootChainTokenAdded) (event.Subscription, error)

WatchTokenAdded is a free log subscription operation binding the contract event 0x784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a4.

Solidity: e TokenAdded(token address)

type RootChainRaw

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

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

func (*RootChainRaw) Call

func (_RootChain *RootChainRaw) 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 (*RootChainRaw) Transact

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

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

func (*RootChainRaw) Transfer

func (_RootChain *RootChainRaw) 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 RootChainSession

type RootChainSession struct {
	Contract     *RootChain        // 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
}

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

func (*RootChainSession) CHILDBLOCKINTERVAL

func (_RootChain *RootChainSession) CHILDBLOCKINTERVAL() (*big.Int, error)

CHILDBLOCKINTERVAL is a free data retrieval call binding the contract method 0xa831fa07.

Solidity: function CHILD_BLOCK_INTERVAL() constant returns(uint256)

func (*RootChainSession) ChallengeExit

func (_RootChain *RootChainSession) ChallengeExit(_cUtxoPos *big.Int, _eUtxoIndex *big.Int, _txBytes []byte, _proof []byte, _sigs []byte, _confirmationSig []byte) (*types.Transaction, error)

ChallengeExit is a paid mutator transaction binding the contract method 0x32773ba3.

Solidity: function challengeExit(_cUtxoPos uint256, _eUtxoIndex uint256, _txBytes bytes, _proof bytes, _sigs bytes, _confirmationSig bytes) returns()

func (*RootChainSession) ChildChain

func (_RootChain *RootChainSession) ChildChain(arg0 *big.Int) (struct {
	Root      [32]byte
	Timestamp *big.Int
}, error)

ChildChain is a free data retrieval call binding the contract method 0xf95643b1.

Solidity: function childChain( uint256) constant returns(root bytes32, timestamp uint256)

func (*RootChainSession) CurrentChildBlock

func (_RootChain *RootChainSession) CurrentChildBlock() (*big.Int, error)

CurrentChildBlock is a free data retrieval call binding the contract method 0x7a95f1e8.

Solidity: function currentChildBlock() constant returns(uint256)

func (*RootChainSession) CurrentDepositBlock

func (_RootChain *RootChainSession) CurrentDepositBlock() (*big.Int, error)

CurrentDepositBlock is a free data retrieval call binding the contract method 0xa98c7f2c.

Solidity: function currentDepositBlock() constant returns(uint256)

func (*RootChainSession) CurrentFeeExit

func (_RootChain *RootChainSession) CurrentFeeExit() (*big.Int, error)

CurrentFeeExit is a free data retrieval call binding the contract method 0xcfe7d855.

Solidity: function currentFeeExit() constant returns(uint256)

func (*RootChainSession) Deposit

func (_RootChain *RootChainSession) Deposit() (*types.Transaction, error)

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

Solidity: function deposit() returns()

func (*RootChainSession) Exits

func (_RootChain *RootChainSession) Exits(arg0 *big.Int) (struct {
	Owner  common.Address
	Token  common.Address
	Amount *big.Int
}, error)

Exits is a free data retrieval call binding the contract method 0x342de179.

Solidity: function exits( uint256) constant returns(owner address, token address, amount uint256)

func (*RootChainSession) ExitsQueues

func (_RootChain *RootChainSession) ExitsQueues(arg0 common.Address) (common.Address, error)

ExitsQueues is a free data retrieval call binding the contract method 0xd11f045c.

Solidity: function exitsQueues( address) constant returns(address)

func (*RootChainSession) FinalizeExits

func (_RootChain *RootChainSession) FinalizeExits(_token common.Address) (*types.Transaction, error)

FinalizeExits is a paid mutator transaction binding the contract method 0x7d7b2051.

Solidity: function finalizeExits(_token address) returns()

func (*RootChainSession) GetChildChain

func (_RootChain *RootChainSession) GetChildChain(_blockNumber *big.Int) ([32]byte, *big.Int, error)

GetChildChain is a free data retrieval call binding the contract method 0x85444de3.

Solidity: function getChildChain(_blockNumber uint256) constant returns(bytes32, uint256)

func (*RootChainSession) GetDepositBlock

func (_RootChain *RootChainSession) GetDepositBlock() (*big.Int, error)

GetDepositBlock is a free data retrieval call binding the contract method 0xbcd59261.

Solidity: function getDepositBlock() constant returns(uint256)

func (*RootChainSession) GetExit

func (_RootChain *RootChainSession) GetExit(_utxoPos *big.Int) (common.Address, common.Address, *big.Int, error)

GetExit is a free data retrieval call binding the contract method 0xe60f1ff1.

Solidity: function getExit(_utxoPos uint256) constant returns(address, address, uint256)

func (*RootChainSession) GetNextExit

func (_RootChain *RootChainSession) GetNextExit(_token common.Address) (*big.Int, *big.Int, error)

GetNextExit is a free data retrieval call binding the contract method 0x8bfe0aec.

Solidity: function getNextExit(_token address) constant returns(uint256, uint256)

func (*RootChainSession) Operator

func (_RootChain *RootChainSession) Operator() (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() constant returns(address)

func (*RootChainSession) StartDepositExit

func (_RootChain *RootChainSession) StartDepositExit(_depositPos *big.Int, _token common.Address, _amount *big.Int) (*types.Transaction, error)

StartDepositExit is a paid mutator transaction binding the contract method 0xf82f7a4b.

Solidity: function startDepositExit(_depositPos uint256, _token address, _amount uint256) returns()

func (*RootChainSession) StartExit

func (_RootChain *RootChainSession) StartExit(_utxoPos *big.Int, _txBytes []byte, _proof []byte, _sigs []byte) (*types.Transaction, error)

StartExit is a paid mutator transaction binding the contract method 0x1c91a6b9.

Solidity: function startExit(_utxoPos uint256, _txBytes bytes, _proof bytes, _sigs bytes) returns()

func (*RootChainSession) StartFeeExit

func (_RootChain *RootChainSession) StartFeeExit(_token common.Address, _amount *big.Int) (*types.Transaction, error)

StartFeeExit is a paid mutator transaction binding the contract method 0x40b8d53a.

Solidity: function startFeeExit(_token address, _amount uint256) returns()

func (*RootChainSession) SubmitBlock

func (_RootChain *RootChainSession) SubmitBlock(_root [32]byte) (*types.Transaction, error)

SubmitBlock is a paid mutator transaction binding the contract method 0xbaa47694.

Solidity: function submitBlock(_root bytes32) returns()

type RootChainTokenAdded

type RootChainTokenAdded struct {
	Token common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

RootChainTokenAdded represents a TokenAdded event raised by the RootChain contract.

type RootChainTokenAddedIterator

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

RootChainTokenAddedIterator is returned from FilterTokenAdded and is used to iterate over the raw logs and unpacked data for TokenAdded events raised by the RootChain contract.

func (*RootChainTokenAddedIterator) Close

func (it *RootChainTokenAddedIterator) Close() error

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

func (*RootChainTokenAddedIterator) Error

func (it *RootChainTokenAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainTokenAddedIterator) Next

func (it *RootChainTokenAddedIterator) Next() bool

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

type RootChainTransactor

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

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

func NewRootChainTransactor

func NewRootChainTransactor(address common.Address, transactor bind.ContractTransactor) (*RootChainTransactor, error)

NewRootChainTransactor creates a new write-only instance of RootChain, bound to a specific deployed contract.

func (*RootChainTransactor) ChallengeExit

func (_RootChain *RootChainTransactor) ChallengeExit(opts *bind.TransactOpts, _cUtxoPos *big.Int, _eUtxoIndex *big.Int, _txBytes []byte, _proof []byte, _sigs []byte, _confirmationSig []byte) (*types.Transaction, error)

ChallengeExit is a paid mutator transaction binding the contract method 0x32773ba3.

Solidity: function challengeExit(_cUtxoPos uint256, _eUtxoIndex uint256, _txBytes bytes, _proof bytes, _sigs bytes, _confirmationSig bytes) returns()

func (*RootChainTransactor) Deposit

func (_RootChain *RootChainTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function deposit() returns()

func (*RootChainTransactor) FinalizeExits

func (_RootChain *RootChainTransactor) FinalizeExits(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)

FinalizeExits is a paid mutator transaction binding the contract method 0x7d7b2051.

Solidity: function finalizeExits(_token address) returns()

func (*RootChainTransactor) StartDepositExit

func (_RootChain *RootChainTransactor) StartDepositExit(opts *bind.TransactOpts, _depositPos *big.Int, _token common.Address, _amount *big.Int) (*types.Transaction, error)

StartDepositExit is a paid mutator transaction binding the contract method 0xf82f7a4b.

Solidity: function startDepositExit(_depositPos uint256, _token address, _amount uint256) returns()

func (*RootChainTransactor) StartExit

func (_RootChain *RootChainTransactor) StartExit(opts *bind.TransactOpts, _utxoPos *big.Int, _txBytes []byte, _proof []byte, _sigs []byte) (*types.Transaction, error)

StartExit is a paid mutator transaction binding the contract method 0x1c91a6b9.

Solidity: function startExit(_utxoPos uint256, _txBytes bytes, _proof bytes, _sigs bytes) returns()

func (*RootChainTransactor) StartFeeExit

func (_RootChain *RootChainTransactor) StartFeeExit(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)

StartFeeExit is a paid mutator transaction binding the contract method 0x40b8d53a.

Solidity: function startFeeExit(_token address, _amount uint256) returns()

func (*RootChainTransactor) SubmitBlock

func (_RootChain *RootChainTransactor) SubmitBlock(opts *bind.TransactOpts, _root [32]byte) (*types.Transaction, error)

SubmitBlock is a paid mutator transaction binding the contract method 0xbaa47694.

Solidity: function submitBlock(_root bytes32) returns()

type RootChainTransactorRaw

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

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

func (*RootChainTransactorRaw) Transact

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

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

func (*RootChainTransactorRaw) Transfer

func (_RootChain *RootChainTransactorRaw) 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 RootChainTransactorSession

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

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

func (*RootChainTransactorSession) ChallengeExit

func (_RootChain *RootChainTransactorSession) ChallengeExit(_cUtxoPos *big.Int, _eUtxoIndex *big.Int, _txBytes []byte, _proof []byte, _sigs []byte, _confirmationSig []byte) (*types.Transaction, error)

ChallengeExit is a paid mutator transaction binding the contract method 0x32773ba3.

Solidity: function challengeExit(_cUtxoPos uint256, _eUtxoIndex uint256, _txBytes bytes, _proof bytes, _sigs bytes, _confirmationSig bytes) returns()

func (*RootChainTransactorSession) Deposit

func (_RootChain *RootChainTransactorSession) Deposit() (*types.Transaction, error)

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

Solidity: function deposit() returns()

func (*RootChainTransactorSession) FinalizeExits

func (_RootChain *RootChainTransactorSession) FinalizeExits(_token common.Address) (*types.Transaction, error)

FinalizeExits is a paid mutator transaction binding the contract method 0x7d7b2051.

Solidity: function finalizeExits(_token address) returns()

func (*RootChainTransactorSession) StartDepositExit

func (_RootChain *RootChainTransactorSession) StartDepositExit(_depositPos *big.Int, _token common.Address, _amount *big.Int) (*types.Transaction, error)

StartDepositExit is a paid mutator transaction binding the contract method 0xf82f7a4b.

Solidity: function startDepositExit(_depositPos uint256, _token address, _amount uint256) returns()

func (*RootChainTransactorSession) StartExit

func (_RootChain *RootChainTransactorSession) StartExit(_utxoPos *big.Int, _txBytes []byte, _proof []byte, _sigs []byte) (*types.Transaction, error)

StartExit is a paid mutator transaction binding the contract method 0x1c91a6b9.

Solidity: function startExit(_utxoPos uint256, _txBytes bytes, _proof bytes, _sigs bytes) returns()

func (*RootChainTransactorSession) StartFeeExit

func (_RootChain *RootChainTransactorSession) StartFeeExit(_token common.Address, _amount *big.Int) (*types.Transaction, error)

StartFeeExit is a paid mutator transaction binding the contract method 0x40b8d53a.

Solidity: function startFeeExit(_token address, _amount uint256) returns()

func (*RootChainTransactorSession) SubmitBlock

func (_RootChain *RootChainTransactorSession) SubmitBlock(_root [32]byte) (*types.Transaction, error)

SubmitBlock is a paid mutator transaction binding the contract method 0xbaa47694.

Solidity: function submitBlock(_root bytes32) returns()

Jump to

Keyboard shortcuts

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