consensus_app

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConsensusAppABI = ConsensusAppMetaData.ABI

ConsensusAppABI is the input ABI used to generate the binding from. Deprecated: Use ConsensusAppMetaData.ABI instead.

View Source
var ConsensusAppBin = ConsensusAppMetaData.Bin

ConsensusAppBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ConsensusAppMetaData.Bin instead.

View Source
var ConsensusAppMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"address[]\",\"name\":\"participants\",\"type\":\"address[]\"},{\"internalType\":\"uint64\",\"name\":\"channelNonce\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"appDefinition\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"challengeDuration\",\"type\":\"uint48\"}],\"internalType\":\"structINitroTypes.FixedPart\",\"name\":\"fixedPart\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"appData\",\"type\":\"bytes\"},{\"internalType\":\"uint48\",\"name\":\"turnNum\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"internalType\":\"structINitroTypes.VariablePart\",\"name\":\"variablePart\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"signedBy\",\"type\":\"uint256\"}],\"internalType\":\"structINitroTypes.RecoveredVariablePart[]\",\"name\":\"proof\",\"type\":\"tuple[]\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"appData\",\"type\":\"bytes\"},{\"internalType\":\"uint48\",\"name\":\"turnNum\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"internalType\":\"structINitroTypes.VariablePart\",\"name\":\"variablePart\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"signedBy\",\"type\":\"uint256\"}],\"internalType\":\"structINitroTypes.RecoveredVariablePart\",\"name\":\"candidate\",\"type\":\"tuple\"}],\"name\":\"stateIsSupported\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b50610921806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80639936d81214610030575b600080fd5b61004361003e36600461017c565b61005a565b604051610051929190610243565b60405180910390f35b6000606061008261006a876103bf565b6100748688610823565b61007d86610897565b61009f565b505060408051602081019091526000815260019094509492505050565b8151156100e05760405162461bcd60e51b815260206004820152600a60248201526907c70726f6f667c213d360b41b60448201526064015b60405180910390fd5b82515160208201516100f190610133565b60ff161461012e5760405162461bcd60e51b815260206004820152600a60248201526921756e616e696d6f757360b01b60448201526064016100d7565b505050565b6000805b821561015e576101486001846108b9565b9092169180610156816108cc565b915050610137565b92915050565b60006040828403121561017657600080fd5b50919050565b6000806000806060858703121561019257600080fd5b843567ffffffffffffffff808211156101aa57600080fd5b90860190608082890312156101be57600080fd5b909450602086013590808211156101d457600080fd5b818701915087601f8301126101e857600080fd5b8135818111156101f757600080fd5b8860208260051b850101111561020c57600080fd5b60208301955080945050604087013591508082111561022a57600080fd5b5061023787828801610164565b91505092959194509250565b821515815260006020604081840152835180604085015260005b818110156102795785810183015185820160600152820161025d565b506000606082860101526060601f19601f830116850101925050509392505050565b634e487b7160e01b600052604160045260246000fd5b6040516080810167ffffffffffffffff811182821017156102d4576102d461029b565b60405290565b6040805190810167ffffffffffffffff811182821017156102d4576102d461029b565b6040516060810167ffffffffffffffff811182821017156102d4576102d461029b565b604051601f8201601f1916810167ffffffffffffffff811182821017156103495761034961029b565b604052919050565b600067ffffffffffffffff82111561036b5761036b61029b565b5060051b60200190565b80356001600160a01b038116811461038c57600080fd5b919050565b803567ffffffffffffffff8116811461038c57600080fd5b803565ffffffffffff8116811461038c57600080fd5b6000608082360312156103d157600080fd5b6103d96102b1565b823567ffffffffffffffff8111156103f057600080fd5b830136601f82011261040157600080fd5b8035602061041661041183610351565b610320565b82815260059290921b8301810191818101903684111561043557600080fd5b938201935b8385101561045a5761044b85610375565b8252938201939082019061043a565b855250610468868201610391565b8185015250505061047b60408401610375565b604082015261048c606084016103a9565b606082015292915050565b600082601f8301126104a857600080fd5b813567ffffffffffffffff8111156104c2576104c261029b565b6104d5601f8201601f1916602001610320565b8181528460208386010111156104ea57600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261051857600080fd5b8135602061052861041183610351565b82815260059290921b8401810191818101908684111561054757600080fd5b8286015b848110156105f057803567ffffffffffffffff8082111561056c5760008081fd5b908801906080828b03601f19018113156105865760008081fd5b61058e6102b1565b8784013581526040808501358983015260608086013560ff811681146105b45760008081fd5b838301529285013592848411156105cd57600091508182fd5b6105db8e8b86890101610497565b9083015250865250505091830191830161054b565b509695505050505050565b8035801515811461038c57600080fd5b60006040828403121561061d57600080fd5b6106256102da565b905067ffffffffffffffff808335111561063e57600080fd5b823583016080818603121561065257600080fd5b61065a6102b1565b828235111561066857600080fd5b85601f83358401011261067a57600080fd5b61068a6104118335840135610351565b8235830180358083526020808401939260059290921b909101018810156106b057600080fd5b602084358501015b84358501803560051b016020018110156107c15785813511156106da57600080fd5b84358501813501601f196060828c03820112156106f657600080fd5b6106fe6102fd565b61070a60208401610375565b8152886040840135111561071d57600080fd5b60408301358301604083828f0301121561073657600080fd5b61073e6102da565b9250600460208201351061075157600080fd5b60208101358352896040820135111561076957600080fd5b61077c8d60206040840135840101610497565b602084015250816020820152886060840135111561079957600080fd5b6107ac8c60206060860135860101610507565b604082015285525050602092830192016106b8565b5082525060208201358310156107d657600080fd5b6107e68660208401358401610497565b60208201526107f7604083016103a9565b6040820152610808606083016105fb565b60608201528084525050506020820135602082015292915050565b600061083161041184610351565b80848252602080830192508560051b85013681111561084f57600080fd5b855b8181101561088b57803567ffffffffffffffff8111156108715760008081fd5b61087d36828a0161060b565b865250938201938201610851565b50919695505050505050565b600061015e368361060b565b634e487b7160e01b600052601160045260246000fd5b8181038181111561015e5761015e6108a3565b600060ff821660ff81036108e2576108e26108a3565b6001019291505056fea26469706673582212209f73241fe2e70cbd927327849989e5ff7254c39d74fde29c20d0dafc1393ef5864736f6c63430008140033",
}

