tenjin-cli 0.1.0-alpha.0 → 0.1.0-alpha.2

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 (138) hide show
  1. package/NOTICE.md +33 -0
  2. package/README.md +198 -18
  3. package/dist/{_esm-ZH2J4QEH.js → _esm-C5CRWCYU.js} +2 -2
  4. package/dist/_esm-FEASBWRP.js +881 -0
  5. package/dist/buy-U35DQ6XM.js +1598 -0
  6. package/dist/buy-U35DQ6XM.js.map +1 -0
  7. package/dist/candidate-RLYCQMF5.js +127 -0
  8. package/dist/candidate-RLYCQMF5.js.map +1 -0
  9. package/dist/{ccip-FXWZDDF5.js → ccip-NQXCEK2U.js} +6 -5
  10. package/dist/ccip-XR5NE5QK.js +19 -0
  11. package/dist/chunk-27ONARHV.js +171 -0
  12. package/dist/chunk-27ONARHV.js.map +1 -0
  13. package/dist/chunk-2I4QTOLB.js +11 -0
  14. package/dist/chunk-2I4QTOLB.js.map +1 -0
  15. package/dist/chunk-3OV7E5G5.js +18 -0
  16. package/dist/chunk-3OV7E5G5.js.map +1 -0
  17. package/dist/chunk-5CLSD5YN.js +209 -0
  18. package/dist/chunk-5CLSD5YN.js.map +1 -0
  19. package/dist/chunk-7KUW4MJD.js +59 -0
  20. package/dist/chunk-7KUW4MJD.js.map +1 -0
  21. package/dist/{doctor-MVLZRVPU.js → chunk-7PHSZKQS.js} +88 -93
  22. package/dist/chunk-7PHSZKQS.js.map +1 -0
  23. package/dist/chunk-CYOF7ROH.js +70 -0
  24. package/dist/chunk-CYOF7ROH.js.map +1 -0
  25. package/dist/chunk-HIVZG55D.js +204 -0
  26. package/dist/chunk-HIVZG55D.js.map +1 -0
  27. package/dist/chunk-HSDCI7OV.js +7806 -0
  28. package/dist/chunk-HSDCI7OV.js.map +1 -0
  29. package/dist/{chunk-LTTRND4A.js → chunk-IYLHQMT5.js} +85 -9
  30. package/dist/chunk-IYLHQMT5.js.map +1 -0
  31. package/dist/chunk-JPHG2JW3.js +96 -0
  32. package/dist/chunk-JPHG2JW3.js.map +1 -0
  33. package/dist/{chunk-ZPZFPVDN.js → chunk-MUBUQVC3.js} +1 -1
  34. package/dist/chunk-MUBUQVC3.js.map +1 -0
  35. package/dist/chunk-N62ROTMC.js +79 -0
  36. package/dist/chunk-N62ROTMC.js.map +1 -0
  37. package/dist/{chunk-SXQQ2ZSR.js → chunk-NCE5NSN6.js} +186 -18
  38. package/dist/chunk-NCE5NSN6.js.map +1 -0
  39. package/dist/{chunk-FIYZLITH.js → chunk-OYMYCW7J.js} +23 -4
  40. package/dist/{chunk-FIYZLITH.js.map → chunk-OYMYCW7J.js.map} +1 -1
  41. package/dist/chunk-QNP7H47L.js +152 -0
  42. package/dist/chunk-QNP7H47L.js.map +1 -0
  43. package/dist/{chunk-TX5T3LKJ.js → chunk-QVX5MWJZ.js} +21 -17
  44. package/dist/{chunk-TX5T3LKJ.js.map → chunk-QVX5MWJZ.js.map} +1 -1
  45. package/dist/{chunk-CPUZRZ2A.js → chunk-RBJPAZFI.js} +25 -170
  46. package/dist/chunk-RBJPAZFI.js.map +1 -0
  47. package/dist/chunk-RRN3YTK7.js +6199 -0
  48. package/dist/chunk-RRN3YTK7.js.map +1 -0
  49. package/dist/chunk-RY4XKNV3.js +140 -0
  50. package/dist/chunk-RY4XKNV3.js.map +1 -0
  51. package/dist/chunk-S3IGX57D.js +14682 -0
  52. package/dist/chunk-S3IGX57D.js.map +1 -0
  53. package/dist/{config-XVXZ3V2Q.js → chunk-TFGSOPWR.js} +117 -62
  54. package/dist/chunk-TFGSOPWR.js.map +1 -0
  55. package/dist/chunk-TLCMMYLY.js +126 -0
  56. package/dist/chunk-TLCMMYLY.js.map +1 -0
  57. package/dist/{chunk-PAAL45FJ.js → chunk-UGX7YPX2.js} +3446 -448
  58. package/dist/chunk-UGX7YPX2.js.map +1 -0
  59. package/dist/chunk-UO22YNY4.js +69 -0
  60. package/dist/chunk-UO22YNY4.js.map +1 -0
  61. package/dist/chunk-UPIEAMGH.js +160 -0
  62. package/dist/chunk-UPIEAMGH.js.map +1 -0
  63. package/dist/chunk-XJIW7USF.js +217 -0
  64. package/dist/chunk-XJIW7USF.js.map +1 -0
  65. package/dist/{chunk-F5DZJLU3.js → chunk-YALGASEU.js} +2065 -1258
  66. package/dist/chunk-YALGASEU.js.map +1 -0
  67. package/dist/chunk-YBMMV4Y4.js +51 -0
  68. package/dist/chunk-YBMMV4Y4.js.map +1 -0
  69. package/dist/chunk-YIYQ2ZNT.js +286 -0
  70. package/dist/chunk-YIYQ2ZNT.js.map +1 -0
  71. package/dist/{chunk-376LHMK2.js → chunk-YN5SHIXQ.js} +36 -10
  72. package/dist/chunk-YN5SHIXQ.js.map +1 -0
  73. package/dist/chunk-Z52RA3NC.js +137 -0
  74. package/dist/chunk-Z52RA3NC.js.map +1 -0
  75. package/dist/chunk-Z6MFJV5Z.js +1330 -0
  76. package/dist/chunk-Z6MFJV5Z.js.map +1 -0
  77. package/dist/chunk-ZABPQJ3M.js +83 -0
  78. package/dist/chunk-ZABPQJ3M.js.map +1 -0
  79. package/dist/{chunk-WOHCAMDQ.js → chunk-ZMHYXMO6.js} +1887 -1029
  80. package/dist/chunk-ZMHYXMO6.js.map +1 -0
  81. package/dist/{chunk-3IMLRUZE.js → chunk-ZXTAQYNA.js} +6 -2
  82. package/dist/{cli-LMHGCZ5S.js → cli-4NNBEQYH.js} +175 -179
  83. package/dist/cli-4NNBEQYH.js.map +1 -0
  84. package/dist/config-2VSXWWHK.js +21 -0
  85. package/dist/doctor-JJPNIBYH.js +20 -0
  86. package/dist/doctor-JJPNIBYH.js.map +1 -0
  87. package/dist/ethersCompat-Df4a6QIZ-3YZIAXDK.js +18 -0
  88. package/dist/ethersCompat-Df4a6QIZ-3YZIAXDK.js.map +1 -0
  89. package/dist/index.js +1 -1
  90. package/dist/inspect-JGYJWFDP.js +96 -0
  91. package/dist/inspect-JGYJWFDP.js.map +1 -0
  92. package/dist/install-ZQRMSRGW.js +378 -0
  93. package/dist/install-ZQRMSRGW.js.map +1 -0
  94. package/dist/lookup-WYVTOMVY.js +113 -0
  95. package/dist/lookup-WYVTOMVY.js.map +1 -0
  96. package/dist/{mine.wasm-GQECMSGN.js → mine.wasm-6PIT3DK6.js} +2 -2
  97. package/dist/outcome-HKKT6QIA.js +66 -0
  98. package/dist/outcome-HKKT6QIA.js.map +1 -0
  99. package/dist/publish-D76B3MBK.js +1480 -0
  100. package/dist/publish-D76B3MBK.js.map +1 -0
  101. package/dist/{secp256k1-35YNNB6F.js → secp256k1-N3ZHU7LB.js} +5 -4
  102. package/dist/secp256k1-N3ZHU7LB.js.map +1 -0
  103. package/dist/usdc-JIAJW4SV.js +22 -0
  104. package/dist/usdc-JIAJW4SV.js.map +1 -0
  105. package/dist/viemAdapter-By13KInL-ZZE6UV4Y.js +14 -0
  106. package/dist/viemAdapter-By13KInL-ZZE6UV4Y.js.map +1 -0
  107. package/dist/wallet-6QKS6UHW.js +179 -0
  108. package/dist/wallet-6QKS6UHW.js.map +1 -0
  109. package/dist/wallet-PA54CRBL.js +30 -0
  110. package/dist/wallet-PA54CRBL.js.map +1 -0
  111. package/package.json +20 -15
  112. package/skills/tenjin/SKILL.md +199 -0
  113. package/skills/tenjin-publish/SKILL.md +96 -0
  114. package/skills/tenjin-search/SKILL.md +122 -0
  115. package/dist/chunk-376LHMK2.js.map +0 -1
  116. package/dist/chunk-CPUZRZ2A.js.map +0 -1
  117. package/dist/chunk-F5DZJLU3.js.map +0 -1
  118. package/dist/chunk-LTTRND4A.js.map +0 -1
  119. package/dist/chunk-PAAL45FJ.js.map +0 -1
  120. package/dist/chunk-QHIEYBLV.js +0 -320
  121. package/dist/chunk-QHIEYBLV.js.map +0 -1
  122. package/dist/chunk-SXQQ2ZSR.js.map +0 -1
  123. package/dist/chunk-WOHCAMDQ.js.map +0 -1
  124. package/dist/chunk-ZPZFPVDN.js.map +0 -1
  125. package/dist/cli-LMHGCZ5S.js.map +0 -1
  126. package/dist/config-XVXZ3V2Q.js.map +0 -1
  127. package/dist/doctor-MVLZRVPU.js.map +0 -1
  128. package/dist/usdc-OQUOFF6R.js +0 -18
  129. package/dist/wallet-NRKWLKHX.js +0 -153
  130. package/dist/wallet-NRKWLKHX.js.map +0 -1
  131. package/dist/wallet-QUWK2PA4.js +0 -22
  132. /package/dist/{_esm-ZH2J4QEH.js.map → _esm-C5CRWCYU.js.map} +0 -0
  133. /package/dist/{ccip-FXWZDDF5.js.map → _esm-FEASBWRP.js.map} +0 -0
  134. /package/dist/{chunk-3IMLRUZE.js.map → ccip-NQXCEK2U.js.map} +0 -0
  135. /package/dist/{secp256k1-35YNNB6F.js.map → ccip-XR5NE5QK.js.map} +0 -0
  136. /package/dist/{usdc-OQUOFF6R.js.map → chunk-ZXTAQYNA.js.map} +0 -0
  137. /package/dist/{wallet-QUWK2PA4.js.map → config-2VSXWWHK.js.map} +0 -0
  138. /package/dist/{mine.wasm-GQECMSGN.js.map → mine.wasm-6PIT3DK6.js.map} +0 -0
@@ -39,8 +39,10 @@ import {
39
39
  createCursor,
40
40
  encodeAbiParameters,
41
41
  formatAbiItem,
42
+ formatBlockParameter,
42
43
  formatEther,
43
44
  formatGwei,
45
+ fromNumber,
44
46
  getArrayComponents,
45
47
  hexToBigInt,
46
48
  hexToBytes,
@@ -58,7 +60,7 @@ import {
58
60
  stringify,
59
61
  toBytes,
60
62
  trim
61
- } from "./chunk-F5DZJLU3.js";
63
+ } from "./chunk-YALGASEU.js";
62
64
 
63
65
  // node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.4.3/node_modules/abitype/dist/esm/version.js
64
66
  var version = "1.2.3";
@@ -285,6 +287,20 @@ var UnknownSolidityTypeError = class extends BaseError2 {
285
287
  };
286
288
 
287
289
  // node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
