Documentation ¶
Index ¶
- func QueryTx(ctx context.Context, cctx client.Context, hash []byte) (*sdk.TxResponse, error)
- func QueryTxsByEvents(ctx context.Context, cctx client.Context, events []string, page, limit int, ...) (*sdk.SearchTxsResult, error)
- func QueryVoteByTxQuery(ctx context.Context, cctx client.Context, params v1.QueryVoteParams) ([]byte, error)
- func QueryVotesByTxQuery(ctx context.Context, cctx client.Context, params v1.QueryProposalVotesParams) ([]byte, error)
- type Proposer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryTx ¶
QueryTx queries for a single transaction by a hash string in hex format. An error is returned if the transaction does not exist or cannot be queried.
func QueryTxsByEvents ¶
func QueryTxsByEvents(ctx context.Context, cctx client.Context, events []string, page, limit int, orderBy string) (*sdk.SearchTxsResult, error)
QueryTxsByEvents performs a search for transactions for a given set of events via the Tendermint RPC. An event takes the form of: "{eventAttribute}.{attributeKey} = '{attributeValue}'". Each event is concatenated with an 'AND' operand. It returns a slice of Info object containing txs and metadata. An error is returned if the query fails. If an empty string is provided it will order txs by asc
func QueryVoteByTxQuery ¶
func QueryVoteByTxQuery(ctx context.Context, cctx client.Context, params v1.QueryVoteParams) ([]byte, error)
QueryVoteByTxQuery will query for a single vote via a direct txs tags query.
func QueryVotesByTxQuery ¶
func QueryVotesByTxQuery(ctx context.Context, cctx client.Context, params v1.QueryProposalVotesParams) ([]byte, error)
QueryVotesByTxQuery will query for votes via a direct txs tags query. It will fetch and build votes directly from the returned txs and returns a JSON marshalled result or any error that occurred.
Types ¶
type Proposer ¶
type Proposer struct { ProposalID uint64 `json:"proposal_id" yaml:"proposal_id"` Proposer string `json:"proposer" yaml:"proposer"` }
Proposer contains metadata of a governance proposal used for querying a proposer.
func NewProposer ¶
NewProposer returns a new Proposer given id and proposer