UNPKG

@pokt-network/pocket-js

Version:

Pocket-js core package with the main functionalities to interact with the Pocket Network.

37 lines (36 loc) 1.15 kB
/// <reference types="node" /> import { TxMsg } from "./tx-msg"; /** * Model representing a MsgAppStake to stake as an Application in the Pocket Network */ export declare class MsgAppStake extends TxMsg { readonly AMINO_KEY: string; readonly pubKey: Buffer; readonly chains: string[]; readonly amount: string; /** * Constructor for this class * @param {Buffer} pubKey - Public key buffer * @param {string[]} chains - Network identifier list to be requested by this app * @param {string} amount - The amount to stake, must be greater than 0 */ constructor(pubKey: Buffer, chains: string[], amount: string); /** * Returns the msg type key * @returns {string} - Msg type key value. * @memberof MsgAppStake */ getMsgTypeKey(): string; /** * Converts an Msg Object to StdSignDoc * @returns {object} - Msg type key value. * @memberof MsgAppStake */ toStdSignDocMsgObj(): object; /** * Converts an Msg Object for StdTx encoding * @returns {any} - Msg type key value. * @memberof MsgAppStake */ toStdTxMsgObj(): any; }