@locuschain/lib 0.1.38 → 0.1.40

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 (51) hide show
  1. package/dist/accounts/index.amd.js +306 -0
  2. package/dist/accounts/index.cjs.cjs +2 -2
  3. package/dist/accounts/index.esm.js +2 -2
  4. package/dist/autogen/index.amd.js +151 -0
  5. package/dist/autogen/index.cjs.cjs +2 -2
  6. package/dist/autogen/index.esm.js +2 -2
  7. package/dist/chunks/account-BSrvZ7S8.js +77 -0
  8. package/dist/chunks/address-class-Dp7aNQb2.js +18 -0
  9. package/dist/chunks/base-B_kRRfsf.js +27 -0
  10. package/dist/chunks/debugWalletActions-BDz-h2tl.js +993 -0
  11. package/dist/chunks/{keystore-BFVSylSw.js → keystore-B86UzV8A.js} +1 -1
  12. package/dist/chunks/{keystore-BbK5pVrh.cjs → keystore-BUskzeOs.cjs} +1 -1
  13. package/dist/chunks/keystore-y1JlFTKh.js +143 -0
  14. package/dist/chunks/lclib-Bv86gksL.js +3861 -0
  15. package/dist/chunks/{lclib-C2eG5HzD.js → lclib-j2x9RvDY.js} +55 -32
  16. package/dist/chunks/{lclib-DuoOR0-Q.cjs → lclib-rGyKpClJ.cjs} +64 -41
  17. package/dist/chunks/rpc-C4n7t9y0.js +25 -0
  18. package/dist/chunks/transport-BBAz1kmP.js +30 -0
  19. package/dist/chunks/tslib.es6-D29rxPkW.js +37 -0
  20. package/dist/chunks/tx-type-CS4wIUJ8.js +68 -0
  21. package/dist/chunks/{wasm-DTyHBxcY.cjs → wasm-BYOKRR31.cjs} +1 -1
  22. package/dist/chunks/{wasm-BtPcXTR4.js → wasm-CLXJDrJA.js} +1 -1
  23. package/dist/chunks/wasm-CkFW222S.js +213 -0
  24. package/dist/clients/index.amd.js +97 -0
  25. package/dist/clients/index.cjs.cjs +1 -1
  26. package/dist/clients/index.esm.js +1 -1
  27. package/dist/constant/index.amd.js +458 -0
  28. package/dist/contracts/index.amd.js +19640 -0
  29. package/dist/contracts/index.cjs.cjs +2 -2
  30. package/dist/contracts/index.esm.js +2 -2
  31. package/dist/errors/index.amd.js +17 -0
  32. package/dist/index.amd.js +43 -0
  33. package/dist/index.cjs.cjs +3 -3
  34. package/dist/index.esm.js +3 -3
  35. package/dist/transports/index.amd.js +98 -0
  36. package/dist/utils/index.amd.js +353 -0
  37. package/dist/utils/index.cjs.cjs +3 -3
  38. package/dist/utils/index.esm.js +4 -4
  39. package/dist/vite-plugin/index.amd.js +186 -0
  40. package/dist/vite-plugin/index.cjs.cjs +189 -0
  41. package/dist/vite-plugin/index.d.cts +46 -0
  42. package/dist/vite-plugin/index.d.mts +46 -0
  43. package/dist/vite-plugin/index.esm.js +183 -0
  44. package/dist/webpack-plugin/index.amd.js +101 -0
  45. package/dist/webpack-plugin/index.cjs.cjs +104 -0
  46. package/dist/webpack-plugin/index.d.cts +46 -0
  47. package/dist/webpack-plugin/index.d.mts +46 -0
  48. package/dist/webpack-plugin/index.esm.js +98 -0
  49. package/package.json +36 -6
  50. package/dist/index.umd.d.mts +0 -15
  51. package/dist/umd/index.umd.js +0 -26296
