proposalsstate

package
v1.9.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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\":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\"}],\"name\":\"ProposalCreated\",\"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\":\"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\":\"MAGIC_ID\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"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\":\"P\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"chainName_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"proposalSMTImpl_\",\"type\":\"address\"}],\"name\":\"__ProposalsState_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"votingName_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"votingAddress_\",\"type\":\"address\"}],\"name\":\"addVoting\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"chainName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"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\":\"bytes\",\"name\":\"newSignerPubKey_\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature_\",\"type\":\"bytes\"}],\"name\":\"changeSigner\",\"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\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"methodId_\",\"type\":\"uint8\"}],\"name\":\"getNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"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\":\"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\":\"uint256\",\"name\":\"proposalId_\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"hide_\",\"type\":\"bool\"}],\"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\":\"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\":[],\"name\":\"signer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"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\":\"address\",\"name\":\"newImplementation_\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"proof_\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data_\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCallWithProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation_\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"proof_\",\"type\":\"bytes\"}],\"name\":\"upgradeToWithProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\"}]",
}

ProposalsStateMetaData contains all meta data concerning the ProposalsState contract.

Functions

This section is empty.

Types

type ProposalsState

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

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

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

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

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

func (*ProposalsStateAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateAdminChangedIterator) 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 ProposalsStateBeaconUpgraded

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

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

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

func (*ProposalsStateBeaconUpgradedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewProposalsStateCaller

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) ChainName

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

func (_ProposalsState *ProposalsStateCaller) GetNonce(opts *bind.CallOpts, methodId_ uint8) (*big.Int, error)

GetNonce is a free data retrieval call binding the contract method 0xf4fc6341.

Solidity: function getNonce(uint8 methodId_) view returns(uint256)

func (*ProposalsStateCaller) GetProposalConfig

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

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

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

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) GetVotingByKey

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

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) Implementation

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

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

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) MAGICID

func (_ProposalsState *ProposalsStateCaller) MAGICID(opts *bind.CallOpts) (uint8, error)

MAGICID is a free data retrieval call binding the contract method 0xdf95574a.

Solidity: function MAGIC_ID() view returns(uint8)

func (*ProposalsStateCaller) MAXIMUMCHOICESPEROPTION

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

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) Owner

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) P

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

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

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) Signer

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

type ProposalsStateCallerRaw

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

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

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) ChainName

func (_ProposalsState *ProposalsStateCallerSession) ChainName() (string, error)

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

Solidity: function chainName() view returns(string)

func (*ProposalsStateCallerSession) GetNonce

func (_ProposalsState *ProposalsStateCallerSession) GetNonce(methodId_ uint8) (*big.Int, error)

GetNonce is a free data retrieval call binding the contract method 0xf4fc6341.

Solidity: function getNonce(uint8 methodId_) view returns(uint256)

func (*ProposalsStateCallerSession) GetProposalConfig

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

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

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

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) GetVotingByKey

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

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) Implementation

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

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

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) MAGICID

func (_ProposalsState *ProposalsStateCallerSession) MAGICID() (uint8, error)

MAGICID is a free data retrieval call binding the contract method 0xdf95574a.

Solidity: function MAGIC_ID() view returns(uint8)

func (*ProposalsStateCallerSession) MAXIMUMCHOICESPEROPTION

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

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) Owner

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) P

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

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

Solidity: function P() view returns(uint256)

func (*ProposalsStateCallerSession) ProposalSMTImpl

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

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) Signer

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

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

Solidity: function signer() view returns(address)

type ProposalsStateFilterer

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

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

func NewProposalsStateFilterer

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

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

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

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) FilterOwnershipTransferred

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

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

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

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

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

func (*ProposalsStateFilterer) FilterProposalHidden

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) FilterUpgraded

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

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

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

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

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) ParseOwnershipTransferred

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

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

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

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

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

func (*ProposalsStateFilterer) ParseProposalHidden

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) ParseUpgraded

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

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

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

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

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) WatchOwnershipTransferred

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

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

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 0xcd423cc1203c0af96b9b3d68d73b3064a69de2d14450bb7181c5e5df2132b358.

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

func (*ProposalsStateFilterer) WatchProposalHidden

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) WatchUpgraded

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

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

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

ProposalsStateInitialized represents a Initialized event raised by the ProposalsState contract.

type ProposalsStateInitializedIterator

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

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

func (*ProposalsStateInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateInitializedIterator) 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 ProposalsStateOwnershipTransferred

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

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

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

func (*ProposalsStateOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateOwnershipTransferredIterator) 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 ProposalsStateProposalConfig

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

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

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

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

func (*ProposalsStateProposalConfigChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateProposalConfigChangedIterator) 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 ProposalsStateProposalCreated

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

ProposalsStateProposalCreated represents a ProposalCreated event raised by the ProposalsState contract.

type ProposalsStateProposalCreatedIterator

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

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

func (*ProposalsStateProposalCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateProposalCreatedIterator) 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 ProposalsStateProposalHidden

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

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

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

func (*ProposalsStateProposalHiddenIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateProposalHiddenIterator) 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 ProposalsStateProposalInfo

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

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

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

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

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 ProposalsStateSession

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) AddVoting

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) ChainName

func (_ProposalsState *ProposalsStateSession) ChainName() (string, error)

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

Solidity: function chainName() view returns(string)

func (*ProposalsStateSession) ChangeProposalConfig

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) ChangeSigner

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

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_) returns()

func (*ProposalsStateSession) GetNonce

func (_ProposalsState *ProposalsStateSession) GetNonce(methodId_ uint8) (*big.Int, error)

GetNonce is a free data retrieval call binding the contract method 0xf4fc6341.

