governance

package
v0.1.5-alpha-telemetry Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GovernanceModuleABI = GovernanceModuleMetaData.ABI

GovernanceModuleABI is the input ABI used to generate the binding from. Deprecated: Use GovernanceModuleMetaData.ABI instead.

View Source
var GovernanceModuleMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"cancelProposal\",\"inputs\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getConstitution\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getDepositParams\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIGovernanceModule.DepositParams\",\"components\":[{\"name\":\"minDeposit\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"maxDepositPeriod\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getParams\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIGovernanceModule.Params\",\"components\":[{\"name\":\"minDeposit\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"maxDepositPeriod\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"votingPeriod\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"quorum\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"threshold\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"vetoThreshold\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"minInitialDepositRatio\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"proposalCancelRatio\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"proposalCancelDest\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"expeditedVotingPeriod\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"expeditedThreshold\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"expeditedMinDeposit\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"burnVoteQuorum\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"burnProposalDepositPrevote\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"burnVoteVeto\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getProposal\",\"inputs\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIGovernanceModule.Proposal\",\"components\":[{\"name\":\"id\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"messages\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.CodecAny[]\",\"components\":[{\"name\":\"typeURL\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"value\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"status\",\"type\":\"int32\",\"internalType\":\"int32\"},{\"name\":\"finalTallyResult\",\"type\":\"tuple\",\"internalType\":\"structIGovernanceModule.TallyResult\",\"components\":[{\"name\":\"yesCount\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"abstainCount\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"noCount\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"noWithVetoCount\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"submitTime\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"depositEndTime\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"totalDeposit\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"votingStartTime\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"votingEndTime\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"metadata\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"title\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"summary\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"proposer\",\"type\":\"address\",\"internalType\":\"address\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getProposalDeposits\",\"inputs\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getProposalDepositsByDepositor\",\"inputs\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"depositor\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getProposalTallyResult\",\"inputs\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIGovernanceModule.TallyResult\",\"components\":[{\"name\":\"yesCount\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"abstainCount\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"noCount\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"noWithVetoCount\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getProposalVotes\",\"inputs\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"pagination\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageRequest\",\"components\":[{\"name\":\"key\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"offset\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"limit\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"countTotal\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"reverse\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIGovernanceModule.Vote[]\",\"components\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"voter\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"options\",\"type\":\"tuple[]\",\"internalType\":\"structIGovernanceModule.WeightedVoteOption[]\",\"components\":[{\"name\":\"voteOption\",\"type\":\"int32\",\"internalType\":\"int32\"},{\"name\":\"weight\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"metadata\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageResponse\",\"components\":[{\"name\":\"nextKey\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"total\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getProposalVotesByVoter\",\"inputs\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"voter\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIGovernanceModule.Vote\",\"components\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"voter\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"options\",\"type\":\"tuple[]\",\"internalType\":\"structIGovernanceModule.WeightedVoteOption[]\",\"components\":[{\"name\":\"voteOption\",\"type\":\"int32\",\"internalType\":\"int32\"},{\"name\":\"weight\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"metadata\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getProposals\",\"inputs\":[{\"name\":\"proposalStatus\",\"type\":\"int32\",\"internalType\":\"int32\"},{\"name\":\"pagination\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageRequest\",\"components\":[{\"name\":\"key\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"offset\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"limit\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"countTotal\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"reverse\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIGovernanceModule.Proposal[]\",\"components\":[{\"name\":\"id\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"messages\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.CodecAny[]\",\"components\":[{\"name\":\"typeURL\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"value\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"status\",\"type\":\"int32\",\"internalType\":\"int32\"},{\"name\":\"finalTallyResult\",\"type\":\"tuple\",\"internalType\":\"structIGovernanceModule.TallyResult\",\"components\":[{\"name\":\"yesCount\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"abstainCount\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"noCount\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"noWithVetoCount\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"submitTime\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"depositEndTime\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"totalDeposit\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"votingStartTime\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"votingEndTime\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"metadata\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"title\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"summary\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"proposer\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageResponse\",\"components\":[{\"name\":\"nextKey\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"total\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTallyParams\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIGovernanceModule.TallyParams\",\"components\":[{\"name\":\"quorum\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"threshold\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"vetoThreshold\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getVotingParams\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIGovernanceModule.VotingParams\",\"components\":[{\"name\":\"votingPeriod\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"submitProposal\",\"inputs\":[{\"name\":\"proposal\",\"type\":\"tuple\",\"internalType\":\"structIGovernanceModule.MsgSubmitProposal\",\"components\":[{\"name\":\"messages\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.CodecAny[]\",\"components\":[{\"name\":\"typeURL\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"value\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"initialDeposit\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"proposer\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"metadata\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"title\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"summary\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"expedited\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"vote\",\"inputs\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"option\",\"type\":\"int32\",\"internalType\":\"int32\"},{\"name\":\"metadata\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"voteWeighted\",\"inputs\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"options\",\"type\":\"tuple[]\",\"internalType\":\"structIGovernanceModule.WeightedVoteOption[]\",\"components\":[{\"name\":\"voteOption\",\"type\":\"int32\",\"internalType\":\"int32\"},{\"name\":\"weight\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"metadata\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"CancelProposal\",\"inputs\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"indexed\":true,\"internalType\":\"uint64\"},{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ProposalDeposit\",\"inputs\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"indexed\":true,\"internalType\":\"uint64\"},{\"name\":\"amount\",\"type\":\"tuple[]\",\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ProposalSubmitted\",\"inputs\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"indexed\":true,\"internalType\":\"uint64\"},{\"name\":\"proposalSender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ProposalVoted\",\"inputs\":[{\"name\":\"proposalVote\",\"type\":\"tuple\",\"indexed\":false,\"internalType\":\"structIGovernanceModule.Vote\",\"components\":[{\"name\":\"proposalId\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"voter\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"options\",\"type\":\"tuple[]\",\"internalType\":\"structIGovernanceModule.WeightedVoteOption[]\",\"components\":[{\"name\":\"voteOption\",\"type\":\"int32\",\"internalType\":\"int32\"},{\"name\":\"weight\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"metadata\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"anonymous\":false}]",
}

