@hashgraphonline/standards-sdk 0.1.143 → 0.1.144-feat-solana-register.canary.5001619.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/hcs-10/base-client.d.ts.map +1 -1
- package/dist/cjs/hcs-10/sdk.d.ts +8 -0
- package/dist/cjs/hcs-10/sdk.d.ts.map +1 -1
- package/dist/cjs/hcs-11/client.d.ts +2 -2
- package/dist/cjs/hcs-11/client.d.ts.map +1 -1
- package/dist/cjs/hcs-11/person-builder.d.ts +1 -0
- package/dist/cjs/hcs-11/person-builder.d.ts.map +1 -1
- package/dist/cjs/hcs-11/types.d.ts +1 -0
- package/dist/cjs/hcs-11/types.d.ts.map +1 -1
- package/dist/cjs/hcs-12/rendering/resource-manager.d.ts.map +1 -1
- package/dist/cjs/hcs-12/validation/schemas.d.ts +8 -8
- package/dist/cjs/hcs-14/issuers/hiero.d.ts.map +1 -1
- package/dist/cjs/hcs-15/browser.d.ts +2 -0
- package/dist/cjs/hcs-15/browser.d.ts.map +1 -1
- package/dist/cjs/hcs-15/sdk.d.ts +7 -1
- package/dist/cjs/hcs-15/sdk.d.ts.map +1 -1
- package/dist/cjs/hcs-15/tx.d.ts +4 -0
- package/dist/cjs/hcs-15/tx.d.ts.map +1 -1
- package/dist/cjs/hcs-15/types.d.ts +16 -1
- package/dist/cjs/hcs-15/types.d.ts.map +1 -1
- package/dist/cjs/hcs-16/browser.d.ts +11 -2
- package/dist/cjs/hcs-16/browser.d.ts.map +1 -1
- package/dist/cjs/hcs-16/sdk.d.ts +62 -1
- package/dist/cjs/hcs-16/sdk.d.ts.map +1 -1
- package/dist/cjs/hcs-16/tx.d.ts +21 -3
- package/dist/cjs/hcs-16/tx.d.ts.map +1 -1
- package/dist/cjs/hcs-17/base-client.d.ts +1 -0
- package/dist/cjs/hcs-17/base-client.d.ts.map +1 -1
- package/dist/cjs/hcs-17/sdk.d.ts.map +1 -1
- package/dist/cjs/hcs-17/tx.d.ts +2 -0
- package/dist/cjs/hcs-17/tx.d.ts.map +1 -1
- package/dist/cjs/hcs-17/types.d.ts +4 -0
- package/dist/cjs/hcs-17/types.d.ts.map +1 -1
- package/dist/cjs/hcs-21/types.d.ts +75 -75
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/client/adapters.d.ts +20 -0
- package/dist/cjs/services/registry-broker/client/adapters.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/agents.d.ts +16 -0
- package/dist/cjs/services/registry-broker/client/agents.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/base-client.d.ts +70 -0
- package/dist/cjs/services/registry-broker/client/base-client.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/chat-history.d.ts +23 -0
- package/dist/cjs/services/registry-broker/client/chat-history.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/chat.d.ts +33 -0
- package/dist/cjs/services/registry-broker/client/chat.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/credits.d.ts +40 -0
- package/dist/cjs/services/registry-broker/client/credits.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/encrypted-chat-manager.d.ts +35 -0
- package/dist/cjs/services/registry-broker/client/encrypted-chat-manager.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/encryption.d.ts +33 -0
- package/dist/cjs/services/registry-broker/client/encryption.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/errors.d.ts +19 -0
- package/dist/cjs/services/registry-broker/client/errors.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/feedback.d.ts +2 -0
- package/dist/cjs/services/registry-broker/client/feedback.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/ledger-auth.d.ts +10 -0
- package/dist/cjs/services/registry-broker/client/ledger-auth.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/search.d.ts +19 -0
- package/dist/cjs/services/registry-broker/client/search.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/utils.d.ts +21 -0
- package/dist/cjs/services/registry-broker/client/utils.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client.d.ts +2 -205
- package/dist/cjs/services/registry-broker/client.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/private-key-signer.d.ts +1 -0
- package/dist/cjs/services/registry-broker/private-key-signer.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/schemas.d.ts +2509 -816
- package/dist/cjs/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/types.d.ts +64 -2
- package/dist/cjs/services/registry-broker/types.d.ts.map +1 -1
- package/dist/cjs/standards-sdk.cjs +3 -3
- package/dist/cjs/standards-sdk.cjs.map +1 -1
- package/dist/cjs/utils/crypto-abstraction.d.ts.map +1 -1
- package/dist/cjs/utils/crypto-env.d.ts.map +1 -1
- package/dist/cjs/utils/dynamic-import.d.ts +5 -1
- package/dist/cjs/utils/dynamic-import.d.ts.map +1 -1
- package/dist/cjs/utils/hash-adapter.d.ts.map +1 -1
- package/dist/es/hcs-10/base-client.d.ts.map +1 -1
- package/dist/es/hcs-10/sdk.d.ts +8 -0
- package/dist/es/hcs-10/sdk.d.ts.map +1 -1
- package/dist/es/hcs-11/client.d.ts +2 -2
- package/dist/es/hcs-11/client.d.ts.map +1 -1
- package/dist/es/hcs-11/person-builder.d.ts +1 -0
- package/dist/es/hcs-11/person-builder.d.ts.map +1 -1
- package/dist/es/hcs-11/types.d.ts +1 -0
- package/dist/es/hcs-11/types.d.ts.map +1 -1
- package/dist/es/hcs-12/rendering/resource-manager.d.ts.map +1 -1
- package/dist/es/hcs-12/validation/schemas.d.ts +8 -8
- package/dist/es/hcs-14/issuers/hiero.d.ts.map +1 -1
- package/dist/es/hcs-15/browser.d.ts +2 -0
- package/dist/es/hcs-15/browser.d.ts.map +1 -1
- package/dist/es/hcs-15/sdk.d.ts +7 -1
- package/dist/es/hcs-15/sdk.d.ts.map +1 -1
- package/dist/es/hcs-15/tx.d.ts +4 -0
- package/dist/es/hcs-15/tx.d.ts.map +1 -1
- package/dist/es/hcs-15/types.d.ts +16 -1
- package/dist/es/hcs-15/types.d.ts.map +1 -1
- package/dist/es/hcs-16/browser.d.ts +11 -2
- package/dist/es/hcs-16/browser.d.ts.map +1 -1
- package/dist/es/hcs-16/sdk.d.ts +62 -1
- package/dist/es/hcs-16/sdk.d.ts.map +1 -1
- package/dist/es/hcs-16/tx.d.ts +21 -3
- package/dist/es/hcs-16/tx.d.ts.map +1 -1
- package/dist/es/hcs-17/base-client.d.ts +1 -0
- package/dist/es/hcs-17/base-client.d.ts.map +1 -1
- package/dist/es/hcs-17/sdk.d.ts.map +1 -1
- package/dist/es/hcs-17/tx.d.ts +2 -0
- package/dist/es/hcs-17/tx.d.ts.map +1 -1
- package/dist/es/hcs-17/types.d.ts +4 -0
- package/dist/es/hcs-17/types.d.ts.map +1 -1
- package/dist/es/hcs-21/types.d.ts +75 -75
- package/dist/es/index.d.ts.map +1 -1
- package/dist/es/services/registry-broker/client/adapters.d.ts +20 -0
- package/dist/es/services/registry-broker/client/adapters.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/agents.d.ts +16 -0
- package/dist/es/services/registry-broker/client/agents.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/base-client.d.ts +70 -0
- package/dist/es/services/registry-broker/client/base-client.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/chat-history.d.ts +23 -0
- package/dist/es/services/registry-broker/client/chat-history.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/chat.d.ts +33 -0
- package/dist/es/services/registry-broker/client/chat.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/credits.d.ts +40 -0
- package/dist/es/services/registry-broker/client/credits.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/encrypted-chat-manager.d.ts +35 -0
- package/dist/es/services/registry-broker/client/encrypted-chat-manager.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/encryption.d.ts +33 -0
- package/dist/es/services/registry-broker/client/encryption.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/errors.d.ts +19 -0
- package/dist/es/services/registry-broker/client/errors.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/feedback.d.ts +2 -0
- package/dist/es/services/registry-broker/client/feedback.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/ledger-auth.d.ts +10 -0
- package/dist/es/services/registry-broker/client/ledger-auth.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/search.d.ts +19 -0
- package/dist/es/services/registry-broker/client/search.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/utils.d.ts +21 -0
- package/dist/es/services/registry-broker/client/utils.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client.d.ts +2 -205
- package/dist/es/services/registry-broker/client.d.ts.map +1 -1
- package/dist/es/services/registry-broker/private-key-signer.d.ts +1 -0
- package/dist/es/services/registry-broker/private-key-signer.d.ts.map +1 -1
- package/dist/es/services/registry-broker/schemas.d.ts +2509 -816
- package/dist/es/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/es/services/registry-broker/types.d.ts +64 -2
- package/dist/es/services/registry-broker/types.d.ts.map +1 -1
- package/dist/es/standards-sdk.es.js +148 -133
- package/dist/es/standards-sdk.es.js.map +1 -1
- package/dist/es/standards-sdk.es10.js +70 -90
- package/dist/es/standards-sdk.es10.js.map +1 -1
- package/dist/es/standards-sdk.es100.js +229 -26
- package/dist/es/standards-sdk.es100.js.map +1 -1
- package/dist/es/standards-sdk.es101.js +109 -228
- package/dist/es/standards-sdk.es101.js.map +1 -1
- package/dist/es/standards-sdk.es102.js +15 -94
- package/dist/es/standards-sdk.es102.js.map +1 -1
- package/dist/es/standards-sdk.es103.js +80 -30
- package/dist/es/standards-sdk.es103.js.map +1 -1
- package/dist/es/standards-sdk.es104.js +27 -80
- package/dist/es/standards-sdk.es104.js.map +1 -1
- package/dist/es/standards-sdk.es105.js +136 -25
- package/dist/es/standards-sdk.es105.js.map +1 -1
- package/dist/es/standards-sdk.es106.js +27 -140
- package/dist/es/standards-sdk.es106.js.map +1 -1
- package/dist/es/standards-sdk.es107.js +20 -27
- package/dist/es/standards-sdk.es107.js.map +1 -1
- package/dist/es/standards-sdk.es108.js +156 -18
- package/dist/es/standards-sdk.es108.js.map +1 -1
- package/dist/es/standards-sdk.es109.js +198 -148
- package/dist/es/standards-sdk.es109.js.map +1 -1
- package/dist/es/standards-sdk.es11.js +121 -45
- package/dist/es/standards-sdk.es11.js.map +1 -1
- package/dist/es/standards-sdk.es110.js +747 -160
- package/dist/es/standards-sdk.es110.js.map +1 -1
- package/dist/es/standards-sdk.es111.js +9 -786
- package/dist/es/standards-sdk.es111.js.map +1 -1
- package/dist/es/standards-sdk.es112.js +567 -13
- package/dist/es/standards-sdk.es112.js.map +1 -1
- package/dist/es/standards-sdk.es113.js +576 -541
- package/dist/es/standards-sdk.es113.js.map +1 -1
- package/dist/es/standards-sdk.es114.js +12 -601
- package/dist/es/standards-sdk.es114.js.map +1 -1
- package/dist/es/standards-sdk.es115.js +2 -13
- package/dist/es/standards-sdk.es115.js.map +1 -1
- package/dist/es/standards-sdk.es116.js +87 -2
- package/dist/es/standards-sdk.es116.js.map +1 -1
- package/dist/es/standards-sdk.es117.js +37 -80
- package/dist/es/standards-sdk.es117.js.map +1 -1
- package/dist/es/standards-sdk.es118.js +2 -39
- package/dist/es/standards-sdk.es118.js.map +1 -1
- package/dist/es/standards-sdk.es119.js +231 -2
- package/dist/es/standards-sdk.es119.js.map +1 -1
- package/dist/es/standards-sdk.es12.js +60 -159
- package/dist/es/standards-sdk.es12.js.map +1 -1
- package/dist/es/standards-sdk.es120.js +1110 -193
- package/dist/es/standards-sdk.es120.js.map +1 -1
- package/dist/es/standards-sdk.es121.js +225 -1059
- package/dist/es/standards-sdk.es121.js.map +1 -1
- package/dist/es/standards-sdk.es122.js +419 -303
- package/dist/es/standards-sdk.es122.js.map +1 -1
- package/dist/es/standards-sdk.es123.js +351 -418
- package/dist/es/standards-sdk.es123.js.map +1 -1
- package/dist/es/standards-sdk.es124.js +872 -347
- package/dist/es/standards-sdk.es124.js.map +1 -1
- package/dist/es/standards-sdk.es125.js +182 -854
- package/dist/es/standards-sdk.es125.js.map +1 -1
- package/dist/es/standards-sdk.es126.js +1512 -153
- package/dist/es/standards-sdk.es126.js.map +1 -1
- package/dist/es/standards-sdk.es127.js +157 -1547
- package/dist/es/standards-sdk.es127.js.map +1 -1
- package/dist/es/standards-sdk.es128.js +184 -2190
- package/dist/es/standards-sdk.es128.js.map +1 -1
- package/dist/es/standards-sdk.es129.js +100 -63
- package/dist/es/standards-sdk.es129.js.map +1 -1
- package/dist/es/standards-sdk.es13.js +200 -60
- package/dist/es/standards-sdk.es13.js.map +1 -1
- package/dist/es/standards-sdk.es130.js +112 -78
- package/dist/es/standards-sdk.es130.js.map +1 -1
- package/dist/es/standards-sdk.es131.js +232 -144
- package/dist/es/standards-sdk.es131.js.map +1 -1
- package/dist/es/standards-sdk.es132.js +181 -8
- package/dist/es/standards-sdk.es132.js.map +1 -1
- package/dist/es/standards-sdk.es133.js +118 -82
- package/dist/es/standards-sdk.es133.js.map +1 -1
- package/dist/es/standards-sdk.es134.js +322 -61
- package/dist/es/standards-sdk.es134.js.map +1 -1
- package/dist/es/standards-sdk.es135.js +464 -28
- package/dist/es/standards-sdk.es135.js.map +1 -1
- package/dist/es/standards-sdk.es136.js +14 -135
- package/dist/es/standards-sdk.es136.js.map +1 -1
- package/dist/es/standards-sdk.es137.js +78 -39
- package/dist/es/standards-sdk.es137.js.map +1 -1
- package/dist/es/standards-sdk.es138.js +85 -764
- package/dist/es/standards-sdk.es138.js.map +1 -1
- package/dist/es/standards-sdk.es139.js +135 -12250
- package/dist/es/standards-sdk.es139.js.map +1 -1
- package/dist/es/standards-sdk.es14.js +149 -178
- package/dist/es/standards-sdk.es14.js.map +1 -1
- package/dist/es/standards-sdk.es140.js +7 -56
- package/dist/es/standards-sdk.es140.js.map +1 -1
- package/dist/es/standards-sdk.es141.js +72 -68
- package/dist/es/standards-sdk.es141.js.map +1 -1
- package/dist/es/standards-sdk.es142.js +61 -13
- package/dist/es/standards-sdk.es142.js.map +1 -1
- package/dist/es/standards-sdk.es143.js +30 -172
- package/dist/es/standards-sdk.es143.js.map +1 -1
- package/dist/es/standards-sdk.es144.js +34 -322
- package/dist/es/standards-sdk.es144.js.map +1 -1
- package/dist/es/standards-sdk.es145.js +28 -346
- package/dist/es/standards-sdk.es145.js.map +1 -1
- package/dist/es/standards-sdk.es146.js +112 -427
- package/dist/es/standards-sdk.es146.js.map +1 -1
- package/dist/es/standards-sdk.es147.js +40 -329
- package/dist/es/standards-sdk.es147.js.map +1 -1
- package/dist/es/standards-sdk.es148.js +958 -76
- package/dist/es/standards-sdk.es148.js.map +1 -1
- package/dist/es/standards-sdk.es149.js +12292 -0
- package/dist/es/standards-sdk.es149.js.map +1 -0
- package/dist/es/standards-sdk.es15.js +152 -151
- package/dist/es/standards-sdk.es15.js.map +1 -1
- package/dist/es/standards-sdk.es150.js +59 -0
- package/dist/es/standards-sdk.es150.js.map +1 -0
- package/dist/es/standards-sdk.es151.js +87 -0
- package/dist/es/standards-sdk.es151.js.map +1 -0
- package/dist/es/standards-sdk.es152.js +20 -0
- package/dist/es/standards-sdk.es152.js.map +1 -0
- package/dist/es/standards-sdk.es153.js +175 -0
- package/dist/es/standards-sdk.es153.js.map +1 -0
- package/dist/es/standards-sdk.es154.js +325 -0
- package/dist/es/standards-sdk.es154.js.map +1 -0
- package/dist/es/standards-sdk.es155.js +349 -0
- package/dist/es/standards-sdk.es155.js.map +1 -0
- package/dist/es/standards-sdk.es156.js +456 -0
- package/dist/es/standards-sdk.es156.js.map +1 -0
- package/dist/es/standards-sdk.es157.js +334 -0
- package/dist/es/standards-sdk.es157.js.map +1 -0
- package/dist/es/standards-sdk.es158.js +79 -0
- package/dist/es/standards-sdk.es158.js.map +1 -0
- package/dist/es/standards-sdk.es159.js +242 -0
- package/dist/es/standards-sdk.es159.js.map +1 -0
- package/dist/es/standards-sdk.es16.js +917 -136
- package/dist/es/standards-sdk.es16.js.map +1 -1
- package/dist/es/standards-sdk.es160.js +247 -0
- package/dist/es/standards-sdk.es160.js.map +1 -0
- package/dist/es/standards-sdk.es17.js +23 -938
- package/dist/es/standards-sdk.es17.js.map +1 -1
- package/dist/es/standards-sdk.es18.js +2422 -24
- package/dist/es/standards-sdk.es18.js.map +1 -1
- package/dist/es/standards-sdk.es19.js +826 -2075
- package/dist/es/standards-sdk.es19.js.map +1 -1
- package/dist/es/standards-sdk.es2.js +654 -189
- package/dist/es/standards-sdk.es2.js.map +1 -1
- package/dist/es/standards-sdk.es20.js +205 -1086
- package/dist/es/standards-sdk.es20.js.map +1 -1
- package/dist/es/standards-sdk.es21.js +858 -221
- package/dist/es/standards-sdk.es21.js.map +1 -1
- package/dist/es/standards-sdk.es22.js +179 -903
- package/dist/es/standards-sdk.es22.js.map +1 -1
- package/dist/es/standards-sdk.es23.js +164 -179
- package/dist/es/standards-sdk.es23.js.map +1 -1
- package/dist/es/standards-sdk.es24.js +62 -118
- package/dist/es/standards-sdk.es24.js.map +1 -1
- package/dist/es/standards-sdk.es25.js +377 -52
- package/dist/es/standards-sdk.es25.js.map +1 -1
- package/dist/es/standards-sdk.es26.js +36 -394
- package/dist/es/standards-sdk.es26.js.map +1 -1
- package/dist/es/standards-sdk.es27.js +901 -50
- package/dist/es/standards-sdk.es27.js.map +1 -1
- package/dist/es/standards-sdk.es28.js +134 -897
- package/dist/es/standards-sdk.es28.js.map +1 -1
- package/dist/es/standards-sdk.es29.js +7 -134
- package/dist/es/standards-sdk.es29.js.map +1 -1
- package/dist/es/standards-sdk.es3.js +63 -680
- package/dist/es/standards-sdk.es3.js.map +1 -1
- package/dist/es/standards-sdk.es30.js +344 -7
- package/dist/es/standards-sdk.es30.js.map +1 -1
- package/dist/es/standards-sdk.es31.js +302 -287
- package/dist/es/standards-sdk.es31.js.map +1 -1
- package/dist/es/standards-sdk.es32.js +94 -322
- package/dist/es/standards-sdk.es32.js.map +1 -1
- package/dist/es/standards-sdk.es33.js +458 -101
- package/dist/es/standards-sdk.es33.js.map +1 -1
- package/dist/es/standards-sdk.es34.js +132 -451
- package/dist/es/standards-sdk.es34.js.map +1 -1
- package/dist/es/standards-sdk.es35.js +216 -130
- package/dist/es/standards-sdk.es35.js.map +1 -1
- package/dist/es/standards-sdk.es36.js +274 -191
- package/dist/es/standards-sdk.es36.js.map +1 -1
- package/dist/es/standards-sdk.es37.js +148 -87
- package/dist/es/standards-sdk.es37.js.map +1 -1
- package/dist/es/standards-sdk.es38.js +183 -320
- package/dist/es/standards-sdk.es38.js.map +1 -1
- package/dist/es/standards-sdk.es39.js +238 -161
- package/dist/es/standards-sdk.es39.js.map +1 -1
- package/dist/es/standards-sdk.es4.js +425 -63
- package/dist/es/standards-sdk.es4.js.map +1 -1
- package/dist/es/standards-sdk.es40.js +136 -254
- package/dist/es/standards-sdk.es40.js.map +1 -1
- package/dist/es/standards-sdk.es41.js +225 -176
- package/dist/es/standards-sdk.es41.js.map +1 -1
- package/dist/es/standards-sdk.es42.js +199 -261
- package/dist/es/standards-sdk.es42.js.map +1 -1
- package/dist/es/standards-sdk.es43.js +237 -199
- package/dist/es/standards-sdk.es43.js.map +1 -1
- package/dist/es/standards-sdk.es44.js +209 -201
- package/dist/es/standards-sdk.es44.js.map +1 -1
- package/dist/es/standards-sdk.es45.js +305 -201
- package/dist/es/standards-sdk.es45.js.map +1 -1
- package/dist/es/standards-sdk.es46.js +371 -261
- package/dist/es/standards-sdk.es46.js.map +1 -1
- package/dist/es/standards-sdk.es47.js +316 -371
- package/dist/es/standards-sdk.es47.js.map +1 -1
- package/dist/es/standards-sdk.es48.js +404 -336
- package/dist/es/standards-sdk.es48.js.map +1 -1
- package/dist/es/standards-sdk.es49.js +83 -449
- package/dist/es/standards-sdk.es49.js.map +1 -1
- package/dist/es/standards-sdk.es5.js +232 -354
- package/dist/es/standards-sdk.es5.js.map +1 -1
- package/dist/es/standards-sdk.es50.js +179 -89
- package/dist/es/standards-sdk.es50.js.map +1 -1
- package/dist/es/standards-sdk.es51.js +231 -165
- package/dist/es/standards-sdk.es51.js.map +1 -1
- package/dist/es/standards-sdk.es52.js +25 -262
- package/dist/es/standards-sdk.es52.js.map +1 -1
- package/dist/es/standards-sdk.es53.js +56 -26
- package/dist/es/standards-sdk.es53.js.map +1 -1
- package/dist/es/standards-sdk.es54.js +12 -57
- package/dist/es/standards-sdk.es54.js.map +1 -1
- package/dist/es/standards-sdk.es55.js +49 -12
- package/dist/es/standards-sdk.es55.js.map +1 -1
- package/dist/es/standards-sdk.es56.js +115 -43
- package/dist/es/standards-sdk.es56.js.map +1 -1
- package/dist/es/standards-sdk.es57.js +42 -115
- package/dist/es/standards-sdk.es57.js.map +1 -1
- package/dist/es/standards-sdk.es58.js +52 -43
- package/dist/es/standards-sdk.es58.js.map +1 -1
- package/dist/es/standards-sdk.es59.js +36 -50
- package/dist/es/standards-sdk.es59.js.map +1 -1
- package/dist/es/standards-sdk.es6.js +125 -246
- package/dist/es/standards-sdk.es6.js.map +1 -1
- package/dist/es/standards-sdk.es60.js +207 -39
- package/dist/es/standards-sdk.es60.js.map +1 -1
- package/dist/es/standards-sdk.es61.js +24 -195
- package/dist/es/standards-sdk.es61.js.map +1 -1
- package/dist/es/standards-sdk.es62.js +87 -25
- package/dist/es/standards-sdk.es62.js.map +1 -1
- package/dist/es/standards-sdk.es63.js +3 -51
- package/dist/es/standards-sdk.es63.js.map +1 -1
- package/dist/es/standards-sdk.es64.js +100 -3
- package/dist/es/standards-sdk.es64.js.map +1 -1
- package/dist/es/standards-sdk.es65.js +61 -62
- package/dist/es/standards-sdk.es65.js.map +1 -1
- package/dist/es/standards-sdk.es66.js +17 -98
- package/dist/es/standards-sdk.es66.js.map +1 -1
- package/dist/es/standards-sdk.es67.js +77 -19
- package/dist/es/standards-sdk.es67.js.map +1 -1
- package/dist/es/standards-sdk.es68.js +458 -77
- package/dist/es/standards-sdk.es68.js.map +1 -1
- package/dist/es/standards-sdk.es69.js +106 -240
- package/dist/es/standards-sdk.es69.js.map +1 -1
- package/dist/es/standards-sdk.es7.js +28 -183
- package/dist/es/standards-sdk.es7.js.map +1 -1
- package/dist/es/standards-sdk.es70.js +170 -286
- package/dist/es/standards-sdk.es70.js.map +1 -1
- package/dist/es/standards-sdk.es71.js +71 -207
- package/dist/es/standards-sdk.es71.js.map +1 -1
- package/dist/es/standards-sdk.es72.js +71 -72
- package/dist/es/standards-sdk.es72.js.map +1 -1
- package/dist/es/standards-sdk.es73.js +143 -71
- package/dist/es/standards-sdk.es73.js.map +1 -1
- package/dist/es/standards-sdk.es74.js +62 -136
- package/dist/es/standards-sdk.es74.js.map +1 -1
- package/dist/es/standards-sdk.es75.js +380 -45
- package/dist/es/standards-sdk.es75.js.map +1 -1
- package/dist/es/standards-sdk.es76.js +222 -130
- package/dist/es/standards-sdk.es76.js.map +1 -1
- package/dist/es/standards-sdk.es77.js +320 -444
- package/dist/es/standards-sdk.es77.js.map +1 -1
- package/dist/es/standards-sdk.es78.js +88 -364
- package/dist/es/standards-sdk.es78.js.map +1 -1
- package/dist/es/standards-sdk.es79.js +125 -89
- package/dist/es/standards-sdk.es79.js.map +1 -1
- package/dist/es/standards-sdk.es8.js +80 -29
- package/dist/es/standards-sdk.es8.js.map +1 -1
- package/dist/es/standards-sdk.es80.js +8 -125
- package/dist/es/standards-sdk.es80.js.map +1 -1
- package/dist/es/standards-sdk.es81.js +45 -6
- package/dist/es/standards-sdk.es81.js.map +1 -1
- package/dist/es/standards-sdk.es82.js +98 -44
- package/dist/es/standards-sdk.es82.js.map +1 -1
- package/dist/es/standards-sdk.es83.js +331 -84
- package/dist/es/standards-sdk.es83.js.map +1 -1
- package/dist/es/standards-sdk.es84.js +93 -160
- package/dist/es/standards-sdk.es84.js.map +1 -1
- package/dist/es/standards-sdk.es85.js +55 -275
- package/dist/es/standards-sdk.es85.js.map +1 -1
- package/dist/es/standards-sdk.es86.js +43 -55
- package/dist/es/standards-sdk.es86.js.map +1 -1
- package/dist/es/standards-sdk.es87.js +145 -22
- package/dist/es/standards-sdk.es87.js.map +1 -1
- package/dist/es/standards-sdk.es88.js +34 -47
- package/dist/es/standards-sdk.es88.js.map +1 -1
- package/dist/es/standards-sdk.es89.js +22 -57
- package/dist/es/standards-sdk.es89.js.map +1 -1
- package/dist/es/standards-sdk.es9.js +104 -80
- package/dist/es/standards-sdk.es9.js.map +1 -1
- package/dist/es/standards-sdk.es90.js +23 -28
- package/dist/es/standards-sdk.es90.js.map +1 -1
- package/dist/es/standards-sdk.es91.js +238 -23
- package/dist/es/standards-sdk.es91.js.map +1 -1
- package/dist/es/standards-sdk.es92.js +265 -152
- package/dist/es/standards-sdk.es92.js.map +1 -1
- package/dist/es/standards-sdk.es93.js +95 -68
- package/dist/es/standards-sdk.es93.js.map +1 -1
- package/dist/es/standards-sdk.es94.js +124 -136
- package/dist/es/standards-sdk.es94.js.map +1 -1
- package/dist/es/standards-sdk.es95.js +42 -138
- package/dist/es/standards-sdk.es95.js.map +1 -1
- package/dist/es/standards-sdk.es96.js +259 -42
- package/dist/es/standards-sdk.es96.js.map +1 -1
- package/dist/es/standards-sdk.es97.js +82 -243
- package/dist/es/standards-sdk.es97.js.map +1 -1
- package/dist/es/standards-sdk.es98.js +48 -47
- package/dist/es/standards-sdk.es98.js.map +1 -1
- package/dist/es/standards-sdk.es99.js +29 -100
- package/dist/es/standards-sdk.es99.js.map +1 -1
- package/dist/es/utils/crypto-abstraction.d.ts.map +1 -1
- package/dist/es/utils/crypto-env.d.ts.map +1 -1
- package/dist/es/utils/dynamic-import.d.ts +5 -1
- package/dist/es/utils/dynamic-import.d.ts.map +1 -1
- package/dist/es/utils/hash-adapter.d.ts.map +1 -1
- package/package.json +16 -16
- package/dist/cjs/patches/topic-autorenew-patch.d.ts +0 -2
- package/dist/cjs/patches/topic-autorenew-patch.d.ts.map +0 -1
- package/dist/es/patches/topic-autorenew-patch.d.ts +0 -2
- package/dist/es/patches/topic-autorenew-patch.d.ts.map +0 -1
|
@@ -1,358 +1,883 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
tokenGrantKyc: {
|
|
19
|
-
type: "TOKENGRANTKYC",
|
|
20
|
-
humanReadableType: "Token Grant KYC"
|
|
21
|
-
},
|
|
22
|
-
tokenRevokeKyc: {
|
|
23
|
-
type: "TOKENREVOKEKYC",
|
|
24
|
-
humanReadableType: "Token Revoke KYC"
|
|
25
|
-
},
|
|
26
|
-
tokenPause: { type: "TOKENPAUSE", humanReadableType: "Token Pause" },
|
|
27
|
-
tokenUnpause: { type: "TOKENUNPAUSE", humanReadableType: "Token Unpause" },
|
|
28
|
-
tokenWipe: { type: "TOKENWIPE", humanReadableType: "Token Wipe" },
|
|
29
|
-
tokenFeeScheduleUpdate: {
|
|
30
|
-
type: "TOKENFEESCHEDULEUPDATE",
|
|
31
|
-
humanReadableType: "Token Fee Schedule Update"
|
|
32
|
-
},
|
|
33
|
-
tokenCancelAirdrop: {
|
|
34
|
-
type: "TOKENCANCELAIRDROP",
|
|
35
|
-
humanReadableType: "Cancel Token Airdrop"
|
|
36
|
-
},
|
|
37
|
-
tokenClaimAirdrop: {
|
|
38
|
-
type: "TOKENCLAIMAIRDROP",
|
|
39
|
-
humanReadableType: "Claim Token Airdrop"
|
|
40
|
-
},
|
|
41
|
-
tokenReject: { type: "TOKENREJECT", humanReadableType: "Token Reject" },
|
|
42
|
-
tokenUpdateNfts: {
|
|
43
|
-
type: "TOKENUPDATENFTS",
|
|
44
|
-
humanReadableType: "Update NFT Metadata"
|
|
45
|
-
},
|
|
46
|
-
cryptoTransfer: {
|
|
47
|
-
type: "CRYPTOTRANSFER",
|
|
48
|
-
humanReadableType: "Crypto Transfer"
|
|
49
|
-
},
|
|
50
|
-
cryptoCreateAccount: {
|
|
51
|
-
type: "ACCOUNTCREATE",
|
|
52
|
-
humanReadableType: "Account Creation"
|
|
53
|
-
},
|
|
54
|
-
cryptoUpdateAccount: {
|
|
55
|
-
type: "ACCOUNTUPDATE",
|
|
56
|
-
humanReadableType: "Account Update"
|
|
57
|
-
},
|
|
58
|
-
cryptoDelete: {
|
|
59
|
-
type: "ACCOUNTDELETE",
|
|
60
|
-
humanReadableType: "Account Deletion"
|
|
61
|
-
},
|
|
62
|
-
cryptoApproveAllowance: {
|
|
63
|
-
type: "APPROVEALLOWANCE",
|
|
64
|
-
humanReadableType: "Approve Allowance"
|
|
65
|
-
},
|
|
66
|
-
cryptoDeleteAllowance: {
|
|
67
|
-
type: "DELETEALLOWANCE",
|
|
68
|
-
humanReadableType: "Delete Allowance"
|
|
69
|
-
},
|
|
70
|
-
cryptoAddLiveHash: {
|
|
71
|
-
type: "CRYPTOADDLIVEHASH",
|
|
72
|
-
humanReadableType: "Add Live Hash"
|
|
73
|
-
},
|
|
74
|
-
cryptoDeleteLiveHash: {
|
|
75
|
-
type: "CRYPTODELETELIVEHASH",
|
|
76
|
-
humanReadableType: "Delete Live Hash"
|
|
77
|
-
},
|
|
78
|
-
consensusCreateTopic: {
|
|
79
|
-
type: "TOPICCREATE",
|
|
80
|
-
humanReadableType: "Topic Creation"
|
|
81
|
-
},
|
|
82
|
-
consensusSubmitMessage: {
|
|
83
|
-
type: "CONSENSUSSUBMITMESSAGE",
|
|
84
|
-
humanReadableType: "Submit Message"
|
|
85
|
-
},
|
|
86
|
-
consensusUpdateTopic: {
|
|
87
|
-
type: "TOPICUPDATE",
|
|
88
|
-
humanReadableType: "Topic Update"
|
|
89
|
-
},
|
|
90
|
-
consensusDeleteTopic: {
|
|
91
|
-
type: "TOPICDELETE",
|
|
92
|
-
humanReadableType: "Topic Deletion"
|
|
93
|
-
},
|
|
94
|
-
uncheckedSubmit: {
|
|
95
|
-
type: "UNCHECKEDSUBMIT",
|
|
96
|
-
humanReadableType: "Unchecked Submit"
|
|
97
|
-
},
|
|
98
|
-
contractCall: { type: "CONTRACTCALL", humanReadableType: "Contract Call" },
|
|
99
|
-
contractCreateInstance: {
|
|
100
|
-
type: "CONTRACTCREATE",
|
|
101
|
-
humanReadableType: "Contract Creation"
|
|
102
|
-
},
|
|
103
|
-
contractUpdateInstance: {
|
|
104
|
-
type: "CONTRACTUPDATE",
|
|
105
|
-
humanReadableType: "Contract Update"
|
|
106
|
-
},
|
|
107
|
-
contractDeleteInstance: {
|
|
108
|
-
type: "CONTRACTDELETE",
|
|
109
|
-
humanReadableType: "Contract Deletion"
|
|
110
|
-
},
|
|
111
|
-
ethereumTransaction: {
|
|
112
|
-
type: "ETHEREUMTRANSACTION",
|
|
113
|
-
humanReadableType: "Ethereum Transaction"
|
|
114
|
-
},
|
|
115
|
-
fileCreate: { type: "FILECREATE", humanReadableType: "File Creation" },
|
|
116
|
-
fileUpdate: { type: "FILEUPDATE", humanReadableType: "File Update" },
|
|
117
|
-
fileDelete: { type: "FILEDELETE", humanReadableType: "File Deletion" },
|
|
118
|
-
fileAppend: { type: "FILEAPPEND", humanReadableType: "File Append" },
|
|
119
|
-
scheduleCreate: {
|
|
120
|
-
type: "SCHEDULECREATE",
|
|
121
|
-
humanReadableType: "Schedule Creation"
|
|
122
|
-
},
|
|
123
|
-
scheduleSign: { type: "SCHEDULESIGN", humanReadableType: "Schedule Sign" },
|
|
124
|
-
scheduleDelete: {
|
|
125
|
-
type: "SCHEDULEDELETE",
|
|
126
|
-
humanReadableType: "Schedule Deletion"
|
|
127
|
-
},
|
|
128
|
-
freeze: { type: "FREEZE", humanReadableType: "Network Freeze" },
|
|
129
|
-
systemDelete: { type: "SYSTEMDELETE", humanReadableType: "System Delete" },
|
|
130
|
-
systemUndelete: {
|
|
131
|
-
type: "SYSTEMUNDELETE",
|
|
132
|
-
humanReadableType: "System Undelete"
|
|
133
|
-
},
|
|
134
|
-
nodeCreate: { type: "NODECREATE", humanReadableType: "Node Creation" },
|
|
135
|
-
nodeUpdate: { type: "NODEUPDATE", humanReadableType: "Node Update" },
|
|
136
|
-
nodeDelete: { type: "NODEDELETE", humanReadableType: "Node Deletion" },
|
|
137
|
-
nodeStakeUpdate: {
|
|
138
|
-
type: "NODESTAKEUPDATE",
|
|
139
|
-
humanReadableType: "Node Stake Update"
|
|
140
|
-
},
|
|
141
|
-
utilPrng: { type: "PRNG", humanReadableType: "Pseudo Random Number" },
|
|
142
|
-
atomicBatch: { type: "ATOMICBATCH", humanReadableType: "Atomic Batch" },
|
|
143
|
-
stateSignatureTransaction: {
|
|
144
|
-
type: "STATESIGNATURETRANSACTION",
|
|
145
|
-
humanReadableType: "State Signature"
|
|
146
|
-
},
|
|
147
|
-
historyProofSignature: {
|
|
148
|
-
type: "HISTORYPROOFSIGNATURE",
|
|
149
|
-
humanReadableType: "History Proof Signature"
|
|
150
|
-
},
|
|
151
|
-
historyProofKeyPublication: {
|
|
152
|
-
type: "HISTORYPROOFKEYPUBLICATION",
|
|
153
|
-
humanReadableType: "History Proof Key Publication"
|
|
154
|
-
},
|
|
155
|
-
historyProofVote: {
|
|
156
|
-
type: "HISTORYPROOFVOTE",
|
|
157
|
-
humanReadableType: "History Proof Vote"
|
|
158
|
-
},
|
|
159
|
-
hintsPreprocessingVote: {
|
|
160
|
-
type: "HINTSPREPROCESSINGVOTE",
|
|
161
|
-
humanReadableType: "Hints Preprocessing Vote"
|
|
162
|
-
},
|
|
163
|
-
hintsKeyPublication: {
|
|
164
|
-
type: "HINTSKEYPUBLICATION",
|
|
165
|
-
humanReadableType: "Hints Key Publication"
|
|
166
|
-
},
|
|
167
|
-
hintsPartialSignature: {
|
|
168
|
-
type: "HINTSPARTIALSIGNATURE",
|
|
169
|
-
humanReadableType: "Hints Partial Signature"
|
|
170
|
-
},
|
|
171
|
-
crsPublication: {
|
|
172
|
-
type: "CRSPUBLICATION",
|
|
173
|
-
humanReadableType: "CRS Publication"
|
|
174
|
-
},
|
|
175
|
-
transactionID: { type: "UNKNOWN", humanReadableType: "Unknown Transaction" },
|
|
176
|
-
nodeAccountID: { type: "UNKNOWN", humanReadableType: "Unknown Transaction" },
|
|
177
|
-
transactionFee: { type: "UNKNOWN", humanReadableType: "Unknown Transaction" },
|
|
178
|
-
transactionValidDuration: {
|
|
179
|
-
type: "UNKNOWN",
|
|
180
|
-
humanReadableType: "Unknown Transaction"
|
|
181
|
-
},
|
|
182
|
-
generateRecord: { type: "UNKNOWN", humanReadableType: "Unknown Transaction" },
|
|
183
|
-
memo: { type: "UNKNOWN", humanReadableType: "Unknown Transaction" },
|
|
184
|
-
batchKey: { type: "UNKNOWN", humanReadableType: "Unknown Transaction" },
|
|
185
|
-
maxCustomFees: { type: "UNKNOWN", humanReadableType: "Unknown Transaction" }
|
|
186
|
-
};
|
|
187
|
-
const humanReadableTypeRegistry = {
|
|
188
|
-
cryptoTransfer: "HBAR Transfer",
|
|
189
|
-
CRYPTOTRANSFER: "HBAR Transfer",
|
|
190
|
-
cryptoCreateAccount: "Create Account",
|
|
191
|
-
ACCOUNTCREATE: "Create Account",
|
|
192
|
-
cryptoUpdateAccount: "Update Account",
|
|
193
|
-
ACCOUNTUPDATE: "Update Account",
|
|
194
|
-
cryptoDeleteAccount: "Delete Account",
|
|
195
|
-
cryptoDelete: "Delete Account",
|
|
196
|
-
ACCOUNTDELETE: "Delete Account",
|
|
197
|
-
cryptoApproveAllowance: "Approve Allowance",
|
|
198
|
-
APPROVEALLOWANCE: "Approve Allowance",
|
|
199
|
-
cryptoDeleteAllowance: "Delete Allowance",
|
|
200
|
-
DELETEALLOWANCE: "Delete Allowance",
|
|
201
|
-
CRYPTOADDLIVEHASH: "Add Live Hash",
|
|
202
|
-
CRYPTODELETELIVEHASH: "Delete Live Hash",
|
|
203
|
-
consensusCreateTopic: "Create Topic",
|
|
204
|
-
TOPICCREATE: "Create Topic",
|
|
205
|
-
consensusUpdateTopic: "Update Topic",
|
|
206
|
-
TOPICUPDATE: "Update Topic",
|
|
207
|
-
consensusSubmitMessage: "Submit Message",
|
|
208
|
-
CONSENSUSSUBMITMESSAGE: "Submit Message",
|
|
209
|
-
consensusDeleteTopic: "Delete Topic",
|
|
210
|
-
TOPICDELETE: "Delete Topic",
|
|
211
|
-
UNCHECKEDSUBMIT: "Unchecked Submit",
|
|
212
|
-
fileCreate: "Create File",
|
|
213
|
-
FILECREATE: "Create File",
|
|
214
|
-
fileAppend: "Append File",
|
|
215
|
-
FILEAPPEND: "Append File",
|
|
216
|
-
fileUpdate: "Update File",
|
|
217
|
-
FILEUPDATE: "Update File",
|
|
218
|
-
fileDelete: "Delete File",
|
|
219
|
-
FILEDELETE: "Delete File",
|
|
220
|
-
contractCall: "Contract Call",
|
|
221
|
-
CONTRACTCALL: "Contract Call",
|
|
222
|
-
contractCreate: "Create Contract",
|
|
223
|
-
CONTRACTCREATE: "Create Contract",
|
|
224
|
-
contractUpdate: "Update Contract",
|
|
225
|
-
CONTRACTUPDATE: "Update Contract",
|
|
226
|
-
contractDelete: "Delete Contract",
|
|
227
|
-
CONTRACTDELETE: "Delete Contract",
|
|
228
|
-
ethereumTransaction: "Ethereum Transaction",
|
|
229
|
-
ETHEREUMTRANSACTION: "Ethereum Transaction",
|
|
230
|
-
tokenCreate: "Create Token",
|
|
231
|
-
TOKENCREATE: "Create Token",
|
|
232
|
-
tokenUpdate: "Update Token",
|
|
233
|
-
TOKENUPDATE: "Update Token",
|
|
234
|
-
tokenDelete: "Delete Token",
|
|
235
|
-
TOKENDELETE: "Delete Token",
|
|
236
|
-
tokenAssociate: "Associate Token",
|
|
237
|
-
TOKENASSOCIATE: "Associate Token",
|
|
238
|
-
tokenDissociate: "Dissociate Token",
|
|
239
|
-
TOKENDISSOCIATE: "Dissociate Token",
|
|
240
|
-
tokenMint: "Mint Token",
|
|
241
|
-
TOKENMINT: "Mint Token",
|
|
242
|
-
tokenBurn: "Burn Token",
|
|
243
|
-
TOKENBURN: "Burn Token",
|
|
244
|
-
tokenFeeScheduleUpdate: "Update Token Fee Schedule",
|
|
245
|
-
TOKENFEESCHEDULEUPDATE: "Update Token Fee Schedule",
|
|
246
|
-
tokenFreeze: "Freeze Token",
|
|
247
|
-
TOKENFREEZE: "Freeze Token",
|
|
248
|
-
tokenUnfreeze: "Unfreeze Token",
|
|
249
|
-
TOKENUNFREEZE: "Unfreeze Token",
|
|
250
|
-
tokenGrantKyc: "Grant KYC",
|
|
251
|
-
TOKENGRANTKYC: "Grant KYC",
|
|
252
|
-
tokenRevokeKyc: "Revoke KYC",
|
|
253
|
-
TOKENREVOKEKYC: "Revoke KYC",
|
|
254
|
-
tokenPause: "Pause Token",
|
|
255
|
-
TOKENPAUSE: "Pause Token",
|
|
256
|
-
tokenUnpause: "Unpause Token",
|
|
257
|
-
TOKENUNPAUSE: "Unpause Token",
|
|
258
|
-
tokenWipe: "Wipe Token",
|
|
259
|
-
TOKENWIPE: "Wipe Token",
|
|
260
|
-
tokenAirdrop: "Token Airdrop",
|
|
261
|
-
TOKENAIRDROP: "Token Airdrop",
|
|
262
|
-
TOKENCANCELAIRDROP: "Cancel Token Airdrop",
|
|
263
|
-
TOKENCLAIMAIRDROP: "Claim Token Airdrop",
|
|
264
|
-
TOKENREJECT: "Token Reject",
|
|
265
|
-
TOKENUPDATENFTS: "Update NFT Metadata",
|
|
266
|
-
scheduleCreate: "Create Schedule",
|
|
267
|
-
SCHEDULECREATE: "Create Schedule",
|
|
268
|
-
scheduleSign: "Sign Schedule",
|
|
269
|
-
SCHEDULESIGN: "Sign Schedule",
|
|
270
|
-
SCHEDULEDELETE: "Delete Schedule",
|
|
271
|
-
FREEZE: "Network Freeze",
|
|
272
|
-
SYSTEMDELETE: "System Delete",
|
|
273
|
-
SYSTEMUNDELETE: "System Undelete",
|
|
274
|
-
NODECREATE: "Create Node",
|
|
275
|
-
NODEUPDATE: "Update Node",
|
|
276
|
-
NODEDELETE: "Delete Node",
|
|
277
|
-
NODESTAKEUPDATE: "Update Node Stake",
|
|
278
|
-
utilPrng: "Generate Random Number",
|
|
279
|
-
PRNG: "Generate Random Number",
|
|
280
|
-
ATOMICBATCH: "Atomic Batch",
|
|
281
|
-
STATESIGNATURETRANSACTION: "State Signature",
|
|
282
|
-
HISTORYPROOFSIGNATURE: "History Proof Signature",
|
|
283
|
-
HISTORYPROOFKEYPUBLICATION: "History Proof Key Publication",
|
|
284
|
-
HISTORYPROOFVOTE: "History Proof Vote",
|
|
285
|
-
HINTSPREPROCESSINGVOTE: "Hints Preprocessing Vote",
|
|
286
|
-
HINTSKEYPUBLICATION: "Hints Key Publication",
|
|
287
|
-
HINTSPARTIALSIGNATURE: "Hints Partial Signature",
|
|
288
|
-
CRSPUBLICATION: "CRS Publication",
|
|
289
|
-
unknown: "Unknown Transaction",
|
|
290
|
-
UNKNOWN: "Unknown Transaction"
|
|
291
|
-
};
|
|
292
|
-
const schedulableTransactionTypeRegistry = {
|
|
293
|
-
tokenCreation: "tokenCreate",
|
|
294
|
-
tokenAirdrop: "tokenAirdrop",
|
|
295
|
-
cryptoTransfer: "cryptoTransfer",
|
|
296
|
-
consensusSubmitMessage: "consensusSubmitMessage",
|
|
297
|
-
contractCall: "contractCall",
|
|
298
|
-
cryptoCreateAccount: "cryptoCreateAccount",
|
|
299
|
-
cryptoUpdateAccount: "cryptoUpdateAccount",
|
|
300
|
-
cryptoApproveAllowance: "cryptoApproveAllowance",
|
|
301
|
-
cryptoDeleteAllowance: "cryptoDeleteAllowance",
|
|
302
|
-
cryptoDelete: "cryptoDelete",
|
|
303
|
-
consensusCreateTopic: "consensusCreateTopic",
|
|
304
|
-
consensusUpdateTopic: "consensusUpdateTopic",
|
|
305
|
-
consensusDeleteTopic: "consensusDeleteTopic",
|
|
306
|
-
fileCreate: "fileCreate",
|
|
307
|
-
fileAppend: "fileAppend",
|
|
308
|
-
fileUpdate: "fileUpdate",
|
|
309
|
-
fileDelete: "fileDelete",
|
|
310
|
-
contractCreateInstance: "contractCreate",
|
|
311
|
-
contractUpdateInstance: "contractUpdate",
|
|
312
|
-
contractDeleteInstance: "contractDelete",
|
|
313
|
-
tokenUpdate: "tokenUpdate",
|
|
314
|
-
tokenDeletion: "tokenDelete",
|
|
315
|
-
tokenAssociate: "tokenAssociate",
|
|
316
|
-
tokenDissociate: "tokenDissociate",
|
|
317
|
-
tokenMint: "tokenMint",
|
|
318
|
-
tokenBurn: "tokenBurn",
|
|
319
|
-
tokenFeeScheduleUpdate: "tokenFeeScheduleUpdate",
|
|
320
|
-
tokenFreeze: "tokenFreeze",
|
|
321
|
-
tokenUnfreeze: "tokenUnfreeze",
|
|
322
|
-
tokenGrantKyc: "tokenGrantKyc",
|
|
323
|
-
tokenRevokeKyc: "tokenRevokeKyc",
|
|
324
|
-
tokenPause: "tokenPause",
|
|
325
|
-
tokenUnpause: "tokenUnpause",
|
|
326
|
-
tokenWipe: "tokenWipe",
|
|
327
|
-
utilPrng: "utilPrng"
|
|
1
|
+
import { InscriptionSDK } from "./standards-sdk.es149.js";
|
|
2
|
+
import { Logger } from "./standards-sdk.es105.js";
|
|
3
|
+
import { ProgressReporter } from "./standards-sdk.es108.js";
|
|
4
|
+
import { TransactionParser } from "./standards-sdk.es110.js";
|
|
5
|
+
import { isBrowser } from "./standards-sdk.es118.js";
|
|
6
|
+
import { fileTypeFromBuffer } from "file-type";
|
|
7
|
+
import { validateQuoteParameters, getCachedQuote, getOrCreateSDK, cacheQuote } from "./standards-sdk.es125.js";
|
|
8
|
+
import { HederaMirrorNode } from "./standards-sdk.es126.js";
|
|
9
|
+
import BigNumber from "bignumber.js";
|
|
10
|
+
import { sleep } from "./standards-sdk.es115.js";
|
|
11
|
+
let nodeModules = {};
|
|
12
|
+
const normalizeTransactionId = (txId) => {
|
|
13
|
+
if (!txId.includes("@")) {
|
|
14
|
+
return txId;
|
|
15
|
+
}
|
|
16
|
+
const txParts = txId?.split("@");
|
|
17
|
+
return `${txParts[0]}-${txParts[1].replace(".", "-")}`;
|
|
328
18
|
};
|
|
329
|
-
function
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
19
|
+
async function loadNodeModules() {
|
|
20
|
+
if (isBrowser || nodeModules.readFileSync) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
const globalObj = typeof global !== "undefined" ? global : globalThis;
|
|
25
|
+
const req = globalObj.process?.mainModule?.require || globalObj.require;
|
|
26
|
+
if (typeof req === "function") {
|
|
27
|
+
const fs = req("fs");
|
|
28
|
+
const path = req("path");
|
|
29
|
+
nodeModules.readFileSync = fs.readFileSync;
|
|
30
|
+
nodeModules.basename = path.basename;
|
|
31
|
+
nodeModules.extname = path.extname;
|
|
32
|
+
} else {
|
|
33
|
+
throw new Error("require function not available");
|
|
34
|
+
}
|
|
35
|
+
} catch (error) {
|
|
36
|
+
console.warn(
|
|
37
|
+
"Node.js modules not available, file path operations will be disabled"
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const COST_LOOKUP_ATTEMPTS = 3;
|
|
42
|
+
const COST_LOOKUP_DELAY_MS = 1e3;
|
|
43
|
+
const TINYBAR_DIVISOR = 1e8;
|
|
44
|
+
const COST_LOGGER_MODULE = "InscriberCost";
|
|
45
|
+
async function convertFileToBase64(filePath) {
|
|
46
|
+
if (isBrowser) {
|
|
47
|
+
throw new Error(
|
|
48
|
+
"File path operations are not supported in browser environment. Use buffer input type instead."
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
await loadNodeModules();
|
|
52
|
+
if (!nodeModules.readFileSync || !nodeModules.basename || !nodeModules.extname) {
|
|
53
|
+
throw new Error(
|
|
54
|
+
"Node.js file system modules are not available. Cannot read file from path."
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
try {
|
|
58
|
+
const buffer = nodeModules.readFileSync(filePath);
|
|
59
|
+
const base64 = buffer.toString("base64");
|
|
60
|
+
const fileName = nodeModules.basename(filePath);
|
|
61
|
+
let mimeType = "application/octet-stream";
|
|
62
|
+
try {
|
|
63
|
+
const fileTypeResult = await fileTypeFromBuffer(buffer);
|
|
64
|
+
if (fileTypeResult) {
|
|
65
|
+
mimeType = fileTypeResult.mime;
|
|
66
|
+
}
|
|
67
|
+
} catch (error) {
|
|
68
|
+
const ext = nodeModules.extname(filePath).toLowerCase();
|
|
69
|
+
const mimeMap = {
|
|
70
|
+
".txt": "text/plain",
|
|
71
|
+
".json": "application/json",
|
|
72
|
+
".html": "text/html",
|
|
73
|
+
".css": "text/css",
|
|
74
|
+
".js": "application/javascript",
|
|
75
|
+
".png": "image/png",
|
|
76
|
+
".jpg": "image/jpeg",
|
|
77
|
+
".jpeg": "image/jpeg",
|
|
78
|
+
".gif": "image/gif",
|
|
79
|
+
".svg": "image/svg+xml",
|
|
80
|
+
".pdf": "application/pdf"
|
|
81
|
+
};
|
|
82
|
+
mimeType = mimeMap[ext] || "application/octet-stream";
|
|
83
|
+
}
|
|
84
|
+
return { base64, fileName, mimeType };
|
|
85
|
+
} catch (error) {
|
|
86
|
+
throw new Error(
|
|
87
|
+
`Failed to read file ${filePath}: ${error.message}`
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function normalizeClientConfig(cfg) {
|
|
92
|
+
return {
|
|
93
|
+
accountId: cfg.accountId,
|
|
94
|
+
privateKey: typeof cfg.privateKey === "string" ? cfg.privateKey : cfg.privateKey.toString(),
|
|
95
|
+
network: cfg.network
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
async function inscribe(input, clientConfig, options, existingSDK) {
|
|
99
|
+
const logger = Logger.getInstance({
|
|
100
|
+
module: "Inscriber",
|
|
101
|
+
...options.logging
|
|
102
|
+
});
|
|
103
|
+
logger.info("Starting inscription process", {
|
|
104
|
+
type: input.type,
|
|
105
|
+
mode: options.mode || "file",
|
|
106
|
+
quoteOnly: options.quoteOnly || false,
|
|
107
|
+
...input.type === "url" ? { url: input.url } : {},
|
|
108
|
+
...input.type === "file" ? { path: input.path } : {},
|
|
109
|
+
...input.type === "buffer" ? { fileName: input.fileName, bufferSize: input.buffer.byteLength } : {}
|
|
110
|
+
});
|
|
111
|
+
try {
|
|
112
|
+
if (options.quoteOnly) {
|
|
113
|
+
logger.debug("Quote-only mode requested, generating quote");
|
|
114
|
+
return await generateQuote(input, clientConfig, options, existingSDK);
|
|
115
|
+
}
|
|
116
|
+
if (options.mode === "hashinal" && options.metadata) {
|
|
117
|
+
validateHashinalMetadata(options.metadata, logger);
|
|
118
|
+
}
|
|
119
|
+
let sdk;
|
|
120
|
+
if (existingSDK) {
|
|
121
|
+
logger.debug("Using existing InscriptionSDK instance");
|
|
122
|
+
sdk = existingSDK;
|
|
123
|
+
} else if (options.apiKey) {
|
|
124
|
+
logger.debug("Initializing InscriptionSDK with API key");
|
|
125
|
+
sdk = new InscriptionSDK({
|
|
126
|
+
apiKey: options.apiKey,
|
|
127
|
+
network: clientConfig.network || "mainnet",
|
|
128
|
+
connectionMode: "auto"
|
|
129
|
+
});
|
|
130
|
+
} else {
|
|
131
|
+
logger.debug("Initializing InscriptionSDK with server auth");
|
|
132
|
+
const normalized = normalizeClientConfig(clientConfig);
|
|
133
|
+
sdk = await InscriptionSDK.createWithAuth({
|
|
134
|
+
type: "server",
|
|
135
|
+
accountId: normalized.accountId,
|
|
136
|
+
privateKey: normalized.privateKey,
|
|
137
|
+
network: normalized.network || "mainnet",
|
|
138
|
+
connectionMode: "auto"
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
const baseRequest = {
|
|
142
|
+
holderId: clientConfig.accountId,
|
|
143
|
+
metadata: options.metadata || {},
|
|
144
|
+
tags: options.tags || [],
|
|
145
|
+
mode: options.mode || "file",
|
|
146
|
+
fileStandard: options.fileStandard,
|
|
147
|
+
chunkSize: options.chunkSize
|
|
148
|
+
};
|
|
149
|
+
let request;
|
|
150
|
+
switch (input.type) {
|
|
151
|
+
case "url":
|
|
152
|
+
request = {
|
|
153
|
+
...baseRequest,
|
|
154
|
+
file: {
|
|
155
|
+
type: "url",
|
|
156
|
+
url: input.url
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
break;
|
|
160
|
+
case "file": {
|
|
161
|
+
const fileData = await convertFileToBase64(input.path);
|
|
162
|
+
request = {
|
|
163
|
+
...baseRequest,
|
|
164
|
+
file: {
|
|
165
|
+
type: "base64",
|
|
166
|
+
base64: fileData.base64,
|
|
167
|
+
fileName: fileData.fileName,
|
|
168
|
+
mimeType: fileData.mimeType
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
case "buffer":
|
|
174
|
+
request = {
|
|
175
|
+
...baseRequest,
|
|
176
|
+
file: {
|
|
177
|
+
type: "base64",
|
|
178
|
+
base64: Buffer.from(
|
|
179
|
+
input.buffer instanceof ArrayBuffer ? new Uint8Array(input.buffer) : input.buffer
|
|
180
|
+
).toString("base64"),
|
|
181
|
+
fileName: input.fileName,
|
|
182
|
+
mimeType: input.mimeType
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
if (options.mode === "hashinal") {
|
|
188
|
+
request.metadataObject = options.metadata;
|
|
189
|
+
request.creator = options.metadata?.creator || clientConfig.accountId;
|
|
190
|
+
request.description = options.metadata?.description;
|
|
191
|
+
if (options.jsonFileURL) {
|
|
192
|
+
request.jsonFileURL = options.jsonFileURL;
|
|
193
|
+
}
|
|
333
194
|
}
|
|
195
|
+
logger.debug("Preparing to inscribe content", {
|
|
196
|
+
type: input.type,
|
|
197
|
+
mode: options.mode || "file",
|
|
198
|
+
holderId: clientConfig.accountId
|
|
199
|
+
});
|
|
200
|
+
const normalizedCfg = normalizeClientConfig(clientConfig);
|
|
201
|
+
const result = await sdk.inscribeAndExecute(request, normalizedCfg);
|
|
202
|
+
const rawJobId = result.jobId || result.tx_id || result.transactionId || "";
|
|
203
|
+
const rawTxId = result.transactionId || rawJobId || "";
|
|
204
|
+
const normalizedJobId = normalizeTransactionId(rawJobId);
|
|
205
|
+
const normalizedTxId = normalizeTransactionId(rawTxId);
|
|
206
|
+
const waitId = normalizeTransactionId(
|
|
207
|
+
normalizedJobId || normalizedTxId || rawJobId || result.jobId || ""
|
|
208
|
+
);
|
|
209
|
+
logger.info("Starting to inscribe.", {
|
|
210
|
+
type: input.type,
|
|
211
|
+
mode: options.mode || "file",
|
|
212
|
+
transactionId: result.jobId
|
|
213
|
+
});
|
|
214
|
+
if (options.waitForConfirmation) {
|
|
215
|
+
logger.debug("Waiting for inscription confirmation", {
|
|
216
|
+
transactionId: waitId,
|
|
217
|
+
maxAttempts: options.waitMaxAttempts,
|
|
218
|
+
intervalMs: options.waitIntervalMs
|
|
219
|
+
});
|
|
220
|
+
const inscription = await waitForInscriptionConfirmation(
|
|
221
|
+
sdk,
|
|
222
|
+
waitId,
|
|
223
|
+
options.waitMaxAttempts,
|
|
224
|
+
options.waitIntervalMs,
|
|
225
|
+
options.progressCallback
|
|
226
|
+
);
|
|
227
|
+
logger.info("Inscription confirmation received", {
|
|
228
|
+
transactionId: result.jobId
|
|
229
|
+
});
|
|
230
|
+
return {
|
|
231
|
+
confirmed: true,
|
|
232
|
+
result: {
|
|
233
|
+
...result,
|
|
234
|
+
jobId: waitId,
|
|
235
|
+
transactionId: normalizedTxId
|
|
236
|
+
},
|
|
237
|
+
inscription,
|
|
238
|
+
sdk,
|
|
239
|
+
costSummary: await resolveInscriptionCost(
|
|
240
|
+
normalizedTxId,
|
|
241
|
+
clientConfig.network || "mainnet",
|
|
242
|
+
options.logging?.level
|
|
243
|
+
)
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
return {
|
|
247
|
+
confirmed: false,
|
|
248
|
+
result: {
|
|
249
|
+
...result,
|
|
250
|
+
jobId: waitId,
|
|
251
|
+
transactionId: normalizedTxId
|
|
252
|
+
},
|
|
253
|
+
sdk,
|
|
254
|
+
costSummary: await resolveInscriptionCost(
|
|
255
|
+
normalizedTxId,
|
|
256
|
+
clientConfig.network || "mainnet",
|
|
257
|
+
options.logging?.level
|
|
258
|
+
)
|
|
259
|
+
};
|
|
260
|
+
} catch (error) {
|
|
261
|
+
logger.error("Error during inscription process", error);
|
|
262
|
+
throw error;
|
|
334
263
|
}
|
|
335
|
-
return { type: "UNKNOWN", humanReadableType: "Unknown Transaction" };
|
|
336
264
|
}
|
|
337
|
-
function
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
265
|
+
async function resolveInscriptionCost(transactionId, network, level) {
|
|
266
|
+
const logger = Logger.getInstance({
|
|
267
|
+
module: COST_LOGGER_MODULE,
|
|
268
|
+
level: level ?? "info"
|
|
269
|
+
});
|
|
270
|
+
const mirrorNode = new HederaMirrorNode(network, logger);
|
|
271
|
+
const normalizedId = normalizeTransactionId(transactionId);
|
|
272
|
+
const payerAccountId = normalizedId.split("-")[0];
|
|
273
|
+
for (let attempt = 0; attempt < COST_LOOKUP_ATTEMPTS; attempt++) {
|
|
274
|
+
try {
|
|
275
|
+
const txn = await mirrorNode.getTransaction(normalizedId);
|
|
276
|
+
if (!txn) {
|
|
277
|
+
if (attempt < COST_LOOKUP_ATTEMPTS - 1) {
|
|
278
|
+
await sleep(COST_LOOKUP_DELAY_MS);
|
|
279
|
+
}
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
const payerTransfer = txn.transfers?.find(
|
|
283
|
+
(transfer) => transfer.account === payerAccountId && typeof transfer.amount === "number" && transfer.amount < 0
|
|
284
|
+
);
|
|
285
|
+
let payerTinybars = null;
|
|
286
|
+
if (payerTransfer) {
|
|
287
|
+
payerTinybars = Math.abs(payerTransfer.amount);
|
|
288
|
+
} else if (txn.transfers && txn.transfers.length > 0) {
|
|
289
|
+
const negativeSum = txn.transfers.filter((t) => typeof t.amount === "number" && t.amount < 0).reduce((sum, t) => sum + Math.abs(t.amount), 0);
|
|
290
|
+
payerTinybars = negativeSum > 0 ? negativeSum : null;
|
|
291
|
+
} else if (typeof txn.charged_tx_fee === "number") {
|
|
292
|
+
payerTinybars = txn.charged_tx_fee;
|
|
293
|
+
}
|
|
294
|
+
if (!payerTinybars || payerTinybars <= 0) {
|
|
295
|
+
if (attempt < COST_LOOKUP_ATTEMPTS - 1) {
|
|
296
|
+
await sleep(COST_LOOKUP_DELAY_MS);
|
|
297
|
+
}
|
|
298
|
+
continue;
|
|
299
|
+
}
|
|
300
|
+
const totalCostHbar = new BigNumber(payerTinybars).dividedBy(TINYBAR_DIVISOR).toFixed();
|
|
301
|
+
return {
|
|
302
|
+
totalCostHbar,
|
|
303
|
+
breakdown: {
|
|
304
|
+
transfers: [
|
|
305
|
+
{
|
|
306
|
+
to: "Hedera network (payer)",
|
|
307
|
+
amount: totalCostHbar,
|
|
308
|
+
description: `Transaction fee debited from ${payerAccountId}`
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
} catch (error) {
|
|
314
|
+
logger.warn("Unable to resolve inscription cost", {
|
|
315
|
+
transactionId: normalizedId,
|
|
316
|
+
attempt: attempt + 1,
|
|
317
|
+
error: error instanceof Error ? error.message : String(error)
|
|
318
|
+
});
|
|
319
|
+
if (attempt < COST_LOOKUP_ATTEMPTS - 1) {
|
|
320
|
+
await sleep(COST_LOOKUP_DELAY_MS);
|
|
321
|
+
}
|
|
343
322
|
}
|
|
344
323
|
}
|
|
345
|
-
return
|
|
324
|
+
return void 0;
|
|
346
325
|
}
|
|
347
|
-
function
|
|
348
|
-
|
|
326
|
+
async function inscribeWithSigner(input, signer, options, existingSDK) {
|
|
327
|
+
const logger = Logger.getInstance({
|
|
328
|
+
module: "Inscriber",
|
|
329
|
+
...options.logging
|
|
330
|
+
});
|
|
331
|
+
logger.info("Starting inscription process with signer", {
|
|
332
|
+
type: input.type,
|
|
333
|
+
mode: options.mode || "file",
|
|
334
|
+
quoteOnly: options.quoteOnly || false,
|
|
335
|
+
...input.type === "url" ? { url: input.url } : {},
|
|
336
|
+
...input.type === "file" ? { path: input.path } : {},
|
|
337
|
+
...input.type === "buffer" ? { fileName: input.fileName, bufferSize: input.buffer.byteLength } : {}
|
|
338
|
+
});
|
|
339
|
+
try {
|
|
340
|
+
if (options.quoteOnly) {
|
|
341
|
+
logger.debug("Quote-only mode requested with signer, generating quote");
|
|
342
|
+
const clientConfig = {
|
|
343
|
+
accountId: signer.getAccountId().toString(),
|
|
344
|
+
privateKey: "",
|
|
345
|
+
network: options.network || "mainnet"
|
|
346
|
+
};
|
|
347
|
+
return await generateQuote(input, clientConfig, options, existingSDK);
|
|
348
|
+
}
|
|
349
|
+
if (options.mode === "hashinal" && options.metadata) {
|
|
350
|
+
validateHashinalMetadata(options.metadata, logger);
|
|
351
|
+
}
|
|
352
|
+
const accountId = signer.getAccountId().toString();
|
|
353
|
+
logger.debug("Using account ID from signer", { accountId });
|
|
354
|
+
let sdk;
|
|
355
|
+
if (existingSDK) {
|
|
356
|
+
logger.debug("Using existing InscriptionSDK instance");
|
|
357
|
+
sdk = existingSDK;
|
|
358
|
+
} else if (options.apiKey) {
|
|
359
|
+
logger.debug("Initializing InscriptionSDK with API key");
|
|
360
|
+
sdk = new InscriptionSDK({
|
|
361
|
+
apiKey: options.apiKey,
|
|
362
|
+
network: options.network || "mainnet",
|
|
363
|
+
connectionMode: "websocket"
|
|
364
|
+
});
|
|
365
|
+
} else {
|
|
366
|
+
logger.debug("Initializing InscriptionSDK with client auth (websocket)");
|
|
367
|
+
sdk = await InscriptionSDK.createWithAuth({
|
|
368
|
+
type: "client",
|
|
369
|
+
accountId,
|
|
370
|
+
signer,
|
|
371
|
+
network: options.network || "mainnet",
|
|
372
|
+
connectionMode: "websocket"
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
const baseRequest = {
|
|
376
|
+
holderId: accountId,
|
|
377
|
+
metadata: options.metadata || {},
|
|
378
|
+
tags: options.tags || [],
|
|
379
|
+
mode: options.mode || "file",
|
|
380
|
+
fileStandard: options.fileStandard,
|
|
381
|
+
chunkSize: options.chunkSize
|
|
382
|
+
};
|
|
383
|
+
let request;
|
|
384
|
+
switch (input.type) {
|
|
385
|
+
case "url":
|
|
386
|
+
request = {
|
|
387
|
+
...baseRequest,
|
|
388
|
+
file: {
|
|
389
|
+
type: "url",
|
|
390
|
+
url: input.url
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
break;
|
|
394
|
+
case "file": {
|
|
395
|
+
const fileData = await convertFileToBase64(input.path);
|
|
396
|
+
request = {
|
|
397
|
+
...baseRequest,
|
|
398
|
+
file: {
|
|
399
|
+
type: "base64",
|
|
400
|
+
base64: fileData.base64,
|
|
401
|
+
fileName: fileData.fileName,
|
|
402
|
+
mimeType: fileData.mimeType
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
case "buffer":
|
|
408
|
+
request = {
|
|
409
|
+
...baseRequest,
|
|
410
|
+
file: {
|
|
411
|
+
type: "base64",
|
|
412
|
+
base64: Buffer.from(
|
|
413
|
+
input.buffer instanceof ArrayBuffer ? new Uint8Array(input.buffer) : input.buffer
|
|
414
|
+
).toString("base64"),
|
|
415
|
+
fileName: input.fileName,
|
|
416
|
+
mimeType: input.mimeType
|
|
417
|
+
}
|
|
418
|
+
};
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
if (options.mode === "hashinal") {
|
|
422
|
+
request.metadataObject = options.metadata;
|
|
423
|
+
request.creator = options.metadata?.creator || accountId;
|
|
424
|
+
request.description = options.metadata?.description;
|
|
425
|
+
if (options.jsonFileURL) {
|
|
426
|
+
request.jsonFileURL = options.jsonFileURL;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
logger.debug("Starting inscription via startInscription (websocket)", {
|
|
430
|
+
type: input.type,
|
|
431
|
+
mode: options.mode || "file",
|
|
432
|
+
holderId: accountId,
|
|
433
|
+
usesStartInscription: true
|
|
434
|
+
});
|
|
435
|
+
const startResult = await sdk.startInscription({
|
|
436
|
+
...request,
|
|
437
|
+
holderId: accountId,
|
|
438
|
+
network: options.network || "mainnet"
|
|
439
|
+
});
|
|
440
|
+
logger.info("about to start inscription", {
|
|
441
|
+
type: input.type,
|
|
442
|
+
mode: options.mode || "file",
|
|
443
|
+
jobId: startResult.id || startResult.tx_id,
|
|
444
|
+
...startResult
|
|
445
|
+
});
|
|
446
|
+
if (typeof startResult?.transactionBytes === "string") {
|
|
447
|
+
logger.debug("Executing inscription transaction with signer from bytes");
|
|
448
|
+
await sdk.executeTransactionWithSigner(
|
|
449
|
+
startResult.transactionBytes,
|
|
450
|
+
signer
|
|
451
|
+
);
|
|
452
|
+
} else if (startResult?.transactionBytes?.type === "Buffer") {
|
|
453
|
+
logger.debug("Executing inscription transaction with signer from buffer");
|
|
454
|
+
await sdk.executeTransactionWithSigner(
|
|
455
|
+
Buffer.from(startResult.transactionBytes.data).toString("base64"),
|
|
456
|
+
signer
|
|
457
|
+
);
|
|
458
|
+
}
|
|
459
|
+
const trackingId = normalizeTransactionId(
|
|
460
|
+
startResult.tx_id || startResult.id || ""
|
|
461
|
+
);
|
|
462
|
+
const waitId = normalizeTransactionId(
|
|
463
|
+
trackingId || startResult.id || startResult.tx_id || ""
|
|
464
|
+
);
|
|
465
|
+
if (options.waitForConfirmation) {
|
|
466
|
+
logger.debug("Waiting for inscription confirmation (websocket)", {
|
|
467
|
+
jobId: startResult.id || startResult.tx_id,
|
|
468
|
+
maxAttempts: options.waitMaxAttempts,
|
|
469
|
+
intervalMs: options.waitIntervalMs
|
|
470
|
+
});
|
|
471
|
+
const inscription = await waitForInscriptionConfirmation(
|
|
472
|
+
sdk,
|
|
473
|
+
waitId,
|
|
474
|
+
options.waitMaxAttempts,
|
|
475
|
+
options.waitIntervalMs,
|
|
476
|
+
options.progressCallback
|
|
477
|
+
);
|
|
478
|
+
logger.info("Inscription confirmation received", {
|
|
479
|
+
jobId: waitId
|
|
480
|
+
});
|
|
481
|
+
return {
|
|
482
|
+
confirmed: true,
|
|
483
|
+
result: {
|
|
484
|
+
jobId: waitId,
|
|
485
|
+
transactionId: waitId,
|
|
486
|
+
topic_id: startResult.topic_id,
|
|
487
|
+
status: startResult.status,
|
|
488
|
+
completed: startResult.completed
|
|
489
|
+
},
|
|
490
|
+
inscription,
|
|
491
|
+
sdk,
|
|
492
|
+
costSummary: await resolveInscriptionCost(
|
|
493
|
+
waitId,
|
|
494
|
+
options.network || "mainnet",
|
|
495
|
+
options.logging?.level
|
|
496
|
+
)
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
return {
|
|
500
|
+
confirmed: false,
|
|
501
|
+
result: {
|
|
502
|
+
jobId: waitId,
|
|
503
|
+
transactionId: waitId,
|
|
504
|
+
topic_id: startResult.topic_id,
|
|
505
|
+
status: startResult.status,
|
|
506
|
+
completed: startResult.completed
|
|
507
|
+
},
|
|
508
|
+
sdk,
|
|
509
|
+
costSummary: await resolveInscriptionCost(
|
|
510
|
+
waitId,
|
|
511
|
+
options.network || "mainnet",
|
|
512
|
+
options.logging?.level
|
|
513
|
+
)
|
|
514
|
+
};
|
|
515
|
+
} catch (error) {
|
|
516
|
+
logger.error("Error during inscription process", error);
|
|
517
|
+
throw error;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
async function retrieveInscription(transactionId, options) {
|
|
521
|
+
const logger = Logger.getInstance({
|
|
522
|
+
module: "Inscriber",
|
|
523
|
+
...options?.logging || {}
|
|
524
|
+
});
|
|
525
|
+
const formattedTransactionId = transactionId.includes("@") ? `${transactionId.split("@")[0]}-${transactionId.split("@")[1].replace(/\./g, "-")}` : transactionId;
|
|
526
|
+
logger.info("Retrieving inscription", {
|
|
527
|
+
originalTransactionId: transactionId,
|
|
528
|
+
formattedTransactionId
|
|
529
|
+
});
|
|
530
|
+
try {
|
|
531
|
+
let sdk;
|
|
532
|
+
if (options?.apiKey) {
|
|
533
|
+
logger.debug("Initializing InscriptionSDK with API key");
|
|
534
|
+
sdk = new InscriptionSDK({
|
|
535
|
+
apiKey: options.apiKey,
|
|
536
|
+
network: options.network || "mainnet"
|
|
537
|
+
});
|
|
538
|
+
} else if (options?.accountId && options?.privateKey) {
|
|
539
|
+
logger.debug("Initializing InscriptionSDK with server auth");
|
|
540
|
+
sdk = await InscriptionSDK.createWithAuth({
|
|
541
|
+
type: "server",
|
|
542
|
+
accountId: options.accountId,
|
|
543
|
+
privateKey: options.privateKey,
|
|
544
|
+
network: options.network || "mainnet"
|
|
545
|
+
});
|
|
546
|
+
} else {
|
|
547
|
+
const error = new Error(
|
|
548
|
+
"Either API key or account ID and private key are required for retrieving inscriptions"
|
|
549
|
+
);
|
|
550
|
+
logger.error("Missing authentication credentials", {
|
|
551
|
+
hasApiKey: Boolean(options?.apiKey),
|
|
552
|
+
hasAccountId: Boolean(options?.accountId),
|
|
553
|
+
hasPrivateKey: Boolean(options?.privateKey)
|
|
554
|
+
});
|
|
555
|
+
throw error;
|
|
556
|
+
}
|
|
557
|
+
logger.debug("Initialized SDK for inscription retrieval", {
|
|
558
|
+
formattedTransactionId,
|
|
559
|
+
network: options.network || "mainnet"
|
|
560
|
+
});
|
|
561
|
+
const result = await sdk.retrieveInscription(formattedTransactionId);
|
|
562
|
+
logger.info("Successfully retrieved inscription", {
|
|
563
|
+
formattedTransactionId
|
|
564
|
+
});
|
|
565
|
+
return result;
|
|
566
|
+
} catch (error) {
|
|
567
|
+
logger.error("Error retrieving inscription", {
|
|
568
|
+
formattedTransactionId,
|
|
569
|
+
error
|
|
570
|
+
});
|
|
571
|
+
throw error;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
function validateHashinalMetadata(metadata, logger) {
|
|
575
|
+
const requiredFields = ["name", "creator", "description", "type"];
|
|
576
|
+
const missingFields = requiredFields.filter((field) => !metadata[field]);
|
|
577
|
+
if (missingFields.length > 0) {
|
|
578
|
+
const error = new Error(
|
|
579
|
+
`Missing required Hashinal metadata fields: ${missingFields.join(", ")}`
|
|
580
|
+
);
|
|
581
|
+
logger.error("Hashinal metadata validation failed", { missingFields });
|
|
582
|
+
throw error;
|
|
583
|
+
}
|
|
584
|
+
logger.debug("Hashinal metadata validation passed", {
|
|
585
|
+
name: metadata.name,
|
|
586
|
+
creator: metadata.creator,
|
|
587
|
+
description: metadata.description,
|
|
588
|
+
type: metadata.type,
|
|
589
|
+
hasAttributes: !!metadata.attributes,
|
|
590
|
+
hasProperties: !!metadata.properties
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
async function generateQuote(input, clientConfig, options, existingSDK) {
|
|
594
|
+
const logger = Logger.getInstance({
|
|
595
|
+
module: "Inscriber",
|
|
596
|
+
...options.logging
|
|
597
|
+
});
|
|
598
|
+
logger.info("Generating inscription quote", {
|
|
599
|
+
type: input.type,
|
|
600
|
+
mode: options.mode || "file",
|
|
601
|
+
...input.type === "url" ? { url: input.url } : {},
|
|
602
|
+
...input.type === "file" ? { path: input.path } : {},
|
|
603
|
+
...input.type === "buffer" ? { fileName: input.fileName, bufferSize: input.buffer.byteLength } : {}
|
|
604
|
+
});
|
|
605
|
+
try {
|
|
606
|
+
validateQuoteParameters(input, clientConfig, options);
|
|
607
|
+
const cachedQuote = getCachedQuote(input, clientConfig, options);
|
|
608
|
+
if (cachedQuote) {
|
|
609
|
+
logger.debug("Returning cached quote");
|
|
610
|
+
return {
|
|
611
|
+
confirmed: false,
|
|
612
|
+
quote: true,
|
|
613
|
+
result: cachedQuote
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
if (options.mode === "hashinal" && options.metadata) {
|
|
617
|
+
validateHashinalMetadata(options.metadata, logger);
|
|
618
|
+
}
|
|
619
|
+
const sdk = await getOrCreateSDK(clientConfig, options, existingSDK);
|
|
620
|
+
const baseRequest = {
|
|
621
|
+
holderId: clientConfig.accountId,
|
|
622
|
+
metadata: options.metadata || {},
|
|
623
|
+
tags: options.tags || [],
|
|
624
|
+
mode: options.mode || "file",
|
|
625
|
+
fileStandard: options.fileStandard,
|
|
626
|
+
chunkSize: options.chunkSize
|
|
627
|
+
};
|
|
628
|
+
let request;
|
|
629
|
+
switch (input.type) {
|
|
630
|
+
case "url":
|
|
631
|
+
request = {
|
|
632
|
+
...baseRequest,
|
|
633
|
+
file: {
|
|
634
|
+
type: "url",
|
|
635
|
+
url: input.url
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
break;
|
|
639
|
+
case "file": {
|
|
640
|
+
const fileData = await convertFileToBase64(input.path);
|
|
641
|
+
request = {
|
|
642
|
+
...baseRequest,
|
|
643
|
+
file: {
|
|
644
|
+
type: "base64",
|
|
645
|
+
base64: fileData.base64,
|
|
646
|
+
fileName: fileData.fileName,
|
|
647
|
+
mimeType: fileData.mimeType
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
break;
|
|
651
|
+
}
|
|
652
|
+
case "buffer":
|
|
653
|
+
request = {
|
|
654
|
+
...baseRequest,
|
|
655
|
+
file: {
|
|
656
|
+
type: "base64",
|
|
657
|
+
base64: Buffer.from(
|
|
658
|
+
input.buffer instanceof ArrayBuffer ? new Uint8Array(input.buffer) : input.buffer
|
|
659
|
+
).toString("base64"),
|
|
660
|
+
fileName: input.fileName,
|
|
661
|
+
mimeType: input.mimeType
|
|
662
|
+
}
|
|
663
|
+
};
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
if (options.mode === "hashinal") {
|
|
667
|
+
request.metadataObject = options.metadata;
|
|
668
|
+
request.creator = options.metadata?.creator || clientConfig.accountId;
|
|
669
|
+
request.description = options.metadata?.description;
|
|
670
|
+
if (options.jsonFileURL) {
|
|
671
|
+
request.jsonFileURL = options.jsonFileURL;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
logger.debug("Calling inscription SDK startInscription for quote", {
|
|
675
|
+
type: input.type,
|
|
676
|
+
mode: options.mode || "file",
|
|
677
|
+
holderId: clientConfig.accountId
|
|
678
|
+
});
|
|
679
|
+
const inscriptionResponse = await sdk.startInscription(request);
|
|
680
|
+
logger.debug("Received inscription response for quote parsing", {
|
|
681
|
+
hasTransactionBytes: !!inscriptionResponse.transactionBytes,
|
|
682
|
+
bytesLength: inscriptionResponse.transactionBytes?.length || 0,
|
|
683
|
+
transactionBytesType: typeof inscriptionResponse.transactionBytes,
|
|
684
|
+
totalCost: inscriptionResponse.totalCost
|
|
685
|
+
});
|
|
686
|
+
const quote = await parseTransactionForQuote(
|
|
687
|
+
inscriptionResponse,
|
|
688
|
+
logger
|
|
689
|
+
);
|
|
690
|
+
cacheQuote(input, clientConfig, options, quote);
|
|
691
|
+
logger.info("Successfully generated inscription quote", {
|
|
692
|
+
totalCostHbar: quote.totalCostHbar
|
|
693
|
+
});
|
|
694
|
+
return {
|
|
695
|
+
confirmed: false,
|
|
696
|
+
quote: true,
|
|
697
|
+
result: quote
|
|
698
|
+
};
|
|
699
|
+
} catch (error) {
|
|
700
|
+
logger.error("Error generating inscription quote", error);
|
|
701
|
+
throw error;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
async function parseTransactionForQuote(inscriptionResponse, logger) {
|
|
705
|
+
try {
|
|
706
|
+
let totalCostHbar = "0.001";
|
|
707
|
+
if (inscriptionResponse.totalCost && typeof inscriptionResponse.totalCost === "number") {
|
|
708
|
+
const hbarAmount = inscriptionResponse.totalCost / 1e8;
|
|
709
|
+
totalCostHbar = hbarAmount.toString();
|
|
710
|
+
logger.debug("Using totalCost from inscription response", {
|
|
711
|
+
totalCostTinybars: inscriptionResponse.totalCost,
|
|
712
|
+
totalCostHbar
|
|
713
|
+
});
|
|
714
|
+
} else if (inscriptionResponse.transactionBytes) {
|
|
715
|
+
logger.debug("Parsing transaction bytes for cost information");
|
|
716
|
+
try {
|
|
717
|
+
let transactionBytesString;
|
|
718
|
+
if (typeof inscriptionResponse.transactionBytes === "string") {
|
|
719
|
+
transactionBytesString = inscriptionResponse.transactionBytes;
|
|
720
|
+
} else if (inscriptionResponse.transactionBytes && typeof inscriptionResponse.transactionBytes === "object" && "data" in inscriptionResponse.transactionBytes) {
|
|
721
|
+
const buffer = Buffer.from(inscriptionResponse.transactionBytes.data);
|
|
722
|
+
transactionBytesString = buffer.toString("base64");
|
|
723
|
+
} else {
|
|
724
|
+
throw new Error("Invalid transactionBytes format");
|
|
725
|
+
}
|
|
726
|
+
logger.debug("About to parse transaction bytes", {
|
|
727
|
+
bytesLength: transactionBytesString.length,
|
|
728
|
+
bytesPreview: transactionBytesString.slice(0, 100)
|
|
729
|
+
});
|
|
730
|
+
const parsedTransaction = await TransactionParser.parseTransactionBytes(
|
|
731
|
+
transactionBytesString,
|
|
732
|
+
{ includeRaw: false }
|
|
733
|
+
);
|
|
734
|
+
logger.debug("Parsed transaction for quote", {
|
|
735
|
+
type: parsedTransaction.type,
|
|
736
|
+
hasTransfers: !!parsedTransaction.transfers,
|
|
737
|
+
transferCount: parsedTransaction.transfers?.length || 0,
|
|
738
|
+
transfers: parsedTransaction.transfers
|
|
739
|
+
});
|
|
740
|
+
let totalTransferAmount = 0;
|
|
741
|
+
if (parsedTransaction.transfers && parsedTransaction.transfers.length > 0) {
|
|
742
|
+
for (const transfer of parsedTransaction.transfers) {
|
|
743
|
+
const transferAmount = typeof transfer.amount === "string" ? parseFloat(transfer.amount) : transfer.amount;
|
|
744
|
+
if (transferAmount < 0) {
|
|
745
|
+
const amountHbar = Math.abs(transferAmount);
|
|
746
|
+
totalTransferAmount += amountHbar;
|
|
747
|
+
logger.debug("Found HBAR transfer", {
|
|
748
|
+
from: transfer.accountId,
|
|
749
|
+
to: "service",
|
|
750
|
+
amount: amountHbar
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
if (totalTransferAmount > 0) {
|
|
756
|
+
totalCostHbar = totalTransferAmount.toString();
|
|
757
|
+
logger.debug("Using parsed transaction transfer amount", {
|
|
758
|
+
totalTransferAmount,
|
|
759
|
+
totalCostHbar
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
} catch (parseError) {
|
|
763
|
+
logger.warn(
|
|
764
|
+
"Could not parse transaction bytes, using totalCost fallback",
|
|
765
|
+
{
|
|
766
|
+
error: parseError,
|
|
767
|
+
errorMessage: parseError instanceof Error ? parseError.message : String(parseError)
|
|
768
|
+
}
|
|
769
|
+
);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
const transfers = [
|
|
773
|
+
{
|
|
774
|
+
to: "Inscription Service",
|
|
775
|
+
amount: totalCostHbar,
|
|
776
|
+
description: `Inscription fee (${totalCostHbar} HBAR)`
|
|
777
|
+
}
|
|
778
|
+
];
|
|
779
|
+
const validUntil = new Date(Date.now() + 15 * 60 * 1e3).toISOString();
|
|
780
|
+
const quote = {
|
|
781
|
+
totalCostHbar,
|
|
782
|
+
validUntil,
|
|
783
|
+
breakdown: {
|
|
784
|
+
transfers
|
|
785
|
+
}
|
|
786
|
+
};
|
|
787
|
+
logger.debug("Successfully parsed transaction for quote", {
|
|
788
|
+
totalCostHbar: quote.totalCostHbar,
|
|
789
|
+
transferCount: transfers.length,
|
|
790
|
+
hasTransactionBytes: !!inscriptionResponse.transactionBytes,
|
|
791
|
+
hasTotalCost: !!inscriptionResponse.totalCost
|
|
792
|
+
});
|
|
793
|
+
return quote;
|
|
794
|
+
} catch (error) {
|
|
795
|
+
logger.error("Error parsing transaction for quote", error);
|
|
796
|
+
throw error;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
async function waitForInscriptionConfirmation(sdk, transactionId, maxAttempts = 30, intervalMs = 4e3, progressCallback) {
|
|
800
|
+
const logger = Logger.getInstance({ module: "Inscriber" });
|
|
801
|
+
const normalizedId = normalizeTransactionId(transactionId);
|
|
802
|
+
const progressReporter = new ProgressReporter({
|
|
803
|
+
module: "Inscriber",
|
|
804
|
+
logger,
|
|
805
|
+
callback: progressCallback
|
|
806
|
+
});
|
|
807
|
+
try {
|
|
808
|
+
logger.debug("Waiting for inscription confirmation", {
|
|
809
|
+
transactionId: normalizedId,
|
|
810
|
+
maxAttempts,
|
|
811
|
+
intervalMs
|
|
812
|
+
});
|
|
813
|
+
progressReporter.preparing("Preparing for inscription confirmation", 5, {
|
|
814
|
+
transactionId: normalizedId,
|
|
815
|
+
maxAttempts,
|
|
816
|
+
intervalMs
|
|
817
|
+
});
|
|
818
|
+
try {
|
|
819
|
+
const waitMethod = sdk.waitForInscription.bind(sdk);
|
|
820
|
+
const wrappedCallback = (data) => {
|
|
821
|
+
const stageRaw = data.stage || "confirming";
|
|
822
|
+
const allowedStages = [
|
|
823
|
+
"preparing",
|
|
824
|
+
"submitting",
|
|
825
|
+
"confirming",
|
|
826
|
+
"verifying",
|
|
827
|
+
"completed",
|
|
828
|
+
"failed"
|
|
829
|
+
];
|
|
830
|
+
const stage = allowedStages.includes(stageRaw) ? stageRaw : "confirming";
|
|
831
|
+
const message = data.message || "Processing inscription";
|
|
832
|
+
const percent = data.progressPercent || 50;
|
|
833
|
+
progressReporter.report({
|
|
834
|
+
stage,
|
|
835
|
+
message,
|
|
836
|
+
progressPercent: percent,
|
|
837
|
+
details: data.details
|
|
838
|
+
});
|
|
839
|
+
};
|
|
840
|
+
return await waitMethod(
|
|
841
|
+
normalizedId,
|
|
842
|
+
maxAttempts,
|
|
843
|
+
intervalMs,
|
|
844
|
+
true,
|
|
845
|
+
wrappedCallback
|
|
846
|
+
);
|
|
847
|
+
} catch (e) {
|
|
848
|
+
logger.debug("Falling back to standard waitForInscription method", {
|
|
849
|
+
error: e
|
|
850
|
+
});
|
|
851
|
+
progressReporter.verifying("Verifying inscription status", 50, {
|
|
852
|
+
error: e
|
|
853
|
+
});
|
|
854
|
+
return await sdk.waitForInscription(
|
|
855
|
+
normalizedId,
|
|
856
|
+
maxAttempts,
|
|
857
|
+
intervalMs,
|
|
858
|
+
true
|
|
859
|
+
);
|
|
860
|
+
}
|
|
861
|
+
} catch (error) {
|
|
862
|
+
logger.error("Error waiting for inscription confirmation", {
|
|
863
|
+
transactionId,
|
|
864
|
+
maxAttempts,
|
|
865
|
+
intervalMs,
|
|
866
|
+
error
|
|
867
|
+
});
|
|
868
|
+
progressReporter.failed("Inscription confirmation failed", {
|
|
869
|
+
transactionId,
|
|
870
|
+
error
|
|
871
|
+
});
|
|
872
|
+
throw error;
|
|
873
|
+
}
|
|
349
874
|
}
|
|
350
875
|
export {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
876
|
+
generateQuote,
|
|
877
|
+
inscribe,
|
|
878
|
+
inscribeWithSigner,
|
|
879
|
+
normalizeTransactionId,
|
|
880
|
+
retrieveInscription,
|
|
881
|
+
waitForInscriptionConfirmation
|
|
357
882
|
};
|
|
358
883
|
//# sourceMappingURL=standards-sdk.es124.js.map
|