beaconchainproofs

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BeaconChainProofsTestABI = BeaconChainProofsTestMetaData.ABI

BeaconChainProofsTestABI is the input ABI used to generate the binding from. Deprecated: Use BeaconChainProofsTestMetaData.ABI instead.

View Source
var BeaconChainProofsTestMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"latestBlockRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"beaconStateRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"stateRootProof\",\"type\":\"bytes\"}],\"name\":\"verifyStateRootAgainstLatestBlockRoot\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconStateRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"validatorFields\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes\",\"name\":\"validatorFieldsProof\",\"type\":\"bytes\"},{\"internalType\":\"uint40\",\"name\":\"validatorIndex\",\"type\":\"uint40\"}],\"name\":\"verifyValidatorFields\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconStateRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"withdrawalFields\",\"type\":\"bytes32[]\"},{\"components\":[{\"internalType\":\"bytes\",\"name\":\"withdrawalProof\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"slotProof\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"executionPayloadProof\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"timestampProof\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"historicalSummaryBlockRootProof\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"blockRootIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"historicalSummaryIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"withdrawalIndex\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"blockRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"slotRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"timestampRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"executionPayloadRoot\",\"type\":\"bytes32\"}],\"internalType\":\"structBeaconChainProofsContract.WithdrawalProof\",\"name\":\"withdrawalProof\",\"type\":\"tuple\"},{\"internalType\":\"uint64\",\"name\":\"denebForkTimestamp\",\"type\":\"uint64\"}],\"name\":\"verifyWithdrawal\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

BeaconChainProofsTestMetaData contains all meta data concerning the BeaconChainProofsTest contract.

Functions

This section is empty.

Types

type BeaconChainProofsContractWithdrawalProof

type BeaconChainProofsContractWithdrawalProof struct {
	WithdrawalProof                 []byte
	SlotProof                       []byte
	ExecutionPayloadProof           []byte
	TimestampProof                  []byte
	HistoricalSummaryBlockRootProof []byte
	BlockRootIndex                  uint64
	HistoricalSummaryIndex          uint64
	WithdrawalIndex                 uint64
	BlockRoot                       [32]byte
	SlotRoot                        [32]byte
	TimestampRoot                   [32]byte
	ExecutionPayloadRoot            [32]byte
}

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

type BeaconChainProofsTest

type BeaconChainProofsTest struct {
	BeaconChainProofsTestCaller     // Read-only binding to the contract
	BeaconChainProofsTestTransactor // Write-only binding to the contract
	BeaconChainProofsTestFilterer   // Log filterer for contract events
}

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

func NewBeaconChainProofsTest

func NewBeaconChainProofsTest(address common.Address, backend bind.ContractBackend) (*BeaconChainProofsTest, error)

NewBeaconChainProofsTest creates a new instance of BeaconChainProofsTest, bound to a specific deployed contract.

type BeaconChainProofsTestCaller

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

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

func NewBeaconChainProofsTestCaller

func NewBeaconChainProofsTestCaller(address common.Address, caller bind.ContractCaller) (*BeaconChainProofsTestCaller, error)

NewBeaconChainProofsTestCaller creates a new read-only instance of BeaconChainProofsTest, bound to a specific deployed contract.

func (*BeaconChainProofsTestCaller) VerifyStateRootAgainstLatestBlockRoot

func (_BeaconChainProofsTest *BeaconChainProofsTestCaller) VerifyStateRootAgainstLatestBlockRoot(opts *bind.CallOpts, latestBlockRoot [32]byte, beaconStateRoot [32]byte, stateRootProof []byte) error

VerifyStateRootAgainstLatestBlockRoot is a free data retrieval call binding the contract method 0x9cdee1f8.

Solidity: function verifyStateRootAgainstLatestBlockRoot(bytes32 latestBlockRoot, bytes32 beaconStateRoot, bytes stateRootProof) view returns()

func (*BeaconChainProofsTestCaller) VerifyValidatorFields

func (_BeaconChainProofsTest *BeaconChainProofsTestCaller) VerifyValidatorFields(opts *bind.CallOpts, beaconStateRoot [32]byte, validatorFields [][32]byte, validatorFieldsProof []byte, validatorIndex *big.Int) error

VerifyValidatorFields is a free data retrieval call binding the contract method 0x256f222b.

Solidity: function verifyValidatorFields(bytes32 beaconStateRoot, bytes32[] validatorFields, bytes validatorFieldsProof, uint40 validatorIndex) view returns()

func (*BeaconChainProofsTestCaller) VerifyWithdrawal

func (_BeaconChainProofsTest *BeaconChainProofsTestCaller) VerifyWithdrawal(opts *bind.CallOpts, beaconStateRoot [32]byte, withdrawalFields [][32]byte, withdrawalProof BeaconChainProofsContractWithdrawalProof, denebForkTimestamp uint64) error

VerifyWithdrawal is a free data retrieval call binding the contract method 0x17941319.

Solidity: function verifyWithdrawal(bytes32 beaconStateRoot, bytes32[] withdrawalFields, (bytes,bytes,bytes,bytes,bytes,uint64,uint64,uint64,bytes32,bytes32,bytes32,bytes32) withdrawalProof, uint64 denebForkTimestamp) view returns()

type BeaconChainProofsTestCallerRaw

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

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

func (*BeaconChainProofsTestCallerRaw) Call

func (_BeaconChainProofsTest *BeaconChainProofsTestCallerRaw) 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 BeaconChainProofsTestCallerSession

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

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

