contracts

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

This package contains the Go bindings for the Cartesi Rollups contracts. These bindings are generated automatically by the `generate` binary. To regenerate the bindings, run `go generate` from this directory. To modify the list of contracts, edit the `generate` binary.

Index

Constants

This section is empty.

Variables

View Source
var AuthorityABI = AuthorityMetaData.ABI

AuthorityABI is the input ABI used to generate the binding from. Deprecated: Use AuthorityMetaData.ABI instead.

View Source
var AuthorityMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AuthorityWithdrawalFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"application\",\"type\":\"address\"}],\"name\":\"ApplicationJoined\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contractIHistory\",\"name\":\"history\",\"type\":\"address\"}],\"name\":\"NewHistory\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_dapp\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_proofContext\",\"type\":\"bytes\"}],\"name\":\"getClaim\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getHistory\",\"outputs\":[{\"internalType\":\"contractIHistory\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"join\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_consensus\",\"type\":\"address\"}],\"name\":\"migrateHistoryToConsensus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIHistory\",\"name\":\"_history\",\"type\":\"address\"}],\"name\":\"setHistory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_claimData\",\"type\":\"bytes\"}],\"name\":\"submitClaim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawERC20Tokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

AuthorityMetaData contains all meta data concerning the Authority contract.

View Source
var CartesiDAppABI = CartesiDAppMetaData.ABI

CartesiDAppABI is the input ABI used to generate the binding from. Deprecated: Use CartesiDAppMetaData.ABI instead.

View Source
var CartesiDAppFactoryABI = CartesiDAppFactoryMetaData.ABI

CartesiDAppFactoryABI is the input ABI used to generate the binding from. Deprecated: Use CartesiDAppFactoryMetaData.ABI instead.

View Source
var CartesiDAppFactoryMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contractIConsensus\",\"name\":\"consensus\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"dappOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"templateHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"contractCartesiDApp\",\"name\":\"application\",\"type\":\"address\"}],\"name\":\"ApplicationCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"contractIConsensus\",\"name\":\"_consensus\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_dappOwner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_templateHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_salt\",\"type\":\"bytes32\"}],\"name\":\"calculateApplicationAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIConsensus\",\"name\":\"_consensus\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_dappOwner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_templateHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_salt\",\"type\":\"bytes32\"}],\"name\":\"newApplication\",\"outputs\":[{\"internalType\":\"contractCartesiDApp\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIConsensus\",\"name\":\"_consensus\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_dappOwner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_templateHash\",\"type\":\"bytes32\"}],\"name\":\"newApplication\",\"outputs\":[{\"internalType\":\"contractCartesiDApp\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

CartesiDAppFactoryMetaData contains all meta data concerning the CartesiDAppFactory contract.

View Source
var CartesiDAppMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"contractIConsensus\",\"name\":\"_consensus\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_templateHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"EtherTransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectEpochHash\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectOutputHashesRootHash\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectOutputsEpochRootHash\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InputIndexOutOfClaimBounds\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyDApp\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"VoucherReexecutionNotAllowed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contractIConsensus\",\"name\":\"newConsensus\",\"type\":\"address\"}],\"name\":\"NewConsensus\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"voucherId\",\"type\":\"uint256\"}],\"name\":\"VoucherExecuted\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_destination\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_payload\",\"type\":\"bytes\"},{\"components\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"inputIndexWithinEpoch\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"outputIndexWithinInput\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"outputHashesRootHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"vouchersEpochRootHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"noticesEpochRootHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"machineStateHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"outputHashInOutputHashesSiblings\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"outputHashesInEpochSiblings\",\"type\":\"bytes32[]\"}],\"internalType\":\"structOutputValidityProof\",\"name\":\"validity\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"context\",\"type\":\"bytes\"}],\"internalType\":\"structProof\",\"name\":\"_proof\",\"type\":\"tuple\"}],\"name\":\"executeVoucher\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getConsensus\",\"outputs\":[{\"internalType\":\"contractIConsensus\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTemplateHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIConsensus\",\"name\":\"_newConsensus\",\"type\":\"address\"}],\"name\":\"migrateToConsensus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC721Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_notice\",\"type\":\"bytes\"},{\"components\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"inputIndexWithinEpoch\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"outputIndexWithinInput\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"outputHashesRootHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"vouchersEpochRootHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"noticesEpochRootHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"machineStateHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"outputHashInOutputHashesSiblings\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"outputHashesInEpochSiblings\",\"type\":\"bytes32[]\"}],\"internalType\":\"structOutputValidityProof\",\"name\":\"validity\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"context\",\"type\":\"bytes\"}],\"internalType\":\"structProof\",\"name\":\"_proof\",\"type\":\"tuple\"}],\"name\":\"validateNotice\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_inputIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_outputIndexWithinInput\",\"type\":\"uint256\"}],\"name\":\"wasVoucherExecuted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"withdrawEther\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

CartesiDAppMetaData contains all meta data concerning the CartesiDApp contract.

View Source
var HistoryABI = HistoryMetaData.ABI

HistoryABI is the input ABI used to generate the binding from. Deprecated: Use HistoryMetaData.ABI instead.

View Source
var HistoryMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InvalidClaimIndex\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInputIndices\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UnclaimedInputs\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"dapp\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"epochHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint128\",\"name\":\"firstIndex\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"lastIndex\",\"type\":\"uint128\"}],\"indexed\":false,\"internalType\":\"structHistory.Claim\",\"name\":\"claim\",\"type\":\"tuple\"}],\"name\":\"NewClaimToHistory\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_dapp\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_proofContext\",\"type\":\"bytes\"}],\"name\":\"getClaim\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_consensus\",\"type\":\"address\"}],\"name\":\"migrateToConsensus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_claimData\",\"type\":\"bytes\"}],\"name\":\"submitClaim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

HistoryMetaData contains all meta data concerning the History contract.

View Source
var InputBoxABI = InputBoxMetaData.ABI

InputBoxABI is the input ABI used to generate the binding from. Deprecated: Use InputBoxMetaData.ABI instead.

View Source
var InputBoxMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"InputSizeExceedsLimit\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"dapp\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"inputIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"input\",\"type\":\"bytes\"}],\"name\":\"InputAdded\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_dapp\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_input\",\"type\":\"bytes\"}],\"name\":\"addInput\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_dapp\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getInputHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_dapp\",\"type\":\"address\"}],\"name\":\"getNumberOfInputs\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

InputBoxMetaData contains all meta data concerning the InputBox contract.

Functions

This section is empty.

Types

type Authority

type Authority struct {
	AuthorityCaller     // Read-only binding to the contract
	AuthorityTransactor // Write-only binding to the contract
	AuthorityFilterer   // Log filterer for contract events
}

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

func NewAuthority

func NewAuthority(address common.Address, backend bind.ContractBackend) (*Authority, error)

NewAuthority creates a new instance of Authority, bound to a specific deployed contract.

type AuthorityApplicationJoined

type AuthorityApplicationJoined struct {
	Application common.Address
	Raw         types.Log // Blockchain specific contextual infos
}

AuthorityApplicationJoined represents a ApplicationJoined event raised by the Authority contract.

type AuthorityApplicationJoinedIterator

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

AuthorityApplicationJoinedIterator is returned from FilterApplicationJoined and is used to iterate over the raw logs and unpacked data for ApplicationJoined events raised by the Authority contract.

func (*AuthorityApplicationJoinedIterator) Close

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

func (*AuthorityApplicationJoinedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AuthorityApplicationJoinedIterator) 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 AuthorityCaller

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

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

func NewAuthorityCaller

func NewAuthorityCaller(address common.Address, caller bind.ContractCaller) (*AuthorityCaller, error)

NewAuthorityCaller creates a new read-only instance of Authority, bound to a specific deployed contract.

func (*AuthorityCaller) GetClaim

func (_Authority *AuthorityCaller) GetClaim(opts *bind.CallOpts, _dapp common.Address, _proofContext []byte) ([32]byte, *big.Int, *big.Int, error)

GetClaim is a free data retrieval call binding the contract method 0xd79a8240.

Solidity: function getClaim(address _dapp, bytes _proofContext) view returns(bytes32, uint256, uint256)

func (*AuthorityCaller) GetHistory

func (_Authority *AuthorityCaller) GetHistory(opts *bind.CallOpts) (common.Address, error)

