UNPKG

firma-js-chain-2.0

Version:

The Official FirmaChain Javascript SDK written in Typescript

19 lines (18 loc) 1.28 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 _config; constructor(_config: FirmaConfig); private getSignedTxRevokeAllowance; RevokeAllowance(wallet: FirmaWalletService, granteeAddress: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>; private getCoinType; private getSignedTxGrantPeriodicAllowance; 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[]>; }