func (*BeaconChainProofsTestCallerSession) VerifyStateRootAgainstLatestBlockRoot

func (_BeaconChainProofsTest *BeaconChainProofsTestCallerSession) VerifyStateRootAgainstLatestBlockRoot(latestBlockRoot [32]byte, beaconStateRoot [32]byte, stateRootProof []byte) error

VerifyStateRootAgainstLatestBlockRoot is a free data retrieval call binding the contract method 0x9cdee1f8.

Solidity: function verifyStateRootAgainstLatestBlockRoot(bytes32 latestBlockRoot, bytes32 beaconStateRoot, bytes stateRootProof) view returns()

func (*BeaconChainProofsTestCallerSession) VerifyValidatorFields

func (_BeaconChainProofsTest *BeaconChainProofsTestCallerSession) VerifyValidatorFields(beaconStateRoot [32]byte, validatorFields [][32]byte, validatorFieldsProof []byte, validatorIndex *big.Int) error

VerifyValidatorFields is a free data retrieval call binding the contract method 0x256f222b.

Solidity: function verifyValidatorFields(bytes32 beaconStateRoot, bytes32[] validatorFields, bytes validatorFieldsProof, uint40 validatorIndex) view returns()

func (*BeaconChainProofsTestCallerSession) VerifyWithdrawal

func (_BeaconChainProofsTest *BeaconChainProofsTestCallerSession) VerifyWithdrawal(beaconStateRoot [32]byte, withdrawalFields [][32]byte, withdrawalProof BeaconChainProofsContractWithdrawalProof, denebForkTimestamp uint64) error

VerifyWithdrawal is a free data retrieval call binding the contract method 0x17941319.

Solidity: function verifyWithdrawal(bytes32 beaconStateRoot, bytes32[] withdrawalFields, (bytes,bytes,bytes,bytes,bytes,uint64,uint64,uint64,bytes32,bytes32,bytes32,bytes32) withdrawalProof, uint64 denebForkTimestamp) view returns()

type BeaconChainProofsTestFilterer

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

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

func NewBeaconChainProofsTestFilterer

func NewBeaconChainProofsTestFilterer(address common.Address, filterer bind.ContractFilterer) (*BeaconChainProofsTestFilterer, error)

NewBeaconChainProofsTestFilterer creates a new log filterer instance of BeaconChainProofsTest, bound to a specific deployed contract.

type BeaconChainProofsTestRaw

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

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

func (*BeaconChainProofsTestRaw) Call

func (_BeaconChainProofsTest *BeaconChainProofsTestRaw) 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 (*BeaconChainProofsTestRaw) Transact

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

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

func (*BeaconChainProofsTestRaw) Transfer

func (_BeaconChainProofsTest *BeaconChainProofsTestRaw) 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 BeaconChainProofsTestSession

type BeaconChainProofsTestSession struct {
	Contract     *BeaconChainProofsTest // 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
}

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

func (*BeaconChainProofsTestSession) VerifyStateRootAgainstLatestBlockRoot

func (_BeaconChainProofsTest *BeaconChainProofsTestSession) VerifyStateRootAgainstLatestBlockRoot(latestBlockRoot [32]byte, beaconStateRoot [32]byte, stateRootProof []byte) error

VerifyStateRootAgainstLatestBlockRoot is a free data retrieval call binding the contract method 0x9cdee1f8.

Solidity: function verifyStateRootAgainstLatestBlockRoot(bytes32 latestBlockRoot, bytes32 beaconStateRoot, bytes stateRootProof) view returns()

func (*BeaconChainProofsTestSession) VerifyValidatorFields

func (_BeaconChainProofsTest *BeaconChainProofsTestSession) VerifyValidatorFields(beaconStateRoot [32]byte, validatorFields [][32]byte, validatorFieldsProof []byte, validatorIndex *big.Int) error

VerifyValidatorFields is a free data retrieval call binding the contract method 0x256f222b.

Solidity: function verifyValidatorFields(bytes32 beaconStateRoot, bytes32[] validatorFields, bytes validatorFieldsProof, uint40 validatorIndex) view returns()

func (*BeaconChainProofsTestSession) VerifyWithdrawal

func (_BeaconChainProofsTest *BeaconChainProofsTestSession) VerifyWithdrawal(beaconStateRoot [32]byte, withdrawalFields [][32]byte, withdrawalProof BeaconChainProofsContractWithdrawalProof, denebForkTimestamp uint64) error

VerifyWithdrawal is a free data retrieval call binding the contract method 0x17941319.

Solidity: function verifyWithdrawal(bytes32 beaconStateRoot, bytes32[] withdrawalFields, (bytes,bytes,bytes,bytes,bytes,uint64,uint64,uint64,bytes32,bytes32,bytes32,bytes32) withdrawalProof, uint64 denebForkTimestamp) view returns()

type BeaconChainProofsTestTransactor

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

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

func NewBeaconChainProofsTestTransactor

func NewBeaconChainProofsTestTransactor(address common.Address, transactor bind.ContractTransactor) (*BeaconChainProofsTestTransactor, error)

NewBeaconChainProofsTestTransactor creates a new write-only instance of BeaconChainProofsTest, bound to a specific deployed contract.

type BeaconChainProofsTestTransactorRaw

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

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

func (*BeaconChainProofsTestTransactorRaw) Transact

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

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

func (*BeaconChainProofsTestTransactorRaw) Transfer

func (_BeaconChainProofsTest *BeaconChainProofsTestTransactorRaw) 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 BeaconChainProofsTestTransactorSession

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

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

Jump to

Keyboard shortcuts

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