GovernanceModuleMetaData contains all meta data concerning the GovernanceModule contract.

Functions

This section is empty.

Types

type CosmosCodecAny

type CosmosCodecAny struct {
	TypeURL string
	Value   []byte
}

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

type CosmosCoin

type CosmosCoin struct {
	Amount *big.Int
	Denom  string
}

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

type CosmosPageRequest

type CosmosPageRequest struct {
	Key        string
	Offset     uint64
	Limit      uint64
	CountTotal bool
	Reverse    bool
}

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

type CosmosPageResponse

type CosmosPageResponse struct {
	NextKey string
	Total   uint64
}

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

type GovernanceModule

type GovernanceModule struct {
	GovernanceModuleCaller     // Read-only binding to the contract
	GovernanceModuleTransactor // Write-only binding to the contract
	GovernanceModuleFilterer   // Log filterer for contract events
}

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

func NewGovernanceModule

func NewGovernanceModule(address common.Address, backend bind.ContractBackend) (*GovernanceModule, error)

NewGovernanceModule creates a new instance of GovernanceModule, bound to a specific deployed contract.

type GovernanceModuleCaller

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

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

func NewGovernanceModuleCaller

func NewGovernanceModuleCaller(address common.Address, caller bind.ContractCaller) (*GovernanceModuleCaller, error)

NewGovernanceModuleCaller creates a new read-only instance of GovernanceModule, bound to a specific deployed contract.

func (*GovernanceModuleCaller) GetConstitution

func (_GovernanceModule *GovernanceModuleCaller) GetConstitution(opts *bind.CallOpts) (string, error)

GetConstitution is a free data retrieval call binding the contract method 0xee05ad82.

Solidity: function getConstitution() view returns(string)

func (*GovernanceModuleCaller) GetDepositParams

func (_GovernanceModule *GovernanceModuleCaller) GetDepositParams(opts *bind.CallOpts) (IGovernanceModuleDepositParams, error)

GetDepositParams is a free data retrieval call binding the contract method 0x8e1e4829.

Solidity: function getDepositParams() view returns(((uint256,string)[],uint64))

func (*GovernanceModuleCaller) GetParams

func (_GovernanceModule *GovernanceModuleCaller) GetParams(opts *bind.CallOpts) (IGovernanceModuleParams, error)

GetParams is a free data retrieval call binding the contract method 0x5e615a6b.

Solidity: function getParams() view returns(((uint256,string)[],uint64,uint64,string,string,string,string,string,string,uint64,string,(uint256,string)[],bool,bool,bool))

func (*GovernanceModuleCaller) GetProposal

func (_GovernanceModule *GovernanceModuleCaller) GetProposal(opts *bind.CallOpts, proposalId uint64) (IGovernanceModuleProposal, error)

GetProposal is a free data retrieval call binding the contract method 0xf1610a28.

Solidity: function getProposal(uint64 proposalId) view returns((uint64,(string,bytes)[],int32,(string,string,string,string),uint64,uint64,(uint256,string)[],uint64,uint64,string,string,string,address))

func (*GovernanceModuleCaller) GetProposalDeposits

func (_GovernanceModule *GovernanceModuleCaller) GetProposalDeposits(opts *bind.CallOpts, proposalId uint64) ([]CosmosCoin, error)

GetProposalDeposits is a free data retrieval call binding the contract method 0x1bea3dc5.

Solidity: function getProposalDeposits(uint64 proposalId) view returns((uint256,string)[])

func (*GovernanceModuleCaller) GetProposalDepositsByDepositor

func (_GovernanceModule *GovernanceModuleCaller) GetProposalDepositsByDepositor(opts *bind.CallOpts, proposalId uint64, depositor common.Address) ([]CosmosCoin, error)

GetProposalDepositsByDepositor is a free data retrieval call binding the contract method 0x6d18e2e2.

Solidity: function getProposalDepositsByDepositor(uint64 proposalId, address depositor) view returns((uint256,string)[])

func (*GovernanceModuleCaller) GetProposalTallyResult

func (_GovernanceModule *GovernanceModuleCaller) GetProposalTallyResult(opts *bind.CallOpts, proposalId uint64) (IGovernanceModuleTallyResult, error)

