lightclient

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LightclientABI = LightclientMetaData.ABI

LightclientABI is the input ABI used to generate the binding from. Deprecated: Use LightclientMetaData.ABI instead.

View Source
var LightclientMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"UPGRADE_INTERFACE_VERSION\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"currentBlockNumber\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"disablePermissionedProverMode\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"finalizedState\",\"inputs\":[],\"outputs\":[{\"name\":\"viewNum\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"blockHeight\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"blockCommRoot\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"genesisStakeTableState\",\"inputs\":[],\"outputs\":[{\"name\":\"threshold\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"blsKeyComm\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"schnorrKeyComm\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"amountComm\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"genesisState\",\"inputs\":[],\"outputs\":[{\"name\":\"viewNum\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"blockHeight\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"blockCommRoot\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getHotShotCommitment\",\"inputs\":[{\"name\":\"hotShotBlockHeight\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"hotShotBlockCommRoot\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"hotshotBlockHeight\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getStateHistoryCount\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getVersion\",\"inputs\":[],\"outputs\":[{\"name\":\"majorVersion\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"minorVersion\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"patchVersion\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"_genesis\",\"type\":\"tuple\",\"internalType\":\"structLightClient.LightClientState\",\"components\":[{\"name\":\"viewNum\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"blockHeight\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"blockCommRoot\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"}]},{\"name\":\"_genesisStakeTableState\",\"type\":\"tuple\",\"internalType\":\"structLightClient.StakeTableState\",\"components\":[{\"name\":\"threshold\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"blsKeyComm\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"schnorrKeyComm\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"amountComm\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"}]},{\"name\":\"_stateHistoryRetentionPeriod\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"isPermissionedProverEnabled\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"lagOverEscapeHatchThreshold\",\"inputs\":[{\"name\":\"blockNumber\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"blockThreshold\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"newFinalizedState\",\"inputs\":[{\"name\":\"newState\",\"type\":\"tuple\",\"internalType\":\"structLightClient.LightClientState\",\"components\":[{\"name\":\"viewNum\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"blockHeight\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"blockCommRoot\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"}]},{\"name\":\"proof\",\"type\":\"tuple\",\"internalType\":\"structIPlonkVerifier.PlonkProof\",\"components\":[{\"name\":\"wire0\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"wire1\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"wire2\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"wire3\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"wire4\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"prodPerm\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"split0\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"split1\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"split2\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"split3\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"split4\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"zeta\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"zetaOmega\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"wireEval0\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"wireEval1\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"wireEval2\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"wireEval3\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"wireEval4\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"sigmaEval0\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"sigmaEval1\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"sigmaEval2\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"sigmaEval3\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"},{\"name\":\"prodPermZetaOmegaEval\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"permissionedProver\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"proxiableUUID\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPermissionedProver\",\"inputs\":[{\"name\":\"prover\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setstateHistoryRetentionPeriod\",\"inputs\":[{\"name\":\"historySeconds\",\"type\":\"uint32\",\"internalType\":\"uint32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"stateHistoryCommitments\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"l1BlockHeight\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"l1BlockTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"hotShotBlockHeight\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"hotShotBlockCommRoot\",\"type\":\"uint256\",\"internalType\":\"BN254.ScalarField\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stateHistoryFirstIndex\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stateHistoryRetentionPeriod\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint32\",\"internalType\":\"uint32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"upgradeToAndCall\",\"inputs\":[{\"name\":\"newImplementation\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"Initialized\",\"inputs\":[{\"name\":\"version\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"NewState\",\"inputs\":[{\"name\":\"viewNum\",\"type\":\"uint64\",\"indexed\":true,\"internalType\":\"uint64\"},{\"name\":\"blockHeight\",\"type\":\"uint64\",\"indexed\":true,\"internalType\":\"uint64\"},{\"name\":\"blockCommRoot\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"BN254.ScalarField\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"PermissionedProverNotRequired\",\"inputs\":[],\"anonymous\":false},{\"type\":\"event\",\"name\":\"PermissionedProverRequired\",\"inputs\":[{\"name\":\"permissionedProver\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Upgrade\",\"inputs\":[{\"name\":\"implementation\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Upgraded\",\"inputs\":[{\"name\":\"implementation\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"AddressEmptyCode\",\"inputs\":[{\"name\":\"target\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ERC1967InvalidImplementation\",\"inputs\":[{\"name\":\"implementation\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ERC1967NonPayable\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"FailedInnerCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InsufficientSnapshotHistory\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidAddress\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidArgs\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidHotShotBlockForCommitmentCheck\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidInitialization\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidMaxStateHistory\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidProof\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NoChangeRequired\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NotInitializing\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OutdatedState\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OwnableInvalidOwner\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"OwnableUnauthorizedAccount\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ProverNotPermissioned\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UUPSUnauthorizedCallContext\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UUPSUnsupportedProxiableUUID\",\"inputs\":[{\"name\":\"slot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"type\":\"error\",\"name\":\"WrongStakeTableUsed\",\"inputs\":[]}]",
}

LightclientMetaData contains all meta data concerning the Lightclient contract.

Functions

This section is empty.

Types

type BN254G1Point

type BN254G1Point struct {
	X *big.Int
	Y *big.Int
}

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

type IPlonkVerifierPlonkProof

type IPlonkVerifierPlonkProof struct {
	Wire0                 BN254G1Point
	Wire1                 BN254G1Point
	Wire2                 BN254G1Point
	Wire3                 BN254G1Point
	Wire4                 BN254G1Point
	ProdPerm              BN254G1Point
	Split0                BN254G1Point
	Split1                BN254G1Point
	Split2                BN254G1Point
	Split3                BN254G1Point
	Split4                BN254G1Point
	Zeta                  BN254G1Point
	ZetaOmega             BN254G1Point
	WireEval0             *big.Int
	WireEval1             *big.Int
	WireEval2             *big.Int
	WireEval3             *big.Int
	WireEval4             *big.Int
	SigmaEval0            *big.Int
	SigmaEval1            *big.Int
	SigmaEval2            *big.Int
	SigmaEval3            *big.Int
	ProdPermZetaOmegaEval *big.Int
}

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