290
+ var InvalidAbiParameterError = class extends BaseError2 {
291
+ constructor({ param }) {
292
+ super("Failed to parse ABI parameter.", {
293
+ details: `parseAbiParameter(${JSON.stringify(param, null, 2)})`,
294
+ docsPath: "/api/human#parseabiparameter-1"
295
+ });
296
+ Object.defineProperty(this, "name", {
297
+ enumerable: true,
298
+ configurable: true,
299
+ writable: true,
300
+ value: "InvalidAbiParameterError"
301
+ });
302
+ }
303
+ };
288
304
  var InvalidAbiParametersError = class extends BaseError2 {
289
305
  constructor({ params }) {
290
306
  super("Failed to parse ABI parameters.", {
@@ -827,6 +843,29 @@ function parseAbiItem(signature) {
827
843
  return abiItem;
828
844
  }
829
845
 
846
+ // node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/parseAbiParameter.js
847
+ function parseAbiParameter2(param) {
848
+ let abiParameter;
849
+ if (typeof param === "string")
850
+ abiParameter = parseAbiParameter(param, {
851
+ modifiers
852
+ });
853
+ else {
854
+ const structs = parseStructs(param);
855
+ const length = param.length;
856
+ for (let i = 0; i < length; i++) {
857
+ const signature = param[i];
858
+ if (isStructSignature(signature))
859
+ continue;
860
+ abiParameter = parseAbiParameter(signature, { modifiers, structs });
861
+ break;
862
+ }
863
+ }
864
+ if (!abiParameter)
865
+ throw new InvalidAbiParameterError({ param });
866
+ return abiParameter;
867
+ }
868
+
830
869
  // node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js
831
870
  function parseAbiParameters(params) {
832
871
  const abiParameters = [];
@@ -855,1205 +894,1942 @@ function parseAbiParameters(params) {
855
894
  return abiParameters;
856
895
  }
857
896
 
858
- // node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/version.js
859
- var version2 = "0.1.1";
860
-
861
- // node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/internal/errors.js
862
- function getVersion() {
863
- return version2;
897
+ // node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/Withdrawal.js
898
+ function toRpc(withdrawal) {
899
+ return {
900
+ address: withdrawal.address,
901
+ amount: fromNumber(withdrawal.amount),
902
+ index: fromNumber(withdrawal.index),
903
+ validatorIndex: fromNumber(withdrawal.validatorIndex)
904
+ };
864
905
  }
865
906
 
866
- // node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/Errors.js
867
- var BaseError3 = class _BaseError extends Error {
868
- static setStaticOptions(options) {
869
- _BaseError.prototype.docsOrigin = options.docsOrigin;
870
- _BaseError.prototype.showVersion = options.showVersion;
871
- _BaseError.prototype.version = options.version;
872
- }
873
- constructor(shortMessage, options = {}) {
874
- const details = (() => {
875
- if (options.cause instanceof _BaseError) {
876
- if (options.cause.details)
877
- return options.cause.details;
878
- if (options.cause.shortMessage)
879
- return options.cause.shortMessage;
880
- }
881
- if (options.cause && "details" in options.cause && typeof options.cause.details === "string")
882
- return options.cause.details;
883
- if (options.cause?.message)
884
- return options.cause.message;
885
- return options.details;
886
- })();
887
- const docsPath6 = (() => {
888
- if (options.cause instanceof _BaseError)
889
- return options.cause.docsPath || options.docsPath;
890
- return options.docsPath;
891
- })();
892
- const docsBaseUrl = options.docsOrigin ?? _BaseError.prototype.docsOrigin;
893
- const docs = `${docsBaseUrl}${docsPath6 ?? ""}`;
894
- const showVersion = Boolean(options.version ?? _BaseError.prototype.showVersion);
895
- const version3 = options.version ?? _BaseError.prototype.version;
896
- const message = [
897
- shortMessage || "An error occurred.",
898
- ...options.metaMessages ? ["", ...options.metaMessages] : [],
899
- ...details || docsPath6 || showVersion ? [
900
- "",
901
- details ? `Details: ${details}` : void 0,
902
- docsPath6 ? `See: ${docs}` : void 0,
903
- showVersion ? `Version: ${version3}` : void 0
904
- ] : []
905
- ].filter((x) => typeof x === "string").join("\n");
906
- super(message, options.cause ? { cause: options.cause } : void 0);
907
- Object.defineProperty(this, "details", {
908
- enumerable: true,
909
- configurable: true,
910
- writable: true,
911
- value: void 0
912
- });
913
- Object.defineProperty(this, "docs", {
914
- enumerable: true,
915
- configurable: true,
916
- writable: true,
917
- value: void 0
918
- });
919
- Object.defineProperty(this, "docsOrigin", {
920
- enumerable: true,
921
- configurable: true,
922
- writable: true,
923
- value: void 0
924
- });
925
- Object.defineProperty(this, "docsPath", {
926
- enumerable: true,
927
- configurable: true,
928
- writable: true,
929
- value: void 0
930
- });
931
- Object.defineProperty(this, "shortMessage", {
932
- enumerable: true,
933
- configurable: true,
934
- writable: true,
935
- value: void 0
936
- });
937
- Object.defineProperty(this, "showVersion", {
938
- enumerable: true,
939
- configurable: true,
940
- writable: true,
941
- value: void 0
942
- });
943
- Object.defineProperty(this, "version", {
944
- enumerable: true,
945
- configurable: true,
946
- writable: true,
947
- value: void 0
948
- });
949
- Object.defineProperty(this, "cause", {
950
- enumerable: true,
951
- configurable: true,
952
- writable: true,
953
- value: void 0
954
- });
955
- Object.defineProperty(this, "name", {
956
- enumerable: true,
957
- configurable: true,
958
- writable: true,
959
- value: "BaseError"
960
- });
961
- this.cause = options.cause;
962
- this.details = details;
963
- this.docs = docs;
964
- this.docsOrigin = docsBaseUrl;
965
- this.docsPath = docsPath6;
966
- this.shortMessage = shortMessage;
967
- this.showVersion = showVersion;
968
- this.version = version3;
969
- }
970
- walk(fn) {
971
- return walk(this, fn);
972
- }
973
- };
974
- Object.defineProperty(BaseError3, "defaultStaticOptions", {
975
- enumerable: true,
976
- configurable: true,
977
- writable: true,
978
- value: {
979
- docsOrigin: "https://oxlib.sh",
980
- showVersion: false,
981
- version: `ox@${getVersion()}`
982
- }
983
- });
984
- (() => {
985
- BaseError3.setStaticOptions(BaseError3.defaultStaticOptions);
986
- })();
987
- function walk(err, fn) {
988
- if (fn?.(err))
989
- return err;
990
- if (err && typeof err === "object" && "cause" in err && err.cause)
991
- return walk(err.cause, fn);
992
- return fn ? null : err;
907
+ // node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/BlockOverrides.js
908
+ function toRpc2(blockOverrides) {
909
+ return {
910
+ ...typeof blockOverrides.baseFeePerGas === "bigint" && {
911
+ baseFeePerGas: fromNumber(blockOverrides.baseFeePerGas)
912
+ },
913
+ ...typeof blockOverrides.blobBaseFee === "bigint" && {
914
+ blobBaseFee: fromNumber(blockOverrides.blobBaseFee)
915
+ },
916
+ ...typeof blockOverrides.feeRecipient === "string" && {
917
+ feeRecipient: blockOverrides.feeRecipient
918
+ },
919
+ ...typeof blockOverrides.gasLimit === "bigint" && {
920
+ gasLimit: fromNumber(blockOverrides.gasLimit)
921
+ },
922
+ ...typeof blockOverrides.number === "bigint" && {
923
+ number: fromNumber(blockOverrides.number)
924
+ },
925
+ ...typeof blockOverrides.prevRandao === "bigint" && {
926
+ prevRandao: fromNumber(blockOverrides.prevRandao)
927
+ },
928
+ ...typeof blockOverrides.time === "bigint" && {
929
+ time: fromNumber(blockOverrides.time)
930
+ },
931
+ ...blockOverrides.withdrawals && {
932
+ withdrawals: blockOverrides.withdrawals.map(toRpc)
933
+ }
934
+ };
993
935
  }
994
936
 
995
- // node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/internal/bytes.js
996
- function assertSize2(bytes, size_) {
997
- if (size2(bytes) > size_)
998
- throw new SizeOverflowError({
999
- givenSize: size2(bytes),
1000
- maxSize: size_
1001
- });
1002
- }
1003
- function assertStartOffset(value, start) {
1004
- if (typeof start === "number" && start > 0 && start > size2(value) - 1)
1005
- throw new SliceOffsetOutOfBoundsError({
1006
- offset: start,
1007
- position: "start",
1008
- size: size2(value)
1009
- });
1010
- }
1011
- function assertEndOffset(value, start, end) {
1012
- if (typeof start === "number" && typeof end === "number" && size2(value) !== end - start) {
1013
- throw new SliceOffsetOutOfBoundsError({
1014
- offset: end,
1015
- position: "end",
1016
- size: size2(value)
1017
- });
937
+ // node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/constants/abis.js
938
+ var multicall3Abi = [
939
+ {
940
+ inputs: [
941
+ {
942
+ components: [
943
+ {
944
+ name: "target",
945
+ type: "address"
946
+ },
947
+ {
948
+ name: "allowFailure",
949
+ type: "bool"
950
+ },
951
+ {
952
+ name: "callData",
953
+ type: "bytes"
954
+ }
955
+ ],
956
+ name: "calls",
957
+ type: "tuple[]"
958
+ }
959
+ ],
960
+ name: "aggregate3",
961
+ outputs: [
962
+ {
963
+ components: [
964
+ {
965
+ name: "success",
966
+ type: "bool"
967
+ },
968
+ {
969
+ name: "returnData",
970
+ type: "bytes"
971
+ }
972
+ ],
973
+ name: "returnData",
974
+ type: "tuple[]"
975
+ }
976
+ ],
977
+ stateMutability: "view",
978
+ type: "function"
979
+ },
980
+ {
981
+ inputs: [
982
+ {
983
+ name: "addr",
984
+ type: "address"
985
+ }
986
+ ],
987
+ name: "getEthBalance",
988
+ outputs: [
989
+ {
990
+ name: "balance",
991
+ type: "uint256"
992
+ }
993
+ ],
994
+ stateMutability: "view",
995
+ type: "function"
996
+ },
997
+ {
998
+ inputs: [],
999
+ name: "getCurrentBlockTimestamp",
1000
+ outputs: [
1001
+ {
1002
+ internalType: "uint256",
1003
+ name: "timestamp",
1004
+ type: "uint256"
1005
+ }
1006
+ ],
1007
+ stateMutability: "view",
1008
+ type: "function"
1018
1009
  }
1019
- }
1020
- var charCodeMap = {
1021
- zero: 48,
1022
- nine: 57,
1023
- A: 65,
1024
- F: 70,
1025
- a: 97,
1026
- f: 102
1027
- };
1028
- function charCodeToBase16(char) {
1029
- if (char >= charCodeMap.zero && char <= charCodeMap.nine)
1030
- return char - charCodeMap.zero;
1031
- if (char >= charCodeMap.A && char <= charCodeMap.F)
1032
- return char - (charCodeMap.A - 10);
1033
- if (char >= charCodeMap.a && char <= charCodeMap.f)
1034
- return char - (charCodeMap.a - 10);
1035
- return void 0;
1036
- }
1037
- function pad(bytes, options = {}) {
1038
- const { dir, size: size4 = 32 } = options;
1039
- if (size4 === 0)
1040
- return bytes;
1041
- if (bytes.length > size4)
1042
- throw new SizeExceedsPaddingSizeError({
1043
- size: bytes.length,
1044
- targetSize: size4,
1045
- type: "Bytes"
1046
- });
1047
- const paddedBytes = new Uint8Array(size4);
1048
- for (let i = 0; i < size4; i++) {
1049
- const padEnd = dir === "right";
1050
- paddedBytes[padEnd ? i : size4 - i - 1] = bytes[padEnd ? i : bytes.length - i - 1];
1010
+ ];
1011
+ var batchGatewayAbi = [
1012
+ {
1013
+ name: "query",
1014
+ type: "function",
1015
+ stateMutability: "view",
1016
+ inputs: [
1017
+ {
1018
+ type: "tuple[]",
1019
+ name: "queries",
1020
+ components: [
1021
+ {
1022
+ type: "address",
1023
+ name: "sender"
1024
+ },
1025
+ {
1026
+ type: "string[]",
1027
+ name: "urls"
1028
+ },
1029
+ {
1030
+ type: "bytes",
1031
+ name: "data"
1032
+ }
1033
+ ]
1034
+ }
1035
+ ],
1036
+ outputs: [
1037
+ {
1038
+ type: "bool[]",
1039
+ name: "failures"
1040
+ },
1041
+ {
1042
+ type: "bytes[]",
1043
+ name: "responses"
1044
+ }
1045
+ ]
1046
+ },
1047
+ {
1048
+ name: "HttpError",
1049
+ type: "error",
1050
+ inputs: [
1051
+ {
1052
+ type: "uint16",
1053
+ name: "status"
1054
+ },
1055
+ {
1056
+ type: "string",
1057
+ name: "message"
1058
+ }
1059
+ ]
1051
1060
  }
1052
- return paddedBytes;
1053
- }
1054
- function trim2(value, options = {}) {
1055
- const { dir = "left" } = options;
1056
- let data = value;
1057
- let sliceLength = 0;
1058
- for (let i = 0; i < data.length - 1; i++) {
1059
- if (data[dir === "left" ? i : data.length - i - 1].toString() === "0")
1060
- sliceLength++;
1061
- else
1062
- break;
1063
- }
1064
- data = dir === "left" ? data.slice(sliceLength) : data.slice(0, data.length - sliceLength);
1065
- return data;
1066
- }
1067
-
1068
- // node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/internal/hex.js
1069
- function assertSize3(hex, size_) {
1070
- if (size3(hex) > size_)
1071
- throw new SizeOverflowError2({
1072
- givenSize: size3(hex),
1073
- maxSize: size_
1074
- });
1075
- }
1076
- function assertStartOffset2(value, start) {
1077
- if (typeof start === "number" && start > 0 && start > size3(value) - 1)
1078
- throw new SliceOffsetOutOfBoundsError2({
1079
- offset: start,
1080
- position: "start",
1081
- size: size3(value)
1082
- });
1083
- }
1084
- function assertEndOffset2(value, start, end) {
1085
- if (typeof start === "number" && typeof end === "number" && size3(value) !== end - start) {
1086
- throw new SliceOffsetOutOfBoundsError2({
1087
- offset: end,
1088
- position: "end",
1089
- size: size3(value)
1090
- });
1061
+ ];
1062
+ var universalResolverErrors = [
1063
+ {
1064
+ inputs: [
1065
+ {
1066
+ name: "dns",
1067
+ type: "bytes"
1068
+ }
1069
+ ],
1070
+ name: "DNSDecodingFailed",
1071
+ type: "error"
1072
+ },
1073
+ {
1074
+ inputs: [
1075
+ {
1076
+ name: "ens",
1077
+ type: "string"
1078
+ }
1079
+ ],
1080
+ name: "DNSEncodingFailed",
1081
+ type: "error"
1082
+ },
1083
+ {
1084
+ inputs: [],
1085
+ name: "EmptyAddress",
1086
+ type: "error"
1087
+ },
1088
+ {
1089
+ inputs: [
1090
+ {
1091
+ name: "status",
1092
+ type: "uint16"
1093
+ },
1094
+ {
1095
+ name: "message",
1096
+ type: "string"
1097
+ }
1098
+ ],
1099
+ name: "HttpError",
1100
+ type: "error"
1101
+ },
1102
+ {
1103
+ inputs: [],
1104
+ name: "InvalidBatchGatewayResponse",
1105
+ type: "error"
1106
+ },
1107
+ {
1108
+ inputs: [
1109
+ {
1110
+ name: "errorData",
1111
+ type: "bytes"
1112
+ }
1113
+ ],
1114
+ name: "ResolverError",
1115
+ type: "error"
1116
+ },
1117
+ {
1118
+ inputs: [
1119
+ {
1120
+ name: "name",
1121
+ type: "bytes"
1122
+ },
1123
+ {
1124
+ name: "resolver",
1125
+ type: "address"
1126
+ }
1127
+ ],
1128
+ name: "ResolverNotContract",
1129
+ type: "error"
1130
+ },
1131
+ {
1132
+ inputs: [
1133
+ {
1134
+ name: "name",
1135
+ type: "bytes"
1136
+ }
1137
+ ],
1138
+ name: "ResolverNotFound",
1139
+ type: "error"
1140
+ },
1141
+ {
1142
+ inputs: [
1143
+ {
1144
+ name: "primary",
1145
+ type: "string"
1146
+ },
1147
+ {
1148
+ name: "primaryAddress",
1149
+ type: "bytes"
1150
+ }
1151
+ ],
1152
+ name: "ReverseAddressMismatch",
1153
+ type: "error"
1154
+ },
1155
+ {
1156
+ inputs: [
1157
+ {
1158
+ internalType: "bytes4",
1159
+ name: "selector",
1160
+ type: "bytes4"
1161
+ }
1162
+ ],
1163
+ name: "UnsupportedResolverProfile",
1164
+ type: "error"
1091
1165
  }
1092
- }
1093
- function pad2(hex_, options = {}) {
1094
- const { dir, size: size4 = 32 } = options;
1095
- if (size4 === 0)
1096
- return hex_;
1097
- const hex = hex_.replace("0x", "");
1098
- if (hex.length > size4 * 2)
1099
- throw new SizeExceedsPaddingSizeError2({
1100
- size: Math.ceil(hex.length / 2),
1101
- targetSize: size4,
1102
- type: "Hex"
1103
- });
1104
- return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size4 * 2, "0")}`;
1105
- }
1106
- function trim3(value, options = {}) {
1107
- const { dir = "left" } = options;
1108
- let data = value.replace("0x", "");
1109
- let sliceLength = 0;
1110
- for (let i = 0; i < data.length - 1; i++) {
1111
- if (data[dir === "left" ? i : data.length - i - 1].toString() === "0")
1112
- sliceLength++;
1113
- else
1114
- break;
1166
+ ];
1167
+ var universalResolverResolveAbi = [
1168
+ ...universalResolverErrors,
1169
+ {
1170
+ name: "resolveWithGateways",
1171
+ type: "function",
1172
+ stateMutability: "view",
1173
+ inputs: [
1174
+ { name: "name", type: "bytes" },
1175
+ { name: "data", type: "bytes" },
1176
+ { name: "gateways", type: "string[]" }
1177
+ ],
1178
+ outputs: [
1179
+ { name: "", type: "bytes" },
1180
+ { name: "address", type: "address" }
1181
+ ]
1115
1182
  }
1116
- data = dir === "left" ? data.slice(sliceLength) : data.slice(0, data.length - sliceLength);
1117
- if (data === "0")
1118
- return "0x";
1119
- if (dir === "right" && data.length % 2 === 1)
1120
- return `0x${data}0`;
1121
- return `0x${data}`;
1122
- }
1123
-
1124
- // node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/Json.js
1125
- var bigIntSuffix = "#__bigint";
1126
- function stringify2(value, replacer, space) {
1127
- return JSON.stringify(value, (key, value2) => {
1128
- if (typeof replacer === "function")
1129
- return replacer(key, value2);
1130
- if (typeof value2 === "bigint")
1131
- return value2.toString() + bigIntSuffix;
1132
- return value2;
1133
- }, space);
1134
- }
1135
-
1136
- // node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/Bytes.js
1137
- var decoder = /* @__PURE__ */ new TextDecoder();
1138
- var encoder = /* @__PURE__ */ new TextEncoder();
1139
- function assert(value) {
1140
- if (value instanceof Uint8Array)
1141
- return;
1142
- if (!value)
1143
- throw new InvalidBytesTypeError(value);
1144
- if (typeof value !== "object")
1145
- throw new InvalidBytesTypeError(value);
1146
- if (!("BYTES_PER_ELEMENT" in value))
1147
- throw new InvalidBytesTypeError(value);
1148
- if (value.BYTES_PER_ELEMENT !== 1 || value.constructor.name !== "Uint8Array")
1149
- throw new InvalidBytesTypeError(value);
1150
- }
1151
- function from(value) {
1152
- if (value instanceof Uint8Array)
1153
- return value;
1154
- if (typeof value === "string")
1155
- return fromHex(value);
1156
- return fromArray(value);
1157
- }
1158
- function fromArray(value) {
1159
- return value instanceof Uint8Array ? value : new Uint8Array(value);
1160
- }
1161
- function fromHex(value, options = {}) {
1162
- const { size: size4 } = options;
1163
- let hex = value;
1164
- if (size4) {
1165
- assertSize3(value, size4);
1166
- hex = padRight(value, size4);
1183
+ ];
1184
+ var universalResolverReverseAbi = [
1185
+ ...universalResolverErrors,
1186
+ {
1187
+ name: "reverseWithGateways",
1188
+ type: "function",
1189
+ stateMutability: "view",
1190
+ inputs: [
1191
+ { type: "bytes", name: "reverseName" },
1192
+ { type: "uint256", name: "coinType" },
1193
+ { type: "string[]", name: "gateways" }
1194
+ ],
1195
+ outputs: [
1196
+ { type: "string", name: "resolvedName" },
1197
+ { type: "address", name: "resolver" },
1198
+ { type: "address", name: "reverseResolver" }
1199
+ ]
1167
1200
  }
1168
- let hexString = hex.slice(2);
1169
- if (hexString.length % 2)
1170
- hexString = `0${hexString}`;
1171
- const length = hexString.length / 2;
1172
- const bytes = new Uint8Array(length);
1173
- for (let index = 0, j = 0; index < length; index++) {
1174
- const nibbleLeft = charCodeToBase16(hexString.charCodeAt(j++));
1175
- const nibbleRight = charCodeToBase16(hexString.charCodeAt(j++));
1176
- if (nibbleLeft === void 0 || nibbleRight === void 0) {
1177
- throw new BaseError3(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
1178
- }
1179
- bytes[index] = nibbleLeft << 4 | nibbleRight;
1201
+ ];
1202
+ var textResolverAbi = [
1203
+ {
1204
+ name: "text",
1205
+ type: "function",
1206
+ stateMutability: "view",
1207
+ inputs: [
1208
+ { name: "name", type: "bytes32" },
1209
+ { name: "key", type: "string" }
1210
+ ],
1211
+ outputs: [{ name: "", type: "string" }]
1180
1212
  }
1181
- return bytes;
1182
- }
1183
- function fromString(value, options = {}) {
1184
- const { size: size4 } = options;
1185
- const bytes = encoder.encode(value);
1186
- if (typeof size4 === "number") {
1187
- assertSize2(bytes, size4);
1188
- return padRight2(bytes, size4);
1213
+ ];
1214
+ var addressResolverAbi = [
1215
+ {
1216
+ name: "addr",
1217
+ type: "function",
1218
+ stateMutability: "view",
1219
+ inputs: [{ name: "name", type: "bytes32" }],
1220
+ outputs: [{ name: "", type: "address" }]
1221
+ },
1222
+ {
1223
+ name: "addr",
1224
+ type: "function",
1225
+ stateMutability: "view",
1226
+ inputs: [
1227
+ { name: "name", type: "bytes32" },
1228
+ { name: "coinType", type: "uint256" }
1229
+ ],
1230
+ outputs: [{ name: "", type: "bytes" }]
1189
1231
  }
1190
- return bytes;
1191
- }
1192
- function padRight2(value, size4) {
1193
- return pad(value, { dir: "right", size: size4 });
1194
- }
1195
- function size2(value) {
1196
- return value.length;
1197
- }
1198
- function slice2(value, start, end, options = {}) {
1199
- const { strict } = options;
1200
- assertStartOffset(value, start);
1201
- const value_ = value.slice(start, end);
1202
- if (strict)
1203
- assertEndOffset(value_, start, end);
1204
- return value_;
1205
- }
1206
- function toBigInt2(bytes, options = {}) {
1207
- const { size: size4 } = options;
1208
- if (typeof size4 !== "undefined")
1209
- assertSize2(bytes, size4);
1210
- const hex = fromBytes(bytes, options);
1211
- return toBigInt(hex, options);
1212
- }
1213
- function toBoolean(bytes, options = {}) {
1214
- const { size: size4 } = options;
1215
- let bytes_ = bytes;
1216
- if (typeof size4 !== "undefined") {
1217
- assertSize2(bytes_, size4);
1218
- bytes_ = trimLeft(bytes_);
1232
+ ];
1233
+ var erc1271Abi = [
1234
+ {
1235
+ name: "isValidSignature",
1236
+ type: "function",
1237
+ stateMutability: "view",
1238
+ inputs: [
1239
+ { name: "hash", type: "bytes32" },
1240
+ { name: "signature", type: "bytes" }
1241
+ ],
1242
+ outputs: [{ name: "", type: "bytes4" }]
1219
1243
  }
1220
- if (bytes_.length > 1 || bytes_[0] > 1)
1221
- throw new InvalidBytesBooleanError2(bytes_);
1222
- return Boolean(bytes_[0]);
1223
- }
1224
- function toNumber2(bytes, options = {}) {
1225
- const { size: size4 } = options;
1226
- if (typeof size4 !== "undefined")
1227
- assertSize2(bytes, size4);
1228
- const hex = fromBytes(bytes, options);
1229
- return toNumber(hex, options);
1230
- }
1231
- function toString(bytes, options = {}) {
1232
- const { size: size4 } = options;
1233
- let bytes_ = bytes;
1234
- if (typeof size4 !== "undefined") {
1235
- assertSize2(bytes_, size4);
1236
- bytes_ = trimRight(bytes_);
1244
+ ];
1245
+ var erc6492SignatureValidatorAbi = [
1246
+ {
1247
+ inputs: [
1248
+ {
1249
+ name: "_signer",
1250
+ type: "address"
1251
+ },
1252
+ {
1253
+ name: "_hash",
1254
+ type: "bytes32"
1255
+ },
1256
+ {
1257
+ name: "_signature",
1258
+ type: "bytes"
1259
+ }
1260
+ ],
1261
+ stateMutability: "nonpayable",
1262
+ type: "constructor"
1263
+ },
1264
+ {
1265
+ inputs: [
1266
+ {
1267
+ name: "_signer",
1268
+ type: "address"
1269
+ },
1270
+ {
1271
+ name: "_hash",
1272
+ type: "bytes32"
1273
+ },
1274
+ {
1275
+ name: "_signature",
1276
+ type: "bytes"
1277
+ }
1278
+ ],
1279
+ outputs: [
1280
+ {
1281
+ type: "bool"
1282
+ }
1283
+ ],
1284
+ stateMutability: "nonpayable",
1285
+ type: "function",
1286
+ name: "isValidSig"
1237
1287
  }
1238
- return decoder.decode(bytes_);
1239
- }
1240
- function trimLeft(value) {
1241
- return trim2(value, { dir: "left" });
1242
- }
1243
- function trimRight(value) {
1244
- return trim2(value, { dir: "right" });
1245
- }
1246
- function validate(value) {
1247
- try {
1248
- assert(value);
1249
- return true;
1250
- } catch {
1251
- return false;
1252
- }
1253
- }
1254
- var InvalidBytesBooleanError2 = class extends BaseError3 {
1255
- constructor(bytes) {
1256
- super(`Bytes value \`${bytes}\` is not a valid boolean.`, {
1257
- metaMessages: [
1258
- "The bytes array must contain a single byte of either a `0` or `1` value."
1259
- ]
1260
- });
1261
- Object.defineProperty(this, "name", {
1262
- enumerable: true,
1263
- configurable: true,
1264
- writable: true,
1265
- value: "Bytes.InvalidBytesBooleanError"
1266
- });
1267
- }
1268
- };
1269
- var InvalidBytesTypeError = class extends BaseError3 {
1270
- constructor(value) {
1271
- super(`Value \`${typeof value === "object" ? stringify2(value) : value}\` of type \`${typeof value}\` is an invalid Bytes value.`, {
1272
- metaMessages: ["Bytes values must be of type `Bytes`."]
1273
- });
1274
- Object.defineProperty(this, "name", {
1275
- enumerable: true,
1276
- configurable: true,
1277
- writable: true,
1278
- value: "Bytes.InvalidBytesTypeError"
1279
- });
1280
- }
1281
- };
1282
- var SizeOverflowError = class extends BaseError3 {
1283
- constructor({ givenSize, maxSize }) {
1284
- super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
1285
- Object.defineProperty(this, "name", {
1286
- enumerable: true,
1287
- configurable: true,
1288
- writable: true,
1289
- value: "Bytes.SizeOverflowError"
1290
- });
1291
- }
1292
- };
1293
- var SliceOffsetOutOfBoundsError = class extends BaseError3 {
1294
- constructor({ offset, position, size: size4 }) {
1295
- super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size4}\`).`);
1296
- Object.defineProperty(this, "name", {
1297
- enumerable: true,
1298
- configurable: true,
1299
- writable: true,
1300
- value: "Bytes.SliceOffsetOutOfBoundsError"
1301
- });
1302
- }
1303
- };
1304
- var SizeExceedsPaddingSizeError = class extends BaseError3 {
1305
- constructor({ size: size4, targetSize, type }) {
1306
- super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size4}\`) exceeds padding size (\`${targetSize}\`).`);
1307
- Object.defineProperty(this, "name", {
1308
- enumerable: true,
1309
- configurable: true,
1310
- writable: true,
1311
- value: "Bytes.SizeExceedsPaddingSizeError"
1312
- });
1313
- }
1314
- };
1315
-
1316
- // node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/Hex.js
1317
- var encoder2 = /* @__PURE__ */ new TextEncoder();
1318
- var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
1319
- function assert2(value, options = {}) {
1320
- const { strict = false } = options;
1321
- if (!value)
1322
- throw new InvalidHexTypeError(value);
1323
- if (typeof value !== "string")
1324
- throw new InvalidHexTypeError(value);
1325
- if (strict) {
1326
- if (!/^0x[0-9a-fA-F]*$/.test(value))
1327
- throw new InvalidHexValueError(value);
1328
- }
1329
- if (!value.startsWith("0x"))
1330
- throw new InvalidHexValueError(value);
1331
- }
1332
- function concat2(...values) {
1333
- return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
1334
- }
1335
- function from2(value) {
1336
- if (value instanceof Uint8Array)
1337
- return fromBytes(value);
1338
- if (Array.isArray(value))
1339
- return fromBytes(new Uint8Array(value));
1340
- return value;
1341
- }
1342
- function fromBoolean(value, options = {}) {
1343
- const hex = `0x${Number(value)}`;
1344
- if (typeof options.size === "number") {
1345
- assertSize3(hex, options.size);
1346
- return padLeft(hex, options.size);
1347
- }
1348
- return hex;
1349
- }
1350
- function fromBytes(value, options = {}) {
1351
- let string = "";
1352
- for (let i = 0; i < value.length; i++)
1353
- string += hexes[value[i]];
1354
- const hex = `0x${string}`;
1355
- if (typeof options.size === "number") {
1356
- assertSize3(hex, options.size);
1357
- return padRight(hex, options.size);
1358
- }
1359
- return hex;
1360
- }
1361
- function fromNumber(value, options = {}) {
1362
- const { signed, size: size4 } = options;
1363
- const value_ = BigInt(value);
1364
- let maxValue;
1365
- if (size4) {
1366
- if (signed)
1367
- maxValue = (1n << BigInt(size4) * 8n - 1n) - 1n;
1368
- else
1369
- maxValue = 2n ** (BigInt(size4) * 8n) - 1n;
1370
- } else if (typeof value === "number") {
1371
- maxValue = BigInt(Number.MAX_SAFE_INTEGER);
1372
- }
1373
- const minValue = typeof maxValue === "bigint" && signed ? -maxValue - 1n : 0;
1374
- if (maxValue && value_ > maxValue || value_ < minValue) {
1375
- const suffix = typeof value === "bigint" ? "n" : "";
1376
- throw new IntegerOutOfRangeError({
1377
- max: maxValue ? `${maxValue}${suffix}` : void 0,
1378
- min: `${minValue}${suffix}`,
1379
- signed,
1380
- size: size4,
1381
- value: `${value}${suffix}`
1382
- });
1383
- }
1384
- const stringValue = (signed && value_ < 0 ? BigInt.asUintN(size4 * 8, BigInt(value_)) : value_).toString(16);
1385
- const hex = `0x${stringValue}`;
1386
- if (size4)
1387
- return padLeft(hex, size4);
1388
- return hex;
1389
- }
1390
- function fromString2(value, options = {}) {
1391
- return fromBytes(encoder2.encode(value), options);
1392
- }
1393
- function padLeft(value, size4) {
1394
- return pad2(value, { dir: "left", size: size4 });
1395
- }
1396
- function padRight(value, size4) {
1397
- return pad2(value, { dir: "right", size: size4 });
1398
- }
1399
- function slice3(value, start, end, options = {}) {
1400
- const { strict } = options;
1401
- assertStartOffset2(value, start);
1402
- const value_ = `0x${value.replace("0x", "").slice((start ?? 0) * 2, (end ?? value.length) * 2)}`;
1403
- if (strict)
1404
- assertEndOffset2(value_, start, end);
1405
- return value_;
1406
- }
1407
- function size3(value) {
1408
- return Math.ceil((value.length - 2) / 2);
1409
- }
1410
- function trimLeft2(value) {
1411
- return trim3(value, { dir: "left" });
1412
- }
1413
- function toBigInt(hex, options = {}) {
1414
- const { signed } = options;
1415
- if (options.size)
1416
- assertSize3(hex, options.size);
1417
- const value = BigInt(hex);
1418
- if (!signed)
1419
- return value;
1420
- const size4 = (hex.length - 2) / 2;
1421
- const max_unsigned = (1n << BigInt(size4) * 8n) - 1n;
1422
- const max_signed = max_unsigned >> 1n;
1423
- if (value <= max_signed)
1424
- return value;
1425
- return value - max_unsigned - 1n;
1426
- }
1427
- function toNumber(hex, options = {}) {
1428
- const { signed, size: size4 } = options;
1429
- if (!signed && !size4)
1430
- return Number(hex);
1431
- return Number(toBigInt(hex, options));
1432
- }
1433
- function validate2(value, options = {}) {
1434
- const { strict = false } = options;
1435
- try {
1436
- assert2(value, { strict });
1437
- return true;
1438
- } catch {
1439
- return false;
1440
- }
1441
- }
1442
- var IntegerOutOfRangeError = class extends BaseError3 {
1443
- constructor({ max, min, signed, size: size4, value }) {
1444
- super(`Number \`${value}\` is not in safe${size4 ? ` ${size4 * 8}-bit` : ""}${signed ? " signed" : " unsigned"} integer range ${max ? `(\`${min}\` to \`${max}\`)` : `(above \`${min}\`)`}`);
1445
- Object.defineProperty(this, "name", {
1446
- enumerable: true,
1447
- configurable: true,
1448
- writable: true,
1449
- value: "Hex.IntegerOutOfRangeError"
1450
- });
1451
- }
1452
- };
1453
- var InvalidHexTypeError = class extends BaseError3 {
1454
- constructor(value) {
1455
- super(`Value \`${typeof value === "object" ? stringify2(value) : value}\` of type \`${typeof value}\` is an invalid hex type.`, {
1456
- metaMessages: ['Hex types must be represented as `"0x${string}"`.']
1457
- });
1458
- Object.defineProperty(this, "name", {
1459
- enumerable: true,
1460
- configurable: true,
1461
- writable: true,
1462
- value: "Hex.InvalidHexTypeError"
1463
- });
1464
- }
1465
- };
1466
- var InvalidHexValueError = class extends BaseError3 {
1467
- constructor(value) {
1468
- super(`Value \`${value}\` is an invalid hex value.`, {
1469
- metaMessages: [
1470
- 'Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).'
1471
- ]
1472
- });
1473
- Object.defineProperty(this, "name", {
1474
- enumerable: true,
1475
- configurable: true,
1476
- writable: true,
1477
- value: "Hex.InvalidHexValueError"
1478
- });
1479
- }
1480
- };
1481
- var SizeOverflowError2 = class extends BaseError3 {
1482
- constructor({ givenSize, maxSize }) {
1483
- super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
1484
- Object.defineProperty(this, "name", {
1485
- enumerable: true,
1486
- configurable: true,
1487
- writable: true,
1488
- value: "Hex.SizeOverflowError"
1489
- });
1288
+ ];
1289
+ var erc20Abi = [
1290
+ {
1291
+ type: "event",
1292
+ name: "Approval",
1293
+ inputs: [
1294
+ {
1295
+ indexed: true,
1296
+ name: "owner",
1297
+ type: "address"
1298
+ },
1299
+ {
1300
+ indexed: true,
1301
+ name: "spender",
1302
+ type: "address"
1303
+ },
1304
+ {
1305
+ indexed: false,
1306
+ name: "value",
1307
+ type: "uint256"
1308
+ }
1309
+ ]
1310
+ },
1311
+ {
1312
+ type: "event",
1313
+ name: "Transfer",
1314
+ inputs: [
1315
+ {
1316
+ indexed: true,
1317
+ name: "from",
1318
+ type: "address"
1319
+ },
1320
+ {
1321
+ indexed: true,
1322
+ name: "to",
1323
+ type: "address"
1324
+ },
1325
+ {
1326
+ indexed: false,
1327
+ name: "value",
1328
+ type: "uint256"
1329
+ }
1330
+ ]
1331
+ },
1332
+ {
1333
+ type: "function",
1334
+ name: "allowance",
1335
+ stateMutability: "view",
1336
+ inputs: [
1337
+ {
1338
+ name: "owner",
1339
+ type: "address"
1340
+ },
1341
+ {
1342
+ name: "spender",
1343
+ type: "address"
1344
+ }
1345
+ ],
1346
+ outputs: [
1347
+ {
1348
+ type: "uint256"
1349
+ }
1350
+ ]
1351
+ },
1352
+ {
1353
+ type: "function",
1354
+ name: "approve",
1355
+ stateMutability: "nonpayable",
1356
+ inputs: [
1357
+ {
1358
+ name: "spender",
1359
+ type: "address"
1360
+ },
1361
+ {
1362
+ name: "amount",
1363
+ type: "uint256"
1364
+ }
1365
+ ],
1366
+ outputs: [
1367
+ {
1368
+ type: "bool"
1369
+ }
1370
+ ]
1371
+ },
1372
+ {
1373
+ type: "function",
1374
+ name: "balanceOf",
1375
+ stateMutability: "view",
1376
+ inputs: [
1377
+ {
1378
+ name: "account",
1379
+ type: "address"
1380
+ }
1381
+ ],
1382
+ outputs: [
1383
+ {
1384
+ type: "uint256"
1385
+ }
1386
+ ]
1387
+ },
1388
+ {
1389
+ type: "function",
1390
+ name: "decimals",
1391
+ stateMutability: "view",
1392
+ inputs: [],
1393
+ outputs: [
1394
+ {
1395
+ type: "uint8"
1396
+ }
1397
+ ]
1398
+ },
1399
+ {
1400
+ type: "function",
1401
+ name: "name",
1402
+ stateMutability: "view",
1403
+ inputs: [],
1404
+ outputs: [
1405
+ {
1406
+ type: "string"
1407
+ }
1408
+ ]
1409
+ },
1410
+ {
1411
+ type: "function",
1412
+ name: "symbol",
1413
+ stateMutability: "view",
1414
+ inputs: [],
1415
+ outputs: [
1416
+ {
1417
+ type: "string"
1418
+ }
1419
+ ]
1420
+ },
1421
+ {
1422
+ type: "function",
1423
+ name: "totalSupply",
1424
+ stateMutability: "view",
1425
+ inputs: [],
1426
+ outputs: [
1427
+ {
1428
+ type: "uint256"
1429
+ }
1430
+ ]
1431
+ },
1432
+ {
1433
+ type: "function",
1434
+ name: "transfer",
1435
+ stateMutability: "nonpayable",
1436
+ inputs: [
1437
+ {
1438
+ name: "recipient",
1439
+ type: "address"
1440
+ },
1441
+ {
1442
+ name: "amount",
1443
+ type: "uint256"
1444
+ }
1445
+ ],
1446
+ outputs: [
1447
+ {
1448
+ type: "bool"
1449
+ }
1450
+ ]
1451
+ },
1452
+ {
1453
+ type: "function",
1454
+ name: "transferFrom",
1455
+ stateMutability: "nonpayable",
1456
+ inputs: [
1457
+ {
1458
+ name: "sender",
1459
+ type: "address"
1460
+ },
1461
+ {
1462
+ name: "recipient",
1463
+ type: "address"
1464
+ },
1465
+ {
1466
+ name: "amount",
1467
+ type: "uint256"
1468
+ }
1469
+ ],
1470
+ outputs: [
1471
+ {
1472
+ type: "bool"
1473
+ }
1474
+ ]
1490
1475
  }
1491
- };
1492
- var SliceOffsetOutOfBoundsError2 = class extends BaseError3 {
1493
- constructor({ offset, position, size: size4 }) {
1494
- super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size4}\`).`);
1495
- Object.defineProperty(this, "name", {
1496
- enumerable: true,
1497
- configurable: true,
1498
- writable: true,
1499
- value: "Hex.SliceOffsetOutOfBoundsError"
1500
- });
1476
+ ];
1477
+ var erc20Abi_bytes32 = [
1478
+ {
1479
+ type: "event",
1480
+ name: "Approval",
1481
+ inputs: [
1482
+ {
1483
+ indexed: true,
1484
+ name: "owner",
1485
+ type: "address"
1486
+ },
1487
+ {
1488
+ indexed: true,
1489
+ name: "spender",
1490
+ type: "address"
1491
+ },
1492
+ {
1493
+ indexed: false,
1494
+ name: "value",
1495
+ type: "uint256"
1496
+ }
1497
+ ]
1498
+ },
1499
+ {
1500
+ type: "event",
1501
+ name: "Transfer",
1502
+ inputs: [
1503
+ {
1504
+ indexed: true,
1505
+ name: "from",
1506
+ type: "address"
1507
+ },
1508
+ {
1509
+ indexed: true,
1510
+ name: "to",
1511
+ type: "address"
1512
+ },
1513
+ {
1514
+ indexed: false,
1515
+ name: "value",
1516
+ type: "uint256"
1517
+ }
1518
+ ]
1519
+ },
1520
+ {
1521
+ type: "function",
1522
+ name: "allowance",
1523
+ stateMutability: "view",
1524
+ inputs: [
1525
+ {
1526
+ name: "owner",
1527
+ type: "address"
1528
+ },
1529
+ {
1530
+ name: "spender",
1531
+ type: "address"
1532
+ }
1533
+ ],
1534
+ outputs: [
1535
+ {
1536
+ type: "uint256"
1537
+ }
1538
+ ]
1539
+ },
1540
+ {
1541
+ type: "function",
1542
+ name: "approve",
1543
+ stateMutability: "nonpayable",
1544
+ inputs: [
1545
+ {
1546
+ name: "spender",
1547
+ type: "address"
1548
+ },
1549
+ {
1550
+ name: "amount",
1551
+ type: "uint256"
1552
+ }
1553
+ ],
1554
+ outputs: [
1555
+ {
1556
+ type: "bool"
1557
+ }
1558
+ ]
1559
+ },
1560
+ {
1561
+ type: "function",
1562
+ name: "balanceOf",
1563
+ stateMutability: "view",
1564
+ inputs: [
1565
+ {
1566
+ name: "account",
1567
+ type: "address"
1568
+ }
1569
+ ],
1570
+ outputs: [
1571
+ {
1572
+ type: "uint256"
1573
+ }
1574
+ ]
1575
+ },
1576
+ {
1577
+ type: "function",
1578
+ name: "decimals",
1579
+ stateMutability: "view",
1580
+ inputs: [],
1581
+ outputs: [
1582
+ {
1583
+ type: "uint8"
1584
+ }
1585
+ ]
1586
+ },
1587
+ {
1588
+ type: "function",
1589
+ name: "name",
1590
+ stateMutability: "view",
1591
+ inputs: [],
1592
+ outputs: [
1593
+ {
1594
+ type: "bytes32"
1595
+ }
1596
+ ]
1597
+ },
1598
+ {
1599
+ type: "function",
1600
+ name: "symbol",
1601
+ stateMutability: "view",
1602
+ inputs: [],
1603
+ outputs: [
1604
+ {
1605
+ type: "bytes32"
1606
+ }
1607
+ ]
1608
+ },
1609
+ {
1610
+ type: "function",
1611
+ name: "totalSupply",
1612
+ stateMutability: "view",
1613
+ inputs: [],
1614
+ outputs: [
1615
+ {
1616
+ type: "uint256"
1617
+ }
1618
+ ]
1619
+ },
1620
+ {
1621
+ type: "function",
1622
+ name: "transfer",
1623
+ stateMutability: "nonpayable",
1624
+ inputs: [
1625
+ {
1626
+ name: "recipient",
1627
+ type: "address"
1628
+ },
1629
+ {
1630
+ name: "amount",
1631
+ type: "uint256"
1632
+ }
1633
+ ],
1634
+ outputs: [
1635
+ {
1636
+ type: "bool"
1637
+ }
1638
+ ]
1639
+ },
1640
+ {
1641
+ type: "function",
1642
+ name: "transferFrom",
1643
+ stateMutability: "nonpayable",
1644
+ inputs: [
1645
+ {
1646
+ name: "sender",
1647
+ type: "address"
1648
+ },
1649
+ {
1650
+ name: "recipient",
1651
+ type: "address"
1652
+ },
1653
+ {
1654
+ name: "amount",
1655
+ type: "uint256"
1656
+ }
1657
+ ],
1658
+ outputs: [
1659
+ {
1660
+ type: "bool"
1661
+ }
1662
+ ]
1501
1663
  }
1502
- };
1503
- var SizeExceedsPaddingSizeError2 = class extends BaseError3 {
1504
- constructor({ size: size4, targetSize, type }) {
1505
- super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size4}\`) exceeds padding size (\`${targetSize}\`).`);
1506
- Object.defineProperty(this, "name", {
1507
- enumerable: true,
1508
- configurable: true,
1509
- writable: true,
1510
- value: "Hex.SizeExceedsPaddingSizeError"
1511
- });
1664
+ ];
1665
+ var erc1155Abi = [
1666
+ {
1667
+ inputs: [
1668
+ {
1669
+ internalType: "address",
1670
+ name: "sender",
1671
+ type: "address"
1672
+ },
1673
+ {
1674
+ internalType: "uint256",
1675
+ name: "balance",
1676
+ type: "uint256"
1677
+ },
1678
+ {
1679
+ internalType: "uint256",
1680
+ name: "needed",
1681
+ type: "uint256"
1682
+ },
1683
+ {
1684
+ internalType: "uint256",
1685
+ name: "tokenId",
1686
+ type: "uint256"
1687
+ }
1688
+ ],
1689
+ name: "ERC1155InsufficientBalance",
1690
+ type: "error"
1691
+ },
1692
+ {
1693
+ inputs: [
1694
+ {
1695
+ internalType: "address",
1696
+ name: "approver",
1697
+ type: "address"
1698
+ }
1699
+ ],
1700
+ name: "ERC1155InvalidApprover",
1701
+ type: "error"
1702
+ },
1703
+ {
1704
+ inputs: [
1705
+ {
1706
+ internalType: "uint256",
1707
+ name: "idsLength",
1708
+ type: "uint256"
1709
+ },
1710
+ {
1711
+ internalType: "uint256",
1712
+ name: "valuesLength",
1713
+ type: "uint256"
1714
+ }
1715
+ ],
1716
+ name: "ERC1155InvalidArrayLength",
1717
+ type: "error"
1718
+ },
1719
+ {
1720
+ inputs: [
1721
+ {
1722
+ internalType: "address",
1723
+ name: "operator",
1724
+ type: "address"
1725
+ }
1726
+ ],
1727
+ name: "ERC1155InvalidOperator",
1728
+ type: "error"
1729
+ },
1730
+ {
1731
+ inputs: [
1732
+ {
1733
+ internalType: "address",
1734
+ name: "receiver",
1735
+ type: "address"
1736
+ }
1737
+ ],
1738
+ name: "ERC1155InvalidReceiver",
1739
+ type: "error"
1740
+ },
1741
+ {
1742
+ inputs: [
1743
+ {
1744
+ internalType: "address",
1745
+ name: "sender",
1746
+ type: "address"
1747
+ }
1748
+ ],
1749
+ name: "ERC1155InvalidSender",
1750
+ type: "error"
1751
+ },
1752
+ {
1753
+ inputs: [
1754
+ {
1755
+ internalType: "address",
1756
+ name: "operator",
1757
+ type: "address"
1758
+ },
1759
+ {
1760
+ internalType: "address",
1761
+ name: "owner",
1762
+ type: "address"
1763
+ }
1764
+ ],
1765
+ name: "ERC1155MissingApprovalForAll",
1766
+ type: "error"
1767
+ },
1768
+ {
1769
+ anonymous: false,
1770
+ inputs: [
1771
+ {
1772
+ indexed: true,
1773
+ internalType: "address",
1774
+ name: "account",
1775
+ type: "address"
1776
+ },
1777
+ {
1778
+ indexed: true,
1779
+ internalType: "address",
1780
+ name: "operator",
1781
+ type: "address"
1782
+ },
1783
+ {
1784
+ indexed: false,
1785
+ internalType: "bool",
1786
+ name: "approved",
1787
+ type: "bool"
1788
+ }
1789
+ ],
1790
+ name: "ApprovalForAll",
1791
+ type: "event"
1792
+ },
1793
+ {
1794
+ anonymous: false,
1795
+ inputs: [
1796
+ {
1797
+ indexed: true,
1798
+ internalType: "address",
1799
+ name: "operator",
1800
+ type: "address"
1801
+ },
1802
+ {
1803
+ indexed: true,
1804
+ internalType: "address",
1805
+ name: "from",
1806
+ type: "address"
1807
+ },
1808
+ {
1809
+ indexed: true,
1810
+ internalType: "address",
1811
+ name: "to",
1812
+ type: "address"
1813
+ },
1814
+ {
1815
+ indexed: false,
1816
+ internalType: "uint256[]",
1817
+ name: "ids",
1818
+ type: "uint256[]"
1819
+ },
1820
+ {
1821
+ indexed: false,
1822
+ internalType: "uint256[]",
1823
+ name: "values",
1824
+ type: "uint256[]"
1825
+ }
1826
+ ],
1827
+ name: "TransferBatch",
1828
+ type: "event"
1829
+ },
1830
+ {
1831
+ anonymous: false,
1832
+ inputs: [
1833
+ {
1834
+ indexed: true,
1835
+ internalType: "address",
1836
+ name: "operator",
1837
+ type: "address"
1838
+ },
1839
+ {
1840
+ indexed: true,
1841
+ internalType: "address",
1842
+ name: "from",
1843
+ type: "address"
1844
+ },
1845
+ {
1846
+ indexed: true,
1847
+ internalType: "address",
1848
+ name: "to",
1849
+ type: "address"
1850
+ },
1851
+ {
1852
+ indexed: false,
1853
+ internalType: "uint256",
1854
+ name: "id",
1855
+ type: "uint256"
1856
+ },
1857
+ {
1858
+ indexed: false,
1859
+ internalType: "uint256",
1860
+ name: "value",
1861
+ type: "uint256"
1862
+ }
1863
+ ],
1864
+ name: "TransferSingle",
1865
+ type: "event"
1866
+ },
1867
+ {
1868
+ anonymous: false,
1869
+ inputs: [
1870
+ {
1871
+ indexed: false,
1872
+ internalType: "string",
1873
+ name: "value",
1874
+ type: "string"
1875
+ },
1876
+ {
1877
+ indexed: true,
1878
+ internalType: "uint256",
1879
+ name: "id",
1880
+ type: "uint256"
1881
+ }
1882
+ ],
1883
+ name: "URI",
1884
+ type: "event"
1885
+ },
1886
+ {
1887
+ inputs: [
1888
+ {
1889
+ internalType: "address",
1890
+ name: "account",
1891
+ type: "address"
1892
+ },
1893
+ {
1894
+ internalType: "uint256",
1895
+ name: "id",
1896
+ type: "uint256"
1897
+ }
1898
+ ],
1899
+ name: "balanceOf",
1900
+ outputs: [
1901
+ {
1902
+ internalType: "uint256",
1903
+ name: "",
1904
+ type: "uint256"
1905
+ }
1906
+ ],
1907
+ stateMutability: "view",
1908
+ type: "function"
1909
+ },
1910
+ {
1911
+ inputs: [
1912
+ {
1913
+ internalType: "address[]",
1914
+ name: "accounts",
1915
+ type: "address[]"
1916
+ },
1917
+ {
1918
+ internalType: "uint256[]",
1919
+ name: "ids",
1920
+ type: "uint256[]"
1921
+ }
1922
+ ],
1923
+ name: "balanceOfBatch",
1924
+ outputs: [
1925
+ {
1926
+ internalType: "uint256[]",
1927
+ name: "",
1928
+ type: "uint256[]"
1929
+ }
1930
+ ],
1931
+ stateMutability: "view",
1932
+ type: "function"
1933
+ },
1934
+ {
1935
+ inputs: [
1936
+ {
1937
+ internalType: "address",
1938
+ name: "account",
1939
+ type: "address"
1940
+ },
1941
+ {
1942
+ internalType: "address",
1943
+ name: "operator",
1944
+ type: "address"
1945
+ }
1946
+ ],
1947
+ name: "isApprovedForAll",
1948
+ outputs: [
1949
+ {
1950
+ internalType: "bool",
1951
+ name: "",
1952
+ type: "bool"
1953
+ }
1954
+ ],
1955
+ stateMutability: "view",
1956
+ type: "function"
1957
+ },
1958
+ {
1959
+ inputs: [
1960
+ {
1961
+ internalType: "address",
1962
+ name: "from",
1963
+ type: "address"
1964
+ },
1965
+ {
1966
+ internalType: "address",
1967
+ name: "to",
1968
+ type: "address"
1969
+ },
1970
+ {
1971
+ internalType: "uint256[]",
1972
+ name: "ids",
1973
+ type: "uint256[]"
1974
+ },
1975
+ {
1976
+ internalType: "uint256[]",
1977
+ name: "values",
1978
+ type: "uint256[]"
1979
+ },
1980
+ {
1981
+ internalType: "bytes",
1982
+ name: "data",
1983
+ type: "bytes"
1984
+ }
1985
+ ],
1986
+ name: "safeBatchTransferFrom",
1987
+ outputs: [],
1988
+ stateMutability: "nonpayable",
1989
+ type: "function"
1990
+ },
1991
+ {
1992
+ inputs: [
1993
+ {
1994
+ internalType: "address",
1995
+ name: "from",
1996
+ type: "address"
1997
+ },
1998
+ {
1999
+ internalType: "address",
2000
+ name: "to",
2001
+ type: "address"
2002
+ },
2003
+ {
2004
+ internalType: "uint256",
2005
+ name: "id",
2006
+ type: "uint256"
2007
+ },
2008
+ {
2009
+ internalType: "uint256",
2010
+ name: "value",
2011
+ type: "uint256"
2012
+ },
2013
+ {
2014
+ internalType: "bytes",
2015
+ name: "data",
2016
+ type: "bytes"
2017
+ }
2018
+ ],
2019
+ name: "safeTransferFrom",
2020
+ outputs: [],
2021
+ stateMutability: "nonpayable",
2022
+ type: "function"
2023
+ },
2024
+ {
2025
+ inputs: [
2026
+ {
2027
+ internalType: "address",
2028
+ name: "operator",
2029
+ type: "address"
2030
+ },
2031
+ {
2032
+ internalType: "bool",
2033
+ name: "approved",
2034
+ type: "bool"
2035
+ }
2036
+ ],
2037
+ name: "setApprovalForAll",
2038
+ outputs: [],
2039
+ stateMutability: "nonpayable",
2040
+ type: "function"
2041
+ },
2042
+ {
2043
+ inputs: [
2044
+ {
2045
+ internalType: "bytes4",
2046
+ name: "interfaceId",
2047
+ type: "bytes4"
2048
+ }
2049
+ ],
2050
+ name: "supportsInterface",
2051
+ outputs: [
2052
+ {
2053
+ internalType: "bool",
2054
+ name: "",
2055
+ type: "bool"
2056
+ }
2057
+ ],
2058
+ stateMutability: "view",
2059
+ type: "function"
2060
+ },
2061
+ {
2062
+ inputs: [
2063
+ {
2064
+ internalType: "uint256",
2065
+ name: "",
2066
+ type: "uint256"
2067
+ }
2068
+ ],
2069
+ name: "uri",
2070
+ outputs: [
2071
+ {
2072
+ internalType: "string",
2073
+ name: "",
2074
+ type: "string"
2075
+ }
2076
+ ],
2077
+ stateMutability: "view",
2078
+ type: "function"
1512
2079
  }
1513
- };
1514
-
1515
- // node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/Withdrawal.js
1516
- function toRpc(withdrawal) {
1517
- return {
1518
- address: withdrawal.address,
1519
- amount: fromNumber(withdrawal.amount),
1520
- index: fromNumber(withdrawal.index),
1521
- validatorIndex: fromNumber(withdrawal.validatorIndex)
1522
- };
1523
- }
1524
-
1525
- // node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/BlockOverrides.js
1526
- function toRpc2(blockOverrides) {
1527
- return {
1528
- ...typeof blockOverrides.baseFeePerGas === "bigint" && {
1529
- baseFeePerGas: fromNumber(blockOverrides.baseFeePerGas)
1530
- },
1531
- ...typeof blockOverrides.blobBaseFee === "bigint" && {
1532
- blobBaseFee: fromNumber(blockOverrides.blobBaseFee)
1533
- },
1534
- ...typeof blockOverrides.feeRecipient === "string" && {
1535
- feeRecipient: blockOverrides.feeRecipient
1536
- },
1537
- ...typeof blockOverrides.gasLimit === "bigint" && {
1538
- gasLimit: fromNumber(blockOverrides.gasLimit)
1539
- },
1540
- ...typeof blockOverrides.number === "bigint" && {
1541
- number: fromNumber(blockOverrides.number)
1542
- },
1543
- ...typeof blockOverrides.prevRandao === "bigint" && {
1544
- prevRandao: fromNumber(blockOverrides.prevRandao)
1545
- },
1546
- ...typeof blockOverrides.time === "bigint" && {
1547
- time: fromNumber(blockOverrides.time)
1548
- },
1549
- ...blockOverrides.withdrawals && {
1550
- withdrawals: blockOverrides.withdrawals.map(toRpc)
1551
- }
1552
- };
1553
- }
1554
-
1555
- // node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/constants/abis.js
1556
- var multicall3Abi = [
2080
+ ];
2081
+ var erc721Abi = [
2082
+ {
2083
+ type: "event",
2084
+ name: "Approval",
2085
+ inputs: [
2086
+ {
2087
+ indexed: true,
2088
+ name: "owner",
2089
+ type: "address"
2090
+ },
2091
+ {
2092
+ indexed: true,
2093
+ name: "spender",
2094
+ type: "address"
2095
+ },
2096
+ {
2097
+ indexed: true,
2098
+ name: "tokenId",
2099
+ type: "uint256"
2100
+ }
2101
+ ]
2102
+ },
2103
+ {
2104
+ type: "event",
2105
+ name: "ApprovalForAll",
2106
+ inputs: [
2107
+ {
2108
+ indexed: true,
2109
+ name: "owner",
2110
+ type: "address"
2111
+ },
2112
+ {
2113
+ indexed: true,
2114
+ name: "operator",
2115
+ type: "address"
2116
+ },
2117
+ {
2118
+ indexed: false,
2119
+ name: "approved",
2120
+ type: "bool"
2121
+ }
2122
+ ]
2123
+ },
1557
2124
  {
2125
+ type: "event",
2126
+ name: "Transfer",
1558
2127
  inputs: [
1559
2128
  {
1560
- components: [
1561
- {
1562
- name: "target",
1563
- type: "address"
1564
- },
1565
- {
1566
- name: "allowFailure",
1567
- type: "bool"
1568
- },
1569
- {
1570
- name: "callData",
1571
- type: "bytes"
1572
- }
1573
- ],
1574
- name: "calls",
1575
- type: "tuple[]"
2129
+ indexed: true,
2130
+ name: "from",
2131
+ type: "address"
2132
+ },
2133
+ {
2134
+ indexed: true,
2135
+ name: "to",
2136
+ type: "address"
2137
+ },
2138
+ {
2139
+ indexed: true,
2140
+ name: "tokenId",
2141
+ type: "uint256"
1576
2142
  }
1577
- ],
1578
- name: "aggregate3",
1579
- outputs: [
2143
+ ]
2144
+ },
2145
+ {
2146
+ type: "function",
2147
+ name: "approve",
2148
+ stateMutability: "payable",
2149
+ inputs: [
1580
2150
  {
1581
- components: [
1582
- {
1583
- name: "success",
1584
- type: "bool"
1585
- },
1586
- {
1587
- name: "returnData",
1588
- type: "bytes"
1589
- }
1590
- ],
1591
- name: "returnData",
1592
- type: "tuple[]"
2151
+ name: "spender",
2152
+ type: "address"
2153
+ },
2154
+ {
2155
+ name: "tokenId",
2156
+ type: "uint256"
1593
2157
  }
1594
2158
  ],
1595
- stateMutability: "view",
1596
- type: "function"
2159
+ outputs: []
1597
2160
  },
1598
2161
  {
2162
+ type: "function",
2163
+ name: "balanceOf",
2164
+ stateMutability: "view",
1599
2165
  inputs: [
1600
2166
  {
1601
- name: "addr",
2167
+ name: "account",
1602
2168
  type: "address"
1603
2169
  }
1604
2170
  ],
1605
- name: "getEthBalance",
1606
2171
  outputs: [
1607
2172
  {
1608
- name: "balance",
2173
+ type: "uint256"
2174
+ }
2175
+ ]
2176
+ },
2177
+ {
2178
+ type: "function",
2179
+ name: "getApproved",
2180
+ stateMutability: "view",
2181
+ inputs: [
2182
+ {
2183
+ name: "tokenId",
1609
2184
  type: "uint256"
1610
2185
  }
1611
2186
  ],
2187
+ outputs: [
2188
+ {
2189
+ type: "address"
2190
+ }
2191
+ ]
2192
+ },
2193
+ {
2194
+ type: "function",
2195
+ name: "isApprovedForAll",
1612
2196
  stateMutability: "view",
1613
- type: "function"
2197
+ inputs: [
2198
+ {
2199
+ name: "owner",
2200
+ type: "address"
2201
+ },
2202
+ {
2203
+ name: "operator",
2204
+ type: "address"
2205
+ }
2206
+ ],
2207
+ outputs: [
2208
+ {
2209
+ type: "bool"
2210
+ }
2211
+ ]
1614
2212
  },
1615
2213
  {
2214
+ type: "function",
2215
+ name: "name",
2216
+ stateMutability: "view",
1616
2217
  inputs: [],
1617
- name: "getCurrentBlockTimestamp",
1618
2218
  outputs: [
1619
2219
  {
1620
- internalType: "uint256",
1621
- name: "timestamp",
2220
+ type: "string"
2221
+ }
2222
+ ]
2223
+ },
2224
+ {
2225
+ type: "function",
2226
+ name: "ownerOf",
2227
+ stateMutability: "view",
2228
+ inputs: [
2229
+ {
2230
+ name: "tokenId",
2231
+ type: "uint256"
2232
+ }
2233
+ ],
2234
+ outputs: [
2235
+ {
2236
+ name: "owner",
2237
+ type: "address"
2238
+ }
2239
+ ]
2240
+ },
2241
+ {
2242
+ type: "function",
2243
+ name: "safeTransferFrom",
2244
+ stateMutability: "payable",
2245
+ inputs: [
2246
+ {
2247
+ name: "from",
2248
+ type: "address"
2249
+ },
2250
+ {
2251
+ name: "to",
2252
+ type: "address"
2253
+ },
2254
+ {
2255
+ name: "tokenId",
2256
+ type: "uint256"
2257
+ }
2258
+ ],
2259
+ outputs: []
2260
+ },
2261
+ {
2262
+ type: "function",
2263
+ name: "safeTransferFrom",
2264
+ stateMutability: "nonpayable",
2265
+ inputs: [
2266
+ {
2267
+ name: "from",
2268
+ type: "address"
2269
+ },
2270
+ {
2271
+ name: "to",
2272
+ type: "address"
2273
+ },
2274
+ {
2275
+ name: "id",
1622
2276
  type: "uint256"
2277
+ },
2278
+ {
2279
+ name: "data",
2280
+ type: "bytes"
2281
+ }
2282
+ ],
2283
+ outputs: []
2284
+ },
2285
+ {
2286
+ type: "function",
2287
+ name: "setApprovalForAll",
2288
+ stateMutability: "nonpayable",
2289
+ inputs: [
2290
+ {
2291
+ name: "operator",
2292
+ type: "address"
2293
+ },
2294
+ {
2295
+ name: "approved",
2296
+ type: "bool"
1623
2297
  }
1624
2298
  ],
2299
+ outputs: []
2300
+ },
2301
+ {
2302
+ type: "function",
2303
+ name: "symbol",
1625
2304
  stateMutability: "view",
1626
- type: "function"
1627
- }
1628
- ];
1629
- var batchGatewayAbi = [
2305
+ inputs: [],
2306
+ outputs: [
2307
+ {
2308
+ type: "string"
2309
+ }
2310
+ ]
2311
+ },
1630
2312
  {
1631
- name: "query",
1632
2313
  type: "function",
2314
+ name: "tokenByIndex",
1633
2315
  stateMutability: "view",
1634
2316
  inputs: [
1635
2317
  {
1636
- type: "tuple[]",
1637
- name: "queries",
1638
- components: [
1639
- {
1640
- type: "address",
1641
- name: "sender"
1642
- },
1643
- {
1644
- type: "string[]",
1645
- name: "urls"
1646
- },
1647
- {
1648
- type: "bytes",
1649
- name: "data"
1650
- }
1651
- ]
2318
+ name: "index",
2319
+ type: "uint256"
1652
2320
  }
1653
2321
  ],
1654
2322
  outputs: [
1655
2323
  {
1656
- type: "bool[]",
1657
- name: "failures"
2324
+ type: "uint256"
2325
+ }
2326
+ ]
2327
+ },
2328
+ {
2329
+ type: "function",
2330
+ name: "tokenByIndex",
2331
+ stateMutability: "view",
2332
+ inputs: [
2333
+ {
2334
+ name: "owner",
2335
+ type: "address"
1658
2336
  },
1659
2337
  {
1660
- type: "bytes[]",
1661
- name: "responses"
2338
+ name: "index",
2339
+ type: "uint256"
2340
+ }
2341
+ ],
2342
+ outputs: [
2343
+ {
2344
+ name: "tokenId",
2345
+ type: "uint256"
1662
2346
  }
1663
2347
  ]
1664
2348
  },
1665
2349
  {
1666
- name: "HttpError",
1667
- type: "error",
2350
+ type: "function",
2351
+ name: "tokenURI",
2352
+ stateMutability: "view",
2353
+ inputs: [
2354
+ {
2355
+ name: "tokenId",
2356
+ type: "uint256"
2357
+ }
2358
+ ],
2359
+ outputs: [
2360
+ {
2361
+ type: "string"
2362
+ }
2363
+ ]
2364
+ },
2365
+ {
2366
+ type: "function",
2367
+ name: "totalSupply",
2368
+ stateMutability: "view",
2369
+ inputs: [],
2370
+ outputs: [
2371
+ {
2372
+ type: "uint256"
2373
+ }
2374
+ ]
2375
+ },
2376
+ {
2377
+ type: "function",
2378
+ name: "transferFrom",
2379
+ stateMutability: "payable",
1668
2380
  inputs: [
1669
2381
  {
1670
- type: "uint16",
1671
- name: "status"
2382
+ name: "sender",
2383
+ type: "address"
1672
2384
  },
1673
2385
  {
1674
- type: "string",
1675
- name: "message"
2386
+ name: "recipient",
2387
+ type: "address"
2388
+ },
2389
+ {
2390
+ name: "tokenId",
2391
+ type: "uint256"
1676
2392
  }
1677
- ]
2393
+ ],
2394
+ outputs: []
1678
2395
  }
1679
2396
  ];