GetProposalTallyResult is a free data retrieval call binding the contract method 0xefdc5825.

Solidity: function getProposalTallyResult(uint64 proposalId) view returns((string,string,string,string))

func (*GovernanceModuleCaller) GetProposalVotes

func (_GovernanceModule *GovernanceModuleCaller) GetProposalVotes(opts *bind.CallOpts, proposalId uint64, pagination CosmosPageRequest) ([]IGovernanceModuleVote, CosmosPageResponse, error)

GetProposalVotes is a free data retrieval call binding the contract method 0x0a6d4ae5.

Solidity: function getProposalVotes(uint64 proposalId, (string,uint64,uint64,bool,bool) pagination) view returns((uint64,address,(int32,string)[],string)[], (string,uint64))

func (*GovernanceModuleCaller) GetProposalVotesByVoter

func (_GovernanceModule *GovernanceModuleCaller) GetProposalVotesByVoter(opts *bind.CallOpts, proposalId uint64, voter common.Address) (IGovernanceModuleVote, error)

GetProposalVotesByVoter is a free data retrieval call binding the contract method 0x5a274e33.

Solidity: function getProposalVotesByVoter(uint64 proposalId, address voter) view returns((uint64,address,(int32,string)[],string))

func (*GovernanceModuleCaller) GetProposals

func (_GovernanceModule *GovernanceModuleCaller) GetProposals(opts *bind.CallOpts, proposalStatus int32, pagination CosmosPageRequest) ([]IGovernanceModuleProposal, CosmosPageResponse, error)

GetProposals is a free data retrieval call binding the contract method 0x917c9d92.

Solidity: function getProposals(int32 proposalStatus, (string,uint64,uint64,bool,bool) pagination) view returns((uint64,(string,bytes)[],int32,(string,string,string,string),uint64,uint64,(uint256,string)[],uint64,uint64,string,string,string,address)[], (string,uint64))

func (*GovernanceModuleCaller) GetTallyParams

func (_GovernanceModule *GovernanceModuleCaller) GetTallyParams(opts *bind.CallOpts) (IGovernanceModuleTallyParams, error)

GetTallyParams is a free data retrieval call binding the contract method 0x2f07b4a4.

Solidity: function getTallyParams() view returns((string,string,string))

func (*GovernanceModuleCaller) GetVotingParams

func (_GovernanceModule *GovernanceModuleCaller) GetVotingParams(opts *bind.CallOpts) (IGovernanceModuleVotingParams, error)

GetVotingParams is a free data retrieval call binding the contract method 0xa6c8210e.

Solidity: function getVotingParams() view returns((uint64))

type GovernanceModuleCallerRaw

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

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

func (*GovernanceModuleCallerRaw) Call

func (_GovernanceModule *GovernanceModuleCallerRaw) 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 GovernanceModuleCallerSession

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

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

func (*GovernanceModuleCallerSession) GetConstitution

func (_GovernanceModule *GovernanceModuleCallerSession) GetConstitution() (string, error)

GetConstitution is a free data retrieval call binding the contract method 0xee05ad82.

Solidity: function getConstitution() view returns(string)

func (*GovernanceModuleCallerSession) GetDepositParams

func (_GovernanceModule *GovernanceModuleCallerSession) GetDepositParams() (IGovernanceModuleDepositParams, error)

GetDepositParams is a free data retrieval call binding the contract method 0x8e1e4829.

Solidity: function getDepositParams() view returns(((uint256,string)[],uint64))

func (*GovernanceModuleCallerSession) GetParams

func (_GovernanceModule *GovernanceModuleCallerSession) GetParams() (IGovernanceModuleParams, error)

GetParams is a free data retrieval call binding the contract method 0x5e615a6b.

Solidity: function getParams() view returns(((uint256,string)[],uint64,uint64,string,string,string,string,string,string,uint64,string,(uint256,string)[],bool,bool,bool))

func (*GovernanceModuleCallerSession) GetProposal

func (_GovernanceModule *GovernanceModuleCallerSession) GetProposal(proposalId uint64) (IGovernanceModuleProposal, error)

GetProposal is a free data retrieval call binding the contract method 0xf1610a28.

Solidity: function getProposal(uint64 proposalId) view returns((uint64,(string,bytes)[],int32,(string,string,string,string),uint64,uint64,(uint256,string)[],uint64,uint64,string,string,string,address))

func (*GovernanceModuleCallerSession) GetProposalDeposits

func (_GovernanceModule *GovernanceModuleCallerSession) GetProposalDeposits(proposalId uint64) ([]CosmosCoin, error)

GetProposalDeposits is a free data retrieval call binding the contract method 0x1bea3dc5.

Solidity: function getProposalDeposits(uint64 proposalId) view returns((uint256,string)[])

func (*GovernanceModuleCallerSession) GetProposalDepositsByDepositor

func (_GovernanceModule *GovernanceModuleCallerSession) GetProposalDepositsByDepositor(proposalId uint64, depositor common.Address) ([]CosmosCoin, error)

GetProposalDepositsByDepositor is a free data retrieval call binding the contract method 0x6d18e2e2.

