contracts

package
v0.5.1-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LightweightStateABI = LightweightStateMetaData.ABI

LightweightStateABI is the input ABI used to generate the binding from. Deprecated: Use LightweightStateMetaData.ABI instead.

View Source
var LightweightStateMetaData = &bind.MetaData{
	ABI: "[{\"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\":false,\"internalType\":\"uint256\",\"name\":\"newGistRoot\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"newIdentitesStatesRoot\",\"type\":\"bytes32\"}],\"name\":\"SignedStateTransited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"P\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"sourceStateContract_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"sourceChainName_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"chainName_\",\"type\":\"string\"}],\"name\":\"__LightweightState_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"chainName_\",\"type\":\"string\"}],\"name\":\"__Signers_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"chainName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"newSignerPubKey_\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature_\",\"type\":\"bytes\"}],\"name\":\"changeSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newSourceStateContract_\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signature_\",\"type\":\"bytes\"}],\"name\":\"changeSourceStateContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"methodId_\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"contractAddress_\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"signHash_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"signature_\",\"type\":\"bytes\"}],\"name\":\"checkSignatureAndIncrementNonce\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"root_\",\"type\":\"uint256\"}],\"name\":\"geGISTRootData\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtTimestamp\",\"type\":\"uint256\"}],\"internalType\":\"structILightweightState.GistRootData\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentGISTRootInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtTimestamp\",\"type\":\"uint256\"}],\"internalType\":\"structILightweightState.GistRootData\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getGISTRoot\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"root_\",\"type\":\"bytes32\"}],\"name\":\"getIdentitiesStatesRootData\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"setTimestamp\",\"type\":\"uint256\"}],\"internalType\":\"structILightweightState.IdentitiesStatesRootData\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"methodId_\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"contractAddress_\",\"type\":\"address\"}],\"name\":\"getSigComponents\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"chainName_\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"nonce_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"identitiesStatesRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"root_\",\"type\":\"bytes32\"}],\"name\":\"isIdentitiesStatesRootExists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"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\"}],\"name\":\"signedTransitState\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sourceChainName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sourceStateContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"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\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation_\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signature_\",\"type\":\"bytes\"}],\"name\":\"upgradeToWithSig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"methodId_\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"contractAddress_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newAddress_\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signature_\",\"type\":\"bytes\"}],\"name\":\"validateChangeAddressSignature\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"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\"}],\"name\":\"verifyStatesMerkleData\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

LightweightStateMetaData contains all meta data concerning the LightweightState contract.

View Source
var ProposalsStateABI = ProposalsStateMetaData.ABI

ProposalsStateABI is the input ABI used to generate the binding from. Deprecated: Use ProposalsStateMetaData.ABI instead.

View Source
var ProposalsStateMetaData = &bind.MetaData{
	ABI: "[{\"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\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"MinFundingAmountSet\",\"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\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"}],\"name\":\"ProposalConfigChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proposalSMT\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fundAmount\",\"type\":\"uint256\"}],\"name\":\"ProposalCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fundAmount\",\"type\":\"uint256\"}],\"name\":\"ProposalFunded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"hide\",\"type\":\"bool\"}],\"name\":\"ProposalHidden\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"userNullifier\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"vote\",\"type\":\"uint256[]\"}],\"name\":\"VoteCast\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CONTRACT_MANAGER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FUNDS_MANAGER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_CHOICES_PER_OPTION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_OPTIONS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PROPOSAL_MANAGER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proposalSMTImpl_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minFundingAmount_\",\"type\":\"uint256\"}],\"name\":\"__ProposalsState_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId_\",\"type\":\"uint256\"}],\"name\":\"addFundsToProposal\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"votingName_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"votingAddress_\",\"type\":\"address\"}],\"name\":\"addVoting\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId_\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"startTimestamp\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"duration\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"multichoice\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"acceptedOptions\",\"type\":\"uint256[]\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"address[]\",\"name\":\"votingWhitelist\",\"type\":\"address[]\"},{\"internalType\":\"bytes[]\",\"name\":\"votingWhitelistData\",\"type\":\"bytes[]\"}],\"internalType\":\"structProposalsState.ProposalConfig\",\"name\":\"newProposalConfig_\",\"type\":\"tuple\"}],\"name\":\"changeProposalConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId_\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"newDuration_\",\"type\":\"uint64\"}],\"name\":\"changeProposalDuration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"startTimestamp\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"duration\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"multichoice\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"acceptedOptions\",\"type\":\"uint256[]\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"address[]\",\"name\":\"votingWhitelist\",\"type\":\"address[]\"},{\"internalType\":\"bytes[]\",\"name\":\"votingWhitelistData\",\"type\":\"bytes[]\"}],\"internalType\":\"structProposalsState.ProposalConfig\",\"name\":\"proposalConfig_\",\"type\":\"tuple\"}],\"name\":\"createProposal\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId_\",\"type\":\"uint256\"}],\"name\":\"getProposalConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"startTimestamp\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"duration\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"multichoice\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"acceptedOptions\",\"type\":\"uint256[]\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"address[]\",\"name\":\"votingWhitelist\",\"type\":\"address[]\"},{\"internalType\":\"bytes[]\",\"name\":\"votingWhitelistData\",\"type\":\"bytes[]\"}],\"internalType\":\"structProposalsState.ProposalConfig\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId_\",\"type\":\"uint256\"}],\"name\":\"getProposalEventId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId_\",\"type\":\"uint256\"}],\"name\":\"getProposalInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"proposalSMT\",\"type\":\"address\"},{\"internalType\":\"enumProposalsState.ProposalStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"startTimestamp\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"duration\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"multichoice\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"acceptedOptions\",\"type\":\"uint256[]\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"address[]\",\"name\":\"votingWhitelist\",\"type\":\"address[]\"},{\"internalType\":\"bytes[]\",\"name\":\"votingWhitelistData\",\"type\":\"bytes[]\"}],\"internalType\":\"structProposalsState.ProposalConfig\",\"name\":\"config\",\"type\":\"tuple\"},{\"internalType\":\"uint256[8][]\",\"name\":\"votingResults\",\"type\":\"uint256[8][]\"}],\"internalType\":\"structProposalsState.ProposalInfo\",\"name\":\"info_\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId_\",\"type\":\"uint256\"}],\"name\":\"getProposalStatus\",\"outputs\":[{\"internalType\":\"enumProposalsState.ProposalStatus\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"key_\",\"type\":\"string\"}],\"name\":\"getVotingByKey\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVotings\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"keys_\",\"type\":\"string[]\"},{\"internalType\":\"address[]\",\"name\":\"values_\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId_\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"hide_\",\"type\":\"bool\"}],\"name\":\"hideProposal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId_\",\"type\":\"uint256\"}],\"name\":\"hideProposal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"implementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"voting_\",\"type\":\"address\"}],\"name\":\"isVoting\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastProposalId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minFundingAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proposalSMTImpl\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"votingName_\",\"type\":\"string\"}],\"name\":\"removeVoting\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"}],\"name\":\"setMinFundingAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"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\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"userNullifier_\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"vote_\",\"type\":\"uint256[]\"}],\"name\":\"vote\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"recipient_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"}],\"name\":\"withdrawFunds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

ProposalsStateMetaData contains all meta data concerning the ProposalsState contract.

View Source
var VoteVerifierABI = VoteVerifierMetaData.ABI

VoteVerifierABI is the input ABI used to generate the binding from. Deprecated: Use VoteVerifierMetaData.ABI instead.

View Source
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.

View Source
var VotingABI = VotingMetaData.ABI

VotingABI is the input ABI used to generate the binding from. Deprecated: Use VotingMetaData.ABI instead.

View Source
var VotingMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"voteVerifier_\",\"type\":\"address\"}],\"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\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"nullifierHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"candidate\",\"type\":\"bytes32\"}],\"name\":\"UserVoted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proposer\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"contractIRegistration\",\"name\":\"registration\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"remark\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"votingStart\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"votingPeriod\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"candidates\",\"type\":\"bytes32[]\"}],\"indexed\":false,\"internalType\":\"structIVoting.VotingParams\",\"name\":\"votingParams\",\"type\":\"tuple\"}],\"name\":\"VotingInitialized\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAX_CANDIDATES\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"contractIRegistration\",\"name\":\"registration\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"remark\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"votingStart\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"votingPeriod\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"candidates\",\"type\":\"bytes32[]\"}],\"internalType\":\"structIVoting.VotingParams\",\"name\":\"votingParams_\",\"type\":\"tuple\"}],\"name\":\"__Voting_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"candidates\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProposalStatus\",\"outputs\":[{\"internalType\":\"enumIVoting.VotingStatus\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRegistrationAddresses\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"nullifiers\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"registration\",\"outputs\":[{\"internalType\":\"contractIRegistration\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"root_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"nullifierHash_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"candidate_\",\"type\":\"bytes32\"},{\"components\":[{\"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\":\"structVerifierHelper.ProofPoints\",\"name\":\"proof_\",\"type\":\"tuple\"}],\"name\":\"vote\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"voteVerifier\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"votesPerCandidate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"votingInfo\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"remark\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"votingStartTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"votingEndTime\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"candidates\",\"type\":\"bytes32[]\"}],\"internalType\":\"structIVoting.VotingValues\",\"name\":\"values\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"votesCount\",\"type\":\"uint256\"}],\"internalType\":\"structIVoting.VotingCounters\",\"name\":\"counters\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

VotingMetaData contains all meta data concerning the Voting contract.

View Source
var VotingRegistryABI = VotingRegistryMetaData.ABI

VotingRegistryABI is the input ABI used to generate the binding from. Deprecated: Use VotingRegistryMetaData.ABI instead.

View Source
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

type ILightweightStateGistRootData struct {
	Root               *big.Int
	CreatedAtTimestamp *big.Int
}

ILightweightStateGistRootData is an auto generated low-level Go binding around an user-defined struct.

type ILightweightStateIdentitiesStatesRootData added in v0.3.0

type ILightweightStateIdentitiesStatesRootData struct {
	Root         [32]byte
	SetTimestamp *big.Int
}

ILightweightStateIdentitiesStatesRootData 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

type IRegistrationRegistrationCounters struct {
	TotalRegistrations *big.Int
}

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 IVotingVotingCounters added in v0.3.0

type IVotingVotingCounters struct {
	VotesCount *big.Int
}

IVotingVotingCounters is an auto generated low-level Go binding around an user-defined struct.

type IVotingVotingParams added in v0.3.0

type IVotingVotingParams struct {
	Registration common.Address
	Remark       string
	VotingStart  *big.Int
	VotingPeriod *big.Int
	Candidates   [][32]byte
}

IVotingVotingParams is an auto generated low-level Go binding around an user-defined struct.

type IVotingVotingValues added in v0.3.0

type IVotingVotingValues struct {
	VotingStartTime *big.Int
	VotingEndTime   *big.Int
	Candidates      [][32]byte
}

IVotingVotingValues is an auto generated low-level Go binding around an user-defined struct.

type LightweightState added in v0.3.0

type LightweightState struct {
	LightweightStateCaller     // Read-only binding to the contract
	LightweightStateTransactor // Write-only binding to the contract
	LightweightStateFilterer   // Log filterer for contract events
}

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

func NewLightweightState added in v0.3.0

func NewLightweightState(address common.Address, backend bind.ContractBackend) (*LightweightState, error)

NewLightweightState creates a new instance of LightweightState, bound to a specific deployed contract.

type LightweightStateAdminChanged added in v0.3.0

type LightweightStateAdminChanged struct {
	PreviousAdmin common.Address
	NewAdmin      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

LightweightStateAdminChanged represents a AdminChanged event raised by the LightweightState contract.

type LightweightStateAdminChangedIterator added in v0.3.0

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

LightweightStateAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the LightweightState contract.

func (*LightweightStateAdminChangedIterator) Close added in v0.3.0

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

func (*LightweightStateAdminChangedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*LightweightStateAdminChangedIterator) Next added in v0.3.0

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 LightweightStateBeaconUpgraded added in v0.3.0

type LightweightStateBeaconUpgraded struct {
	Beacon common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

LightweightStateBeaconUpgraded represents a BeaconUpgraded event raised by the LightweightState contract.

type LightweightStateBeaconUpgradedIterator added in v0.3.0

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

LightweightStateBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the LightweightState contract.

func (*LightweightStateBeaconUpgradedIterator) Close added in v0.3.0

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

func (*LightweightStateBeaconUpgradedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*LightweightStateBeaconUpgradedIterator) Next added in v0.3.0

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 LightweightStateCaller added in v0.3.0

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

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

func NewLightweightStateCaller added in v0.3.0

func NewLightweightStateCaller(address common.Address, caller bind.ContractCaller) (*LightweightStateCaller, error)

NewLightweightStateCaller creates a new read-only instance of LightweightState, bound to a specific deployed contract.

func (*LightweightStateCaller) ChainName added in v0.3.0

func (_LightweightState *LightweightStateCaller) ChainName(opts *bind.CallOpts) (string, error)

ChainName is a free data retrieval call binding the contract method 0x1c93b03a.

Solidity: function chainName() view returns(string)

func (*LightweightStateCaller) GeGISTRootData added in v0.3.0

func (_LightweightState *LightweightStateCaller) GeGISTRootData(opts *bind.CallOpts, root_ *big.Int) (ILightweightStateGistRootData, error)

GeGISTRootData is a free data retrieval call binding the contract method 0x0dd93b5d.

Solidity: function geGISTRootData(uint256 root_) view returns((uint256,uint256))

func (*LightweightStateCaller) GetCurrentGISTRootInfo added in v0.3.0

func (_LightweightState *LightweightStateCaller) GetCurrentGISTRootInfo(opts *bind.CallOpts) (ILightweightStateGistRootData, error)

GetCurrentGISTRootInfo is a free data retrieval call binding the contract method 0xaf7a3f59.

Solidity: function getCurrentGISTRootInfo() view returns((uint256,uint256))

func (*LightweightStateCaller) GetGISTRoot added in v0.3.0

func (_LightweightState *LightweightStateCaller) GetGISTRoot(opts *bind.CallOpts) (*big.Int, error)

GetGISTRoot is a free data retrieval call binding the contract method 0x2439e3a6.

Solidity: function getGISTRoot() view returns(uint256)

func (*LightweightStateCaller) GetIdentitiesStatesRootData added in v0.3.0

func (_LightweightState *LightweightStateCaller) GetIdentitiesStatesRootData(opts *bind.CallOpts, root_ [32]byte) (ILightweightStateIdentitiesStatesRootData, error)

GetIdentitiesStatesRootData is a free data retrieval call binding the contract method 0xa055a692.

Solidity: function getIdentitiesStatesRootData(bytes32 root_) view returns((bytes32,uint256))

func (*LightweightStateCaller) GetSigComponents added in v0.3.0

func (_LightweightState *LightweightStateCaller) GetSigComponents(opts *bind.CallOpts, methodId_ uint8, contractAddress_ common.Address) (struct {
	ChainName string
	Nonce     *big.Int
}, error)

GetSigComponents is a free data retrieval call binding the contract method 0x827e099e.

Solidity: function getSigComponents(uint8 methodId_, address contractAddress_) view returns(string chainName_, uint256 nonce_)

func (*LightweightStateCaller) IdentitiesStatesRoot added in v0.3.0

func (_LightweightState *LightweightStateCaller) IdentitiesStatesRoot(opts *bind.CallOpts) ([32]byte, error)

IdentitiesStatesRoot is a free data retrieval call binding the contract method 0xe08e70bb.

Solidity: function identitiesStatesRoot() view returns(bytes32)

func (*LightweightStateCaller) IsIdentitiesStatesRootExists added in v0.3.0

func (_LightweightState *LightweightStateCaller) IsIdentitiesStatesRootExists(opts *bind.CallOpts, root_ [32]byte) (bool, error)

IsIdentitiesStatesRootExists is a free data retrieval call binding the contract method 0xbfd73455.

Solidity: function isIdentitiesStatesRootExists(bytes32 root_) view returns(bool)

func (*LightweightStateCaller) Nonces added in v0.3.0

func (_LightweightState *LightweightStateCaller) Nonces(opts *bind.CallOpts, arg0 common.Address, arg1 uint8) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0xed3218a2.

Solidity: function nonces(address , uint8 ) view returns(uint256)

func (*LightweightStateCaller) P added in v0.3.0

func (_LightweightState *LightweightStateCaller) P(opts *bind.CallOpts) (*big.Int, error)

P is a free data retrieval call binding the contract method 0x8b8fbd92.

Solidity: function P() view returns(uint256)

func (*LightweightStateCaller) ProxiableUUID added in v0.3.0

func (_LightweightState *LightweightStateCaller) 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)

func (*LightweightStateCaller) Signer added in v0.3.0

func (_LightweightState *LightweightStateCaller) Signer(opts *bind.CallOpts) (common.Address, error)

Signer is a free data retrieval call binding the contract method 0x238ac933.

Solidity: function signer() view returns(address)

func (*LightweightStateCaller) SourceChainName added in v0.3.0

func (_LightweightState *LightweightStateCaller) SourceChainName(opts *bind.CallOpts) (string, error)

SourceChainName is a free data retrieval call binding the contract method 0xe4ffd04a.

Solidity: function sourceChainName() view returns(string)

func (*LightweightStateCaller) SourceStateContract added in v0.3.0

func (_LightweightState *LightweightStateCaller) SourceStateContract(opts *bind.CallOpts) (common.Address, error)

SourceStateContract is a free data retrieval call binding the contract method 0xfc228319.

Solidity: function sourceStateContract() view returns(address)

func (*LightweightStateCaller) VerifyStatesMerkleData added in v0.3.0

func (_LightweightState *LightweightStateCaller) VerifyStatesMerkleData(opts *bind.CallOpts, statesMerkleData_ ILightweightStateStatesMerkleData) (bool, [32]byte, error)

VerifyStatesMerkleData is a free data retrieval call binding the contract method 0xb0d46f2c.

Solidity: function verifyStatesMerkleData((uint256,uint256,uint256,bytes32[]) statesMerkleData_) view returns(bool, bytes32)

type LightweightStateCallerRaw added in v0.3.0

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

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

func (*LightweightStateCallerRaw) Call added in v0.3.0

func (_LightweightState *LightweightStateCallerRaw) 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 LightweightStateCallerSession added in v0.3.0

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

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

func (*LightweightStateCallerSession) ChainName added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) ChainName() (string, error)

