@firmachain/firma-js
Version:
The Official FirmaChain Javascript SDK written in Typescript
16 lines (15 loc) • 1.08 kB
TypeScript
import { FirmaWalletService } from "./FirmaWalletService";
import { FirmaConfig } from "./FirmaConfig";
import { BroadcastTxResponse } from "./firmachain/common/stargateclient";
import { ClientState, IbcTxClient, TxMisc } from "./firmachain/ibc";
import Long from "long";
import { Height } from "cosmjs-types/ibc/core/client/v1/client";
export declare class FirmaIbcService {
private readonly config;
constructor(config: FirmaConfig);
getTxClient(wallet: FirmaWalletService): IbcTxClient;
getGasEstimationTransfer(wallet: FirmaWalletService, sourcePort: string, sourceChannel: string, denom: string, amount: string, receiver: string, timeoutHeight: Height, timeoutTimestamp: Long, txMisc?: TxMisc): Promise<number>;
transfer(wallet: FirmaWalletService, sourcePort: string, sourceChannel: string, denom: string, amount: string, receiver: string, timeoutHeight: Height, timeoutTimestamp: Long, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
private getSignedTxTransfer;
getClientState(sourceChannel: string, sourcePort: string): Promise<ClientState>;
}