@hashgraphonline/standards-sdk 0.1.143-feat-solana-register.canary.99d8b7e.62 → 0.1.143-feat-solana-register.canary.5c63f60.63

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.
Files changed (76) hide show
  1. package/dist/cjs/hcs-16/sdk.d.ts +25 -0
  2. package/dist/cjs/hcs-16/sdk.d.ts.map +1 -1
  3. package/dist/cjs/standards-sdk.cjs +1 -1
  4. package/dist/cjs/standards-sdk.cjs.map +1 -1
  5. package/dist/es/hcs-16/sdk.d.ts +25 -0
  6. package/dist/es/hcs-16/sdk.d.ts.map +1 -1
  7. package/dist/es/standards-sdk.es100.js +1 -1
  8. package/dist/es/standards-sdk.es102.js +1 -1
  9. package/dist/es/standards-sdk.es104.js +1 -1
  10. package/dist/es/standards-sdk.es111.js +5 -5
  11. package/dist/es/standards-sdk.es12.js +1 -1
  12. package/dist/es/standards-sdk.es121.js +1 -1
  13. package/dist/es/standards-sdk.es122.js +1 -1
  14. package/dist/es/standards-sdk.es123.js +5 -5
  15. package/dist/es/standards-sdk.es125.js +1 -1
  16. package/dist/es/standards-sdk.es126.js +1 -1
  17. package/dist/es/standards-sdk.es128.js +1 -1
  18. package/dist/es/standards-sdk.es13.js +1 -1
  19. package/dist/es/standards-sdk.es131.js +1 -1
  20. package/dist/es/standards-sdk.es138.js +1 -1
  21. package/dist/es/standards-sdk.es145.js +12256 -105
  22. package/dist/es/standards-sdk.es145.js.map +1 -1
  23. package/dist/es/standards-sdk.es146.js +133 -37
  24. package/dist/es/standards-sdk.es146.js.map +1 -1
  25. package/dist/es/standards-sdk.es147.js +34 -12281
  26. package/dist/es/standards-sdk.es147.js.map +1 -1
  27. package/dist/es/standards-sdk.es148.js +54 -15
  28. package/dist/es/standards-sdk.es148.js.map +1 -1
  29. package/dist/es/standards-sdk.es149.js +71 -161
  30. package/dist/es/standards-sdk.es149.js.map +1 -1
  31. package/dist/es/standards-sdk.es150.js +13 -318
  32. package/dist/es/standards-sdk.es150.js.map +1 -1
  33. package/dist/es/standards-sdk.es151.js +120 -294
  34. package/dist/es/standards-sdk.es151.js.map +1 -1
  35. package/dist/es/standards-sdk.es152.js +191 -322
  36. package/dist/es/standards-sdk.es152.js.map +1 -1
  37. package/dist/es/standards-sdk.es153.js +294 -279
  38. package/dist/es/standards-sdk.es153.js.map +1 -1
  39. package/dist/es/standards-sdk.es154.js +440 -63
  40. package/dist/es/standards-sdk.es154.js.map +1 -1
  41. package/dist/es/standards-sdk.es155.js +330 -55
  42. package/dist/es/standards-sdk.es155.js.map +1 -1
  43. package/dist/es/standards-sdk.es156.js +60 -66
  44. package/dist/es/standards-sdk.es156.js.map +1 -1
  45. package/dist/es/standards-sdk.es19.js +3 -3
  46. package/dist/es/standards-sdk.es20.js +1 -1
  47. package/dist/es/standards-sdk.es23.js +1 -1
  48. package/dist/es/standards-sdk.es28.js +2 -2
  49. package/dist/es/standards-sdk.es31.js +1 -1
  50. package/dist/es/standards-sdk.es32.js +1 -1
  51. package/dist/es/standards-sdk.es36.js +1 -1
  52. package/dist/es/standards-sdk.es37.js +3 -3
  53. package/dist/es/standards-sdk.es38.js +1 -1
  54. package/dist/es/standards-sdk.es5.js +1 -1
  55. package/dist/es/standards-sdk.es54.js +1 -1
  56. package/dist/es/standards-sdk.es57.js +1 -1
  57. package/dist/es/standards-sdk.es59.js +1 -1
  58. package/dist/es/standards-sdk.es60.js +1 -1
  59. package/dist/es/standards-sdk.es61.js +1 -1
  60. package/dist/es/standards-sdk.es63.js +1 -1
  61. package/dist/es/standards-sdk.es65.js +1 -1
  62. package/dist/es/standards-sdk.es66.js +2 -2
  63. package/dist/es/standards-sdk.es69.js +2 -2
  64. package/dist/es/standards-sdk.es70.js +1 -1
  65. package/dist/es/standards-sdk.es72.js +1 -1
  66. package/dist/es/standards-sdk.es77.js +1 -1
  67. package/dist/es/standards-sdk.es79.js +1 -1
  68. package/dist/es/standards-sdk.es8.js +1 -1
  69. package/dist/es/standards-sdk.es82.js +1 -1
  70. package/dist/es/standards-sdk.es84.js +1 -1
  71. package/dist/es/standards-sdk.es88.js +1 -1
  72. package/dist/es/standards-sdk.es92.js +1 -1
  73. package/dist/es/standards-sdk.es93.js +38 -2
  74. package/dist/es/standards-sdk.es93.js.map +1 -1
  75. package/dist/es/standards-sdk.es98.js +1 -1
  76. package/package.json +1 -1
@@ -1,85 +1,79 @@
1
- import { isBrowser } from "./standards-sdk.es119.js";
2
- let nodeRequire;
3
- function isModuleNotFound(specifier, error) {
4
- if (!error || typeof error !== "object") {
5
- return false;
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;
6
7
  }
7
- const code = Reflect.get(error, "code");
8
- const message = Reflect.get(error, "message");
9
- const messageText = typeof message === "string" ? message : "";
10
- if (typeof code === "string" && code.includes("MODULE_NOT_FOUND")) {
11
- return messageText.includes(specifier);
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()}`;
12
14
  }
13
- if (messageText) {
14
- const lowered = messageText.toLowerCase();
15
- if (lowered.includes("cannot find module") || lowered.includes("module not found") || lowered.includes("cannot find package")) {
16
- return lowered.includes(specifier.toLowerCase());
17
- }
15
+ if (key.ed25519) {
16
+ return `ED25519: ${Buffer.from(key.ed25519).toString("hex")}`;
18
17
  }
19
- return false;
20
- }
21
- async function resolveNodeRequire() {
22
- if (nodeRequire !== void 0) {
23
- return nodeRequire;
18
+ if (key.ECDSASecp256k1) {
19
+ return `ECDSA_secp256k1: ${Buffer.from(key.ECDSASecp256k1).toString(
20
+ "hex"
21
+ )}`;
24
22
  }
25
- if (isBrowser) {
26
- nodeRequire = null;
27
- return nodeRequire;
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(", ")}]`;
28
26
  }
29
- try {
30
- const globalObject = typeof global !== "undefined" ? global : globalThis;
31
- const req = globalObject.process?.mainModule?.require ?? globalObject.require;
32
- nodeRequire = typeof req === "function" && typeof req.resolve === "function" ? req : null;
33
- } catch {
34
- nodeRequire = null;
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";
35
40
  }
