@hashgraphonline/standards-sdk 0.1.190 → 0.1.191

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 (350) hide show
  1. package/dist/browser/hcs-25/adapters/ans-trust-discovery.d.ts +22 -0
  2. package/dist/browser/hcs-25/adapters/ans-trust-discovery.d.ts.map +1 -0
  3. package/dist/browser/hcs-25/adapters/index.d.ts +1 -0
  4. package/dist/browser/hcs-25/adapters/index.d.ts.map +1 -1
  5. package/dist/browser/hcs-25/collectors/ans-trust-discovery.d.ts +32 -0
  6. package/dist/browser/hcs-25/collectors/ans-trust-discovery.d.ts.map +1 -0
  7. package/dist/browser/hcs-25/collectors/catalog.d.ts +9 -2
  8. package/dist/browser/hcs-25/collectors/catalog.d.ts.map +1 -1
  9. package/dist/browser/hcs-25/collectors/index.d.ts +1 -0
  10. package/dist/browser/hcs-25/collectors/index.d.ts.map +1 -1
  11. package/dist/browser/hcs-25/signals/ans-trust-discovery.d.ts +50 -0
  12. package/dist/browser/hcs-25/signals/ans-trust-discovery.d.ts.map +1 -0
  13. package/dist/browser/hcs-25/signals/index.d.ts +1 -0
  14. package/dist/browser/hcs-25/signals/index.d.ts.map +1 -1
  15. package/dist/browser-root/hcs-25/adapters/ans-trust-discovery.d.ts +22 -0
  16. package/dist/browser-root/hcs-25/adapters/ans-trust-discovery.d.ts.map +1 -0
  17. package/dist/browser-root/hcs-25/adapters/index.d.ts +1 -0
  18. package/dist/browser-root/hcs-25/adapters/index.d.ts.map +1 -1
  19. package/dist/browser-root/hcs-25/collectors/ans-trust-discovery.d.ts +32 -0
  20. package/dist/browser-root/hcs-25/collectors/ans-trust-discovery.d.ts.map +1 -0
  21. package/dist/browser-root/hcs-25/collectors/catalog.d.ts +9 -2
  22. package/dist/browser-root/hcs-25/collectors/catalog.d.ts.map +1 -1
  23. package/dist/browser-root/hcs-25/collectors/index.d.ts +1 -0
  24. package/dist/browser-root/hcs-25/collectors/index.d.ts.map +1 -1
  25. package/dist/browser-root/hcs-25/signals/ans-trust-discovery.d.ts +50 -0
  26. package/dist/browser-root/hcs-25/signals/ans-trust-discovery.d.ts.map +1 -0
  27. package/dist/browser-root/hcs-25/signals/index.d.ts +1 -0
  28. package/dist/browser-root/hcs-25/signals/index.d.ts.map +1 -1
  29. package/dist/cjs/hcs-25/adapters/ans-trust-discovery.d.ts +22 -0
  30. package/dist/cjs/hcs-25/adapters/ans-trust-discovery.d.ts.map +1 -0
  31. package/dist/cjs/hcs-25/adapters/index.d.ts +1 -0
  32. package/dist/cjs/hcs-25/adapters/index.d.ts.map +1 -1
  33. package/dist/cjs/hcs-25/collectors/ans-trust-discovery.d.ts +32 -0
  34. package/dist/cjs/hcs-25/collectors/ans-trust-discovery.d.ts.map +1 -0
  35. package/dist/cjs/hcs-25/collectors/catalog.d.ts +9 -2
  36. package/dist/cjs/hcs-25/collectors/catalog.d.ts.map +1 -1
  37. package/dist/cjs/hcs-25/collectors/index.d.ts +1 -0
  38. package/dist/cjs/hcs-25/collectors/index.d.ts.map +1 -1
  39. package/dist/cjs/hcs-25/signals/ans-trust-discovery.d.ts +50 -0
  40. package/dist/cjs/hcs-25/signals/ans-trust-discovery.d.ts.map +1 -0
  41. package/dist/cjs/hcs-25/signals/index.d.ts +1 -0
  42. package/dist/cjs/hcs-25/signals/index.d.ts.map +1 -1
  43. package/dist/cjs/standards-sdk.cjs +1 -1
  44. package/dist/cjs/standards-sdk.cjs.map +1 -1
  45. package/dist/es/hcs-25/adapters/ans-trust-discovery.d.ts +22 -0
  46. package/dist/es/hcs-25/adapters/ans-trust-discovery.d.ts.map +1 -0
  47. package/dist/es/hcs-25/adapters/index.d.ts +1 -0
  48. package/dist/es/hcs-25/adapters/index.d.ts.map +1 -1
  49. package/dist/es/hcs-25/collectors/ans-trust-discovery.d.ts +32 -0
  50. package/dist/es/hcs-25/collectors/ans-trust-discovery.d.ts.map +1 -0
  51. package/dist/es/hcs-25/collectors/catalog.d.ts +9 -2
  52. package/dist/es/hcs-25/collectors/catalog.d.ts.map +1 -1
  53. package/dist/es/hcs-25/collectors/index.d.ts +1 -0
  54. package/dist/es/hcs-25/collectors/index.d.ts.map +1 -1
  55. package/dist/es/hcs-25/signals/ans-trust-discovery.d.ts +50 -0
  56. package/dist/es/hcs-25/signals/ans-trust-discovery.d.ts.map +1 -0
  57. package/dist/es/hcs-25/signals/index.d.ts +1 -0
  58. package/dist/es/hcs-25/signals/index.d.ts.map +1 -1
  59. package/dist/es/standards-sdk.es.js +78 -71
  60. package/dist/es/standards-sdk.es.js.map +1 -1
  61. package/dist/es/standards-sdk.es101.js +2 -2
  62. package/dist/es/standards-sdk.es103.js +2 -2
  63. package/dist/es/standards-sdk.es104.js +1 -1
  64. package/dist/es/standards-sdk.es106.js +1 -1
  65. package/dist/es/standards-sdk.es108.js +2 -2
  66. package/dist/es/standards-sdk.es11.js +1 -1
  67. package/dist/es/standards-sdk.es110.js +1 -1
  68. package/dist/es/standards-sdk.es111.js +2 -2
  69. package/dist/es/standards-sdk.es115.js +3 -3
  70. package/dist/es/standards-sdk.es116.js +4 -4
  71. package/dist/es/standards-sdk.es12.js +1 -1
  72. package/dist/es/standards-sdk.es120.js +22 -4
  73. package/dist/es/standards-sdk.es120.js.map +1 -1
  74. package/dist/es/standards-sdk.es121.js +15 -12
  75. package/dist/es/standards-sdk.es121.js.map +1 -1
  76. package/dist/es/standards-sdk.es123.js +6 -5
  77. package/dist/es/standards-sdk.es123.js.map +1 -1
  78. package/dist/es/standards-sdk.es124.js +6 -5
  79. package/dist/es/standards-sdk.es124.js.map +1 -1
  80. package/dist/es/standards-sdk.es127.js +6 -5
  81. package/dist/es/standards-sdk.es127.js.map +1 -1
  82. package/dist/es/standards-sdk.es128.js +110 -136
  83. package/dist/es/standards-sdk.es128.js.map +1 -1
  84. package/dist/es/standards-sdk.es129.js +133 -141
  85. package/dist/es/standards-sdk.es129.js.map +1 -1
  86. package/dist/es/standards-sdk.es13.js +1 -1
  87. package/dist/es/standards-sdk.es130.js +135 -345
  88. package/dist/es/standards-sdk.es130.js.map +1 -1
  89. package/dist/es/standards-sdk.es131.js +332 -344
  90. package/dist/es/standards-sdk.es131.js.map +1 -1
  91. package/dist/es/standards-sdk.es132.js +338 -178
  92. package/dist/es/standards-sdk.es132.js.map +1 -1
  93. package/dist/es/standards-sdk.es133.js +200 -196
  94. package/dist/es/standards-sdk.es133.js.map +1 -1
  95. package/dist/es/standards-sdk.es134.js +216 -364
  96. package/dist/es/standards-sdk.es134.js.map +1 -1
  97. package/dist/es/standards-sdk.es135.js +358 -100
  98. package/dist/es/standards-sdk.es135.js.map +1 -1
  99. package/dist/es/standards-sdk.es136.js +91 -220
  100. package/dist/es/standards-sdk.es136.js.map +1 -1
  101. package/dist/es/standards-sdk.es137.js +173 -1250
  102. package/dist/es/standards-sdk.es137.js.map +1 -1
  103. package/dist/es/standards-sdk.es138.js +1295 -98
  104. package/dist/es/standards-sdk.es138.js.map +1 -1
  105. package/dist/es/standards-sdk.es139.js +109 -246
  106. package/dist/es/standards-sdk.es139.js.map +1 -1
  107. package/dist/es/standards-sdk.es14.js +1 -1
  108. package/dist/es/standards-sdk.es140.js +263 -97
  109. package/dist/es/standards-sdk.es140.js.map +1 -1
  110. package/dist/es/standards-sdk.es141.js +107 -248
  111. package/dist/es/standards-sdk.es141.js.map +1 -1
  112. package/dist/es/standards-sdk.es142.js +246 -472
  113. package/dist/es/standards-sdk.es142.js.map +1 -1
  114. package/dist/es/standards-sdk.es143.js +458 -85
  115. package/dist/es/standards-sdk.es143.js.map +1 -1
  116. package/dist/es/standards-sdk.es144.js +96 -151
  117. package/dist/es/standards-sdk.es144.js.map +1 -1
  118. package/dist/es/standards-sdk.es145.js +155 -29
  119. package/dist/es/standards-sdk.es145.js.map +1 -1
  120. package/dist/es/standards-sdk.es146.js +26 -4
  121. package/dist/es/standards-sdk.es146.js.map +1 -1
  122. package/dist/es/standards-sdk.es147.js +10 -180
  123. package/dist/es/standards-sdk.es147.js.map +1 -1
  124. package/dist/es/standards-sdk.es148.js +179 -26
  125. package/dist/es/standards-sdk.es148.js.map +1 -1
  126. package/dist/es/standards-sdk.es149.js +27 -20
  127. package/dist/es/standards-sdk.es149.js.map +1 -1
  128. package/dist/es/standards-sdk.es15.js +1 -1
  129. package/dist/es/standards-sdk.es150.js +18 -156
  130. package/dist/es/standards-sdk.es150.js.map +1 -1
  131. package/dist/es/standards-sdk.es151.js +148 -190
  132. package/dist/es/standards-sdk.es151.js.map +1 -1
  133. package/dist/es/standards-sdk.es152.js +159 -747
  134. package/dist/es/standards-sdk.es152.js.map +1 -1
  135. package/dist/es/standards-sdk.es153.js +786 -9
  136. package/dist/es/standards-sdk.es153.js.map +1 -1
  137. package/dist/es/standards-sdk.es154.js +13 -567
  138. package/dist/es/standards-sdk.es154.js.map +1 -1
  139. package/dist/es/standards-sdk.es155.js +541 -600
  140. package/dist/es/standards-sdk.es155.js.map +1 -1
  141. package/dist/es/standards-sdk.es156.js +625 -12
  142. package/dist/es/standards-sdk.es156.js.map +1 -1
  143. package/dist/es/standards-sdk.es157.js +13 -2
  144. package/dist/es/standards-sdk.es157.js.map +1 -1
  145. package/dist/es/standards-sdk.es158.js +2 -87
  146. package/dist/es/standards-sdk.es158.js.map +1 -1
  147. package/dist/es/standards-sdk.es159.js +84 -37
  148. package/dist/es/standards-sdk.es159.js.map +1 -1
  149. package/dist/es/standards-sdk.es16.js +6 -6
  150. package/dist/es/standards-sdk.es160.js +40 -2
  151. package/dist/es/standards-sdk.es160.js.map +1 -1
  152. package/dist/es/standards-sdk.es161.js +2 -235
  153. package/dist/es/standards-sdk.es161.js.map +1 -1
  154. package/dist/es/standards-sdk.es162.js +204 -1109
  155. package/dist/es/standards-sdk.es162.js.map +1 -1
  156. package/dist/es/standards-sdk.es163.js +1059 -225
  157. package/dist/es/standards-sdk.es163.js.map +1 -1
  158. package/dist/es/standards-sdk.es164.js +303 -419
  159. package/dist/es/standards-sdk.es164.js.map +1 -1
  160. package/dist/es/standards-sdk.es165.js +418 -351
  161. package/dist/es/standards-sdk.es165.js.map +1 -1
  162. package/dist/es/standards-sdk.es166.js +347 -1114
  163. package/dist/es/standards-sdk.es166.js.map +1 -1
  164. package/dist/es/standards-sdk.es167.js +1094 -180
  165. package/dist/es/standards-sdk.es167.js.map +1 -1
  166. package/dist/es/standards-sdk.es168.js +153 -1512
  167. package/dist/es/standards-sdk.es168.js.map +1 -1
  168. package/dist/es/standards-sdk.es169.js +1457 -1056
  169. package/dist/es/standards-sdk.es169.js.map +1 -1
  170. package/dist/es/standards-sdk.es170.js +1163 -14
  171. package/dist/es/standards-sdk.es170.js.map +1 -1
  172. package/dist/es/standards-sdk.es171.js +15 -449
  173. package/dist/es/standards-sdk.es171.js.map +1 -1
  174. package/dist/es/standards-sdk.es172.js +440 -248
  175. package/dist/es/standards-sdk.es172.js.map +1 -1
  176. package/dist/es/standards-sdk.es173.js +259 -4
  177. package/dist/es/standards-sdk.es173.js.map +1 -1
  178. package/dist/es/standards-sdk.es174.js +4 -81
  179. package/dist/es/standards-sdk.es174.js.map +1 -1
  180. package/dist/es/standards-sdk.es175.js +71 -77
  181. package/dist/es/standards-sdk.es175.js.map +1 -1
  182. package/dist/es/standards-sdk.es176.js +80 -53
  183. package/dist/es/standards-sdk.es176.js.map +1 -1
  184. package/dist/es/standards-sdk.es177.js +59 -2546
  185. package/dist/es/standards-sdk.es177.js.map +1 -1
  186. package/dist/es/standards-sdk.es178.js +2547 -159
  187. package/dist/es/standards-sdk.es178.js.map +1 -1
  188. package/dist/es/standards-sdk.es179.js +159 -7
  189. package/dist/es/standards-sdk.es179.js.map +1 -1
  190. package/dist/es/standards-sdk.es18.js +13 -13
  191. package/dist/es/standards-sdk.es180.js +7 -86
  192. package/dist/es/standards-sdk.es180.js.map +1 -1
  193. package/dist/es/standards-sdk.es181.js +65 -44
  194. package/dist/es/standards-sdk.es181.js.map +1 -1
  195. package/dist/es/standards-sdk.es182.js +57 -188
  196. package/dist/es/standards-sdk.es182.js.map +1 -1
  197. package/dist/es/standards-sdk.es183.js +27 -26
  198. package/dist/es/standards-sdk.es183.js.map +1 -1
  199. package/dist/es/standards-sdk.es184.js +191 -53
  200. package/dist/es/standards-sdk.es184.js.map +1 -1
  201. package/dist/es/standards-sdk.es185.js +21 -109
  202. package/dist/es/standards-sdk.es185.js.map +1 -1
  203. package/dist/es/standards-sdk.es186.js +49 -47
  204. package/dist/es/standards-sdk.es186.js.map +1 -1
  205. package/dist/es/standards-sdk.es187.js +89 -205
  206. package/dist/es/standards-sdk.es187.js.map +1 -1
  207. package/dist/es/standards-sdk.es188.js +35 -58
  208. package/dist/es/standards-sdk.es188.js.map +1 -1
  209. package/dist/es/standards-sdk.es189.js +48 -39
  210. package/dist/es/standards-sdk.es189.js.map +1 -1
  211. package/dist/es/standards-sdk.es19.js +10 -10
  212. package/dist/es/standards-sdk.es190.js +218 -48
  213. package/dist/es/standards-sdk.es190.js.map +1 -1
  214. package/dist/es/standards-sdk.es191.js +66 -42
  215. package/dist/es/standards-sdk.es191.js.map +1 -1
  216. package/dist/es/standards-sdk.es192.js +33 -105
  217. package/dist/es/standards-sdk.es192.js.map +1 -1
  218. package/dist/es/standards-sdk.es193.js +49 -43
  219. package/dist/es/standards-sdk.es193.js.map +1 -1
  220. package/dist/es/standards-sdk.es194.js +33 -42
  221. package/dist/es/standards-sdk.es194.js.map +1 -1
  222. package/dist/es/standards-sdk.es195.js +123 -72
  223. package/dist/es/standards-sdk.es195.js.map +1 -1
  224. package/dist/es/standards-sdk.es196.js +58 -75
  225. package/dist/es/standards-sdk.es196.js.map +1 -1
  226. package/dist/es/standards-sdk.es197.js +60 -44
  227. package/dist/es/standards-sdk.es197.js.map +1 -1
  228. package/dist/es/standards-sdk.es198.js +72 -36
  229. package/dist/es/standards-sdk.es198.js.map +1 -1
  230. package/dist/es/standards-sdk.es199.js +75 -30
  231. package/dist/es/standards-sdk.es199.js.map +1 -1
  232. package/dist/es/standards-sdk.es2.js +2 -2
  233. package/dist/es/standards-sdk.es20.js +1 -1
  234. package/dist/es/standards-sdk.es200.js +44 -34
  235. package/dist/es/standards-sdk.es200.js.map +1 -1
  236. package/dist/es/standards-sdk.es201.js +36 -48
  237. package/dist/es/standards-sdk.es201.js.map +1 -1
  238. package/dist/es/standards-sdk.es202.js +30 -138
  239. package/dist/es/standards-sdk.es202.js.map +1 -1
  240. package/dist/es/standards-sdk.es203.js +34 -42
  241. package/dist/es/standards-sdk.es203.js.map +1 -1
  242. package/dist/es/standards-sdk.es204.js +48 -12482
  243. package/dist/es/standards-sdk.es204.js.map +1 -1
  244. package/dist/es/standards-sdk.es205.js +134 -13
  245. package/dist/es/standards-sdk.es205.js.map +1 -1
  246. package/dist/es/standards-sdk.es206.js +36 -50
  247. package/dist/es/standards-sdk.es206.js.map +1 -1
  248. package/dist/es/standards-sdk.es207.js +12449 -78
  249. package/dist/es/standards-sdk.es207.js.map +1 -1
  250. package/dist/es/standards-sdk.es208.js +15 -79
  251. package/dist/es/standards-sdk.es208.js.map +1 -1
  252. package/dist/es/standards-sdk.es209.js +48 -192
  253. package/dist/es/standards-sdk.es209.js.map +1 -1
  254. package/dist/es/standards-sdk.es21.js +1 -1
  255. package/dist/es/standards-sdk.es210.js +90 -651
  256. package/dist/es/standards-sdk.es210.js.map +1 -1
  257. package/dist/es/standards-sdk.es211.js +71 -63
  258. package/dist/es/standards-sdk.es211.js.map +1 -1
  259. package/dist/es/standards-sdk.es212.js +188 -160
  260. package/dist/es/standards-sdk.es212.js.map +1 -1
  261. package/dist/es/standards-sdk.es213.js +65 -314
  262. package/dist/es/standards-sdk.es213.js.map +1 -1
  263. package/dist/es/standards-sdk.es214.js +661 -335
  264. package/dist/es/standards-sdk.es214.js.map +1 -1
  265. package/dist/es/standards-sdk.es215.js +129 -410
  266. package/dist/es/standards-sdk.es215.js.map +1 -1
  267. package/dist/es/standards-sdk.es216.js +200 -209
  268. package/dist/es/standards-sdk.es216.js.map +1 -1
  269. package/dist/es/standards-sdk.es217.js +334 -64
  270. package/dist/es/standards-sdk.es217.js.map +1 -1
  271. package/dist/es/standards-sdk.es218.js +438 -124
  272. package/dist/es/standards-sdk.es218.js.map +1 -1
  273. package/dist/es/standards-sdk.es219.js +310 -496
  274. package/dist/es/standards-sdk.es219.js.map +1 -1
  275. package/dist/es/standards-sdk.es22.js +1 -1
  276. package/dist/es/standards-sdk.es220.js +60 -243
  277. package/dist/es/standards-sdk.es220.js.map +1 -1
  278. package/dist/es/standards-sdk.es221.js +118 -175
  279. package/dist/es/standards-sdk.es221.js.map +1 -1
  280. package/dist/es/standards-sdk.es222.js +465 -67
  281. package/dist/es/standards-sdk.es222.js.map +1 -1
  282. package/dist/es/standards-sdk.es223.js +250 -143
  283. package/dist/es/standards-sdk.es223.js.map +1 -1
  284. package/dist/es/standards-sdk.es224.js +172 -160
  285. package/dist/es/standards-sdk.es224.js.map +1 -1
  286. package/dist/es/standards-sdk.es225.js +65 -630
  287. package/dist/es/standards-sdk.es225.js.map +1 -1
  288. package/dist/es/standards-sdk.es226.js +128 -161
  289. package/dist/es/standards-sdk.es226.js.map +1 -1
  290. package/dist/es/standards-sdk.es227.js +144 -195
  291. package/dist/es/standards-sdk.es227.js.map +1 -1
  292. package/dist/es/standards-sdk.es228.js +668 -223
  293. package/dist/es/standards-sdk.es228.js.map +1 -1
  294. package/dist/es/standards-sdk.es229.js +188 -0
  295. package/dist/es/standards-sdk.es229.js.map +1 -0
  296. package/dist/es/standards-sdk.es23.js +1 -1
  297. package/dist/es/standards-sdk.es230.js +238 -0
  298. package/dist/es/standards-sdk.es230.js.map +1 -0
  299. package/dist/es/standards-sdk.es231.js +242 -0
  300. package/dist/es/standards-sdk.es231.js.map +1 -0
  301. package/dist/es/standards-sdk.es24.js +1 -1
  302. package/dist/es/standards-sdk.es25.js +1 -1
  303. package/dist/es/standards-sdk.es26.js +1 -1
  304. package/dist/es/standards-sdk.es27.js +13 -13
  305. package/dist/es/standards-sdk.es30.js +2 -2
  306. package/dist/es/standards-sdk.es31.js +4 -4
  307. package/dist/es/standards-sdk.es32.js +1 -1
  308. package/dist/es/standards-sdk.es35.js +7 -7
  309. package/dist/es/standards-sdk.es36.js +4 -4
  310. package/dist/es/standards-sdk.es37.js +2 -2
  311. package/dist/es/standards-sdk.es38.js +2 -2
  312. package/dist/es/standards-sdk.es39.js +1 -1
  313. package/dist/es/standards-sdk.es4.js +2 -2
  314. package/dist/es/standards-sdk.es40.js +1 -1
  315. package/dist/es/standards-sdk.es41.js +2 -2
  316. package/dist/es/standards-sdk.es46.js +1 -1
  317. package/dist/es/standards-sdk.es5.js +2 -2
  318. package/dist/es/standards-sdk.es51.js +1 -1
  319. package/dist/es/standards-sdk.es53.js +1 -1
  320. package/dist/es/standards-sdk.es56.js +2 -2
  321. package/dist/es/standards-sdk.es59.js +1 -1
  322. package/dist/es/standards-sdk.es6.js +2 -2
  323. package/dist/es/standards-sdk.es60.js +1 -1
  324. package/dist/es/standards-sdk.es62.js +1 -1
  325. package/dist/es/standards-sdk.es63.js +2 -2
  326. package/dist/es/standards-sdk.es64.js +1 -1
  327. package/dist/es/standards-sdk.es65.js +1 -1
  328. package/dist/es/standards-sdk.es66.js +1 -1
  329. package/dist/es/standards-sdk.es67.js +8 -8
  330. package/dist/es/standards-sdk.es69.js +1 -1
  331. package/dist/es/standards-sdk.es7.js +1 -1
  332. package/dist/es/standards-sdk.es71.js +2 -2
  333. package/dist/es/standards-sdk.es72.js +3 -3
  334. package/dist/es/standards-sdk.es75.js +5 -5
  335. package/dist/es/standards-sdk.es76.js +3 -3
  336. package/dist/es/standards-sdk.es77.js +2 -2
  337. package/dist/es/standards-sdk.es78.js +1 -1
  338. package/dist/es/standards-sdk.es81.js +2 -2
  339. package/dist/es/standards-sdk.es83.js +2 -2
  340. package/dist/es/standards-sdk.es84.js +5 -5
  341. package/dist/es/standards-sdk.es85.js +1 -1
  342. package/dist/es/standards-sdk.es88.js +1 -1
  343. package/dist/es/standards-sdk.es89.js +2 -2
  344. package/dist/es/standards-sdk.es9.js +2 -2
  345. package/dist/es/standards-sdk.es90.js +4 -4
  346. package/dist/es/standards-sdk.es94.js +3 -3
  347. package/dist/es/standards-sdk.es96.js +2 -2
  348. package/dist/es/standards-sdk.es98.js +1 -1
  349. package/dist/es/standards-sdk.es99.js +3 -3
  350. package/package.json +1 -1