ChainName is a free data retrieval call binding the contract method 0x1c93b03a.

Solidity: function chainName() view returns(string)

func (*LightweightStateCallerSession) GeGISTRootData added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) GeGISTRootData(root_ *big.Int) (ILightweightStateGistRootData, error)

GeGISTRootData is a free data retrieval call binding the contract method 0x0dd93b5d.

Solidity: function geGISTRootData(uint256 root_) view returns((uint256,uint256))

func (*LightweightStateCallerSession) GetCurrentGISTRootInfo added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) GetCurrentGISTRootInfo() (ILightweightStateGistRootData, error)

GetCurrentGISTRootInfo is a free data retrieval call binding the contract method 0xaf7a3f59.

Solidity: function getCurrentGISTRootInfo() view returns((uint256,uint256))

func (*LightweightStateCallerSession) GetGISTRoot added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) GetGISTRoot() (*big.Int, error)

GetGISTRoot is a free data retrieval call binding the contract method 0x2439e3a6.

Solidity: function getGISTRoot() view returns(uint256)

func (*LightweightStateCallerSession) GetIdentitiesStatesRootData added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) GetIdentitiesStatesRootData(root_ [32]byte) (ILightweightStateIdentitiesStatesRootData, error)

GetIdentitiesStatesRootData is a free data retrieval call binding the contract method 0xa055a692.

Solidity: function getIdentitiesStatesRootData(bytes32 root_) view returns((bytes32,uint256))

func (*LightweightStateCallerSession) GetSigComponents added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) GetSigComponents(methodId_ uint8, contractAddress_ common.Address) (struct {
	ChainName string
	Nonce     *big.Int
}, error)

GetSigComponents is a free data retrieval call binding the contract method 0x827e099e.

Solidity: function getSigComponents(uint8 methodId_, address contractAddress_) view returns(string chainName_, uint256 nonce_)

func (*LightweightStateCallerSession) IdentitiesStatesRoot added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) IdentitiesStatesRoot() ([32]byte, error)

IdentitiesStatesRoot is a free data retrieval call binding the contract method 0xe08e70bb.

Solidity: function identitiesStatesRoot() view returns(bytes32)

func (*LightweightStateCallerSession) IsIdentitiesStatesRootExists added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) IsIdentitiesStatesRootExists(root_ [32]byte) (bool, error)

IsIdentitiesStatesRootExists is a free data retrieval call binding the contract method 0xbfd73455.

Solidity: function isIdentitiesStatesRootExists(bytes32 root_) view returns(bool)

func (*LightweightStateCallerSession) Nonces added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) Nonces(arg0 common.Address, arg1 uint8) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0xed3218a2.

Solidity: function nonces(address , uint8 ) view returns(uint256)

func (*LightweightStateCallerSession) P added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) P() (*big.Int, error)

P is a free data retrieval call binding the contract method 0x8b8fbd92.

Solidity: function P() view returns(uint256)

func (*LightweightStateCallerSession) ProxiableUUID added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*LightweightStateCallerSession) Signer added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) Signer() (common.Address, error)

Signer is a free data retrieval call binding the contract method 0x238ac933.

Solidity: function signer() view returns(address)

func (*LightweightStateCallerSession) SourceChainName added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) SourceChainName() (string, error)

SourceChainName is a free data retrieval call binding the contract method 0xe4ffd04a.

Solidity: function sourceChainName() view returns(string)

func (*LightweightStateCallerSession) SourceStateContract added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) SourceStateContract() (common.Address, error)

SourceStateContract is a free data retrieval call binding the contract method 0xfc228319.

Solidity: function sourceStateContract() view returns(address)

func (*LightweightStateCallerSession) VerifyStatesMerkleData added in v0.3.0

func (_LightweightState *LightweightStateCallerSession) VerifyStatesMerkleData(statesMerkleData_ ILightweightStateStatesMerkleData) (bool, [32]byte, error)

VerifyStatesMerkleData is a free data retrieval call binding the contract method 0xb0d46f2c.

Solidity: function verifyStatesMerkleData((uint256,uint256,uint256,bytes32[]) statesMerkleData_) view returns(bool, bytes32)

type LightweightStateFilterer added in v0.3.0

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

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

func NewLightweightStateFilterer added in v0.3.0

func NewLightweightStateFilterer(address common.Address, filterer bind.ContractFilterer) (*LightweightStateFilterer, error)

NewLightweightStateFilterer creates a new log filterer instance of LightweightState, bound to a specific deployed contract.

func (*LightweightStateFilterer) FilterAdminChanged added in v0.3.0

func (_LightweightState *LightweightStateFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*LightweightStateAdminChangedIterator, error)

FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*LightweightStateFilterer) FilterBeaconUpgraded added in v0.3.0

func (_LightweightState *LightweightStateFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*LightweightStateBeaconUpgradedIterator, error)

FilterBeaconUpgraded is a free log retrieval operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*LightweightStateFilterer) FilterInitialized added in v0.3.0

func (_LightweightState *LightweightStateFilterer) FilterInitialized(opts *bind.FilterOpts) (*LightweightStateInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*LightweightStateFilterer) FilterSignedStateTransited added in v0.3.0

func (_LightweightState *LightweightStateFilterer) FilterSignedStateTransited(opts *bind.FilterOpts) (*LightweightStateSignedStateTransitedIterator, error)

FilterSignedStateTransited is a free log retrieval operation binding the contract event 0x8e8ff16553fbf4a457c08a5e07cc27c8aac14b9a1a8e1f546a6c1b9366304a56.

Solidity: event SignedStateTransited(uint256 newGistRoot, bytes32 newIdentitesStatesRoot)

func (*LightweightStateFilterer) FilterUpgraded added in v0.3.0

func (_LightweightState *LightweightStateFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*LightweightStateUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*LightweightStateFilterer) ParseAdminChanged added in v0.3.0

func (_LightweightState *LightweightStateFilterer) ParseAdminChanged(log types.Log) (*LightweightStateAdminChanged, error)

ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*LightweightStateFilterer) ParseBeaconUpgraded added in v0.3.0

func (_LightweightState *LightweightStateFilterer) ParseBeaconUpgraded(log types.Log) (*LightweightStateBeaconUpgraded, error)

ParseBeaconUpgraded is a log parse operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*LightweightStateFilterer) ParseInitialized added in v0.3.0

func (_LightweightState *LightweightStateFilterer) ParseInitialized(log types.Log) (*LightweightStateInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*LightweightStateFilterer) ParseSignedStateTransited added in v0.3.0

func (_LightweightState *LightweightStateFilterer) ParseSignedStateTransited(log types.Log) (*LightweightStateSignedStateTransited, error)

ParseSignedStateTransited is a log parse operation binding the contract event 0x8e8ff16553fbf4a457c08a5e07cc27c8aac14b9a1a8e1f546a6c1b9366304a56.

Solidity: event SignedStateTransited(uint256 newGistRoot, bytes32 newIdentitesStatesRoot)

func (*LightweightStateFilterer) ParseUpgraded added in v0.3.0

func (_LightweightState *LightweightStateFilterer) ParseUpgraded(log types.Log) (*LightweightStateUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*LightweightStateFilterer) WatchAdminChanged added in v0.3.0

func (_LightweightState *LightweightStateFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *LightweightStateAdminChanged) (event.Subscription, error)

WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*LightweightStateFilterer) WatchBeaconUpgraded added in v0.3.0

