batch_blockhash_store

package
v2.0.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BatchBlockhashStoreABI = BatchBlockhashStoreMetaData.ABI
View Source
var BatchBlockhashStoreBin = BatchBlockhashStoreMetaData.Bin
View Source
var BatchBlockhashStoreMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"blockhashStoreAddr\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"BHS\",\"outputs\":[{\"internalType\":\"contractBlockhashStore\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"blockNumbers\",\"type\":\"uint256[]\"}],\"name\":\"getBlockhashes\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"blockNumbers\",\"type\":\"uint256[]\"}],\"name\":\"store\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"blockNumbers\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"headers\",\"type\":\"bytes[]\"}],\"name\":\"storeVerifyHeader\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60a060405234801561001057600080fd5b50604051610acb380380610acb83398101604081905261002f91610044565b60601b6001600160601b031916608052610074565b60006020828403121561005657600080fd5b81516001600160a01b038116811461006d57600080fd5b9392505050565b60805160601c610a256100a66000396000818160a7015281816101270152818161023a01526104290152610a256000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806306bd010d146100515780631f600f86146100665780635d290e211461008f578063f745eafb146100a2575b600080fd5b61006461005f36600461059e565b6100ee565b005b61007961007436600461059e565b6101e2565b6040516100869190610749565b60405180910390f35b61006461009d3660046105db565b6103ac565b6100c97f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610086565b60005b81518110156101de5761011c82828151811061010f5761010f6108f6565b60200260200101516104fe565b610125576101cc565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636057361d838381518110610173576101736108f6565b60200260200101516040518263ffffffff1660e01b815260040161019991815260200190565b600060405180830381600087803b1580156101b357600080fd5b505af11580156101c7573d6000803e3d6000fd5b505050505b806101d68161088e565b9150506100f1565b5050565b60606000825167ffffffffffffffff81111561020057610200610925565b604051908082528060200260200182016040528015610229578160200160208202803683370190505b50905060005b83518110156103a5577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663e9413d38858381518110610286576102866108f6565b60200260200101516040518263ffffffff1660e01b81526004016102ac91815260200190565b60206040518083038186803b1580156102c457600080fd5b505afa925050508015610312575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261030f91810190610730565b60015b6103725761031e610954565b806308c379a014156103665750610333610970565b8061033e5750610368565b6000801b838381518110610354576103546108f6565b60200260200101818152505050610393565b505b3d6000803e3d6000fd5b80838381518110610385576103856108f6565b602002602001018181525050505b8061039d8161088e565b91505061022f565b5092915050565b805182511461041b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f696e70757420617272617920617267206c656e67746873206d69736d61746368604482015260640160405180910390fd5b60005b82518110156104f9577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fadff0e1848381518110610475576104756108f6565b602002602001015184848151811061048f5761048f6108f6565b60200260200101516040518363ffffffff1660e01b81526004016104b492919061078d565b600060405180830381600087803b1580156104ce57600080fd5b505af11580156104e2573d6000803e3d6000fd5b5050505080806104f19061088e565b91505061041e565b505050565b600061010043111561051e576105166101004361082c565b821015610521565b60015b92915050565b600082601f83011261053857600080fd5b8135602061054582610808565b6040516105528282610843565b8381528281019150858301600585901b8701840188101561057257600080fd5b60005b8581101561059157813584529284019290840190600101610575565b5090979650505050505050565b6000602082840312156105b057600080fd5b813567ffffffffffffffff8111156105c757600080fd5b6105d384828501610527565b949350505050565b60008060408084860312156105ef57600080fd5b833567ffffffffffffffff8082111561060757600080fd5b61061387838801610527565b945060209150818601358181111561062a57600080fd5b8601601f8101881361063b57600080fd5b803561064681610808565b85516106528282610843565b8281528581019150838601600584901b850187018c101561067257600080fd5b60005b8481101561071e5781358781111561068c57600080fd5b8601603f81018e1361069d57600080fd5b88810135888111156106b1576106b1610925565b8a516106e48b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160182610843565b8181528f8c8385010111156106f857600080fd5b818c84018c83013760009181018b01919091528552509287019290870190600101610675565b50989b909a5098505050505050505050565b60006020828403121561074257600080fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b8181101561078157835183529284019291840191600101610765565b50909695505050505050565b82815260006020604081840152835180604085015260005b818110156107c1578581018301518582016060015282016107a5565b818111156107d3576000606083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01692909201606001949350505050565b600067ffffffffffffffff82111561082257610822610925565b5060051b60200190565b60008282101561083e5761083e6108c7565b500390565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff8211171561088757610887610925565b6040525050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156108c0576108c06108c7565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d111561096d5760046000803e5060005160e01c5b90565b600060443d101561097e5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff81602484011181841117156109cc57505050505090565b82850191508151818111156109e45750505050505090565b843d87010160208285010111156109fe5750505050505090565b610a0d60208286010187610843565b50909594505050505056fea164736f6c6343000806000a",
}

Functions

This section is empty.

Types

type BatchBlockhashStore

type BatchBlockhashStore struct {
	BatchBlockhashStoreCaller
	BatchBlockhashStoreTransactor
	BatchBlockhashStoreFilterer
	// contains filtered or unexported fields
}

func DeployBatchBlockhashStore

func DeployBatchBlockhashStore(auth *bind.TransactOpts, backend bind.ContractBackend, blockhashStoreAddr common.Address) (common.Address, *types.Transaction, *BatchBlockhashStore, error)

func NewBatchBlockhashStore

func NewBatchBlockhashStore(address common.Address, backend bind.ContractBackend) (*BatchBlockhashStore, error)

func (*BatchBlockhashStore) Address

func (_BatchBlockhashStore *BatchBlockhashStore) Address() common.Address

