@firmachain/firma-js
Version:
The Official FirmaChain Javascript SDK written in Typescript
27 lines (26 loc) • 2.06 kB
TypeScript
import { TxMisc, TokenDataType, Pagination } from "./firmachain/token";
import { FirmaConfig } from "./FirmaConfig";
import { FirmaWalletService } from "./FirmaWalletService";
import { BroadcastTxResponse } from "./firmachain/common/stargateclient";
export declare class TokenService {
private readonly config;
constructor(config: FirmaConfig);
getGasEstimationCreateToken(wallet: FirmaWalletService, tokenName: string, tokenSymbol: string, tokenURI: string, totalSupply: number, decimal: number, isMintable: boolean, isBurnable: boolean, txMisc?: TxMisc): Promise<number>;
getGasEstimationMint(wallet: FirmaWalletService, tokenID: string, amount: number, decimal: number, toAddress: string, txMisc?: TxMisc): Promise<number>;
getGasEstimationBurn(wallet: FirmaWalletService, tokenID: string, amount: number, decimal: number, txMisc?: TxMisc): Promise<number>;
getGasEstimationUpdateTokenURI(wallet: FirmaWalletService, tokenID: string, tokenURI: string, txMisc?: TxMisc): Promise<number>;
private getSignedTxUpdateTokenURI;
private getSignedTxBurn;
private getSignedTxMint;
private getSignedTxCreateToken;
createToken(wallet: FirmaWalletService, tokenName: string, tokenSymbol: string, tokenURI: string, totalSupply: number, decimal: number, isMintable: boolean, isBurnable: boolean, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
mint(wallet: FirmaWalletService, tokenID: string, amount: number, decimal: number, toAddress: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
burn(wallet: FirmaWalletService, tokenID: string, amount: number, decimal: number, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
updateTokenURI(wallet: FirmaWalletService, tokenID: string, tokenURI: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
getTokenDataAll(paginationKey?: string): Promise<{
dataList: TokenDataType[];
pagination: Pagination;
}>;
getTokenData(tokenID: string): Promise<TokenDataType>;
getTokenDataListFromOwner(ownerAddress: string): Promise<string[]>;
}