type LightClientLightClientState

type LightClientLightClientState struct {
	ViewNum       uint64
	BlockHeight   uint64
	BlockCommRoot *big.Int
}

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

type LightClientReader

type LightClientReader struct {
	LightClient Lightclient
	L1Client    bind.ContractBackend
}

func NewLightClientReader

func NewLightClientReader(lightClientAddr common.Address, l1client bind.ContractBackend) (*LightClientReader, error)

func (*LightClientReader) FetchMerkleRoot added in v0.0.18

func (l *LightClientReader) FetchMerkleRoot(hotShotHeight uint64, opts *bind.CallOpts) (common_types.BlockMerkleSnapshot, error)

Fetch the merkle root at the first light client snapshot that proves the provided hotshot leaf height. CallOpt included as a parameter in case validators need to fetch historical merkle roots if they are catching up.

func (*LightClientReader) IsHotShotLive added in v0.0.19

func (l *LightClientReader) IsHotShotLive(delayThreshold uint64) (bool, error)

func (*LightClientReader) IsHotShotLiveAtHeight added in v0.0.23

func (l *LightClientReader) IsHotShotLiveAtHeight(h, delayThreshold uint64) (bool, error)

func (*LightClientReader) ValidatedHeight

func (l *LightClientReader) ValidatedHeight() (validatedHeight uint64, l1Height uint64, err error)

Returns the L1 block number where the light client has validated a particular hotshot block number

type LightClientReaderInterface added in v0.0.11

type LightClientReaderInterface interface {
	ValidatedHeight() (validatedHeight uint64, l1Height uint64, err error)
	FetchMerkleRoot(hotShotHeight uint64, opts *bind.CallOpts) (common_types.BlockMerkleSnapshot, error)

	IsHotShotLive(delayThreshold uint64) (bool, error)
	IsHotShotLiveAtHeight(height, delayThreshold uint64) (bool, error)
}

type LightClientStakeTableState added in v0.0.24

type LightClientStakeTableState struct {
	Threshold      *big.Int
	BlsKeyComm     *big.Int
	SchnorrKeyComm *big.Int
	AmountComm     *big.Int
}

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

type Lightclient

type Lightclient struct {
	LightclientCaller     // Read-only binding to the contract
	LightclientTransactor // Write-only binding to the contract
	LightclientFilterer   // Log filterer for contract events
}

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

func NewLightclient

func NewLightclient(address common.Address, backend bind.ContractBackend) (*Lightclient, error)

NewLightclient creates a new instance of Lightclient, bound to a specific deployed contract.

type LightclientCaller

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

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

func NewLightclientCaller

func NewLightclientCaller(address common.Address, caller bind.ContractCaller) (*LightclientCaller, error)

NewLightclientCaller creates a new read-only instance of Lightclient, bound to a specific deployed contract.

func (*LightclientCaller) CurrentBlockNumber added in v0.0.31

func (_Lightclient *LightclientCaller) CurrentBlockNumber(opts *bind.CallOpts) (*big.Int, error)

CurrentBlockNumber is a free data retrieval call binding the contract method 0x378ec23b.

Solidity: function currentBlockNumber() view returns(uint256)

func (*LightclientCaller) FinalizedState

func (_Lightclient *LightclientCaller) FinalizedState(opts *bind.CallOpts) (struct {
	ViewNum       uint64
	BlockHeight   uint64
	BlockCommRoot *big.Int
}, error)

FinalizedState is a free data retrieval call binding the contract method 0x9fdb54a7.

Solidity: function finalizedState() view returns(uint64 viewNum, uint64 blockHeight, uint256 blockCommRoot)

func (*LightclientCaller) GenesisStakeTableState added in v0.0.24

func (_Lightclient *LightclientCaller) GenesisStakeTableState(opts *bind.CallOpts) (struct {
	Threshold      *big.Int
	BlsKeyComm     *big.Int
	SchnorrKeyComm *big.Int
	AmountComm     *big.Int
}, error)

GenesisStakeTableState is a free data retrieval call binding the contract method 0x426d3194.

Solidity: function genesisStakeTableState() view returns(uint256 threshold, uint256 blsKeyComm, uint256 schnorrKeyComm, uint256 amountComm)

func (*LightclientCaller) GenesisState

func (_Lightclient *LightclientCaller) GenesisState(opts *bind.CallOpts) (struct {
	ViewNum       uint64
	BlockHeight   uint64
	BlockCommRoot *big.Int
}, error)

GenesisState is a free data retrieval call binding the contract method 0xd24d933d.

Solidity: function genesisState() view returns(uint64 viewNum, uint64 blockHeight, uint256 blockCommRoot)

func (*LightclientCaller) GetHotShotCommitment added in v0.0.18

func (_Lightclient *LightclientCaller) GetHotShotCommitment(opts *bind.CallOpts, hotShotBlockHeight *big.Int) (struct {
	HotShotBlockCommRoot *big.Int
	HotshotBlockHeight   uint64
}, error)

GetHotShotCommitment is a free data retrieval call binding the contract method 0x8584d23f.

Solidity: function getHotShotCommitment(uint256 hotShotBlockHeight) view returns(uint256 hotShotBlockCommRoot, uint64 hotshotBlockHeight)

func (*LightclientCaller) GetStateHistoryCount added in v0.0.24

func (_Lightclient *LightclientCaller) GetStateHistoryCount(opts *bind.CallOpts) (*big.Int, error)

GetStateHistoryCount is a free data retrieval call binding the contract method 0xf9e50d19.

Solidity: function getStateHistoryCount() view returns(uint256)

func (*LightclientCaller) GetVersion added in v0.0.12

func (_Lightclient *LightclientCaller) GetVersion(opts *bind.CallOpts) (struct {
	MajorVersion uint8
	MinorVersion uint8
	PatchVersion uint8
}, error)