1680
- var universalResolverErrors = [
2397
+ var erc4626Abi = [
1681
2398
  {
2399
+ anonymous: false,
1682
2400
  inputs: [
1683
2401
  {
1684
- name: "dns",
1685
- type: "bytes"
2402
+ indexed: true,
2403
+ name: "owner",
2404
+ type: "address"
2405
+ },
2406
+ {
2407
+ indexed: true,
2408
+ name: "spender",
2409
+ type: "address"
2410
+ },
2411
+ {
2412
+ indexed: false,
2413
+ name: "value",
2414
+ type: "uint256"
1686
2415
  }
1687
2416
  ],
1688
- name: "DNSDecodingFailed",
1689
- type: "error"
2417
+ name: "Approval",
2418
+ type: "event"
1690
2419
  },
1691
2420
  {
2421
+ anonymous: false,
1692
2422
  inputs: [
1693
2423
  {
1694
- name: "ens",
1695
- type: "string"
2424
+ indexed: true,
2425
+ name: "sender",
2426
+ type: "address"
2427
+ },
2428
+ {
2429
+ indexed: true,
2430
+ name: "receiver",
2431
+ type: "address"
2432
+ },
2433
+ {
2434
+ indexed: false,
2435
+ name: "assets",
2436
+ type: "uint256"
2437
+ },
2438
+ {
2439
+ indexed: false,
2440
+ name: "shares",
2441
+ type: "uint256"
1696
2442
  }
1697
2443
  ],
1698
- name: "DNSEncodingFailed",
1699
- type: "error"
1700
- },
1701
- {
1702
- inputs: [],
1703
- name: "EmptyAddress",
1704
- type: "error"
2444
+ name: "Deposit",
2445
+ type: "event"
1705
2446
  },
1706
2447
  {
2448
+ anonymous: false,
1707
2449
  inputs: [
1708
2450
  {
1709
- name: "status",
1710
- type: "uint16"
2451
+ indexed: true,
2452
+ name: "from",
2453
+ type: "address"
1711
2454
  },
1712
2455
  {
1713
- name: "message",
1714
- type: "string"
2456
+ indexed: true,
2457
+ name: "to",
2458
+ type: "address"
2459
+ },
2460
+ {
2461
+ indexed: false,
2462
+ name: "value",
2463
+ type: "uint256"
1715
2464
  }
1716
2465
  ],
1717
- name: "HttpError",
1718
- type: "error"
1719
- },
1720
- {
1721
- inputs: [],
1722
- name: "InvalidBatchGatewayResponse",
1723
- type: "error"
2466
+ name: "Transfer",
2467
+ type: "event"
1724
2468
  },
1725
2469
  {
2470
+ anonymous: false,
1726
2471
  inputs: [
1727
2472
  {
1728
- name: "errorData",
1729
- type: "bytes"
2473
+ indexed: true,
2474
+ name: "sender",
2475
+ type: "address"
2476
+ },
2477
+ {
2478
+ indexed: true,
2479
+ name: "receiver",
2480
+ type: "address"
2481
+ },
2482
+ {
2483
+ indexed: true,
2484
+ name: "owner",
2485
+ type: "address"
2486
+ },
2487
+ {
2488
+ indexed: false,
2489
+ name: "assets",
2490
+ type: "uint256"
2491
+ },
2492
+ {
2493
+ indexed: false,
2494
+ name: "shares",
2495
+ type: "uint256"
1730
2496
  }
1731
2497
  ],
1732
- name: "ResolverError",
1733
- type: "error"
2498
+ name: "Withdraw",
2499
+ type: "event"
1734
2500
  },
1735
2501
  {
1736
2502
  inputs: [
1737
2503
  {
1738
- name: "name",
1739
- type: "bytes"
2504
+ name: "owner",
2505
+ type: "address"
1740
2506
  },
1741
2507
  {
1742
- name: "resolver",
2508
+ name: "spender",
1743
2509
  type: "address"
1744
2510
  }
1745
2511
  ],
1746
- name: "ResolverNotContract",
1747
- type: "error"
1748
- },
1749
- {
1750
- inputs: [
2512
+ name: "allowance",
2513
+ outputs: [
1751
2514
  {
1752
- name: "name",
1753
- type: "bytes"
2515
+ type: "uint256"
1754
2516
  }
1755
2517
  ],
1756
- name: "ResolverNotFound",
1757
- type: "error"
2518
+ stateMutability: "view",
2519
+ type: "function"
1758
2520
  },
1759
2521
  {
1760
2522
  inputs: [
1761
2523
  {
1762
- name: "primary",
1763
- type: "string"
2524
+ name: "spender",
2525
+ type: "address"
1764
2526
  },
1765
2527
  {
1766
- name: "primaryAddress",
1767
- type: "bytes"
2528
+ name: "amount",
2529
+ type: "uint256"
1768
2530
  }
1769
2531
  ],
1770
- name: "ReverseAddressMismatch",
1771
- type: "error"
2532
+ name: "approve",
2533
+ outputs: [
2534
+ {
2535
+ type: "bool"
2536
+ }
2537
+ ],
2538
+ stateMutability: "nonpayable",
2539
+ type: "function"
1772
2540
  },
1773
2541
  {
1774
- inputs: [
2542
+ inputs: [],
2543
+ name: "asset",
2544
+ outputs: [
1775
2545
  {
1776
- internalType: "bytes4",
1777
- name: "selector",
1778
- type: "bytes4"
2546
+ name: "assetTokenAddress",
2547
+ type: "address"
1779
2548
  }
1780
2549
  ],
1781
- name: "UnsupportedResolverProfile",
1782
- type: "error"
1783
- }
1784
- ];
1785
- var universalResolverResolveAbi = [
1786
- ...universalResolverErrors,
1787
- {
1788
- name: "resolveWithGateways",
1789
- type: "function",
1790
2550
  stateMutability: "view",
2551
+ type: "function"
2552
+ },
2553
+ {
1791
2554
  inputs: [
1792
- { name: "name", type: "bytes" },
1793
- { name: "data", type: "bytes" },
1794
- { name: "gateways", type: "string[]" }
2555
+ {
2556
+ name: "account",
2557
+ type: "address"
2558
+ }
1795
2559
  ],
2560
+ name: "balanceOf",
1796
2561
  outputs: [
1797
- { name: "", type: "bytes" },
1798
- { name: "address", type: "address" }
1799
- ]
1800
- }
1801
- ];
1802
- var universalResolverReverseAbi = [
1803
- ...universalResolverErrors,
1804
- {
1805
- name: "reverseWithGateways",
1806
- type: "function",
2562
+ {
2563
+ type: "uint256"
2564
+ }
2565
+ ],
1807
2566
  stateMutability: "view",
2567
+ type: "function"
2568
+ },
2569
+ {
1808
2570
  inputs: [
1809
- { type: "bytes", name: "reverseName" },
1810
- { type: "uint256", name: "coinType" },
1811
- { type: "string[]", name: "gateways" }
2571
+ {
2572
+ name: "shares",
2573
+ type: "uint256"
2574
+ }
1812
2575
  ],
2576
+ name: "convertToAssets",
1813
2577
  outputs: [
1814
- { type: "string", name: "resolvedName" },
1815
- { type: "address", name: "resolver" },
1816
- { type: "address", name: "reverseResolver" }
1817
- ]
1818
- }
1819
- ];
1820
- var textResolverAbi = [
1821
- {
1822
- name: "text",
1823
- type: "function",
1824
- stateMutability: "view",
1825
- inputs: [
1826
- { name: "name", type: "bytes32" },
1827
- { name: "key", type: "string" }
2578
+ {
2579
+ name: "assets",
2580
+ type: "uint256"
2581
+ }
1828
2582
  ],
1829
- outputs: [{ name: "", type: "string" }]
1830
- }
1831
- ];
1832
- var addressResolverAbi = [
1833
- {
1834
- name: "addr",
1835
- type: "function",
1836
2583
  stateMutability: "view",
1837
- inputs: [{ name: "name", type: "bytes32" }],
1838
- outputs: [{ name: "", type: "address" }]
2584
+ type: "function"
1839
2585
  },
1840
2586
  {
1841
- name: "addr",
1842
- type: "function",
1843
- stateMutability: "view",
1844
2587
  inputs: [
1845
- { name: "name", type: "bytes32" },
1846
- { name: "coinType", type: "uint256" }
2588
+ {
2589
+ name: "assets",
2590
+ type: "uint256"
2591
+ }
1847
2592
  ],
1848
- outputs: [{ name: "", type: "bytes" }]
1849
- }
1850
- ];
1851
- var erc1271Abi = [
1852
- {
1853
- name: "isValidSignature",
1854
- type: "function",
1855
- stateMutability: "view",
1856
- inputs: [
1857
- { name: "hash", type: "bytes32" },
1858
- { name: "signature", type: "bytes" }
2593
+ name: "convertToShares",
2594
+ outputs: [
2595
+ {
2596
+ name: "shares",
2597
+ type: "uint256"
2598
+ }
1859
2599
  ],
1860
- outputs: [{ name: "", type: "bytes4" }]
1861
- }
1862
- ];
1863
- var erc6492SignatureValidatorAbi = [
2600
+ stateMutability: "view",
2601
+ type: "function"
2602
+ },
1864
2603
  {
1865
2604
  inputs: [
1866
2605
  {
1867
- name: "_signer",
1868
- type: "address"
1869
- },
1870
- {
1871
- name: "_hash",
1872
- type: "bytes32"
2606
+ name: "assets",
2607
+ type: "uint256"
1873
2608
  },
1874
2609
  {
1875
- name: "_signature",
1876
- type: "bytes"
2610
+ name: "receiver",
2611
+ type: "address"
2612
+ }
2613
+ ],
2614
+ name: "deposit",
2615
+ outputs: [
2616
+ {
2617
+ name: "shares",
2618
+ type: "uint256"
1877
2619
  }
1878
2620
  ],
1879
2621
  stateMutability: "nonpayable",
1880
- type: "constructor"
2622
+ type: "function"
1881
2623
  },
1882
2624
  {
1883
2625
  inputs: [
1884
2626
  {
1885
- name: "_signer",
2627
+ name: "caller",
1886
2628
  type: "address"
1887
- },
2629
+ }
2630
+ ],
2631
+ name: "maxDeposit",
2632
+ outputs: [
1888
2633
  {
1889
- name: "_hash",
1890
- type: "bytes32"
1891
- },
2634
+ name: "maxAssets",
2635
+ type: "uint256"
2636
+ }
2637
+ ],
2638
+ stateMutability: "view",
2639
+ type: "function"
2640
+ },
2641
+ {
2642
+ inputs: [
1892
2643
  {
1893
- name: "_signature",
1894
- type: "bytes"
2644
+ name: "caller",
2645
+ type: "address"
1895
2646
  }
1896
2647
  ],
2648
+ name: "maxMint",
1897
2649
  outputs: [
1898
2650
  {
1899
- type: "bool"
2651
+ name: "maxShares",
2652
+ type: "uint256"
1900
2653
  }
1901
2654
  ],
1902
- stateMutability: "nonpayable",
1903
- type: "function",
1904
- name: "isValidSig"
1905
- }
1906
- ];
1907
- var erc20Abi = [
2655
+ stateMutability: "view",
2656
+ type: "function"
2657
+ },
1908
2658
  {
1909
- type: "event",
1910
- name: "Approval",
1911
2659
  inputs: [
1912
2660
  {
1913
- indexed: true,
1914
2661
  name: "owner",
1915
2662
  type: "address"
1916
- },
1917
- {
1918
- indexed: true,
1919
- name: "spender",
1920
- type: "address"
1921
- },
2663
+ }
2664
+ ],
2665
+ name: "maxRedeem",
2666
+ outputs: [
1922
2667
  {
1923
- indexed: false,
1924
- name: "value",
2668
+ name: "maxShares",
1925
2669
  type: "uint256"
1926
2670
  }
1927
- ]
2671
+ ],
2672
+ stateMutability: "view",
2673
+ type: "function"
1928
2674
  },
