Documentation
¶
Index ¶
- func ExecProposal(ctx context.Context, keyName string, prop Proposal, tn *cosmos.ChainNode) (string, error)
- func GetTxHashFromExec(stdout []byte) (string, error)
- func GetValAddresses(ctx context.Context, layer *cosmos.CosmosChain) (validators []*cosmos.ChainNode, valAccAddresses, valAddresses []string, ...)
- func LayerChainSpec(nv, nf int, chainId string) *interchaintest.ChainSpec
- func LayerEncoding() *testutil.TestEncodingConfig
- func LayerSpinup(t *testing.T) *cosmos.CosmosChain
- func TurnOnMinting(ctx context.Context, layer *cosmos.CosmosChain, validatorI *cosmos.ChainNode) error
- func WriteSecretsFile(ctx context.Context, rpc, bridge string, tn *cosmos.ChainNode) error
- type AggregateReport
- type CurrentTipsResponse
- type DataSpec
- type DataSpecResponse
- type Disputes
- type Evidence
- type GenerateQueryDataResponse
- type GetDataSpecResponse
- type GroupTally
- type Metadata
- type MicroReport
- type OpenDisputes
- type OracleReporter
- type Proposal
- type QueryDelegatorDelegationsResponse
- type QueryDisputesTallyResponse
- type QueryMeta
- type QueryOpenDisputesResponse
- type QueryReportersResponse
- type QuerySelectorReporterResponse
- type Reporter
- type ReportersResponse
- type ReportsResponse
- type TippedQueriesResponse
- type VoteCounts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecProposal ¶
func GetTxHashFromExec ¶
func GetValAddresses ¶
func LayerChainSpec ¶
func LayerEncoding ¶
func LayerEncoding() *testutil.TestEncodingConfig
func LayerSpinup ¶
func LayerSpinup(t *testing.T) *cosmos.CosmosChain
func TurnOnMinting ¶
Types ¶
type AggregateReport ¶
type AggregateReport struct { Aggregate struct { QueryID string `json:"query_id"` AggregateValue string `json:"aggregate_value"` AggregateReporter string `json:"aggregate_reporter"` ReporterPower string `json:"reporter_power"` Reporters []struct { Reporter string `json:"reporter"` Power string `json:"power"` BlockNumber string `json:"block_number"` } `json:"reporters"` Index string `json:"index"` Height string `json:"height"` MicroHeight string `json:"micro_height"` MetaID string `json:"meta_id"` } `json:"aggregate"` Timestamp string `json:"timestamp"` }
type CurrentTipsResponse ¶
type DataSpec ¶
type DataSpec struct { DocumentHash string `json:"document_hash,omitempty"` ResponseValueType string `json:"response_value_type,omitempty"` AbiComponents []*registrytypes.ABIComponent `json:"abi_components,omitempty"` AggregationMethod string `json:"aggregation_method,omitempty"` Registrar string `json:"registrar,omitempty"` ReportBlockWindow int `json:"report_block_window,omitempty"` }
type DataSpecResponse ¶
type DataSpecResponse struct { DocumentHash string `json:"document_hash,omitempty"` ResponseValueType string `json:"response_value_type,omitempty"` AbiComponents []*registrytypes.ABIComponent `json:"abi_components,omitempty"` AggregationMethod string `json:"aggregation_method,omitempty"` Registrar string `json:"registrar,omitempty"` ReportBlockWindow string `json:"report_block_window,omitempty"` }
type Disputes ¶
type Disputes struct { Disputes []struct { DisputeID string `json:"disputeId"` Metadata Metadata `json:"metadata"` } `json:"disputes"` }
for unmarshalling the disputes response
type Evidence ¶
type Evidence struct { Reporter string `json:"reporter"` Power string `json:"power"` QueryType string `json:"query_type"` QueryID string `json:"query_id"` AggregateMethod string `json:"aggregate_method"` Value string `json:"value"` Timestamp string `json:"timestamp"` BlockNumber string `json:"block_number"` }
type GenerateQueryDataResponse ¶
type GenerateQueryDataResponse struct {
QueryData []byte `json:"query_data"`
}
type GetDataSpecResponse ¶
type GetDataSpecResponse struct { Registrar string `json:"registrar"` QueryType string `json:"query_type"` Spec DataSpecResponse `json:"spec"` }
type GroupTally ¶
type GroupTally struct { VoteCount *VoteCounts `protobuf:"bytes,1,opt,name=voteCount,proto3" json:"voteCount,omitempty"` TotalPowerVoted string `protobuf:"varint,2,opt,name=totalPowerVoted,proto3" json:"totalPowerVoted,omitempty"` TotalGroupPower string `protobuf:"varint,3,opt,name=totalGroupPower,proto3" json:"totalGroupPower,omitempty"` }
type Metadata ¶
type Metadata struct { HashID string `json:"hash_id"` DisputeID string `json:"dispute_id"` DisputeCategory int `json:"dispute_category"` DisputeFee string `json:"dispute_fee"` DisputeStatus int `json:"dispute_status"` DisputeStartTime string `json:"dispute_start_time"` DisputeEndTime string `json:"dispute_end_time"` DisputeStartBlock string `json:"dispute_start_block"` DisputeRound string `json:"dispute_round"` SlashAmount string `json:"slash_amount"` BurnAmount string `json:"burn_amount"` InitialEvidence Evidence `json:"initial_evidence"` FeeTotal string `json:"fee_total"` PrevDisputeIDs []string `json:"prev_dispute_ids"` BlockNumber string `json:"block_number"` VoterReward string `json:"voter_reward"` }
type MicroReport ¶
type MicroReport struct { Reporter string `json:"reporter"` Power string `json:"power"` QueryType string `json:"query_type"` QueryID string `json:"query_id"` AggregateMethod string `json:"aggregate_method"` Value string `json:"value"` Timestamp string `json:"timestamp"` BlockNumber string `json:"block_number"` MetaId string `json:"meta_id"` }
type OpenDisputes ¶
type OpenDisputes struct {
Ids []string `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
}
type OracleReporter ¶
type QueryDelegatorDelegationsResponse ¶
type QueryDelegatorDelegationsResponse struct { DelegationResponses []stakingtypes.DelegationResponse `json:"delegation_responses"` Pagination struct { Total string `json:"total"` // Change from uint64 to string } `json:"pagination"` }
type QueryDisputesTallyResponse ¶
type QueryDisputesTallyResponse struct { Users *GroupTally `protobuf:"bytes,1,opt,name=users,proto3" json:"users,omitempty"` Reporters *GroupTally `protobuf:"bytes,2,opt,name=reporters,proto3" json:"reporters,omitempty"` Team *VoteCounts `protobuf:"bytes,3,opt,name=team,proto3" json:"team,omitempty"` }
type QueryMeta ¶
type QueryMeta struct { // unique id of the query that changes after query's lifecycle ends Id string `json:"id,omitempty"` // amount of tokens that was tipped Amount string `json:"amount"` // expiration time of the query Expiration string `json:"expiration,omitempty"` // timeframe of the query according to the data spec RegistrySpecBlockWindow string `json:"registry_spec_block_window,omitempty"` // indicates whether query has revealed reports HasRevealedReports bool `json:"has_revealed_reports,omitempty"` // query_data: decodable bytes to field of the data spec QueryData string `json:"query_data,omitempty"` // string identifier of the data spec QueryType string `json:"query_type,omitempty"` // bool cycle list query CycleList bool `json:"cycle_list,omitempty"` }
type QueryOpenDisputesResponse ¶
type QueryOpenDisputesResponse struct {
OpenDisputes *OpenDisputes `protobuf:"bytes,1,opt,name=openDisputes,proto3" json:"openDisputes,omitempty"`
}
type QueryReportersResponse ¶
type QuerySelectorReporterResponse ¶
type QuerySelectorReporterResponse struct {
Reporter string `json:"reporter"`
}
type Reporter ¶
type Reporter struct { Address string `json:"address"` Metadata *OracleReporter `json:"metadata"` Power string `json:"power"` }
type ReportersResponse ¶
type ReportersResponse struct {
Reporters []*Reporter `json:"reporters"`
}
type ReportsResponse ¶
type ReportsResponse struct {
MicroReports []MicroReport `json:"microReports"`
}
type TippedQueriesResponse ¶
type TippedQueriesResponse struct {
Queries []QueryMeta `json:"queries"`
}
type VoteCounts ¶
Click to show internal directories.
Click to hide internal directories.