@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
@@ -113,16 +113,16 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
113
113
  }
114
114
 
115
115
  // Automatically generated file. DO NOT EDIT.
116
- function getHoldTxDir(client) {
116
+ function getHomeTxDir(client) {
117
117
  return tslib_es6.__awaiter(this, void 0, void 0, function* () {
118
- return client.request({ method: 'locus_getHoldTxDir', params: [] });
118
+ return client.request({ method: 'locus_getHomeTxDir', params: [] });
119
119
  });
120
120
  }
121
121
 
122
122
  // Automatically generated file. DO NOT EDIT.
123
- function getHoldTxFlushSeq(client) {
123
+ function getHomeTxFlushSeq(client) {
124
124
  return tslib_es6.__awaiter(this, void 0, void 0, function* () {
125
- return client.request({ method: 'locus_getHoldTxFlushSeq', params: [] });
125
+ return client.request({ method: 'locus_getHomeTxFlushSeq', params: [] });
126
126
  });
127
127
  }
128
128
 
@@ -322,6 +322,13 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
322
322
  });
323
323
  }
324
324
 
325
+ // Automatically generated file. DO NOT EDIT.
326
+ function waitHomeTxChange(client, params) {
327
+ return tslib_es6.__awaiter(this, void 0, void 0, function* () {
328
+ return client.request({ method: 'locus_waitHomeTxChange', params: [params] });
329
+ });
330
+ }
331
+
325
332
  // Automatically generated file. DO NOT EDIT.
326
333
  const publicActions = (client) => ({
327
334
  accountHeightsToDownload: (param) => accountHeightsToDownload(client, param),
@@ -340,8 +347,8 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
340
347
  getAccountTokenList: (params) => getAccountTokenList(client, params),
341
348
  getConciseNodeStatus: () => getConciseNodeStatus(client),
342
349
  getGenesisAccount: () => getGenesisAccount(client),
343
- getHoldTxDir: () => getHoldTxDir(client),
344
- getHoldTxFlushSeq: () => getHoldTxFlushSeq(client),
350
+ getHomeTxDir: () => getHomeTxDir(client),
351
+ getHomeTxFlushSeq: () => getHomeTxFlushSeq(client),
345
352
  getIdentityProof: (param) => getIdentityProof(client, param),
346
353
  getInactiveTxList: (param) => getInactiveTxList(client, param),
347
354
  getLaunchCommand: () => getLaunchCommand(client),
@@ -370,6 +377,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
370
377
  verifyLatestStoredDataProof: (params) => verifyLatestStoredDataProof(client, params),
371
378
  verifyProofW: (params) => verifyProofW(client, params),
372
379
  verifyTxListWitness: (params) => verifyTxListWitness(client, params),
380
+ waitHomeTxChange: (params) => waitHomeTxChange(client, params),
373
381
  });
374
382
 