func (_LightweightState *LightweightStateFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *LightweightStateBeaconUpgraded, 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 (*LightweightStateFilterer) WatchInitialized added in v0.3.0

func (_LightweightState *LightweightStateFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *LightweightStateInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*LightweightStateFilterer) WatchSignedStateTransited added in v0.3.0

func (_LightweightState *LightweightStateFilterer) WatchSignedStateTransited(opts *bind.WatchOpts, sink chan<- *LightweightStateSignedStateTransited) (event.Subscription, error)

WatchSignedStateTransited is a free log subscription operation binding the contract event 0x8e8ff16553fbf4a457c08a5e07cc27c8aac14b9a1a8e1f546a6c1b9366304a56.

Solidity: event SignedStateTransited(uint256 newGistRoot, bytes32 newIdentitesStatesRoot)

func (*LightweightStateFilterer) WatchUpgraded added in v0.3.0

func (_LightweightState *LightweightStateFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *LightweightStateUpgraded, 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 LightweightStateInitialized added in v0.3.0

type LightweightStateInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

LightweightStateInitialized represents a Initialized event raised by the LightweightState contract.

type LightweightStateInitializedIterator added in v0.3.0

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

LightweightStateInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the LightweightState contract.

func (*LightweightStateInitializedIterator) Close added in v0.3.0

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

func (*LightweightStateInitializedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*LightweightStateInitializedIterator) Next added in v0.3.0

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 LightweightStateRaw added in v0.3.0

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

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

func (*LightweightStateRaw) Call added in v0.3.0

func (_LightweightState *LightweightStateRaw) 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 (*LightweightStateRaw) Transact added in v0.3.0

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

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

func (*LightweightStateRaw) Transfer added in v0.3.0

func (_LightweightState *LightweightStateRaw) 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 LightweightStateSession added in v0.3.0

type LightweightStateSession struct {
	Contract     *LightweightState // 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
}

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

func (*LightweightStateSession) ChainName added in v0.3.0

func (_LightweightState *LightweightStateSession) ChainName() (string, error)

ChainName is a free data retrieval call binding the contract method 0x1c93b03a.

Solidity: function chainName() view returns(string)

func (*LightweightStateSession) ChangeSigner added in v0.3.0

func (_LightweightState *LightweightStateSession) ChangeSigner(newSignerPubKey_ []byte, signature_ []byte) (*types.Transaction, error)

ChangeSigner is a paid mutator transaction binding the contract method 0x497f6959.

Solidity: function changeSigner(bytes newSignerPubKey_, bytes signature_) returns()

func (*LightweightStateSession) ChangeSourceStateContract added in v0.3.0

func (_LightweightState *LightweightStateSession) ChangeSourceStateContract(newSourceStateContract_ common.Address, signature_ []byte) (*types.Transaction, error)

ChangeSourceStateContract is a paid mutator transaction binding the contract method 0x89aeb0f5.

Solidity: function changeSourceStateContract(address newSourceStateContract_, bytes signature_) returns()

func (*LightweightStateSession) CheckSignatureAndIncrementNonce added in v0.3.0

func (_LightweightState *LightweightStateSession) CheckSignatureAndIncrementNonce(methodId_ uint8, contractAddress_ common.Address, signHash_ [32]byte, signature_ []byte) (*types.Transaction, error)

CheckSignatureAndIncrementNonce is a paid mutator transaction binding the contract method 0xe3754f90.

Solidity: function checkSignatureAndIncrementNonce(uint8 methodId_, address contractAddress_, bytes32 signHash_, bytes signature_) returns()

func (*LightweightStateSession) GeGISTRootData added in v0.3.0

func (_LightweightState *LightweightStateSession) GeGISTRootData(root_ *big.Int) (ILightweightStateGistRootData, error)

GeGISTRootData is a free data retrieval call binding the contract method 0x0dd93b5d.

Solidity: function geGISTRootData(uint256 root_) view returns((uint256,uint256))

func (*LightweightStateSession) GetCurrentGISTRootInfo added in v0.3.0

func (_LightweightState *LightweightStateSession) GetCurrentGISTRootInfo() (ILightweightStateGistRootData, error)

GetCurrentGISTRootInfo is a free data retrieval call binding the contract method 0xaf7a3f59.

Solidity: function getCurrentGISTRootInfo() view returns((uint256,uint256))

func (*LightweightStateSession) GetGISTRoot added in v0.3.0

func (_LightweightState *LightweightStateSession) GetGISTRoot() (*big.Int, error)

GetGISTRoot is a free data retrieval call binding the contract method 0x2439e3a6.

Solidity: function getGISTRoot() view returns(uint256)

func (*LightweightStateSession) GetIdentitiesStatesRootData added in v0.3.0

func (_LightweightState *LightweightStateSession) GetIdentitiesStatesRootData(root_ [32]byte) (ILightweightStateIdentitiesStatesRootData, error)

GetIdentitiesStatesRootData is a free data retrieval call binding the contract method 0xa055a692.

Solidity: function getIdentitiesStatesRootData(bytes32 root_) view returns((bytes32,uint256))

func (*LightweightStateSession) GetSigComponents added in v0.3.0

func (_LightweightState *LightweightStateSession) GetSigComponents(methodId_ uint8, contractAddress_ common.Address) (struct {
	ChainName string
	Nonce     *big.Int
}, error)

GetSigComponents is a free data retrieval call binding the contract method 0x827e099e.

Solidity: function getSigComponents(uint8 methodId_, address contractAddress_) view returns(string chainName_, uint256 nonce_)

func (*LightweightStateSession) IdentitiesStatesRoot added in v0.3.0

func (_LightweightState *LightweightStateSession) IdentitiesStatesRoot() ([32]byte, error)

IdentitiesStatesRoot is a free data retrieval call binding the contract method 0xe08e70bb.

Solidity: function identitiesStatesRoot() view returns(bytes32)

func (*LightweightStateSession) IsIdentitiesStatesRootExists added in v0.3.0

func (_LightweightState *LightweightStateSession) IsIdentitiesStatesRootExists(root_ [32]byte) (bool, error)

IsIdentitiesStatesRootExists is a free data retrieval call binding the contract method 0xbfd73455.

Solidity: function isIdentitiesStatesRootExists(bytes32 root_) view returns(bool)

func (*LightweightStateSession) LightweightStateInit added in v0.3.0

func (_LightweightState *LightweightStateSession) LightweightStateInit(signer_ common.Address, sourceStateContract_ common.Address, sourceChainName_ string, chainName_ string) (*types.Transaction, error)

LightweightStateInit is a paid mutator transaction binding the contract method 0x27e25ecf.

Solidity: function __LightweightState_init(address signer_, address sourceStateContract_, string sourceChainName_, string chainName_) returns()

func (*LightweightStateSession) Nonces added in v0.3.0

func (_LightweightState *LightweightStateSession) Nonces(arg0 common.Address, arg1 uint8) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0xed3218a2.

Solidity: function nonces(address , uint8 ) view returns(uint256)

func (*LightweightStateSession) P added in v0.3.0

func (_LightweightState *LightweightStateSession) P() (*big.Int, error)

P is a free data retrieval call binding the contract method 0x8b8fbd92.

Solidity: function P() view returns(uint256)

func (*LightweightStateSession) ProxiableUUID added in v0.3.0

func (_LightweightState *LightweightStateSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*LightweightStateSession) SignedTransitState added in v0.3.0

func (_LightweightState *LightweightStateSession) SignedTransitState(newIdentitiesStatesRoot_ [32]byte, gistData_ ILightweightStateGistRootData, proof_ []byte) (*types.Transaction, error)

SignedTransitState is a paid mutator transaction binding the contract method 0x189a5073.

Solidity: function signedTransitState(bytes32 newIdentitiesStatesRoot_, (uint256,uint256) gistData_, bytes proof_) returns()

func (*LightweightStateSession) Signer added in v0.3.0

func (_LightweightState *LightweightStateSession) Signer() (common.Address, error)

Signer is a free data retrieval call binding the contract method 0x238ac933.

Solidity: function signer() view returns(address)

func (*LightweightStateSession) SignersInit added in v0.3.0

func (_LightweightState *LightweightStateSession) SignersInit(signer_ common.Address, chainName_ string) (*types.Transaction, error)

SignersInit is a paid mutator transaction binding the contract method 0x509ace95.

Solidity: function __Signers_init(address signer_, string chainName_) returns()

func (*LightweightStateSession) SourceChainName added in v0.3.0

func (_LightweightState *LightweightStateSession) SourceChainName() (string, error)

SourceChainName is a free data retrieval call binding the contract method 0xe4ffd04a.

Solidity: function sourceChainName() view returns(string)

func (*LightweightStateSession) SourceStateContract added in v0.3.0

func (_LightweightState *LightweightStateSession) SourceStateContract() (common.Address, error)

SourceStateContract is a free data retrieval call binding the contract method 0xfc228319.

Solidity: function sourceStateContract() view returns(address)

func (*LightweightStateSession) UpgradeTo added in v0.3.0

func (_LightweightState *LightweightStateSession) 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 (*LightweightStateSession) UpgradeToAndCall added in v0.3.0

func (_LightweightState *LightweightStateSession) 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 (*LightweightStateSession) UpgradeToWithSig added in v0.3.0

func (_LightweightState *LightweightStateSession) UpgradeToWithSig(newImplementation_ common.Address, signature_ []byte) (*types.Transaction, error)

UpgradeToWithSig is a paid mutator transaction binding the contract method 0x52d04661.

Solidity: function upgradeToWithSig(address newImplementation_, bytes signature_) returns()

func (*LightweightStateSession) ValidateChangeAddressSignature added in v0.3.0

func (_LightweightState *LightweightStateSession) ValidateChangeAddressSignature(methodId_ uint8, contractAddress_ common.Address, newAddress_ common.Address, signature_ []byte) (*types.Transaction, error)

ValidateChangeAddressSignature is a paid mutator transaction binding the contract method 0x7d1e764b.

Solidity: function validateChangeAddressSignature(uint8 methodId_, address contractAddress_, address newAddress_, bytes signature_) returns()

func (*LightweightStateSession) VerifyStatesMerkleData added in v0.3.0

func (_LightweightState *LightweightStateSession) VerifyStatesMerkleData(statesMerkleData_ ILightweightStateStatesMerkleData) (bool, [32]byte, error)

VerifyStatesMerkleData is a free data retrieval call binding the contract method 0xb0d46f2c.

Solidity: function verifyStatesMerkleData((uint256,uint256,uint256,bytes32[]) statesMerkleData_) view returns(bool, bytes32)

type LightweightStateSignedStateTransited added in v0.3.0

type LightweightStateSignedStateTransited struct {
	NewGistRoot            *big.Int
	NewIdentitesStatesRoot [32]byte
	Raw                    types.Log // Blockchain specific contextual infos
}

LightweightStateSignedStateTransited represents a SignedStateTransited event raised by the LightweightState contract.

type LightweightStateSignedStateTransitedIterator added in v0.3.0

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

LightweightStateSignedStateTransitedIterator is returned from FilterSignedStateTransited and is used to iterate over the raw logs and unpacked data for SignedStateTransited events raised by the LightweightState contract.

func (*LightweightStateSignedStateTransitedIterator) Close added in v0.3.0

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

func (*LightweightStateSignedStateTransitedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*LightweightStateSignedStateTransitedIterator) Next added in v0.3.0

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 LightweightStateTransactor added in v0.3.0

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

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

func NewLightweightStateTransactor added in v0.3.0

func NewLightweightStateTransactor(address common.Address, transactor bind.ContractTransactor) (*LightweightStateTransactor, error)

NewLightweightStateTransactor creates a new write-only instance of LightweightState, bound to a specific deployed contract.

func (*LightweightStateTransactor) ChangeSigner added in v0.3.0

func (_LightweightState *LightweightStateTransactor) ChangeSigner(opts *bind.TransactOpts, newSignerPubKey_ []byte, signature_ []byte) (*types.Transaction, error)

ChangeSigner is a paid mutator transaction binding the contract method 0x497f6959.

Solidity: function changeSigner(bytes newSignerPubKey_, bytes signature_) returns()

func (*LightweightStateTransactor) ChangeSourceStateContract added in v0.3.0

func (_LightweightState *LightweightStateTransactor) ChangeSourceStateContract(opts *bind.TransactOpts, newSourceStateContract_ common.Address, signature_ []byte) (*types.Transaction, error)

ChangeSourceStateContract is a paid mutator transaction binding the contract method 0x89aeb0f5.

Solidity: function changeSourceStateContract(address newSourceStateContract_, bytes signature_) returns()

func (*LightweightStateTransactor) CheckSignatureAndIncrementNonce added in v0.3.0

func (_LightweightState *LightweightStateTransactor) CheckSignatureAndIncrementNonce(opts *bind.TransactOpts, methodId_ uint8, contractAddress_ common.Address, signHash_ [32]byte, signature_ []byte) (*types.Transaction, error)

CheckSignatureAndIncrementNonce is a paid mutator transaction binding the contract method 0xe3754f90.

Solidity: function checkSignatureAndIncrementNonce(uint8 methodId_, address contractAddress_, bytes32 signHash_, bytes signature_) returns()

func (*LightweightStateTransactor) LightweightStateInit added in v0.3.0

func (_LightweightState *LightweightStateTransactor) LightweightStateInit(opts *bind.TransactOpts, signer_ common.Address, sourceStateContract_ common.Address, sourceChainName_ string, chainName_ string) (*types.Transaction, error)

LightweightStateInit is a paid mutator transaction binding the contract method 0x27e25ecf.

Solidity: function __LightweightState_init(address signer_, address sourceStateContract_, string sourceChainName_, string chainName_) returns()

func (*LightweightStateTransactor) SignedTransitState added in v0.3.0

func (_LightweightState *LightweightStateTransactor) SignedTransitState(opts *bind.TransactOpts, newIdentitiesStatesRoot_ [32]byte, gistData_ ILightweightStateGistRootData, proof_ []byte) (*types.Transaction, error)

SignedTransitState is a paid mutator transaction binding the contract method 0x189a5073.

Solidity: function signedTransitState(bytes32 newIdentitiesStatesRoot_, (uint256,uint256) gistData_, bytes proof_) returns()

func (*LightweightStateTransactor) SignersInit added in v0.3.0

func (_LightweightState *LightweightStateTransactor) SignersInit(opts *bind.TransactOpts, signer_ common.Address, chainName_ string) (*types.Transaction, error)

SignersInit is a paid mutator transaction binding the contract method 0x509ace95.

Solidity: function __Signers_init(address signer_, string chainName_) returns()

func (*LightweightStateTransactor) UpgradeTo added in v0.3.0

func (_LightweightState *LightweightStateTransactor) 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 (*LightweightStateTransactor) UpgradeToAndCall added in v0.3.0

func (_LightweightState *LightweightStateTransactor) 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 (*LightweightStateTransactor) UpgradeToWithSig added in v0.3.0

func (_LightweightState *LightweightStateTransactor) UpgradeToWithSig(opts *bind.TransactOpts, newImplementation_ common.Address, signature_ []byte) (*types.Transaction, error)

UpgradeToWithSig is a paid mutator transaction binding the contract method 0x52d04661.

Solidity: function upgradeToWithSig(address newImplementation_, bytes signature_) returns()

func (*LightweightStateTransactor) ValidateChangeAddressSignature added in v0.3.0

func (_LightweightState *LightweightStateTransactor) ValidateChangeAddressSignature(opts *bind.TransactOpts, methodId_ uint8, contractAddress_ common.Address, newAddress_ common.Address, signature_ []byte) (*types.Transaction, error)

ValidateChangeAddressSignature is a paid mutator transaction binding the contract method 0x7d1e764b.

Solidity: function validateChangeAddressSignature(uint8 methodId_, address contractAddress_, address newAddress_, bytes signature_) returns()

type LightweightStateTransactorRaw added in v0.3.0

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

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

func (*LightweightStateTransactorRaw) Transact added in v0.3.0

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

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

func (*LightweightStateTransactorRaw) Transfer added in v0.3.0

func (_LightweightState *LightweightStateTransactorRaw) 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 LightweightStateTransactorSession added in v0.3.0

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

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

func (*LightweightStateTransactorSession) ChangeSigner added in v0.3.0

func (_LightweightState *LightweightStateTransactorSession) ChangeSigner(newSignerPubKey_ []byte, signature_ []byte) (*types.Transaction, error)

ChangeSigner is a paid mutator transaction binding the contract method 0x497f6959.

Solidity: function changeSigner(bytes newSignerPubKey_, bytes signature_) returns()

func (*LightweightStateTransactorSession) ChangeSourceStateContract added in v0.3.0

func (_LightweightState *LightweightStateTransactorSession) ChangeSourceStateContract(newSourceStateContract_ common.Address, signature_ []byte) (*types.Transaction, error)

ChangeSourceStateContract is a paid mutator transaction binding the contract method 0x89aeb0f5.

Solidity: function changeSourceStateContract(address newSourceStateContract_, bytes signature_) returns()

func (*LightweightStateTransactorSession) CheckSignatureAndIncrementNonce added in v0.3.0

func (_LightweightState *LightweightStateTransactorSession) CheckSignatureAndIncrementNonce(methodId_ uint8, contractAddress_ common.Address, signHash_ [32]byte, signature_ []byte) (*types.Transaction, error)

CheckSignatureAndIncrementNonce is a paid mutator transaction binding the contract method 0xe3754f90.

Solidity: function checkSignatureAndIncrementNonce(uint8 methodId_, address contractAddress_, bytes32 signHash_, bytes signature_) returns()

func (*LightweightStateTransactorSession) LightweightStateInit added in v0.3.0

func (_LightweightState *LightweightStateTransactorSession) LightweightStateInit(signer_ common.Address, sourceStateContract_ common.Address, sourceChainName_ string, chainName_ string) (*types.Transaction, error)

LightweightStateInit is a paid mutator transaction binding the contract method 0x27e25ecf.

Solidity: function __LightweightState_init(address signer_, address sourceStateContract_, string sourceChainName_, string chainName_) returns()

func (*LightweightStateTransactorSession) SignedTransitState added in v0.3.0

func (_LightweightState *LightweightStateTransactorSession) SignedTransitState(newIdentitiesStatesRoot_ [32]byte, gistData_ ILightweightStateGistRootData, proof_ []byte) (*types.Transaction, error)

SignedTransitState is a paid mutator transaction binding the contract method 0x189a5073.

Solidity: function signedTransitState(bytes32 newIdentitiesStatesRoot_, (uint256,uint256) gistData_, bytes proof_) returns()

func (*LightweightStateTransactorSession) SignersInit added in v0.3.0

func (_LightweightState *LightweightStateTransactorSession) SignersInit(signer_ common.Address, chainName_ string) (*types.Transaction, error)

SignersInit is a paid mutator transaction binding the contract method 0x509ace95.

Solidity: function __Signers_init(address signer_, string chainName_) returns()

func (*LightweightStateTransactorSession) UpgradeTo added in v0.3.0

func (_LightweightState *LightweightStateTransactorSession) 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 (*LightweightStateTransactorSession) UpgradeToAndCall added in v0.3.0

func (_LightweightState *LightweightStateTransactorSession) 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 (*LightweightStateTransactorSession) UpgradeToWithSig added in v0.3.0

func (_LightweightState *LightweightStateTransactorSession) UpgradeToWithSig(newImplementation_ common.Address, signature_ []byte) (*types.Transaction, error)

UpgradeToWithSig is a paid mutator transaction binding the contract method 0x52d04661.

Solidity: function upgradeToWithSig(address newImplementation_, bytes signature_) returns()

func (*LightweightStateTransactorSession) ValidateChangeAddressSignature added in v0.3.0

func (_LightweightState *LightweightStateTransactorSession) ValidateChangeAddressSignature(methodId_ uint8, contractAddress_ common.Address, newAddress_ common.Address, signature_ []byte) (*types.Transaction, error)

ValidateChangeAddressSignature is a paid mutator transaction binding the contract method 0x7d1e764b.

Solidity: function validateChangeAddressSignature(uint8 methodId_, address contractAddress_, address newAddress_, bytes signature_) returns()

type LightweightStateUpgraded added in v0.3.0

type LightweightStateUpgraded struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

LightweightStateUpgraded represents a Upgraded event raised by the LightweightState contract.

type LightweightStateUpgradedIterator added in v0.3.0

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

LightweightStateUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the LightweightState contract.

func (*LightweightStateUpgradedIterator) Close added in v0.3.0

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

func (*LightweightStateUpgradedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*LightweightStateUpgradedIterator) Next added in v0.3.0

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 ProposalsState added in v0.4.0

type ProposalsState struct {
	ProposalsStateCaller     // Read-only binding to the contract
	ProposalsStateTransactor // Write-only binding to the contract
	ProposalsStateFilterer   // Log filterer for contract events
}

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

func NewProposalsState added in v0.4.0

func NewProposalsState(address common.Address, backend bind.ContractBackend) (*ProposalsState, error)

NewProposalsState creates a new instance of ProposalsState, bound to a specific deployed contract.

type ProposalsStateAdminChanged added in v0.4.0

type ProposalsStateAdminChanged struct {
	PreviousAdmin common.Address
	NewAdmin      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

ProposalsStateAdminChanged represents a AdminChanged event raised by the ProposalsState contract.

type ProposalsStateAdminChangedIterator added in v0.4.0

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

ProposalsStateAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the ProposalsState contract.

func (*ProposalsStateAdminChangedIterator) Close added in v0.4.0

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

func (*ProposalsStateAdminChangedIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateAdminChangedIterator) Next added in v0.4.0

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 ProposalsStateBeaconUpgraded added in v0.4.0

type ProposalsStateBeaconUpgraded struct {
	Beacon common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

ProposalsStateBeaconUpgraded represents a BeaconUpgraded event raised by the ProposalsState contract.

type ProposalsStateBeaconUpgradedIterator added in v0.4.0

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

ProposalsStateBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the ProposalsState contract.

func (*ProposalsStateBeaconUpgradedIterator) Close added in v0.4.0

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

func (*ProposalsStateBeaconUpgradedIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateBeaconUpgradedIterator) Next added in v0.4.0

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 ProposalsStateCaller added in v0.4.0

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

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

func NewProposalsStateCaller added in v0.4.0

func NewProposalsStateCaller(address common.Address, caller bind.ContractCaller) (*ProposalsStateCaller, error)

NewProposalsStateCaller creates a new read-only instance of ProposalsState, bound to a specific deployed contract.

func (*ProposalsStateCaller) CONTRACTMANAGERROLE added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) CONTRACTMANAGERROLE(opts *bind.CallOpts) ([32]byte, error)

CONTRACTMANAGERROLE is a free data retrieval call binding the contract method 0x9d28b506.

Solidity: function CONTRACT_MANAGER_ROLE() view returns(bytes32)

func (*ProposalsStateCaller) DEFAULTADMINROLE added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ProposalsStateCaller) FUNDSMANAGERROLE added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) FUNDSMANAGERROLE(opts *bind.CallOpts) ([32]byte, error)

FUNDSMANAGERROLE is a free data retrieval call binding the contract method 0xc4707a83.

Solidity: function FUNDS_MANAGER_ROLE() view returns(bytes32)

func (*ProposalsStateCaller) GetProposalConfig added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) GetProposalConfig(opts *bind.CallOpts, proposalId_ *big.Int) (ProposalsStateProposalConfig, error)

