UNPKG

@pokt-network/pocket-js

Version:

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

33 lines (32 loc) 1.31 kB
/// <reference types="node" /> import { IAminoEncodable } from "./amino-encodable"; import { TxMsg } from "./msgs/tx-msg"; import { CoinDenom } from "./coin-denom"; /** * Model to represent a StdSignDoc which produces the bytes to sign for a given Transaction */ export declare class StdSignDoc implements IAminoEncodable { readonly entropy: string; readonly chainID: string; readonly msg: TxMsg; readonly fee: string; readonly feeDenom: CoinDenom; readonly memo: string; private readonly AMINO_TYPE; /** * Constructor for the StdSignDoc class * @throws {Error} Throws an error if the fee is not a number * @param {string} entropy - Random int64. * @param {string} chainId - The chainId of the network to be sent to * @param {string} fee - The amount to pay as a fee for executing this transaction * @param {CoinDenom | undefined} feeDenom - The denomination of the fee amount * @param {string | undefined} memo - The memo field for this account */ constructor(entropy: string, chainID: string, msg: TxMsg, fee: string, feeDenom?: CoinDenom, memo?: string); /** * Marshals using Amino * @returns {Buffer} - Buffer representation of the class properties * @memberof StdSignDoc */ marshalAmino(): Buffer; }