@firmachain/firma-js
Version:
The Official FirmaChain Javascript SDK written in Typescript
23 lines (22 loc) • 1.73 kB
TypeScript
import { TxMisc } from "./firmachain/feegrant";
import { FirmaWalletService } from "./FirmaWalletService";
import { FirmaConfig } from "./FirmaConfig";
import { FeeAllowanceType, FeeAllowanceType1 } from "./firmachain/feegrant/FeeGrantQueryClient";
import { DeliverTxResponse } from "@cosmjs/stargate";
import { BasicAllowance, PeriodicAllowance } from "cosmjs-types/cosmos/feegrant/v1beta1/feegrant";
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<DeliverTxResponse>;
private getCoinType;
getGasEstimationGrantPeriodicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption: PeriodicAllowance, txMisc?: TxMisc): Promise<number>;
private getSignedTxGrantPeriodicAllowance;
getGasEstimationGrantBasicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption: BasicAllowance, txMisc?: TxMisc): Promise<number>;
private getSignedTxGrantBasicAllowance;
grantPeriodicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption: PeriodicAllowance, txMisc?: TxMisc): Promise<DeliverTxResponse>;
grantBasicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption: BasicAllowance, txMisc?: TxMisc): Promise<DeliverTxResponse>;
getGranteeAllowance(granterAddress: string, granteeAddress: string): Promise<FeeAllowanceType1>;
getGranteeAllowanceAll(granteeAddress: string): Promise<FeeAllowanceType[]>;
}