375
383
  /**
@@ -750,6 +758,13 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
750
758
  });
751
759
  }
752
760
 
761
+ // Automatically generated file. DO NOT EDIT.
762
+ function buildDirectCall(client, param) {
763
+ return tslib_es6.__awaiter(this, void 0, void 0, function* () {
764
+ return client.request({ method: 'debug_buildDirectCall', params: [param] });
765
+ });
766
+ }
767
+
753
768
  // Automatically generated file. DO NOT EDIT.
754
769
  function createAccount(client) {
755
770
  return tslib_es6.__awaiter(this, void 0, void 0, function* () {
@@ -891,9 +906,9 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
891
906
  }
892
907
 
893
908
  // Automatically generated file. DO NOT EDIT.
894
- function removeHoldTxs(client, param) {
909
+ function removeHomeTxs(client, param) {
895
910
  return tslib_es6.__awaiter(this, void 0, void 0, function* () {
896
- return client.request({ method: 'debug_removeHoldTxs', params: [param] });
911
+ return client.request({ method: 'debug_removeHomeTxs', params: [param] });
897
912
  });
898
913
  }
899
914
 
@@ -925,6 +940,13 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
925
940
  });
926
941
  }
927
942
 
943
+ // Automatically generated file. DO NOT EDIT.
944
+ function submitDirectCall(client, param) {
945
+ return tslib_es6.__awaiter(this, void 0, void 0, function* () {
946
+ return client.request({ method: 'debug_submitDirectCall', params: [param] });
947
+ });
948
+ }
949
+
928
950
  // Automatically generated file. DO NOT EDIT.
929
951
  function viewVme(client, param) {
930
952
  return tslib_es6.__awaiter(this, void 0, void 0, function* () {
@@ -937,6 +959,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
937
959
  allHeights: () => allHeights(client),
938
960
  balanceGrantList: () => balanceGrantList(client),
939
961
  balanceList: () => balanceList(client),
962
+ buildDirectCall: (param) => buildDirectCall(client, param),
940
963
  createAccount: () => createAccount(client),
941
964
  createNode: (param) => createNode(client, param),
942
965
  dumpAllAccounts: () => dumpAllAccounts(client),
@@ -957,11 +980,12 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
957
980
  initReliableNodes: (param) => initReliableNodes(client, param),
958
981
  noArgsRets: () => noArgsRets(client),
959
982
  nodeCmd: (cmd) => nodeCmd(client, cmd),
960
- removeHoldTxs: (param) => removeHoldTxs(client, param),
983
+ removeHomeTxs: (param) => removeHomeTxs(client, param),
961
984
  requestVme: (params) => requestVme(client, params),
962
985
  sendRawTransaction: (params) => sendRawTransaction(client, params),
963
986
  setImportAccountTx: (params) => setImportAccountTx(client, params),
964
987
  setReliableNode: (param) => setReliableNode(client, param),
988
+ submitDirectCall: (param) => submitDirectCall(client, param),
965
989
  viewVme: (param) => viewVme(client, param),
966
990
  });
967
991
 
@@ -1027,6 +1051,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
1027
1051
  exports.balanceList = balanceList;
1028
1052
  exports.becomeGuest = becomeGuest;
1029
1053
  exports.becomeHost = becomeHost;
1054
+ exports.buildDirectCall = buildDirectCall;
1030
1055
  exports.calculateAvailableByForward = calculateAvailableByForward;
1031
1056
  exports.calculateAvailableByForwardList = calculateAvailableByForwardList;
1032
1057
  exports.callContract = callContract;
@@ -1065,9 +1090,9 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
1065
1090
  exports.getConciseNodeStatus = getConciseNodeStatus;
1066
1091
  exports.getGenesisAccount = getGenesisAccount;
1067
1092
  exports.getGuestsInfo = getGuestsInfo;
1068
- exports.getHoldTxDir = getHoldTxDir;
1069
- exports.getHoldTxFlushSeq = getHoldTxFlushSeq;
1070
1093
  exports.getHomeShard = getHomeShard;
1094
+ exports.getHomeTxDir = getHomeTxDir;
1095
+ exports.getHomeTxFlushSeq = getHomeTxFlushSeq;
1071
1096
  exports.getIdentityProof = getIdentityProof;
1072
1097
  exports.getImportAccount = getImportAccount;
1073
1098
  exports.getImportAccountLog = getImportAccountLog;
@@ -1103,7 +1128,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
1103
1128
  exports.publicActions = publicActions;
1104
1129
  exports.queryAddress = queryAddress;
1105
1130
  exports.readTxListWitness = readTxListWitness;
1106
- exports.removeHoldTxs = removeHoldTxs;
1131
+ exports.removeHomeTxs = removeHomeTxs;
1107
1132
  exports.requestDataTrade = requestDataTrade;
1108
1133
  exports.requestVme = requestVme;
1109
1134
  exports.sendRawTransaction = sendRawTransaction;
@@ -1111,6 +1136,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
1111
1136
  exports.setImportAccountTx = setImportAccountTx;
1112
1137
  exports.setReliableNode = setReliableNode;
1113
1138
  exports.shutdown = shutdown;
1139
+ exports.submitDirectCall = submitDirectCall;
1114
1140
  exports.subscribeAddress = subscribeAddress;
1115
1141
  exports.transfer = transfer;
1116
1142
  exports.transferAllRes = transferAllRes;
@@ -1126,6 +1152,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
1126
1152
  exports.verifyProofW = verifyProofW;
1127
1153
  exports.verifyTxListWitness = verifyTxListWitness;
1128
1154
  exports.viewVme = viewVme;
1155
+ exports.waitHomeTxChange = waitHomeTxChange;
1129
1156
  exports.walletActions = walletActions;
1130
1157
 
1131
1158
  }));
@@ -115,16 +115,16 @@ function getGenesisAccount(client) {
115
115
  }
116
116
 
117
117
  // Automatically generated file. DO NOT EDIT.
118
- function getHoldTxDir(client) {
118
+ function getHomeTxDir(client) {
119
119
  return __awaiter(this, void 0, void 0, function* () {
120
- return client.request({ method: 'locus_getHoldTxDir', params: [] });
120
+ return client.request({ method: 'locus_getHomeTxDir', params: [] });
121
121
  });
122
122
  }
123
123
 
124
124
  // Automatically generated file. DO NOT EDIT.
125
- function getHoldTxFlushSeq(client) {
125
+ function getHomeTxFlushSeq(client) {
126
126
  return __awaiter(this, void 0, void 0, function* () {
127
- return client.request({ method: 'locus_getHoldTxFlushSeq', params: [] });
127
+ return client.request({ method: 'locus_getHomeTxFlushSeq', params: [] });
128
128
  });
129
129
  }
130
130
 
@@ -324,6 +324,13 @@ function verifyTxListWitness(client, params) {
324
324
  });
325
325
  }
326
326
 
327
+ // Automatically generated file. DO NOT EDIT.
328
+ function waitHomeTxChange(client, params) {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ return client.request({ method: 'locus_waitHomeTxChange', params: [params] });
331
+ });
332
+ }
333
+
327
334
  // Automatically generated file. DO NOT EDIT.
328
335
  const publicActions = (client) => ({
329
336
  accountHeightsToDownload: (param) => accountHeightsToDownload(client, param),
@@ -342,8 +349,8 @@ const publicActions = (client) => ({
342
349
  getAccountTokenList: (params) => getAccountTokenList(client, params),
343
350
  getConciseNodeStatus: () => getConciseNodeStatus(client),
344
351
  getGenesisAccount: () => getGenesisAccount(client),
345
- getHoldTxDir: () => getHoldTxDir(client),
346
- getHoldTxFlushSeq: () => getHoldTxFlushSeq(client),
352
+ getHomeTxDir: () => getHomeTxDir(client),
353
+ getHomeTxFlushSeq: () => getHomeTxFlushSeq(client),
347
354
  getIdentityProof: (param) => getIdentityProof(client, param),
348
355
  getInactiveTxList: (param) => getInactiveTxList(client, param),
349
356
  getLaunchCommand: () => getLaunchCommand(client),
@@ -372,6 +379,7 @@ const publicActions = (client) => ({
372
379
  verifyLatestStoredDataProof: (params) => verifyLatestStoredDataProof(client, params),
373
380
  verifyProofW: (params) => verifyProofW(client, params),
374
381
  verifyTxListWitness: (params) => verifyTxListWitness(client, params),
382
+ waitHomeTxChange: (params) => waitHomeTxChange(client, params),
375
383
  });
376
384
 
377
385
  /**
@@ -752,6 +760,13 @@ function balanceList(client) {
752
760
  });
753
761
  }
754
762
 
763
+ // Automatically generated file. DO NOT EDIT.
764
+ function buildDirectCall(client, param) {
765
+ return __awaiter(this, void 0, void 0, function* () {
766
+ return client.request({ method: 'debug_buildDirectCall', params: [param] });
767
+ });
768
+ }
769
+
755
770
  // Automatically generated file. DO NOT EDIT.
756
771
  function createAccount(client) {
757
772
  return __awaiter(this, void 0, void 0, function* () {
@@ -893,9 +908,9 @@ function nodeCmd(client, cmd) {
893
908
  }
894
909
 
895
910
  // Automatically generated file. DO NOT EDIT.
896
- function removeHoldTxs(client, param) {
911
+ function removeHomeTxs(client, param) {
897
912
  return __awaiter(this, void 0, void 0, function* () {
898
- return client.request({ method: 'debug_removeHoldTxs', params: [param] });
913
+ return client.request({ method: 'debug_removeHomeTxs', params: [param] });
899
914
  });
900
915
  }
901
916
 
@@ -927,6 +942,13 @@ function setReliableNode(client, param) {
927
942
  });
928
943
  }
929
944
 
945
+ // Automatically generated file. DO NOT EDIT.
946
+ function submitDirectCall(client, param) {
947
+ return __awaiter(this, void 0, void 0, function* () {
948
+ return client.request({ method: 'debug_submitDirectCall', params: [param] });
949
+ });
950
+ }
951
+
930
952
  // Automatically generated file. DO NOT EDIT.
931
953
  function viewVme(client, param) {
932
954
  return __awaiter(this, void 0, void 0, function* () {
@@ -939,6 +961,7 @@ const debugPublicActions = (client) => ({
939
961
  allHeights: () => allHeights(client),
940
962
  balanceGrantList: () => balanceGrantList(client),
941
963
  balanceList: () => balanceList(client),
964
+ buildDirectCall: (param) => buildDirectCall(client, param),
942
965
  createAccount: () => createAccount(client),
943
966
  createNode: (param) => createNode(client, param),
944
967
  dumpAllAccounts: () => dumpAllAccounts(client),
@@ -959,11 +982,12 @@ const debugPublicActions = (client) => ({
959
982
  initReliableNodes: (param) => initReliableNodes(client, param),
960
983
  noArgsRets: () => noArgsRets(client),
961
984
  nodeCmd: (cmd) => nodeCmd(client, cmd),
962
- removeHoldTxs: (param) => removeHoldTxs(client, param),
985
+ removeHomeTxs: (param) => removeHomeTxs(client, param),
963
986
  requestVme: (params) => requestVme(client, params),
964
987
  sendRawTransaction: (params) => sendRawTransaction(client, params),
965
988
  setImportAccountTx: (params) => setImportAccountTx(client, params),
966
989
  setReliableNode: (param) => setReliableNode(client, param),
990
+ submitDirectCall: (param) => submitDirectCall(client, param),
967
991
  viewVme: (param) => viewVme(client, param),
968
992
  });
969
993
 
@@ -1021,4 +1045,4 @@ const debugWalletActions = (client) => ({
1021
1045
  postDataToSynthAccount: (param) => postDataToSynthAccount(client, param),
1022
1046
  });
1023
1047
 
1024
- export { forwardAssetObject as $, nodeCmd as A, postDataToSynthAccount as B, removeHoldTxs as C, requestVme as D, sendRawTransaction as E, setImportAccountTx as F, setReliableNode as G, viewVme as H, acceptScript as I, accountHeightsToDownload as J, accountHeightsToUpload as K, becomeGuest as L, becomeHost as M, calculateAvailableByForward as N, calculateAvailableByForwardList as O, changeKey as P, changeVkey as Q, clientMessage as R, closeAccount as S, createAssetObject as T, createToken as U, createVme as V, debugPublicActions as W, debugWalletActions as X, downloadAccountTxs as Y, echo$1 as Z, findDuplicateSubscriber as _, allHeights as a, forwardCoin as a0, forwardToken as a1, freezeAccount as a2, generateLatestStoredDataProof as a3, getAccountAssetList as a4, getAccountAssetObject as a5, getAccountDetail as a6, getAccountHistory as a7, getAccountTokenList as a8, getConciseNodeStatus as a9, requestDataTrade as aA, setHost as aB, shutdown as aC, subscribeAddress as aD, transfer as aE, transferAllRes as aF, transferAssetObject as aG, transferCoin as aH, transferToken as aI, unlockStake as aJ, upliftProofW as aK, uploadAccountTxs as aL, verifyAndSignChallenge as aM, verifyIdentityProof as aN, verifyLatestStoredDataProof as aO, verifyProofW as aP, verifyTxListWitness as aQ, walletActions as aR, getGenesisAccount as aa, getHoldTxDir as ab, getHoldTxFlushSeq as ac, getIdentityProof as ad, getInactiveTxList as ae, getLaunchCommand as af, getMontInfoList as ag, getNodeStatus as ah, getNodeVersion as ai, getOwnerBalance as aj, getRoundState as ak, getRoundStatesList as al, getShardOfAccount as am, getSyncState as an, getTx as ao, getWorldRoundState as ap, getWorldRoundStatesList as aq, hasSystemToken as ar, lockStake as as, makeTxProof as at, openAccount as au, postData as av, provideScript as aw, publicActions as ax, queryAddress as ay, readTxListWitness as az, balanceGrantList as b, balanceList as c, callContract as d, callVme as e, createAccount as f, createContract as g, createNode as h, createSynthAccount as i, dumpAllAccounts as j, echo as k, gameChainCmd as l, getAccountsBalances as m, getAccountsHeights as n, getGuestsInfo as o, getHomeShard as p, getImportAccount as q, getImportAccountLog as r, getKeys as s, getNodeBlocks as t, getPeerPool as u, getPeersInfo as v, getVmeLog as w, importAccount as x, initReliableNodes as y, noArgsRets as z };
1048
+ export { echo$1 as $, noArgsRets as A, nodeCmd as B, postDataToSynthAccount as C, removeHomeTxs as D, requestVme as E, sendRawTransaction as F, setImportAccountTx as G, setReliableNode as H, submitDirectCall as I, viewVme as J, acceptScript as K, accountHeightsToDownload as L, accountHeightsToUpload as M, becomeGuest as N, becomeHost as O, calculateAvailableByForward as P, calculateAvailableByForwardList as Q, changeKey as R, changeVkey as S, clientMessage as T, closeAccount as U, createAssetObject as V, createToken as W, createVme as X, debugPublicActions as Y, debugWalletActions as Z, downloadAccountTxs as _, allHeights as a, findDuplicateSubscriber as a0, forwardAssetObject as a1, forwardCoin as a2, forwardToken as a3, freezeAccount as a4, generateLatestStoredDataProof as a5, getAccountAssetList as a6, getAccountAssetObject as a7, getAccountDetail as a8, getAccountHistory as a9, queryAddress as aA, readTxListWitness as aB, requestDataTrade as aC, setHost as aD, shutdown as aE, subscribeAddress as aF, transfer as aG, transferAllRes as aH, transferAssetObject as aI, transferCoin as aJ, transferToken as aK, unlockStake as aL, upliftProofW as aM, uploadAccountTxs as aN, verifyAndSignChallenge as aO, verifyIdentityProof as aP, verifyLatestStoredDataProof as aQ, verifyProofW as aR, verifyTxListWitness as aS, waitHomeTxChange as aT, walletActions as aU, getAccountTokenList as aa, getConciseNodeStatus as ab, getGenesisAccount as ac, getHomeTxDir as ad, getHomeTxFlushSeq as ae, getIdentityProof as af, getInactiveTxList as ag, getLaunchCommand as ah, getMontInfoList as ai, getNodeStatus as aj, getNodeVersion as ak, getOwnerBalance as al, getRoundState as am, getRoundStatesList as an, getShardOfAccount as ao, getSyncState as ap, getTx as aq, getWorldRoundState as ar, getWorldRoundStatesList as as, hasSystemToken as at, lockStake as au, makeTxProof as av, openAccount as aw, postData as ax, provideScript as ay, publicActions as az, balanceGrantList as b, balanceList as c, buildDirectCall as d, callContract as e, callVme as f, createAccount as g, createContract as h, createNode as i, createSynthAccount as j, dumpAllAccounts as k, echo as l, gameChainCmd as m, getAccountsBalances as n, getAccountsHeights as o, getGuestsInfo as p, getHomeShard as q, getImportAccount as r, getImportAccountLog as s, getKeys as t, getNodeBlocks as u, getPeerPool as v, getPeersInfo as w, getVmeLog as x, importAccount as y, initReliableNodes as z };
@@ -48,7 +48,7 @@ const TxType = Object.freeze({
48
48
  LOCK_STAKE_FOR_VME: 'TX_LOCK_STAKE_FOR_VME',
49
49
  ACTIVATE_LOCK_STAKE_FOR_VME: 'TX_ACTIVATE_LOCK_STAKE_FOR_VME',
50
50
  UNLOCK_STAKE: 'TX_UNLOCK_STAKE',
51
- CREATE_VME_FEE: 'TX_CREATE_VME_FEE',
51
+ CREATE_VME: 'TX_CREATE_VME',
52
52
  ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
53
53
  VME_BLOCK: 'TX_VME_BLOCK',
54
54
  CALL_VME: 'TX_CALL_VME',
@@ -46,7 +46,7 @@ const TxType = Object.freeze({
46
46
  LOCK_STAKE_FOR_VME: 'TX_LOCK_STAKE_FOR_VME',
47
47
  ACTIVATE_LOCK_STAKE_FOR_VME: 'TX_ACTIVATE_LOCK_STAKE_FOR_VME',
48
48
  UNLOCK_STAKE: 'TX_UNLOCK_STAKE',
49
- CREATE_VME_FEE: 'TX_CREATE_VME_FEE',
49
+ CREATE_VME: 'TX_CREATE_VME',
50
50
  ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
51
51
  VME_BLOCK: 'TX_VME_BLOCK',
52
52
  CALL_VME: 'TX_CALL_VME',
@@ -48,7 +48,7 @@ define(['exports'], (function (exports) { 'use strict';
48
48
  LOCK_STAKE_FOR_VME: 'TX_LOCK_STAKE_FOR_VME',
49
49
  ACTIVATE_LOCK_STAKE_FOR_VME: 'TX_ACTIVATE_LOCK_STAKE_FOR_VME',
50
50
  UNLOCK_STAKE: 'TX_UNLOCK_STAKE',
51
- CREATE_VME_FEE: 'TX_CREATE_VME_FEE',
51
+ CREATE_VME: 'TX_CREATE_VME',
52
52
  ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
53
53
  VME_BLOCK: 'TX_VME_BLOCK',
54
54
  CALL_VME: 'TX_CALL_VME',
@@ -32,6 +32,7 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
32
32
  readonly allHeights: () => Promise<import("../index.cjs").RpcAccountHeight[]>;
33
33
  readonly balanceGrantList: () => Promise<string[]>;
34
34
  readonly balanceList: () => Promise<string[]>;
35
+ readonly buildDirectCall: (param: import("../index.cjs").ParamsBuildDirectCall) => Promise<import("../index.cjs").RpcBuildDirectCallResult>;
35
36
  readonly createAccount: () => Promise<import("../index.cjs").RpcCreateAccountResult>;
36
37
  readonly createNode: (param: import("../index.cjs").ParamsCreateNode) => Promise<import("../index.cjs").RpcCreateNodeResult>;
37
38
  readonly dumpAllAccounts: () => Promise<import("../index.cjs").ResultDumpAccounts>;
@@ -52,11 +53,12 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
52
53
  readonly initReliableNodes: (param: import("../index.cjs").ParamsInitReliableNodes) => Promise<import("../index.cjs").RpcBoolResult>;
53
54
  readonly noArgsRets: () => Promise<any>;
54
55
  readonly nodeCmd: (cmd: string) => Promise<import("../index.cjs").RpcNodeCmdResult>;
55
- readonly removeHoldTxs: (param: import("../index.cjs").ParamsRemoveHoldTxs) => Promise<import("../index.cjs").RetTypeBase>;
56
+ readonly removeHomeTxs: (param: import("../index.cjs").ParamsRemoveHomeTxs) => Promise<import("../index.cjs").RetTypeBase>;
56
57
  readonly requestVme: (params: import("../index.cjs").ParamsRequestVme) => Promise<import("../index.cjs").RpcRequestVmeResult>;
57
58
  readonly sendRawTransaction: (params: import("../index.cjs").ParamsSendRawTransaction) => Promise<import("../index.cjs").RpcSendRawTransactionResult>;
58
59
  readonly setImportAccountTx: (params: import("../index.cjs").ParamsSetImportAccountTx) => Promise<import("../index.cjs").RpcSetImportAccountTxResult>;
59
60
  readonly setReliableNode: (param: import("../index.cjs").ParamsSetReliableNode) => Promise<import("../index.cjs").RpcBoolResult>;
61
+ readonly submitDirectCall: (param: import("../index.cjs").ParamsSubmitDirectCall) => Promise<import("../index.cjs").RpcDirectCallResult>;
60
62
  readonly viewVme: (param: import("../index.cjs").ParamsCallVme) => Promise<import("../index.cjs").RpcViewVmeResult>;
61
63
  readonly accountHeightsToDownload: (param: import("../index.cjs").ParamsAccountHeights) => Promise<import("../index.cjs").HeightsResult>;
62
64
  readonly accountHeightsToUpload: (param: import("../index.cjs").ParamsAccountHeights) => Promise<import("../index.cjs").UploadHeightsResult>;
@@ -73,8 +75,8 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
73
75
  readonly getAccountTokenList: (params: import("../index.cjs").ParamsAccount) => Promise<import("../index.cjs").RpcGetAccountTokenListResult>;
74
76
  readonly getConciseNodeStatus: () => Promise<import("../index.cjs").RpcGetConciseNodeStatusResult>;
75
77
  readonly getGenesisAccount: () => Promise<import("../index.cjs").RpcGetGenesisAccountResult>;
76
- readonly getHoldTxDir: () => Promise<import("../index.cjs").RpcGetHoldTxDirResult>;
77
- readonly getHoldTxFlushSeq: () => Promise<import("../index.cjs").RpcGetHoldTxFlushSeqResult>;
78
+ readonly getHomeTxDir: () => Promise<import("../index.cjs").RpcGetHomeTxDirResult>;
79
+ readonly getHomeTxFlushSeq: () => Promise<import("../index.cjs").RpcGetHomeTxFlushSeqResult>;
78
80
  readonly getIdentityProof: (param: import("../index.cjs").ParamsGetIdentityProof) => Promise<import("../index.cjs").RpcGetIdentityProofResult>;
79
81
  readonly getInactiveTxList: (param: import("../index.cjs").ParamsAccount) => Promise<import("../index.cjs").RpcGetInactiveTxListResult>;
80
82
  readonly getLaunchCommand: () => Promise<import("../index.cjs").RpcGetLaunchCommandResult>;
@@ -103,6 +105,7 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
103
105
  readonly verifyLatestStoredDataProof: (params: import("../index.cjs").ParamsLatestStoredDataProof) => Promise<boolean>;
104
106
  readonly verifyProofW: (params: import("../index.cjs").ParamsVerifyProofW) => Promise<boolean>;
105
107
  readonly verifyTxListWitness: (params: import("../index.cjs").ParamsTxListWitness) => Promise<boolean>;
108
+ readonly waitHomeTxChange: (params: import("../index.cjs").ParamsWaitHomeTxChange) => Promise<import("../index.cjs").RpcWaitHomeTxChangeResult>;
106
109
  };
107
110
  /** 추론된 반환 타입 — 이 클라이언트를 담는 필드/변수의 타입 선언에 사용. */
