blockhash_store

package
v2.2.0-clf-20230606 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlockhashStoreABI = BlockhashStoreMetaData.ABI
View Source
var BlockhashStoreBin = BlockhashStoreMetaData.Bin
View Source
var BlockhashStoreMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"n\",\"type\":\"uint256\"}],\"name\":\"getBlockhash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"n\",\"type\":\"uint256\"}],\"name\":\"store\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"storeEarliest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"n\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"header\",\"type\":\"bytes\"}],\"name\":\"storeVerifyHeader\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b506104b1806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80636057361d1461005157806383b6d6b714610070578063e9413d3814610078578063fadff0e1146100a7575b600080fd5b61006e6004803603602081101561006757600080fd5b5035610154565b005b61006e6101df565b6100956004803603602081101561008e57600080fd5b50356101f5565b60408051918252519081900360200190f35b61006e600480360360408110156100bd57600080fd5b813591908101906040810160208201356401000000008111156100df57600080fd5b8201836020820111156100f157600080fd5b8035906020019184600183028401116401000000008311171561011357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610278945050505050565b600061015f82610318565b9050806101cd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f626c6f636b68617368286e29206661696c656400000000000000000000000000604482015290519081900360640190fd5b60009182526020829052604090912055565b6101f36101006101ed6103f8565b03610154565b565b6000818152602081905260408120548061027057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f626c6f636b68617368206e6f7420666f756e6420696e2073746f726500000000604482015290519081900360640190fd5b90505b919050565b6000808360010181526020019081526020016000205481805190602001201461030257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6865616465722068617320756e6b6e6f776e20626c6f636b6861736800000000604482015290519081900360640190fd5b6024015160009182526020829052604090912055565b6000806103236104a0565b905061a4b1811480610337575062066eed81145b156103f257610100836103486103f8565b03118061035c57506103586103f8565b8310155b1561036b576000915050610273565b606473ffffffffffffffffffffffffffffffffffffffff16632b407a82846040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156103bd57600080fd5b505afa1580156103d1573d6000803e3d6000fd5b505050506040513d60208110156103e757600080fd5b505191506102739050565b50504090565b6000806104036104a0565b905061a4b1811480610417575062066eed81145b1561049857606473ffffffffffffffffffffffffffffffffffffffff1663a3b1b31d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561046357600080fd5b505afa158015610477573d6000803e3d6000fd5b505050506040513d602081101561048d57600080fd5b5051915061049d9050565b439150505b90565b469056fea164736f6c6343000606000a",
}

Functions

This section is empty.

Types

type BlockhashStore

type BlockhashStore struct {
	BlockhashStoreCaller
	BlockhashStoreTransactor
	BlockhashStoreFilterer
	// contains filtered or unexported fields
}

func NewBlockhashStore

func NewBlockhashStore(address common.Address, backend bind.ContractBackend) (*BlockhashStore, error)

func (*BlockhashStore) Address

func (_BlockhashStore *BlockhashStore) Address() common.Address

type BlockhashStoreCaller

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

func NewBlockhashStoreCaller

func NewBlockhashStoreCaller(address common.Address, caller bind.ContractCaller) (*BlockhashStoreCaller, error)

func (*BlockhashStoreCaller) GetBlockhash

func (_BlockhashStore *BlockhashStoreCaller) GetBlockhash(opts *bind.CallOpts, n *big.Int) ([32]byte, error)

type BlockhashStoreCallerRaw

type BlockhashStoreCallerRaw struct {
	Contract *BlockhashStoreCaller
}

func (*BlockhashStoreCallerRaw) Call

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

type BlockhashStoreCallerSession

type BlockhashStoreCallerSession struct {
	Contract *BlockhashStoreCaller
	CallOpts bind.CallOpts
}

func (*BlockhashStoreCallerSession) GetBlockhash

func (_BlockhashStore *BlockhashStoreCallerSession) GetBlockhash(n *big.Int) ([32]byte, error)

type BlockhashStoreFilterer

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

func NewBlockhashStoreFilterer

func NewBlockhashStoreFilterer(address common.Address, filterer bind.ContractFilterer) (*BlockhashStoreFilterer, error)

type BlockhashStoreInterface

type BlockhashStoreInterface interface {
	GetBlockhash(opts *bind.CallOpts, n *big.Int) ([32]byte, error)

	Store(opts *bind.TransactOpts, n *big.Int) (*types.Transaction, error)

	StoreEarliest(opts *bind.TransactOpts) (*types.Transaction, error)

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

	Address() common.Address
}

type BlockhashStoreRaw

type BlockhashStoreRaw struct {
	Contract *BlockhashStore
}

func (*BlockhashStoreRaw) Call

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

func (*BlockhashStoreRaw) Transact

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

func (*BlockhashStoreRaw) Transfer

func (_BlockhashStore *BlockhashStoreRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type BlockhashStoreSession

type BlockhashStoreSession struct {
	Contract     *BlockhashStore
	CallOpts     bind.CallOpts
	TransactOpts bind.TransactOpts
}

func (*BlockhashStoreSession) GetBlockhash

func (_BlockhashStore *BlockhashStoreSession) GetBlockhash(n *big.Int) ([32]byte, error)

func (*BlockhashStoreSession) Store

func (_BlockhashStore *BlockhashStoreSession) Store(n *big.Int) (*types.Transaction, error)

func (*BlockhashStoreSession) StoreEarliest

func (_BlockhashStore *BlockhashStoreSession) StoreEarliest() (*types.Transaction, error)

func (*BlockhashStoreSession) StoreVerifyHeader

func (_BlockhashStore *BlockhashStoreSession) StoreVerifyHeader(n *big.Int, header []byte) (*types.Transaction, error)

type BlockhashStoreTransactor

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

func NewBlockhashStoreTransactor

func NewBlockhashStoreTransactor(address common.Address, transactor bind.ContractTransactor) (*BlockhashStoreTransactor, error)

func (*BlockhashStoreTransactor) Store

func (_BlockhashStore *BlockhashStoreTransactor) Store(opts *bind.TransactOpts, n *big.Int) (*types.Transaction, error)

func (*BlockhashStoreTransactor) StoreEarliest

func (_BlockhashStore *BlockhashStoreTransactor) StoreEarliest(opts *bind.TransactOpts) (*types.Transaction, error)

func (*BlockhashStoreTransactor) StoreVerifyHeader

func (_BlockhashStore *BlockhashStoreTransactor) StoreVerifyHeader(opts *bind.TransactOpts, n *big.Int, header []byte) (*types.Transaction, error)

type BlockhashStoreTransactorRaw

type BlockhashStoreTransactorRaw struct {
	Contract *BlockhashStoreTransactor
}

func (*BlockhashStoreTransactorRaw) Transact

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

func (*BlockhashStoreTransactorRaw) Transfer

func (_BlockhashStore *BlockhashStoreTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type BlockhashStoreTransactorSession

type BlockhashStoreTransactorSession struct {
	Contract     *BlockhashStoreTransactor
	TransactOpts bind.TransactOpts
}

func (*BlockhashStoreTransactorSession) Store

func (_BlockhashStore *BlockhashStoreTransactorSession) Store(n *big.Int) (*types.Transaction, error)

func (*BlockhashStoreTransactorSession) StoreEarliest

func (_BlockhashStore *BlockhashStoreTransactorSession) StoreEarliest() (*types.Transaction, error)

func (*BlockhashStoreTransactorSession) StoreVerifyHeader

func (_BlockhashStore *BlockhashStoreTransactorSession) StoreVerifyHeader(n *big.Int, header []byte) (*types.Transaction, error)

Jump to

Keyboard shortcuts

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