@locuschain/lib 0.2.10 → 0.2.12

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 (60) hide show
  1. package/dist/accounts/index.amd.js +1 -1
  2. package/dist/accounts/index.cjs.cjs +2 -3
  3. package/dist/accounts/index.esm.js +2 -3
  4. package/dist/actions/wallet/directCall.d.cts +18 -0
  5. package/dist/actions/wallet/directCall.d.mts +18 -0
  6. package/dist/autogen/debugWalletActions.d.cts +2 -0
  7. package/dist/autogen/debugWalletActions.d.mts +2 -0
  8. package/dist/autogen/index.amd.js +1 -1
  9. package/dist/autogen/index.cjs.cjs +2 -3
  10. package/dist/autogen/index.esm.js +3 -4
  11. package/dist/autogen/types/common/index.d.cts +0 -2
  12. package/dist/autogen/types/common/index.d.mts +0 -2
  13. package/dist/autogen/types/common/tx-base.d.cts +2 -1
  14. package/dist/autogen/types/common/tx-base.d.mts +2 -1
  15. package/dist/autogen/types/consts/tx-type.d.cts +10 -10
  16. package/dist/autogen/types/consts/tx-type.d.mts +10 -10
  17. package/dist/autogen/types/consts/tx-types.d.cts +10 -10
  18. package/dist/autogen/types/consts/tx-types.d.mts +10 -10
  19. package/dist/autogen/types/tx/tx-restore-res-hash.d.cts +5 -4
  20. package/dist/autogen/types/tx/tx-restore-res-hash.d.mts +5 -4
  21. package/dist/autogen/wasm/lclib.wasm +0 -0
  22. package/dist/chunks/{debugWalletActions-LMoV1T5I.js → debugWalletActions-BIr5g97C.js} +32 -0
  23. package/dist/chunks/{debugWalletActions-BWSVjiFW.cjs → debugWalletActions-DEdW7RNn.cjs} +32 -0
  24. package/dist/chunks/{debugWalletActions-DoZUAnEj.js → debugWalletActions-Eu-0KUqt.js} +32 -1
  25. package/dist/chunks/{keystore-JnuLzkLn.js → keystore-BaRONuW-.js} +1 -1
  26. package/dist/chunks/{keystore-DS8JZhXs.cjs → keystore-DcTOPfuF.cjs} +1 -1
  27. package/dist/chunks/{keystore-BPU22XT-.js → keystore-Dz4yB829.js} +1 -1
  28. package/dist/chunks/{tx-type-Dyjdmlv8.js → tx-type-BFIIZuLV.js} +10 -10
  29. package/dist/chunks/{tx-type-CKrHKEwY.cjs → tx-type-BPfUG6kE.cjs} +10 -10
  30. package/dist/chunks/{tx-type-CXyml-9n.js → tx-type-nqiwUdYa.js} +10 -10
  31. package/dist/chunks/{lclib-j2x9RvDY.js → wasm-B1dWd6ix.js} +174 -1
  32. package/dist/chunks/{lclib-Bv86gksL.js → wasm-BQYfcIX8.js} +222 -1
  33. package/dist/chunks/{lclib-rGyKpClJ.cjs → wasm-DDrQluVO.cjs} +237 -16
  34. package/dist/clients/createLocusWalletClient.d.cts +1 -0
  35. package/dist/clients/createLocusWalletClient.d.mts +1 -0
  36. package/dist/clients/index.amd.js +1 -1
  37. package/dist/clients/index.cjs.cjs +2 -2
  38. package/dist/clients/index.esm.js +2 -2
  39. package/dist/constant/index.amd.js +37 -37
  40. package/dist/constant/index.cjs.cjs +37 -37
  41. package/dist/constant/index.d.cts +20 -20
  42. package/dist/constant/index.d.mts +20 -20
  43. package/dist/constant/index.esm.js +37 -37
  44. package/dist/contracts/index.amd.js +1 -1
  45. package/dist/contracts/index.cjs.cjs +1 -2
  46. package/dist/contracts/index.esm.js +1 -2
  47. package/dist/index.amd.js +1 -1
  48. package/dist/index.cjs.cjs +4 -5
  49. package/dist/index.esm.js +4 -5
  50. package/dist/utils/index.amd.js +2 -2
  51. package/dist/utils/index.cjs.cjs +4 -5
  52. package/dist/utils/index.esm.js +4 -5
  53. package/package.json +2 -2
  54. package/dist/autogen/types/common/asset-object-transfer.d.cts +0 -6
  55. package/dist/autogen/types/common/asset-object-transfer.d.mts +0 -6
  56. package/dist/autogen/types/common/tx-restore-res-hash-proof.d.cts +0 -9
  57. package/dist/autogen/types/common/tx-restore-res-hash-proof.d.mts +0 -9
  58. package/dist/chunks/wasm-CU215LGW.js +0 -175
  59. package/dist/chunks/wasm-dbtq7eri.cjs +0 -225
  60. package/dist/chunks/wasm-gROtmFm6.js +0 -225
