@locuschain/lib 0.2.7 → 0.2.9

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 (86) hide show
  1. package/dist/accounts/index.amd.js +1 -1
  2. package/dist/accounts/index.cjs.cjs +1 -1
  3. package/dist/accounts/index.esm.js +1 -1
  4. package/dist/autogen/actions/debug/public/buildDirectCall.d.cts +4 -0
  5. package/dist/autogen/actions/debug/public/buildDirectCall.d.mts +4 -0
  6. package/dist/autogen/actions/debug/public/index.d.cts +3 -1
  7. package/dist/autogen/actions/debug/public/index.d.mts +3 -1
  8. package/dist/autogen/actions/debug/public/removeHomeTxs.d.cts +4 -0
  9. package/dist/autogen/actions/debug/public/removeHomeTxs.d.mts +4 -0
  10. package/dist/autogen/actions/debug/public/submitDirectCall.d.cts +4 -0
  11. package/dist/autogen/actions/debug/public/submitDirectCall.d.mts +4 -0
  12. package/dist/autogen/actions/public/getHomeTxDir.d.cts +3 -0
  13. package/dist/autogen/actions/public/getHomeTxDir.d.mts +3 -0
  14. package/dist/autogen/actions/public/getHomeTxFlushSeq.d.cts +3 -0
  15. package/dist/autogen/actions/public/getHomeTxFlushSeq.d.mts +3 -0
  16. package/dist/autogen/actions/public/index.d.cts +3 -2
  17. package/dist/autogen/actions/public/index.d.mts +3 -2
  18. package/dist/autogen/actions/public/waitHomeTxChange.d.cts +4 -0
  19. package/dist/autogen/actions/public/waitHomeTxChange.d.mts +4 -0
  20. package/dist/autogen/debugPublicActions.d.cts +6 -2
  21. package/dist/autogen/debugPublicActions.d.mts +6 -2
  22. package/dist/autogen/index.amd.js +7 -4
  23. package/dist/autogen/index.cjs.cjs +7 -4
  24. package/dist/autogen/index.esm.js +5 -3
  25. package/dist/autogen/publicActions.d.cts +4 -2
  26. package/dist/autogen/publicActions.d.mts +4 -2
  27. package/dist/autogen/rpc-api-spec.d.cts +15 -6
  28. package/dist/autogen/rpc-api-spec.d.mts +15 -6
  29. package/dist/autogen/types/consts/tx-type.d.cts +1 -1
  30. package/dist/autogen/types/consts/tx-type.d.mts +1 -1
  31. package/dist/autogen/types/consts/tx-types.d.cts +1 -1
  32. package/dist/autogen/types/consts/tx-types.d.mts +1 -1
  33. package/dist/autogen/types/rpc/index.d.cts +9 -3
  34. package/dist/autogen/types/rpc/index.d.mts +9 -3
  35. package/dist/autogen/types/rpc/params-build-direct-call.d.cts +8 -0
  36. package/dist/autogen/types/rpc/params-build-direct-call.d.mts +8 -0
  37. package/dist/autogen/types/rpc/{params-remove-hold-txs.d.cts → params-remove-home-txs.d.cts} +1 -1
  38. package/dist/autogen/types/rpc/{params-remove-hold-txs.d.mts → params-remove-home-txs.d.mts} +1 -1
  39. package/dist/autogen/types/rpc/params-submit-direct-call.d.cts +4 -0
  40. package/dist/autogen/types/rpc/params-submit-direct-call.d.mts +4 -0
  41. package/dist/autogen/types/rpc/params-wait-home-tx-change.d.cts +4 -0
  42. package/dist/autogen/types/rpc/params-wait-home-tx-change.d.mts +4 -0
  43. package/dist/autogen/types/rpc/rpc-build-direct-call-result.d.cts +5 -0
  44. package/dist/autogen/types/rpc/rpc-build-direct-call-result.d.mts +5 -0
  45. package/dist/autogen/types/rpc/rpc-direct-call-result.d.cts +4 -0
  46. package/dist/autogen/types/rpc/rpc-direct-call-result.d.mts +4 -0
  47. package/dist/autogen/types/rpc/rpc-get-home-tx-dir-result.d.cts +3 -0
  48. package/dist/autogen/types/rpc/rpc-get-home-tx-dir-result.d.mts +3 -0
  49. package/dist/autogen/types/rpc/{rpc-get-hold-tx-flush-seq-result.d.cts → rpc-get-home-tx-flush-seq-result.d.cts} +1 -1
  50. package/dist/autogen/types/rpc/{rpc-get-hold-tx-flush-seq-result.d.mts → rpc-get-home-tx-flush-seq-result.d.mts} +1 -1
  51. package/dist/autogen/types/rpc/rpc-wait-home-tx-change-result.d.cts +5 -0
  52. package/dist/autogen/types/rpc/rpc-wait-home-tx-change-result.d.mts +5 -0
  53. package/dist/autogen/wasm/lclib.wasm +0 -0
  54. package/dist/chunks/{debugWalletActions-WhGBP-BW.cjs → debugWalletActions-BWSVjiFW.cjs} +39 -12
  55. package/dist/chunks/{debugWalletActions-BYqoNvYZ.js → debugWalletActions-DoZUAnEj.js} +39 -12
  56. package/dist/chunks/{debugWalletActions-DNB4coHM.js → debugWalletActions-LMoV1T5I.js} +34 -10
  57. package/dist/chunks/{tx-type-khL8tWtn.cjs → tx-type-CKrHKEwY.cjs} +1 -1
  58. package/dist/chunks/{tx-type-BUN9nEQ6.js → tx-type-CXyml-9n.js} +1 -1
  59. package/dist/chunks/{tx-type-DYAaL3xz.js → tx-type-Dyjdmlv8.js} +1 -1
  60. package/dist/clients/createLocusPublicClient.d.cts +6 -3
  61. package/dist/clients/createLocusPublicClient.d.mts +6 -3
  62. package/dist/clients/index.amd.js +1 -1
  63. package/dist/clients/index.cjs.cjs +1 -1
  64. package/dist/clients/index.esm.js +1 -1
  65. package/dist/constant/index.amd.js +2 -2
  66. package/dist/constant/index.cjs.cjs +2 -2
  67. package/dist/constant/index.d.cts +2 -2
  68. package/dist/constant/index.d.mts +2 -2
  69. package/dist/constant/index.esm.js +2 -2
  70. package/dist/contracts/getContract.d.cts +14 -4
  71. package/dist/contracts/getContract.d.mts +14 -4
  72. package/dist/contracts/index.amd.js +29 -12
  73. package/dist/contracts/index.cjs.cjs +29 -12
  74. package/dist/contracts/index.esm.js +30 -13
  75. package/dist/index.amd.js +1 -1
  76. package/dist/index.cjs.cjs +2 -2
  77. package/dist/index.esm.js +2 -2
  78. package/package.json +38 -1
  79. package/dist/autogen/actions/debug/public/removeHoldTxs.d.cts +0 -4
  80. package/dist/autogen/actions/debug/public/removeHoldTxs.d.mts +0 -4
  81. package/dist/autogen/actions/public/getHoldTxDir.d.cts +0 -3
  82. package/dist/autogen/actions/public/getHoldTxDir.d.mts +0 -3
  83. package/dist/autogen/actions/public/getHoldTxFlushSeq.d.cts +0 -3
  84. package/dist/autogen/actions/public/getHoldTxFlushSeq.d.mts +0 -3
  85. package/dist/autogen/types/rpc/rpc-get-hold-tx-dir-result.d.cts +0 -3
  86. package/dist/autogen/types/rpc/rpc-get-hold-tx-dir-result.d.mts +0 -3