Solidity: function getProposalDepositsByDepositor(uint64 proposalId, address depositor) view returns((uint256,string)[])

func (*GovernanceModuleCallerSession) GetProposalTallyResult

func (_GovernanceModule *GovernanceModuleCallerSession) GetProposalTallyResult(proposalId uint64) (IGovernanceModuleTallyResult, error)

GetProposalTallyResult is a free data retrieval call binding the contract method 0xefdc5825.

Solidity: function getProposalTallyResult(uint64 proposalId) view returns((string,string,string,string))

func (*GovernanceModuleCallerSession) GetProposalVotes

func (_GovernanceModule *GovernanceModuleCallerSession) GetProposalVotes(proposalId uint64, pagination CosmosPageRequest) ([]IGovernanceModuleVote, CosmosPageResponse, error)

GetProposalVotes is a free data retrieval call binding the contract method 0x0a6d4ae5.

Solidity: function getProposalVotes(uint64 proposalId, (string,uint64,uint64,bool,bool) pagination) view returns((uint64,address,(int32,string)[],string)[], (string,uint64))

func (*GovernanceModuleCallerSession) GetProposalVotesByVoter

func (_GovernanceModule *GovernanceModuleCallerSession) GetProposalVotesByVoter(proposalId uint64, voter common.Address) (IGovernanceModuleVote, error)

GetProposalVotesByVoter is a free data retrieval call binding the contract method 0x5a274e33.

Solidity: function getProposalVotesByVoter(uint64 proposalId, address voter) view returns((uint64,address,(int32,string)[],string))

func (*GovernanceModuleCallerSession) GetProposals

func (_GovernanceModule *GovernanceModuleCallerSession) GetProposals(proposalStatus int32, pagination CosmosPageRequest) ([]IGovernanceModuleProposal, CosmosPageResponse, error)

GetProposals is a free data retrieval call binding the contract method 0x917c9d92.

Solidity: function getProposals(int32 proposalStatus, (string,uint64,uint64,bool,bool) pagination) view returns((uint64,(string,bytes)[],int32,(string,string,string,string),uint64,uint64,(uint256,string)[],uint64,uint64,string,string,string,address)[], (string,uint64))

func (*GovernanceModuleCallerSession) GetTallyParams

func (_GovernanceModule *GovernanceModuleCallerSession) GetTallyParams() (IGovernanceModuleTallyParams, error)

GetTallyParams is a free data retrieval call binding the contract method 0x2f07b4a4.

Solidity: function getTallyParams() view returns((string,string,string))

func (*GovernanceModuleCallerSession) GetVotingParams

func (_GovernanceModule *GovernanceModuleCallerSession) GetVotingParams() (IGovernanceModuleVotingParams, error)

GetVotingParams is a free data retrieval call binding the contract method 0xa6c8210e.

Solidity: function getVotingParams() view returns((uint64))

type GovernanceModuleCancelProposal