@@ -1,211 +1,1125 @@
1
- import { InscriptionSDK } from "./standards-sdk.es204.js";
2
- class QuoteCache {
3
- constructor() {
4
- this.cache = /* @__PURE__ */ new Map();
5
- this.maxSize = 100;
6
- this.defaultTtlMs = 5 * 60 * 1e3;
7
- }
8
- // 5 minutes
9
- /**
10
- * Generate cache key from input parameters
11
- */
12
- generateKey(key) {
13
- return `${key.inputHash}-${key.clientConfigHash}-${key.optionsHash}`;
14
- }
15
- /**
16
- * Hash object to string for cache key
17
- */
18
- hashObject(obj) {
19
- return Buffer.from(JSON.stringify(obj)).toString("base64").slice(0, 16);
20
- }
21
- /**
22
- * Create cache key from parameters
23
- */
24
- createCacheKey(input, clientConfig, options) {
25
- return {
26
- inputHash: this.hashObject(input),
27
- clientConfigHash: this.hashObject({
28
- accountId: clientConfig.accountId,
29
- network: clientConfig.network
30
- }),
31
- optionsHash: this.hashObject({
32
- mode: options.mode,
33
- apiKey: options.apiKey ? "present" : "absent",
34
- network: options.network,
35
- metadata: options.metadata
36
- })
37
- };
1
+ import { InscriptionSDK } from "./standards-sdk.es207.js";
2
+ import { Logger } from "./standards-sdk.es148.js";
3
+ import { ProgressReporter } from "./standards-sdk.es151.js";
4
+ import { TransactionParser } from "./standards-sdk.es153.js";
5
+ import { isBrowser } from "./standards-sdk.es161.js";
6
+ import { optionalImport } from "./standards-sdk.es210.js";
7
+ import { validateQuoteParameters, getCachedQuote, getOrCreateSDK, cacheQuote } from "./standards-sdk.es168.js";
8
+ import { HederaMirrorNode } from "./standards-sdk.es169.js";
9
+ import { sleep } from "./standards-sdk.es158.js";
10
+ import { computeInscriptionCostSummary } from "./standards-sdk.es213.js";
11
+ let nodeModules = {};
12
+ const normalizeTransactionId = (txId) => {
13
+ if (!txId.includes("@")) {
14
+ return txId;
38
15
  }
39
- /**
40
- * Get cached quote if available and not expired
41
- */
42
- get(key) {
43
- const cacheKey = this.generateKey(key);
44
- const entry = this.cache.get(cacheKey);
45
- if (!entry) {
46
- return null;
47
- }
48
- const now = Date.now();
49
- if (now - entry.timestamp > entry.ttlMs) {
50
- this.cache.delete(cacheKey);
51
- return null;
52
- }
53
- this.cache.delete(cacheKey);
54
- this.cache.set(cacheKey, entry);
55
- return entry.quote;
56
- }
57
- /**
58
- * Store quote in cache
59
- */
60
- set(key, quote, ttlMs = this.defaultTtlMs) {
61
- const cacheKey = this.generateKey(key);
62
- if (this.cache.size >= this.maxSize) {
63
- const firstKey = this.cache.keys().next().value;
64
- if (firstKey) {
65
- this.cache.delete(firstKey);
16
+ const txParts = txId?.split("@");
17
+ return `${txParts[0]}-${txParts[1].replace(".", "-")}`;
18
+ };
19
+ async function loadNodeModules() {
20
+ if (isBrowser || nodeModules.readFileSync) {
21
+ return;
22
+ }
23
+ try {
24
+ const [fsModule, pathModule] = await Promise.all([
25
+ optionalImport("node:fs"),
26
+ optionalImport("node:path")
27
+ ]);
28
+ if (!fsModule || !pathModule) {
29
+ throw new Error("Node.js fs or path module not available");
30
+ }
31
+ nodeModules.readFileSync = fsModule.readFileSync;
32
+ nodeModules.basename = pathModule.basename;
33
+ nodeModules.extname = pathModule.extname;
34
+ } catch (error) {
35
+ Logger.getInstance({
36
+ module: "Inscriber",
37
+ level: "warn"
38
+ }).warn(
39
+ "Node.js modules not available, file path operations will be disabled",
40
+ {
41
+ error: error instanceof Error ? error.message : String(error)
66
42
  }
43
+ );
44
+ }
45
+ }
46
+ const COST_LOOKUP_ATTEMPTS = 3;
47
+ const COST_LOOKUP_DELAY_MS = 1e3;
48
+ const COST_LOGGER_MODULE = "InscriberCost";
49
+ async function convertFileToBase64(filePath) {
50
+ if (isBrowser) {
51
+ throw new Error(
52
+ "File path operations are not supported in browser environment. Use buffer input type instead."
53
+ );
54
+ }
55
+ await loadNodeModules();
56
+ if (!nodeModules.readFileSync || !nodeModules.basename || !nodeModules.extname) {
57
+ throw new Error(
58
+ "Node.js file system modules are not available. Cannot read file from path."
59
+ );
60
+ }
61
+ try {
62
+ const buffer = nodeModules.readFileSync(filePath);
63
+ const base64 = buffer.toString("base64");
64
+ const fileName = nodeModules.basename(filePath);
65
+ let mimeType = "application/octet-stream";
66
+ try {
67
+ const fileTypeModule = await optionalImport("file-type");
68
+ const fileTypeResult = typeof fileTypeModule?.fileTypeFromBuffer === "function" ? await fileTypeModule.fileTypeFromBuffer(buffer) : void 0;
69
+ if (fileTypeResult) {
70
+ mimeType = fileTypeResult.mime;
71
+ }
72
+ } catch (_error) {
73
+ const ext = nodeModules.extname(filePath).toLowerCase();
74
+ const mimeMap = {
75
+ ".txt": "text/plain",
76
+ ".json": "application/json",
77
+ ".html": "text/html",
78
+ ".css": "text/css",
79
+ ".js": "application/javascript",
80
+ ".png": "image/png",
81
+ ".jpg": "image/jpeg",
82
+ ".jpeg": "image/jpeg",
83
+ ".gif": "image/gif",
84
+ ".svg": "image/svg+xml",
85
+ ".pdf": "application/pdf"
86
+ };
87
+ mimeType = mimeMap[ext] || "application/octet-stream";
67
88
  }
68
- this.cache.set(cacheKey, {
69
- quote,
70
- timestamp: Date.now(),
71
- ttlMs
72
- });
89
+ return { base64, fileName, mimeType };
90
+ } catch (error) {
91
+ throw new Error(
92
+ `Failed to read file ${filePath}: ${error.message}`
93
+ );
73
94
  }
74
- /**
75
- * Clear all cached entries
76
- */
77
- clear() {
78
- this.cache.clear();
95
+ }
96
+ function normalizeClientConfig(cfg) {
97
+ return {
98
+ accountId: cfg.accountId,
99
+ privateKey: typeof cfg.privateKey === "string" ? cfg.privateKey : cfg.privateKey.toString(),
100
+ network: cfg.network
101
+ };
102
+ }
103
+ function resolveConnectionMode(options) {
104
+ if (options.connectionMode) {
105
+ return options.connectionMode;
106
+ }
107
+ if (typeof options.websocket === "boolean") {
108
+ return options.websocket ? "websocket" : "http";
79
109
  }
110
+ return "websocket";
80
111
  }
81
- class SDKCache {
82
- constructor() {
83
- this.cache = /* @__PURE__ */ new Map();
84
- this.maxSize = 10;
85
- this.defaultTtlMs = 30 * 60 * 1e3;
86
- }
87
- // 30 minutes
88
- /**
89
- * Generate config key for SDK instance
90
- */
91
- generateConfigKey(config) {
92
- return Buffer.from(JSON.stringify(config)).toString("base64");
93
- }
94
- /**
95
- * Get cached SDK instance
96
- */
97
- get(config) {
98
- const configKey = this.generateConfigKey(config);
99
- const entry = this.cache.get(configKey);
100
- if (!entry) {
101
- return null;
102
- }
103
- const now = Date.now();
104
- if (now - entry.timestamp > this.defaultTtlMs) {
105
- this.cache.delete(configKey);
106
- return null;
107
- }
108
- return entry.sdk;
109
- }
110
- /**
111
- * Store SDK instance in cache
112
- */
113
- set(config, sdk) {
114
- const configKey = this.generateConfigKey(config);
115
- if (this.cache.size >= this.maxSize) {
116
- const firstKey = this.cache.keys().next().value;
117
- if (firstKey) {
118
- this.cache.delete(firstKey);
112
+ async function inscribe(input, clientConfig, options, existingSDK) {
113
+ const logger = Logger.getInstance({
114
+ module: "Inscriber",
115
+ ...options.logging
116
+ });
117
+ const resolvedConnectionMode = resolveConnectionMode(options);
118
+ logger.info("Starting inscription process", {
119
+ type: input.type,
120
+ mode: options.mode || "file",
121
+ quoteOnly: options.quoteOnly || false,
122
+ ...input.type === "url" ? { url: input.url } : {},
123
+ ...input.type === "file" ? { path: input.path } : {},
124
+ ...input.type === "buffer" ? { fileName: input.fileName, bufferSize: input.buffer.byteLength } : {}
125
+ });
126
+ try {
127
+ if (options.quoteOnly) {
128
+ logger.debug("Quote-only mode requested, generating quote");
129
+ return await generateQuote(input, clientConfig, options, existingSDK);
130
+ }
131
+ if (options.mode === "hashinal" && options.metadata) {
132
+ validateHashinalMetadata(options.metadata, logger);
133
+ }
134
+ let sdk;
135
+ if (existingSDK) {
136
+ logger.debug("Using existing InscriptionSDK instance");
137
+ sdk = existingSDK;
138
+ } else if (options.apiKey) {
139
+ logger.debug("Initializing InscriptionSDK with API key");
140
+ sdk = new InscriptionSDK({
141
+ apiKey: options.apiKey,
142
+ network: clientConfig.network || "mainnet",
143
+ connectionMode: resolvedConnectionMode,
144
+ baseURL: options.baseURL
145
+ });
146
+ } else {
147
+ logger.debug("Initializing InscriptionSDK with server auth");
148
+ const normalized = normalizeClientConfig(clientConfig);
149
+ sdk = await InscriptionSDK.createWithAuth({
150
+ type: "server",
151
+ accountId: normalized.accountId,
152
+ privateKey: normalized.privateKey,
153
+ network: normalized.network || "mainnet",
154
+ connectionMode: resolvedConnectionMode,
155
+ baseUrl: options.baseURL
156
+ });
157
+ }
158
+ const baseRequest = {
159
+ holderId: clientConfig.accountId,
160
+ metadata: options.metadata || {},
161
+ tags: options.tags || [],
162
+ mode: options.mode || "file",
163
+ fileStandard: options.fileStandard,
164
+ chunkSize: options.chunkSize
165
+ };
166
+ let request;
167
+ switch (input.type) {
168
+ case "url":
169
+ request = {
170
+ ...baseRequest,
171
+ file: {
172
+ type: "url",
173
+ url: input.url
174
+ }
175
+ };
176
+ break;
177
+ case "file": {
178
+ const fileData = await convertFileToBase64(input.path);
179
+ request = {
180
+ ...baseRequest,
181
+ file: {
182
+ type: "base64",
183
+ base64: fileData.base64,
184
+ fileName: fileData.fileName,
185
+ mimeType: fileData.mimeType
186
+ }
187
+ };
188
+ break;
189
+ }
190
+ case "buffer":
191
+ request = {
192
+ ...baseRequest,
193
+ file: {
194
+ type: "base64",
195
+ base64: Buffer.from(
196
+ input.buffer instanceof ArrayBuffer ? new Uint8Array(input.buffer) : input.buffer
197
+ ).toString("base64"),
198
+ fileName: input.fileName,
199
+ mimeType: input.mimeType
200
+ }
201
+ };
202
+ break;
203
+ }
204
+ if (options.mode === "hashinal") {
205
+ request.metadataObject = options.metadata;
206
+ request.creator = options.metadata?.creator || clientConfig.accountId;
207
+ request.description = options.metadata?.description;
208
+ if (options.jsonFileURL) {
209
+ request.jsonFileURL = options.jsonFileURL;
119
210
  }
120
211
  }
121
- this.cache.set(configKey, {
212
+ logger.debug("Preparing to inscribe content", {
213
+ type: input.type,
214
+ mode: options.mode || "file",
215
+ holderId: clientConfig.accountId
216
+ });
217
+ const normalizedCfg = normalizeClientConfig(clientConfig);
218
+ const result = await sdk.inscribeAndExecute(
219
+ request,
220
+ normalizedCfg,
221
+ options.progressCallback
222
+ );
223
+ const rawJobId = result.jobId || result.tx_id || result.transactionId || "";
224
+ const rawTxId = result.transactionId || rawJobId || "";
225
+ const normalizedJobId = normalizeTransactionId(rawJobId);
226
+ const normalizedTxId = normalizeTransactionId(rawTxId);
227
+ const waitId = normalizeTransactionId(
228
+ normalizedJobId || normalizedTxId || rawJobId || result.jobId || ""
229
+ );
230
+ logger.info("Starting to inscribe.", {
231
+ type: input.type,
232
+ mode: options.mode || "file",
233
+ transactionId: result.jobId
234
+ });
235
+ if (options.waitForConfirmation) {
236
+ logger.debug("Waiting for inscription confirmation", {
237
+ transactionId: waitId,
238
+ maxAttempts: options.waitMaxAttempts,
239
+ intervalMs: options.waitIntervalMs
240
+ });
241
+ const inscription = await waitForInscriptionConfirmation(
242
+ sdk,
243
+ waitId,
244
+ options.waitMaxAttempts,
245
+ options.waitIntervalMs,
246
+ options.progressCallback
247
+ );
248
+ logger.info("Inscription confirmation received", {
249
+ transactionId: result.jobId
250
+ });
251
+ return {
252
+ confirmed: true,
253
+ result: {
254
+ ...result,
255
+ jobId: waitId,
256
+ transactionId: normalizedTxId
257
+ },
258
+ inscription,
259
+ sdk,
260
+ costSummary: await resolveInscriptionCost(
261
+ normalizedTxId,
262
+ clientConfig.network || "mainnet",
263
+ options.logging?.level
264
+ )
265
+ };
266
+ }
267
+ return {
268
+ confirmed: false,
269
+ result: {
270
+ ...result,
271
+ jobId: waitId,
272
+ transactionId: normalizedTxId
273
+ },
122
274
  sdk,
123
- timestamp: Date.now(),
124
- config: configKey
275
+ costSummary: await resolveInscriptionCost(
276
+ normalizedTxId,
277
+ clientConfig.network || "mainnet",
278
+ options.logging?.level
279
+ )
280
+ };
281
+ } catch (error) {
282
+ logger.error("Error during inscription process", error);
283
+ throw error;
284
+ }
285
+ }
286
+ async function resolveInscriptionCost(transactionId, network, level) {
287
+ const logger = Logger.getInstance({
288
+ module: COST_LOGGER_MODULE,
289
+ level: level ?? "info"
290
+ });
291
+ const mirrorNode = new HederaMirrorNode(network, logger);
292
+ const normalizedId = normalizeTransactionId(transactionId);
293
+ const payerAccountId = normalizedId.split("-")[0];
294
+ for (let attempt = 0; attempt < COST_LOOKUP_ATTEMPTS; attempt++) {
295
+ try {
296
+ const txn = await mirrorNode.getTransaction(normalizedId);
297
+ if (!txn) {
298
+ if (attempt < COST_LOOKUP_ATTEMPTS - 1) {
299
+ await sleep(COST_LOOKUP_DELAY_MS);
300
+ }
301
+ continue;
302
+ }
303
+ const computed = computeInscriptionCostSummary({
304
+ txn,
305
+ payerAccountId
306
+ });
307
+ if (!computed) {
308
+ if (attempt < COST_LOOKUP_ATTEMPTS - 1) {
309
+ await sleep(COST_LOOKUP_DELAY_MS);
310
+ }
311
+ continue;
312
+ }
313
+ return computed.summary;
314
+ } catch (error) {
315
+ logger.warn("Unable to resolve inscription cost", {
316
+ transactionId: normalizedId,
317
+ attempt: attempt + 1,
318
+ error: error instanceof Error ? error.message : String(error)
319
+ });
320
+ if (attempt < COST_LOOKUP_ATTEMPTS - 1) {
321
+ await sleep(COST_LOOKUP_DELAY_MS);
322
+ }
323
+ }
324
+ }
325
+ return void 0;
326
+ }
327
+ async function inscribeWithSigner(input, signer, options, existingSDK) {
328
+ const logger = Logger.getInstance({
329
+ module: "Inscriber",
330
+ ...options.logging
331
+ });
332
+ const resolvedConnectionMode = resolveConnectionMode(options);
333
+ logger.info("Starting inscription process with signer", {
334
+ type: input.type,
335
+ mode: options.mode || "file",
336
+ quoteOnly: options.quoteOnly || false,
337
+ ...input.type === "url" ? { url: input.url } : {},
338
+ ...input.type === "file" ? { path: input.path } : {},
339
+ ...input.type === "buffer" ? { fileName: input.fileName, bufferSize: input.buffer.byteLength } : {}
340
+ });
341
+ try {
342
+ if (options.quoteOnly) {
343
+ logger.debug("Quote-only mode requested with signer, generating quote");
344
+ const clientConfig = {
345
+ accountId: signer.getAccountId().toString(),
346
+ privateKey: "",
347
+ network: options.network || "mainnet"
348
+ };
349
+ return await generateQuote(input, clientConfig, options, existingSDK);
350
+ }
351
+ if (options.mode === "hashinal" && options.metadata) {
352
+ validateHashinalMetadata(options.metadata, logger);
353
+ }
354
+ const accountId = signer.getAccountId().toString();
355
+ logger.debug("Using account ID from signer", { accountId });
356
+ let sdk;
357
+ if (existingSDK) {
358
+ logger.debug("Using existing InscriptionSDK instance");
359
+ sdk = existingSDK;
360
+ } else if (options.apiKey) {
361
+ logger.debug("Initializing InscriptionSDK with API key");
362
+ sdk = new InscriptionSDK({
363
+ apiKey: options.apiKey,
364
+ network: options.network || "mainnet",
365
+ connectionMode: resolvedConnectionMode,
366
+ baseURL: options.baseURL
367
+ });
368
+ } else {
369
+ logger.debug("Initializing InscriptionSDK with client auth (websocket)");
370
+ sdk = await InscriptionSDK.createWithAuth({
371
+ type: "client",
372
+ accountId,
373
+ signer,
374
+ network: options.network || "mainnet",
375
+ connectionMode: resolvedConnectionMode,
376
+ baseUrl: options.baseURL
377
+ });
378
+ }
379
+ const baseRequest = {
380
+ holderId: accountId,
381
+ metadata: options.metadata || {},
382
+ tags: options.tags || [],
383
+ mode: options.mode || "file",
384
+ fileStandard: options.fileStandard,
385
+ chunkSize: options.chunkSize
386
+ };
387
+ let request;
388
+ switch (input.type) {
389
+ case "url":
390
+ request = {
391
+ ...baseRequest,
392
+ file: {
393
+ type: "url",
394
+ url: input.url
395
+ }
396
+ };
397
+ break;
398
+ case "file": {
399
+ const fileData = await convertFileToBase64(input.path);
400
+ request = {
401
+ ...baseRequest,
402
+ file: {
403
+ type: "base64",
404
+ base64: fileData.base64,
405
+ fileName: fileData.fileName,
406
+ mimeType: fileData.mimeType
407
+ }
408
+ };
409
+ break;
410
+ }
411
+ case "buffer":
412
+ request = {
413
+ ...baseRequest,
414
+ file: {
415
+ type: "base64",
416
+ base64: Buffer.from(
417
+ input.buffer instanceof ArrayBuffer ? new Uint8Array(input.buffer) : input.buffer
418
+ ).toString("base64"),
419
+ fileName: input.fileName,
420
+ mimeType: input.mimeType
421
+ }
422
+ };
423
+ break;
424
+ }
425
+ if (options.mode === "hashinal") {
426
+ request.metadataObject = options.metadata;
427
+ request.creator = options.metadata?.creator || accountId;
428
+ request.description = options.metadata?.description;
429
+ if (options.jsonFileURL) {
430
+ request.jsonFileURL = options.jsonFileURL;
431
+ }
432
+ }
433
+ logger.debug("Starting inscription via startInscription (websocket)", {
434
+ type: input.type,
435
+ mode: options.mode || "file",
436
+ holderId: accountId,
437
+ usesStartInscription: true
438
+ });
439
+ const startResult = await sdk.startInscription({
440
+ ...request,
441
+ holderId: accountId,
442
+ network: options.network || "mainnet"
125
443
  });
444
+ const startTransactionIdRaw = typeof startResult?.tx_id === "string" && startResult.tx_id.trim() || typeof startResult?.jobId === "string" && (startResult.jobId || "").trim() || typeof startResult?.id === "string" && (startResult.id || "").trim() || "";
445
+ const waitId = normalizeTransactionId(startTransactionIdRaw);
446
+ if (!waitId) {
447
+ throw new Error("startInscription did not return a transaction id");
448
+ }
449
+ logger.info("about to start inscription", {
450
+ type: input.type,
451
+ mode: options.mode || "file",
452
+ jobId: waitId,
453
+ ...startResult
454
+ });
455
+ if (typeof startResult?.transactionBytes === "string") {
456
+ logger.debug("Executing inscription transaction with signer from bytes");
457
+ await sdk.executeTransactionWithSigner(
458
+ startResult.transactionBytes,
459
+ signer
460
+ );
461
+ } else if (startResult?.transactionBytes?.type === "Buffer") {
462
+ logger.debug("Executing inscription transaction with signer from buffer");
463
+ await sdk.executeTransactionWithSigner(
464
+ Buffer.from(startResult.transactionBytes.data).toString("base64"),
465
+ signer
466
+ );
467
+ }
468
+ if (options.waitForConfirmation) {
469
+ logger.debug("Waiting for inscription confirmation (websocket)", {
470
+ jobId: waitId,
471
+ maxAttempts: options.waitMaxAttempts,
472
+ intervalMs: options.waitIntervalMs
473
+ });
474
+ const inscription = await waitForInscriptionConfirmation(
475
+ sdk,
476
+ waitId,
477
+ options.waitMaxAttempts,
478
+ options.waitIntervalMs,
479
+ options.progressCallback
480
+ );
481
+ logger.info("Inscription confirmation received", {
482
+ jobId: waitId
483
+ });
484
+ return {
485
+ confirmed: true,
486
+ result: {
487
+ jobId: waitId,
488
+ transactionId: waitId,
489
+ topic_id: startResult.topic_id,
490
+ status: startResult.status,
491
+ completed: startResult.completed
492
+ },
493
+ inscription,
494
+ sdk,
495
+ costSummary: await resolveInscriptionCost(
496
+ waitId,
497
+ options.network || "mainnet",
498
+ options.logging?.level
499
+ )
500
+ };
501
+ }
502
+ return {
503
+ confirmed: false,
504
+ result: {
505
+ jobId: waitId,
506
+ transactionId: waitId,
507
+ topic_id: startResult.topic_id,
508
+ status: startResult.status,
509
+ completed: startResult.completed
510
+ },
511
+ sdk,
512
+ costSummary: await resolveInscriptionCost(
513
+ waitId,
514
+ options.network || "mainnet",
515
+ options.logging?.level
516
+ )
517
+ };
518
+ } catch (error) {
519
+ logger.error("Error during inscription process", error);
520
+ throw error;
126
521
  }
127
- /**
128
- * Clear all cached SDK instances
129
- */
130
- clear() {
131
- this.cache.clear();
522
+ }
523
+ async function retrieveInscription(transactionId, options) {
524
+ const logger = Logger.getInstance({
525
+ module: "Inscriber",
526
+ ...options?.logging || {}
527
+ });
528
+ const formattedTransactionId = transactionId.includes("@") ? `${transactionId.split("@")[0]}-${transactionId.split("@")[1].replace(/\./g, "-")}` : transactionId;
529
+ logger.info("Retrieving inscription", {
530
+ originalTransactionId: transactionId,
531
+ formattedTransactionId
532
+ });
533
+ try {
534
+ let sdk;
535
+ if (options?.apiKey) {
536
+ logger.debug("Initializing InscriptionSDK with API key");
537
+ sdk = new InscriptionSDK({
538
+ apiKey: options.apiKey,
539
+ network: options.network || "mainnet",
540
+ baseURL: options.baseURL
541
+ });
542
+ } else if (options?.accountId && options?.privateKey) {
543
+ logger.debug("Initializing InscriptionSDK with server auth");
544
+ sdk = await InscriptionSDK.createWithAuth({
545
+ type: "server",
546
+ accountId: options.accountId,
547
+ privateKey: options.privateKey,
548
+ network: options.network || "mainnet",
549
+ baseUrl: options.baseURL
550
+ });
551
+ } else {
552
+ const error = new Error(
553
+ "Either API key or account ID and private key are required for retrieving inscriptions"
554
+ );
555
+ logger.error("Missing authentication credentials", {
556
+ hasApiKey: Boolean(options?.apiKey),
557
+ hasAccountId: Boolean(options?.accountId),
558
+ hasPrivateKey: Boolean(options?.privateKey)
559
+ });
560
+ throw error;
561
+ }
562
+ logger.debug("Initialized SDK for inscription retrieval", {
563
+ formattedTransactionId,
564
+ network: options.network || "mainnet"
565
+ });
566
+ const result = await sdk.retrieveInscription(formattedTransactionId);
567
+ logger.info("Successfully retrieved inscription", {
568
+ formattedTransactionId
569
+ });
570
+ return result;
571
+ } catch (error) {
572
+ logger.error("Error retrieving inscription", {
573
+ formattedTransactionId,
574
+ error
575
+ });
576
+ throw error;
132
577
  }
133
578
  }
134
- const quoteCache = new QuoteCache();
135
- const sdkCache = new SDKCache();
136
- async function getOrCreateSDK(clientConfig, options, existingSDK) {
137
- if (existingSDK) {
138
- return existingSDK;
139
- }
140
- const connectionMode = options.connectionMode ?? "websocket";
141
- const cacheConfig = {
142
- apiKey: options.apiKey,
143
- accountId: clientConfig.accountId,
144
- network: clientConfig.network || "mainnet",
145
- authType: options.apiKey ? "api" : "server",
146
- connectionMode
147
- };
148
- const cachedSDK = sdkCache.get(cacheConfig);
149
- if (cachedSDK) {
150
- return cachedSDK;
579
+ function validateHashinalMetadata(metadata, logger) {
580
+ const requiredFields = ["name", "creator", "description", "type"];
581
+ const missingFields = requiredFields.filter((field) => !metadata[field]);
582
+ if (missingFields.length > 0) {
583
+ const error = new Error(
584
+ `Missing required Hashinal metadata fields: ${missingFields.join(", ")}`
585
+ );
586
+ logger.error("Hashinal metadata validation failed", { missingFields });
587
+ throw error;
151
588
  }
152
- let sdk;
153
- if (options.apiKey) {
154
- sdk = new InscriptionSDK({
155
- apiKey: options.apiKey,
156
- network: clientConfig.network || "mainnet",
157
- connectionMode
589
+ logger.debug("Hashinal metadata validation passed", {
590
+ name: metadata.name,
591
+ creator: metadata.creator,
592
+ description: metadata.description,
593
+ type: metadata.type,
594
+ hasAttributes: !!metadata.attributes,
595
+ hasProperties: !!metadata.properties
596
+ });
597
+ }
598
+ async function generateQuote(input, clientConfig, options, existingSDK) {
599
+ const logger = Logger.getInstance({
600
+ module: "Inscriber",
601
+ ...options.logging
602
+ });
603
+ logger.info("Generating inscription quote", {
604
+ type: input.type,
605
+ mode: options.mode || "file",
606
+ ...input.type === "url" ? { url: input.url } : {},
607
+ ...input.type === "file" ? { path: input.path } : {},
608
+ ...input.type === "buffer" ? { fileName: input.fileName, bufferSize: input.buffer.byteLength } : {}
609
+ });
610
+ try {
611
+ validateQuoteParameters(input, clientConfig, options);
612
+ const cachedQuote = getCachedQuote(input, clientConfig, options);
613
+ if (cachedQuote) {
614
+ logger.debug("Returning cached quote");
615
+ return {
616
+ confirmed: false,
617
+ quote: true,
618
+ result: cachedQuote
619
+ };
620
+ }
621
+ if (options.mode === "hashinal" && options.metadata) {
622
+ validateHashinalMetadata(options.metadata, logger);
623
+ }
624
+ const sdk = await getOrCreateSDK(clientConfig, options, existingSDK);
625
+ const baseRequest = {
626
+ holderId: clientConfig.accountId,
627
+ metadata: options.metadata || {},
628
+ tags: options.tags || [],
629
+ mode: options.mode || "file",
630
+ fileStandard: options.fileStandard,
631
+ chunkSize: options.chunkSize
632
+ };
633
+ let request;
634
+ switch (input.type) {
635
+ case "url":
636
+ request = {
637
+ ...baseRequest,
638
+ file: {
639
+ type: "url",
640
+ url: input.url
641
+ }
642
+ };
643
+ break;
644
+ case "file": {
645
+ const fileData = await convertFileToBase64(input.path);
646
+ request = {
647
+ ...baseRequest,
648
+ file: {
649
+ type: "base64",
650
+ base64: fileData.base64,
651
+ fileName: fileData.fileName,
652
+ mimeType: fileData.mimeType
653
+ }
654
+ };
655
+ break;
656
+ }
657
+ case "buffer":
658
+ request = {
659
+ ...baseRequest,
660
+ file: {
661
+ type: "base64",
662
+ base64: Buffer.from(
663
+ input.buffer instanceof ArrayBuffer ? new Uint8Array(input.buffer) : input.buffer
664
+ ).toString("base64"),
665
+ fileName: input.fileName,
666
+ mimeType: input.mimeType
667
+ }
668
+ };
669
+ break;
670
+ }
671
+ if (options.mode === "hashinal") {
672
+ request.metadataObject = options.metadata;
673
+ request.creator = options.metadata?.creator || clientConfig.accountId;
674
+ request.description = options.metadata?.description;
675
+ if (options.jsonFileURL) {
676
+ request.jsonFileURL = options.jsonFileURL;
677
+ }
678
+ }
679
+ logger.debug("Calling inscription SDK startInscription for quote", {
680
+ type: input.type,
681
+ mode: options.mode || "file",
682
+ holderId: clientConfig.accountId
158
683
  });
159
- } else {
160
- sdk = await InscriptionSDK.createWithAuth({
161
- type: "server",
162
- accountId: clientConfig.accountId,
163
- privateKey: typeof clientConfig.privateKey === "string" ? clientConfig.privateKey : clientConfig.privateKey.toString(),
164
- network: clientConfig.network || "mainnet",
165
- connectionMode
684
+ const inscriptionResponse = await sdk.startInscription(request);
685
+ logger.debug("Received inscription response for quote parsing", {
686
+ hasTransactionBytes: !!inscriptionResponse.transactionBytes,
687
+ bytesLength: inscriptionResponse.transactionBytes?.length || 0,
688
+ transactionBytesType: typeof inscriptionResponse.transactionBytes,
689
+ totalCost: inscriptionResponse.totalCost
690
+ });
691
+ const quote = await parseTransactionForQuote(
692
+ inscriptionResponse,
693
+ logger
694
+ );
695
+ cacheQuote(input, clientConfig, options, quote);
696
+ logger.info("Successfully generated inscription quote", {
697
+ totalCostHbar: quote.totalCostHbar
166
698
  });
699
+ return {
700
+ confirmed: false,
701
+ quote: true,
702
+ result: quote
703
+ };
704
+ } catch (error) {
705
+ logger.error("Error generating inscription quote", error);
706
+ throw error;
167
707
  }
168
- sdkCache.set(cacheConfig, sdk);
169
- return sdk;
170
708
  }
171
- function getCachedQuote(input, clientConfig, options) {
172
- const cacheKey = quoteCache.createCacheKey(input, clientConfig, options);
173
- return quoteCache.get(cacheKey);
709
+ async function parseTransactionForQuote(inscriptionResponse, logger) {
710
+ try {
711
+ let totalCostHbar = "0.001";
712
+ if (inscriptionResponse.totalCost && typeof inscriptionResponse.totalCost === "number") {
713
+ const hbarAmount = inscriptionResponse.totalCost / 1e8;
714
+ totalCostHbar = hbarAmount.toString();
715
+ logger.debug("Using totalCost from inscription response", {
716
+ totalCostTinybars: inscriptionResponse.totalCost,
717
+ totalCostHbar
718
+ });
719
+ } else if (inscriptionResponse.transactionBytes) {
720
+ logger.debug("Parsing transaction bytes for cost information");
721
+ try {
722
+ let transactionBytesString;
723
+ if (typeof inscriptionResponse.transactionBytes === "string") {
724
+ transactionBytesString = inscriptionResponse.transactionBytes;
725
+ } else if (inscriptionResponse.transactionBytes && typeof inscriptionResponse.transactionBytes === "object" && "data" in inscriptionResponse.transactionBytes) {
726
+ const buffer = Buffer.from(inscriptionResponse.transactionBytes.data);
727
+ transactionBytesString = buffer.toString("base64");
728
+ } else {
729
+ throw new Error("Invalid transactionBytes format");
730
+ }
731
+ logger.debug("About to parse transaction bytes", {
732
+ bytesLength: transactionBytesString.length,
733
+ bytesPreview: transactionBytesString.slice(0, 100)
734
+ });
735
+ const parsedTransaction = await TransactionParser.parseTransactionBytes(
736
+ transactionBytesString,
737
+ { includeRaw: false }
738
+ );
739
+ logger.debug("Parsed transaction for quote", {
740
+ type: parsedTransaction.type,
741
+ hasTransfers: !!parsedTransaction.transfers,
742
+ transferCount: parsedTransaction.transfers?.length || 0,
743
+ transfers: parsedTransaction.transfers
744
+ });
745
+ let totalTransferAmount = 0;
746
+ if (parsedTransaction.transfers && parsedTransaction.transfers.length > 0) {
747
+ for (const transfer of parsedTransaction.transfers) {
748
+ const transferAmount = typeof transfer.amount === "string" ? parseFloat(transfer.amount) : transfer.amount;
749
+ if (transferAmount < 0) {
750
+ const amountHbar = Math.abs(transferAmount);
751
+ totalTransferAmount += amountHbar;
752
+ logger.debug("Found HBAR transfer", {
753
+ from: transfer.accountId,
754
+ to: "service",
755
+ amount: amountHbar
756
+ });
757
+ }
758
+ }
759
+ }
760
+ if (totalTransferAmount > 0) {
761
+ totalCostHbar = totalTransferAmount.toString();
762
+ logger.debug("Using parsed transaction transfer amount", {
763
+ totalTransferAmount,
764
+ totalCostHbar
765
+ });
766
+ }
767
+ } catch (parseError) {
768
+ logger.warn(
769
+ "Could not parse transaction bytes, using totalCost fallback",
770
+ {
771
+ error: parseError,
772
+ errorMessage: parseError instanceof Error ? parseError.message : String(parseError)
773
+ }
774
+ );
775
+ }
776
+ }
777
+ const transfers = [
778
+ {
779
+ to: "Inscription Service",
780
+ amount: totalCostHbar,
781
+ description: `Inscription fee (${totalCostHbar} HBAR)`
782
+ }
783
+ ];
784
+ const validUntil = new Date(Date.now() + 15 * 60 * 1e3).toISOString();
785
+ const quote = {
786
+ totalCostHbar,
787
+ validUntil,
788
+ breakdown: {
789
+ transfers
790
+ }
791
+ };
792
+ logger.debug("Successfully parsed transaction for quote", {
793
+ totalCostHbar: quote.totalCostHbar,
794
+ transferCount: transfers.length,
795
+ hasTransactionBytes: !!inscriptionResponse.transactionBytes,
796
+ hasTotalCost: !!inscriptionResponse.totalCost
797
+ });
798
+ return quote;
799
+ } catch (error) {
800
+ logger.error("Error parsing transaction for quote", error);
801
+ throw error;
802
+ }
174
803
  }
175
- function cacheQuote(input, clientConfig, options, quote) {
176
- const cacheKey = quoteCache.createCacheKey(input, clientConfig, options);
177
- const quoteTtlMs = 10 * 60 * 1e3;
178
- quoteCache.set(cacheKey, quote, quoteTtlMs);
804
+ async function waitForInscriptionConfirmation(sdk, transactionId, maxAttempts = 450, intervalMs = 4e3, progressCallback) {
805
+ const logger = Logger.getInstance({ module: "Inscriber" });
806
+ const normalizedId = normalizeTransactionId(transactionId);
807
+ const progressReporter = new ProgressReporter({
808
+ module: "Inscriber",
809
+ logger,
810
+ callback: progressCallback
811
+ });
812
+ try {
813
+ logger.debug("Waiting for inscription confirmation", {
814
+ transactionId: normalizedId,
815
+ maxAttempts,
816
+ intervalMs
817
+ });
818
+ progressReporter.preparing("Preparing for inscription confirmation", 5, {
819
+ transactionId: normalizedId,
820
+ maxAttempts,
821
+ intervalMs
822
+ });
823
+ try {
824
+ const waitMethod = sdk.waitForInscription.bind(sdk);
825
+ const wrappedCallback = (data) => {
826
+ const stageRaw = data.stage || "confirming";
827
+ const allowedStages = [
828
+ "preparing",
829
+ "submitting",
830
+ "confirming",
831
+ "verifying",
832
+ "completed",
833
+ "failed"
834
+ ];
835
+ const stage = allowedStages.includes(stageRaw) ? stageRaw : "confirming";
836
+ const message = data.message || "Processing inscription";
837
+ const percent = data.progressPercent || 50;
838
+ progressReporter.report({
839
+ stage,
840
+ message,
841
+ progressPercent: percent,
842
+ details: data.details
843
+ });
844
+ };
845
+ return await waitMethod(
846
+ normalizedId,
847
+ maxAttempts,
848
+ intervalMs,
849
+ true,
850
+ wrappedCallback
851
+ );
852
+ } catch (e) {
853
+ logger.debug("Falling back to standard waitForInscription method", {
854
+ error: e
855
+ });
856
+ progressReporter.verifying("Verifying inscription status", 50, {
857
+ error: e
858
+ });
859
+ return await sdk.waitForInscription(
860
+ normalizedId,
861
+ maxAttempts,
862
+ intervalMs,
863
+ true
864
+ );
865
+ }
866
+ } catch (error) {
867
+ logger.error("Error waiting for inscription confirmation", {
868
+ transactionId,
869
+ maxAttempts,
870
+ intervalMs,
871
+ error
872
+ });
873
+ progressReporter.failed("Inscription confirmation failed", {
874
+ transactionId,
875
+ error
876
+ });
877
+ throw error;
878
+ }
179
879
  }
180
- function validateQuoteParameters(input, clientConfig, options) {
181
- if (!input || typeof input !== "object" || !("type" in input)) {
182
- throw new Error("Invalid inscription input: type is required");
880
+ const DEFAULT_REGISTRY_BROKER_URL = "https://hol.org/registry/api/v1";
881
+ const DEFAULT_POLL_INTERVAL_MS = 2e3;
882
+ const DEFAULT_WAIT_TIMEOUT_MS = 12e4;
883
+ async function fetchRegistryBroker(url, options) {
884
+ const response = await fetch(url, options);
885
+ const body = await response.json().catch(() => ({}));
886
+ if (!response.ok) {
887
+ const errorMessage = typeof body === "object" && body && "error" in body ? String(body.error) : `HTTP ${response.status}`;
888
+ throw new Error(errorMessage);
183
889
  }
184
- if (!clientConfig || !clientConfig.accountId) {
185
- throw new Error("Invalid client config: accountId is required");
890
+ return body;
891
+ }
892
+ async function inscribeViaRegistryBroker(input, options = {}) {
893
+ const logger = Logger.getInstance({
894
+ module: "InscribeViaBroker",
895
+ ...options.logging
896
+ });
897
+ const baseUrl = options.baseUrl ?? DEFAULT_REGISTRY_BROKER_URL;
898
+ const waitForConfirmation = options.waitForConfirmation ?? true;
899
+ const waitTimeoutMs = options.waitTimeoutMs ?? DEFAULT_WAIT_TIMEOUT_MS;
900
+ const pollIntervalMs = options.pollIntervalMs ?? DEFAULT_POLL_INTERVAL_MS;
901
+ const headers = {
902
+ "Content-Type": "application/json",
903
+ Accept: "application/json"
904
+ };
905
+ if (options.ledgerApiKey) {
906
+ headers["x-api-key"] = options.ledgerApiKey;
907
+ } else if (options.apiKey) {
908
+ headers["x-api-key"] = options.apiKey;
909
+ } else {
910
+ throw new Error(
911
+ "Either ledgerApiKey or apiKey is required for Registry Broker inscription"
912
+ );
913
+ }
914
+ logger.info("Starting inscription via Registry Broker", {
915
+ baseUrl,
916
+ inputType: input.type,
917
+ mode: options.mode ?? "file"
918
+ });
919
+ let base64Content;
920
+ let fileName;
921
+ let mimeType;
922
+ switch (input.type) {
923
+ case "url":
924
+ logger.debug("Creating job with URL input");
925
+ break;
926
+ case "file": {
927
+ const fileData = await convertFileToBase64(input.path);
928
+ base64Content = fileData.base64;
929
+ fileName = fileData.fileName;
930
+ mimeType = fileData.mimeType;
931
+ break;
932
+ }
933
+ case "buffer":
934
+ base64Content = Buffer.from(
935
+ input.buffer instanceof ArrayBuffer ? new Uint8Array(input.buffer) : input.buffer
936
+ ).toString("base64");
937
+ fileName = input.fileName;
938
+ mimeType = input.mimeType;
939
+ break;
940
+ }
941
+ const requestBody = {
942
+ inputType: input.type === "url" ? "url" : "base64",
943
+ mode: options.mode ?? "file"
944
+ };
945
+ if (input.type === "url") {
946
+ requestBody.url = input.url;
947
+ } else {
948
+ requestBody.base64 = base64Content;
949
+ requestBody.fileName = fileName;
950
+ if (mimeType) {
951
+ requestBody.mimeType = mimeType;
952
+ }
953
+ }
954
+ if (options.metadata) {
955
+ requestBody.metadata = options.metadata;
186
956
  }
187
- if (!options) {
188
- throw new Error("Options are required");
957
+ if (options.tags) {
958
+ requestBody.tags = options.tags;
189
959
  }
190
- if (options.mode === "hashinal") {
191
- if (!options.metadata) {
192
- throw new Error("Hashinal mode requires metadata");
960
+ if (options.fileStandard) {
961
+ requestBody.fileStandard = options.fileStandard;
962
+ }
963
+ if (options.chunkSize) {
964
+ requestBody.chunkSize = options.chunkSize;
965
+ }
966
+ logger.debug("Creating inscription job");
967
+ const job = await fetchRegistryBroker(
968
+ `${baseUrl}/inscribe/content`,
969
+ {
970
+ method: "POST",
971
+ headers,
972
+ body: JSON.stringify(requestBody)
193
973
  }
194
- const requiredFields = ["name", "creator", "description", "type"];
195
- const missingFields = requiredFields.filter(
196
- (field) => !options.metadata || !options.metadata[field]
974
+ );
975
+ const jobId = job.jobId ?? job.id ?? "";
976
+ logger.info("Inscription job created", { jobId, status: job.status });
977
+ if (!waitForConfirmation) {
978
+ return {
979
+ confirmed: false,
980
+ jobId,
981
+ status: job.status,
982
+ credits: job.credits ?? job.quoteCredits,
983
+ usdCents: job.usdCents ?? job.quoteUsdCents,
984
+ sizeBytes: job.sizeBytes,
985
+ createdAt: job.createdAt,
986
+ updatedAt: job.updatedAt,
987
+ network: job.network
988
+ };
989
+ }
990
+ logger.debug("Polling for job completion", { jobId, waitTimeoutMs });
991
+ const startTime = Date.now();
992
+ let lastStatus = "";
993
+ while (Date.now() - startTime < waitTimeoutMs) {
994
+ const currentJob = await fetchRegistryBroker(
995
+ `${baseUrl}/inscribe/content/${jobId}`,
996
+ { method: "GET", headers }
197
997
  );
198
- if (missingFields.length > 0) {
199
- throw new Error(
200
- `Missing required Hashinal metadata fields: ${missingFields.join(", ")}`
201
- );
998
+ if (currentJob.status !== lastStatus) {
999
+ logger.debug("Job status update", { jobId, status: currentJob.status });
1000
+ lastStatus = currentJob.status;
1001
+ }
1002
+ if (currentJob.status === "completed") {
1003
+ logger.info("Inscription completed", {
1004
+ jobId,
1005
+ hrl: currentJob.hrl,
1006
+ topicId: currentJob.topicId
1007
+ });
1008
+ return {
1009
+ confirmed: true,
1010
+ jobId,
1011
+ status: currentJob.status,
1012
+ hrl: currentJob.hrl,
1013
+ topicId: currentJob.topicId,
1014
+ network: currentJob.network,
1015
+ credits: currentJob.credits ?? currentJob.quoteCredits,
1016
+ usdCents: currentJob.usdCents ?? currentJob.quoteUsdCents,
1017
+ sizeBytes: currentJob.sizeBytes,
1018
+ createdAt: currentJob.createdAt,
1019
+ updatedAt: currentJob.updatedAt
1020
+ };
1021
+ }
1022
+ if (currentJob.status === "failed") {
1023
+ logger.error("Inscription failed", { jobId, error: currentJob.error });
1024
+ return {
1025
+ confirmed: false,
1026
+ jobId,
1027
+ status: currentJob.status,
1028
+ error: currentJob.error ?? "Inscription failed",
1029
+ credits: currentJob.credits ?? currentJob.quoteCredits,
1030
+ createdAt: currentJob.createdAt,
1031
+ updatedAt: currentJob.updatedAt
1032
+ };
202
1033
  }
1034
+ await sleep(pollIntervalMs);
203
1035
  }
1036
+ throw new Error(
1037
+ `Inscription job ${jobId} did not complete within ${waitTimeoutMs}ms`
1038
+ );
1039
+ }
1040
+ async function getRegistryBrokerQuote(input, options = {}) {
1041
+ const logger = Logger.getInstance({
1042
+ module: "InscribeViaBroker",
1043
+ ...options.logging
1044
+ });
1045
+ const baseUrl = options.baseUrl ?? DEFAULT_REGISTRY_BROKER_URL;
1046
+ const headers = {
1047
+ "Content-Type": "application/json",
1048
+ Accept: "application/json"
1049
+ };
1050
+ if (options.ledgerApiKey) {
1051
+ headers["x-api-key"] = options.ledgerApiKey;
1052
+ } else if (options.apiKey) {
1053
+ headers["x-api-key"] = options.apiKey;
1054
+ } else {
1055
+ throw new Error(
1056
+ "Either ledgerApiKey or apiKey is required for Registry Broker quotes"
1057
+ );
1058
+ }
1059
+ let base64Content;
1060
+ let fileName;
1061
+ let mimeType;
1062
+ switch (input.type) {
1063
+ case "url":
1064
+ break;
1065
+ case "file": {
1066
+ const fileData = await convertFileToBase64(input.path);
1067
+ base64Content = fileData.base64;
1068
+ fileName = fileData.fileName;
1069
+ mimeType = fileData.mimeType;
1070
+ break;
1071
+ }
1072
+ case "buffer":
1073
+ base64Content = Buffer.from(
1074
+ input.buffer instanceof ArrayBuffer ? new Uint8Array(input.buffer) : input.buffer
1075
+ ).toString("base64");
1076
+ fileName = input.fileName;
1077
+ mimeType = input.mimeType;
1078
+ break;
1079
+ }
1080
+ const requestBody = {
1081
+ inputType: input.type === "url" ? "url" : "base64",
1082
+ mode: options.mode ?? "file"
1083
+ };
1084
+ if (input.type === "url") {
1085
+ requestBody.url = input.url;
1086
+ } else {
1087
+ requestBody.base64 = base64Content;
1088
+ requestBody.fileName = fileName;
1089
+ if (mimeType) {
1090
+ requestBody.mimeType = mimeType;
1091
+ }
1092
+ }
1093
+ if (options.metadata) {
1094
+ requestBody.metadata = options.metadata;
1095
+ }
1096
+ if (options.tags) {
1097
+ requestBody.tags = options.tags;
1098
+ }
1099
+ if (options.fileStandard) {
1100
+ requestBody.fileStandard = options.fileStandard;
1101
+ }
1102
+ if (options.chunkSize) {
1103
+ requestBody.chunkSize = options.chunkSize;
1104
+ }
1105
+ logger.debug("Getting inscription quote from Registry Broker");
1106
+ return fetchRegistryBroker(
1107
+ `${baseUrl}/inscribe/content/quote`,
1108
+ {
1109
+ method: "POST",
1110
+ headers,
1111
+ body: JSON.stringify(requestBody)
1112
+ }
1113
+ );
204
1114
  }
205
1115
  export {
206
- cacheQuote,
207
- getCachedQuote,
208
- getOrCreateSDK,
209
- validateQuoteParameters
1116
+ generateQuote,
1117
+ getRegistryBrokerQuote,
1118
+ inscribe,
1119
+ inscribeViaRegistryBroker,
1120
+ inscribeWithSigner,
1121
+ normalizeTransactionId,
1122
+ retrieveInscription,
1123
+ waitForInscriptionConfirmation
210
1124
  };
211
1125
  //# sourceMappingURL=standards-sdk.es167.js.map