matic

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: LGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const ChildTokenABI = "" /* 10169-byte string literal not displayed */

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

View Source
const ERC20_TRANSFER_EVENT_SIG = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
View Source
const RootChainABI = "" /* 5467-byte string literal not displayed */

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

View Source
const RootChainManagerABI = "" /* 10591-byte string literal not displayed */

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

Variables

View Source
var ErrBlockNotIncluded = errors.New("block not yet included")

ErrBlockNotIncluded indicates that the block has not been included yet.

Functions

func GetExitParams

func GetExitParams(l2client *ethclient.Client, withdrawTxHash common.Hash, timeout time.Duration, network Network) ([]byte, error)

GetExitParams gets the exit params for matic exit.

Types

type API

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

API performs requests to various matic APIS.

func NewAPI

func NewAPI(network Network, client *http.Client) *API

NewAPI creates a new instance of matic API client.

func (*API) GetBlockIncludedResponse

func (a *API) GetBlockIncludedResponse(block *big.Int) (BlockIncludedResponse, error)

GetBlockIncludedResponse fetches theblock inclusion response from matic api.

func (*API) GetFastMerkleProof

func (a *API) GetFastMerkleProof(blockStart, blockEnd, blockNumber *big.Int) (FastMerkleProofResponse, error)

GetFastMerkleProof fetches the fast merkle proof from matic API.

type BlockIncludedResponse

type BlockIncludedResponse struct {
	HeaderBlockNumber string `json:"headerBlockNumber"`
	BlockNumber       string `json:"blockNumber"`
	Start             string `json:"start"`
	End               string `json:"end"`
	Proposer          string `json:"proposer"`
	Root              string `json:"root"`
	CreatedAt         string `json:"createdAt"`
	Message           string `json:"message"`
	Error             bool   `json:"error"`
}

BlockIncludedResponse represents the block included response.

type ChildToken

type ChildToken struct {
	ChildTokenCaller     // Read-only binding to the contract
	ChildTokenTransactor // Write-only binding to the contract
	ChildTokenFilterer   // Log filterer for contract events
}

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

func NewChildToken

func NewChildToken(address common.Address, backend bind.ContractBackend) (*ChildToken, error)

NewChildToken creates a new instance of ChildToken, bound to a specific deployed contract.

type ChildTokenApproval

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

ChildTokenApproval represents a Approval event raised by the ChildToken contract.

type ChildTokenApprovalIterator

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

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

func (*ChildTokenApprovalIterator) Close

func (it *ChildTokenApprovalIterator) Close() error

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

func (*ChildTokenApprovalIterator) Error

func (it *ChildTokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChildTokenApprovalIterator) Next

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

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

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

func NewChildTokenCaller

func NewChildTokenCaller(address common.Address, caller bind.ContractCaller) (*ChildTokenCaller, error)

NewChildTokenCaller creates a new read-only instance of ChildToken, bound to a specific deployed contract.

func (*ChildTokenCaller) Allowance

func (_ChildToken *ChildTokenCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

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

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

func (*ChildTokenCaller) BalanceOf

func (_ChildToken *ChildTokenCaller) 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 (*ChildTokenCaller) CHILDCHAINID

func (_ChildToken *ChildTokenCaller) CHILDCHAINID(opts *bind.CallOpts) (*big.Int, error)

CHILDCHAINID is a free data retrieval call binding the contract method 0x626381a0.

Solidity: function CHILD_CHAIN_ID() view returns(uint256)

func (*ChildTokenCaller) CHILDCHAINIDBYTES

func (_ChildToken *ChildTokenCaller) CHILDCHAINIDBYTES(opts *bind.CallOpts) ([]byte, error)

CHILDCHAINIDBYTES is a free data retrieval call binding the contract method 0x0b54817c.

Solidity: function CHILD_CHAIN_ID_BYTES() view returns(bytes)

func (*ChildTokenCaller) DEFAULTADMINROLE

func (_ChildToken *ChildTokenCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

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

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ChildTokenCaller) DEPOSITORROLE

func (_ChildToken *ChildTokenCaller) DEPOSITORROLE(opts *bind.CallOpts) ([32]byte, error)

DEPOSITORROLE is a free data retrieval call binding the contract method 0xa3b0b5a3.

Solidity: function DEPOSITOR_ROLE() view returns(bytes32)

func (*ChildTokenCaller) Decimals

func (_ChildToken *ChildTokenCaller) 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 (*ChildTokenCaller) ERC712VERSION

func (_ChildToken *ChildTokenCaller) ERC712VERSION(opts *bind.CallOpts) (string, error)

ERC712VERSION is a free data retrieval call binding the contract method 0x0f7e5970.

Solidity: function ERC712_VERSION() view returns(string)

func (*ChildTokenCaller) GetChainId

func (_ChildToken *ChildTokenCaller) GetChainId(opts *bind.CallOpts) (*big.Int, error)

GetChainId is a free data retrieval call binding the contract method 0x3408e470.

Solidity: function getChainId() pure returns(uint256)

func (*ChildTokenCaller) GetDomainSeperator

func (_ChildToken *ChildTokenCaller) GetDomainSeperator(opts *bind.CallOpts) ([32]byte, error)

GetDomainSeperator is a free data retrieval call binding the contract method 0x20379ee5.

Solidity: function getDomainSeperator() view returns(bytes32)

func (*ChildTokenCaller) GetNonce

func (_ChildToken *ChildTokenCaller) GetNonce(opts *bind.CallOpts, user common.Address) (*big.Int, error)

GetNonce is a free data retrieval call binding the contract method 0x2d0335ab.

Solidity: function getNonce(address user) view returns(uint256 nonce)

func (*ChildTokenCaller) GetRoleAdmin

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

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

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

func (*ChildTokenCaller) GetRoleMember

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

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

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

func (*ChildTokenCaller) GetRoleMemberCount

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

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

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

func (*ChildTokenCaller) HasRole

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

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

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

func (*ChildTokenCaller) Name

func (_ChildToken *ChildTokenCaller) 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 (*ChildTokenCaller) ROOTCHAINID

func (_ChildToken *ChildTokenCaller) ROOTCHAINID(opts *bind.CallOpts) (*big.Int, error)

ROOTCHAINID is a free data retrieval call binding the contract method 0x8acfcaf7.

Solidity: function ROOT_CHAIN_ID() view returns(uint256)

func (*ChildTokenCaller) ROOTCHAINIDBYTES

func (_ChildToken *ChildTokenCaller) ROOTCHAINIDBYTES(opts *bind.CallOpts) ([]byte, error)

ROOTCHAINIDBYTES is a free data retrieval call binding the contract method 0x0dd7531a.

Solidity: function ROOT_CHAIN_ID_BYTES() view returns(bytes)

func (*ChildTokenCaller) Symbol

func (_ChildToken *ChildTokenCaller) 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 (*ChildTokenCaller) TotalSupply

func (_ChildToken *ChildTokenCaller) 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)

type ChildTokenCallerRaw

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

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

func (*ChildTokenCallerRaw) Call

func (_ChildToken *ChildTokenCallerRaw) 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 ChildTokenCallerSession

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

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

func (*ChildTokenCallerSession) Allowance

func (_ChildToken *ChildTokenCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

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

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

func (*ChildTokenCallerSession) BalanceOf

func (_ChildToken *ChildTokenCallerSession) 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 (*ChildTokenCallerSession) CHILDCHAINID

func (_ChildToken *ChildTokenCallerSession) CHILDCHAINID() (*big.Int, error)

CHILDCHAINID is a free data retrieval call binding the contract method 0x626381a0.

Solidity: function CHILD_CHAIN_ID() view returns(uint256)

func (*ChildTokenCallerSession) CHILDCHAINIDBYTES

func (_ChildToken *ChildTokenCallerSession) CHILDCHAINIDBYTES() ([]byte, error)

CHILDCHAINIDBYTES is a free data retrieval call binding the contract method 0x0b54817c.

Solidity: function CHILD_CHAIN_ID_BYTES() view returns(bytes)

func (*ChildTokenCallerSession) DEFAULTADMINROLE

func (_ChildToken *ChildTokenCallerSession) DEFAULTADMINROLE() ([32]byte, error)

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

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ChildTokenCallerSession) DEPOSITORROLE

func (_ChildToken *ChildTokenCallerSession) DEPOSITORROLE() ([32]byte, error)

DEPOSITORROLE is a free data retrieval call binding the contract method 0xa3b0b5a3.

Solidity: function DEPOSITOR_ROLE() view returns(bytes32)

func (*ChildTokenCallerSession) Decimals

func (_ChildToken *ChildTokenCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*ChildTokenCallerSession) ERC712VERSION

func (_ChildToken *ChildTokenCallerSession) ERC712VERSION() (string, error)

ERC712VERSION is a free data retrieval call binding the contract method 0x0f7e5970.

Solidity: function ERC712_VERSION() view returns(string)

func (*ChildTokenCallerSession) GetChainId

func (_ChildToken *ChildTokenCallerSession) GetChainId() (*big.Int, error)

GetChainId is a free data retrieval call binding the contract method 0x3408e470.

Solidity: function getChainId() pure returns(uint256)

func (*ChildTokenCallerSession) GetDomainSeperator

func (_ChildToken *ChildTokenCallerSession) GetDomainSeperator() ([32]byte, error)

GetDomainSeperator is a free data retrieval call binding the contract method 0x20379ee5.

Solidity: function getDomainSeperator() view returns(bytes32)

func (*ChildTokenCallerSession) GetNonce

func (_ChildToken *ChildTokenCallerSession) GetNonce(user common.Address) (*big.Int, error)

GetNonce is a free data retrieval call binding the contract method 0x2d0335ab.

Solidity: function getNonce(address user) view returns(uint256 nonce)

func (*ChildTokenCallerSession) GetRoleAdmin