Solidity: function getNonce(uint8 methodId_) view returns(uint256)

func (*ProposalsStateSession) GetProposalConfig

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

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

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

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) GetVotingByKey

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

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) HideProposal

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) Implementation

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

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

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) MAGICID

func (_ProposalsState *ProposalsStateSession) MAGICID() (uint8, error)

MAGICID is a free data retrieval call binding the contract method 0xdf95574a.

Solidity: function MAGIC_ID() view returns(uint8)

func (*ProposalsStateSession) MAXIMUMCHOICESPEROPTION

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

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) Owner

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) P

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

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

Solidity: function P() view returns(uint256)

func (*ProposalsStateSession) ProposalSMTImpl

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

func (_ProposalsState *ProposalsStateSession) ProposalsStateInit(signer_ common.Address, chainName_ string, proposalSMTImpl_ common.Address) (*types.Transaction, error)

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

Solidity: function __ProposalsState_init(address signer_, string chainName_, address proposalSMTImpl_) returns()

func (*ProposalsStateSession) ProxiableUUID

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

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

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

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

Solidity: function renounceOwnership() returns()

func (*ProposalsStateSession) Signer

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

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

Solidity: function signer() view returns(address)

func (*ProposalsStateSession) TransferOwnership

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

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

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) UpgradeToAndCallWithProof

func (_ProposalsState *ProposalsStateSession) UpgradeToAndCallWithProof(newImplementation_ common.Address, proof_ []byte, data_ []byte) (*types.Transaction, error)

UpgradeToAndCallWithProof is a paid mutator transaction binding the contract method 0xbf2c6db7.

Solidity: function upgradeToAndCallWithProof(address newImplementation_, bytes proof_, bytes data_) returns()

func (*ProposalsStateSession) UpgradeToWithProof

func (_ProposalsState *ProposalsStateSession) UpgradeToWithProof(newImplementation_ common.Address, proof_ []byte) (*types.Transaction, error)

UpgradeToWithProof is a paid mutator transaction binding the contract method 0x628543ab.

Solidity: function upgradeToWithProof(address newImplementation_, bytes proof_) returns()

func (*ProposalsStateSession) Vote

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()

type ProposalsStateTransactor

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

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

func NewProposalsStateTransactor

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) AddVoting

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

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) ChangeSigner

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

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_) returns()

func (*ProposalsStateTransactor) HideProposal

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) ProposalsStateInit

func (_ProposalsState *ProposalsStateTransactor) ProposalsStateInit(opts *bind.TransactOpts, signer_ common.Address, chainName_ string, proposalSMTImpl_ common.Address) (*types.Transaction, error)

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

Solidity: function __ProposalsState_init(address signer_, string chainName_, address proposalSMTImpl_) returns()

func (*ProposalsStateTransactor) RemoveVoting

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

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) TransferOwnership

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

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

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) UpgradeToAndCallWithProof

func (_ProposalsState *ProposalsStateTransactor) UpgradeToAndCallWithProof(opts *bind.TransactOpts, newImplementation_ common.Address, proof_ []byte, data_ []byte) (*types.Transaction, error)

UpgradeToAndCallWithProof is a paid mutator transaction binding the contract method 0xbf2c6db7.

Solidity: function upgradeToAndCallWithProof(address newImplementation_, bytes proof_, bytes data_) returns()

func (*ProposalsStateTransactor) UpgradeToWithProof

func (_ProposalsState *ProposalsStateTransactor) UpgradeToWithProof(opts *bind.TransactOpts, newImplementation_ common.Address, proof_ []byte) (*types.Transaction, error)

UpgradeToWithProof is a paid mutator transaction binding the contract method 0x628543ab.

Solidity: function upgradeToWithProof(address newImplementation_, bytes proof_) returns()

func (*ProposalsStateTransactor) Vote

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()

type ProposalsStateTransactorRaw

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

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

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

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) AddVoting

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

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) ChangeSigner

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

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_) returns()

func (*ProposalsStateTransactorSession) HideProposal

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) ProposalsStateInit

func (_ProposalsState *ProposalsStateTransactorSession) ProposalsStateInit(signer_ common.Address, chainName_ string, proposalSMTImpl_ common.Address) (*types.Transaction, error)

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

Solidity: function __ProposalsState_init(address signer_, string chainName_, address proposalSMTImpl_) returns()

func (*ProposalsStateTransactorSession) RemoveVoting

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

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

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

Solidity: function renounceOwnership() returns()

func (*ProposalsStateTransactorSession) TransferOwnership

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

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

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) UpgradeToAndCallWithProof

func (_ProposalsState *ProposalsStateTransactorSession) UpgradeToAndCallWithProof(newImplementation_ common.Address, proof_ []byte, data_ []byte) (*types.Transaction, error)

UpgradeToAndCallWithProof is a paid mutator transaction binding the contract method 0xbf2c6db7.

Solidity: function upgradeToAndCallWithProof(address newImplementation_, bytes proof_, bytes data_) returns()

func (*ProposalsStateTransactorSession) UpgradeToWithProof

func (_ProposalsState *ProposalsStateTransactorSession) UpgradeToWithProof(newImplementation_ common.Address, proof_ []byte) (*types.Transaction, error)

UpgradeToWithProof is a paid mutator transaction binding the contract method 0x628543ab.

Solidity: function upgradeToWithProof(address newImplementation_, bytes proof_) returns()

func (*ProposalsStateTransactorSession) Vote

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()

type ProposalsStateUpgraded

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

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

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

func (*ProposalsStateUpgradedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateUpgradedIterator) 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 ProposalsStateVoteCast

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

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

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

func (*ProposalsStateVoteCastIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalsStateVoteCastIterator) 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.

Jump to

Keyboard shortcuts

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