@hashgraphonline/standards-sdk 0.0.97 → 0.0.98
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/es/hcs-10/base-client.d.ts +3 -14
- package/dist/es/hcs-10/base-client.d.ts.map +1 -1
- package/dist/es/hcs-10/connections-manager.d.ts +0 -51
- package/dist/es/hcs-10/connections-manager.d.ts.map +1 -1
- package/dist/es/hcs-10/sdk.d.ts +1 -38
- package/dist/es/hcs-10/sdk.d.ts.map +1 -1
- package/dist/es/hcs-10/types.d.ts +3 -9
- package/dist/es/hcs-10/types.d.ts.map +1 -1
- package/dist/es/inscribe/inscriber.d.ts +0 -2
- package/dist/es/inscribe/inscriber.d.ts.map +1 -1
- package/dist/es/services/index.d.ts +0 -1
- package/dist/es/services/index.d.ts.map +1 -1
- package/dist/es/services/mirror-node.d.ts +1 -17
- package/dist/es/services/mirror-node.d.ts.map +1 -1
- package/dist/es/services/types.d.ts +0 -24
- package/dist/es/services/types.d.ts.map +1 -1
- package/dist/es/standards-sdk.es.js +5 -8
- package/dist/es/standards-sdk.es.js.map +1 -1
- package/dist/es/standards-sdk.es10.js +0 -66
- package/dist/es/standards-sdk.es10.js.map +1 -1
- package/dist/es/standards-sdk.es100.js +13 -4
- package/dist/es/standards-sdk.es100.js.map +1 -1
- package/dist/es/standards-sdk.es101.js +13 -4
- package/dist/es/standards-sdk.es101.js.map +1 -1
- package/dist/es/standards-sdk.es102.js +31 -15
- package/dist/es/standards-sdk.es102.js.map +1 -1
- package/dist/es/standards-sdk.es103.js +14 -4
- package/dist/es/standards-sdk.es103.js.map +1 -1
- package/dist/es/standards-sdk.es104.js +4 -39
- package/dist/es/standards-sdk.es104.js.map +1 -1
- package/dist/es/standards-sdk.es105.js +4 -40
- package/dist/es/standards-sdk.es105.js.map +1 -1
- package/dist/es/standards-sdk.es106.js +15 -36
- package/dist/es/standards-sdk.es106.js.map +1 -1
- package/dist/es/standards-sdk.es107.js +5 -78
- package/dist/es/standards-sdk.es107.js.map +1 -1
- package/dist/es/standards-sdk.es108.js +39 -4
- package/dist/es/standards-sdk.es108.js.map +1 -1
- package/dist/es/standards-sdk.es109.js +38 -32
- package/dist/es/standards-sdk.es109.js.map +1 -1
- package/dist/es/standards-sdk.es110.js +35 -31
- package/dist/es/standards-sdk.es110.js.map +1 -1
- package/dist/es/standards-sdk.es111.js +78 -9
- package/dist/es/standards-sdk.es111.js.map +1 -1
- package/dist/es/standards-sdk.es112.js +3 -34
- package/dist/es/standards-sdk.es112.js.map +1 -1
- package/dist/es/standards-sdk.es113.js +2 -3
- package/dist/es/standards-sdk.es113.js.map +1 -1
- package/dist/es/standards-sdk.es114.js +2 -2
- package/dist/es/standards-sdk.es114.js.map +1 -1
- package/dist/es/standards-sdk.es115.js +34 -2
- package/dist/es/standards-sdk.es115.js.map +1 -1
- package/dist/es/standards-sdk.es116.js +29 -97
- package/dist/es/standards-sdk.es116.js.map +1 -1
- package/dist/es/standards-sdk.es117.js +9 -2
- package/dist/es/standards-sdk.es117.js.map +1 -1
- package/dist/es/standards-sdk.es118.js +34 -16
- package/dist/es/standards-sdk.es118.js.map +1 -1
- package/dist/es/standards-sdk.es13.js +5 -5
- package/dist/es/standards-sdk.es15.js +1 -1
- package/dist/es/standards-sdk.es16.js +1 -1
- package/dist/es/standards-sdk.es18.js +2 -2
- package/dist/es/standards-sdk.es19.js +386 -393
- package/dist/es/standards-sdk.es19.js.map +1 -1
- package/dist/es/standards-sdk.es20.js +315 -386
- package/dist/es/standards-sdk.es20.js.map +1 -1
- package/dist/es/standards-sdk.es21.js +128 -357
- package/dist/es/standards-sdk.es21.js.map +1 -1
- package/dist/es/standards-sdk.es22.js +7 -155
- package/dist/es/standards-sdk.es22.js.map +1 -1
- package/dist/es/standards-sdk.es23.js +1041 -7
- package/dist/es/standards-sdk.es23.js.map +1 -1
- package/dist/es/standards-sdk.es24.js +1692 -966
- package/dist/es/standards-sdk.es24.js.map +1 -1
- package/dist/es/standards-sdk.es25.js +3 -1769
- package/dist/es/standards-sdk.es25.js.map +1 -1
- package/dist/es/standards-sdk.es26.js +3843 -6866
- package/dist/es/standards-sdk.es26.js.map +1 -1
- package/dist/es/standards-sdk.es27.js +7190 -3
- package/dist/es/standards-sdk.es27.js.map +1 -1
- package/dist/es/standards-sdk.es28.js +2 -9
- package/dist/es/standards-sdk.es28.js.map +1 -1
- package/dist/es/standards-sdk.es29.js +36 -2
- package/dist/es/standards-sdk.es29.js.map +1 -1
- package/dist/es/standards-sdk.es30.js +48 -5
- package/dist/es/standards-sdk.es30.js.map +1 -1
- package/dist/es/standards-sdk.es31.js +5 -36
- package/dist/es/standards-sdk.es31.js.map +1 -1
- package/dist/es/standards-sdk.es32.js +100 -47
- package/dist/es/standards-sdk.es32.js.map +1 -1
- package/dist/es/standards-sdk.es33.js +2 -10
- package/dist/es/standards-sdk.es33.js.map +1 -1
- package/dist/es/standards-sdk.es34.js +15 -4166
- package/dist/es/standards-sdk.es34.js.map +1 -1
- package/dist/es/standards-sdk.es35.js +409 -2
- package/dist/es/standards-sdk.es35.js.map +1 -1
- package/dist/es/standards-sdk.es36.js +2 -364
- package/dist/es/standards-sdk.es36.js.map +1 -1
- package/dist/es/standards-sdk.es37.js +2282 -6
- package/dist/es/standards-sdk.es37.js.map +1 -1
- package/dist/es/standards-sdk.es38.js +152 -167
- package/dist/es/standards-sdk.es38.js.map +1 -1
- package/dist/es/standards-sdk.es39.js +188 -74
- package/dist/es/standards-sdk.es39.js.map +1 -1
- package/dist/es/standards-sdk.es4.js +1 -1
- package/dist/es/standards-sdk.es40.js +423 -99
- package/dist/es/standards-sdk.es40.js.map +1 -1
- package/dist/es/standards-sdk.es41.js +20 -47
- package/dist/es/standards-sdk.es41.js.map +1 -1
- package/dist/es/standards-sdk.es42.js +138 -9
- package/dist/es/standards-sdk.es42.js.map +1 -1
- package/dist/es/standards-sdk.es43.js +13 -92
- package/dist/es/standards-sdk.es43.js.map +1 -1
- package/dist/es/standards-sdk.es44.js +28 -3
- package/dist/es/standards-sdk.es44.js.map +1 -1
- package/dist/es/standards-sdk.es45.js +29 -2
- package/dist/es/standards-sdk.es45.js.map +1 -1
- package/dist/es/standards-sdk.es46.js +15 -107
- package/dist/es/standards-sdk.es46.js.map +1 -1
- package/dist/es/standards-sdk.es47.js +41 -71
- package/dist/es/standards-sdk.es47.js.map +1 -1
- package/dist/es/standards-sdk.es48.js +17 -5
- package/dist/es/standards-sdk.es48.js.map +1 -1
- package/dist/es/standards-sdk.es49.js +60 -4
- package/dist/es/standards-sdk.es49.js.map +1 -1
- package/dist/es/standards-sdk.es5.js +9 -32
- package/dist/es/standards-sdk.es5.js.map +1 -1
- package/dist/es/standards-sdk.es50.js +1259 -191
- package/dist/es/standards-sdk.es50.js.map +1 -1
- package/dist/es/standards-sdk.es51.js +142 -52
- package/dist/es/standards-sdk.es51.js.map +1 -1
- package/dist/es/standards-sdk.es52.js +91 -69
- package/dist/es/standards-sdk.es52.js.map +1 -1
- package/dist/es/standards-sdk.es53.js +79 -414
- package/dist/es/standards-sdk.es53.js.map +1 -1
- package/dist/es/standards-sdk.es54.js +32 -2
- package/dist/es/standards-sdk.es54.js.map +1 -1
- package/dist/es/standards-sdk.es55.js +5 -119
- package/dist/es/standards-sdk.es55.js.map +1 -1
- package/dist/es/standards-sdk.es56.js +147 -183
- package/dist/es/standards-sdk.es56.js.map +1 -1
- package/dist/es/standards-sdk.es57.js +18 -433
- package/dist/es/standards-sdk.es57.js.map +1 -1
- package/dist/es/standards-sdk.es58.js +788 -20
- package/dist/es/standards-sdk.es58.js.map +1 -1
- package/dist/es/standards-sdk.es59.js +161 -126
- package/dist/es/standards-sdk.es59.js.map +1 -1
- package/dist/es/standards-sdk.es60.js +138 -13
- package/dist/es/standards-sdk.es60.js.map +1 -1
- package/dist/es/standards-sdk.es61.js +13 -21
- package/dist/es/standards-sdk.es61.js.map +1 -1
- package/dist/es/standards-sdk.es62.js +25 -27
- package/dist/es/standards-sdk.es62.js.map +1 -1
- package/dist/es/standards-sdk.es63.js +24 -19
- package/dist/es/standards-sdk.es63.js.map +1 -1
- package/dist/es/standards-sdk.es64.js +36 -42
- package/dist/es/standards-sdk.es64.js.map +1 -1
- package/dist/es/standards-sdk.es65.js +3 -18
- package/dist/es/standards-sdk.es65.js.map +1 -1
- package/dist/es/standards-sdk.es66.js +3 -60
- package/dist/es/standards-sdk.es66.js.map +1 -1
- package/dist/es/standards-sdk.es67.js +7060 -1213
- package/dist/es/standards-sdk.es67.js.map +1 -1
- package/dist/es/standards-sdk.es68.js +402 -131
- package/dist/es/standards-sdk.es68.js.map +1 -1
- package/dist/es/standards-sdk.es69.js +2 -91
- package/dist/es/standards-sdk.es69.js.map +1 -1
- package/dist/es/standards-sdk.es7.js +5 -106
- package/dist/es/standards-sdk.es7.js.map +1 -1
- package/dist/es/standards-sdk.es70.js +113 -77
- package/dist/es/standards-sdk.es70.js.map +1 -1
- package/dist/es/standards-sdk.es71.js +360 -28
- package/dist/es/standards-sdk.es71.js.map +1 -1
- package/dist/es/standards-sdk.es72.js +5 -5
- package/dist/es/standards-sdk.es72.js.map +1 -1
- package/dist/es/standards-sdk.es73.js +167 -147
- package/dist/es/standards-sdk.es73.js.map +1 -1
- package/dist/es/standards-sdk.es74.js +80 -22
- package/dist/es/standards-sdk.es74.js.map +1 -1
- package/dist/es/standards-sdk.es75.js +102 -781
- package/dist/es/standards-sdk.es75.js.map +1 -1
- package/dist/es/standards-sdk.es76.js +44 -166
- package/dist/es/standards-sdk.es76.js.map +1 -1
- package/dist/es/standards-sdk.es77.js +9 -142
- package/dist/es/standards-sdk.es77.js.map +1 -1
- package/dist/es/standards-sdk.es78.js +97 -3
- package/dist/es/standards-sdk.es78.js.map +1 -1
- package/dist/es/standards-sdk.es79.js +3 -163
- package/dist/es/standards-sdk.es79.js.map +1 -1
- package/dist/es/standards-sdk.es8.js +4 -4
- package/dist/es/standards-sdk.es80.js +2 -32
- package/dist/es/standards-sdk.es80.js.map +1 -1
- package/dist/es/standards-sdk.es81.js +103 -53
- package/dist/es/standards-sdk.es81.js.map +1 -1
- package/dist/es/standards-sdk.es82.js +69 -45
- package/dist/es/standards-sdk.es82.js.map +1 -1
- package/dist/es/standards-sdk.es83.js +5 -9
- package/dist/es/standards-sdk.es83.js.map +1 -1
- package/dist/es/standards-sdk.es84.js +4 -64
- package/dist/es/standards-sdk.es84.js.map +1 -1
- package/dist/es/standards-sdk.es85.js +221 -6
- package/dist/es/standards-sdk.es85.js.map +1 -1
- package/dist/es/standards-sdk.es86.js +56 -13
- package/dist/es/standards-sdk.es86.js.map +1 -1
- package/dist/es/standards-sdk.es87.js +68 -6
- package/dist/es/standards-sdk.es87.js.map +1 -1
- package/dist/es/standards-sdk.es88.js +31 -44
- package/dist/es/standards-sdk.es88.js.map +1 -1
- package/dist/es/standards-sdk.es89.js +63 -2
- package/dist/es/standards-sdk.es89.js.map +1 -1
- package/dist/es/standards-sdk.es9.js +1 -1
- package/dist/es/standards-sdk.es90.js +47 -133
- package/dist/es/standards-sdk.es90.js.map +1 -1
- package/dist/es/standards-sdk.es91.js +10 -172
- package/dist/es/standards-sdk.es91.js.map +1 -1
- package/dist/es/standards-sdk.es92.js +61 -17
- package/dist/es/standards-sdk.es92.js.map +1 -1
- package/dist/es/standards-sdk.es93.js +6 -27
- package/dist/es/standards-sdk.es93.js.map +1 -1
- package/dist/es/standards-sdk.es94.js +14 -25
- package/dist/es/standards-sdk.es94.js.map +1 -1
- package/dist/es/standards-sdk.es95.js +7 -38
- package/dist/es/standards-sdk.es95.js.map +1 -1
- package/dist/es/standards-sdk.es96.js +44 -12
- package/dist/es/standards-sdk.es96.js.map +1 -1
- package/dist/es/standards-sdk.es97.js +2 -13
- package/dist/es/standards-sdk.es97.js.map +1 -1
- package/dist/es/standards-sdk.es98.js +134 -30
- package/dist/es/standards-sdk.es98.js.map +1 -1
- package/dist/es/standards-sdk.es99.js +171 -14
- package/dist/es/standards-sdk.es99.js.map +1 -1
- package/dist/es/utils/index.d.ts +0 -1
- package/dist/es/utils/index.d.ts.map +1 -1
- package/dist/umd/hcs-10/base-client.d.ts +3 -14
- package/dist/umd/hcs-10/base-client.d.ts.map +1 -1
- package/dist/umd/hcs-10/connections-manager.d.ts +0 -51
- package/dist/umd/hcs-10/connections-manager.d.ts.map +1 -1
- package/dist/umd/hcs-10/sdk.d.ts +1 -38
- package/dist/umd/hcs-10/sdk.d.ts.map +1 -1
- package/dist/umd/hcs-10/types.d.ts +3 -9
- package/dist/umd/hcs-10/types.d.ts.map +1 -1
- package/dist/umd/inscribe/inscriber.d.ts +0 -2
- package/dist/umd/inscribe/inscriber.d.ts.map +1 -1
- package/dist/umd/services/index.d.ts +0 -1
- package/dist/umd/services/index.d.ts.map +1 -1
- package/dist/umd/services/mirror-node.d.ts +1 -17
- package/dist/umd/services/mirror-node.d.ts.map +1 -1
- package/dist/umd/services/types.d.ts +0 -24
- package/dist/umd/services/types.d.ts.map +1 -1
- package/dist/umd/standards-sdk.umd.js +22 -22
- package/dist/umd/standards-sdk.umd.js.map +1 -1
- package/dist/umd/utils/index.d.ts +0 -1
- package/dist/umd/utils/index.d.ts.map +1 -1
- package/package.json +8 -12
- package/dist/es/standards-sdk.es119.js +0 -412
- package/dist/es/standards-sdk.es119.js.map +0 -1
- package/dist/es/standards-sdk.es120.js +0 -2285
- package/dist/es/standards-sdk.es120.js.map +0 -1
- package/dist/es/standards-sdk.es121.js +0 -7139
- package/dist/es/standards-sdk.es121.js.map +0 -1
- package/dist/es/standards-sdk.es122.js +0 -13
- package/dist/es/standards-sdk.es122.js.map +0 -1
- package/dist/es/standards-sdk.es123.js +0 -14
- package/dist/es/standards-sdk.es123.js.map +0 -1
- package/dist/es/standards-sdk.es124.js +0 -21
- package/dist/es/standards-sdk.es124.js.map +0 -1
- package/dist/es/standards-sdk.es125.js +0 -9
- package/dist/es/standards-sdk.es125.js.map +0 -1
- package/dist/es/standards-sdk.es126.js +0 -12
- package/dist/es/standards-sdk.es126.js.map +0 -1
- package/dist/es/utils/transaction-parser.d.ts +0 -103
- package/dist/es/utils/transaction-parser.d.ts.map +0 -1
- package/dist/umd/utils/transaction-parser.d.ts +0 -103
- package/dist/umd/utils/transaction-parser.d.ts.map +0 -1
|
@@ -1,411 +1,340 @@
|
|
|
1
|
-
import Buffer from "./standards-sdk.
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import Buffer from "./standards-sdk.es24.js";
|
|
2
|
+
import { PublicKey, Timestamp } from "@hashgraph/sdk";
|
|
3
|
+
import "./standards-sdk.es29.js";
|
|
4
|
+
import { proto } from "@hashgraph/proto";
|
|
5
|
+
import axios from "./standards-sdk.es30.js";
|
|
6
|
+
class HederaMirrorNode {
|
|
7
|
+
constructor(network, logger) {
|
|
8
|
+
this.network = network;
|
|
9
|
+
this.baseUrl = this.getMirrorNodeUrl();
|
|
10
|
+
this.logger = logger;
|
|
11
|
+
this.isServerEnvironment = typeof window === "undefined";
|
|
12
|
+
}
|
|
13
|
+
getMirrorNodeUrl() {
|
|
14
|
+
return this.network === "mainnet" ? "https://mainnet-public.mirrornode.hedera.com" : "https://testnet.mirrornode.hedera.com";
|
|
15
|
+
}
|
|
16
|
+
getBaseUrl() {
|
|
17
|
+
return this.baseUrl;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves the public key for a given account ID from the mirror node.
|
|
21
|
+
* @param accountId The ID of the account to retrieve the public key for.
|
|
22
|
+
* @returns A promise that resolves to the public key for the given account.
|
|
23
|
+
* @throws An error if the account ID is invalid or the public key cannot be retrieved.
|
|
24
|
+
*/
|
|
25
|
+
async getPublicKey(accountId) {
|
|
26
|
+
this.logger.info(`Getting public key for account ${accountId}`);
|
|
27
|
+
const accountInfo = await this.requestAccount(accountId);
|
|
28
|
+
try {
|
|
29
|
+
if (!accountInfo || !accountInfo.key) {
|
|
30
|
+
throw new Error(
|
|
31
|
+
`Failed to retrieve public key for account ID: ${accountId}`
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
return PublicKey.fromString(accountInfo.key.key);
|
|
35
|
+
} catch (e) {
|
|
36
|
+
const error = e;
|
|
37
|
+
const logMessage = `Error fetching public key from Mirror Node: ${error.message}`;
|
|
38
|
+
this.logger.error(logMessage);
|
|
39
|
+
throw new Error(logMessage);
|
|
20
40
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves the memo for a given account ID from the mirror node.
|
|
44
|
+
* @param accountId The ID of the account to retrieve the memo for.
|
|
45
|
+
* @returns A promise that resolves to the memo for the given account.
|
|
46
|
+
* @throws An error if the account ID is invalid or the memo cannot be retrieved.
|
|
47
|
+
*/
|
|
48
|
+
async getAccountMemo(accountId) {
|
|
49
|
+
const maxRetries = 3;
|
|
50
|
+
for (let attempt = 0; attempt < maxRetries; attempt++) {
|
|
51
|
+
try {
|
|
52
|
+
const accountInfoUrl = `${this.baseUrl}/api/v1/accounts/${accountId}`;
|
|
53
|
+
const response = await axios.get(accountInfoUrl);
|
|
54
|
+
const accountInfo = response.data;
|
|
55
|
+
if (accountInfo && accountInfo.memo) {
|
|
56
|
+
return accountInfo.memo;
|
|
57
|
+
}
|
|
58
|
+
this.logger.error(`No memo found for account ${accountId}`);
|
|
59
|
+
if (attempt < maxRetries - 1) {
|
|
60
|
+
await new Promise((resolve) => setTimeout(resolve, 2e3));
|
|
61
|
+
}
|
|
62
|
+
} catch (e) {
|
|
63
|
+
const error = e;
|
|
64
|
+
const logMessage = `Error getting account memo (attempt ${attempt + 1}): ${error.message}`;
|
|
65
|
+
this.logger.error(logMessage);
|
|
66
|
+
if (attempt < maxRetries - 1) {
|
|
67
|
+
await new Promise((resolve) => setTimeout(resolve, 2e3));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
39
70
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
case "file":
|
|
59
|
-
request = {
|
|
60
|
-
...baseRequest,
|
|
61
|
-
file: {
|
|
62
|
-
type: "path",
|
|
63
|
-
path: input.path
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
break;
|
|
67
|
-
case "buffer":
|
|
68
|
-
request = {
|
|
69
|
-
...baseRequest,
|
|
70
|
-
file: {
|
|
71
|
-
type: "base64",
|
|
72
|
-
base64: Buffer.from(input.buffer).toString("base64"),
|
|
73
|
-
fileName: input.fileName,
|
|
74
|
-
mimeType: input.mimeType
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
break;
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves topic information for a given topic ID from the mirror node.
|
|
75
|
+
* @param topicId The ID of the topic to retrieve information for.
|
|
76
|
+
* @returns A promise that resolves to the topic information.
|
|
77
|
+
* @throws An error if the topic ID is invalid or the information cannot be retrieved.
|
|
78
|
+
*/
|
|
79
|
+
async getTopicInfo(topicId) {
|
|
80
|
+
try {
|
|
81
|
+
const topicInfoUrl = `${this.baseUrl}/api/v1/topics/${topicId}`;
|
|
82
|
+
const response = await axios.get(topicInfoUrl);
|
|
83
|
+
return response.data;
|
|
84
|
+
} catch (e) {
|
|
85
|
+
const error = e;
|
|
86
|
+
const logMessage = `Error retrieving topic information: ${error.message}`;
|
|
87
|
+
this.logger.error(logMessage);
|
|
88
|
+
throw new Error(logMessage);
|
|
78
89
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Retrieves custom fees for a given topic ID from the mirror node.
|
|
93
|
+
* @param topicId The ID of the topic to retrieve custom fees for.
|
|
94
|
+
* @returns A promise that resolves to the custom fees for the given topic.
|
|
95
|
+
* @throws An error if the topic ID is invalid or the custom fees cannot be retrieved.
|
|
96
|
+
*/
|
|
97
|
+
async getTopicFees(topicId) {
|
|
98
|
+
try {
|
|
99
|
+
const topicInfo = await this.getTopicInfo(topicId);
|
|
100
|
+
return topicInfo.custom_fees;
|
|
101
|
+
} catch (e) {
|
|
102
|
+
const error = e;
|
|
103
|
+
const logMessage = `Error retrieving topic fees: ${error.message}`;
|
|
104
|
+
this.logger.error(logMessage);
|
|
105
|
+
return null;
|
|
86
106
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
logger.debug("Waiting for inscription confirmation", {
|
|
100
|
-
transactionId: result.jobId,
|
|
101
|
-
maxAttempts: options.waitMaxAttempts,
|
|
102
|
-
intervalMs: options.waitIntervalMs
|
|
103
|
-
});
|
|
104
|
-
const inscription = await waitForInscriptionConfirmation(
|
|
105
|
-
sdk,
|
|
106
|
-
result.jobId,
|
|
107
|
-
options.waitMaxAttempts,
|
|
108
|
-
options.waitIntervalMs,
|
|
109
|
-
options.progressCallback
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Retrieves the current HBAR price from the mirror node.
|
|
110
|
+
* @param date The date to retrieve the HBAR price for.
|
|
111
|
+
* @returns A promise that resolves to the HBAR price for the given date.
|
|
112
|
+
* @throws An error if the date is invalid or the price cannot be retrieved.
|
|
113
|
+
*/
|
|
114
|
+
async getHBARPrice(date) {
|
|
115
|
+
try {
|
|
116
|
+
const timestamp = Timestamp.fromDate(date).toString();
|
|
117
|
+
const request = await fetch(
|
|
118
|
+
`https://mainnet-public.mirrornode.hedera.com/api/v1/network/exchangerate?timestamp=${timestamp}`
|
|
110
119
|
);
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
};
|
|
120
|
+
const response = await request.json();
|
|
121
|
+
const usdPrice = Number(response?.current_rate?.cent_equivalent) / Number(response?.current_rate?.hbar_equivalent) / 100;
|
|
122
|
+
return usdPrice;
|
|
123
|
+
} catch (e) {
|
|
124
|
+
const error = e;
|
|
125
|
+
const logMessage = `Error retrieving HBAR price: ${error.message}`;
|
|
126
|
+
this.logger.error(logMessage);
|
|
127
|
+
return null;
|
|
120
128
|
}
|
|
121
|
-
return {
|
|
122
|
-
confirmed: false,
|
|
123
|
-
result,
|
|
124
|
-
sdk
|
|
125
|
-
};
|
|
126
|
-
} catch (error) {
|
|
127
|
-
logger.error("Error during inscription process", error);
|
|
128
|
-
throw error;
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
sdk = existingSDK;
|
|
153
|
-
} else if (options.apiKey) {
|
|
154
|
-
logger.debug("Initializing InscriptionSDK with API key");
|
|
155
|
-
sdk = new InscriptionSDK({
|
|
156
|
-
apiKey: options.apiKey,
|
|
157
|
-
network: options.network || "mainnet"
|
|
158
|
-
});
|
|
159
|
-
} else {
|
|
160
|
-
logger.debug("Initializing InscriptionSDK with client auth");
|
|
161
|
-
sdk = await InscriptionSDK.createWithAuth({
|
|
162
|
-
type: "client",
|
|
163
|
-
accountId,
|
|
164
|
-
signer,
|
|
165
|
-
network: options.network || "mainnet"
|
|
166
|
-
});
|
|
130
|
+
/**
|
|
131
|
+
* Retrieves token information for a given token ID from the mirror node.
|
|
132
|
+
* @param tokenId The ID of the token to retrieve information for.
|
|
133
|
+
* @returns A promise that resolves to the token information.
|
|
134
|
+
* @throws An error if the token ID is invalid or the information cannot be retrieved.
|
|
135
|
+
*/
|
|
136
|
+
async getTokenInfo(tokenId) {
|
|
137
|
+
this.logger.debug(`Fetching token info for ${tokenId}`);
|
|
138
|
+
try {
|
|
139
|
+
const tokenInfoUrl = `${this.baseUrl}/api/v1/tokens/${tokenId}`;
|
|
140
|
+
const response = await axios.get(tokenInfoUrl);
|
|
141
|
+
if (response.data) {
|
|
142
|
+
this.logger.trace(`Token info found for ${tokenId}:`, response.data);
|
|
143
|
+
return response.data;
|
|
144
|
+
}
|
|
145
|
+
this.logger.warn(`No token info found for ${tokenId}`);
|
|
146
|
+
return null;
|
|
147
|
+
} catch (e) {
|
|
148
|
+
const error = e;
|
|
149
|
+
const logMessage = `Error fetching token info for ${tokenId}: ${error.message}`;
|
|
150
|
+
this.logger.error(logMessage);
|
|
151
|
+
return null;
|
|
167
152
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Retrieves messages for a given topic ID from the mirror node.
|
|
156
|
+
* @param topicId The ID of the topic to retrieve messages for.
|
|
157
|
+
* @returns A promise that resolves to the messages for the given topic.
|
|
158
|
+
* @throws An error if the topic ID is invalid or the messages cannot be retrieved.
|
|
159
|
+
*/
|
|
160
|
+
async getTopicMessages(topicId) {
|
|
161
|
+
this.logger.trace(`Querying messages for topic ${topicId}`);
|
|
162
|
+
let nextUrl = `${this.baseUrl}/api/v1/topics/${topicId}/messages`;
|
|
163
|
+
const messages = [];
|
|
164
|
+
while (nextUrl) {
|
|
165
|
+
try {
|
|
166
|
+
const response = await axios.get(nextUrl);
|
|
167
|
+
const data = response.data;
|
|
168
|
+
if (data.messages && data.messages.length > 0) {
|
|
169
|
+
for (const message of data.messages) {
|
|
170
|
+
try {
|
|
171
|
+
if (!message.message) {
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
let messageContent;
|
|
175
|
+
try {
|
|
176
|
+
if (this.isServerEnvironment) {
|
|
177
|
+
messageContent = Buffer.from(
|
|
178
|
+
message.message,
|
|
179
|
+
"base64"
|
|
180
|
+
).toString("utf-8");
|
|
181
|
+
} else {
|
|
182
|
+
messageContent = new TextDecoder().decode(
|
|
183
|
+
Uint8Array.from(
|
|
184
|
+
atob(message.message),
|
|
185
|
+
(c) => c.charCodeAt(0)
|
|
186
|
+
)
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
} catch (error) {
|
|
190
|
+
const logMessage = `Error decoding message: ${error}`;
|
|
191
|
+
this.logger.error(logMessage);
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
let messageJson;
|
|
195
|
+
try {
|
|
196
|
+
messageJson = JSON.parse(messageContent);
|
|
197
|
+
} catch (error) {
|
|
198
|
+
const logMessage = `Invalid JSON message content: ${messageContent}`;
|
|
199
|
+
this.logger.error(logMessage);
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
messageJson.sequence_number = message.sequence_number;
|
|
203
|
+
messages.push({
|
|
204
|
+
...messageJson,
|
|
205
|
+
consensus_timestamp: message.consensus_timestamp,
|
|
206
|
+
sequence_number: message.sequence_number,
|
|
207
|
+
created: new Date(Number(message.consensus_timestamp) * 1e3)
|
|
208
|
+
});
|
|
209
|
+
} catch (error) {
|
|
210
|
+
const logMessage = `Error processing message: ${error.message}`;
|
|
211
|
+
this.logger.error(logMessage);
|
|
212
|
+
}
|
|
203
213
|
}
|
|
204
|
-
}
|
|
205
|
-
|
|
214
|
+
}
|
|
215
|
+
nextUrl = data.links?.next ? `${this.baseUrl}${data.links.next}` : "";
|
|
216
|
+
} catch (e) {
|
|
217
|
+
const error = e;
|
|
218
|
+
const logMessage = `Error querying topic messages: ${error.message} on ${topicId}`;
|
|
219
|
+
this.logger.error(logMessage);
|
|
220
|
+
throw new Error(logMessage);
|
|
221
|
+
}
|
|
206
222
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
223
|
+
return messages;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Requests account information for a given account ID from the mirror node.
|
|
227
|
+
* @param accountId The ID of the account to retrieve information for.
|
|
228
|
+
* @returns A promise that resolves to the account information.
|
|
229
|
+
* @throws An error if the account ID is invalid or the information cannot be retrieved.
|
|
230
|
+
*/
|
|
231
|
+
async requestAccount(accountId) {
|
|
232
|
+
try {
|
|
233
|
+
const accountInfoUrl = `${this.baseUrl}/api/v1/accounts/${accountId}`;
|
|
234
|
+
const response = await axios.get(accountInfoUrl);
|
|
235
|
+
if (!response.data) {
|
|
236
|
+
throw new Error(
|
|
237
|
+
`Failed to make request to mirror node for account: ${accountId}`
|
|
238
|
+
);
|
|
213
239
|
}
|
|
240
|
+
return response.data;
|
|
241
|
+
} catch (e) {
|
|
242
|
+
const error = e;
|
|
243
|
+
const logMessage = `Failed to fetch account: ${error.message}`;
|
|
244
|
+
this.logger.error(logMessage);
|
|
245
|
+
throw new Error(logMessage);
|
|
214
246
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
)
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
});
|
|
232
|
-
if (options.waitForConfirmation) {
|
|
233
|
-
logger.debug("Waiting for inscription confirmation", {
|
|
234
|
-
transactionId: result.jobId,
|
|
235
|
-
maxAttempts: options.waitMaxAttempts,
|
|
236
|
-
intervalMs: options.waitIntervalMs
|
|
237
|
-
});
|
|
238
|
-
const inscription = await waitForInscriptionConfirmation(
|
|
239
|
-
sdk,
|
|
240
|
-
result.jobId,
|
|
241
|
-
options.waitMaxAttempts,
|
|
242
|
-
options.waitIntervalMs,
|
|
243
|
-
options.progressCallback
|
|
244
|
-
);
|
|
245
|
-
logger.info("Inscription confirmation received", {
|
|
246
|
-
transactionId: result.jobId
|
|
247
|
-
});
|
|
248
|
-
return {
|
|
249
|
-
confirmed: true,
|
|
250
|
-
result,
|
|
251
|
-
inscription,
|
|
252
|
-
sdk
|
|
253
|
-
};
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Checks if a user has access to a given key list.
|
|
250
|
+
* @param keyBytes The key list to check access for.
|
|
251
|
+
* @param userPublicKey The public key of the user to check access for.
|
|
252
|
+
* @returns A promise that resolves to true if the user has access, false otherwise.
|
|
253
|
+
*/
|
|
254
|
+
async checkKeyListAccess(keyBytes, userPublicKey) {
|
|
255
|
+
try {
|
|
256
|
+
const key = proto.Key.decode(keyBytes);
|
|
257
|
+
return this.evaluateKeyAccess(key, userPublicKey);
|
|
258
|
+
} catch (e) {
|
|
259
|
+
const error = e;
|
|
260
|
+
const logMessage = `Error decoding protobuf key: ${error.message}`;
|
|
261
|
+
this.logger.error(logMessage);
|
|
262
|
+
throw new Error(logMessage);
|
|
254
263
|
}
|
|
255
|
-
return {
|
|
256
|
-
confirmed: false,
|
|
257
|
-
result,
|
|
258
|
-
sdk
|
|
259
|
-
};
|
|
260
|
-
} catch (error) {
|
|
261
|
-
logger.error("Error during inscription process", error);
|
|
262
|
-
throw error;
|
|
263
264
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
formattedTransactionId
|
|
274
|
-
});
|
|
275
|
-
try {
|
|
276
|
-
let sdk;
|
|
277
|
-
if (options?.apiKey) {
|
|
278
|
-
logger.debug("Initializing InscriptionSDK with API key");
|
|
279
|
-
sdk = new InscriptionSDK({
|
|
280
|
-
apiKey: options.apiKey,
|
|
281
|
-
network: options.network || "mainnet"
|
|
282
|
-
});
|
|
283
|
-
} else if (options?.accountId && options?.privateKey) {
|
|
284
|
-
logger.debug("Initializing InscriptionSDK with server auth");
|
|
285
|
-
sdk = await InscriptionSDK.createWithAuth({
|
|
286
|
-
type: "server",
|
|
287
|
-
accountId: options.accountId,
|
|
288
|
-
privateKey: options.privateKey,
|
|
289
|
-
network: options.network || "mainnet"
|
|
290
|
-
});
|
|
291
|
-
} else {
|
|
292
|
-
const error = new Error(
|
|
293
|
-
"Either API key or account ID and private key are required for retrieving inscriptions"
|
|
294
|
-
);
|
|
295
|
-
logger.error("Missing authentication credentials", {
|
|
296
|
-
hasApiKey: Boolean(options?.apiKey),
|
|
297
|
-
hasAccountId: Boolean(options?.accountId),
|
|
298
|
-
hasPrivateKey: Boolean(options?.privateKey)
|
|
299
|
-
});
|
|
300
|
-
throw error;
|
|
265
|
+
/**
|
|
266
|
+
* Evaluates the access of a given key to a user's public key.
|
|
267
|
+
* @param key The key to evaluate access for.
|
|
268
|
+
* @param userPublicKey The public key of the user to evaluate access for.
|
|
269
|
+
* @returns A promise that resolves to true if the key has access, false otherwise.
|
|
270
|
+
*/
|
|
271
|
+
async evaluateKeyAccess(key, userPublicKey) {
|
|
272
|
+
if (key.ed25519) {
|
|
273
|
+
return this.compareEd25519Key(key.ed25519, userPublicKey);
|
|
301
274
|
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
});
|
|
310
|
-
return result;
|
|
311
|
-
} catch (error) {
|
|
312
|
-
logger.error("Error retrieving inscription", {
|
|
313
|
-
formattedTransactionId,
|
|
314
|
-
error
|
|
315
|
-
});
|
|
316
|
-
throw error;
|
|
275
|
+
if (key.keyList) {
|
|
276
|
+
return this.evaluateKeyList(key.keyList, userPublicKey);
|
|
277
|
+
}
|
|
278
|
+
if (key.thresholdKey && key.thresholdKey.keys) {
|
|
279
|
+
return this.evaluateKeyList(key.thresholdKey.keys, userPublicKey);
|
|
280
|
+
}
|
|
281
|
+
return false;
|
|
317
282
|
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
283
|
+
/**
|
|
284
|
+
* Evaluates the access of a given key list to a user's public key.
|
|
285
|
+
* @param keyList The key list to evaluate access for.
|
|
286
|
+
* @param userPublicKey The public key of the user to evaluate access for.
|
|
287
|
+
* @returns A promise that resolves to true if the key list has access, false otherwise.
|
|
288
|
+
*/
|
|
289
|
+
async evaluateKeyList(keyList, userPublicKey) {
|
|
290
|
+
const keys = keyList.keys || [];
|
|
291
|
+
for (const listKey of keys) {
|
|
292
|
+
if (!listKey) continue;
|
|
293
|
+
if (listKey.ed25519) {
|
|
294
|
+
if (this.compareEd25519Key(listKey.ed25519, userPublicKey)) {
|
|
295
|
+
return true;
|
|
296
|
+
}
|
|
297
|
+
} else if (listKey.keyList || listKey.thresholdKey) {
|
|
298
|
+
try {
|
|
299
|
+
const nestedKeyBytes = proto.Key.encode({
|
|
300
|
+
...listKey.keyList ? { keyList: listKey.keyList } : {},
|
|
301
|
+
...listKey.thresholdKey ? { thresholdKey: listKey.thresholdKey } : {}
|
|
302
|
+
}).finish();
|
|
303
|
+
const hasNestedAccess = await this.checkKeyListAccess(
|
|
304
|
+
Buffer.from(nestedKeyBytes),
|
|
305
|
+
userPublicKey
|
|
306
|
+
);
|
|
307
|
+
if (hasNestedAccess) {
|
|
308
|
+
return true;
|
|
309
|
+
}
|
|
310
|
+
} catch (e) {
|
|
311
|
+
const error = e;
|
|
312
|
+
const logMessage = `Error in nested key: ${error.message}`;
|
|
313
|
+
this.logger.debug(logMessage);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return false;
|
|
328
318
|
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
async function waitForInscriptionConfirmation(sdk, transactionId, maxAttempts = 30, intervalMs = 4e3, progressCallback) {
|
|
339
|
-
const logger = Logger.getInstance({ module: "Inscriber" });
|
|
340
|
-
const progressReporter = new ProgressReporter({
|
|
341
|
-
module: "Inscriber",
|
|
342
|
-
logger,
|
|
343
|
-
callback: progressCallback
|
|
344
|
-
});
|
|
345
|
-
try {
|
|
346
|
-
logger.debug("Waiting for inscription confirmation", {
|
|
347
|
-
transactionId,
|
|
348
|
-
maxAttempts,
|
|
349
|
-
intervalMs
|
|
350
|
-
});
|
|
351
|
-
progressReporter.preparing("Preparing for inscription confirmation", 5, {
|
|
352
|
-
transactionId,
|
|
353
|
-
maxAttempts,
|
|
354
|
-
intervalMs
|
|
355
|
-
});
|
|
319
|
+
/**
|
|
320
|
+
* Compares an Ed25519 key with a user's public key.
|
|
321
|
+
* @param keyData The Ed25519 key data to compare.
|
|
322
|
+
* @param userPublicKey The public key of the user to compare with.
|
|
323
|
+
* @returns A boolean indicating whether the key matches the user's public key.
|
|
324
|
+
*/
|
|
325
|
+
compareEd25519Key(keyData, userPublicKey) {
|
|
356
326
|
try {
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
const stage = data.stage || "confirming";
|
|
360
|
-
const message = data.message || "Processing inscription";
|
|
361
|
-
const percent = data.progressPercent || 50;
|
|
362
|
-
progressReporter.report({
|
|
363
|
-
stage,
|
|
364
|
-
message,
|
|
365
|
-
progressPercent: percent,
|
|
366
|
-
details: {}
|
|
367
|
-
});
|
|
368
|
-
};
|
|
369
|
-
return await waitMethod(
|
|
370
|
-
transactionId,
|
|
371
|
-
maxAttempts,
|
|
372
|
-
intervalMs,
|
|
373
|
-
true,
|
|
374
|
-
wrappedCallback
|
|
375
|
-
);
|
|
327
|
+
const decodedKey = PublicKey.fromBytes(Buffer.from(keyData));
|
|
328
|
+
return decodedKey.toString() === userPublicKey.toString();
|
|
376
329
|
} catch (e) {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
progressReporter.verifying("Verifying inscription status", 50, {
|
|
382
|
-
error: e
|
|
383
|
-
});
|
|
384
|
-
return await sdk.waitForInscription(
|
|
385
|
-
transactionId,
|
|
386
|
-
maxAttempts,
|
|
387
|
-
intervalMs,
|
|
388
|
-
true
|
|
389
|
-
);
|
|
330
|
+
const error = e;
|
|
331
|
+
const logMessage = `Error comparing Ed25519 key: ${error.message}`;
|
|
332
|
+
this.logger.debug(logMessage);
|
|
333
|
+
return false;
|
|
390
334
|
}
|
|
391
|
-
} catch (error) {
|
|
392
|
-
logger.error("Error waiting for inscription confirmation", {
|
|
393
|
-
transactionId,
|
|
394
|
-
maxAttempts,
|
|
395
|
-
intervalMs,
|
|
396
|
-
error
|
|
397
|
-
});
|
|
398
|
-
progressReporter.failed("Inscription confirmation failed", {
|
|
399
|
-
transactionId,
|
|
400
|
-
error
|
|
401
|
-
});
|
|
402
|
-
throw error;
|
|
403
335
|
}
|
|
404
336
|
}
|
|
405
337
|
export {
|
|
406
|
-
|
|
407
|
-
inscribeWithSigner,
|
|
408
|
-
retrieveInscription,
|
|
409
|
-
waitForInscriptionConfirmation
|
|
338
|
+
HederaMirrorNode
|
|
410
339
|
};
|
|
411
340
|
//# sourceMappingURL=standards-sdk.es20.js.map
|