GetProposalConfig is a free data retrieval call binding the contract method 0x7d5d687f.

Solidity: function getProposalConfig(uint256 proposalId_) view returns((uint64,uint64,uint256,uint256[],string,address[],bytes[]))

func (*ProposalsStateCaller) GetProposalEventId added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) GetProposalEventId(opts *bind.CallOpts, proposalId_ *big.Int) (*big.Int, error)

GetProposalEventId is a free data retrieval call binding the contract method 0x31e181c5.

Solidity: function getProposalEventId(uint256 proposalId_) view returns(uint256)

func (*ProposalsStateCaller) GetProposalInfo added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) GetProposalInfo(opts *bind.CallOpts, proposalId_ *big.Int) (ProposalsStateProposalInfo, error)

GetProposalInfo is a free data retrieval call binding the contract method 0xbc903cb8.

Solidity: function getProposalInfo(uint256 proposalId_) view returns((address,uint8,(uint64,uint64,uint256,uint256[],string,address[],bytes[]),uint256[8][]) info_)

func (*ProposalsStateCaller) GetProposalStatus added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) GetProposalStatus(opts *bind.CallOpts, proposalId_ *big.Int) (uint8, error)

GetProposalStatus is a free data retrieval call binding the contract method 0x401853b7.

Solidity: function getProposalStatus(uint256 proposalId_) view returns(uint8)

func (*ProposalsStateCaller) GetRoleAdmin added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*ProposalsStateCaller) GetVotingByKey added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) GetVotingByKey(opts *bind.CallOpts, key_ string) (common.Address, error)

GetVotingByKey is a free data retrieval call binding the contract method 0xd8720106.

Solidity: function getVotingByKey(string key_) view returns(address)

func (*ProposalsStateCaller) GetVotings added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) GetVotings(opts *bind.CallOpts) (struct {
	Keys   []string
	Values []common.Address
}, error)

GetVotings is a free data retrieval call binding the contract method 0x05c1112d.

Solidity: function getVotings() view returns(string[] keys_, address[] values_)

func (*ProposalsStateCaller) HasRole added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*ProposalsStateCaller) Implementation added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) Implementation(opts *bind.CallOpts) (common.Address, error)

Implementation is a free data retrieval call binding the contract method 0x5c60da1b.

Solidity: function implementation() view returns(address)

func (*ProposalsStateCaller) IsVoting added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) IsVoting(opts *bind.CallOpts, voting_ common.Address) (bool, error)

IsVoting is a free data retrieval call binding the contract method 0x5f8dd649.

Solidity: function isVoting(address voting_) view returns(bool)

func (*ProposalsStateCaller) LastProposalId added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) LastProposalId(opts *bind.CallOpts) (*big.Int, error)

LastProposalId is a free data retrieval call binding the contract method 0x74cb3041.

Solidity: function lastProposalId() view returns(uint256)

func (*ProposalsStateCaller) MAXIMUMCHOICESPEROPTION added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) MAXIMUMCHOICESPEROPTION(opts *bind.CallOpts) (*big.Int, error)

MAXIMUMCHOICESPEROPTION is a free data retrieval call binding the contract method 0x299a9b54.

Solidity: function MAXIMUM_CHOICES_PER_OPTION() view returns(uint256)

func (*ProposalsStateCaller) MAXIMUMOPTIONS added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) MAXIMUMOPTIONS(opts *bind.CallOpts) (*big.Int, error)

MAXIMUMOPTIONS is a free data retrieval call binding the contract method 0x881e3447.

Solidity: function MAXIMUM_OPTIONS() view returns(uint256)

func (*ProposalsStateCaller) MinFundingAmount added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) MinFundingAmount(opts *bind.CallOpts) (*big.Int, error)

MinFundingAmount is a free data retrieval call binding the contract method 0xc791316e.

Solidity: function minFundingAmount() view returns(uint256)

func (*ProposalsStateCaller) Owner added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*ProposalsStateCaller) PROPOSALMANAGERROLE added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) PROPOSALMANAGERROLE(opts *bind.CallOpts) ([32]byte, error)

PROPOSALMANAGERROLE is a free data retrieval call binding the contract method 0x4de29d48.

Solidity: function PROPOSAL_MANAGER_ROLE() view returns(bytes32)

func (*ProposalsStateCaller) ProposalSMTImpl added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) ProposalSMTImpl(opts *bind.CallOpts) (common.Address, error)

ProposalSMTImpl is a free data retrieval call binding the contract method 0x59917f46.

Solidity: function proposalSMTImpl() view returns(address)

func (*ProposalsStateCaller) ProxiableUUID added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) 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)

func (*ProposalsStateCaller) SupportsInterface added in v0.4.0

func (_ProposalsState *ProposalsStateCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type ProposalsStateCallerRaw added in v0.4.0

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

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

func (*ProposalsStateCallerRaw) Call added in v0.4.0

func (_ProposalsState *ProposalsStateCallerRaw) 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 ProposalsStateCallerSession added in v0.4.0

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

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

func (*ProposalsStateCallerSession) CONTRACTMANAGERROLE added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) CONTRACTMANAGERROLE() ([32]byte, error)

CONTRACTMANAGERROLE is a free data retrieval call binding the contract method 0x9d28b506.

Solidity: function CONTRACT_MANAGER_ROLE() view returns(bytes32)

func (*ProposalsStateCallerSession) DEFAULTADMINROLE added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ProposalsStateCallerSession) FUNDSMANAGERROLE added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) FUNDSMANAGERROLE() ([32]byte, error)

FUNDSMANAGERROLE is a free data retrieval call binding the contract method 0xc4707a83.

Solidity: function FUNDS_MANAGER_ROLE() view returns(bytes32)

func (*ProposalsStateCallerSession) GetProposalConfig added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) GetProposalConfig(proposalId_ *big.Int) (ProposalsStateProposalConfig, error)

GetProposalConfig is a free data retrieval call binding the contract method 0x7d5d687f.

Solidity: function getProposalConfig(uint256 proposalId_) view returns((uint64,uint64,uint256,uint256[],string,address[],bytes[]))

func (*ProposalsStateCallerSession) GetProposalEventId added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) GetProposalEventId(proposalId_ *big.Int) (*big.Int, error)

GetProposalEventId is a free data retrieval call binding the contract method 0x31e181c5.

Solidity: function getProposalEventId(uint256 proposalId_) view returns(uint256)

func (*ProposalsStateCallerSession) GetProposalInfo added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) GetProposalInfo(proposalId_ *big.Int) (ProposalsStateProposalInfo, error)

GetProposalInfo is a free data retrieval call binding the contract method 0xbc903cb8.

Solidity: function getProposalInfo(uint256 proposalId_) view returns((address,uint8,(uint64,uint64,uint256,uint256[],string,address[],bytes[]),uint256[8][]) info_)

func (*ProposalsStateCallerSession) GetProposalStatus added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) GetProposalStatus(proposalId_ *big.Int) (uint8, error)

GetProposalStatus is a free data retrieval call binding the contract method 0x401853b7.

Solidity: function getProposalStatus(uint256 proposalId_) view returns(uint8)

func (*ProposalsStateCallerSession) GetRoleAdmin added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*ProposalsStateCallerSession) GetVotingByKey added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) GetVotingByKey(key_ string) (common.Address, error)

GetVotingByKey is a free data retrieval call binding the contract method 0xd8720106.

Solidity: function getVotingByKey(string key_) view returns(address)

func (*ProposalsStateCallerSession) GetVotings added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) GetVotings() (struct {
	Keys   []string
	Values []common.Address
}, error)

GetVotings is a free data retrieval call binding the contract method 0x05c1112d.

Solidity: function getVotings() view returns(string[] keys_, address[] values_)

func (*ProposalsStateCallerSession) HasRole added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*ProposalsStateCallerSession) Implementation added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) Implementation() (common.Address, error)

Implementation is a free data retrieval call binding the contract method 0x5c60da1b.

Solidity: function implementation() view returns(address)

func (*ProposalsStateCallerSession) IsVoting added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) IsVoting(voting_ common.Address) (bool, error)

IsVoting is a free data retrieval call binding the contract method 0x5f8dd649.

Solidity: function isVoting(address voting_) view returns(bool)

func (*ProposalsStateCallerSession) LastProposalId added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) LastProposalId() (*big.Int, error)

LastProposalId is a free data retrieval call binding the contract method 0x74cb3041.

Solidity: function lastProposalId() view returns(uint256)

func (*ProposalsStateCallerSession) MAXIMUMCHOICESPEROPTION added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) MAXIMUMCHOICESPEROPTION() (*big.Int, error)

MAXIMUMCHOICESPEROPTION is a free data retrieval call binding the contract method 0x299a9b54.

Solidity: function MAXIMUM_CHOICES_PER_OPTION() view returns(uint256)

func (*ProposalsStateCallerSession) MAXIMUMOPTIONS added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) MAXIMUMOPTIONS() (*big.Int, error)

MAXIMUMOPTIONS is a free data retrieval call binding the contract method 0x881e3447.

Solidity: function MAXIMUM_OPTIONS() view returns(uint256)

func (*ProposalsStateCallerSession) MinFundingAmount added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) MinFundingAmount() (*big.Int, error)

MinFundingAmount is a free data retrieval call binding the contract method 0xc791316e.

Solidity: function minFundingAmount() view returns(uint256)

func (*ProposalsStateCallerSession) Owner added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*ProposalsStateCallerSession) PROPOSALMANAGERROLE added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) PROPOSALMANAGERROLE() ([32]byte, error)

PROPOSALMANAGERROLE is a free data retrieval call binding the contract method 0x4de29d48.

Solidity: function PROPOSAL_MANAGER_ROLE() view returns(bytes32)

func (*ProposalsStateCallerSession) ProposalSMTImpl added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) ProposalSMTImpl() (common.Address, error)

ProposalSMTImpl is a free data retrieval call binding the contract method 0x59917f46.

Solidity: function proposalSMTImpl() view returns(address)

func (*ProposalsStateCallerSession) ProxiableUUID added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*ProposalsStateCallerSession) SupportsInterface added in v0.4.0

func (_ProposalsState *ProposalsStateCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type ProposalsStateFilterer added in v0.4.0

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

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

func NewProposalsStateFilterer added in v0.4.0

func NewProposalsStateFilterer(address common.Address, filterer bind.ContractFilterer) (*ProposalsStateFilterer, error)

NewProposalsStateFilterer creates a new log filterer instance of ProposalsState, bound to a specific deployed contract.

func (*ProposalsStateFilterer) FilterAdminChanged added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*ProposalsStateAdminChangedIterator, error)

FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*ProposalsStateFilterer) FilterBeaconUpgraded added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*ProposalsStateBeaconUpgradedIterator, error)

FilterBeaconUpgraded is a free log retrieval operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*ProposalsStateFilterer) FilterInitialized added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterInitialized(opts *bind.FilterOpts) (*ProposalsStateInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*ProposalsStateFilterer) FilterMinFundingAmountSet added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterMinFundingAmountSet(opts *bind.FilterOpts) (*ProposalsStateMinFundingAmountSetIterator, error)

FilterMinFundingAmountSet is a free log retrieval operation binding the contract event 0x23fcdcee561820df2d41d947af486e62c6f5d9ce8542c30f8e849ab2d9ccedd3.

