lightclientmock

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

This file contains functions that help people interact with light client mock contract.

Index

Constants

This section is empty.

Variables

View Source
var LightclientmockABI = LightclientmockMetaData.ABI

LightclientmockABI is the input ABI used to generate the binding from. Deprecated: Use LightclientmockMetaData.ABI instead.

View Source
var LightclientmockMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"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\":\"maxHistorySeconds\",\"type\":\"uint32\",\"internalType\":\"uint32\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"UPGRADE_INTERFACE_VERSION\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"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\":\"threshold\",\"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\":\"setFinalizedState\",\"inputs\":[{\"name\":\"state\",\"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\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setHotShotDownSince\",\"inputs\":[{\"name\":\"l1Height\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setHotShotUp\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPermissionedProver\",\"inputs\":[{\"name\":\"prover\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setStateHistory\",\"inputs\":[{\"name\":\"_stateHistoryCommitments\",\"type\":\"tuple[]\",\"internalType\":\"structLightClient.StateHistoryCommitment[]\",\"components\":[{\"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\"}]}],\"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\":[]}]",
}

LightclientmockMetaData contains all meta data concerning the Lightclientmock contract.

Functions

func FreezeL1Height

func FreezeL1Height(t *testing.T, client bind.ContractBackend, contractAddress common.Address, txOpts *bind.TransactOpts) error

func IsHotShotLive

func IsHotShotLive(t *testing.T, client bind.ContractBackend, contractAddress common.Address, threshold uint64) (bool, error)

func UnfreezeL1Height

func UnfreezeL1Height(t *testing.T, client bind.ContractBackend, contractAddress common.Address, txOpts *bind.TransactOpts) error

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 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 LightClientStateHistoryCommitment added in v0.0.24

type LightClientStateHistoryCommitment struct {
	L1BlockHeight        uint64
	L1BlockTimestamp     uint64
	HotShotBlockHeight   uint64
	HotShotBlockCommRoot *big.Int
}

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

type Lightclientmock

type Lightclientmock struct {
	LightclientmockCaller     // Read-only binding to the contract
	LightclientmockTransactor // Write-only binding to the contract
	LightclientmockFilterer   // Log filterer for contract events
}

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

func NewLightclientmock

func NewLightclientmock(address common.Address, backend bind.ContractBackend) (*Lightclientmock, error)

NewLightclientmock creates a new instance of Lightclientmock, bound to a specific deployed contract.

type LightclientmockCaller

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

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

func NewLightclientmockCaller

func NewLightclientmockCaller(address common.Address, caller bind.ContractCaller) (*LightclientmockCaller, error)

NewLightclientmockCaller creates a new read-only instance of Lightclientmock, bound to a specific deployed contract.

func (*LightclientmockCaller) FinalizedState added in v0.0.24

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) GenesisStakeTableState added in v0.0.24

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) GenesisState added in v0.0.24

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) GetHotShotCommitment

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) GetStateHistoryCount added in v0.0.24

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) GetVersion

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) IsPermissionedProverEnabled added in v0.0.24

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) LagOverEscapeHatchThreshold

func (_Lightclientmock *LightclientmockCaller) LagOverEscapeHatchThreshold(opts *bind.CallOpts, blockNumber *big.Int, threshold *big.Int) (bool, error)

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

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

func (*LightclientmockCaller) Owner

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) PermissionedProver

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) ProxiableUUID

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) StateHistoryCommitments added in v0.0.24

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) StateHistoryFirstIndex added in v0.0.24

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) StateHistoryRetentionPeriod added in v0.0.24

func (_Lightclientmock *LightclientmockCaller) 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 (*LightclientmockCaller) UPGRADEINTERFACEVERSION

func (_Lightclientmock *LightclientmockCaller) 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 LightclientmockCallerRaw

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

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

func (*LightclientmockCallerRaw) Call

func (_Lightclientmock *LightclientmockCallerRaw) 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 LightclientmockCallerSession

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

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

func (*LightclientmockCallerSession) FinalizedState added in v0.0.24

func (_Lightclientmock *LightclientmockCallerSession) 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 (*LightclientmockCallerSession) GenesisStakeTableState added in v0.0.24

func (_Lightclientmock *LightclientmockCallerSession) 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 (*LightclientmockCallerSession) GenesisState added in v0.0.24

func (_Lightclientmock *LightclientmockCallerSession) 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 (*LightclientmockCallerSession) GetHotShotCommitment

