@firmachain/firma-js
Version:
The Official FirmaChain Javascript SDK written in Typescript
22 lines (21 loc) • 1.59 kB
TypeScript
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 { BroadcastTxResponse } from "./firmachain/common/stargateclient";
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<BroadcastTxResponse>;
send(wallet: FirmaWalletService, targetAddress: string, amount: number, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
send_raw(wallet: FirmaWalletService, targetAddress: string, ufctAmount: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
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>;
}