GetHistory is a free data retrieval call binding the contract method 0xaa15efc8.

Solidity: function getHistory() view returns(address)

func (*AuthorityCaller) Owner

func (_Authority *AuthorityCaller) 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)

type AuthorityCallerRaw

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

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

func (*AuthorityCallerRaw) Call

func (_Authority *AuthorityCallerRaw) 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 AuthorityCallerSession

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

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

func (*AuthorityCallerSession) GetClaim

func (_Authority *AuthorityCallerSession) GetClaim(_dapp common.Address, _proofContext []byte) ([32]byte, *big.Int, *big.Int, error)

GetClaim is a free data retrieval call binding the contract method 0xd79a8240.

Solidity: function getClaim(address _dapp, bytes _proofContext) view returns(bytes32, uint256, uint256)

func (*AuthorityCallerSession) GetHistory

func (_Authority *AuthorityCallerSession) GetHistory() (common.Address, error)

GetHistory is a free data retrieval call binding the contract method 0xaa15efc8.

Solidity: function getHistory() view returns(address)

func (*AuthorityCallerSession) Owner

func (_Authority *AuthorityCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

type AuthorityFilterer

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

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

func NewAuthorityFilterer

func NewAuthorityFilterer(address common.Address, filterer bind.ContractFilterer) (*AuthorityFilterer, error)

NewAuthorityFilterer creates a new log filterer instance of Authority, bound to a specific deployed contract.

func (*AuthorityFilterer) FilterApplicationJoined

func (_Authority *AuthorityFilterer) FilterApplicationJoined(opts *bind.FilterOpts) (*AuthorityApplicationJoinedIterator, error)

FilterApplicationJoined is a free log retrieval operation binding the contract event 0x27c2b702d3bff195a18baca2daf00b20a986177c5f1449af4e2d46a3c3e02ce5.

Solidity: event ApplicationJoined(address application)

func (*AuthorityFilterer) FilterNewHistory

func (_Authority *AuthorityFilterer) FilterNewHistory(opts *bind.FilterOpts) (*AuthorityNewHistoryIterator, error)

FilterNewHistory is a free log retrieval operation binding the contract event 0x2bcd43869347a1d42f97ac6042f3d129817abd05a6125f9750fe3724e321d23e.

Solidity: event NewHistory(address history)

func (*AuthorityFilterer) FilterOwnershipTransferred

func (_Authority *AuthorityFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AuthorityOwnershipTransferredIterator, error)

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

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

func (*AuthorityFilterer) ParseApplicationJoined

func (_Authority *AuthorityFilterer) ParseApplicationJoined(log types.Log) (*AuthorityApplicationJoined, error)

ParseApplicationJoined is a log parse operation binding the contract event 0x27c2b702d3bff195a18baca2daf00b20a986177c5f1449af4e2d46a3c3e02ce5.

Solidity: event ApplicationJoined(address application)

func (*AuthorityFilterer) ParseNewHistory

func (_Authority *AuthorityFilterer) ParseNewHistory(log types.Log) (*AuthorityNewHistory, error)

ParseNewHistory is a log parse operation binding the contract event 0x2bcd43869347a1d42f97ac6042f3d129817abd05a6125f9750fe3724e321d23e.

Solidity: event NewHistory(address history)

func (*AuthorityFilterer) ParseOwnershipTransferred

func (_Authority *AuthorityFilterer) ParseOwnershipTransferred(log types.Log) (*AuthorityOwnershipTransferred, error)

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

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

func (*AuthorityFilterer) WatchApplicationJoined

func (_Authority *AuthorityFilterer) WatchApplicationJoined(opts *bind.WatchOpts, sink chan<- *AuthorityApplicationJoined) (event.Subscription, error)

WatchApplicationJoined is a free log subscription operation binding the contract event 0x27c2b702d3bff195a18baca2daf00b20a986177c5f1449af4e2d46a3c3e02ce5.

Solidity: event ApplicationJoined(address application)

func (*AuthorityFilterer) WatchNewHistory

func (_Authority *AuthorityFilterer) WatchNewHistory(opts *bind.WatchOpts, sink chan<- *AuthorityNewHistory) (event.Subscription, error)

WatchNewHistory is a free log subscription operation binding the contract event 0x2bcd43869347a1d42f97ac6042f3d129817abd05a6125f9750fe3724e321d23e.

Solidity: event NewHistory(address history)

func (*AuthorityFilterer) WatchOwnershipTransferred

func (_Authority *AuthorityFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AuthorityOwnershipTransferred, 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)

type AuthorityNewHistory

type AuthorityNewHistory struct {
	History common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

AuthorityNewHistory represents a NewHistory event raised by the Authority contract.

type AuthorityNewHistoryIterator

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

AuthorityNewHistoryIterator is returned from FilterNewHistory and is used to iterate over the raw logs and unpacked data for NewHistory events raised by the Authority contract.

func (*AuthorityNewHistoryIterator) Close

func (it *AuthorityNewHistoryIterator) Close() error

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

func (*AuthorityNewHistoryIterator) Error

func (it *AuthorityNewHistoryIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AuthorityNewHistoryIterator) Next

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

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

AuthorityOwnershipTransferred represents a OwnershipTransferred event raised by the Authority contract.

type AuthorityOwnershipTransferredIterator

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

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

func (*AuthorityOwnershipTransferredIterator) Close

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

func (*AuthorityOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AuthorityOwnershipTransferredIterator) 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 AuthorityRaw

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

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

func (*AuthorityRaw) Call

func (_Authority *AuthorityRaw) 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 (*AuthorityRaw) Transact

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

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

func (*AuthorityRaw) Transfer

func (_Authority *AuthorityRaw) 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 AuthoritySession

type AuthoritySession struct {
	Contract     *Authority        // 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
}

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

func (*AuthoritySession) GetClaim

func (_Authority *AuthoritySession) GetClaim(_dapp common.Address, _proofContext []byte) ([32]byte, *big.Int, *big.Int, error)

GetClaim is a free data retrieval call binding the contract method 0xd79a8240.

Solidity: function getClaim(address _dapp, bytes _proofContext) view returns(bytes32, uint256, uint256)

func (*AuthoritySession) GetHistory

func (_Authority *AuthoritySession) GetHistory() (common.Address, error)

GetHistory is a free data retrieval call binding the contract method 0xaa15efc8.

Solidity: function getHistory() view returns(address)

func (*AuthoritySession) Join

func (_Authority *AuthoritySession) Join() (*types.Transaction, error)

Join is a paid mutator transaction binding the contract method 0xb688a363.

Solidity: function join() returns()

func (*AuthoritySession) MigrateHistoryToConsensus

func (_Authority *AuthoritySession) MigrateHistoryToConsensus(_consensus common.Address) (*types.Transaction, error)

MigrateHistoryToConsensus is a paid mutator transaction binding the contract method 0x9368a3d3.

Solidity: function migrateHistoryToConsensus(address _consensus) returns()

func (*AuthoritySession) Owner

func (_Authority *AuthoritySession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*AuthoritySession) RenounceOwnership

func (_Authority *AuthoritySession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*AuthoritySession) SetHistory

func (_Authority *AuthoritySession) SetHistory(_history common.Address) (*types.Transaction, error)

SetHistory is a paid mutator transaction binding the contract method 0x159c5ea1.

Solidity: function setHistory(address _history) returns()

func (*AuthoritySession) SubmitClaim

func (_Authority *AuthoritySession) SubmitClaim(_claimData []byte) (*types.Transaction, error)

SubmitClaim is a paid mutator transaction binding the contract method 0xddfdfbb0.

Solidity: function submitClaim(bytes _claimData) returns()

func (*AuthoritySession) TransferOwnership

func (_Authority *AuthoritySession) 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 (*AuthoritySession) WithdrawERC20Tokens

func (_Authority *AuthoritySession) WithdrawERC20Tokens(_token common.Address, _recipient common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawERC20Tokens is a paid mutator transaction binding the contract method 0xbcdd1e13.

Solidity: function withdrawERC20Tokens(address _token, address _recipient, uint256 _amount) returns()

type AuthorityTransactor

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

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

func NewAuthorityTransactor

func NewAuthorityTransactor(address common.Address, transactor bind.ContractTransactor) (*AuthorityTransactor, error)

NewAuthorityTransactor creates a new write-only instance of Authority, bound to a specific deployed contract.

func (*AuthorityTransactor) Join

func (_Authority *AuthorityTransactor) Join(opts *bind.TransactOpts) (*types.Transaction, error)

Join is a paid mutator transaction binding the contract method 0xb688a363.

Solidity: function join() returns()

func (*AuthorityTransactor) MigrateHistoryToConsensus

func (_Authority *AuthorityTransactor) MigrateHistoryToConsensus(opts *bind.TransactOpts, _consensus common.Address) (*types.Transaction, error)

MigrateHistoryToConsensus is a paid mutator transaction binding the contract method 0x9368a3d3.

Solidity: function migrateHistoryToConsensus(address _consensus) returns()

func (*AuthorityTransactor) RenounceOwnership

func (_Authority *AuthorityTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*AuthorityTransactor) SetHistory

func (_Authority *AuthorityTransactor) SetHistory(opts *bind.TransactOpts, _history common.Address) (*types.Transaction, error)

SetHistory is a paid mutator transaction binding the contract method 0x159c5ea1.

Solidity: function setHistory(address _history) returns()

func (*AuthorityTransactor) SubmitClaim

func (_Authority *AuthorityTransactor) SubmitClaim(opts *bind.TransactOpts, _claimData []byte) (*types.Transaction, error)

SubmitClaim is a paid mutator transaction binding the contract method 0xddfdfbb0.

Solidity: function submitClaim(bytes _claimData) returns()

func (*AuthorityTransactor) TransferOwnership

func (_Authority *AuthorityTransactor) 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 (*AuthorityTransactor) WithdrawERC20Tokens

func (_Authority *AuthorityTransactor) WithdrawERC20Tokens(opts *bind.TransactOpts, _token common.Address, _recipient common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawERC20Tokens is a paid mutator transaction binding the contract method 0xbcdd1e13.

Solidity: function withdrawERC20Tokens(address _token, address _recipient, uint256 _amount) returns()

type AuthorityTransactorRaw

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

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

func (*AuthorityTransactorRaw) Transact

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

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

func (*AuthorityTransactorRaw) Transfer

func (_Authority *AuthorityTransactorRaw) 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 AuthorityTransactorSession

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

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

func (*AuthorityTransactorSession) Join

func (_Authority *AuthorityTransactorSession) Join() (*types.Transaction, error)

Join is a paid mutator transaction binding the contract method 0xb688a363.

Solidity: function join() returns()

func (*AuthorityTransactorSession) MigrateHistoryToConsensus

func (_Authority *AuthorityTransactorSession) MigrateHistoryToConsensus(_consensus common.Address) (*types.Transaction, error)

MigrateHistoryToConsensus is a paid mutator transaction binding the contract method 0x9368a3d3.

Solidity: function migrateHistoryToConsensus(address _consensus) returns()

func (*AuthorityTransactorSession) RenounceOwnership

func (_Authority *AuthorityTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*AuthorityTransactorSession) SetHistory

func (_Authority *AuthorityTransactorSession) SetHistory(_history common.Address) (*types.Transaction, error)

SetHistory is a paid mutator transaction binding the contract method 0x159c5ea1.

Solidity: function setHistory(address _history) returns()

func (*AuthorityTransactorSession) SubmitClaim

func (_Authority *AuthorityTransactorSession) SubmitClaim(_claimData []byte) (*types.Transaction, error)

SubmitClaim is a paid mutator transaction binding the contract method 0xddfdfbb0.

Solidity: function submitClaim(bytes _claimData) returns()

func (*AuthorityTransactorSession) TransferOwnership

func (_Authority *AuthorityTransactorSession) 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 (*AuthorityTransactorSession) WithdrawERC20Tokens

func (_Authority *AuthorityTransactorSession) WithdrawERC20Tokens(_token common.Address, _recipient common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawERC20Tokens is a paid mutator transaction binding the contract method 0xbcdd1e13.

Solidity: function withdrawERC20Tokens(address _token, address _recipient, uint256 _amount) returns()

type CartesiDApp

type CartesiDApp struct {
	CartesiDAppCaller     // Read-only binding to the contract
	CartesiDAppTransactor // Write-only binding to the contract
	CartesiDAppFilterer   // Log filterer for contract events
}

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

func NewCartesiDApp

func NewCartesiDApp(address common.Address, backend bind.ContractBackend) (*CartesiDApp, error)

NewCartesiDApp creates a new instance of CartesiDApp, bound to a specific deployed contract.

type CartesiDAppCaller

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

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

func NewCartesiDAppCaller

func NewCartesiDAppCaller(address common.Address, caller bind.ContractCaller) (*CartesiDAppCaller, error)

NewCartesiDAppCaller creates a new read-only instance of CartesiDApp, bound to a specific deployed contract.

func (*CartesiDAppCaller) GetConsensus

func (_CartesiDApp *CartesiDAppCaller) GetConsensus(opts *bind.CallOpts) (common.Address, error)

GetConsensus is a free data retrieval call binding the contract method 0x179e740b.

Solidity: function getConsensus() view returns(address)

func (*CartesiDAppCaller) GetTemplateHash

func (_CartesiDApp *CartesiDAppCaller) GetTemplateHash(opts *bind.CallOpts) ([32]byte, error)

GetTemplateHash is a free data retrieval call binding the contract method 0x61b12c66.

Solidity: function getTemplateHash() view returns(bytes32)

func (*CartesiDAppCaller) Owner

func (_CartesiDApp *CartesiDAppCaller) 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 (*CartesiDAppCaller) SupportsInterface

func (_CartesiDApp *CartesiDAppCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*CartesiDAppCaller) ValidateNotice

func (_CartesiDApp *CartesiDAppCaller) ValidateNotice(opts *bind.CallOpts, _notice []byte, _proof Proof) (bool, error)

ValidateNotice is a free data retrieval call binding the contract method 0x96487d46.

Solidity: function validateNotice(bytes _notice, ((uint64,uint64,bytes32,bytes32,bytes32,bytes32,bytes32[],bytes32[]),bytes) _proof) view returns(bool)

func (*CartesiDAppCaller) WasVoucherExecuted

func (_CartesiDApp *CartesiDAppCaller) WasVoucherExecuted(opts *bind.CallOpts, _inputIndex *big.Int, _outputIndexWithinInput *big.Int) (bool, error)

WasVoucherExecuted is a free data retrieval call binding the contract method 0x9d9b1145.

Solidity: function wasVoucherExecuted(uint256 _inputIndex, uint256 _outputIndexWithinInput) view returns(bool)

type CartesiDAppCallerRaw

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

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

func (*CartesiDAppCallerRaw) Call

func (_CartesiDApp *CartesiDAppCallerRaw) 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 CartesiDAppCallerSession

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

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

func (*CartesiDAppCallerSession) GetConsensus

func (_CartesiDApp *CartesiDAppCallerSession) GetConsensus() (common.Address, error)

GetConsensus is a free data retrieval call binding the contract method 0x179e740b.

Solidity: function getConsensus() view returns(address)

func (*CartesiDAppCallerSession) GetTemplateHash

func (_CartesiDApp *CartesiDAppCallerSession) GetTemplateHash() ([32]byte, error)

GetTemplateHash is a free data retrieval call binding the contract method 0x61b12c66.

Solidity: function getTemplateHash() view returns(bytes32)

func (*CartesiDAppCallerSession) Owner

func (_CartesiDApp *CartesiDAppCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*CartesiDAppCallerSession) SupportsInterface

func (_CartesiDApp *CartesiDAppCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*CartesiDAppCallerSession) ValidateNotice

func (_CartesiDApp *CartesiDAppCallerSession) ValidateNotice(_notice []byte, _proof Proof) (bool, error)

ValidateNotice is a free data retrieval call binding the contract method 0x96487d46.

Solidity: function validateNotice(bytes _notice, ((uint64,uint64,bytes32,bytes32,bytes32,bytes32,bytes32[],bytes32[]),bytes) _proof) view returns(bool)

func (*CartesiDAppCallerSession) WasVoucherExecuted

func (_CartesiDApp *CartesiDAppCallerSession) WasVoucherExecuted(_inputIndex *big.Int, _outputIndexWithinInput *big.Int) (bool, error)

WasVoucherExecuted is a free data retrieval call binding the contract method 0x9d9b1145.

Solidity: function wasVoucherExecuted(uint256 _inputIndex, uint256 _outputIndexWithinInput) view returns(bool)

type CartesiDAppFactory

type CartesiDAppFactory struct {
	CartesiDAppFactoryCaller     // Read-only binding to the contract
	CartesiDAppFactoryTransactor // Write-only binding to the contract
	CartesiDAppFactoryFilterer   // Log filterer for contract events
}

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

func NewCartesiDAppFactory

func NewCartesiDAppFactory(address common.Address, backend bind.ContractBackend) (*CartesiDAppFactory, error)

NewCartesiDAppFactory creates a new instance of CartesiDAppFactory, bound to a specific deployed contract.

type CartesiDAppFactoryApplicationCreated

type CartesiDAppFactoryApplicationCreated struct {
	Consensus    common.Address
	DappOwner    common.Address
	TemplateHash [32]byte
	Application  common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

CartesiDAppFactoryApplicationCreated represents a ApplicationCreated event raised by the CartesiDAppFactory contract.

type CartesiDAppFactoryApplicationCreatedIterator

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

CartesiDAppFactoryApplicationCreatedIterator is returned from FilterApplicationCreated and is used to iterate over the raw logs and unpacked data for ApplicationCreated events raised by the CartesiDAppFactory contract.

func (*CartesiDAppFactoryApplicationCreatedIterator) Close

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

func (*CartesiDAppFactoryApplicationCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CartesiDAppFactoryApplicationCreatedIterator) 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 CartesiDAppFactoryCaller

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

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

func NewCartesiDAppFactoryCaller

func NewCartesiDAppFactoryCaller(address common.Address, caller bind.ContractCaller) (*CartesiDAppFactoryCaller, error)

NewCartesiDAppFactoryCaller creates a new read-only instance of CartesiDAppFactory, bound to a specific deployed contract.

func (*CartesiDAppFactoryCaller) CalculateApplicationAddress

func (_CartesiDAppFactory *CartesiDAppFactoryCaller) CalculateApplicationAddress(opts *bind.CallOpts, _consensus common.Address, _dappOwner common.Address, _templateHash [32]byte, _salt [32]byte) (common.Address, error)

CalculateApplicationAddress is a free data retrieval call binding the contract method 0xbd4f1219.

Solidity: function calculateApplicationAddress(address _consensus, address _dappOwner, bytes32 _templateHash, bytes32 _salt) view returns(address)

type CartesiDAppFactoryCallerRaw

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

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

func (*CartesiDAppFactoryCallerRaw) Call

func (_CartesiDAppFactory *CartesiDAppFactoryCallerRaw) 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 CartesiDAppFactoryCallerSession

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

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

func (*CartesiDAppFactoryCallerSession) CalculateApplicationAddress

func (_CartesiDAppFactory *CartesiDAppFactoryCallerSession) CalculateApplicationAddress(_consensus common.Address, _dappOwner common.Address, _templateHash [32]byte, _salt [32]byte) (common.Address, error)

CalculateApplicationAddress is a free data retrieval call binding the contract method 0xbd4f1219.

Solidity: function calculateApplicationAddress(address _consensus, address _dappOwner, bytes32 _templateHash, bytes32 _salt) view returns(address)

type CartesiDAppFactoryFilterer

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

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

func NewCartesiDAppFactoryFilterer

func NewCartesiDAppFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*CartesiDAppFactoryFilterer, error)

NewCartesiDAppFactoryFilterer creates a new log filterer instance of CartesiDAppFactory, bound to a specific deployed contract.

func (*CartesiDAppFactoryFilterer) FilterApplicationCreated

func (_CartesiDAppFactory *CartesiDAppFactoryFilterer) FilterApplicationCreated(opts *bind.FilterOpts, consensus []common.Address) (*CartesiDAppFactoryApplicationCreatedIterator, error)

FilterApplicationCreated is a free log retrieval operation binding the contract event 0xe73165c2d277daf8713fd08b40845cb6bb7a20b2b543f3d35324a475660fcebd.

Solidity: event ApplicationCreated(address indexed consensus, address dappOwner, bytes32 templateHash, address application)

func (*CartesiDAppFactoryFilterer) ParseApplicationCreated

func (_CartesiDAppFactory *CartesiDAppFactoryFilterer) ParseApplicationCreated(log types.Log) (*CartesiDAppFactoryApplicationCreated, error)

ParseApplicationCreated is a log parse operation binding the contract event 0xe73165c2d277daf8713fd08b40845cb6bb7a20b2b543f3d35324a475660fcebd.

Solidity: event ApplicationCreated(address indexed consensus, address dappOwner, bytes32 templateHash, address application)

func (*CartesiDAppFactoryFilterer) WatchApplicationCreated

func (_CartesiDAppFactory *CartesiDAppFactoryFilterer) WatchApplicationCreated(opts *bind.WatchOpts, sink chan<- *CartesiDAppFactoryApplicationCreated, consensus []common.Address) (event.Subscription, error)

WatchApplicationCreated is a free log subscription operation binding the contract event 0xe73165c2d277daf8713fd08b40845cb6bb7a20b2b543f3d35324a475660fcebd.

Solidity: event ApplicationCreated(address indexed consensus, address dappOwner, bytes32 templateHash, address application)

type CartesiDAppFactoryRaw

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

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

func (*CartesiDAppFactoryRaw) Call

func (_CartesiDAppFactory *CartesiDAppFactoryRaw) 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 (*CartesiDAppFactoryRaw) Transact

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

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

func (*CartesiDAppFactoryRaw) Transfer

func (_CartesiDAppFactory *CartesiDAppFactoryRaw) 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 CartesiDAppFactorySession

type CartesiDAppFactorySession struct {
	Contract     *CartesiDAppFactory // 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
}

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

func (*CartesiDAppFactorySession) CalculateApplicationAddress

func (_CartesiDAppFactory *CartesiDAppFactorySession) CalculateApplicationAddress(_consensus common.Address, _dappOwner common.Address, _templateHash [32]byte, _salt [32]byte) (common.Address, error)

CalculateApplicationAddress is a free data retrieval call binding the contract method 0xbd4f1219.

Solidity: function calculateApplicationAddress(address _consensus, address _dappOwner, bytes32 _templateHash, bytes32 _salt) view returns(address)

func (*CartesiDAppFactorySession) NewApplication

func (_CartesiDAppFactory *CartesiDAppFactorySession) NewApplication(_consensus common.Address, _dappOwner common.Address, _templateHash [32]byte, _salt [32]byte) (*types.Transaction, error)

NewApplication is a paid mutator transaction binding the contract method 0x0e1a07f5.

Solidity: function newApplication(address _consensus, address _dappOwner, bytes32 _templateHash, bytes32 _salt) returns(address)

func (*CartesiDAppFactorySession) NewApplication0

func (_CartesiDAppFactory *CartesiDAppFactorySession) NewApplication0(_consensus common.Address, _dappOwner common.Address, _templateHash [32]byte) (*types.Transaction, error)

NewApplication0 is a paid mutator transaction binding the contract method 0x3648bfb5.

Solidity: function newApplication(address _consensus, address _dappOwner, bytes32 _templateHash) returns(address)

type CartesiDAppFactoryTransactor

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

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

func NewCartesiDAppFactoryTransactor

func NewCartesiDAppFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*CartesiDAppFactoryTransactor, error)

NewCartesiDAppFactoryTransactor creates a new write-only instance of CartesiDAppFactory, bound to a specific deployed contract.

func (*CartesiDAppFactoryTransactor) NewApplication

func (_CartesiDAppFactory *CartesiDAppFactoryTransactor) NewApplication(opts *bind.TransactOpts, _consensus common.Address, _dappOwner common.Address, _templateHash [32]byte, _salt [32]byte) (*types.Transaction, error)

NewApplication is a paid mutator transaction binding the contract method 0x0e1a07f5.

Solidity: function newApplication(address _consensus, address _dappOwner, bytes32 _templateHash, bytes32 _salt) returns(address)

func (*CartesiDAppFactoryTransactor) NewApplication0

func (_CartesiDAppFactory *CartesiDAppFactoryTransactor) NewApplication0(opts *bind.TransactOpts, _consensus common.Address, _dappOwner common.Address, _templateHash [32]byte) (*types.Transaction, error)

NewApplication0 is a paid mutator transaction binding the contract method 0x3648bfb5.

Solidity: function newApplication(address _consensus, address _dappOwner, bytes32 _templateHash) returns(address)

type CartesiDAppFactoryTransactorRaw

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

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

func (*CartesiDAppFactoryTransactorRaw) Transact

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

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

func (*CartesiDAppFactoryTransactorRaw) Transfer

func (_CartesiDAppFactory *CartesiDAppFactoryTransactorRaw) 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 CartesiDAppFactoryTransactorSession

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

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

func (*CartesiDAppFactoryTransactorSession) NewApplication

func (_CartesiDAppFactory *CartesiDAppFactoryTransactorSession) NewApplication(_consensus common.Address, _dappOwner common.Address, _templateHash [32]byte, _salt [32]byte) (*types.Transaction, error)

NewApplication is a paid mutator transaction binding the contract method 0x0e1a07f5.

Solidity: function newApplication(address _consensus, address _dappOwner, bytes32 _templateHash, bytes32 _salt) returns(address)

func (*CartesiDAppFactoryTransactorSession) NewApplication0

func (_CartesiDAppFactory *CartesiDAppFactoryTransactorSession) NewApplication0(_consensus common.Address, _dappOwner common.Address, _templateHash [32]byte) (*types.Transaction, error)

NewApplication0 is a paid mutator transaction binding the contract method 0x3648bfb5.

Solidity: function newApplication(address _consensus, address _dappOwner, bytes32 _templateHash) returns(address)

type CartesiDAppFilterer

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

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

func NewCartesiDAppFilterer

func NewCartesiDAppFilterer(address common.Address, filterer bind.ContractFilterer) (*CartesiDAppFilterer, error)

NewCartesiDAppFilterer creates a new log filterer instance of CartesiDApp, bound to a specific deployed contract.

func (*CartesiDAppFilterer) FilterNewConsensus

func (_CartesiDApp *CartesiDAppFilterer) FilterNewConsensus(opts *bind.FilterOpts) (*CartesiDAppNewConsensusIterator, error)

FilterNewConsensus is a free log retrieval operation binding the contract event 0x4991c6f37185659e276ff918a96f3e20e6c5abcd8c9aab450dc19c2f7ad35cb5.

Solidity: event NewConsensus(address newConsensus)

func (*CartesiDAppFilterer) FilterOwnershipTransferred

func (_CartesiDApp *CartesiDAppFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CartesiDAppOwnershipTransferredIterator, error)

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

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

func (*CartesiDAppFilterer) FilterVoucherExecuted

func (_CartesiDApp *CartesiDAppFilterer) FilterVoucherExecuted(opts *bind.FilterOpts) (*CartesiDAppVoucherExecutedIterator, error)

FilterVoucherExecuted is a free log retrieval operation binding the contract event 0x0eb7ee080f865f1cadc4f54daf58cc3b8879e888832867d13351edcec0fbdc54.

Solidity: event VoucherExecuted(uint256 voucherId)

func (*CartesiDAppFilterer) ParseNewConsensus

func (_CartesiDApp *CartesiDAppFilterer) ParseNewConsensus(log types.Log) (*CartesiDAppNewConsensus, error)

ParseNewConsensus is a log parse operation binding the contract event 0x4991c6f37185659e276ff918a96f3e20e6c5abcd8c9aab450dc19c2f7ad35cb5.

Solidity: event NewConsensus(address newConsensus)

func (*CartesiDAppFilterer) ParseOwnershipTransferred

func (_CartesiDApp *CartesiDAppFilterer) ParseOwnershipTransferred(log types.Log) (*CartesiDAppOwnershipTransferred, error)

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

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

func (*CartesiDAppFilterer) ParseVoucherExecuted

func (_CartesiDApp *CartesiDAppFilterer) ParseVoucherExecuted(log types.Log) (*CartesiDAppVoucherExecuted, error)

ParseVoucherExecuted is a log parse operation binding the contract event 0x0eb7ee080f865f1cadc4f54daf58cc3b8879e888832867d13351edcec0fbdc54.

Solidity: event VoucherExecuted(uint256 voucherId)

func (*CartesiDAppFilterer) WatchNewConsensus

func (_CartesiDApp *CartesiDAppFilterer) WatchNewConsensus(opts *bind.WatchOpts, sink chan<- *CartesiDAppNewConsensus) (event.Subscription, error)

WatchNewConsensus is a free log subscription operation binding the contract event 0x4991c6f37185659e276ff918a96f3e20e6c5abcd8c9aab450dc19c2f7ad35cb5.

Solidity: event NewConsensus(address newConsensus)

func (*CartesiDAppFilterer) WatchOwnershipTransferred

func (_CartesiDApp *CartesiDAppFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CartesiDAppOwnershipTransferred, 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 (*CartesiDAppFilterer) WatchVoucherExecuted

func (_CartesiDApp *CartesiDAppFilterer) WatchVoucherExecuted(opts *bind.WatchOpts, sink chan<- *CartesiDAppVoucherExecuted) (event.Subscription, error)

WatchVoucherExecuted is a free log subscription operation binding the contract event 0x0eb7ee080f865f1cadc4f54daf58cc3b8879e888832867d13351edcec0fbdc54.

Solidity: event VoucherExecuted(uint256 voucherId)

type CartesiDAppNewConsensus

type CartesiDAppNewConsensus struct {
	NewConsensus common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

CartesiDAppNewConsensus represents a NewConsensus event raised by the CartesiDApp contract.

type CartesiDAppNewConsensusIterator

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

CartesiDAppNewConsensusIterator is returned from FilterNewConsensus and is used to iterate over the raw logs and unpacked data for NewConsensus events raised by the CartesiDApp contract.

func (*CartesiDAppNewConsensusIterator) Close

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

func (*CartesiDAppNewConsensusIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CartesiDAppNewConsensusIterator) 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 CartesiDAppOwnershipTransferred

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

CartesiDAppOwnershipTransferred represents a OwnershipTransferred event raised by the CartesiDApp contract.

type CartesiDAppOwnershipTransferredIterator

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

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

func (*CartesiDAppOwnershipTransferredIterator) Close

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

func (*CartesiDAppOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CartesiDAppOwnershipTransferredIterator) 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 CartesiDAppRaw

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

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

func (*CartesiDAppRaw) Call

func (_CartesiDApp *CartesiDAppRaw) 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 (*CartesiDAppRaw) Transact

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

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

func (*CartesiDAppRaw) Transfer

func (_CartesiDApp *CartesiDAppRaw) 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 CartesiDAppSession

type CartesiDAppSession struct {
	Contract     *CartesiDApp      // 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
}

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

func (*CartesiDAppSession) ExecuteVoucher

func (_CartesiDApp *CartesiDAppSession) ExecuteVoucher(_destination common.Address, _payload []byte, _proof Proof) (*types.Transaction, error)

ExecuteVoucher is a paid mutator transaction binding the contract method 0x1250482f.

Solidity: function executeVoucher(address _destination, bytes _payload, ((uint64,uint64,bytes32,bytes32,bytes32,bytes32,bytes32[],bytes32[]),bytes) _proof) returns(bool)

func (*CartesiDAppSession) GetConsensus

func (_CartesiDApp *CartesiDAppSession) GetConsensus() (common.Address, error)

GetConsensus is a free data retrieval call binding the contract method 0x179e740b.

Solidity: function getConsensus() view returns(address)

func (*CartesiDAppSession) GetTemplateHash

func (_CartesiDApp *CartesiDAppSession) GetTemplateHash() ([32]byte, error)

GetTemplateHash is a free data retrieval call binding the contract method 0x61b12c66.

Solidity: function getTemplateHash() view returns(bytes32)

func (*CartesiDAppSession) MigrateToConsensus

func (_CartesiDApp *CartesiDAppSession) MigrateToConsensus(_newConsensus common.Address) (*types.Transaction, error)

MigrateToConsensus is a paid mutator transaction binding the contract method 0xfc411683.

Solidity: function migrateToConsensus(address _newConsensus) returns()

func (*CartesiDAppSession) OnERC1155BatchReceived

func (_CartesiDApp *CartesiDAppSession) OnERC1155BatchReceived(arg0 common.Address, arg1 common.Address, arg2 []*big.Int, arg3 []*big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address , uint256[] , uint256[] , bytes ) returns(bytes4)

func (*CartesiDAppSession) OnERC1155Received

func (_CartesiDApp *CartesiDAppSession) OnERC1155Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address , address , uint256 , uint256 , bytes ) returns(bytes4)

func (*CartesiDAppSession) OnERC721Received

func (_CartesiDApp *CartesiDAppSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)

OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.

Solidity: function onERC721Received(address , address , uint256 , bytes ) returns(bytes4)

func (*CartesiDAppSession) Owner

func (_CartesiDApp *CartesiDAppSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*CartesiDAppSession) Receive

func (_CartesiDApp *CartesiDAppSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*CartesiDAppSession) RenounceOwnership

func (_CartesiDApp *CartesiDAppSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*CartesiDAppSession) SupportsInterface

func (_CartesiDApp *CartesiDAppSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*CartesiDAppSession) TransferOwnership

func (_CartesiDApp *CartesiDAppSession) 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 (*CartesiDAppSession) ValidateNotice

func (_CartesiDApp *CartesiDAppSession) ValidateNotice(_notice []byte, _proof Proof) (bool, error)

ValidateNotice is a free data retrieval call binding the contract method 0x96487d46.

Solidity: function validateNotice(bytes _notice, ((uint64,uint64,bytes32,bytes32,bytes32,bytes32,bytes32[],bytes32[]),bytes) _proof) view returns(bool)

func (*CartesiDAppSession) WasVoucherExecuted

func (_CartesiDApp *CartesiDAppSession) WasVoucherExecuted(_inputIndex *big.Int, _outputIndexWithinInput *big.Int) (bool, error)

WasVoucherExecuted is a free data retrieval call binding the contract method 0x9d9b1145.

Solidity: function wasVoucherExecuted(uint256 _inputIndex, uint256 _outputIndexWithinInput) view returns(bool)

func (*CartesiDAppSession) WithdrawEther

func (_CartesiDApp *CartesiDAppSession) WithdrawEther(_receiver common.Address, _value *big.Int) (*types.Transaction, error)

WithdrawEther is a paid mutator transaction binding the contract method 0x522f6815.

Solidity: function withdrawEther(address _receiver, uint256 _value) returns()

type CartesiDAppTransactor

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

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

func NewCartesiDAppTransactor

func NewCartesiDAppTransactor(address common.Address, transactor bind.ContractTransactor) (*CartesiDAppTransactor, error)

NewCartesiDAppTransactor creates a new write-only instance of CartesiDApp, bound to a specific deployed contract.

func (*CartesiDAppTransactor) ExecuteVoucher

func (_CartesiDApp *CartesiDAppTransactor) ExecuteVoucher(opts *bind.TransactOpts, _destination common.Address, _payload []byte, _proof Proof) (*types.Transaction, error)

ExecuteVoucher is a paid mutator transaction binding the contract method 0x1250482f.

Solidity: function executeVoucher(address _destination, bytes _payload, ((uint64,uint64,bytes32,bytes32,bytes32,bytes32,bytes32[],bytes32[]),bytes) _proof) returns(bool)

func (*CartesiDAppTransactor) MigrateToConsensus

func (_CartesiDApp *CartesiDAppTransactor) MigrateToConsensus(opts *bind.TransactOpts, _newConsensus common.Address) (*types.Transaction, error)

MigrateToConsensus is a paid mutator transaction binding the contract method 0xfc411683.

Solidity: function migrateToConsensus(address _newConsensus) returns()

func (*CartesiDAppTransactor) OnERC1155BatchReceived

func (_CartesiDApp *CartesiDAppTransactor) OnERC1155BatchReceived(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 []*big.Int, arg3 []*big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address , uint256[] , uint256[] , bytes ) returns(bytes4)

func (*CartesiDAppTransactor) OnERC1155Received

func (_CartesiDApp *CartesiDAppTransactor) OnERC1155Received(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address , address , uint256 , uint256 , bytes ) returns(bytes4)

func (*CartesiDAppTransactor) OnERC721Received

func (_CartesiDApp *CartesiDAppTransactor) OnERC721Received(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)

OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.

Solidity: function onERC721Received(address , address , uint256 , bytes ) returns(bytes4)

func (*CartesiDAppTransactor) Receive

func (_CartesiDApp *CartesiDAppTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*CartesiDAppTransactor) RenounceOwnership

func (_CartesiDApp *CartesiDAppTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*CartesiDAppTransactor) TransferOwnership

func (_CartesiDApp *CartesiDAppTransactor) 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 (*CartesiDAppTransactor) WithdrawEther

func (_CartesiDApp *CartesiDAppTransactor) WithdrawEther(opts *bind.TransactOpts, _receiver common.Address, _value *big.Int) (*types.Transaction, error)

WithdrawEther is a paid mutator transaction binding the contract method 0x522f6815.

Solidity: function withdrawEther(address _receiver, uint256 _value) returns()

type CartesiDAppTransactorRaw

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

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

func (*CartesiDAppTransactorRaw) Transact

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

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

func (*CartesiDAppTransactorRaw) Transfer

func (_CartesiDApp *CartesiDAppTransactorRaw) 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 CartesiDAppTransactorSession

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

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

func (*CartesiDAppTransactorSession) ExecuteVoucher

func (_CartesiDApp *CartesiDAppTransactorSession) ExecuteVoucher(_destination common.Address, _payload []byte, _proof Proof) (*types.Transaction, error)

ExecuteVoucher is a paid mutator transaction binding the contract method 0x1250482f.

Solidity: function executeVoucher(address _destination, bytes _payload, ((uint64,uint64,bytes32,bytes32,bytes32,bytes32,bytes32[],bytes32[]),bytes) _proof) returns(bool)

func (*CartesiDAppTransactorSession) MigrateToConsensus

func (_CartesiDApp *CartesiDAppTransactorSession) MigrateToConsensus(_newConsensus common.Address) (*types.Transaction, error)

MigrateToConsensus is a paid mutator transaction binding the contract method 0xfc411683.

Solidity: function migrateToConsensus(address _newConsensus) returns()

func (*CartesiDAppTransactorSession) OnERC1155BatchReceived

func (_CartesiDApp *CartesiDAppTransactorSession) OnERC1155BatchReceived(arg0 common.Address, arg1 common.Address, arg2 []*big.Int, arg3 []*big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address , uint256[] , uint256[] , bytes ) returns(bytes4)

func (*CartesiDAppTransactorSession) OnERC1155Received

func (_CartesiDApp *CartesiDAppTransactorSession) OnERC1155Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address , address , uint256 , uint256 , bytes ) returns(bytes4)

func (*CartesiDAppTransactorSession) OnERC721Received

func (_CartesiDApp *CartesiDAppTransactorSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)

OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.

Solidity: function onERC721Received(address , address , uint256 , bytes ) returns(bytes4)

func (*CartesiDAppTransactorSession) Receive

func (_CartesiDApp *CartesiDAppTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*CartesiDAppTransactorSession) RenounceOwnership

func (_CartesiDApp *CartesiDAppTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*CartesiDAppTransactorSession) TransferOwnership

func (_CartesiDApp *CartesiDAppTransactorSession) 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 (*CartesiDAppTransactorSession) WithdrawEther

func (_CartesiDApp *CartesiDAppTransactorSession) WithdrawEther(_receiver common.Address, _value *big.Int) (*types.Transaction, error)

WithdrawEther is a paid mutator transaction binding the contract method 0x522f6815.

Solidity: function withdrawEther(address _receiver, uint256 _value) returns()

type CartesiDAppVoucherExecuted

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

CartesiDAppVoucherExecuted represents a VoucherExecuted event raised by the CartesiDApp contract.

type CartesiDAppVoucherExecutedIterator

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

CartesiDAppVoucherExecutedIterator is returned from FilterVoucherExecuted and is used to iterate over the raw logs and unpacked data for VoucherExecuted events raised by the CartesiDApp contract.

func (*CartesiDAppVoucherExecutedIterator) Close

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

func (*CartesiDAppVoucherExecutedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CartesiDAppVoucherExecutedIterator) 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 History

type History struct {
	HistoryCaller     // Read-only binding to the contract
	HistoryTransactor // Write-only binding to the contract
	HistoryFilterer   // Log filterer for contract events
}

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

func NewHistory

func NewHistory(address common.Address, backend bind.ContractBackend) (*History, error)

NewHistory creates a new instance of History, bound to a specific deployed contract.

type HistoryCaller

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

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

func NewHistoryCaller

func NewHistoryCaller(address common.Address, caller bind.ContractCaller) (*HistoryCaller, error)

NewHistoryCaller creates a new read-only instance of History, bound to a specific deployed contract.

func (*HistoryCaller) GetClaim

func (_History *HistoryCaller) GetClaim(opts *bind.CallOpts, _dapp common.Address, _proofContext []byte) ([32]byte, *big.Int, *big.Int, error)

GetClaim is a free data retrieval call binding the contract method 0xd79a8240.

Solidity: function getClaim(address _dapp, bytes _proofContext) view returns(bytes32, uint256, uint256)

func (*HistoryCaller) Owner

func (_History *HistoryCaller) 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)

type HistoryCallerRaw

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

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

func (*HistoryCallerRaw) Call

func (_History *HistoryCallerRaw) 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 HistoryCallerSession

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

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

func (*HistoryCallerSession) GetClaim

func (_History *HistoryCallerSession) GetClaim(_dapp common.Address, _proofContext []byte) ([32]byte, *big.Int, *big.Int, error)

GetClaim is a free data retrieval call binding the contract method 0xd79a8240.

Solidity: function getClaim(address _dapp, bytes _proofContext) view returns(bytes32, uint256, uint256)

func (*HistoryCallerSession) Owner

func (_History *HistoryCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

type HistoryClaim

type HistoryClaim struct {
	EpochHash  [32]byte
	FirstIndex *big.Int
	LastIndex  *big.Int
}

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

type HistoryFilterer

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

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

func NewHistoryFilterer

func NewHistoryFilterer(address common.Address, filterer bind.ContractFilterer) (*HistoryFilterer, error)

NewHistoryFilterer creates a new log filterer instance of History, bound to a specific deployed contract.

func (*HistoryFilterer) FilterNewClaimToHistory

func (_History *HistoryFilterer) FilterNewClaimToHistory(opts *bind.FilterOpts, dapp []common.Address) (*HistoryNewClaimToHistoryIterator, error)

FilterNewClaimToHistory is a free log retrieval operation binding the contract event 0xb71880d7a0c514d48c0296b2721b0a4f9641a45117960f2ca86b5b7873c4ab2f.

Solidity: event NewClaimToHistory(address indexed dapp, (bytes32,uint128,uint128) claim)

func (*HistoryFilterer) FilterOwnershipTransferred

func (_History *HistoryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*HistoryOwnershipTransferredIterator, error)

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

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

func (*HistoryFilterer) ParseNewClaimToHistory

func (_History *HistoryFilterer) ParseNewClaimToHistory(log types.Log) (*HistoryNewClaimToHistory, error)

ParseNewClaimToHistory is a log parse operation binding the contract event 0xb71880d7a0c514d48c0296b2721b0a4f9641a45117960f2ca86b5b7873c4ab2f.

Solidity: event NewClaimToHistory(address indexed dapp, (bytes32,uint128,uint128) claim)

func (*HistoryFilterer) ParseOwnershipTransferred

func (_History *HistoryFilterer) ParseOwnershipTransferred(log types.Log) (*HistoryOwnershipTransferred, error)

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

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

func (*HistoryFilterer) WatchNewClaimToHistory

func (_History *HistoryFilterer) WatchNewClaimToHistory(opts *bind.WatchOpts, sink chan<- *HistoryNewClaimToHistory, dapp []common.Address) (event.Subscription, error)

WatchNewClaimToHistory is a free log subscription operation binding the contract event 0xb71880d7a0c514d48c0296b2721b0a4f9641a45117960f2ca86b5b7873c4ab2f.

Solidity: event NewClaimToHistory(address indexed dapp, (bytes32,uint128,uint128) claim)

func (*HistoryFilterer) WatchOwnershipTransferred

func (_History *HistoryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *HistoryOwnershipTransferred, 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)

type HistoryNewClaimToHistory

type HistoryNewClaimToHistory struct {
	Dapp  common.Address
	Claim HistoryClaim
	Raw   types.Log // Blockchain specific contextual infos
}

HistoryNewClaimToHistory represents a NewClaimToHistory event raised by the History contract.

type HistoryNewClaimToHistoryIterator

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

HistoryNewClaimToHistoryIterator is returned from FilterNewClaimToHistory and is used to iterate over the raw logs and unpacked data for NewClaimToHistory events raised by the History contract.

func (*HistoryNewClaimToHistoryIterator) Close

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

func (*HistoryNewClaimToHistoryIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HistoryNewClaimToHistoryIterator) 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 HistoryOwnershipTransferred

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

HistoryOwnershipTransferred represents a OwnershipTransferred event raised by the History contract.

type HistoryOwnershipTransferredIterator

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

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

func (*HistoryOwnershipTransferredIterator) Close

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

func (*HistoryOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HistoryOwnershipTransferredIterator) 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 HistoryRaw

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

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

func (*HistoryRaw) Call

func (_History *HistoryRaw) 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 (*HistoryRaw) Transact

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

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

func (*HistoryRaw) Transfer

func (_History *HistoryRaw) 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 HistorySession

type HistorySession struct {
	Contract     *History          // 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
}

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

func (*HistorySession) GetClaim

func (_History *HistorySession) GetClaim(_dapp common.Address, _proofContext []byte) ([32]byte, *big.Int, *big.Int, error)

GetClaim is a free data retrieval call binding the contract method 0xd79a8240.

Solidity: function getClaim(address _dapp, bytes _proofContext) view returns(bytes32, uint256, uint256)

func (*HistorySession) MigrateToConsensus

func (_History *HistorySession) MigrateToConsensus(_consensus common.Address) (*types.Transaction, error)

MigrateToConsensus is a paid mutator transaction binding the contract method 0xfc411683.

Solidity: function migrateToConsensus(address _consensus) returns()

func (*HistorySession) Owner

func (_History *HistorySession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*HistorySession) RenounceOwnership

func (_History *HistorySession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*HistorySession) SubmitClaim

func (_History *HistorySession) SubmitClaim(_claimData []byte) (*types.Transaction, error)

SubmitClaim is a paid mutator transaction binding the contract method 0xddfdfbb0.

Solidity: function submitClaim(bytes _claimData) returns()

func (*HistorySession) TransferOwnership

func (_History *HistorySession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type HistoryTransactor

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

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

func NewHistoryTransactor

func NewHistoryTransactor(address common.Address, transactor bind.ContractTransactor) (*HistoryTransactor, error)

NewHistoryTransactor creates a new write-only instance of History, bound to a specific deployed contract.

func (*HistoryTransactor) MigrateToConsensus

func (_History *HistoryTransactor) MigrateToConsensus(opts *bind.TransactOpts, _consensus common.Address) (*types.Transaction, error)

MigrateToConsensus is a paid mutator transaction binding the contract method 0xfc411683.

Solidity: function migrateToConsensus(address _consensus) returns()

func (*HistoryTransactor) RenounceOwnership

func (_History *HistoryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*HistoryTransactor) SubmitClaim

func (_History *HistoryTransactor) SubmitClaim(opts *bind.TransactOpts, _claimData []byte) (*types.Transaction, error)

SubmitClaim is a paid mutator transaction binding the contract method 0xddfdfbb0.

Solidity: function submitClaim(bytes _claimData) returns()

func (*HistoryTransactor) TransferOwnership

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

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

Solidity: function transferOwnership(address newOwner) returns()

type HistoryTransactorRaw

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

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

func (*HistoryTransactorRaw) Transact

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

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

func (*HistoryTransactorRaw) Transfer

func (_History *HistoryTransactorRaw) 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 HistoryTransactorSession

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

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

func (*HistoryTransactorSession) MigrateToConsensus

func (_History *HistoryTransactorSession) MigrateToConsensus(_consensus common.Address) (*types.Transaction, error)

MigrateToConsensus is a paid mutator transaction binding the contract method 0xfc411683.

Solidity: function migrateToConsensus(address _consensus) returns()

func (*HistoryTransactorSession) RenounceOwnership

func (_History *HistoryTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*HistoryTransactorSession) SubmitClaim

func (_History *HistoryTransactorSession) SubmitClaim(_claimData []byte) (*types.Transaction, error)

SubmitClaim is a paid mutator transaction binding the contract method 0xddfdfbb0.

Solidity: function submitClaim(bytes _claimData) returns()

func (*HistoryTransactorSession) TransferOwnership

func (_History *HistoryTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type InputBox

type InputBox struct {
	InputBoxCaller     // Read-only binding to the contract
	InputBoxTransactor // Write-only binding to the contract
	InputBoxFilterer   // Log filterer for contract events
}

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

func NewInputBox

func NewInputBox(address common.Address, backend bind.ContractBackend) (*InputBox, error)

NewInputBox creates a new instance of InputBox, bound to a specific deployed contract.

type InputBoxCaller

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

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

func NewInputBoxCaller

func NewInputBoxCaller(address common.Address, caller bind.ContractCaller) (*InputBoxCaller, error)

NewInputBoxCaller creates a new read-only instance of InputBox, bound to a specific deployed contract.

func (*InputBoxCaller) GetInputHash

func (_InputBox *InputBoxCaller) GetInputHash(opts *bind.CallOpts, _dapp common.Address, _index *big.Int) ([32]byte, error)

GetInputHash is a free data retrieval call binding the contract method 0x677087c9.

Solidity: function getInputHash(address _dapp, uint256 _index) view returns(bytes32)

func (*InputBoxCaller) GetNumberOfInputs

func (_InputBox *InputBoxCaller) GetNumberOfInputs(opts *bind.CallOpts, _dapp common.Address) (*big.Int, error)

GetNumberOfInputs is a free data retrieval call binding the contract method 0x61a93c87.

Solidity: function getNumberOfInputs(address _dapp) view returns(uint256)

type InputBoxCallerRaw

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

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

func (*InputBoxCallerRaw) Call

func (_InputBox *InputBoxCallerRaw) 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 InputBoxCallerSession

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

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

func (*InputBoxCallerSession) GetInputHash

func (_InputBox *InputBoxCallerSession) GetInputHash(_dapp common.Address, _index *big.Int) ([32]byte, error)

GetInputHash is a free data retrieval call binding the contract method 0x677087c9.

Solidity: function getInputHash(address _dapp, uint256 _index) view returns(bytes32)

func (*InputBoxCallerSession) GetNumberOfInputs

func (_InputBox *InputBoxCallerSession) GetNumberOfInputs(_dapp common.Address) (*big.Int, error)

GetNumberOfInputs is a free data retrieval call binding the contract method 0x61a93c87.

Solidity: function getNumberOfInputs(address _dapp) view returns(uint256)

type InputBoxFilterer

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

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

func NewInputBoxFilterer

func NewInputBoxFilterer(address common.Address, filterer bind.ContractFilterer) (*InputBoxFilterer, error)

NewInputBoxFilterer creates a new log filterer instance of InputBox, bound to a specific deployed contract.

func (*InputBoxFilterer) FilterInputAdded

func (_InputBox *InputBoxFilterer) FilterInputAdded(opts *bind.FilterOpts, dapp []common.Address, inputIndex []*big.Int) (*InputBoxInputAddedIterator, error)

FilterInputAdded is a free log retrieval operation binding the contract event 0x6aaa400068bf4ca337265e2a1e1e841f66b8597fd5b452fdc52a44bed28a0784.

Solidity: event InputAdded(address indexed dapp, uint256 indexed inputIndex, address sender, bytes input)

func (*InputBoxFilterer) ParseInputAdded

func (_InputBox *InputBoxFilterer) ParseInputAdded(log types.Log) (*InputBoxInputAdded, error)

ParseInputAdded is a log parse operation binding the contract event 0x6aaa400068bf4ca337265e2a1e1e841f66b8597fd5b452fdc52a44bed28a0784.

Solidity: event InputAdded(address indexed dapp, uint256 indexed inputIndex, address sender, bytes input)

func (*InputBoxFilterer) WatchInputAdded

func (_InputBox *InputBoxFilterer) WatchInputAdded(opts *bind.WatchOpts, sink chan<- *InputBoxInputAdded, dapp []common.Address, inputIndex []*big.Int) (event.Subscription, error)

WatchInputAdded is a free log subscription operation binding the contract event 0x6aaa400068bf4ca337265e2a1e1e841f66b8597fd5b452fdc52a44bed28a0784.

Solidity: event InputAdded(address indexed dapp, uint256 indexed inputIndex, address sender, bytes input)

type InputBoxInputAdded

type InputBoxInputAdded struct {
	Dapp       common.Address
	InputIndex *big.Int
	Sender     common.Address
	Input      []byte
	Raw        types.Log // Blockchain specific contextual infos
}

InputBoxInputAdded represents a InputAdded event raised by the InputBox contract.

type InputBoxInputAddedIterator

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

InputBoxInputAddedIterator is returned from FilterInputAdded and is used to iterate over the raw logs and unpacked data for InputAdded events raised by the InputBox contract.

func (*InputBoxInputAddedIterator) Close

func (it *InputBoxInputAddedIterator) Close() error

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

func (*InputBoxInputAddedIterator) Error

func (it *InputBoxInputAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*InputBoxInputAddedIterator) Next

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

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

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

func (*InputBoxRaw) Call

func (_InputBox *InputBoxRaw) 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 (*InputBoxRaw) Transact

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

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

func (*InputBoxRaw) Transfer

func (_InputBox *InputBoxRaw) 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 InputBoxSession

type InputBoxSession struct {
	Contract     *InputBox         // 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
}

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

func (*InputBoxSession) AddInput

func (_InputBox *InputBoxSession) AddInput(_dapp common.Address, _input []byte) (*types.Transaction, error)

AddInput is a paid mutator transaction binding the contract method 0x1789cd63.

Solidity: function addInput(address _dapp, bytes _input) returns(bytes32)

func (*InputBoxSession) GetInputHash

func (_InputBox *InputBoxSession) GetInputHash(_dapp common.Address, _index *big.Int) ([32]byte, error)

GetInputHash is a free data retrieval call binding the contract method 0x677087c9.

Solidity: function getInputHash(address _dapp, uint256 _index) view returns(bytes32)

func (*InputBoxSession) GetNumberOfInputs

func (_InputBox *InputBoxSession) GetNumberOfInputs(_dapp common.Address) (*big.Int, error)

GetNumberOfInputs is a free data retrieval call binding the contract method 0x61a93c87.

Solidity: function getNumberOfInputs(address _dapp) view returns(uint256)

type InputBoxTransactor

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

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

func NewInputBoxTransactor

func NewInputBoxTransactor(address common.Address, transactor bind.ContractTransactor) (*InputBoxTransactor, error)

NewInputBoxTransactor creates a new write-only instance of InputBox, bound to a specific deployed contract.

func (*InputBoxTransactor) AddInput

func (_InputBox *InputBoxTransactor) AddInput(opts *bind.TransactOpts, _dapp common.Address, _input []byte) (*types.Transaction, error)

AddInput is a paid mutator transaction binding the contract method 0x1789cd63.

Solidity: function addInput(address _dapp, bytes _input) returns(bytes32)

type InputBoxTransactorRaw

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

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

func (*InputBoxTransactorRaw) Transact

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

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

func (*InputBoxTransactorRaw) Transfer

func (_InputBox *InputBoxTransactorRaw) 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 InputBoxTransactorSession

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

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

func (*InputBoxTransactorSession) AddInput

func (_InputBox *InputBoxTransactorSession) AddInput(_dapp common.Address, _input []byte) (*types.Transaction, error)

AddInput is a paid mutator transaction binding the contract method 0x1789cd63.

Solidity: function addInput(address _dapp, bytes _input) returns(bytes32)

type OutputValidityProof

type OutputValidityProof struct {
	InputIndexWithinEpoch            uint64
	OutputIndexWithinInput           uint64
	OutputHashesRootHash             [32]byte
	VouchersEpochRootHash            [32]byte
	NoticesEpochRootHash             [32]byte
	MachineStateHash                 [32]byte
	OutputHashInOutputHashesSiblings [][32]byte
	OutputHashesInEpochSiblings      [][32]byte
}

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

type Proof

type Proof struct {
	Validity OutputValidityProof
	Context  []byte
}

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

Directories

Path Synopsis
This binary generates the Go bindings for the Cartesi Rollups contracts.
This binary generates the Go bindings for the Cartesi Rollups contracts.

Jump to

Keyboard shortcuts

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