GetVersion is a free data retrieval call binding the contract method 0x0d8e6e2c.

Solidity: function getVersion() pure returns(uint8 majorVersion, uint8 minorVersion, uint8 patchVersion)

func (*LightclientCaller) IsPermissionedProverEnabled added in v0.0.24

func (_Lightclient *LightclientCaller) IsPermissionedProverEnabled(opts *bind.CallOpts) (bool, error)

IsPermissionedProverEnabled is a free data retrieval call binding the contract method 0x826e41fc.

Solidity: function isPermissionedProverEnabled() view returns(bool)

func (*LightclientCaller) LagOverEscapeHatchThreshold added in v0.0.18

func (_Lightclient *LightclientCaller) LagOverEscapeHatchThreshold(opts *bind.CallOpts, blockNumber *big.Int, blockThreshold *big.Int) (bool, error)

LagOverEscapeHatchThreshold is a free data retrieval call binding the contract method 0xe0303301.

Solidity: function lagOverEscapeHatchThreshold(uint256 blockNumber, uint256 blockThreshold) view returns(bool)

func (*LightclientCaller) Owner added in v0.0.12

func (_Lightclient *LightclientCaller) 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 (*LightclientCaller) PermissionedProver added in v0.0.15

func (_Lightclient *LightclientCaller) PermissionedProver(opts *bind.CallOpts) (common.Address, error)

PermissionedProver is a free data retrieval call binding the contract method 0x313df7b1.

Solidity: function permissionedProver() view returns(address)

func (*LightclientCaller) ProxiableUUID added in v0.0.12

func (_Lightclient *LightclientCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*LightclientCaller) StateHistoryCommitments added in v0.0.24

func (_Lightclient *LightclientCaller) StateHistoryCommitments(opts *bind.CallOpts, arg0 *big.Int) (struct {
	L1BlockHeight        uint64
	L1BlockTimestamp     uint64
	HotShotBlockHeight   uint64
	HotShotBlockCommRoot *big.Int
}, error)

StateHistoryCommitments is a free data retrieval call binding the contract method 0x02b592f3.

Solidity: function stateHistoryCommitments(uint256 ) view returns(uint64 l1BlockHeight, uint64 l1BlockTimestamp, uint64 hotShotBlockHeight, uint256 hotShotBlockCommRoot)

func (*LightclientCaller) StateHistoryFirstIndex added in v0.0.24

func (_Lightclient *LightclientCaller) StateHistoryFirstIndex(opts *bind.CallOpts) (uint64, error)

StateHistoryFirstIndex is a free data retrieval call binding the contract method 0x2f79889d.

Solidity: function stateHistoryFirstIndex() view returns(uint64)

func (*LightclientCaller) StateHistoryRetentionPeriod added in v0.0.24

func (_Lightclient *LightclientCaller) StateHistoryRetentionPeriod(opts *bind.CallOpts) (uint32, error)

StateHistoryRetentionPeriod is a free data retrieval call binding the contract method 0xc23b9e9e.

Solidity: function stateHistoryRetentionPeriod() view returns(uint32)

func (*LightclientCaller) UPGRADEINTERFACEVERSION added in v0.0.12

func (_Lightclient *LightclientCaller) UPGRADEINTERFACEVERSION(opts *bind.CallOpts) (string, error)

UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

type LightclientCallerRaw

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

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

func (*LightclientCallerRaw) Call

func (_Lightclient *LightclientCallerRaw) 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 LightclientCallerSession

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

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

func (*LightclientCallerSession) CurrentBlockNumber added in v0.0.31

func (_Lightclient *LightclientCallerSession) CurrentBlockNumber() (*big.Int, error)

CurrentBlockNumber is a free data retrieval call binding the contract method 0x378ec23b.

Solidity: function currentBlockNumber() view returns(uint256)

func (*LightclientCallerSession) FinalizedState

func (_Lightclient *LightclientCallerSession) FinalizedState() (struct {
	ViewNum       uint64
	BlockHeight   uint64
	BlockCommRoot *big.Int
}, error)

FinalizedState is a free data retrieval call binding the contract method 0x9fdb54a7.

Solidity: function finalizedState() view returns(uint64 viewNum, uint64 blockHeight, uint256 blockCommRoot)

func (*LightclientCallerSession) GenesisStakeTableState added in v0.0.24

func (_Lightclient *LightclientCallerSession) GenesisStakeTableState() (struct {
	Threshold      *big.Int
	BlsKeyComm     *big.Int
	SchnorrKeyComm *big.Int
	AmountComm     *big.Int
}, error)

GenesisStakeTableState is a free data retrieval call binding the contract method 0x426d3194.

Solidity: function genesisStakeTableState() view returns(uint256 threshold, uint256 blsKeyComm, uint256 schnorrKeyComm, uint256 amountComm)

func (*LightclientCallerSession) GenesisState

func (_Lightclient *LightclientCallerSession) GenesisState() (struct {
	ViewNum       uint64
	BlockHeight   uint64
	BlockCommRoot *big.Int
}, error)

GenesisState is a free data retrieval call binding the contract method 0xd24d933d.

Solidity: function genesisState() view returns(uint64 viewNum, uint64 blockHeight, uint256 blockCommRoot)

func (*LightclientCallerSession) GetHotShotCommitment added in v0.0.18

func (_Lightclient *LightclientCallerSession) GetHotShotCommitment(hotShotBlockHeight *big.Int) (struct {
	HotShotBlockCommRoot *big.Int
	HotshotBlockHeight   uint64
}, error)

GetHotShotCommitment is a free data retrieval call binding the contract method 0x8584d23f.

Solidity: function getHotShotCommitment(uint256 hotShotBlockHeight) view returns(uint256 hotShotBlockCommRoot, uint64 hotshotBlockHeight)

func (*LightclientCallerSession) GetStateHistoryCount added in v0.0.24

func (_Lightclient *LightclientCallerSession) GetStateHistoryCount() (*big.Int, error)

