Documentation ¶
Index ¶
- func MedianCheck(val1Client *client.OjoClient) error
- func OracleParamChanges(historicStampPeriod uint64, maximumPriceStamps uint64, ...) []proposal.ParamChange
- func ParseProposalID(response *sdk.TxResponse) (uint64, error)
- func SleepUntilProposalEndTime(ojoClient *client.OjoClient, proposalID uint64) error
- func SubmitAndPassLegacyProposal(ojoClient *client.OjoClient, changes []proposal.ParamChange) error
- func SubmitAndPassProposal(ojoClient *client.OjoClient, msgs []sdk.Msg, title, summary string) error
- func VerifyProposalPassed(ojoClient *client.OjoClient, proposalID uint64) error
- type PriceStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MedianCheck ¶
MedianCheck waits for availability of all exchange rates from the denom accept list, records historical stamp data based on the oracle params, computes the median/median deviation and then compares that to the data in the median/median deviation gRPC query
func OracleParamChanges ¶
func OracleParamChanges( historicStampPeriod uint64, maximumPriceStamps uint64, medianStampPeriod uint64, ) []proposal.ParamChange
func ParseProposalID ¶
func ParseProposalID(response *sdk.TxResponse) (uint64, error)
ParseProposalID parses the proposalID from a tx response
func SleepUntilProposalEndTime ¶
SleepUntilProposalEndTime sleeps until the end of the voting period + 1 block
func SubmitAndPassLegacyProposal ¶
func SubmitAndPassLegacyProposal(ojoClient *client.OjoClient, changes []proposal.ParamChange) error
SubmitAndPassProposal submits a proposal and votes yes on it
func SubmitAndPassProposal ¶
Types ¶
type PriceStore ¶
type PriceStore struct {
// contains filtered or unexported fields
}
PriceStore is the in memory store for prices recorded by the price_listener with helper methods for calculating and verifying medians and median deviations
func NewPriceStore ¶
func NewPriceStore() *PriceStore
Click to show internal directories.
Click to hide internal directories.