blockhash_store

package
v1.5.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 9 Imported by: 0

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: "0x608060405234801561001057600080fd5b50610311806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80636057361d1461005157806383b6d6b714610070578063e9413d3814610078578063fadff0e1146100a7575b600080fd5b61006e6004803603602081101561006757600080fd5b5035610154565b005b61006e6101d4565b6100956004803603602081101561008e57600080fd5b50356101e3565b60408051918252519081900360200190f35b61006e600480360360408110156100bd57600080fd5b813591908101906040810160208201356401000000008111156100df57600080fd5b8201836020820111156100f157600080fd5b8035906020019184600183028401116401000000008311171561011357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610264945050505050565b8040806101c257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f626c6f636b68617368286e29206661696c656400000000000000000000000000604482015290519081900360640190fd5b60009182526020829052604090912055565b6101e16101004303610154565b565b6000818152602081905260408120548061025e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f626c6f636b68617368206e6f7420666f756e6420696e2073746f726500000000604482015290519081900360640190fd5b92915050565b600080836001018152602001908152602001600020548180519060200120146102ee57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6865616465722068617320756e6b6e6f776e20626c6f636b6861736800000000604482015290519081900360640190fd5b602401516000918252602082905260409091205556fea164736f6c6343000606000a",
}

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