type GovernanceModuleCancelProposal struct {
	ProposalId uint64
	Sender     common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

GovernanceModuleCancelProposal represents a CancelProposal event raised by the GovernanceModule contract.

type GovernanceModuleCancelProposalIterator

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

GovernanceModuleCancelProposalIterator is returned from FilterCancelProposal and is used to iterate over the raw logs and unpacked data for CancelProposal events raised by the GovernanceModule contract.

func (*GovernanceModuleCancelProposalIterator) Close

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

func (*GovernanceModuleCancelProposalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GovernanceModuleCancelProposalIterator) 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 GovernanceModuleFilterer

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

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

func NewGovernanceModuleFilterer

func NewGovernanceModuleFilterer(address common.Address, filterer bind.ContractFilterer) (*GovernanceModuleFilterer, error)

NewGovernanceModuleFilterer creates a new log filterer instance of GovernanceModule, bound to a specific deployed contract.

func (*GovernanceModuleFilterer) FilterCancelProposal

func (_GovernanceModule *GovernanceModuleFilterer) FilterCancelProposal(opts *bind.FilterOpts, proposalId []uint64, sender []common.Address) (*GovernanceModuleCancelProposalIterator, error)

FilterCancelProposal is a free log retrieval operation binding the contract event 0xa6503d2a0de5ae1ea468cd5b57a9b85d8dc0d79fb1fea0be143a8333b95328fc.

Solidity: event CancelProposal(uint64 indexed proposalId, address indexed sender)

func (*GovernanceModuleFilterer) FilterProposalDeposit

func (_GovernanceModule *GovernanceModuleFilterer) FilterProposalDeposit(opts *bind.FilterOpts, proposalId []uint64) (*GovernanceModuleProposalDepositIterator, error)

FilterProposalDeposit is a free log retrieval operation binding the contract event 0x0b8153af883fcde0ae58cdf61d0344f4e2a7ed7c15d89542956ffebd34fc3e65.

Solidity: event ProposalDeposit(uint64 indexed proposalId, (uint256,string)[] amount)

func (*GovernanceModuleFilterer) FilterProposalSubmitted

func (_GovernanceModule *GovernanceModuleFilterer) FilterProposalSubmitted(opts *bind.FilterOpts, proposalId []uint64, proposalSender []common.Address) (*GovernanceModuleProposalSubmittedIterator, error)

FilterProposalSubmitted is a free log retrieval operation binding the contract event 0xbee1516ed28c1813e21a96532fa36a6e3399ec32b15f3cd7c8e0b4d928a88b84.

Solidity: event ProposalSubmitted(uint64 indexed proposalId, address indexed proposalSender)

func (*GovernanceModuleFilterer) FilterProposalVoted

func (_GovernanceModule *GovernanceModuleFilterer) FilterProposalVoted(opts *bind.FilterOpts) (*GovernanceModuleProposalVotedIterator, error)

FilterProposalVoted is a free log retrieval operation binding the contract event 0xbea88e2fb5ab72eba769e6ac6b62f35f8ffd2e85facdf45d068bc0e88d3b74e7.

Solidity: event ProposalVoted((uint64,address,(int32,string)[],string) proposalVote)

func (*GovernanceModuleFilterer) ParseCancelProposal

func (_GovernanceModule *GovernanceModuleFilterer) ParseCancelProposal(log types.Log) (*GovernanceModuleCancelProposal, error)

ParseCancelProposal is a log parse operation binding the contract event 0xa6503d2a0de5ae1ea468cd5b57a9b85d8dc0d79fb1fea0be143a8333b95328fc.

Solidity: event CancelProposal(uint64 indexed proposalId, address indexed sender)

func (*GovernanceModuleFilterer) ParseProposalDeposit

func (_GovernanceModule *GovernanceModuleFilterer) ParseProposalDeposit(log types.Log) (*GovernanceModuleProposalDeposit, error)

ParseProposalDeposit is a log parse operation binding the contract event 0x0b8153af883fcde0ae58cdf61d0344f4e2a7ed7c15d89542956ffebd34fc3e65.

Solidity: event ProposalDeposit(uint64 indexed proposalId, (uint256,string)[] amount)

func (*GovernanceModuleFilterer) ParseProposalSubmitted

func (_GovernanceModule *GovernanceModuleFilterer) ParseProposalSubmitted(log types.Log) (*GovernanceModuleProposalSubmitted, error)

ParseProposalSubmitted is a log parse operation binding the contract event 0xbee1516ed28c1813e21a96532fa36a6e3399ec32b15f3cd7c8e0b4d928a88b84.

Solidity: event ProposalSubmitted(uint64 indexed proposalId, address indexed proposalSender)

func (*GovernanceModuleFilterer) ParseProposalVoted

func (_GovernanceModule *GovernanceModuleFilterer) ParseProposalVoted(log types.Log) (*GovernanceModuleProposalVoted, error)

ParseProposalVoted is a log parse operation binding the contract event 0xbea88e2fb5ab72eba769e6ac6b62f35f8ffd2e85facdf45d068bc0e88d3b74e7.

Solidity: event ProposalVoted((uint64,address,(int32,string)[],string) proposalVote)

func (*GovernanceModuleFilterer) WatchCancelProposal

func (_GovernanceModule *GovernanceModuleFilterer) WatchCancelProposal(opts *bind.WatchOpts, sink chan<- *GovernanceModuleCancelProposal, proposalId []uint64, sender []common.Address) (event.Subscription, error)

WatchCancelProposal is a free log subscription operation binding the contract event 0xa6503d2a0de5ae1ea468cd5b57a9b85d8dc0d79fb1fea0be143a8333b95328fc.

Solidity: event CancelProposal(uint64 indexed proposalId, address indexed sender)

func (*GovernanceModuleFilterer) WatchProposalDeposit

func (_GovernanceModule *GovernanceModuleFilterer) WatchProposalDeposit(opts *bind.WatchOpts, sink chan<- *GovernanceModuleProposalDeposit, proposalId []uint64) (event.Subscription, error)

WatchProposalDeposit is a free log subscription operation binding the contract event 0x0b8153af883fcde0ae58cdf61d0344f4e2a7ed7c15d89542956ffebd34fc3e65.

Solidity: event ProposalDeposit(uint64 indexed proposalId, (uint256,string)[] amount)

func (*GovernanceModuleFilterer) WatchProposalSubmitted

func (_GovernanceModule *GovernanceModuleFilterer) WatchProposalSubmitted(opts *bind.WatchOpts, sink chan<- *GovernanceModuleProposalSubmitted, proposalId []uint64, proposalSender []common.Address) (event.Subscription, error)

WatchProposalSubmitted is a free log subscription operation binding the contract event 0xbee1516ed28c1813e21a96532fa36a6e3399ec32b15f3cd7c8e0b4d928a88b84.

Solidity: event ProposalSubmitted(uint64 indexed proposalId, address indexed proposalSender)

func (*GovernanceModuleFilterer) WatchProposalVoted

func (_GovernanceModule *GovernanceModuleFilterer) WatchProposalVoted(opts *bind.WatchOpts, sink chan<- *GovernanceModuleProposalVoted) (event.Subscription, error)

WatchProposalVoted is a free log subscription operation binding the contract event 0xbea88e2fb5ab72eba769e6ac6b62f35f8ffd2e85facdf45d068bc0e88d3b74e7.

Solidity: event ProposalVoted((uint64,address,(int32,string)[],string) proposalVote)

type GovernanceModuleProposalDeposit

type GovernanceModuleProposalDeposit struct {
	ProposalId uint64
	Amount     []CosmosCoin
	Raw        types.Log // Blockchain specific contextual infos
}

GovernanceModuleProposalDeposit represents a ProposalDeposit event raised by the GovernanceModule contract.

type GovernanceModuleProposalDepositIterator

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

GovernanceModuleProposalDepositIterator is returned from FilterProposalDeposit and is used to iterate over the raw logs and unpacked data for ProposalDeposit events raised by the GovernanceModule contract.

func (*GovernanceModuleProposalDepositIterator) Close

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

func (*GovernanceModuleProposalDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GovernanceModuleProposalDepositIterator) 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 GovernanceModuleProposalSubmitted

type GovernanceModuleProposalSubmitted struct {
	ProposalId     uint64
	ProposalSender common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

GovernanceModuleProposalSubmitted represents a ProposalSubmitted event raised by the GovernanceModule contract.

type GovernanceModuleProposalSubmittedIterator

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

GovernanceModuleProposalSubmittedIterator is returned from FilterProposalSubmitted and is used to iterate over the raw logs and unpacked data for ProposalSubmitted events raised by the GovernanceModule contract.

func (*GovernanceModuleProposalSubmittedIterator) Close

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

func (*GovernanceModuleProposalSubmittedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GovernanceModuleProposalSubmittedIterator) 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 GovernanceModuleProposalVoted

type GovernanceModuleProposalVoted struct {
	ProposalVote IGovernanceModuleVote
	Raw          types.Log // Blockchain specific contextual infos
}

GovernanceModuleProposalVoted represents a ProposalVoted event raised by the GovernanceModule contract.

type GovernanceModuleProposalVotedIterator

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

GovernanceModuleProposalVotedIterator is returned from FilterProposalVoted and is used to iterate over the raw logs and unpacked data for ProposalVoted events raised by the GovernanceModule contract.

func (*GovernanceModuleProposalVotedIterator) Close

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

func (*GovernanceModuleProposalVotedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GovernanceModuleProposalVotedIterator) 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 GovernanceModuleRaw

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

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

func (*GovernanceModuleRaw) Call

func (_GovernanceModule *GovernanceModuleRaw) 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 (*GovernanceModuleRaw) Transact

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

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

func (*GovernanceModuleRaw) Transfer

func (_GovernanceModule *GovernanceModuleRaw) 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 GovernanceModuleSession

type GovernanceModuleSession struct {
	Contract     *GovernanceModule // 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
}

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

func (*GovernanceModuleSession) CancelProposal

func (_GovernanceModule *GovernanceModuleSession) CancelProposal(proposalId uint64) (*types.Transaction, error)

CancelProposal is a paid mutator transaction binding the contract method 0x37a9a59e.

Solidity: function cancelProposal(uint64 proposalId) returns(uint64, uint64)

func (*GovernanceModuleSession) GetConstitution

func (_GovernanceModule *GovernanceModuleSession) GetConstitution() (string, error)

GetConstitution is a free data retrieval call binding the contract method 0xee05ad82.

Solidity: function getConstitution() view returns(string)

func (*GovernanceModuleSession) GetDepositParams

func (_GovernanceModule *GovernanceModuleSession) GetDepositParams() (IGovernanceModuleDepositParams, error)

GetDepositParams is a free data retrieval call binding the contract method 0x8e1e4829.

Solidity: function getDepositParams() view returns(((uint256,string)[],uint64))

func (*GovernanceModuleSession) GetParams

func (_GovernanceModule *GovernanceModuleSession) GetParams() (IGovernanceModuleParams, error)

GetParams is a free data retrieval call binding the contract method 0x5e615a6b.

Solidity: function getParams() view returns(((uint256,string)[],uint64,uint64,string,string,string,string,string,string,uint64,string,(uint256,string)[],bool,bool,bool))

func (*GovernanceModuleSession) GetProposal

func (_GovernanceModule *GovernanceModuleSession) GetProposal(proposalId uint64) (IGovernanceModuleProposal, error)

GetProposal is a free data retrieval call binding the contract method 0xf1610a28.

Solidity: function getProposal(uint64 proposalId) view returns((uint64,(string,bytes)[],int32,(string,string,string,string),uint64,uint64,(uint256,string)[],uint64,uint64,string,string,string,address))

func (*GovernanceModuleSession) GetProposalDeposits

func (_GovernanceModule *GovernanceModuleSession) GetProposalDeposits(proposalId uint64) ([]CosmosCoin, error)

GetProposalDeposits is a free data retrieval call binding the contract method 0x1bea3dc5.

Solidity: function getProposalDeposits(uint64 proposalId) view returns((uint256,string)[])

func (*GovernanceModuleSession) GetProposalDepositsByDepositor

func (_GovernanceModule *GovernanceModuleSession) GetProposalDepositsByDepositor(proposalId uint64, depositor common.Address) ([]CosmosCoin, error)

GetProposalDepositsByDepositor is a free data retrieval call binding the contract method 0x6d18e2e2.

Solidity: function getProposalDepositsByDepositor(uint64 proposalId, address depositor) view returns((uint256,string)[])

func (*GovernanceModuleSession) GetProposalTallyResult

func (_GovernanceModule *GovernanceModuleSession) GetProposalTallyResult(proposalId uint64) (IGovernanceModuleTallyResult, error)

GetProposalTallyResult is a free data retrieval call binding the contract method 0xefdc5825.

Solidity: function getProposalTallyResult(uint64 proposalId) view returns((string,string,string,string))

func (*GovernanceModuleSession) GetProposalVotes

func (_GovernanceModule *GovernanceModuleSession) GetProposalVotes(proposalId uint64, pagination CosmosPageRequest) ([]IGovernanceModuleVote, CosmosPageResponse, error)

GetProposalVotes is a free data retrieval call binding the contract method 0x0a6d4ae5.

Solidity: function getProposalVotes(uint64 proposalId, (string,uint64,uint64,bool,bool) pagination) view returns((uint64,address,(int32,string)[],string)[], (string,uint64))

func (*GovernanceModuleSession) GetProposalVotesByVoter

func (_GovernanceModule *GovernanceModuleSession) GetProposalVotesByVoter(proposalId uint64, voter common.Address) (IGovernanceModuleVote, error)

GetProposalVotesByVoter is a free data retrieval call binding the contract method 0x5a274e33.

Solidity: function getProposalVotesByVoter(uint64 proposalId, address voter) view returns((uint64,address,(int32,string)[],string))

func (*GovernanceModuleSession) GetProposals

func (_GovernanceModule *GovernanceModuleSession) GetProposals(proposalStatus int32, pagination CosmosPageRequest) ([]IGovernanceModuleProposal, CosmosPageResponse, error)

GetProposals is a free data retrieval call binding the contract method 0x917c9d92.

Solidity: function getProposals(int32 proposalStatus, (string,uint64,uint64,bool,bool) pagination) view returns((uint64,(string,bytes)[],int32,(string,string,string,string),uint64,uint64,(uint256,string)[],uint64,uint64,string,string,string,address)[], (string,uint64))

func (*GovernanceModuleSession) GetTallyParams

func (_GovernanceModule *GovernanceModuleSession) GetTallyParams() (IGovernanceModuleTallyParams, error)

GetTallyParams is a free data retrieval call binding the contract method 0x2f07b4a4.

Solidity: function getTallyParams() view returns((string,string,string))

func (*GovernanceModuleSession) GetVotingParams

func (_GovernanceModule *GovernanceModuleSession) GetVotingParams() (IGovernanceModuleVotingParams, error)

GetVotingParams is a free data retrieval call binding the contract method 0xa6c8210e.

Solidity: function getVotingParams() view returns((uint64))

func (*GovernanceModuleSession) SubmitProposal

func (_GovernanceModule *GovernanceModuleSession) SubmitProposal(proposal IGovernanceModuleMsgSubmitProposal) (*types.Transaction, error)

SubmitProposal is a paid mutator transaction binding the contract method 0x8ed6982d.

Solidity: function submitProposal(((string,bytes)[],(uint256,string)[],address,string,string,string,bool) proposal) returns(uint64)

func (*GovernanceModuleSession) Vote

func (_GovernanceModule *GovernanceModuleSession) Vote(proposalId uint64, option int32, metadata string) (*types.Transaction, error)

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

Solidity: function vote(uint64 proposalId, int32 option, string metadata) returns(bool)

func (*GovernanceModuleSession) VoteWeighted

func (_GovernanceModule *GovernanceModuleSession) VoteWeighted(proposalId uint64, options []IGovernanceModuleWeightedVoteOption, metadata string) (*types.Transaction, error)

VoteWeighted is a paid mutator transaction binding the contract method 0xf028295e.

Solidity: function voteWeighted(uint64 proposalId, (int32,string)[] options, string metadata) returns(bool)

type GovernanceModuleTransactor

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

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

func NewGovernanceModuleTransactor

func NewGovernanceModuleTransactor(address common.Address, transactor bind.ContractTransactor) (*GovernanceModuleTransactor, error)

NewGovernanceModuleTransactor creates a new write-only instance of GovernanceModule, bound to a specific deployed contract.

func (*GovernanceModuleTransactor) CancelProposal

func (_GovernanceModule *GovernanceModuleTransactor) CancelProposal(opts *bind.TransactOpts, proposalId uint64) (*types.Transaction, error)

CancelProposal is a paid mutator transaction binding the contract method 0x37a9a59e.

Solidity: function cancelProposal(uint64 proposalId) returns(uint64, uint64)

func (*GovernanceModuleTransactor) SubmitProposal

func (_GovernanceModule *GovernanceModuleTransactor) SubmitProposal(opts *bind.TransactOpts, proposal IGovernanceModuleMsgSubmitProposal) (*types.Transaction, error)

SubmitProposal is a paid mutator transaction binding the contract method 0x8ed6982d.

Solidity: function submitProposal(((string,bytes)[],(uint256,string)[],address,string,string,string,bool) proposal) returns(uint64)

func (*GovernanceModuleTransactor) Vote

func (_GovernanceModule *GovernanceModuleTransactor) Vote(opts *bind.TransactOpts, proposalId uint64, option int32, metadata string) (*types.Transaction, error)

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

Solidity: function vote(uint64 proposalId, int32 option, string metadata) returns(bool)

func (*GovernanceModuleTransactor) VoteWeighted

func (_GovernanceModule *GovernanceModuleTransactor) VoteWeighted(opts *bind.TransactOpts, proposalId uint64, options []IGovernanceModuleWeightedVoteOption, metadata string) (*types.Transaction, error)

VoteWeighted is a paid mutator transaction binding the contract method 0xf028295e.

Solidity: function voteWeighted(uint64 proposalId, (int32,string)[] options, string metadata) returns(bool)

type GovernanceModuleTransactorRaw

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

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

func (*GovernanceModuleTransactorRaw) Transact

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

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

func (*GovernanceModuleTransactorRaw) Transfer

func (_GovernanceModule *GovernanceModuleTransactorRaw) 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 GovernanceModuleTransactorSession

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

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

func (*GovernanceModuleTransactorSession) CancelProposal

func (_GovernanceModule *GovernanceModuleTransactorSession) CancelProposal(proposalId uint64) (*types.Transaction, error)

CancelProposal is a paid mutator transaction binding the contract method 0x37a9a59e.

Solidity: function cancelProposal(uint64 proposalId) returns(uint64, uint64)

func (*GovernanceModuleTransactorSession) SubmitProposal

func (_GovernanceModule *GovernanceModuleTransactorSession) SubmitProposal(proposal IGovernanceModuleMsgSubmitProposal) (*types.Transaction, error)

SubmitProposal is a paid mutator transaction binding the contract method 0x8ed6982d.

Solidity: function submitProposal(((string,bytes)[],(uint256,string)[],address,string,string,string,bool) proposal) returns(uint64)

func (*GovernanceModuleTransactorSession) Vote

func (_GovernanceModule *GovernanceModuleTransactorSession) Vote(proposalId uint64, option int32, metadata string) (*types.Transaction, error)

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

Solidity: function vote(uint64 proposalId, int32 option, string metadata) returns(bool)

func (*GovernanceModuleTransactorSession) VoteWeighted

func (_GovernanceModule *GovernanceModuleTransactorSession) VoteWeighted(proposalId uint64, options []IGovernanceModuleWeightedVoteOption, metadata string) (*types.Transaction, error)

VoteWeighted is a paid mutator transaction binding the contract method 0xf028295e.

Solidity: function voteWeighted(uint64 proposalId, (int32,string)[] options, string metadata) returns(bool)

type IGovernanceModuleDepositParams

type IGovernanceModuleDepositParams struct {
	MinDeposit       []CosmosCoin
	MaxDepositPeriod uint64
}

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

type IGovernanceModuleMsgSubmitProposal

type IGovernanceModuleMsgSubmitProposal struct {
	Messages       []CosmosCodecAny
	InitialDeposit []CosmosCoin
	Proposer       common.Address
	Metadata       string
	Title          string
	Summary        string
	Expedited      bool
}

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

type IGovernanceModuleParams

type IGovernanceModuleParams struct {
	MinDeposit                 []CosmosCoin
	MaxDepositPeriod           uint64
	VotingPeriod               uint64
	Quorum                     string
	Threshold                  string
	VetoThreshold              string
	MinInitialDepositRatio     string
	ProposalCancelRatio        string
	ProposalCancelDest         string
	ExpeditedVotingPeriod      uint64
	ExpeditedThreshold         string
	ExpeditedMinDeposit        []CosmosCoin
	BurnVoteQuorum             bool
	BurnProposalDepositPrevote bool
	BurnVoteVeto               bool
}

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

type IGovernanceModuleProposal

type IGovernanceModuleProposal struct {
	Id               uint64
	Messages         []CosmosCodecAny
	Status           int32
	FinalTallyResult IGovernanceModuleTallyResult
	SubmitTime       uint64
	DepositEndTime   uint64
	TotalDeposit     []CosmosCoin
	VotingStartTime  uint64
	VotingEndTime    uint64
	Metadata         string
	Title            string
	Summary          string
	Proposer         common.Address
}

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

type IGovernanceModuleTallyParams

type IGovernanceModuleTallyParams struct {
	Quorum        string
	Threshold     string
	VetoThreshold string
}

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

type IGovernanceModuleTallyResult

type IGovernanceModuleTallyResult struct {
	YesCount        string
	AbstainCount    string
	NoCount         string
	NoWithVetoCount string
}

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

type IGovernanceModuleVote

type IGovernanceModuleVote struct {
	ProposalId uint64
	Voter      common.Address
	Options    []IGovernanceModuleWeightedVoteOption
	Metadata   string
}

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

type IGovernanceModuleVotingParams

type IGovernanceModuleVotingParams struct {
	VotingPeriod uint64
}

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

type IGovernanceModuleWeightedVoteOption

type IGovernanceModuleWeightedVoteOption struct {
	VoteOption int32
	Weight     string
}

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

Jump to

Keyboard shortcuts

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