Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigResponse ¶
type ContractProposal ¶
type ContractProposal struct { Title string `json:"title"` Description string `json:"description"` Proposer string `json:"proposer"` StartHeight int `json:"start_height"` MinVotingPeriod any `json:"min_voting_period"` Expiration struct { AtTime AtTime `json:"at_time"` } `json:"expiration"` Threshold struct { ThresholdQuorum struct { Threshold struct { Percent string `json:"percent"` } `json:"threshold"` Quorum struct { Percent string `json:"percent"` } `json:"quorum"` } `json:"threshold_quorum"` } `json:"threshold"` TotalPower string `json:"total_power"` Msgs []struct { Custom struct { SubmitAdminProposal struct { AdminProposal struct { ParamChangeProposal struct { Title string `json:"title"` Description string `json:"description"` ParamChanges []struct { Subspace string `json:"subspace"` Key string `json:"key"` Value string `json:"value"` } `json:"param_changes"` } `json:"param_change_proposal"` } `json:"admin_proposal"` } `json:"submit_admin_proposal"` } `json:"custom"` } `json:"msgs"` Status ContractProposalStatus `json:"status"` Votes struct { Yes string `json:"yes"` No string `json:"no"` Abstain string `json:"abstain"` } `json:"votes"` AllowRevoting bool `json:"allow_revoting"` }
type ContractProposalStatus ¶
type ContractProposalStatus event.ContractProposalStatus
func (*ContractProposalStatus) MarshalJSON ¶
func (s *ContractProposalStatus) MarshalJSON() ([]byte, error)
func (*ContractProposalStatus) UnmarshalJSON ¶
func (s *ContractProposalStatus) UnmarshalJSON(data []byte) error
type CreditsVaultAllocationResponse ¶
type CreditsVaultAllocationResponse struct { Data struct { AllocatedAmount string `json:"allocated_amount"` WithdrawnAmount string `json:"withdrawn_amount"` Schedule struct { StartTime int64 `json:"start_time"` Cliff int `json:"cliff"` Duration int `json:"duration"` } `json:"schedule"` } `json:"data"` }
type ListProposalsResponse ¶
type ListProposalsResponse struct { Data struct { Proposals []struct { ID int `json:"id"` Proposal ContractProposal `json:"proposal"` } `json:"proposals"` } `json:"data"` }
type Pagination ¶
type ProposalModulesResponse ¶
type ProposalResponse ¶
type ProposalResponse struct {
Proposal Proposal `json:"proposal"`
}
type ProposalStatus ¶
type ProposalStatus event.ProposalStatus
func (*ProposalStatus) MarshalJSON ¶
func (s *ProposalStatus) MarshalJSON() ([]byte, error)
func (*ProposalStatus) UnmarshalJSON ¶
func (s *ProposalStatus) UnmarshalJSON(data []byte) error
type ProposalsResponse ¶
type ProposalsResponse struct {
Proposals []Proposal `json:"proposals"`
}
Click to show internal directories.
Click to hide internal directories.