1929
2675
  {
1930
- type: "event",
1931
- name: "Transfer",
1932
2676
  inputs: [
1933
2677
  {
1934
- indexed: true,
1935
- name: "from",
1936
- type: "address"
1937
- },
1938
- {
1939
- indexed: true,
1940
- name: "to",
2678
+ name: "owner",
1941
2679
  type: "address"
1942
- },
2680
+ }
2681
+ ],
2682
+ name: "maxWithdraw",
2683
+ outputs: [
1943
2684
  {
1944
- indexed: false,
1945
- name: "value",
2685
+ name: "maxAssets",
1946
2686
  type: "uint256"
1947
2687
  }
1948
- ]
2688
+ ],
2689
+ stateMutability: "view",
2690
+ type: "function"
1949
2691
  },
1950
2692
  {
1951
- type: "function",
1952
- name: "allowance",
1953
- stateMutability: "view",
1954
2693
  inputs: [
1955
2694
  {
1956
- name: "owner",
1957
- type: "address"
2695
+ name: "shares",
2696
+ type: "uint256"
1958
2697
  },
1959
2698
  {
1960
- name: "spender",
2699
+ name: "receiver",
1961
2700
  type: "address"
1962
2701
  }
1963
2702
  ],
2703
+ name: "mint",
1964
2704
  outputs: [
1965
2705
  {
2706
+ name: "assets",
1966
2707
  type: "uint256"
1967
2708
  }
1968
- ]
2709
+ ],
2710
+ stateMutability: "nonpayable",
2711
+ type: "function"
1969
2712
  },