ConsensusAppMetaData contains all meta data concerning the ConsensusApp contract.

Functions

This section is empty.

Types

type ConsensusApp

type ConsensusApp struct {
	ConsensusAppCaller     // Read-only binding to the contract
	ConsensusAppTransactor // Write-only binding to the contract
	ConsensusAppFilterer   // Log filterer for contract events
}

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

func DeployConsensusApp

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

DeployConsensusApp deploys a new Ethereum contract, binding an instance of ConsensusApp to it.

func NewConsensusApp

func NewConsensusApp(address common.Address, backend bind.ContractBackend) (*ConsensusApp, error)

NewConsensusApp creates a new instance of ConsensusApp, bound to a specific deployed contract.

type ConsensusAppCaller

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

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

func NewConsensusAppCaller

func NewConsensusAppCaller(address common.Address, caller bind.ContractCaller) (*ConsensusAppCaller, error)

NewConsensusAppCaller creates a new read-only instance of ConsensusApp, bound to a specific deployed contract.

func (*ConsensusAppCaller) StateIsSupported

func (_ConsensusApp *ConsensusAppCaller) StateIsSupported(opts *bind.CallOpts, fixedPart INitroTypesFixedPart, proof []INitroTypesRecoveredVariablePart, candidate INitroTypesRecoveredVariablePart) (bool, string, error)

StateIsSupported is a free data retrieval call binding the contract method 0x9936d812.

Solidity: function stateIsSupported((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),uint256)[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),uint256) candidate) pure returns(bool, string)

type ConsensusAppCallerRaw

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

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

func (*ConsensusAppCallerRaw) Call

func (_ConsensusApp *ConsensusAppCallerRaw) 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 ConsensusAppCallerSession

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

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

func (*ConsensusAppCallerSession) StateIsSupported

StateIsSupported is a free data retrieval call binding the contract method 0x9936d812.

Solidity: function stateIsSupported((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),uint256)[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),uint256) candidate) pure returns(bool, string)

type ConsensusAppFilterer

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

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

func NewConsensusAppFilterer

func NewConsensusAppFilterer(address common.Address, filterer bind.ContractFilterer) (*ConsensusAppFilterer, error)

NewConsensusAppFilterer creates a new log filterer instance of ConsensusApp, bound to a specific deployed contract.

type ConsensusAppRaw

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

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

func (*ConsensusAppRaw) Call

func (_ConsensusApp *ConsensusAppRaw) 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 (*ConsensusAppRaw) Transact

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

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

func (*ConsensusAppRaw) Transfer

func (_ConsensusApp *ConsensusAppRaw) 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 ConsensusAppSession

type ConsensusAppSession struct {
	Contract     *ConsensusApp     // 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
}

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

func (*ConsensusAppSession) StateIsSupported

func (_ConsensusApp *ConsensusAppSession) StateIsSupported(fixedPart INitroTypesFixedPart, proof []INitroTypesRecoveredVariablePart, candidate INitroTypesRecoveredVariablePart) (bool, string, error)

StateIsSupported is a free data retrieval call binding the contract method 0x9936d812.

Solidity: function stateIsSupported((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),uint256)[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),uint256) candidate) pure returns(bool, string)

type ConsensusAppTransactor

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

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

func NewConsensusAppTransactor

func NewConsensusAppTransactor(address common.Address, transactor bind.ContractTransactor) (*ConsensusAppTransactor, error)

NewConsensusAppTransactor creates a new write-only instance of ConsensusApp, bound to a specific deployed contract.

type ConsensusAppTransactorRaw

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

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

func (*ConsensusAppTransactorRaw) Transact

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

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

func (*ConsensusAppTransactorRaw) Transfer

func (_ConsensusApp *ConsensusAppTransactorRaw) 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 ConsensusAppTransactorSession

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

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

type ExitFormatAllocation

type ExitFormatAllocation struct {
	Destination    [32]byte
	Amount         *big.Int
	AllocationType uint8
	Metadata       []byte
}

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

type ExitFormatAssetMetadata

type ExitFormatAssetMetadata struct {
	AssetType uint8
	Metadata  []byte
}

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

type ExitFormatSingleAssetExit

type ExitFormatSingleAssetExit struct {
	Asset         common.Address
	AssetMetadata ExitFormatAssetMetadata
	Allocations   []ExitFormatAllocation
}

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

type INitroTypesFixedPart

type INitroTypesFixedPart struct {
	Participants      []common.Address
	ChannelNonce      uint64
	AppDefinition     common.Address
	ChallengeDuration *big.Int
}

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

type INitroTypesRecoveredVariablePart

type INitroTypesRecoveredVariablePart struct {
	VariablePart INitroTypesVariablePart
	SignedBy     *big.Int
}

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

type INitroTypesVariablePart

type INitroTypesVariablePart struct {
	Outcome []ExitFormatSingleAssetExit
	AppData []byte
	TurnNum *big.Int
	IsFinal bool
}

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

Jump to

Keyboard shortcuts

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