GetStateHistoryCount is a free data retrieval call binding the contract method 0xf9e50d19.

Solidity: function getStateHistoryCount() view returns(uint256)

func (*LightclientCallerSession) GetVersion added in v0.0.12

func (_Lightclient *LightclientCallerSession) GetVersion() (struct {
	MajorVersion uint8
	MinorVersion uint8
	PatchVersion uint8
}, error)

GetVersion is a free data retrieval call binding the contract method 0x0d8e6e2c.

Solidity: function getVersion() pure returns(uint8 majorVersion, uint8 minorVersion, uint8 patchVersion)

func (*LightclientCallerSession) IsPermissionedProverEnabled added in v0.0.24

func (_Lightclient *LightclientCallerSession) IsPermissionedProverEnabled() (bool, error)

IsPermissionedProverEnabled is a free data retrieval call binding the contract method 0x826e41fc.

Solidity: function isPermissionedProverEnabled() view returns(bool)

func (*LightclientCallerSession) LagOverEscapeHatchThreshold added in v0.0.18

func (_Lightclient *LightclientCallerSession) LagOverEscapeHatchThreshold(blockNumber *big.Int, blockThreshold *big.Int) (bool, error)

LagOverEscapeHatchThreshold is a free data retrieval call binding the contract method 0xe0303301.

Solidity: function lagOverEscapeHatchThreshold(uint256 blockNumber, uint256 blockThreshold) view returns(bool)

func (*LightclientCallerSession) Owner added in v0.0.12

func (_Lightclient *LightclientCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LightclientCallerSession) PermissionedProver added in v0.0.15

func (_Lightclient *LightclientCallerSession) PermissionedProver() (common.Address, error)

PermissionedProver is a free data retrieval call binding the contract method 0x313df7b1.

Solidity: function permissionedProver() view returns(address)

func (*LightclientCallerSession) ProxiableUUID added in v0.0.12

func (_Lightclient *LightclientCallerSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*LightclientCallerSession) StateHistoryCommitments added in v0.0.24

func (_Lightclient *LightclientCallerSession) StateHistoryCommitments(arg0 *big.Int) (struct {
	L1BlockHeight        uint64
	L1BlockTimestamp     uint64
	HotShotBlockHeight   uint64
	HotShotBlockCommRoot *big.Int
}, error)

StateHistoryCommitments is a free data retrieval call binding the contract method 0x02b592f3.

Solidity: function stateHistoryCommitments(uint256 ) view returns(uint64 l1BlockHeight, uint64 l1BlockTimestamp, uint64 hotShotBlockHeight, uint256 hotShotBlockCommRoot)

func (*LightclientCallerSession) StateHistoryFirstIndex added in v0.0.24

func (_Lightclient *LightclientCallerSession) StateHistoryFirstIndex() (uint64, error)

StateHistoryFirstIndex is a free data retrieval call binding the contract method 0x2f79889d.

Solidity: function stateHistoryFirstIndex() view returns(uint64)

func (*LightclientCallerSession) StateHistoryRetentionPeriod added in v0.0.24

func (_Lightclient *LightclientCallerSession) StateHistoryRetentionPeriod() (uint32, error)

StateHistoryRetentionPeriod is a free data retrieval call binding the contract method 0xc23b9e9e.

Solidity: function stateHistoryRetentionPeriod() view returns(uint32)

func (*LightclientCallerSession) UPGRADEINTERFACEVERSION added in v0.0.12

func (_Lightclient *LightclientCallerSession) UPGRADEINTERFACEVERSION() (string, error)

UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

type LightclientFilterer

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

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

func NewLightclientFilterer

func NewLightclientFilterer(address common.Address, filterer bind.ContractFilterer) (*LightclientFilterer, error)

NewLightclientFilterer creates a new log filterer instance of Lightclient, bound to a specific deployed contract.

func (*LightclientFilterer) FilterInitialized added in v0.0.12

func (_Lightclient *LightclientFilterer) FilterInitialized(opts *bind.FilterOpts) (*LightclientInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*LightclientFilterer) FilterNewState

func (_Lightclient *LightclientFilterer) FilterNewState(opts *bind.FilterOpts, viewNum []uint64, blockHeight []uint64) (*LightclientNewStateIterator, error)

FilterNewState is a free log retrieval operation binding the contract event 0xa04a773924505a418564363725f56832f5772e6b8d0dbd6efce724dfe803dae6.

Solidity: event NewState(uint64 indexed viewNum, uint64 indexed blockHeight, uint256 blockCommRoot)

func (*LightclientFilterer) FilterOwnershipTransferred added in v0.0.12

func (_Lightclient *LightclientFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*LightclientOwnershipTransferredIterator, error)

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

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

func (*LightclientFilterer) FilterPermissionedProverNotRequired added in v0.0.15

func (_Lightclient *LightclientFilterer) FilterPermissionedProverNotRequired(opts *bind.FilterOpts) (*LightclientPermissionedProverNotRequiredIterator, error)

FilterPermissionedProverNotRequired is a free log retrieval operation binding the contract event 0x9a5f57de856dd668c54dd95e5c55df93432171cbca49a8776d5620ea59c02450.

Solidity: event PermissionedProverNotRequired()

func (*LightclientFilterer) FilterPermissionedProverRequired added in v0.0.15

func (_Lightclient *LightclientFilterer) FilterPermissionedProverRequired(opts *bind.FilterOpts) (*LightclientPermissionedProverRequiredIterator, error)

FilterPermissionedProverRequired is a free log retrieval operation binding the contract event 0x8017bb887fdf8fca4314a9d40f6e73b3b81002d67e5cfa85d88173af6aa46072.

Solidity: event PermissionedProverRequired(address permissionedProver)

func (*LightclientFilterer) FilterUpgrade added in v0.0.12

func (_Lightclient *LightclientFilterer) FilterUpgrade(opts *bind.FilterOpts) (*LightclientUpgradeIterator, error)

