@sentio/sdk 2.40.0-rc.5 → 2.40.0-rc.6

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 (79) hide show
  1. package/lib/aptos/builtin/0x1.js +10 -10
  2. package/lib/aptos/builtin/0x3.js +11 -11
  3. package/lib/aptos/builtin/index.js +11 -11
  4. package/lib/aptos/codegen/index.js +3 -3
  5. package/lib/aptos/ext/index.js +10 -10
  6. package/lib/aptos/index.js +10 -10
  7. package/lib/chunk-2QEQTKQY.js +1050 -0
  8. package/lib/{chunk-Z7QWETBQ.js → chunk-3LE323R2.js} +2 -2
  9. package/lib/{chunk-QHHXY7LO.js → chunk-5XM56ENY.js} +5 -5
  10. package/lib/{chunk-RX5G4RN2.js → chunk-7NFMED3E.js} +2 -2
  11. package/lib/{chunk-KA5CLZU6.js → chunk-7NWX3CH7.js} +90 -53
  12. package/lib/{chunk-F2IZC2B6.js → chunk-EMF4HXFG.js} +5 -5
  13. package/lib/{chunk-VP6Y633M.js → chunk-GOWJIAB2.js} +2 -2
  14. package/lib/chunk-K5OSTLHI.js +916 -0
  15. package/lib/{chunk-WLLDVQFE.js → chunk-KO4GSZCM.js} +3 -3
  16. package/lib/chunk-KTAUVRJN.js +1910 -0
  17. package/lib/{chunk-2QVJGMW4.js → chunk-KVB555XD.js} +2 -2
  18. package/lib/{chunk-TDPQO2SX.js → chunk-LICAL3XW.js} +2 -2
  19. package/lib/{chunk-NBZRHB5V.js → chunk-O6QXDRGG.js} +5 -5
  20. package/lib/{chunk-6DDG76PU.js → chunk-P6T5WFAZ.js} +4 -4
  21. package/lib/chunk-QKJ5SWA2.js +861 -0
  22. package/lib/{chunk-VJTNBZMU.js → chunk-QTWMU7GQ.js} +1 -1
  23. package/lib/{chunk-OAIP7J4S.js → chunk-RXO7SOTL.js} +2757 -1157
  24. package/lib/{chunk-S727P6WP.js → chunk-SYEQKTIU.js} +1 -1
  25. package/lib/{chunk-7OBRGY7G.js → chunk-YNJXNOVA.js} +2 -2
  26. package/lib/{chunk-N4OQDWM2.js → chunk-YOLIZKGZ.js} +1 -1
  27. package/lib/{chunk-USETTWR7.js → chunk-Z5PQR6UE.js} +100 -54
  28. package/lib/core/index.js +3 -3
  29. package/lib/{eacaggregatorproxy-aed46d4a.d.ts → eacaggregatorproxy-cb8e39be.d.ts} +76 -24
  30. package/lib/{erc1155-80a76eb5.d.ts → erc1155-fb097c50.d.ts} +31 -9
  31. package/lib/{erc20-39aae019.d.ts → erc20-95ba7721.d.ts} +61 -19
  32. package/lib/{erc721-0a429bd4.d.ts → erc721-13bf7a61.d.ts} +49 -15
  33. package/lib/eth/builtin/eacaggregatorproxy.d.ts +1 -1
  34. package/lib/eth/builtin/eacaggregatorproxy.js +5 -5
  35. package/lib/eth/builtin/erc1155.d.ts +1 -1
  36. package/lib/eth/builtin/erc1155.js +5 -5
  37. package/lib/eth/builtin/erc20.d.ts +1 -1
  38. package/lib/eth/builtin/erc20.js +4 -4
  39. package/lib/eth/builtin/erc721.d.ts +1 -1
  40. package/lib/eth/builtin/erc721.js +4 -4
  41. package/lib/eth/builtin/index.d.ts +39 -15
  42. package/lib/eth/builtin/index.js +8 -8
  43. package/lib/eth/builtin/weth9.d.ts +1 -1
  44. package/lib/eth/builtin/weth9.js +5 -5
  45. package/lib/eth/codegen/index.js +130 -39
  46. package/lib/eth/index.d.ts +1 -0
  47. package/lib/eth/index.js +7 -4
  48. package/lib/fuel/index.js +4 -4
  49. package/lib/index.js +5 -3
  50. package/lib/move/index.js +4 -4
  51. package/lib/solana/builtin/index.js +4 -4
  52. package/lib/solana/index.js +4 -4
  53. package/lib/store/index.js +3 -3
  54. package/lib/sui/builtin/0x1.js +12 -12
  55. package/lib/sui/builtin/0x2.js +13 -13
  56. package/lib/sui/builtin/0x3.js +14 -14
  57. package/lib/sui/builtin/index.js +14 -14
  58. package/lib/sui/codegen/index.js +2 -2
  59. package/lib/sui/ext/index.js +10 -10
  60. package/lib/sui/index.js +11 -11
  61. package/lib/testing/index.js +14 -14
  62. package/lib/utils/index.js +7 -7
  63. package/lib/{weth9-08664cb7.d.ts → weth9-2b52cb06.d.ts} +40 -12
  64. package/package.json +1 -1
  65. package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +1446 -115
  66. package/src/eth/builtin/internal/erc1155-processor.ts +611 -34
  67. package/src/eth/builtin/internal/erc20-processor.ts +1182 -84
  68. package/src/eth/builtin/internal/erc20bytes-processor.ts +595 -45
  69. package/src/eth/builtin/internal/erc721-processor.ts +967 -64
  70. package/src/eth/builtin/internal/weth9-processor.ts +698 -55
  71. package/src/eth/codegen/file.ts +26 -3
  72. package/src/eth/codegen/function-calls.ts +93 -8
  73. package/src/eth/codegen/types.ts +22 -1
  74. package/src/eth/eth-plugin.ts +4 -4
  75. package/src/eth/index.ts +2 -0
  76. package/lib/chunk-76HTCT5F.js +0 -469
  77. package/lib/chunk-ERTIHPSD.js +0 -528
  78. package/lib/chunk-LWKILLQ6.js +0 -820
  79. package/lib/chunk-S36AAZOU.js +0 -417