@@ -13,10 +13,10 @@ function AimerModule() {
13
13
  var ENVIRONMENT_IS_NODE = ((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node) && ((_c = globalThis.process) === null || _c === void 0 ? void 0 : _c.type) != "renderer";
14
14
  if (ENVIRONMENT_IS_NODE) {
15
15
  const { createRequire } = yield ((m)=>import(/* @vite-ignore */ /* webpackIgnore: true */ m))("node:module");
16
- var require$1 = createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href)));
16
+ var require$1 = createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href)));
17
17
  }
18
18
  var quit_ = (status, toThrow) => { throw toThrow; };
19
- var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href));
19
+ var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href));
20
20
  var scriptDirectory = "";
21
21
  function locateFile(path) { if (Module["locateFile"]) {
22
22
  return Module["locateFile"](path, scriptDirectory);
@@ -83,7 +83,7 @@ function AimerModule() {
83
83
  var wasmBinaryFile;
84
84
  function findWasmBinary() { if (Module["locateFile"]) {
85
85
  return locateFile("crypto_aimer.wasm");
86
- } return new URL("crypto_aimer.wasm", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href))).href; }
86
+ } return new URL("crypto_aimer.wasm", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href))).href; }
87
87
  function getBinarySync(file) { if (file == wasmBinaryFile && wasmBinary) {
88
88
  return new Uint8Array(wasmBinary);
89
89
  } if (readBinary) {
@@ -335,9 +335,9 @@ function HaetaeModule() {
335
335
  var ENVIRONMENT_IS_NODE = ((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node) && ((_c = globalThis.process) === null || _c === void 0 ? void 0 : _c.type) != "renderer";
336
336
  if (ENVIRONMENT_IS_NODE) {
337
337
  const { createRequire } = yield ((m)=>import(/* @vite-ignore */ /* webpackIgnore: true */ m))("node:module");
338
- var require$1 = createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href)));
338
+ var require$1 = createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href)));
339
339
  }
340
- var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href));
340
+ var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href));
341
341
  var scriptDirectory = "";
342
342
  function locateFile(path) { if (Module["locateFile"]) {
343
343
  return Module["locateFile"](path, scriptDirectory);
@@ -405,7 +405,7 @@ function HaetaeModule() {
405
405
  var wasmBinaryFile;
406
406
  function findWasmBinary() { if (Module["locateFile"]) {
407
407
  return locateFile("crypto_haetae.wasm");
408
- } return new URL("crypto_haetae.wasm", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href))).href; }
408
+ } return new URL("crypto_haetae.wasm", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href))).href; }
409
409
  function getBinarySync(file) { if (file == wasmBinaryFile && wasmBinary) {
410
410
  return new Uint8Array(wasmBinary);
411
411
  } if (readBinary) {
@@ -1641,9 +1641,9 @@ function SmaugtModule() {
1641
1641
  var ENVIRONMENT_IS_NODE = ((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node) && ((_c = globalThis.process) === null || _c === void 0 ? void 0 : _c.type) != "renderer";
1642
1642
  if (ENVIRONMENT_IS_NODE) {
1643
1643
  const { createRequire } = yield ((m)=>import(/* @vite-ignore */ /* webpackIgnore: true */ m))("node:module");
1644
- var require$1 = createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href)));
1644
+ var require$1 = createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href)));
1645
1645
  }
1646
- var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href));
1646
+ var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href));
1647
1647
  var scriptDirectory = "";
