contracts

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

README

State smart contracts

abigen --sol ~/git/iden3/contracts/contracts/State.sol --pkg=contracts --out state.go

Generated from git@github.com:iden3/contracts.git commit ae3775b85124176df6f19893963d5ef2f463bb08.

Trusted Setup files sha256:

"circuit.wasm":          "8eafd9314c4d2664a23bf98a4f42cd0c29984960ae3544747ba5fbd60905c41f",
"proving_key.json":      "2c72fceb10323d8b274dbd7649a63c1b6a11fff3a1e4cd7f5ec12516f32ec452",
"verification_key.json": "473952ff80aef85403005eb12d1e78a3f66b1cc11e7bd55d6bfe94e0b5577640",

Documentation

Index

Constants

View Source
const PairingABI = "[]"

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

View Source
const StateABI = "" /* 3128-byte string literal not displayed */

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

View Source
const VerifierABI = "" /* 469-byte string literal not displayed */

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

Variables

View Source
var PairingBin = "" /* 244-byte string literal not displayed */

PairingBin is the compiled bytecode used for deploying new contracts.

View Source
var StateBin = "" /* 7786-byte string literal not displayed */

StateBin is the compiled bytecode used for deploying new contracts.

View Source
var StateFuncSigs = map[string]string{
	"44c9af28": "getState(uint256)",
	"d8dcd971": "getStateDataByBlock(uint256,uint64)",
	"c8d1e53e": "getStateDataById(uint256)",
	"0281bec2": "getStateDataByTime(uint256,uint64)",
	"307ec167": "initState(uint256,uint256,uint256,uint256[2],uint256[2][2],uint256[2])",
	"befb5b77": "setState(uint256,uint256,uint256[2],uint256[2][2],uint256[2])",
}

StateFuncSigs maps the 4-byte function signature to its string representation.

View Source
var VerifierBin = "" /* 8002-byte string literal not displayed */

VerifierBin is the compiled bytecode used for deploying new contracts.

View Source
var VerifierFuncSigs = map[string]string{
	"11479fea": "verifyProof(uint256[2],uint256[2][2],uint256[2],uint256[3])",
}

VerifierFuncSigs maps the 4-byte function signature to its string representation.

Functions

This section is empty.

Types

type Pairing added in v0.0.8

type Pairing struct {
	PairingCaller     // Read-only binding to the contract
	PairingTransactor // Write-only binding to the contract
	PairingFilterer   // Log filterer for contract events
}

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

func DeployPairing added in v0.0.8

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

DeployPairing deploys a new Ethereum contract, binding an instance of Pairing to it.

func NewPairing added in v0.0.8

func NewPairing(address common.Address, backend bind.ContractBackend) (*Pairing, error)

NewPairing creates a new instance of Pairing, bound to a specific deployed contract.

type PairingCaller added in v0.0.8

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

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

func NewPairingCaller added in v0.0.8

func NewPairingCaller(address common.Address, caller bind.ContractCaller) (*PairingCaller, error)

NewPairingCaller creates a new read-only instance of Pairing, bound to a specific deployed contract.

type PairingCallerRaw added in v0.0.8

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

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

func (*PairingCallerRaw) Call added in v0.0.8

func (_Pairing *PairingCallerRaw) 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 PairingCallerSession added in v0.0.8

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

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

type PairingFilterer added in v0.0.8

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

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

func NewPairingFilterer added in v0.0.8

func NewPairingFilterer(address common.Address, filterer bind.ContractFilterer) (*PairingFilterer, error)

NewPairingFilterer creates a new log filterer instance of Pairing, bound to a specific deployed contract.

type PairingRaw added in v0.0.8

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

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

func (*PairingRaw) Call added in v0.0.8

func (_Pairing *PairingRaw) 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 (*PairingRaw) Transact added in v0.0.8

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

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

func (*PairingRaw) Transfer added in v0.0.8

func (_Pairing *PairingRaw) 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 PairingSession added in v0.0.8

type PairingSession struct {
	Contract     *Pairing          // 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
}

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

type PairingTransactor added in v0.0.8

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

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

func NewPairingTransactor added in v0.0.8

func NewPairingTransactor(address common.Address, transactor bind.ContractTransactor) (*PairingTransactor, error)

NewPairingTransactor creates a new write-only instance of Pairing, bound to a specific deployed contract.

type PairingTransactorRaw added in v0.0.8

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

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

func (*PairingTransactorRaw) Transact added in v0.0.8

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

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

func (*PairingTransactorRaw) Transfer added in v0.0.8

