sequencersoloclient

package
v4.0.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SequencerSoloClientABI = SequencerSoloClientMetaData.ABI

SequencerSoloClientABI is the input ABI used to generate the binding from. Deprecated: Use SequencerSoloClientMetaData.ABI instead.

View Source
var SequencerSoloClientMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"verifier_\",\"type\":\"address\",\"internalType\":\"contractISignatureVerifier\"},{\"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\":\"getState\",\"inputs\":[{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"appHash\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"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\":\"peptideHeight\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"peptideAppHash\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"verifier\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractISignatureVerifier\"}],\"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\":\"\",\"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\":\"\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"pure\"},{\"type\":\"error\",\"name\":\"AppHashHasNotPassedFraudProofWindow\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"CannotUpdateClientWithDifferentAppHash\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidL1Origin\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NoConsensusStateAtHeight\",\"inputs\":[{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"NonMembershipProofsNotYetImplemented\",\"inputs\":[]}]",
}

SequencerSoloClientMetaData contains all meta data concerning the SequencerSoloClient 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

type OpIcs23ProofPath struct {
	Prefix []byte
	Suffix []byte
}

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

type SequencerSoloClient

type SequencerSoloClient struct {
	SequencerSoloClientCaller     // Read-only binding to the contract
	SequencerSoloClientTransactor // Write-only binding to the contract
	SequencerSoloClientFilterer   // Log filterer for contract events
}

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

func NewSequencerSoloClient

func NewSequencerSoloClient(address common.Address, backend bind.ContractBackend) (*SequencerSoloClient, error)

NewSequencerSoloClient creates a new instance of SequencerSoloClient, bound to a specific deployed contract.

type SequencerSoloClientCaller

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

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

func NewSequencerSoloClientCaller

func NewSequencerSoloClientCaller(address common.Address, caller bind.ContractCaller) (*SequencerSoloClientCaller, error)

NewSequencerSoloClientCaller creates a new read-only instance of SequencerSoloClient, bound to a specific deployed contract.

func (*SequencerSoloClientCaller) ConsensusStates

func (_SequencerSoloClient *SequencerSoloClientCaller) 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 (*SequencerSoloClientCaller) GetState

func (_SequencerSoloClient *SequencerSoloClientCaller) GetState(opts *bind.CallOpts, height *big.Int) (*big.Int, error)

GetState is a free data retrieval call binding the contract method 0x44c9af28.

Solidity: function getState(uint256 height) view returns(uint256 appHash)

func (*SequencerSoloClientCaller) L1BlockProvider added in v4.0.5

func (_SequencerSoloClient *SequencerSoloClientCaller) 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 (*SequencerSoloClientCaller) LIGHTCLIENTTYPE

func (_SequencerSoloClient *SequencerSoloClientCaller) 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 (*SequencerSoloClientCaller) Verifier

func (_SequencerSoloClient *SequencerSoloClientCaller) 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 (*SequencerSoloClientCaller) VerifyMembership

func (_SequencerSoloClient *SequencerSoloClientCaller) 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 (*SequencerSoloClientCaller) VerifyNonMembership

func (_SequencerSoloClient *SequencerSoloClientCaller) VerifyNonMembership(opts *bind.CallOpts, arg0 Ics23Proof, arg1 []byte) error

VerifyNonMembership is a free data retrieval call binding the contract method 0xfdaab4e5.

Solidity: function verifyNonMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) , bytes ) pure returns()

type SequencerSoloClientCallerRaw

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

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

func (*SequencerSoloClientCallerRaw) Call

func (_SequencerSoloClient *SequencerSoloClientCallerRaw) 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 SequencerSoloClientCallerSession

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

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

func (*SequencerSoloClientCallerSession) ConsensusStates

func (_SequencerSoloClient *SequencerSoloClientCallerSession) 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 (*SequencerSoloClientCallerSession) GetState

func (_SequencerSoloClient *SequencerSoloClientCallerSession) GetState(height *big.Int) (*big.Int, error)

GetState is a free data retrieval call binding the contract method 0x44c9af28.

Solidity: function getState(uint256 height) view returns(uint256 appHash)

func (*SequencerSoloClientCallerSession) L1BlockProvider added in v4.0.5

func (_SequencerSoloClient *SequencerSoloClientCallerSession) L1BlockProvider() (common.Address, error)

L1BlockProvider is a free data retrieval call binding the contract method 0xeb772058.

Solidity: function l1BlockProvider() view returns(address)

func (*SequencerSoloClientCallerSession) LIGHTCLIENTTYPE

func (_SequencerSoloClient *SequencerSoloClientCallerSession) LIGHTCLIENTTYPE() (uint8, error)

LIGHTCLIENTTYPE is a free data retrieval call binding the contract method 0x57c1c5f4.

Solidity: function LIGHT_CLIENT_TYPE() view returns(uint8)

func (*SequencerSoloClientCallerSession) Verifier

func (_SequencerSoloClient *SequencerSoloClientCallerSession) Verifier() (common.Address, error)

Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.

Solidity: function verifier() view returns(address)

func (*SequencerSoloClientCallerSession) VerifyMembership