func (_Lightclientmock *LightclientmockCallerSession) 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 (*LightclientmockCallerSession) GetStateHistoryCount added in v0.0.24

func (_Lightclientmock *LightclientmockCallerSession) GetStateHistoryCount() (*big.Int, error)

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

Solidity: function getStateHistoryCount() view returns(uint256)

func (*LightclientmockCallerSession) GetVersion

func (_Lightclientmock *LightclientmockCallerSession) 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 (*LightclientmockCallerSession) IsPermissionedProverEnabled added in v0.0.24

func (_Lightclientmock *LightclientmockCallerSession) IsPermissionedProverEnabled() (bool, error)

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

Solidity: function isPermissionedProverEnabled() view returns(bool)

func (*LightclientmockCallerSession) LagOverEscapeHatchThreshold

func (_Lightclientmock *LightclientmockCallerSession) LagOverEscapeHatchThreshold(blockNumber *big.Int, threshold *big.Int) (bool, error)

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

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

func (*LightclientmockCallerSession) Owner

func (_Lightclientmock *LightclientmockCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LightclientmockCallerSession) PermissionedProver

func (_Lightclientmock *LightclientmockCallerSession) PermissionedProver() (common.Address, error)

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

Solidity: function permissionedProver() view returns(address)

func (*LightclientmockCallerSession) ProxiableUUID

func (_Lightclientmock *LightclientmockCallerSession) ProxiableUUID() ([32]byte, error)

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

Solidity: function proxiableUUID() view returns(bytes32)

func (*LightclientmockCallerSession) StateHistoryCommitments added in v0.0.24

func (_Lightclientmock *LightclientmockCallerSession) 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 (*LightclientmockCallerSession) StateHistoryFirstIndex added in v0.0.24

func (_Lightclientmock *LightclientmockCallerSession) StateHistoryFirstIndex() (uint64, error)

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

Solidity: function stateHistoryFirstIndex() view returns(uint64)

func (*LightclientmockCallerSession) StateHistoryRetentionPeriod added in v0.0.24

func (_Lightclientmock *LightclientmockCallerSession) StateHistoryRetentionPeriod() (uint32, error)

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

Solidity: function stateHistoryRetentionPeriod() view returns(uint32)

func (*LightclientmockCallerSession) UPGRADEINTERFACEVERSION

func (_Lightclientmock *LightclientmockCallerSession) UPGRADEINTERFACEVERSION() (string, error)

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

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

type LightclientmockFilterer

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

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

func NewLightclientmockFilterer

func NewLightclientmockFilterer(address common.Address, filterer bind.ContractFilterer) (*LightclientmockFilterer, error)

NewLightclientmockFilterer creates a new log filterer instance of Lightclientmock, bound to a specific deployed contract.

func (*LightclientmockFilterer) FilterInitialized

func (_Lightclientmock *LightclientmockFilterer) FilterInitialized(opts *bind.FilterOpts) (*LightclientmockInitializedIterator, error)

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

Solidity: event Initialized(uint64 version)

func (*LightclientmockFilterer) FilterNewState