@@ -3,10 +3,10 @@ import {
3
3
  AptosBaseProcessor,
4
4
  defaultMoveCoder,
5
5
  loadAllTypes
6
- } from "./chunk-NBZRHB5V.js";
6
+ } from "./chunk-O6QXDRGG.js";
7
7
  import {
8
8
  AptosNetwork
9
- } from "./chunk-VP6Y633M.js";
9
+ } from "./chunk-GOWJIAB2.js";
10
10
  import {
11
11
  ANY_TYPE,
12
12
  TypeDescriptor
@@ -1,7 +1,7 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
2
  import {
3
3
  initCoinList
4
- } from "./chunk-RX5G4RN2.js";
4
+ } from "./chunk-7NFMED3E.js";
5
5
  import {
6
6
  SuiChainAdapter,
7
7
  toInternalModule
@@ -13,11 +13,11 @@ import {
13
13
  getSuiMoveConfig,
14
14
  normalizeSuiAddress,
15
15
  normalizeSuiObjectId
16
- } from "./chunk-N4OQDWM2.js";
16
+ } from "./chunk-YOLIZKGZ.js";
17
17
  import {
18
18
  MoveAccountContext,
19
19
  MoveContext
20
- } from "./chunk-VJTNBZMU.js";
20
+ } from "./chunk-QTWMU7GQ.js";
21
21
  import {
22
22
  ANY_TYPE,
23
23
  AbstractMoveCoder,
@@ -39,7 +39,7 @@ import {
39
39
  TemplateInstanceState,
40
40
  normalizeLabels,
41
41
  require_lib2 as require_lib
42
- } from "./chunk-KA5CLZU6.js";
42
+ } from "./chunk-7NWX3CH7.js";
43
43
  import {
44
44
  ListStateStorage,
45
45
  Plugin,
@@ -47,7 +47,7 @@ import {
47
47
  USER_PROCESSOR,
48
48
  errorString,
49
49
  mergeProcessResults
50
- } from "./chunk-USETTWR7.js";
50
+ } from "./chunk-Z5PQR6UE.js";
51
51
  import {
52
52
  __publicField,
53
53
  __toESM
@@ -1,13 +1,13 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
2
  import {
3
3
  getClient
4
- } from "./chunk-N4OQDWM2.js";
4
+ } from "./chunk-YOLIZKGZ.js";
5
5
  import {
6
6
  fetch
7
7
  } from "./chunk-FDUS22B3.js";