func (_Pairing *PairingTransactorRaw) 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 PairingTransactorSession added in v0.0.8

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

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

type State

type State struct {
	StateCaller     // Read-only binding to the contract
	StateTransactor // Write-only binding to the contract
	StateFilterer   // Log filterer for contract events
}

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

func DeployState

func DeployState(auth *bind.TransactOpts, backend bind.ContractBackend, _verifierContractAddr common.Address) (common.Address, *types.Transaction, *State, error)

DeployState deploys a new Ethereum contract, binding an instance of State to it.

func NewState

func NewState(address common.Address, backend bind.ContractBackend) (*State, error)

NewState creates a new instance of State, bound to a specific deployed contract.

type StateCaller

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

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

func NewStateCaller

func NewStateCaller(address common.Address, caller bind.ContractCaller) (*StateCaller, error)

NewStateCaller creates a new read-only instance of State, bound to a specific deployed contract.

func (*StateCaller) GetState

func (_State *StateCaller) GetState(opts *bind.CallOpts, id *big.Int) (*big.Int, error)

GetState is a free data retrieval call binding the contract method 0x44c9af28.

Solidity: function getState(uint256 id) view returns(uint256)

func (*StateCaller) GetStateDataByBlock

func (_State *StateCaller) GetStateDataByBlock(opts *bind.CallOpts, id *big.Int, blockN uint64) (uint64, uint64, *big.Int, error)

GetStateDataByBlock is a free data retrieval call binding the contract method 0xd8dcd971.

Solidity: function getStateDataByBlock(uint256 id, uint64 blockN) view returns(uint64, uint64, uint256)

func (*StateCaller) GetStateDataById

func (_State *StateCaller) GetStateDataById(opts *bind.CallOpts, id *big.Int) (uint64, uint64, *big.Int, error)

GetStateDataById is a free data retrieval call binding the contract method 0xc8d1e53e.

Solidity: function getStateDataById(uint256 id) view returns(uint64, uint64, uint256)

func (*StateCaller) GetStateDataByTime

func (_State *StateCaller) GetStateDataByTime(opts *bind.CallOpts, id *big.Int, timestamp uint64) (uint64, uint64, *big.Int, error)

GetStateDataByTime is a free data retrieval call binding the contract method 0x0281bec2.

Solidity: function getStateDataByTime(uint256 id, uint64 timestamp) view returns(uint64, uint64, uint256)

type StateCallerRaw

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

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

func (*StateCallerRaw) Call

func (_State *StateCallerRaw) 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 StateCallerSession

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

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

func (*StateCallerSession) GetState

func (_State *StateCallerSession) GetState(id *big.Int) (*big.Int, error)

GetState is a free data retrieval call binding the contract method 0x44c9af28.

Solidity: function getState(uint256 id) view returns(uint256)

func (*StateCallerSession) GetStateDataByBlock

func (_State *StateCallerSession) GetStateDataByBlock(id *big.Int, blockN uint64) (uint64, uint64, *big.Int, error)

GetStateDataByBlock is a free data retrieval call binding the contract method 0xd8dcd971.

Solidity: function getStateDataByBlock(uint256 id, uint64 blockN) view returns(uint64, uint64, uint256)

func (*StateCallerSession) GetStateDataById

func (_State *StateCallerSession) GetStateDataById(id *big.Int) (uint64, uint64, *big.Int, error)

GetStateDataById is a free data retrieval call binding the contract method 0xc8d1e53e.

Solidity: function getStateDataById(uint256 id) view returns(uint64, uint64, uint256)

func (*StateCallerSession) GetStateDataByTime

func (_State *StateCallerSession) GetStateDataByTime(id *big.Int, timestamp uint64) (uint64, uint64, *big.Int, error)

GetStateDataByTime is a free data retrieval call binding the contract method 0x0281bec2.

Solidity: function getStateDataByTime(uint256 id, uint64 timestamp) view returns(uint64, uint64, uint256)

type StateFilterer

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

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

func NewStateFilterer

func NewStateFilterer(address common.Address, filterer bind.ContractFilterer) (*StateFilterer, error)

NewStateFilterer creates a new log filterer instance of State, bound to a specific deployed contract.

func (*StateFilterer) FilterStateUpdated

func (_State *StateFilterer) FilterStateUpdated(opts *bind.FilterOpts) (*StateStateUpdatedIterator, error)

FilterStateUpdated is a free log retrieval operation binding the contract event 0x81c6f328b24014ef550c34a433275b52f3a8a0f32aa871adec069ab526a02390.

Solidity: event StateUpdated(uint256 id, uint64 blockN, uint64 timestamp, uint256 state)