FilterUpgrade is a free log retrieval operation binding the contract event 0xf78721226efe9a1bb678189a16d1554928b9f2192e2cb93eeda83b79fa40007d.

Solidity: event Upgrade(address implementation)

func (*LightclientFilterer) FilterUpgraded added in v0.0.12

func (_Lightclient *LightclientFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*LightclientUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*LightclientFilterer) ParseInitialized added in v0.0.12

func (_Lightclient *LightclientFilterer) ParseInitialized(log types.Log) (*LightclientInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*LightclientFilterer) ParseNewState

func (_Lightclient *LightclientFilterer) ParseNewState(log types.Log) (*LightclientNewState, error)

ParseNewState is a log parse operation binding the contract event 0xa04a773924505a418564363725f56832f5772e6b8d0dbd6efce724dfe803dae6.

Solidity: event NewState(uint64 indexed viewNum, uint64 indexed blockHeight, uint256 blockCommRoot)

func (*LightclientFilterer) ParseOwnershipTransferred added in v0.0.12

func (_Lightclient *LightclientFilterer) ParseOwnershipTransferred(log types.Log) (*LightclientOwnershipTransferred, error)

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

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

func (*LightclientFilterer) ParsePermissionedProverNotRequired added in v0.0.15

func (_Lightclient *LightclientFilterer) ParsePermissionedProverNotRequired(log types.Log) (*LightclientPermissionedProverNotRequired, error)

ParsePermissionedProverNotRequired is a log parse operation binding the contract event 0x9a5f57de856dd668c54dd95e5c55df93432171cbca49a8776d5620ea59c02450.

Solidity: event PermissionedProverNotRequired()

func (*LightclientFilterer) ParsePermissionedProverRequired added in v0.0.15

func (_Lightclient *LightclientFilterer) ParsePermissionedProverRequired(log types.Log) (*LightclientPermissionedProverRequired, error)

ParsePermissionedProverRequired is a log parse operation binding the contract event 0x8017bb887fdf8fca4314a9d40f6e73b3b81002d67e5cfa85d88173af6aa46072.

Solidity: event PermissionedProverRequired(address permissionedProver)

func (*LightclientFilterer) ParseUpgrade added in v0.0.12

func (_Lightclient *LightclientFilterer) ParseUpgrade(log types.Log) (*LightclientUpgrade, error)

ParseUpgrade is a log parse operation binding the contract event 0xf78721226efe9a1bb678189a16d1554928b9f2192e2cb93eeda83b79fa40007d.

Solidity: event Upgrade(address implementation)

func (*LightclientFilterer) ParseUpgraded added in v0.0.12

func (_Lightclient *LightclientFilterer) ParseUpgraded(log types.Log) (*LightclientUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*LightclientFilterer) WatchInitialized added in v0.0.12

func (_Lightclient *LightclientFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *LightclientInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*LightclientFilterer) WatchNewState

func (_Lightclient *LightclientFilterer) WatchNewState(opts *bind.WatchOpts, sink chan<- *LightclientNewState, viewNum []uint64, blockHeight []uint64) (event.Subscription, error)

WatchNewState is a free log subscription operation binding the contract event 0xa04a773924505a418564363725f56832f5772e6b8d0dbd6efce724dfe803dae6.

Solidity: event NewState(uint64 indexed viewNum, uint64 indexed blockHeight, uint256 blockCommRoot)

func (*LightclientFilterer) WatchOwnershipTransferred added in v0.0.12

func (_Lightclient *LightclientFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *LightclientOwnershipTransferred, 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 (*LightclientFilterer) WatchPermissionedProverNotRequired added in v0.0.15

func (_Lightclient *LightclientFilterer) WatchPermissionedProverNotRequired(opts *bind.WatchOpts, sink chan<- *LightclientPermissionedProverNotRequired) (event.Subscription, error)

WatchPermissionedProverNotRequired is a free log subscription operation binding the contract event 0x9a5f57de856dd668c54dd95e5c55df93432171cbca49a8776d5620ea59c02450.

Solidity: event PermissionedProverNotRequired()

func (*LightclientFilterer) WatchPermissionedProverRequired added in v0.0.15

func (_Lightclient *LightclientFilterer) WatchPermissionedProverRequired(opts *bind.WatchOpts, sink chan<- *LightclientPermissionedProverRequired) (event.Subscription, error)

WatchPermissionedProverRequired is a free log subscription operation binding the contract event 0x8017bb887fdf8fca4314a9d40f6e73b3b81002d67e5cfa85d88173af6aa46072.

Solidity: event PermissionedProverRequired(address permissionedProver)

func (*LightclientFilterer) WatchUpgrade added in v0.0.12

func (_Lightclient *LightclientFilterer) WatchUpgrade(opts *bind.WatchOpts, sink chan<- *LightclientUpgrade) (event.Subscription, error)

WatchUpgrade is a free log subscription operation binding the contract event 0xf78721226efe9a1bb678189a16d1554928b9f2192e2cb93eeda83b79fa40007d.

Solidity: event Upgrade(address implementation)

func (*LightclientFilterer) WatchUpgraded added in v0.0.12

func (_Lightclient *LightclientFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *LightclientUpgraded, implementation []common.Address) (event.Subscription, error)

WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

type LightclientInitialized added in v0.0.12

type LightclientInitialized struct {
	Version uint64
	Raw     types.Log // Blockchain specific contextual infos
}

LightclientInitialized represents a Initialized event raised by the Lightclient contract.

type LightclientInitializedIterator added in v0.0.12

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

LightclientInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Lightclient contract.

func (*LightclientInitializedIterator) Close added in v0.0.12

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

func (*LightclientInitializedIterator) Error added in v0.0.12

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientInitializedIterator) Next added in v0.0.12

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 LightclientNewState

