UNPKG

@firmachain/firma-js

Version:

The Official FirmaChain Javascript SDK written in Typescript

22 lines (21 loc) 1.56 kB
import { BankTxClient, TxMisc, Token } from "./firmachain/bank"; import { TxRaw } from "cosmjs-types/cosmos/tx/v1beta1/tx"; import { FirmaWalletService } from "./FirmaWalletService"; import { FirmaConfig } from "./FirmaConfig"; import { DeliverTxResponse } from "@cosmjs/stargate"; export declare class FirmaBankService { private readonly config; constructor(config: FirmaConfig); getTxClient(wallet: FirmaWalletService): BankTxClient; getGasEstimationSend(wallet: FirmaWalletService, targetAddress: string, amount: number, txMisc?: TxMisc): Promise<number>; getGasEstimationSendToken(wallet: FirmaWalletService, targetAddress: string, tokenID: string, amount: number, decimal: number, txMisc?: TxMisc): Promise<number>; sendToken(wallet: FirmaWalletService, targetAddress: string, tokenID: string, amount: number, decimal: number, txMisc?: TxMisc): Promise<DeliverTxResponse>; send(wallet: FirmaWalletService, targetAddress: string, amount: number, txMisc?: TxMisc): Promise<DeliverTxResponse>; send_raw(wallet: FirmaWalletService, targetAddress: string, ufctAmount: string, txMisc?: TxMisc): Promise<DeliverTxResponse>; getSupply(): Promise<string>; getTokenSupply(tokenID: string): Promise<string>; getTokenBalanceList(address: string): Promise<Token[]>; getTokenBalance(address: string, tokenID: string): Promise<string>; getBalance(address: string): Promise<string>; getSignedTxSend(wallet: FirmaWalletService, targetAddress: string, denom: string, amount: string, txMisc?: TxMisc): Promise<TxRaw>; }