Documentation
¶
Index ¶
- Variables
- func ABIEncodePublicKey(publicKey []byte) []byte
- func ABIEncodeSignature(signature []byte) []byte
- type ILightNodeState
- type LedgerInfo
- type LedgerInfoCaller
- func (_LedgerInfo *LedgerInfoCaller) AggregateVerifyBLS(opts *bind.CallOpts, signature []byte, message []byte, publicKeys [][]byte) (bool, error)
- func (_LedgerInfo *LedgerInfoCaller) BatchVerifyBLS(opts *bind.CallOpts, signatures [][]byte, message []byte, publicKeys [][]byte) (bool, error)
- func (_LedgerInfo *LedgerInfoCaller) BcsEncode(opts *bind.CallOpts, ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) ([]byte, error)
- func (_LedgerInfo *LedgerInfoCaller) CallPrecompile(opts *bind.CallOpts, precompile common.Address, input []byte, ...) ([]byte, error)
- func (_LedgerInfo *LedgerInfoCaller) ExpandMessageXmd(opts *bind.CallOpts, message []byte) ([]byte, error)
- func (_LedgerInfo *LedgerInfoCaller) HashToCurve(opts *bind.CallOpts, message []byte) ([]byte, error)
- func (_LedgerInfo *LedgerInfoCaller) HashToField(opts *bind.CallOpts, message []byte) ([]byte, error)
- func (_LedgerInfo *LedgerInfoCaller) VerifyBLS(opts *bind.CallOpts, signature []byte, message []byte, publicKey []byte) (bool, error)
- func (_LedgerInfo *LedgerInfoCaller) VerifyBLSHashed(opts *bind.CallOpts, signature []byte, g2Message []byte, publicKey []byte) (bool, error)
- type LedgerInfoCallerRaw
- type LedgerInfoCallerSession
- func (_LedgerInfo *LedgerInfoCallerSession) AggregateVerifyBLS(signature []byte, message []byte, publicKeys [][]byte) (bool, error)
- func (_LedgerInfo *LedgerInfoCallerSession) BatchVerifyBLS(signatures [][]byte, message []byte, publicKeys [][]byte) (bool, error)
- func (_LedgerInfo *LedgerInfoCallerSession) BcsEncode(ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) ([]byte, error)
- func (_LedgerInfo *LedgerInfoCallerSession) CallPrecompile(precompile common.Address, input []byte, outputLen *big.Int) ([]byte, error)
- func (_LedgerInfo *LedgerInfoCallerSession) ExpandMessageXmd(message []byte) ([]byte, error)
- func (_LedgerInfo *LedgerInfoCallerSession) HashToCurve(message []byte) ([]byte, error)
- func (_LedgerInfo *LedgerInfoCallerSession) HashToField(message []byte) ([]byte, error)
- func (_LedgerInfo *LedgerInfoCallerSession) VerifyBLS(signature []byte, message []byte, publicKey []byte) (bool, error)
- func (_LedgerInfo *LedgerInfoCallerSession) VerifyBLSHashed(signature []byte, g2Message []byte, publicKey []byte) (bool, error)
- type LedgerInfoFilterer
- type LedgerInfoLibDecision
- type LedgerInfoLibEpochState
- type LedgerInfoLibLedgerInfoWithSignatures
- type LedgerInfoLibValidatorInfo
- type LedgerInfoRaw
- func (_LedgerInfo *LedgerInfoRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_LedgerInfo *LedgerInfoRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_LedgerInfo *LedgerInfoRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type LedgerInfoSession
- func (_LedgerInfo *LedgerInfoSession) AggregateVerifyBLS(signature []byte, message []byte, publicKeys [][]byte) (bool, error)
- func (_LedgerInfo *LedgerInfoSession) BatchVerifyBLS(signatures [][]byte, message []byte, publicKeys [][]byte) (bool, error)
- func (_LedgerInfo *LedgerInfoSession) BcsEncode(ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) ([]byte, error)
- func (_LedgerInfo *LedgerInfoSession) CallPrecompile(precompile common.Address, input []byte, outputLen *big.Int) ([]byte, error)
- func (_LedgerInfo *LedgerInfoSession) ExpandMessageXmd(message []byte) ([]byte, error)
- func (_LedgerInfo *LedgerInfoSession) HashToCurve(message []byte) ([]byte, error)
- func (_LedgerInfo *LedgerInfoSession) HashToField(message []byte) ([]byte, error)
- func (_LedgerInfo *LedgerInfoSession) VerifyBLS(signature []byte, message []byte, publicKey []byte) (bool, error)
- func (_LedgerInfo *LedgerInfoSession) VerifyBLSHashed(signature []byte, g2Message []byte, publicKey []byte) (bool, error)
- type LedgerInfoTransactor
- type LedgerInfoTransactorRaw
- type LedgerInfoTransactorSession
- type LightNode
- type LightNodeCaller
- func (_LightNode *LightNodeCaller) ClientState(opts *bind.CallOpts) ([]byte, error)
- func (_LightNode *LightNodeCaller) HeaderHeight(opts *bind.CallOpts) (*big.Int, error)
- func (_LightNode *LightNodeCaller) NearestPivot(opts *bind.CallOpts, height *big.Int) (*big.Int, error)
- func (_LightNode *LightNodeCaller) State(opts *bind.CallOpts) (ILightNodeState, error)
- func (_LightNode *LightNodeCaller) VerifiableHeaderRange(opts *bind.CallOpts) (*big.Int, *big.Int, error)
- func (_LightNode *LightNodeCaller) VerifyProofData(opts *bind.CallOpts, _receiptProof []byte) (struct{ ... }, error)
- func (_LightNode *LightNodeCaller) VerifyReceiptProof(opts *bind.CallOpts, proof TypesReceiptProof) (bool, error)
- type LightNodeCallerRaw
- type LightNodeCallerSession
- func (_LightNode *LightNodeCallerSession) ClientState() ([]byte, error)
- func (_LightNode *LightNodeCallerSession) HeaderHeight() (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) NearestPivot(height *big.Int) (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) State() (ILightNodeState, error)
- func (_LightNode *LightNodeCallerSession) VerifiableHeaderRange() (*big.Int, *big.Int, error)
- func (_LightNode *LightNodeCallerSession) VerifyProofData(_receiptProof []byte) (struct{ ... }, error)
- func (_LightNode *LightNodeCallerSession) VerifyReceiptProof(proof TypesReceiptProof) (bool, error)
- type LightNodeFilterer
- type LightNodeRaw
- func (_LightNode *LightNodeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_LightNode *LightNodeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_LightNode *LightNodeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type LightNodeSession
- func (_LightNode *LightNodeSession) ClientState() ([]byte, error)
- func (_LightNode *LightNodeSession) HeaderHeight() (*big.Int, error)
- func (_LightNode *LightNodeSession) Initialize(controller common.Address, ledgerInfoUtil common.Address, ...) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) NearestPivot(height *big.Int) (*big.Int, error)
- func (_LightNode *LightNodeSession) RelayPOS(ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) RelayPOW(headers [][]byte) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) RemoveBlockHeader(limit *big.Int) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) State() (ILightNodeState, error)
- func (_LightNode *LightNodeSession) UpdateBlockHeader(_blockHeader []byte) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) UpdateLightClient(_data []byte) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) VerifiableHeaderRange() (*big.Int, *big.Int, error)
- func (_LightNode *LightNodeSession) VerifyProofData(_receiptProof []byte) (struct{ ... }, error)
- func (_LightNode *LightNodeSession) VerifyReceiptProof(proof TypesReceiptProof) (bool, error)
- type LightNodeTransactor
- func (_LightNode *LightNodeTransactor) Initialize(opts *bind.TransactOpts, controller common.Address, ...) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) RelayPOS(opts *bind.TransactOpts, ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) RelayPOW(opts *bind.TransactOpts, headers [][]byte) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) RemoveBlockHeader(opts *bind.TransactOpts, limit *big.Int) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) UpdateBlockHeader(opts *bind.TransactOpts, _blockHeader []byte) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) UpdateLightClient(opts *bind.TransactOpts, _data []byte) (*types.Transaction, error)
- type LightNodeTransactorRaw
- type LightNodeTransactorSession
- func (_LightNode *LightNodeTransactorSession) Initialize(controller common.Address, ledgerInfoUtil common.Address, ...) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) RelayPOS(ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) RelayPOW(headers [][]byte) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) RemoveBlockHeader(limit *big.Int) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) UpdateBlockHeader(_blockHeader []byte) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) UpdateLightClient(_data []byte) (*types.Transaction, error)
- type ProofLibNibblePath
- type ProofLibProofNode
- type Provable
- type ProvableCaller
- type ProvableCallerRaw
- type ProvableCallerSession
- type ProvableFilterer
- type ProvableRaw
- func (_Provable *ProvableRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Provable *ProvableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Provable *ProvableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ProvableSession
- type ProvableTransactor
- type ProvableTransactorRaw
- type ProvableTransactorSession
- type TypesReceiptProof
Constants ¶
This section is empty.
Variables ¶
var LedgerInfoABI = LedgerInfoMetaData.ABI
LedgerInfoABI is the input ABI used to generate the binding from. Deprecated: Use LedgerInfoMetaData.ABI instead.
var LedgerInfoMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"publicKeys\",\"type\":\"bytes[]\"}],\"name\":\"aggregateVerifyBLS\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"publicKeys\",\"type\":\"bytes[]\"}],\"name\":\"batchVerifyBLS\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"epoch\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"round\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"executedStateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"timestampUsecs\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"epoch\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"account\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"uncompressedPublicKey\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"vrfPublicKey\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"votingPower\",\"type\":\"uint64\"}],\"internalType\":\"structLedgerInfoLib.ValidatorInfo[]\",\"name\":\"validators\",\"type\":\"tuple[]\"},{\"internalType\":\"uint64\",\"name\":\"quorumVotingPower\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"totalVotingPower\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"vrfSeed\",\"type\":\"bytes\"}],\"internalType\":\"structLedgerInfoLib.EpochState\",\"name\":\"nextEpochState\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"}],\"internalType\":\"structLedgerInfoLib.Decision\",\"name\":\"pivot\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"consensusDataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"accounts\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes\",\"name\":\"aggregatedSignature\",\"type\":\"bytes\"}],\"internalType\":\"structLedgerInfoLib.LedgerInfoWithSignatures\",\"name\":\"ledgerInfo\",\"type\":\"tuple\"}],\"name\":\"bcsEncode\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"precompile\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"input\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"outputLen\",\"type\":\"uint256\"}],\"name\":\"callPrecompile\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"expandMessageXmd\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"hashToCurve\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"hashToField\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"}],\"name\":\"verifyBLS\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"g2Message\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"}],\"name\":\"verifyBLSHashed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
LedgerInfoMetaData contains all meta data concerning the LedgerInfo contract.
var LightNodeABI = LightNodeMetaData.ABI
LightNodeABI is the input ABI used to generate the binding from. Deprecated: Use LightNodeMetaData.ABI instead.
var LightNodeMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"clientState\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"headerHeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"height\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"controller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ledgerInfoUtil\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"mptVerify\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"epoch\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"account\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"uncompressedPublicKey\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"vrfPublicKey\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"votingPower\",\"type\":\"uint64\"}],\"internalType\":\"structLedgerInfoLib.ValidatorInfo[]\",\"name\":\"validators\",\"type\":\"tuple[]\"},{\"internalType\":\"uint64\",\"name\":\"quorumVotingPower\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"totalVotingPower\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"vrfSeed\",\"type\":\"bytes\"}],\"internalType\":\"structLedgerInfoLib.EpochState\",\"name\":\"committee\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"epoch\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"round\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"executedStateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"timestampUsecs\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"epoch\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"account\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"uncompressedPublicKey\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"vrfPublicKey\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"votingPower\",\"type\":\"uint64\"}],\"internalType\":\"structLedgerInfoLib.ValidatorInfo[]\",\"name\":\"validators\",\"type\":\"tuple[]\"},{\"internalType\":\"uint64\",\"name\":\"quorumVotingPower\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"totalVotingPower\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"vrfSeed\",\"type\":\"bytes\"}],\"internalType\":\"structLedgerInfoLib.EpochState\",\"name\":\"nextEpochState\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"}],\"internalType\":\"structLedgerInfoLib.Decision\",\"name\":\"pivot\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"consensusDataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"accounts\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes\",\"name\":\"aggregatedSignature\",\"type\":\"bytes\"}],\"internalType\":\"structLedgerInfoLib.LedgerInfoWithSignatures\",\"name\":\"ledgerInfo\",\"type\":\"tuple\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"height\",\"type\":\"uint256\"}],\"name\":\"nearestPivot\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"epoch\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"round\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"executedStateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"timestampUsecs\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"epoch\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"account\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"uncompressedPublicKey\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"vrfPublicKey\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"votingPower\",\"type\":\"uint64\"}],\"internalType\":\"structLedgerInfoLib.ValidatorInfo[]\",\"name\":\"validators\",\"type\":\"tuple[]\"},{\"internalType\":\"uint64\",\"name\":\"quorumVotingPower\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"totalVotingPower\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"vrfSeed\",\"type\":\"bytes\"}],\"internalType\":\"structLedgerInfoLib.EpochState\",\"name\":\"nextEpochState\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"}],\"internalType\":\"structLedgerInfoLib.Decision\",\"name\":\"pivot\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"consensusDataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"accounts\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes\",\"name\":\"aggregatedSignature\",\"type\":\"bytes\"}],\"internalType\":\"structLedgerInfoLib.LedgerInfoWithSignatures\",\"name\":\"ledgerInfo\",\"type\":\"tuple\"}],\"name\":\"relayPOS\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"headers\",\"type\":\"bytes[]\"}],\"name\":\"relayPOW\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"removeBlockHeader\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"state\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"round\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"earliestBlockNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"finalizedBlockNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blocks\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxBlocks\",\"type\":\"uint256\"}],\"internalType\":\"structILightNode.State\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_blockHeader\",\"type\":\"bytes\"}],\"name\":\"updateBlockHeader\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"updateLightClient\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"verifiableHeaderRange\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_receiptProof\",\"type\":\"bytes\"}],\"name\":\"verifyProofData\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"message\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"logs\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes[]\",\"name\":\"headers\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes\",\"name\":\"blockIndex\",\"type\":\"bytes\"},{\"components\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"nibbles\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"internalType\":\"structProofLib.NibblePath\",\"name\":\"path\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[16]\",\"name\":\"children\",\"type\":\"bytes32[16]\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structProofLib.ProofNode[]\",\"name\":\"blockProof\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes32\",\"name\":\"receiptsRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"index\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"receipt\",\"type\":\"bytes\"},{\"components\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"nibbles\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"internalType\":\"structProofLib.NibblePath\",\"name\":\"path\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[16]\",\"name\":\"children\",\"type\":\"bytes32[16]\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structProofLib.ProofNode[]\",\"name\":\"receiptProof\",\"type\":\"tuple[]\"}],\"internalType\":\"structTypes.ReceiptProof\",\"name\":\"proof\",\"type\":\"tuple\"}],\"name\":\"verifyReceiptProof\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
LightNodeMetaData contains all meta data concerning the LightNode contract.
var ProvableABI = ProvableMetaData.ABI
ProvableABI is the input ABI used to generate the binding from. Deprecated: Use ProvableMetaData.ABI instead.
var ProvableMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"key\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"valueHash\",\"type\":\"bytes32\"},{\"components\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"nibbles\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"internalType\":\"structProofLib.NibblePath\",\"name\":\"path\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[16]\",\"name\":\"children\",\"type\":\"bytes32[16]\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structProofLib.ProofNode[]\",\"name\":\"nodes\",\"type\":\"tuple[]\"}],\"name\":\"prove\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"blockIndex\",\"type\":\"bytes\"},{\"components\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"nibbles\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"internalType\":\"structProofLib.NibblePath\",\"name\":\"path\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[16]\",\"name\":\"children\",\"type\":\"bytes32[16]\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structProofLib.ProofNode[]\",\"name\":\"blockProof\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes32\",\"name\":\"receiptsRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"index\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"receipt\",\"type\":\"bytes\"},{\"components\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"nibbles\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"internalType\":\"structProofLib.NibblePath\",\"name\":\"path\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[16]\",\"name\":\"children\",\"type\":\"bytes32[16]\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structProofLib.ProofNode[]\",\"name\":\"receiptProof\",\"type\":\"tuple[]\"}],\"name\":\"proveReceipt\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
}
ProvableMetaData contains all meta data concerning the Provable contract.
Functions ¶
func ABIEncodePublicKey ¶ added in v1.5.8
func ABIEncodeSignature ¶ added in v1.5.8
Types ¶
type ILightNodeState ¶ added in v1.5.8
type ILightNodeState struct { Epoch *big.Int Round *big.Int EarliestBlockNumber *big.Int FinalizedBlockNumber *big.Int Blocks *big.Int MaxBlocks *big.Int }
ILightNodeState is an auto generated low-level Go binding around an user-defined struct.
type LedgerInfo ¶
type LedgerInfo struct { LedgerInfoCaller // Read-only binding to the contract LedgerInfoTransactor // Write-only binding to the contract LedgerInfoFilterer // Log filterer for contract events }
LedgerInfo is an auto generated Go binding around an Ethereum contract.
func NewLedgerInfo ¶
func NewLedgerInfo(address common.Address, backend bind.ContractBackend) (*LedgerInfo, error)
NewLedgerInfo creates a new instance of LedgerInfo, bound to a specific deployed contract.
type LedgerInfoCaller ¶
type LedgerInfoCaller struct {
// contains filtered or unexported fields
}
LedgerInfoCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewLedgerInfoCaller ¶
func NewLedgerInfoCaller(address common.Address, caller bind.ContractCaller) (*LedgerInfoCaller, error)
NewLedgerInfoCaller creates a new read-only instance of LedgerInfo, bound to a specific deployed contract.
func (*LedgerInfoCaller) AggregateVerifyBLS ¶ added in v1.5.8
func (_LedgerInfo *LedgerInfoCaller) AggregateVerifyBLS(opts *bind.CallOpts, signature []byte, message []byte, publicKeys [][]byte) (bool, error)
AggregateVerifyBLS is a free data retrieval call binding the contract method 0x4e10fde8.
Solidity: function aggregateVerifyBLS(bytes signature, bytes message, bytes[] publicKeys) view returns(bool)
func (*LedgerInfoCaller) BatchVerifyBLS ¶
func (_LedgerInfo *LedgerInfoCaller) BatchVerifyBLS(opts *bind.CallOpts, signatures [][]byte, message []byte, publicKeys [][]byte) (bool, error)
BatchVerifyBLS is a free data retrieval call binding the contract method 0xdd003b5f.
Solidity: function batchVerifyBLS(bytes[] signatures, bytes message, bytes[] publicKeys) view returns(bool)
func (*LedgerInfoCaller) BcsEncode ¶
func (_LedgerInfo *LedgerInfoCaller) BcsEncode(opts *bind.CallOpts, ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) ([]byte, error)
BcsEncode is a free data retrieval call binding the contract method 0x21b59768.
Solidity: function bcsEncode((uint64,uint64,bytes32,bytes32,uint64,uint64,(uint64,(bytes32,bytes,bytes,uint64)[],uint64,uint64,bytes),(bytes32,uint64),bytes32,bytes32[],bytes) ledgerInfo) pure returns(bytes)
func (*LedgerInfoCaller) CallPrecompile ¶
func (_LedgerInfo *LedgerInfoCaller) CallPrecompile(opts *bind.CallOpts, precompile common.Address, input []byte, outputLen *big.Int) ([]byte, error)
CallPrecompile is a free data retrieval call binding the contract method 0x2c283b15.
Solidity: function callPrecompile(address precompile, bytes input, uint256 outputLen) view returns(bytes)
func (*LedgerInfoCaller) ExpandMessageXmd ¶
func (_LedgerInfo *LedgerInfoCaller) ExpandMessageXmd(opts *bind.CallOpts, message []byte) ([]byte, error)
ExpandMessageXmd is a free data retrieval call binding the contract method 0xcb6415ad.
Solidity: function expandMessageXmd(bytes message) pure returns(bytes)
func (*LedgerInfoCaller) HashToCurve ¶
func (_LedgerInfo *LedgerInfoCaller) HashToCurve(opts *bind.CallOpts, message []byte) ([]byte, error)
HashToCurve is a free data retrieval call binding the contract method 0x95961df8.
Solidity: function hashToCurve(bytes message) view returns(bytes)
func (*LedgerInfoCaller) HashToField ¶
func (_LedgerInfo *LedgerInfoCaller) HashToField(opts *bind.CallOpts, message []byte) ([]byte, error)
HashToField is a free data retrieval call binding the contract method 0x1c5490f2.
Solidity: function hashToField(bytes message) view returns(bytes)
func (*LedgerInfoCaller) VerifyBLS ¶
func (_LedgerInfo *LedgerInfoCaller) VerifyBLS(opts *bind.CallOpts, signature []byte, message []byte, publicKey []byte) (bool, error)
VerifyBLS is a free data retrieval call binding the contract method 0xeb5f906b.
Solidity: function verifyBLS(bytes signature, bytes message, bytes publicKey) view returns(bool)
func (*LedgerInfoCaller) VerifyBLSHashed ¶
func (_LedgerInfo *LedgerInfoCaller) VerifyBLSHashed(opts *bind.CallOpts, signature []byte, g2Message []byte, publicKey []byte) (bool, error)
VerifyBLSHashed is a free data retrieval call binding the contract method 0xac1cab32.
Solidity: function verifyBLSHashed(bytes signature, bytes g2Message, bytes publicKey) view returns(bool)
type LedgerInfoCallerRaw ¶
type LedgerInfoCallerRaw struct {
Contract *LedgerInfoCaller // Generic read-only contract binding to access the raw methods on
}
LedgerInfoCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*LedgerInfoCallerRaw) Call ¶
func (_LedgerInfo *LedgerInfoCallerRaw) 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 LedgerInfoCallerSession ¶
type LedgerInfoCallerSession struct { Contract *LedgerInfoCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
LedgerInfoCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*LedgerInfoCallerSession) AggregateVerifyBLS ¶ added in v1.5.8
func (_LedgerInfo *LedgerInfoCallerSession) AggregateVerifyBLS(signature []byte, message []byte, publicKeys [][]byte) (bool, error)
AggregateVerifyBLS is a free data retrieval call binding the contract method 0x4e10fde8.
Solidity: function aggregateVerifyBLS(bytes signature, bytes message, bytes[] publicKeys) view returns(bool)
func (*LedgerInfoCallerSession) BatchVerifyBLS ¶
func (_LedgerInfo *LedgerInfoCallerSession) BatchVerifyBLS(signatures [][]byte, message []byte, publicKeys [][]byte) (bool, error)
BatchVerifyBLS is a free data retrieval call binding the contract method 0xdd003b5f.
Solidity: function batchVerifyBLS(bytes[] signatures, bytes message, bytes[] publicKeys) view returns(bool)
func (*LedgerInfoCallerSession) BcsEncode ¶
func (_LedgerInfo *LedgerInfoCallerSession) BcsEncode(ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) ([]byte, error)
BcsEncode is a free data retrieval call binding the contract method 0x21b59768.
Solidity: function bcsEncode((uint64,uint64,bytes32,bytes32,uint64,uint64,(uint64,(bytes32,bytes,bytes,uint64)[],uint64,uint64,bytes),(bytes32,uint64),bytes32,bytes32[],bytes) ledgerInfo) pure returns(bytes)
func (*LedgerInfoCallerSession) CallPrecompile ¶
func (_LedgerInfo *LedgerInfoCallerSession) CallPrecompile(precompile common.Address, input []byte, outputLen *big.Int) ([]byte, error)
CallPrecompile is a free data retrieval call binding the contract method 0x2c283b15.
Solidity: function callPrecompile(address precompile, bytes input, uint256 outputLen) view returns(bytes)
func (*LedgerInfoCallerSession) ExpandMessageXmd ¶
func (_LedgerInfo *LedgerInfoCallerSession) ExpandMessageXmd(message []byte) ([]byte, error)
ExpandMessageXmd is a free data retrieval call binding the contract method 0xcb6415ad.
Solidity: function expandMessageXmd(bytes message) pure returns(bytes)
func (*LedgerInfoCallerSession) HashToCurve ¶
func (_LedgerInfo *LedgerInfoCallerSession) HashToCurve(message []byte) ([]byte, error)
HashToCurve is a free data retrieval call binding the contract method 0x95961df8.
Solidity: function hashToCurve(bytes message) view returns(bytes)
func (*LedgerInfoCallerSession) HashToField ¶
func (_LedgerInfo *LedgerInfoCallerSession) HashToField(message []byte) ([]byte, error)
HashToField is a free data retrieval call binding the contract method 0x1c5490f2.
Solidity: function hashToField(bytes message) view returns(bytes)
func (*LedgerInfoCallerSession) VerifyBLS ¶
func (_LedgerInfo *LedgerInfoCallerSession) VerifyBLS(signature []byte, message []byte, publicKey []byte) (bool, error)
VerifyBLS is a free data retrieval call binding the contract method 0xeb5f906b.
Solidity: function verifyBLS(bytes signature, bytes message, bytes publicKey) view returns(bool)
func (*LedgerInfoCallerSession) VerifyBLSHashed ¶
func (_LedgerInfo *LedgerInfoCallerSession) VerifyBLSHashed(signature []byte, g2Message []byte, publicKey []byte) (bool, error)
VerifyBLSHashed is a free data retrieval call binding the contract method 0xac1cab32.
Solidity: function verifyBLSHashed(bytes signature, bytes g2Message, bytes publicKey) view returns(bool)
type LedgerInfoFilterer ¶
type LedgerInfoFilterer struct {
// contains filtered or unexported fields
}
LedgerInfoFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewLedgerInfoFilterer ¶
func NewLedgerInfoFilterer(address common.Address, filterer bind.ContractFilterer) (*LedgerInfoFilterer, error)
NewLedgerInfoFilterer creates a new log filterer instance of LedgerInfo, bound to a specific deployed contract.
type LedgerInfoLibDecision ¶
LedgerInfoLibDecision is an auto generated low-level Go binding around an user-defined struct.
type LedgerInfoLibEpochState ¶
type LedgerInfoLibEpochState struct { Epoch uint64 Validators []LedgerInfoLibValidatorInfo QuorumVotingPower uint64 TotalVotingPower uint64 VrfSeed []byte }
LedgerInfoLibEpochState is an auto generated low-level Go binding around an user-defined struct.
func ConvertCommittee ¶ added in v1.5.8
func ConvertCommittee(ledger *postypes.LedgerInfoWithSignatures) (LedgerInfoLibEpochState, bool)
type LedgerInfoLibLedgerInfoWithSignatures ¶
type LedgerInfoLibLedgerInfoWithSignatures struct { Epoch uint64 Round uint64 Id [32]byte ExecutedStateId [32]byte Version uint64 TimestampUsecs uint64 NextEpochState LedgerInfoLibEpochState Pivot LedgerInfoLibDecision ConsensusDataHash [32]byte Accounts [][32]byte AggregatedSignature []byte }
LedgerInfoLibLedgerInfoWithSignatures is an auto generated low-level Go binding around an user-defined struct.
func ConvertLedger ¶
func ConvertLedger(ledger *postypes.LedgerInfoWithSignatures) LedgerInfoLibLedgerInfoWithSignatures
type LedgerInfoLibValidatorInfo ¶
type LedgerInfoLibValidatorInfo struct { Account [32]byte UncompressedPublicKey []byte VrfPublicKey []byte VotingPower uint64 }
LedgerInfoLibValidatorInfo is an auto generated low-level Go binding around an user-defined struct.
type LedgerInfoRaw ¶
type LedgerInfoRaw struct {
Contract *LedgerInfo // Generic contract binding to access the raw methods on
}
LedgerInfoRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*LedgerInfoRaw) Call ¶
func (_LedgerInfo *LedgerInfoRaw) 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 (*LedgerInfoRaw) Transact ¶
func (_LedgerInfo *LedgerInfoRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*LedgerInfoRaw) Transfer ¶
func (_LedgerInfo *LedgerInfoRaw) 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 LedgerInfoSession ¶
type LedgerInfoSession struct { Contract *LedgerInfo // 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 }
LedgerInfoSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*LedgerInfoSession) AggregateVerifyBLS ¶ added in v1.5.8
func (_LedgerInfo *LedgerInfoSession) AggregateVerifyBLS(signature []byte, message []byte, publicKeys [][]byte) (bool, error)
AggregateVerifyBLS is a free data retrieval call binding the contract method 0x4e10fde8.
Solidity: function aggregateVerifyBLS(bytes signature, bytes message, bytes[] publicKeys) view returns(bool)
func (*LedgerInfoSession) BatchVerifyBLS ¶
func (_LedgerInfo *LedgerInfoSession) BatchVerifyBLS(signatures [][]byte, message []byte, publicKeys [][]byte) (bool, error)
BatchVerifyBLS is a free data retrieval call binding the contract method 0xdd003b5f.
Solidity: function batchVerifyBLS(bytes[] signatures, bytes message, bytes[] publicKeys) view returns(bool)
func (*LedgerInfoSession) BcsEncode ¶
func (_LedgerInfo *LedgerInfoSession) BcsEncode(ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) ([]byte, error)
BcsEncode is a free data retrieval call binding the contract method 0x21b59768.
Solidity: function bcsEncode((uint64,uint64,bytes32,bytes32,uint64,uint64,(uint64,(bytes32,bytes,bytes,uint64)[],uint64,uint64,bytes),(bytes32,uint64),bytes32,bytes32[],bytes) ledgerInfo) pure returns(bytes)
func (*LedgerInfoSession) CallPrecompile ¶
func (_LedgerInfo *LedgerInfoSession) CallPrecompile(precompile common.Address, input []byte, outputLen *big.Int) ([]byte, error)
CallPrecompile is a free data retrieval call binding the contract method 0x2c283b15.
Solidity: function callPrecompile(address precompile, bytes input, uint256 outputLen) view returns(bytes)
func (*LedgerInfoSession) ExpandMessageXmd ¶
func (_LedgerInfo *LedgerInfoSession) ExpandMessageXmd(message []byte) ([]byte, error)
ExpandMessageXmd is a free data retrieval call binding the contract method 0xcb6415ad.
Solidity: function expandMessageXmd(bytes message) pure returns(bytes)
func (*LedgerInfoSession) HashToCurve ¶
func (_LedgerInfo *LedgerInfoSession) HashToCurve(message []byte) ([]byte, error)
HashToCurve is a free data retrieval call binding the contract method 0x95961df8.
Solidity: function hashToCurve(bytes message) view returns(bytes)
func (*LedgerInfoSession) HashToField ¶
func (_LedgerInfo *LedgerInfoSession) HashToField(message []byte) ([]byte, error)
HashToField is a free data retrieval call binding the contract method 0x1c5490f2.
Solidity: function hashToField(bytes message) view returns(bytes)
func (*LedgerInfoSession) VerifyBLS ¶
func (_LedgerInfo *LedgerInfoSession) VerifyBLS(signature []byte, message []byte, publicKey []byte) (bool, error)
VerifyBLS is a free data retrieval call binding the contract method 0xeb5f906b.
Solidity: function verifyBLS(bytes signature, bytes message, bytes publicKey) view returns(bool)
func (*LedgerInfoSession) VerifyBLSHashed ¶
func (_LedgerInfo *LedgerInfoSession) VerifyBLSHashed(signature []byte, g2Message []byte, publicKey []byte) (bool, error)
VerifyBLSHashed is a free data retrieval call binding the contract method 0xac1cab32.
Solidity: function verifyBLSHashed(bytes signature, bytes g2Message, bytes publicKey) view returns(bool)
type LedgerInfoTransactor ¶
type LedgerInfoTransactor struct {
// contains filtered or unexported fields
}
LedgerInfoTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewLedgerInfoTransactor ¶
func NewLedgerInfoTransactor(address common.Address, transactor bind.ContractTransactor) (*LedgerInfoTransactor, error)
NewLedgerInfoTransactor creates a new write-only instance of LedgerInfo, bound to a specific deployed contract.
type LedgerInfoTransactorRaw ¶
type LedgerInfoTransactorRaw struct {
Contract *LedgerInfoTransactor // Generic write-only contract binding to access the raw methods on
}
LedgerInfoTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*LedgerInfoTransactorRaw) Transact ¶
func (_LedgerInfo *LedgerInfoTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*LedgerInfoTransactorRaw) Transfer ¶
func (_LedgerInfo *LedgerInfoTransactorRaw) 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 LedgerInfoTransactorSession ¶
type LedgerInfoTransactorSession struct { Contract *LedgerInfoTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
LedgerInfoTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type LightNode ¶
type LightNode struct { LightNodeCaller // Read-only binding to the contract LightNodeTransactor // Write-only binding to the contract LightNodeFilterer // Log filterer for contract events }
LightNode is an auto generated Go binding around an Ethereum contract.
func NewLightNode ¶
NewLightNode creates a new instance of LightNode, bound to a specific deployed contract.
type LightNodeCaller ¶
type LightNodeCaller struct {
// contains filtered or unexported fields
}
LightNodeCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewLightNodeCaller ¶
func NewLightNodeCaller(address common.Address, caller bind.ContractCaller) (*LightNodeCaller, error)
NewLightNodeCaller creates a new read-only instance of LightNode, bound to a specific deployed contract.
func (*LightNodeCaller) ClientState ¶
func (_LightNode *LightNodeCaller) ClientState(opts *bind.CallOpts) ([]byte, error)
ClientState is a free data retrieval call binding the contract method 0xbd3ce6b0.
Solidity: function clientState() view returns(bytes)
func (*LightNodeCaller) HeaderHeight ¶ added in v1.5.8
HeaderHeight is a free data retrieval call binding the contract method 0xbdb6dead.
Solidity: function headerHeight() view returns(uint256 height)
func (*LightNodeCaller) NearestPivot ¶
func (_LightNode *LightNodeCaller) NearestPivot(opts *bind.CallOpts, height *big.Int) (*big.Int, error)
NearestPivot is a free data retrieval call binding the contract method 0x823002e6.
Solidity: function nearestPivot(uint256 height) view returns(uint256)
func (*LightNodeCaller) State ¶ added in v1.5.8
func (_LightNode *LightNodeCaller) State(opts *bind.CallOpts) (ILightNodeState, error)
State is a free data retrieval call binding the contract method 0xc19d93fb.
Solidity: function state() view returns((uint256,uint256,uint256,uint256,uint256,uint256))
func (*LightNodeCaller) VerifiableHeaderRange ¶
func (_LightNode *LightNodeCaller) VerifiableHeaderRange(opts *bind.CallOpts) (*big.Int, *big.Int, error)
VerifiableHeaderRange is a free data retrieval call binding the contract method 0xe492ebbc.
Solidity: function verifiableHeaderRange() view returns(uint256, uint256)
func (*LightNodeCaller) VerifyProofData ¶
func (_LightNode *LightNodeCaller) VerifyProofData(opts *bind.CallOpts, _receiptProof []byte) (struct { Success bool Message string Logs []byte }, error)
VerifyProofData is a free data retrieval call binding the contract method 0x16dc5270.
Solidity: function verifyProofData(bytes _receiptProof) view returns(bool success, string message, bytes logs)
func (*LightNodeCaller) VerifyReceiptProof ¶
func (_LightNode *LightNodeCaller) VerifyReceiptProof(opts *bind.CallOpts, proof TypesReceiptProof) (bool, error)
VerifyReceiptProof is a free data retrieval call binding the contract method 0xc97777a8.
Solidity: function verifyReceiptProof((bytes[],bytes,((bytes32,uint256,uint256),bytes32[16],bytes)[],bytes32,bytes,bytes,((bytes32,uint256,uint256),bytes32[16],bytes)[]) proof) view returns(bool)
type LightNodeCallerRaw ¶
type LightNodeCallerRaw struct {
Contract *LightNodeCaller // Generic read-only contract binding to access the raw methods on
}
LightNodeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*LightNodeCallerRaw) Call ¶
func (_LightNode *LightNodeCallerRaw) 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 LightNodeCallerSession ¶
type LightNodeCallerSession struct { Contract *LightNodeCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
LightNodeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*LightNodeCallerSession) ClientState ¶
func (_LightNode *LightNodeCallerSession) ClientState() ([]byte, error)
ClientState is a free data retrieval call binding the contract method 0xbd3ce6b0.
Solidity: function clientState() view returns(bytes)
func (*LightNodeCallerSession) HeaderHeight ¶ added in v1.5.8
func (_LightNode *LightNodeCallerSession) HeaderHeight() (*big.Int, error)
HeaderHeight is a free data retrieval call binding the contract method 0xbdb6dead.
Solidity: function headerHeight() view returns(uint256 height)
func (*LightNodeCallerSession) NearestPivot ¶
NearestPivot is a free data retrieval call binding the contract method 0x823002e6.
Solidity: function nearestPivot(uint256 height) view returns(uint256)
func (*LightNodeCallerSession) State ¶ added in v1.5.8
func (_LightNode *LightNodeCallerSession) State() (ILightNodeState, error)
State is a free data retrieval call binding the contract method 0xc19d93fb.
Solidity: function state() view returns((uint256,uint256,uint256,uint256,uint256,uint256))
func (*LightNodeCallerSession) VerifiableHeaderRange ¶
VerifiableHeaderRange is a free data retrieval call binding the contract method 0xe492ebbc.
Solidity: function verifiableHeaderRange() view returns(uint256, uint256)
func (*LightNodeCallerSession) VerifyProofData ¶
func (_LightNode *LightNodeCallerSession) VerifyProofData(_receiptProof []byte) (struct { Success bool Message string Logs []byte }, error)
VerifyProofData is a free data retrieval call binding the contract method 0x16dc5270.
Solidity: function verifyProofData(bytes _receiptProof) view returns(bool success, string message, bytes logs)
func (*LightNodeCallerSession) VerifyReceiptProof ¶
func (_LightNode *LightNodeCallerSession) VerifyReceiptProof(proof TypesReceiptProof) (bool, error)
VerifyReceiptProof is a free data retrieval call binding the contract method 0xc97777a8.
Solidity: function verifyReceiptProof((bytes[],bytes,((bytes32,uint256,uint256),bytes32[16],bytes)[],bytes32,bytes,bytes,((bytes32,uint256,uint256),bytes32[16],bytes)[]) proof) view returns(bool)
type LightNodeFilterer ¶
type LightNodeFilterer struct {
// contains filtered or unexported fields
}
LightNodeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewLightNodeFilterer ¶
func NewLightNodeFilterer(address common.Address, filterer bind.ContractFilterer) (*LightNodeFilterer, error)
NewLightNodeFilterer creates a new log filterer instance of LightNode, bound to a specific deployed contract.
type LightNodeRaw ¶
type LightNodeRaw struct {
Contract *LightNode // Generic contract binding to access the raw methods on
}
LightNodeRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*LightNodeRaw) Call ¶
func (_LightNode *LightNodeRaw) 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 (*LightNodeRaw) Transact ¶
func (_LightNode *LightNodeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*LightNodeRaw) Transfer ¶
func (_LightNode *LightNodeRaw) 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 LightNodeSession ¶
type LightNodeSession struct { Contract *LightNode // 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 }
LightNodeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*LightNodeSession) ClientState ¶
func (_LightNode *LightNodeSession) ClientState() ([]byte, error)
ClientState is a free data retrieval call binding the contract method 0xbd3ce6b0.
Solidity: function clientState() view returns(bytes)
func (*LightNodeSession) HeaderHeight ¶ added in v1.5.8
func (_LightNode *LightNodeSession) HeaderHeight() (*big.Int, error)
HeaderHeight is a free data retrieval call binding the contract method 0xbdb6dead.
Solidity: function headerHeight() view returns(uint256 height)
func (*LightNodeSession) Initialize ¶
func (_LightNode *LightNodeSession) Initialize(controller common.Address, ledgerInfoUtil common.Address, mptVerify common.Address, committee LedgerInfoLibEpochState, ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x46c78fab.
Solidity: function initialize(address controller, address ledgerInfoUtil, address mptVerify, (uint64,(bytes32,bytes,bytes,uint64)[],uint64,uint64,bytes) committee, (uint64,uint64,bytes32,bytes32,uint64,uint64,(uint64,(bytes32,bytes,bytes,uint64)[],uint64,uint64,bytes),(bytes32,uint64),bytes32,bytes32[],bytes) ledgerInfo) returns()
func (*LightNodeSession) NearestPivot ¶
NearestPivot is a free data retrieval call binding the contract method 0x823002e6.
Solidity: function nearestPivot(uint256 height) view returns(uint256)
func (*LightNodeSession) RelayPOS ¶ added in v1.5.8
func (_LightNode *LightNodeSession) RelayPOS(ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) (*types.Transaction, error)
RelayPOS is a paid mutator transaction binding the contract method 0x50e8c7d3.
Solidity: function relayPOS((uint64,uint64,bytes32,bytes32,uint64,uint64,(uint64,(bytes32,bytes,bytes,uint64)[],uint64,uint64,bytes),(bytes32,uint64),bytes32,bytes32[],bytes) ledgerInfo) returns()
func (*LightNodeSession) RelayPOW ¶ added in v1.5.8
func (_LightNode *LightNodeSession) RelayPOW(headers [][]byte) (*types.Transaction, error)
RelayPOW is a paid mutator transaction binding the contract method 0x16b3b684.
Solidity: function relayPOW(bytes[] headers) returns()
func (*LightNodeSession) RemoveBlockHeader ¶
func (_LightNode *LightNodeSession) RemoveBlockHeader(limit *big.Int) (*types.Transaction, error)
RemoveBlockHeader is a paid mutator transaction binding the contract method 0x8113e308.
Solidity: function removeBlockHeader(uint256 limit) returns()
func (*LightNodeSession) State ¶ added in v1.5.8
func (_LightNode *LightNodeSession) State() (ILightNodeState, error)
State is a free data retrieval call binding the contract method 0xc19d93fb.
Solidity: function state() view returns((uint256,uint256,uint256,uint256,uint256,uint256))
func (*LightNodeSession) UpdateBlockHeader ¶
func (_LightNode *LightNodeSession) UpdateBlockHeader(_blockHeader []byte) (*types.Transaction, error)
UpdateBlockHeader is a paid mutator transaction binding the contract method 0xd240f3cf.
Solidity: function updateBlockHeader(bytes _blockHeader) returns()
func (*LightNodeSession) UpdateLightClient ¶
func (_LightNode *LightNodeSession) UpdateLightClient(_data []byte) (*types.Transaction, error)
UpdateLightClient is a paid mutator transaction binding the contract method 0x330115fc.
Solidity: function updateLightClient(bytes _data) returns()
func (*LightNodeSession) VerifiableHeaderRange ¶
VerifiableHeaderRange is a free data retrieval call binding the contract method 0xe492ebbc.
Solidity: function verifiableHeaderRange() view returns(uint256, uint256)
func (*LightNodeSession) VerifyProofData ¶
func (_LightNode *LightNodeSession) VerifyProofData(_receiptProof []byte) (struct { Success bool Message string Logs []byte }, error)
VerifyProofData is a free data retrieval call binding the contract method 0x16dc5270.
Solidity: function verifyProofData(bytes _receiptProof) view returns(bool success, string message, bytes logs)
func (*LightNodeSession) VerifyReceiptProof ¶
func (_LightNode *LightNodeSession) VerifyReceiptProof(proof TypesReceiptProof) (bool, error)
VerifyReceiptProof is a free data retrieval call binding the contract method 0xc97777a8.
Solidity: function verifyReceiptProof((bytes[],bytes,((bytes32,uint256,uint256),bytes32[16],bytes)[],bytes32,bytes,bytes,((bytes32,uint256,uint256),bytes32[16],bytes)[]) proof) view returns(bool)
type LightNodeTransactor ¶
type LightNodeTransactor struct {
// contains filtered or unexported fields
}
LightNodeTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewLightNodeTransactor ¶
func NewLightNodeTransactor(address common.Address, transactor bind.ContractTransactor) (*LightNodeTransactor, error)
NewLightNodeTransactor creates a new write-only instance of LightNode, bound to a specific deployed contract.
func (*LightNodeTransactor) Initialize ¶
func (_LightNode *LightNodeTransactor) Initialize(opts *bind.TransactOpts, controller common.Address, ledgerInfoUtil common.Address, mptVerify common.Address, committee LedgerInfoLibEpochState, ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x46c78fab.
Solidity: function initialize(address controller, address ledgerInfoUtil, address mptVerify, (uint64,(bytes32,bytes,bytes,uint64)[],uint64,uint64,bytes) committee, (uint64,uint64,bytes32,bytes32,uint64,uint64,(uint64,(bytes32,bytes,bytes,uint64)[],uint64,uint64,bytes),(bytes32,uint64),bytes32,bytes32[],bytes) ledgerInfo) returns()
func (*LightNodeTransactor) RelayPOS ¶ added in v1.5.8
func (_LightNode *LightNodeTransactor) RelayPOS(opts *bind.TransactOpts, ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) (*types.Transaction, error)
RelayPOS is a paid mutator transaction binding the contract method 0x50e8c7d3.
Solidity: function relayPOS((uint64,uint64,bytes32,bytes32,uint64,uint64,(uint64,(bytes32,bytes,bytes,uint64)[],uint64,uint64,bytes),(bytes32,uint64),bytes32,bytes32[],bytes) ledgerInfo) returns()
func (*LightNodeTransactor) RelayPOW ¶ added in v1.5.8
func (_LightNode *LightNodeTransactor) RelayPOW(opts *bind.TransactOpts, headers [][]byte) (*types.Transaction, error)
RelayPOW is a paid mutator transaction binding the contract method 0x16b3b684.
Solidity: function relayPOW(bytes[] headers) returns()
func (*LightNodeTransactor) RemoveBlockHeader ¶
func (_LightNode *LightNodeTransactor) RemoveBlockHeader(opts *bind.TransactOpts, limit *big.Int) (*types.Transaction, error)
RemoveBlockHeader is a paid mutator transaction binding the contract method 0x8113e308.
Solidity: function removeBlockHeader(uint256 limit) returns()
func (*LightNodeTransactor) UpdateBlockHeader ¶
func (_LightNode *LightNodeTransactor) UpdateBlockHeader(opts *bind.TransactOpts, _blockHeader []byte) (*types.Transaction, error)
UpdateBlockHeader is a paid mutator transaction binding the contract method 0xd240f3cf.
Solidity: function updateBlockHeader(bytes _blockHeader) returns()
func (*LightNodeTransactor) UpdateLightClient ¶
func (_LightNode *LightNodeTransactor) UpdateLightClient(opts *bind.TransactOpts, _data []byte) (*types.Transaction, error)
UpdateLightClient is a paid mutator transaction binding the contract method 0x330115fc.
Solidity: function updateLightClient(bytes _data) returns()
type LightNodeTransactorRaw ¶
type LightNodeTransactorRaw struct {
Contract *LightNodeTransactor // Generic write-only contract binding to access the raw methods on
}
LightNodeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*LightNodeTransactorRaw) Transact ¶
func (_LightNode *LightNodeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*LightNodeTransactorRaw) Transfer ¶
func (_LightNode *LightNodeTransactorRaw) 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 LightNodeTransactorSession ¶
type LightNodeTransactorSession struct { Contract *LightNodeTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
LightNodeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*LightNodeTransactorSession) Initialize ¶
func (_LightNode *LightNodeTransactorSession) Initialize(controller common.Address, ledgerInfoUtil common.Address, mptVerify common.Address, committee LedgerInfoLibEpochState, ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x46c78fab.
Solidity: function initialize(address controller, address ledgerInfoUtil, address mptVerify, (uint64,(bytes32,bytes,bytes,uint64)[],uint64,uint64,bytes) committee, (uint64,uint64,bytes32,bytes32,uint64,uint64,(uint64,(bytes32,bytes,bytes,uint64)[],uint64,uint64,bytes),(bytes32,uint64),bytes32,bytes32[],bytes) ledgerInfo) returns()
func (*LightNodeTransactorSession) RelayPOS ¶ added in v1.5.8
func (_LightNode *LightNodeTransactorSession) RelayPOS(ledgerInfo LedgerInfoLibLedgerInfoWithSignatures) (*types.Transaction, error)
RelayPOS is a paid mutator transaction binding the contract method 0x50e8c7d3.
Solidity: function relayPOS((uint64,uint64,bytes32,bytes32,uint64,uint64,(uint64,(bytes32,bytes,bytes,uint64)[],uint64,uint64,bytes),(bytes32,uint64),bytes32,bytes32[],bytes) ledgerInfo) returns()
func (*LightNodeTransactorSession) RelayPOW ¶ added in v1.5.8
func (_LightNode *LightNodeTransactorSession) RelayPOW(headers [][]byte) (*types.Transaction, error)
RelayPOW is a paid mutator transaction binding the contract method 0x16b3b684.
Solidity: function relayPOW(bytes[] headers) returns()
func (*LightNodeTransactorSession) RemoveBlockHeader ¶
func (_LightNode *LightNodeTransactorSession) RemoveBlockHeader(limit *big.Int) (*types.Transaction, error)
RemoveBlockHeader is a paid mutator transaction binding the contract method 0x8113e308.
Solidity: function removeBlockHeader(uint256 limit) returns()
func (*LightNodeTransactorSession) UpdateBlockHeader ¶
func (_LightNode *LightNodeTransactorSession) UpdateBlockHeader(_blockHeader []byte) (*types.Transaction, error)
UpdateBlockHeader is a paid mutator transaction binding the contract method 0xd240f3cf.
Solidity: function updateBlockHeader(bytes _blockHeader) returns()
func (*LightNodeTransactorSession) UpdateLightClient ¶
func (_LightNode *LightNodeTransactorSession) UpdateLightClient(_data []byte) (*types.Transaction, error)
UpdateLightClient is a paid mutator transaction binding the contract method 0x330115fc.
Solidity: function updateLightClient(bytes _data) returns()
type ProofLibNibblePath ¶
ProofLibNibblePath is an auto generated low-level Go binding around an user-defined struct.
type ProofLibProofNode ¶
type ProofLibProofNode struct { Path ProofLibNibblePath Children [16][32]byte Value []byte }
ProofLibProofNode is an auto generated low-level Go binding around an user-defined struct.
type Provable ¶
type Provable struct { ProvableCaller // Read-only binding to the contract ProvableTransactor // Write-only binding to the contract ProvableFilterer // Log filterer for contract events }
Provable is an auto generated Go binding around an Ethereum contract.
func NewProvable ¶
NewProvable creates a new instance of Provable, bound to a specific deployed contract.
type ProvableCaller ¶
type ProvableCaller struct {
// contains filtered or unexported fields
}
ProvableCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewProvableCaller ¶
func NewProvableCaller(address common.Address, caller bind.ContractCaller) (*ProvableCaller, error)
NewProvableCaller creates a new read-only instance of Provable, bound to a specific deployed contract.
func (*ProvableCaller) Prove ¶
func (_Provable *ProvableCaller) Prove(opts *bind.CallOpts, root [32]byte, key []byte, valueHash [32]byte, nodes []ProofLibProofNode) (bool, error)
Prove is a free data retrieval call binding the contract method 0x283bf72c.
Solidity: function prove(bytes32 root, bytes key, bytes32 valueHash, ((bytes32,uint256,uint256),bytes32[16],bytes)[] nodes) pure returns(bool)
func (*ProvableCaller) ProveReceipt ¶
func (_Provable *ProvableCaller) ProveReceipt(opts *bind.CallOpts, blockRoot [32]byte, blockIndex []byte, blockProof []ProofLibProofNode, receiptsRoot [32]byte, index []byte, receipt []byte, receiptProof []ProofLibProofNode) (bool, error)
ProveReceipt is a free data retrieval call binding the contract method 0x5629bceb.
Solidity: function proveReceipt(bytes32 blockRoot, bytes blockIndex, ((bytes32,uint256,uint256),bytes32[16],bytes)[] blockProof, bytes32 receiptsRoot, bytes index, bytes receipt, ((bytes32,uint256,uint256),bytes32[16],bytes)[] receiptProof) pure returns(bool)
type ProvableCallerRaw ¶
type ProvableCallerRaw struct {
Contract *ProvableCaller // Generic read-only contract binding to access the raw methods on
}
ProvableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ProvableCallerRaw) Call ¶
func (_Provable *ProvableCallerRaw) 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 ProvableCallerSession ¶
type ProvableCallerSession struct { Contract *ProvableCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ProvableCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ProvableCallerSession) Prove ¶
func (_Provable *ProvableCallerSession) Prove(root [32]byte, key []byte, valueHash [32]byte, nodes []ProofLibProofNode) (bool, error)
Prove is a free data retrieval call binding the contract method 0x283bf72c.
Solidity: function prove(bytes32 root, bytes key, bytes32 valueHash, ((bytes32,uint256,uint256),bytes32[16],bytes)[] nodes) pure returns(bool)
func (*ProvableCallerSession) ProveReceipt ¶
func (_Provable *ProvableCallerSession) ProveReceipt(blockRoot [32]byte, blockIndex []byte, blockProof []ProofLibProofNode, receiptsRoot [32]byte, index []byte, receipt []byte, receiptProof []ProofLibProofNode) (bool, error)
ProveReceipt is a free data retrieval call binding the contract method 0x5629bceb.
Solidity: function proveReceipt(bytes32 blockRoot, bytes blockIndex, ((bytes32,uint256,uint256),bytes32[16],bytes)[] blockProof, bytes32 receiptsRoot, bytes index, bytes receipt, ((bytes32,uint256,uint256),bytes32[16],bytes)[] receiptProof) pure returns(bool)
type ProvableFilterer ¶
type ProvableFilterer struct {
// contains filtered or unexported fields
}
ProvableFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewProvableFilterer ¶
func NewProvableFilterer(address common.Address, filterer bind.ContractFilterer) (*ProvableFilterer, error)
NewProvableFilterer creates a new log filterer instance of Provable, bound to a specific deployed contract.
type ProvableRaw ¶
type ProvableRaw struct {
Contract *Provable // Generic contract binding to access the raw methods on
}
ProvableRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ProvableRaw) Call ¶
func (_Provable *ProvableRaw) 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 (*ProvableRaw) Transact ¶
func (_Provable *ProvableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ProvableRaw) Transfer ¶
func (_Provable *ProvableRaw) 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 ProvableSession ¶
type ProvableSession struct { Contract *Provable // 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 }
ProvableSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ProvableSession) Prove ¶
func (_Provable *ProvableSession) Prove(root [32]byte, key []byte, valueHash [32]byte, nodes []ProofLibProofNode) (bool, error)
Prove is a free data retrieval call binding the contract method 0x283bf72c.
Solidity: function prove(bytes32 root, bytes key, bytes32 valueHash, ((bytes32,uint256,uint256),bytes32[16],bytes)[] nodes) pure returns(bool)
func (*ProvableSession) ProveReceipt ¶
func (_Provable *ProvableSession) ProveReceipt(blockRoot [32]byte, blockIndex []byte, blockProof []ProofLibProofNode, receiptsRoot [32]byte, index []byte, receipt []byte, receiptProof []ProofLibProofNode) (bool, error)
ProveReceipt is a free data retrieval call binding the contract method 0x5629bceb.
Solidity: function proveReceipt(bytes32 blockRoot, bytes blockIndex, ((bytes32,uint256,uint256),bytes32[16],bytes)[] blockProof, bytes32 receiptsRoot, bytes index, bytes receipt, ((bytes32,uint256,uint256),bytes32[16],bytes)[] receiptProof) pure returns(bool)
type ProvableTransactor ¶
type ProvableTransactor struct {
// contains filtered or unexported fields
}
ProvableTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewProvableTransactor ¶
func NewProvableTransactor(address common.Address, transactor bind.ContractTransactor) (*ProvableTransactor, error)
NewProvableTransactor creates a new write-only instance of Provable, bound to a specific deployed contract.
type ProvableTransactorRaw ¶
type ProvableTransactorRaw struct {
Contract *ProvableTransactor // Generic write-only contract binding to access the raw methods on
}
ProvableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ProvableTransactorRaw) Transact ¶
func (_Provable *ProvableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ProvableTransactorRaw) Transfer ¶
func (_Provable *ProvableTransactorRaw) 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 ProvableTransactorSession ¶
type ProvableTransactorSession struct { Contract *ProvableTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ProvableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type TypesReceiptProof ¶
type TypesReceiptProof struct { Headers [][]byte BlockIndex []byte BlockProof []ProofLibProofNode ReceiptsRoot [32]byte Index []byte Receipt []byte ReceiptProof []ProofLibProofNode }
TypesReceiptProof is an auto generated low-level Go binding around an user-defined struct.
func (TypesReceiptProof) ABIEncode ¶
func (proof TypesReceiptProof) ABIEncode() []byte