mockverifier

package
v0.0.1-RC1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: GPL-3.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MockverifierABI = MockverifierMetaData.ABI

MockverifierABI is the input ABI used to generate the binding from. Deprecated: Use MockverifierMetaData.ABI instead.

View Source
var MockverifierBin = MockverifierMetaData.Bin

MockverifierBin is the compiled bytecode used for deploying new contracts. Deprecated: Use MockverifierMetaData.Bin instead.

View Source
var MockverifierMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256[2]\",\"name\":\"a\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2][2]\",\"name\":\"b\",\"type\":\"uint256[2][2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"c\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[1]\",\"name\":\"input\",\"type\":\"uint256[1]\"}],\"name\":\"verifyProof\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b50610101806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806343753b4d14602d575b600080fd5b60426038366004606c565b6001949350505050565b604051901515815260200160405180910390f35b8060408101831015606657600080fd5b92915050565b600080600080610120808688031215608357600080fd5b608b87876056565b945060c0860187811115609d57600080fd5b60408701945060ab88826056565b93505086818701111560bc57600080fd5b5092959194509261010001915056fea2646970667358221220fd8a3c0f0aaf813f6cb0732c65b6c70c98673d54168129b4c058b08dac9751d564736f6c634300080f0033",
}

MockverifierMetaData contains all meta data concerning the Mockverifier contract.

Functions

This section is empty.

Types

type Mockverifier

type Mockverifier struct {
	MockverifierCaller     // Read-only binding to the contract
	MockverifierTransactor // Write-only binding to the contract
	MockverifierFilterer   // Log filterer for contract events
}

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

func DeployMockverifier

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

DeployMockverifier deploys a new Ethereum contract, binding an instance of Mockverifier to it.

func NewMockverifier

func NewMockverifier(address common.Address, backend bind.ContractBackend) (*Mockverifier, error)

NewMockverifier creates a new instance of Mockverifier, bound to a specific deployed contract.

type MockverifierCaller

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

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

func NewMockverifierCaller

func NewMockverifierCaller(address common.Address, caller bind.ContractCaller) (*MockverifierCaller, error)

NewMockverifierCaller creates a new read-only instance of Mockverifier, bound to a specific deployed contract.

func (*MockverifierCaller) VerifyProof

func (_Mockverifier *MockverifierCaller) VerifyProof(opts *bind.CallOpts, a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [1]*big.Int) (bool, error)

VerifyProof is a free data retrieval call binding the contract method 0x43753b4d.

Solidity: function verifyProof(uint256[2] a, uint256[2][2] b, uint256[2] c, uint256[1] input) view returns(bool)

type MockverifierCallerRaw

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

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

func (*MockverifierCallerRaw) Call

func (_Mockverifier *MockverifierCallerRaw) 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 MockverifierCallerSession

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

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

func (*MockverifierCallerSession) VerifyProof

func (_Mockverifier *MockverifierCallerSession) VerifyProof(a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [1]*big.Int) (bool, error)

VerifyProof is a free data retrieval call binding the contract method 0x43753b4d.

Solidity: function verifyProof(uint256[2] a, uint256[2][2] b, uint256[2] c, uint256[1] input) view returns(bool)

type MockverifierFilterer

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

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

func NewMockverifierFilterer

func NewMockverifierFilterer(address common.Address, filterer bind.ContractFilterer) (*MockverifierFilterer, error)

NewMockverifierFilterer creates a new log filterer instance of Mockverifier, bound to a specific deployed contract.

type MockverifierRaw

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

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

func (*MockverifierRaw) Call

func (_Mockverifier *MockverifierRaw) 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 (*MockverifierRaw) Transact

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

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

func (*MockverifierRaw) Transfer

func (_Mockverifier *MockverifierRaw) 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 MockverifierSession

type MockverifierSession struct {
	Contract     *Mockverifier     // 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
}

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

func (*MockverifierSession) VerifyProof

func (_Mockverifier *MockverifierSession) VerifyProof(a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [1]*big.Int) (bool, error)

VerifyProof is a free data retrieval call binding the contract method 0x43753b4d.

Solidity: function verifyProof(uint256[2] a, uint256[2][2] b, uint256[2] c, uint256[1] input) view returns(bool)

type MockverifierTransactor

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

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

func NewMockverifierTransactor

func NewMockverifierTransactor(address common.Address, transactor bind.ContractTransactor) (*MockverifierTransactor, error)

NewMockverifierTransactor creates a new write-only instance of Mockverifier, bound to a specific deployed contract.

type MockverifierTransactorRaw

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

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

func (*MockverifierTransactorRaw) Transact

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

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

func (*MockverifierTransactorRaw) Transfer

func (_Mockverifier *MockverifierTransactorRaw) 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 MockverifierTransactorSession

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

MockverifierTransactorSession 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