Options
All
  • Public
  • Public/Protected
  • All
Menu

Feather.js

Index

Namespaces

Classes

Interfaces

Type Aliases

Variables

Functions

Type Aliases

AccAddress: string

terra- prefixed account address

AccPubKey: string

terrapub- prefixed account public key

AsyncTxBroadcastResult: TxBroadcastResult<Async, {}>
AxiosConfig: { apiToken?: string }

Type declaration

  • Optional apiToken?: string

    The API key to be included in requests sent to the LCD.

BlockTxBroadcastResult: TxBroadcastResult<Block, TxSuccess | TxError>
Denom: string
Msg: BankMsg | DistributionMsg | FeeGrantMsg | GovMsg | LegacyGovMsg | MsgAuthMsg | SlashingMsg | StakingMsg | VestingMsg | WasmMsg | IbcTransferMsg | IbcClientMsg | IbcConnectionMsg | IbcChannelMsg | ICAMsg | AllianceMsg | CustomMsg | CrisisMsg | MsgAuctionBid | FeeshareMsg | TokenFactoryMsg | SmartAccountMsg
SyncTxBroadcastResult: TxBroadcastResult<Sync, TxError | {}>
TendermintEventType: "NewBlock" | "NewBlockHeader" | "Evidence" | "Tx" | "ValidatorSetUpdates" | "CompleteProposal" | "Lock" | "NewRound" | "NewRoundStep" | "Polka" | "Relock" | "Relock" | "TimeoutPropose" | "TimeoutWait" | "Unlock" | "ValidBlock" | "Vote"
TxBroadcastResult<B, C>: B & C

Type Parameters

ValAddress: string

terravaloper- prefixed validator operator address

ValConsAddress: string

terravalcons- prefixed validator consensus address

ValPubKey: string

terravaloperpub- prefixed validator public key

WaitTxBroadcastResult: TxBroadcastResult<Wait, TxSuccess | TxError>

Variables

DEC_PRECISION: 18 = 18
DEFAULT_COINTYPE: 330 = 330
LUNA_COIN_TYPE: 330 = 330

Functions

  • dec(strings: TemplateStringsArray): Dec
  • Template tagged literal for creating new Dec objects out of literal string. This does not support literal string interpolation with ${}.

    Usage is:

    import { dec } from "@terra-money/terra.js";

    const dec1 = dec`234.12312`;
    const dec2 = new Dec("234.12312");

    dec1.equals(dec2);

    Parameters

    • strings: TemplateStringsArray

    Returns Dec

  • hashToHex(data: string): string
  • Calculates the transaction hash from Amino-encoded string.

    Parameters

    • data: string

      Amino-encoded string (base64)

    Returns string

  • int(strings: TemplateStringsArray): Int
  • Template tagged literal for creating new Int objects out of literal string. This does not support literal string interpolation with ${}.

    Usage is:

    import { int } from "@terra-money/terra.js";

    const int1 = int`234`;
    const int2 = new Int("234");

    int1.equals(int2);

    Parameters

    • strings: TemplateStringsArray

    Returns Int

  • isTxError<T, B, C>(x: T): x is T & B & TxError
  • ripemd160(data: Uint8Array): Uint8Array
  • sha256(data: Uint8Array): Uint8Array
  • Calculates the transaction hash from Amino-encoded string.

    Parameters

    • data: Uint8Array

      raw bytes

    Returns Uint8Array