36
- return nodeRequire;
41
+ return "Unknown or Unset Key Type";
37
42
  }
38
- async function dynamicImport(specifier) {
43
+ function extractTransactionBody(transaction) {
39
44
  try {
40
- return await import(specifier);
41
- } catch (error) {
42
- if (isModuleNotFound(specifier, error)) {
45
+ const bytes = transaction.toBytes ? transaction.toBytes() : void 0;
46
+ if (!bytes) {
43
47
  return null;
44
48
  }
45
- throw error;
46
- }
47
- }
48
- async function optionalImport(specifier) {
49
- if (isBrowser) {
50
- return dynamicImport(specifier);
51
- }
52
- const requireFn = await resolveNodeRequire();
53
- if (requireFn) {
54
- try {
55
- return requireFn(specifier);
56
- } catch (error) {
57
- if (!isModuleNotFound(specifier, error)) {
58
- throw error;
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);
59
63
  }
60
64
  }
61
- }
62
- return dynamicImport(specifier);
63
- }
64
- function optionalImportSync(specifier) {
65
- if (isBrowser) {
66
65
  return null;
67
- }
68
- try {
69
- const globalObject = typeof global !== "undefined" ? global : globalThis;
70
- const req = globalObject.process?.mainModule?.require ?? globalObject.require;
71
- if (typeof req === "function" && typeof req.resolve === "function") {
72
- return req(specifier);
73
- }
74
66
  } catch (error) {
75
- if (!isModuleNotFound(specifier, error)) {
76
- throw error;
77
- }
67
+ return null;
78
68
  }
79
- return null;
69
+ }
70
+ function hasTransactionType(transaction, transactionField) {
71
+ const txBody = extractTransactionBody(transaction);
72
+ return !!(txBody && txBody[transactionField]);
80
73
  }
81
74
  export {
82
- optionalImport,
83
- optionalImportSync
75
+ extractTransactionBody,
76
+ hasTransactionType,
77
+ parseKey
84
78
  };
85
79
  //# sourceMappingURL=standards-sdk.es156.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es156.js","sources":["../../src/utils/dynamic-import.ts"],"sourcesContent":["import { isBrowser } from './is-browser';\n\nlet nodeRequire: NodeRequire | null | undefined;\n\nfunction isModuleNotFound(specifier: string, error: unknown): boolean {\n if (!error || typeof error !== 'object') {\n return false;\n }\n const code = Reflect.get(error, 'code');\n const message = Reflect.get(error, 'message');\n const messageText = typeof message === 'string' ? message : '';\n\n if (typeof code === 'string' && code.includes('MODULE_NOT_FOUND')) {\n return messageText.includes(specifier);\n }\n\n if (messageText) {\n const lowered = messageText.toLowerCase();\n if (\n lowered.includes('cannot find module') ||\n lowered.includes('module not found') ||\n lowered.includes('cannot find package')\n ) {\n return lowered.includes(specifier.toLowerCase());\n }\n }\n\n return false;\n}\n\nasync function resolveNodeRequire(): Promise<NodeRequire | null> {\n if (nodeRequire !== undefined) {\n return nodeRequire;\n }\n\n if (isBrowser) {\n nodeRequire = null;\n return nodeRequire;\n }\n\n try {\n const globalObject =\n typeof global !== 'undefined'\n ? (global as typeof globalThis)\n : globalThis;\n const req =\n globalObject.process?.mainModule?.require ??\n (globalObject as { require?: NodeRequire }).require;\n\n nodeRequire =\n typeof req === 'function' &&\n typeof (req as NodeRequire).resolve === 'function'\n ? (req as NodeRequire)\n : null;\n } catch {\n nodeRequire = null;\n }\n\n return nodeRequire;\n}\n\nasync function dynamicImport<T>(specifier: string): Promise<T | null> {\n try {\n return (await import(specifier)) as T;\n } catch (error) {\n if (isModuleNotFound(specifier, error)) {\n return null;\n }\n throw error as Error;\n }\n}\n\nexport async function optionalImport<T>(specifier: string): Promise<T | null> {\n if (isBrowser) {\n return dynamicImport<T>(specifier);\n }\n\n const requireFn = await resolveNodeRequire();\n if (requireFn) {\n try {\n return requireFn(specifier) as T;\n } catch (error) {\n if (!isModuleNotFound(specifier, error)) {\n throw error as Error;\n }\n }\n }\n\n return dynamicImport<T>(specifier);\n}\n\nexport function optionalImportSync<T>(specifier: string): T | null {\n if (isBrowser) {\n return null;\n }\n\n try {\n const globalObject =\n typeof global !== 'undefined'\n ? (global as typeof globalThis)\n : globalThis;\n const req =\n globalObject.process?.mainModule?.require ??\n (globalObject as { require?: NodeRequire }).require;\n\n if (\n typeof req === 'function' &&\n typeof (req as NodeRequire).resolve === 'function'\n ) {\n return req(specifier) as T;\n }\n } catch (error) {\n if (!isModuleNotFound(specifier, error)) {\n throw error as Error;\n }\n }\n\n return null;\n}\n"],"names":[],"mappings":";AAEA,IAAI;AAEJ,SAAS,iBAAiB,WAAmB,OAAyB;AACpE,MAAI,CAAC,SAAS,OAAO,UAAU,UAAU;AACvC,WAAO;AAAA,EACT;AACA,QAAM,OAAO,QAAQ,IAAI,OAAO,MAAM;AACtC,QAAM,UAAU,QAAQ,IAAI,OAAO,SAAS;AAC5C,QAAM,cAAc,OAAO,YAAY,W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EA,MAAI;AACF,UAAM,eACJ,OAAO,WAAW,cACb,SACD;AACN,UAAM,MACJ,aAAa,SAAS,YAAY,WACjC,aAA2C;AAE9C,QACE,OAAO,QAAQ,cACf,OAAQ,IAAoB,YAAY,YACxC;AACA,aAAO,IAAI,SAAS;AAAA,IACtB;AAAA,EACF,SAAS,OAAO;AACd,QAAI,CAAC,iBAAiB,WAAW,KAAK,GAAG;AACvC,YAAM;AAAA,IACR;AAAA,EACF;AAEA,SAAO;AACT;"}
1
+ {"version":3,"file":"standards-sdk.es156.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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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;"}
@@ -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.es147.js";
4
+ import { InscriptionSDK } from "./standards-sdk.es145.js";
5
5
  import { Logger } from "./standards-sdk.es106.js";
6
6
  import { accountIdsToExemptKeys } from "./standards-sdk.es108.js";
7
7
  import { ProgressReporter } from "./standards-sdk.es109.js";
@@ -24,7 +24,7 @@ import "ethers";
24
24
  import "./standards-sdk.es123.js";
25
25
  import { detectKeyTypeFromString } from "./standards-sdk.es114.js";
26
26
  import { getTopicId } from "./standards-sdk.es115.js";
27
- import { createNodeOperatorContext, NodeOperatorResolver } from "./standards-sdk.es145.js";
27
+ import { createNodeOperatorContext, NodeOperatorResolver } from "./standards-sdk.es146.js";
28
28
  import { HCS10BaseClient, Hcs10MemoType } from "./standards-sdk.es17.js";
29
29
  import * as mime from "mime-types";
30
30
  import { AgentBuilder } from "./standards-sdk.es24.js";
@@ -32,7 +32,7 @@ import { InboundTopicType } from "./standards-sdk.es29.js";
32
32
  import { HCS11Client } from "./standards-sdk.es28.js";
33
33
  import { inscribe } from "./standards-sdk.es125.js";
34
34
  import { addSeconds } from "date-fns";
35
- import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es146.js";
35
+ import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es147.js";
36
36
  import { buildHcs10CreateInboundTopicTx, buildHcs10CreateConnectionTopicTx, buildHcs10ConfirmConnectionTx, buildHcs10SendMessageTx, buildHcs10RegistryRegisterTx, buildHcs10CreateOutboundTopicTx, buildHcs10CreateRegistryTopicTx } from "./standards-sdk.es23.js";
37
37
  class HCS10Client extends HCS10BaseClient {
38
38
  constructor(config) {
@@ -20,7 +20,7 @@ import "ethers";
20
20
  import "./standards-sdk.es123.js";
21
21
  import "./standards-sdk.es114.js";
22
22
  import { getTopicId } from "./standards-sdk.es115.js";
23
- import { InscriptionSDK } from "./standards-sdk.es147.js";
23
+ import { InscriptionSDK } from "./standards-sdk.es145.js";
24
24
  import { HCS10BaseClient, Hcs10MemoType } from "./standards-sdk.es17.js";
25
25
  import * as mime from "mime-types";
26
26
  import { AgentBuilder } from "./standards-sdk.es24.js";
@@ -1,4 +1,4 @@
1
- import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es146.js";
1
+ import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es147.js";
2
2
  function memoInbound(ttl, accountId) {
3
3
  return `hcs-10:0:${ttl}:0:${accountId}`;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import { Client, Status, PrivateKey, AccountUpdateTransaction } from "@hashgraph/sdk";
2
2
  import { inscribeWithSigner, inscribe } from "./standards-sdk.es125.js";
3
- import "./standards-sdk.es147.js";
3
+ import "./standards-sdk.es145.js";
4
4
  import { Logger } from "./standards-sdk.es106.js";
5
5
  import { HederaMirrorNode } from "./standards-sdk.es127.js";
6
6
  import { ProgressReporter } from "./standards-sdk.es109.js";
@@ -25,7 +25,7 @@ import "./standards-sdk.es114.js";
25
25
  import { getTopicId } from "./standards-sdk.es115.js";
26
26
  import * as mime from "mime-types";
27
27
  import { isHederaNetwork, toHederaCaip10 } from "./standards-sdk.es58.js";
28
- import { createNodeOperatorContext } from "./standards-sdk.es145.js";
28
+ import { createNodeOperatorContext } from "./standards-sdk.es146.js";
29
29
  import { AIAgentCapability, AIAgentType, VerificationType, MCPServerCapability, ProfileType, capabilityNameToCapabilityMap } from "./standards-sdk.es29.js";
30
30
  const SocialLinkSchema = z.object({
31
31
  platform: z.string().min(1),
@@ -1,6 +1,6 @@
1
1
  import { RegistryType } from "./standards-sdk.es30.js";
2
2
  import { inscribe, inscribeWithSigner } from "./standards-sdk.es125.js";
3
- import "./standards-sdk.es147.js";
3
+ import "./standards-sdk.es145.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.es125.js";
4
- import "./standards-sdk.es147.js";
4
+ import "./standards-sdk.es145.js";
5
5
  import { getCryptoAdapter } from "./standards-sdk.es120.js";
6
6
  import { isSSREnvironment } from "./standards-sdk.es118.js";
7
7
  import { validateActionRegistration } from "./standards-sdk.es43.js";
@@ -13,7 +13,7 @@ import "crypto";
13
13
  import "@noble/curves/secp256k1.js";
14
14
  import "zod";
15
15
  import "./standards-sdk.es139.js";
16
- import "./standards-sdk.es147.js";
16
+ import "./standards-sdk.es145.js";
17
17
  import "@hashgraph/proto";
18
18
  import "@hashgraph/sdk";
19
19
  import "ethers";
@@ -1,15 +1,15 @@
1
1
  import { Client } from "@hashgraph/sdk";
2
2
  import { HCS12BaseClient } from "./standards-sdk.es36.js";
3
- import { createNodeOperatorContext } from "./standards-sdk.es145.js";
3
+ import { createNodeOperatorContext } from "./standards-sdk.es146.js";
4
4
  import { RegistryType } from "./standards-sdk.es30.js";
5
5
  import { inscribe } from "./standards-sdk.es125.js";
6
- import { InscriptionSDK } from "./standards-sdk.es147.js";
6
+ import { InscriptionSDK } from "./standards-sdk.es145.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";
10
10
  import { HashLinksRegistry } from "./standards-sdk.es35.js";
11
11
  import * as mime from "mime-types";
12
- import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es146.js";
12
+ import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es147.js";
13
13
  class HCS12Client extends HCS12BaseClient {
14
14
  constructor(config) {
15
15
  super(config);
@@ -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.es125.js";
5
- import { InscriptionSDK } from "./standards-sdk.es147.js";
5
+ import { InscriptionSDK } from "./standards-sdk.es145.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";
@@ -2,7 +2,7 @@ import { HCS6BaseClient } from "./standards-sdk.es7.js";
2
2
  import { buildHcs6Hrl } from "./standards-sdk.es4.js";
3
3
  import { AccountId, Client, TopicMessageSubmitTransaction, TopicId, PrivateKey, PublicKey, TokenMintTransaction, TokenId } from "@hashgraph/sdk";
4
4
  import { buildHcs6CreateRegistryTx } from "./standards-sdk.es8.js";
5
- import { createNodeOperatorContext, NodeOperatorResolver } from "./standards-sdk.es145.js";
5
+ import { createNodeOperatorContext, NodeOperatorResolver } from "./standards-sdk.es146.js";
6
6
  import { inscribe } from "./standards-sdk.es125.js";
7
7
  class HCS6Client extends HCS6BaseClient {
8
8
  constructor(config) {
@@ -1,4 +1,4 @@
1
- import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es146.js";
1
+ import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es147.js";
2
2
  function memoForHcs12(registry, ttl) {
3
3
  const typeMap = {
4
4
  action: 0,
@@ -1,5 +1,5 @@
1
1
  import { getCryptoAdapter } from "./standards-sdk.es120.js";
2
- import { base58Encode } from "./standards-sdk.es155.js";
2
+ import { base58Encode } from "./standards-sdk.es148.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.es155.js";
3
+ import { multibaseB58btcDecode } from "./standards-sdk.es148.js";
4
4
  class ResolverRegistry {
5
5
  constructor() {
6
6
  this.resolvers = [];
@@ -1,4 +1,4 @@
1
- import { optionalImport } from "./standards-sdk.es156.js";
1
+ import { optionalImport } from "./standards-sdk.es149.js";
2
2
  const hieroResolverModuleId = ["@hiero-did-sdk", "resolver"].join("/");
3
3
  let resolverPromise = null;
4
4
  async function loadResolveDID() {
@@ -27,7 +27,7 @@ import "@hashgraph/proto";
27
27
  import "ethers";
28
28
  import "./standards-sdk.es123.js";
29
29
  import "./standards-sdk.es114.js";
30
- import { createNodeOperatorContext } from "./standards-sdk.es145.js";
30
+ import { createNodeOperatorContext } from "./standards-sdk.es146.js";
31
31
  import { HCS10Client } from "./standards-sdk.es19.js";
32
32
  class HCS14Client {
33
33
  constructor(options) {
@@ -1,4 +1,4 @@
1
- import { optionalImport } from "./standards-sdk.es156.js";
1
+ import { optionalImport } from "./standards-sdk.es149.js";
2
2
  const hieroRegistrarModuleId = ["@hiero-did-sdk", "registrar"].join("/");
3
3
  let registrarPromise = null;
4
4
  async function loadCreateDID() {
@@ -1,4 +1,4 @@
1
- import { HCS5BaseClient } from "./standards-sdk.es148.js";
1
+ import { HCS5BaseClient } from "./standards-sdk.es150.js";
2
2
  import { buildHcs1Hrl } from "./standards-sdk.es64.js";
3
3
  import { PrivateKey } from "@hashgraph/sdk";
4
4
  import { inscribeWithSigner } from "./standards-sdk.es125.js";
@@ -1,9 +1,9 @@
1
- import { HCS5BaseClient } from "./standards-sdk.es148.js";
1
+ import { HCS5BaseClient } from "./standards-sdk.es150.js";
2
2
  import { buildHcs1Hrl } from "./standards-sdk.es64.js";
3
3
  import { AccountId } from "@hashgraph/sdk";
4
4
  import { inscribe } from "./standards-sdk.es125.js";
5
5
  import { buildHcs5MintTx } from "./standards-sdk.es67.js";
6
- import { createNodeOperatorContext, NodeOperatorResolver } from "./standards-sdk.es145.js";
6
+ import { createNodeOperatorContext, NodeOperatorResolver } from "./standards-sdk.es146.js";
7
7
  class HCS5Client extends HCS5BaseClient {
8
8
  constructor(config) {
9
9
  super(config);
@@ -1,8 +1,8 @@
1
1
  import { AccountId, Client, PublicKey } from "@hashgraph/sdk";
2
2
  import { HCS2BaseClient } from "./standards-sdk.es71.js";
3
3
  import { HCS2Operation, HCS2RegistryType } from "./standards-sdk.es68.js";
4
- import { createNodeOperatorContext } from "./standards-sdk.es145.js";
5
- import { buildMessageTx } from "./standards-sdk.es146.js";
4
+ import { createNodeOperatorContext } from "./standards-sdk.es146.js";
5
+ import { buildMessageTx } from "./standards-sdk.es147.js";
6
6
  import { buildHcs2CreateRegistryTx } from "./standards-sdk.es72.js";
7
7
  const _HCS2Client = class _HCS2Client extends HCS2BaseClient {
8
8
  /**
@@ -3,7 +3,7 @@ import { HCS2BaseClient } from "./standards-sdk.es71.js";
3
3
  import { HCS2RegistryType, HCS2Operation } from "./standards-sdk.es68.js";
4
4
  import { isBrowser } from "./standards-sdk.es119.js";
5
5
  import { KeyTypeDetector } from "./standards-sdk.es114.js";
6
- import { buildMessageTx } from "./standards-sdk.es146.js";
6
+ import { buildMessageTx } from "./standards-sdk.es147.js";
7
7
  class BrowserHCS2Client extends HCS2BaseClient {
8
8
  /**
9
9
  * Create a new browser HCS-2 client
@@ -1,4 +1,4 @@
1
- import { buildTopicCreateTx, buildMessageTx, encodeHcs2RegistryMemo } from "./standards-sdk.es146.js";
1
+ import { buildTopicCreateTx, buildMessageTx, encodeHcs2RegistryMemo } from "./standards-sdk.es147.js";
2
2
  import { HCS2Operation } from "./standards-sdk.es68.js";
3
3
  function buildHcs2CreateRegistryTx(params) {
4
4
  const memo = params.memoOverride ?? encodeHcs2RegistryMemo(params.registryType, params.ttl);
@@ -2,7 +2,7 @@ import { AccountId, Client, Status, TopicCreateTransaction } from "@hashgraph/sd
2
2
  import { HCS20BaseClient } from "./standards-sdk.es75.js";
3
3
  import { PointsDeploymentError, PointsValidationError, PointsTransferError, PointsBurnError } from "./standards-sdk.es74.js";
4
4
  import { sleep } from "./standards-sdk.es116.js";
5
- import { createNodeOperatorContext } from "./standards-sdk.es145.js";
5
+ import { createNodeOperatorContext } from "./standards-sdk.es146.js";
6
6
  import { HCS2Client } from "./standards-sdk.es69.js";
7
7
  import { buildHcs20DeployTx, buildHcs20MintTx, buildHcs20TransferTx, buildHcs20BurnTx, buildHcs20RegisterTx } from "./standards-sdk.es79.js";
8
8
  class HCS20Client extends HCS20BaseClient {
@@ -1,4 +1,4 @@
1
- import { buildMessageTx } from "./standards-sdk.es146.js";
1
+ import { buildMessageTx } from "./standards-sdk.es147.js";
2
2
  function buildHcs20SubmitMessageTx(params) {
3
3
  const msg = typeof params.payload === "string" ? params.payload : JSON.stringify(params.payload);
4
4
  return buildMessageTx({
@@ -1,4 +1,4 @@
1
- import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es146.js";
1
+ import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es147.js";
2
2
  import { HCS6Operation } from "./standards-sdk.es4.js";
3
3
  function encodeHcs6NonIndexedMemo(ttl) {
4
4
  return `hcs-6:1:${ttl}`;
@@ -1,4 +1,4 @@
1
- import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es146.js";
1
+ import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es147.js";
2
2
  import { HCS21TopicType, HCS21MetadataPointerPattern, HCS21_SAFE_MESSAGE_BYTES, HCS21_MAX_MESSAGE_BYTES } from "./standards-sdk.es80.js";
3
3
  import { HCS21ValidationError } from "./standards-sdk.es81.js";
4
4
  function buildHcs21RegistryMemo(params) {
@@ -1,5 +1,5 @@
1
1
  import { Client, Status } from "@hashgraph/sdk";
2
- import { createNodeOperatorContext } from "./standards-sdk.es145.js";
2
+ import { createNodeOperatorContext } from "./standards-sdk.es146.js";
3
3
  import { Logger } from "./standards-sdk.es106.js";
4
4
  import { HCS21BaseClient } from "./standards-sdk.es83.js";
5
5
  import { metadataDocumentSchema, HCS21TopicType, HCS21ManifestPointerPattern } from "./standards-sdk.es80.js";
@@ -1,5 +1,5 @@
1
1
  import { AccountId, Client, PrivateKey, Hbar } from "@hashgraph/sdk";
2
- import { createNodeOperatorContext } from "./standards-sdk.es145.js";
2
+ import { createNodeOperatorContext } from "./standards-sdk.es146.js";
3
3
  import { buildHcs15BaseAccountCreateTx, buildHcs15PetalAccountCreateTx } from "./standards-sdk.es87.js";
4
4
  import { HCS15BaseClient } from "./standards-sdk.es90.js";
5
5
  class HCS15Client extends HCS15BaseClient {
@@ -1,5 +1,5 @@
1
1
  import { AccountId, TopicCreateTransaction, CustomFixedFee, TokenId, AccountCreateTransaction, Hbar, AccountUpdateTransaction, ScheduleCreateTransaction, TopicUpdateTransaction } from "@hashgraph/sdk";
2
- import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es146.js";
2
+ import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es147.js";
3
3
  import { FloraOperation } from "./standards-sdk.es91.js";
4
4
  function encodeHcs16FloraMemo(params) {
5
5
  return `hcs-16:${params.floraAccountId}:${params.topicType}`;
@@ -1,8 +1,8 @@
1
1
  import { AccountId, Client, ScheduleSignTransaction } from "@hashgraph/sdk";
2
- import { createNodeOperatorContext } from "./standards-sdk.es145.js";
2
+ import { createNodeOperatorContext } from "./standards-sdk.es146.js";
3
3
  import { HederaMirrorNode } from "./standards-sdk.es127.js";
4
4
  import { HCS16BaseClient } from "./standards-sdk.es95.js";
5
- import { buildHcs16CreateFloraTopicTx, buildHcs16FloraCreatedTx, buildHcs16TransactionTx, buildHcs16StateUpdateTx, buildHcs16CreateAccountTx } from "./standards-sdk.es92.js";
5
+ import { buildHcs16CreateFloraTopicTx, buildHcs16FloraCreatedTx, buildHcs16TransactionTx, buildHcs16StateUpdateTx, buildHcs16FloraJoinRequestTx, buildHcs16FloraJoinVoteTx, buildHcs16FloraJoinAcceptedTx, buildHcs16CreateAccountTx } from "./standards-sdk.es92.js";
6
6
  class HCS16Client extends HCS16BaseClient {
7
7
  constructor(config) {
8
8
  super({ network: config.network, logger: config.logger });
@@ -66,6 +66,42 @@ class HCS16Client extends HCS16BaseClient {
66
66
  const resp = await tx.execute(this.client);
67
67
  return resp.getReceipt(this.client);
68
68
  }
69
+ async sendFloraJoinRequest(params) {
70
+ const tx = buildHcs16FloraJoinRequestTx(params);
71
+ if (params.signerKey) {
72
+ const frozen = await tx.freezeWith(this.client);
73
+ const signed = await frozen.sign(params.signerKey);
74
+ const resp2 = await signed.execute(this.client);
75
+ return resp2.getReceipt(this.client);
76
+ }
77
+ const resp = await tx.execute(this.client);
78
+ return resp.getReceipt(this.client);
79
+ }
80
+ async sendFloraJoinVote(params) {
81
+ const tx = buildHcs16FloraJoinVoteTx(params);
82
+ if (params.signerKey) {
83
+ const frozen = await tx.freezeWith(this.client);
84
+ const signed = await frozen.sign(params.signerKey);
85
+ const resp2 = await signed.execute(this.client);
86
+ return resp2.getReceipt(this.client);
87
+ }
88
+ const resp = await tx.execute(this.client);
89
+ return resp.getReceipt(this.client);
90
+ }
91
+ async sendFloraJoinAccepted(params) {
92
+ const tx = buildHcs16FloraJoinAcceptedTx(params);
93
+ if (params.signerKeys && params.signerKeys.length > 0) {
94
+ const frozen = await tx.freezeWith(this.client);
95
+ let signed = frozen;
96
+ for (const key of params.signerKeys) {
97
+ signed = await signed.sign(key);
98
+ }
99
+ const resp2 = await signed.execute(this.client);
100
+ return resp2.getReceipt(this.client);
101
+ }
102
+ const resp = await tx.execute(this.client);
103
+ return resp.getReceipt(this.client);
104
+ }
69
105
  /**
70
106
  * Resolve member public keys from Mirror Node and build a KeyList with the given threshold.
71
107
  */
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es93.js","sources":["../../src/hcs-16/sdk.ts"],"sourcesContent":["import {\n Client,\n AccountId,\n PublicKey,\n KeyList,\n TransactionReceipt,\n Hbar,\n ScheduleSignTransaction,\n PrivateKey,\n} from '@hashgraph/sdk';\nimport type { NetworkType } from '../utils/types';\nimport type { Logger } from '../utils/logger';\nimport {\n createNodeOperatorContext,\n type NodeOperatorContext,\n} from '../common/node-operator-resolver';\nimport { HederaMirrorNode } from '../services/mirror-node';\nimport { HCS16BaseClient } from './base-client';\nimport {\n buildHcs16CreateFloraTopicTx,\n buildHcs16FloraCreatedTx,\n buildHcs16TransactionTx,\n buildHcs16StateUpdateTx,\n} from './tx';\nimport { FloraTopicType } from './types';\nimport {\n buildHcs16FloraJoinRequestTx,\n buildHcs16FloraJoinVoteTx,\n buildHcs16FloraJoinAcceptedTx,\n buildHcs16CreateAccountTx,\n} from './tx';\n\nexport interface HCS16ClientConfig {\n network: NetworkType;\n operatorId: string;\n operatorKey: string;\n keyType?: 'ecdsa' | 'ed25519';\n logger?: Logger;\n}\n\n/**\n * Node SDK client for HCS‑16 Flora operations.\n */\nexport class HCS16Client extends HCS16BaseClient {\n private readonly client: Client;\n private readonly operatorId: AccountId;\n private readonly operatorCtx: NodeOperatorContext;\n\n constructor(config: HCS16ClientConfig) {\n super({ network: config.network, logger: config.logger });\n this.operatorId = AccountId.fromString(config.operatorId);\n const mirror = new HederaMirrorNode(config.network, this.logger);\n this.operatorCtx = createNodeOperatorContext({\n network: config.network,\n operatorId: this.operatorId,\n operatorKey: config.operatorKey,\n keyType: config.keyType,\n mirrorNode: mirror,\n logger: this.logger,\n client:\n config.network === 'mainnet'\n ? Client.forMainnet()\n : Client.forTestnet(),\n });\n this.client = this.operatorCtx.client;\n }\n\n /**\n * Create a Flora topic with memo `hcs-16:<floraAccountId>:<topicType>`.\n */\n async createFloraTopic(params: {\n floraAccountId: string;\n topicType: FloraTopicType;\n adminKey?: PublicKey | KeyList;\n submitKey?: PublicKey | KeyList;\n autoRenewAccountId?: string;\n }): Promise<string> {\n const tx = buildHcs16CreateFloraTopicTx({\n floraAccountId: params.floraAccountId,\n topicType: params.topicType,\n adminKey: params.adminKey,\n submitKey: params.submitKey,\n operatorPublicKey: this.client.operatorPublicKey || undefined,\n autoRenewAccountId: params.autoRenewAccountId,\n });\n const resp = await tx.execute(this.client);\n const receipt = await resp.getReceipt(this.client);\n if (!receipt.topicId) {\n throw new Error('Failed to create Flora topic');\n }\n return receipt.topicId.toString();\n }\n\n async sendFloraCreated(params: {\n topicId: string;\n operatorId: string;\n floraAccountId: string;\n topics: { communication: string; transaction: string; state: string };\n }): Promise<TransactionReceipt> {\n const tx = buildHcs16FloraCreatedTx(params);\n const resp = await tx.execute(this.client);\n return resp.getReceipt(this.client);\n }\n\n /**\n * Send HCS-16 transaction (preferred). scheduleId is the ScheduleId entity (e.g., 0.0.12345).\n */\n async sendTransaction(params: {\n topicId: string;\n operatorId: string;\n scheduleId: string;\n data?: string;\n }): Promise<TransactionReceipt> {\n const tx = buildHcs16TransactionTx(params);\n const resp = await tx.execute(this.client);\n return resp.getReceipt(this.client);\n }\n\n /**\n * Sign a scheduled transaction by ScheduleId entity using provided signer key (PrivateKey).\n * The signer must be a valid member key for the scheduled transaction to count toward threshold.\n */\n async signSchedule(params: {\n scheduleId: string;\n signerKey: PrivateKey;\n }): Promise<TransactionReceipt> {\n const tx = await new ScheduleSignTransaction()\n .setScheduleId(params.scheduleId)\n .freezeWith(this.client);\n const signed = await tx.sign(params.signerKey);\n const resp = await signed.execute(this.client);\n return resp.getReceipt(this.client);\n }\n\n async sendStateUpdate(params: {\n topicId: string;\n operatorId: string;\n hash: string;\n epoch?: number;\n }): Promise<TransactionReceipt> {\n const tx = buildHcs16StateUpdateTx(params);\n const resp = await tx.execute(this.client);\n return resp.getReceipt(this.client);\n }\n\n /**\n * Resolve member public keys from Mirror Node and build a KeyList with the given threshold.\n */\n async assembleKeyList(params: {\n members: string[];\n threshold: number;\n }): Promise<KeyList> {\n return super.assembleKeyList(params);\n }\n\n /**\n * Create a Flora account with a threshold KeyList, then create the three Flora topics.\n * Returns the Flora account ID and the topic IDs.\n */\n async createFloraAccountWithTopics(params: {\n members: string[];\n threshold: number;\n initialBalanceHbar?: number;\n autoRenewAccountId?: string;\n }): Promise<{\n floraAccountId: string;\n topics: { communication: string; transaction: string; state: string };\n }> {\n const keyList = await this.assembleKeyList({\n members: params.members,\n threshold: params.threshold,\n });\n const submitList = await this.assembleSubmitKeyList(params.members);\n\n const createAcc = buildHcs16CreateAccountTx({\n keyList,\n initialBalanceHbar:\n typeof params.initialBalanceHbar === 'number'\n ? params.initialBalanceHbar\n : 5,\n maxAutomaticTokenAssociations: -1,\n });\n const accResp = await createAcc.execute(this.client);\n const accReceipt = await accResp.getReceipt(this.client);\n if (!accReceipt.accountId) {\n throw new Error('Failed to create Flora account');\n }\n const floraAccountId = accReceipt.accountId.toString();\n\n const {\n communication: commTx,\n transaction: trnTx,\n state: stateTx,\n } = this.buildFloraTopicCreateTxs({\n floraAccountId,\n keyList,\n submitList,\n autoRenewAccountId: params.autoRenewAccountId,\n });\n\n const commR = await commTx\n .execute(this.client)\n .then(r => r.getReceipt(this.client));\n const trnR = await trnTx\n .execute(this.client)\n .then(r => r.getReceipt(this.client));\n const stateR = await stateTx\n .execute(this.client)\n .then(r => r.getReceipt(this.client));\n const topics = {\n communication: commR.topicId!.toString(),\n transaction: trnR.topicId!.toString(),\n state: stateR.topicId!.toString(),\n };\n return { floraAccountId, topics };\n }\n\n /**\n * Convenience: publish flora_created on the communication topic.\n */\n async publishFloraCreated(params: {\n communicationTopicId: string;\n operatorId: string;\n floraAccountId: string;\n topics: { communication: string; transaction: string; state: string };\n }): Promise<TransactionReceipt> {\n const tx = buildHcs16FloraCreatedTx({\n topicId: params.communicationTopicId,\n operatorId: params.operatorId,\n floraAccountId: params.floraAccountId,\n topics: params.topics,\n });\n const resp = await tx.execute(this.client);\n return resp.getReceipt(this.client);\n }\n}\n"],"names":[],"mappings":";;;;;AA2CO,MAAM,oBAAoB,gBAAgB;AAAA,EAK/C,YAAY,QAA2B;AACrC,UAAM,EAAE,SAAS,OAAO,SAAS,QAAQ,OAAO,QAAQ;AACxD,SAAK,aAAa,UAAU,WAAW,OAAO,UAAU;AACxD,UAAM,SAAS,IAAI,iBAAiB,OAAO,SAAS,KAAK,MAAM;AAC/D,SAAK,cAAc,0BAA0B;AAAA,MAC3C,SAAS,OAAO;AAAA,MAChB,YAAY,KAAK;AAAA,MACjB,aAAa,OAAO;AAAA,MACpB,SAAS,OAAO;AAAA,MAChB,YAAY;AAAA,MACZ,QAAQ,KAAK;AAAA,MACb,QACE,OAAO,YAAY,YACf,OAAO,WAAA,IACP,OAAO,WAAA;AAAA,IAAW,CACzB;AACD,SAAK,SAAS,KAAK,YAAY;AAAA,EACjC;AAAA;AAAA;AAAA;AAAA,EAKA,MAAM,iBAAiB,QAMH;AAClB,UAAM,KAAK,6BAA6B;AAAA,MACtC,gBAAgB,OAAO;AAAA,MACvB,WAAW,OAAO;AAAA,MAClB,UAAU,OAAO;AAAA,MACjB,WAAW,OAAO;AAAA,MAClB,mBAAmB,KAAK,OAAO,qBAAqB;AAAA,MACpD,oBAAoB,OAAO;AAAA,IAAA,CAC5B;AACD,UAAM,OAAO,MAAM,GAAG,QAAQ,KAAK,MAAM;AACzC,UAAM,UAAU,MAAM,KAAK,WAAW,KAAK,MAAM;AACjD,QAAI,CAAC,QAAQ,SAAS;AACpB,YAAM,IAAI,MAAM,8BAA8B;AAAA,IAChD;AACA,WAAO,QAAQ,QAAQ,SAAA;AAAA,EACzB;AAAA,EAEA,MAAM,iBAAiB,QAKS;AAC9B,UAAM,KAAK,yBAAyB,MAAM;A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AAa,MAAM,QAAQ,WAAW,KAAK,MAAM;AACvD,QAAI,CAAC,WAAW,WAAW;AACzB,YAAM,IAAI,MAAM,gCAAgC;AAAA,IAClD;AACA,UAAM,iBAAiB,WAAW,UAAU,SAAA;AAE5C,UAAM;AAAA,MACJ,eAAe;AAAA,MACf,aAAa;AAAA,MACb,OAAO;AAAA,IAAA,IACL,KAAK,yBAAyB;AAAA,MAChC;AAAA,MACA;AAAA,MACA;AAAA,MACA,oBAAoB,OAAO;AAAA,IAAA,CAC5B;AAED,UAAM,QAAQ,MAAM,OACjB,QAAQ,KAAK,MAAM,EACnB,KAAK,CAAA,MAAK,EAAE,WAAW,KAAK,MAAM,CAAC;AACtC,UAAM,OAAO,MAAM,MAChB,QAAQ,KAAK,MAAM,EACnB,KAAK,CAAA,MAAK,EAAE,WAAW,KAAK,MAAM,CAAC;AACtC,UAAM,SAAS,MAAM,QAClB,QAAQ,KAAK,MAAM,EACnB,KAAK,CAAA,MAAK,EAAE,WAAW,KAAK,MAAM,CAAC;AACtC,UAAM,SAAS;AAAA,MACb,eAAe,MAAM,QAAS,SAAA;AAAA,MAC9B,aAAa,KAAK,QAAS,SAAA;AAAA,MAC3B,OAAO,OAAO,QAAS,SAAA;AAAA,IAAS;AAElC,WAAO,EAAE,gBAAgB,OAAA;AAAA,EAC3B;AAAA;AAAA;AAAA;AAAA,EAKA,MAAM,oBAAoB,QAKM;AAC9B,UAAM,KAAK,yBAAyB;AAAA,MAClC,SAAS,OAAO;AAAA,MAChB,YAAY,OAAO;AAAA,MACnB,gBAAgB,OAAO;AAAA,MACvB,QAAQ,OAAO;AAAA,IAAA,CAChB;AACD,UAAM,OAAO,MAAM,GAAG,QAAQ,KAAK,MAAM;AACzC,WAAO,KAAK,WAAW,KAAK,MAAM;AAAA,EACpC;AACF;"}
1
+ {"version":3,"file":"standards-sdk.es93.js","sources":["../../src/hcs-16/sdk.ts"],"sourcesContent":["import {\n Client,\n AccountId,\n PublicKey,\n KeyList,\n TransactionReceipt,\n Hbar,\n ScheduleSignTransaction,\n PrivateKey,\n} from '@hashgraph/sdk';\nimport type { NetworkType } from '../utils/types';\nimport type { Logger } from '../utils/logger';\nimport {\n createNodeOperatorContext,\n type NodeOperatorContext,\n} from '../common/node-operator-resolver';\nimport { HederaMirrorNode } from '../services/mirror-node';\nimport { HCS16BaseClient } from './base-client';\nimport {\n buildHcs16CreateFloraTopicTx,\n buildHcs16FloraCreatedTx,\n buildHcs16TransactionTx,\n buildHcs16StateUpdateTx,\n} from './tx';\nimport { FloraTopicType } from './types';\nimport {\n buildHcs16FloraJoinRequestTx,\n buildHcs16FloraJoinVoteTx,\n buildHcs16FloraJoinAcceptedTx,\n buildHcs16CreateAccountTx,\n} from './tx';\n\nexport interface HCS16ClientConfig {\n network: NetworkType;\n operatorId: string;\n operatorKey: string;\n keyType?: 'ecdsa' | 'ed25519';\n logger?: Logger;\n}\n\n/**\n * Node SDK client for HCS‑16 Flora operations.\n */\nexport class HCS16Client extends HCS16BaseClient {\n private readonly client: Client;\n private readonly operatorId: AccountId;\n private readonly operatorCtx: NodeOperatorContext;\n\n constructor(config: HCS16ClientConfig) {\n super({ network: config.network, logger: config.logger });\n this.operatorId = AccountId.fromString(config.operatorId);\n const mirror = new HederaMirrorNode(config.network, this.logger);\n this.operatorCtx = createNodeOperatorContext({\n network: config.network,\n operatorId: this.operatorId,\n operatorKey: config.operatorKey,\n keyType: config.keyType,\n mirrorNode: mirror,\n logger: this.logger,\n client:\n config.network === 'mainnet'\n ? Client.forMainnet()\n : Client.forTestnet(),\n });\n this.client = this.operatorCtx.client;\n }\n\n /**\n * Create a Flora topic with memo `hcs-16:<floraAccountId>:<topicType>`.\n */\n async createFloraTopic(params: {\n floraAccountId: string;\n topicType: FloraTopicType;\n adminKey?: PublicKey | KeyList;\n submitKey?: PublicKey | KeyList;\n autoRenewAccountId?: string;\n }): Promise<string> {\n const tx = buildHcs16CreateFloraTopicTx({\n floraAccountId: params.floraAccountId,\n topicType: params.topicType,\n adminKey: params.adminKey,\n submitKey: params.submitKey,\n operatorPublicKey: this.client.operatorPublicKey || undefined,\n autoRenewAccountId: params.autoRenewAccountId,\n });\n const resp = await tx.execute(this.client);\n const receipt = await resp.getReceipt(this.client);\n if (!receipt.topicId) {\n throw new Error('Failed to create Flora topic');\n }\n return receipt.topicId.toString();\n }\n\n async sendFloraCreated(params: {\n topicId: string;\n operatorId: string;\n floraAccountId: string;\n topics: { communication: string; transaction: string; state: string };\n }): Promise<TransactionReceipt> {\n const tx = buildHcs16FloraCreatedTx(params);\n const resp = await tx.execute(this.client);\n return resp.getReceipt(this.client);\n }\n\n /**\n * Send HCS-16 transaction (preferred). scheduleId is the ScheduleId entity (e.g., 0.0.12345).\n */\n async sendTransaction(params: {\n topicId: string;\n operatorId: string;\n scheduleId: string;\n data?: string;\n }): Promise<TransactionReceipt> {\n const tx = buildHcs16TransactionTx(params);\n const resp = await tx.execute(this.client);\n return resp.getReceipt(this.client);\n }\n\n /**\n * Sign a scheduled transaction by ScheduleId entity using provided signer key (PrivateKey).\n * The signer must be a valid member key for the scheduled transaction to count toward threshold.\n */\n async signSchedule(params: {\n scheduleId: string;\n signerKey: PrivateKey;\n }): Promise<TransactionReceipt> {\n const tx = await new ScheduleSignTransaction()\n .setScheduleId(params.scheduleId)\n .freezeWith(this.client);\n const signed = await tx.sign(params.signerKey);\n const resp = await signed.execute(this.client);\n return resp.getReceipt(this.client);\n }\n\n async sendStateUpdate(params: {\n topicId: string;\n operatorId: string;\n hash: string;\n epoch?: number;\n }): Promise<TransactionReceipt> {\n const tx = buildHcs16StateUpdateTx(params);\n const resp = await tx.execute(this.client);\n return resp.getReceipt(this.client);\n }\n\n async sendFloraJoinRequest(params: {\n topicId: string;\n operatorId: string;\n accountId: string;\n connectionRequestId: number;\n connectionTopicId: string;\n connectionSeq: number;\n signerKey?: PrivateKey;\n }): Promise<TransactionReceipt> {\n const tx = buildHcs16FloraJoinRequestTx(params);\n if (params.signerKey) {\n const frozen = await tx.freezeWith(this.client);\n const signed = await frozen.sign(params.signerKey);\n const resp = await signed.execute(this.client);\n return resp.getReceipt(this.client);\n }\n const resp = await tx.execute(this.client);\n return resp.getReceipt(this.client);\n }\n\n async sendFloraJoinVote(params: {\n topicId: string;\n operatorId: string;\n accountId: string;\n approve: boolean;\n connectionRequestId: number;\n connectionSeq: number;\n signerKey?: PrivateKey;\n }): Promise<TransactionReceipt> {\n const tx = buildHcs16FloraJoinVoteTx(params);\n if (params.signerKey) {\n const frozen = await tx.freezeWith(this.client);\n const signed = await frozen.sign(params.signerKey);\n const resp = await signed.execute(this.client);\n return resp.getReceipt(this.client);\n }\n const resp = await tx.execute(this.client);\n return resp.getReceipt(this.client);\n }\n\n async sendFloraJoinAccepted(params: {\n topicId: string;\n operatorId: string;\n members: string[];\n epoch?: number;\n signerKeys?: PrivateKey[];\n }): Promise<TransactionReceipt> {\n const tx = buildHcs16FloraJoinAcceptedTx(params);\n if (params.signerKeys && params.signerKeys.length > 0) {\n const frozen = await tx.freezeWith(this.client);\n let signed = frozen;\n for (const key of params.signerKeys) {\n signed = await signed.sign(key);\n }\n const resp = await signed.execute(this.client);\n return resp.getReceipt(this.client);\n }\n const resp = await tx.execute(this.client);\n return resp.getReceipt(this.client);\n }\n\n /**\n * Resolve member public keys from Mirror Node and build a KeyList with the given threshold.\n */\n async assembleKeyList(params: {\n members: string[];\n threshold: number;\n }): Promise<KeyList> {\n return super.assembleKeyList(params);\n }\n\n /**\n * Create a Flora account with a threshold KeyList, then create the three Flora topics.\n * Returns the Flora account ID and the topic IDs.\n */\n async createFloraAccountWithTopics(params: {\n members: string[];\n threshold: number;\n initialBalanceHbar?: number;\n autoRenewAccountId?: string;\n }): Promise<{\n floraAccountId: string;\n topics: { communication: string; transaction: string; state: string };\n }> {\n const keyList = await this.assembleKeyList({\n members: params.members,\n threshold: params.threshold,\n });\n const submitList = await this.assembleSubmitKeyList(params.members);\n\n const createAcc = buildHcs16CreateAccountTx({\n keyList,\n initialBalanceHbar:\n typeof params.initialBalanceHbar === 'number'\n ? params.initialBalanceHbar\n : 5,\n maxAutomaticTokenAssociations: -1,\n });\n const accResp = await createAcc.execute(this.client);\n const accReceipt = await accResp.getReceipt(this.client);\n if (!accReceipt.accountId) {\n throw new Error('Failed to create Flora account');\n }\n const floraAccountId = accReceipt.accountId.toString();\n\n const {\n communication: commTx,\n transaction: trnTx,\n state: stateTx,\n } = this.buildFloraTopicCreateTxs({\n floraAccountId,\n keyList,\n submitList,\n autoRenewAccountId: params.autoRenewAccountId,\n });\n\n const commR = await commTx\n .execute(this.client)\n .then(r => r.getReceipt(this.client));\n const trnR = await trnTx\n .execute(this.client)\n .then(r => r.getReceipt(this.client));\n const stateR = await stateTx\n .execute(this.client)\n .then(r => r.getReceipt(this.client));\n const topics = {\n communication: commR.topicId!.toString(),\n transaction: trnR.topicId!.toString(),\n state: stateR.topicId!.toString(),\n };\n return { floraAccountId, topics };\n }\n\n /**\n * Convenience: publish flora_created on the communication topic.\n */\n async publishFloraCreated(params: {\n communicationTopicId: string;\n operatorId: string;\n floraAccountId: string;\n topics: { communication: string; transaction: string; state: string };\n }): Promise<TransactionReceipt> {\n const tx = buildHcs16FloraCreatedTx({\n topicId: params.communicationTopicId,\n operatorId: params.operatorId,\n floraAccountId: params.floraAccountId,\n topics: params.topics,\n });\n const resp = await tx.execute(this.client);\n return resp.getReceipt(this.client);\n }\n}\n"],"names":["resp"],"mappings":";;;;;AA2CO,MAAM,oBAAoB,gBAAgB;AAAA,EAK/C,YAAY,QAA2B;AACrC,UAAM,EAAE,SAAS,OAAO,SAAS,QAAQ,OAAO,QAAQ;AACxD,SAAK,aAAa,UAAU,WAAW,OAAO,UAAU;AACxD,UAAM,SAAS,IAAI,iBAAiB,OAAO,SAAS,KAAK,MAAM;AAC/D,SAAK,cAAc,0BAA0B;AAAA,MAC3C,SAAS,OAAO;AAAA,MAChB,YAAY,KAAK;AAAA,MACjB,aAAa,OAAO;AAAA,MACpB,SAAS,OAAO;AAAA,MAChB,YA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AM,SAAS,MAAM,QAClB,QAAQ,KAAK,MAAM,EACnB,KAAK,CAAA,MAAK,EAAE,WAAW,KAAK,MAAM,CAAC;AACtC,UAAM,SAAS;AAAA,MACb,eAAe,MAAM,QAAS,SAAA;AAAA,MAC9B,aAAa,KAAK,QAAS,SAAA;AAAA,MAC3B,OAAO,OAAO,QAAS,SAAA;AAAA,IAAS;AAElC,WAAO,EAAE,gBAAgB,OAAA;AAAA,EAC3B;AAAA;AAAA;AAAA;AAAA,EAKA,MAAM,oBAAoB,QAKM;AAC9B,UAAM,KAAK,yBAAyB;AAAA,MAClC,SAAS,OAAO;AAAA,MAChB,YAAY,OAAO;AAAA,MACnB,gBAAgB,OAAO;AAAA,MACvB,QAAQ,OAAO;AAAA,IAAA,CAChB;AACD,UAAM,OAAO,MAAM,GAAG,QAAQ,KAAK,MAAM;AACzC,WAAO,KAAK,WAAW,KAAK,MAAM;AAAA,EACpC;AACF;"}
@@ -1,7 +1,7 @@
1
1
  import { AccountId, Client } from "@hashgraph/sdk";
2
2
  import { HCS17BaseClient } from "./standards-sdk.es97.js";
3
3
  import { buildHcs17CreateTopicTx, buildHcs17MessageTx } from "./standards-sdk.es100.js";
4
- import { createNodeOperatorContext } from "./standards-sdk.es145.js";
4
+ import { createNodeOperatorContext } from "./standards-sdk.es146.js";
5
5
  class HCS17Client extends HCS17BaseClient {
6
6
  constructor(config) {
7
7
  super(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashgraphonline/standards-sdk",
3
- "version": "0.1.143-feat-solana-register.canary.99d8b7e.62",
3
+ "version": "0.1.143-feat-solana-register.canary.5c63f60.63",
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": [