108
111
  export type LocusPublicClient = ReturnType<typeof createLocusPublicClient>;
@@ -32,6 +32,7 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
32
32
  readonly allHeights: () => Promise<import("../index.mjs").RpcAccountHeight[]>;
33
33
  readonly balanceGrantList: () => Promise<string[]>;
34
34
  readonly balanceList: () => Promise<string[]>;
35
+ readonly buildDirectCall: (param: import("../index.mjs").ParamsBuildDirectCall) => Promise<import("../index.mjs").RpcBuildDirectCallResult>;
35
36
  readonly createAccount: () => Promise<import("../index.mjs").RpcCreateAccountResult>;
36
37
  readonly createNode: (param: import("../index.mjs").ParamsCreateNode) => Promise<import("../index.mjs").RpcCreateNodeResult>;
37
38
  readonly dumpAllAccounts: () => Promise<import("../index.mjs").ResultDumpAccounts>;
@@ -52,11 +53,12 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
52
53
  readonly initReliableNodes: (param: import("../index.mjs").ParamsInitReliableNodes) => Promise<import("../index.mjs").RpcBoolResult>;
53
54
  readonly noArgsRets: () => Promise<any>;
54
55
  readonly nodeCmd: (cmd: string) => Promise<import("../index.mjs").RpcNodeCmdResult>;