1970
2713
  {
1971
- type: "function",
1972
- name: "approve",
1973
- stateMutability: "nonpayable",
1974
2714
  inputs: [
1975
2715
  {
1976
- name: "spender",
1977
- type: "address"
1978
- },
1979
- {
1980
- name: "amount",
2716
+ name: "assets",
1981
2717
  type: "uint256"
1982
2718
  }
1983
2719
  ],
2720
+ name: "previewDeposit",
1984
2721
  outputs: [
1985
2722
  {
1986
- type: "bool"
2723
+ name: "shares",
2724
+ type: "uint256"
1987
2725
  }
1988
- ]
2726
+ ],
2727
+ stateMutability: "view",
2728
+ type: "function"
1989
2729
  },
1990
2730
  {
1991
- type: "function",
1992
- name: "balanceOf",
1993
- stateMutability: "view",
1994
2731
  inputs: [
1995
2732
  {
1996
- name: "account",
1997
- type: "address"
2733
+ name: "shares",
2734
+ type: "uint256"
1998
2735
  }
1999
2736
  ],
2737
+ name: "previewMint",
2000
2738
  outputs: [
2001
2739
  {
2740
+ name: "assets",
2002
2741
  type: "uint256"
2003
2742
  }
2004
- ]
2743
+ ],
2744
+ stateMutability: "view",
2745
+ type: "function"
2005
2746
  },
