UNPKG

@bandprotocol/bandchain.js

Version:

TypeScript library for Cosmos SDK and BandChain

285 lines (284 loc) 14.3 kB
import { Signal, SignalAmino, SignalSDKType, SignalPrice, SignalPriceAmino, SignalPriceSDKType, ReferenceSourceConfig, ReferenceSourceConfigAmino, ReferenceSourceConfigSDKType } from "./feeds"; import { Params, ParamsAmino, ParamsSDKType } from "./params"; import { BinaryReader, BinaryWriter } from "../../../binary"; /** MsgVote is the transaction message to vote signals. */ export interface MsgVote { /** voter is the address of the voter that wants to vote signals. */ voter: string; /** signals is a list of submitted signals. */ signals: Signal[]; } export interface MsgVoteProtoMsg { typeUrl: "/band.feeds.v1beta1.MsgVote"; value: Uint8Array; } /** MsgVote is the transaction message to vote signals. */ export interface MsgVoteAmino { /** voter is the address of the voter that wants to vote signals. */ voter?: string; /** signals is a list of submitted signals. */ signals?: SignalAmino[]; } export interface MsgVoteAminoMsg { type: "feeds/MsgVote"; value: MsgVoteAmino; } /** MsgVote is the transaction message to vote signals. */ export interface MsgVoteSDKType { voter: string; signals: SignalSDKType[]; } /** MsgVoteResponse is the response type for the Msg/Vote RPC method. */ export interface MsgVoteResponse { } export interface MsgVoteResponseProtoMsg { typeUrl: "/band.feeds.v1beta1.MsgVoteResponse"; value: Uint8Array; } /** MsgVoteResponse is the response type for the Msg/Vote RPC method. */ export interface MsgVoteResponseAmino { } export interface MsgVoteResponseAminoMsg { type: "/band.feeds.v1beta1.MsgVoteResponse"; value: MsgVoteResponseAmino; } /** MsgVoteResponse is the response type for the Msg/Vote RPC method. */ export interface MsgVoteResponseSDKType { } /** MsgSubmitSignalPrices is the transaction message to submit multiple signal prices. */ export interface MsgSubmitSignalPrices { /** validator is the address of the validator that is performing the operation. */ validator: string; /** timestamp is the timestamp used as reference for the data. */ timestamp: bigint; /** signal_prices is a list of signal prices to submit. */ signalPrices: SignalPrice[]; } export interface MsgSubmitSignalPricesProtoMsg { typeUrl: "/band.feeds.v1beta1.MsgSubmitSignalPrices"; value: Uint8Array; } /** MsgSubmitSignalPrices is the transaction message to submit multiple signal prices. */ export interface MsgSubmitSignalPricesAmino { /** validator is the address of the validator that is performing the operation. */ validator?: string; /** timestamp is the timestamp used as reference for the data. */ timestamp?: string; /** signal_prices is a list of signal prices to submit. */ signal_prices?: SignalPriceAmino[]; } export interface MsgSubmitSignalPricesAminoMsg { type: "feeds/MsgSubmitSignalPrices"; value: MsgSubmitSignalPricesAmino; } /** MsgSubmitSignalPrices is the transaction message to submit multiple signal prices. */ export interface MsgSubmitSignalPricesSDKType { validator: string; timestamp: bigint; signal_prices: SignalPriceSDKType[]; } /** MsgSubmitSignalPricesResponse is the response type for the Msg/SubmitSignalPrices RPC method. */ export interface MsgSubmitSignalPricesResponse { } export interface MsgSubmitSignalPricesResponseProtoMsg { typeUrl: "/band.feeds.v1beta1.MsgSubmitSignalPricesResponse"; value: Uint8Array; } /** MsgSubmitSignalPricesResponse is the response type for the Msg/SubmitSignalPrices RPC method. */ export interface MsgSubmitSignalPricesResponseAmino { } export interface MsgSubmitSignalPricesResponseAminoMsg { type: "/band.feeds.v1beta1.MsgSubmitSignalPricesResponse"; value: MsgSubmitSignalPricesResponseAmino; } /** MsgSubmitSignalPricesResponse is the response type for the Msg/SubmitSignalPrices RPC method. */ export interface MsgSubmitSignalPricesResponseSDKType { } /** MsgUpdateReferenceSourceConfig is the transaction message to update reference price source's configuration. */ export interface MsgUpdateReferenceSourceConfig { /** admin is the address of the admin that is performing the operation. */ admin: string; /** reference_source_config is the information of reference price source. */ referenceSourceConfig: ReferenceSourceConfig; } export interface MsgUpdateReferenceSourceConfigProtoMsg { typeUrl: "/band.feeds.v1beta1.MsgUpdateReferenceSourceConfig"; value: Uint8Array; } /** MsgUpdateReferenceSourceConfig is the transaction message to update reference price source's configuration. */ export interface MsgUpdateReferenceSourceConfigAmino { /** admin is the address of the admin that is performing the operation. */ admin?: string; /** reference_source_config is the information of reference price source. */ reference_source_config?: ReferenceSourceConfigAmino; } export interface MsgUpdateReferenceSourceConfigAminoMsg { type: "feeds/MsgUpdateReferenceSourceConfig"; value: MsgUpdateReferenceSourceConfigAmino; } /** MsgUpdateReferenceSourceConfig is the transaction message to update reference price source's configuration. */ export interface MsgUpdateReferenceSourceConfigSDKType { admin: string; reference_source_config: ReferenceSourceConfigSDKType; } /** MsgUpdateReferenceSourceConfigResponse is the response type for the Msg/UpdateReferenceSourceConfig RPC method. */ export interface MsgUpdateReferenceSourceConfigResponse { } export interface MsgUpdateReferenceSourceConfigResponseProtoMsg { typeUrl: "/band.feeds.v1beta1.MsgUpdateReferenceSourceConfigResponse"; value: Uint8Array; } /** MsgUpdateReferenceSourceConfigResponse is the response type for the Msg/UpdateReferenceSourceConfig RPC method. */ export interface MsgUpdateReferenceSourceConfigResponseAmino { } export interface MsgUpdateReferenceSourceConfigResponseAminoMsg { type: "/band.feeds.v1beta1.MsgUpdateReferenceSourceConfigResponse"; value: MsgUpdateReferenceSourceConfigResponseAmino; } /** MsgUpdateReferenceSourceConfigResponse is the response type for the Msg/UpdateReferenceSourceConfig RPC method. */ export interface MsgUpdateReferenceSourceConfigResponseSDKType { } /** MsgUpdateParams is the transaction message to update parameters. */ export interface MsgUpdateParams { /** authority is the address of the governance account. */ authority: string; /** params is the x/feeds parameters to update. */ params: Params; } export interface MsgUpdateParamsProtoMsg { typeUrl: "/band.feeds.v1beta1.MsgUpdateParams"; value: Uint8Array; } /** MsgUpdateParams is the transaction message to update parameters. */ export interface MsgUpdateParamsAmino { /** authority is the address of the governance account. */ authority?: string; /** params is the x/feeds parameters to update. */ params?: ParamsAmino; } export interface MsgUpdateParamsAminoMsg { type: "feeds/MsgUpdateParams"; value: MsgUpdateParamsAmino; } /** MsgUpdateParams is the transaction message to update parameters. */ export interface MsgUpdateParamsSDKType { authority: string; params: ParamsSDKType; } /** MsgUpdateParamsResponse is the response type for the Msg/UpdateParams RPC method. */ export interface MsgUpdateParamsResponse { } export interface MsgUpdateParamsResponseProtoMsg { typeUrl: "/band.feeds.v1beta1.MsgUpdateParamsResponse"; value: Uint8Array; } /** MsgUpdateParamsResponse is the response type for the Msg/UpdateParams RPC method. */ export interface MsgUpdateParamsResponseAmino { } export interface MsgUpdateParamsResponseAminoMsg { type: "/band.feeds.v1beta1.MsgUpdateParamsResponse"; value: MsgUpdateParamsResponseAmino; } /** MsgUpdateParamsResponse is the response type for the Msg/UpdateParams RPC method. */ export interface MsgUpdateParamsResponseSDKType { } export declare const MsgVote: { typeUrl: string; encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; fromPartial(object: Partial<MsgVote>): MsgVote; fromAmino(object: MsgVoteAmino): MsgVote; toAmino(message: MsgVote): MsgVoteAmino; fromAminoMsg(object: MsgVoteAminoMsg): MsgVote; toAminoMsg(message: MsgVote): MsgVoteAminoMsg; fromProtoMsg(message: MsgVoteProtoMsg): MsgVote; toProto(message: MsgVote): Uint8Array; toProtoMsg(message: MsgVote): MsgVoteProtoMsg; }; export declare const MsgVoteResponse: { typeUrl: string; encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; fromPartial(_: Partial<MsgVoteResponse>): MsgVoteResponse; fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse; toAmino(_: MsgVoteResponse): MsgVoteResponseAmino; fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse; fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse; toProto(message: MsgVoteResponse): Uint8Array; toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; }; export declare const MsgSubmitSignalPrices: { typeUrl: string; encode(message: MsgSubmitSignalPrices, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitSignalPrices; fromPartial(object: Partial<MsgSubmitSignalPrices>): MsgSubmitSignalPrices; fromAmino(object: MsgSubmitSignalPricesAmino): MsgSubmitSignalPrices; toAmino(message: MsgSubmitSignalPrices): MsgSubmitSignalPricesAmino; fromAminoMsg(object: MsgSubmitSignalPricesAminoMsg): MsgSubmitSignalPrices; toAminoMsg(message: MsgSubmitSignalPrices): MsgSubmitSignalPricesAminoMsg; fromProtoMsg(message: MsgSubmitSignalPricesProtoMsg): MsgSubmitSignalPrices; toProto(message: MsgSubmitSignalPrices): Uint8Array; toProtoMsg(message: MsgSubmitSignalPrices): MsgSubmitSignalPricesProtoMsg; }; export declare const MsgSubmitSignalPricesResponse: { typeUrl: string; encode(_: MsgSubmitSignalPricesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitSignalPricesResponse; fromPartial(_: Partial<MsgSubmitSignalPricesResponse>): MsgSubmitSignalPricesResponse; fromAmino(_: MsgSubmitSignalPricesResponseAmino): MsgSubmitSignalPricesResponse; toAmino(_: MsgSubmitSignalPricesResponse): MsgSubmitSignalPricesResponseAmino; fromAminoMsg(object: MsgSubmitSignalPricesResponseAminoMsg): MsgSubmitSignalPricesResponse; fromProtoMsg(message: MsgSubmitSignalPricesResponseProtoMsg): MsgSubmitSignalPricesResponse; toProto(message: MsgSubmitSignalPricesResponse): Uint8Array; toProtoMsg(message: MsgSubmitSignalPricesResponse): MsgSubmitSignalPricesResponseProtoMsg; }; export declare const MsgUpdateReferenceSourceConfig: { typeUrl: string; encode(message: MsgUpdateReferenceSourceConfig, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateReferenceSourceConfig; fromPartial(object: Partial<MsgUpdateReferenceSourceConfig>): MsgUpdateReferenceSourceConfig; fromAmino(object: MsgUpdateReferenceSourceConfigAmino): MsgUpdateReferenceSourceConfig; toAmino(message: MsgUpdateReferenceSourceConfig): MsgUpdateReferenceSourceConfigAmino; fromAminoMsg(object: MsgUpdateReferenceSourceConfigAminoMsg): MsgUpdateReferenceSourceConfig; toAminoMsg(message: MsgUpdateReferenceSourceConfig): MsgUpdateReferenceSourceConfigAminoMsg; fromProtoMsg(message: MsgUpdateReferenceSourceConfigProtoMsg): MsgUpdateReferenceSourceConfig; toProto(message: MsgUpdateReferenceSourceConfig): Uint8Array; toProtoMsg(message: MsgUpdateReferenceSourceConfig): MsgUpdateReferenceSourceConfigProtoMsg; }; export declare const MsgUpdateReferenceSourceConfigResponse: { typeUrl: string; encode(_: MsgUpdateReferenceSourceConfigResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateReferenceSourceConfigResponse; fromPartial(_: Partial<MsgUpdateReferenceSourceConfigResponse>): MsgUpdateReferenceSourceConfigResponse; fromAmino(_: MsgUpdateReferenceSourceConfigResponseAmino): MsgUpdateReferenceSourceConfigResponse; toAmino(_: MsgUpdateReferenceSourceConfigResponse): MsgUpdateReferenceSourceConfigResponseAmino; fromAminoMsg(object: MsgUpdateReferenceSourceConfigResponseAminoMsg): MsgUpdateReferenceSourceConfigResponse; fromProtoMsg(message: MsgUpdateReferenceSourceConfigResponseProtoMsg): MsgUpdateReferenceSourceConfigResponse; toProto(message: MsgUpdateReferenceSourceConfigResponse): Uint8Array; toProtoMsg(message: MsgUpdateReferenceSourceConfigResponse): MsgUpdateReferenceSourceConfigResponseProtoMsg; }; export declare const MsgUpdateParams: { typeUrl: string; encode(message: MsgUpdateParams, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams; fromPartial(object: Partial<MsgUpdateParams>): MsgUpdateParams; fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams; toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino; fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams; toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg; fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams; toProto(message: MsgUpdateParams): Uint8Array; toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg; }; export declare const MsgUpdateParamsResponse: { typeUrl: string; encode(_: MsgUpdateParamsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse; fromPartial(_: Partial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse; fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse; toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino; fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse; fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse; toProto(message: MsgUpdateParamsResponse): Uint8Array; toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg; };