@kyve/sdk-beta
Version:
<p align="center"> <a href="https://kyve.network"> <img src="https://user-images.githubusercontent.com/62398724/137493477-63868209-a19b-4efa-9413-f06d41197d6d.png" style="border-radius: 50%" height="96"> </a> <h3 align="center"><code>@kyve/sdk</
60 lines (59 loc) • 3.3 kB
TypeScript
import { StdFee } from "@cosmjs/amino/build/signdoc";
import { AccountData } from "@cosmjs/amino/build/signer";
import { SigningStargateClient } from "@cosmjs/stargate";
import { MsgUpdateParams as MsgUpdateParamsBundles } from "@kyve/proto-beta/client/kyve/bundles/v1beta1/tx";
import { MsgUpdateParams as MsgUpdateParamsDelegation } from "@kyve/proto-beta/client/kyve/delegation/v1beta1/tx";
import { MsgUpdateParams as MsgUpdateParamsFees } from "@kyve/proto-beta/client/kyve/fees/v1beta1/tx";
import { MsgCancelRuntimeUpgrade, MsgCreatePool, MsgPausePool, MsgScheduleRuntimeUpgrade, MsgUnpausePool, MsgUpdatePool } from "@kyve/proto-beta/client/kyve/pool/v1beta1/tx";
import { MsgUpdateParams as MsgUpdateParamsStakers } from "@kyve/proto-beta/client/kyve/stakers/v1beta1/tx";
import { TxPromise } from "../../../../../utils/helper";
export default class KyveGovMsg {
protected nativeClient: SigningStargateClient;
readonly account: AccountData;
constructor(client: SigningStargateClient, account: AccountData);
private createGovTx;
createPool(value: Omit<MsgCreatePool, "authority">, deposit: string, metadata?: string, options?: {
fee?: StdFee | "auto" | number;
memo?: string;
}): Promise<TxPromise>;
updatePool(value: Omit<MsgUpdatePool, "authority">, deposit: string, metadata?: string, options?: {
fee?: StdFee | "auto" | number;
memo?: string;
}): Promise<TxPromise>;
pausePool(value: Omit<MsgPausePool, "authority">, deposit: string, metadata?: string, options?: {
fee?: StdFee | "auto" | number;
memo?: string;
}): Promise<TxPromise>;
unpausePool(value: Omit<MsgUnpausePool, "authority">, deposit: string, metadata?: string, options?: {
fee?: StdFee | "auto" | number;
memo?: string;
}): Promise<TxPromise>;
scheduleRuntimeUpgrade(value: Omit<MsgScheduleRuntimeUpgrade, "authority">, deposit: string, metadata?: string, options?: {
fee?: StdFee | "auto" | number;
memo?: string;
}): Promise<TxPromise>;
cancelRuntimeUpgrade(value: Omit<MsgCancelRuntimeUpgrade, "authority">, deposit: string, metadata?: string, options?: {
fee?: StdFee | "auto" | number;
memo?: string;
}): Promise<TxPromise>;
updateParamsStakers(value: Omit<MsgUpdateParamsStakers, "authority">, deposit: string, metadata?: string, options?: {
fee?: StdFee | "auto" | number;
memo?: string;
}): Promise<TxPromise>;
updateParamsDelegation(value: Omit<MsgUpdateParamsDelegation, "authority">, deposit: string, metadata?: string, options?: {
fee?: StdFee | "auto" | number;
memo?: string;
}): Promise<TxPromise>;
updateParamsBundles(value: Omit<MsgUpdateParamsBundles, "authority">, deposit: string, metadata?: string, options?: {
fee?: StdFee | "auto" | number;
memo?: string;
}): Promise<TxPromise>;
updateParamsFees(value: Omit<MsgUpdateParamsFees, "authority">, deposit: string, metadata?: string, options?: {
fee?: StdFee | "auto" | number;
memo?: string;
}): Promise<TxPromise>;
vote(id: string, voteOption: "Yes" | "Abstain" | "No" | "NoWithVeto", options?: {
fee?: StdFee | "auto" | number;
memo?: string;
}): Promise<TxPromise>;
}