type BatchBlockhashStoreCaller

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

func NewBatchBlockhashStoreCaller

func NewBatchBlockhashStoreCaller(address common.Address, caller bind.ContractCaller) (*BatchBlockhashStoreCaller, error)

func (*BatchBlockhashStoreCaller) BHS

func (_BatchBlockhashStore *BatchBlockhashStoreCaller) BHS(opts *bind.CallOpts) (common.Address, error)

func (*BatchBlockhashStoreCaller) GetBlockhashes

func (_BatchBlockhashStore *BatchBlockhashStoreCaller) GetBlockhashes(opts *bind.CallOpts, blockNumbers []*big.Int) ([][32]byte, error)

type BatchBlockhashStoreCallerRaw

type BatchBlockhashStoreCallerRaw struct {
	Contract *BatchBlockhashStoreCaller
}

func (*BatchBlockhashStoreCallerRaw) Call

func (_BatchBlockhashStore *BatchBlockhashStoreCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

type BatchBlockhashStoreCallerSession

type BatchBlockhashStoreCallerSession struct {
	Contract *BatchBlockhashStoreCaller
	CallOpts bind.CallOpts
}

func (*BatchBlockhashStoreCallerSession) BHS

func (_BatchBlockhashStore *BatchBlockhashStoreCallerSession) BHS() (common.Address, error)

func (*BatchBlockhashStoreCallerSession) GetBlockhashes

func (_BatchBlockhashStore *BatchBlockhashStoreCallerSession) GetBlockhashes(blockNumbers []*big.Int) ([][32]byte, error)

type BatchBlockhashStoreFilterer

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

func NewBatchBlockhashStoreFilterer

func NewBatchBlockhashStoreFilterer(address common.Address, filterer bind.ContractFilterer) (*BatchBlockhashStoreFilterer, error)

type BatchBlockhashStoreInterface

type BatchBlockhashStoreInterface interface {
	BHS(opts *bind.CallOpts) (common.Address, error)

	GetBlockhashes(opts *bind.CallOpts, blockNumbers []*big.Int) ([][32]byte, error)

	Store(opts *bind.TransactOpts, blockNumbers []*big.Int) (*types.Transaction, error)

	StoreVerifyHeader(opts *bind.TransactOpts, blockNumbers []*big.Int, headers [][]byte) (*types.Transaction, error)

	Address() common.Address
}

type BatchBlockhashStoreRaw

type BatchBlockhashStoreRaw struct {
	Contract *BatchBlockhashStore
}

func (*BatchBlockhashStoreRaw) Call

func (_BatchBlockhashStore *BatchBlockhashStoreRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

func (*BatchBlockhashStoreRaw) Transact

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

func (*BatchBlockhashStoreRaw) Transfer

func (_BatchBlockhashStore *BatchBlockhashStoreRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type BatchBlockhashStoreSession

type BatchBlockhashStoreSession struct {
	Contract     *BatchBlockhashStore
	CallOpts     bind.CallOpts
	TransactOpts bind.TransactOpts
}

func (*BatchBlockhashStoreSession) BHS

func (_BatchBlockhashStore *BatchBlockhashStoreSession) BHS() (common.Address, error)

func (*BatchBlockhashStoreSession) GetBlockhashes

func (_BatchBlockhashStore *BatchBlockhashStoreSession) GetBlockhashes(blockNumbers []*big.Int) ([][32]byte, error)

func (*BatchBlockhashStoreSession) Store

func (_BatchBlockhashStore *BatchBlockhashStoreSession) Store(blockNumbers []*big.Int) (*types.Transaction, error)

func (*BatchBlockhashStoreSession) StoreVerifyHeader

func (_BatchBlockhashStore *BatchBlockhashStoreSession) StoreVerifyHeader(blockNumbers []*big.Int, headers [][]byte) (*types.Transaction, error)

type BatchBlockhashStoreTransactor

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

func NewBatchBlockhashStoreTransactor

func NewBatchBlockhashStoreTransactor(address common.Address, transactor bind.ContractTransactor) (*BatchBlockhashStoreTransactor, error)

func (*BatchBlockhashStoreTransactor) Store

func (_BatchBlockhashStore *BatchBlockhashStoreTransactor) Store(opts *bind.TransactOpts, blockNumbers []*big.Int) (*types.Transaction, error)

func (*BatchBlockhashStoreTransactor) StoreVerifyHeader

func (_BatchBlockhashStore *BatchBlockhashStoreTransactor) StoreVerifyHeader(opts *bind.TransactOpts, blockNumbers []*big.Int, headers [][]byte) (*types.Transaction, error)

type BatchBlockhashStoreTransactorRaw

type BatchBlockhashStoreTransactorRaw struct {
	Contract *BatchBlockhashStoreTransactor
}

func (*BatchBlockhashStoreTransactorRaw) Transact

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

func (*BatchBlockhashStoreTransactorRaw) Transfer

func (_BatchBlockhashStore *BatchBlockhashStoreTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type BatchBlockhashStoreTransactorSession

type BatchBlockhashStoreTransactorSession struct {
	Contract     *BatchBlockhashStoreTransactor
	TransactOpts bind.TransactOpts
}

func (*BatchBlockhashStoreTransactorSession) Store

func (_BatchBlockhashStore *BatchBlockhashStoreTransactorSession) Store(blockNumbers []*big.Int) (*types.Transaction, error)

func (*BatchBlockhashStoreTransactorSession) StoreVerifyHeader

func (_BatchBlockhashStore *BatchBlockhashStoreTransactorSession) StoreVerifyHeader(blockNumbers []*big.Int, headers [][]byte) (*types.Transaction, error)

Jump to

Keyboard shortcuts

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