UNPKG

@firmachain/firma-js

Version:

The Official FirmaChain Javascript SDK written in Typescript

42 lines (41 loc) 3.57 kB
import { FirmaWalletService } from "./FirmaWalletService"; import { FirmaConfig } from "./FirmaConfig"; import { BroadcastTxResponse } from "./firmachain/common/stargateclient"; import { Any } from "./firmachain/google/protobuf/any"; import { GrantGenericData, GrantSendData, GrantStakingData, Pagination, TxMisc } from "./firmachain/authz"; import { AuthorizationType } from "./firmachain/authz/AuthzTxTypes"; export declare class FirmaAuthzService { private readonly config; constructor(config: FirmaConfig); private getSignedTxGrantSendAutorization; private getSignedTxGrantStakeAutorization; private getSignedTxGrantGenericAuthorization; private getSignedTxRevokeGenericAuthorization; private getSignedTxExecuteAllowance; getGasEstimationGrantSendAuthorization(wallet: FirmaWalletService, granteeAddress: string, expirationDate: Date, maxTokens: number, txMisc?: TxMisc): Promise<number>; grantSendAuthorization(wallet: FirmaWalletService, granteeAddress: string, expirationDate: Date, maxTokens: number, txMisc?: TxMisc): Promise<BroadcastTxResponse>; getGasEstimationGrantStakeAuthorization(wallet: FirmaWalletService, granteeAddress: string, validatorAddressList: string[], type: AuthorizationType, expirationDate: Date, maxTokens?: number, txMisc?: TxMisc): Promise<number>; grantStakeAuthorization(wallet: FirmaWalletService, granteeAddress: string, validatorAddressList: string[], type: AuthorizationType, expirationDate: Date, maxTokens?: number, txMisc?: TxMisc): Promise<BroadcastTxResponse>; getGasEstimationGrantGenericAuthorization(wallet: FirmaWalletService, granteeAddress: string, msg: string, expirationDate: Date, txMisc?: TxMisc): Promise<number>; grantGenericAuthorization(wallet: FirmaWalletService, granteeAddress: string, msg: string, expirationDate: Date, txMisc?: TxMisc): Promise<BroadcastTxResponse>; getGasEstimationRevokeGenericAuthorization(wallet: FirmaWalletService, granteeAddress: string, msgType: string, txMisc?: TxMisc): Promise<number>; revokeGenericAuthorization(wallet: FirmaWalletService, granteeAddress: string, msgType: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>; getGasEstimationRevokeSendAuthorization(wallet: FirmaWalletService, granteeAddress: string, txMisc?: TxMisc): Promise<number>; revokeSendAuthorization(wallet: FirmaWalletService, granteeAddress: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>; getGasEstimationRevokeStakeAuthorization(wallet: FirmaWalletService, granteeAddress: string, type: AuthorizationType, txMisc?: TxMisc): Promise<number>; revokeStakeAuthorization(wallet: FirmaWalletService, granteeAddress: string, type: AuthorizationType, txMisc?: TxMisc): Promise<BroadcastTxResponse>; getGasEstimationExecuteAllowance(wallet: FirmaWalletService, msgs: Any[], txMisc?: TxMisc): Promise<number>; executeAllowance(wallet: FirmaWalletService, msgs: Any[], txMisc?: TxMisc): Promise<BroadcastTxResponse>; getSendGrantData(granterAddress: string, granteeAddress: string, paginationKey?: string): Promise<{ dataList: GrantSendData[]; pagination: Pagination; }>; getGenericGrantData(granterAddress: string, granteeAddress: string, msgType: string, paginationKey?: string): Promise<{ dataList: GrantGenericData[]; pagination: Pagination; }>; getStakingGrantData(granterAddress: string, granteeAddress: string, msgType: AuthorizationType, paginationKey?: string): Promise<{ dataList: GrantStakingData[]; pagination: Pagination; }>; }