type LightclientNewState struct {
	ViewNum       uint64
	BlockHeight   uint64
	BlockCommRoot *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

LightclientNewState represents a NewState event raised by the Lightclient contract.

type LightclientNewStateIterator

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

LightclientNewStateIterator is returned from FilterNewState and is used to iterate over the raw logs and unpacked data for NewState events raised by the Lightclient contract.

func (*LightclientNewStateIterator) Close

func (it *LightclientNewStateIterator) Close() error

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

func (*LightclientNewStateIterator) Error

func (it *LightclientNewStateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientNewStateIterator) Next

func (it *LightclientNewStateIterator) 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 LightclientOwnershipTransferred added in v0.0.12

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

LightclientOwnershipTransferred represents a OwnershipTransferred event raised by the Lightclient contract.

type LightclientOwnershipTransferredIterator added in v0.0.12

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

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

func (*LightclientOwnershipTransferredIterator) Close added in v0.0.12

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

func (*LightclientOwnershipTransferredIterator) Error added in v0.0.12

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientOwnershipTransferredIterator) Next added in v0.0.12

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 LightclientPermissionedProverNotRequired added in v0.0.15

type LightclientPermissionedProverNotRequired struct {
	Raw types.Log // Blockchain specific contextual infos
}

LightclientPermissionedProverNotRequired represents a PermissionedProverNotRequired event raised by the Lightclient contract.

type LightclientPermissionedProverNotRequiredIterator added in v0.0.15

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

LightclientPermissionedProverNotRequiredIterator is returned from FilterPermissionedProverNotRequired and is used to iterate over the raw logs and unpacked data for PermissionedProverNotRequired events raised by the Lightclient contract.

func (*LightclientPermissionedProverNotRequiredIterator) Close added in v0.0.15

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

func (*LightclientPermissionedProverNotRequiredIterator) Error added in v0.0.15

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientPermissionedProverNotRequiredIterator) Next added in v0.0.15

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 LightclientPermissionedProverRequired added in v0.0.15

type LightclientPermissionedProverRequired struct {
	PermissionedProver common.Address
	Raw                types.Log // Blockchain specific contextual infos
}

LightclientPermissionedProverRequired represents a PermissionedProverRequired event raised by the Lightclient contract.

type LightclientPermissionedProverRequiredIterator added in v0.0.15

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

LightclientPermissionedProverRequiredIterator is returned from FilterPermissionedProverRequired and is used to iterate over the raw logs and unpacked data for PermissionedProverRequired events raised by the Lightclient contract.

func (*LightclientPermissionedProverRequiredIterator) Close added in v0.0.15

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

func (*LightclientPermissionedProverRequiredIterator) Error added in v0.0.15

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientPermissionedProverRequiredIterator) Next added in v0.0.15

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 LightclientRaw

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

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

func (*LightclientRaw) Call

func (_Lightclient *LightclientRaw) 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 (*LightclientRaw) Transact

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

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

func (*LightclientRaw) Transfer

func (_Lightclient *LightclientRaw) 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 LightclientSession

type LightclientSession struct {
	Contract     *Lightclient      // 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
}

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

func (*LightclientSession) CurrentBlockNumber added in v0.0.31

func (_Lightclient *LightclientSession) CurrentBlockNumber() (*big.Int, error)

CurrentBlockNumber is a free data retrieval call binding the contract method 0x378ec23b.

Solidity: function currentBlockNumber() view returns(uint256)

func (*LightclientSession) DisablePermissionedProverMode added in v0.0.15

func (_Lightclient *LightclientSession) DisablePermissionedProverMode() (*types.Transaction, error)

DisablePermissionedProverMode is a paid mutator transaction binding the contract method 0x69cc6a04.

Solidity: function disablePermissionedProverMode() returns()

func (*LightclientSession) FinalizedState

func (_Lightclient *LightclientSession) FinalizedState() (struct {
	ViewNum       uint64
	BlockHeight   uint64
	BlockCommRoot *big.Int
}, error)

FinalizedState is a free data retrieval call binding the contract method 0x9fdb54a7.

Solidity: function finalizedState() view returns(uint64 viewNum, uint64 blockHeight, uint256 blockCommRoot)

func (*LightclientSession) GenesisStakeTableState added in v0.0.24

func (_Lightclient *LightclientSession) GenesisStakeTableState() (struct {
	Threshold      *big.Int
	BlsKeyComm     *big.Int
	SchnorrKeyComm *big.Int
	AmountComm     *big.Int
}, error)

GenesisStakeTableState is a free data retrieval call binding the contract method 0x426d3194.

Solidity: function genesisStakeTableState() view returns(uint256 threshold, uint256 blsKeyComm, uint256 schnorrKeyComm, uint256 amountComm)

func (*LightclientSession) GenesisState

func (_Lightclient *LightclientSession) GenesisState() (struct {
	ViewNum       uint64
	BlockHeight   uint64
	BlockCommRoot *big.Int
}, error)

GenesisState is a free data retrieval call binding the contract method 0xd24d933d.

Solidity: function genesisState() view returns(uint64 viewNum, uint64 blockHeight, uint256 blockCommRoot)

func (*LightclientSession) GetHotShotCommitment added in v0.0.18

func (_Lightclient *LightclientSession) GetHotShotCommitment(hotShotBlockHeight *big.Int) (struct {
	HotShotBlockCommRoot *big.Int
	HotshotBlockHeight   uint64
}, error)

GetHotShotCommitment is a free data retrieval call binding the contract method 0x8584d23f.

Solidity: function getHotShotCommitment(uint256 hotShotBlockHeight) view returns(uint256 hotShotBlockCommRoot, uint64 hotshotBlockHeight)

func (*LightclientSession) GetStateHistoryCount added in v0.0.24

func (_Lightclient *LightclientSession) GetStateHistoryCount() (*big.Int, error)

GetStateHistoryCount is a free data retrieval call binding the contract method 0xf9e50d19.

Solidity: function getStateHistoryCount() view returns(uint256)

func (*LightclientSession) GetVersion added in v0.0.12

func (_Lightclient *LightclientSession) GetVersion() (struct {
	MajorVersion uint8
	MinorVersion uint8
	PatchVersion uint8
}, error)