func (_Lightclientmock *LightclientmockFilterer) FilterNewState(opts *bind.FilterOpts, viewNum []uint64, blockHeight []uint64) (*LightclientmockNewStateIterator, 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 (*LightclientmockFilterer) FilterOwnershipTransferred

func (_Lightclientmock *LightclientmockFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*LightclientmockOwnershipTransferredIterator, error)

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

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

func (*LightclientmockFilterer) FilterPermissionedProverNotRequired

func (_Lightclientmock *LightclientmockFilterer) FilterPermissionedProverNotRequired(opts *bind.FilterOpts) (*LightclientmockPermissionedProverNotRequiredIterator, error)

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

Solidity: event PermissionedProverNotRequired()

func (*LightclientmockFilterer) FilterPermissionedProverRequired

func (_Lightclientmock *LightclientmockFilterer) FilterPermissionedProverRequired(opts *bind.FilterOpts) (*LightclientmockPermissionedProverRequiredIterator, error)

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

Solidity: event PermissionedProverRequired(address permissionedProver)

func (*LightclientmockFilterer) FilterUpgrade

func (_Lightclientmock *LightclientmockFilterer) FilterUpgrade(opts *bind.FilterOpts) (*LightclientmockUpgradeIterator, error)

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

Solidity: event Upgrade(address implementation)

func (*LightclientmockFilterer) FilterUpgraded

func (_Lightclientmock *LightclientmockFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*LightclientmockUpgradedIterator, error)

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

Solidity: event Upgraded(address indexed implementation)

func (*LightclientmockFilterer) ParseInitialized

func (_Lightclientmock *LightclientmockFilterer) ParseInitialized(log types.Log) (*LightclientmockInitialized, error)

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

Solidity: event Initialized(uint64 version)

func (*LightclientmockFilterer) ParseNewState

func (_Lightclientmock *LightclientmockFilterer) ParseNewState(log types.Log) (*LightclientmockNewState, error)

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

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

func (*LightclientmockFilterer) ParseOwnershipTransferred

func (_Lightclientmock *LightclientmockFilterer) ParseOwnershipTransferred(log types.Log) (*LightclientmockOwnershipTransferred, error)

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

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

func (*LightclientmockFilterer) ParsePermissionedProverNotRequired

func (_Lightclientmock *LightclientmockFilterer) ParsePermissionedProverNotRequired(log types.Log) (*LightclientmockPermissionedProverNotRequired, error)

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

Solidity: event PermissionedProverNotRequired()

func (*LightclientmockFilterer) ParsePermissionedProverRequired

func (_Lightclientmock *LightclientmockFilterer) ParsePermissionedProverRequired(log types.Log) (*LightclientmockPermissionedProverRequired, error)

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

Solidity: event PermissionedProverRequired(address permissionedProver)

func (*LightclientmockFilterer) ParseUpgrade

func (_Lightclientmock *LightclientmockFilterer) ParseUpgrade(log types.Log) (*LightclientmockUpgrade, error)

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

Solidity: event Upgrade(address implementation)

func (*LightclientmockFilterer) ParseUpgraded

func (_Lightclientmock *LightclientmockFilterer) ParseUpgraded(log types.Log) (*LightclientmockUpgraded, error)

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

Solidity: event Upgraded(address indexed implementation)

func (*LightclientmockFilterer) WatchInitialized

func (_Lightclientmock *LightclientmockFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *LightclientmockInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint64 version)

func (*LightclientmockFilterer) WatchNewState

func (_Lightclientmock *LightclientmockFilterer) WatchNewState(opts *bind.WatchOpts, sink chan<- *LightclientmockNewState, 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 (*LightclientmockFilterer) WatchOwnershipTransferred

func (_Lightclientmock *LightclientmockFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *LightclientmockOwnershipTransferred, 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 (*LightclientmockFilterer) WatchPermissionedProverNotRequired

func (_Lightclientmock *LightclientmockFilterer) WatchPermissionedProverNotRequired(opts *bind.WatchOpts, sink chan<- *LightclientmockPermissionedProverNotRequired) (event.Subscription, error)

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

Solidity: event PermissionedProverNotRequired()

func (*LightclientmockFilterer) WatchPermissionedProverRequired

func (_Lightclientmock *LightclientmockFilterer) WatchPermissionedProverRequired(opts *bind.WatchOpts, sink chan<- *LightclientmockPermissionedProverRequired) (event.Subscription, error)

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

Solidity: event PermissionedProverRequired(address permissionedProver)

func (*LightclientmockFilterer) WatchUpgrade

func (_Lightclientmock *LightclientmockFilterer) WatchUpgrade(opts *bind.WatchOpts, sink chan<- *LightclientmockUpgrade) (event.Subscription, error)

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

Solidity: event Upgrade(address implementation)

func (*LightclientmockFilterer) WatchUpgraded

func (_Lightclientmock *LightclientmockFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *LightclientmockUpgraded, 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 LightclientmockInitialized

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

LightclientmockInitialized represents a Initialized event raised by the Lightclientmock contract.

type LightclientmockInitializedIterator

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

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

func (*LightclientmockInitializedIterator) Close

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

func (*LightclientmockInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientmockInitializedIterator) Next

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 LightclientmockNewState

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

LightclientmockNewState represents a NewState event raised by the Lightclientmock contract.

type LightclientmockNewStateIterator

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

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

func (*LightclientmockNewStateIterator) Close

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

func (*LightclientmockNewStateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientmockNewStateIterator) Next

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 LightclientmockOwnershipTransferred

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

LightclientmockOwnershipTransferred represents a OwnershipTransferred event raised by the Lightclientmock contract.

type LightclientmockOwnershipTransferredIterator

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

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

func (*LightclientmockOwnershipTransferredIterator) Close

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

func (*LightclientmockOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientmockOwnershipTransferredIterator) Next

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 LightclientmockPermissionedProverNotRequired

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

LightclientmockPermissionedProverNotRequired represents a PermissionedProverNotRequired event raised by the Lightclientmock contract.

type LightclientmockPermissionedProverNotRequiredIterator

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

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

func (*LightclientmockPermissionedProverNotRequiredIterator) Close

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

func (*LightclientmockPermissionedProverNotRequiredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientmockPermissionedProverNotRequiredIterator) Next

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 LightclientmockPermissionedProverRequired

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

LightclientmockPermissionedProverRequired represents a PermissionedProverRequired event raised by the Lightclientmock contract.

type LightclientmockPermissionedProverRequiredIterator

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

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

func (*LightclientmockPermissionedProverRequiredIterator) Close

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

func (*LightclientmockPermissionedProverRequiredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientmockPermissionedProverRequiredIterator) Next

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 LightclientmockRaw

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

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

func (*LightclientmockRaw) Call

func (_Lightclientmock *LightclientmockRaw) 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 (*LightclientmockRaw) Transact

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

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

func (*LightclientmockRaw) Transfer

func (_Lightclientmock *LightclientmockRaw) 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 LightclientmockSession

type LightclientmockSession struct {
	Contract     *Lightclientmock  // 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
}

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

func (*LightclientmockSession) DisablePermissionedProverMode

func (_Lightclientmock *LightclientmockSession) DisablePermissionedProverMode() (*types.Transaction, error)

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

Solidity: function disablePermissionedProverMode() returns()

func (*LightclientmockSession) FinalizedState added in v0.0.24

func (_Lightclientmock *LightclientmockSession) 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 (*LightclientmockSession) GenesisStakeTableState added in v0.0.24

func (_Lightclientmock *LightclientmockSession) 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 (*LightclientmockSession) GenesisState added in v0.0.24

func (_Lightclientmock *LightclientmockSession) 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 (*LightclientmockSession) GetHotShotCommitment

func (_Lightclientmock *LightclientmockSession) 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 (*LightclientmockSession) GetStateHistoryCount added in v0.0.24

func (_Lightclientmock *LightclientmockSession) GetStateHistoryCount() (*big.Int, error)

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

Solidity: function getStateHistoryCount() view returns(uint256)

func (*LightclientmockSession) GetVersion

func (_Lightclientmock *LightclientmockSession) 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 (*LightclientmockSession) Initialize

func (_Lightclientmock *LightclientmockSession) 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 (*LightclientmockSession) IsPermissionedProverEnabled added in v0.0.24

func (_Lightclientmock *LightclientmockSession) IsPermissionedProverEnabled() (bool, error)

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

Solidity: function isPermissionedProverEnabled() view returns(bool)

func (*LightclientmockSession) LagOverEscapeHatchThreshold

func (_Lightclientmock *LightclientmockSession) LagOverEscapeHatchThreshold(blockNumber *big.Int, threshold *big.Int) (bool, error)

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

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

func (*LightclientmockSession) NewFinalizedState

func (_Lightclientmock *LightclientmockSession) 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 (*LightclientmockSession) Owner

func (_Lightclientmock *LightclientmockSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LightclientmockSession) PermissionedProver

func (_Lightclientmock *LightclientmockSession) PermissionedProver() (common.Address, error)

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

Solidity: function permissionedProver() view returns(address)

func (*LightclientmockSession) ProxiableUUID

func (_Lightclientmock *LightclientmockSession) ProxiableUUID() ([32]byte, error)

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

Solidity: function proxiableUUID() view returns(bytes32)

func (*LightclientmockSession) RenounceOwnership

func (_Lightclientmock *LightclientmockSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*LightclientmockSession) SetFinalizedState

func (_Lightclientmock *LightclientmockSession) SetFinalizedState(state LightClientLightClientState) (*types.Transaction, error)

SetFinalizedState is a paid mutator transaction binding the contract method 0xb5adea3c.

Solidity: function setFinalizedState((uint64,uint64,uint256) state) returns()

func (*LightclientmockSession) SetHotShotDownSince

func (_Lightclientmock *LightclientmockSession) SetHotShotDownSince(l1Height *big.Int) (*types.Transaction, error)

SetHotShotDownSince is a paid mutator transaction binding the contract method 0x2d52aad6.

Solidity: function setHotShotDownSince(uint256 l1Height) returns()

func (*LightclientmockSession) SetHotShotUp

func (_Lightclientmock *LightclientmockSession) SetHotShotUp() (*types.Transaction, error)

SetHotShotUp is a paid mutator transaction binding the contract method 0xc8e5e498.

Solidity: function setHotShotUp() returns()

func (*LightclientmockSession) SetPermissionedProver

func (_Lightclientmock *LightclientmockSession) 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 (*LightclientmockSession) SetStateHistory added in v0.0.24

func (_Lightclientmock *LightclientmockSession) SetStateHistory(_stateHistoryCommitments []LightClientStateHistoryCommitment) (*types.Transaction, error)

SetStateHistory is a paid mutator transaction binding the contract method 0xf5676160.

Solidity: function setStateHistory((uint64,uint64,uint64,uint256)[] _stateHistoryCommitments) returns()

func (*LightclientmockSession) SetstateHistoryRetentionPeriod added in v0.0.24

func (_Lightclientmock *LightclientmockSession) SetstateHistoryRetentionPeriod(historySeconds uint32) (*types.Transaction, error)

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

Solidity: function setstateHistoryRetentionPeriod(uint32 historySeconds) returns()

func (*LightclientmockSession) StateHistoryCommitments added in v0.0.24

func (_Lightclientmock *LightclientmockSession) 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 (*LightclientmockSession) StateHistoryFirstIndex added in v0.0.24

func (_Lightclientmock *LightclientmockSession) StateHistoryFirstIndex() (uint64, error)

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

Solidity: function stateHistoryFirstIndex() view returns(uint64)

func (*LightclientmockSession) StateHistoryRetentionPeriod added in v0.0.24

func (_Lightclientmock *LightclientmockSession) StateHistoryRetentionPeriod() (uint32, error)

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

Solidity: function stateHistoryRetentionPeriod() view returns(uint32)

func (*LightclientmockSession) TransferOwnership

func (_Lightclientmock *LightclientmockSession) 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 (*LightclientmockSession) UPGRADEINTERFACEVERSION

func (_Lightclientmock *LightclientmockSession) UPGRADEINTERFACEVERSION() (string, error)

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

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

func (*LightclientmockSession) UpgradeToAndCall

func (_Lightclientmock *LightclientmockSession) 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 LightclientmockTransactor

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

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

func NewLightclientmockTransactor

func NewLightclientmockTransactor(address common.Address, transactor bind.ContractTransactor) (*LightclientmockTransactor, error)

NewLightclientmockTransactor creates a new write-only instance of Lightclientmock, bound to a specific deployed contract.

func (*LightclientmockTransactor) DisablePermissionedProverMode

func (_Lightclientmock *LightclientmockTransactor) DisablePermissionedProverMode(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function disablePermissionedProverMode() returns()

func (*LightclientmockTransactor) Initialize

func (_Lightclientmock *LightclientmockTransactor) 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 (*LightclientmockTransactor) NewFinalizedState

func (_Lightclientmock *LightclientmockTransactor) 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 (*LightclientmockTransactor) RenounceOwnership

func (_Lightclientmock *LightclientmockTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*LightclientmockTransactor) SetFinalizedState

func (_Lightclientmock *LightclientmockTransactor) SetFinalizedState(opts *bind.TransactOpts, state LightClientLightClientState) (*types.Transaction, error)

SetFinalizedState is a paid mutator transaction binding the contract method 0xb5adea3c.

Solidity: function setFinalizedState((uint64,uint64,uint256) state) returns()

func (*LightclientmockTransactor) SetHotShotDownSince

func (_Lightclientmock *LightclientmockTransactor) SetHotShotDownSince(opts *bind.TransactOpts, l1Height *big.Int) (*types.Transaction, error)

SetHotShotDownSince is a paid mutator transaction binding the contract method 0x2d52aad6.

Solidity: function setHotShotDownSince(uint256 l1Height) returns()

func (*LightclientmockTransactor) SetHotShotUp

func (_Lightclientmock *LightclientmockTransactor) SetHotShotUp(opts *bind.TransactOpts) (*types.Transaction, error)

SetHotShotUp is a paid mutator transaction binding the contract method 0xc8e5e498.

Solidity: function setHotShotUp() returns()

func (*LightclientmockTransactor) SetPermissionedProver

func (_Lightclientmock *LightclientmockTransactor) 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 (*LightclientmockTransactor) SetStateHistory added in v0.0.24

func (_Lightclientmock *LightclientmockTransactor) SetStateHistory(opts *bind.TransactOpts, _stateHistoryCommitments []LightClientStateHistoryCommitment) (*types.Transaction, error)

SetStateHistory is a paid mutator transaction binding the contract method 0xf5676160.

Solidity: function setStateHistory((uint64,uint64,uint64,uint256)[] _stateHistoryCommitments) returns()

func (*LightclientmockTransactor) SetstateHistoryRetentionPeriod added in v0.0.24

func (_Lightclientmock *LightclientmockTransactor) 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 (*LightclientmockTransactor) TransferOwnership

func (_Lightclientmock *LightclientmockTransactor) 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 (*LightclientmockTransactor) UpgradeToAndCall

func (_Lightclientmock *LightclientmockTransactor) 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 LightclientmockTransactorRaw

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

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

func (*LightclientmockTransactorRaw) Transact

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

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

func (*LightclientmockTransactorRaw) Transfer

func (_Lightclientmock *LightclientmockTransactorRaw) 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 LightclientmockTransactorSession

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

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

func (*LightclientmockTransactorSession) DisablePermissionedProverMode

func (_Lightclientmock *LightclientmockTransactorSession) DisablePermissionedProverMode() (*types.Transaction, error)

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

Solidity: function disablePermissionedProverMode() returns()

func (*LightclientmockTransactorSession) Initialize

func (_Lightclientmock *LightclientmockTransactorSession) 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 (*LightclientmockTransactorSession) NewFinalizedState

func (_Lightclientmock *LightclientmockTransactorSession) 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 (*LightclientmockTransactorSession) RenounceOwnership

func (_Lightclientmock *LightclientmockTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*LightclientmockTransactorSession) SetFinalizedState

func (_Lightclientmock *LightclientmockTransactorSession) SetFinalizedState(state LightClientLightClientState) (*types.Transaction, error)

SetFinalizedState is a paid mutator transaction binding the contract method 0xb5adea3c.

Solidity: function setFinalizedState((uint64,uint64,uint256) state) returns()

func (*LightclientmockTransactorSession) SetHotShotDownSince

func (_Lightclientmock *LightclientmockTransactorSession) SetHotShotDownSince(l1Height *big.Int) (*types.Transaction, error)

SetHotShotDownSince is a paid mutator transaction binding the contract method 0x2d52aad6.

Solidity: function setHotShotDownSince(uint256 l1Height) returns()

func (*LightclientmockTransactorSession) SetHotShotUp

func (_Lightclientmock *LightclientmockTransactorSession) SetHotShotUp() (*types.Transaction, error)

SetHotShotUp is a paid mutator transaction binding the contract method 0xc8e5e498.

Solidity: function setHotShotUp() returns()

func (*LightclientmockTransactorSession) SetPermissionedProver

func (_Lightclientmock *LightclientmockTransactorSession) 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 (*LightclientmockTransactorSession) SetStateHistory added in v0.0.24

func (_Lightclientmock *LightclientmockTransactorSession) SetStateHistory(_stateHistoryCommitments []LightClientStateHistoryCommitment) (*types.Transaction, error)

SetStateHistory is a paid mutator transaction binding the contract method 0xf5676160.

Solidity: function setStateHistory((uint64,uint64,uint64,uint256)[] _stateHistoryCommitments) returns()

func (*LightclientmockTransactorSession) SetstateHistoryRetentionPeriod added in v0.0.24

func (_Lightclientmock *LightclientmockTransactorSession) SetstateHistoryRetentionPeriod(historySeconds uint32) (*types.Transaction, error)

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

Solidity: function setstateHistoryRetentionPeriod(uint32 historySeconds) returns()

func (*LightclientmockTransactorSession) TransferOwnership

func (_Lightclientmock *LightclientmockTransactorSession) 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 (*LightclientmockTransactorSession) UpgradeToAndCall

func (_Lightclientmock *LightclientmockTransactorSession) 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 LightclientmockUpgrade

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

LightclientmockUpgrade represents a Upgrade event raised by the Lightclientmock contract.

type LightclientmockUpgradeIterator

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

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

func (*LightclientmockUpgradeIterator) Close

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

func (*LightclientmockUpgradeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientmockUpgradeIterator) Next

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 LightclientmockUpgraded

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

LightclientmockUpgraded represents a Upgraded event raised by the Lightclientmock contract.

type LightclientmockUpgradedIterator

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

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

func (*LightclientmockUpgradedIterator) Close

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

func (*LightclientmockUpgradedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LightclientmockUpgradedIterator) Next

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