shareloader

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShareloaderABI = ShareloaderMetaData.ABI

ShareloaderABI is the input ABI used to generate the binding from. Deprecated: Use ShareloaderMetaData.ABI instead.

View Source
var ShareloaderMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_blobstreamX\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"blobstreamX\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIDAOracle\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"verifyShares\",\"inputs\":[{\"name\":\"_proof\",\"type\":\"tuple\",\"internalType\":\"structSharesProof\",\"components\":[{\"name\":\"data\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"},{\"name\":\"shareProofs\",\"type\":\"tuple[]\",\"internalType\":\"structNamespaceMerkleMultiproof[]\",\"components\":[{\"name\":\"beginKey\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"endKey\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"sideNodes\",\"type\":\"tuple[]\",\"internalType\":\"structNamespaceNode[]\",\"components\":[{\"name\":\"min\",\"type\":\"tuple\",\"internalType\":\"structNamespace\",\"components\":[{\"name\":\"version\",\"type\":\"bytes1\",\"internalType\":\"bytes1\"},{\"name\":\"id\",\"type\":\"bytes28\",\"internalType\":\"bytes28\"}]},{\"name\":\"max\",\"type\":\"tuple\",\"internalType\":\"structNamespace\",\"components\":[{\"name\":\"version\",\"type\":\"bytes1\",\"internalType\":\"bytes1\"},{\"name\":\"id\",\"type\":\"bytes28\",\"internalType\":\"bytes28\"}]},{\"name\":\"digest\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]}]},{\"name\":\"namespace\",\"type\":\"tuple\",\"internalType\":\"structNamespace\",\"components\":[{\"name\":\"version\",\"type\":\"bytes1\",\"internalType\":\"bytes1\"},{\"name\":\"id\",\"type\":\"bytes28\",\"internalType\":\"bytes28\"}]},{\"name\":\"rowRoots\",\"type\":\"tuple[]\",\"internalType\":\"structNamespaceNode[]\",\"components\":[{\"name\":\"min\",\"type\":\"tuple\",\"internalType\":\"structNamespace\",\"components\":[{\"name\":\"version\",\"type\":\"bytes1\",\"internalType\":\"bytes1\"},{\"name\":\"id\",\"type\":\"bytes28\",\"internalType\":\"bytes28\"}]},{\"name\":\"max\",\"type\":\"tuple\",\"internalType\":\"structNamespace\",\"components\":[{\"name\":\"version\",\"type\":\"bytes1\",\"internalType\":\"bytes1\"},{\"name\":\"id\",\"type\":\"bytes28\",\"internalType\":\"bytes28\"}]},{\"name\":\"digest\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"rowProofs\",\"type\":\"tuple[]\",\"internalType\":\"structBinaryMerkleProof[]\",\"components\":[{\"name\":\"sideNodes\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"key\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"numLeaves\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"attestationProof\",\"type\":\"tuple\",\"internalType\":\"structAttestationProof\",\"components\":[{\"name\":\"tupleRootNonce\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"tuple\",\"type\":\"tuple\",\"internalType\":\"structDataRootTuple\",\"components\":[{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"dataRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"proof\",\"type\":\"tuple\",\"internalType\":\"structBinaryMerkleProof\",\"components\":[{\"name\":\"sideNodes\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"key\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"numLeaves\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}]}]},{\"name\":\"_root\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumDAVerifier.ErrorCodes\"}],\"stateMutability\":\"view\"}]",
}

ShareloaderMetaData contains all meta data concerning the Shareloader contract.

Functions

This section is empty.

Types

type AttestationProof

type AttestationProof struct {
	TupleRootNonce *big.Int
	Tuple          DataRootTuple
	Proof          BinaryMerkleProof
}

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

type BinaryMerkleProof

type BinaryMerkleProof struct {
	SideNodes [][32]byte
	Key       *big.Int
	NumLeaves *big.Int
}

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

type DataRootTuple

type DataRootTuple struct {
	Height   *big.Int
	DataRoot [32]byte
}

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

type Namespace

type Namespace struct {
	Version [1]byte
	Id      [28]byte
}

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

type NamespaceMerkleMultiproof

type NamespaceMerkleMultiproof struct {
	BeginKey  *big.Int
	EndKey    *big.Int
	SideNodes []NamespaceNode
}

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

type NamespaceNode

type NamespaceNode struct {
	Min    Namespace
	Max    Namespace
	Digest [32]byte
}

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

type Shareloader

type Shareloader struct {
	ShareloaderCaller     // Read-only binding to the contract
	ShareloaderTransactor // Write-only binding to the contract
	ShareloaderFilterer   // Log filterer for contract events
}

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

func NewShareloader

func NewShareloader(address common.Address, backend bind.ContractBackend) (*Shareloader, error)

NewShareloader creates a new instance of Shareloader, bound to a specific deployed contract.

type ShareloaderCaller

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

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

func NewShareloaderCaller

