UNPKG

@kyve/sdk

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</

31 lines (30 loc) 1.36 kB
import { SigningStargateClient } from "@cosmjs/stargate"; import { AccountData } from "@cosmjs/amino/build/signer"; import { StdFee } from "@cosmjs/amino/build/signdoc"; import { TxPromise } from "../../../../../utils/helper"; import { kyve } from "@kyve/proto"; import MsgDelegate = kyve.registry.v1beta1.kyveDelegation.MsgDelegate; import MsgWithdrawRewards = kyve.registry.v1beta1.kyveDelegation.MsgWithdrawRewards; import MsgUndelegate = kyve.registry.v1beta1.kyveDelegation.MsgUndelegate; import MsgRedelegate = kyve.registry.v1beta1.kyveDelegation.MsgRedelegate; export default class { private nativeClient; readonly account: AccountData; constructor(client: SigningStargateClient, account: AccountData); delegate(value: Omit<MsgDelegate, "creator">, options?: { fee?: StdFee | "auto" | number; memo?: string; }): Promise<TxPromise>; withdrawRewards(value: Omit<MsgWithdrawRewards, "creator">, options?: { fee?: StdFee | "auto" | number; memo?: string; }): Promise<TxPromise>; undelegate(value: Omit<MsgUndelegate, "creator">, options?: { fee?: StdFee | "auto" | number; memo?: string; }): Promise<TxPromise>; redelegate(value: Omit<MsgRedelegate, "creator">, options?: { fee?: StdFee | "auto" | number; memo?: string; }): Promise<TxPromise>; }