func (_ChildToken *ChildTokenCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

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

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

func (*ChildTokenCallerSession) GetRoleMember

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

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

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

func (*ChildTokenCallerSession) GetRoleMemberCount

func (_ChildToken *ChildTokenCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

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

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

func (*ChildTokenCallerSession) HasRole

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

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

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

func (*ChildTokenCallerSession) Name

func (_ChildToken *ChildTokenCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ChildTokenCallerSession) ROOTCHAINID

func (_ChildToken *ChildTokenCallerSession) ROOTCHAINID() (*big.Int, error)

ROOTCHAINID is a free data retrieval call binding the contract method 0x8acfcaf7.

Solidity: function ROOT_CHAIN_ID() view returns(uint256)

func (*ChildTokenCallerSession) ROOTCHAINIDBYTES

func (_ChildToken *ChildTokenCallerSession) ROOTCHAINIDBYTES() ([]byte, error)

ROOTCHAINIDBYTES is a free data retrieval call binding the contract method 0x0dd7531a.

Solidity: function ROOT_CHAIN_ID_BYTES() view returns(bytes)

func (*ChildTokenCallerSession) Symbol

func (_ChildToken *ChildTokenCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ChildTokenCallerSession) TotalSupply

func (_ChildToken *ChildTokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type ChildTokenFilterer

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

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

func NewChildTokenFilterer

func NewChildTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*ChildTokenFilterer, error)

NewChildTokenFilterer creates a new log filterer instance of ChildToken, bound to a specific deployed contract.

func (*ChildTokenFilterer) FilterApproval

func (_ChildToken *ChildTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ChildTokenApprovalIterator, 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 (*ChildTokenFilterer) FilterMetaTransactionExecuted

func (_ChildToken *ChildTokenFilterer) FilterMetaTransactionExecuted(opts *bind.FilterOpts) (*ChildTokenMetaTransactionExecutedIterator, error)

FilterMetaTransactionExecuted is a free log retrieval operation binding the contract event 0x5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b.

Solidity: event MetaTransactionExecuted(address userAddress, address relayerAddress, bytes functionSignature)

func (*ChildTokenFilterer) FilterRoleAdminChanged

func (_ChildToken *ChildTokenFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*ChildTokenRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ChildTokenFilterer) FilterRoleGranted

func (_ChildToken *ChildTokenFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ChildTokenRoleGrantedIterator, error)

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

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

func (*ChildTokenFilterer) FilterRoleRevoked

func (_ChildToken *ChildTokenFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ChildTokenRoleRevokedIterator, error)

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

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

func (*ChildTokenFilterer) FilterTransfer

func (_ChildToken *ChildTokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ChildTokenTransferIterator, error)

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

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

func (*ChildTokenFilterer) ParseApproval

func (_ChildToken *ChildTokenFilterer) ParseApproval(log types.Log) (*ChildTokenApproval, error)

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

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

func (*ChildTokenFilterer) ParseMetaTransactionExecuted

func (_ChildToken *ChildTokenFilterer) ParseMetaTransactionExecuted(log types.Log) (*ChildTokenMetaTransactionExecuted, error)

ParseMetaTransactionExecuted is a log parse operation binding the contract event 0x5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b.

Solidity: event MetaTransactionExecuted(address userAddress, address relayerAddress, bytes functionSignature)

func (*ChildTokenFilterer) ParseRoleAdminChanged

func (_ChildToken *ChildTokenFilterer) ParseRoleAdminChanged(log types.Log) (*ChildTokenRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ChildTokenFilterer) ParseRoleGranted

func (_ChildToken *ChildTokenFilterer) ParseRoleGranted(log types.Log) (*ChildTokenRoleGranted, error)

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

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

func (*ChildTokenFilterer) ParseRoleRevoked

func (_ChildToken *ChildTokenFilterer) ParseRoleRevoked(log types.Log) (*ChildTokenRoleRevoked, error)

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

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

func (*ChildTokenFilterer) ParseTransfer

func (_ChildToken *ChildTokenFilterer) ParseTransfer(log types.Log) (*ChildTokenTransfer, error)

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

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

func (*ChildTokenFilterer) WatchApproval

func (_ChildToken *ChildTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ChildTokenApproval, 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 (*ChildTokenFilterer) WatchMetaTransactionExecuted

func (_ChildToken *ChildTokenFilterer) WatchMetaTransactionExecuted(opts *bind.WatchOpts, sink chan<- *ChildTokenMetaTransactionExecuted) (event.Subscription, error)

WatchMetaTransactionExecuted is a free log subscription operation binding the contract event 0x5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b.

Solidity: event MetaTransactionExecuted(address userAddress, address relayerAddress, bytes functionSignature)

func (*ChildTokenFilterer) WatchRoleAdminChanged

func (_ChildToken *ChildTokenFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *ChildTokenRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ChildTokenFilterer) WatchRoleGranted

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

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

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

func (*ChildTokenFilterer) WatchRoleRevoked

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

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

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

func (*ChildTokenFilterer) WatchTransfer

func (_ChildToken *ChildTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ChildTokenTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

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

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

type ChildTokenMetaTransactionExecuted

type ChildTokenMetaTransactionExecuted struct {
	UserAddress       common.Address
	RelayerAddress    common.Address
	FunctionSignature []byte
	Raw               types.Log // Blockchain specific contextual infos
}

ChildTokenMetaTransactionExecuted represents a MetaTransactionExecuted event raised by the ChildToken contract.

type ChildTokenMetaTransactionExecutedIterator

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

ChildTokenMetaTransactionExecutedIterator is returned from FilterMetaTransactionExecuted and is used to iterate over the raw logs and unpacked data for MetaTransactionExecuted events raised by the ChildToken contract.

func (*ChildTokenMetaTransactionExecutedIterator) Close

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

func (*ChildTokenMetaTransactionExecutedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChildTokenMetaTransactionExecutedIterator) 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 ChildTokenRaw

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

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

func (*ChildTokenRaw) Call

func (_ChildToken *ChildTokenRaw) 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 (*ChildTokenRaw) Transact

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

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

func (*ChildTokenRaw) Transfer

func (_ChildToken *ChildTokenRaw) 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 ChildTokenRoleAdminChanged

type ChildTokenRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

ChildTokenRoleAdminChanged represents a RoleAdminChanged event raised by the ChildToken contract.

type ChildTokenRoleAdminChangedIterator

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

ChildTokenRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the ChildToken contract.

func (*ChildTokenRoleAdminChangedIterator) Close

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

func (*ChildTokenRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChildTokenRoleAdminChangedIterator) 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 ChildTokenRoleGranted

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

ChildTokenRoleGranted represents a RoleGranted event raised by the ChildToken contract.

type ChildTokenRoleGrantedIterator

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

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

func (*ChildTokenRoleGrantedIterator) Close

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

func (*ChildTokenRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChildTokenRoleGrantedIterator) 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 ChildTokenRoleRevoked

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

ChildTokenRoleRevoked represents a RoleRevoked event raised by the ChildToken contract.

type ChildTokenRoleRevokedIterator

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

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

func (*ChildTokenRoleRevokedIterator) Close

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

func (*ChildTokenRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChildTokenRoleRevokedIterator) 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 ChildTokenSession

type ChildTokenSession struct {
	Contract     *ChildToken       // 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
}

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

func (*ChildTokenSession) Allowance

func (_ChildToken *ChildTokenSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

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

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

func (*ChildTokenSession) Approve

func (_ChildToken *ChildTokenSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ChildTokenSession) BalanceOf

func (_ChildToken *ChildTokenSession) 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 (*ChildTokenSession) CHILDCHAINID

func (_ChildToken *ChildTokenSession) CHILDCHAINID() (*big.Int, error)

CHILDCHAINID is a free data retrieval call binding the contract method 0x626381a0.

Solidity: function CHILD_CHAIN_ID() view returns(uint256)

func (*ChildTokenSession) CHILDCHAINIDBYTES

func (_ChildToken *ChildTokenSession) CHILDCHAINIDBYTES() ([]byte, error)

CHILDCHAINIDBYTES is a free data retrieval call binding the contract method 0x0b54817c.

Solidity: function CHILD_CHAIN_ID_BYTES() view returns(bytes)

func (*ChildTokenSession) DEFAULTADMINROLE

func (_ChildToken *ChildTokenSession) DEFAULTADMINROLE() ([32]byte, error)

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

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ChildTokenSession) DEPOSITORROLE

func (_ChildToken *ChildTokenSession) DEPOSITORROLE() ([32]byte, error)

DEPOSITORROLE is a free data retrieval call binding the contract method 0xa3b0b5a3.

Solidity: function DEPOSITOR_ROLE() view returns(bytes32)

func (*ChildTokenSession) Decimals

func (_ChildToken *ChildTokenSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*ChildTokenSession) DecreaseAllowance

func (_ChildToken *ChildTokenSession) 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 (*ChildTokenSession) Deposit

func (_ChildToken *ChildTokenSession) Deposit(user common.Address, depositData []byte) (*types.Transaction, error)

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

Solidity: function deposit(address user, bytes depositData) returns()

func (*ChildTokenSession) ERC712VERSION

func (_ChildToken *ChildTokenSession) ERC712VERSION() (string, error)

ERC712VERSION is a free data retrieval call binding the contract method 0x0f7e5970.

Solidity: function ERC712_VERSION() view returns(string)

func (*ChildTokenSession) ExecuteMetaTransaction

func (_ChildToken *ChildTokenSession) ExecuteMetaTransaction(userAddress common.Address, functionSignature []byte, sigR [32]byte, sigS [32]byte, sigV uint8) (*types.Transaction, error)

ExecuteMetaTransaction is a paid mutator transaction binding the contract method 0x0c53c51c.

Solidity: function executeMetaTransaction(address userAddress, bytes functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV) payable returns(bytes)

func (*ChildTokenSession) GetChainId

func (_ChildToken *ChildTokenSession) GetChainId() (*big.Int, error)

GetChainId is a free data retrieval call binding the contract method 0x3408e470.

Solidity: function getChainId() pure returns(uint256)

func (*ChildTokenSession) GetDomainSeperator

func (_ChildToken *ChildTokenSession) GetDomainSeperator() ([32]byte, error)

GetDomainSeperator is a free data retrieval call binding the contract method 0x20379ee5.

Solidity: function getDomainSeperator() view returns(bytes32)

func (*ChildTokenSession) GetNonce

func (_ChildToken *ChildTokenSession) GetNonce(user common.Address) (*big.Int, error)

GetNonce is a free data retrieval call binding the contract method 0x2d0335ab.

Solidity: function getNonce(address user) view returns(uint256 nonce)

func (*ChildTokenSession) GetRoleAdmin

func (_ChildToken *ChildTokenSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

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

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

func (*ChildTokenSession) GetRoleMember

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

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

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

func (*ChildTokenSession) GetRoleMemberCount

func (_ChildToken *ChildTokenSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

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

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

func (*ChildTokenSession) GrantRole

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

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

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

func (*ChildTokenSession) HasRole

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

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

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

func (*ChildTokenSession) IncreaseAllowance

func (_ChildToken *ChildTokenSession) 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 (*ChildTokenSession) Initialize

func (_ChildToken *ChildTokenSession) Initialize(name_ string, symbol_ string, decimals_ uint8, childChainManager common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xde7ea79d.

Solidity: function initialize(string name_, string symbol_, uint8 decimals_, address childChainManager) returns()

func (*ChildTokenSession) Name

func (_ChildToken *ChildTokenSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ChildTokenSession) ROOTCHAINID

func (_ChildToken *ChildTokenSession) ROOTCHAINID() (*big.Int, error)

ROOTCHAINID is a free data retrieval call binding the contract method 0x8acfcaf7.

Solidity: function ROOT_CHAIN_ID() view returns(uint256)

func (*ChildTokenSession) ROOTCHAINIDBYTES

func (_ChildToken *ChildTokenSession) ROOTCHAINIDBYTES() ([]byte, error)

ROOTCHAINIDBYTES is a free data retrieval call binding the contract method 0x0dd7531a.

Solidity: function ROOT_CHAIN_ID_BYTES() view returns(bytes)

func (*ChildTokenSession) RenounceRole

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

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

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

func (*ChildTokenSession) RevokeRole

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

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

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

func (*ChildTokenSession) Symbol

func (_ChildToken *ChildTokenSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ChildTokenSession) TotalSupply

func (_ChildToken *ChildTokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*ChildTokenSession) Transfer

func (_ChildToken *ChildTokenSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ChildTokenSession) TransferFrom

func (_ChildToken *ChildTokenSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

func (*ChildTokenSession) Withdraw

func (_ChildToken *ChildTokenSession) Withdraw(amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 amount) returns()

type ChildTokenTransactor

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

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

func NewChildTokenTransactor

func NewChildTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*ChildTokenTransactor, error)

NewChildTokenTransactor creates a new write-only instance of ChildToken, bound to a specific deployed contract.

func (*ChildTokenTransactor) Approve

func (_ChildToken *ChildTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ChildTokenTransactor) DecreaseAllowance

func (_ChildToken *ChildTokenTransactor) 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 (*ChildTokenTransactor) Deposit

func (_ChildToken *ChildTokenTransactor) Deposit(opts *bind.TransactOpts, user common.Address, depositData []byte) (*types.Transaction, error)

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

Solidity: function deposit(address user, bytes depositData) returns()

func (*ChildTokenTransactor) ExecuteMetaTransaction

func (_ChildToken *ChildTokenTransactor) ExecuteMetaTransaction(opts *bind.TransactOpts, userAddress common.Address, functionSignature []byte, sigR [32]byte, sigS [32]byte, sigV uint8) (*types.Transaction, error)

ExecuteMetaTransaction is a paid mutator transaction binding the contract method 0x0c53c51c.

Solidity: function executeMetaTransaction(address userAddress, bytes functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV) payable returns(bytes)

func (*ChildTokenTransactor) GrantRole

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

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

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

func (*ChildTokenTransactor) IncreaseAllowance

func (_ChildToken *ChildTokenTransactor) 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 (*ChildTokenTransactor) Initialize

func (_ChildToken *ChildTokenTransactor) Initialize(opts *bind.TransactOpts, name_ string, symbol_ string, decimals_ uint8, childChainManager common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xde7ea79d.

Solidity: function initialize(string name_, string symbol_, uint8 decimals_, address childChainManager) returns()

func (*ChildTokenTransactor) RenounceRole

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

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

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

func (*ChildTokenTransactor) RevokeRole

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

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

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

func (*ChildTokenTransactor) Transfer

func (_ChildToken *ChildTokenTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ChildTokenTransactor) TransferFrom

func (_ChildToken *ChildTokenTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

func (*ChildTokenTransactor) Withdraw

func (_ChildToken *ChildTokenTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 amount) returns()

type ChildTokenTransactorRaw

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

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

func (*ChildTokenTransactorRaw) Transact

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

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

func (*ChildTokenTransactorRaw) Transfer

func (_ChildToken *ChildTokenTransactorRaw) 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 ChildTokenTransactorSession

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

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

func (*ChildTokenTransactorSession) Approve

func (_ChildToken *ChildTokenTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ChildTokenTransactorSession) DecreaseAllowance

func (_ChildToken *ChildTokenTransactorSession) 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 (*ChildTokenTransactorSession) Deposit

func (_ChildToken *ChildTokenTransactorSession) Deposit(user common.Address, depositData []byte) (*types.Transaction, error)

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

Solidity: function deposit(address user, bytes depositData) returns()

func (*ChildTokenTransactorSession) ExecuteMetaTransaction

func (_ChildToken *ChildTokenTransactorSession) ExecuteMetaTransaction(userAddress common.Address, functionSignature []byte, sigR [32]byte, sigS [32]byte, sigV uint8) (*types.Transaction, error)

ExecuteMetaTransaction is a paid mutator transaction binding the contract method 0x0c53c51c.

Solidity: function executeMetaTransaction(address userAddress, bytes functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV) payable returns(bytes)

func (*ChildTokenTransactorSession) GrantRole

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

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

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

func (*ChildTokenTransactorSession) IncreaseAllowance

func (_ChildToken *ChildTokenTransactorSession) 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 (*ChildTokenTransactorSession) Initialize

func (_ChildToken *ChildTokenTransactorSession) Initialize(name_ string, symbol_ string, decimals_ uint8, childChainManager common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xde7ea79d.

Solidity: function initialize(string name_, string symbol_, uint8 decimals_, address childChainManager) returns()

func (*ChildTokenTransactorSession) RenounceRole

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

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

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

func (*ChildTokenTransactorSession) RevokeRole

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

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

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

func (*ChildTokenTransactorSession) Transfer

func (_ChildToken *ChildTokenTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ChildTokenTransactorSession) TransferFrom

func (_ChildToken *ChildTokenTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

func (*ChildTokenTransactorSession) Withdraw

func (_ChildToken *ChildTokenTransactorSession) Withdraw(amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 amount) returns()

type ChildTokenTransfer

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

ChildTokenTransfer represents a Transfer event raised by the ChildToken contract.

type ChildTokenTransferIterator

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

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

func (*ChildTokenTransferIterator) Close

func (it *ChildTokenTransferIterator) Close() error

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

func (*ChildTokenTransferIterator) Error

func (it *ChildTokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChildTokenTransferIterator) Next

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

type ExitParams struct {
	HeaderBlockNumber []byte
	BlockProof        []byte
	BlockNumber       []byte
	Timestamp         uint64
	TransactionsRoot  []byte
	ReceiptsRoot      []byte
	ReceiptBytes      []byte
	Parents           []byte
	Path              []byte
	LogIndex          uint64
}

ExitParams the struct for matic exit param encoding.

type FastMerkleProofResponse

type FastMerkleProofResponse struct {
	Proof string `json:"proof"`
}

FastMerkleProofResponse represent the fast merkle proof response.

type LogsForRLP

type LogsForRLP struct {
	Address []byte
	Topics  [][]byte
	Data    []byte
}

LogsForRLP struct we use for rlp encoding of the receipt logs.

type Network

type Network string

Network represents the various matic networks

const (
	// NetworkMumbai represents the matic mumbai testnet.
	NetworkMumbai Network = "MUMBAI"
	// NetworkMainnet represents the matic mainnet.
	NetworkMainnet Network = "MAINNET"
)

type Proofer

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

Proofer captures proofs emitted by ethereum merkle trie.

func NewProofer

func NewProofer() *Proofer

NewProofer creates a new instance of proofer.

func (*Proofer) Delete

func (p *Proofer) Delete(key []byte) error

Delete does not do anything, not required in our case.

func (*Proofer) Put

func (p *Proofer) Put(key []byte, value []byte) error

Put puts the proof in the internal state.

type ReceiptProof

type ReceiptProof struct {
	BlockHash   []byte
	ParentNodes [][][]byte
	Root        []byte
	Path        []byte
	Value       []byte
}

ReceiptProof represents the receipt proof for withdrawal.

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 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 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) CHAINID

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

CHAINID is a free data retrieval call binding the contract method 0xcc79f97b.

Solidity: function CHAINID() view returns(uint256)

func (*RootChainCaller) CurrentHeaderBlock

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

CurrentHeaderBlock is a free data retrieval call binding the contract method 0xec7e4855.

Solidity: function currentHeaderBlock() view returns(uint256)

func (*RootChainCaller) GetLastChildBlock

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

GetLastChildBlock is a free data retrieval call binding the contract method 0xb87e1b66.

Solidity: function getLastChildBlock() view returns(uint256)

func (*RootChainCaller) HeaderBlocks

func (_RootChain *RootChainCaller) HeaderBlocks(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Root      [32]byte
	Start     *big.Int
	End       *big.Int
	CreatedAt *big.Int
	Proposer  common.Address
}, error)

HeaderBlocks is a free data retrieval call binding the contract method 0x41539d4a.

Solidity: function headerBlocks(uint256 ) view returns(bytes32 root, uint256 start, uint256 end, uint256 createdAt, address proposer)

func (*RootChainCaller) HeimdallId

func (_RootChain *RootChainCaller) HeimdallId(opts *bind.CallOpts) ([32]byte, error)

HeimdallId is a free data retrieval call binding the contract method 0xfbc3dd36.

Solidity: function heimdallId() view returns(bytes32)

func (*RootChainCaller) IsOwner

func (_RootChain *RootChainCaller) IsOwner(opts *bind.CallOpts) (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*RootChainCaller) NetworkId

func (_RootChain *RootChainCaller) NetworkId(opts *bind.CallOpts) ([]byte, error)

NetworkId is a free data retrieval call binding the contract method 0x9025e64c.

Solidity: function networkId() view returns(bytes)

func (*RootChainCaller) NextHeaderBlock

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

NextHeaderBlock is a free data retrieval call binding the contract method 0x8d978d88.

Solidity: function _nextHeaderBlock() view returns(uint256)

func (*RootChainCaller) Owner

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

func (_RootChain *RootChainCaller) VOTETYPE(opts *bind.CallOpts) (uint8, error)

VOTETYPE is a free data retrieval call binding the contract method 0xd5b844eb.

Solidity: function VOTE_TYPE() view returns(uint8)

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) CHAINID

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

CHAINID is a free data retrieval call binding the contract method 0xcc79f97b.

Solidity: function CHAINID() view returns(uint256)

func (*RootChainCallerSession) CurrentHeaderBlock

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

CurrentHeaderBlock is a free data retrieval call binding the contract method 0xec7e4855.

Solidity: function currentHeaderBlock() view returns(uint256)

func (*RootChainCallerSession) GetLastChildBlock

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

GetLastChildBlock is a free data retrieval call binding the contract method 0xb87e1b66.

Solidity: function getLastChildBlock() view returns(uint256)

func (*RootChainCallerSession) HeaderBlocks

func (_RootChain *RootChainCallerSession) HeaderBlocks(arg0 *big.Int) (struct {
	Root      [32]byte
	Start     *big.Int
	End       *big.Int
	CreatedAt *big.Int
	Proposer  common.Address
}, error)

HeaderBlocks is a free data retrieval call binding the contract method 0x41539d4a.

Solidity: function headerBlocks(uint256 ) view returns(bytes32 root, uint256 start, uint256 end, uint256 createdAt, address proposer)

func (*RootChainCallerSession) HeimdallId

func (_RootChain *RootChainCallerSession) HeimdallId() ([32]byte, error)

HeimdallId is a free data retrieval call binding the contract method 0xfbc3dd36.

Solidity: function heimdallId() view returns(bytes32)

func (*RootChainCallerSession) IsOwner

func (_RootChain *RootChainCallerSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*RootChainCallerSession) NetworkId

func (_RootChain *RootChainCallerSession) NetworkId() ([]byte, error)

NetworkId is a free data retrieval call binding the contract method 0x9025e64c.

Solidity: function networkId() view returns(bytes)

func (*RootChainCallerSession) NextHeaderBlock

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

NextHeaderBlock is a free data retrieval call binding the contract method 0x8d978d88.

Solidity: function _nextHeaderBlock() view returns(uint256)

func (*RootChainCallerSession) Owner

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

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

Solidity: function owner() view returns(address)

func (*RootChainCallerSession) VOTETYPE

func (_RootChain *RootChainCallerSession) VOTETYPE() (uint8, error)

VOTETYPE is a free data retrieval call binding the contract method 0xd5b844eb.

Solidity: function VOTE_TYPE() view returns(uint8)

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) FilterNewHeaderBlock

func (_RootChain *RootChainFilterer) FilterNewHeaderBlock(opts *bind.FilterOpts, proposer []common.Address, headerBlockId []*big.Int, reward []*big.Int) (*RootChainNewHeaderBlockIterator, error)

FilterNewHeaderBlock is a free log retrieval operation binding the contract event 0xba5de06d22af2685c6c7765f60067f7d2b08c2d29f53cdf14d67f6d1c9bfb527.

Solidity: event NewHeaderBlock(address indexed proposer, uint256 indexed headerBlockId, uint256 indexed reward, uint256 start, uint256 end, bytes32 root)

func (*RootChainFilterer) FilterOwnershipTransferred

func (_RootChain *RootChainFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*RootChainOwnershipTransferredIterator, error)

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

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

func (*RootChainFilterer) FilterResetHeaderBlock

func (_RootChain *RootChainFilterer) FilterResetHeaderBlock(opts *bind.FilterOpts, proposer []common.Address, headerBlockId []*big.Int) (*RootChainResetHeaderBlockIterator, error)

FilterResetHeaderBlock is a free log retrieval operation binding the contract event 0xca1d8316287f938830e225956a7bb10fd5a1a1506dd2eb3a476751a488117205.

Solidity: event ResetHeaderBlock(address indexed proposer, uint256 indexed headerBlockId)

func (*RootChainFilterer) ParseNewHeaderBlock

func (_RootChain *RootChainFilterer) ParseNewHeaderBlock(log types.Log) (*RootChainNewHeaderBlock, error)

ParseNewHeaderBlock is a log parse operation binding the contract event 0xba5de06d22af2685c6c7765f60067f7d2b08c2d29f53cdf14d67f6d1c9bfb527.

Solidity: event NewHeaderBlock(address indexed proposer, uint256 indexed headerBlockId, uint256 indexed reward, uint256 start, uint256 end, bytes32 root)

func (*RootChainFilterer) ParseOwnershipTransferred

func (_RootChain *RootChainFilterer) ParseOwnershipTransferred(log types.Log) (*RootChainOwnershipTransferred, error)

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

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

func (*RootChainFilterer) ParseResetHeaderBlock

func (_RootChain *RootChainFilterer) ParseResetHeaderBlock(log types.Log) (*RootChainResetHeaderBlock, error)

ParseResetHeaderBlock is a log parse operation binding the contract event 0xca1d8316287f938830e225956a7bb10fd5a1a1506dd2eb3a476751a488117205.

Solidity: event ResetHeaderBlock(address indexed proposer, uint256 indexed headerBlockId)

func (*RootChainFilterer) WatchNewHeaderBlock

func (_RootChain *RootChainFilterer) WatchNewHeaderBlock(opts *bind.WatchOpts, sink chan<- *RootChainNewHeaderBlock, proposer []common.Address, headerBlockId []*big.Int, reward []*big.Int) (event.Subscription, error)

WatchNewHeaderBlock is a free log subscription operation binding the contract event 0xba5de06d22af2685c6c7765f60067f7d2b08c2d29f53cdf14d67f6d1c9bfb527.

Solidity: event NewHeaderBlock(address indexed proposer, uint256 indexed headerBlockId, uint256 indexed reward, uint256 start, uint256 end, bytes32 root)

func (*RootChainFilterer) WatchOwnershipTransferred

func (_RootChain *RootChainFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *RootChainOwnershipTransferred, 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 (*RootChainFilterer) WatchResetHeaderBlock

func (_RootChain *RootChainFilterer) WatchResetHeaderBlock(opts *bind.WatchOpts, sink chan<- *RootChainResetHeaderBlock, proposer []common.Address, headerBlockId []*big.Int) (event.Subscription, error)

WatchResetHeaderBlock is a free log subscription operation binding the contract event 0xca1d8316287f938830e225956a7bb10fd5a1a1506dd2eb3a476751a488117205.

Solidity: event ResetHeaderBlock(address indexed proposer, uint256 indexed headerBlockId)

type RootChainManager

type RootChainManager struct {
	RootChainManagerCaller     // Read-only binding to the contract
	RootChainManagerTransactor // Write-only binding to the contract
	RootChainManagerFilterer   // Log filterer for contract events
}

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

func NewRootChainManager

func NewRootChainManager(address common.Address, backend bind.ContractBackend) (*RootChainManager, error)

NewRootChainManager creates a new instance of RootChainManager, bound to a specific deployed contract.

type RootChainManagerCaller

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

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

func NewRootChainManagerCaller

func NewRootChainManagerCaller(address common.Address, caller bind.ContractCaller) (*RootChainManagerCaller, error)

NewRootChainManagerCaller creates a new read-only instance of RootChainManager, bound to a specific deployed contract.

func (*RootChainManagerCaller) CheckpointManagerAddress

func (_RootChainManager *RootChainManagerCaller) CheckpointManagerAddress(opts *bind.CallOpts) (common.Address, error)

CheckpointManagerAddress is a free data retrieval call binding the contract method 0x3138b6f1.

Solidity: function checkpointManagerAddress() view returns(address)

func (*RootChainManagerCaller) ChildChainManagerAddress

func (_RootChainManager *RootChainManagerCaller) ChildChainManagerAddress(opts *bind.CallOpts) (common.Address, error)

ChildChainManagerAddress is a free data retrieval call binding the contract method 0x04967702.

Solidity: function childChainManagerAddress() view returns(address)

func (*RootChainManagerCaller) ChildToRootToken

func (_RootChainManager *RootChainManagerCaller) ChildToRootToken(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

ChildToRootToken is a free data retrieval call binding the contract method 0x6e86b770.

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

func (*RootChainManagerCaller) DEFAULTADMINROLE

func (_RootChainManager *RootChainManagerCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

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

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*RootChainManagerCaller) DEPOSIT

func (_RootChainManager *RootChainManagerCaller) DEPOSIT(opts *bind.CallOpts) ([32]byte, error)

DEPOSIT is a free data retrieval call binding the contract method 0xd81c8e52.

Solidity: function DEPOSIT() view returns(bytes32)

func (*RootChainManagerCaller) ERC712VERSION

func (_RootChainManager *RootChainManagerCaller) ERC712VERSION(opts *bind.CallOpts) (string, error)

ERC712VERSION is a free data retrieval call binding the contract method 0x0f7e5970.

Solidity: function ERC712_VERSION() view returns(string)

func (*RootChainManagerCaller) ETHERADDRESS

func (_RootChainManager *RootChainManagerCaller) ETHERADDRESS(opts *bind.CallOpts) (common.Address, error)

ETHERADDRESS is a free data retrieval call binding the contract method 0xcf1d21c0.

Solidity: function ETHER_ADDRESS() view returns(address)

func (*RootChainManagerCaller) GetChainId

func (_RootChainManager *RootChainManagerCaller) GetChainId(opts *bind.CallOpts) (*big.Int, error)

GetChainId is a free data retrieval call binding the contract method 0x3408e470.

Solidity: function getChainId() pure returns(uint256)

func (*RootChainManagerCaller) GetDomainSeperator

func (_RootChainManager *RootChainManagerCaller) GetDomainSeperator(opts *bind.CallOpts) ([32]byte, error)

GetDomainSeperator is a free data retrieval call binding the contract method 0x20379ee5.

Solidity: function getDomainSeperator() view returns(bytes32)

func (*RootChainManagerCaller) GetNonce

func (_RootChainManager *RootChainManagerCaller) GetNonce(opts *bind.CallOpts, user common.Address) (*big.Int, error)

GetNonce is a free data retrieval call binding the contract method 0x2d0335ab.

Solidity: function getNonce(address user) view returns(uint256 nonce)

func (*RootChainManagerCaller) GetRoleAdmin

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

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

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

func (*RootChainManagerCaller) GetRoleMember

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

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

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

func (*RootChainManagerCaller) GetRoleMemberCount

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

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

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

func (*RootChainManagerCaller) HasRole

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

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

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

func (*RootChainManagerCaller) MAPPERROLE

func (_RootChainManager *RootChainManagerCaller) MAPPERROLE(opts *bind.CallOpts) ([32]byte, error)

MAPPERROLE is a free data retrieval call binding the contract method 0x568b80b5.

Solidity: function MAPPER_ROLE() view returns(bytes32)

func (*RootChainManagerCaller) MAPTOKEN

func (_RootChainManager *RootChainManagerCaller) MAPTOKEN(opts *bind.CallOpts) ([32]byte, error)

MAPTOKEN is a free data retrieval call binding the contract method 0x886a69ba.

Solidity: function MAP_TOKEN() view returns(bytes32)

func (*RootChainManagerCaller) ProcessedExits

func (_RootChainManager *RootChainManagerCaller) ProcessedExits(opts *bind.CallOpts, arg0 [32]byte) (bool, error)

ProcessedExits is a free data retrieval call binding the contract method 0x607f2d42.

Solidity: function processedExits(bytes32 ) view returns(bool)

func (*RootChainManagerCaller) RootToChildToken

func (_RootChainManager *RootChainManagerCaller) RootToChildToken(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

RootToChildToken is a free data retrieval call binding the contract method 0xea60c7c4.

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

func (*RootChainManagerCaller) StateSenderAddress

func (_RootChainManager *RootChainManagerCaller) StateSenderAddress(opts *bind.CallOpts) (common.Address, error)

StateSenderAddress is a free data retrieval call binding the contract method 0xe2c49de1.

Solidity: function stateSenderAddress() view returns(address)

func (*RootChainManagerCaller) TokenToType

func (_RootChainManager *RootChainManagerCaller) TokenToType(opts *bind.CallOpts, arg0 common.Address) ([32]byte, error)

TokenToType is a free data retrieval call binding the contract method 0xe43009a6.

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

func (*RootChainManagerCaller) TypeToPredicate

func (_RootChainManager *RootChainManagerCaller) TypeToPredicate(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

TypeToPredicate is a free data retrieval call binding the contract method 0xe66f9603.

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

type RootChainManagerCallerRaw

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

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

func (*RootChainManagerCallerRaw) Call

func (_RootChainManager *RootChainManagerCallerRaw) 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 RootChainManagerCallerSession

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

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

func (*RootChainManagerCallerSession) CheckpointManagerAddress

func (_RootChainManager *RootChainManagerCallerSession) CheckpointManagerAddress() (common.Address, error)

CheckpointManagerAddress is a free data retrieval call binding the contract method 0x3138b6f1.

Solidity: function checkpointManagerAddress() view returns(address)

func (*RootChainManagerCallerSession) ChildChainManagerAddress

func (_RootChainManager *RootChainManagerCallerSession) ChildChainManagerAddress() (common.Address, error)

ChildChainManagerAddress is a free data retrieval call binding the contract method 0x04967702.

Solidity: function childChainManagerAddress() view returns(address)

func (*RootChainManagerCallerSession) ChildToRootToken

func (_RootChainManager *RootChainManagerCallerSession) ChildToRootToken(arg0 common.Address) (common.Address, error)

ChildToRootToken is a free data retrieval call binding the contract method 0x6e86b770.

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

func (*RootChainManagerCallerSession) DEFAULTADMINROLE

func (_RootChainManager *RootChainManagerCallerSession) DEFAULTADMINROLE() ([32]byte, error)

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

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*RootChainManagerCallerSession) DEPOSIT

func (_RootChainManager *RootChainManagerCallerSession) DEPOSIT() ([32]byte, error)

DEPOSIT is a free data retrieval call binding the contract method 0xd81c8e52.

Solidity: function DEPOSIT() view returns(bytes32)

func (*RootChainManagerCallerSession) ERC712VERSION

func (_RootChainManager *RootChainManagerCallerSession) ERC712VERSION() (string, error)

ERC712VERSION is a free data retrieval call binding the contract method 0x0f7e5970.

Solidity: function ERC712_VERSION() view returns(string)

func (*RootChainManagerCallerSession) ETHERADDRESS

func (_RootChainManager *RootChainManagerCallerSession) ETHERADDRESS() (common.Address, error)

ETHERADDRESS is a free data retrieval call binding the contract method 0xcf1d21c0.

Solidity: function ETHER_ADDRESS() view returns(address)

func (*RootChainManagerCallerSession) GetChainId

func (_RootChainManager *RootChainManagerCallerSession) GetChainId() (*big.Int, error)

GetChainId is a free data retrieval call binding the contract method 0x3408e470.

Solidity: function getChainId() pure returns(uint256)

func (*RootChainManagerCallerSession) GetDomainSeperator

func (_RootChainManager *RootChainManagerCallerSession) GetDomainSeperator() ([32]byte, error)

GetDomainSeperator is a free data retrieval call binding the contract method 0x20379ee5.

Solidity: function getDomainSeperator() view returns(bytes32)

func (*RootChainManagerCallerSession) GetNonce

func (_RootChainManager *RootChainManagerCallerSession) GetNonce(user common.Address) (*big.Int, error)

GetNonce is a free data retrieval call binding the contract method 0x2d0335ab.

Solidity: function getNonce(address user) view returns(uint256 nonce)

func (*RootChainManagerCallerSession) GetRoleAdmin

func (_RootChainManager *RootChainManagerCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

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

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

func (*RootChainManagerCallerSession) GetRoleMember

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

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

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

func (*RootChainManagerCallerSession) GetRoleMemberCount

func (_RootChainManager *RootChainManagerCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

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

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

func (*RootChainManagerCallerSession) HasRole

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

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

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

func (*RootChainManagerCallerSession) MAPPERROLE

func (_RootChainManager *RootChainManagerCallerSession) MAPPERROLE() ([32]byte, error)

MAPPERROLE is a free data retrieval call binding the contract method 0x568b80b5.

Solidity: function MAPPER_ROLE() view returns(bytes32)

func (*RootChainManagerCallerSession) MAPTOKEN

func (_RootChainManager *RootChainManagerCallerSession) MAPTOKEN() ([32]byte, error)

MAPTOKEN is a free data retrieval call binding the contract method 0x886a69ba.

Solidity: function MAP_TOKEN() view returns(bytes32)

func (*RootChainManagerCallerSession) ProcessedExits

func (_RootChainManager *RootChainManagerCallerSession) ProcessedExits(arg0 [32]byte) (bool, error)

ProcessedExits is a free data retrieval call binding the contract method 0x607f2d42.

Solidity: function processedExits(bytes32 ) view returns(bool)

func (*RootChainManagerCallerSession) RootToChildToken

func (_RootChainManager *RootChainManagerCallerSession) RootToChildToken(arg0 common.Address) (common.Address, error)

RootToChildToken is a free data retrieval call binding the contract method 0xea60c7c4.

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

func (*RootChainManagerCallerSession) StateSenderAddress

func (_RootChainManager *RootChainManagerCallerSession) StateSenderAddress() (common.Address, error)

StateSenderAddress is a free data retrieval call binding the contract method 0xe2c49de1.

Solidity: function stateSenderAddress() view returns(address)

func (*RootChainManagerCallerSession) TokenToType

func (_RootChainManager *RootChainManagerCallerSession) TokenToType(arg0 common.Address) ([32]byte, error)

TokenToType is a free data retrieval call binding the contract method 0xe43009a6.

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

func (*RootChainManagerCallerSession) TypeToPredicate

func (_RootChainManager *RootChainManagerCallerSession) TypeToPredicate(arg0 [32]byte) (common.Address, error)

TypeToPredicate is a free data retrieval call binding the contract method 0xe66f9603.

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

type RootChainManagerFilterer

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

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

func NewRootChainManagerFilterer

func NewRootChainManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*RootChainManagerFilterer, error)

NewRootChainManagerFilterer creates a new log filterer instance of RootChainManager, bound to a specific deployed contract.

func (*RootChainManagerFilterer) FilterMetaTransactionExecuted

func (_RootChainManager *RootChainManagerFilterer) FilterMetaTransactionExecuted(opts *bind.FilterOpts) (*RootChainManagerMetaTransactionExecutedIterator, error)

FilterMetaTransactionExecuted is a free log retrieval operation binding the contract event 0x5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b.

Solidity: event MetaTransactionExecuted(address userAddress, address relayerAddress, bytes functionSignature)

func (*RootChainManagerFilterer) FilterPredicateRegistered

func (_RootChainManager *RootChainManagerFilterer) FilterPredicateRegistered(opts *bind.FilterOpts, tokenType [][32]byte, predicateAddress []common.Address) (*RootChainManagerPredicateRegisteredIterator, error)

FilterPredicateRegistered is a free log retrieval operation binding the contract event 0x8643692ae1c12ec91fa18e50b82ed93fa314f580999a236824db6de9ae0d839b.

Solidity: event PredicateRegistered(bytes32 indexed tokenType, address indexed predicateAddress)

func (*RootChainManagerFilterer) FilterRoleAdminChanged

func (_RootChainManager *RootChainManagerFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*RootChainManagerRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*RootChainManagerFilterer) FilterRoleGranted

func (_RootChainManager *RootChainManagerFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*RootChainManagerRoleGrantedIterator, error)

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

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

func (*RootChainManagerFilterer) FilterRoleRevoked

func (_RootChainManager *RootChainManagerFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*RootChainManagerRoleRevokedIterator, error)

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

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

func (*RootChainManagerFilterer) FilterTokenMapped

func (_RootChainManager *RootChainManagerFilterer) FilterTokenMapped(opts *bind.FilterOpts, rootToken []common.Address, childToken []common.Address, tokenType [][32]byte) (*RootChainManagerTokenMappedIterator, error)

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

Solidity: event TokenMapped(address indexed rootToken, address indexed childToken, bytes32 indexed tokenType)

func (*RootChainManagerFilterer) ParseMetaTransactionExecuted

func (_RootChainManager *RootChainManagerFilterer) ParseMetaTransactionExecuted(log types.Log) (*RootChainManagerMetaTransactionExecuted, error)

ParseMetaTransactionExecuted is a log parse operation binding the contract event 0x5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b.

Solidity: event MetaTransactionExecuted(address userAddress, address relayerAddress, bytes functionSignature)

func (*RootChainManagerFilterer) ParsePredicateRegistered

func (_RootChainManager *RootChainManagerFilterer) ParsePredicateRegistered(log types.Log) (*RootChainManagerPredicateRegistered, error)

ParsePredicateRegistered is a log parse operation binding the contract event 0x8643692ae1c12ec91fa18e50b82ed93fa314f580999a236824db6de9ae0d839b.

Solidity: event PredicateRegistered(bytes32 indexed tokenType, address indexed predicateAddress)

func (*RootChainManagerFilterer) ParseRoleAdminChanged

func (_RootChainManager *RootChainManagerFilterer) ParseRoleAdminChanged(log types.Log) (*RootChainManagerRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*RootChainManagerFilterer) ParseRoleGranted

func (_RootChainManager *RootChainManagerFilterer) ParseRoleGranted(log types.Log) (*RootChainManagerRoleGranted, error)

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

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

func (*RootChainManagerFilterer) ParseRoleRevoked

func (_RootChainManager *RootChainManagerFilterer) ParseRoleRevoked(log types.Log) (*RootChainManagerRoleRevoked, error)

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

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

func (*RootChainManagerFilterer) ParseTokenMapped

func (_RootChainManager *RootChainManagerFilterer) ParseTokenMapped(log types.Log) (*RootChainManagerTokenMapped, error)

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

Solidity: event TokenMapped(address indexed rootToken, address indexed childToken, bytes32 indexed tokenType)

func (*RootChainManagerFilterer) WatchMetaTransactionExecuted

func (_RootChainManager *RootChainManagerFilterer) WatchMetaTransactionExecuted(opts *bind.WatchOpts, sink chan<- *RootChainManagerMetaTransactionExecuted) (event.Subscription, error)

WatchMetaTransactionExecuted is a free log subscription operation binding the contract event 0x5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b.

Solidity: event MetaTransactionExecuted(address userAddress, address relayerAddress, bytes functionSignature)

func (*RootChainManagerFilterer) WatchPredicateRegistered

func (_RootChainManager *RootChainManagerFilterer) WatchPredicateRegistered(opts *bind.WatchOpts, sink chan<- *RootChainManagerPredicateRegistered, tokenType [][32]byte, predicateAddress []common.Address) (event.Subscription, error)

WatchPredicateRegistered is a free log subscription operation binding the contract event 0x8643692ae1c12ec91fa18e50b82ed93fa314f580999a236824db6de9ae0d839b.

Solidity: event PredicateRegistered(bytes32 indexed tokenType, address indexed predicateAddress)

func (*RootChainManagerFilterer) WatchRoleAdminChanged

func (_RootChainManager *RootChainManagerFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *RootChainManagerRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*RootChainManagerFilterer) WatchRoleGranted

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

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

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

func (*RootChainManagerFilterer) WatchRoleRevoked

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

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

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

func (*RootChainManagerFilterer) WatchTokenMapped

func (_RootChainManager *RootChainManagerFilterer) WatchTokenMapped(opts *bind.WatchOpts, sink chan<- *RootChainManagerTokenMapped, rootToken []common.Address, childToken []common.Address, tokenType [][32]byte) (event.Subscription, error)

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

Solidity: event TokenMapped(address indexed rootToken, address indexed childToken, bytes32 indexed tokenType)

type RootChainManagerMetaTransactionExecuted

type RootChainManagerMetaTransactionExecuted struct {
	UserAddress       common.Address
	RelayerAddress    common.Address
	FunctionSignature []byte
	Raw               types.Log // Blockchain specific contextual infos
}

RootChainManagerMetaTransactionExecuted represents a MetaTransactionExecuted event raised by the RootChainManager contract.

type RootChainManagerMetaTransactionExecutedIterator

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

RootChainManagerMetaTransactionExecutedIterator is returned from FilterMetaTransactionExecuted and is used to iterate over the raw logs and unpacked data for MetaTransactionExecuted events raised by the RootChainManager contract.

func (*RootChainManagerMetaTransactionExecutedIterator) Close

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

func (*RootChainManagerMetaTransactionExecutedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainManagerMetaTransactionExecutedIterator) 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 RootChainManagerPredicateRegistered

type RootChainManagerPredicateRegistered struct {
	TokenType        [32]byte
	PredicateAddress common.Address
	Raw              types.Log // Blockchain specific contextual infos
}

RootChainManagerPredicateRegistered represents a PredicateRegistered event raised by the RootChainManager contract.

type RootChainManagerPredicateRegisteredIterator

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

RootChainManagerPredicateRegisteredIterator is returned from FilterPredicateRegistered and is used to iterate over the raw logs and unpacked data for PredicateRegistered events raised by the RootChainManager contract.

func (*RootChainManagerPredicateRegisteredIterator) Close

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

func (*RootChainManagerPredicateRegisteredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainManagerPredicateRegisteredIterator) 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 RootChainManagerRaw

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

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

func (*RootChainManagerRaw) Call

func (_RootChainManager *RootChainManagerRaw) 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 (*RootChainManagerRaw) Transact

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

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

func (*RootChainManagerRaw) Transfer

func (_RootChainManager *RootChainManagerRaw) 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 RootChainManagerRoleAdminChanged

type RootChainManagerRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

RootChainManagerRoleAdminChanged represents a RoleAdminChanged event raised by the RootChainManager contract.

type RootChainManagerRoleAdminChangedIterator

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

RootChainManagerRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the RootChainManager contract.

func (*RootChainManagerRoleAdminChangedIterator) Close

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

func (*RootChainManagerRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainManagerRoleAdminChangedIterator) 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 RootChainManagerRoleGranted

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

RootChainManagerRoleGranted represents a RoleGranted event raised by the RootChainManager contract.

type RootChainManagerRoleGrantedIterator

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

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

func (*RootChainManagerRoleGrantedIterator) Close

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

func (*RootChainManagerRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainManagerRoleGrantedIterator) 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 RootChainManagerRoleRevoked

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

RootChainManagerRoleRevoked represents a RoleRevoked event raised by the RootChainManager contract.

type RootChainManagerRoleRevokedIterator

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

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

func (*RootChainManagerRoleRevokedIterator) Close

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

func (*RootChainManagerRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainManagerRoleRevokedIterator) 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 RootChainManagerSession

type RootChainManagerSession struct {
	Contract     *RootChainManager // 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
}

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

func (*RootChainManagerSession) CheckpointManagerAddress

func (_RootChainManager *RootChainManagerSession) CheckpointManagerAddress() (common.Address, error)

CheckpointManagerAddress is a free data retrieval call binding the contract method 0x3138b6f1.

Solidity: function checkpointManagerAddress() view returns(address)

func (*RootChainManagerSession) ChildChainManagerAddress

func (_RootChainManager *RootChainManagerSession) ChildChainManagerAddress() (common.Address, error)

ChildChainManagerAddress is a free data retrieval call binding the contract method 0x04967702.

Solidity: function childChainManagerAddress() view returns(address)

func (*RootChainManagerSession) ChildToRootToken

func (_RootChainManager *RootChainManagerSession) ChildToRootToken(arg0 common.Address) (common.Address, error)

ChildToRootToken is a free data retrieval call binding the contract method 0x6e86b770.

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

func (*RootChainManagerSession) DEFAULTADMINROLE

func (_RootChainManager *RootChainManagerSession) DEFAULTADMINROLE() ([32]byte, error)

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

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*RootChainManagerSession) DEPOSIT

func (_RootChainManager *RootChainManagerSession) DEPOSIT() ([32]byte, error)

DEPOSIT is a free data retrieval call binding the contract method 0xd81c8e52.

Solidity: function DEPOSIT() view returns(bytes32)

func (*RootChainManagerSession) DepositEtherFor

func (_RootChainManager *RootChainManagerSession) DepositEtherFor(user common.Address) (*types.Transaction, error)

DepositEtherFor is a paid mutator transaction binding the contract method 0x4faa8a26.

Solidity: function depositEtherFor(address user) payable returns()

func (*RootChainManagerSession) DepositFor

func (_RootChainManager *RootChainManagerSession) DepositFor(user common.Address, rootToken common.Address, depositData []byte) (*types.Transaction, error)

DepositFor is a paid mutator transaction binding the contract method 0xe3dec8fb.

Solidity: function depositFor(address user, address rootToken, bytes depositData) returns()

func (*RootChainManagerSession) ERC712VERSION

func (_RootChainManager *RootChainManagerSession) ERC712VERSION() (string, error)

ERC712VERSION is a free data retrieval call binding the contract method 0x0f7e5970.

Solidity: function ERC712_VERSION() view returns(string)

func (*RootChainManagerSession) ETHERADDRESS

func (_RootChainManager *RootChainManagerSession) ETHERADDRESS() (common.Address, error)

ETHERADDRESS is a free data retrieval call binding the contract method 0xcf1d21c0.

Solidity: function ETHER_ADDRESS() view returns(address)

func (*RootChainManagerSession) ExecuteMetaTransaction

func (_RootChainManager *RootChainManagerSession) ExecuteMetaTransaction(userAddress common.Address, functionSignature []byte, sigR [32]byte, sigS [32]byte, sigV uint8) (*types.Transaction, error)

ExecuteMetaTransaction is a paid mutator transaction binding the contract method 0x0c53c51c.

Solidity: function executeMetaTransaction(address userAddress, bytes functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV) payable returns(bytes)

func (*RootChainManagerSession) Exit

func (_RootChainManager *RootChainManagerSession) Exit(inputData []byte) (*types.Transaction, error)

Exit is a paid mutator transaction binding the contract method 0x3805550f.

Solidity: function exit(bytes inputData) returns()

func (*RootChainManagerSession) GetChainId

func (_RootChainManager *RootChainManagerSession) GetChainId() (*big.Int, error)

GetChainId is a free data retrieval call binding the contract method 0x3408e470.

Solidity: function getChainId() pure returns(uint256)

func (*RootChainManagerSession) GetDomainSeperator

func (_RootChainManager *RootChainManagerSession) GetDomainSeperator() ([32]byte, error)

GetDomainSeperator is a free data retrieval call binding the contract method 0x20379ee5.

Solidity: function getDomainSeperator() view returns(bytes32)

func (*RootChainManagerSession) GetNonce

func (_RootChainManager *RootChainManagerSession) GetNonce(user common.Address) (*big.Int, error)

GetNonce is a free data retrieval call binding the contract method 0x2d0335ab.

Solidity: function getNonce(address user) view returns(uint256 nonce)

func (*RootChainManagerSession) GetRoleAdmin

func (_RootChainManager *RootChainManagerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

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

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

func (*RootChainManagerSession) GetRoleMember

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

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

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

func (*RootChainManagerSession) GetRoleMemberCount

func (_RootChainManager *RootChainManagerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

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

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

func (*RootChainManagerSession) GrantRole

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

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

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

func (*RootChainManagerSession) HasRole

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

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

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

func (*RootChainManagerSession) Initialize

func (_RootChainManager *RootChainManagerSession) Initialize(_owner common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _owner) returns()

func (*RootChainManagerSession) InitializeEIP712

func (_RootChainManager *RootChainManagerSession) InitializeEIP712() (*types.Transaction, error)

InitializeEIP712 is a paid mutator transaction binding the contract method 0x630fcbfb.

Solidity: function initializeEIP712() returns()

func (*RootChainManagerSession) MAPPERROLE

func (_RootChainManager *RootChainManagerSession) MAPPERROLE() ([32]byte, error)

MAPPERROLE is a free data retrieval call binding the contract method 0x568b80b5.

Solidity: function MAPPER_ROLE() view returns(bytes32)

func (*RootChainManagerSession) MAPTOKEN

func (_RootChainManager *RootChainManagerSession) MAPTOKEN() ([32]byte, error)

MAPTOKEN is a free data retrieval call binding the contract method 0x886a69ba.

Solidity: function MAP_TOKEN() view returns(bytes32)

func (*RootChainManagerSession) MapToken

func (_RootChainManager *RootChainManagerSession) MapToken(rootToken common.Address, childToken common.Address, tokenType [32]byte) (*types.Transaction, error)

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

Solidity: function mapToken(address rootToken, address childToken, bytes32 tokenType) returns()

func (*RootChainManagerSession) ProcessedExits

func (_RootChainManager *RootChainManagerSession) ProcessedExits(arg0 [32]byte) (bool, error)

ProcessedExits is a free data retrieval call binding the contract method 0x607f2d42.

Solidity: function processedExits(bytes32 ) view returns(bool)

func (*RootChainManagerSession) Receive

func (_RootChainManager *RootChainManagerSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*RootChainManagerSession) RegisterPredicate

func (_RootChainManager *RootChainManagerSession) RegisterPredicate(tokenType [32]byte, predicateAddress common.Address) (*types.Transaction, error)

RegisterPredicate is a paid mutator transaction binding the contract method 0x0c598220.

Solidity: function registerPredicate(bytes32 tokenType, address predicateAddress) returns()

func (*RootChainManagerSession) RemapToken

func (_RootChainManager *RootChainManagerSession) RemapToken(rootToken common.Address, childToken common.Address, tokenType [32]byte) (*types.Transaction, error)

RemapToken is a paid mutator transaction binding the contract method 0xd233a3c7.

Solidity: function remapToken(address rootToken, address childToken, bytes32 tokenType) returns()

func (*RootChainManagerSession) RenounceRole

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

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

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

func (*RootChainManagerSession) RevokeRole

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

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

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

func (*RootChainManagerSession) RootToChildToken

func (_RootChainManager *RootChainManagerSession) RootToChildToken(arg0 common.Address) (common.Address, error)

RootToChildToken is a free data retrieval call binding the contract method 0xea60c7c4.

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

func (*RootChainManagerSession) SetCheckpointManager

func (_RootChainManager *RootChainManagerSession) SetCheckpointManager(newCheckpointManager common.Address) (*types.Transaction, error)

SetCheckpointManager is a paid mutator transaction binding the contract method 0xbc08452b.

Solidity: function setCheckpointManager(address newCheckpointManager) returns()

func (*RootChainManagerSession) SetChildChainManagerAddress

func (_RootChainManager *RootChainManagerSession) SetChildChainManagerAddress(newChildChainManager common.Address) (*types.Transaction, error)

SetChildChainManagerAddress is a paid mutator transaction binding the contract method 0xdc993a23.

Solidity: function setChildChainManagerAddress(address newChildChainManager) returns()

func (*RootChainManagerSession) SetStateSender

func (_RootChainManager *RootChainManagerSession) SetStateSender(newStateSender common.Address) (*types.Transaction, error)

SetStateSender is a paid mutator transaction binding the contract method 0x6cb136b0.

Solidity: function setStateSender(address newStateSender) returns()

func (*RootChainManagerSession) SetupContractId

func (_RootChainManager *RootChainManagerSession) SetupContractId() (*types.Transaction, error)

SetupContractId is a paid mutator transaction binding the contract method 0xb4b4f63e.

Solidity: function setupContractId() returns()

func (*RootChainManagerSession) StateSenderAddress

func (_RootChainManager *RootChainManagerSession) StateSenderAddress() (common.Address, error)

StateSenderAddress is a free data retrieval call binding the contract method 0xe2c49de1.

Solidity: function stateSenderAddress() view returns(address)

func (*RootChainManagerSession) TokenToType

func (_RootChainManager *RootChainManagerSession) TokenToType(arg0 common.Address) ([32]byte, error)

TokenToType is a free data retrieval call binding the contract method 0xe43009a6.

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

func (*RootChainManagerSession) TypeToPredicate

func (_RootChainManager *RootChainManagerSession) TypeToPredicate(arg0 [32]byte) (common.Address, error)

TypeToPredicate is a free data retrieval call binding the contract method 0xe66f9603.

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

type RootChainManagerTokenMapped

type RootChainManagerTokenMapped struct {
	RootToken  common.Address
	ChildToken common.Address
	TokenType  [32]byte
	Raw        types.Log // Blockchain specific contextual infos
}

RootChainManagerTokenMapped represents a TokenMapped event raised by the RootChainManager contract.

type RootChainManagerTokenMappedIterator

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

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

func (*RootChainManagerTokenMappedIterator) Close

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

func (*RootChainManagerTokenMappedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainManagerTokenMappedIterator) 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 RootChainManagerTransactor

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

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

func NewRootChainManagerTransactor

func NewRootChainManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*RootChainManagerTransactor, error)

NewRootChainManagerTransactor creates a new write-only instance of RootChainManager, bound to a specific deployed contract.

func (*RootChainManagerTransactor) DepositEtherFor

func (_RootChainManager *RootChainManagerTransactor) DepositEtherFor(opts *bind.TransactOpts, user common.Address) (*types.Transaction, error)

DepositEtherFor is a paid mutator transaction binding the contract method 0x4faa8a26.

Solidity: function depositEtherFor(address user) payable returns()

func (*RootChainManagerTransactor) DepositFor

func (_RootChainManager *RootChainManagerTransactor) DepositFor(opts *bind.TransactOpts, user common.Address, rootToken common.Address, depositData []byte) (*types.Transaction, error)

DepositFor is a paid mutator transaction binding the contract method 0xe3dec8fb.

Solidity: function depositFor(address user, address rootToken, bytes depositData) returns()

func (*RootChainManagerTransactor) ExecuteMetaTransaction

func (_RootChainManager *RootChainManagerTransactor) ExecuteMetaTransaction(opts *bind.TransactOpts, userAddress common.Address, functionSignature []byte, sigR [32]byte, sigS [32]byte, sigV uint8) (*types.Transaction, error)

ExecuteMetaTransaction is a paid mutator transaction binding the contract method 0x0c53c51c.

Solidity: function executeMetaTransaction(address userAddress, bytes functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV) payable returns(bytes)

func (*RootChainManagerTransactor) Exit

func (_RootChainManager *RootChainManagerTransactor) Exit(opts *bind.TransactOpts, inputData []byte) (*types.Transaction, error)

Exit is a paid mutator transaction binding the contract method 0x3805550f.

Solidity: function exit(bytes inputData) returns()

func (*RootChainManagerTransactor) GrantRole

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

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

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

func (*RootChainManagerTransactor) Initialize

func (_RootChainManager *RootChainManagerTransactor) Initialize(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _owner) returns()

func (*RootChainManagerTransactor) InitializeEIP712

func (_RootChainManager *RootChainManagerTransactor) InitializeEIP712(opts *bind.TransactOpts) (*types.Transaction, error)

InitializeEIP712 is a paid mutator transaction binding the contract method 0x630fcbfb.

Solidity: function initializeEIP712() returns()

func (*RootChainManagerTransactor) MapToken

func (_RootChainManager *RootChainManagerTransactor) MapToken(opts *bind.TransactOpts, rootToken common.Address, childToken common.Address, tokenType [32]byte) (*types.Transaction, error)

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

Solidity: function mapToken(address rootToken, address childToken, bytes32 tokenType) returns()

func (*RootChainManagerTransactor) Receive

func (_RootChainManager *RootChainManagerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*RootChainManagerTransactor) RegisterPredicate

func (_RootChainManager *RootChainManagerTransactor) RegisterPredicate(opts *bind.TransactOpts, tokenType [32]byte, predicateAddress common.Address) (*types.Transaction, error)

RegisterPredicate is a paid mutator transaction binding the contract method 0x0c598220.

Solidity: function registerPredicate(bytes32 tokenType, address predicateAddress) returns()

func (*RootChainManagerTransactor) RemapToken

func (_RootChainManager *RootChainManagerTransactor) RemapToken(opts *bind.TransactOpts, rootToken common.Address, childToken common.Address, tokenType [32]byte) (*types.Transaction, error)

RemapToken is a paid mutator transaction binding the contract method 0xd233a3c7.

Solidity: function remapToken(address rootToken, address childToken, bytes32 tokenType) returns()

func (*RootChainManagerTransactor) RenounceRole

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

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

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

func (*RootChainManagerTransactor) RevokeRole

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

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

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

func (*RootChainManagerTransactor) SetCheckpointManager

func (_RootChainManager *RootChainManagerTransactor) SetCheckpointManager(opts *bind.TransactOpts, newCheckpointManager common.Address) (*types.Transaction, error)

SetCheckpointManager is a paid mutator transaction binding the contract method 0xbc08452b.

Solidity: function setCheckpointManager(address newCheckpointManager) returns()

func (*RootChainManagerTransactor) SetChildChainManagerAddress

func (_RootChainManager *RootChainManagerTransactor) SetChildChainManagerAddress(opts *bind.TransactOpts, newChildChainManager common.Address) (*types.Transaction, error)

SetChildChainManagerAddress is a paid mutator transaction binding the contract method 0xdc993a23.

Solidity: function setChildChainManagerAddress(address newChildChainManager) returns()

func (*RootChainManagerTransactor) SetStateSender

func (_RootChainManager *RootChainManagerTransactor) SetStateSender(opts *bind.TransactOpts, newStateSender common.Address) (*types.Transaction, error)

SetStateSender is a paid mutator transaction binding the contract method 0x6cb136b0.

Solidity: function setStateSender(address newStateSender) returns()

func (*RootChainManagerTransactor) SetupContractId

func (_RootChainManager *RootChainManagerTransactor) SetupContractId(opts *bind.TransactOpts) (*types.Transaction, error)

SetupContractId is a paid mutator transaction binding the contract method 0xb4b4f63e.

Solidity: function setupContractId() returns()

type RootChainManagerTransactorRaw

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

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

func (*RootChainManagerTransactorRaw) Transact

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

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

func (*RootChainManagerTransactorRaw) Transfer

func (_RootChainManager *RootChainManagerTransactorRaw) 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 RootChainManagerTransactorSession

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

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

func (*RootChainManagerTransactorSession) DepositEtherFor

func (_RootChainManager *RootChainManagerTransactorSession) DepositEtherFor(user common.Address) (*types.Transaction, error)

DepositEtherFor is a paid mutator transaction binding the contract method 0x4faa8a26.

Solidity: function depositEtherFor(address user) payable returns()

func (*RootChainManagerTransactorSession) DepositFor

func (_RootChainManager *RootChainManagerTransactorSession) DepositFor(user common.Address, rootToken common.Address, depositData []byte) (*types.Transaction, error)

DepositFor is a paid mutator transaction binding the contract method 0xe3dec8fb.

Solidity: function depositFor(address user, address rootToken, bytes depositData) returns()

func (*RootChainManagerTransactorSession) ExecuteMetaTransaction

func (_RootChainManager *RootChainManagerTransactorSession) ExecuteMetaTransaction(userAddress common.Address, functionSignature []byte, sigR [32]byte, sigS [32]byte, sigV uint8) (*types.Transaction, error)

ExecuteMetaTransaction is a paid mutator transaction binding the contract method 0x0c53c51c.

Solidity: function executeMetaTransaction(address userAddress, bytes functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV) payable returns(bytes)

func (*RootChainManagerTransactorSession) Exit

func (_RootChainManager *RootChainManagerTransactorSession) Exit(inputData []byte) (*types.Transaction, error)

Exit is a paid mutator transaction binding the contract method 0x3805550f.

Solidity: function exit(bytes inputData) returns()

func (*RootChainManagerTransactorSession) GrantRole

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

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

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

func (*RootChainManagerTransactorSession) Initialize

func (_RootChainManager *RootChainManagerTransactorSession) Initialize(_owner common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _owner) returns()

func (*RootChainManagerTransactorSession) InitializeEIP712

func (_RootChainManager *RootChainManagerTransactorSession) InitializeEIP712() (*types.Transaction, error)

InitializeEIP712 is a paid mutator transaction binding the contract method 0x630fcbfb.

Solidity: function initializeEIP712() returns()

func (*RootChainManagerTransactorSession) MapToken

func (_RootChainManager *RootChainManagerTransactorSession) MapToken(rootToken common.Address, childToken common.Address, tokenType [32]byte) (*types.Transaction, error)

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

Solidity: function mapToken(address rootToken, address childToken, bytes32 tokenType) returns()

func (*RootChainManagerTransactorSession) Receive

func (_RootChainManager *RootChainManagerTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*RootChainManagerTransactorSession) RegisterPredicate

func (_RootChainManager *RootChainManagerTransactorSession) RegisterPredicate(tokenType [32]byte, predicateAddress common.Address) (*types.Transaction, error)

RegisterPredicate is a paid mutator transaction binding the contract method 0x0c598220.

Solidity: function registerPredicate(bytes32 tokenType, address predicateAddress) returns()

func (*RootChainManagerTransactorSession) RemapToken

func (_RootChainManager *RootChainManagerTransactorSession) RemapToken(rootToken common.Address, childToken common.Address, tokenType [32]byte) (*types.Transaction, error)

RemapToken is a paid mutator transaction binding the contract method 0xd233a3c7.

Solidity: function remapToken(address rootToken, address childToken, bytes32 tokenType) returns()

func (*RootChainManagerTransactorSession) RenounceRole

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

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

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

func (*RootChainManagerTransactorSession) RevokeRole

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

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

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

func (*RootChainManagerTransactorSession) SetCheckpointManager

func (_RootChainManager *RootChainManagerTransactorSession) SetCheckpointManager(newCheckpointManager common.Address) (*types.Transaction, error)

SetCheckpointManager is a paid mutator transaction binding the contract method 0xbc08452b.

Solidity: function setCheckpointManager(address newCheckpointManager) returns()

func (*RootChainManagerTransactorSession) SetChildChainManagerAddress

func (_RootChainManager *RootChainManagerTransactorSession) SetChildChainManagerAddress(newChildChainManager common.Address) (*types.Transaction, error)

SetChildChainManagerAddress is a paid mutator transaction binding the contract method 0xdc993a23.

Solidity: function setChildChainManagerAddress(address newChildChainManager) returns()

func (*RootChainManagerTransactorSession) SetStateSender

func (_RootChainManager *RootChainManagerTransactorSession) SetStateSender(newStateSender common.Address) (*types.Transaction, error)

SetStateSender is a paid mutator transaction binding the contract method 0x6cb136b0.

Solidity: function setStateSender(address newStateSender) returns()

func (*RootChainManagerTransactorSession) SetupContractId

func (_RootChainManager *RootChainManagerTransactorSession) SetupContractId() (*types.Transaction, error)

SetupContractId is a paid mutator transaction binding the contract method 0xb4b4f63e.

Solidity: function setupContractId() returns()

type RootChainNewHeaderBlock

type RootChainNewHeaderBlock struct {
	Proposer      common.Address
	HeaderBlockId *big.Int
	Reward        *big.Int
	Start         *big.Int
	End           *big.Int
	Root          [32]byte
	Raw           types.Log // Blockchain specific contextual infos
}

RootChainNewHeaderBlock represents a NewHeaderBlock event raised by the RootChain contract.

type RootChainNewHeaderBlockIterator

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

RootChainNewHeaderBlockIterator is returned from FilterNewHeaderBlock and is used to iterate over the raw logs and unpacked data for NewHeaderBlock events raised by the RootChain contract.

func (*RootChainNewHeaderBlockIterator) Close

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

func (*RootChainNewHeaderBlockIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainNewHeaderBlockIterator) 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 RootChainOwnershipTransferred

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

RootChainOwnershipTransferred represents a OwnershipTransferred event raised by the RootChain contract.

type RootChainOwnershipTransferredIterator

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

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

func (*RootChainOwnershipTransferredIterator) Close

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

func (*RootChainOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainOwnershipTransferredIterator) 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 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 RootChainResetHeaderBlock

type RootChainResetHeaderBlock struct {
	Proposer      common.Address
	HeaderBlockId *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

RootChainResetHeaderBlock represents a ResetHeaderBlock event raised by the RootChain contract.

type RootChainResetHeaderBlockIterator

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

RootChainResetHeaderBlockIterator is returned from FilterResetHeaderBlock and is used to iterate over the raw logs and unpacked data for ResetHeaderBlock events raised by the RootChain contract.

func (*RootChainResetHeaderBlockIterator) Close

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

func (*RootChainResetHeaderBlockIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootChainResetHeaderBlockIterator) 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 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) CHAINID

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

CHAINID is a free data retrieval call binding the contract method 0xcc79f97b.

Solidity: function CHAINID() view returns(uint256)

func (*RootChainSession) CurrentHeaderBlock

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

CurrentHeaderBlock is a free data retrieval call binding the contract method 0xec7e4855.

Solidity: function currentHeaderBlock() view returns(uint256)

func (*RootChainSession) GetLastChildBlock

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

GetLastChildBlock is a free data retrieval call binding the contract method 0xb87e1b66.

Solidity: function getLastChildBlock() view returns(uint256)

func (*RootChainSession) HeaderBlocks

func (_RootChain *RootChainSession) HeaderBlocks(arg0 *big.Int) (struct {
	Root      [32]byte
	Start     *big.Int
	End       *big.Int
	CreatedAt *big.Int
	Proposer  common.Address
}, error)

HeaderBlocks is a free data retrieval call binding the contract method 0x41539d4a.

Solidity: function headerBlocks(uint256 ) view returns(bytes32 root, uint256 start, uint256 end, uint256 createdAt, address proposer)

func (*RootChainSession) HeimdallId

func (_RootChain *RootChainSession) HeimdallId() ([32]byte, error)

HeimdallId is a free data retrieval call binding the contract method 0xfbc3dd36.

Solidity: function heimdallId() view returns(bytes32)

func (*RootChainSession) IsOwner

func (_RootChain *RootChainSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*RootChainSession) NetworkId

func (_RootChain *RootChainSession) NetworkId() ([]byte, error)

NetworkId is a free data retrieval call binding the contract method 0x9025e64c.

Solidity: function networkId() view returns(bytes)

func (*RootChainSession) NextHeaderBlock

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

NextHeaderBlock is a free data retrieval call binding the contract method 0x8d978d88.

Solidity: function _nextHeaderBlock() view returns(uint256)

func (*RootChainSession) Owner

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

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

Solidity: function owner() view returns(address)

func (*RootChainSession) RenounceOwnership

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

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

Solidity: function renounceOwnership() returns()

func (*RootChainSession) SetHeimdallId

func (_RootChain *RootChainSession) SetHeimdallId(_heimdallId string) (*types.Transaction, error)

SetHeimdallId is a paid mutator transaction binding the contract method 0xea0688b3.

Solidity: function setHeimdallId(string _heimdallId) returns()

func (*RootChainSession) SetNextHeaderBlock

func (_RootChain *RootChainSession) SetNextHeaderBlock(_value *big.Int) (*types.Transaction, error)

SetNextHeaderBlock is a paid mutator transaction binding the contract method 0xcf24a0ea.

Solidity: function setNextHeaderBlock(uint256 _value) returns()

func (*RootChainSession) Slash

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

Slash is a paid mutator transaction binding the contract method 0x2da25de3.

Solidity: function slash() returns()

func (*RootChainSession) SubmitCheckpoint

func (_RootChain *RootChainSession) SubmitCheckpoint(data []byte, sigs [][3]*big.Int) (*types.Transaction, error)

SubmitCheckpoint is a paid mutator transaction binding the contract method 0x4e43e495.

Solidity: function submitCheckpoint(bytes data, uint256[3][] sigs) returns()

func (*RootChainSession) SubmitHeaderBlock

func (_RootChain *RootChainSession) SubmitHeaderBlock(data []byte, sigs []byte) (*types.Transaction, error)

SubmitHeaderBlock is a paid mutator transaction binding the contract method 0x6a791f11.

Solidity: function submitHeaderBlock(bytes data, bytes sigs) returns()

func (*RootChainSession) TransferOwnership

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

func (_RootChain *RootChainSession) UpdateDepositId(numDeposits *big.Int) (*types.Transaction, error)

UpdateDepositId is a paid mutator transaction binding the contract method 0x5391f483.

Solidity: function updateDepositId(uint256 numDeposits) returns(uint256 depositId)

func (*RootChainSession) VOTETYPE

func (_RootChain *RootChainSession) VOTETYPE() (uint8, error)

VOTETYPE is a free data retrieval call binding the contract method 0xd5b844eb.

Solidity: function VOTE_TYPE() view returns(uint8)

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) RenounceOwnership

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

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

Solidity: function renounceOwnership() returns()

func (*RootChainTransactor) SetHeimdallId

func (_RootChain *RootChainTransactor) SetHeimdallId(opts *bind.TransactOpts, _heimdallId string) (*types.Transaction, error)

SetHeimdallId is a paid mutator transaction binding the contract method 0xea0688b3.

Solidity: function setHeimdallId(string _heimdallId) returns()

func (*RootChainTransactor) SetNextHeaderBlock

func (_RootChain *RootChainTransactor) SetNextHeaderBlock(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)

SetNextHeaderBlock is a paid mutator transaction binding the contract method 0xcf24a0ea.

Solidity: function setNextHeaderBlock(uint256 _value) returns()

func (*RootChainTransactor) Slash

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

Slash is a paid mutator transaction binding the contract method 0x2da25de3.

Solidity: function slash() returns()

func (*RootChainTransactor) SubmitCheckpoint

func (_RootChain *RootChainTransactor) SubmitCheckpoint(opts *bind.TransactOpts, data []byte, sigs [][3]*big.Int) (*types.Transaction, error)

SubmitCheckpoint is a paid mutator transaction binding the contract method 0x4e43e495.

Solidity: function submitCheckpoint(bytes data, uint256[3][] sigs) returns()

func (*RootChainTransactor) SubmitHeaderBlock

func (_RootChain *RootChainTransactor) SubmitHeaderBlock(opts *bind.TransactOpts, data []byte, sigs []byte) (*types.Transaction, error)

SubmitHeaderBlock is a paid mutator transaction binding the contract method 0x6a791f11.

Solidity: function submitHeaderBlock(bytes data, bytes sigs) returns()

func (*RootChainTransactor) TransferOwnership

func (_RootChain *RootChainTransactor) 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 (*RootChainTransactor) UpdateDepositId

func (_RootChain *RootChainTransactor) UpdateDepositId(opts *bind.TransactOpts, numDeposits *big.Int) (*types.Transaction, error)

UpdateDepositId is a paid mutator transaction binding the contract method 0x5391f483.

Solidity: function updateDepositId(uint256 numDeposits) returns(uint256 depositId)

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) RenounceOwnership

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

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

Solidity: function renounceOwnership() returns()

func (*RootChainTransactorSession) SetHeimdallId

func (_RootChain *RootChainTransactorSession) SetHeimdallId(_heimdallId string) (*types.Transaction, error)

SetHeimdallId is a paid mutator transaction binding the contract method 0xea0688b3.

Solidity: function setHeimdallId(string _heimdallId) returns()

func (*RootChainTransactorSession) SetNextHeaderBlock

func (_RootChain *RootChainTransactorSession) SetNextHeaderBlock(_value *big.Int) (*types.Transaction, error)

SetNextHeaderBlock is a paid mutator transaction binding the contract method 0xcf24a0ea.

Solidity: function setNextHeaderBlock(uint256 _value) returns()

func (*RootChainTransactorSession) Slash

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

Slash is a paid mutator transaction binding the contract method 0x2da25de3.

Solidity: function slash() returns()

func (*RootChainTransactorSession) SubmitCheckpoint

func (_RootChain *RootChainTransactorSession) SubmitCheckpoint(data []byte, sigs [][3]*big.Int) (*types.Transaction, error)

SubmitCheckpoint is a paid mutator transaction binding the contract method 0x4e43e495.

Solidity: function submitCheckpoint(bytes data, uint256[3][] sigs) returns()

func (*RootChainTransactorSession) SubmitHeaderBlock

func (_RootChain *RootChainTransactorSession) SubmitHeaderBlock(data []byte, sigs []byte) (*types.Transaction, error)

SubmitHeaderBlock is a paid mutator transaction binding the contract method 0x6a791f11.

Solidity: function submitHeaderBlock(bytes data, bytes sigs) returns()

func (*RootChainTransactorSession) TransferOwnership

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

func (_RootChain *RootChainTransactorSession) UpdateDepositId(numDeposits *big.Int) (*types.Transaction, error)

UpdateDepositId is a paid mutator transaction binding the contract method 0x5391f483.

Solidity: function updateDepositId(uint256 numDeposits) returns(uint256 depositId)

type StructForRLP

type StructForRLP struct {
	Status  []byte
	GasUsed []byte
	Bloom   []byte

	Logs []LogsForRLP
}

StructForRLP struct we use for rlp encoding the receipt.

Jump to

Keyboard shortcuts

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