func NewShareloaderCaller(address common.Address, caller bind.ContractCaller) (*ShareloaderCaller, error)

NewShareloaderCaller creates a new read-only instance of Shareloader, bound to a specific deployed contract.

func (*ShareloaderCaller) BlobstreamX

func (_Shareloader *ShareloaderCaller) BlobstreamX(opts *bind.CallOpts) (common.Address, error)

BlobstreamX is a free data retrieval call binding the contract method 0xd020358f.

Solidity: function blobstreamX() view returns(address)

func (*ShareloaderCaller) VerifyShares

func (_Shareloader *ShareloaderCaller) VerifyShares(opts *bind.CallOpts, _proof SharesProof, _root [32]byte) (bool, uint8, error)

VerifyShares is a free data retrieval call binding the contract method 0x996f0f1f.

Solidity: function verifyShares((bytes[],(uint256,uint256,((bytes1,bytes28),(bytes1,bytes28),bytes32)[])[],(bytes1,bytes28),((bytes1,bytes28),(bytes1,bytes28),bytes32)[],(bytes32[],uint256,uint256)[],(uint256,(uint256,bytes32),(bytes32[],uint256,uint256))) _proof, bytes32 _root) view returns(bool, uint8)

type ShareloaderCallerRaw

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

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

func (*ShareloaderCallerRaw) Call

func (_Shareloader *ShareloaderCallerRaw) 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 ShareloaderCallerSession

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

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

func (*ShareloaderCallerSession) BlobstreamX

func (_Shareloader *ShareloaderCallerSession) BlobstreamX() (common.Address, error)

BlobstreamX is a free data retrieval call binding the contract method 0xd020358f.

Solidity: function blobstreamX() view returns(address)

func (*ShareloaderCallerSession) VerifyShares

func (_Shareloader *ShareloaderCallerSession) VerifyShares(_proof SharesProof, _root [32]byte) (bool, uint8, error)

VerifyShares is a free data retrieval call binding the contract method 0x996f0f1f.

Solidity: function verifyShares((bytes[],(uint256,uint256,((bytes1,bytes28),(bytes1,bytes28),bytes32)[])[],(bytes1,bytes28),((bytes1,bytes28),(bytes1,bytes28),bytes32)[],(bytes32[],uint256,uint256)[],(uint256,(uint256,bytes32),(bytes32[],uint256,uint256))) _proof, bytes32 _root) view returns(bool, uint8)

type ShareloaderFilterer

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

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

func NewShareloaderFilterer

func NewShareloaderFilterer(address common.Address, filterer bind.ContractFilterer) (*ShareloaderFilterer, error)

NewShareloaderFilterer creates a new log filterer instance of Shareloader, bound to a specific deployed contract.

type ShareloaderRaw

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

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

func (*ShareloaderRaw) Call

func (_Shareloader *ShareloaderRaw) 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 (*ShareloaderRaw) Transact

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

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

func (*ShareloaderRaw) Transfer

func (_Shareloader *ShareloaderRaw) 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 ShareloaderSession

type ShareloaderSession struct {
	Contract     *Shareloader      // 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
}

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

func (*ShareloaderSession) BlobstreamX

func (_Shareloader *ShareloaderSession) BlobstreamX() (common.Address, error)

BlobstreamX is a free data retrieval call binding the contract method 0xd020358f.

Solidity: function blobstreamX() view returns(address)

func (*ShareloaderSession) VerifyShares

func (_Shareloader *ShareloaderSession) VerifyShares(_proof SharesProof, _root [32]byte) (bool, uint8, error)

VerifyShares is a free data retrieval call binding the contract method 0x996f0f1f.

Solidity: function verifyShares((bytes[],(uint256,uint256,((bytes1,bytes28),(bytes1,bytes28),bytes32)[])[],(bytes1,bytes28),((bytes1,bytes28),(bytes1,bytes28),bytes32)[],(bytes32[],uint256,uint256)[],(uint256,(uint256,bytes32),(bytes32[],uint256,uint256))) _proof, bytes32 _root) view returns(bool, uint8)

type ShareloaderTransactor

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

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

func NewShareloaderTransactor

func NewShareloaderTransactor(address common.Address, transactor bind.ContractTransactor) (*ShareloaderTransactor, error)

NewShareloaderTransactor creates a new write-only instance of Shareloader, bound to a specific deployed contract.

type ShareloaderTransactorRaw

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

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

func (*ShareloaderTransactorRaw) Transact

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

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

func (*ShareloaderTransactorRaw) Transfer

func (_Shareloader *ShareloaderTransactorRaw) 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 ShareloaderTransactorSession

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

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

type SharesProof

type SharesProof struct {
	Data             [][]byte
	ShareProofs      []NamespaceMerkleMultiproof
	Namespace        Namespace
	RowRoots         []NamespaceNode
	RowProofs        []BinaryMerkleProof
	AttestationProof AttestationProof
}

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

Jump to

Keyboard shortcuts

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