1648
1648
  function locateFile(path) { if (Module["locateFile"]) {
1649
1649
  return Module["locateFile"](path, scriptDirectory);
@@ -1711,7 +1711,7 @@ function SmaugtModule() {
1711
1711
  var wasmBinaryFile;
1712
1712
  function findWasmBinary() { if (Module["locateFile"]) {
1713
1713
  return locateFile("crypto_smaugt.wasm");
1714
- } return new URL("crypto_smaugt.wasm", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href))).href; }
1714
+ } return new URL("crypto_smaugt.wasm", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href))).href; }
1715
1715
  function getBinarySync(file) { if (file == wasmBinaryFile && wasmBinary) {
1716
1716
  return new Uint8Array(wasmBinary);
1717
1717
  } if (readBinary) {
@@ -3160,9 +3160,9 @@ globalThis.js_haetae_verify = function (sigBuf, msgBuf, pkBuf) {
3160
3160
  // 정적 리터럴 URL — Vite/Rollup/Webpack5 가 `new URL(<리터럴>, import.meta.url)` 패턴을
3161
3161
  // 정적 분석해서 사용자 빌드의 자산 그래프에 wasm 을 자동 등록할 수 있도록 모듈 최상위에서 선언.
3162
3162
  // override (baseUrl/urls) 가 없을 때만 사용된다.
3163
- const DEFAULT_AIMER_URL = new URL('../autogen/wasm/crypto_aimer.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href)));
3164
- const DEFAULT_SMAUGT_URL = new URL('../autogen/wasm/crypto_smaugt.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href)));
3165
- const DEFAULT_HAETAE_URL = new URL('../autogen/wasm/crypto_haetae.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href)));
3163
+ const DEFAULT_AIMER_URL = new URL('../autogen/wasm/crypto_aimer.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href)));
3164
+ const DEFAULT_SMAUGT_URL = new URL('../autogen/wasm/crypto_smaugt.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href)));
3165
+ const DEFAULT_HAETAE_URL = new URL('../autogen/wasm/crypto_haetae.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href)));
3166
3166
  // AIMER / SMAUGT / HAETAE 의 .wasm 바이너리를 외부에서 받아와 Emscripten 모듈에 주입한다.
3167
3167
  // Module({ wasmBinary }) 가 주어지면 글루는 자체 fetch 를 건너뛰고 그 바이트를 사용한다.
3168
3168
  //
@@ -3179,7 +3179,7 @@ function loadCryptoWasm() {
3179
3179
  if (override) {
3180
3180
  const base = opts.baseUrl
3181
3181
  ? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
3182
- : new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href)));
3182
+ : new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href)));
3183
3183
  return override instanceof URL ? override : new URL(override, base);
3184
3184
  }
3185
3185
  if (opts.baseUrl) {
@@ -3790,7 +3790,7 @@ const lclibWasmConfig = { namespace };
3790
3790
  // 정적 리터럴 URL — Vite/Rollup/Webpack5 가 `new URL(<리터럴>, import.meta.url)` 패턴을
3791
3791
  // 정적 분석해서 사용자 빌드의 자산 그래프에 wasm 을 자동 등록할 수 있도록 모듈 최상위에서 선언.
3792
3792
  // override (baseUrl/urls) 가 없을 때만 사용된다.
3793
- const DEFAULT_LCLIB_URL = new URL('../autogen/wasm/lclib.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href)));
3793
+ const DEFAULT_LCLIB_URL = new URL('../autogen/wasm/lclib.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href)));
3794
3794
  // .wasm 바이너리 4 개(lclib + AIMER/SMAUGT/HAETAE) 를 외부 파일에서 fetch 해서 로드한다.
3795
3795
  //
3796
3796
  // opts:
@@ -3807,7 +3807,7 @@ function load() {
3807
3807
  if ((_b = opts.urls) === null || _b === void 0 ? void 0 : _b.lclib) {
3808
3808
  const base = opts.baseUrl
3809
3809
  ? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
3810
- : new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-rGyKpClJ.cjs', document.baseURI).href)));
3810
+ : new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/wasm-DDrQluVO.cjs', document.baseURI).href)));
3811
3811
  lclibUrl = opts.urls.lclib instanceof URL ? opts.urls.lclib : new URL(opts.urls.lclib, base);
3812
3812
  }
3813
3813
  else if (opts.baseUrl) {
@@ -3841,5 +3841,226 @@ function load() {
3841
3841
  });
3842
3842
  }
3843
3843
 
3844
+ // Automatically generated file. DO NOT EDIT.
3845
+ const callWasm = (cmd, params) => {
3846
+ // @ts-ignore
3847
+ let callLclib = globalThis["CallLclib"];
3848
+ // @ts-ignore
3849
+ if (namespace && globalThis[namespace]) {
3850
+ // @ts-ignore
3851
+ callLclib = globalThis[namespace]["CallLclib"];
3852
+ }
3853
+ // @ts-ignore
3854
+ if (typeof callLclib !== "function")
3855
+ throw new Error("Wasm module is not loaded. Please call loadWasm or loadWasmSync first.");
3856
+ // @ts-ignore
3857
+ const resultString = callLclib(cmd, JSON.stringify(params));
3858
+ const result = JSON.parse(resultString);
3859
+ if (result.error && result.error.code != 0) {
3860
+ // throw a real Error so message is preserved; attach code and other fields.
3861
+ const error = new Error(result.error.message || ("wasm error code " + result.error.code));
3862
+ Object.assign(error, result.error);
3863
+ throw error;
3864
+ }
3865
+ else {
3866
+ return result.result;
3867
+ }
3868
+ };
3869
+ const calculateTxLinkHash = (params) => {
3870
+ return callWasm('calculateTxLinkHash', [params]);
3871
+ };
3872
+ const compileCoreScript = (params) => {
3873
+ return callWasm('compileCoreScript', [params]);
3874
+ };
3875
+ const convertAddressToData = (addrEncoded) => {
3876
+ return callWasm('convertAddressToData', [addrEncoded]);
3877
+ };
3878
+ const convertAddressToHex = (addrEncoded) => {
3879
+ return callWasm('convertAddressToHex', [addrEncoded]);
3880
+ };
3881
+ const convertBase32ToData = (encoded) => {
3882
+ return callWasm('convertBase32ToData', [encoded]);
3883
+ };
3884
+ const convertBase32ToHex = (encoded) => {
3885
+ return callWasm('convertBase32ToHex', [encoded]);
3886
+ };
3887
+ const convertCurrency = (params) => {
3888
+ return callWasm('convertCurrency', [params]);
3889
+ };
3890
+ const convertDataTo = (value, retType) => {
3891
+ return callWasm('convertDataTo', [value, retType]);
3892
+ };
3893
+ const convertDataToAddress = (str) => {
3894
+ return callWasm('convertDataToAddress', [str]);
3895
+ };
3896
+ const convertDataToBase32 = (str) => {
3897
+ return callWasm('convertDataToBase32', [str]);
3898
+ };
3899
+ const convertDataToHex = (str) => {
3900
+ return callWasm('convertDataToHex', [str]);
3901
+ };
3902
+ const convertDataToString = (str) => {
3903
+ return callWasm('convertDataToString', [str]);
3904
+ };
3905
+ const convertHexToAddress = (hexString) => {
3906
+ return callWasm('convertHexToAddress', [hexString]);
3907
+ };
3908
+ const convertHexToBase32 = (hexString) => {
3909
+ return callWasm('convertHexToBase32', [hexString]);
3910
+ };
3911
+ const convertHexToData = (encoded) => {
3912
+ return callWasm('convertHexToData', [encoded]);
3913
+ };
3914
+ const convertStringToData = (raw) => {
3915
+ return callWasm('convertStringToData', [raw]);
3916
+ };
3917
+ const convertToData = (value, valueType) => {
3918
+ return callWasm('convertToData', [value, valueType]);
3919
+ };
3920
+ const createAccountAndKeystore = (params) => {
3921
+ return callWasm('createAccountAndKeystore', [params]);
3922
+ };
3923
+ const createMasterKeystore = (params) => {
3924
+ return callWasm('createMasterKeystore', [params]);
3925
+ };
3926
+ const createNormalKey = (params) => {
3927
+ return callWasm('createNormalKey', [params]);
3928
+ };
3929
+ const createNormalKeystore = (params) => {
3930
+ return callWasm('createNormalKeystore', [params]);
3931
+ };
3932
+ const decodeSubId = (subIdString) => {
3933
+ return callWasm('decodeSubId', [subIdString]);
3934
+ };
3935
+ const decodeTxs = (params) => {
3936
+ return callWasm('decodeTxs', [params]);
3937
+ };
3938
+ const deriveKeysFromMnemonic = (params) => {
3939
+ return callWasm('deriveKeysFromMnemonic', [params]);
3940
+ };
3941
+ const deriveKeysFromMnemonicAndPath = (params) => {
3942
+ return callWasm('deriveKeysFromMnemonicAndPath', [params]);
3943
+ };
3944
+ const disCompileCoreScript = (params) => {
3945
+ return callWasm('disCompileCoreScript', [params]);
3946
+ };
3947
+ const encodeFuncData = (op, dataHex) => {
3948
+ return callWasm('encodeFuncData', [op, dataHex]);
3949
+ };
3950
+ const encodeSubId = (hexString) => {
3951
+ return callWasm('encodeSubId', [hexString]);
3952
+ };
3953
+ const encodeTxCurrency = (params) => {
3954
+ return callWasm('encodeTxCurrency', [params]);
3955
+ };
3956
+ const encodeTxNumber = (params) => {
3957
+ return callWasm('encodeTxNumber', [params]);
3958
+ };
3959
+ const generateMnemonic = (params) => {
3960
+ return callWasm('generateMnemonic', [params]);
3961
+ };
3962
+ const generateMnemonicBySeed = (params) => {
3963
+ return callWasm('generateMnemonicBySeed', [params]);
3964
+ };
3965
+ const getDefFromCoreScript = (params) => {
3966
+ return callWasm('getDefFromCoreScript', [params]);
3967
+ };
3968
+ const getHomeShard = (params) => {
3969
+ return callWasm('getHomeShard', [params]);
3970
+ };
3971
+ const getLibraryVersions = () => {
3972
+ return callWasm('getLibraryVersions', []);
3973
+ };
3974
+ const gzipAndEncode = (str) => {
3975
+ return callWasm('gzipAndEncode', [str]);
3976
+ };
3977
+ const hash = (params) => {
3978
+ return callWasm('hash', [params]);
3979
+ };
3980
+ const isGrantConsumingTx = (txTypeStr) => {
3981
+ return callWasm('isGrantConsumingTx', [txTypeStr]);
3982
+ };
3983
+ const loadMasterKeystore = (params) => {
3984
+ return callWasm('loadMasterKeystore', [params]);
3985
+ };
3986
+ const loadNormalKeystore = (params) => {
3987
+ return callWasm('loadNormalKeystore', [params]);
3988
+ };
3989
+ const makeCurrency = (params) => {
3990
+ return callWasm('makeCurrency', [params]);
3991
+ };
3992
+ const sign = (param) => {
3993
+ return callWasm('sign', [param]);
3994
+ };
3995
+ const signByMasterKey = (params) => {
3996
+ return callWasm('signByMasterKey', [params]);
3997
+ };
3998
+ const signKeyBind = (params) => {
3999
+ return callWasm('signKeyBind', [params]);
4000
+ };
4001
+ const testCoreScript = (params) => {
4002
+ return callWasm('testCoreScript', [params]);
4003
+ };
4004
+ const verify = (params) => {
4005
+ return callWasm('verify', [params]);
4006
+ };
4007
+ const verifyByMasterKey = (params) => {
4008
+ return callWasm('verifyByMasterKey', [params]);
4009
+ };
4010
+ const verifyMerkleProof = (params) => {
4011
+ return callWasm('verifyMerkleProof', [params]);
4012
+ };
4013
+ const verifyTx = (jsonTx) => {
4014
+ return callWasm('verifyTx', [jsonTx]);
4015
+ };
4016
+
4017
+ exports.calculateTxLinkHash = calculateTxLinkHash;
4018
+ exports.compileCoreScript = compileCoreScript;
4019
+ exports.convertAddressToData = convertAddressToData;
4020
+ exports.convertAddressToHex = convertAddressToHex;
4021
+ exports.convertBase32ToData = convertBase32ToData;
4022
+ exports.convertBase32ToHex = convertBase32ToHex;
4023
+ exports.convertCurrency = convertCurrency;
4024
+ exports.convertDataTo = convertDataTo;
4025
+ exports.convertDataToAddress = convertDataToAddress;
4026
+ exports.convertDataToBase32 = convertDataToBase32;
4027
+ exports.convertDataToHex = convertDataToHex;
4028
+ exports.convertDataToString = convertDataToString;
4029
+ exports.convertHexToAddress = convertHexToAddress;
4030
+ exports.convertHexToBase32 = convertHexToBase32;
4031
+ exports.convertHexToData = convertHexToData;
4032
+ exports.convertStringToData = convertStringToData;
4033
+ exports.convertToData = convertToData;
4034
+ exports.createAccountAndKeystore = createAccountAndKeystore;
4035
+ exports.createMasterKeystore = createMasterKeystore;
4036
+ exports.createNormalKey = createNormalKey;
4037
+ exports.createNormalKeystore = createNormalKeystore;
4038
+ exports.decodeSubId = decodeSubId;
4039
+ exports.decodeTxs = decodeTxs;
4040
+ exports.deriveKeysFromMnemonic = deriveKeysFromMnemonic;
4041
+ exports.deriveKeysFromMnemonicAndPath = deriveKeysFromMnemonicAndPath;
4042
+ exports.disCompileCoreScript = disCompileCoreScript;
4043
+ exports.encodeFuncData = encodeFuncData;
4044
+ exports.encodeSubId = encodeSubId;
4045
+ exports.encodeTxCurrency = encodeTxCurrency;
4046
+ exports.encodeTxNumber = encodeTxNumber;
4047
+ exports.generateMnemonic = generateMnemonic;
4048
+ exports.generateMnemonicBySeed = generateMnemonicBySeed;
4049
+ exports.getDefFromCoreScript = getDefFromCoreScript;
4050
+ exports.getHomeShard = getHomeShard;
4051
+ exports.getLibraryVersions = getLibraryVersions;
4052
+ exports.gzipAndEncode = gzipAndEncode;
4053
+ exports.hash = hash;
4054
+ exports.isGrantConsumingTx = isGrantConsumingTx;
3844
4055
  exports.load = load;
3845
- exports.namespace = namespace;
4056
+ exports.loadMasterKeystore = loadMasterKeystore;
4057
+ exports.loadNormalKeystore = loadNormalKeystore;
4058
+ exports.makeCurrency = makeCurrency;
4059
+ exports.sign = sign;
4060
+ exports.signByMasterKey = signByMasterKey;
4061
+ exports.signKeyBind = signKeyBind;
4062
+ exports.testCoreScript = testCoreScript;
4063
+ exports.verify = verify;
4064
+ exports.verifyByMasterKey = verifyByMasterKey;
4065
+ exports.verifyMerkleProof = verifyMerkleProof;
4066
+ exports.verifyTx = verifyTx;
@@ -33,6 +33,7 @@ export declare function createLocusWalletClient(args: CreateLocusWalletClientArg
33
33
  readonly createContract: (param: import("../index.cjs").ParamsCreateContract) => Promise<import("../index.cjs").RpcCreateTxResult>;
34
34
  readonly createSynthAccount: (param: import("../index.cjs").ParamsCreateSynthAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
35
35
  readonly postDataToSynthAccount: (param: import("../index.cjs").ParamsPostDataToSynthAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
36
+ readonly directCall: (param: import("../index.cjs").ParamsBuildDirectCall) => Promise<import("../index.cjs").RpcDirectCallResult>;
36
37
  readonly acceptScript: (params: import("../index.cjs").ParamsAcceptScript) => Promise<import("../index.cjs").RpcCreateTxResult>;
37
38
  readonly becomeGuest: (param: import("../index.cjs").ParamsBecomeGuest) => Promise<import("../index.cjs").RpcCreateTxResult>;
38
39
  readonly becomeHost: (param: import("../index.cjs").ParamsBecomeHost) => Promise<import("../index.cjs").RpcCreateTxResult>;
@@ -33,6 +33,7 @@ export declare function createLocusWalletClient(args: CreateLocusWalletClientArg
33
33
  readonly createContract: (param: import("../index.mjs").ParamsCreateContract) => Promise<import("../index.mjs").RpcCreateTxResult>;
34
34
  readonly createSynthAccount: (param: import("../index.mjs").ParamsCreateSynthAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
35
35
  readonly postDataToSynthAccount: (param: import("../index.mjs").ParamsPostDataToSynthAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
36
+ readonly directCall: (param: import("../index.mjs").ParamsBuildDirectCall) => Promise<import("../index.mjs").RpcDirectCallResult>;
36
37
  readonly acceptScript: (params: import("../index.mjs").ParamsAcceptScript) => Promise<import("../index.mjs").RpcCreateTxResult>;
37
38
  readonly becomeGuest: (param: import("../index.mjs").ParamsBecomeGuest) => Promise<import("../index.mjs").RpcCreateTxResult>;
38
39
  readonly becomeHost: (param: import("../index.mjs").ParamsBecomeHost) => Promise<import("../index.mjs").RpcCreateTxResult>;
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/lclib-Bv86gksL', '../chunks/debugWalletActions-DoZUAnEj', '../chunks/tslib.es6-D29rxPkW', '../transports/index.amd', '../chunks/rpc-C4n7t9y0', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8', '../chunks/transport-BBAz1kmP'], (function (exports, lclib, debugWalletActions, tslib_es6, transports, rpc, base, account, transport) { 'use strict';
1
+ define(['exports', '../chunks/wasm-BQYfcIX8', '../chunks/debugWalletActions-Eu-0KUqt', '../chunks/tslib.es6-D29rxPkW', '../transports/index.amd', '../chunks/rpc-C4n7t9y0', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8', '../chunks/transport-BBAz1kmP'], (function (exports, wasm, debugWalletActions, tslib_es6, transports, rpc, base, account, transport) { 'use strict';
2
2
 
3
3
  function createClient(args) {
4
4
  var _a;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- require('../chunks/lclib-rGyKpClJ.cjs');
4
- var debugWalletActions = require('../chunks/debugWalletActions-BWSVjiFW.cjs');
3
+ require('../chunks/wasm-DDrQluVO.cjs');
4
+ var debugWalletActions = require('../chunks/debugWalletActions-DEdW7RNn.cjs');
5
5
  require('../chunks/tslib.es6-Cfi3-HmA.cjs');
6
6
  var transports = require('../transports/index.cjs.cjs');
7
7
  require('../chunks/rpc-DwWIkUva.cjs');
@@ -1,5 +1,5 @@
1
- import '../chunks/lclib-j2x9RvDY.js';
2
- import { az as publicActions, Y as debugPublicActions, aU as walletActions, Z as debugWalletActions } from '../chunks/debugWalletActions-LMoV1T5I.js';
1
+ import '../chunks/wasm-B1dWd6ix.js';
2
+ import { az as publicActions, Y as debugPublicActions, aU as walletActions, Z as debugWalletActions } from '../chunks/debugWalletActions-BIr5g97C.js';
3
3
  import '../chunks/tslib.es6-WQS2tr1v.js';
4
4
  import { http } from '../transports/index.esm.js';
5
5
  import '../chunks/rpc-BlPk44QH.js';
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-Dyjdmlv8'], (function (exports, addressClass, txType) { 'use strict';
1
+ define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-BFIIZuLV'], (function (exports, addressClass, txType) { 'use strict';
2
2
 
3
3
  // Automatically generated file. DO NOT EDIT.
4
4
  const CurrencyUnit = Object.freeze({
@@ -156,14 +156,14 @@ define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-Dyjdml
156
156
  "fee": "10000000000000",
157
157
  "grant": 0,
158
158
  "sizeBased": false,
159
- "useGrant": true,
159
+ "useGrant": false,
160
160
  "useFee": false
161
161
  },
162
- "TX_CALL_VME_FEE": {
162
+ "TX_CALL_VME_G": {
163
163
  "fee": "10000000000000",
164
164
  "grant": 0,
165
165
  "sizeBased": false,
166
- "useGrant": false,
166
+ "useGrant": true,
167
167
  "useFee": false
168
168
  },
169
169
  "TX_CHANGE_FOUNDATION_ACCOUNT": {
@@ -195,47 +195,47 @@ define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-Dyjdml
195
195
  "useFee": false
196
196
  },
197
197
  "TX_CREATE_ASSETOBJECT": {
198
- "fee": "10000000000000",
199
- "grant": 1000,
200
- "sizeBased": false,
201
- "useGrant": true,
202
- "useFee": false
203
- },
204
- "TX_CREATE_ASSETOBJECT_FEE": {
205
198
  "fee": "1000000000000000",
206
199
  "grant": 0,
207
200
  "sizeBased": false,
208
201
  "useGrant": false,
209
202
  "useFee": true
210
203
  },
211
- "TX_CREATE_SA": {
204
+ "TX_CREATE_ASSETOBJECT_G": {
212
205
  "fee": "10000000000000",
213
206
  "grant": 1000,
214
207
  "sizeBased": false,
215
208
  "useGrant": true,
216
209
  "useFee": false
217
210
  },
218
- "TX_CREATE_SA_FEE": {
211
+ "TX_CREATE_SA": {
219
212
  "fee": "1000000000000000",
220
213
  "grant": 0,
221
214
  "sizeBased": false,
222
215
  "useGrant": false,
223
216
  "useFee": true
224
217
  },
225
- "TX_CREATE_TOKEN": {
218
+ "TX_CREATE_SA_G": {
226
219
  "fee": "10000000000000",
227
220
  "grant": 1000,
228
221
  "sizeBased": false,
229
222
  "useGrant": true,
230
223
  "useFee": false
231
224
  },
232
- "TX_CREATE_TOKEN_FEE": {
225
+ "TX_CREATE_TOKEN": {
233
226
  "fee": "1000000000000000",
234
227
  "grant": 0,
235
228
  "sizeBased": false,
236
229
  "useGrant": false,
237
230
  "useFee": true
238
231
  },
232
+ "TX_CREATE_TOKEN_G": {
233
+ "fee": "10000000000000",
234
+ "grant": 1000,
235
+ "sizeBased": false,
236
+ "useGrant": true,
237
+ "useFee": false
238
+ },
239
239
  "TX_CREATE_VME": {
240
240
  "fee": "1000000000000000",
241
241
  "grant": 0,
@@ -314,33 +314,33 @@ define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-Dyjdml
314
314
  "useFee": false
315
315
  },
316
316
  "TX_POST_DATA": {
317
- "fee": "10000000000000",
318
- "grant": 1000,
319
- "sizeBased": false,
320
- "useGrant": true,
321
- "useFee": false
322
- },
323
- "TX_POST_DATA_FEE": {
324
317
  "fee": "0",
325
318
  "grant": 0,
326
319
  "sizeBased": true,
327
320
  "useGrant": false,
328
321
  "useFee": true
329
322
  },
330
- "TX_POST_DATA_SA": {
323
+ "TX_POST_DATA_G": {
331
324
  "fee": "10000000000000",
332
325
  "grant": 1000,
333
326
  "sizeBased": false,
334
327
  "useGrant": true,
335
328
  "useFee": false
336
329
  },
337
- "TX_POST_DATA_SA_FEE": {
330
+ "TX_POST_DATA_SA": {
338
331
  "fee": "0",
339
332
  "grant": 0,
340
333
  "sizeBased": true,
341
334
  "useGrant": false,
342
335
  "useFee": true
343
336
  },
337
+ "TX_POST_DATA_SA_G": {
338
+ "fee": "10000000000000",
339
+ "grant": 1000,
340
+ "sizeBased": false,
341
+ "useGrant": true,
342
+ "useFee": false
343
+ },
344
344
  "TX_PROVIDE_SCRIPT": {
345
345
  "fee": "0",
346
346
  "grant": 0,
@@ -363,61 +363,61 @@ define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-Dyjdml
363
363
  "useFee": true
364
364
  },
365
365
  "TX_TRANSFER_ALL_RES": {
366
- "fee": "10000000000000",
367
- "grant": 1000,
368
- "sizeBased": false,
369
- "useGrant": true,
370
- "useFee": false
371
- },
372
- "TX_TRANSFER_ALL_RES_FEE": {
373
366
  "fee": "0",
374
367
  "grant": 0,
375
368
  "sizeBased": true,
376
369
  "useGrant": false,
377
370
  "useFee": true
378
371
  },
379
- "TX_TRANSFER_ASSETOBJECT": {
372
+ "TX_TRANSFER_ALL_RES_G": {
380
373
  "fee": "10000000000000",
381
374
  "grant": 1000,
382
375
  "sizeBased": false,
383
376
  "useGrant": true,
384
377
  "useFee": false
385
378
  },
386
- "TX_TRANSFER_ASSETOBJECT_FEE": {
379
+ "TX_TRANSFER_ASSETOBJECT": {
387
380
  "fee": "20000000000000",
388
381
  "grant": 0,
389
382
  "sizeBased": false,
390
383
  "useGrant": false,
391
384
  "useFee": true
392
385
  },
393
- "TX_TRANSFER_COIN": {
386
+ "TX_TRANSFER_ASSETOBJECT_G": {
394
387
  "fee": "10000000000000",
395
388
  "grant": 1000,
396
389
  "sizeBased": false,
397
390
  "useGrant": true,
398
391
  "useFee": false
399
392
  },
400
- "TX_TRANSFER_COIN_FEE": {
393
+ "TX_TRANSFER_COIN": {
401
394
  "fee": "10000000000000",
402
395
  "grant": 0,
403
396
  "sizeBased": false,
404
397
  "useGrant": false,
405
398
  "useFee": true
406
399
  },
407
- "TX_TRANSFER_TOKEN": {
400
+ "TX_TRANSFER_COIN_G": {
408
401
  "fee": "10000000000000",
409
402
  "grant": 1000,
410
403
  "sizeBased": false,
411
404
  "useGrant": true,
412
405
  "useFee": false
413
406
  },
414
- "TX_TRANSFER_TOKEN_FEE": {
407
+ "TX_TRANSFER_TOKEN": {
415
408
  "fee": "0",
416
409
  "grant": 0,
417
410
  "sizeBased": true,
418
411
  "useGrant": false,
419
412
  "useFee": true
420
413
  },
414
+ "TX_TRANSFER_TOKEN_G": {
415
+ "fee": "10000000000000",
416
+ "grant": 1000,
417
+ "sizeBased": false,
418
+ "useGrant": true,
419
+ "useFee": false
420
+ },
421
421
  "TX_UNLOCK_STAKE": {
422
422
  "fee": "10000000000000",
423
423
  "grant": 0,