func (*StateFilterer) ParseStateUpdated

func (_State *StateFilterer) ParseStateUpdated(log types.Log) (*StateStateUpdated, error)

ParseStateUpdated is a log parse operation binding the contract event 0x81c6f328b24014ef550c34a433275b52f3a8a0f32aa871adec069ab526a02390.

Solidity: event StateUpdated(uint256 id, uint64 blockN, uint64 timestamp, uint256 state)

func (*StateFilterer) WatchStateUpdated

func (_State *StateFilterer) WatchStateUpdated(opts *bind.WatchOpts, sink chan<- *StateStateUpdated) (event.Subscription, error)

WatchStateUpdated is a free log subscription operation binding the contract event 0x81c6f328b24014ef550c34a433275b52f3a8a0f32aa871adec069ab526a02390.

Solidity: event StateUpdated(uint256 id, uint64 blockN, uint64 timestamp, uint256 state)

type StateRaw

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

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

func (*StateRaw) Call

func (_State *StateRaw) 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 (*StateRaw) Transact

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

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

func (*StateRaw) Transfer

func (_State *StateRaw) 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 StateSession

type StateSession struct {
	Contract     *State            // 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
}

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

func (*StateSession) GetState

func (_State *StateSession) GetState(id *big.Int) (*big.Int, error)

GetState is a free data retrieval call binding the contract method 0x44c9af28.

Solidity: function getState(uint256 id) view returns(uint256)

func (*StateSession) GetStateDataByBlock

func (_State *StateSession) GetStateDataByBlock(id *big.Int, blockN uint64) (uint64, uint64, *big.Int, error)

GetStateDataByBlock is a free data retrieval call binding the contract method 0xd8dcd971.

Solidity: function getStateDataByBlock(uint256 id, uint64 blockN) view returns(uint64, uint64, uint256)

func (*StateSession) GetStateDataById

func (_State *StateSession) GetStateDataById(id *big.Int) (uint64, uint64, *big.Int, error)

GetStateDataById is a free data retrieval call binding the contract method 0xc8d1e53e.

Solidity: function getStateDataById(uint256 id) view returns(uint64, uint64, uint256)

func (*StateSession) GetStateDataByTime

func (_State *StateSession) GetStateDataByTime(id *big.Int, timestamp uint64) (uint64, uint64, *big.Int, error)

GetStateDataByTime is a free data retrieval call binding the contract method 0x0281bec2.

Solidity: function getStateDataByTime(uint256 id, uint64 timestamp) view returns(uint64, uint64, uint256)

func (*StateSession) InitState

func (_State *StateSession) InitState(newState *big.Int, genesisState *big.Int, id *big.Int, a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int) (*types.Transaction, error)

InitState is a paid mutator transaction binding the contract method 0x307ec167.

Solidity: function initState(uint256 newState, uint256 genesisState, uint256 id, uint256[2] a, uint256[2][2] b, uint256[2] c) returns()

func (*StateSession) SetState

func (_State *StateSession) SetState(newState *big.Int, id *big.Int, a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int) (*types.Transaction, error)

SetState is a paid mutator transaction binding the contract method 0xbefb5b77.

Solidity: function setState(uint256 newState, uint256 id, uint256[2] a, uint256[2][2] b, uint256[2] c) returns()

type StateStateUpdated