55
- readonly removeHoldTxs: (param: import("../index.mjs").ParamsRemoveHoldTxs) => Promise<import("../index.mjs").RetTypeBase>;
56
+ readonly removeHomeTxs: (param: import("../index.mjs").ParamsRemoveHomeTxs) => Promise<import("../index.mjs").RetTypeBase>;
56
57
  readonly requestVme: (params: import("../index.mjs").ParamsRequestVme) => Promise<import("../index.mjs").RpcRequestVmeResult>;
57
58
  readonly sendRawTransaction: (params: import("../index.mjs").ParamsSendRawTransaction) => Promise<import("../index.mjs").RpcSendRawTransactionResult>;
58
59
  readonly setImportAccountTx: (params: import("../index.mjs").ParamsSetImportAccountTx) => Promise<import("../index.mjs").RpcSetImportAccountTxResult>;
59
60
  readonly setReliableNode: (param: import("../index.mjs").ParamsSetReliableNode) => Promise<import("../index.mjs").RpcBoolResult>;
61
+ readonly submitDirectCall: (param: import("../index.mjs").ParamsSubmitDirectCall) => Promise<import("../index.mjs").RpcDirectCallResult>;
60
62
  readonly viewVme: (param: import("../index.mjs").ParamsCallVme) => Promise<import("../index.mjs").RpcViewVmeResult>;
