@hashgraphonline/standards-sdk 0.1.137-feat-hcs-21.canary.5802d65.32 → 0.1.138
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/standards-sdk.es109.js +1 -1
- package/dist/es/standards-sdk.es110.js +5 -5
- package/dist/es/standards-sdk.es120.js +1 -1
- package/dist/es/standards-sdk.es121.js +1 -1
- package/dist/es/standards-sdk.es122.js +5 -5
- package/dist/es/standards-sdk.es124.js +1 -1
- package/dist/es/standards-sdk.es125.js +1 -1
- package/dist/es/standards-sdk.es127.js +1 -1
- package/dist/es/standards-sdk.es137.js +56 -694
- package/dist/es/standards-sdk.es137.js.map +1 -1
- package/dist/es/standards-sdk.es138.js +45 -12255
- package/dist/es/standards-sdk.es138.js.map +1 -1
- package/dist/es/standards-sdk.es139.js +694 -56
- package/dist/es/standards-sdk.es139.js.map +1 -1
- package/dist/es/standards-sdk.es140.js +15 -62
- package/dist/es/standards-sdk.es140.js.map +1 -1
- package/dist/es/standards-sdk.es141.js +12235 -133
- package/dist/es/standards-sdk.es141.js.map +1 -1
- package/dist/es/standards-sdk.es142.js +139 -289
- package/dist/es/standards-sdk.es142.js.map +1 -1
- package/dist/es/standards-sdk.es143.js +274 -298
- package/dist/es/standards-sdk.es143.js.map +1 -1
- package/dist/es/standards-sdk.es144.js +262 -369
- package/dist/es/standards-sdk.es144.js.map +1 -1
- package/dist/es/standards-sdk.es145.js +316 -194
- package/dist/es/standards-sdk.es145.js.map +1 -1
- package/dist/es/standards-sdk.es146.js +319 -64
- package/dist/es/standards-sdk.es146.js.map +1 -1
- package/dist/es/standards-sdk.es147.js +74 -15
- package/dist/es/standards-sdk.es147.js.map +1 -1
- package/dist/es/standards-sdk.es17.js +1 -1
- package/dist/es/standards-sdk.es19.js +2 -2
- package/dist/es/standards-sdk.es20.js +2 -2
- package/dist/es/standards-sdk.es28.js +2 -2
- package/dist/es/standards-sdk.es31.js +1 -1
- package/dist/es/standards-sdk.es32.js +1 -1
- package/dist/es/standards-sdk.es36.js +2 -2
- package/dist/es/standards-sdk.es37.js +1 -1
- package/dist/es/standards-sdk.es38.js +1 -1
- package/dist/es/standards-sdk.es57.js +1 -1
- package/dist/es/standards-sdk.es59.js +1 -1
- package/dist/es/standards-sdk.es60.js +1 -1
- package/dist/es/standards-sdk.es61.js +1 -1
- package/dist/es/standards-sdk.es63.js +1 -1
- package/dist/es/standards-sdk.es65.js +1 -1
- package/dist/es/standards-sdk.es66.js +1 -1
- package/dist/es/standards-sdk.es78.js +1 -1
- package/package.json +60 -62
|
@@ -1,20 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
constructor(config) {
|
|
8
|
-
this.network = config.network;
|
|
9
|
-
this.logger = config.logger || Logger.getInstance({
|
|
10
|
-
level: config.logLevel || "info",
|
|
11
|
-
module: "HCS5Client",
|
|
12
|
-
silent: config.silent
|
|
13
|
-
});
|
|
14
|
-
this.mirrorNode = new HederaMirrorNode(this.network, this.logger);
|
|
1
|
+
import { proto } from "@hashgraph/proto";
|
|
2
|
+
import { ContractId } from "@hashgraph/sdk";
|
|
3
|
+
import { Buffer } from "buffer";
|
|
4
|
+
function parseKey(key) {
|
|
5
|
+
if (!key) {
|
|
6
|
+
return void 0;
|
|
15
7
|
}
|
|
8
|
+
if (key.contractID) {
|
|
9
|
+
return `ContractID: ${new ContractId(
|
|
10
|
+
key.contractID.shardNum ?? 0,
|
|
11
|
+
key.contractID.realmNum ?? 0,
|
|
12
|
+
key.contractID.contractNum ?? 0
|
|
13
|
+
).toString()}`;
|
|
14
|
+
}
|
|
15
|
+
if (key.ed25519) {
|
|
16
|
+
return `ED25519: ${Buffer.from(key.ed25519).toString("hex")}`;
|
|
17
|
+
}
|
|
18
|
+
if (key.ECDSASecp256k1) {
|
|
19
|
+
return `ECDSA_secp256k1: ${Buffer.from(key.ECDSASecp256k1).toString(
|
|
20
|
+
"hex"
|
|
21
|
+
)}`;
|
|
22
|
+
}
|
|
23
|
+
if (key?.keyList?.keys?.length > 0) {
|
|
24
|
+
const keys = key.keyList.keys.map((k) => parseKey(k)).filter(Boolean);
|
|
25
|
+
return `KeyList (${keys.length} keys): [${keys.join(", ")}]`;
|
|
26
|
+
}
|
|
27
|
+
if (key?.thresholdKey?.keys?.keys?.length > 0) {
|
|
28
|
+
const keys = key.thresholdKey.keys.keys.map((k) => parseKey(k)).filter(Boolean);
|
|
29
|
+
return `ThresholdKey (${key.thresholdKey.threshold} of ${keys.length}): [${keys.join(", ")}]`;
|
|
30
|
+
}
|
|
31
|
+
if (key.delegatableContractId) {
|
|
32
|
+
return `DelegatableContractID: ${new ContractId(
|
|
33
|
+
key.delegatableContractId.shardNum ?? 0,
|
|
34
|
+
key.delegatableContractId.realmNum ?? 0,
|
|
35
|
+
key.delegatableContractId.contractNum ?? 0
|
|
36
|
+
).toString()}`;
|
|
37
|
+
}
|
|
38
|
+
if (Object.keys(key).length === 0) {
|
|
39
|
+
return "Empty Key Structure";
|
|
40
|
+
}
|
|
41
|
+
return "Unknown or Unset Key Type";
|
|
42
|
+
}
|
|
43
|
+
function extractTransactionBody(transaction) {
|
|
44
|
+
try {
|
|
45
|
+
const bytes = transaction.toBytes ? transaction.toBytes() : void 0;
|
|
46
|
+
if (!bytes) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
const decoded = proto.TransactionList.decode(bytes);
|
|
50
|
+
if (!decoded.transactionList || decoded.transactionList.length === 0) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
const tx = decoded.transactionList[0];
|
|
54
|
+
if (tx.bodyBytes && tx.bodyBytes.length > 0) {
|
|
55
|
+
return proto.TransactionBody.decode(tx.bodyBytes);
|
|
56
|
+
}
|
|
57
|
+
if (tx.signedTransactionBytes && tx.signedTransactionBytes.length > 0) {
|
|
58
|
+
const signedTx = proto.SignedTransaction.decode(
|
|
59
|
+
tx.signedTransactionBytes
|
|
60
|
+
);
|
|
61
|
+
if (signedTx.bodyBytes) {
|
|
62
|
+
return proto.TransactionBody.decode(signedTx.bodyBytes);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
} catch (error) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function hasTransactionType(transaction, transactionField) {
|
|
71
|
+
const txBody = extractTransactionBody(transaction);
|
|
72
|
+
return !!(txBody && txBody[transactionField]);
|
|
16
73
|
}
|
|
17
74
|
export {
|
|
18
|
-
|
|
75
|
+
extractTransactionBody,
|
|
76
|
+
hasTransactionType,
|
|
77
|
+
parseKey
|
|
19
78
|
};
|
|
20
79
|
//# sourceMappingURL=standards-sdk.es147.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standards-sdk.es147.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"standards-sdk.es147.js","sources":["../../src/utils/parsers/parser-utils.ts"],"sourcesContent":["import { proto } from '@hashgraph/proto';\nimport { ContractId, Transaction } from '@hashgraph/sdk';\nimport { Buffer } from 'buffer';\n\nexport function parseKey(\n key: proto.IKey | null | undefined,\n): string | undefined {\n if (!key) {\n return undefined;\n }\n\n if (key.contractID) {\n return `ContractID: ${new ContractId(\n key.contractID.shardNum ?? 0,\n key.contractID.realmNum ?? 0,\n key.contractID.contractNum ?? 0,\n ).toString()}`;\n }\n if (key.ed25519) {\n return `ED25519: ${Buffer.from(key.ed25519).toString('hex')}`;\n }\n if (key.ECDSASecp256k1) {\n return `ECDSA_secp256k1: ${Buffer.from(key.ECDSASecp256k1).toString(\n 'hex',\n )}`;\n }\n if (key?.keyList?.keys?.length > 0) {\n const keys = key.keyList.keys.map(k => parseKey(k)).filter(Boolean);\n return `KeyList (${keys.length} keys): [${keys.join(', ')}]`;\n }\n if (key?.thresholdKey?.keys?.keys?.length > 0) {\n const keys = key.thresholdKey.keys.keys\n .map(k => parseKey(k))\n .filter(Boolean);\n return `ThresholdKey (${key.thresholdKey.threshold} of ${\n keys.length\n }): [${keys.join(', ')}]`;\n }\n if (key.delegatableContractId) {\n return `DelegatableContractID: ${new ContractId(\n key.delegatableContractId.shardNum ?? 0,\n key.delegatableContractId.realmNum ?? 0,\n key.delegatableContractId.contractNum ?? 0,\n ).toString()}`;\n }\n if (Object.keys(key).length === 0) {\n return 'Empty Key Structure';\n }\n\n return 'Unknown or Unset Key Type';\n}\n\n/**\n * Extract TransactionBody from Transaction object using protobuf parsing\n * This replaces fragile constructor name checking with reliable protobuf data\n */\nexport function extractTransactionBody(\n transaction: Transaction,\n): proto.ITransactionBody | null {\n try {\n const bytes = transaction.toBytes ? transaction.toBytes() : undefined;\n if (!bytes) {\n return null;\n }\n\n const decoded = proto.TransactionList.decode(bytes);\n if (!decoded.transactionList || decoded.transactionList.length === 0) {\n return null;\n }\n\n const tx = decoded.transactionList[0];\n\n if (tx.bodyBytes && tx.bodyBytes.length > 0) {\n return proto.TransactionBody.decode(tx.bodyBytes);\n }\n\n if (tx.signedTransactionBytes && tx.signedTransactionBytes.length > 0) {\n const signedTx = proto.SignedTransaction.decode(\n tx.signedTransactionBytes,\n );\n if (signedTx.bodyBytes) {\n return proto.TransactionBody.decode(signedTx.bodyBytes);\n }\n }\n\n return null;\n } catch (error) {\n return null;\n }\n}\n\n/**\n * Check if transaction has specific transaction type using protobuf data\n * This replaces constructor name checking with reliable protobuf field detection\n */\nexport function hasTransactionType(\n transaction: Transaction,\n transactionField: keyof proto.ITransactionBody,\n): boolean {\n const txBody = extractTransactionBody(transaction);\n return !!(txBody && txBody[transactionField]);\n}\n"],"names":[],"mappings":";;;AAIO,SAAS,SACd,KACoB;AACpB,MAAI,CAAC,KAAK;AACR,WAAO;AAAA,EACT;AAEA,MAAI,IAAI,YAAY;AAClB,WAAO,eAAe,IAAI;AAAA,MACxB,IAAI,WAAW,YAAY;AAAA,MAC3B,IAAI,WAAW,YAAY;AAAA,MAC3B,IAAI,WAAW,eAAe;AAAA,IAAA,EAC9B,UAAU;AAAA,EACd;AACA,MAAI,IAAI,SAAS;AACf,WAAO,YAAY,OAAO,KAAK,IAAI,OAAO,EAAE,SAAS,KAAK,CAAC;AAAA,EAC7D;AACA,MAAI,IAAI,gBAAgB;AACtB,WAAO,oBAAoB,OAAO,KAAK,IAAI,cAAc,EAAE;AAAA,MACzD;AAAA,IAAA,CACD;AAAA,EACH;AACA,MAAI,KAAK,SAAS,MAAM,SAAS,GAAG;AAClC,UAAM,OAAO,IAAI,QAAQ,KAAK,IAAI,CAAA,MAAK,SAAS,CAAC,CAAC,EAAE,OAAO,OAAO;AAClE,WAAO,YAAY,KAAK,MAAM,YAAY,KAAK,KAAK,IAAI,CAAC;AAAA,EAC3D;AACA,MAAI,KAAK,cAAc,MAAM,MAAM,SAAS,GAAG;AAC7C,UAAM,OAAO,IAAI,aAAa,KAAK,KAChC,IAAI,CAAA,MAAK,SAAS,CAAC,CAAC,EACpB,OAAO,OAAO;AACjB,WAAO,iBAAiB,IAAI,aAAa,SAAS,OAChD,KAAK,MACP,OAAO,KAAK,KAAK,IAAI,CAAC;AAAA,EACxB;AACA,MAAI,IAAI,uBAAuB;AAC7B,WAAO,0BAA0B,IAAI;AAAA,MACnC,IAAI,sBAAsB,YAAY;AAAA,MACtC,IAAI,sBAAsB,YAAY;AAAA,MACtC,IAAI,sBAAsB,eAAe;AAAA,IAAA,EACzC,UAAU;AAAA,EACd;AACA,MAAI,OAAO,KAAK,GAAG,EAAE,WAAW,GAAG;AACjC,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAMO,SAAS,uBACd,aAC+B;AAC/B,MAAI;AACF,UAAM,QAAQ,YAAY,UAAU,YAAY,YAAY;AAC5D,QAAI,CAAC,OAAO;AACV,aAAO;AAAA,IACT;AAEA,UAAM,UAAU,MAAM,gBAAgB,OAAO,KAAK;AAClD,QAAI,CAAC,QAAQ,mBAAmB,QAAQ,gBAAgB,WAAW,GAAG;AACpE,aAAO;AAAA,IACT;AAEA,UAAM,KAAK,QAAQ,gBAAgB,CAAC;AAEpC,QAAI,GAAG,aAAa,GAAG,UAAU,SAAS,GAAG;AAC3C,aAAO,MAAM,gBAAgB,OAAO,GAAG,SAAS;AAAA,IAClD;AAEA,QAAI,GAAG,0BAA0B,GAAG,uBAAuB,SAAS,GAAG;AACrE,YAAM,WAAW,MAAM,kBAAkB;AAAA,QACvC,GAAG;AAAA,MAAA;AAEL,UAAI,SAAS,WAAW;AACtB,eAAO,MAAM,gBAAgB,OAAO,SAAS,SAAS;AAAA,MACxD;AAAA,IACF;AAEA,WAAO;AAAA,EACT,SAAS,OAAO;AACd,WAAO;AAAA,EACT;AACF;AAMO,SAAS,mBACd,aACA,kBACS;AACT,QAAM,SAAS,uBAAuB,WAAW;AACjD,SAAO,CAAC,EAAE,UAAU,OAAO,gBAAgB;AAC7C;"}
|
|
@@ -13,7 +13,7 @@ import "viem/accounts";
|
|
|
13
13
|
import "viem/chains";
|
|
14
14
|
import "x402-axios";
|
|
15
15
|
import "x402/types";
|
|
16
|
-
import "./standards-sdk.
|
|
16
|
+
import "./standards-sdk.es139.js";
|
|
17
17
|
import "zod";
|
|
18
18
|
import { buildHcs10SubmitConnectionRequestTx, buildHcs10OutboundConnectionRequestRecordTx, buildHcs10OutboundConnectionCreatedRecordTx } from "./standards-sdk.es23.js";
|
|
19
19
|
import { HRLResolver } from "./standards-sdk.es109.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./standards-sdk.es2.js";
|
|
2
2
|
import { Client, PrivateKey, AccountCreateTransaction, Hbar, CustomFixedFee, AccountId, TokenId, KeyList, TopicMessageSubmitTransaction, Transaction, ScheduleCreateTransaction, Timestamp } from "@hashgraph/sdk";
|
|
3
3
|
import { AccountCreationError, TopicCreationError, ConnectionConfirmationError, PayloadSizeError } from "./standards-sdk.es18.js";
|
|
4
|
-
import { InscriptionSDK } from "./standards-sdk.
|
|
4
|
+
import { InscriptionSDK } from "./standards-sdk.es141.js";
|
|
5
5
|
import { Logger } from "./standards-sdk.es105.js";
|
|
6
6
|
import { accountIdsToExemptKeys } from "./standards-sdk.es107.js";
|
|
7
7
|
import { ProgressReporter } from "./standards-sdk.es108.js";
|
|
@@ -16,7 +16,7 @@ import "viem/accounts";
|
|
|
16
16
|
import "viem/chains";
|
|
17
17
|
import "x402-axios";
|
|
18
18
|
import "x402/types";
|
|
19
|
-
import "./standards-sdk.
|
|
19
|
+
import "./standards-sdk.es139.js";
|
|
20
20
|
import "zod";
|
|
21
21
|
import "buffer";
|
|
22
22
|
import "ethers";
|
|
@@ -12,14 +12,14 @@ import "viem/accounts";
|
|
|
12
12
|
import "viem/chains";
|
|
13
13
|
import "x402-axios";
|
|
14
14
|
import "x402/types";
|
|
15
|
-
import "./standards-sdk.
|
|
15
|
+
import "./standards-sdk.es139.js";
|
|
16
16
|
import "zod";
|
|
17
17
|
import "buffer";
|
|
18
18
|
import "ethers";
|
|
19
19
|
import "./standards-sdk.es122.js";
|
|
20
20
|
import "./standards-sdk.es113.js";
|
|
21
21
|
import { getTopicId } from "./standards-sdk.es114.js";
|
|
22
|
-
import { InscriptionSDK } from "./standards-sdk.
|
|
22
|
+
import { InscriptionSDK } from "./standards-sdk.es141.js";
|
|
23
23
|
import { HCS10BaseClient, Hcs10MemoType } from "./standards-sdk.es17.js";
|
|
24
24
|
import * as mime from "mime-types";
|
|
25
25
|
import { AgentBuilder } from "./standards-sdk.es24.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Client, Status, PrivateKey, AccountUpdateTransaction } from "@hashgraph/sdk";
|
|
2
2
|
import { inscribeWithSigner, inscribe } from "./standards-sdk.es124.js";
|
|
3
|
-
import "./standards-sdk.
|
|
3
|
+
import "./standards-sdk.es141.js";
|
|
4
4
|
import { Logger } from "./standards-sdk.es105.js";
|
|
5
5
|
import { HederaMirrorNode } from "./standards-sdk.es126.js";
|
|
6
6
|
import { ProgressReporter } from "./standards-sdk.es108.js";
|
|
@@ -14,7 +14,7 @@ import "viem/accounts";
|
|
|
14
14
|
import "viem/chains";
|
|
15
15
|
import "x402-axios";
|
|
16
16
|
import "x402/types";
|
|
17
|
-
import "./standards-sdk.
|
|
17
|
+
import "./standards-sdk.es139.js";
|
|
18
18
|
import { z } from "zod";
|
|
19
19
|
import "@hashgraph/proto";
|
|
20
20
|
import "buffer";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RegistryType } from "./standards-sdk.es30.js";
|
|
2
2
|
import { inscribe, inscribeWithSigner } from "./standards-sdk.es124.js";
|
|
3
|
-
import "./standards-sdk.
|
|
3
|
+
import "./standards-sdk.es141.js";
|
|
4
4
|
class BaseRegistry {
|
|
5
5
|
constructor(networkType, logger, registryType, topicId, client) {
|
|
6
6
|
this.entries = /* @__PURE__ */ new Map();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RegistryType } from "./standards-sdk.es30.js";
|
|
2
2
|
import { BaseRegistry } from "./standards-sdk.es31.js";
|
|
3
3
|
import { retrieveInscription } from "./standards-sdk.es124.js";
|
|
4
|
-
import "./standards-sdk.
|
|
4
|
+
import "./standards-sdk.es141.js";
|
|
5
5
|
import { getCryptoAdapter } from "./standards-sdk.es119.js";
|
|
6
6
|
import { isSSREnvironment } from "./standards-sdk.es117.js";
|
|
7
7
|
import { validateActionRegistration } from "./standards-sdk.es43.js";
|
|
@@ -10,10 +10,10 @@ import "viem/accounts";
|
|
|
10
10
|
import "viem/chains";
|
|
11
11
|
import "x402-axios";
|
|
12
12
|
import "x402/types";
|
|
13
|
-
import "./standards-sdk.
|
|
13
|
+
import "./standards-sdk.es139.js";
|
|
14
14
|
import "zod";
|
|
15
15
|
import "@hashgraph/sdk";
|
|
16
|
-
import "./standards-sdk.
|
|
16
|
+
import "./standards-sdk.es141.js";
|
|
17
17
|
import "@hashgraph/proto";
|
|
18
18
|
import "buffer";
|
|
19
19
|
import "ethers";
|
|
@@ -3,7 +3,7 @@ import { HCS12BaseClient } from "./standards-sdk.es36.js";
|
|
|
3
3
|
import { createNodeOperatorContext } from "./standards-sdk.es135.js";
|
|
4
4
|
import { RegistryType } from "./standards-sdk.es30.js";
|
|
5
5
|
import { inscribe } from "./standards-sdk.es124.js";
|
|
6
|
-
import { InscriptionSDK } from "./standards-sdk.
|
|
6
|
+
import { InscriptionSDK } from "./standards-sdk.es141.js";
|
|
7
7
|
import { ActionRegistry } from "./standards-sdk.es32.js";
|
|
8
8
|
import { BlockLoader } from "./standards-sdk.es33.js";
|
|
9
9
|
import { AssemblyRegistry } from "./standards-sdk.es34.js";
|
|
@@ -2,7 +2,7 @@ import { TopicCreateTransaction, TransactionId, AccountId, PublicKey, KeyList, T
|
|
|
2
2
|
import { HCS12BaseClient } from "./standards-sdk.es36.js";
|
|
3
3
|
import { RegistryType } from "./standards-sdk.es30.js";
|
|
4
4
|
import { inscribeWithSigner } from "./standards-sdk.es124.js";
|
|
5
|
-
import { InscriptionSDK } from "./standards-sdk.
|
|
5
|
+
import { InscriptionSDK } from "./standards-sdk.es141.js";
|
|
6
6
|
import { ActionRegistry } from "./standards-sdk.es32.js";
|
|
7
7
|
import { BlockLoader } from "./standards-sdk.es33.js";
|
|
8
8
|
import { AssemblyRegistry } from "./standards-sdk.es34.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCryptoAdapter } from "./standards-sdk.es119.js";
|
|
2
|
-
import { base58Encode } from "./standards-sdk.
|
|
2
|
+
import { base58Encode } from "./standards-sdk.es137.js";
|
|
3
3
|
import { canonicalizeAgentData } from "./standards-sdk.es56.js";
|
|
4
4
|
function encodeMultibaseB58btc(input) {
|
|
5
5
|
const bytes = Buffer.from(input, "utf8");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HieroDidResolver } from "./standards-sdk.es60.js";
|
|
2
2
|
import { parseHcs14Did } from "./standards-sdk.es57.js";
|
|
3
|
-
import { multibaseB58btcDecode } from "./standards-sdk.
|
|
3
|
+
import { multibaseB58btcDecode } from "./standards-sdk.es137.js";
|
|
4
4
|
class ResolverRegistry {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.resolvers = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HCS5BaseClient } from "./standards-sdk.
|
|
1
|
+
import { HCS5BaseClient } from "./standards-sdk.es140.js";
|
|
2
2
|
import { buildHcs1Hrl } from "./standards-sdk.es64.js";
|
|
3
3
|
import { PrivateKey } from "@hashgraph/sdk";
|
|
4
4
|
import { inscribeWithSigner } from "./standards-sdk.es124.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HCS5BaseClient } from "./standards-sdk.
|
|
1
|
+
import { HCS5BaseClient } from "./standards-sdk.es140.js";
|
|
2
2
|
import { buildHcs1Hrl } from "./standards-sdk.es64.js";
|
|
3
3
|
import { AccountId } from "@hashgraph/sdk";
|
|
4
4
|
import { inscribe } from "./standards-sdk.es124.js";
|
|
@@ -10,7 +10,7 @@ import "viem/accounts";
|
|
|
10
10
|
import "viem/chains";
|
|
11
11
|
import "x402-axios";
|
|
12
12
|
import "x402/types";
|
|
13
|
-
import "./standards-sdk.
|
|
13
|
+
import "./standards-sdk.es139.js";
|
|
14
14
|
import "zod";
|
|
15
15
|
import "@hashgraph/sdk";
|
|
16
16
|
import { HCS20_CONSTANTS, HCS20MessageSchema } from "./standards-sdk.es73.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashgraphonline/standards-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.138",
|
|
4
4
|
"description": "The Hashgraph Online Standards SDK provides a complete implementation of the Hashgraph Consensus Standards (HCS), giving developers all the tools needed to build applications on Hedera.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -45,65 +45,6 @@
|
|
|
45
45
|
"default": "./dist/es/standards-sdk.es.js"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"scripts": {
|
|
49
|
-
"clean": "rimraf dist",
|
|
50
|
-
"build:es": "BUILD_FORMAT=es vite build",
|
|
51
|
-
"build:umd": "BUILD_FORMAT=umd vite build",
|
|
52
|
-
"build:cjs": "BUILD_FORMAT=cjs vite build",
|
|
53
|
-
"build": "npm run clean && npm run build:es && npm run build:cjs",
|
|
54
|
-
"cli": "([ -d cli/standards-cli/node_modules ] || pnpm --dir cli/standards-cli install) && pnpm --dir cli/standards-cli start",
|
|
55
|
-
"cli:build": "([ -d cli/standards-cli/node_modules ] || pnpm --dir cli/standards-cli install) && pnpm --dir cli/standards-cli build",
|
|
56
|
-
"cli:install": "pnpm --dir cli/standards-cli install",
|
|
57
|
-
"prepublishOnly": "npm run build",
|
|
58
|
-
"release": "npm publish --access public",
|
|
59
|
-
"release:canary": "npm run prepublishOnly && npm publish --tag canary --access public",
|
|
60
|
-
"version:canary": "npm version prerelease --preid canary --no-git-tag-version",
|
|
61
|
-
"publish:canary": "npm run version:canary && npm run release:canary",
|
|
62
|
-
"demo:inscribe": "tsx demo/inscribe-demo.ts",
|
|
63
|
-
"demo:hcs-10": "tsx demo/hcs-10/index.ts",
|
|
64
|
-
"demo:fee": "tsx demo/hcs-10/fee-demo.ts",
|
|
65
|
-
"demo:transact": "tsx demo/hcs-10/transact-demo.ts",
|
|
66
|
-
"demo:transact-agent": "tsx demo/hcs-10/transact-agent.ts",
|
|
67
|
-
"demo:polling-agent": "tsx demo/hcs-10/polling-agent.ts",
|
|
68
|
-
"demo:connection-manager": "tsx demo/hcs-10/connection-manager.ts",
|
|
69
|
-
"demo:hrl-content": "tsx demo/hrl-content-demo.ts",
|
|
70
|
-
"demo:hcs-14:issue-resolve": "tsx demo/hcs-14/issue-and-resolve-did.ts",
|
|
71
|
-
"demo:hcs12": "tsx demo/hcs-12/hcs12-demo.ts",
|
|
72
|
-
"demo:mcp-chat": "tsx demo/hcs-10/create-mcp.ts",
|
|
73
|
-
"demo:hcs-2:create": "tsx demo/hcs-2/create-registry.ts",
|
|
74
|
-
"demo:hcs-6": "tsx demo/hcs-6/dynamic-hashinal-demo.ts",
|
|
75
|
-
"demo:hcs-6:create-registry": "tsx demo/hcs-6/create-registry.ts",
|
|
76
|
-
"demo:hcs-6:query-registry": "tsx demo/hcs-6/query-registry.ts",
|
|
77
|
-
"demo:hcs-6:mint": "tsx demo/hcs-6/mint-hashinal.ts",
|
|
78
|
-
"demo:hcs-17": "tsx demo/hcs-17/state-hash-demo.ts",
|
|
79
|
-
"demo:hcs-7:create": "tsx demo/hcs-7/create-hcs-7-topic.ts",
|
|
80
|
-
"demo:hcs-15": "tsx demo/hcs-15/petal-accounts-demo.ts",
|
|
81
|
-
"demo:hcs-10:create-registry": "tsx demo/hcs-10/create-registry.ts",
|
|
82
|
-
"demo:hcs-16:create-flora": "tsx demo/hcs-16/create-flora-demo.ts",
|
|
83
|
-
"demo:hcs-11:profile": "tsx demo/hcs-11/inscribe-profile-with-uaid.ts",
|
|
84
|
-
"demo:hcs-11:resolve-uaid": "tsx demo/hcs-11/resolve-profile-uaid.ts",
|
|
85
|
-
"demo:hcs-20:deploy-and-mint": "tsx demo/hcs-20/deploy-and-mint.ts",
|
|
86
|
-
"demo:hcs-20:deploy-points": "tsx demo/hcs-20/deploy-points.ts",
|
|
87
|
-
"demo:hcs-20:mint-transfer-burn": "tsx demo/hcs-20/mint-transfer-burn.ts",
|
|
88
|
-
"demo:hcs-21": "tsx demo/hcs-21/adapter-declaration-demo.ts",
|
|
89
|
-
"demo:hcs-6:browser": "pnpm run build && pnpm --dir demo/hcs-6/browser i && pnpm --dir demo/hcs-6/browser dev",
|
|
90
|
-
"demo:hcs-5": "tsx demo/hcs-5/mint-hashinal.ts",
|
|
91
|
-
"demo:registry-broker": "tsx demo/registry-broker/registry-broker-demo.ts",
|
|
92
|
-
"demo:registry-broker-history": "tsx demo/registry-broker/registry-broker-history-demo.ts",
|
|
93
|
-
"demo:registry-broker-erc8004": "tsx demo/registry-broker/registry-broker-erc8004-demo.ts",
|
|
94
|
-
"demo:registry-broker-agentverse": "tsx demo/registry-broker/registry-broker-agentverse-demo.ts",
|
|
95
|
-
"demo:registry-broker-x402": "tsx demo/registry-broker/registry-broker-x402-demo.ts",
|
|
96
|
-
"demo:registry-broker-erc8004-x402": "tsx demo/registry-broker/registry-broker-erc8004-x402-demo.ts",
|
|
97
|
-
"demo:registry-broker-x402-topup": "tsx demo/registry-broker/registry-broker-x402-topup.ts",
|
|
98
|
-
"watch": "nodemon --watch src --ext ts,tsx --exec \"npm run build && yalc push\"",
|
|
99
|
-
"test": "jest",
|
|
100
|
-
"test:unit-list": "jest --listTests --testPathPattern __tests__/utils/ --testPathPattern __tests__/services/ --testPathPattern __tests__/content-store/ --testPathPattern __tests__/fees/ --testPathPattern __tests__/common/tx/",
|
|
101
|
-
"test:unit-fast": "jest --coverage --runInBand --detectOpenHandles --testPathPattern __tests__/utils/ --testPathPattern __tests__/services/ --testPathPattern __tests__/content-store/ --testPathPattern __tests__/fees/ --testPathPattern __tests__/common/tx/",
|
|
102
|
-
"lint": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json}\" \"demo/**/*.{ts,tsx,js,jsx,json}\" \"__tests__/**/*.{ts,tsx,js,jsx,json}\"",
|
|
103
|
-
"lint:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\" \"demo/**/*.{ts,tsx,js,jsx,json}\" \"__tests__/**/*.{ts,tsx,js,jsx,json}\"",
|
|
104
|
-
"format": "npm run lint:fix",
|
|
105
|
-
"format:check": "npm run lint"
|
|
106
|
-
},
|
|
107
48
|
"devDependencies": {
|
|
108
49
|
"@hashgraphonline/conversational-agent": "0.2.104",
|
|
109
50
|
"@swc/jest": "^0.2.39",
|
|
@@ -164,5 +105,62 @@
|
|
|
164
105
|
"@hashgraphonline/standards-sdk": "0.1.132",
|
|
165
106
|
"@hashgraph/sdk": "^2.77.0"
|
|
166
107
|
},
|
|
167
|
-
"
|
|
168
|
-
|
|
108
|
+
"scripts": {
|
|
109
|
+
"clean": "rimraf dist",
|
|
110
|
+
"build:es": "BUILD_FORMAT=es vite build",
|
|
111
|
+
"build:umd": "BUILD_FORMAT=umd vite build",
|
|
112
|
+
"build:cjs": "BUILD_FORMAT=cjs vite build",
|
|
113
|
+
"build": "npm run clean && npm run build:es && npm run build:cjs",
|
|
114
|
+
"cli": "([ -d cli/standards-cli/node_modules ] || pnpm --dir cli/standards-cli install) && pnpm --dir cli/standards-cli start",
|
|
115
|
+
"cli:build": "([ -d cli/standards-cli/node_modules ] || pnpm --dir cli/standards-cli install) && pnpm --dir cli/standards-cli build",
|
|
116
|
+
"cli:install": "pnpm --dir cli/standards-cli install",
|
|
117
|
+
"release": "npm publish --access public",
|
|
118
|
+
"release:canary": "npm run prepublishOnly && npm publish --tag canary --access public",
|
|
119
|
+
"version:canary": "npm version prerelease --preid canary --no-git-tag-version",
|
|
120
|
+
"publish:canary": "npm run version:canary && npm run release:canary",
|
|
121
|
+
"demo:inscribe": "tsx demo/inscribe-demo.ts",
|
|
122
|
+
"demo:hcs-10": "tsx demo/hcs-10/index.ts",
|
|
123
|
+
"demo:fee": "tsx demo/hcs-10/fee-demo.ts",
|
|
124
|
+
"demo:transact": "tsx demo/hcs-10/transact-demo.ts",
|
|
125
|
+
"demo:transact-agent": "tsx demo/hcs-10/transact-agent.ts",
|
|
126
|
+
"demo:polling-agent": "tsx demo/hcs-10/polling-agent.ts",
|
|
127
|
+
"demo:connection-manager": "tsx demo/hcs-10/connection-manager.ts",
|
|
128
|
+
"demo:hrl-content": "tsx demo/hrl-content-demo.ts",
|
|
129
|
+
"demo:hcs-14:issue-resolve": "tsx demo/hcs-14/issue-and-resolve-did.ts",
|
|
130
|
+
"demo:hcs12": "tsx demo/hcs-12/hcs12-demo.ts",
|
|
131
|
+
"demo:mcp-chat": "tsx demo/hcs-10/create-mcp.ts",
|
|
132
|
+
"demo:hcs-2:create": "tsx demo/hcs-2/create-registry.ts",
|
|
133
|
+
"demo:hcs-6": "tsx demo/hcs-6/dynamic-hashinal-demo.ts",
|
|
134
|
+
"demo:hcs-6:create-registry": "tsx demo/hcs-6/create-registry.ts",
|
|
135
|
+
"demo:hcs-6:query-registry": "tsx demo/hcs-6/query-registry.ts",
|
|
136
|
+
"demo:hcs-6:mint": "tsx demo/hcs-6/mint-hashinal.ts",
|
|
137
|
+
"demo:hcs-17": "tsx demo/hcs-17/state-hash-demo.ts",
|
|
138
|
+
"demo:hcs-7:create": "tsx demo/hcs-7/create-hcs-7-topic.ts",
|
|
139
|
+
"demo:hcs-15": "tsx demo/hcs-15/petal-accounts-demo.ts",
|
|
140
|
+
"demo:hcs-10:create-registry": "tsx demo/hcs-10/create-registry.ts",
|
|
141
|
+
"demo:hcs-16:create-flora": "tsx demo/hcs-16/create-flora-demo.ts",
|
|
142
|
+
"demo:hcs-11:profile": "tsx demo/hcs-11/inscribe-profile-with-uaid.ts",
|
|
143
|
+
"demo:hcs-11:resolve-uaid": "tsx demo/hcs-11/resolve-profile-uaid.ts",
|
|
144
|
+
"demo:hcs-20:deploy-and-mint": "tsx demo/hcs-20/deploy-and-mint.ts",
|
|
145
|
+
"demo:hcs-20:deploy-points": "tsx demo/hcs-20/deploy-points.ts",
|
|
146
|
+
"demo:hcs-20:mint-transfer-burn": "tsx demo/hcs-20/mint-transfer-burn.ts",
|
|
147
|
+
"demo:hcs-21": "tsx demo/hcs-21/adapter-declaration-demo.ts",
|
|
148
|
+
"demo:hcs-6:browser": "pnpm run build && pnpm --dir demo/hcs-6/browser i && pnpm --dir demo/hcs-6/browser dev",
|
|
149
|
+
"demo:hcs-5": "tsx demo/hcs-5/mint-hashinal.ts",
|
|
150
|
+
"demo:registry-broker": "tsx demo/registry-broker/registry-broker-demo.ts",
|
|
151
|
+
"demo:registry-broker-history": "tsx demo/registry-broker/registry-broker-history-demo.ts",
|
|
152
|
+
"demo:registry-broker-erc8004": "tsx demo/registry-broker/registry-broker-erc8004-demo.ts",
|
|
153
|
+
"demo:registry-broker-agentverse": "tsx demo/registry-broker/registry-broker-agentverse-demo.ts",
|
|
154
|
+
"demo:registry-broker-x402": "tsx demo/registry-broker/registry-broker-x402-demo.ts",
|
|
155
|
+
"demo:registry-broker-erc8004-x402": "tsx demo/registry-broker/registry-broker-erc8004-x402-demo.ts",
|
|
156
|
+
"demo:registry-broker-x402-topup": "tsx demo/registry-broker/registry-broker-x402-topup.ts",
|
|
157
|
+
"watch": "nodemon --watch src --ext ts,tsx --exec \"npm run build && yalc push\"",
|
|
158
|
+
"test": "jest",
|
|
159
|
+
"test:unit-list": "jest --listTests --testPathPattern __tests__/utils/ --testPathPattern __tests__/services/ --testPathPattern __tests__/content-store/ --testPathPattern __tests__/fees/ --testPathPattern __tests__/common/tx/",
|
|
160
|
+
"test:unit-fast": "jest --coverage --runInBand --detectOpenHandles --testPathPattern __tests__/utils/ --testPathPattern __tests__/services/ --testPathPattern __tests__/content-store/ --testPathPattern __tests__/fees/ --testPathPattern __tests__/common/tx/",
|
|
161
|
+
"lint": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json}\" \"demo/**/*.{ts,tsx,js,jsx,json}\" \"__tests__/**/*.{ts,tsx,js,jsx,json}\"",
|
|
162
|
+
"lint:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\" \"demo/**/*.{ts,tsx,js,jsx,json}\" \"__tests__/**/*.{ts,tsx,js,jsx,json}\"",
|
|
163
|
+
"format": "npm run lint:fix",
|
|
164
|
+
"format:check": "npm run lint"
|
|
165
|
+
}
|
|
166
|
+
}
|