Documentation
¶
Index ¶
- Variables
- type BN254G1Point
- type IPlonkVerifierPlonkProof
- type IPlonkVerifierVerifyingKey
- type LightClientLightClientState
- type LightClientReader
- func (l *LightClientReader) FetchMerkleRoot(hotShotHeight uint64, opts *bind.CallOpts) (common_types.BlockMerkleSnapshot, error)
- func (l *LightClientReader) IsHotShotLive(delayThreshold uint64) (bool, error)
- func (l *LightClientReader) IsHotShotLiveAtHeight(h, delayThreshold uint64) (bool, error)
- func (l *LightClientReader) ValidatedHeight() (validatedHeight uint64, l1Height uint64, err error)
- type LightClientReaderInterface
- type LightClientStakeTableState
- type Lightclient
- type LightclientCaller
- func (_Lightclient *LightclientCaller) CurrentBlockNumber(opts *bind.CallOpts) (*big.Int, error)
- func (_Lightclient *LightclientCaller) FinalizedState(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Lightclient *LightclientCaller) GenesisStakeTableState(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Lightclient *LightclientCaller) GenesisState(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Lightclient *LightclientCaller) GetHotShotCommitment(opts *bind.CallOpts, hotShotBlockHeight *big.Int) (struct{ ... }, error)
- func (_Lightclient *LightclientCaller) GetStateHistoryCount(opts *bind.CallOpts) (*big.Int, error)
- func (_Lightclient *LightclientCaller) GetVersion(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Lightclient *LightclientCaller) GetVk(opts *bind.CallOpts) (IPlonkVerifierVerifyingKey, error)
- func (_Lightclient *LightclientCaller) IsPermissionedProverEnabled(opts *bind.CallOpts) (bool, error)
- func (_Lightclient *LightclientCaller) LagOverEscapeHatchThreshold(opts *bind.CallOpts, blockNumber *big.Int, blockThreshold *big.Int) (bool, error)
- func (_Lightclient *LightclientCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Lightclient *LightclientCaller) PermissionedProver(opts *bind.CallOpts) (common.Address, error)
- func (_Lightclient *LightclientCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)
- func (_Lightclient *LightclientCaller) StateHistoryCommitments(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_Lightclient *LightclientCaller) StateHistoryFirstIndex(opts *bind.CallOpts) (uint64, error)
- func (_Lightclient *LightclientCaller) StateHistoryRetentionPeriod(opts *bind.CallOpts) (uint32, error)
- func (_Lightclient *LightclientCaller) UPGRADEINTERFACEVERSION(opts *bind.CallOpts) (string, error)
- type LightclientCallerRaw
- type LightclientCallerSession
- func (_Lightclient *LightclientCallerSession) CurrentBlockNumber() (*big.Int, error)
- func (_Lightclient *LightclientCallerSession) FinalizedState() (struct{ ... }, error)
- func (_Lightclient *LightclientCallerSession) GenesisStakeTableState() (struct{ ... }, error)
- func (_Lightclient *LightclientCallerSession) GenesisState() (struct{ ... }, error)
- func (_Lightclient *LightclientCallerSession) GetHotShotCommitment(hotShotBlockHeight *big.Int) (struct{ ... }, error)
- func (_Lightclient *LightclientCallerSession) GetStateHistoryCount() (*big.Int, error)
- func (_Lightclient *LightclientCallerSession) GetVersion() (struct{ ... }, error)
- func (_Lightclient *LightclientCallerSession) GetVk() (IPlonkVerifierVerifyingKey, error)
- func (_Lightclient *LightclientCallerSession) IsPermissionedProverEnabled() (bool, error)
- func (_Lightclient *LightclientCallerSession) LagOverEscapeHatchThreshold(blockNumber *big.Int, blockThreshold *big.Int) (bool, error)
- func (_Lightclient *LightclientCallerSession) Owner() (common.Address, error)
- func (_Lightclient *LightclientCallerSession) PermissionedProver() (common.Address, error)
- func (_Lightclient *LightclientCallerSession) ProxiableUUID() ([32]byte, error)
- func (_Lightclient *LightclientCallerSession) StateHistoryCommitments(arg0 *big.Int) (struct{ ... }, error)
- func (_Lightclient *LightclientCallerSession) StateHistoryFirstIndex() (uint64, error)
- func (_Lightclient *LightclientCallerSession) StateHistoryRetentionPeriod() (uint32, error)
- func (_Lightclient *LightclientCallerSession) UPGRADEINTERFACEVERSION() (string, error)
- type LightclientFilterer
- func (_Lightclient *LightclientFilterer) FilterInitialized(opts *bind.FilterOpts) (*LightclientInitializedIterator, error)
- func (_Lightclient *LightclientFilterer) FilterNewState(opts *bind.FilterOpts, viewNum []uint64, blockHeight []uint64) (*LightclientNewStateIterator, error)
- func (_Lightclient *LightclientFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*LightclientOwnershipTransferredIterator, error)
- func (_Lightclient *LightclientFilterer) FilterPermissionedProverNotRequired(opts *bind.FilterOpts) (*LightclientPermissionedProverNotRequiredIterator, error)
- func (_Lightclient *LightclientFilterer) FilterPermissionedProverRequired(opts *bind.FilterOpts) (*LightclientPermissionedProverRequiredIterator, error)
- func (_Lightclient *LightclientFilterer) FilterUpgrade(opts *bind.FilterOpts) (*LightclientUpgradeIterator, error)
- func (_Lightclient *LightclientFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*LightclientUpgradedIterator, error)
- func (_Lightclient *LightclientFilterer) ParseInitialized(log types.Log) (*LightclientInitialized, error)
- func (_Lightclient *LightclientFilterer) ParseNewState(log types.Log) (*LightclientNewState, error)
- func (_Lightclient *LightclientFilterer) ParseOwnershipTransferred(log types.Log) (*LightclientOwnershipTransferred, error)
- func (_Lightclient *LightclientFilterer) ParsePermissionedProverNotRequired(log types.Log) (*LightclientPermissionedProverNotRequired, error)
- func (_Lightclient *LightclientFilterer) ParsePermissionedProverRequired(log types.Log) (*LightclientPermissionedProverRequired, error)
- func (_Lightclient *LightclientFilterer) ParseUpgrade(log types.Log) (*LightclientUpgrade, error)
- func (_Lightclient *LightclientFilterer) ParseUpgraded(log types.Log) (*LightclientUpgraded, error)
- func (_Lightclient *LightclientFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *LightclientInitialized) (event.Subscription, error)
- func (_Lightclient *LightclientFilterer) WatchNewState(opts *bind.WatchOpts, sink chan<- *LightclientNewState, viewNum []uint64, ...) (event.Subscription, error)
- func (_Lightclient *LightclientFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *LightclientOwnershipTransferred, ...) (event.Subscription, error)
- func (_Lightclient *LightclientFilterer) WatchPermissionedProverNotRequired(opts *bind.WatchOpts, sink chan<- *LightclientPermissionedProverNotRequired) (event.Subscription, error)
- func (_Lightclient *LightclientFilterer) WatchPermissionedProverRequired(opts *bind.WatchOpts, sink chan<- *LightclientPermissionedProverRequired) (event.Subscription, error)
- func (_Lightclient *LightclientFilterer) WatchUpgrade(opts *bind.WatchOpts, sink chan<- *LightclientUpgrade) (event.Subscription, error)
- func (_Lightclient *LightclientFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *LightclientUpgraded, ...) (event.Subscription, error)
- type LightclientInitialized
- type LightclientInitializedIterator
- type LightclientNewState
- type LightclientNewStateIterator
- type LightclientOwnershipTransferred
- type LightclientOwnershipTransferredIterator
- type LightclientPermissionedProverNotRequired
- type LightclientPermissionedProverNotRequiredIterator
- type LightclientPermissionedProverRequired
- type LightclientPermissionedProverRequiredIterator
- type LightclientRaw
- func (_Lightclient *LightclientRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Lightclient *LightclientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Lightclient *LightclientRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type LightclientSession
- func (_Lightclient *LightclientSession) CurrentBlockNumber() (*big.Int, error)
- func (_Lightclient *LightclientSession) DisablePermissionedProverMode() (*types.Transaction, error)
- func (_Lightclient *LightclientSession) FinalizedState() (struct{ ... }, error)
- func (_Lightclient *LightclientSession) GenesisStakeTableState() (struct{ ... }, error)
- func (_Lightclient *LightclientSession) GenesisState() (struct{ ... }, error)
- func (_Lightclient *LightclientSession) GetHotShotCommitment(hotShotBlockHeight *big.Int) (struct{ ... }, error)
- func (_Lightclient *LightclientSession) GetStateHistoryCount() (*big.Int, error)
- func (_Lightclient *LightclientSession) GetVersion() (struct{ ... }, error)
- func (_Lightclient *LightclientSession) GetVk() (IPlonkVerifierVerifyingKey, error)
- func (_Lightclient *LightclientSession) Initialize(_genesis LightClientLightClientState, ...) (*types.Transaction, error)
- func (_Lightclient *LightclientSession) IsPermissionedProverEnabled() (bool, error)
- func (_Lightclient *LightclientSession) LagOverEscapeHatchThreshold(blockNumber *big.Int, blockThreshold *big.Int) (bool, error)
- func (_Lightclient *LightclientSession) NewFinalizedState(newState LightClientLightClientState, proof IPlonkVerifierPlonkProof) (*types.Transaction, error)
- func (_Lightclient *LightclientSession) Owner() (common.Address, error)
- func (_Lightclient *LightclientSession) PermissionedProver() (common.Address, error)
- func (_Lightclient *LightclientSession) ProxiableUUID() ([32]byte, error)
- func (_Lightclient *LightclientSession) RenounceOwnership() (*types.Transaction, error)
- func (_Lightclient *LightclientSession) SetPermissionedProver(prover common.Address) (*types.Transaction, error)
- func (_Lightclient *LightclientSession) SetstateHistoryRetentionPeriod(historySeconds uint32) (*types.Transaction, error)
- func (_Lightclient *LightclientSession) StateHistoryCommitments(arg0 *big.Int) (struct{ ... }, error)
- func (_Lightclient *LightclientSession) StateHistoryFirstIndex() (uint64, error)
- func (_Lightclient *LightclientSession) StateHistoryRetentionPeriod() (uint32, error)
- func (_Lightclient *LightclientSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Lightclient *LightclientSession) UPGRADEINTERFACEVERSION() (string, error)
- func (_Lightclient *LightclientSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
- type LightclientTransactor
- func (_Lightclient *LightclientTransactor) DisablePermissionedProverMode(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Lightclient *LightclientTransactor) Initialize(opts *bind.TransactOpts, _genesis LightClientLightClientState, ...) (*types.Transaction, error)
- func (_Lightclient *LightclientTransactor) NewFinalizedState(opts *bind.TransactOpts, newState LightClientLightClientState, ...) (*types.Transaction, error)
- func (_Lightclient *LightclientTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Lightclient *LightclientTransactor) SetPermissionedProver(opts *bind.TransactOpts, prover common.Address) (*types.Transaction, error)
- func (_Lightclient *LightclientTransactor) SetstateHistoryRetentionPeriod(opts *bind.TransactOpts, historySeconds uint32) (*types.Transaction, error)
- func (_Lightclient *LightclientTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Lightclient *LightclientTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)
- type LightclientTransactorRaw
- type LightclientTransactorSession
- func (_Lightclient *LightclientTransactorSession) DisablePermissionedProverMode() (*types.Transaction, error)
- func (_Lightclient *LightclientTransactorSession) Initialize(_genesis LightClientLightClientState, ...) (*types.Transaction, error)
- func (_Lightclient *LightclientTransactorSession) NewFinalizedState(newState LightClientLightClientState, proof IPlonkVerifierPlonkProof) (*types.Transaction, error)
- func (_Lightclient *LightclientTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Lightclient *LightclientTransactorSession) SetPermissionedProver(prover common.Address) (*types.Transaction, error)
- func (_Lightclient *LightclientTransactorSession) SetstateHistoryRetentionPeriod(historySeconds uint32) (*types.Transaction, error)
- func (_Lightclient *LightclientTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Lightclient *LightclientTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
- type LightclientUpgrade
- type LightclientUpgradeIterator
- type LightclientUpgraded
- type LightclientUpgradedIterator
Constants ¶
This section is empty.
Variables ¶
var LightclientABI = LightclientMetaData.ABI
LightclientABI is the input ABI used to generate the binding from. Deprecated: Use LightclientMetaData.ABI instead.
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\":\"_getVk\",\"inputs\":[],\"outputs\":[{\"name\":\"vk\",\"type\":\"tuple\",\"internalType\":\"structIPlonkVerifier.VerifyingKey\",\"components\":[{\"name\":\"domainSize\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"numInputs\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"sigma0\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"sigma1\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"sigma2\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"sigma3\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"sigma4\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"q1\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"q2\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"q3\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"q4\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"qM12\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"qM34\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"qO\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"qC\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"qH1\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"qH2\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"qH3\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"qH4\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"qEcc\",\"type\":\"tuple\",\"internalType\":\"structBN254.G1Point\",\"components\":[{\"name\":\"x\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"},{\"name\":\"y\",\"type\":\"uint256\",\"internalType\":\"BN254.BaseField\"}]},{\"name\":\"g2LSB\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"g2MSB\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]}],\"stateMutability\":\"pure\"},{\"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 ¶
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 IPlonkVerifierVerifyingKey ¶ added in v0.0.36
type IPlonkVerifierVerifyingKey struct { DomainSize *big.Int NumInputs *big.Int Sigma0 BN254G1Point Sigma1 BN254G1Point Sigma2 BN254G1Point Sigma3 BN254G1Point Sigma4 BN254G1Point Q1 BN254G1Point Q2 BN254G1Point Q3 BN254G1Point Q4 BN254G1Point QM12 BN254G1Point QM34 BN254G1Point QO BN254G1Point QC BN254G1Point QH1 BN254G1Point QH2 BN254G1Point QH3 BN254G1Point QH4 BN254G1Point QEcc BN254G1Point G2LSB [32]byte G2MSB [32]byte }
IPlonkVerifierVerifyingKey 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 ¶
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 ¶
func (l *LightClientReader) IsHotShotLive(delayThreshold uint64) (bool, error)
func (*LightClientReader) IsHotShotLiveAtHeight ¶
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 ¶
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 ¶
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.35
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 ¶
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 ¶
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 ¶
GetStateHistoryCount is a free data retrieval call binding the contract method 0xf9e50d19.
Solidity: function getStateHistoryCount() view returns(uint256)
func (*LightclientCaller) GetVersion ¶
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) GetVk ¶ added in v0.0.36
func (_Lightclient *LightclientCaller) GetVk(opts *bind.CallOpts) (IPlonkVerifierVerifyingKey, error)
GetVk is a free data retrieval call binding the contract method 0x12173c2c.
Solidity: function _getVk() pure returns((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),(uint256,uint256),bytes32,bytes32) vk)
func (*LightclientCaller) IsPermissionedProverEnabled ¶
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 ¶
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 ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*LightclientCaller) PermissionedProver ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.35
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 ¶
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 ¶
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 ¶
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 ¶
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) GetVk ¶ added in v0.0.36
func (_Lightclient *LightclientCallerSession) GetVk() (IPlonkVerifierVerifyingKey, error)
GetVk is a free data retrieval call binding the contract method 0x12173c2c.
Solidity: function _getVk() pure returns((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),(uint256,uint256),bytes32,bytes32) vk)
func (*LightclientCallerSession) IsPermissionedProverEnabled ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type LightclientInitialized struct { Version uint64 Raw types.Log // Blockchain specific contextual infos }
LightclientInitialized represents a Initialized event raised by the Lightclient contract.
type LightclientInitializedIterator ¶
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 ¶
func (it *LightclientInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LightclientInitializedIterator) Error ¶
func (it *LightclientInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LightclientInitializedIterator) Next ¶
func (it *LightclientInitializedIterator) 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 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 ¶
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 ¶
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 ¶
func (it *LightclientOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LightclientOwnershipTransferredIterator) Error ¶
func (it *LightclientOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LightclientOwnershipTransferredIterator) Next ¶
func (it *LightclientOwnershipTransferredIterator) 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 LightclientPermissionedProverNotRequired ¶
type LightclientPermissionedProverNotRequired struct {
Raw types.Log // Blockchain specific contextual infos
}
LightclientPermissionedProverNotRequired represents a PermissionedProverNotRequired event raised by the Lightclient contract.
type LightclientPermissionedProverNotRequiredIterator ¶
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 ¶
func (it *LightclientPermissionedProverNotRequiredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LightclientPermissionedProverNotRequiredIterator) Error ¶
func (it *LightclientPermissionedProverNotRequiredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LightclientPermissionedProverNotRequiredIterator) Next ¶
func (it *LightclientPermissionedProverNotRequiredIterator) 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 LightclientPermissionedProverRequired ¶
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 ¶
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 ¶
func (it *LightclientPermissionedProverRequiredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LightclientPermissionedProverRequiredIterator) Error ¶
func (it *LightclientPermissionedProverRequiredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LightclientPermissionedProverRequiredIterator) Next ¶
func (it *LightclientPermissionedProverRequiredIterator) 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 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.35
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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) GetVk ¶ added in v0.0.36
func (_Lightclient *LightclientSession) GetVk() (IPlonkVerifierVerifyingKey, error)
GetVk is a free data retrieval call binding the contract method 0x12173c2c.
Solidity: function _getVk() pure returns((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),(uint256,uint256),bytes32,bytes32) vk)
func (*LightclientSession) Initialize ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (it *LightclientUpgradeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LightclientUpgradeIterator) Error ¶
func (it *LightclientUpgradeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LightclientUpgradeIterator) Next ¶
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 ¶
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 ¶
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 ¶
func (it *LightclientUpgradedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LightclientUpgradedIterator) Error ¶
func (it *LightclientUpgradedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LightclientUpgradedIterator) Next ¶
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.