eip1271

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Eip1271ABI = Eip1271MetaData.ABI

Eip1271ABI is the input ABI used to generate the binding from. Deprecated: Use Eip1271MetaData.ABI instead.

View Source
var Eip1271MetaData = &bind.MetaData{
	ABI: "[{\"constant\":true,\"inputs\":[{\"name\":\"_data\",\"type\":\"bytes\"},{\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"isValidSignature\",\"outputs\":[{\"name\":\"magicValue\",\"type\":\"bytes4\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

Eip1271MetaData contains all meta data concerning the Eip1271 contract.

View Source
var InvalidSigValue = [4]byte{0xff, 0xff, 0xff, 0xff}
View Source
var MAGIC_VALUE_ETH_SIGN = [4]byte{0x16, 0x26, 0xba, 0x7e}
View Source
var MAGIC_VALUE_PERSONAL_SIGN = [4]byte{0x20, 0xc1, 0x3b, 0x0b}

Functions

This section is empty.

Types

type ETHClient

type ETHClient interface {
	BlockNumber(ctx context.Context) (uint64, error)
	ChainID(ctx context.Context) (*big.Int, error)
	bind.ContractBackend
}

type Eip1271

type Eip1271 struct {
	Eip1271Caller     // Read-only binding to the contract
	Eip1271Transactor // Write-only binding to the contract
	Eip1271Filterer   // Log filterer for contract events
}

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

func NewEip1271

func NewEip1271(address common.Address, backend bind.ContractBackend) (*Eip1271, error)

NewEip1271 creates a new instance of Eip1271, bound to a specific deployed contract.

type Eip1271Caller

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

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

func NewEip1271Caller

func NewEip1271Caller(address common.Address, caller bind.ContractCaller) (*Eip1271Caller, error)

NewEip1271Caller creates a new read-only instance of Eip1271, bound to a specific deployed contract.

func (*Eip1271Caller) IsValidSignature

func (_Eip1271 *Eip1271Caller) IsValidSignature(opts *bind.CallOpts, _data []byte, _signature []byte) ([4]byte, error)

IsValidSignature is a free data retrieval call binding the contract method 0x20c13b0b.

Solidity: function isValidSignature(bytes _data, bytes _signature) view returns(bytes4 magicValue)

type Eip1271CallerRaw

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

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

func (*Eip1271CallerRaw) Call

func (_Eip1271 *Eip1271CallerRaw) 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 Eip1271CallerSession

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

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

func (*Eip1271CallerSession) IsValidSignature

func (_Eip1271 *Eip1271CallerSession) IsValidSignature(_data []byte, _signature []byte) ([4]byte, error)

IsValidSignature is a free data retrieval call binding the contract method 0x20c13b0b.

Solidity: function isValidSignature(bytes _data, bytes _signature) view returns(bytes4 magicValue)

type Eip1271Filterer

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

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

func NewEip1271Filterer

func NewEip1271Filterer(address common.Address, filterer bind.ContractFilterer) (*Eip1271Filterer, error)

NewEip1271Filterer creates a new log filterer instance of Eip1271, bound to a specific deployed contract.

type Eip1271Raw

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

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

func (*Eip1271Raw) Call

func (_Eip1271 *Eip1271Raw) 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 (*Eip1271Raw) Transact

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

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

func (*Eip1271Raw) Transfer

func (_Eip1271 *Eip1271Raw) 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 Eip1271Session

type Eip1271Session struct {
	Contract     *Eip1271          // 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
}

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

func (*Eip1271Session) IsValidSignature

func (_Eip1271 *Eip1271Session) IsValidSignature(_data []byte, _signature []byte) ([4]byte, error)

IsValidSignature is a free data retrieval call binding the contract method 0x20c13b0b.

Solidity: function isValidSignature(bytes _data, bytes _signature) view returns(bytes4 magicValue)

type Eip1271Transactor

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

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

func NewEip1271Transactor

func NewEip1271Transactor(address common.Address, transactor bind.ContractTransactor) (*Eip1271Transactor, error)

NewEip1271Transactor creates a new write-only instance of Eip1271, bound to a specific deployed contract.

type Eip1271TransactorRaw

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

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

func (*Eip1271TransactorRaw) Transact

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

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

func (*Eip1271TransactorRaw) Transfer

func (_Eip1271 *Eip1271TransactorRaw) 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 Eip1271TransactorSession

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

Eip1271TransactorSession 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