Solidity: event MinFundingAmountSet(uint256 amount)

func (*ProposalsStateFilterer) FilterOwnershipTransferred added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ProposalsStateOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ProposalsStateFilterer) FilterProposalConfigChanged added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterProposalConfigChanged(opts *bind.FilterOpts, proposalId []*big.Int) (*ProposalsStateProposalConfigChangedIterator, error)

FilterProposalConfigChanged is a free log retrieval operation binding the contract event 0xa9cc646240fc6ba1b4b124e96765839b67cd0e2e698942d5d5948a36c7b998d5.

Solidity: event ProposalConfigChanged(uint256 indexed proposalId)

func (*ProposalsStateFilterer) FilterProposalCreated added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterProposalCreated(opts *bind.FilterOpts, proposalId []*big.Int) (*ProposalsStateProposalCreatedIterator, error)

FilterProposalCreated is a free log retrieval operation binding the contract event 0x3417b456fad6209c73445d5efd446d686e75e4560f0f50c13b5a5cde976447b4.

Solidity: event ProposalCreated(uint256 indexed proposalId, address proposalSMT, uint256 fundAmount)

func (*ProposalsStateFilterer) FilterProposalFunded added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterProposalFunded(opts *bind.FilterOpts, proposalId []*big.Int) (*ProposalsStateProposalFundedIterator, error)

FilterProposalFunded is a free log retrieval operation binding the contract event 0xe626ac29dddf069f3357c054c144b90e4e79f25ee6c1020f9142bae435477e6c.

Solidity: event ProposalFunded(uint256 indexed proposalId, uint256 fundAmount)

func (*ProposalsStateFilterer) FilterProposalHidden added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterProposalHidden(opts *bind.FilterOpts, proposalId []*big.Int) (*ProposalsStateProposalHiddenIterator, error)

FilterProposalHidden is a free log retrieval operation binding the contract event 0x19f289534dc0123bc632723043c2eaf220105017950314fd948774c69282dc93.

Solidity: event ProposalHidden(uint256 indexed proposalId, bool hide)

func (*ProposalsStateFilterer) FilterRoleAdminChanged added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*ProposalsStateRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ProposalsStateFilterer) FilterRoleGranted added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ProposalsStateRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*ProposalsStateFilterer) FilterRoleRevoked added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ProposalsStateRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*ProposalsStateFilterer) FilterUpgraded added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*ProposalsStateUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*ProposalsStateFilterer) FilterVoteCast added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) FilterVoteCast(opts *bind.FilterOpts, proposalId []*big.Int, userNullifier []*big.Int) (*ProposalsStateVoteCastIterator, error)

FilterVoteCast is a free log retrieval operation binding the contract event 0x82e882ecc8f666d65e8120d1fb3859261652f808e5001ae2f169e5ea1bf5035c.

Solidity: event VoteCast(uint256 indexed proposalId, uint256 indexed userNullifier, uint256[] vote)

func (*ProposalsStateFilterer) ParseAdminChanged added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseAdminChanged(log types.Log) (*ProposalsStateAdminChanged, error)

ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*ProposalsStateFilterer) ParseBeaconUpgraded added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseBeaconUpgraded(log types.Log) (*ProposalsStateBeaconUpgraded, error)

ParseBeaconUpgraded is a log parse operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*ProposalsStateFilterer) ParseInitialized added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseInitialized(log types.Log) (*ProposalsStateInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*ProposalsStateFilterer) ParseMinFundingAmountSet added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseMinFundingAmountSet(log types.Log) (*ProposalsStateMinFundingAmountSet, error)

ParseMinFundingAmountSet is a log parse operation binding the contract event 0x23fcdcee561820df2d41d947af486e62c6f5d9ce8542c30f8e849ab2d9ccedd3.

Solidity: event MinFundingAmountSet(uint256 amount)

func (*ProposalsStateFilterer) ParseOwnershipTransferred added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseOwnershipTransferred(log types.Log) (*ProposalsStateOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ProposalsStateFilterer) ParseProposalConfigChanged added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseProposalConfigChanged(log types.Log) (*ProposalsStateProposalConfigChanged, error)

ParseProposalConfigChanged is a log parse operation binding the contract event 0xa9cc646240fc6ba1b4b124e96765839b67cd0e2e698942d5d5948a36c7b998d5.

Solidity: event ProposalConfigChanged(uint256 indexed proposalId)

func (*ProposalsStateFilterer) ParseProposalCreated added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseProposalCreated(log types.Log) (*ProposalsStateProposalCreated, error)

ParseProposalCreated is a log parse operation binding the contract event 0x3417b456fad6209c73445d5efd446d686e75e4560f0f50c13b5a5cde976447b4.

Solidity: event ProposalCreated(uint256 indexed proposalId, address proposalSMT, uint256 fundAmount)

func (*ProposalsStateFilterer) ParseProposalFunded added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseProposalFunded(log types.Log) (*ProposalsStateProposalFunded, error)

ParseProposalFunded is a log parse operation binding the contract event 0xe626ac29dddf069f3357c054c144b90e4e79f25ee6c1020f9142bae435477e6c.

Solidity: event ProposalFunded(uint256 indexed proposalId, uint256 fundAmount)

func (*ProposalsStateFilterer) ParseProposalHidden added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseProposalHidden(log types.Log) (*ProposalsStateProposalHidden, error)

ParseProposalHidden is a log parse operation binding the contract event 0x19f289534dc0123bc632723043c2eaf220105017950314fd948774c69282dc93.

Solidity: event ProposalHidden(uint256 indexed proposalId, bool hide)

func (*ProposalsStateFilterer) ParseRoleAdminChanged added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseRoleAdminChanged(log types.Log) (*ProposalsStateRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ProposalsStateFilterer) ParseRoleGranted added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseRoleGranted(log types.Log) (*ProposalsStateRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*ProposalsStateFilterer) ParseRoleRevoked added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseRoleRevoked(log types.Log) (*ProposalsStateRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*ProposalsStateFilterer) ParseUpgraded added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseUpgraded(log types.Log) (*ProposalsStateUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*ProposalsStateFilterer) ParseVoteCast added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) ParseVoteCast(log types.Log) (*ProposalsStateVoteCast, error)

ParseVoteCast is a log parse operation binding the contract event 0x82e882ecc8f666d65e8120d1fb3859261652f808e5001ae2f169e5ea1bf5035c.

Solidity: event VoteCast(uint256 indexed proposalId, uint256 indexed userNullifier, uint256[] vote)

func (*ProposalsStateFilterer) WatchAdminChanged added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *ProposalsStateAdminChanged) (event.Subscription, error)

WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*ProposalsStateFilterer) WatchBeaconUpgraded added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *ProposalsStateBeaconUpgraded, 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 (*ProposalsStateFilterer) WatchInitialized added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ProposalsStateInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*ProposalsStateFilterer) WatchMinFundingAmountSet added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchMinFundingAmountSet(opts *bind.WatchOpts, sink chan<- *ProposalsStateMinFundingAmountSet) (event.Subscription, error)

WatchMinFundingAmountSet is a free log subscription operation binding the contract event 0x23fcdcee561820df2d41d947af486e62c6f5d9ce8542c30f8e849ab2d9ccedd3.

Solidity: event MinFundingAmountSet(uint256 amount)

func (*ProposalsStateFilterer) WatchOwnershipTransferred added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ProposalsStateOwnershipTransferred, 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 (*ProposalsStateFilterer) WatchProposalConfigChanged added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchProposalConfigChanged(opts *bind.WatchOpts, sink chan<- *ProposalsStateProposalConfigChanged, proposalId []*big.Int) (event.Subscription, error)

WatchProposalConfigChanged is a free log subscription operation binding the contract event 0xa9cc646240fc6ba1b4b124e96765839b67cd0e2e698942d5d5948a36c7b998d5.

Solidity: event ProposalConfigChanged(uint256 indexed proposalId)

func (*ProposalsStateFilterer) WatchProposalCreated added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchProposalCreated(opts *bind.WatchOpts, sink chan<- *ProposalsStateProposalCreated, proposalId []*big.Int) (event.Subscription, error)

WatchProposalCreated is a free log subscription operation binding the contract event 0x3417b456fad6209c73445d5efd446d686e75e4560f0f50c13b5a5cde976447b4.

Solidity: event ProposalCreated(uint256 indexed proposalId, address proposalSMT, uint256 fundAmount)

func (*ProposalsStateFilterer) WatchProposalFunded added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchProposalFunded(opts *bind.WatchOpts, sink chan<- *ProposalsStateProposalFunded, proposalId []*big.Int) (event.Subscription, error)

WatchProposalFunded is a free log subscription operation binding the contract event 0xe626ac29dddf069f3357c054c144b90e4e79f25ee6c1020f9142bae435477e6c.

Solidity: event ProposalFunded(uint256 indexed proposalId, uint256 fundAmount)

func (*ProposalsStateFilterer) WatchProposalHidden added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchProposalHidden(opts *bind.WatchOpts, sink chan<- *ProposalsStateProposalHidden, proposalId []*big.Int) (event.Subscription, error)

WatchProposalHidden is a free log subscription operation binding the contract event 0x19f289534dc0123bc632723043c2eaf220105017950314fd948774c69282dc93.

Solidity: event ProposalHidden(uint256 indexed proposalId, bool hide)

func (*ProposalsStateFilterer) WatchRoleAdminChanged added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *ProposalsStateRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ProposalsStateFilterer) WatchRoleGranted added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *ProposalsStateRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*ProposalsStateFilterer) WatchRoleRevoked added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *ProposalsStateRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*ProposalsStateFilterer) WatchUpgraded added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *ProposalsStateUpgraded, implementation []common.Address) (event.Subscription, error)

WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*ProposalsStateFilterer) WatchVoteCast added in v0.4.0

func (_ProposalsState *ProposalsStateFilterer) WatchVoteCast(opts *bind.WatchOpts, sink chan<- *ProposalsStateVoteCast, proposalId []*big.Int, userNullifier []*big.Int) (event.Subscription, error)

WatchVoteCast is a free log subscription operation binding the contract event 0x82e882ecc8f666d65e8120d1fb3859261652f808e5001ae2f169e5ea1bf5035c.

Solidity: event VoteCast(uint256 indexed proposalId, uint256 indexed userNullifier, uint256[] vote)

type ProposalsStateInitialized added in v0.4.0

type ProposalsStateInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

ProposalsStateInitialized represents a Initialized event raised by the ProposalsState contract.

type ProposalsStateInitializedIterator added in v0.4.0

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

ProposalsStateInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the ProposalsState contract.

func (*ProposalsStateInitializedIterator) Close added in v0.4.0

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

func (*ProposalsStateInitializedIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateInitializedIterator) Next added in v0.4.0

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 ProposalsStateMinFundingAmountSet added in v0.4.0

