Documentation ¶
Index ¶
- Variables
- type Ics23Proof
- type OpIcs23Proof
- type OpIcs23ProofPath
- type OptimisticLightClient
- type OptimisticLightClientCaller
- func (_OptimisticLightClient *OptimisticLightClientCaller) ConsensusStates(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientCaller) FraudProofEndtime(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientCaller) FraudProofWindowSeconds(opts *bind.CallOpts) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientCaller) GetFraudProofEndtime(opts *bind.CallOpts, polymerHeight *big.Int) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientCaller) GetState(opts *bind.CallOpts, polymerHeight *big.Int) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientCaller) GetStateAndEndTime(opts *bind.CallOpts, polymerHeight *big.Int) (struct{ ... }, error)
- func (_OptimisticLightClient *OptimisticLightClientCaller) L1BlockProvider(opts *bind.CallOpts) (common.Address, error)
- func (_OptimisticLightClient *OptimisticLightClientCaller) LIGHTCLIENTTYPE(opts *bind.CallOpts) (uint8, error)
- func (_OptimisticLightClient *OptimisticLightClientCaller) Verifier(opts *bind.CallOpts) (common.Address, error)
- func (_OptimisticLightClient *OptimisticLightClientCaller) VerifyMembership(opts *bind.CallOpts, proof Ics23Proof, key []byte, expectedValue []byte) error
- func (_OptimisticLightClient *OptimisticLightClientCaller) VerifyNonMembership(opts *bind.CallOpts, proof Ics23Proof, key []byte) error
- type OptimisticLightClientCallerRaw
- type OptimisticLightClientCallerSession
- func (_OptimisticLightClient *OptimisticLightClientCallerSession) ConsensusStates(arg0 *big.Int) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientCallerSession) FraudProofEndtime(arg0 *big.Int) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientCallerSession) FraudProofWindowSeconds() (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientCallerSession) GetFraudProofEndtime(polymerHeight *big.Int) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientCallerSession) GetState(polymerHeight *big.Int) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientCallerSession) GetStateAndEndTime(polymerHeight *big.Int) (struct{ ... }, error)
- func (_OptimisticLightClient *OptimisticLightClientCallerSession) L1BlockProvider() (common.Address, error)
- func (_OptimisticLightClient *OptimisticLightClientCallerSession) LIGHTCLIENTTYPE() (uint8, error)
- func (_OptimisticLightClient *OptimisticLightClientCallerSession) Verifier() (common.Address, error)
- func (_OptimisticLightClient *OptimisticLightClientCallerSession) VerifyMembership(proof Ics23Proof, key []byte, expectedValue []byte) error
- func (_OptimisticLightClient *OptimisticLightClientCallerSession) VerifyNonMembership(proof Ics23Proof, key []byte) error
- type OptimisticLightClientFilterer
- type OptimisticLightClientRaw
- func (_OptimisticLightClient *OptimisticLightClientRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_OptimisticLightClient *OptimisticLightClientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_OptimisticLightClient *OptimisticLightClientRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type OptimisticLightClientSession
- func (_OptimisticLightClient *OptimisticLightClientSession) ConsensusStates(arg0 *big.Int) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientSession) FraudProofEndtime(arg0 *big.Int) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientSession) FraudProofWindowSeconds() (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientSession) GetFraudProofEndtime(polymerHeight *big.Int) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientSession) GetState(polymerHeight *big.Int) (*big.Int, error)
- func (_OptimisticLightClient *OptimisticLightClientSession) GetStateAndEndTime(polymerHeight *big.Int) (struct{ ... }, error)
- func (_OptimisticLightClient *OptimisticLightClientSession) L1BlockProvider() (common.Address, error)
- func (_OptimisticLightClient *OptimisticLightClientSession) LIGHTCLIENTTYPE() (uint8, error)
- func (_OptimisticLightClient *OptimisticLightClientSession) UpdateClient(proof []byte, polymerHeight *big.Int, polymerAppHash *big.Int) (*types.Transaction, error)
- func (_OptimisticLightClient *OptimisticLightClientSession) Verifier() (common.Address, error)
- func (_OptimisticLightClient *OptimisticLightClientSession) VerifyMembership(proof Ics23Proof, key []byte, expectedValue []byte) error
- func (_OptimisticLightClient *OptimisticLightClientSession) VerifyNonMembership(proof Ics23Proof, key []byte) error
- type OptimisticLightClientTransactor
- type OptimisticLightClientTransactorRaw
- type OptimisticLightClientTransactorSession
Constants ¶
This section is empty.
Variables ¶
var OptimisticLightClientABI = OptimisticLightClientMetaData.ABI
OptimisticLightClientABI is the input ABI used to generate the binding from. Deprecated: Use OptimisticLightClientMetaData.ABI instead.
var OptimisticLightClientMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"fraudProofWindowSeconds_\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"verifier_\",\"type\":\"address\",\"internalType\":\"contractIProofVerifier\"},{\"name\":\"_l1BlockProvider\",\"type\":\"address\",\"internalType\":\"contractL1Block\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"LIGHT_CLIENT_TYPE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumLightClientType\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"consensusStates\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"fraudProofEndtime\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"fraudProofWindowSeconds\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFraudProofEndtime\",\"inputs\":[{\"name\":\"polymerHeight\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"fraudProofEndTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getState\",\"inputs\":[{\"name\":\"polymerHeight\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"polymerAppHash\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getStateAndEndTime\",\"inputs\":[{\"name\":\"polymerHeight\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"polymerAppHash\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"fraudProofEndTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"ended\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"l1BlockProvider\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractL1Block\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"updateClient\",\"inputs\":[{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"polymerHeight\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"polymerAppHash\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"verifier\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIProofVerifier\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"verifyMembership\",\"inputs\":[{\"name\":\"proof\",\"type\":\"tuple\",\"internalType\":\"structIcs23Proof\",\"components\":[{\"name\":\"proof\",\"type\":\"tuple[]\",\"internalType\":\"structOpIcs23Proof[]\",\"components\":[{\"name\":\"path\",\"type\":\"tuple[]\",\"internalType\":\"structOpIcs23ProofPath[]\",\"components\":[{\"name\":\"prefix\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"suffix\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"key\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"value\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"prefix\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"key\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"expectedValue\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"verifyNonMembership\",\"inputs\":[{\"name\":\"proof\",\"type\":\"tuple\",\"internalType\":\"structIcs23Proof\",\"components\":[{\"name\":\"proof\",\"type\":\"tuple[]\",\"internalType\":\"structOpIcs23Proof[]\",\"components\":[{\"name\":\"path\",\"type\":\"tuple[]\",\"internalType\":\"structOpIcs23ProofPath[]\",\"components\":[{\"name\":\"prefix\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"suffix\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"key\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"value\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"prefix\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"key\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"error\",\"name\":\"AppHashHasNotPassedFraudProofWindow\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"CannotUpdatePendingOptimisticConsensusState\",\"inputs\":[]}]",
}
OptimisticLightClientMetaData contains all meta data concerning the OptimisticLightClient contract.
Functions ¶
This section is empty.
Types ¶
type Ics23Proof ¶
type Ics23Proof struct { Proof []OpIcs23Proof Height *big.Int }
Ics23Proof is an auto generated low-level Go binding around an user-defined struct.
type OpIcs23Proof ¶
type OpIcs23Proof struct { Path []OpIcs23ProofPath Key []byte Value []byte Prefix []byte }
OpIcs23Proof is an auto generated low-level Go binding around an user-defined struct.
type OpIcs23ProofPath ¶
OpIcs23ProofPath is an auto generated low-level Go binding around an user-defined struct.
type OptimisticLightClient ¶
type OptimisticLightClient struct { OptimisticLightClientCaller // Read-only binding to the contract OptimisticLightClientTransactor // Write-only binding to the contract OptimisticLightClientFilterer // Log filterer for contract events }
OptimisticLightClient is an auto generated Go binding around an Ethereum contract.
func NewOptimisticLightClient ¶
func NewOptimisticLightClient(address common.Address, backend bind.ContractBackend) (*OptimisticLightClient, error)
NewOptimisticLightClient creates a new instance of OptimisticLightClient, bound to a specific deployed contract.
type OptimisticLightClientCaller ¶
type OptimisticLightClientCaller struct {
// contains filtered or unexported fields
}
OptimisticLightClientCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewOptimisticLightClientCaller ¶
func NewOptimisticLightClientCaller(address common.Address, caller bind.ContractCaller) (*OptimisticLightClientCaller, error)
NewOptimisticLightClientCaller creates a new read-only instance of OptimisticLightClient, bound to a specific deployed contract.
func (*OptimisticLightClientCaller) ConsensusStates ¶
func (_OptimisticLightClient *OptimisticLightClientCaller) ConsensusStates(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
ConsensusStates is a free data retrieval call binding the contract method 0x1b738a22.
Solidity: function consensusStates(uint256 ) view returns(uint256)
func (*OptimisticLightClientCaller) FraudProofEndtime ¶
func (_OptimisticLightClient *OptimisticLightClientCaller) FraudProofEndtime(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
FraudProofEndtime is a free data retrieval call binding the contract method 0x34b80a41.
Solidity: function fraudProofEndtime(uint256 ) view returns(uint256)
func (*OptimisticLightClientCaller) FraudProofWindowSeconds ¶
func (_OptimisticLightClient *OptimisticLightClientCaller) FraudProofWindowSeconds(opts *bind.CallOpts) (*big.Int, error)
FraudProofWindowSeconds is a free data retrieval call binding the contract method 0x63042720.
Solidity: function fraudProofWindowSeconds() view returns(uint256)
func (*OptimisticLightClientCaller) GetFraudProofEndtime ¶
func (_OptimisticLightClient *OptimisticLightClientCaller) GetFraudProofEndtime(opts *bind.CallOpts, polymerHeight *big.Int) (*big.Int, error)
GetFraudProofEndtime is a free data retrieval call binding the contract method 0xd56ff842.
Solidity: function getFraudProofEndtime(uint256 polymerHeight) view returns(uint256 fraudProofEndTime)
func (*OptimisticLightClientCaller) GetState ¶
func (_OptimisticLightClient *OptimisticLightClientCaller) GetState(opts *bind.CallOpts, polymerHeight *big.Int) (*big.Int, error)
GetState is a free data retrieval call binding the contract method 0x44c9af28.
Solidity: function getState(uint256 polymerHeight) view returns(uint256 polymerAppHash)
func (*OptimisticLightClientCaller) GetStateAndEndTime ¶ added in v3.1.0
func (_OptimisticLightClient *OptimisticLightClientCaller) GetStateAndEndTime(opts *bind.CallOpts, polymerHeight *big.Int) (struct { PolymerAppHash *big.Int FraudProofEndTime *big.Int Ended bool }, error)
GetStateAndEndTime is a free data retrieval call binding the contract method 0xb9a1e87b.
Solidity: function getStateAndEndTime(uint256 polymerHeight) view returns(uint256 polymerAppHash, uint256 fraudProofEndTime, bool ended)
func (*OptimisticLightClientCaller) L1BlockProvider ¶
func (_OptimisticLightClient *OptimisticLightClientCaller) L1BlockProvider(opts *bind.CallOpts) (common.Address, error)
L1BlockProvider is a free data retrieval call binding the contract method 0xeb772058.
Solidity: function l1BlockProvider() view returns(address)
func (*OptimisticLightClientCaller) LIGHTCLIENTTYPE ¶ added in v3.1.0
func (_OptimisticLightClient *OptimisticLightClientCaller) LIGHTCLIENTTYPE(opts *bind.CallOpts) (uint8, error)
LIGHTCLIENTTYPE is a free data retrieval call binding the contract method 0x57c1c5f4.
Solidity: function LIGHT_CLIENT_TYPE() view returns(uint8)
func (*OptimisticLightClientCaller) Verifier ¶
func (_OptimisticLightClient *OptimisticLightClientCaller) Verifier(opts *bind.CallOpts) (common.Address, error)
Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.
Solidity: function verifier() view returns(address)
func (*OptimisticLightClientCaller) VerifyMembership ¶
func (_OptimisticLightClient *OptimisticLightClientCaller) VerifyMembership(opts *bind.CallOpts, proof Ics23Proof, key []byte, expectedValue []byte) error
VerifyMembership is a free data retrieval call binding the contract method 0xcb535ab5.
Solidity: function verifyMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key, bytes expectedValue) view returns()
func (*OptimisticLightClientCaller) VerifyNonMembership ¶
func (_OptimisticLightClient *OptimisticLightClientCaller) VerifyNonMembership(opts *bind.CallOpts, proof Ics23Proof, key []byte) error
VerifyNonMembership is a free data retrieval call binding the contract method 0xfdaab4e5.
Solidity: function verifyNonMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key) view returns()
type OptimisticLightClientCallerRaw ¶
type OptimisticLightClientCallerRaw struct {
Contract *OptimisticLightClientCaller // Generic read-only contract binding to access the raw methods on
}
OptimisticLightClientCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*OptimisticLightClientCallerRaw) Call ¶
func (_OptimisticLightClient *OptimisticLightClientCallerRaw) 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 OptimisticLightClientCallerSession ¶
type OptimisticLightClientCallerSession struct { Contract *OptimisticLightClientCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
OptimisticLightClientCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*OptimisticLightClientCallerSession) ConsensusStates ¶
func (_OptimisticLightClient *OptimisticLightClientCallerSession) ConsensusStates(arg0 *big.Int) (*big.Int, error)
ConsensusStates is a free data retrieval call binding the contract method 0x1b738a22.
Solidity: function consensusStates(uint256 ) view returns(uint256)
func (*OptimisticLightClientCallerSession) FraudProofEndtime ¶
func (_OptimisticLightClient *OptimisticLightClientCallerSession) FraudProofEndtime(arg0 *big.Int) (*big.Int, error)
FraudProofEndtime is a free data retrieval call binding the contract method 0x34b80a41.
Solidity: function fraudProofEndtime(uint256 ) view returns(uint256)
func (*OptimisticLightClientCallerSession) FraudProofWindowSeconds ¶
func (_OptimisticLightClient *OptimisticLightClientCallerSession) FraudProofWindowSeconds() (*big.Int, error)
FraudProofWindowSeconds is a free data retrieval call binding the contract method 0x63042720.
Solidity: function fraudProofWindowSeconds() view returns(uint256)
func (*OptimisticLightClientCallerSession) GetFraudProofEndtime ¶
func (_OptimisticLightClient *OptimisticLightClientCallerSession) GetFraudProofEndtime(polymerHeight *big.Int) (*big.Int, error)
GetFraudProofEndtime is a free data retrieval call binding the contract method 0xd56ff842.
Solidity: function getFraudProofEndtime(uint256 polymerHeight) view returns(uint256 fraudProofEndTime)
func (*OptimisticLightClientCallerSession) GetState ¶
func (_OptimisticLightClient *OptimisticLightClientCallerSession) GetState(polymerHeight *big.Int) (*big.Int, error)
GetState is a free data retrieval call binding the contract method 0x44c9af28.
Solidity: function getState(uint256 polymerHeight) view returns(uint256 polymerAppHash)
func (*OptimisticLightClientCallerSession) GetStateAndEndTime ¶ added in v3.1.0
func (_OptimisticLightClient *OptimisticLightClientCallerSession) GetStateAndEndTime(polymerHeight *big.Int) (struct { PolymerAppHash *big.Int FraudProofEndTime *big.Int Ended bool }, error)
GetStateAndEndTime is a free data retrieval call binding the contract method 0xb9a1e87b.
Solidity: function getStateAndEndTime(uint256 polymerHeight) view returns(uint256 polymerAppHash, uint256 fraudProofEndTime, bool ended)
func (*OptimisticLightClientCallerSession) L1BlockProvider ¶
func (_OptimisticLightClient *OptimisticLightClientCallerSession) L1BlockProvider() (common.Address, error)
L1BlockProvider is a free data retrieval call binding the contract method 0xeb772058.
Solidity: function l1BlockProvider() view returns(address)
func (*OptimisticLightClientCallerSession) LIGHTCLIENTTYPE ¶ added in v3.1.0
func (_OptimisticLightClient *OptimisticLightClientCallerSession) LIGHTCLIENTTYPE() (uint8, error)
LIGHTCLIENTTYPE is a free data retrieval call binding the contract method 0x57c1c5f4.
Solidity: function LIGHT_CLIENT_TYPE() view returns(uint8)
func (*OptimisticLightClientCallerSession) Verifier ¶
func (_OptimisticLightClient *OptimisticLightClientCallerSession) Verifier() (common.Address, error)
Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.
Solidity: function verifier() view returns(address)
func (*OptimisticLightClientCallerSession) VerifyMembership ¶
func (_OptimisticLightClient *OptimisticLightClientCallerSession) VerifyMembership(proof Ics23Proof, key []byte, expectedValue []byte) error
VerifyMembership is a free data retrieval call binding the contract method 0xcb535ab5.
Solidity: function verifyMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key, bytes expectedValue) view returns()
func (*OptimisticLightClientCallerSession) VerifyNonMembership ¶
func (_OptimisticLightClient *OptimisticLightClientCallerSession) VerifyNonMembership(proof Ics23Proof, key []byte) error
VerifyNonMembership is a free data retrieval call binding the contract method 0xfdaab4e5.
Solidity: function verifyNonMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key) view returns()
type OptimisticLightClientFilterer ¶
type OptimisticLightClientFilterer struct {
// contains filtered or unexported fields
}
OptimisticLightClientFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewOptimisticLightClientFilterer ¶
func NewOptimisticLightClientFilterer(address common.Address, filterer bind.ContractFilterer) (*OptimisticLightClientFilterer, error)
NewOptimisticLightClientFilterer creates a new log filterer instance of OptimisticLightClient, bound to a specific deployed contract.
type OptimisticLightClientRaw ¶
type OptimisticLightClientRaw struct {
Contract *OptimisticLightClient // Generic contract binding to access the raw methods on
}
OptimisticLightClientRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*OptimisticLightClientRaw) Call ¶
func (_OptimisticLightClient *OptimisticLightClientRaw) 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 (*OptimisticLightClientRaw) Transact ¶
func (_OptimisticLightClient *OptimisticLightClientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*OptimisticLightClientRaw) Transfer ¶
func (_OptimisticLightClient *OptimisticLightClientRaw) 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 OptimisticLightClientSession ¶
type OptimisticLightClientSession struct { Contract *OptimisticLightClient // 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 }
OptimisticLightClientSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*OptimisticLightClientSession) ConsensusStates ¶
func (_OptimisticLightClient *OptimisticLightClientSession) ConsensusStates(arg0 *big.Int) (*big.Int, error)
ConsensusStates is a free data retrieval call binding the contract method 0x1b738a22.
Solidity: function consensusStates(uint256 ) view returns(uint256)
func (*OptimisticLightClientSession) FraudProofEndtime ¶
func (_OptimisticLightClient *OptimisticLightClientSession) FraudProofEndtime(arg0 *big.Int) (*big.Int, error)
FraudProofEndtime is a free data retrieval call binding the contract method 0x34b80a41.
Solidity: function fraudProofEndtime(uint256 ) view returns(uint256)
func (*OptimisticLightClientSession) FraudProofWindowSeconds ¶
func (_OptimisticLightClient *OptimisticLightClientSession) FraudProofWindowSeconds() (*big.Int, error)
FraudProofWindowSeconds is a free data retrieval call binding the contract method 0x63042720.
Solidity: function fraudProofWindowSeconds() view returns(uint256)
func (*OptimisticLightClientSession) GetFraudProofEndtime ¶
func (_OptimisticLightClient *OptimisticLightClientSession) GetFraudProofEndtime(polymerHeight *big.Int) (*big.Int, error)
GetFraudProofEndtime is a free data retrieval call binding the contract method 0xd56ff842.
Solidity: function getFraudProofEndtime(uint256 polymerHeight) view returns(uint256 fraudProofEndTime)
func (*OptimisticLightClientSession) GetState ¶
func (_OptimisticLightClient *OptimisticLightClientSession) GetState(polymerHeight *big.Int) (*big.Int, error)
GetState is a free data retrieval call binding the contract method 0x44c9af28.
Solidity: function getState(uint256 polymerHeight) view returns(uint256 polymerAppHash)
func (*OptimisticLightClientSession) GetStateAndEndTime ¶ added in v3.1.0
func (_OptimisticLightClient *OptimisticLightClientSession) GetStateAndEndTime(polymerHeight *big.Int) (struct { PolymerAppHash *big.Int FraudProofEndTime *big.Int Ended bool }, error)
GetStateAndEndTime is a free data retrieval call binding the contract method 0xb9a1e87b.
Solidity: function getStateAndEndTime(uint256 polymerHeight) view returns(uint256 polymerAppHash, uint256 fraudProofEndTime, bool ended)
func (*OptimisticLightClientSession) L1BlockProvider ¶
func (_OptimisticLightClient *OptimisticLightClientSession) L1BlockProvider() (common.Address, error)
L1BlockProvider is a free data retrieval call binding the contract method 0xeb772058.
Solidity: function l1BlockProvider() view returns(address)
func (*OptimisticLightClientSession) LIGHTCLIENTTYPE ¶ added in v3.1.0
func (_OptimisticLightClient *OptimisticLightClientSession) LIGHTCLIENTTYPE() (uint8, error)
LIGHTCLIENTTYPE is a free data retrieval call binding the contract method 0x57c1c5f4.
Solidity: function LIGHT_CLIENT_TYPE() view returns(uint8)
func (*OptimisticLightClientSession) UpdateClient ¶ added in v3.1.0
func (_OptimisticLightClient *OptimisticLightClientSession) UpdateClient(proof []byte, polymerHeight *big.Int, polymerAppHash *big.Int) (*types.Transaction, error)
UpdateClient is a paid mutator transaction binding the contract method 0x49ff245e.
Solidity: function updateClient(bytes proof, uint256 polymerHeight, uint256 polymerAppHash) returns()
func (*OptimisticLightClientSession) Verifier ¶
func (_OptimisticLightClient *OptimisticLightClientSession) Verifier() (common.Address, error)
Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.
Solidity: function verifier() view returns(address)
func (*OptimisticLightClientSession) VerifyMembership ¶
func (_OptimisticLightClient *OptimisticLightClientSession) VerifyMembership(proof Ics23Proof, key []byte, expectedValue []byte) error
VerifyMembership is a free data retrieval call binding the contract method 0xcb535ab5.
Solidity: function verifyMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key, bytes expectedValue) view returns()
func (*OptimisticLightClientSession) VerifyNonMembership ¶
func (_OptimisticLightClient *OptimisticLightClientSession) VerifyNonMembership(proof Ics23Proof, key []byte) error
VerifyNonMembership is a free data retrieval call binding the contract method 0xfdaab4e5.
Solidity: function verifyNonMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key) view returns()
type OptimisticLightClientTransactor ¶
type OptimisticLightClientTransactor struct {
// contains filtered or unexported fields
}
OptimisticLightClientTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewOptimisticLightClientTransactor ¶
func NewOptimisticLightClientTransactor(address common.Address, transactor bind.ContractTransactor) (*OptimisticLightClientTransactor, error)
NewOptimisticLightClientTransactor creates a new write-only instance of OptimisticLightClient, bound to a specific deployed contract.
func (*OptimisticLightClientTransactor) UpdateClient ¶ added in v3.1.0
func (_OptimisticLightClient *OptimisticLightClientTransactor) UpdateClient(opts *bind.TransactOpts, proof []byte, polymerHeight *big.Int, polymerAppHash *big.Int) (*types.Transaction, error)
UpdateClient is a paid mutator transaction binding the contract method 0x49ff245e.
Solidity: function updateClient(bytes proof, uint256 polymerHeight, uint256 polymerAppHash) returns()
type OptimisticLightClientTransactorRaw ¶
type OptimisticLightClientTransactorRaw struct {
Contract *OptimisticLightClientTransactor // Generic write-only contract binding to access the raw methods on
}
OptimisticLightClientTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*OptimisticLightClientTransactorRaw) Transact ¶
func (_OptimisticLightClient *OptimisticLightClientTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*OptimisticLightClientTransactorRaw) Transfer ¶
func (_OptimisticLightClient *OptimisticLightClientTransactorRaw) 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 OptimisticLightClientTransactorSession ¶
type OptimisticLightClientTransactorSession struct { Contract *OptimisticLightClientTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
OptimisticLightClientTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*OptimisticLightClientTransactorSession) UpdateClient ¶ added in v3.1.0
func (_OptimisticLightClient *OptimisticLightClientTransactorSession) UpdateClient(proof []byte, polymerHeight *big.Int, polymerAppHash *big.Int) (*types.Transaction, error)
UpdateClient is a paid mutator transaction binding the contract method 0x49ff245e.
Solidity: function updateClient(bytes proof, uint256 polymerHeight, uint256 polymerAppHash) returns()