types

package
v0.0.0-...-308190b Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amount

type Amount []struct {
	Denom  string `json:"denom"`
	Amount string `json:"amount"`
}

type Content

type Content struct {
	Type        string `json:"@type"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Recipient   string `json:"recipient"`
	Amount      Amount `json:"amount"`
}

type FinalTallyResult

type FinalTallyResult struct {
	Yes        string `json:"yes"`
	Abstain    string `json:"abstain"`
	No         string `json:"no"`
	NoWithVeto string `json:"no_with_veto"`
}

type List

type List struct {
	Proposals  Proposals  `json:"proposals"`
	Pagination Pagination `json:"pagination"`
}

type Pagination

type Pagination struct {
	NextKey interface{} `json:"next_key"`
	Total   string      `json:"total"`
}

type Proposals

type Proposals []struct {
	ProposalID       string           `json:"proposal_id"`
	Content          Content          `json:"content"`
	Status           string           `json:"status"`
	FinalTallyResult FinalTallyResult `json:"final_tally_result"`
	SubmitTime       time.Time        `json:"submit_time"`
	DepositEndTime   time.Time        `json:"deposit_end_time"`
	TotalDeposit     TotalDeposit     `json:"total_deposit"`
	VotingStartTime  time.Time        `json:"voting_start_time"`
	VotingEndTime    time.Time        `json:"voting_end_time"`
}

type TotalDeposit

type TotalDeposit []struct {
	Denom  string `json:"denom"`
	Amount string `json:"amount"`
}

Jump to

Keyboard shortcuts

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