Documentation ¶
Index ¶
- Variables
- type IBaseVerifierProveIdentityParams
- type IBaseVerifierTransitStateParams
- type ILightweightStateGistRootData
- type ILightweightStateStatesMerkleData
- type IRegisterVerifierRegisterProofParams
- type IRegistrationRegistrationCounters
- type IRegistrationRegistrationInfo
- type IRegistrationRegistrationParams
- type IRegistrationRegistrationValues
- type SparseMerkleTreeNode
- type SparseMerkleTreeProof
- type VoteVerifier
- type VoteVerifierCaller
- func (_VoteVerifier *VoteVerifierCaller) Commitments(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- func (_VoteVerifier *VoteVerifierCaller) GetNodeByKey(opts *bind.CallOpts, key_ [32]byte) (SparseMerkleTreeNode, error)
- func (_VoteVerifier *VoteVerifierCaller) GetProof(opts *bind.CallOpts, key_ [32]byte) (SparseMerkleTreeProof, error)
- func (_VoteVerifier *VoteVerifierCaller) GetRegistrationInfo(opts *bind.CallOpts) (IRegistrationRegistrationInfo, error)
- func (_VoteVerifier *VoteVerifierCaller) GetRegistrationStatus(opts *bind.CallOpts) (uint8, error)
- func (_VoteVerifier *VoteVerifierCaller) GetRoot(opts *bind.CallOpts) ([32]byte, error)
- func (_VoteVerifier *VoteVerifierCaller) IsRootExists(opts *bind.CallOpts, root [32]byte) (bool, error)
- func (_VoteVerifier *VoteVerifierCaller) IsUserRegistered(opts *bind.CallOpts, documentNullifier *big.Int) (bool, error)
- func (_VoteVerifier *VoteVerifierCaller) RegisterVerifier(opts *bind.CallOpts) (common.Address, error)
- func (_VoteVerifier *VoteVerifierCaller) RegistrationInfo(opts *bind.CallOpts) (struct{ ... }, error)
- func (_VoteVerifier *VoteVerifierCaller) RootsHistory(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- func (_VoteVerifier *VoteVerifierCaller) SmtTreeMaxDepth(opts *bind.CallOpts) (*big.Int, error)
- type VoteVerifierCallerRaw
- type VoteVerifierCallerSession
- func (_VoteVerifier *VoteVerifierCallerSession) Commitments(arg0 [32]byte) (bool, error)
- func (_VoteVerifier *VoteVerifierCallerSession) GetNodeByKey(key_ [32]byte) (SparseMerkleTreeNode, error)
- func (_VoteVerifier *VoteVerifierCallerSession) GetProof(key_ [32]byte) (SparseMerkleTreeProof, error)
- func (_VoteVerifier *VoteVerifierCallerSession) GetRegistrationInfo() (IRegistrationRegistrationInfo, error)
- func (_VoteVerifier *VoteVerifierCallerSession) GetRegistrationStatus() (uint8, error)
- func (_VoteVerifier *VoteVerifierCallerSession) GetRoot() ([32]byte, error)
- func (_VoteVerifier *VoteVerifierCallerSession) IsRootExists(root [32]byte) (bool, error)
- func (_VoteVerifier *VoteVerifierCallerSession) IsUserRegistered(documentNullifier *big.Int) (bool, error)
- func (_VoteVerifier *VoteVerifierCallerSession) RegisterVerifier() (common.Address, error)
- func (_VoteVerifier *VoteVerifierCallerSession) RegistrationInfo() (struct{ ... }, error)
- func (_VoteVerifier *VoteVerifierCallerSession) RootsHistory(arg0 [32]byte) (bool, error)
- func (_VoteVerifier *VoteVerifierCallerSession) SmtTreeMaxDepth() (*big.Int, error)
- type VoteVerifierFilterer
- func (_VoteVerifier *VoteVerifierFilterer) FilterInitialized(opts *bind.FilterOpts) (*VoteVerifierInitializedIterator, error)
- func (_VoteVerifier *VoteVerifierFilterer) FilterRegistrationInitialized(opts *bind.FilterOpts, proposer []common.Address) (*VoteVerifierRegistrationInitializedIterator, error)
- func (_VoteVerifier *VoteVerifierFilterer) FilterUserRegistered(opts *bind.FilterOpts, user []common.Address) (*VoteVerifierUserRegisteredIterator, error)
- func (_VoteVerifier *VoteVerifierFilterer) ParseInitialized(log types.Log) (*VoteVerifierInitialized, error)
- func (_VoteVerifier *VoteVerifierFilterer) ParseRegistrationInitialized(log types.Log) (*VoteVerifierRegistrationInitialized, error)
- func (_VoteVerifier *VoteVerifierFilterer) ParseUserRegistered(log types.Log) (*VoteVerifierUserRegistered, error)
- func (_VoteVerifier *VoteVerifierFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *VoteVerifierInitialized) (event.Subscription, error)
- func (_VoteVerifier *VoteVerifierFilterer) WatchRegistrationInitialized(opts *bind.WatchOpts, sink chan<- *VoteVerifierRegistrationInitialized, ...) (event.Subscription, error)
- func (_VoteVerifier *VoteVerifierFilterer) WatchUserRegistered(opts *bind.WatchOpts, sink chan<- *VoteVerifierUserRegistered, ...) (event.Subscription, error)
- type VoteVerifierInitialized
- type VoteVerifierInitializedIterator
- type VoteVerifierRaw
- func (_VoteVerifier *VoteVerifierRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_VoteVerifier *VoteVerifierRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_VoteVerifier *VoteVerifierRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type VoteVerifierRegistrationInitialized
- type VoteVerifierRegistrationInitializedIterator
- type VoteVerifierSession
- func (_VoteVerifier *VoteVerifierSession) Commitments(arg0 [32]byte) (bool, error)
- func (_VoteVerifier *VoteVerifierSession) GetNodeByKey(key_ [32]byte) (SparseMerkleTreeNode, error)
- func (_VoteVerifier *VoteVerifierSession) GetProof(key_ [32]byte) (SparseMerkleTreeProof, error)
- func (_VoteVerifier *VoteVerifierSession) GetRegistrationInfo() (IRegistrationRegistrationInfo, error)
- func (_VoteVerifier *VoteVerifierSession) GetRegistrationStatus() (uint8, error)
- func (_VoteVerifier *VoteVerifierSession) GetRoot() ([32]byte, error)
- func (_VoteVerifier *VoteVerifierSession) IsRootExists(root [32]byte) (bool, error)
- func (_VoteVerifier *VoteVerifierSession) IsUserRegistered(documentNullifier *big.Int) (bool, error)
- func (_VoteVerifier *VoteVerifierSession) Register(proveIdentityParams_ IBaseVerifierProveIdentityParams, ...) (*types.Transaction, error)
- func (_VoteVerifier *VoteVerifierSession) RegisterVerifier() (common.Address, error)
- func (_VoteVerifier *VoteVerifierSession) RegistrationInfo() (struct{ ... }, error)
- func (_VoteVerifier *VoteVerifierSession) RegistrationInit(registrationParams_ IRegistrationRegistrationParams) (*types.Transaction, error)
- func (_VoteVerifier *VoteVerifierSession) RootsHistory(arg0 [32]byte) (bool, error)
- func (_VoteVerifier *VoteVerifierSession) SmtTreeMaxDepth() (*big.Int, error)
- type VoteVerifierTransactor
- func (_VoteVerifier *VoteVerifierTransactor) Register(opts *bind.TransactOpts, proveIdentityParams_ IBaseVerifierProveIdentityParams, ...) (*types.Transaction, error)
- func (_VoteVerifier *VoteVerifierTransactor) RegistrationInit(opts *bind.TransactOpts, registrationParams_ IRegistrationRegistrationParams) (*types.Transaction, error)
- type VoteVerifierTransactorRaw
- type VoteVerifierTransactorSession
- type VoteVerifierUserRegistered
- type VoteVerifierUserRegisteredIterator
- type VotingRegistry
- type VotingRegistryAdminChanged
- type VotingRegistryAdminChangedIterator
- type VotingRegistryBeaconUpgraded
- type VotingRegistryBeaconUpgradedIterator
- type VotingRegistryCaller
- func (_VotingRegistry *VotingRegistryCaller) GetPoolImplementation(opts *bind.CallOpts, poolType_ string) (common.Address, error)
- func (_VotingRegistry *VotingRegistryCaller) GetVotingForRegistration(opts *bind.CallOpts, proposer_ common.Address, registration_ common.Address) (common.Address, error)
- func (_VotingRegistry *VotingRegistryCaller) IsPoolExistByProposer(opts *bind.CallOpts, proposer_ common.Address, pool_ common.Address) (bool, error)
- func (_VotingRegistry *VotingRegistryCaller) IsPoolExistByProposerAndType(opts *bind.CallOpts, proposer_ common.Address, poolType_ string, ...) (bool, error)
- func (_VotingRegistry *VotingRegistryCaller) IsPoolExistByType(opts *bind.CallOpts, poolType_ string, pool_ common.Address) (bool, error)
- func (_VotingRegistry *VotingRegistryCaller) ListPoolsByProposer(opts *bind.CallOpts, proposer_ common.Address, offset_ *big.Int, ...) ([]common.Address, error)
- func (_VotingRegistry *VotingRegistryCaller) ListPoolsByProposerAndType(opts *bind.CallOpts, proposer_ common.Address, poolType_ string, ...) ([]common.Address, error)
- func (_VotingRegistry *VotingRegistryCaller) ListPoolsByType(opts *bind.CallOpts, poolType_ string, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
- func (_VotingRegistry *VotingRegistryCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_VotingRegistry *VotingRegistryCaller) PoolCountByProposer(opts *bind.CallOpts, proposer_ common.Address) (*big.Int, error)
- func (_VotingRegistry *VotingRegistryCaller) PoolCountByProposerAndType(opts *bind.CallOpts, proposer_ common.Address, poolType_ string) (*big.Int, error)
- func (_VotingRegistry *VotingRegistryCaller) PoolCountByType(opts *bind.CallOpts, poolType_ string) (*big.Int, error)
- func (_VotingRegistry *VotingRegistryCaller) PoolFactory(opts *bind.CallOpts) (common.Address, error)
- func (_VotingRegistry *VotingRegistryCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)
- type VotingRegistryCallerRaw
- type VotingRegistryCallerSession
- func (_VotingRegistry *VotingRegistryCallerSession) GetPoolImplementation(poolType_ string) (common.Address, error)
- func (_VotingRegistry *VotingRegistryCallerSession) GetVotingForRegistration(proposer_ common.Address, registration_ common.Address) (common.Address, error)
- func (_VotingRegistry *VotingRegistryCallerSession) IsPoolExistByProposer(proposer_ common.Address, pool_ common.Address) (bool, error)
- func (_VotingRegistry *VotingRegistryCallerSession) IsPoolExistByProposerAndType(proposer_ common.Address, poolType_ string, pool_ common.Address) (bool, error)
- func (_VotingRegistry *VotingRegistryCallerSession) IsPoolExistByType(poolType_ string, pool_ common.Address) (bool, error)
- func (_VotingRegistry *VotingRegistryCallerSession) ListPoolsByProposer(proposer_ common.Address, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
- func (_VotingRegistry *VotingRegistryCallerSession) ListPoolsByProposerAndType(proposer_ common.Address, poolType_ string, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
- func (_VotingRegistry *VotingRegistryCallerSession) ListPoolsByType(poolType_ string, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
- func (_VotingRegistry *VotingRegistryCallerSession) Owner() (common.Address, error)
- func (_VotingRegistry *VotingRegistryCallerSession) PoolCountByProposer(proposer_ common.Address) (*big.Int, error)
- func (_VotingRegistry *VotingRegistryCallerSession) PoolCountByProposerAndType(proposer_ common.Address, poolType_ string) (*big.Int, error)
- func (_VotingRegistry *VotingRegistryCallerSession) PoolCountByType(poolType_ string) (*big.Int, error)
- func (_VotingRegistry *VotingRegistryCallerSession) PoolFactory() (common.Address, error)
- func (_VotingRegistry *VotingRegistryCallerSession) ProxiableUUID() ([32]byte, error)
- type VotingRegistryFilterer
- func (_VotingRegistry *VotingRegistryFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*VotingRegistryAdminChangedIterator, error)
- func (_VotingRegistry *VotingRegistryFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*VotingRegistryBeaconUpgradedIterator, error)
- func (_VotingRegistry *VotingRegistryFilterer) FilterInitialized(opts *bind.FilterOpts) (*VotingRegistryInitializedIterator, error)
- func (_VotingRegistry *VotingRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*VotingRegistryOwnershipTransferredIterator, error)
- func (_VotingRegistry *VotingRegistryFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*VotingRegistryUpgradedIterator, error)
- func (_VotingRegistry *VotingRegistryFilterer) ParseAdminChanged(log types.Log) (*VotingRegistryAdminChanged, error)
- func (_VotingRegistry *VotingRegistryFilterer) ParseBeaconUpgraded(log types.Log) (*VotingRegistryBeaconUpgraded, error)
- func (_VotingRegistry *VotingRegistryFilterer) ParseInitialized(log types.Log) (*VotingRegistryInitialized, error)
- func (_VotingRegistry *VotingRegistryFilterer) ParseOwnershipTransferred(log types.Log) (*VotingRegistryOwnershipTransferred, error)
- func (_VotingRegistry *VotingRegistryFilterer) ParseUpgraded(log types.Log) (*VotingRegistryUpgraded, error)
- func (_VotingRegistry *VotingRegistryFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *VotingRegistryAdminChanged) (event.Subscription, error)
- func (_VotingRegistry *VotingRegistryFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *VotingRegistryBeaconUpgraded, ...) (event.Subscription, error)
- func (_VotingRegistry *VotingRegistryFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *VotingRegistryInitialized) (event.Subscription, error)
- func (_VotingRegistry *VotingRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *VotingRegistryOwnershipTransferred, ...) (event.Subscription, error)
- func (_VotingRegistry *VotingRegistryFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *VotingRegistryUpgraded, ...) (event.Subscription, error)
- type VotingRegistryInitialized
- type VotingRegistryInitializedIterator
- type VotingRegistryOwnershipTransferred
- type VotingRegistryOwnershipTransferredIterator
- type VotingRegistryRaw
- func (_VotingRegistry *VotingRegistryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_VotingRegistry *VotingRegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type VotingRegistrySession
- func (_VotingRegistry *VotingRegistrySession) AddProxyPool(poolType_ string, proposer_ common.Address, pool_ common.Address) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistrySession) BindVotingToRegistration(proposer_ common.Address, voting_ common.Address, registration_ common.Address) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistrySession) GetPoolImplementation(poolType_ string) (common.Address, error)
- func (_VotingRegistry *VotingRegistrySession) GetVotingForRegistration(proposer_ common.Address, registration_ common.Address) (common.Address, error)
- func (_VotingRegistry *VotingRegistrySession) IsPoolExistByProposer(proposer_ common.Address, pool_ common.Address) (bool, error)
- func (_VotingRegistry *VotingRegistrySession) IsPoolExistByProposerAndType(proposer_ common.Address, poolType_ string, pool_ common.Address) (bool, error)
- func (_VotingRegistry *VotingRegistrySession) IsPoolExistByType(poolType_ string, pool_ common.Address) (bool, error)
- func (_VotingRegistry *VotingRegistrySession) ListPoolsByProposer(proposer_ common.Address, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
- func (_VotingRegistry *VotingRegistrySession) ListPoolsByProposerAndType(proposer_ common.Address, poolType_ string, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
- func (_VotingRegistry *VotingRegistrySession) ListPoolsByType(poolType_ string, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
- func (_VotingRegistry *VotingRegistrySession) Owner() (common.Address, error)
- func (_VotingRegistry *VotingRegistrySession) PoolCountByProposer(proposer_ common.Address) (*big.Int, error)
- func (_VotingRegistry *VotingRegistrySession) PoolCountByProposerAndType(proposer_ common.Address, poolType_ string) (*big.Int, error)
- func (_VotingRegistry *VotingRegistrySession) PoolCountByType(poolType_ string) (*big.Int, error)
- func (_VotingRegistry *VotingRegistrySession) PoolFactory() (common.Address, error)
- func (_VotingRegistry *VotingRegistrySession) ProxiableUUID() ([32]byte, error)
- func (_VotingRegistry *VotingRegistrySession) RenounceOwnership() (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistrySession) SetNewImplementations(poolTypes_ []string, newImplementations_ []common.Address) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistrySession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistrySession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistrySession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistrySession) VotingRegistryInit(poolFactory_ common.Address) (*types.Transaction, error)
- type VotingRegistryTransactor
- func (_VotingRegistry *VotingRegistryTransactor) AddProxyPool(opts *bind.TransactOpts, poolType_ string, proposer_ common.Address, ...) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactor) BindVotingToRegistration(opts *bind.TransactOpts, proposer_ common.Address, voting_ common.Address, ...) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactor) SetNewImplementations(opts *bind.TransactOpts, poolTypes_ []string, ...) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactor) VotingRegistryInit(opts *bind.TransactOpts, poolFactory_ common.Address) (*types.Transaction, error)
- type VotingRegistryTransactorRaw
- type VotingRegistryTransactorSession
- func (_VotingRegistry *VotingRegistryTransactorSession) AddProxyPool(poolType_ string, proposer_ common.Address, pool_ common.Address) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactorSession) BindVotingToRegistration(proposer_ common.Address, voting_ common.Address, registration_ common.Address) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactorSession) SetNewImplementations(poolTypes_ []string, newImplementations_ []common.Address) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
- func (_VotingRegistry *VotingRegistryTransactorSession) VotingRegistryInit(poolFactory_ common.Address) (*types.Transaction, error)
- type VotingRegistryUpgraded
- type VotingRegistryUpgradedIterator
Constants ¶
This section is empty.
Variables ¶
var VoteVerifierABI = VoteVerifierMetaData.ABI
VoteVerifierABI is the input ABI used to generate the binding from. Deprecated: Use VoteVerifierMetaData.ABI instead.
var VoteVerifierMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"registerVerifier_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"treeHeight_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proposer\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"remark\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"commitmentStart\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"commitmentPeriod\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structIRegistration.RegistrationParams\",\"name\":\"registrationParams\",\"type\":\"tuple\"}],\"name\":\"RegistrationInitialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"issuerId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"issuerState\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"merkleProof\",\"type\":\"bytes32[]\"}],\"internalType\":\"structILightweightState.StatesMerkleData\",\"name\":\"statesMerkleData\",\"type\":\"tuple\"},{\"internalType\":\"uint256[]\",\"name\":\"inputs\",\"type\":\"uint256[]\"},{\"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]\"}],\"indexed\":false,\"internalType\":\"structIBaseVerifier.ProveIdentityParams\",\"name\":\"proveIdentityParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"issuingAuthority\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"documentNullifier\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"}],\"indexed\":false,\"internalType\":\"structIRegisterVerifier.RegisterProofParams\",\"name\":\"registerProofParams\",\"type\":\"tuple\"}],\"name\":\"UserRegistered\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"remark\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"commitmentStart\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"commitmentPeriod\",\"type\":\"uint256\"}],\"internalType\":\"structIRegistration.RegistrationParams\",\"name\":\"registrationParams_\",\"type\":\"tuple\"}],\"name\":\"__Registration_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"commitments\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key_\",\"type\":\"bytes32\"}],\"name\":\"getNodeByKey\",\"outputs\":[{\"components\":[{\"internalType\":\"enumSparseMerkleTree.NodeType\",\"name\":\"nodeType\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"childLeft\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"childRight\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"nodeHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"}],\"internalType\":\"structSparseMerkleTree.Node\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key_\",\"type\":\"bytes32\"}],\"name\":\"getProof\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"siblings\",\"type\":\"bytes32[]\"},{\"internalType\":\"bool\",\"name\":\"existence\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"auxExistence\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"auxKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"auxValue\",\"type\":\"bytes32\"}],\"internalType\":\"structSparseMerkleTree.Proof\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRegistrationInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"remark\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"commitmentStartTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"commitmentEndTime\",\"type\":\"uint256\"}],\"internalType\":\"structIRegistration.RegistrationValues\",\"name\":\"values\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"totalRegistrations\",\"type\":\"uint256\"}],\"internalType\":\"structIRegistration.RegistrationCounters\",\"name\":\"counters\",\"type\":\"tuple\"}],\"internalType\":\"structIRegistration.RegistrationInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRegistrationStatus\",\"outputs\":[{\"internalType\":\"enumIRegistration.RegistrationStatus\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"}],\"name\":\"isRootExists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"documentNullifier\",\"type\":\"uint256\"}],\"name\":\"isUserRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"issuerId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"issuerState\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"merkleProof\",\"type\":\"bytes32[]\"}],\"internalType\":\"structILightweightState.StatesMerkleData\",\"name\":\"statesMerkleData\",\"type\":\"tuple\"},{\"internalType\":\"uint256[]\",\"name\":\"inputs\",\"type\":\"uint256[]\"},{\"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\":\"structIBaseVerifier.ProveIdentityParams\",\"name\":\"proveIdentityParams_\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"issuingAuthority\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"documentNullifier\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"}],\"internalType\":\"structIRegisterVerifier.RegisterProofParams\",\"name\":\"registerProofParams_\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"newIdentitiesStatesRoot\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtTimestamp\",\"type\":\"uint256\"}],\"internalType\":\"structILightweightState.GistRootData\",\"name\":\"gistData\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"}],\"internalType\":\"structIBaseVerifier.TransitStateParams\",\"name\":\"transitStateParams_\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"isTransitState_\",\"type\":\"bool\"}],\"name\":\"register\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"registerVerifier\",\"outputs\":[{\"internalType\":\"contractIRegisterVerifier\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"registrationInfo\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"remark\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"commitmentStartTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"commitmentEndTime\",\"type\":\"uint256\"}],\"internalType\":\"structIRegistration.RegistrationValues\",\"name\":\"values\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"totalRegistrations\",\"type\":\"uint256\"}],\"internalType\":\"structIRegistration.RegistrationCounters\",\"name\":\"counters\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"rootsHistory\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"smtTreeMaxDepth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
VoteVerifierMetaData contains all meta data concerning the VoteVerifier contract.
var VotingRegistryABI = VotingRegistryMetaData.ABI
VotingRegistryABI is the input ABI used to generate the binding from. Deprecated: Use VotingRegistryMetaData.ABI instead.
var VotingRegistryMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"poolFactory_\",\"type\":\"address\"}],\"name\":\"__VotingRegistry_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"poolType_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"proposer_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool_\",\"type\":\"address\"}],\"name\":\"addProxyPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proposer_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"voting_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"registration_\",\"type\":\"address\"}],\"name\":\"bindVotingToRegistration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"poolType_\",\"type\":\"string\"}],\"name\":\"getPoolImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proposer_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"registration_\",\"type\":\"address\"}],\"name\":\"getVotingForRegistration\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proposer_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool_\",\"type\":\"address\"}],\"name\":\"isPoolExistByProposer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proposer_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"poolType_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"pool_\",\"type\":\"address\"}],\"name\":\"isPoolExistByProposerAndType\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"poolType_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"pool_\",\"type\":\"address\"}],\"name\":\"isPoolExistByType\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proposer_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"listPoolsByProposer\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"pools_\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proposer_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"poolType_\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"listPoolsByProposerAndType\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"pools_\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"poolType_\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"listPoolsByType\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"pools_\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proposer_\",\"type\":\"address\"}],\"name\":\"poolCountByProposer\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proposer_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"poolType_\",\"type\":\"string\"}],\"name\":\"poolCountByProposerAndType\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"poolType_\",\"type\":\"string\"}],\"name\":\"poolCountByType\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string[]\",\"name\":\"poolTypes_\",\"type\":\"string[]\"},{\"internalType\":\"address[]\",\"name\":\"newImplementations_\",\"type\":\"address[]\"}],\"name\":\"setNewImplementations\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
}
VotingRegistryMetaData contains all meta data concerning the VotingRegistry contract.
Functions ¶
This section is empty.
Types ¶
type IBaseVerifierProveIdentityParams ¶
type IBaseVerifierProveIdentityParams struct { StatesMerkleData ILightweightStateStatesMerkleData Inputs []*big.Int A [2]*big.Int B [2][2]*big.Int C [2]*big.Int }
IBaseVerifierProveIdentityParams is an auto generated low-level Go binding around an user-defined struct.
type IBaseVerifierTransitStateParams ¶
type IBaseVerifierTransitStateParams struct { NewIdentitiesStatesRoot [32]byte GistData ILightweightStateGistRootData Proof []byte }
IBaseVerifierTransitStateParams is an auto generated low-level Go binding around an user-defined struct.
type ILightweightStateGistRootData ¶
ILightweightStateGistRootData is an auto generated low-level Go binding around an user-defined struct.
type ILightweightStateStatesMerkleData ¶
type ILightweightStateStatesMerkleData struct { IssuerId *big.Int IssuerState *big.Int CreatedAtTimestamp *big.Int MerkleProof [][32]byte }
ILightweightStateStatesMerkleData is an auto generated low-level Go binding around an user-defined struct.
type IRegisterVerifierRegisterProofParams ¶
type IRegisterVerifierRegisterProofParams struct { IssuingAuthority *big.Int DocumentNullifier *big.Int Commitment [32]byte }
IRegisterVerifierRegisterProofParams is an auto generated low-level Go binding around an user-defined struct.
type IRegistrationRegistrationCounters ¶
IRegistrationRegistrationCounters is an auto generated low-level Go binding around an user-defined struct.
type IRegistrationRegistrationInfo ¶
type IRegistrationRegistrationInfo struct { Remark string Values IRegistrationRegistrationValues Counters IRegistrationRegistrationCounters }
IRegistrationRegistrationInfo is an auto generated low-level Go binding around an user-defined struct.
type IRegistrationRegistrationParams ¶
type IRegistrationRegistrationParams struct { Remark string CommitmentStart *big.Int CommitmentPeriod *big.Int }
IRegistrationRegistrationParams is an auto generated low-level Go binding around an user-defined struct.
type IRegistrationRegistrationValues ¶
type IRegistrationRegistrationValues struct { CommitmentStartTime *big.Int CommitmentEndTime *big.Int }
IRegistrationRegistrationValues is an auto generated low-level Go binding around an user-defined struct.
type SparseMerkleTreeNode ¶
type SparseMerkleTreeNode struct { NodeType uint8 ChildLeft uint64 ChildRight uint64 NodeHash [32]byte Key [32]byte Value [32]byte }
SparseMerkleTreeNode is an auto generated low-level Go binding around an user-defined struct.
type SparseMerkleTreeProof ¶
type SparseMerkleTreeProof struct { Root [32]byte Siblings [][32]byte Existence bool Key [32]byte Value [32]byte AuxExistence bool AuxKey [32]byte AuxValue [32]byte }
SparseMerkleTreeProof is an auto generated low-level Go binding around an user-defined struct.
type VoteVerifier ¶
type VoteVerifier struct { VoteVerifierCaller // Read-only binding to the contract VoteVerifierTransactor // Write-only binding to the contract VoteVerifierFilterer // Log filterer for contract events }
VoteVerifier is an auto generated Go binding around an Ethereum contract.
func NewVoteVerifier ¶
func NewVoteVerifier(address common.Address, backend bind.ContractBackend) (*VoteVerifier, error)
NewVoteVerifier creates a new instance of VoteVerifier, bound to a specific deployed contract.
type VoteVerifierCaller ¶
type VoteVerifierCaller struct {
// contains filtered or unexported fields
}
VoteVerifierCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewVoteVerifierCaller ¶
func NewVoteVerifierCaller(address common.Address, caller bind.ContractCaller) (*VoteVerifierCaller, error)
NewVoteVerifierCaller creates a new read-only instance of VoteVerifier, bound to a specific deployed contract.
func (*VoteVerifierCaller) Commitments ¶
func (_VoteVerifier *VoteVerifierCaller) Commitments(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
Commitments is a free data retrieval call binding the contract method 0x839df945.
Solidity: function commitments(bytes32 ) view returns(bool)
func (*VoteVerifierCaller) GetNodeByKey ¶
func (_VoteVerifier *VoteVerifierCaller) GetNodeByKey(opts *bind.CallOpts, key_ [32]byte) (SparseMerkleTreeNode, error)
GetNodeByKey is a free data retrieval call binding the contract method 0x083a8580.
Solidity: function getNodeByKey(bytes32 key_) view returns((uint8,uint64,uint64,bytes32,bytes32,bytes32))
func (*VoteVerifierCaller) GetProof ¶
func (_VoteVerifier *VoteVerifierCaller) GetProof(opts *bind.CallOpts, key_ [32]byte) (SparseMerkleTreeProof, error)
GetProof is a free data retrieval call binding the contract method 0x1b80bb3a.
Solidity: function getProof(bytes32 key_) view returns((bytes32,bytes32[],bool,bytes32,bytes32,bool,bytes32,bytes32))
func (*VoteVerifierCaller) GetRegistrationInfo ¶
func (_VoteVerifier *VoteVerifierCaller) GetRegistrationInfo(opts *bind.CallOpts) (IRegistrationRegistrationInfo, error)
GetRegistrationInfo is a free data retrieval call binding the contract method 0x9f2ec56a.
Solidity: function getRegistrationInfo() view returns((string,(uint256,uint256),(uint256)))
func (*VoteVerifierCaller) GetRegistrationStatus ¶
func (_VoteVerifier *VoteVerifierCaller) GetRegistrationStatus(opts *bind.CallOpts) (uint8, error)
GetRegistrationStatus is a free data retrieval call binding the contract method 0xe35fb241.
Solidity: function getRegistrationStatus() view returns(uint8)
func (*VoteVerifierCaller) GetRoot ¶
func (_VoteVerifier *VoteVerifierCaller) GetRoot(opts *bind.CallOpts) ([32]byte, error)
GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.
Solidity: function getRoot() view returns(bytes32)
func (*VoteVerifierCaller) IsRootExists ¶
func (_VoteVerifier *VoteVerifierCaller) IsRootExists(opts *bind.CallOpts, root [32]byte) (bool, error)
IsRootExists is a free data retrieval call binding the contract method 0x74197dd5.
Solidity: function isRootExists(bytes32 root) view returns(bool)
func (*VoteVerifierCaller) IsUserRegistered ¶
func (_VoteVerifier *VoteVerifierCaller) IsUserRegistered(opts *bind.CallOpts, documentNullifier *big.Int) (bool, error)
IsUserRegistered is a free data retrieval call binding the contract method 0xe0a58ee1.
Solidity: function isUserRegistered(uint256 documentNullifier) view returns(bool)
func (*VoteVerifierCaller) RegisterVerifier ¶
func (_VoteVerifier *VoteVerifierCaller) RegisterVerifier(opts *bind.CallOpts) (common.Address, error)
RegisterVerifier is a free data retrieval call binding the contract method 0xea968a2d.
Solidity: function registerVerifier() view returns(address)
func (*VoteVerifierCaller) RegistrationInfo ¶
func (_VoteVerifier *VoteVerifierCaller) RegistrationInfo(opts *bind.CallOpts) (struct { Remark string Values IRegistrationRegistrationValues Counters IRegistrationRegistrationCounters }, error)
RegistrationInfo is a free data retrieval call binding the contract method 0xeb9f4937.
Solidity: function registrationInfo() view returns(string remark, (uint256,uint256) values, (uint256) counters)
func (*VoteVerifierCaller) RootsHistory ¶
func (_VoteVerifier *VoteVerifierCaller) RootsHistory(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
RootsHistory is a free data retrieval call binding the contract method 0x241e2cfe.
Solidity: function rootsHistory(bytes32 ) view returns(bool)
func (*VoteVerifierCaller) SmtTreeMaxDepth ¶
SmtTreeMaxDepth is a free data retrieval call binding the contract method 0xf975aa00.
Solidity: function smtTreeMaxDepth() view returns(uint256)
type VoteVerifierCallerRaw ¶
type VoteVerifierCallerRaw struct {
Contract *VoteVerifierCaller // Generic read-only contract binding to access the raw methods on
}
VoteVerifierCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*VoteVerifierCallerRaw) Call ¶
func (_VoteVerifier *VoteVerifierCallerRaw) 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 VoteVerifierCallerSession ¶
type VoteVerifierCallerSession struct { Contract *VoteVerifierCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
VoteVerifierCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*VoteVerifierCallerSession) Commitments ¶
func (_VoteVerifier *VoteVerifierCallerSession) Commitments(arg0 [32]byte) (bool, error)
Commitments is a free data retrieval call binding the contract method 0x839df945.
Solidity: function commitments(bytes32 ) view returns(bool)
func (*VoteVerifierCallerSession) GetNodeByKey ¶
func (_VoteVerifier *VoteVerifierCallerSession) GetNodeByKey(key_ [32]byte) (SparseMerkleTreeNode, error)
GetNodeByKey is a free data retrieval call binding the contract method 0x083a8580.
Solidity: function getNodeByKey(bytes32 key_) view returns((uint8,uint64,uint64,bytes32,bytes32,bytes32))
func (*VoteVerifierCallerSession) GetProof ¶
func (_VoteVerifier *VoteVerifierCallerSession) GetProof(key_ [32]byte) (SparseMerkleTreeProof, error)
GetProof is a free data retrieval call binding the contract method 0x1b80bb3a.
Solidity: function getProof(bytes32 key_) view returns((bytes32,bytes32[],bool,bytes32,bytes32,bool,bytes32,bytes32))
func (*VoteVerifierCallerSession) GetRegistrationInfo ¶
func (_VoteVerifier *VoteVerifierCallerSession) GetRegistrationInfo() (IRegistrationRegistrationInfo, error)
GetRegistrationInfo is a free data retrieval call binding the contract method 0x9f2ec56a.
Solidity: function getRegistrationInfo() view returns((string,(uint256,uint256),(uint256)))
func (*VoteVerifierCallerSession) GetRegistrationStatus ¶
func (_VoteVerifier *VoteVerifierCallerSession) GetRegistrationStatus() (uint8, error)
GetRegistrationStatus is a free data retrieval call binding the contract method 0xe35fb241.
Solidity: function getRegistrationStatus() view returns(uint8)
func (*VoteVerifierCallerSession) GetRoot ¶
func (_VoteVerifier *VoteVerifierCallerSession) GetRoot() ([32]byte, error)
GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.
Solidity: function getRoot() view returns(bytes32)
func (*VoteVerifierCallerSession) IsRootExists ¶
func (_VoteVerifier *VoteVerifierCallerSession) IsRootExists(root [32]byte) (bool, error)
IsRootExists is a free data retrieval call binding the contract method 0x74197dd5.
Solidity: function isRootExists(bytes32 root) view returns(bool)
func (*VoteVerifierCallerSession) IsUserRegistered ¶
func (_VoteVerifier *VoteVerifierCallerSession) IsUserRegistered(documentNullifier *big.Int) (bool, error)
IsUserRegistered is a free data retrieval call binding the contract method 0xe0a58ee1.
Solidity: function isUserRegistered(uint256 documentNullifier) view returns(bool)
func (*VoteVerifierCallerSession) RegisterVerifier ¶
func (_VoteVerifier *VoteVerifierCallerSession) RegisterVerifier() (common.Address, error)
RegisterVerifier is a free data retrieval call binding the contract method 0xea968a2d.
Solidity: function registerVerifier() view returns(address)
func (*VoteVerifierCallerSession) RegistrationInfo ¶
func (_VoteVerifier *VoteVerifierCallerSession) RegistrationInfo() (struct { Remark string Values IRegistrationRegistrationValues Counters IRegistrationRegistrationCounters }, error)
RegistrationInfo is a free data retrieval call binding the contract method 0xeb9f4937.
Solidity: function registrationInfo() view returns(string remark, (uint256,uint256) values, (uint256) counters)
func (*VoteVerifierCallerSession) RootsHistory ¶
func (_VoteVerifier *VoteVerifierCallerSession) RootsHistory(arg0 [32]byte) (bool, error)
RootsHistory is a free data retrieval call binding the contract method 0x241e2cfe.
Solidity: function rootsHistory(bytes32 ) view returns(bool)
func (*VoteVerifierCallerSession) SmtTreeMaxDepth ¶
func (_VoteVerifier *VoteVerifierCallerSession) SmtTreeMaxDepth() (*big.Int, error)
SmtTreeMaxDepth is a free data retrieval call binding the contract method 0xf975aa00.
Solidity: function smtTreeMaxDepth() view returns(uint256)
type VoteVerifierFilterer ¶
type VoteVerifierFilterer struct {
// contains filtered or unexported fields
}
VoteVerifierFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewVoteVerifierFilterer ¶
func NewVoteVerifierFilterer(address common.Address, filterer bind.ContractFilterer) (*VoteVerifierFilterer, error)
NewVoteVerifierFilterer creates a new log filterer instance of VoteVerifier, bound to a specific deployed contract.
func (*VoteVerifierFilterer) FilterInitialized ¶
func (_VoteVerifier *VoteVerifierFilterer) FilterInitialized(opts *bind.FilterOpts) (*VoteVerifierInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*VoteVerifierFilterer) FilterRegistrationInitialized ¶
func (_VoteVerifier *VoteVerifierFilterer) FilterRegistrationInitialized(opts *bind.FilterOpts, proposer []common.Address) (*VoteVerifierRegistrationInitializedIterator, error)
FilterRegistrationInitialized is a free log retrieval operation binding the contract event 0xe5360f24c53a188e31370cfdddca9192dd7cef8a3f7e9e76e1a32f823bc01998.
Solidity: event RegistrationInitialized(address indexed proposer, (string,uint256,uint256) registrationParams)
func (*VoteVerifierFilterer) FilterUserRegistered ¶
func (_VoteVerifier *VoteVerifierFilterer) FilterUserRegistered(opts *bind.FilterOpts, user []common.Address) (*VoteVerifierUserRegisteredIterator, error)
FilterUserRegistered is a free log retrieval operation binding the contract event 0xb10c3702eaaf48572daf444c0bd6dd5e6746695f86b6cf3b73130dc94fcbcbba.
Solidity: event UserRegistered(address indexed user, ((uint256,uint256,uint256,bytes32[]),uint256[],uint256[2],uint256[2][2],uint256[2]) proveIdentityParams, (uint256,uint256,bytes32) registerProofParams)
func (*VoteVerifierFilterer) ParseInitialized ¶
func (_VoteVerifier *VoteVerifierFilterer) ParseInitialized(log types.Log) (*VoteVerifierInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*VoteVerifierFilterer) ParseRegistrationInitialized ¶
func (_VoteVerifier *VoteVerifierFilterer) ParseRegistrationInitialized(log types.Log) (*VoteVerifierRegistrationInitialized, error)
ParseRegistrationInitialized is a log parse operation binding the contract event 0xe5360f24c53a188e31370cfdddca9192dd7cef8a3f7e9e76e1a32f823bc01998.
Solidity: event RegistrationInitialized(address indexed proposer, (string,uint256,uint256) registrationParams)
func (*VoteVerifierFilterer) ParseUserRegistered ¶
func (_VoteVerifier *VoteVerifierFilterer) ParseUserRegistered(log types.Log) (*VoteVerifierUserRegistered, error)
ParseUserRegistered is a log parse operation binding the contract event 0xb10c3702eaaf48572daf444c0bd6dd5e6746695f86b6cf3b73130dc94fcbcbba.
Solidity: event UserRegistered(address indexed user, ((uint256,uint256,uint256,bytes32[]),uint256[],uint256[2],uint256[2][2],uint256[2]) proveIdentityParams, (uint256,uint256,bytes32) registerProofParams)
func (*VoteVerifierFilterer) WatchInitialized ¶
func (_VoteVerifier *VoteVerifierFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *VoteVerifierInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*VoteVerifierFilterer) WatchRegistrationInitialized ¶
func (_VoteVerifier *VoteVerifierFilterer) WatchRegistrationInitialized(opts *bind.WatchOpts, sink chan<- *VoteVerifierRegistrationInitialized, proposer []common.Address) (event.Subscription, error)
WatchRegistrationInitialized is a free log subscription operation binding the contract event 0xe5360f24c53a188e31370cfdddca9192dd7cef8a3f7e9e76e1a32f823bc01998.
Solidity: event RegistrationInitialized(address indexed proposer, (string,uint256,uint256) registrationParams)
func (*VoteVerifierFilterer) WatchUserRegistered ¶
func (_VoteVerifier *VoteVerifierFilterer) WatchUserRegistered(opts *bind.WatchOpts, sink chan<- *VoteVerifierUserRegistered, user []common.Address) (event.Subscription, error)
WatchUserRegistered is a free log subscription operation binding the contract event 0xb10c3702eaaf48572daf444c0bd6dd5e6746695f86b6cf3b73130dc94fcbcbba.
Solidity: event UserRegistered(address indexed user, ((uint256,uint256,uint256,bytes32[]),uint256[],uint256[2],uint256[2][2],uint256[2]) proveIdentityParams, (uint256,uint256,bytes32) registerProofParams)
type VoteVerifierInitialized ¶
type VoteVerifierInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos }
VoteVerifierInitialized represents a Initialized event raised by the VoteVerifier contract.
type VoteVerifierInitializedIterator ¶
type VoteVerifierInitializedIterator struct { Event *VoteVerifierInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VoteVerifierInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the VoteVerifier contract.
func (*VoteVerifierInitializedIterator) Close ¶
func (it *VoteVerifierInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VoteVerifierInitializedIterator) Error ¶
func (it *VoteVerifierInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VoteVerifierInitializedIterator) Next ¶
func (it *VoteVerifierInitializedIterator) 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 VoteVerifierRaw ¶
type VoteVerifierRaw struct {
Contract *VoteVerifier // Generic contract binding to access the raw methods on
}
VoteVerifierRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*VoteVerifierRaw) Call ¶
func (_VoteVerifier *VoteVerifierRaw) 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 (*VoteVerifierRaw) Transact ¶
func (_VoteVerifier *VoteVerifierRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*VoteVerifierRaw) Transfer ¶
func (_VoteVerifier *VoteVerifierRaw) 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 VoteVerifierRegistrationInitialized ¶
type VoteVerifierRegistrationInitialized struct { Proposer common.Address RegistrationParams IRegistrationRegistrationParams Raw types.Log // Blockchain specific contextual infos }
VoteVerifierRegistrationInitialized represents a RegistrationInitialized event raised by the VoteVerifier contract.
type VoteVerifierRegistrationInitializedIterator ¶
type VoteVerifierRegistrationInitializedIterator struct { Event *VoteVerifierRegistrationInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VoteVerifierRegistrationInitializedIterator is returned from FilterRegistrationInitialized and is used to iterate over the raw logs and unpacked data for RegistrationInitialized events raised by the VoteVerifier contract.
func (*VoteVerifierRegistrationInitializedIterator) Close ¶
func (it *VoteVerifierRegistrationInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VoteVerifierRegistrationInitializedIterator) Error ¶
func (it *VoteVerifierRegistrationInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VoteVerifierRegistrationInitializedIterator) Next ¶
func (it *VoteVerifierRegistrationInitializedIterator) 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 VoteVerifierSession ¶
type VoteVerifierSession struct { Contract *VoteVerifier // 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 }
VoteVerifierSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*VoteVerifierSession) Commitments ¶
func (_VoteVerifier *VoteVerifierSession) Commitments(arg0 [32]byte) (bool, error)
Commitments is a free data retrieval call binding the contract method 0x839df945.
Solidity: function commitments(bytes32 ) view returns(bool)
func (*VoteVerifierSession) GetNodeByKey ¶
func (_VoteVerifier *VoteVerifierSession) GetNodeByKey(key_ [32]byte) (SparseMerkleTreeNode, error)
GetNodeByKey is a free data retrieval call binding the contract method 0x083a8580.
Solidity: function getNodeByKey(bytes32 key_) view returns((uint8,uint64,uint64,bytes32,bytes32,bytes32))
func (*VoteVerifierSession) GetProof ¶
func (_VoteVerifier *VoteVerifierSession) GetProof(key_ [32]byte) (SparseMerkleTreeProof, error)
GetProof is a free data retrieval call binding the contract method 0x1b80bb3a.
Solidity: function getProof(bytes32 key_) view returns((bytes32,bytes32[],bool,bytes32,bytes32,bool,bytes32,bytes32))
func (*VoteVerifierSession) GetRegistrationInfo ¶
func (_VoteVerifier *VoteVerifierSession) GetRegistrationInfo() (IRegistrationRegistrationInfo, error)
GetRegistrationInfo is a free data retrieval call binding the contract method 0x9f2ec56a.
Solidity: function getRegistrationInfo() view returns((string,(uint256,uint256),(uint256)))
func (*VoteVerifierSession) GetRegistrationStatus ¶
func (_VoteVerifier *VoteVerifierSession) GetRegistrationStatus() (uint8, error)
GetRegistrationStatus is a free data retrieval call binding the contract method 0xe35fb241.
Solidity: function getRegistrationStatus() view returns(uint8)
func (*VoteVerifierSession) GetRoot ¶
func (_VoteVerifier *VoteVerifierSession) GetRoot() ([32]byte, error)
GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.
Solidity: function getRoot() view returns(bytes32)
func (*VoteVerifierSession) IsRootExists ¶
func (_VoteVerifier *VoteVerifierSession) IsRootExists(root [32]byte) (bool, error)
IsRootExists is a free data retrieval call binding the contract method 0x74197dd5.
Solidity: function isRootExists(bytes32 root) view returns(bool)
func (*VoteVerifierSession) IsUserRegistered ¶
func (_VoteVerifier *VoteVerifierSession) IsUserRegistered(documentNullifier *big.Int) (bool, error)
IsUserRegistered is a free data retrieval call binding the contract method 0xe0a58ee1.
Solidity: function isUserRegistered(uint256 documentNullifier) view returns(bool)
func (*VoteVerifierSession) Register ¶
func (_VoteVerifier *VoteVerifierSession) Register(proveIdentityParams_ IBaseVerifierProveIdentityParams, registerProofParams_ IRegisterVerifierRegisterProofParams, transitStateParams_ IBaseVerifierTransitStateParams, isTransitState_ bool) (*types.Transaction, error)
Register is a paid mutator transaction binding the contract method 0x24a4831c.
Solidity: function register(((uint256,uint256,uint256,bytes32[]),uint256[],uint256[2],uint256[2][2],uint256[2]) proveIdentityParams_, (uint256,uint256,bytes32) registerProofParams_, (bytes32,(uint256,uint256),bytes) transitStateParams_, bool isTransitState_) returns()
func (*VoteVerifierSession) RegisterVerifier ¶
func (_VoteVerifier *VoteVerifierSession) RegisterVerifier() (common.Address, error)
RegisterVerifier is a free data retrieval call binding the contract method 0xea968a2d.
Solidity: function registerVerifier() view returns(address)
func (*VoteVerifierSession) RegistrationInfo ¶
func (_VoteVerifier *VoteVerifierSession) RegistrationInfo() (struct { Remark string Values IRegistrationRegistrationValues Counters IRegistrationRegistrationCounters }, error)
RegistrationInfo is a free data retrieval call binding the contract method 0xeb9f4937.
Solidity: function registrationInfo() view returns(string remark, (uint256,uint256) values, (uint256) counters)
func (*VoteVerifierSession) RegistrationInit ¶
func (_VoteVerifier *VoteVerifierSession) RegistrationInit(registrationParams_ IRegistrationRegistrationParams) (*types.Transaction, error)
RegistrationInit is a paid mutator transaction binding the contract method 0x2a8f67d5.
Solidity: function __Registration_init((string,uint256,uint256) registrationParams_) returns()
func (*VoteVerifierSession) RootsHistory ¶
func (_VoteVerifier *VoteVerifierSession) RootsHistory(arg0 [32]byte) (bool, error)
RootsHistory is a free data retrieval call binding the contract method 0x241e2cfe.
Solidity: function rootsHistory(bytes32 ) view returns(bool)
func (*VoteVerifierSession) SmtTreeMaxDepth ¶
func (_VoteVerifier *VoteVerifierSession) SmtTreeMaxDepth() (*big.Int, error)
SmtTreeMaxDepth is a free data retrieval call binding the contract method 0xf975aa00.
Solidity: function smtTreeMaxDepth() view returns(uint256)
type VoteVerifierTransactor ¶
type VoteVerifierTransactor struct {
// contains filtered or unexported fields
}
VoteVerifierTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewVoteVerifierTransactor ¶
func NewVoteVerifierTransactor(address common.Address, transactor bind.ContractTransactor) (*VoteVerifierTransactor, error)
NewVoteVerifierTransactor creates a new write-only instance of VoteVerifier, bound to a specific deployed contract.
func (*VoteVerifierTransactor) Register ¶
func (_VoteVerifier *VoteVerifierTransactor) Register(opts *bind.TransactOpts, proveIdentityParams_ IBaseVerifierProveIdentityParams, registerProofParams_ IRegisterVerifierRegisterProofParams, transitStateParams_ IBaseVerifierTransitStateParams, isTransitState_ bool) (*types.Transaction, error)
Register is a paid mutator transaction binding the contract method 0x24a4831c.
Solidity: function register(((uint256,uint256,uint256,bytes32[]),uint256[],uint256[2],uint256[2][2],uint256[2]) proveIdentityParams_, (uint256,uint256,bytes32) registerProofParams_, (bytes32,(uint256,uint256),bytes) transitStateParams_, bool isTransitState_) returns()
func (*VoteVerifierTransactor) RegistrationInit ¶
func (_VoteVerifier *VoteVerifierTransactor) RegistrationInit(opts *bind.TransactOpts, registrationParams_ IRegistrationRegistrationParams) (*types.Transaction, error)
RegistrationInit is a paid mutator transaction binding the contract method 0x2a8f67d5.
Solidity: function __Registration_init((string,uint256,uint256) registrationParams_) returns()
type VoteVerifierTransactorRaw ¶
type VoteVerifierTransactorRaw struct {
Contract *VoteVerifierTransactor // Generic write-only contract binding to access the raw methods on
}
VoteVerifierTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*VoteVerifierTransactorRaw) Transact ¶
func (_VoteVerifier *VoteVerifierTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*VoteVerifierTransactorRaw) Transfer ¶
func (_VoteVerifier *VoteVerifierTransactorRaw) 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 VoteVerifierTransactorSession ¶
type VoteVerifierTransactorSession struct { Contract *VoteVerifierTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
VoteVerifierTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*VoteVerifierTransactorSession) Register ¶
func (_VoteVerifier *VoteVerifierTransactorSession) Register(proveIdentityParams_ IBaseVerifierProveIdentityParams, registerProofParams_ IRegisterVerifierRegisterProofParams, transitStateParams_ IBaseVerifierTransitStateParams, isTransitState_ bool) (*types.Transaction, error)
Register is a paid mutator transaction binding the contract method 0x24a4831c.
Solidity: function register(((uint256,uint256,uint256,bytes32[]),uint256[],uint256[2],uint256[2][2],uint256[2]) proveIdentityParams_, (uint256,uint256,bytes32) registerProofParams_, (bytes32,(uint256,uint256),bytes) transitStateParams_, bool isTransitState_) returns()
func (*VoteVerifierTransactorSession) RegistrationInit ¶
func (_VoteVerifier *VoteVerifierTransactorSession) RegistrationInit(registrationParams_ IRegistrationRegistrationParams) (*types.Transaction, error)
RegistrationInit is a paid mutator transaction binding the contract method 0x2a8f67d5.
Solidity: function __Registration_init((string,uint256,uint256) registrationParams_) returns()
type VoteVerifierUserRegistered ¶
type VoteVerifierUserRegistered struct { User common.Address ProveIdentityParams IBaseVerifierProveIdentityParams RegisterProofParams IRegisterVerifierRegisterProofParams Raw types.Log // Blockchain specific contextual infos }
VoteVerifierUserRegistered represents a UserRegistered event raised by the VoteVerifier contract.
type VoteVerifierUserRegisteredIterator ¶
type VoteVerifierUserRegisteredIterator struct { Event *VoteVerifierUserRegistered // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VoteVerifierUserRegisteredIterator is returned from FilterUserRegistered and is used to iterate over the raw logs and unpacked data for UserRegistered events raised by the VoteVerifier contract.
func (*VoteVerifierUserRegisteredIterator) Close ¶
func (it *VoteVerifierUserRegisteredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VoteVerifierUserRegisteredIterator) Error ¶
func (it *VoteVerifierUserRegisteredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VoteVerifierUserRegisteredIterator) Next ¶
func (it *VoteVerifierUserRegisteredIterator) 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 VotingRegistry ¶
type VotingRegistry struct { VotingRegistryCaller // Read-only binding to the contract VotingRegistryTransactor // Write-only binding to the contract VotingRegistryFilterer // Log filterer for contract events }
VotingRegistry is an auto generated Go binding around an Ethereum contract.
func NewVotingRegistry ¶
func NewVotingRegistry(address common.Address, backend bind.ContractBackend) (*VotingRegistry, error)
NewVotingRegistry creates a new instance of VotingRegistry, bound to a specific deployed contract.
type VotingRegistryAdminChanged ¶
type VotingRegistryAdminChanged struct { PreviousAdmin common.Address NewAdmin common.Address Raw types.Log // Blockchain specific contextual infos }
VotingRegistryAdminChanged represents a AdminChanged event raised by the VotingRegistry contract.
type VotingRegistryAdminChangedIterator ¶
type VotingRegistryAdminChangedIterator struct { Event *VotingRegistryAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VotingRegistryAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the VotingRegistry contract.
func (*VotingRegistryAdminChangedIterator) Close ¶
func (it *VotingRegistryAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VotingRegistryAdminChangedIterator) Error ¶
func (it *VotingRegistryAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VotingRegistryAdminChangedIterator) Next ¶
func (it *VotingRegistryAdminChangedIterator) 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 VotingRegistryBeaconUpgraded ¶
type VotingRegistryBeaconUpgraded struct { Beacon common.Address Raw types.Log // Blockchain specific contextual infos }
VotingRegistryBeaconUpgraded represents a BeaconUpgraded event raised by the VotingRegistry contract.
type VotingRegistryBeaconUpgradedIterator ¶
type VotingRegistryBeaconUpgradedIterator struct { Event *VotingRegistryBeaconUpgraded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VotingRegistryBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the VotingRegistry contract.
func (*VotingRegistryBeaconUpgradedIterator) Close ¶
func (it *VotingRegistryBeaconUpgradedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VotingRegistryBeaconUpgradedIterator) Error ¶
func (it *VotingRegistryBeaconUpgradedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VotingRegistryBeaconUpgradedIterator) Next ¶
func (it *VotingRegistryBeaconUpgradedIterator) 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 VotingRegistryCaller ¶
type VotingRegistryCaller struct {
// contains filtered or unexported fields
}
VotingRegistryCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewVotingRegistryCaller ¶
func NewVotingRegistryCaller(address common.Address, caller bind.ContractCaller) (*VotingRegistryCaller, error)
NewVotingRegistryCaller creates a new read-only instance of VotingRegistry, bound to a specific deployed contract.
func (*VotingRegistryCaller) GetPoolImplementation ¶
func (_VotingRegistry *VotingRegistryCaller) GetPoolImplementation(opts *bind.CallOpts, poolType_ string) (common.Address, error)
GetPoolImplementation is a free data retrieval call binding the contract method 0x5fd2b459.
Solidity: function getPoolImplementation(string poolType_) view returns(address)
func (*VotingRegistryCaller) GetVotingForRegistration ¶
func (_VotingRegistry *VotingRegistryCaller) GetVotingForRegistration(opts *bind.CallOpts, proposer_ common.Address, registration_ common.Address) (common.Address, error)
GetVotingForRegistration is a free data retrieval call binding the contract method 0xa2daa62a.
Solidity: function getVotingForRegistration(address proposer_, address registration_) view returns(address)
func (*VotingRegistryCaller) IsPoolExistByProposer ¶
func (_VotingRegistry *VotingRegistryCaller) IsPoolExistByProposer(opts *bind.CallOpts, proposer_ common.Address, pool_ common.Address) (bool, error)
IsPoolExistByProposer is a free data retrieval call binding the contract method 0xd4ba209a.
Solidity: function isPoolExistByProposer(address proposer_, address pool_) view returns(bool)
func (*VotingRegistryCaller) IsPoolExistByProposerAndType ¶
func (_VotingRegistry *VotingRegistryCaller) IsPoolExistByProposerAndType(opts *bind.CallOpts, proposer_ common.Address, poolType_ string, pool_ common.Address) (bool, error)
IsPoolExistByProposerAndType is a free data retrieval call binding the contract method 0x581a9a47.
Solidity: function isPoolExistByProposerAndType(address proposer_, string poolType_, address pool_) view returns(bool)
func (*VotingRegistryCaller) IsPoolExistByType ¶
func (_VotingRegistry *VotingRegistryCaller) IsPoolExistByType(opts *bind.CallOpts, poolType_ string, pool_ common.Address) (bool, error)
IsPoolExistByType is a free data retrieval call binding the contract method 0xd9134bb6.
Solidity: function isPoolExistByType(string poolType_, address pool_) view returns(bool)
func (*VotingRegistryCaller) ListPoolsByProposer ¶
func (_VotingRegistry *VotingRegistryCaller) ListPoolsByProposer(opts *bind.CallOpts, proposer_ common.Address, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
ListPoolsByProposer is a free data retrieval call binding the contract method 0x95c81529.
Solidity: function listPoolsByProposer(address proposer_, uint256 offset_, uint256 limit_) view returns(address[] pools_)
func (*VotingRegistryCaller) ListPoolsByProposerAndType ¶
func (_VotingRegistry *VotingRegistryCaller) ListPoolsByProposerAndType(opts *bind.CallOpts, proposer_ common.Address, poolType_ string, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
ListPoolsByProposerAndType is a free data retrieval call binding the contract method 0xc4e09b63.
Solidity: function listPoolsByProposerAndType(address proposer_, string poolType_, uint256 offset_, uint256 limit_) view returns(address[] pools_)
func (*VotingRegistryCaller) ListPoolsByType ¶
func (_VotingRegistry *VotingRegistryCaller) ListPoolsByType(opts *bind.CallOpts, poolType_ string, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
ListPoolsByType is a free data retrieval call binding the contract method 0x0eb64966.
Solidity: function listPoolsByType(string poolType_, uint256 offset_, uint256 limit_) view returns(address[] pools_)
func (*VotingRegistryCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*VotingRegistryCaller) PoolCountByProposer ¶
func (_VotingRegistry *VotingRegistryCaller) PoolCountByProposer(opts *bind.CallOpts, proposer_ common.Address) (*big.Int, error)
PoolCountByProposer is a free data retrieval call binding the contract method 0x74d3d2f7.
Solidity: function poolCountByProposer(address proposer_) view returns(uint256)
func (*VotingRegistryCaller) PoolCountByProposerAndType ¶
func (_VotingRegistry *VotingRegistryCaller) PoolCountByProposerAndType(opts *bind.CallOpts, proposer_ common.Address, poolType_ string) (*big.Int, error)
PoolCountByProposerAndType is a free data retrieval call binding the contract method 0xd978e638.
Solidity: function poolCountByProposerAndType(address proposer_, string poolType_) view returns(uint256)
func (*VotingRegistryCaller) PoolCountByType ¶
func (_VotingRegistry *VotingRegistryCaller) PoolCountByType(opts *bind.CallOpts, poolType_ string) (*big.Int, error)
PoolCountByType is a free data retrieval call binding the contract method 0x2b1d3489.
Solidity: function poolCountByType(string poolType_) view returns(uint256)
func (*VotingRegistryCaller) PoolFactory ¶
func (_VotingRegistry *VotingRegistryCaller) PoolFactory(opts *bind.CallOpts) (common.Address, error)
PoolFactory is a free data retrieval call binding the contract method 0x4219dc40.
Solidity: function poolFactory() view returns(address)
func (*VotingRegistryCaller) ProxiableUUID ¶
func (_VotingRegistry *VotingRegistryCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)
ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
type VotingRegistryCallerRaw ¶
type VotingRegistryCallerRaw struct {
Contract *VotingRegistryCaller // Generic read-only contract binding to access the raw methods on
}
VotingRegistryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*VotingRegistryCallerRaw) Call ¶
func (_VotingRegistry *VotingRegistryCallerRaw) 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 VotingRegistryCallerSession ¶
type VotingRegistryCallerSession struct { Contract *VotingRegistryCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
VotingRegistryCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*VotingRegistryCallerSession) GetPoolImplementation ¶
func (_VotingRegistry *VotingRegistryCallerSession) GetPoolImplementation(poolType_ string) (common.Address, error)
GetPoolImplementation is a free data retrieval call binding the contract method 0x5fd2b459.
Solidity: function getPoolImplementation(string poolType_) view returns(address)
func (*VotingRegistryCallerSession) GetVotingForRegistration ¶
func (_VotingRegistry *VotingRegistryCallerSession) GetVotingForRegistration(proposer_ common.Address, registration_ common.Address) (common.Address, error)
GetVotingForRegistration is a free data retrieval call binding the contract method 0xa2daa62a.
Solidity: function getVotingForRegistration(address proposer_, address registration_) view returns(address)
func (*VotingRegistryCallerSession) IsPoolExistByProposer ¶
func (_VotingRegistry *VotingRegistryCallerSession) IsPoolExistByProposer(proposer_ common.Address, pool_ common.Address) (bool, error)
IsPoolExistByProposer is a free data retrieval call binding the contract method 0xd4ba209a.
Solidity: function isPoolExistByProposer(address proposer_, address pool_) view returns(bool)
func (*VotingRegistryCallerSession) IsPoolExistByProposerAndType ¶
func (_VotingRegistry *VotingRegistryCallerSession) IsPoolExistByProposerAndType(proposer_ common.Address, poolType_ string, pool_ common.Address) (bool, error)
IsPoolExistByProposerAndType is a free data retrieval call binding the contract method 0x581a9a47.
Solidity: function isPoolExistByProposerAndType(address proposer_, string poolType_, address pool_) view returns(bool)
func (*VotingRegistryCallerSession) IsPoolExistByType ¶
func (_VotingRegistry *VotingRegistryCallerSession) IsPoolExistByType(poolType_ string, pool_ common.Address) (bool, error)
IsPoolExistByType is a free data retrieval call binding the contract method 0xd9134bb6.
Solidity: function isPoolExistByType(string poolType_, address pool_) view returns(bool)
func (*VotingRegistryCallerSession) ListPoolsByProposer ¶
func (_VotingRegistry *VotingRegistryCallerSession) ListPoolsByProposer(proposer_ common.Address, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
ListPoolsByProposer is a free data retrieval call binding the contract method 0x95c81529.
Solidity: function listPoolsByProposer(address proposer_, uint256 offset_, uint256 limit_) view returns(address[] pools_)
func (*VotingRegistryCallerSession) ListPoolsByProposerAndType ¶
func (_VotingRegistry *VotingRegistryCallerSession) ListPoolsByProposerAndType(proposer_ common.Address, poolType_ string, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
ListPoolsByProposerAndType is a free data retrieval call binding the contract method 0xc4e09b63.
Solidity: function listPoolsByProposerAndType(address proposer_, string poolType_, uint256 offset_, uint256 limit_) view returns(address[] pools_)
func (*VotingRegistryCallerSession) ListPoolsByType ¶
func (_VotingRegistry *VotingRegistryCallerSession) ListPoolsByType(poolType_ string, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
ListPoolsByType is a free data retrieval call binding the contract method 0x0eb64966.
Solidity: function listPoolsByType(string poolType_, uint256 offset_, uint256 limit_) view returns(address[] pools_)
func (*VotingRegistryCallerSession) Owner ¶
func (_VotingRegistry *VotingRegistryCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*VotingRegistryCallerSession) PoolCountByProposer ¶
func (_VotingRegistry *VotingRegistryCallerSession) PoolCountByProposer(proposer_ common.Address) (*big.Int, error)
PoolCountByProposer is a free data retrieval call binding the contract method 0x74d3d2f7.
Solidity: function poolCountByProposer(address proposer_) view returns(uint256)
func (*VotingRegistryCallerSession) PoolCountByProposerAndType ¶
func (_VotingRegistry *VotingRegistryCallerSession) PoolCountByProposerAndType(proposer_ common.Address, poolType_ string) (*big.Int, error)
PoolCountByProposerAndType is a free data retrieval call binding the contract method 0xd978e638.
Solidity: function poolCountByProposerAndType(address proposer_, string poolType_) view returns(uint256)
func (*VotingRegistryCallerSession) PoolCountByType ¶
func (_VotingRegistry *VotingRegistryCallerSession) PoolCountByType(poolType_ string) (*big.Int, error)
PoolCountByType is a free data retrieval call binding the contract method 0x2b1d3489.
Solidity: function poolCountByType(string poolType_) view returns(uint256)
func (*VotingRegistryCallerSession) PoolFactory ¶
func (_VotingRegistry *VotingRegistryCallerSession) PoolFactory() (common.Address, error)
PoolFactory is a free data retrieval call binding the contract method 0x4219dc40.
Solidity: function poolFactory() view returns(address)
func (*VotingRegistryCallerSession) ProxiableUUID ¶
func (_VotingRegistry *VotingRegistryCallerSession) ProxiableUUID() ([32]byte, error)
ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
type VotingRegistryFilterer ¶
type VotingRegistryFilterer struct {
// contains filtered or unexported fields
}
VotingRegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewVotingRegistryFilterer ¶
func NewVotingRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*VotingRegistryFilterer, error)
NewVotingRegistryFilterer creates a new log filterer instance of VotingRegistry, bound to a specific deployed contract.
func (*VotingRegistryFilterer) FilterAdminChanged ¶
func (_VotingRegistry *VotingRegistryFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*VotingRegistryAdminChangedIterator, error)
FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*VotingRegistryFilterer) FilterBeaconUpgraded ¶
func (_VotingRegistry *VotingRegistryFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*VotingRegistryBeaconUpgradedIterator, error)
FilterBeaconUpgraded is a free log retrieval operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*VotingRegistryFilterer) FilterInitialized ¶
func (_VotingRegistry *VotingRegistryFilterer) FilterInitialized(opts *bind.FilterOpts) (*VotingRegistryInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*VotingRegistryFilterer) FilterOwnershipTransferred ¶
func (_VotingRegistry *VotingRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*VotingRegistryOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*VotingRegistryFilterer) FilterUpgraded ¶
func (_VotingRegistry *VotingRegistryFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*VotingRegistryUpgradedIterator, error)
FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
func (*VotingRegistryFilterer) ParseAdminChanged ¶
func (_VotingRegistry *VotingRegistryFilterer) ParseAdminChanged(log types.Log) (*VotingRegistryAdminChanged, error)
ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*VotingRegistryFilterer) ParseBeaconUpgraded ¶
func (_VotingRegistry *VotingRegistryFilterer) ParseBeaconUpgraded(log types.Log) (*VotingRegistryBeaconUpgraded, error)
ParseBeaconUpgraded is a log parse operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*VotingRegistryFilterer) ParseInitialized ¶
func (_VotingRegistry *VotingRegistryFilterer) ParseInitialized(log types.Log) (*VotingRegistryInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*VotingRegistryFilterer) ParseOwnershipTransferred ¶
func (_VotingRegistry *VotingRegistryFilterer) ParseOwnershipTransferred(log types.Log) (*VotingRegistryOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*VotingRegistryFilterer) ParseUpgraded ¶
func (_VotingRegistry *VotingRegistryFilterer) ParseUpgraded(log types.Log) (*VotingRegistryUpgraded, error)
ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
func (*VotingRegistryFilterer) WatchAdminChanged ¶
func (_VotingRegistry *VotingRegistryFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *VotingRegistryAdminChanged) (event.Subscription, error)
WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*VotingRegistryFilterer) WatchBeaconUpgraded ¶
func (_VotingRegistry *VotingRegistryFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *VotingRegistryBeaconUpgraded, beacon []common.Address) (event.Subscription, error)
WatchBeaconUpgraded is a free log subscription operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*VotingRegistryFilterer) WatchInitialized ¶
func (_VotingRegistry *VotingRegistryFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *VotingRegistryInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*VotingRegistryFilterer) WatchOwnershipTransferred ¶
func (_VotingRegistry *VotingRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *VotingRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*VotingRegistryFilterer) WatchUpgraded ¶
func (_VotingRegistry *VotingRegistryFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *VotingRegistryUpgraded, implementation []common.Address) (event.Subscription, error)
WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
type VotingRegistryInitialized ¶
type VotingRegistryInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos }
VotingRegistryInitialized represents a Initialized event raised by the VotingRegistry contract.
type VotingRegistryInitializedIterator ¶
type VotingRegistryInitializedIterator struct { Event *VotingRegistryInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VotingRegistryInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the VotingRegistry contract.
func (*VotingRegistryInitializedIterator) Close ¶
func (it *VotingRegistryInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VotingRegistryInitializedIterator) Error ¶
func (it *VotingRegistryInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VotingRegistryInitializedIterator) Next ¶
func (it *VotingRegistryInitializedIterator) 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 VotingRegistryOwnershipTransferred ¶
type VotingRegistryOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
VotingRegistryOwnershipTransferred represents a OwnershipTransferred event raised by the VotingRegistry contract.
type VotingRegistryOwnershipTransferredIterator ¶
type VotingRegistryOwnershipTransferredIterator struct { Event *VotingRegistryOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VotingRegistryOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the VotingRegistry contract.
func (*VotingRegistryOwnershipTransferredIterator) Close ¶
func (it *VotingRegistryOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VotingRegistryOwnershipTransferredIterator) Error ¶
func (it *VotingRegistryOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VotingRegistryOwnershipTransferredIterator) Next ¶
func (it *VotingRegistryOwnershipTransferredIterator) 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 VotingRegistryRaw ¶
type VotingRegistryRaw struct {
Contract *VotingRegistry // Generic contract binding to access the raw methods on
}
VotingRegistryRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*VotingRegistryRaw) Call ¶
func (_VotingRegistry *VotingRegistryRaw) 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 (*VotingRegistryRaw) Transact ¶
func (_VotingRegistry *VotingRegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*VotingRegistryRaw) Transfer ¶
func (_VotingRegistry *VotingRegistryRaw) 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 VotingRegistrySession ¶
type VotingRegistrySession struct { Contract *VotingRegistry // 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 }
VotingRegistrySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*VotingRegistrySession) AddProxyPool ¶
func (_VotingRegistry *VotingRegistrySession) AddProxyPool(poolType_ string, proposer_ common.Address, pool_ common.Address) (*types.Transaction, error)
AddProxyPool is a paid mutator transaction binding the contract method 0xce41a736.
Solidity: function addProxyPool(string poolType_, address proposer_, address pool_) returns()
func (*VotingRegistrySession) BindVotingToRegistration ¶
func (_VotingRegistry *VotingRegistrySession) BindVotingToRegistration(proposer_ common.Address, voting_ common.Address, registration_ common.Address) (*types.Transaction, error)
BindVotingToRegistration is a paid mutator transaction binding the contract method 0x5f4999b8.
Solidity: function bindVotingToRegistration(address proposer_, address voting_, address registration_) returns()
func (*VotingRegistrySession) GetPoolImplementation ¶
func (_VotingRegistry *VotingRegistrySession) GetPoolImplementation(poolType_ string) (common.Address, error)
GetPoolImplementation is a free data retrieval call binding the contract method 0x5fd2b459.
Solidity: function getPoolImplementation(string poolType_) view returns(address)
func (*VotingRegistrySession) GetVotingForRegistration ¶
func (_VotingRegistry *VotingRegistrySession) GetVotingForRegistration(proposer_ common.Address, registration_ common.Address) (common.Address, error)
GetVotingForRegistration is a free data retrieval call binding the contract method 0xa2daa62a.
Solidity: function getVotingForRegistration(address proposer_, address registration_) view returns(address)
func (*VotingRegistrySession) IsPoolExistByProposer ¶
func (_VotingRegistry *VotingRegistrySession) IsPoolExistByProposer(proposer_ common.Address, pool_ common.Address) (bool, error)
IsPoolExistByProposer is a free data retrieval call binding the contract method 0xd4ba209a.
Solidity: function isPoolExistByProposer(address proposer_, address pool_) view returns(bool)
func (*VotingRegistrySession) IsPoolExistByProposerAndType ¶
func (_VotingRegistry *VotingRegistrySession) IsPoolExistByProposerAndType(proposer_ common.Address, poolType_ string, pool_ common.Address) (bool, error)
IsPoolExistByProposerAndType is a free data retrieval call binding the contract method 0x581a9a47.
Solidity: function isPoolExistByProposerAndType(address proposer_, string poolType_, address pool_) view returns(bool)
func (*VotingRegistrySession) IsPoolExistByType ¶
func (_VotingRegistry *VotingRegistrySession) IsPoolExistByType(poolType_ string, pool_ common.Address) (bool, error)
IsPoolExistByType is a free data retrieval call binding the contract method 0xd9134bb6.
Solidity: function isPoolExistByType(string poolType_, address pool_) view returns(bool)
func (*VotingRegistrySession) ListPoolsByProposer ¶
func (_VotingRegistry *VotingRegistrySession) ListPoolsByProposer(proposer_ common.Address, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
ListPoolsByProposer is a free data retrieval call binding the contract method 0x95c81529.
Solidity: function listPoolsByProposer(address proposer_, uint256 offset_, uint256 limit_) view returns(address[] pools_)
func (*VotingRegistrySession) ListPoolsByProposerAndType ¶
func (_VotingRegistry *VotingRegistrySession) ListPoolsByProposerAndType(proposer_ common.Address, poolType_ string, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
ListPoolsByProposerAndType is a free data retrieval call binding the contract method 0xc4e09b63.
Solidity: function listPoolsByProposerAndType(address proposer_, string poolType_, uint256 offset_, uint256 limit_) view returns(address[] pools_)
func (*VotingRegistrySession) ListPoolsByType ¶
func (_VotingRegistry *VotingRegistrySession) ListPoolsByType(poolType_ string, offset_ *big.Int, limit_ *big.Int) ([]common.Address, error)
ListPoolsByType is a free data retrieval call binding the contract method 0x0eb64966.
Solidity: function listPoolsByType(string poolType_, uint256 offset_, uint256 limit_) view returns(address[] pools_)
func (*VotingRegistrySession) Owner ¶
func (_VotingRegistry *VotingRegistrySession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*VotingRegistrySession) PoolCountByProposer ¶
func (_VotingRegistry *VotingRegistrySession) PoolCountByProposer(proposer_ common.Address) (*big.Int, error)
PoolCountByProposer is a free data retrieval call binding the contract method 0x74d3d2f7.
Solidity: function poolCountByProposer(address proposer_) view returns(uint256)
func (*VotingRegistrySession) PoolCountByProposerAndType ¶
func (_VotingRegistry *VotingRegistrySession) PoolCountByProposerAndType(proposer_ common.Address, poolType_ string) (*big.Int, error)
PoolCountByProposerAndType is a free data retrieval call binding the contract method 0xd978e638.
Solidity: function poolCountByProposerAndType(address proposer_, string poolType_) view returns(uint256)
func (*VotingRegistrySession) PoolCountByType ¶
func (_VotingRegistry *VotingRegistrySession) PoolCountByType(poolType_ string) (*big.Int, error)
PoolCountByType is a free data retrieval call binding the contract method 0x2b1d3489.
Solidity: function poolCountByType(string poolType_) view returns(uint256)
func (*VotingRegistrySession) PoolFactory ¶
func (_VotingRegistry *VotingRegistrySession) PoolFactory() (common.Address, error)
PoolFactory is a free data retrieval call binding the contract method 0x4219dc40.
Solidity: function poolFactory() view returns(address)
func (*VotingRegistrySession) ProxiableUUID ¶
func (_VotingRegistry *VotingRegistrySession) ProxiableUUID() ([32]byte, error)
ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
func (*VotingRegistrySession) RenounceOwnership ¶
func (_VotingRegistry *VotingRegistrySession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*VotingRegistrySession) SetNewImplementations ¶
func (_VotingRegistry *VotingRegistrySession) SetNewImplementations(poolTypes_ []string, newImplementations_ []common.Address) (*types.Transaction, error)
SetNewImplementations is a paid mutator transaction binding the contract method 0x05c05408.
Solidity: function setNewImplementations(string[] poolTypes_, address[] newImplementations_) returns()
func (*VotingRegistrySession) TransferOwnership ¶
func (_VotingRegistry *VotingRegistrySession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*VotingRegistrySession) UpgradeTo ¶
func (_VotingRegistry *VotingRegistrySession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*VotingRegistrySession) UpgradeToAndCall ¶
func (_VotingRegistry *VotingRegistrySession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
func (*VotingRegistrySession) VotingRegistryInit ¶
func (_VotingRegistry *VotingRegistrySession) VotingRegistryInit(poolFactory_ common.Address) (*types.Transaction, error)
VotingRegistryInit is a paid mutator transaction binding the contract method 0x49f74dae.
Solidity: function __VotingRegistry_init(address poolFactory_) returns()
type VotingRegistryTransactor ¶
type VotingRegistryTransactor struct {
// contains filtered or unexported fields
}
VotingRegistryTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewVotingRegistryTransactor ¶
func NewVotingRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*VotingRegistryTransactor, error)
NewVotingRegistryTransactor creates a new write-only instance of VotingRegistry, bound to a specific deployed contract.
func (*VotingRegistryTransactor) AddProxyPool ¶
func (_VotingRegistry *VotingRegistryTransactor) AddProxyPool(opts *bind.TransactOpts, poolType_ string, proposer_ common.Address, pool_ common.Address) (*types.Transaction, error)
AddProxyPool is a paid mutator transaction binding the contract method 0xce41a736.
Solidity: function addProxyPool(string poolType_, address proposer_, address pool_) returns()
func (*VotingRegistryTransactor) BindVotingToRegistration ¶
func (_VotingRegistry *VotingRegistryTransactor) BindVotingToRegistration(opts *bind.TransactOpts, proposer_ common.Address, voting_ common.Address, registration_ common.Address) (*types.Transaction, error)
BindVotingToRegistration is a paid mutator transaction binding the contract method 0x5f4999b8.
Solidity: function bindVotingToRegistration(address proposer_, address voting_, address registration_) returns()
func (*VotingRegistryTransactor) RenounceOwnership ¶
func (_VotingRegistry *VotingRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*VotingRegistryTransactor) SetNewImplementations ¶
func (_VotingRegistry *VotingRegistryTransactor) SetNewImplementations(opts *bind.TransactOpts, poolTypes_ []string, newImplementations_ []common.Address) (*types.Transaction, error)
SetNewImplementations is a paid mutator transaction binding the contract method 0x05c05408.
Solidity: function setNewImplementations(string[] poolTypes_, address[] newImplementations_) returns()
func (*VotingRegistryTransactor) TransferOwnership ¶
func (_VotingRegistry *VotingRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*VotingRegistryTransactor) UpgradeTo ¶
func (_VotingRegistry *VotingRegistryTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*VotingRegistryTransactor) UpgradeToAndCall ¶
func (_VotingRegistry *VotingRegistryTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
func (*VotingRegistryTransactor) VotingRegistryInit ¶
func (_VotingRegistry *VotingRegistryTransactor) VotingRegistryInit(opts *bind.TransactOpts, poolFactory_ common.Address) (*types.Transaction, error)
VotingRegistryInit is a paid mutator transaction binding the contract method 0x49f74dae.
Solidity: function __VotingRegistry_init(address poolFactory_) returns()
type VotingRegistryTransactorRaw ¶
type VotingRegistryTransactorRaw struct {
Contract *VotingRegistryTransactor // Generic write-only contract binding to access the raw methods on
}
VotingRegistryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*VotingRegistryTransactorRaw) Transact ¶
func (_VotingRegistry *VotingRegistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*VotingRegistryTransactorRaw) Transfer ¶
func (_VotingRegistry *VotingRegistryTransactorRaw) 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 VotingRegistryTransactorSession ¶
type VotingRegistryTransactorSession struct { Contract *VotingRegistryTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
VotingRegistryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*VotingRegistryTransactorSession) AddProxyPool ¶
func (_VotingRegistry *VotingRegistryTransactorSession) AddProxyPool(poolType_ string, proposer_ common.Address, pool_ common.Address) (*types.Transaction, error)
AddProxyPool is a paid mutator transaction binding the contract method 0xce41a736.
Solidity: function addProxyPool(string poolType_, address proposer_, address pool_) returns()
func (*VotingRegistryTransactorSession) BindVotingToRegistration ¶
func (_VotingRegistry *VotingRegistryTransactorSession) BindVotingToRegistration(proposer_ common.Address, voting_ common.Address, registration_ common.Address) (*types.Transaction, error)
BindVotingToRegistration is a paid mutator transaction binding the contract method 0x5f4999b8.
Solidity: function bindVotingToRegistration(address proposer_, address voting_, address registration_) returns()
func (*VotingRegistryTransactorSession) RenounceOwnership ¶
func (_VotingRegistry *VotingRegistryTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*VotingRegistryTransactorSession) SetNewImplementations ¶
func (_VotingRegistry *VotingRegistryTransactorSession) SetNewImplementations(poolTypes_ []string, newImplementations_ []common.Address) (*types.Transaction, error)
SetNewImplementations is a paid mutator transaction binding the contract method 0x05c05408.
Solidity: function setNewImplementations(string[] poolTypes_, address[] newImplementations_) returns()
func (*VotingRegistryTransactorSession) TransferOwnership ¶
func (_VotingRegistry *VotingRegistryTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*VotingRegistryTransactorSession) UpgradeTo ¶
func (_VotingRegistry *VotingRegistryTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*VotingRegistryTransactorSession) UpgradeToAndCall ¶
func (_VotingRegistry *VotingRegistryTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
func (*VotingRegistryTransactorSession) VotingRegistryInit ¶
func (_VotingRegistry *VotingRegistryTransactorSession) VotingRegistryInit(poolFactory_ common.Address) (*types.Transaction, error)
VotingRegistryInit is a paid mutator transaction binding the contract method 0x49f74dae.
Solidity: function __VotingRegistry_init(address poolFactory_) returns()
type VotingRegistryUpgraded ¶
type VotingRegistryUpgraded struct { Implementation common.Address Raw types.Log // Blockchain specific contextual infos }
VotingRegistryUpgraded represents a Upgraded event raised by the VotingRegistry contract.
type VotingRegistryUpgradedIterator ¶
type VotingRegistryUpgradedIterator struct { Event *VotingRegistryUpgraded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VotingRegistryUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the VotingRegistry contract.
func (*VotingRegistryUpgradedIterator) Close ¶
func (it *VotingRegistryUpgradedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VotingRegistryUpgradedIterator) Error ¶
func (it *VotingRegistryUpgradedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VotingRegistryUpgradedIterator) Next ¶
func (it *VotingRegistryUpgradedIterator) 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.