2006
2747
  {
2007
- type: "function",
2008
- name: "decimals",
2009
- stateMutability: "view",
2010
- inputs: [],
2748
+ inputs: [
2749
+ {
2750
+ name: "shares",
2751
+ type: "uint256"
2752
+ }
2753
+ ],
2754
+ name: "previewRedeem",
2011
2755
  outputs: [
2012
2756
  {
2013
- type: "uint8"
2757
+ name: "assets",
2758
+ type: "uint256"
2014
2759
  }
2015
- ]
2760
+ ],
2761
+ stateMutability: "view",
2762
+ type: "function"
2016
2763
  },
2017
2764
  {
2018
- type: "function",
2019
- name: "name",
2765
+ inputs: [
2766
+ {
2767
+ name: "assets",
2768
+ type: "uint256"
2769
+ }
2770
+ ],
2771
+ name: "previewWithdraw",
2772
+ outputs: [
2773
+ {
2774
+ name: "shares",
2775
+ type: "uint256"
2776
+ }
2777
+ ],
2020
2778
  stateMutability: "view",
2021
- inputs: [],
2779
+ type: "function"
2780
+ },
2781
+ {
2782
+ inputs: [
2783
+ {
2784
+ name: "shares",
2785
+ type: "uint256"
2786
+ },
2787
+ {
2788
+ name: "receiver",
2789
+ type: "address"
2790
+ },
2791
+ {
2792
+ name: "owner",
2793
+ type: "address"
2794
+ }
2795
+ ],
2796
+ name: "redeem",
2022
2797
  outputs: [
2023
2798
  {
2024
- type: "string"
2799
+ name: "assets",
2800
+ type: "uint256"
2025
2801
  }
2026
- ]
2802
+ ],
2803
+ stateMutability: "nonpayable",
2804
+ type: "function"
2027
2805
  },