GetVersion is a free data retrieval call binding the contract method 0x0d8e6e2c.

Solidity: function getVersion() pure returns(uint8 majorVersion, uint8 minorVersion, uint8 patchVersion)

func (*LightclientSession) Initialize added in v0.0.12

func (_Lightclient *LightclientSession) Initialize(_genesis LightClientLightClientState, _genesisStakeTableState LightClientStakeTableState, _stateHistoryRetentionPeriod uint32, owner common.Address) (*types.Transaction, error)

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

Solidity: function initialize((uint64,uint64,uint256) _genesis, (uint256,uint256,uint256,uint256) _genesisStakeTableState, uint32 _stateHistoryRetentionPeriod, address owner) returns()

func (*LightclientSession) IsPermissionedProverEnabled added in v0.0.24

func (_Lightclient *LightclientSession) IsPermissionedProverEnabled() (bool, error)

IsPermissionedProverEnabled is a free data retrieval call binding the contract method 0x826e41fc.

Solidity: function isPermissionedProverEnabled() view returns(bool)

func (*LightclientSession) LagOverEscapeHatchThreshold added in v0.0.18

func (_Lightclient *LightclientSession) LagOverEscapeHatchThreshold(blockNumber *big.Int, blockThreshold *big.Int) (bool, error)

LagOverEscapeHatchThreshold is a free data retrieval call binding the contract method 0xe0303301.

Solidity: function lagOverEscapeHatchThreshold(uint256 blockNumber, uint256 blockThreshold) view returns(bool)

func (*LightclientSession) NewFinalizedState

func (_Lightclient *LightclientSession) NewFinalizedState(newState LightClientLightClientState, proof IPlonkVerifierPlonkProof) (*types.Transaction, error)

NewFinalizedState is a paid mutator transaction binding the contract method 0x2063d4f7.

