eip712example

package
v0.63.5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: MPL-2.0 Imports: 5 Imported by: 0

README

EIP712 example smart contract

example.sol is taken from https://github.com/ethereum/EIPs/blob/master/assets/eip-712/Example.sol and slightly modified in order to read results from golang bindings.

Documentation

Index

Constants

View Source
const ExampleABI = "" /* 740-byte string literal not displayed */

ExampleABI is the input ABI used to generate the binding from.

View Source
const ExampleBin = `` /* 8580-byte string literal not displayed */

ExampleBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Example

type Example struct {
	ExampleCaller     // Read-only binding to the contract
	ExampleTransactor // Write-only binding to the contract
	ExampleFilterer   // Log filterer for contract events
}

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

func DeployExample

func DeployExample(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Example, error)

DeployExample deploys a new Ethereum contract, binding an instance of Example to it.

func NewExample

func NewExample(address common.Address, backend bind.ContractBackend) (*Example, error)

NewExample creates a new instance of Example, bound to a specific deployed contract.

type ExampleCaller

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

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

func NewExampleCaller

func NewExampleCaller(address common.Address, caller bind.ContractCaller) (*ExampleCaller, error)

NewExampleCaller creates a new read-only instance of Example, bound to a specific deployed contract.

func (*ExampleCaller) DOMAINSEPARATOR

func (_Example *ExampleCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() constant returns(bytes32)

func (*ExampleCaller) MAIL

func (_Example *ExampleCaller) MAIL(opts *bind.CallOpts) ([32]byte, error)

MAIL is a free data retrieval call binding the contract method 0x87d093da.

Solidity: function MAIL() constant returns(bytes32)

type ExampleCallerRaw

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

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

func (*ExampleCallerRaw) Call

func (_Example *ExampleCallerRaw) 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 ExampleCallerSession

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

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

func (*ExampleCallerSession) DOMAINSEPARATOR

func (_Example *ExampleCallerSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() constant returns(bytes32)

func (*ExampleCallerSession) MAIL

func (_Example *ExampleCallerSession) MAIL() ([32]byte, error)

MAIL is a free data retrieval call binding the contract method 0x87d093da.

Solidity: function MAIL() constant returns(bytes32)

type ExampleFilterer

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

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

func NewExampleFilterer

func NewExampleFilterer(address common.Address, filterer bind.ContractFilterer) (*ExampleFilterer, error)

NewExampleFilterer creates a new log filterer instance of Example, bound to a specific deployed contract.

type ExampleRaw

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

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

func (*ExampleRaw) Call

func (_Example *ExampleRaw) 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 (*ExampleRaw) Transact

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

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

func (*ExampleRaw) Transfer

func (_Example *ExampleRaw) 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 ExampleSession

type ExampleSession struct {
	Contract     *Example          // 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
}

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

func (*ExampleSession) DOMAINSEPARATOR

func (_Example *ExampleSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() constant returns(bytes32)

func (*ExampleSession) MAIL

func (_Example *ExampleSession) MAIL() ([32]byte, error)

MAIL is a free data retrieval call binding the contract method 0x87d093da.

Solidity: function MAIL() constant returns(bytes32)

func (*ExampleSession) Verify

func (_Example *ExampleSession) Verify(v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Verify is a paid mutator transaction binding the contract method 0xe2454522.

Solidity: function verify(v uint8, r bytes32, s bytes32) returns(bool)

type ExampleTransactor

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

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

func NewExampleTransactor

func NewExampleTransactor(address common.Address, transactor bind.ContractTransactor) (*ExampleTransactor, error)

NewExampleTransactor creates a new write-only instance of Example, bound to a specific deployed contract.

func (*ExampleTransactor) Verify

func (_Example *ExampleTransactor) Verify(opts *bind.TransactOpts, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Verify is a paid mutator transaction binding the contract method 0xe2454522.

Solidity: function verify(v uint8, r bytes32, s bytes32) returns(bool)

type ExampleTransactorRaw

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

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

func (*ExampleTransactorRaw) Transact

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

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

func (*ExampleTransactorRaw) Transfer

func (_Example *ExampleTransactorRaw) 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 ExampleTransactorSession

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

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

func (*ExampleTransactorSession) Verify

func (_Example *ExampleTransactorSession) Verify(v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Verify is a paid mutator transaction binding the contract method 0xe2454522.

Solidity: function verify(v uint8, r bytes32, s bytes32) returns(bool)

Jump to

Keyboard shortcuts

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