8
8
  import {
9
9
  getPriceByType
10
- } from "./chunk-F2IZC2B6.js";
10
+ } from "./chunk-EMF4HXFG.js";
11
11
  import {
12
12
  SPLITTER,
13
13
  accountTypeString
@@ -30,7 +30,7 @@ import {
30
30
  ripemd160,
31
31
  secp256k1,
32
32
  sha256
33
- } from "./chunk-S727P6WP.js";
33
+ } from "./chunk-SYEQKTIU.js";
34
34
  import {
35
35
  ListStateStorage,
36
36
  MapStateStorage,
@@ -43,7 +43,7 @@ import {
43
43
  number,
44
44
  rotl,
45
45
  u32
46
- } from "./chunk-USETTWR7.js";
46
+ } from "./chunk-Z5PQR6UE.js";
47
47
  import {
48
48
  BigDecimal
49
49
  } from "./chunk-3PI3P62P.js";
@@ -72686,9 +72686,75 @@ var ProcessResult = {
72686
72686
  }
72687
72687
  };
72688
72688
  function createBaseEthCallParam() {
72689
- return { chainId: "", address: "", function: "", signature: "", args: [] };
72689
+ return { context: void 0, calldata: "" };
72690
72690
  }
72691
72691
  var EthCallParam = {
72692
+ encode(message, writer = import_minimal5.default.Writer.create()) {
72693
+ if (message.context !== void 0) {
72694
+ EthCallContext.encode(message.context, writer.uint32(10).fork()).ldelim();
72695
+ }
72696
+ if (message.calldata !== "") {
72697
+ writer.uint32(18).string(message.calldata);
72698
+ }
72699
+ return writer;
72700
+ },
72701
+ decode(input, length) {
72702
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
72703
+ let end = length === void 0 ? reader.len : reader.pos + length;
72704
+ const message = createBaseEthCallParam();
72705
+ while (reader.pos < end) {
72706
+ const tag = reader.uint32();
72707
+ switch (tag >>> 3) {
72708
+ case 1:
72709
+ if (tag !== 10) {
72710
+ break;
72711
+ }
72712
+ message.context = EthCallContext.decode(reader, reader.uint32());
72713
+ continue;
72714
+ case 2:
72715
+ if (tag !== 18) {
72716
+ break;
72717
+ }
72718
+ message.calldata = reader.string();
72719
+ continue;
72720
+ }
72721
+ if ((tag & 7) === 4 || tag === 0) {
72722
+ break;
72723
+ }
72724
+ reader.skipType(tag & 7);
72725
+ }
72726
+ return message;
72727
+ },
72728
+ fromJSON(object) {
72729
+ return {
72730
+ context: isSet4(object.context) ? EthCallContext.fromJSON(object.context) : void 0,
72731
+ calldata: isSet4(object.calldata) ? globalThis.String(object.calldata) : ""
72732
+ };
72733
+ },
72734
+ toJSON(message) {
72735
+ const obj = {};
72736
+ if (message.context !== void 0) {
72737
+ obj.context = EthCallContext.toJSON(message.context);
72738
+ }
72739
+ if (message.calldata !== "") {
72740
+ obj.calldata = message.calldata;
72741
+ }
72742
+ return obj;
72743
+ },
72744
+ create(base) {
72745
+ return EthCallParam.fromPartial(base ?? {});
72746
+ },
72747
+ fromPartial(object) {
72748
+ const message = createBaseEthCallParam();
72749
+ message.context = object.context !== void 0 && object.context !== null ? EthCallContext.fromPartial(object.context) : void 0;
72750
+ message.calldata = object.calldata ?? "";
72751
+ return message;
72752
+ }
72753
+ };
72754
+ function createBaseEthCallContext() {
72755
+ return { chainId: "", address: "", blockTag: "" };
72756
+ }
72757
+ var EthCallContext = {
72692
72758
  encode(message, writer = import_minimal5.default.Writer.create()) {
72693
72759
  if (message.chainId !== "") {
72694
72760
  writer.uint32(10).string(message.chainId);
@@ -72696,21 +72762,15 @@ var EthCallParam = {
72696
72762
  if (message.address !== "") {
72697
72763
  writer.uint32(18).string(message.address);
72698
72764
  }
72699
- if (message.function !== "") {
72700
- writer.uint32(26).string(message.function);
72701
- }
72702
- if (message.signature !== "") {
72703
- writer.uint32(34).string(message.signature);
72704
- }
72705
- for (const v of message.args) {
72706
- Value.encode(Value.wrap(v), writer.uint32(42).fork()).ldelim();
72765
+ if (message.blockTag !== "") {
72766
+ writer.uint32(26).string(message.blockTag);
72707
72767
  }
72708
72768
  return writer;
72709
72769
  },
72710
72770
  decode(input, length) {
72711
72771
  const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
72712
72772
  let end = length === void 0 ? reader.len : reader.pos + length;
72713
- const message = createBaseEthCallParam();
72773
+ const message = createBaseEthCallContext();
72714
72774
  while (reader.pos < end) {
72715
72775
  const tag = reader.uint32();
72716
72776
  switch (tag >>> 3) {
@@ -72730,19 +72790,7 @@ var EthCallParam = {
72730
72790
  if (tag !== 26) {
72731
72791
  break;
72732
72792
  }
72733
- message.function = reader.string();
72734
- continue;
72735
- case 4:
72736
- if (tag !== 34) {
72737
- break;
72738
- }
72739
- message.signature = reader.string();
72740
- continue;
72741
- case 5:
72742
- if (tag !== 42) {
72743
- break;
72744
- }
72745
- message.args.push(Value.unwrap(Value.decode(reader, reader.uint32())));
72793
+ message.blockTag = reader.string();
72746
72794
  continue;
72747
72795
  }
72748
72796
  if ((tag & 7) === 4 || tag === 0) {
@@ -72756,9 +72804,7 @@ var EthCallParam = {
72756
72804
  return {
72757
72805
  chainId: isSet4(object.chainId) ? globalThis.String(object.chainId) : "",
72758
72806
  address: isSet4(object.address) ? globalThis.String(object.address) : "",
72759
- function: isSet4(object.function) ? globalThis.String(object.function) : "",
72760
- signature: isSet4(object.signature) ? globalThis.String(object.signature) : "",
72761
- args: globalThis.Array.isArray(object?.args) ? [...object.args] : []
72807
+ blockTag: isSet4(object.blockTag) ? globalThis.String(object.blockTag) : ""
72762
72808
  };
72763
72809
  },
72764
72810
  toJSON(message) {
@@ -72769,27 +72815,19 @@ var EthCallParam = {
72769
72815
  if (message.address !== "") {
72770
72816
  obj.address = message.address;
72771
72817
  }
72772
- if (message.function !== "") {
72773
- obj.function = message.function;
72774
- }
72775
- if (message.signature !== "") {
72776
- obj.signature = message.signature;
72777
- }
72778
- if (message.args?.length) {
72779
- obj.args = message.args;
72818
+ if (message.blockTag !== "") {
72819
+ obj.blockTag = message.blockTag;
72780
72820
  }
72781
72821
  return obj;
72782
72822
  },
72783
72823
  create(base) {
72784
- return EthCallParam.fromPartial(base ?? {});
72824
+ return EthCallContext.fromPartial(base ?? {});
72785
72825
  },
72786
72826
  fromPartial(object) {
72787
- const message = createBaseEthCallParam();
72827
+ const message = createBaseEthCallContext();
72788
72828
  message.chainId = object.chainId ?? "";
72789
72829
  message.address = object.address ?? "";
72790
- message.function = object.function ?? "";
72791
- message.signature = object.signature ?? "";
72792
- message.args = object.args?.map((e) => e) || [];
72830
+ message.blockTag = object.blockTag ?? "";
72793
72831
  return message;
72794
72832
  }
72795
72833
  };
@@ -72851,9 +72889,7 @@ function createBasePreparedData() {
72851
72889
  var PreparedData = {
72852
72890
  encode(message, writer = import_minimal5.default.Writer.create()) {
72853
72891
  Object.entries(message.ethCallResults).forEach(([key, value]) => {
72854
- if (value !== void 0) {
72855
- PreparedData_EthCallResultsEntry.encode({ key, value }, writer.uint32(10).fork()).ldelim();
72856
- }
72892
+ PreparedData_EthCallResultsEntry.encode({ key, value }, writer.uint32(10).fork()).ldelim();
72857
72893
  });
72858
72894
  return writer;
72859
72895
  },
@@ -72884,7 +72920,7 @@ var PreparedData = {
72884
72920
  fromJSON(object) {
72885
72921
  return {
72886
72922
  ethCallResults: isObject3(object.ethCallResults) ? Object.entries(object.ethCallResults).reduce((acc, [key, value]) => {
72887
- acc[key] = value;
72923
+ acc[key] = String(value);
72888
72924
  return acc;
72889
72925
  }, {}) : {}
72890
72926
  };
@@ -72909,7 +72945,7 @@ var PreparedData = {
72909
72945
  const message = createBasePreparedData();
72910
72946
  message.ethCallResults = Object.entries(object.ethCallResults ?? {}).reduce((acc, [key, value]) => {
72911
72947
  if (value !== void 0) {
72912
- acc[key] = value;
72948
+ acc[key] = globalThis.String(value);
72913
72949
  }
72914
72950
  return acc;
72915
72951
  }, {});
@@ -72917,15 +72953,15 @@ var PreparedData = {
72917
72953
  }
72918
72954
  };
72919
72955
  function createBasePreparedData_EthCallResultsEntry() {
72920
- return { key: "", value: void 0 };
72956
+ return { key: "", value: "" };
72921
72957
  }
72922
72958
  var PreparedData_EthCallResultsEntry = {
72923
72959
  encode(message, writer = import_minimal5.default.Writer.create()) {
72924
72960
  if (message.key !== "") {
72925
72961
  writer.uint32(10).string(message.key);
72926
72962
  }
72927
- if (message.value !== void 0) {
72928
- ListValue.encode(ListValue.wrap(message.value), writer.uint32(18).fork()).ldelim();
72963
+ if (message.value !== "") {
72964
+ writer.uint32(18).string(message.value);
72929
72965
  }
72930
72966
  return writer;
72931
72967
  },
@@ -72946,7 +72982,7 @@ var PreparedData_EthCallResultsEntry = {
72946
72982
  if (tag !== 18) {
72947
72983
  break;
72948
72984
  }
72949
- message.value = ListValue.unwrap(ListValue.decode(reader, reader.uint32()));
72985
+ message.value = reader.string();
72950
72986
  continue;
72951
72987
  }
72952
72988
  if ((tag & 7) === 4 || tag === 0) {
@@ -72959,7 +72995,7 @@ var PreparedData_EthCallResultsEntry = {
72959
72995
  fromJSON(object) {
72960
72996
  return {
72961
72997
  key: isSet4(object.key) ? globalThis.String(object.key) : "",
72962
- value: globalThis.Array.isArray(object.value) ? [...object.value] : void 0
72998
+ value: isSet4(object.value) ? globalThis.String(object.value) : ""
72963
72999
  };
72964
73000
  },
72965
73001
  toJSON(message) {
@@ -72967,7 +73003,7 @@ var PreparedData_EthCallResultsEntry = {
72967
73003
  if (message.key !== "") {
72968
73004
  obj.key = message.key;
72969
73005
  }
72970
- if (message.value !== void 0) {
73006
+ if (message.value !== "") {
72971
73007
  obj.value = message.value;
72972
73008
  }
72973
73009
  return obj;
@@ -72978,7 +73014,7 @@ var PreparedData_EthCallResultsEntry = {
72978
73014
  fromPartial(object) {
72979
73015
  const message = createBasePreparedData_EthCallResultsEntry();
72980
73016
  message.key = object.key ?? "";
72981
- message.value = object.value ?? void 0;
73017
+ message.value = object.value ?? "";
72982
73018
  return message;
72983
73019
  }
72984
73020
  };
@@ -75112,6 +75148,7 @@ export {
75112
75148
  StateResult,
75113
75149
  ProcessResult,
75114
75150
  EthCallParam,
75151
+ EthCallContext,
75115
75152
  PreprocessResult,
75116
75153
  PreparedData,
75117
75154
  PreparedData_EthCallResultsEntry,
@@ -1,10 +1,10 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
2
  import {
3
3
  getERC20BytesContract
4
- } from "./chunk-S36AAZOU.js";
4
+ } from "./chunk-QKJ5SWA2.js";
5
5
  import {
6
6
  getEACAggregatorProxyContract
7
- } from "./chunk-LWKILLQ6.js";
7
+ } from "./chunk-KTAUVRJN.js";
8
8
  import {
9
9
  LRUCache,
10
10
  SimpleEthersError,
@@ -13,7 +13,7 @@ import {
13
13
  getERC20Contract,
14
14
  import_chain,
15
15
  init_esm
16
- } from "./chunk-OAIP7J4S.js";
16
+ } from "./chunk-RXO7SOTL.js";
17
17
  import {
18
18
  require_dist
19
19
  } from "./chunk-M5LOAOTK.js";
@@ -27,10 +27,10 @@ import {
27
27
  require_lib2,
28
28
  require_minimal,
29
29
  scaleDown
30
- } from "./chunk-KA5CLZU6.js";
30
+ } from "./chunk-7NWX3CH7.js";
31
31
  import {
32
32
  Endpoints
33
- } from "./chunk-USETTWR7.js";
33
+ } from "./chunk-Z5PQR6UE.js";
34
34
  import {
35
35
  __commonJS,
36
36
  __export,
@@ -36,7 +36,7 @@ import {
36
36
  validateBasic,
37
37
  validateObject,
38
38
  wNAF
39
- } from "./chunk-S727P6WP.js";
39
+ } from "./chunk-SYEQKTIU.js";
40
40
  import {
41
41
  Endpoints,
42
42
  bytes,
@@ -48,7 +48,7 @@ import {
48
48
  u64_default,
49
49
  utf8ToBytes,
50
50
  wrapConstructor
51
- } from "./chunk-USETTWR7.js";
51
+ } from "./chunk-Z5PQR6UE.js";
52
52
  import {
53
53
  __commonJS,
54
54
  __require,