UNPKG

@bandprotocol/bandchain.js

Version:

TypeScript library for Cosmos SDK and BandChain

114 lines (113 loc) 5.62 kB
import { BinaryReader, BinaryWriter } from "../../../binary"; /** Params is the data structure that keeps the parameters of the feeds module. */ export interface Params { /** admin is the address of the admin that is allowed to update reference source config on modules. */ admin: string; /** * allowable_block_time_discrepancy is the allowed discrepancy (in seconds) between validator price timestamp and * block_time. */ allowableBlockTimeDiscrepancy: bigint; /** grace_period is the time (in seconds) given for validators to adapt to changing in feed's interval. */ gracePeriod: bigint; /** * min_interval is the minimum limit of every feeds' interval (in seconds). * If the calculated interval is lower than this, it will be capped at this value. */ minInterval: bigint; /** * max_interval is the maximum limit of every feeds' interval (in seconds). * If the calculated interval of a feed is higher than this, it will not be capped at this value. */ maxInterval: bigint; /** power_step_threshold is the amount of minimum power required to put feed in the current feeds list. */ powerStepThreshold: bigint; /** max_current_feeds is the maximum number of feeds supported at a time. */ maxCurrentFeeds: bigint; /** cooldown_time represents the duration (in seconds) during which validators are prohibited from sending new prices. */ cooldownTime: bigint; /** min_deviation_basis_point is the minimum limit of every feeds' deviation (in basis point). */ minDeviationBasisPoint: bigint; /** max_deviation_basis_point is the maximum limit of every feeds' deviation (in basis point). */ maxDeviationBasisPoint: bigint; /** current_feeds_update_interval is the number of blocks after which the current feeds will be re-calculated. */ currentFeedsUpdateInterval: bigint; /** price_quorum is the minimum percentage of power that needs to be reached for a price to be processed. */ priceQuorum: string; /** max_signal_ids_per_signing is the maximum number of signals allowed in a single tss signing request. */ maxSignalIdsPerSigning: bigint; } export interface ParamsProtoMsg { typeUrl: "/band.feeds.v1beta1.Params"; value: Uint8Array; } /** Params is the data structure that keeps the parameters of the feeds module. */ export interface ParamsAmino { /** admin is the address of the admin that is allowed to update reference source config on modules. */ admin?: string; /** * allowable_block_time_discrepancy is the allowed discrepancy (in seconds) between validator price timestamp and * block_time. */ allowable_block_time_discrepancy?: string; /** grace_period is the time (in seconds) given for validators to adapt to changing in feed's interval. */ grace_period?: string; /** * min_interval is the minimum limit of every feeds' interval (in seconds). * If the calculated interval is lower than this, it will be capped at this value. */ min_interval?: string; /** * max_interval is the maximum limit of every feeds' interval (in seconds). * If the calculated interval of a feed is higher than this, it will not be capped at this value. */ max_interval?: string; /** power_step_threshold is the amount of minimum power required to put feed in the current feeds list. */ power_step_threshold?: string; /** max_current_feeds is the maximum number of feeds supported at a time. */ max_current_feeds?: string; /** cooldown_time represents the duration (in seconds) during which validators are prohibited from sending new prices. */ cooldown_time?: string; /** min_deviation_basis_point is the minimum limit of every feeds' deviation (in basis point). */ min_deviation_basis_point?: string; /** max_deviation_basis_point is the maximum limit of every feeds' deviation (in basis point). */ max_deviation_basis_point?: string; /** current_feeds_update_interval is the number of blocks after which the current feeds will be re-calculated. */ current_feeds_update_interval?: string; /** price_quorum is the minimum percentage of power that needs to be reached for a price to be processed. */ price_quorum?: string; /** max_signal_ids_per_signing is the maximum number of signals allowed in a single tss signing request. */ max_signal_ids_per_signing?: string; } export interface ParamsAminoMsg { type: "/band.feeds.v1beta1.Params"; value: ParamsAmino; } /** Params is the data structure that keeps the parameters of the feeds module. */ export interface ParamsSDKType { admin: string; allowable_block_time_discrepancy: bigint; grace_period: bigint; min_interval: bigint; max_interval: bigint; power_step_threshold: bigint; max_current_feeds: bigint; cooldown_time: bigint; min_deviation_basis_point: bigint; max_deviation_basis_point: bigint; current_feeds_update_interval: bigint; price_quorum: string; max_signal_ids_per_signing: bigint; } export declare const Params: { typeUrl: string; encode(message: Params, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Params; fromPartial(object: Partial<Params>): Params; fromAmino(object: ParamsAmino): Params; toAmino(message: Params): ParamsAmino; fromAminoMsg(object: ParamsAminoMsg): Params; fromProtoMsg(message: ParamsProtoMsg): Params; toProto(message: Params): Uint8Array; toProtoMsg(message: Params): ParamsProtoMsg; };