@@ -1,19 +1,26 @@
1
1
  define(['exports', '../chunks/tslib.es6-D29rxPkW', '../chunks/ethers.esm.min-wXex1HuX', '../chunks/wasm-gROtmFm6', '../chunks/lclib-Bv86gksL'], (function (exports, tslib_es6, ethers_esm_min, wasm, lclib) { 'use strict';
2
2
 
3
3
  /**
4
- * Locus 의 debug_viewContract RPC 위에 viem 스타일 컨트랙트 핸들을 만든다.
4
+ * Locus 의 debug_viewVme RPC 위에 viem 스타일 컨트랙트 핸들을 만든다.
5
5
  * `read.<fn>` 은 ethers(v5) 의 Interface 로 호출을 인코딩하고, 결과 바이트를
6
- * convertHexToData 로 Locus `func` 필드에 담아 보낸 뒤, 응답 hex 를
6
+ * convertHexToData 로 Locus `callData` 필드에 담아 보낸 뒤, 응답 hex 를
7
7
  * Interface.decodeFunctionResult 로 다시 디코딩한다.
8
8
  *
9
+ * 신규 VME 모델: 컨트랙트는 (vmeId, subId) 로 식별된다. `address` 가 subId 이고
10
+ * `vmeId` 는 read 호출 시 ReadCallOptions 로 받는다 (필수). RPC ParamsCallVme 의
11
+ * vmeId/subId 와 1:1 대응.
12
+ *
9
13
  * write 메서드는 이번 단계에서는 의도적으로 빠져 있다. 상태를 바꾸는 호출
10
14
  * 은 생성된 wallet action 을 직접 사용한다:
11
15
  *
12
- * import { callContract } from '@locuschain/lib/autogen';
13
- * await wallet.extend(debugWalletActions).callContract({ ... });
16
+ * import { callVme } from '@locuschain/lib/autogen';
17
+ * await wallet.extend(debugWalletActions).callVme({ ... });
14
18
  */
15
19
  function getContract(args) {
16
- const { address, abi, client } = args;
20
+ const { address, abi, client, vmeId } = args;
21
+ if (!vmeId) {
22
+ throw new Error('getContract: vmeId is required');
23
+ }
17
24
  const iface = new ethers_esm_min.ethers.utils.Interface(abi);
18
25
  const read = {};
19
26
  for (const item of normalizeAbi(abi)) {
@@ -29,24 +36,34 @@ define(['exports', '../chunks/tslib.es6-D29rxPkW', '../chunks/ethers.esm.min-wXe
29
36
  function makeRead(name) {
30
37
  return (...args_1) => tslib_es6.__awaiter(this, [...args_1], void 0, function* (callArgs = [], opts = {}) {
31
38
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
32
- const encoded = iface.encodeFunctionData(name, [...callArgs]);
39
+ // address 타입 인자는 Locus base32 주소를 hex 로 변환해야 ethers 가 인코딩한다.
40
+ const fragment = iface.getFunction(name);
41
+ const encodeArgs = callArgs.map((arg, i) => {
42
+ const input = fragment.inputs[i];
43
+ if ((input === null || input === void 0 ? void 0 : input.type) === 'address' && typeof arg === 'string' && !arg.startsWith('0x')) {
44
+ const hex = wasm.convertAddressToHex(arg);
45
+ return hex != null ? '0x' + hex : arg;
46
+ }
47
+ return arg;
48
+ });
49
+ const encoded = iface.encodeFunctionData(name, encodeArgs);
33
50
  const noPrefix = encoded.startsWith('0x') ? encoded.slice(2) : encoded;
34
- const funcField = wasm.convertHexToData(noPrefix);
51
+ const callData = wasm.convertHexToData(noPrefix);
35
52
  const caller = (_c = (_a = opts.caller) !== null && _a !== void 0 ? _a : (_b = client.account) === null || _b === void 0 ? void 0 : _b.address) !== null && _c !== void 0 ? _c : address;
36
53
  const rpcResult = yield client.request({
37
- method: 'debug_viewContract',
54
+ method: 'debug_viewVme',
38
55
  params: [
39
56
  {
40
57
  callerAccount: caller,
41
- contractAccount: address,
58
+ vmeId,
59
+ subId: address,
42
60
  amount: (_d = opts.amount) !== null && _d !== void 0 ? _d : '0',
43
61
  fuelLimit: (_e = opts.fuelLimit) !== null && _e !== void 0 ? _e : '0',
44
62
  tokenAmounts: [],
45
- func: funcField,
46
- argData: '',
47
- feeType: 0,
63
+ callData,
48
64
  sign: '',
49
65
  signedHeight: 0,
66
+ feeType: 0,
50
67
  },
51
68
  ],
52
69
  });
@@ -6,19 +6,26 @@ var wasm = require('../chunks/wasm-dbtq7eri.cjs');
6
6
  require('../chunks/lclib-rGyKpClJ.cjs');
7
7
 
8
8
  /**
9
- * Locus 의 debug_viewContract RPC 위에 viem 스타일 컨트랙트 핸들을 만든다.
9
+ * Locus 의 debug_viewVme RPC 위에 viem 스타일 컨트랙트 핸들을 만든다.
10
10
  * `read.<fn>` 은 ethers(v5) 의 Interface 로 호출을 인코딩하고, 결과 바이트를
11
- * convertHexToData 로 Locus `func` 필드에 담아 보낸 뒤, 응답 hex 를
11
+ * convertHexToData 로 Locus `callData` 필드에 담아 보낸 뒤, 응답 hex 를
12
12
  * Interface.decodeFunctionResult 로 다시 디코딩한다.
13
13
  *
14
+ * 신규 VME 모델: 컨트랙트는 (vmeId, subId) 로 식별된다. `address` 가 subId 이고
15
+ * `vmeId` 는 read 호출 시 ReadCallOptions 로 받는다 (필수). RPC ParamsCallVme 의
16
+ * vmeId/subId 와 1:1 대응.
17
+ *
14
18
  * write 메서드는 이번 단계에서는 의도적으로 빠져 있다. 상태를 바꾸는 호출
15
19
  * 은 생성된 wallet action 을 직접 사용한다:
16
20
  *
17
- * import { callContract } from '@locuschain/lib/autogen';
18
- * await wallet.extend(debugWalletActions).callContract({ ... });
21
+ * import { callVme } from '@locuschain/lib/autogen';
22
+ * await wallet.extend(debugWalletActions).callVme({ ... });
19
23
  */
20
24
  function getContract(args) {
21
- const { address, abi, client } = args;
25
+ const { address, abi, client, vmeId } = args;
26
+ if (!vmeId) {
27
+ throw new Error('getContract: vmeId is required');
28
+ }
22
29
  const iface = new ethers_esm_min.ethers.utils.Interface(abi);
23
30
  const read = {};
24
31
  for (const item of normalizeAbi(abi)) {
@@ -34,24 +41,34 @@ function getContract(args) {
34
41
  function makeRead(name) {
35
42
  return (...args_1) => tslib_es6.__awaiter(this, [...args_1], void 0, function* (callArgs = [], opts = {}) {
36
43
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
37
- const encoded = iface.encodeFunctionData(name, [...callArgs]);
44
+ // address 타입 인자는 Locus base32 주소를 hex 로 변환해야 ethers 가 인코딩한다.
45
+ const fragment = iface.getFunction(name);
46
+ const encodeArgs = callArgs.map((arg, i) => {
47
+ const input = fragment.inputs[i];
48
+ if ((input === null || input === void 0 ? void 0 : input.type) === 'address' && typeof arg === 'string' && !arg.startsWith('0x')) {
49
+ const hex = wasm.convertAddressToHex(arg);
50
+ return hex != null ? '0x' + hex : arg;
51
+ }
52
+ return arg;
53
+ });
54
+ const encoded = iface.encodeFunctionData(name, encodeArgs);
38
55
  const noPrefix = encoded.startsWith('0x') ? encoded.slice(2) : encoded;
39
- const funcField = wasm.convertHexToData(noPrefix);
56
+ const callData = wasm.convertHexToData(noPrefix);
40
57
  const caller = (_c = (_a = opts.caller) !== null && _a !== void 0 ? _a : (_b = client.account) === null || _b === void 0 ? void 0 : _b.address) !== null && _c !== void 0 ? _c : address;
41
58
  const rpcResult = yield client.request({
42
- method: 'debug_viewContract',
59
+ method: 'debug_viewVme',
43
60
  params: [
44
61
  {
45
62
  callerAccount: caller,
46
- contractAccount: address,
63
+ vmeId,
64
+ subId: address,
47
65
  amount: (_d = opts.amount) !== null && _d !== void 0 ? _d : '0',
48
66
  fuelLimit: (_e = opts.fuelLimit) !== null && _e !== void 0 ? _e : '0',
49
67
  tokenAmounts: [],
50
- func: funcField,
51
- argData: '',
52
- feeType: 0,
68
+ callData,
53
69
  sign: '',
54
70
  signedHeight: 0,
71
+ feeType: 0,
55
72
  },
56
73
  ],
57
74
  });
@@ -1,22 +1,29 @@
1
1
  import { _ as __awaiter } from '../chunks/tslib.es6-WQS2tr1v.js';
2
2
  import { e as ethers } from '../chunks/ethers.esm.min-CiOJmj8w.js';
3
- import { r as convertHexToData, n as convertDataToHex } from '../chunks/wasm-CU215LGW.js';
3
+ import { f as convertAddressToHex, r as convertHexToData, n as convertDataToHex } from '../chunks/wasm-CU215LGW.js';
4
4
  import '../chunks/lclib-j2x9RvDY.js';
5
5
 
6
6
  /**
7
- * Locus 의 debug_viewContract RPC 위에 viem 스타일 컨트랙트 핸들을 만든다.
7
+ * Locus 의 debug_viewVme RPC 위에 viem 스타일 컨트랙트 핸들을 만든다.
8
8
  * `read.<fn>` 은 ethers(v5) 의 Interface 로 호출을 인코딩하고, 결과 바이트를
9
- * convertHexToData 로 Locus `func` 필드에 담아 보낸 뒤, 응답 hex 를
9
+ * convertHexToData 로 Locus `callData` 필드에 담아 보낸 뒤, 응답 hex 를
10
10
  * Interface.decodeFunctionResult 로 다시 디코딩한다.
11
11
  *
12
+ * 신규 VME 모델: 컨트랙트는 (vmeId, subId) 로 식별된다. `address` 가 subId 이고
13
+ * `vmeId` 는 read 호출 시 ReadCallOptions 로 받는다 (필수). RPC ParamsCallVme 의
14
+ * vmeId/subId 와 1:1 대응.
15
+ *
12
16
  * write 메서드는 이번 단계에서는 의도적으로 빠져 있다. 상태를 바꾸는 호출
13
17
  * 은 생성된 wallet action 을 직접 사용한다:
14
18
  *
15
- * import { callContract } from '@locuschain/lib/autogen';
16
- * await wallet.extend(debugWalletActions).callContract({ ... });
19
+ * import { callVme } from '@locuschain/lib/autogen';
20
+ * await wallet.extend(debugWalletActions).callVme({ ... });
17
21
  */
18
22
  function getContract(args) {
19
- const { address, abi, client } = args;
23
+ const { address, abi, client, vmeId } = args;
24
+ if (!vmeId) {
25
+ throw new Error('getContract: vmeId is required');
26
+ }
20
27
  const iface = new ethers.utils.Interface(abi);
21
28
  const read = {};
22
29
  for (const item of normalizeAbi(abi)) {
@@ -32,24 +39,34 @@ function getContract(args) {
32
39
  function makeRead(name) {
33
40
  return (...args_1) => __awaiter(this, [...args_1], void 0, function* (callArgs = [], opts = {}) {
34
41
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
35
- const encoded = iface.encodeFunctionData(name, [...callArgs]);
42
+ // address 타입 인자는 Locus base32 주소를 hex 로 변환해야 ethers 가 인코딩한다.
43
+ const fragment = iface.getFunction(name);
44
+ const encodeArgs = callArgs.map((arg, i) => {
45
+ const input = fragment.inputs[i];
46
+ if ((input === null || input === void 0 ? void 0 : input.type) === 'address' && typeof arg === 'string' && !arg.startsWith('0x')) {
47
+ const hex = convertAddressToHex(arg);
48
+ return hex != null ? '0x' + hex : arg;
49
+ }
50
+ return arg;
51
+ });
52
+ const encoded = iface.encodeFunctionData(name, encodeArgs);
36
53
  const noPrefix = encoded.startsWith('0x') ? encoded.slice(2) : encoded;
37
- const funcField = convertHexToData(noPrefix);
54
+ const callData = convertHexToData(noPrefix);
38
55
  const caller = (_c = (_a = opts.caller) !== null && _a !== void 0 ? _a : (_b = client.account) === null || _b === void 0 ? void 0 : _b.address) !== null && _c !== void 0 ? _c : address;
39
56
  const rpcResult = yield client.request({
40
- method: 'debug_viewContract',
57
+ method: 'debug_viewVme',
41
58
  params: [
42
59
  {
43
60
  callerAccount: caller,
44
- contractAccount: address,
61
+ vmeId,
62
+ subId: address,
45
63
  amount: (_d = opts.amount) !== null && _d !== void 0 ? _d : '0',
46
64
  fuelLimit: (_e = opts.fuelLimit) !== null && _e !== void 0 ? _e : '0',
47
65
  tokenAmounts: [],
48
- func: funcField,
49
- argData: '',
50
- feeType: 0,
66
+ callData,
51
67
  sign: '',
52
68
  signedHeight: 0,
69
+ feeType: 0,
53
70
  },
54
71
  ],
55
72
  });
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-JnuLzkLn', './chunks/lclib-Bv86gksL', './chunks/tslib.es6-D29rxPkW', './chunks/debugWalletActions-BYqoNvYZ', './chunks/tx-type-DYAaL3xz', './chunks/wasm-gROtmFm6', './chunks/ethers.esm.min-wXex1HuX', './chunks/address-class-CDo766LJ'], (function (exports, clients, transports, accounts, base, rpc, transport, account, contracts, constant, keystore, lclib, tslib_es6, debugWalletActions, txType, wasm, ethers_esm_min, 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-JnuLzkLn', './chunks/lclib-Bv86gksL', './chunks/tslib.es6-D29rxPkW', './chunks/debugWalletActions-DoZUAnEj', './chunks/tx-type-Dyjdmlv8', './chunks/wasm-gROtmFm6', './chunks/ethers.esm.min-wXex1HuX', './chunks/address-class-CDo766LJ'], (function (exports, clients, transports, accounts, base, rpc, transport, account, contracts, constant, keystore, lclib, tslib_es6, debugWalletActions, txType, wasm, ethers_esm_min, addressClass) { 'use strict';
2
2
 
3
3
 
4
4
 
@@ -12,8 +12,8 @@ var constant = require('./constant/index.cjs.cjs');
12
12
  var keystore = require('./chunks/keystore-DS8JZhXs.cjs');
13
13
  require('./chunks/lclib-rGyKpClJ.cjs');
14
14
  require('./chunks/tslib.es6-Cfi3-HmA.cjs');
15
- require('./chunks/debugWalletActions-WhGBP-BW.cjs');
16
- require('./chunks/tx-type-khL8tWtn.cjs');
15
+ require('./chunks/debugWalletActions-BWSVjiFW.cjs');
16
+ require('./chunks/tx-type-CKrHKEwY.cjs');
17
17
  require('./chunks/wasm-dbtq7eri.cjs');
18
18
  require('./chunks/ethers.esm.min-BBQs5Urm.cjs');
19
19
  require('./chunks/address-class-B8b7mx1K.cjs');
package/dist/index.esm.js CHANGED
@@ -10,8 +10,8 @@ export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount,
10
10
  export { c as createKeystoreBundle, s as splitKeystoreBundle, u as unlockKeystoreBundle, a as unlockMasterKeystore, b as unlockNormalKeystore } from './chunks/keystore-BPU22XT-.js';
11
11
  import './chunks/lclib-j2x9RvDY.js';
12
12
  import './chunks/tslib.es6-WQS2tr1v.js';
13
- import './chunks/debugWalletActions-DNB4coHM.js';
14
- import './chunks/tx-type-BUN9nEQ6.js';
13
+ import './chunks/debugWalletActions-LMoV1T5I.js';
14
+ import './chunks/tx-type-CXyml-9n.js';
15
15
  import './chunks/wasm-CU215LGW.js';
16
16
  import './chunks/ethers.esm.min-CiOJmj8w.js';
17
17
  import './chunks/address-class-3IzotplG.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locuschain/lib",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "type": "module",
5
5
  "author": "bloomtechnology",
6
6
  "license": "MIT",
@@ -107,6 +107,43 @@
107
107
  "require": "./dist/webpack-plugin/index.cjs.cjs"
108
108
  }
109
109
  },
110
+ "typesVersions": {
111
+ "*": {
112
+ "clients": [
113
+ "./dist/clients/index.d.cts"
114
+ ],
115
+ "transports": [
116
+ "./dist/transports/index.d.cts"
117
+ ],
118
+ "accounts": [
119
+ "./dist/accounts/index.d.cts"
120
+ ],
121
+ "errors": [
122
+ "./dist/errors/index.d.cts"
123
+ ],
124
+ "contracts": [
125
+ "./dist/contracts/index.d.cts"
126
+ ],
127
+ "autogen": [
128
+ "./dist/autogen/index.d.cts"
129
+ ],
130
+ "utils": [
131
+ "./dist/utils/index.d.cts"
132
+ ],
133
+ "types": [
134
+ "./dist/types/index.d.cts"
135
+ ],
136
+ "constant": [
137
+ "./dist/constant/index.d.cts"
138
+ ],
139
+ "vite-plugin": [
140
+ "./dist/vite-plugin/index.d.cts"
141
+ ],
142
+ "webpack-plugin": [
143
+ "./dist/webpack-plugin/index.d.cts"
144
+ ]
145
+ }
146
+ },
110
147
  "files": [
111
148
  "./dist"
112
149
  ],
@@ -1,4 +0,0 @@
1
- import { ParamsRemoveHoldTxs } from '../../../types/rpc/params-remove-hold-txs.cjs';
2
- import { RetTypeBase } from '../../../types/common/ret-type-base.cjs';
3
- import type { Client } from '../../../../clients/types.cjs';
4
- export declare function removeHoldTxs(client: Client, param: ParamsRemoveHoldTxs): Promise<RetTypeBase>;
@@ -1,4 +0,0 @@
1
- import { ParamsRemoveHoldTxs } from '../../../types/rpc/params-remove-hold-txs.mjs';
2
- import { RetTypeBase } from '../../../types/common/ret-type-base.mjs';
3
- import type { Client } from '../../../../clients/types.mjs';
4
- export declare function removeHoldTxs(client: Client, param: ParamsRemoveHoldTxs): Promise<RetTypeBase>;
@@ -1,3 +0,0 @@
1
- import { RpcGetHoldTxDirResult } from '../../types/rpc/rpc-get-hold-tx-dir-result.cjs';
2
- import type { Client } from '../../../clients/types.cjs';
3
- export declare function getHoldTxDir(client: Client): Promise<RpcGetHoldTxDirResult>;
@@ -1,3 +0,0 @@
1
- import { RpcGetHoldTxDirResult } from '../../types/rpc/rpc-get-hold-tx-dir-result.mjs';
2
- import type { Client } from '../../../clients/types.mjs';
3
- export declare function getHoldTxDir(client: Client): Promise<RpcGetHoldTxDirResult>;
@@ -1,3 +0,0 @@
1
- import { RpcGetHoldTxFlushSeqResult } from '../../types/rpc/rpc-get-hold-tx-flush-seq-result.cjs';
2
- import type { Client } from '../../../clients/types.cjs';
3
- export declare function getHoldTxFlushSeq(client: Client): Promise<RpcGetHoldTxFlushSeqResult>;
@@ -1,3 +0,0 @@
1
- import { RpcGetHoldTxFlushSeqResult } from '../../types/rpc/rpc-get-hold-tx-flush-seq-result.mjs';
2
- import type { Client } from '../../../clients/types.mjs';
3
- export declare function getHoldTxFlushSeq(client: Client): Promise<RpcGetHoldTxFlushSeqResult>;
@@ -1,3 +0,0 @@
1
- export type RpcGetHoldTxDirResult = {
2
- dir: string;
3
- };
@@ -1,3 +0,0 @@
1
- export type RpcGetHoldTxDirResult = {
2
- dir: string;
3
- };