2028
2806
  {
2029
- type: "function",
2030
- name: "symbol",
2031
- stateMutability: "view",
2032
2807
  inputs: [],
2808
+ name: "totalAssets",
2033
2809
  outputs: [
2034
2810
  {
2035
- type: "string"
2811
+ name: "totalManagedAssets",
2812
+ type: "uint256"
2036
2813
  }
2037
- ]
2814
+ ],
2815
+ stateMutability: "view",
2816
+ type: "function"
2038
2817
  },
2039
2818
  {
2040
- type: "function",
2041
- name: "totalSupply",
2042
- stateMutability: "view",
2043
2819
  inputs: [],
2820
+ name: "totalSupply",
2044
2821
  outputs: [
2045
2822
  {
2046
2823
  type: "uint256"
2047
2824
  }
2048
- ]
2825
+ ],
2826
+ stateMutability: "view",
2827
+ type: "function"
2049
2828
  },
2050
2829
  {
2051
- type: "function",
2052
- name: "transfer",
2053
- stateMutability: "nonpayable",
2054
2830
  inputs: [
2055
2831
  {
2056
- name: "recipient",
2832
+ name: "to",
2057
2833
  type: "address"
2058
2834
  },
2059
2835
  {
@@ -2061,23 +2837,23 @@ var erc20Abi = [
2061
2837
  type: "uint256"
2062
2838
  }
2063
2839
  ],
2840
+ name: "transfer",
2064
2841
  outputs: [
2065
2842
  {
2066
2843
  type: "bool"
2067
2844
  }
2068
- ]
2845
+ ],
2846
+ stateMutability: "nonpayable",
2847
+ type: "function"
2069
2848
  },
