@cityofzion/blockchain-service 1.13.1 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/functions.d.ts +1 -0
- package/dist/functions.js +2 -1
- package/dist/interfaces.d.ts +4 -0
- package/package.json +1 -1
package/dist/functions.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare function isCalculableFee<BSName extends string = string>(service:
|
|
|
5
5
|
export declare function hasNft<BSName extends string = string>(service: BlockchainService<BSName>): service is BlockchainService<BSName> & BSWithNft;
|
|
6
6
|
export declare function hasExplorerService<BSName extends string = string>(service: BlockchainService<BSName>): service is BlockchainService<BSName> & BSWithExplorerService;
|
|
7
7
|
export declare function hasLedger<BSName extends string = string>(service: BlockchainService<BSName>): service is BlockchainService<BSName> & BSWithLedger<BSName>;
|
|
8
|
+
export declare function wait(ms: number): Promise<unknown>;
|
|
8
9
|
/**
|
|
9
10
|
* @deprecated use `waitForAccountTransaction` instead
|
|
10
11
|
*/
|
package/dist/functions.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.formatNumber = exports.countDecimals = exports.denormalizeHash = exports.normalizeHash = exports.fetchAccountsForBlockchainServices = exports.waitForAccountTransaction = exports.waitForTransaction = exports.hasLedger = exports.hasExplorerService = exports.hasNft = exports.isCalculableFee = exports.isClaimable = exports.hasNameService = void 0;
|
|
12
|
+
exports.formatNumber = exports.countDecimals = exports.denormalizeHash = exports.normalizeHash = exports.fetchAccountsForBlockchainServices = exports.waitForAccountTransaction = exports.waitForTransaction = exports.wait = exports.hasLedger = exports.hasExplorerService = exports.hasNft = exports.isCalculableFee = exports.isClaimable = exports.hasNameService = void 0;
|
|
13
13
|
function hasNameService(service) {
|
|
14
14
|
return 'resolveNameServiceDomain' in service && 'validateNameServiceDomainFormat' in service;
|
|
15
15
|
}
|
|
@@ -37,6 +37,7 @@ exports.hasLedger = hasLedger;
|
|
|
37
37
|
function wait(ms) {
|
|
38
38
|
return new Promise(resolve => setTimeout(resolve, ms));
|
|
39
39
|
}
|
|
40
|
+
exports.wait = wait;
|
|
40
41
|
/**
|
|
41
42
|
* @deprecated use `waitForAccountTransaction` instead
|
|
42
43
|
*/
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -215,6 +215,8 @@ export interface ExplorerService {
|
|
|
215
215
|
buildTransactionUrl(hash: string): string;
|
|
216
216
|
buildContractUrl(contractHash: string): string;
|
|
217
217
|
buildNftUrl(params: BuildNftUrlParams): string;
|
|
218
|
+
getAddressTemplateUrl(): string | undefined;
|
|
219
|
+
getTxTemplateUrl(): string | undefined;
|
|
218
220
|
}
|
|
219
221
|
export type LedgerServiceEmitter = TypedEmitter<{
|
|
220
222
|
getSignatureStart(): void | Promise<void>;
|
|
@@ -235,6 +237,8 @@ export type SwapServiceToken<BSName extends string = string> = {
|
|
|
235
237
|
name: string;
|
|
236
238
|
hash?: string;
|
|
237
239
|
decimals?: number;
|
|
240
|
+
addressTemplateUrl?: string;
|
|
241
|
+
txTemplateUrl?: string;
|
|
238
242
|
};
|
|
239
243
|
export type SwapServiceLoadableValue<T> = {
|
|
240
244
|
loading: boolean;
|