type StateStateUpdated struct {
	Id        *big.Int
	BlockN    uint64
	Timestamp uint64
	State     *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

StateStateUpdated represents a StateUpdated event raised by the State contract.

type StateStateUpdatedIterator

type StateStateUpdatedIterator struct {
	Event *StateStateUpdated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StateStateUpdatedIterator is returned from FilterStateUpdated and is used to iterate over the raw logs and unpacked data for StateUpdated events raised by the State contract.

func (*StateStateUpdatedIterator) Close

func (it *StateStateUpdatedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StateStateUpdatedIterator) Error

func (it *StateStateUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StateStateUpdatedIterator) Next

func (it *StateStateUpdatedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type StateTransactor

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

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

func NewStateTransactor

func NewStateTransactor(address common.Address, transactor bind.ContractTransactor) (*StateTransactor, error)

NewStateTransactor creates a new write-only instance of State, bound to a specific deployed contract.

func (*StateTransactor) InitState

func (_State *StateTransactor) InitState(opts *bind.TransactOpts, newState *big.Int, genesisState *big.Int, id *big.Int, a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int) (*types.Transaction, error)

InitState is a paid mutator transaction binding the contract method 0x307ec167.

Solidity: function initState(uint256 newState, uint256 genesisState, uint256 id, uint256[2] a, uint256[2][2] b, uint256[2] c) returns()

func (*StateTransactor) SetState

func (_State *StateTransactor) SetState(opts *bind.TransactOpts, newState *big.Int, id *big.Int, a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int) (*types.Transaction, error)

SetState is a paid mutator transaction binding the contract method 0xbefb5b77.

Solidity: function setState(uint256 newState, uint256 id, uint256[2] a, uint256[2][2] b, uint256[2] c) returns()

type StateTransactorRaw

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

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

func (*StateTransactorRaw) Transact

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

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

func (*StateTransactorRaw) Transfer

func (_State *StateTransactorRaw) 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 StateTransactorSession

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

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

func (*StateTransactorSession) InitState

func (_State *StateTransactorSession) InitState(newState *big.Int, genesisState *big.Int, id *big.Int, a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int) (*types.Transaction, error)

InitState is a paid mutator transaction binding the contract method 0x307ec167.

Solidity: function initState(uint256 newState, uint256 genesisState, uint256 id, uint256[2] a, uint256[2][2] b, uint256[2] c) returns()

func (*StateTransactorSession) SetState

func (_State *StateTransactorSession) SetState(newState *big.Int, id *big.Int, a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int) (*types.Transaction, error)

SetState is a paid mutator transaction binding the contract method 0xbefb5b77.

Solidity: function setState(uint256 newState, uint256 id, uint256[2] a, uint256[2][2] b, uint256[2] c) returns()

type Verifier added in v0.0.8

type Verifier struct {
	VerifierCaller     // Read-only binding to the contract
	VerifierTransactor // Write-only binding to the contract
	VerifierFilterer   // Log filterer for contract events
}

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

func DeployVerifier added in v0.0.8

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

DeployVerifier deploys a new Ethereum contract, binding an instance of Verifier to it.

func NewVerifier added in v0.0.8

func NewVerifier(address common.Address, backend bind.ContractBackend) (*Verifier, error)

NewVerifier creates a new instance of Verifier, bound to a specific deployed contract.

type VerifierCaller added in v0.0.8

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

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

func NewVerifierCaller added in v0.0.8

func NewVerifierCaller(address common.Address, caller bind.ContractCaller) (*VerifierCaller, error)

NewVerifierCaller creates a new read-only instance of Verifier, bound to a specific deployed contract.

func (*VerifierCaller) VerifyProof added in v0.0.8

func (_Verifier *VerifierCaller) VerifyProof(opts *bind.CallOpts, a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [3]*big.Int) (bool, error)

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

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

type VerifierCallerRaw added in v0.0.8

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

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

func (*VerifierCallerRaw) Call added in v0.0.8

func (_Verifier *VerifierCallerRaw) 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 VerifierCallerSession added in v0.0.8

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

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

func (*VerifierCallerSession) VerifyProof added in v0.0.8

func (_Verifier *VerifierCallerSession) VerifyProof(a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [3]*big.Int) (bool, error)

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

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

type VerifierFilterer added in v0.0.8

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

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

func NewVerifierFilterer added in v0.0.8

func NewVerifierFilterer(address common.Address, filterer bind.ContractFilterer) (*VerifierFilterer, error)

NewVerifierFilterer creates a new log filterer instance of Verifier, bound to a specific deployed contract.

type VerifierRaw added in v0.0.8

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

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

func (*VerifierRaw) Call added in v0.0.8

func (_Verifier *VerifierRaw) 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 (*VerifierRaw) Transact added in v0.0.8

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

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

func (*VerifierRaw) Transfer added in v0.0.8

func (_Verifier *VerifierRaw) 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 VerifierSession added in v0.0.8

type VerifierSession struct {
	Contract     *Verifier         // 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
}

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

func (*VerifierSession) VerifyProof added in v0.0.8

func (_Verifier *VerifierSession) VerifyProof(a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [3]*big.Int) (bool, error)

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

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

type VerifierTransactor added in v0.0.8

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

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

func NewVerifierTransactor added in v0.0.8

func NewVerifierTransactor(address common.Address, transactor bind.ContractTransactor) (*VerifierTransactor, error)

NewVerifierTransactor creates a new write-only instance of Verifier, bound to a specific deployed contract.

type VerifierTransactorRaw added in v0.0.8

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

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

func (*VerifierTransactorRaw) Transact added in v0.0.8

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

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

func (*VerifierTransactorRaw) Transfer added in v0.0.8

func (_Verifier *VerifierTransactorRaw) 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 VerifierTransactorSession added in v0.0.8

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

VerifierTransactorSession 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