2070
2849
  {
2071
- type: "function",
2072
- name: "transferFrom",
2073
- stateMutability: "nonpayable",
2074
2850
  inputs: [
2075
2851
  {
2076
- name: "sender",
2852
+ name: "from",
2077
2853
  type: "address"
2078
2854
  },
2079
2855
  {
2080
- name: "recipient",
2856
+ name: "to",
2081
2857
  type: "address"
2082
2858
  },
2083
2859
  {
@@ -2085,11 +2861,39 @@ var erc20Abi = [
2085
2861
  type: "uint256"
2086
2862
  }
2087
2863
  ],
2864
+ name: "transferFrom",
2088
2865
  outputs: [
2089
2866
  {
2090
2867
  type: "bool"
2091
2868
  }
2092
- ]
2869
+ ],
2870
+ stateMutability: "nonpayable",
2871
+ type: "function"
2872
+ },
2873
+ {
2874
+ inputs: [
2875
+ {
2876
+ name: "assets",
2877
+ type: "uint256"
2878
+ },
2879
+ {
2880
+ name: "receiver",
2881
+ type: "address"
2882
+ },
2883
+ {
2884
+ name: "owner",
2885
+ type: "address"
2886
+ }
2887
+ ],
2888
+ name: "withdraw",
2889
+ outputs: [
2890
+ {
2891
+ name: "shares",
2892
+ type: "uint256"
2893
+ }
2894
+ ],
2895
+ stateMutability: "nonpayable",
2896
+ type: "function"
2093
2897
  }
2094
2898
  ];
2095
2899
 
@@ -2204,6 +3008,19 @@ function toSignatureHash(fn) {
2204
3008
  var toFunctionSelector = (fn) => slice(toSignatureHash(fn), 0, 4);
2205
3009
 
2206
3010
  // node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/encoding/fromBytes.js
3011
+ function fromBytes(bytes, toOrOpts) {
3012
+ const opts = typeof toOrOpts === "string" ? { to: toOrOpts } : toOrOpts;
3013
+ const to = opts.to;
3014
+ if (to === "number")
3015
+ return bytesToNumber(bytes, opts);
3016
+ if (to === "bigint")
3017
+ return bytesToBigInt(bytes, opts);
3018
+ if (to === "boolean")
3019
+ return bytesToBool(bytes, opts);
3020
+ if (to === "string")
3021
+ return bytesToString(bytes, opts);
3022
+ return bytesToHex(bytes, opts);
3023
+ }
2207
3024
  function bytesToBigInt(bytes, opts = {}) {
2208
3025
  if (typeof opts.size !== "undefined")
2209
3026
  assertSize(bytes, { size: opts.size });
@@ -2347,8 +3164,8 @@ function decodeBool(cursor) {
2347
3164
  return [bytesToBool(cursor.readBytes(32), { size: 32 }), 32];
2348
3165
  }
2349
3166
  function decodeBytes(cursor, param, { staticPosition }) {
2350
- const [_, size4] = param.type.split("bytes");
2351
- if (!size4) {
3167
+ const [_, size2] = param.type.split("bytes");
3168
+ if (!size2) {
2352
3169
  const offset = bytesToNumber(cursor.readBytes(32));
2353
3170
  cursor.setPosition(staticPosition + offset);
2354
3171
  const length = bytesToNumber(cursor.readBytes(32));
@@ -2360,15 +3177,15 @@ function decodeBytes(cursor, param, { staticPosition }) {
2360
3177
  cursor.setPosition(staticPosition + 32);
2361
3178
  return [bytesToHex(data), 32];
2362
3179
  }
2363
- const value = bytesToHex(cursor.readBytes(Number.parseInt(size4, 10), 32));
3180
+ const value = bytesToHex(cursor.readBytes(Number.parseInt(size2, 10), 32));
2364
3181
  return [value, 32];
2365
3182
  }
2366
3183
  function decodeNumber(cursor, param) {
2367
3184
  const signed = param.type.startsWith("int");
2368
- const size4 = Number.parseInt(param.type.split("int")[1] || "256", 10);
3185
+ const size2 = Number.parseInt(param.type.split("int")[1] || "256", 10);
2369
3186
  const value = cursor.readBytes(32);
2370
3187
  return [
2371
- size4 > 48 ? bytesToBigInt(value, { signed }) : bytesToNumber(value, { signed }),
3188
+ size2 > 48 ? bytesToBigInt(value, { signed }) : bytesToNumber(value, { signed }),
2372
3189
  32
2373
3190
  ];
2374
3191
  }
@@ -2975,18 +3792,6 @@ function isAddressEqual(a, b) {
2975
3792
  return a.toLowerCase() === b.toLowerCase();
2976
3793
  }
2977
3794
 
2978
- // node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/block/formatBlockParameter.js
2979
- function formatBlockParameter(parameters) {
2980
- const { blockHash, blockNumber, blockTag, requireCanonical } = parameters;
2981
- if (requireCanonical !== void 0 && !blockHash)
2982
- throw new BaseError("`requireCanonical` can only be provided when `blockHash` is set.");
2983
- if (blockHash)
2984
- return requireCanonical ? { blockHash, requireCanonical } : { blockHash };
2985
- if (typeof blockNumber === "bigint")
2986
- return numberToHex(blockNumber);
2987
- return blockTag ?? "latest";
2988
- }
2989
-
2990
3795
  // node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/chain/getChainContractAddress.js
2991
3796
  function getChainContractAddress({ blockNumber, chain, contract: name }) {
2992
3797
  const contract = chain?.contracts?.[name];
@@ -3051,9 +3856,9 @@ var HttpRequestError = class extends BaseError {
3051
3856
  }
3052
3857
  };
3053
3858
  var ResponseBodyTooLargeError = class extends BaseError {
3054
- constructor({ maxSize, size: size4 }) {
3859
+ constructor({ maxSize, size: size2 }) {
3055
3860
  super("HTTP response body exceeded the size limit.", {
3056
- metaMessages: [`Max: ${maxSize} bytes`, `Received: ${size4} bytes`],
3861
+ metaMessages: [`Max: ${maxSize} bytes`, `Received: ${size2} bytes`],
3057
3862
  name: "ResponseBodyTooLargeError"
3058
3863
  });
3059
3864
  Object.defineProperty(this, "maxSize", {
@@ -3069,7 +3874,27 @@ var ResponseBodyTooLargeError = class extends BaseError {
3069
3874
  value: void 0
3070
3875
  });
3071
3876
  this.maxSize = maxSize;
3072
- this.size = size4;
3877
+ this.size = size2;
3878
+ }
3879
+ };
3880
+ var WebSocketRequestError = class extends BaseError {
3881
+ constructor({ body, cause, details, url }) {
3882
+ super("WebSocket request failed.", {
3883
+ cause,
3884
+ details,
3885
+ metaMessages: [
3886
+ `URL: ${getUrl(url)}`,
3887
+ body && `Request body: ${stringify(body)}`
3888
+ ].filter(Boolean),
3889
+ name: "WebSocketRequestError"
3890
+ });
3891
+ Object.defineProperty(this, "url", {
3892
+ enumerable: true,
3893
+ configurable: true,
3894
+ writable: true,
3895
+ value: void 0
3896
+ });
3897
+ this.url = url;
3073
3898
  }
3074
3899
  };
3075
3900
  var RpcRequestError = class extends BaseError {
@@ -3103,6 +3928,21 @@ var RpcRequestError = class extends BaseError {
3103
3928
  this.url = url;
3104
3929
  }
3105
3930
  };
3931
+ var SocketClosedError = class extends BaseError {
3932
+ constructor({ url } = {}) {
3933
+ super("The socket has been closed.", {
3934
+ metaMessages: [url && `URL: ${getUrl(url)}`].filter(Boolean),
3935
+ name: "SocketClosedError"
3936
+ });
3937
+ Object.defineProperty(this, "url", {
3938
+ enumerable: true,
3939
+ configurable: true,
3940
+ writable: true,
3941
+ value: void 0
3942
+ });
3943
+ this.url = url;
3944
+ }
3945
+ };
3106
3946
  var TimeoutError = class extends BaseError {
3107
3947
  constructor({ body, url }) {
3108
3948
  super("The request took too long to respond.", {
@@ -3715,6 +4555,7 @@ function formatTransactionRequest(request, _) {
3715
4555
  rpcRequest.value = numberToHex(request.value);
3716
4556
  return rpcRequest;
3717
4557
  }
4558
+ var defineTransactionRequest = /* @__PURE__ */ defineFormatter("transactionRequest", formatTransactionRequest);
3718
4559
  function formatAuthorizationList(authorizationList) {
3719
4560
  return authorizationList.map((authorization) => ({
3720
4561
  address: authorization.address,
@@ -3955,7 +4796,7 @@ async function call(client, args) {
3955
4796
  if (isAbortError(err))
3956
4797
  throw err;
3957
4798
  const data2 = getRevertErrorData(err);
3958
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-FXWZDDF5.js");
4799
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-XR5NE5QK.js");
3959
4800
  if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
3960
4801
  return {
3961
4802
  data: await offchainLookup2(client, { data: data2, requestOptions, to })
@@ -4012,8 +4853,8 @@ async function scheduleMulticall(client, args) {
4012
4853
  id: `${client.uid}.${blockId}.${getRequestOptionsId(requestOptions)}${stateOverrideKey}`,
4013
4854
  wait,
4014
4855
  shouldSplitBatch(args2) {
4015
- const size4 = args2.reduce((size5, { data: data2 }) => size5 + (data2.length - 2), 0);
4016
- return size4 > batchSize * 2;
4856
+ const size2 = args2.reduce((size3, { data: data2 }) => size3 + (data2.length - 2), 0);
4857
+ return size2 > batchSize * 2;
4017
4858
  },
4018
4859
  fn: async (requests) => {
4019
4860
  const calls = requests.map((request) => ({
@@ -4365,26 +5206,59 @@ async function ccipRequest({ data, requestOptions, sender, urls }) {
4365
5206
  }
4366
5207
 
4367
5208
  export {
4368
- formatBlockParameter,
4369
5209
  formatAbiParameters,
4370
5210
  formatAbiItem2 as formatAbiItem,
5211
+ InvalidAbiItemError,
5212
+ UnknownTypeError,
5213
+ InvalidAbiParameterError,
5214
+ InvalidAbiParametersError,
5215
+ InvalidParameterError,
5216
+ SolidityProtectedKeywordError,
5217
+ InvalidModifierError,
5218
+ InvalidFunctionModifierError,
5219
+ InvalidAbiTypeParameterError,
5220
+ InvalidSignatureError,
5221
+ UnknownSignatureError,
5222
+ InvalidStructSignatureError,
5223
+ CircularReferenceError,
5224
+ InvalidParenthesisError,
5225
+ parseAbi,
4371
5226
  parseAbiItem,
5227
+ parseAbiParameter2 as parseAbiParameter,
4372
5228
  parseAbiParameters,
5229
+ toSignature,
5230
+ toSignatureHash,
4373
5231
  toEventSelector,
5232
+ toFunctionSelector,
4374
5233
  getAbiItem,
5234
+ prepareEncodeFunctionData,
4375
5235
  encodeFunctionData,
5236
+ solidityError,
5237
+ fromBytes,
5238
+ bytesToBigInt,
5239
+ bytesToBool,
5240
+ bytesToNumber,
5241
+ bytesToString,
4376
5242
  decodeAbiParameters,
5243
+ decodeErrorResult,
5244
+ AccountStateConflictError,
5245
+ StateAssignmentConflictError,
4377
5246
  getAbortError,
4378
5247
  isAbortError,
4379
5248
  CallExecutionError,
4380
5249
  ContractFunctionExecutionError,
4381
5250
  ContractFunctionRevertedError,
4382
5251
  ContractFunctionZeroDataError,
5252
+ CounterfactualDeploymentFailedError,
4383
5253
  RawContractError,
4384
5254
  HttpRequestError,
4385
5255
  ResponseBodyTooLargeError,
5256
+ WebSocketRequestError,
4386
5257
  RpcRequestError,
5258
+ SocketClosedError,
4387
5259
  TimeoutError,
5260
+ RpcError,
5261
+ ProviderRpcError,
4388
5262
  ParseRpcError,
4389
5263
  InvalidRequestRpcError,
4390
5264
  MethodNotFoundRpcError,
@@ -4415,40 +5289,16 @@ export {
4415
5289
  getNodeError,
4416
5290
  extract,
4417
5291
  defineFormatter,
5292
+ rpcTransactionType,
4418
5293
  formatTransactionRequest,
5294
+ defineTransactionRequest,
4419
5295
  serializeStateOverride,
4420
5296
  assertRequest,
4421
5297
  isAddressEqual,
4422
5298
  decodeFunctionResult,
4423
- BaseError3 as BaseError,
4424
- stringify2 as stringify,
4425
- from,
4426
- fromHex,
4427
- fromString,
4428
- size2 as size,
4429
- slice2 as slice,
4430
- toBigInt2 as toBigInt,
4431
- toBoolean,
4432
- toNumber2 as toNumber,
4433
- toString,
4434
- trimLeft,
4435
- validate,
4436
- concat2 as concat,
4437
- from2,
4438
- fromBoolean,
4439
- fromBytes,
4440
- fromNumber,
4441
- fromString2,
4442
- padLeft,
4443
- padRight,
4444
- slice3 as slice2,
4445
- size3 as size2,
4446
- trimLeft2,
4447
- toNumber as toNumber2,
4448
- validate2,
4449
- IntegerOutOfRangeError,
4450
5299
  toRpc2 as toRpc,
4451
5300
  multicall3Abi,
5301
+ batchGatewayAbi,
4452
5302
  universalResolverResolveAbi,
4453
5303
  universalResolverReverseAbi,
4454
5304
  textResolverAbi,
@@ -4456,7 +5306,12 @@ export {
4456
5306
  erc1271Abi,
4457
5307
  erc6492SignatureValidatorAbi,
4458
5308
  erc20Abi,
5309
+ erc20Abi_bytes32,
5310
+ erc1155Abi,
5311
+ erc721Abi,
5312
+ erc4626Abi,
4459
5313
  deploylessCallViaBytecodeBytecode,
5314
+ deploylessCallViaFactoryBytecode,
4460
5315
  erc6492SignatureValidatorByteCode,
4461
5316
  multicall3Bytecode,
4462
5317
  encodeDeployData,
@@ -4464,6 +5319,9 @@ export {
4464
5319
  getCallError,
4465
5320
  withResolvers,
4466
5321
  createBatchScheduler,
5322
+ decodeFunctionData,
5323
+ encodeErrorResult,
5324
+ encodeFunctionResult,
4467
5325
  localBatchGatewayUrl,
4468
5326
  offchainLookupSignature,
4469
5327
  offchainLookupAbiItem,
@@ -4471,4 +5329,4 @@ export {
4471
5329
  ccipRequest,
4472
5330
  call
4473
5331
  };
4474
- //# sourceMappingURL=chunk-WOHCAMDQ.js.map
5332
+ //# sourceMappingURL=chunk-ZMHYXMO6.js.map