UNPKG

@firmachain/firma-js

Version:

The Official FirmaChain Javascript SDK written in Typescript

22 lines (21 loc) 1.73 kB
import { TxMisc, BasicFeeGrantOption, PeriodicFeeGrantOption } from "./firmachain/feegrant"; import { FirmaWalletService } from "./FirmaWalletService"; import { FirmaConfig } from "./FirmaConfig"; import { FeeAllowanceType, FeeAllowanceType1 } from "./firmachain/feegrant/FeeGrantQueryClient"; import { BroadcastTxResponse } from "./firmachain/common/stargateclient"; export declare class FirmaFeeGrantService { private readonly config; constructor(config: FirmaConfig); getGasEstimationRevokeAllowance(wallet: FirmaWalletService, granteeAddress: string, txMisc?: TxMisc): Promise<number>; private getSignedTxRevokeAllowance; revokeAllowance(wallet: FirmaWalletService, granteeAddress: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>; private getCoinType; getGasEstimationGrantPeriodicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption: PeriodicFeeGrantOption, txMisc?: TxMisc): Promise<number>; private getSignedTxGrantPeriodicAllowance; getGasEstimationGrantBasicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption?: BasicFeeGrantOption, txMisc?: TxMisc): Promise<number>; private getSignedTxGrantBasicAllowance; grantPeriodicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption: PeriodicFeeGrantOption, txMisc?: TxMisc): Promise<BroadcastTxResponse>; grantBasicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption?: BasicFeeGrantOption, txMisc?: TxMisc): Promise<BroadcastTxResponse>; getGranteeAllowance(granterAddress: string, granteeAddress: string): Promise<FeeAllowanceType1>; getGranteeAllowanceAll(granteeAddress: string): Promise<FeeAllowanceType[]>; }