Solidity: function newFinalizedState((uint64,uint64,uint256) newState, ((uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256) proof) returns()

func (*LightclientSession) Owner added in v0.0.12

func (_Lightclient *LightclientSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LightclientSession) PermissionedProver added in v0.0.15

func (_Lightclient *LightclientSession) PermissionedProver() (common.Address, error)

PermissionedProver is a free data retrieval call binding the contract method 0x313df7b1.

Solidity: function permissionedProver() view returns(address)

func (*LightclientSession) ProxiableUUID added in v0.0.12

func (_Lightclient *LightclientSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*LightclientSession) RenounceOwnership added in v0.0.12

func (_Lightclient *LightclientSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*LightclientSession) SetPermissionedProver added in v0.0.15

func (_Lightclient *LightclientSession) SetPermissionedProver(prover common.Address) (*types.Transaction, error)

SetPermissionedProver is a paid mutator transaction binding the contract method 0x013fa5fc.

Solidity: function setPermissionedProver(address prover) returns()

func (*LightclientSession) SetstateHistoryRetentionPeriod added in v0.0.24

func (_Lightclient *LightclientSession) SetstateHistoryRetentionPeriod(historySeconds uint32) (*types.Transaction, error)

SetstateHistoryRetentionPeriod is a paid mutator transaction binding the contract method 0x96c1ca61.

Solidity: function setstateHistoryRetentionPeriod(uint32 historySeconds) returns()

func (*LightclientSession) StateHistoryCommitments added in v0.0.24

func (_Lightclient *LightclientSession) StateHistoryCommitments(arg0 *big.Int) (struct {
	L1BlockHeight        uint64
	L1BlockTimestamp     uint64
	HotShotBlockHeight   uint64
	HotShotBlockCommRoot *big.Int
}, error)

StateHistoryCommitments is a free data retrieval call binding the contract method 0x02b592f3.

Solidity: function stateHistoryCommitments(uint256 ) view returns(uint64 l1BlockHeight, uint64 l1BlockTimestamp, uint64 hotShotBlockHeight, uint256 hotShotBlockCommRoot)

func (*LightclientSession) StateHistoryFirstIndex added in v0.0.24

func (_Lightclient *LightclientSession) StateHistoryFirstIndex() (uint64, error)

StateHistoryFirstIndex is a free data retrieval call binding the contract method 0x2f79889d.

Solidity: function stateHistoryFirstIndex() view returns(uint64)

func (*LightclientSession) StateHistoryRetentionPeriod added in v0.0.24

func (_Lightclient *LightclientSession) StateHistoryRetentionPeriod() (uint32, error)

StateHistoryRetentionPeriod is a free data retrieval call binding the contract method 0xc23b9e9e.

Solidity: function stateHistoryRetentionPeriod() view returns(uint32)

func (*LightclientSession) TransferOwnership added in v0.0.12

func (_Lightclient *LightclientSession) 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 (*LightclientSession) UPGRADEINTERFACEVERSION added in v0.0.12

func (_Lightclient *LightclientSession) UPGRADEINTERFACEVERSION() (string, error)

UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

func (*LightclientSession) UpgradeToAndCall added in v0.0.12

func (_Lightclient *LightclientSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type LightclientTransactor

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

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

func NewLightclientTransactor

func NewLightclientTransactor(address common.Address, transactor bind.ContractTransactor) (*LightclientTransactor, error)

NewLightclientTransactor creates a new write-only instance of Lightclient, bound to a specific deployed contract.

func (*LightclientTransactor) DisablePermissionedProverMode added in v0.0.15

func (_Lightclient *LightclientTransactor) DisablePermissionedProverMode(opts *bind.TransactOpts) (*types.Transaction, error)

DisablePermissionedProverMode is a paid mutator transaction binding the contract method 0x69cc6a04.

Solidity: function disablePermissionedProverMode() returns()

func (*LightclientTransactor) Initialize added in v0.0.12

func (_Lightclient *LightclientTransactor) Initialize(opts *bind.TransactOpts, _genesis LightClientLightClientState, _genesisStakeTableState LightClientStakeTableState, _stateHistoryRetentionPeriod uint32, owner common.Address) (*types.Transaction, error)

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

Solidity: function initialize((uint64,uint64,uint256) _genesis, (uint256,uint256,uint256,uint256) _genesisStakeTableState, uint32 _stateHistoryRetentionPeriod, address owner) returns()

func (*LightclientTransactor) NewFinalizedState

func (_Lightclient *LightclientTransactor) NewFinalizedState(opts *bind.TransactOpts, newState LightClientLightClientState, proof IPlonkVerifierPlonkProof) (*types.Transaction, error)

NewFinalizedState is a paid mutator transaction binding the contract method 0x2063d4f7.

Solidity: function newFinalizedState((uint64,uint64,uint256) newState, ((uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256) proof) returns()

func (*LightclientTransactor) RenounceOwnership added in v0.0.12

func (_Lightclient *LightclientTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*LightclientTransactor) SetPermissionedProver added in v0.0.15

func (_Lightclient *LightclientTransactor) SetPermissionedProver(opts *bind.TransactOpts, prover common.Address) (*types.Transaction, error)

SetPermissionedProver is a paid mutator transaction binding the contract method 0x013fa5fc.

Solidity: function setPermissionedProver(address prover) returns()

func (*LightclientTransactor) SetstateHistoryRetentionPeriod added in v0.0.24

func (_Lightclient *LightclientTransactor) SetstateHistoryRetentionPeriod(opts *bind.TransactOpts, historySeconds uint32) (*types.Transaction, error)

SetstateHistoryRetentionPeriod is a paid mutator transaction binding the contract method 0x96c1ca61.

Solidity: function setstateHistoryRetentionPeriod(uint32 historySeconds) returns()

func (*LightclientTransactor) TransferOwnership added in v0.0.12

func (_Lightclient *LightclientTransactor) 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 (*LightclientTransactor) UpgradeToAndCall added in v0.0.12

func (_Lightclient *LightclientTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type LightclientTransactorRaw

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

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

func (*LightclientTransactorRaw) Transact

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

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

func (*LightclientTransactorRaw) Transfer

func (_Lightclient *LightclientTransactorRaw) 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 LightclientTransactorSession

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

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

func (*LightclientTransactorSession) DisablePermissionedProverMode added in v0.0.15

func (_Lightclient *LightclientTransactorSession) DisablePermissionedProverMode() (*types.Transaction, error)

DisablePermissionedProverMode is a paid mutator transaction binding the contract method 0x69cc6a04.

Solidity: function disablePermissionedProverMode() returns()

func (*LightclientTransactorSession) Initialize added in v0.0.12

func (_Lightclient *LightclientTransactorSession) Initialize(_genesis LightClientLightClientState, _genesisStakeTableState LightClientStakeTableState, _stateHistoryRetentionPeriod uint32, owner common.Address) (*types.Transaction, error)

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

Solidity: function initialize((uint64,uint64,uint256) _genesis, (uint256,uint256,uint256,uint256) _genesisStakeTableState, uint32 _stateHistoryRetentionPeriod, address owner) returns()

func (*LightclientTransactorSession) NewFinalizedState

func (_Lightclient *LightclientTransactorSession) NewFinalizedState(newState LightClientLightClientState, proof IPlonkVerifierPlonkProof) (*types.Transaction, error)

NewFinalizedState is a paid mutator transaction binding the contract method 0x2063d4f7.

Solidity: function newFinalizedState((uint64,uint64,uint256) newState, ((uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),(uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256) proof) returns()

func (*LightclientTransactorSession) RenounceOwnership added in v0.0.12

func (_Lightclient *LightclientTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*LightclientTransactorSession) SetPermissionedProver added in v0.0.15

func (_Lightclient *LightclientTransactorSession) SetPermissionedProver(prover common.Address) (*types.Transaction, error)

SetPermissionedProver is a paid mutator transaction binding the contract method 0x013fa5fc.

Solidity: function setPermissionedProver(address prover) returns()

func (*LightclientTransactorSession) SetstateHistoryRetentionPeriod added in v0.0.24

func (_Lightclient *LightclientTransactorSession) SetstateHistoryRetentionPeriod(historySeconds uint32) (*types.Transaction, error)

SetstateHistoryRetentionPeriod is a paid mutator transaction binding the contract method 0x96c1ca61.

Solidity: function setstateHistoryRetentionPeriod(uint32 historySeconds) returns()

func (*LightclientTransactorSession) TransferOwnership added in v0.0.12

func (_Lightclient *LightclientTransactorSession) 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 (*LightclientTransactorSession) UpgradeToAndCall added in v0.0.12

func (_Lightclient *LightclientTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type LightclientUpgrade added in v0.0.12

type LightclientUpgrade struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

LightclientUpgrade represents a Upgrade event raised by the Lightclient contract.

type LightclientUpgradeIterator added in v0.0.12

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

LightclientUpgradeIterator is returned from FilterUpgrade and is used to iterate over the raw logs and unpacked data for Upgrade events raised by the Lightclient contract.

func (*LightclientUpgradeIterator) Close added in v0.0.12

func (it *LightclientUpgradeIterator) Close() error

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

func (*LightclientUpgradeIterator) Error added in v0.0.12

func (it *LightclientUpgradeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientUpgradeIterator) Next added in v0.0.12

func (it *LightclientUpgradeIterator) 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 LightclientUpgraded added in v0.0.12

type LightclientUpgraded struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

LightclientUpgraded represents a Upgraded event raised by the Lightclient contract.

type LightclientUpgradedIterator added in v0.0.12

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

LightclientUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the Lightclient contract.

func (*LightclientUpgradedIterator) Close added in v0.0.12

func (it *LightclientUpgradedIterator) Close() error

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

func (*LightclientUpgradedIterator) Error added in v0.0.12

func (it *LightclientUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientUpgradedIterator) Next added in v0.0.12

func (it *LightclientUpgradedIterator) 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.

Jump to

Keyboard shortcuts

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