@locuschain/lib 0.1.39 → 0.2.0

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 (34) hide show
  1. package/dist/accounts/index.amd.js +1 -1
  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 +1 -1
  5. package/dist/autogen/index.cjs.cjs +2 -2
  6. package/dist/autogen/index.esm.js +2 -2
  7. package/dist/autogen/types/common/index.d.mts +1 -0
  8. package/dist/autogen/types/common/merkle-proof-multi-meta.d.mts +2 -0
  9. package/dist/autogen/wasm/lclib.wasm +0 -0
  10. package/dist/chunks/{keystore-BMgBWq6G.js → keystore-B86UzV8A.js} +1 -1
  11. package/dist/chunks/{keystore-CjcbAa1r.cjs → keystore-BUskzeOs.cjs} +1 -1
  12. package/dist/chunks/{keystore-D7_ZZNzS.js → keystore-y1JlFTKh.js} +1 -1
  13. package/dist/chunks/{lclib-DBHaYcY8.js → lclib-Bv86gksL.js} +12 -5
  14. package/dist/chunks/{lclib-BlnZKIGv.js → lclib-j2x9RvDY.js} +12 -5
  15. package/dist/chunks/{lclib-xRDGxtgw.cjs → lclib-rGyKpClJ.cjs} +27 -20
  16. package/dist/chunks/{wasm-D4S52Ifh.cjs → wasm-BYOKRR31.cjs} +1 -1
  17. package/dist/chunks/{wasm-C4WNl2YQ.js → wasm-CLXJDrJA.js} +1 -1
  18. package/dist/chunks/{wasm-BCEa0JCQ.js → wasm-CkFW222S.js} +1 -1
  19. package/dist/clients/index.amd.js +1 -1
  20. package/dist/clients/index.cjs.cjs +1 -1
  21. package/dist/clients/index.esm.js +1 -1
  22. package/dist/contracts/index.amd.js +1 -1
  23. package/dist/contracts/index.cjs.cjs +2 -2
  24. package/dist/contracts/index.esm.js +2 -2
  25. package/dist/index.amd.js +1 -1
  26. package/dist/index.cjs.cjs +3 -3
  27. package/dist/index.esm.js +3 -3
  28. package/dist/utils/index.amd.js +1 -1
  29. package/dist/utils/index.cjs.cjs +3 -3
  30. package/dist/utils/index.esm.js +4 -4
  31. package/dist/vite-plugin/index.amd.js +24 -0
  32. package/dist/vite-plugin/index.cjs.cjs +24 -0
  33. package/dist/vite-plugin/index.esm.js +24 -0
  34. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/tslib.es6-D29rxPkW', '../chunks/tx-type-CS4wIUJ8', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8', '../chunks/wasm-BCEa0JCQ', '../chunks/lclib-DBHaYcY8'], (function (exports, tslib_es6, txType, base, account, wasm, lclib) { 'use strict';
1
+ define(['exports', '../chunks/tslib.es6-D29rxPkW', '../chunks/tx-type-CS4wIUJ8', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8', '../chunks/wasm-CkFW222S', '../chunks/lclib-Bv86gksL'], (function (exports, tslib_es6, txType, base, account, wasm, lclib) { 'use strict';
2
2
 
3
3
  /**
4
4
  * 메인 서명을 master 키로 생성하는 TX 타입 집합 (signByMasterKey WASM 호출).
@@ -4,8 +4,8 @@ var tslib_es6 = require('../chunks/tslib.es6-Cfi3-HmA.cjs');
4
4
  var txType = require('../chunks/tx-type-DI_nKG8B.cjs');
5
5
  var base = require('../chunks/base-Cy5SSYLF.cjs');
6
6
  var account = require('../chunks/account-BAsiKnSL.cjs');
7
- var wasm = require('../chunks/wasm-D4S52Ifh.cjs');
8
- require('../chunks/lclib-xRDGxtgw.cjs');
7
+ var wasm = require('../chunks/wasm-BYOKRR31.cjs');
8
+ require('../chunks/lclib-rGyKpClJ.cjs');
9
9
 
10
10
  /**
11
11
  * 메인 서명을 master 키로 생성하는 TX 타입 집합 (signByMasterKey WASM 호출).
@@ -2,8 +2,8 @@ import { _ as __awaiter } from '../chunks/tslib.es6-WQS2tr1v.js';
2
2
  import { T as TxType } from '../chunks/tx-type-BPkhMGad.js';
3
3
  import { B as BaseError } from '../chunks/base-BQXfRsuw.js';
4
4
  import { a as SignKeyBindUnsupportedError, S as SignFailedError, D as DegenerateKeyError } from '../chunks/account-FZT9LH_s.js';
5
- import { O as signKeyBind, N as signByMasterKey, M as sign, z as deriveKeysFromMnemonicAndPath, y as deriveKeysFromMnemonic } from '../chunks/wasm-C4WNl2YQ.js';
6
- import '../chunks/lclib-BlnZKIGv.js';
5
+ import { O as signKeyBind, N as signByMasterKey, M as sign, z as deriveKeysFromMnemonicAndPath, y as deriveKeysFromMnemonic } from '../chunks/wasm-CLXJDrJA.js';
6
+ import '../chunks/lclib-j2x9RvDY.js';
7
7
 
8
8
  /**
9
9
  * 메인 서명을 master 키로 생성하는 TX 타입 집합 (signByMasterKey WASM 호출).
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/wasm-BCEa0JCQ', '../chunks/debugWalletActions-BDz-h2tl', '../chunks/lclib-DBHaYcY8', '../chunks/tslib.es6-D29rxPkW', '../chunks/rpc-C4n7t9y0', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8'], (function (exports, wasm, debugWalletActions, lclib, tslib_es6, rpc, base, account) { 'use strict';
1
+ define(['exports', '../chunks/wasm-CkFW222S', '../chunks/debugWalletActions-BDz-h2tl', '../chunks/lclib-Bv86gksL', '../chunks/tslib.es6-D29rxPkW', '../chunks/rpc-C4n7t9y0', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8'], (function (exports, wasm, debugWalletActions, lclib, tslib_es6, rpc, base, account) { 'use strict';
2
2
 
3
3
  // Automatically generated file. DO NOT EDIT.
4
4
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var wasm = require('../chunks/wasm-D4S52Ifh.cjs');
3
+ var wasm = require('../chunks/wasm-BYOKRR31.cjs');
4
4
  var debugWalletActions = require('../chunks/debugWalletActions-6qjkZVq9.cjs');
5
- require('../chunks/lclib-xRDGxtgw.cjs');
5
+ require('../chunks/lclib-rGyKpClJ.cjs');
6
6
  require('../chunks/tslib.es6-Cfi3-HmA.cjs');
7
7
  require('../chunks/rpc-DwWIkUva.cjs');
8
8
  require('../chunks/base-Cy5SSYLF.cjs');
@@ -1,7 +1,7 @@
1
- export { b as calculateTxLinkHash, d as compileCoreScript, e as convertAddressToData, f as convertAddressToHex, g as convertBase32ToData, h as convertBase32ToHex, i as convertCurrency, j as convertDataTo, k as convertDataToAddress, m as convertDataToBase32, n as convertDataToHex, o as convertDataToString, p as convertHexToAddress, q as convertHexToBase32, r as convertHexToData, s as convertStringToData, t as convertToData, c as createAccountAndKeystore, u as createMasterKeystore, v as createNormalKey, w as createNormalKeystore, x as decodeTxs, y as deriveKeysFromMnemonic, z as deriveKeysFromMnemonicAndPath, A as disCompileCoreScript, B as encodeTxCurrency, C as encodeTxNumber, D as generateMnemonic, E as generateMnemonicBySeed, F as getDefFromCoreScript, G as getHomeShard, H as getLibraryVersions, I as gzipAndEncode, J as hash, K as isGrantConsumingTx, l as loadMasterKeystore, a as loadNormalKeystore, L as makeCurrency, M as sign, N as signByMasterKey, O as signKeyBind, P as testCoreScript, Q as verify, R as verifyByMasterKey, S as verifyMerkleProof, T as verifyTx } from '../chunks/wasm-C4WNl2YQ.js';
1
+ export { b as calculateTxLinkHash, d as compileCoreScript, e as convertAddressToData, f as convertAddressToHex, g as convertBase32ToData, h as convertBase32ToHex, i as convertCurrency, j as convertDataTo, k as convertDataToAddress, m as convertDataToBase32, n as convertDataToHex, o as convertDataToString, p as convertHexToAddress, q as convertHexToBase32, r as convertHexToData, s as convertStringToData, t as convertToData, c as createAccountAndKeystore, u as createMasterKeystore, v as createNormalKey, w as createNormalKeystore, x as decodeTxs, y as deriveKeysFromMnemonic, z as deriveKeysFromMnemonicAndPath, A as disCompileCoreScript, B as encodeTxCurrency, C as encodeTxNumber, D as generateMnemonic, E as generateMnemonicBySeed, F as getDefFromCoreScript, G as getHomeShard, H as getLibraryVersions, I as gzipAndEncode, J as hash, K as isGrantConsumingTx, l as loadMasterKeystore, a as loadNormalKeystore, L as makeCurrency, M as sign, N as signByMasterKey, O as signKeyBind, P as testCoreScript, Q as verify, R as verifyByMasterKey, S as verifyMerkleProof, T as verifyTx } from '../chunks/wasm-CLXJDrJA.js';
2
2
  import { a as allHeights, b as balanceGrantList, c as balanceList, d as callContract, e as createAccount, f as createContract, g as createNode, h as createSynthAccount, i as dumpAllAccounts, j as echo, k as gameChainCmd, l as getAccountsBalances, m as getAccountsHeights, n as getContractLog, o as getGuestsInfo, p as getHomeShard, q as getImportAccount, r as getImportAccountLog, s as getKeys, t as getNodeBlocks, u as getPeerPool, v as getPeersInfo, w as importAccount, x as initReliableNodes, y as noArgsRets, z as nodeCmd, A as postDataToSynthAccount, B as removeHoldTxs, C as requestVme, D as sendRawTransaction, E as setImportAccountTx, F as setReliableNode, G as viewContract } from '../chunks/debugWalletActions-D5-Ds7Hl.js';
3
3
  export { H as acceptScript, I as accountHeightsToDownload, J as accountHeightsToUpload, K as becomeGuest, L as becomeHost, M as calculateSpentByExpress, N as changeKey, O as changeVkey, P as clientMessage, Q as closeAccount, R as createAssetObject, S as createToken, T as createVme, U as debugPublicActions, V as debugWalletActions, W as downloadAccountTxs, X as echo, Y as findDuplicateSubscriber, Z as generateLatestStoredDataProof, _ as getAccountAssetList, $ as getAccountAssetObject, a0 as getAccountDetail, a1 as getAccountHistory, a2 as getAccountTokenList, a3 as getConciseNodeStatus, a4 as getGenesisAccount, a5 as getIdentityProof, a6 as getInactiveTxList, a7 as getMontInfoList, a8 as getNodeStatus, a9 as getOwnerBalance, aa as getRoundState, ab as getRoundStatesList, ac as getShardOfAccount, ad as getSyncState, ae as getTx, af as getWorldRoundState, ag as getWorldRoundStatesList, ah as hasSystemToken, ai as lockStake, aj as makeTxProof, ak as openAccount, al as postData, am as provideScript, an as publicActions, ao as queryAddress, ap as readTxListWitness, aq as requestDataTrade, ar as setHost, as as subscribeAddress, at as transferAssetObject, au as transferCoin, av as transferCoinExpress, aw as transferToken, ax as unlockStake, ay as uploadAccountTxs, az as verifyAndSignChallenge, aA as verifyIdentityProof, aB as verifyLatestStoredDataProof, aC as verifyTxListWitness, aD as walletActions } from '../chunks/debugWalletActions-D5-Ds7Hl.js';
4
- import '../chunks/lclib-BlnZKIGv.js';
4
+ import '../chunks/lclib-j2x9RvDY.js';
5
5
  import '../chunks/tslib.es6-WQS2tr1v.js';
6
6
  import '../chunks/rpc-BlPk44QH.js';
7
7
  import '../chunks/base-BQXfRsuw.js';
@@ -10,6 +10,7 @@ export * from './get-peers-info.mjs';
10
10
  export * from './index-value-pair.mjs';
11
11
  export * from './input-params-data-transfer.mjs';
12
12
  export * from './key-bind-info.mjs';
13
+ export * from './merkle-proof-multi-meta.mjs';
13
14
  export * from './mont-info.mjs';
14
15
  export * from './object-amount.mjs';
15
16
  export * from './object-amount-transfer.mjs';
@@ -0,0 +1,2 @@
1
+ import { BaseMeta } from './base-meta.mjs';
2
+ export type MerkleProofMultiMeta = BaseMeta & {};
Binary file
@@ -1,4 +1,4 @@
1
- import { c as createAccountAndKeystore, l as loadMasterKeystore, a as loadNormalKeystore } from './wasm-C4WNl2YQ.js';
1
+ import { c as createAccountAndKeystore, l as loadMasterKeystore, a as loadNormalKeystore } from './wasm-CLXJDrJA.js';
2
2
  import { B as BaseError } from './base-BQXfRsuw.js';
3
3
  import { D as DegenerateKeyError } from './account-FZT9LH_s.js';
4
4
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var wasm = require('./wasm-D4S52Ifh.cjs');
3
+ var wasm = require('./wasm-BYOKRR31.cjs');
4
4
  var base = require('./base-Cy5SSYLF.cjs');
5
5
  var account = require('./account-BAsiKnSL.cjs');
6
6
 
@@ -1,4 +1,4 @@
1
- define(['exports', './wasm-BCEa0JCQ', './base-B_kRRfsf', './account-BSrvZ7S8'], (function (exports, wasm, base, account) { 'use strict';
1
+ define(['exports', './wasm-CkFW222S', './base-B_kRRfsf', './account-BSrvZ7S8'], (function (exports, wasm, base, account) { 'use strict';
2
2
 
3
3
  /**
4
4
  * 새 dual-key keystore 를 만들고 결과 JSON array 를 master / normal 두
@@ -26,7 +26,7 @@ define(['module', 'require', 'exports', './tslib.es6-D29rxPkW'], (function (modu
26
26
  var ENVIRONMENT_IS_WORKER = !!globalThis.WorkerGlobalScope;
27
27
  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";
28
28
  if (ENVIRONMENT_IS_NODE) {
29
- const { createRequire } = yield new Promise(function (resolve, reject) { require(['node:module'], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); });
29
+ const { createRequire } = yield ((m)=>(function (t) { return new Promise(function (resolve, reject) { require([t], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); }); })(/* @vite-ignore */ /* webpackIgnore: true */ m))("node:module");
30
30
  var require$1 = createRequire(new URL(module.uri, document.baseURI).href);
31
31
  }
32
32
  var quit_ = (status, toThrow) => { throw toThrow; };
@@ -348,7 +348,7 @@ define(['module', 'require', 'exports', './tslib.es6-D29rxPkW'], (function (modu
348
348
  var ENVIRONMENT_IS_WORKER = !!globalThis.WorkerGlobalScope;
349
349
  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";
350
350
  if (ENVIRONMENT_IS_NODE) {
351
- const { createRequire } = yield new Promise(function (resolve, reject) { require(['node:module'], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); });
351
+ const { createRequire } = yield ((m)=>(function (t) { return new Promise(function (resolve, reject) { require([t], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); }); })(/* @vite-ignore */ /* webpackIgnore: true */ m))("node:module");
352
352
  var require$1 = createRequire(new URL(module.uri, document.baseURI).href);
353
353
  }
354
354
  var _scriptName = new URL(module.uri, document.baseURI).href;
@@ -1654,7 +1654,7 @@ define(['module', 'require', 'exports', './tslib.es6-D29rxPkW'], (function (modu
1654
1654
  var ENVIRONMENT_IS_WORKER = !!globalThis.WorkerGlobalScope;
1655
1655
  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";
1656
1656
  if (ENVIRONMENT_IS_NODE) {
1657
- const { createRequire } = yield new Promise(function (resolve, reject) { require(['node:module'], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); });
1657
+ const { createRequire } = yield ((m)=>(function (t) { return new Promise(function (resolve, reject) { require([t], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); }); })(/* @vite-ignore */ /* webpackIgnore: true */ m))("node:module");
1658
1658
  var require$1 = createRequire(new URL(module.uri, document.baseURI).href);
1659
1659
  }
1660
1660
  var _scriptName = new URL(module.uri, document.baseURI).href;
@@ -2960,6 +2960,13 @@ define(['module', 'require', 'exports', './tslib.es6-D29rxPkW'], (function (modu
2960
2960
  // 이 함수의 시그니처 (url: URL) => Promise<Uint8Array> 와 동일하면 된다.
2961
2961
  var _a, _b;
2962
2962
  const isNode = !!((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node);
2963
+ // node:* 모듈을 동적으로 로드할 때 import 인자를 변수로 우회한다.
2964
+ // 리터럴 dynamic import (`import('node:fs/promises')`) 는 Vite/Rollup 의
2965
+ // 정적 분석에 잡혀 browser 빌드에서 "Module 'node:*' has been externalized
2966
+ // for browser compatibility" 경고를 띄운다. 변수로 인자를 감싸면 정적
2967
+ // 분석을 회피하고, Node 런타임에서는 그대로 동적 import 가 된다.
2968
+ // 이 함수의 isNode 가드 안에서만 호출되므로 browser 런타임에서는 도달하지 않는다.
2969
+ const _dynImport = (m) => (function (t) { return new Promise(function (resolve, reject) { require([t], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); }); })(/* @vite-ignore */ /* webpackIgnore: true */ m);
2963
2970
  /**
2964
2971
  * .wasm 바이너리를 Uint8Array 로 가져온다.
2965
2972
  * @param {URL | string} input
@@ -2971,8 +2978,8 @@ define(['module', 'require', 'exports', './tslib.es6-D29rxPkW'], (function (modu
2971
2978
  // Node 에서 패키지 동봉 파일 (file://) 은 fs 로 직접 읽는 게 가장 빠르고 의존성도 없다.
2972
2979
  if (isNode && url.protocol === 'file:') {
2973
2980
  const [{ readFile }, { fileURLToPath }] = yield Promise.all([
2974
- new Promise(function (resolve, reject) { require(['node:fs/promises'], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); }),
2975
- new Promise(function (resolve, reject) { require(['node:url'], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); }),
2981
+ _dynImport('node:fs/promises'),
2982
+ _dynImport('node:url'),
2976
2983
  ]);
2977
2984
  const buf = yield readFile(fileURLToPath(url));
2978
2985
  return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
@@ -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);
@@ -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-xRDGxtgw.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-xRDGxtgw.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-xRDGxtgw.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-xRDGxtgw.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-xRDGxtgw.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-xRDGxtgw.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-xRDGxtgw.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-xRDGxtgw.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-xRDGxtgw.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);
@@ -3153,9 +3160,9 @@ globalThis.js_haetae_verify = function (sigBuf, msgBuf, pkBuf) {
3153
3160
  // 정적 리터럴 URL — Vite/Rollup/Webpack5 가 `new URL(<리터럴>, import.meta.url)` 패턴을
3154
3161
  // 정적 분석해서 사용자 빌드의 자산 그래프에 wasm 을 자동 등록할 수 있도록 모듈 최상위에서 선언.
3155
3162
  // override (baseUrl/urls) 가 없을 때만 사용된다.
3156
- 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-xRDGxtgw.cjs', document.baseURI).href)));
3157
- 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-xRDGxtgw.cjs', document.baseURI).href)));
3158
- 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-xRDGxtgw.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/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)));
3159
3166
  // AIMER / SMAUGT / HAETAE 의 .wasm 바이너리를 외부에서 받아와 Emscripten 모듈에 주입한다.
3160
3167
  // Module({ wasmBinary }) 가 주어지면 글루는 자체 fetch 를 건너뛰고 그 바이트를 사용한다.
3161
3168
  //
@@ -3172,7 +3179,7 @@ function loadCryptoWasm() {
3172
3179
  if (override) {
3173
3180
  const base = opts.baseUrl
3174
3181
  ? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
3175
- : new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.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/lclib-rGyKpClJ.cjs', document.baseURI).href)));
3176
3183
  return override instanceof URL ? override : new URL(override, base);
3177
3184
  }
3178
3185
  if (opts.baseUrl) {
@@ -3783,7 +3790,7 @@ const lclibWasmConfig = { namespace };
3783
3790
  // 정적 리터럴 URL — Vite/Rollup/Webpack5 가 `new URL(<리터럴>, import.meta.url)` 패턴을
3784
3791
  // 정적 분석해서 사용자 빌드의 자산 그래프에 wasm 을 자동 등록할 수 있도록 모듈 최상위에서 선언.
3785
3792
  // override (baseUrl/urls) 가 없을 때만 사용된다.
3786
- 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-xRDGxtgw.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/lclib-rGyKpClJ.cjs', document.baseURI).href)));
3787
3794
  // .wasm 바이너리 4 개(lclib + AIMER/SMAUGT/HAETAE) 를 외부 파일에서 fetch 해서 로드한다.
3788
3795
  //
3789
3796
  // opts:
@@ -3800,7 +3807,7 @@ function load() {
3800
3807
  if ((_b = opts.urls) === null || _b === void 0 ? void 0 : _b.lclib) {
3801
3808
  const base = opts.baseUrl
3802
3809
  ? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
3803
- : new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.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/lclib-rGyKpClJ.cjs', document.baseURI).href)));
3804
3811
  lclibUrl = opts.urls.lclib instanceof URL ? opts.urls.lclib : new URL(opts.urls.lclib, base);
3805
3812
  }
3806
3813
  else if (opts.baseUrl) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var lclib = require('./lclib-xRDGxtgw.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-BlnZKIGv.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) => {
@@ -1,4 +1,4 @@
1
- define(['exports', './lclib-DBHaYcY8'], (function (exports, lclib) { 'use strict';
1
+ define(['exports', './lclib-Bv86gksL'], (function (exports, lclib) { 'use strict';
2
2
 
3
3
  // Automatically generated file. DO NOT EDIT.
4
4
  const callWasm = (cmd, params) => {
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/lclib-DBHaYcY8', '../chunks/debugWalletActions-BDz-h2tl', '../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/lclib-Bv86gksL', '../chunks/debugWalletActions-BDz-h2tl', '../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';
2
2
 
3
3
  function createClient(args) {
4
4
  var _a;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- require('../chunks/lclib-xRDGxtgw.cjs');
3
+ require('../chunks/lclib-rGyKpClJ.cjs');
4
4
  var debugWalletActions = require('../chunks/debugWalletActions-6qjkZVq9.cjs');
5
5
  require('../chunks/tslib.es6-Cfi3-HmA.cjs');
6
6
  var transports = require('../transports/index.cjs.cjs');
@@ -1,4 +1,4 @@
1
- import '../chunks/lclib-BlnZKIGv.js';
1
+ import '../chunks/lclib-j2x9RvDY.js';
2
2
  import { an as publicActions, U as debugPublicActions, aD as walletActions, V as debugWalletActions } from '../chunks/debugWalletActions-D5-Ds7Hl.js';
3
3
  import '../chunks/tslib.es6-WQS2tr1v.js';
4
4
  import { http } from '../transports/index.esm.js';
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/tslib.es6-D29rxPkW', '../chunks/wasm-BCEa0JCQ', '../chunks/lclib-DBHaYcY8'], (function (exports, tslib_es6, wasm, lclib) { 'use strict';
1
+ define(['exports', '../chunks/tslib.es6-D29rxPkW', '../chunks/wasm-CkFW222S', '../chunks/lclib-Bv86gksL'], (function (exports, tslib_es6, wasm, lclib) { 'use strict';
2
2
 
3
3
  var commonjsGlobal =
4
4
  typeof globalThis !== 'undefined'
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var tslib_es6 = require('../chunks/tslib.es6-Cfi3-HmA.cjs');
4
- var wasm = require('../chunks/wasm-D4S52Ifh.cjs');
5
- require('../chunks/lclib-xRDGxtgw.cjs');
4
+ var wasm = require('../chunks/wasm-BYOKRR31.cjs');
5
+ require('../chunks/lclib-rGyKpClJ.cjs');
6
6
 
7
7
  var commonjsGlobal =
8
8
  typeof globalThis !== 'undefined'
@@ -1,6 +1,6 @@
1
1
  import { _ as __awaiter } from '../chunks/tslib.es6-WQS2tr1v.js';
2
- import { r as convertHexToData, n as convertDataToHex } from '../chunks/wasm-C4WNl2YQ.js';
3
- import '../chunks/lclib-BlnZKIGv.js';
2
+ import { r as convertHexToData, n as convertDataToHex } from '../chunks/wasm-CLXJDrJA.js';
3
+ import '../chunks/lclib-j2x9RvDY.js';
4
4
 
5
5
  var commonjsGlobal =
6
6
  typeof globalThis !== 'undefined'
package/dist/index.amd.js CHANGED
@@ -1,4 +1,4 @@
1
- define(['exports', './clients/index.amd', './transports/index.amd', './accounts/index.amd', './chunks/base-B_kRRfsf', './chunks/rpc-C4n7t9y0', './chunks/transport-BBAz1kmP', './chunks/account-BSrvZ7S8', './contracts/index.amd', './constant/index.amd', './chunks/keystore-D7_ZZNzS', './chunks/lclib-DBHaYcY8', './chunks/tslib.es6-D29rxPkW', './chunks/debugWalletActions-BDz-h2tl', './chunks/tx-type-CS4wIUJ8', './chunks/wasm-BCEa0JCQ', './chunks/address-class-Dp7aNQb2'], (function (exports, clients, transports, accounts, base, rpc, transport, account, contracts, constant, keystore, lclib, tslib_es6, debugWalletActions, txType, wasm, addressClass) { 'use strict';
1
+ define(['exports', './clients/index.amd', './transports/index.amd', './accounts/index.amd', './chunks/base-B_kRRfsf', './chunks/rpc-C4n7t9y0', './chunks/transport-BBAz1kmP', './chunks/account-BSrvZ7S8', './contracts/index.amd', './constant/index.amd', './chunks/keystore-y1JlFTKh', './chunks/lclib-Bv86gksL', './chunks/tslib.es6-D29rxPkW', './chunks/debugWalletActions-BDz-h2tl', './chunks/tx-type-CS4wIUJ8', './chunks/wasm-CkFW222S', './chunks/address-class-Dp7aNQb2'], (function (exports, clients, transports, accounts, base, rpc, transport, account, contracts, constant, keystore, lclib, tslib_es6, debugWalletActions, txType, wasm, addressClass) { 'use strict';
2
2
 
3
3
 
4
4
 
@@ -9,12 +9,12 @@ var transport = require('./chunks/transport-VThNtzck.cjs');
9
9
  var account = require('./chunks/account-BAsiKnSL.cjs');
10
10
  var contracts = require('./contracts/index.cjs.cjs');
11
11
  var constant = require('./constant/index.cjs.cjs');
12
- var keystore = require('./chunks/keystore-CjcbAa1r.cjs');
13
- require('./chunks/lclib-xRDGxtgw.cjs');
12
+ var keystore = require('./chunks/keystore-BUskzeOs.cjs');
13
+ require('./chunks/lclib-rGyKpClJ.cjs');
14
14
  require('./chunks/tslib.es6-Cfi3-HmA.cjs');
15
15
  require('./chunks/debugWalletActions-6qjkZVq9.cjs');
16
16
  require('./chunks/tx-type-DI_nKG8B.cjs');
17
- require('./chunks/wasm-D4S52Ifh.cjs');
17
+ require('./chunks/wasm-BYOKRR31.cjs');
18
18
  require('./chunks/address-class-Cjy48Uqk.cjs');
19
19
 
20
20
 
package/dist/index.esm.js CHANGED
@@ -7,10 +7,10 @@ export { A as AbortedError, H as HttpRequestError, T as TimeoutError } from './c
7
7
  export { A as AccountRequiredError, D as DegenerateKeyError, I as InvalidTxResultError, S as SignFailedError, a as SignKeyBindUnsupportedError } from './chunks/account-FZT9LH_s.js';
8
8
  export { erc20Abi, getContract } from './contracts/index.esm.js';
9
9
  export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount, TxType, TxTypes } from './constant/index.esm.js';
10
- export { c as createKeystoreBundle, s as splitKeystoreBundle, u as unlockKeystoreBundle, a as unlockMasterKeystore, b as unlockNormalKeystore } from './chunks/keystore-BMgBWq6G.js';
11
- import './chunks/lclib-BlnZKIGv.js';
10
+ export { c as createKeystoreBundle, s as splitKeystoreBundle, u as unlockKeystoreBundle, a as unlockMasterKeystore, b as unlockNormalKeystore } from './chunks/keystore-B86UzV8A.js';
11
+ import './chunks/lclib-j2x9RvDY.js';
12
12
  import './chunks/tslib.es6-WQS2tr1v.js';
13
13
  import './chunks/debugWalletActions-D5-Ds7Hl.js';
14
14
  import './chunks/tx-type-BPkhMGad.js';
15
- import './chunks/wasm-C4WNl2YQ.js';
15
+ import './chunks/wasm-CLXJDrJA.js';
16
16
  import './chunks/address-class-CHAZYhdZ.js';
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/address-class-Dp7aNQb2', '../chunks/wasm-BCEa0JCQ', '../chunks/keystore-D7_ZZNzS', '../chunks/lclib-DBHaYcY8', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8', '../chunks/tslib.es6-D29rxPkW'], (function (exports, addressClass, wasm, keystore, lclib, base, account, tslib_es6) { 'use strict';
1
+ define(['exports', '../chunks/address-class-Dp7aNQb2', '../chunks/wasm-CkFW222S', '../chunks/keystore-y1JlFTKh', '../chunks/lclib-Bv86gksL', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8', '../chunks/tslib.es6-D29rxPkW'], (function (exports, addressClass, wasm, keystore, lclib, base, account, tslib_es6) { 'use strict';
2
2
 
3
3
  class TxValidator {
4
4
  constructor() {
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var addressClass = require('../chunks/address-class-Cjy48Uqk.cjs');
4
- var wasm = require('../chunks/wasm-D4S52Ifh.cjs');
5
- var keystore = require('../chunks/keystore-CjcbAa1r.cjs');
6
- var lclib = require('../chunks/lclib-xRDGxtgw.cjs');
4
+ var wasm = require('../chunks/wasm-BYOKRR31.cjs');
5
+ var keystore = require('../chunks/keystore-BUskzeOs.cjs');
6
+ var lclib = require('../chunks/lclib-rGyKpClJ.cjs');
7
7
  require('../chunks/base-Cy5SSYLF.cjs');
8
8
  require('../chunks/account-BAsiKnSL.cjs');
9
9
  require('../chunks/tslib.es6-Cfi3-HmA.cjs');
@@ -1,8 +1,8 @@
1
1
  import { A as AddressClass } from '../chunks/address-class-CHAZYhdZ.js';
2
- import { T as verifyTx, d as compileCoreScript, f as convertAddressToHex } from '../chunks/wasm-C4WNl2YQ.js';
3
- export { b as calculateTxLinkHash, e as convertAddressToData, g as convertBase32ToData, h as convertBase32ToHex, i as convertCurrency, j as convertDataTo, k as convertDataToAddress, m as convertDataToBase32, n as convertDataToHex, o as convertDataToString, p as convertHexToAddress, q as convertHexToBase32, r as convertHexToData, s as convertStringToData, t as convertToData, c as createAccountAndKeystore, u as createMasterKeystore, v as createNormalKey, w as createNormalKeystore, x as decodeTxs, y as deriveKeysFromMnemonic, z as deriveKeysFromMnemonicAndPath, A as disCompileCoreScript, B as encodeTxCurrency, C as encodeTxNumber, D as generateMnemonic, E as generateMnemonicBySeed, F as getDefFromCoreScript, G as getHomeShard, H as getLibraryVersions, I as gzipAndEncode, J as hash, K as isGrantConsumingTx, l as loadMasterKeystore, a as loadNormalKeystore, L as makeCurrency, M as sign, N as signByMasterKey, O as signKeyBind, P as testCoreScript, Q as verify, R as verifyByMasterKey, S as verifyMerkleProof } from '../chunks/wasm-C4WNl2YQ.js';
4
- export { c as createKeystoreBundle, s as splitKeystoreBundle, u as unlockKeystoreBundle, a as unlockMasterKeystore, b as unlockNormalKeystore } from '../chunks/keystore-BMgBWq6G.js';
5
- import { l as load } from '../chunks/lclib-BlnZKIGv.js';
2
+ import { T as verifyTx, d as compileCoreScript, f as convertAddressToHex } from '../chunks/wasm-CLXJDrJA.js';
3
+ export { b as calculateTxLinkHash, e as convertAddressToData, g as convertBase32ToData, h as convertBase32ToHex, i as convertCurrency, j as convertDataTo, k as convertDataToAddress, m as convertDataToBase32, n as convertDataToHex, o as convertDataToString, p as convertHexToAddress, q as convertHexToBase32, r as convertHexToData, s as convertStringToData, t as convertToData, c as createAccountAndKeystore, u as createMasterKeystore, v as createNormalKey, w as createNormalKeystore, x as decodeTxs, y as deriveKeysFromMnemonic, z as deriveKeysFromMnemonicAndPath, A as disCompileCoreScript, B as encodeTxCurrency, C as encodeTxNumber, D as generateMnemonic, E as generateMnemonicBySeed, F as getDefFromCoreScript, G as getHomeShard, H as getLibraryVersions, I as gzipAndEncode, J as hash, K as isGrantConsumingTx, l as loadMasterKeystore, a as loadNormalKeystore, L as makeCurrency, M as sign, N as signByMasterKey, O as signKeyBind, P as testCoreScript, Q as verify, R as verifyByMasterKey, S as verifyMerkleProof } from '../chunks/wasm-CLXJDrJA.js';
4
+ export { c as createKeystoreBundle, s as splitKeystoreBundle, u as unlockKeystoreBundle, a as unlockMasterKeystore, b as unlockNormalKeystore } from '../chunks/keystore-B86UzV8A.js';
5
+ import { l as load } from '../chunks/lclib-j2x9RvDY.js';
6
6
  import '../chunks/base-BQXfRsuw.js';
7
7
  import '../chunks/account-FZT9LH_s.js';
8
8
  import '../chunks/tslib.es6-WQS2tr1v.js';
@@ -39,6 +39,17 @@ define(['module', 'exports', 'node:fs', 'node:path', 'node:url'], (function (mod
39
39
  // 이 모듈은 lib 패키지의 dist/vite-plugin/index.{esm.js|cjs.cjs} 로 빌드된다.
40
40
  // 따라서 `../autogen/wasm/` 은 dist/autogen/wasm/ 을 가리킨다 (rollup-plugin-copy 로 동봉됨).
41
41
  const WASM_DIR = node_url.fileURLToPath(new URL('../autogen/wasm/', new URL(module.uri, document.baseURI).href));
42
+ // dist/vite-plugin/index.esm.js 기준으로 ../../package.json = lib/package.json.
43
+ // lib 자기 자신의 패키지 이름과 모든 export subpath 를 동적으로 추출해서
44
+ // Vite dev 의 optimizeDeps 사전 번들링에서 제외한다 (아래 config 훅 참조).
45
+ const PKG_PATH = node_url.fileURLToPath(new URL('../../package.json', new URL(module.uri, document.baseURI).href));
46
+ const PKG = JSON.parse(fs.readFileSync(PKG_PATH, 'utf-8'));
47
+ const OPTIMIZE_DEPS_EXCLUDE = (() => {
48
+ var _a;
49
+ const name = PKG.name;
50
+ const keys = Object.keys((_a = PKG.exports) !== null && _a !== void 0 ? _a : { '.': null });
51
+ return keys.map(k => (k === '.' ? name : `${name}${k.slice(1)}`));
52
+ })();
42
53
  // lib 코드(자체 패키지 또는 npm link 된 로컬 경로) 안에서만 transform 한다.
43
54
  const LIB_ID_PATTERN = /(?:@locuschain[/\\]lib|locuschain-js[/\\]packages[/\\]lib)[/\\]dist[/\\]/;
44
55
  // 두 가지 패턴 모두 매칭:
@@ -61,6 +72,19 @@ define(['module', 'exports', 'node:fs', 'node:path', 'node:url'], (function (mod
61
72
  return {
62
73
  name: 'locuschain-wasm',
63
74
  enforce: 'pre',
75
+ // Vite dev 의 의존성 사전 번들링(.vite/deps/) 은 esbuild 로 처리돼 일반 plugin transform 훅을
76
+ // 건너뛴다. lib 이 사전 번들링되면 `new URL("../autogen/wasm/<name>", import.meta.url)` 가
77
+ // 치환되지 않은 채 `.vite/deps/` 안의 파일에서 그대로 실행되고, 상대경로가
78
+ // `.vite/autogen/wasm/<name>` 로 풀려 404 가 난다.
79
+ // lib 의 모든 export subpath 를 exclude 에 넣어 사전 번들링을 막는다.
80
+ // 사용자가 wxt.config.ts 에 별도 exclude 를 설정하지 않아도 자동 적용된다.
81
+ config() {
82
+ return {
83
+ optimizeDeps: {
84
+ exclude: OPTIMIZE_DEPS_EXCLUDE
85
+ }
86
+ };
87
+ },
64
88
  configResolved(config) {
65
89
  var _a, _b;
66
90
  isServe = config.command === 'serve';
@@ -46,6 +46,17 @@ const WASM_FILES = [
46
46
  // 이 모듈은 lib 패키지의 dist/vite-plugin/index.{esm.js|cjs.cjs} 로 빌드된다.
47
47
  // 따라서 `../autogen/wasm/` 은 dist/autogen/wasm/ 을 가리킨다 (rollup-plugin-copy 로 동봉됨).
48
48
  const WASM_DIR = node_url.fileURLToPath(new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('vite-plugin/index.cjs.cjs', document.baseURI).href))));
49
+ // dist/vite-plugin/index.esm.js 기준으로 ../../package.json = lib/package.json.
50
+ // lib 자기 자신의 패키지 이름과 모든 export subpath 를 동적으로 추출해서
51
+ // Vite dev 의 optimizeDeps 사전 번들링에서 제외한다 (아래 config 훅 참조).
52
+ const PKG_PATH = node_url.fileURLToPath(new URL('../../package.json', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('vite-plugin/index.cjs.cjs', document.baseURI).href))));
53
+ const PKG = JSON.parse(fs.readFileSync(PKG_PATH, 'utf-8'));
54
+ const OPTIMIZE_DEPS_EXCLUDE = (() => {
55
+ var _a;
56
+ const name = PKG.name;
57
+ const keys = Object.keys((_a = PKG.exports) !== null && _a !== void 0 ? _a : { '.': null });
58
+ return keys.map(k => (k === '.' ? name : `${name}${k.slice(1)}`));
59
+ })();
49
60
  // lib 코드(자체 패키지 또는 npm link 된 로컬 경로) 안에서만 transform 한다.
50
61
  const LIB_ID_PATTERN = /(?:@locuschain[/\\]lib|locuschain-js[/\\]packages[/\\]lib)[/\\]dist[/\\]/;
51
62
  // 두 가지 패턴 모두 매칭:
@@ -68,6 +79,19 @@ function locusWasmPlugin(opts = {}) {
68
79
  return {
69
80
  name: 'locuschain-wasm',
70
81
  enforce: 'pre',
82
+ // Vite dev 의 의존성 사전 번들링(.vite/deps/) 은 esbuild 로 처리돼 일반 plugin transform 훅을
83
+ // 건너뛴다. lib 이 사전 번들링되면 `new URL("../autogen/wasm/<name>", import.meta.url)` 가
84
+ // 치환되지 않은 채 `.vite/deps/` 안의 파일에서 그대로 실행되고, 상대경로가
85
+ // `.vite/autogen/wasm/<name>` 로 풀려 404 가 난다.
86
+ // lib 의 모든 export subpath 를 exclude 에 넣어 사전 번들링을 막는다.
87
+ // 사용자가 wxt.config.ts 에 별도 exclude 를 설정하지 않아도 자동 적용된다.
88
+ config() {
89
+ return {
90
+ optimizeDeps: {
91
+ exclude: OPTIMIZE_DEPS_EXCLUDE
92
+ }
93
+ };
94
+ },
71
95
  configResolved(config) {
72
96
  var _a, _b;
73
97
  isServe = config.command === 'serve';
@@ -41,6 +41,17 @@ const WASM_FILES = [
41
41
  // 이 모듈은 lib 패키지의 dist/vite-plugin/index.{esm.js|cjs.cjs} 로 빌드된다.
42
42
  // 따라서 `../autogen/wasm/` 은 dist/autogen/wasm/ 을 가리킨다 (rollup-plugin-copy 로 동봉됨).
43
43
  const WASM_DIR = fileURLToPath(new URL('../autogen/wasm/', import.meta.url));
44
+ // dist/vite-plugin/index.esm.js 기준으로 ../../package.json = lib/package.json.
45
+ // lib 자기 자신의 패키지 이름과 모든 export subpath 를 동적으로 추출해서
46
+ // Vite dev 의 optimizeDeps 사전 번들링에서 제외한다 (아래 config 훅 참조).
47
+ const PKG_PATH = fileURLToPath(new URL('../../package.json', import.meta.url));
48
+ const PKG = JSON.parse(fs.readFileSync(PKG_PATH, 'utf-8'));
49
+ const OPTIMIZE_DEPS_EXCLUDE = (() => {
50
+ var _a;
51
+ const name = PKG.name;
52
+ const keys = Object.keys((_a = PKG.exports) !== null && _a !== void 0 ? _a : { '.': null });
53
+ return keys.map(k => (k === '.' ? name : `${name}${k.slice(1)}`));
54
+ })();
44
55
  // lib 코드(자체 패키지 또는 npm link 된 로컬 경로) 안에서만 transform 한다.
45
56
  const LIB_ID_PATTERN = /(?:@locuschain[/\\]lib|locuschain-js[/\\]packages[/\\]lib)[/\\]dist[/\\]/;
46
57
  // 두 가지 패턴 모두 매칭:
@@ -63,6 +74,19 @@ function locusWasmPlugin(opts = {}) {
63
74
  return {
64
75
  name: 'locuschain-wasm',
65
76
  enforce: 'pre',
77
+ // Vite dev 의 의존성 사전 번들링(.vite/deps/) 은 esbuild 로 처리돼 일반 plugin transform 훅을
78
+ // 건너뛴다. lib 이 사전 번들링되면 `new URL("../autogen/wasm/<name>", import.meta.url)` 가
79
+ // 치환되지 않은 채 `.vite/deps/` 안의 파일에서 그대로 실행되고, 상대경로가
80
+ // `.vite/autogen/wasm/<name>` 로 풀려 404 가 난다.
81
+ // lib 의 모든 export subpath 를 exclude 에 넣어 사전 번들링을 막는다.
82
+ // 사용자가 wxt.config.ts 에 별도 exclude 를 설정하지 않아도 자동 적용된다.
83
+ config() {
84
+ return {
85
+ optimizeDeps: {
86
+ exclude: OPTIMIZE_DEPS_EXCLUDE
87
+ }
88
+ };
89
+ },
66
90
  configResolved(config) {
67
91
  var _a, _b;
68
92
  isServe = config.command === 'serve';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locuschain/lib",
3
- "version": "0.1.39",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "author": "bloomtechnology",
6
6
  "license": "MIT",