type ProposalsStateMinFundingAmountSet struct {
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

ProposalsStateMinFundingAmountSet represents a MinFundingAmountSet event raised by the ProposalsState contract.

type ProposalsStateMinFundingAmountSetIterator added in v0.4.0

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

ProposalsStateMinFundingAmountSetIterator is returned from FilterMinFundingAmountSet and is used to iterate over the raw logs and unpacked data for MinFundingAmountSet events raised by the ProposalsState contract.

func (*ProposalsStateMinFundingAmountSetIterator) Close added in v0.4.0

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

func (*ProposalsStateMinFundingAmountSetIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateMinFundingAmountSetIterator) Next added in v0.4.0

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 ProposalsStateOwnershipTransferred added in v0.4.0

type ProposalsStateOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

ProposalsStateOwnershipTransferred represents a OwnershipTransferred event raised by the ProposalsState contract.

type ProposalsStateOwnershipTransferredIterator added in v0.4.0

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

ProposalsStateOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the ProposalsState contract.

func (*ProposalsStateOwnershipTransferredIterator) Close added in v0.4.0

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

func (*ProposalsStateOwnershipTransferredIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateOwnershipTransferredIterator) Next added in v0.4.0

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 ProposalsStateProposalConfig added in v0.4.0

type ProposalsStateProposalConfig struct {
	StartTimestamp      uint64
	Duration            uint64
	Multichoice         *big.Int
	AcceptedOptions     []*big.Int
	Description         string
	VotingWhitelist     []common.Address
	VotingWhitelistData [][]byte
}

ProposalsStateProposalConfig is an auto generated low-level Go binding around an user-defined struct.

type ProposalsStateProposalConfigChanged added in v0.4.0

type ProposalsStateProposalConfigChanged struct {
	ProposalId *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

ProposalsStateProposalConfigChanged represents a ProposalConfigChanged event raised by the ProposalsState contract.

type ProposalsStateProposalConfigChangedIterator added in v0.4.0

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

ProposalsStateProposalConfigChangedIterator is returned from FilterProposalConfigChanged and is used to iterate over the raw logs and unpacked data for ProposalConfigChanged events raised by the ProposalsState contract.

func (*ProposalsStateProposalConfigChangedIterator) Close added in v0.4.0

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

func (*ProposalsStateProposalConfigChangedIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateProposalConfigChangedIterator) Next added in v0.4.0

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 ProposalsStateProposalCreated added in v0.4.0

type ProposalsStateProposalCreated struct {
	ProposalId  *big.Int
	ProposalSMT common.Address
	FundAmount  *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

ProposalsStateProposalCreated represents a ProposalCreated event raised by the ProposalsState contract.

type ProposalsStateProposalCreatedIterator added in v0.4.0

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

ProposalsStateProposalCreatedIterator is returned from FilterProposalCreated and is used to iterate over the raw logs and unpacked data for ProposalCreated events raised by the ProposalsState contract.

func (*ProposalsStateProposalCreatedIterator) Close added in v0.4.0

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

func (*ProposalsStateProposalCreatedIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateProposalCreatedIterator) Next added in v0.4.0

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 ProposalsStateProposalFunded added in v0.4.0

type ProposalsStateProposalFunded struct {
	ProposalId *big.Int
	FundAmount *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

ProposalsStateProposalFunded represents a ProposalFunded event raised by the ProposalsState contract.

type ProposalsStateProposalFundedIterator added in v0.4.0

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

ProposalsStateProposalFundedIterator is returned from FilterProposalFunded and is used to iterate over the raw logs and unpacked data for ProposalFunded events raised by the ProposalsState contract.

func (*ProposalsStateProposalFundedIterator) Close added in v0.4.0

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

func (*ProposalsStateProposalFundedIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateProposalFundedIterator) Next added in v0.4.0

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 ProposalsStateProposalHidden added in v0.4.0

type ProposalsStateProposalHidden struct {
	ProposalId *big.Int
	Hide       bool
	Raw        types.Log // Blockchain specific contextual infos
}

ProposalsStateProposalHidden represents a ProposalHidden event raised by the ProposalsState contract.

type ProposalsStateProposalHiddenIterator added in v0.4.0

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

ProposalsStateProposalHiddenIterator is returned from FilterProposalHidden and is used to iterate over the raw logs and unpacked data for ProposalHidden events raised by the ProposalsState contract.

func (*ProposalsStateProposalHiddenIterator) Close added in v0.4.0

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

func (*ProposalsStateProposalHiddenIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateProposalHiddenIterator) Next added in v0.4.0

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 ProposalsStateProposalInfo added in v0.4.0

type ProposalsStateProposalInfo struct {
	ProposalSMT   common.Address
	Status        uint8
	Config        ProposalsStateProposalConfig
	VotingResults [][8]*big.Int
}

ProposalsStateProposalInfo is an auto generated low-level Go binding around an user-defined struct.

type ProposalsStateRaw added in v0.4.0

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

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

func (*ProposalsStateRaw) Call added in v0.4.0

func (_ProposalsState *ProposalsStateRaw) 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 (*ProposalsStateRaw) Transact added in v0.4.0

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

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

func (*ProposalsStateRaw) Transfer added in v0.4.0

func (_ProposalsState *ProposalsStateRaw) 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 ProposalsStateRoleAdminChanged added in v0.4.0

type ProposalsStateRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

ProposalsStateRoleAdminChanged represents a RoleAdminChanged event raised by the ProposalsState contract.

type ProposalsStateRoleAdminChangedIterator added in v0.4.0

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

ProposalsStateRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the ProposalsState contract.

func (*ProposalsStateRoleAdminChangedIterator) Close added in v0.4.0

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

func (*ProposalsStateRoleAdminChangedIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateRoleAdminChangedIterator) Next added in v0.4.0

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 ProposalsStateRoleGranted added in v0.4.0

type ProposalsStateRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

ProposalsStateRoleGranted represents a RoleGranted event raised by the ProposalsState contract.

type ProposalsStateRoleGrantedIterator added in v0.4.0

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

ProposalsStateRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the ProposalsState contract.

func (*ProposalsStateRoleGrantedIterator) Close added in v0.4.0

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

func (*ProposalsStateRoleGrantedIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateRoleGrantedIterator) Next added in v0.4.0

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 ProposalsStateRoleRevoked added in v0.4.0

type ProposalsStateRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

ProposalsStateRoleRevoked represents a RoleRevoked event raised by the ProposalsState contract.

type ProposalsStateRoleRevokedIterator added in v0.4.0

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

ProposalsStateRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the ProposalsState contract.

func (*ProposalsStateRoleRevokedIterator) Close added in v0.4.0

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

func (*ProposalsStateRoleRevokedIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateRoleRevokedIterator) Next added in v0.4.0

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 ProposalsStateSession added in v0.4.0

type ProposalsStateSession struct {
	Contract     *ProposalsState   // 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
}

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

func (*ProposalsStateSession) AddFundsToProposal added in v0.4.0

func (_ProposalsState *ProposalsStateSession) AddFundsToProposal(proposalId_ *big.Int) (*types.Transaction, error)

AddFundsToProposal is a paid mutator transaction binding the contract method 0x70f7e37a.

Solidity: function addFundsToProposal(uint256 proposalId_) payable returns()

func (*ProposalsStateSession) AddVoting added in v0.4.0

func (_ProposalsState *ProposalsStateSession) AddVoting(votingName_ string, votingAddress_ common.Address) (*types.Transaction, error)

AddVoting is a paid mutator transaction binding the contract method 0xde947541.

Solidity: function addVoting(string votingName_, address votingAddress_) returns()

func (*ProposalsStateSession) CONTRACTMANAGERROLE added in v0.4.0

func (_ProposalsState *ProposalsStateSession) CONTRACTMANAGERROLE() ([32]byte, error)

CONTRACTMANAGERROLE is a free data retrieval call binding the contract method 0x9d28b506.

Solidity: function CONTRACT_MANAGER_ROLE() view returns(bytes32)

func (*ProposalsStateSession) ChangeProposalConfig added in v0.4.0

func (_ProposalsState *ProposalsStateSession) ChangeProposalConfig(proposalId_ *big.Int, newProposalConfig_ ProposalsStateProposalConfig) (*types.Transaction, error)

ChangeProposalConfig is a paid mutator transaction binding the contract method 0x1cbdbbc0.

Solidity: function changeProposalConfig(uint256 proposalId_, (uint64,uint64,uint256,uint256[],string,address[],bytes[]) newProposalConfig_) returns()

func (*ProposalsStateSession) ChangeProposalDuration added in v0.4.0

func (_ProposalsState *ProposalsStateSession) ChangeProposalDuration(proposalId_ *big.Int, newDuration_ uint64) (*types.Transaction, error)

ChangeProposalDuration is a paid mutator transaction binding the contract method 0x0f68915a.

Solidity: function changeProposalDuration(uint256 proposalId_, uint64 newDuration_) returns()

func (*ProposalsStateSession) CreateProposal added in v0.4.0

func (_ProposalsState *ProposalsStateSession) CreateProposal(proposalConfig_ ProposalsStateProposalConfig) (*types.Transaction, error)

CreateProposal is a paid mutator transaction binding the contract method 0x9151b81f.

Solidity: function createProposal((uint64,uint64,uint256,uint256[],string,address[],bytes[]) proposalConfig_) payable returns()

func (*ProposalsStateSession) DEFAULTADMINROLE added in v0.4.0

func (_ProposalsState *ProposalsStateSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ProposalsStateSession) FUNDSMANAGERROLE added in v0.4.0

func (_ProposalsState *ProposalsStateSession) FUNDSMANAGERROLE() ([32]byte, error)

FUNDSMANAGERROLE is a free data retrieval call binding the contract method 0xc4707a83.

Solidity: function FUNDS_MANAGER_ROLE() view returns(bytes32)

func (*ProposalsStateSession) GetProposalConfig added in v0.4.0

func (_ProposalsState *ProposalsStateSession) GetProposalConfig(proposalId_ *big.Int) (ProposalsStateProposalConfig, error)

GetProposalConfig is a free data retrieval call binding the contract method 0x7d5d687f.

Solidity: function getProposalConfig(uint256 proposalId_) view returns((uint64,uint64,uint256,uint256[],string,address[],bytes[]))

func (*ProposalsStateSession) GetProposalEventId added in v0.4.0

func (_ProposalsState *ProposalsStateSession) GetProposalEventId(proposalId_ *big.Int) (*big.Int, error)

GetProposalEventId is a free data retrieval call binding the contract method 0x31e181c5.

Solidity: function getProposalEventId(uint256 proposalId_) view returns(uint256)

func (*ProposalsStateSession) GetProposalInfo added in v0.4.0

func (_ProposalsState *ProposalsStateSession) GetProposalInfo(proposalId_ *big.Int) (ProposalsStateProposalInfo, error)

GetProposalInfo is a free data retrieval call binding the contract method 0xbc903cb8.

Solidity: function getProposalInfo(uint256 proposalId_) view returns((address,uint8,(uint64,uint64,uint256,uint256[],string,address[],bytes[]),uint256[8][]) info_)

func (*ProposalsStateSession) GetProposalStatus added in v0.4.0

func (_ProposalsState *ProposalsStateSession) GetProposalStatus(proposalId_ *big.Int) (uint8, error)

GetProposalStatus is a free data retrieval call binding the contract method 0x401853b7.

Solidity: function getProposalStatus(uint256 proposalId_) view returns(uint8)

func (*ProposalsStateSession) GetRoleAdmin added in v0.4.0

func (_ProposalsState *ProposalsStateSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*ProposalsStateSession) GetVotingByKey added in v0.4.0

func (_ProposalsState *ProposalsStateSession) GetVotingByKey(key_ string) (common.Address, error)

GetVotingByKey is a free data retrieval call binding the contract method 0xd8720106.

Solidity: function getVotingByKey(string key_) view returns(address)

func (*ProposalsStateSession) GetVotings added in v0.4.0

func (_ProposalsState *ProposalsStateSession) GetVotings() (struct {
	Keys   []string
	Values []common.Address
}, error)

GetVotings is a free data retrieval call binding the contract method 0x05c1112d.

Solidity: function getVotings() view returns(string[] keys_, address[] values_)

func (*ProposalsStateSession) GrantRole added in v0.4.0

func (_ProposalsState *ProposalsStateSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*ProposalsStateSession) HasRole added in v0.4.0

func (_ProposalsState *ProposalsStateSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*ProposalsStateSession) HideProposal added in v0.4.0

func (_ProposalsState *ProposalsStateSession) HideProposal(proposalId_ *big.Int, hide_ bool) (*types.Transaction, error)

HideProposal is a paid mutator transaction binding the contract method 0x50df86a3.

Solidity: function hideProposal(uint256 proposalId_, bool hide_) returns()

func (*ProposalsStateSession) HideProposal0 added in v0.4.0

func (_ProposalsState *ProposalsStateSession) HideProposal0(proposalId_ *big.Int) (*types.Transaction, error)

HideProposal0 is a paid mutator transaction binding the contract method 0xb635af95.

Solidity: function hideProposal(uint256 proposalId_) returns()

func (*ProposalsStateSession) Implementation added in v0.4.0

func (_ProposalsState *ProposalsStateSession) Implementation() (common.Address, error)

Implementation is a free data retrieval call binding the contract method 0x5c60da1b.

Solidity: function implementation() view returns(address)

func (*ProposalsStateSession) IsVoting added in v0.4.0

func (_ProposalsState *ProposalsStateSession) IsVoting(voting_ common.Address) (bool, error)

IsVoting is a free data retrieval call binding the contract method 0x5f8dd649.

Solidity: function isVoting(address voting_) view returns(bool)

func (*ProposalsStateSession) LastProposalId added in v0.4.0

func (_ProposalsState *ProposalsStateSession) LastProposalId() (*big.Int, error)

LastProposalId is a free data retrieval call binding the contract method 0x74cb3041.

Solidity: function lastProposalId() view returns(uint256)

func (*ProposalsStateSession) MAXIMUMCHOICESPEROPTION added in v0.4.0

func (_ProposalsState *ProposalsStateSession) MAXIMUMCHOICESPEROPTION() (*big.Int, error)

MAXIMUMCHOICESPEROPTION is a free data retrieval call binding the contract method 0x299a9b54.

Solidity: function MAXIMUM_CHOICES_PER_OPTION() view returns(uint256)

func (*ProposalsStateSession) MAXIMUMOPTIONS added in v0.4.0

func (_ProposalsState *ProposalsStateSession) MAXIMUMOPTIONS() (*big.Int, error)

MAXIMUMOPTIONS is a free data retrieval call binding the contract method 0x881e3447.

Solidity: function MAXIMUM_OPTIONS() view returns(uint256)

func (*ProposalsStateSession) MinFundingAmount added in v0.4.0

func (_ProposalsState *ProposalsStateSession) MinFundingAmount() (*big.Int, error)

MinFundingAmount is a free data retrieval call binding the contract method 0xc791316e.

Solidity: function minFundingAmount() view returns(uint256)

func (*ProposalsStateSession) Owner added in v0.4.0

func (_ProposalsState *ProposalsStateSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*ProposalsStateSession) PROPOSALMANAGERROLE added in v0.4.0

func (_ProposalsState *ProposalsStateSession) PROPOSALMANAGERROLE() ([32]byte, error)

PROPOSALMANAGERROLE is a free data retrieval call binding the contract method 0x4de29d48.

Solidity: function PROPOSAL_MANAGER_ROLE() view returns(bytes32)

func (*ProposalsStateSession) ProposalSMTImpl added in v0.4.0

func (_ProposalsState *ProposalsStateSession) ProposalSMTImpl() (common.Address, error)

ProposalSMTImpl is a free data retrieval call binding the contract method 0x59917f46.

Solidity: function proposalSMTImpl() view returns(address)

func (*ProposalsStateSession) ProposalsStateInit added in v0.4.0

func (_ProposalsState *ProposalsStateSession) ProposalsStateInit(proposalSMTImpl_ common.Address, minFundingAmount_ *big.Int) (*types.Transaction, error)

ProposalsStateInit is a paid mutator transaction binding the contract method 0x0efdef78.

Solidity: function __ProposalsState_init(address proposalSMTImpl_, uint256 minFundingAmount_) returns()

func (*ProposalsStateSession) ProxiableUUID added in v0.4.0

func (_ProposalsState *ProposalsStateSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*ProposalsStateSession) RemoveVoting added in v0.4.0

func (_ProposalsState *ProposalsStateSession) RemoveVoting(votingName_ string) (*types.Transaction, error)

RemoveVoting is a paid mutator transaction binding the contract method 0x4fcfccd7.

Solidity: function removeVoting(string votingName_) returns()

func (*ProposalsStateSession) RenounceOwnership added in v0.4.0

func (_ProposalsState *ProposalsStateSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ProposalsStateSession) RenounceRole added in v0.4.0

func (_ProposalsState *ProposalsStateSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*ProposalsStateSession) RevokeRole added in v0.4.0

func (_ProposalsState *ProposalsStateSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*ProposalsStateSession) SetMinFundingAmount added in v0.4.0

func (_ProposalsState *ProposalsStateSession) SetMinFundingAmount(amount_ *big.Int) (*types.Transaction, error)

SetMinFundingAmount is a paid mutator transaction binding the contract method 0xe5eece80.

Solidity: function setMinFundingAmount(uint256 amount_) returns()

func (*ProposalsStateSession) SupportsInterface added in v0.4.0

func (_ProposalsState *ProposalsStateSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ProposalsStateSession) TransferOwnership added in v0.4.0

func (_ProposalsState *ProposalsStateSession) 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 (*ProposalsStateSession) UpgradeTo added in v0.4.0

func (_ProposalsState *ProposalsStateSession) 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 (*ProposalsStateSession) UpgradeToAndCall added in v0.4.0

func (_ProposalsState *ProposalsStateSession) 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 (*ProposalsStateSession) Vote added in v0.4.0

func (_ProposalsState *ProposalsStateSession) Vote(proposalId_ *big.Int, userNullifier_ *big.Int, vote_ []*big.Int) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0xe1349bd7.

Solidity: function vote(uint256 proposalId_, uint256 userNullifier_, uint256[] vote_) returns()

func (*ProposalsStateSession) WithdrawFunds added in v0.4.0

func (_ProposalsState *ProposalsStateSession) WithdrawFunds(recipient_ common.Address, amount_ *big.Int) (*types.Transaction, error)

WithdrawFunds is a paid mutator transaction binding the contract method 0xc1075329.

Solidity: function withdrawFunds(address recipient_, uint256 amount_) returns()

type ProposalsStateTransactor added in v0.4.0

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

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

func NewProposalsStateTransactor added in v0.4.0

func NewProposalsStateTransactor(address common.Address, transactor bind.ContractTransactor) (*ProposalsStateTransactor, error)

NewProposalsStateTransactor creates a new write-only instance of ProposalsState, bound to a specific deployed contract.

func (*ProposalsStateTransactor) AddFundsToProposal added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) AddFundsToProposal(opts *bind.TransactOpts, proposalId_ *big.Int) (*types.Transaction, error)

AddFundsToProposal is a paid mutator transaction binding the contract method 0x70f7e37a.

Solidity: function addFundsToProposal(uint256 proposalId_) payable returns()

func (*ProposalsStateTransactor) AddVoting added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) AddVoting(opts *bind.TransactOpts, votingName_ string, votingAddress_ common.Address) (*types.Transaction, error)

AddVoting is a paid mutator transaction binding the contract method 0xde947541.

Solidity: function addVoting(string votingName_, address votingAddress_) returns()

func (*ProposalsStateTransactor) ChangeProposalConfig added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) ChangeProposalConfig(opts *bind.TransactOpts, proposalId_ *big.Int, newProposalConfig_ ProposalsStateProposalConfig) (*types.Transaction, error)

ChangeProposalConfig is a paid mutator transaction binding the contract method 0x1cbdbbc0.

Solidity: function changeProposalConfig(uint256 proposalId_, (uint64,uint64,uint256,uint256[],string,address[],bytes[]) newProposalConfig_) returns()

func (*ProposalsStateTransactor) ChangeProposalDuration added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) ChangeProposalDuration(opts *bind.TransactOpts, proposalId_ *big.Int, newDuration_ uint64) (*types.Transaction, error)

