UNPKG

@bandprotocol/bandchain.js

Version:

TypeScript library for Cosmos SDK and BandChain

578 lines (577 loc) 25.2 kB
import { Encoder } from "./encoder"; import { BinaryReader, BinaryWriter } from "../../../binary"; /** PriceStatus is a structure that defines the price status of a price. */ export declare enum PriceStatus { /** PRICE_STATUS_UNSPECIFIED - PRICE_STATUS_UNSPECIFIED is an unspecified price status. */ PRICE_STATUS_UNSPECIFIED = 0, /** PRICE_STATUS_UNKNOWN_SIGNAL_ID - PRICE_STATUS_UNKNOWN_SIGNAL_ID is an unknown signal id price status. */ PRICE_STATUS_UNKNOWN_SIGNAL_ID = 1, /** PRICE_STATUS_NOT_READY - PRICE_STATUS_NOT_READY is a not ready price status. */ PRICE_STATUS_NOT_READY = 2, /** PRICE_STATUS_AVAILABLE - PRICE_STATUS_AVAILABLE is an available price status. */ PRICE_STATUS_AVAILABLE = 3, /** PRICE_STATUS_NOT_IN_CURRENT_FEEDS - PRICE_STATUS_NOT_IN_CURRENT_FEEDS is a not in current feed price status. */ PRICE_STATUS_NOT_IN_CURRENT_FEEDS = 4, UNRECOGNIZED = -1 } export declare const PriceStatusSDKType: typeof PriceStatus; export declare const PriceStatusAmino: typeof PriceStatus; export declare function priceStatusFromJSON(object: any): PriceStatus; export declare function priceStatusToJSON(object: PriceStatus): string; /** SignalPriceStatus is a structure that defines the price status of a signal id. */ export declare enum SignalPriceStatus { /** SIGNAL_PRICE_STATUS_UNSPECIFIED - SIGNAL_PRICE_STATUS_UNSPECIFIED is an unspecified signal price status. */ SIGNAL_PRICE_STATUS_UNSPECIFIED = 0, /** SIGNAL_PRICE_STATUS_UNSUPPORTED - SIGNAL_PRICE_STATUS_UNSUPPORTED is an unsupported signal price status. */ SIGNAL_PRICE_STATUS_UNSUPPORTED = 1, /** SIGNAL_PRICE_STATUS_UNAVAILABLE - SIGNAL_PRICE_STATUS_UNAVAILABLE is an unavailable signal price status. */ SIGNAL_PRICE_STATUS_UNAVAILABLE = 2, /** SIGNAL_PRICE_STATUS_AVAILABLE - SIGNAL_PRICE_STATUS_AVAILABLE is an available signal price status. */ SIGNAL_PRICE_STATUS_AVAILABLE = 3, UNRECOGNIZED = -1 } export declare const SignalPriceStatusSDKType: typeof SignalPriceStatus; export declare const SignalPriceStatusAmino: typeof SignalPriceStatus; export declare function signalPriceStatusFromJSON(object: any): SignalPriceStatus; export declare function signalPriceStatusToJSON(object: SignalPriceStatus): string; /** Signal is the data structure that contains signal id and power of that signal. */ export interface Signal { /** id is the id of the signal. */ id: string; /** power is the power of the corresponding signal id. */ power: bigint; } export interface SignalProtoMsg { typeUrl: "/band.feeds.v1beta1.Signal"; value: Uint8Array; } /** Signal is the data structure that contains signal id and power of that signal. */ export interface SignalAmino { /** id is the id of the signal. */ id?: string; /** power is the power of the corresponding signal id. */ power?: string; } export interface SignalAminoMsg { type: "/band.feeds.v1beta1.Signal"; value: SignalAmino; } /** Signal is the data structure that contains signal id and power of that signal. */ export interface SignalSDKType { id: string; power: bigint; } /** Vote is the data structure that contains array of signals of a voter. */ export interface Vote { /** voter is the address of the voter of this signals. */ voter: string; /** signals is a list of signals submit by the voter. */ signals: Signal[]; } export interface VoteProtoMsg { typeUrl: "/band.feeds.v1beta1.Vote"; value: Uint8Array; } /** Vote is the data structure that contains array of signals of a voter. */ export interface VoteAmino { /** voter is the address of the voter of this signals. */ voter?: string; /** signals is a list of signals submit by the voter. */ signals?: SignalAmino[]; } export interface VoteAminoMsg { type: "/band.feeds.v1beta1.Vote"; value: VoteAmino; } /** Vote is the data structure that contains array of signals of a voter. */ export interface VoteSDKType { voter: string; signals: SignalSDKType[]; } /** Feed is a structure that holds a signal id, its total power, and its calculated interval. */ export interface Feed { /** signal_id is the unique string that identifies the unit of feed. */ signalId: string; /** power is the power of the corresponding signal id. */ power: bigint; /** interval is the interval of the price feed. */ interval: bigint; } export interface FeedProtoMsg { typeUrl: "/band.feeds.v1beta1.Feed"; value: Uint8Array; } /** Feed is a structure that holds a signal id, its total power, and its calculated interval. */ export interface FeedAmino { /** signal_id is the unique string that identifies the unit of feed. */ signal_id?: string; /** power is the power of the corresponding signal id. */ power?: string; /** interval is the interval of the price feed. */ interval?: string; } export interface FeedAminoMsg { type: "/band.feeds.v1beta1.Feed"; value: FeedAmino; } /** Feed is a structure that holds a signal id, its total power, and its calculated interval. */ export interface FeedSDKType { signal_id: string; power: bigint; interval: bigint; } /** FeedWithDeviation is a structure that holds a signal id, its total power, and its calculated interval and deviation. */ export interface FeedWithDeviation { /** signal_id is the unique string that identifies the unit of feed. */ signalId: string; /** power is the power of the corresponding signal id. */ power: bigint; /** interval is the interval of the price feed. */ interval: bigint; /** deviation_basis_point is the maximum deviation value the feed can tolerate, expressed in basis points. */ deviationBasisPoint: bigint; } export interface FeedWithDeviationProtoMsg { typeUrl: "/band.feeds.v1beta1.FeedWithDeviation"; value: Uint8Array; } /** FeedWithDeviation is a structure that holds a signal id, its total power, and its calculated interval and deviation. */ export interface FeedWithDeviationAmino { /** signal_id is the unique string that identifies the unit of feed. */ signal_id?: string; /** power is the power of the corresponding signal id. */ power?: string; /** interval is the interval of the price feed. */ interval?: string; /** deviation_basis_point is the maximum deviation value the feed can tolerate, expressed in basis points. */ deviation_basis_point?: string; } export interface FeedWithDeviationAminoMsg { type: "/band.feeds.v1beta1.FeedWithDeviation"; value: FeedWithDeviationAmino; } /** FeedWithDeviation is a structure that holds a signal id, its total power, and its calculated interval and deviation. */ export interface FeedWithDeviationSDKType { signal_id: string; power: bigint; interval: bigint; deviation_basis_point: bigint; } /** CurrentFeeds is a structure that holds a list of currently supported feeds, and its last update time and block. */ export interface CurrentFeeds { /** feeds is a list of currently supported feeds. */ feeds: Feed[]; /** last_update_timestamp is the timestamp of the last time supported feeds list is updated. */ lastUpdateTimestamp: bigint; /** last_update_block is the number of blocks of the last time supported feeds list is updated. */ lastUpdateBlock: bigint; } export interface CurrentFeedsProtoMsg { typeUrl: "/band.feeds.v1beta1.CurrentFeeds"; value: Uint8Array; } /** CurrentFeeds is a structure that holds a list of currently supported feeds, and its last update time and block. */ export interface CurrentFeedsAmino { /** feeds is a list of currently supported feeds. */ feeds?: FeedAmino[]; /** last_update_timestamp is the timestamp of the last time supported feeds list is updated. */ last_update_timestamp?: string; /** last_update_block is the number of blocks of the last time supported feeds list is updated. */ last_update_block?: string; } export interface CurrentFeedsAminoMsg { type: "/band.feeds.v1beta1.CurrentFeeds"; value: CurrentFeedsAmino; } /** CurrentFeeds is a structure that holds a list of currently supported feeds, and its last update time and block. */ export interface CurrentFeedsSDKType { feeds: FeedSDKType[]; last_update_timestamp: bigint; last_update_block: bigint; } /** * CurrentFeedWithDeviations is a structure that holds a list of currently supported feed-with-deviations, and its * last update time and block. */ export interface CurrentFeedWithDeviations { /** feeds is a list of currently supported feed-with-deviations. */ feeds: FeedWithDeviation[]; /** last_update_timestamp is the timestamp of the last time supported feeds list is updated. */ lastUpdateTimestamp: bigint; /** last_update_block is the number of blocks of the last time supported feeds list is updated. */ lastUpdateBlock: bigint; } export interface CurrentFeedWithDeviationsProtoMsg { typeUrl: "/band.feeds.v1beta1.CurrentFeedWithDeviations"; value: Uint8Array; } /** * CurrentFeedWithDeviations is a structure that holds a list of currently supported feed-with-deviations, and its * last update time and block. */ export interface CurrentFeedWithDeviationsAmino { /** feeds is a list of currently supported feed-with-deviations. */ feeds?: FeedWithDeviationAmino[]; /** last_update_timestamp is the timestamp of the last time supported feeds list is updated. */ last_update_timestamp?: string; /** last_update_block is the number of blocks of the last time supported feeds list is updated. */ last_update_block?: string; } export interface CurrentFeedWithDeviationsAminoMsg { type: "/band.feeds.v1beta1.CurrentFeedWithDeviations"; value: CurrentFeedWithDeviationsAmino; } /** * CurrentFeedWithDeviations is a structure that holds a list of currently supported feed-with-deviations, and its * last update time and block. */ export interface CurrentFeedWithDeviationsSDKType { feeds: FeedWithDeviationSDKType[]; last_update_timestamp: bigint; last_update_block: bigint; } /** Price is a structure that defines the price of a signal id. */ export interface Price { /** status is the status of a the price. */ status: PriceStatus; /** signal_id is the signal id of the price. */ signalId: string; /** price is the price of the signal id. */ price: bigint; /** timestamp is the timestamp at which the price was aggregated. */ timestamp: bigint; } export interface PriceProtoMsg { typeUrl: "/band.feeds.v1beta1.Price"; value: Uint8Array; } /** Price is a structure that defines the price of a signal id. */ export interface PriceAmino { /** status is the status of a the price. */ status?: PriceStatus; /** signal_id is the signal id of the price. */ signal_id?: string; /** price is the price of the signal id. */ price?: string; /** timestamp is the timestamp at which the price was aggregated. */ timestamp?: string; } export interface PriceAminoMsg { type: "/band.feeds.v1beta1.Price"; value: PriceAmino; } /** Price is a structure that defines the price of a signal id. */ export interface PriceSDKType { status: PriceStatus; signal_id: string; price: bigint; timestamp: bigint; } /** SignalPrice is a structure that defines the signaled price of a signal id. */ export interface SignalPrice { /** status is the status of the signal price. */ status: SignalPriceStatus; /** signal_id is the signal id of the price. */ signalId: string; /** price is the price submitted by the validator. */ price: bigint; } export interface SignalPriceProtoMsg { typeUrl: "/band.feeds.v1beta1.SignalPrice"; value: Uint8Array; } /** SignalPrice is a structure that defines the signaled price of a signal id. */ export interface SignalPriceAmino { /** status is the status of the signal price. */ status?: SignalPriceStatus; /** signal_id is the signal id of the price. */ signal_id?: string; /** price is the price submitted by the validator. */ price?: string; } export interface SignalPriceAminoMsg { type: "/band.feeds.v1beta1.SignalPrice"; value: SignalPriceAmino; } /** SignalPrice is a structure that defines the signaled price of a signal id. */ export interface SignalPriceSDKType { status: SignalPriceStatus; signal_id: string; price: bigint; } /** ValidatorPrice is a structure that defines the price submitted by a validator for a signal id. */ export interface ValidatorPrice { /** signal_price_status is the status of a signal price submitted. */ signalPriceStatus: SignalPriceStatus; /** signal_id is the signal id of the price. */ signalId: string; /** price is the price submitted by the validator. */ price: bigint; /** timestamp is the timestamp at which the price was submitted. */ timestamp: bigint; /** block_height is the block height at which the price was submitted. */ blockHeight: bigint; } export interface ValidatorPriceProtoMsg { typeUrl: "/band.feeds.v1beta1.ValidatorPrice"; value: Uint8Array; } /** ValidatorPrice is a structure that defines the price submitted by a validator for a signal id. */ export interface ValidatorPriceAmino { /** signal_price_status is the status of a signal price submitted. */ signal_price_status?: SignalPriceStatus; /** signal_id is the signal id of the price. */ signal_id?: string; /** price is the price submitted by the validator. */ price?: string; /** timestamp is the timestamp at which the price was submitted. */ timestamp?: string; /** block_height is the block height at which the price was submitted. */ block_height?: string; } export interface ValidatorPriceAminoMsg { type: "/band.feeds.v1beta1.ValidatorPrice"; value: ValidatorPriceAmino; } /** ValidatorPrice is a structure that defines the price submitted by a validator for a signal id. */ export interface ValidatorPriceSDKType { signal_price_status: SignalPriceStatus; signal_id: string; price: bigint; timestamp: bigint; block_height: bigint; } /** * ValidatorPriceList is a structure that holds a list of validator prices of * a validator and its address. */ export interface ValidatorPriceList { /** validator is the validator address. */ validator: string; /** validators_prices is a list of validator prices. */ validatorPrices: ValidatorPrice[]; } export interface ValidatorPriceListProtoMsg { typeUrl: "/band.feeds.v1beta1.ValidatorPriceList"; value: Uint8Array; } /** * ValidatorPriceList is a structure that holds a list of validator prices of * a validator and its address. */ export interface ValidatorPriceListAmino { /** validator is the validator address. */ validator?: string; /** validators_prices is a list of validator prices. */ validator_prices?: ValidatorPriceAmino[]; } export interface ValidatorPriceListAminoMsg { type: "/band.feeds.v1beta1.ValidatorPriceList"; value: ValidatorPriceListAmino; } /** * ValidatorPriceList is a structure that holds a list of validator prices of * a validator and its address. */ export interface ValidatorPriceListSDKType { validator: string; validator_prices: ValidatorPriceSDKType[]; } /** ReferenceSourceConfig is a structure that defines the information of reference price source. */ export interface ReferenceSourceConfig { /** registry_ipfs_hash is the hash of the reference registry. */ registryIpfsHash: string; /** registry_version is the version of the reference registry. */ registryVersion: string; } export interface ReferenceSourceConfigProtoMsg { typeUrl: "/band.feeds.v1beta1.ReferenceSourceConfig"; value: Uint8Array; } /** ReferenceSourceConfig is a structure that defines the information of reference price source. */ export interface ReferenceSourceConfigAmino { /** registry_ipfs_hash is the hash of the reference registry. */ registry_ipfs_hash?: string; /** registry_version is the version of the reference registry. */ registry_version?: string; } export interface ReferenceSourceConfigAminoMsg { type: "/band.feeds.v1beta1.ReferenceSourceConfig"; value: ReferenceSourceConfigAmino; } /** ReferenceSourceConfig is a structure that defines the information of reference price source. */ export interface ReferenceSourceConfigSDKType { registry_ipfs_hash: string; registry_version: string; } /** FeedsSignatureOrder defines a general signature order for feed data. */ export interface FeedsSignatureOrder { /** signal_ids is the list of signal ids that require signatures. */ signalIds: string[]; /** encoder is the mode of encoding feeds signature order. */ encoder: Encoder; } export interface FeedsSignatureOrderProtoMsg { typeUrl: "/band.feeds.v1beta1.FeedsSignatureOrder"; value: Uint8Array; } /** FeedsSignatureOrder defines a general signature order for feed data. */ export interface FeedsSignatureOrderAmino { /** signal_ids is the list of signal ids that require signatures. */ signal_ids?: string[]; /** encoder is the mode of encoding feeds signature order. */ encoder?: Encoder; } export interface FeedsSignatureOrderAminoMsg { type: "/band.feeds.v1beta1.FeedsSignatureOrder"; value: FeedsSignatureOrderAmino; } /** FeedsSignatureOrder defines a general signature order for feed data. */ export interface FeedsSignatureOrderSDKType { signal_ids: string[]; encoder: Encoder; } export declare const Signal: { typeUrl: string; encode(message: Signal, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Signal; fromPartial(object: Partial<Signal>): Signal; fromAmino(object: SignalAmino): Signal; toAmino(message: Signal): SignalAmino; fromAminoMsg(object: SignalAminoMsg): Signal; fromProtoMsg(message: SignalProtoMsg): Signal; toProto(message: Signal): Uint8Array; toProtoMsg(message: Signal): SignalProtoMsg; }; export declare const Vote: { typeUrl: string; encode(message: Vote, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Vote; fromPartial(object: Partial<Vote>): Vote; fromAmino(object: VoteAmino): Vote; toAmino(message: Vote): VoteAmino; fromAminoMsg(object: VoteAminoMsg): Vote; fromProtoMsg(message: VoteProtoMsg): Vote; toProto(message: Vote): Uint8Array; toProtoMsg(message: Vote): VoteProtoMsg; }; export declare const Feed: { typeUrl: string; encode(message: Feed, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Feed; fromPartial(object: Partial<Feed>): Feed; fromAmino(object: FeedAmino): Feed; toAmino(message: Feed): FeedAmino; fromAminoMsg(object: FeedAminoMsg): Feed; fromProtoMsg(message: FeedProtoMsg): Feed; toProto(message: Feed): Uint8Array; toProtoMsg(message: Feed): FeedProtoMsg; }; export declare const FeedWithDeviation: { typeUrl: string; encode(message: FeedWithDeviation, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): FeedWithDeviation; fromPartial(object: Partial<FeedWithDeviation>): FeedWithDeviation; fromAmino(object: FeedWithDeviationAmino): FeedWithDeviation; toAmino(message: FeedWithDeviation): FeedWithDeviationAmino; fromAminoMsg(object: FeedWithDeviationAminoMsg): FeedWithDeviation; fromProtoMsg(message: FeedWithDeviationProtoMsg): FeedWithDeviation; toProto(message: FeedWithDeviation): Uint8Array; toProtoMsg(message: FeedWithDeviation): FeedWithDeviationProtoMsg; }; export declare const CurrentFeeds: { typeUrl: string; encode(message: CurrentFeeds, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): CurrentFeeds; fromPartial(object: Partial<CurrentFeeds>): CurrentFeeds; fromAmino(object: CurrentFeedsAmino): CurrentFeeds; toAmino(message: CurrentFeeds): CurrentFeedsAmino; fromAminoMsg(object: CurrentFeedsAminoMsg): CurrentFeeds; fromProtoMsg(message: CurrentFeedsProtoMsg): CurrentFeeds; toProto(message: CurrentFeeds): Uint8Array; toProtoMsg(message: CurrentFeeds): CurrentFeedsProtoMsg; }; export declare const CurrentFeedWithDeviations: { typeUrl: string; encode(message: CurrentFeedWithDeviations, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): CurrentFeedWithDeviations; fromPartial(object: Partial<CurrentFeedWithDeviations>): CurrentFeedWithDeviations; fromAmino(object: CurrentFeedWithDeviationsAmino): CurrentFeedWithDeviations; toAmino(message: CurrentFeedWithDeviations): CurrentFeedWithDeviationsAmino; fromAminoMsg(object: CurrentFeedWithDeviationsAminoMsg): CurrentFeedWithDeviations; fromProtoMsg(message: CurrentFeedWithDeviationsProtoMsg): CurrentFeedWithDeviations; toProto(message: CurrentFeedWithDeviations): Uint8Array; toProtoMsg(message: CurrentFeedWithDeviations): CurrentFeedWithDeviationsProtoMsg; }; export declare const Price: { typeUrl: string; encode(message: Price, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Price; fromPartial(object: Partial<Price>): Price; fromAmino(object: PriceAmino): Price; toAmino(message: Price): PriceAmino; fromAminoMsg(object: PriceAminoMsg): Price; fromProtoMsg(message: PriceProtoMsg): Price; toProto(message: Price): Uint8Array; toProtoMsg(message: Price): PriceProtoMsg; }; export declare const SignalPrice: { typeUrl: string; encode(message: SignalPrice, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): SignalPrice; fromPartial(object: Partial<SignalPrice>): SignalPrice; fromAmino(object: SignalPriceAmino): SignalPrice; toAmino(message: SignalPrice): SignalPriceAmino; fromAminoMsg(object: SignalPriceAminoMsg): SignalPrice; fromProtoMsg(message: SignalPriceProtoMsg): SignalPrice; toProto(message: SignalPrice): Uint8Array; toProtoMsg(message: SignalPrice): SignalPriceProtoMsg; }; export declare const ValidatorPrice: { typeUrl: string; encode(message: ValidatorPrice, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ValidatorPrice; fromPartial(object: Partial<ValidatorPrice>): ValidatorPrice; fromAmino(object: ValidatorPriceAmino): ValidatorPrice; toAmino(message: ValidatorPrice): ValidatorPriceAmino; fromAminoMsg(object: ValidatorPriceAminoMsg): ValidatorPrice; fromProtoMsg(message: ValidatorPriceProtoMsg): ValidatorPrice; toProto(message: ValidatorPrice): Uint8Array; toProtoMsg(message: ValidatorPrice): ValidatorPriceProtoMsg; }; export declare const ValidatorPriceList: { typeUrl: string; encode(message: ValidatorPriceList, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ValidatorPriceList; fromPartial(object: Partial<ValidatorPriceList>): ValidatorPriceList; fromAmino(object: ValidatorPriceListAmino): ValidatorPriceList; toAmino(message: ValidatorPriceList): ValidatorPriceListAmino; fromAminoMsg(object: ValidatorPriceListAminoMsg): ValidatorPriceList; fromProtoMsg(message: ValidatorPriceListProtoMsg): ValidatorPriceList; toProto(message: ValidatorPriceList): Uint8Array; toProtoMsg(message: ValidatorPriceList): ValidatorPriceListProtoMsg; }; export declare const ReferenceSourceConfig: { typeUrl: string; encode(message: ReferenceSourceConfig, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ReferenceSourceConfig; fromPartial(object: Partial<ReferenceSourceConfig>): ReferenceSourceConfig; fromAmino(object: ReferenceSourceConfigAmino): ReferenceSourceConfig; toAmino(message: ReferenceSourceConfig): ReferenceSourceConfigAmino; fromAminoMsg(object: ReferenceSourceConfigAminoMsg): ReferenceSourceConfig; fromProtoMsg(message: ReferenceSourceConfigProtoMsg): ReferenceSourceConfig; toProto(message: ReferenceSourceConfig): Uint8Array; toProtoMsg(message: ReferenceSourceConfig): ReferenceSourceConfigProtoMsg; }; export declare const FeedsSignatureOrder: { typeUrl: string; encode(message: FeedsSignatureOrder, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): FeedsSignatureOrder; fromPartial(object: Partial<FeedsSignatureOrder>): FeedsSignatureOrder; fromAmino(object: FeedsSignatureOrderAmino): FeedsSignatureOrder; toAmino(message: FeedsSignatureOrder): FeedsSignatureOrderAmino; fromAminoMsg(object: FeedsSignatureOrderAminoMsg): FeedsSignatureOrder; fromProtoMsg(message: FeedsSignatureOrderProtoMsg): FeedsSignatureOrder; toProto(message: FeedsSignatureOrder): Uint8Array; toProtoMsg(message: FeedsSignatureOrder): FeedsSignatureOrderProtoMsg; };