61
63
  readonly accountHeightsToDownload: (param: import("../index.mjs").ParamsAccountHeights) => Promise<import("../index.mjs").HeightsResult>;
62
64
  readonly accountHeightsToUpload: (param: import("../index.mjs").ParamsAccountHeights) => Promise<import("../index.mjs").UploadHeightsResult>;
@@ -73,8 +75,8 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
73
75
  readonly getAccountTokenList: (params: import("../index.mjs").ParamsAccount) => Promise<import("../index.mjs").RpcGetAccountTokenListResult>;
74
76
  readonly getConciseNodeStatus: () => Promise<import("../index.mjs").RpcGetConciseNodeStatusResult>;
75
77
  readonly getGenesisAccount: () => Promise<import("../index.mjs").RpcGetGenesisAccountResult>;
76
- readonly getHoldTxDir: () => Promise<import("../index.mjs").RpcGetHoldTxDirResult>;
77
- readonly getHoldTxFlushSeq: () => Promise<import("../index.mjs").RpcGetHoldTxFlushSeqResult>;
78
+ readonly getHomeTxDir: () => Promise<import("../index.mjs").RpcGetHomeTxDirResult>;
79
+ readonly getHomeTxFlushSeq: () => Promise<import("../index.mjs").RpcGetHomeTxFlushSeqResult>;
78
80
  readonly getIdentityProof: (param: import("../index.mjs").ParamsGetIdentityProof) => Promise<import("../index.mjs").RpcGetIdentityProofResult>;