func (_SequencerSoloClient *SequencerSoloClientCallerSession) 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 (*SequencerSoloClientCallerSession) VerifyNonMembership

func (_SequencerSoloClient *SequencerSoloClientCallerSession) VerifyNonMembership(arg0 Ics23Proof, arg1 []byte) error

VerifyNonMembership is a free data retrieval call binding the contract method 0xfdaab4e5.

Solidity: function verifyNonMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) , bytes ) pure returns()

type SequencerSoloClientFilterer

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

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

func NewSequencerSoloClientFilterer

func NewSequencerSoloClientFilterer(address common.Address, filterer bind.ContractFilterer) (*SequencerSoloClientFilterer, error)

NewSequencerSoloClientFilterer creates a new log filterer instance of SequencerSoloClient, bound to a specific deployed contract.

type SequencerSoloClientRaw

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

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

func (*SequencerSoloClientRaw) Call

func (_SequencerSoloClient *SequencerSoloClientRaw) 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 (*SequencerSoloClientRaw) Transact

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

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

func (*SequencerSoloClientRaw) Transfer

func (_SequencerSoloClient *SequencerSoloClientRaw) 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 SequencerSoloClientSession

type SequencerSoloClientSession struct {
	Contract     *SequencerSoloClient // 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
}

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

func (*SequencerSoloClientSession) ConsensusStates

func (_SequencerSoloClient *SequencerSoloClientSession) 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 (*SequencerSoloClientSession) GetState

func (_SequencerSoloClient *SequencerSoloClientSession) GetState(height *big.Int) (*big.Int, error)

GetState is a free data retrieval call binding the contract method 0x44c9af28.

Solidity: function getState(uint256 height) view returns(uint256 appHash)

func (*SequencerSoloClientSession) L1BlockProvider added in v4.0.5

func (_SequencerSoloClient *SequencerSoloClientSession) L1BlockProvider() (common.Address, error)

L1BlockProvider is a free data retrieval call binding the contract method 0xeb772058.

Solidity: function l1BlockProvider() view returns(address)

func (*SequencerSoloClientSession) LIGHTCLIENTTYPE

func (_SequencerSoloClient *SequencerSoloClientSession) LIGHTCLIENTTYPE() (uint8, error)

LIGHTCLIENTTYPE is a free data retrieval call binding the contract method 0x57c1c5f4.

Solidity: function LIGHT_CLIENT_TYPE() view returns(uint8)

func (*SequencerSoloClientSession) UpdateClient

func (_SequencerSoloClient *SequencerSoloClientSession) UpdateClient(proof []byte, peptideHeight *big.Int, peptideAppHash *big.Int) (*types.Transaction, error)

UpdateClient is a paid mutator transaction binding the contract method 0x49ff245e.

Solidity: function updateClient(bytes proof, uint256 peptideHeight, uint256 peptideAppHash) returns()

func (*SequencerSoloClientSession) Verifier

func (_SequencerSoloClient *SequencerSoloClientSession) Verifier() (common.Address, error)

Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.

Solidity: function verifier() view returns(address)

func (*SequencerSoloClientSession) VerifyMembership

func (_SequencerSoloClient *SequencerSoloClientSession) 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 (*SequencerSoloClientSession) VerifyNonMembership

func (_SequencerSoloClient *SequencerSoloClientSession) VerifyNonMembership(arg0 Ics23Proof, arg1 []byte) error

VerifyNonMembership is a free data retrieval call binding the contract method 0xfdaab4e5.

Solidity: function verifyNonMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) , bytes ) pure returns()

type SequencerSoloClientTransactor

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

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

func NewSequencerSoloClientTransactor

func NewSequencerSoloClientTransactor(address common.Address, transactor bind.ContractTransactor) (*SequencerSoloClientTransactor, error)

NewSequencerSoloClientTransactor creates a new write-only instance of SequencerSoloClient, bound to a specific deployed contract.

func (*SequencerSoloClientTransactor) UpdateClient

func (_SequencerSoloClient *SequencerSoloClientTransactor) UpdateClient(opts *bind.TransactOpts, proof []byte, peptideHeight *big.Int, peptideAppHash *big.Int) (*types.Transaction, error)

UpdateClient is a paid mutator transaction binding the contract method 0x49ff245e.

Solidity: function updateClient(bytes proof, uint256 peptideHeight, uint256 peptideAppHash) returns()

type SequencerSoloClientTransactorRaw

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

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

func (*SequencerSoloClientTransactorRaw) Transact

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

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

func (*SequencerSoloClientTransactorRaw) Transfer

func (_SequencerSoloClient *SequencerSoloClientTransactorRaw) 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 SequencerSoloClientTransactorSession

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

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

func (*SequencerSoloClientTransactorSession) UpdateClient

func (_SequencerSoloClient *SequencerSoloClientTransactorSession) UpdateClient(proof []byte, peptideHeight *big.Int, peptideAppHash *big.Int) (*types.Transaction, error)

UpdateClient is a paid mutator transaction binding the contract method 0x49ff245e.

Solidity: function updateClient(bytes proof, uint256 peptideHeight, uint256 peptideAppHash) returns()

Jump to

Keyboard shortcuts

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