ChangeProposalDuration is a paid mutator transaction binding the contract method 0x0f68915a.

Solidity: function changeProposalDuration(uint256 proposalId_, uint64 newDuration_) returns()

func (*ProposalsStateTransactor) CreateProposal added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) CreateProposal(opts *bind.TransactOpts, proposalConfig_ ProposalsStateProposalConfig) (*types.Transaction, error)

CreateProposal is a paid mutator transaction binding the contract method 0x9151b81f.

Solidity: function createProposal((uint64,uint64,uint256,uint256[],string,address[],bytes[]) proposalConfig_) payable returns()

func (*ProposalsStateTransactor) GrantRole added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*ProposalsStateTransactor) HideProposal added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) HideProposal(opts *bind.TransactOpts, proposalId_ *big.Int, hide_ bool) (*types.Transaction, error)

HideProposal is a paid mutator transaction binding the contract method 0x50df86a3.

Solidity: function hideProposal(uint256 proposalId_, bool hide_) returns()

func (*ProposalsStateTransactor) HideProposal0 added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) HideProposal0(opts *bind.TransactOpts, proposalId_ *big.Int) (*types.Transaction, error)

HideProposal0 is a paid mutator transaction binding the contract method 0xb635af95.

Solidity: function hideProposal(uint256 proposalId_) returns()

func (*ProposalsStateTransactor) ProposalsStateInit added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) ProposalsStateInit(opts *bind.TransactOpts, proposalSMTImpl_ common.Address, minFundingAmount_ *big.Int) (*types.Transaction, error)

ProposalsStateInit is a paid mutator transaction binding the contract method 0x0efdef78.

Solidity: function __ProposalsState_init(address proposalSMTImpl_, uint256 minFundingAmount_) returns()

func (*ProposalsStateTransactor) RemoveVoting added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) RemoveVoting(opts *bind.TransactOpts, votingName_ string) (*types.Transaction, error)

RemoveVoting is a paid mutator transaction binding the contract method 0x4fcfccd7.

Solidity: function removeVoting(string votingName_) returns()

func (*ProposalsStateTransactor) RenounceOwnership added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ProposalsStateTransactor) RenounceRole added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*ProposalsStateTransactor) RevokeRole added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*ProposalsStateTransactor) SetMinFundingAmount added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) SetMinFundingAmount(opts *bind.TransactOpts, amount_ *big.Int) (*types.Transaction, error)

SetMinFundingAmount is a paid mutator transaction binding the contract method 0xe5eece80.

Solidity: function setMinFundingAmount(uint256 amount_) returns()

func (*ProposalsStateTransactor) TransferOwnership added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) 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 (*ProposalsStateTransactor) UpgradeTo added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) 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 (*ProposalsStateTransactor) UpgradeToAndCall added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) 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 (*ProposalsStateTransactor) Vote added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) Vote(opts *bind.TransactOpts, proposalId_ *big.Int, userNullifier_ *big.Int, vote_ []*big.Int) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0xe1349bd7.

Solidity: function vote(uint256 proposalId_, uint256 userNullifier_, uint256[] vote_) returns()

func (*ProposalsStateTransactor) WithdrawFunds added in v0.4.0

func (_ProposalsState *ProposalsStateTransactor) WithdrawFunds(opts *bind.TransactOpts, recipient_ common.Address, amount_ *big.Int) (*types.Transaction, error)

WithdrawFunds is a paid mutator transaction binding the contract method 0xc1075329.

Solidity: function withdrawFunds(address recipient_, uint256 amount_) returns()

type ProposalsStateTransactorRaw added in v0.4.0

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

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

func (*ProposalsStateTransactorRaw) Transact added in v0.4.0

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

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

func (*ProposalsStateTransactorRaw) Transfer added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorRaw) 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 ProposalsStateTransactorSession added in v0.4.0

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

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

func (*ProposalsStateTransactorSession) AddFundsToProposal added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) AddFundsToProposal(proposalId_ *big.Int) (*types.Transaction, error)

AddFundsToProposal is a paid mutator transaction binding the contract method 0x70f7e37a.

Solidity: function addFundsToProposal(uint256 proposalId_) payable returns()

func (*ProposalsStateTransactorSession) AddVoting added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) AddVoting(votingName_ string, votingAddress_ common.Address) (*types.Transaction, error)

AddVoting is a paid mutator transaction binding the contract method 0xde947541.

Solidity: function addVoting(string votingName_, address votingAddress_) returns()

func (*ProposalsStateTransactorSession) ChangeProposalConfig added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) ChangeProposalConfig(proposalId_ *big.Int, newProposalConfig_ ProposalsStateProposalConfig) (*types.Transaction, error)

ChangeProposalConfig is a paid mutator transaction binding the contract method 0x1cbdbbc0.

Solidity: function changeProposalConfig(uint256 proposalId_, (uint64,uint64,uint256,uint256[],string,address[],bytes[]) newProposalConfig_) returns()

func (*ProposalsStateTransactorSession) ChangeProposalDuration added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) ChangeProposalDuration(proposalId_ *big.Int, newDuration_ uint64) (*types.Transaction, error)

ChangeProposalDuration is a paid mutator transaction binding the contract method 0x0f68915a.

Solidity: function changeProposalDuration(uint256 proposalId_, uint64 newDuration_) returns()

func (*ProposalsStateTransactorSession) CreateProposal added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) CreateProposal(proposalConfig_ ProposalsStateProposalConfig) (*types.Transaction, error)

CreateProposal is a paid mutator transaction binding the contract method 0x9151b81f.

Solidity: function createProposal((uint64,uint64,uint256,uint256[],string,address[],bytes[]) proposalConfig_) payable returns()

func (*ProposalsStateTransactorSession) GrantRole added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*ProposalsStateTransactorSession) HideProposal added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) HideProposal(proposalId_ *big.Int, hide_ bool) (*types.Transaction, error)

HideProposal is a paid mutator transaction binding the contract method 0x50df86a3.

Solidity: function hideProposal(uint256 proposalId_, bool hide_) returns()

func (*ProposalsStateTransactorSession) HideProposal0 added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) HideProposal0(proposalId_ *big.Int) (*types.Transaction, error)

HideProposal0 is a paid mutator transaction binding the contract method 0xb635af95.

Solidity: function hideProposal(uint256 proposalId_) returns()

func (*ProposalsStateTransactorSession) ProposalsStateInit added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) ProposalsStateInit(proposalSMTImpl_ common.Address, minFundingAmount_ *big.Int) (*types.Transaction, error)

ProposalsStateInit is a paid mutator transaction binding the contract method 0x0efdef78.

Solidity: function __ProposalsState_init(address proposalSMTImpl_, uint256 minFundingAmount_) returns()

func (*ProposalsStateTransactorSession) RemoveVoting added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) RemoveVoting(votingName_ string) (*types.Transaction, error)

RemoveVoting is a paid mutator transaction binding the contract method 0x4fcfccd7.

Solidity: function removeVoting(string votingName_) returns()

func (*ProposalsStateTransactorSession) RenounceOwnership added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ProposalsStateTransactorSession) RenounceRole added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*ProposalsStateTransactorSession) RevokeRole added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*ProposalsStateTransactorSession) SetMinFundingAmount added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) SetMinFundingAmount(amount_ *big.Int) (*types.Transaction, error)

SetMinFundingAmount is a paid mutator transaction binding the contract method 0xe5eece80.

Solidity: function setMinFundingAmount(uint256 amount_) returns()

func (*ProposalsStateTransactorSession) TransferOwnership added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) 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 (*ProposalsStateTransactorSession) UpgradeTo added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) 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 (*ProposalsStateTransactorSession) UpgradeToAndCall added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) 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 (*ProposalsStateTransactorSession) Vote added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) Vote(proposalId_ *big.Int, userNullifier_ *big.Int, vote_ []*big.Int) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0xe1349bd7.

Solidity: function vote(uint256 proposalId_, uint256 userNullifier_, uint256[] vote_) returns()

func (*ProposalsStateTransactorSession) WithdrawFunds added in v0.4.0

func (_ProposalsState *ProposalsStateTransactorSession) WithdrawFunds(recipient_ common.Address, amount_ *big.Int) (*types.Transaction, error)

WithdrawFunds is a paid mutator transaction binding the contract method 0xc1075329.

Solidity: function withdrawFunds(address recipient_, uint256 amount_) returns()

type ProposalsStateUpgraded added in v0.4.0

type ProposalsStateUpgraded struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

ProposalsStateUpgraded represents a Upgraded event raised by the ProposalsState contract.

type ProposalsStateUpgradedIterator added in v0.4.0

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

ProposalsStateUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the ProposalsState contract.

func (*ProposalsStateUpgradedIterator) Close added in v0.4.0

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

func (*ProposalsStateUpgradedIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateUpgradedIterator) Next added in v0.4.0

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 ProposalsStateVoteCast added in v0.4.0