@@ -9,7 +9,7 @@ function AimerModule() {
9
9
  var ENVIRONMENT_IS_WORKER = !!globalThis.WorkerGlobalScope;
10
10
  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";
11
11
  if (ENVIRONMENT_IS_NODE) {
12
- const { createRequire } = yield import('node:module');
12
+ const { createRequire } = yield ((m)=>import(/* @vite-ignore */ /* webpackIgnore: true */ m))("node:module");
13
13
  var require = createRequire(import.meta.url);
14
14
  }
15
15
  var quit_ = (status, toThrow) => { throw toThrow; };
@@ -331,7 +331,7 @@ function HaetaeModule() {
331
331
  var ENVIRONMENT_IS_WORKER = !!globalThis.WorkerGlobalScope;
332
332
  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";
333
333
  if (ENVIRONMENT_IS_NODE) {
334
- const { createRequire } = yield import('node:module');
334
+ const { createRequire } = yield ((m)=>import(/* @vite-ignore */ /* webpackIgnore: true */ m))("node:module");
335
335
  var require = createRequire(import.meta.url);
336
336
  }
337
337
  var _scriptName = import.meta.url;
@@ -1637,7 +1637,7 @@ function SmaugtModule() {
1637
1637
  var ENVIRONMENT_IS_WORKER = !!globalThis.WorkerGlobalScope;
1638
1638
  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";
1639
1639
  if (ENVIRONMENT_IS_NODE) {
1640
- const { createRequire } = yield import('node:module');
1640
+ const { createRequire } = yield ((m)=>import(/* @vite-ignore */ /* webpackIgnore: true */ m))("node:module");
1641
1641
  var require = createRequire(import.meta.url);
1642
1642
  }
1643
1643
  var _scriptName = import.meta.url;
@@ -2943,6 +2943,13 @@ function SmaugtModule() {
2943
2943
  // 이 함수의 시그니처 (url: URL) => Promise<Uint8Array> 와 동일하면 된다.
2944
2944
  var _a, _b;
2945
2945
  const isNode = !!((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node);
2946
+ // node:* 모듈을 동적으로 로드할 때 import 인자를 변수로 우회한다.
2947
+ // 리터럴 dynamic import (`import('node:fs/promises')`) 는 Vite/Rollup 의
2948
+ // 정적 분석에 잡혀 browser 빌드에서 "Module 'node:*' has been externalized
2949
+ // for browser compatibility" 경고를 띄운다. 변수로 인자를 감싸면 정적
2950
+ // 분석을 회피하고, Node 런타임에서는 그대로 동적 import 가 된다.
2951
+ // 이 함수의 isNode 가드 안에서만 호출되므로 browser 런타임에서는 도달하지 않는다.
2952
+ const _dynImport = (m) => import(/* @vite-ignore */ /* webpackIgnore: true */ m);
2946
2953
  /**
2947
2954
  * .wasm 바이너리를 Uint8Array 로 가져온다.
2948
2955
  * @param {URL | string} input
@@ -2954,8 +2961,8 @@ function fetchWasmBytes(input) {
2954
2961
  // Node 에서 패키지 동봉 파일 (file://) 은 fs 로 직접 읽는 게 가장 빠르고 의존성도 없다.
2955
2962
  if (isNode && url.protocol === 'file:') {
2956
2963
  const [{ readFile }, { fileURLToPath }] = yield Promise.all([
2957
- import('node:fs/promises'),
2958
- import('node:url'),
2964
+ _dynImport('node:fs/promises'),
2965
+ _dynImport('node:url'),
2959
2966
  ]);
2960
2967
  const buf = yield readFile(fileURLToPath(url));
2961
2968
  return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
@@ -3147,32 +3154,41 @@ globalThis.js_haetae_verify = function (sigBuf, msgBuf, pkBuf) {
3147
3154
  haetaeC._free(pkPtr);
3148
3155
  return { ret: ret };
3149
3156
  };
3157
+ // 정적 리터럴 URL — Vite/Rollup/Webpack5 가 `new URL(<리터럴>, import.meta.url)` 패턴을
3158
+ // 정적 분석해서 사용자 빌드의 자산 그래프에 wasm 을 자동 등록할 수 있도록 모듈 최상위에서 선언.
3159
+ // override (baseUrl/urls) 가 없을 때만 사용된다.
3160
+ const DEFAULT_AIMER_URL = new URL('../autogen/wasm/crypto_aimer.wasm', import.meta.url);
3161
+ const DEFAULT_SMAUGT_URL = new URL('../autogen/wasm/crypto_smaugt.wasm', import.meta.url);
3162
+ const DEFAULT_HAETAE_URL = new URL('../autogen/wasm/crypto_haetae.wasm', import.meta.url);
3150
3163
  // AIMER / SMAUGT / HAETAE 의 .wasm 바이너리를 외부에서 받아와 Emscripten 모듈에 주입한다.
3151
3164
  // Module({ wasmBinary }) 가 주어지면 글루는 자체 fetch 를 건너뛰고 그 바이트를 사용한다.
3152
3165
  //
3153
3166
  // opts:
3154
3167
  // baseUrl?: URL | string — 기본은 이 파일이 위치한 디렉토리(=dist/utils/...) 기준 ./autogen/wasm/.
3155
- // 번들 후 디렉토리 구조가 달라지면 호출자가 명시 주입해야 한다.
3156
3168
  // urls?: { aimer, smaugt, haetae } — 개별 파일 override
3157
3169
  // fetcher?: (url: URL) => Promise<Uint8Array> — 완전 커스텀 (CDN/캐시/모킹)
3158
3170
  function loadCryptoWasm() {
3159
3171
  return __awaiter(this, arguments, void 0, function* (opts = {}) {
3160
3172
  var _a, _b, _c, _d;
3161
- // opts.baseUrl 이 주어지면 그대로 base 로 쓴다. import.meta.url 을 거치지 않는 이유:
3162
- // chrome-extension MV3 의 production 번들 환경에서 import.meta.url 이 빈 문자열로
3163
- // 치환될 수 있어 `new URL(abs, '')` 가 throw 한다. 호출자가 chrome.runtime.getURL()
3164
- // 같은 absolute URL 을 명시 주입한 경우엔 base resolution 자체가 불필요.
3165
- const base = opts.baseUrl
3166
- ? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
3167
- : new URL('../autogen/wasm/', import.meta.url);
3168
3173
  const get = (_a = opts.fetcher) !== null && _a !== void 0 ? _a : fetchWasmBytes;
3169
- const resolve = (override, name) => override
3170
- ? (override instanceof URL ? override : new URL(override, base))
3171
- : new URL(name, base);
3174
+ // 우선순위: opts.urls.* > opts.baseUrl > 정적 리터럴
3175
+ const pick = (override, defaultUrl, name) => {
3176
+ if (override) {
3177
+ const base = opts.baseUrl
3178
+ ? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
3179
+ : new URL('../autogen/wasm/', import.meta.url);
3180
+ return override instanceof URL ? override : new URL(override, base);
3181
+ }
3182
+ if (opts.baseUrl) {
3183
+ const base = opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl);
3184
+ return new URL(name, base);
3185
+ }
3186
+ return defaultUrl;
3187
+ };
3172
3188
  const [aimerBin, smaugtBin, haetaeBin] = yield Promise.all([
3173
- get(resolve((_b = opts.urls) === null || _b === void 0 ? void 0 : _b.aimer, 'crypto_aimer.wasm')),
3174
- get(resolve((_c = opts.urls) === null || _c === void 0 ? void 0 : _c.smaugt, 'crypto_smaugt.wasm')),
3175
- get(resolve((_d = opts.urls) === null || _d === void 0 ? void 0 : _d.haetae, 'crypto_haetae.wasm')),
3189
+ get(pick((_b = opts.urls) === null || _b === void 0 ? void 0 : _b.aimer, DEFAULT_AIMER_URL, 'crypto_aimer.wasm')),
3190
+ get(pick((_c = opts.urls) === null || _c === void 0 ? void 0 : _c.smaugt, DEFAULT_SMAUGT_URL, 'crypto_smaugt.wasm')),
3191
+ get(pick((_d = opts.urls) === null || _d === void 0 ? void 0 : _d.haetae, DEFAULT_HAETAE_URL, 'crypto_haetae.wasm')),
3176
3192
  ]);
3177
3193
  aimerC = yield AimerModule({ wasmBinary: aimerBin });
3178
3194
  smaugtC = yield SmaugtModule({ wasmBinary: smaugtBin });
@@ -3768,32 +3784,39 @@ if (globalThis[LCLIB_SEQ_KEY] === undefined) {
3768
3784
  globalThis[LCLIB_SEQ_KEY] += 1;
3769
3785
  const namespace = `wallet_${globalThis[LCLIB_SEQ_KEY]}`;
3770
3786
  const lclibWasmConfig = { namespace };
3787
+ // 정적 리터럴 URL — Vite/Rollup/Webpack5 가 `new URL(<리터럴>, import.meta.url)` 패턴을
3788
+ // 정적 분석해서 사용자 빌드의 자산 그래프에 wasm 을 자동 등록할 수 있도록 모듈 최상위에서 선언.
3789
+ // override (baseUrl/urls) 가 없을 때만 사용된다.
3790
+ const DEFAULT_LCLIB_URL = new URL('../autogen/wasm/lclib.wasm', import.meta.url);
3771
3791
  // .wasm 바이너리 4 개(lclib + AIMER/SMAUGT/HAETAE) 를 외부 파일에서 fetch 해서 로드한다.
3772
3792
  //
3773
3793
  // opts:
3774
3794
  // baseUrl?: URL | string — wasm 파일들이 놓인 베이스. 기본은 이 모듈 기준 ../autogen/wasm/.
3775
- // 번들 배포 후 디렉토리 구조가 바뀌면 호출자가 명시 주입해야 한다.
3776
3795
  // urls?: { lclib, aimer, smaugt, haetae } — 개별 파일 override (URL | string)
3777
3796
  // fetcher?: (url: URL) => Promise<Uint8Array> — 완전 커스텀 (CDN/캐시/모킹/Node 정적 경로)
3778
3797
  function load() {
3779
3798
  return __awaiter(this, arguments, void 0, function* (opts = {}) {
3780
3799
  var _a, _b;
3781
3800
  try {
3782
- console.log('[lclib.load] opts.baseUrl =', JSON.stringify(opts.baseUrl), 'typeof =', typeof opts.baseUrl, 'import.meta.url =', JSON.stringify(import.meta.url));
3783
- // opts.baseUrl 이 주어지면 그대로 base 로 쓴다. import.meta.url 을 거치지 않는 이유:
3784
- // chrome-extension MV3 의 production 번들 환경에서 import.meta.url 이 빈 문자열로
3785
- // 치환될 수 있어 `new URL(abs, '')` 가 throw 한다. 호출자가 chrome.runtime.getURL()
3786
- // 같은 absolute URL 을 명시 주입한 경우엔 base resolution 자체가 불필요.
3787
- const base = opts.baseUrl
3788
- ? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
3789
- : new URL('../autogen/wasm/', import.meta.url);
3790
3801
  const get = (_a = opts.fetcher) !== null && _a !== void 0 ? _a : fetchWasmBytes;
3791
- const resolve = (override, name) => override
3792
- ? (override instanceof URL ? override : new URL(override, base))
3793
- : new URL(name, base);
3802
+ // 우선순위: opts.urls.lclib > opts.baseUrl > 정적 리터럴
3803
+ let lclibUrl;
3804
+ if ((_b = opts.urls) === null || _b === void 0 ? void 0 : _b.lclib) {
3805
+ const base = opts.baseUrl
3806
+ ? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
3807
+ : new URL('../autogen/wasm/', import.meta.url);
3808
+ lclibUrl = opts.urls.lclib instanceof URL ? opts.urls.lclib : new URL(opts.urls.lclib, base);
3809
+ }
3810
+ else if (opts.baseUrl) {
3811
+ const base = opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl);
3812
+ lclibUrl = new URL('lclib.wasm', base);
3813
+ }
3814
+ else {
3815
+ lclibUrl = DEFAULT_LCLIB_URL;
3816
+ }
3794
3817
  // crypto WASM 3 종과 Go lclib WASM 을 병렬로 다운로드.
3795
3818
  const cryptoPromise = loadCryptoWasm(opts);
3796
- const lclibBytesPromise = get(resolve((_b = opts.urls) === null || _b === void 0 ? void 0 : _b.lclib, 'lclib.wasm'));
3819
+ const lclibBytesPromise = get(lclibUrl);
3797
3820
  let lclibBytes;
3798
3821
  try {
3799
3822
  [, lclibBytes] = yield Promise.all([cryptoPromise, lclibBytesPromise]);
@@ -12,11 +12,11 @@ function AimerModule() {
12
12
  var ENVIRONMENT_IS_WORKER = !!globalThis.WorkerGlobalScope;
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
- const { createRequire } = yield import('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-DuoOR0-Q.cjs', document.baseURI).href)));
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)));
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-DuoOR0-Q.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/lclib-rGyKpClJ.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-DuoOR0-Q.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/lclib-rGyKpClJ.cjs', document.baseURI).href))).href; }
87
87
  function getBinarySync(file) { if (file == wasmBinaryFile && wasmBinary) {
88
88
  return new Uint8Array(wasmBinary);
89
89
  } if (readBinary) {
@@ -334,10 +334,10 @@ function HaetaeModule() {
334
334
  var ENVIRONMENT_IS_WORKER = !!globalThis.WorkerGlobalScope;
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
- const { createRequire } = yield import('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-DuoOR0-Q.cjs', document.baseURI).href)));
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)));
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-DuoOR0-Q.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/lclib-rGyKpClJ.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-DuoOR0-Q.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/lclib-rGyKpClJ.cjs', document.baseURI).href))).href; }
409
409
  function getBinarySync(file) { if (file == wasmBinaryFile && wasmBinary) {
410
410
  return new Uint8Array(wasmBinary);
411
411
  } if (readBinary) {
@@ -1640,10 +1640,10 @@ function SmaugtModule() {
1640
1640
  var ENVIRONMENT_IS_WORKER = !!globalThis.WorkerGlobalScope;
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
- const { createRequire } = yield import('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-DuoOR0-Q.cjs', document.baseURI).href)));
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)));
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-DuoOR0-Q.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/lclib-rGyKpClJ.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-DuoOR0-Q.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/lclib-rGyKpClJ.cjs', document.baseURI).href))).href; }
1715
1715
  function getBinarySync(file) { if (file == wasmBinaryFile && wasmBinary) {
1716
1716
  return new Uint8Array(wasmBinary);
1717
1717
  } if (readBinary) {
@@ -2946,6 +2946,13 @@ function SmaugtModule() {
2946
2946
  // 이 함수의 시그니처 (url: URL) => Promise<Uint8Array> 와 동일하면 된다.
2947
2947
  var _a, _b;
2948
2948
  const isNode = !!((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node);
2949
+ // node:* 모듈을 동적으로 로드할 때 import 인자를 변수로 우회한다.
2950
+ // 리터럴 dynamic import (`import('node:fs/promises')`) 는 Vite/Rollup 의
2951
+ // 정적 분석에 잡혀 browser 빌드에서 "Module 'node:*' has been externalized
2952
+ // for browser compatibility" 경고를 띄운다. 변수로 인자를 감싸면 정적
2953
+ // 분석을 회피하고, Node 런타임에서는 그대로 동적 import 가 된다.
2954
+ // 이 함수의 isNode 가드 안에서만 호출되므로 browser 런타임에서는 도달하지 않는다.
2955
+ const _dynImport = (m) => import(/* @vite-ignore */ /* webpackIgnore: true */ m);
2949
2956
  /**
2950
2957
  * .wasm 바이너리를 Uint8Array 로 가져온다.
2951
2958
  * @param {URL | string} input
@@ -2957,8 +2964,8 @@ function fetchWasmBytes(input) {
2957
2964
  // Node 에서 패키지 동봉 파일 (file://) 은 fs 로 직접 읽는 게 가장 빠르고 의존성도 없다.
2958
2965
  if (isNode && url.protocol === 'file:') {
2959
2966
  const [{ readFile }, { fileURLToPath }] = yield Promise.all([
2960
- import('node:fs/promises'),
2961
- import('node:url'),
2967
+ _dynImport('node:fs/promises'),
2968
+ _dynImport('node:url'),
2962
2969
  ]);
2963
2970
  const buf = yield readFile(fileURLToPath(url));
2964
2971
  return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
@@ -3150,32 +3157,41 @@ globalThis.js_haetae_verify = function (sigBuf, msgBuf, pkBuf) {
3150
3157
  haetaeC._free(pkPtr);
3151
3158
  return { ret: ret };
3152
3159
  };
3160
+ // 정적 리터럴 URL — Vite/Rollup/Webpack5 가 `new URL(<리터럴>, import.meta.url)` 패턴을
3161
+ // 정적 분석해서 사용자 빌드의 자산 그래프에 wasm 을 자동 등록할 수 있도록 모듈 최상위에서 선언.
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)));
3153
3166
  // AIMER / SMAUGT / HAETAE 의 .wasm 바이너리를 외부에서 받아와 Emscripten 모듈에 주입한다.
3154
3167
  // Module({ wasmBinary }) 가 주어지면 글루는 자체 fetch 를 건너뛰고 그 바이트를 사용한다.
3155
3168
  //
3156
3169
  // opts:
3157
3170
  // baseUrl?: URL | string — 기본은 이 파일이 위치한 디렉토리(=dist/utils/...) 기준 ./autogen/wasm/.
3158
- // 번들 후 디렉토리 구조가 달라지면 호출자가 명시 주입해야 한다.
3159
3171
  // urls?: { aimer, smaugt, haetae } — 개별 파일 override
3160
3172
  // fetcher?: (url: URL) => Promise<Uint8Array> — 완전 커스텀 (CDN/캐시/모킹)
3161
3173
  function loadCryptoWasm() {
3162
3174
  return tslib_es6.__awaiter(this, arguments, void 0, function* (opts = {}) {
3163
3175
  var _a, _b, _c, _d;
3164
- // opts.baseUrl 이 주어지면 그대로 base 로 쓴다. import.meta.url 을 거치지 않는 이유:
3165
- // chrome-extension MV3 의 production 번들 환경에서 import.meta.url 이 빈 문자열로
3166
- // 치환될 수 있어 `new URL(abs, '')` 가 throw 한다. 호출자가 chrome.runtime.getURL()
3167
- // 같은 absolute URL 을 명시 주입한 경우엔 base resolution 자체가 불필요.
3168
- const base = opts.baseUrl
3169
- ? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
3170
- : new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-DuoOR0-Q.cjs', document.baseURI).href)));
3171
3176
  const get = (_a = opts.fetcher) !== null && _a !== void 0 ? _a : fetchWasmBytes;
3172
- const resolve = (override, name) => override
3173
- ? (override instanceof URL ? override : new URL(override, base))
3174
- : new URL(name, base);
3177
+ // 우선순위: opts.urls.* > opts.baseUrl > 정적 리터럴
3178
+ const pick = (override, defaultUrl, name) => {
3179
+ if (override) {
3180
+ const base = opts.baseUrl
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)));
3183
+ return override instanceof URL ? override : new URL(override, base);
3184
+ }
3185
+ if (opts.baseUrl) {
3186
+ const base = opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl);
3187
+ return new URL(name, base);
3188
+ }
3189
+ return defaultUrl;
3190
+ };
3175
3191
  const [aimerBin, smaugtBin, haetaeBin] = yield Promise.all([
3176
- get(resolve((_b = opts.urls) === null || _b === void 0 ? void 0 : _b.aimer, 'crypto_aimer.wasm')),
3177
- get(resolve((_c = opts.urls) === null || _c === void 0 ? void 0 : _c.smaugt, 'crypto_smaugt.wasm')),
3178
- get(resolve((_d = opts.urls) === null || _d === void 0 ? void 0 : _d.haetae, 'crypto_haetae.wasm')),
3192
+ get(pick((_b = opts.urls) === null || _b === void 0 ? void 0 : _b.aimer, DEFAULT_AIMER_URL, 'crypto_aimer.wasm')),
3193
+ get(pick((_c = opts.urls) === null || _c === void 0 ? void 0 : _c.smaugt, DEFAULT_SMAUGT_URL, 'crypto_smaugt.wasm')),
3194
+ get(pick((_d = opts.urls) === null || _d === void 0 ? void 0 : _d.haetae, DEFAULT_HAETAE_URL, 'crypto_haetae.wasm')),
3179
3195
  ]);
3180
3196
  aimerC = yield AimerModule({ wasmBinary: aimerBin });
3181
3197
  smaugtC = yield SmaugtModule({ wasmBinary: smaugtBin });
@@ -3771,32 +3787,39 @@ if (globalThis[LCLIB_SEQ_KEY] === undefined) {
3771
3787
  globalThis[LCLIB_SEQ_KEY] += 1;
3772
3788
  const namespace = `wallet_${globalThis[LCLIB_SEQ_KEY]}`;
3773
3789
  const lclibWasmConfig = { namespace };
3790
+ // 정적 리터럴 URL — Vite/Rollup/Webpack5 가 `new URL(<리터럴>, import.meta.url)` 패턴을
3791
+ // 정적 분석해서 사용자 빌드의 자산 그래프에 wasm 을 자동 등록할 수 있도록 모듈 최상위에서 선언.
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)));
3774
3794
  // .wasm 바이너리 4 개(lclib + AIMER/SMAUGT/HAETAE) 를 외부 파일에서 fetch 해서 로드한다.
3775
3795
  //
3776
3796
  // opts:
3777
3797
  // baseUrl?: URL | string — wasm 파일들이 놓인 베이스. 기본은 이 모듈 기준 ../autogen/wasm/.
3778
- // 번들 배포 후 디렉토리 구조가 바뀌면 호출자가 명시 주입해야 한다.
3779
3798
  // urls?: { lclib, aimer, smaugt, haetae } — 개별 파일 override (URL | string)
3780
3799
  // fetcher?: (url: URL) => Promise<Uint8Array> — 완전 커스텀 (CDN/캐시/모킹/Node 정적 경로)
3781
3800
  function load() {
3782
3801
  return tslib_es6.__awaiter(this, arguments, void 0, function* (opts = {}) {
3783
3802
  var _a, _b;
3784
3803
  try {
3785
- console.log('[lclib.load] opts.baseUrl =', JSON.stringify(opts.baseUrl), 'typeof =', typeof opts.baseUrl, 'import.meta.url =', JSON.stringify((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-DuoOR0-Q.cjs', document.baseURI).href))));
3786
- // opts.baseUrl 이 주어지면 그대로 base 로 쓴다. import.meta.url 을 거치지 않는 이유:
3787
- // chrome-extension MV3 의 production 번들 환경에서 import.meta.url 이 빈 문자열로
3788
- // 치환될 수 있어 `new URL(abs, '')` 가 throw 한다. 호출자가 chrome.runtime.getURL()
3789
- // 같은 absolute URL 을 명시 주입한 경우엔 base resolution 자체가 불필요.
3790
- const base = opts.baseUrl
3791
- ? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
3792
- : new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-DuoOR0-Q.cjs', document.baseURI).href)));
3793
3804
  const get = (_a = opts.fetcher) !== null && _a !== void 0 ? _a : fetchWasmBytes;
3794
- const resolve = (override, name) => override
3795
- ? (override instanceof URL ? override : new URL(override, base))
3796
- : new URL(name, base);
3805
+ // 우선순위: opts.urls.lclib > opts.baseUrl > 정적 리터럴
3806
+ let lclibUrl;
3807
+ if ((_b = opts.urls) === null || _b === void 0 ? void 0 : _b.lclib) {
3808
+ const base = opts.baseUrl
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)));
3811
+ lclibUrl = opts.urls.lclib instanceof URL ? opts.urls.lclib : new URL(opts.urls.lclib, base);
3812
+ }
3813
+ else if (opts.baseUrl) {
3814
+ const base = opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl);
3815
+ lclibUrl = new URL('lclib.wasm', base);
3816
+ }
3817
+ else {
3818
+ lclibUrl = DEFAULT_LCLIB_URL;
3819
+ }
3797
3820
  // crypto WASM 3 종과 Go lclib WASM 을 병렬로 다운로드.
3798
3821
  const cryptoPromise = loadCryptoWasm(opts);
3799
- const lclibBytesPromise = get(resolve((_b = opts.urls) === null || _b === void 0 ? void 0 : _b.lclib, 'lclib.wasm'));
3822
+ const lclibBytesPromise = get(lclibUrl);
3800
3823
  let lclibBytes;
3801
3824
  try {
3802
3825
  [, lclibBytes] = yield Promise.all([cryptoPromise, lclibBytesPromise]);
@@ -0,0 +1,25 @@
1
+ define(['exports', './base-B_kRRfsf'], (function (exports, base) { 'use strict';
2
+
3
+ /** 요청을 전송하기 전에 로컬에서 검증을 통과하지 못한 경우. */
4
+ class RpcRequestError extends base.BaseError {
5
+ constructor(shortMessage, options = {}) {
6
+ super(shortMessage, options);
7
+ this.name = 'RpcRequestError';
8
+ this.method = options.method;
9
+ this.params = options.params;
10
+ }
11
+ }
12
+ /** 노드가 JSON-RPC error envelope 를 반환한 경우. */
13
+ class RpcResponseError extends base.BaseError {
14
+ constructor(shortMessage, options) {
15
+ super(shortMessage, options);
16
+ this.name = 'RpcResponseError';
17
+ this.code = options.code;
18
+ this.method = options.method;
19
+ }
20
+ }
21
+
22
+ exports.RpcRequestError = RpcRequestError;
23
+ exports.RpcResponseError = RpcResponseError;
24
+
25
+ }));
@@ -0,0 +1,30 @@
1
+ define(['exports', './base-B_kRRfsf'], (function (exports, base) { 'use strict';
2
+
3
+ class HttpRequestError extends base.BaseError {
4
+ constructor(shortMessage, options = {}) {
5
+ super(shortMessage, options);
6
+ this.name = 'HttpRequestError';
7
+ this.url = options.url;
8
+ this.status = options.status;
9
+ }
10
+ }
11
+ class TimeoutError extends base.BaseError {
12
+ constructor(shortMessage, options = {}) {
13
+ super(shortMessage, options);
14
+ this.name = 'TimeoutError';
15
+ this.url = options.url;
16
+ }
17
+ }
18
+ class AbortedError extends base.BaseError {
19
+ constructor(shortMessage, options = {}) {
20
+ super(shortMessage, options);
21
+ this.name = 'AbortedError';
22
+ this.url = options.url;
23
+ }
24
+ }
25
+
26
+ exports.AbortedError = AbortedError;
27
+ exports.HttpRequestError = HttpRequestError;
28
+ exports.TimeoutError = TimeoutError;
29
+
30
+ }));
@@ -0,0 +1,37 @@
1
+ define(['exports'], (function (exports) { 'use strict';
2
+
3
+ /******************************************************************************
4
+ Copyright (c) Microsoft Corporation.
5
+
6
+ Permission to use, copy, modify, and/or distribute this software for any
7
+ purpose with or without fee is hereby granted.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
16
+ ***************************************************************************** */
17
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
18
+
19
+
20
+ function __awaiter(thisArg, _arguments, P, generator) {
21
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22
+ return new (P || (P = Promise))(function (resolve, reject) {
23
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
24
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
25
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
26
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
27
+ });
28
+ }
29
+
30
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
31
+ var e = new Error(message);
32
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
33
+ };
34
+
35
+ exports.__awaiter = __awaiter;
36
+
37
+ }));
@@ -0,0 +1,68 @@
1
+ define(['exports'], (function (exports) { 'use strict';
2
+
3
+ // Automatically generated file. DO NOT EDIT.
4
+ const TxType = Object.freeze({
5
+ GENESIS_ACCOUNT: 'TX_GENESIS_ACCOUNT',
6
+ OPEN_ACCOUNT: 'TX_OPEN_ACCOUNT',
7
+ BECOME_HOST: 'TX_BECOME_HOST',
8
+ BECOME_GUEST: 'TX_BECOME_GUEST',
9
+ TRANSFER_COIN: 'TX_TRANSFER_COIN',
10
+ TRANSFER_COIN_FEE: 'TX_TRANSFER_COIN_FEE',
11
+ TRANSFER_COIN_EXPRESS: 'TX_TRANSFER_COIN_EXPRESS',
12
+ ACTIVATE_COIN: 'TX_ACTIVATE_COIN',
13
+ ACTIVATE_INCENTIVE: 'TX_ACTIVATE_INCENTIVE',
14
+ ACTIVATE_FOUNDATION_RESERVE: 'TX_ACTIVATE_FOUNDATION_RESERVE',
15
+ CHANGE_KEYPAIR: 'TX_CHANGE_KEYPAIR',
16
+ CHANGE_VKEY: 'TX_CHANGE_VKEY',
17
+ CHANGE_FOUNDATION_ACCOUNT: 'TX_CHANGE_FOUNDATION_ACCOUNT',
18
+ POST_DATA: 'TX_POST_DATA',
19
+ POST_DATA_FEE: 'TX_POST_DATA_FEE',
20
+ CREATE_TOKEN: 'TX_CREATE_TOKEN',
21
+ CREATE_TOKEN_FEE: 'TX_CREATE_TOKEN_FEE',
22
+ BURN_TOKEN: 'TX_BURN_TOKEN',
23
+ TRANSFER_TOKEN: 'TX_TRANSFER_TOKEN',
24
+ TRANSFER_TOKEN_FEE: 'TX_TRANSFER_TOKEN_FEE',
25
+ ACTIVATE_TOKEN: 'TX_ACTIVATE_TOKEN',
26
+ CREATE_ASSETOBJECT: 'TX_CREATE_ASSETOBJECT',
27
+ CREATE_ASSETOBJECT_FEE: 'TX_CREATE_ASSETOBJECT_FEE',
28
+ TRANSFER_ASSETOBJECT: 'TX_TRANSFER_ASSETOBJECT',
29
+ TRANSFER_ASSETOBJECT_FEE: 'TX_TRANSFER_ASSETOBJECT_FEE',
30
+ ACTIVATE_ASSETOBJECT: 'TX_ACTIVATE_ASSETOBJECT',
31
+ BURN_ASSETOBJECT: 'TX_BURN_ASSETOBJECT',
32
+ REVOKE: 'TX_REVOKE',
33
+ CLOSE_ACCOUNT: 'TX_CLOSE_ACCOUNT',
34
+ ACTIVATE_ALL_ASSETS: 'TX_ACTIVATE_ALL_ASSETS',
35
+ PROVIDE_SCRIPT: 'TX_PROVIDE_SCRIPT',
36
+ ACCEPT_SCRIPT: 'TX_ACCEPT_SCRIPT',
37
+ ACCEPT_SCRIPT_AFTER_TIMELOCK: 'TX_ACCEPT_SCRIPT_AFTER_TIMELOCK',
38
+ CREATE_SA: 'TX_CREATE_SA',
39
+ CREATE_SA_FEE: 'TX_CREATE_SA_FEE',
40
+ ACTIVATE_OPEN_SA: 'TX_ACTIVATE_OPEN_SA',
41
+ POST_DATA_SA: 'TX_POST_DATA_SA',
42
+ POST_DATA_SA_FEE: 'TX_POST_DATA_SA_FEE',
43
+ ACTIVATE_DATA_SA: 'TX_ACTIVATE_DATA_SA',
44
+ LOCK_STAKE_FOR_VME: 'TX_LOCK_STAKE_FOR_VME',
45
+ ACTIVATE_LOCK_STAKE_FOR_VME: 'TX_ACTIVATE_LOCK_STAKE_FOR_VME',
46
+ UNLOCK_STAKE: 'TX_UNLOCK_STAKE',
47
+ CREATE_VME: 'TX_CREATE_VME',
48
+ ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
49
+ VME_BLOCK: 'TX_VME_BLOCK',
50
+ CREATE_CONTRACT: 'TX_CREATE_CONTRACT',
51
+ CREATE_CONTRACT_FEE: 'TX_CREATE_CONTRACT_FEE',
52
+ CALL_CONTRACT: 'TX_CALL_CONTRACT',
53
+ CALL_CONTRACT_FEE: 'TX_CALL_CONTRACT_FEE',
54
+ ACTIVATE_OPEN_CONTRACT: 'TX_ACTIVATE_OPEN_CONTRACT',
55
+ ACTIVATE_CALL_CONTRACT: 'TX_ACTIVATE_CALL_CONTRACT',
56
+ ACTIVATE_CONTRACT_TRANSFER: 'TX_ACTIVATE_CONTRACT_TRANSFER',
57
+ ACTIVATE_CONTRACT_RESULT: 'TX_ACTIVATE_CONTRACT_RESULT',
58
+ CONTRACT_TRANSFER_REWARD: 'TX_CONTRACT_TRANSFER_REWARD',
59
+ CONTRACT_BLANK_REWARD: 'TX_CONTRACT_BLANK_REWARD',
60
+ ACTIVATE_CONTRACT_REWARD: 'TX_ACTIVATE_CONTRACT_REWARD',
61
+ FREEZE_ACCOUNT: 'TX_FREEZE_ACCOUNT',
62
+ LEAD_VTX: 'TX_LEAD_VTX',
63
+ FINALIZE: 'TX_FINALIZE',
64
+ });
65
+
66
+ exports.TxType = TxType;
67
+
68
+ }));
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var lclib = require('./lclib-DuoOR0-Q.cjs');
3
+ var lclib = require('./lclib-rGyKpClJ.cjs');
4
4
 
5
5
  // Automatically generated file. DO NOT EDIT.
6
6
  const callWasm = (cmd, params) => {
@@ -1,4 +1,4 @@
1
- import { n as namespace } from './lclib-C2eG5HzD.js';
1
+ import { n as namespace } from './lclib-j2x9RvDY.js';
2
2
 
3
3
  // Automatically generated file. DO NOT EDIT.
4
4
  const callWasm = (cmd, params) => {