79
81
  readonly getInactiveTxList: (param: import("../index.mjs").ParamsAccount) => Promise<import("../index.mjs").RpcGetInactiveTxListResult>;
80
82
  readonly getLaunchCommand: () => Promise<import("../index.mjs").RpcGetLaunchCommandResult>;
@@ -103,6 +105,7 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
103
105
  readonly verifyLatestStoredDataProof: (params: import("../index.mjs").ParamsLatestStoredDataProof) => Promise<boolean>;
104
106
  readonly verifyProofW: (params: import("../index.mjs").ParamsVerifyProofW) => Promise<boolean>;
105
107
  readonly verifyTxListWitness: (params: import("../index.mjs").ParamsTxListWitness) => Promise<boolean>;
108
+ readonly waitHomeTxChange: (params: import("../index.mjs").ParamsWaitHomeTxChange) => Promise<import("../index.mjs").RpcWaitHomeTxChangeResult>;
106
109
  };
107
110
  /** 추론된 반환 타입 — 이 클라이언트를 담는 필드/변수의 타입 선언에 사용. */
108
111
  export type LocusPublicClient = ReturnType<typeof createLocusPublicClient>;
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/lclib-Bv86gksL', '../chunks/debugWalletActions-BYqoNvYZ', '../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-DoZUAnEj', '../chunks/tslib.es6-D29rxPkW', '../transports/index.amd', '../chunks/rpc-C4n7t9y0', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8', '../chunks/transport-BBAz1kmP'], (function (exports, lclib, debugWalletActions, tslib_es6, transports, rpc, base, account, transport) { 'use strict';
2
2
 
3
3
  function createClient(args) {
4
4
  var _a;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunks/lclib-rGyKpClJ.cjs');
4
- var debugWalletActions = require('../chunks/debugWalletActions-WhGBP-BW.cjs');
4
+ var debugWalletActions = require('../chunks/debugWalletActions-BWSVjiFW.cjs');
5
5
  require('../chunks/tslib.es6-Cfi3-HmA.cjs');
6
6
  var transports = require('../transports/index.cjs.cjs');
7
7
  require('../chunks/rpc-DwWIkUva.cjs');
@@ -1,5 +1,5 @@
1
1
  import '../chunks/lclib-j2x9RvDY.js';
2
- import { ax as publicActions, W as debugPublicActions, aR as walletActions, X as debugWalletActions } from '../chunks/debugWalletActions-DNB4coHM.js';
2
+ import { az as publicActions, Y as debugPublicActions, aU as walletActions, Z as debugWalletActions } from '../chunks/debugWalletActions-LMoV1T5I.js';
3
3
  import '../chunks/tslib.es6-WQS2tr1v.js';
4
4
  import { http } from '../transports/index.esm.js';
5
5
  import '../chunks/rpc-BlPk44QH.js';
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-DYAaL3xz'], (function (exports, addressClass, txType) { 'use strict';
1
+ define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-Dyjdmlv8'], (function (exports, addressClass, txType) { 'use strict';
2
2
 
3
3
  // Automatically generated file. DO NOT EDIT.
4
4
  const CurrencyUnit = Object.freeze({
@@ -236,7 +236,7 @@ define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-DYAaL3
236
236
  "useGrant": false,
237
237
  "useFee": true
238
238
  },
239
- "TX_CREATE_VME_FEE": {
239
+ "TX_CREATE_VME": {
240
240
  "fee": "1000000000000000",
241
241
  "grant": 0,
242
242
  "sizeBased": false,
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var addressClass = require('../chunks/address-class-B8b7mx1K.cjs');
4
- var txType = require('../chunks/tx-type-khL8tWtn.cjs');
4
+ var txType = require('../chunks/tx-type-CKrHKEwY.cjs');
5
5
 
6
6
  // Automatically generated file. DO NOT EDIT.
7
7
  const CurrencyUnit = Object.freeze({
@@ -239,7 +239,7 @@ const TxTypes$1 = {
239
239
  "useGrant": false,
240
240
  "useFee": true
241
241
  },
242
- "TX_CREATE_VME_FEE": {
242
+ "TX_CREATE_VME": {
243
243
  "fee": "1000000000000000",
244
244
  "grant": 0,
245
245
  "sizeBased": false,
@@ -216,7 +216,7 @@ export declare const TxTypes: {
216
216
  useGrant: boolean;
217
217
  useFee: boolean;
218
218
  };
219
- TX_CREATE_VME_FEE: {
219
+ TX_CREATE_VME: {
220
220
  fee: string;
221
221
  grant: number;
222
222
  sizeBased: boolean;
@@ -475,7 +475,7 @@ export declare const TxType: Readonly<{
475
475
  readonly LOCK_STAKE_FOR_VME: "TX_LOCK_STAKE_FOR_VME";
476
476
  readonly ACTIVATE_LOCK_STAKE_FOR_VME: "TX_ACTIVATE_LOCK_STAKE_FOR_VME";
477
477
  readonly UNLOCK_STAKE: "TX_UNLOCK_STAKE";
478
- readonly CREATE_VME_FEE: "TX_CREATE_VME_FEE";
478
+ readonly CREATE_VME: "TX_CREATE_VME";
479
479
  readonly ACTIVATE_OPEN_VME: "TX_ACTIVATE_OPEN_VME";
480
480
  readonly VME_BLOCK: "TX_VME_BLOCK";
481
481
  readonly CALL_VME: "TX_CALL_VME";
@@ -216,7 +216,7 @@ export declare const TxTypes: {
216
216
  useGrant: boolean;
217
217
  useFee: boolean;
218
218
  };
219
- TX_CREATE_VME_FEE: {
219
+ TX_CREATE_VME: {
220
220
  fee: string;
221
221
  grant: number;
222
222
  sizeBased: boolean;
@@ -475,7 +475,7 @@ export declare const TxType: Readonly<{
475
475
  readonly LOCK_STAKE_FOR_VME: "TX_LOCK_STAKE_FOR_VME";
476
476
  readonly ACTIVATE_LOCK_STAKE_FOR_VME: "TX_ACTIVATE_LOCK_STAKE_FOR_VME";
477
477
  readonly UNLOCK_STAKE: "TX_UNLOCK_STAKE";
478
- readonly CREATE_VME_FEE: "TX_CREATE_VME_FEE";
478
+ readonly CREATE_VME: "TX_CREATE_VME";
479
479
  readonly ACTIVATE_OPEN_VME: "TX_ACTIVATE_OPEN_VME";
480
480
  readonly VME_BLOCK: "TX_VME_BLOCK";
481
481
  readonly CALL_VME: "TX_CALL_VME";
@@ -1,5 +1,5 @@
1
1
  import { A as AddressClass$1 } from '../chunks/address-class-3IzotplG.js';
2
- import { T as TxType$1 } from '../chunks/tx-type-BUN9nEQ6.js';
2
+ import { T as TxType$1 } from '../chunks/tx-type-CXyml-9n.js';
3
3
 
4
4
  // Automatically generated file. DO NOT EDIT.
5
5
  const CurrencyUnit = Object.freeze({
@@ -237,7 +237,7 @@ const TxTypes$1 = {
237
237
  "useGrant": false,
238
238
  "useFee": true
239
239
  },
240
- "TX_CREATE_VME_FEE": {
240
+ "TX_CREATE_VME": {
241
241
  "fee": "1000000000000000",
242
242
  "grant": 0,
243
243
  "sizeBased": false,
@@ -11,6 +11,12 @@ export type GetContractArgs = {
11
11
  address: Address;
12
12
  abi: InterfaceAbi;
13
13
  client: Client;
14
+ /**
15
+ * 컨트랙트(=subId)가 속한 VME id. 신규 VME 모델의 debug_viewVme 가 컨트랙트를
16
+ * 찾으려면 반드시 필요하다 (필수). 컨트랙트는 하나의 VME 에 속하므로 핸들의
17
+ * 불변 속성 — read 호출마다 받지 않고 생성 시 1회 지정한다.
18
+ */
19
+ vmeId: string;
14
20
  };
15
21
  export type ContractReadFn = (args?: readonly unknown[], opts?: ReadCallOptions) => Promise<unknown>;
16
22
  export type ContractInstance = {
@@ -19,15 +25,19 @@ export type ContractInstance = {
19
25
  read: Record<string, ContractReadFn>;
20
26
  };
21
27
  /**
22
- * Locus 의 debug_viewContract RPC 위에 viem 스타일 컨트랙트 핸들을 만든다.
28
+ * Locus 의 debug_viewVme RPC 위에 viem 스타일 컨트랙트 핸들을 만든다.
23
29
  * `read.<fn>` 은 ethers(v5) 의 Interface 로 호출을 인코딩하고, 결과 바이트를
24
- * convertHexToData 로 Locus `func` 필드에 담아 보낸 뒤, 응답 hex 를
30
+ * convertHexToData 로 Locus `callData` 필드에 담아 보낸 뒤, 응답 hex 를
25
31
  * Interface.decodeFunctionResult 로 다시 디코딩한다.
26
32
  *
33
+ * 신규 VME 모델: 컨트랙트는 (vmeId, subId) 로 식별된다. `address` 가 subId 이고
34
+ * `vmeId` 는 read 호출 시 ReadCallOptions 로 받는다 (필수). RPC ParamsCallVme 의
35
+ * vmeId/subId 와 1:1 대응.
36
+ *
27
37
  * write 메서드는 이번 단계에서는 의도적으로 빠져 있다. 상태를 바꾸는 호출
28
38
  * 은 생성된 wallet action 을 직접 사용한다:
29
39
  *
30
- * import { callContract } from '@locuschain/lib/autogen';
31
- * await wallet.extend(debugWalletActions).callContract({ ... });
40
+ * import { callVme } from '@locuschain/lib/autogen';
41
+ * await wallet.extend(debugWalletActions).callVme({ ... });
32
42
  */
33
43
  export declare function getContract(args: GetContractArgs): ContractInstance;
@@ -11,6 +11,12 @@ export type GetContractArgs = {
11
11
  address: Address;
12
12
  abi: InterfaceAbi;
13
13
  client: Client;
14
+ /**
15
+ * 컨트랙트(=subId)가 속한 VME id. 신규 VME 모델의 debug_viewVme 가 컨트랙트를
16
+ * 찾으려면 반드시 필요하다 (필수). 컨트랙트는 하나의 VME 에 속하므로 핸들의
17
+ * 불변 속성 — read 호출마다 받지 않고 생성 시 1회 지정한다.
18
+ */
19
+ vmeId: string;
14
20
  };
15
21
  export type ContractReadFn = (args?: readonly unknown[], opts?: ReadCallOptions) => Promise<unknown>;
16
22
  export type ContractInstance = {
@@ -19,15 +25,19 @@ export type ContractInstance = {
19
25
  read: Record<string, ContractReadFn>;
20
26
  };
21
27
  /**
22
- * Locus 의 debug_viewContract RPC 위에 viem 스타일 컨트랙트 핸들을 만든다.
28
+ * Locus 의 debug_viewVme RPC 위에 viem 스타일 컨트랙트 핸들을 만든다.
23
29
  * `read.<fn>` 은 ethers(v5) 의 Interface 로 호출을 인코딩하고, 결과 바이트를
24
- * convertHexToData 로 Locus `func` 필드에 담아 보낸 뒤, 응답 hex 를
30
+ * convertHexToData 로 Locus `callData` 필드에 담아 보낸 뒤, 응답 hex 를
25
31
  * Interface.decodeFunctionResult 로 다시 디코딩한다.
26
32
  *
33
+ * 신규 VME 모델: 컨트랙트는 (vmeId, subId) 로 식별된다. `address` 가 subId 이고
34
+ * `vmeId` 는 read 호출 시 ReadCallOptions 로 받는다 (필수). RPC ParamsCallVme 의
35
+ * vmeId/subId 와 1:1 대응.
36
+ *
27
37
  * write 메서드는 이번 단계에서는 의도적으로 빠져 있다. 상태를 바꾸는 호출
28
38
  * 은 생성된 wallet action 을 직접 사용한다:
29
39
  *
30
- * import { callContract } from '@locuschain/lib/autogen';
31
- * await wallet.extend(debugWalletActions).callContract({ ... });
40
+ * import { callVme } from '@locuschain/lib/autogen';
41
+ * await wallet.extend(debugWalletActions).callVme({ ... });
32
42
  */
33
43
  export declare function getContract(args: GetContractArgs): ContractInstance;