type ProposalsStateVoteCast struct {
	ProposalId    *big.Int
	UserNullifier *big.Int
	Vote          []*big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

ProposalsStateVoteCast represents a VoteCast event raised by the ProposalsState contract.

type ProposalsStateVoteCastIterator added in v0.4.0

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

ProposalsStateVoteCastIterator is returned from FilterVoteCast and is used to iterate over the raw logs and unpacked data for VoteCast events raised by the ProposalsState contract.

func (*ProposalsStateVoteCastIterator) Close added in v0.4.0

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

func (*ProposalsStateVoteCastIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateVoteCastIterator) Next added in v0.4.0

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 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 VerifierHelperProofPoints added in v0.3.0

type VerifierHelperProofPoints struct {
	A [2]*big.Int
	B [2][2]*big.Int
	C [2]*big.Int
}

VerifierHelperProofPoints 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

func (_VoteVerifier *VoteVerifierCaller) SmtTreeMaxDepth(opts *bind.CallOpts) (*big.Int, error)

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

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

func (*VoteVerifierInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VoteVerifierInitializedIterator) Next

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

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

func (*VoteVerifierRegistrationInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VoteVerifierRegistrationInitializedIterator) Next

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

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

func (*VoteVerifierUserRegisteredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VoteVerifierUserRegisteredIterator) Next

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 Voting added in v0.3.0

type Voting struct {
	VotingCaller     // Read-only binding to the contract
	VotingTransactor // Write-only binding to the contract
	VotingFilterer   // Log filterer for contract events
}

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

func NewVoting added in v0.3.0

func NewVoting(address common.Address, backend bind.ContractBackend) (*Voting, error)

NewVoting creates a new instance of Voting, bound to a specific deployed contract.

type VotingCaller added in v0.3.0

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

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

func NewVotingCaller added in v0.3.0

func NewVotingCaller(address common.Address, caller bind.ContractCaller) (*VotingCaller, error)

NewVotingCaller creates a new read-only instance of Voting, bound to a specific deployed contract.

func (*VotingCaller) Candidates added in v0.3.0

func (_Voting *VotingCaller) Candidates(opts *bind.CallOpts, arg0 [32]byte) (bool, error)

Candidates is a free data retrieval call binding the contract method 0x1a0478d5.

Solidity: function candidates(bytes32 ) view returns(bool)

func (*VotingCaller) GetProposalStatus added in v0.3.0

func (_Voting *VotingCaller) GetProposalStatus(opts *bind.CallOpts) (uint8, error)

GetProposalStatus is a free data retrieval call binding the contract method 0xcfeb652e.

Solidity: function getProposalStatus() view returns(uint8)

func (*VotingCaller) GetRegistrationAddresses added in v0.3.0

func (_Voting *VotingCaller) GetRegistrationAddresses(opts *bind.CallOpts) ([]common.Address, error)

GetRegistrationAddresses is a free data retrieval call binding the contract method 0xe8188f97.

Solidity: function getRegistrationAddresses() view returns(address[])

func (*VotingCaller) MAXCANDIDATES added in v0.3.0

func (_Voting *VotingCaller) MAXCANDIDATES(opts *bind.CallOpts) (*big.Int, error)

MAXCANDIDATES is a free data retrieval call binding the contract method 0xf0786096.

Solidity: function MAX_CANDIDATES() view returns(uint256)

func (*VotingCaller) Nullifiers added in v0.3.0

func (_Voting *VotingCaller) Nullifiers(opts *bind.CallOpts, arg0 [32]byte) (bool, error)

Nullifiers is a free data retrieval call binding the contract method 0x2997e86b.

Solidity: function nullifiers(bytes32 ) view returns(bool)

func (*VotingCaller) Registration added in v0.3.0

func (_Voting *VotingCaller) Registration(opts *bind.CallOpts) (common.Address, error)

Registration is a free data retrieval call binding the contract method 0x443bd1d0.

Solidity: function registration() view returns(address)

func (*VotingCaller) SupportsInterface added in v0.3.0

func (_Voting *VotingCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*VotingCaller) VoteVerifier added in v0.3.0

func (_Voting *VotingCaller) VoteVerifier(opts *bind.CallOpts) (common.Address, error)

VoteVerifier is a free data retrieval call binding the contract method 0x99d74c71.

Solidity: function voteVerifier() view returns(address)

func (*VotingCaller) VotesPerCandidate added in v0.3.0

func (_Voting *VotingCaller) VotesPerCandidate(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)

VotesPerCandidate is a free data retrieval call binding the contract method 0xe0d38faf.

Solidity: function votesPerCandidate(bytes32 ) view returns(uint256)

func (*VotingCaller) VotingInfo added in v0.3.0

func (_Voting *VotingCaller) VotingInfo(opts *bind.CallOpts) (struct {
	Remark   string
	Values   IVotingVotingValues
	Counters IVotingVotingCounters
}, error)

VotingInfo is a free data retrieval call binding the contract method 0x19e7998c.

Solidity: function votingInfo() view returns(string remark, (uint256,uint256,bytes32[]) values, (uint256) counters)

type VotingCallerRaw added in v0.3.0

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

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

func (*VotingCallerRaw) Call added in v0.3.0

func (_Voting *VotingCallerRaw) 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 VotingCallerSession added in v0.3.0

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

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

func (*VotingCallerSession) Candidates added in v0.3.0

func (_Voting *VotingCallerSession) Candidates(arg0 [32]byte) (bool, error)

Candidates is a free data retrieval call binding the contract method 0x1a0478d5.

Solidity: function candidates(bytes32 ) view returns(bool)

func (*VotingCallerSession) GetProposalStatus added in v0.3.0

func (_Voting *VotingCallerSession) GetProposalStatus() (uint8, error)

GetProposalStatus is a free data retrieval call binding the contract method 0xcfeb652e.

Solidity: function getProposalStatus() view returns(uint8)

func (*VotingCallerSession) GetRegistrationAddresses added in v0.3.0

func (_Voting *VotingCallerSession) GetRegistrationAddresses() ([]common.Address, error)

GetRegistrationAddresses is a free data retrieval call binding the contract method 0xe8188f97.

Solidity: function getRegistrationAddresses() view returns(address[])

func (*VotingCallerSession) MAXCANDIDATES added in v0.3.0

func (_Voting *VotingCallerSession) MAXCANDIDATES() (*big.Int, error)

MAXCANDIDATES is a free data retrieval call binding the contract method 0xf0786096.

Solidity: function MAX_CANDIDATES() view returns(uint256)

func (*VotingCallerSession) Nullifiers added in v0.3.0

func (_Voting *VotingCallerSession) Nullifiers(arg0 [32]byte) (bool, error)

Nullifiers is a free data retrieval call binding the contract method 0x2997e86b.

Solidity: function nullifiers(bytes32 ) view returns(bool)

func (*VotingCallerSession) Registration added in v0.3.0

func (_Voting *VotingCallerSession) Registration() (common.Address, error)

Registration is a free data retrieval call binding the contract method 0x443bd1d0.

Solidity: function registration() view returns(address)

func (*VotingCallerSession) SupportsInterface added in v0.3.0

func (_Voting *VotingCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*VotingCallerSession) VoteVerifier added in v0.3.0

func (_Voting *VotingCallerSession) VoteVerifier() (common.Address, error)

VoteVerifier is a free data retrieval call binding the contract method 0x99d74c71.

Solidity: function voteVerifier() view returns(address)

func (*VotingCallerSession) VotesPerCandidate added in v0.3.0

func (_Voting *VotingCallerSession) VotesPerCandidate(arg0 [32]byte) (*big.Int, error)

VotesPerCandidate is a free data retrieval call binding the contract method 0xe0d38faf.

Solidity: function votesPerCandidate(bytes32 ) view returns(uint256)

func (*VotingCallerSession) VotingInfo added in v0.3.0

func (_Voting *VotingCallerSession) VotingInfo() (struct {
	Remark   string
	Values   IVotingVotingValues
	Counters IVotingVotingCounters
}, error)

VotingInfo is a free data retrieval call binding the contract method 0x19e7998c.

Solidity: function votingInfo() view returns(string remark, (uint256,uint256,bytes32[]) values, (uint256) counters)

type VotingFilterer added in v0.3.0

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

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

func NewVotingFilterer added in v0.3.0

func NewVotingFilterer(address common.Address, filterer bind.ContractFilterer) (*VotingFilterer, error)

NewVotingFilterer creates a new log filterer instance of Voting, bound to a specific deployed contract.

func (*VotingFilterer) FilterInitialized added in v0.3.0

func (_Voting *VotingFilterer) FilterInitialized(opts *bind.FilterOpts) (*VotingInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*VotingFilterer) FilterUserVoted added in v0.3.0

func (_Voting *VotingFilterer) FilterUserVoted(opts *bind.FilterOpts, user []common.Address) (*VotingUserVotedIterator, error)

FilterUserVoted is a free log retrieval operation binding the contract event 0xd7b642ac96388fe3d629dbcf233cde0723967951c334d29a2b8db1c476182f30.

Solidity: event UserVoted(address indexed user, bytes32 root, bytes32 nullifierHash, bytes32 candidate)

func (*VotingFilterer) FilterVotingInitialized added in v0.3.0

func (_Voting *VotingFilterer) FilterVotingInitialized(opts *bind.FilterOpts, proposer []common.Address) (*VotingVotingInitializedIterator, error)

FilterVotingInitialized is a free log retrieval operation binding the contract event 0xb9bbd4e09a06db4d1f06fe2ebe360738047ec15a1f30d6daeb02b0241ebcd290.

Solidity: event VotingInitialized(address indexed proposer, (address,string,uint256,uint256,bytes32[]) votingParams)

func (*VotingFilterer) ParseInitialized added in v0.3.0

func (_Voting *VotingFilterer) ParseInitialized(log types.Log) (*VotingInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*VotingFilterer) ParseUserVoted added in v0.3.0

func (_Voting *VotingFilterer) ParseUserVoted(log types.Log) (*VotingUserVoted, error)

ParseUserVoted is a log parse operation binding the contract event 0xd7b642ac96388fe3d629dbcf233cde0723967951c334d29a2b8db1c476182f30.

Solidity: event UserVoted(address indexed user, bytes32 root, bytes32 nullifierHash, bytes32 candidate)

func (*VotingFilterer) ParseVotingInitialized added in v0.3.0

func (_Voting *VotingFilterer) ParseVotingInitialized(log types.Log) (*VotingVotingInitialized, error)

ParseVotingInitialized is a log parse operation binding the contract event 0xb9bbd4e09a06db4d1f06fe2ebe360738047ec15a1f30d6daeb02b0241ebcd290.

Solidity: event VotingInitialized(address indexed proposer, (address,string,uint256,uint256,bytes32[]) votingParams)

func (*VotingFilterer) WatchInitialized added in v0.3.0

func (_Voting *VotingFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *VotingInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*VotingFilterer) WatchUserVoted added in v0.3.0

func (_Voting *VotingFilterer) WatchUserVoted(opts *bind.WatchOpts, sink chan<- *VotingUserVoted, user []common.Address) (event.Subscription, error)

WatchUserVoted is a free log subscription operation binding the contract event 0xd7b642ac96388fe3d629dbcf233cde0723967951c334d29a2b8db1c476182f30.

Solidity: event UserVoted(address indexed user, bytes32 root, bytes32 nullifierHash, bytes32 candidate)

func (*VotingFilterer) WatchVotingInitialized added in v0.3.0

func (_Voting *VotingFilterer) WatchVotingInitialized(opts *bind.WatchOpts, sink chan<- *VotingVotingInitialized, proposer []common.Address) (event.Subscription, error)

WatchVotingInitialized is a free log subscription operation binding the contract event 0xb9bbd4e09a06db4d1f06fe2ebe360738047ec15a1f30d6daeb02b0241ebcd290.

Solidity: event VotingInitialized(address indexed proposer, (address,string,uint256,uint256,bytes32[]) votingParams)

type VotingInitialized added in v0.3.0

type VotingInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

VotingInitialized represents a Initialized event raised by the Voting contract.

type VotingInitializedIterator added in v0.3.0

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

VotingInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Voting contract.

func (*VotingInitializedIterator) Close added in v0.3.0

func (it *VotingInitializedIterator) Close() error

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

func (*VotingInitializedIterator) Error added in v0.3.0

func (it *VotingInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VotingInitializedIterator) Next added in v0.3.0

func (it *VotingInitializedIterator) 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 VotingRaw added in v0.3.0

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

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

func (*VotingRaw) Call added in v0.3.0

func (_Voting *VotingRaw) 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 (*VotingRaw) Transact added in v0.3.0

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

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

func (*VotingRaw) Transfer added in v0.3.0

func (_Voting *VotingRaw) 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 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

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

func (*VotingRegistryAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VotingRegistryAdminChangedIterator) Next

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

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

func (*VotingRegistryBeaconUpgradedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VotingRegistryBeaconUpgradedIterator) Next

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

func (_VotingRegistry *VotingRegistryCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

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

func (*VotingRegistryInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VotingRegistryInitializedIterator) Next

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

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

func (*VotingRegistryOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VotingRegistryOwnershipTransferredIterator) Next

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

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

func (*VotingRegistryUpgradedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VotingRegistryUpgradedIterator) Next

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 VotingSession added in v0.3.0

type VotingSession struct {
	Contract     *Voting           // 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
}

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

func (*VotingSession) Candidates added in v0.3.0

func (_Voting *VotingSession) Candidates(arg0 [32]byte) (bool, error)

Candidates is a free data retrieval call binding the contract method 0x1a0478d5.

Solidity: function candidates(bytes32 ) view returns(bool)

func (*VotingSession) GetProposalStatus added in v0.3.0

func (_Voting *VotingSession) GetProposalStatus() (uint8, error)

GetProposalStatus is a free data retrieval call binding the contract method 0xcfeb652e.

Solidity: function getProposalStatus() view returns(uint8)

func (*VotingSession) GetRegistrationAddresses added in v0.3.0

func (_Voting *VotingSession) GetRegistrationAddresses() ([]common.Address, error)

GetRegistrationAddresses is a free data retrieval call binding the contract method 0xe8188f97.

Solidity: function getRegistrationAddresses() view returns(address[])

func (*VotingSession) MAXCANDIDATES added in v0.3.0

func (_Voting *VotingSession) MAXCANDIDATES() (*big.Int, error)

MAXCANDIDATES is a free data retrieval call binding the contract method 0xf0786096.

Solidity: function MAX_CANDIDATES() view returns(uint256)

func (*VotingSession) Nullifiers added in v0.3.0

func (_Voting *VotingSession) Nullifiers(arg0 [32]byte) (bool, error)

Nullifiers is a free data retrieval call binding the contract method 0x2997e86b.

Solidity: function nullifiers(bytes32 ) view returns(bool)

func (*VotingSession) Registration added in v0.3.0

func (_Voting *VotingSession) Registration() (common.Address, error)

Registration is a free data retrieval call binding the contract method 0x443bd1d0.

Solidity: function registration() view returns(address)

func (*VotingSession) SupportsInterface added in v0.3.0

func (_Voting *VotingSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*VotingSession) Vote added in v0.3.0

func (_Voting *VotingSession) Vote(root_ [32]byte, nullifierHash_ [32]byte, candidate_ [32]byte, proof_ VerifierHelperProofPoints) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0x0d9eaa43.

Solidity: function vote(bytes32 root_, bytes32 nullifierHash_, bytes32 candidate_, (uint256[2],uint256[2][2],uint256[2]) proof_) returns()

func (*VotingSession) VoteVerifier added in v0.3.0

func (_Voting *VotingSession) VoteVerifier() (common.Address, error)

VoteVerifier is a free data retrieval call binding the contract method 0x99d74c71.

Solidity: function voteVerifier() view returns(address)

func (*VotingSession) VotesPerCandidate added in v0.3.0

func (_Voting *VotingSession) VotesPerCandidate(arg0 [32]byte) (*big.Int, error)

VotesPerCandidate is a free data retrieval call binding the contract method 0xe0d38faf.

Solidity: function votesPerCandidate(bytes32 ) view returns(uint256)

func (*VotingSession) VotingInfo added in v0.3.0

func (_Voting *VotingSession) VotingInfo() (struct {
	Remark   string
	Values   IVotingVotingValues
	Counters IVotingVotingCounters
}, error)

VotingInfo is a free data retrieval call binding the contract method 0x19e7998c.

Solidity: function votingInfo() view returns(string remark, (uint256,uint256,bytes32[]) values, (uint256) counters)

func (*VotingSession) VotingInit added in v0.3.0

func (_Voting *VotingSession) VotingInit(votingParams_ IVotingVotingParams) (*types.Transaction, error)

VotingInit is a paid mutator transaction binding the contract method 0xf8bd2ace.

Solidity: function __Voting_init((address,string,uint256,uint256,bytes32[]) votingParams_) returns()

type VotingTransactor added in v0.3.0

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

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

func NewVotingTransactor added in v0.3.0

func NewVotingTransactor(address common.Address, transactor bind.ContractTransactor) (*VotingTransactor, error)

NewVotingTransactor creates a new write-only instance of Voting, bound to a specific deployed contract.

func (*VotingTransactor) Vote added in v0.3.0

func (_Voting *VotingTransactor) Vote(opts *bind.TransactOpts, root_ [32]byte, nullifierHash_ [32]byte, candidate_ [32]byte, proof_ VerifierHelperProofPoints) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0x0d9eaa43.

Solidity: function vote(bytes32 root_, bytes32 nullifierHash_, bytes32 candidate_, (uint256[2],uint256[2][2],uint256[2]) proof_) returns()

func (*VotingTransactor) VotingInit added in v0.3.0

func (_Voting *VotingTransactor) VotingInit(opts *bind.TransactOpts, votingParams_ IVotingVotingParams) (*types.Transaction, error)

VotingInit is a paid mutator transaction binding the contract method 0xf8bd2ace.

Solidity: function __Voting_init((address,string,uint256,uint256,bytes32[]) votingParams_) returns()

type VotingTransactorRaw added in v0.3.0

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

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

func (*VotingTransactorRaw) Transact added in v0.3.0

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

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

func (*VotingTransactorRaw) Transfer added in v0.3.0

func (_Voting *VotingTransactorRaw) 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 VotingTransactorSession added in v0.3.0

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

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

func (*VotingTransactorSession) Vote added in v0.3.0

func (_Voting *VotingTransactorSession) Vote(root_ [32]byte, nullifierHash_ [32]byte, candidate_ [32]byte, proof_ VerifierHelperProofPoints) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0x0d9eaa43.

Solidity: function vote(bytes32 root_, bytes32 nullifierHash_, bytes32 candidate_, (uint256[2],uint256[2][2],uint256[2]) proof_) returns()

func (*VotingTransactorSession) VotingInit added in v0.3.0

func (_Voting *VotingTransactorSession) VotingInit(votingParams_ IVotingVotingParams) (*types.Transaction, error)

VotingInit is a paid mutator transaction binding the contract method 0xf8bd2ace.

Solidity: function __Voting_init((address,string,uint256,uint256,bytes32[]) votingParams_) returns()

type VotingUserVoted added in v0.3.0

type VotingUserVoted struct {
	User          common.Address
	Root          [32]byte
	NullifierHash [32]byte
	Candidate     [32]byte
	Raw           types.Log // Blockchain specific contextual infos
}

VotingUserVoted represents a UserVoted event raised by the Voting contract.

type VotingUserVotedIterator added in v0.3.0

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

VotingUserVotedIterator is returned from FilterUserVoted and is used to iterate over the raw logs and unpacked data for UserVoted events raised by the Voting contract.

func (*VotingUserVotedIterator) Close added in v0.3.0

func (it *VotingUserVotedIterator) Close() error

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

func (*VotingUserVotedIterator) Error added in v0.3.0

func (it *VotingUserVotedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VotingUserVotedIterator) Next added in v0.3.0

func (it *VotingUserVotedIterator) 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 VotingVotingInitialized added in v0.3.0

type VotingVotingInitialized struct {
	Proposer     common.Address
	VotingParams IVotingVotingParams
	Raw          types.Log // Blockchain specific contextual infos
}

VotingVotingInitialized represents a VotingInitialized event raised by the Voting contract.

type VotingVotingInitializedIterator added in v0.3.0

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

VotingVotingInitializedIterator is returned from FilterVotingInitialized and is used to iterate over the raw logs and unpacked data for VotingInitialized events raised by the Voting contract.

func (*VotingVotingInitializedIterator) Close added in v0.3.0

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

func (*VotingVotingInitializedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*VotingVotingInitializedIterator) Next added in v0.3.0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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