viem 2.39.2 → 2.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/_cjs/accounts/mnemonicToAccount.js +3 -3
  3. package/_cjs/accounts/mnemonicToAccount.js.map +1 -1
  4. package/_cjs/actions/index.js +5 -3
  5. package/_cjs/actions/index.js.map +1 -1
  6. package/_cjs/actions/public/fillTransaction.js +118 -0
  7. package/_cjs/actions/public/fillTransaction.js.map +1 -0
  8. package/_cjs/actions/wallet/prepareTransactionRequest.js +45 -11
  9. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  10. package/_cjs/chains/definitions/etherlinkShadownetTestnet.js +24 -0
  11. package/_cjs/chains/definitions/etherlinkShadownetTestnet.js.map +1 -0
  12. package/_cjs/chains/definitions/monad.js +39 -0
  13. package/_cjs/chains/definitions/monad.js.map +1 -0
  14. package/_cjs/chains/index.js +15 -11
  15. package/_cjs/chains/index.js.map +1 -1
  16. package/_cjs/clients/decorators/public.js +2 -0
  17. package/_cjs/clients/decorators/public.js.map +1 -1
  18. package/_cjs/clients/decorators/wallet.js +2 -0
  19. package/_cjs/clients/decorators/wallet.js.map +1 -1
  20. package/_cjs/errors/request.js +28 -0
  21. package/_cjs/errors/request.js.map +1 -1
  22. package/_cjs/errors/version.js +1 -1
  23. package/_cjs/index.js.map +1 -1
  24. package/_cjs/utils/transaction/assertRequest.js +1 -6
  25. package/_cjs/utils/transaction/assertRequest.js.map +1 -1
  26. package/_esm/accounts/mnemonicToAccount.js +3 -3
  27. package/_esm/accounts/mnemonicToAccount.js.map +1 -1
  28. package/_esm/actions/index.js +1 -0
  29. package/_esm/actions/index.js.map +1 -1
  30. package/_esm/actions/public/fillTransaction.js +145 -0
  31. package/_esm/actions/public/fillTransaction.js.map +1 -0
  32. package/_esm/actions/wallet/prepareTransactionRequest.js +49 -11
  33. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  34. package/_esm/chains/definitions/etherlinkShadownetTestnet.js +21 -0
  35. package/_esm/chains/definitions/etherlinkShadownetTestnet.js.map +1 -0
  36. package/_esm/chains/definitions/monad.js +36 -0
  37. package/_esm/chains/definitions/monad.js.map +1 -0
  38. package/_esm/chains/index.js +2 -0
  39. package/_esm/chains/index.js.map +1 -1
  40. package/_esm/clients/decorators/public.js +2 -0
  41. package/_esm/clients/decorators/public.js.map +1 -1
  42. package/_esm/clients/decorators/wallet.js +2 -0
  43. package/_esm/clients/decorators/wallet.js.map +1 -1
  44. package/_esm/errors/request.js +28 -0
  45. package/_esm/errors/request.js.map +1 -1
  46. package/_esm/errors/version.js +1 -1
  47. package/_esm/index.js.map +1 -1
  48. package/_esm/utils/transaction/assertRequest.js +1 -6
  49. package/_esm/utils/transaction/assertRequest.js.map +1 -1
  50. package/_types/accounts/mnemonicToAccount.d.ts +4 -2
  51. package/_types/accounts/mnemonicToAccount.d.ts.map +1 -1
  52. package/_types/actions/index.d.ts +1 -0
  53. package/_types/actions/index.d.ts.map +1 -1
  54. package/_types/actions/public/fillTransaction.d.ts +49 -0
  55. package/_types/actions/public/fillTransaction.d.ts.map +1 -0
  56. package/_types/actions/wallet/prepareTransactionRequest.d.ts +1 -1
  57. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  58. package/_types/chains/definitions/etherlinkShadownetTestnet.d.ts +39 -0
  59. package/_types/chains/definitions/etherlinkShadownetTestnet.d.ts.map +1 -0
  60. package/_types/chains/definitions/monad.d.ts +42 -0
  61. package/_types/chains/definitions/monad.d.ts.map +1 -0
  62. package/_types/chains/index.d.ts +2 -0
  63. package/_types/chains/index.d.ts.map +1 -1
  64. package/_types/clients/decorators/public.d.ts +25 -0
  65. package/_types/clients/decorators/public.d.ts.map +1 -1
  66. package/_types/clients/decorators/wallet.d.ts +25 -0
  67. package/_types/clients/decorators/wallet.d.ts.map +1 -1
  68. package/_types/errors/request.d.ts +4 -0
  69. package/_types/errors/request.d.ts.map +1 -1
  70. package/_types/errors/version.d.ts +1 -1
  71. package/_types/index.d.ts +1 -0
  72. package/_types/index.d.ts.map +1 -1
  73. package/_types/types/eip1193.d.ts +30 -0
  74. package/_types/types/eip1193.d.ts.map +1 -1
  75. package/_types/utils/transaction/assertRequest.d.ts +1 -1
  76. package/_types/utils/transaction/assertRequest.d.ts.map +1 -1
  77. package/accounts/mnemonicToAccount.ts +6 -4
  78. package/actions/index.ts +6 -0
  79. package/actions/public/fillTransaction.ts +250 -0
  80. package/actions/wallet/prepareTransactionRequest.ts +76 -10
  81. package/chains/definitions/etherlinkShadownetTestnet.ts +21 -0
  82. package/chains/definitions/monad.ts +36 -0
  83. package/chains/index.ts +2 -0
  84. package/clients/decorators/public.ts +40 -0
  85. package/clients/decorators/wallet.ts +40 -0
  86. package/errors/request.ts +8 -1
  87. package/errors/version.ts +1 -1
  88. package/index.ts +5 -0
  89. package/package.json +1 -1
  90. package/types/eip1193.ts +30 -0
  91. package/utils/transaction/assertRequest.ts +2 -17
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # viem
2
2
 
3
+ ## 2.40.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#4098](https://github.com/wevm/viem/pull/4098) [`003b231361f223487aa3e6a67a1e5258e8fe758b`](https://github.com/wevm/viem/commit/003b231361f223487aa3e6a67a1e5258e8fe758b) Thanks [@jxom](https://github.com/jxom)! - Hooked up `eth_fillTransaction` routing to `prepareTransactionRequest`, to reduce the RPC calls required to prepare a local transaction from 3-4, to 1 (if `eth_fillTransaction` is supported by the execution node).
8
+
9
+ - [#4098](https://github.com/wevm/viem/pull/4098) [`003b231361f223487aa3e6a67a1e5258e8fe758b`](https://github.com/wevm/viem/commit/003b231361f223487aa3e6a67a1e5258e8fe758b) Thanks [@jxom](https://github.com/jxom)! - Added `fillTransaction` action for `eth_fillTransaction` support.
10
+
11
+ ### Patch Changes
12
+
13
+ - [#4069](https://github.com/wevm/viem/pull/4069) [`b46fbe33a45faa9c645fddadfd59d7660b12615c`](https://github.com/wevm/viem/commit/b46fbe33a45faa9c645fddadfd59d7660b12615c) Thanks [@bearpong](https://github.com/bearpong)! - Added `url` property to request errors.
14
+
15
+ - [#4109](https://github.com/wevm/viem/pull/4109) [`40132ab1a9dc4583685b7e1a77368cad953f917d`](https://github.com/wevm/viem/commit/40132ab1a9dc4583685b7e1a77368cad953f917d) Thanks [@keone](https://github.com/keone)! - Updated Monad block explorer URL and added WebSocket URLs, Multicall3 contract, second block explorer, and second RPC URL.
16
+
17
+ - [#4110](https://github.com/wevm/viem/pull/4110) [`90ada93230446875bd2ada289f2b83f4d3a58816`](https://github.com/wevm/viem/commit/90ada93230446875bd2ada289f2b83f4d3a58816) Thanks [@ikautak](https://github.com/ikautak)! - Added `passphrase` option to `mnemonicToAccount`.
18
+
19
+ ## 2.39.3
20
+
21
+ ### Patch Changes
22
+
23
+ - [#4099](https://github.com/wevm/viem/pull/4099) [`7e060c65427613fc1f847cda6b3231483e268a44`](https://github.com/wevm/viem/commit/7e060c65427613fc1f847cda6b3231483e268a44) Thanks [@QEDK](https://github.com/QEDK)! - Added Monad mainnet.
24
+
25
+ - [#4100](https://github.com/wevm/viem/pull/4100) [`987e5415b0052cbe0b79e3780754c8ec1cf5db2f`](https://github.com/wevm/viem/commit/987e5415b0052cbe0b79e3780754c8ec1cf5db2f) Thanks [@sandyup](https://github.com/sandyup)! - Added Etherlink Shadownet Testnet.
26
+
3
27
  ## 2.39.2
4
28
 
5
29
  ### Patch Changes
@@ -4,8 +4,8 @@ exports.mnemonicToAccount = mnemonicToAccount;
4
4
  const bip32_1 = require("@scure/bip32");
5
5
  const bip39_1 = require("@scure/bip39");
6
6
  const hdKeyToAccount_js_1 = require("./hdKeyToAccount.js");
7
- function mnemonicToAccount(mnemonic, opts = {}) {
8
- const seed = (0, bip39_1.mnemonicToSeedSync)(mnemonic);
9
- return (0, hdKeyToAccount_js_1.hdKeyToAccount)(bip32_1.HDKey.fromMasterSeed(seed), opts);
7
+ function mnemonicToAccount(mnemonic, { passphrase, ...hdKeyOpts } = {}) {
8
+ const seed = (0, bip39_1.mnemonicToSeedSync)(mnemonic, passphrase);
9
+ return (0, hdKeyToAccount_js_1.hdKeyToAccount)(bip32_1.HDKey.fromMasterSeed(seed), hdKeyOpts);
10
10
  }
11
11
  //# sourceMappingURL=mnemonicToAccount.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mnemonicToAccount.js","sourceRoot":"","sources":["../../accounts/mnemonicToAccount.ts"],"names":[],"mappings":";;AAoBA,8CAMC;AA1BD,wCAAoC;AACpC,wCAAiD;AAGjD,2DAI4B;AAY5B,SAAgB,iBAAiB,CAC/B,QAAgB,EAChB,OAAiC,EAAE;IAEnC,MAAM,IAAI,GAAG,IAAA,0BAAkB,EAAC,QAAQ,CAAC,CAAA;IACzC,OAAO,IAAA,kCAAc,EAAC,aAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;AACzD,CAAC"}
1
+ {"version":3,"file":"mnemonicToAccount.js","sourceRoot":"","sources":["../../accounts/mnemonicToAccount.ts"],"names":[],"mappings":";;AAsBA,8CAMC;AA5BD,wCAAoC;AACpC,wCAAiD;AAGjD,2DAI4B;AAc5B,SAAgB,iBAAiB,CAC/B,QAAgB,EAChB,EAAE,UAAU,EAAE,GAAG,SAAS,KAA+B,EAAE;IAE3D,MAAM,IAAI,GAAG,IAAA,0BAAkB,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;IACrD,OAAO,IAAA,kCAAc,EAAC,aAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,CAAA;AAC9D,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.watchContractEvent = exports.watchBlocks = exports.watchBlockNumber = exports.waitForTransactionReceipt = exports.verifyTypedData = exports.verifyMessage = exports.verifyHash = exports.uninstallFilter = exports.simulateContract = exports.simulateCalls = exports.simulate = exports.simulateBlocks = exports.readContract = exports.multicall = exports.getTransactionReceipt = exports.getTransactionCount = exports.getTransactionConfirmations = exports.getTransaction = exports.getStorageAt = exports.getProof = exports.getLogs = exports.getGasPrice = exports.getFilterLogs = exports.getFilterChanges = exports.getFeeHistory = exports.getEip712Domain = exports.getContractEvents = exports.getCode = exports.getBytecode = exports.getChainId = exports.getBlockTransactionCount = exports.getBlockNumber = exports.getBlock = exports.getBlobBaseFee = exports.getBalance = exports.estimateMaxPriorityFeePerGas = exports.estimateGas = exports.estimateFeesPerGas = exports.estimateContractGas = exports.createPendingTransactionFilter = exports.createEventFilter = exports.createContractEventFilter = exports.createBlockFilter = exports.createAccessList = exports.call = exports.getEnsText = exports.getEnsResolver = exports.getEnsName = exports.getEnsAvatar = exports.getEnsAddress = void 0;
4
- exports.showCallsStatus = exports.sendTransactionSync = exports.sendTransaction = exports.sendRawTransactionSync = exports.sendRawTransaction = exports.sendCallsSync = exports.sendCalls = exports.requestPermissions = exports.requestAddresses = exports.prepareTransactionRequest = exports.defaultPrepareTransactionRequestParameters = exports.prepareAuthorization = exports.getPermissions = exports.getCapabilities = exports.getCallsStatus = exports.getAddresses = exports.deployContract = exports.addChain = exports.stopImpersonatingAccount = exports.snapshot = exports.setStorageAt = exports.setRpcUrl = exports.setNonce = exports.setNextBlockTimestamp = exports.setNextBlockBaseFeePerGas = exports.setMinGasPrice = exports.setLoggingEnabled = exports.setIntervalMining = exports.setCoinbase = exports.setCode = exports.setBlockTimestampInterval = exports.setBlockGasLimit = exports.setBalance = exports.setAutomine = exports.sendUnsignedTransaction = exports.revert = exports.reset = exports.removeBlockTimestampInterval = exports.mine = exports.loadState = exports.inspectTxpool = exports.increaseTime = exports.impersonateAccount = exports.getTxpoolStatus = exports.getTxpoolContent = exports.getAutomine = exports.dumpState = exports.dropTransaction = exports.watchPendingTransactions = exports.watchEvent = void 0;
5
- exports.writeContractSync = exports.writeContract = exports.watchAsset = exports.waitForCallsStatus = exports.switchChain = exports.signTypedData = exports.signTransaction = exports.signMessage = exports.signAuthorization = void 0;
3
+ exports.watchBlocks = exports.watchBlockNumber = exports.waitForTransactionReceipt = exports.verifyTypedData = exports.verifyMessage = exports.verifyHash = exports.uninstallFilter = exports.simulateContract = exports.simulateCalls = exports.simulate = exports.simulateBlocks = exports.readContract = exports.multicall = exports.getTransactionReceipt = exports.getTransactionCount = exports.getTransactionConfirmations = exports.getTransaction = exports.getStorageAt = exports.getProof = exports.getLogs = exports.getGasPrice = exports.getFilterLogs = exports.getFilterChanges = exports.getFeeHistory = exports.getEip712Domain = exports.getContractEvents = exports.getCode = exports.getBytecode = exports.getChainId = exports.getBlockTransactionCount = exports.getBlockNumber = exports.getBlock = exports.getBlobBaseFee = exports.getBalance = exports.fillTransaction = exports.estimateMaxPriorityFeePerGas = exports.estimateGas = exports.estimateFeesPerGas = exports.estimateContractGas = exports.createPendingTransactionFilter = exports.createEventFilter = exports.createContractEventFilter = exports.createBlockFilter = exports.createAccessList = exports.call = exports.getEnsText = exports.getEnsResolver = exports.getEnsName = exports.getEnsAvatar = exports.getEnsAddress = void 0;
4
+ exports.sendTransactionSync = exports.sendTransaction = exports.sendRawTransactionSync = exports.sendRawTransaction = exports.sendCallsSync = exports.sendCalls = exports.requestPermissions = exports.requestAddresses = exports.prepareTransactionRequest = exports.defaultPrepareTransactionRequestParameters = exports.prepareAuthorization = exports.getPermissions = exports.getCapabilities = exports.getCallsStatus = exports.getAddresses = exports.deployContract = exports.addChain = exports.stopImpersonatingAccount = exports.snapshot = exports.setStorageAt = exports.setRpcUrl = exports.setNonce = exports.setNextBlockTimestamp = exports.setNextBlockBaseFeePerGas = exports.setMinGasPrice = exports.setLoggingEnabled = exports.setIntervalMining = exports.setCoinbase = exports.setCode = exports.setBlockTimestampInterval = exports.setBlockGasLimit = exports.setBalance = exports.setAutomine = exports.sendUnsignedTransaction = exports.revert = exports.reset = exports.removeBlockTimestampInterval = exports.mine = exports.loadState = exports.inspectTxpool = exports.increaseTime = exports.impersonateAccount = exports.getTxpoolStatus = exports.getTxpoolContent = exports.getAutomine = exports.dumpState = exports.dropTransaction = exports.watchPendingTransactions = exports.watchEvent = exports.watchContractEvent = void 0;
5
+ exports.writeContractSync = exports.writeContract = exports.watchAsset = exports.waitForCallsStatus = exports.switchChain = exports.signTypedData = exports.signTransaction = exports.signMessage = exports.signAuthorization = exports.showCallsStatus = void 0;
6
6
  var getEnsAddress_js_1 = require("./ens/getEnsAddress.js");
7
7
  Object.defineProperty(exports, "getEnsAddress", { enumerable: true, get: function () { return getEnsAddress_js_1.getEnsAddress; } });
8
8
  var getEnsAvatar_js_1 = require("./ens/getEnsAvatar.js");
@@ -33,6 +33,8 @@ var estimateGas_js_1 = require("./public/estimateGas.js");
33
33
  Object.defineProperty(exports, "estimateGas", { enumerable: true, get: function () { return estimateGas_js_1.estimateGas; } });
34
34
  var estimateMaxPriorityFeePerGas_js_1 = require("./public/estimateMaxPriorityFeePerGas.js");
35
35
  Object.defineProperty(exports, "estimateMaxPriorityFeePerGas", { enumerable: true, get: function () { return estimateMaxPriorityFeePerGas_js_1.estimateMaxPriorityFeePerGas; } });
36
+ var fillTransaction_js_1 = require("./public/fillTransaction.js");
37
+ Object.defineProperty(exports, "fillTransaction", { enumerable: true, get: function () { return fillTransaction_js_1.fillTransaction; } });
36
38
  var getBalance_js_1 = require("./public/getBalance.js");
37
39
  Object.defineProperty(exports, "getBalance", { enumerable: true, get: function () { return getBalance_js_1.getBalance; } });
38
40
  var getBlobBaseFee_js_1 = require("./public/getBlobBaseFee.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":";;;;;AACA,2DAK+B;AAD7B,iHAAA,aAAa,OAAA;AAEf,yDAK8B;AAD5B,+GAAA,YAAY,OAAA;AAEd,qDAK4B;AAD1B,2GAAA,UAAU,OAAA;AAEZ,6DAKgC;AAD9B,mHAAA,cAAc,OAAA;AAEhB,qDAK4B;AAD1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6GAAA,WAAW,OAAA;AAEb,kEAKoC;AADlC,qHAAA,eAAe,OAAA;AAEjB,8DAKkC;AADhC,iHAAA,aAAa,OAAA;AAEf,0DAIgC;AAD9B,6GAAA,WAAW,OAAA;AAEb,wEAMuC;AADrC,2HAAA,kBAAkB,OAAA;AAEpB,wDAK+B;AAD7B,2GAAA,UAAU,OAAA;AAEZ,8DAKkC;AADhC,iHAAA,aAAa,OAAA;AAEf,sEAKsC;AADpC,yHAAA,iBAAiB,OAAA"}
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fillTransaction = fillTransaction;
4
+ const parseAccount_js_1 = require("../../accounts/utils/parseAccount.js");
5
+ const fee_js_1 = require("../../errors/fee.js");
6
+ const getTransactionError_js_1 = require("../../utils/errors/getTransactionError.js");
7
+ const extract_js_1 = require("../../utils/formatters/extract.js");
8
+ const transaction_js_1 = require("../../utils/formatters/transaction.js");
9
+ const transactionRequest_js_1 = require("../../utils/formatters/transactionRequest.js");
10
+ const getAction_js_1 = require("../../utils/getAction.js");
11
+ const assertRequest_js_1 = require("../../utils/transaction/assertRequest.js");
12
+ const getBlock_js_1 = require("./getBlock.js");
13
+ const getChainId_js_1 = require("./getChainId.js");
14
+ async function fillTransaction(client, parameters) {
15
+ const { account = client.account, accessList, authorizationList, chain = client.chain, blobVersionedHashes, blobs, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce: nonce_, nonceManager, to, type, value, ...rest } = parameters;
16
+ const nonce = await (async () => {
17
+ if (!account)
18
+ return nonce_;
19
+ if (!nonceManager)
20
+ return nonce_;
21
+ const account_ = (0, parseAccount_js_1.parseAccount)(account);
22
+ const chainId = chain
23
+ ? chain.id
24
+ : await (0, getAction_js_1.getAction)(client, getChainId_js_1.getChainId, 'getChainId')({});
25
+ return await nonceManager.consume({
26
+ address: account_.address,
27
+ chainId,
28
+ client,
29
+ });
30
+ })();
31
+ (0, assertRequest_js_1.assertRequest)(parameters);
32
+ const chainFormat = chain?.formatters?.transactionRequest?.format;
33
+ const format = chainFormat || transactionRequest_js_1.formatTransactionRequest;
34
+ const request = format({
35
+ ...(0, extract_js_1.extract)(rest, { format: chainFormat }),
36
+ account: account ? (0, parseAccount_js_1.parseAccount)(account) : undefined,
37
+ accessList,
38
+ authorizationList,
39
+ blobs,
40
+ blobVersionedHashes,
41
+ data,
42
+ gas,
43
+ gasPrice,
44
+ maxFeePerBlobGas,
45
+ maxFeePerGas,
46
+ maxPriorityFeePerGas,
47
+ nonce,
48
+ to,
49
+ type,
50
+ value,
51
+ }, 'fillTransaction');
52
+ try {
53
+ const response = await client.request({
54
+ method: 'eth_fillTransaction',
55
+ params: [request],
56
+ });
57
+ const format = chain?.formatters?.transaction?.format || transaction_js_1.formatTransaction;
58
+ const transaction = format(response.tx);
59
+ delete transaction.blockHash;
60
+ delete transaction.blockNumber;
61
+ delete transaction.r;
62
+ delete transaction.s;
63
+ delete transaction.transactionIndex;
64
+ delete transaction.v;
65
+ delete transaction.yParity;
66
+ transaction.data = transaction.input;
67
+ if (transaction.gas)
68
+ transaction.gas = parameters.gas ?? transaction.gas;
69
+ if (transaction.gasPrice)
70
+ transaction.gasPrice = parameters.gasPrice ?? transaction.gasPrice;
71
+ if (transaction.maxFeePerBlobGas)
72
+ transaction.maxFeePerBlobGas =
73
+ parameters.maxFeePerBlobGas ?? transaction.maxFeePerBlobGas;
74
+ if (transaction.maxFeePerGas)
75
+ transaction.maxFeePerGas =
76
+ parameters.maxFeePerGas ?? transaction.maxFeePerGas;
77
+ if (transaction.maxPriorityFeePerGas)
78
+ transaction.maxPriorityFeePerGas =
79
+ parameters.maxPriorityFeePerGas ?? transaction.maxPriorityFeePerGas;
80
+ if (transaction.nonce)
81
+ transaction.nonce = parameters.nonce ?? transaction.nonce;
82
+ const feeMultiplier = await (async () => {
83
+ if (typeof chain?.fees?.baseFeeMultiplier === 'function') {
84
+ const block = await (0, getAction_js_1.getAction)(client, getBlock_js_1.getBlock, 'getBlock')({});
85
+ return chain.fees.baseFeeMultiplier({
86
+ block,
87
+ client,
88
+ request: parameters,
89
+ });
90
+ }
91
+ return chain?.fees?.baseFeeMultiplier ?? 1.2;
92
+ })();
93
+ if (feeMultiplier < 1)
94
+ throw new fee_js_1.BaseFeeScalarError();
95
+ const decimals = feeMultiplier.toString().split('.')[1]?.length ?? 0;
96
+ const denominator = 10 ** decimals;
97
+ const multiplyFee = (base) => (base * BigInt(Math.ceil(feeMultiplier * denominator))) /
98
+ BigInt(denominator);
99
+ if (transaction.maxFeePerGas && !parameters.maxFeePerGas)
100
+ transaction.maxFeePerGas = multiplyFee(transaction.maxFeePerGas);
101
+ if (transaction.gasPrice && !parameters.gasPrice)
102
+ transaction.gasPrice = multiplyFee(transaction.gasPrice);
103
+ return {
104
+ raw: response.raw,
105
+ transaction: {
106
+ from: request.from,
107
+ ...transaction,
108
+ },
109
+ };
110
+ }
111
+ catch (err) {
112
+ throw (0, getTransactionError_js_1.getTransactionError)(err, {
113
+ ...parameters,
114
+ chain: client.chain,
115
+ });
116
+ }
117
+ }
118
+ //# sourceMappingURL=fillTransaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fillTransaction.js","sourceRoot":"","sources":["../../../actions/public/fillTransaction.ts"],"names":[],"mappings":";;AA6FA,0CA4JC;AAxPD,0EAAmE;AAInE,gDAAwD;AAYxD,sFAGkD;AAClD,kEAA2D;AAC3D,0EAG8C;AAC9C,wFAGqD;AACrD,2DAAoD;AAEpD,+EAAwE;AACxE,+CAAwC;AACxC,mDAA2D;AA2DpD,KAAK,UAAU,eAAe,CAMnC,MAAyC,EACzC,UAKC;IAED,MAAM,EACJ,OAAO,GAAG,MAAM,CAAC,OAAO,EACxB,UAAU,EACV,iBAAiB,EACjB,KAAK,GAAG,MAAM,CAAC,KAAK,EACpB,mBAAmB,EACnB,KAAK,EACL,IAAI,EACJ,GAAG,EACH,QAAQ,EACR,gBAAgB,EAChB,YAAY,E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CAAC,QAAQ,CAAC,CAAA;QAE1D,OAAO;YACL,GAAG,EAAE,QAAQ,CAAC,GAAG;YACjB,WAAW,EAAE;gBACX,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,GAAG,WAAW;aACf;SACF,CAAA;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,4CAAmB,EACvB,GAAgB,EAChB;YACE,GAAG,UAAU;YACb,KAAK,EAAE,MAAM,CAAC,KAAK;SACX,CACX,CAAA;IACH,CAAC;AACH,CAAC"}
@@ -13,8 +13,10 @@ const blobsToProofs_js_1 = require("../../utils/blob/blobsToProofs.js");
13
13
  const commitmentsToVersionedHashes_js_1 = require("../../utils/blob/commitmentsToVersionedHashes.js");
14
14
  const toBlobSidecars_js_1 = require("../../utils/blob/toBlobSidecars.js");
15
15
  const getAction_js_1 = require("../../utils/getAction.js");
16
+ const lru_js_1 = require("../../utils/lru.js");
16
17
  const assertRequest_js_1 = require("../../utils/transaction/assertRequest.js");
17
18
  const getTransactionType_js_1 = require("../../utils/transaction/getTransactionType.js");
19
+ const fillTransaction_js_1 = require("../public/fillTransaction.js");
18
20
  const getChainId_js_1 = require("../public/getChainId.js");
19
21
  exports.defaultParameters = [
20
22
  'blobVersionedHashes',
@@ -25,10 +27,42 @@ exports.defaultParameters = [
25
27
  'type',
26
28
  ];
27
29
  exports.eip1559NetworkCache = new Map();
28
- async function prepareTransactionRequest(client, args) {
29
- const { account: account_ = client.account, blobs, chain, gas, kzg, nonce, nonceManager, parameters = exports.defaultParameters, type, } = args;
30
+ const supportsFillTransaction = new lru_js_1.LruMap(128);
31
+ async function prepareTransactionRequest(client, args_) {
32
+ const attemptFill = supportsFillTransaction.get(client.uid) !== false &&
33
+ ['fees', 'gas'].some((parameter) => args_.parameters?.includes(parameter));
34
+ const fillResult = attemptFill
35
+ ? await (0, getAction_js_1.getAction)(client, fillTransaction_js_1.fillTransaction, 'fillTransaction')(args_)
36
+ .then((result) => {
37
+ const { chainId, from, gas, gasPrice, nonce, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, type, } = result.transaction;
38
+ supportsFillTransaction.set(client.uid, true);
39
+ return {
40
+ ...args_,
41
+ chainId,
42
+ from,
43
+ gas,
44
+ gasPrice,
45
+ nonce,
46
+ maxFeePerBlobGas,
47
+ maxFeePerGas,
48
+ maxPriorityFeePerGas,
49
+ type,
50
+ };
51
+ })
52
+ .catch((e) => {
53
+ const error = e;
54
+ if (error.cause.name === 'MethodNotFoundRpcError' ||
55
+ error.cause.name === 'MethodNotSupportedRpcError')
56
+ supportsFillTransaction.set(client.uid, false);
57
+ return args_;
58
+ })
59
+ : args_;
60
+ const { account: account_ = client.account, blobs, chain, gas, kzg, nonce, nonceManager, parameters = exports.defaultParameters, type, } = fillResult;
30
61
  const account = account_ ? (0, parseAccount_js_1.parseAccount)(account_) : account_;
31
- const request = { ...args, ...(account ? { from: account?.address } : {}) };
62
+ const request = {
63
+ ...fillResult,
64
+ ...(account ? { from: account?.address } : {}),
65
+ };
32
66
  let block;
33
67
  async function getBlock() {
34
68
  if (block)
@@ -42,8 +76,8 @@ async function prepareTransactionRequest(client, args) {
42
76
  return chainId;
43
77
  if (chain)
44
78
  return chain.id;
45
- if (typeof args.chainId !== 'undefined')
46
- return args.chainId;
79
+ if (typeof request.chainId !== 'undefined')
80
+ return request.chainId;
47
81
  const chainId_ = await (0, getAction_js_1.getAction)(client, getChainId_js_1.getChainId, 'getChainId')({});
48
82
  chainId = chainId_;
49
83
  return chainId;
@@ -114,9 +148,9 @@ async function prepareTransactionRequest(client, args) {
114
148
  chain,
115
149
  request: request,
116
150
  });
117
- if (typeof args.maxPriorityFeePerGas === 'undefined' &&
118
- args.maxFeePerGas &&
119
- args.maxFeePerGas < maxPriorityFeePerGas)
151
+ if (typeof request.maxPriorityFeePerGas === 'undefined' &&
152
+ request.maxFeePerGas &&
153
+ request.maxFeePerGas < maxPriorityFeePerGas)
120
154
  throw new fee_js_1.MaxFeePerGasTooLowError({
121
155
  maxPriorityFeePerGas,
122
156
  });
@@ -125,10 +159,10 @@ async function prepareTransactionRequest(client, args) {
125
159
  }
126
160
  }
127
161
  else {
128
- if (typeof args.maxFeePerGas !== 'undefined' ||
129
- typeof args.maxPriorityFeePerGas !== 'undefined')
162
+ if (typeof request.maxFeePerGas !== 'undefined' ||
163
+ typeof request.maxPriorityFeePerGas !== 'undefined')
130
164
  throw new fee_js_1.Eip1559FeesNotSupportedError();
131
- if (typeof args.gasPrice === 'undefined') {
165
+ if (typeof request.gasPrice === 'undefined') {
132
166
  const block = await getBlock();
133
167
  const { gasPrice: gasPrice_ } = await (0, estimateFeesPerGas_js_1.internal_estimateFeesPerGas)(client, {
134
168
  block: block,
@@ -1 +1 @@
1
- {"version":3,"file":"prepareTransactionRequest.js","sourceRoot":"","sources":["../../../actions/wallet/prepareTransactionRequest.ts"],"names":[],"mappings":";;;AA2OA,8DAqMC;AA9aD,0EAG6C;AAC7C,sFAGmD;AACnD,wEAI4C;AAC5C,kEAGyC;AACzC,wFAGoD;AAIpD,gDAG4B;AAyB5B,kFAA2E;AAC3E,wEAAiE;AACjE,sGAA+F;AAC/F,0EAAmE;AAEnE,2DAAoD;AAEpD,+EAIiD;AACjD,yFAGsD;AACtD,2DAAmE;AAEtD,QAAA,iBAAiB,GAAG;IAC/B,qBAAqB;IACrB,SAAS;IACT,MAAM;IACN,KAAK;IACL,OAAO;IACP,MAAM;CACE,CAAA;AAGG,QAAA,mBAAmB,GAAiB,IAAI,GAAG,EAAmB,CAAA;AAyJpE,KAAK,UAAU,yBAAyB,CAO7C,MAAyC,EACzC,IAMC;IAUD,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,KAAK,EACL,KAAK,EACL,GAAG,EACH,GAAG,EACH,KAAK,EACL,YAAY,EACZ,UAAU,GAAG,yBAAiB,EAC9B,IAAI,GACL,GAAG,IAAI,CAAA;IACR,MAAM,OAAO,GAAG,QAAQ,CAAC,CA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AAK,EAAE,KAAc;oBACrB,KAAK;oBACL,OAAO,EAAE,OAA8C;oBACvD,IAAI,EAAE,QAAQ;iBACf,CACF,CAAA;gBACD,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAA;YAC9B,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,OAAO,GAAG,KAAK,WAAW;QAC1D,OAAO,CAAC,GAAG,GAAG,MAAM,IAAA,wBAAS,EAC3B,MAAM,EACN,4BAAW,EACX,aAAa,CACd,CAAC;YACA,GAAG,OAAO;YACV,OAAO;YACP,OAAO,EAAE,OAAO,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC;SACzC,CAAC,CAAA;IAE7B,IAAA,gCAAa,EAAC,OAAkC,CAAC,CAAA;IAEjD,OAAO,OAAO,CAAC,UAAU,CAAA;IAEzB,OAAO,OAAc,CAAA;AACvB,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.etherlinkShadownetTestnet = void 0;
4
+ const defineChain_js_1 = require("../../utils/chain/defineChain.js");
5
+ exports.etherlinkShadownetTestnet = (0, defineChain_js_1.defineChain)({
6
+ id: 127823,
7
+ name: 'Etherlink Shadownet Testnet',
8
+ nativeCurrency: {
9
+ decimals: 18,
10
+ name: 'tez',
11
+ symbol: 'XTZ',
12
+ },
13
+ rpcUrls: {
14
+ default: { http: ['https://node.shadownet.etherlink.com'] },
15
+ },
16
+ blockExplorers: {
17
+ default: {
18
+ name: 'Etherlink Shadownet Testnet Explorer',
19
+ url: 'https://shadownet.explorer.etherlink.com',
20
+ },
21
+ },
22
+ testnet: true,
23
+ });
24
+ //# sourceMappingURL=etherlinkShadownetTestnet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"etherlinkShadownetTestnet.js","sourceRoot":"","sources":["../../../chains/definitions/etherlinkShadownetTestnet.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,yBAAyB,GAAiB,IAAA,4BAAW,EAAC;IACjE,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,6BAA6B;IACnC,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,sCAAsC,CAAC,EAAE;KAC5D;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,sCAAsC;YAC5C,GAAG,EAAE,0CAA0C;SAChD;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.monad = void 0;
4
+ const defineChain_js_1 = require("../../utils/chain/defineChain.js");
5
+ exports.monad = (0, defineChain_js_1.defineChain)({
6
+ id: 143,
7
+ name: 'Monad',
8
+ blockTime: 400,
9
+ nativeCurrency: {
10
+ name: 'Monad',
11
+ symbol: 'MON',
12
+ decimals: 18,
13
+ },
14
+ rpcUrls: {
15
+ default: {
16
+ http: ['https://rpc.monad.xyz', 'https://rpc1.monad.xyz'],
17
+ webSocket: ['wss://rpc.monad.xyz', 'wss://rpc1.monad.xyz'],
18
+ },
19
+ },
20
+ blockExplorers: {
21
+ default: {
22
+ name: 'MonadVision',
23
+ url: 'https://monadvision.com',
24
+ },
25
+ monadscan: {
26
+ name: 'Monadscan',
27
+ url: 'https://monadscan.com',
28
+ apiUrl: 'https://api.monadscan.com/api',
29
+ },
30
+ },
31
+ testnet: false,
32
+ contracts: {
33
+ multicall3: {
34
+ address: '0xcA11bde05977b3631167028862bE2a173976CA11',
35
+ blockCreated: 9248132,
36
+ },
37
+ },
38
+ });
39
+ //# sourceMappingURL=monad.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monad.js","sourceRoot":"","sources":["../../../chains/definitions/monad.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,KAAK,GAAiB,IAAA,4BAAW,EAAC;IAC7C,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,OAAO;IACb,SAAS,EAAE,GAAG;IACd,cAAc,EAAE;QACd,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,uBAAuB,EAAE,wBAAwB,CAAC;YACzD,SAAS,EAAE,CAAC,qBAAqB,EAAE,sBAAsB,CAAC;SAC3D;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,aAAa;YACnB,GAAG,EAAE,yBAAyB;SAC/B;QACD,SAAS,EAAE;YACT,IAAI,EAAE,WAAW;YACjB,GAAG,EAAE,uBAAuB;YAC5B,MAAM,EAAE,+BAA+B;SACxC;KACF;IACD,OAAO,EAAE,KAAK;IACd,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,OAAO;SACtB;KACF;CACF,CAAC,CAAA"}
@@ -3,17 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.base = exports.bahamut = exports.b3Sepolia = exports.b3 = exports.avalancheFuji = exports.avalanche = exports.autheoTestnet = exports.auroria = exports.auroraTestnet = exports.aurora = exports.atletaOlympia = exports.astarZkyoto = exports.astarZkEVM = exports.astar = exports.assetChainTestnet = exports.assetChain = exports.artheraTestnet = exports.arthera = exports.artelaTestnet = exports.areum = exports.areonNetworkTestnet = exports.areonNetwork = exports.arenaz = exports.arcTestnet = exports.arbitrumSepolia = exports.arbitrumNova = exports.arbitrumGoerli = exports.arbitrum = exports.apexTestnet = exports.apeChain = exports.anvil = exports.ancient8Sepolia = exports.ancient8 = exports.alienxHalTestnet = exports.alienx = exports.alephZeroTestnet = exports.alephZero = exports.aioz = exports.agungTestnet = exports.adf = exports.acria = exports.acala = exports.abstractTestnet = exports.abstract = exports.abey = exports.fireChain = exports.zeroGTestnet = exports.zeroGMainnet = exports.zeroGGalileoTestnet = exports.zeroG = void 0;
4
4
  exports.celoAlfajores = exports.celo = exports.canto = exports.cannon = exports.bxnTestnet = exports.bxn = exports.btrTestnet = exports.btr = exports.bsquaredTestnet = exports.bsquared = exports.bscTestnet = exports.bscGreenfield = exports.bsc = exports.bronosTestnet = exports.bronos = exports.bounceBitTestnet = exports.bounceBit = exports.botanixTestnet = exports.botanix = exports.boolBetaMainnet = exports.bobSepolia = exports.bobaSepolia = exports.boba = exports.bob = exports.blastSepolia = exports.blast = exports.bitTorrentTestnet = exports.bitTorrent = exports.bitrock = exports.bitlayerTestnet = exports.bitlayer = exports.bitkubTestnet = exports.bitkub = exports.bitgert = exports.birdlayer = exports.bifrost = exports.bevmMainnet = exports.berachainTestnetbArtio = exports.berachainTestnet = exports.berachainBepolia = exports.berachain = exports.bearNetworkChainTestnet = exports.bearNetworkChainMainnet = exports.beamTestnet = exports.beam = exports.baseSepoliaPreconf = exports.baseSepolia = exports.baseGoerli = exports.basecampTestnet = exports.basePreconf = void 0;
5
5
  exports.dustboyIoT = exports.dreyerxTestnet = exports.dreyerxMainnet = exports.dosChainTestnet = exports.dosChain = exports.donatuz = exports.domaTestnet = exports.dogechain = exports.dodochainTestnet = exports.disChain = exports.diode = exports.dfk = exports.degen = exports.defichainEvmTestnet = exports.defichainEvm = exports.dchainTestnet = exports.dchain = exports.dbkchain = exports.darwinia = exports.dailyNetworkTestnet = exports.dailyNetwork = exports.cyberTestnet = exports.cyber = exports.curtis = exports.crossfi = exports.crossbell = exports.cronoszkEVMTestnet = exports.cronoszkEVM = exports.cronosTestnet = exports.cronos = exports.creditCoin3Testnet = exports.creditCoin3Mainnet = exports.creditCoin3Devnet = exports.creatorTestnet = exports.crab = exports.cornTestnet = exports.corn = exports.coreTestnet2 = exports.coreTestnet1 = exports.coreDao = exports.confluxESpaceTestnet = exports.confluxESpace = exports.coinex = exports.coinbit = exports.classic = exports.citreaTestnet = exports.chips = exports.chiliz = exports.chang = exports.celoSepolia = void 0;
6
- exports.fluenceTestnet = exports.fluenceStage = exports.fluence = exports.flowTestnet = exports.flowPreviewnet = exports.flowMainnet = exports.flareTestnet = exports.flare = exports.flame = exports.filecoinHyperspace = exports.filecoinCalibration = exports.filecoin = exports.fibo = exports.fantomTestnet = exports.fantomSonicTestnet = exports.fantom = exports.exsatTestnet = exports.exsat = exports.expanse = exports.excelonMainnet = exports.evmosTestnet = exports.evmos = exports.etp = exports.ethernity = exports.etherlinkTestnet = exports.etherlink = exports.eteria = exports.eosTestnet = exports.eos = exports.eon = exports.enuls = exports.eniTestnet = exports.eni = exports.energy = exports.elysiumTestnet = exports.electroneumTestnet = exports.electroneum = exports.elastosTestnet = exports.elastos = exports.ektaTestnet = exports.ekta = exports.eduChainTestnet = exports.eduChain = exports.edgewareTestnet = exports.edgeware = exports.edgelessTestnet = exports.edgeless = exports.edexaTestnet = exports.edexa = exports.dymension = void 0;
7
- exports.hemiSepolia = exports.hemi = exports.heliosTestnet = exports.hela = exports.hederaTestnet = exports.hederaPreviewnet = exports.hedera = exports.haustTestnet = exports.hashkeyTestnet = exports.hashkey = exports.harmonyOne = exports.hardhat = exports.haqqTestedge2 = exports.haqqMainnet = exports.happychainTestnet = exports.ham = exports.guruTestnet = exports.guruNetwork = exports.gunz = exports.gravity = exports.graphiteTestnet = exports.graphite = exports.goerli = exports.godwoken = exports.goChain = exports.gobi = exports.goat = exports.gnosisChiado = exports.gnosis = exports.glideL2Protocol = exports.glideL1Protocol = exports.giwaSepolia = exports.genesys = exports.geist = exports.gatechain = exports.garnet = exports.fusionTestnet = exports.fusion = exports.fuseSparknet = exports.fuse = exports.funkiSepolia = exports.funkiMainnet = exports.fraxtalTestnet = exports.fraxtal = exports.foundry = exports.forta = exports.formTestnet = exports.forma = exports.form = exports.fluentTestnet = void 0;
8
- exports.kaia = exports.juneoUSDT1Chain = exports.juneoUSD1Chain = exports.juneoSocotraTestnet = exports.juneoSGD1Chain = exports.juneomBTC1Chain = exports.juneoLTC1Chain = exports.juneoLINK1Chain = exports.juneoGLD1Chain = exports.juneoEUR1Chain = exports.juneoDOGE1Chain = exports.juneoDAI1Chain = exports.juneoBCH1Chain = exports.juneo = exports.jovaySepolia = exports.jovay = exports.jocTestnet = exports.jocMainnet = exports.jbcTestnet = exports.jbc = exports.jasmyChainTestnet = exports.jasmyChain = exports.iSunCoin = exports.iotexTestnet = exports.iotex = exports.iotaTestnet = exports.iota = exports.inkSepolia = exports.ink = exports.injectiveTestnet = exports.injective = exports.initVerseGenesis = exports.initVerse = exports.inEVM = exports.immutableZkEvmTestnet = exports.immutableZkEvm = exports.idchain = exports.icbNetwork = exports.hyperliquidEvmTestnet = exports.hychainTestnet = exports.hychain = exports.humanodeTestnet5 = exports.humanode = exports.humanityTestnet = exports.humanity = exports.huddle01Testnet = exports.huddle01Mainnet = exports.hpb = exports.hoodi = exports.holesky = void 0;
9
- exports.mantraDuKongEVMTestnet = exports.mantleTestnet = exports.mantleSepoliaTestnet = exports.mantle = exports.mantaTestnet = exports.mantaSepoliaTestnet = exports.manta = exports.mandala = exports.mainnet = exports.lyra = exports.lycan = exports.lumozTestnet = exports.lumoz = exports.lumiaTestnet = exports.lumiaMainnet = exports.luksoTestnet = exports.lukso = exports.loop = exports.localhost = exports.loadAlphanet = exports.liskSepolia = exports.lisk = exports.lineaTestnet = exports.lineaSepolia = exports.lineaGoerli = exports.linea = exports.lightlinkPhoenix = exports.lightlinkPegasus = exports.lestnet = exports.lensTestnet = exports.lens = exports.lavita = exports.l3xTestnet = exports.l3x = exports.kromaSepolia = exports.kroma = exports.koi = exports.klaytnBaobab = exports.klaytn = exports.kinto = exports.kiiTestnetOro = exports.kcc = exports.kavaTestnet = exports.kava = exports.katana = exports.karura = exports.kardiaChain = exports.kakarotStarknetSepolia = exports.kakarotSepolia = exports.kairos = void 0;
10
- exports.nomina = exports.nitrographTestnet = exports.nibiru = exports.nexilix = exports.nexi = exports.newton = exports.neoxT4 = exports.neoxMainnet = exports.neonMainnet = exports.neonDevnet = exports.nearTestnet = exports.near = exports.nautilus = exports.nahmii = exports.morphSepolia = exports.morphHolesky = exports.morph = exports.moonriver = exports.moonbeamDev = exports.moonbeam = exports.moonbaseAlpha = exports.monadTestnet = exports.modeTestnet = exports.mode = exports.mitosisTestnet = exports.mintSepoliaTestnet = exports.mint = exports.mevTestnet = exports.mev = exports.metisSepolia = exports.metisGoerli = exports.metis = exports.meterTestnet = exports.meter = exports.metalL2 = exports.metadium = exports.metachainIstanbul = exports.metachain = exports.merlinErigonTestnet = exports.merlin = exports.formicarium = exports.memecore = exports.meld = exports.mekong = exports.megaethTestnet = exports.mchVerse = exports.matchainTestnet = exports.matchain = exports.mapProtocol = exports.mantraEVM = void 0;
11
- exports.pulsechain = exports.premiumBlockTestnet = exports.potosTestnet = exports.potos = exports.polynomialSepolia = exports.polynomial = exports.polygonZkEvmTestnet = exports.polygonZkEvmCardona = exports.polygonZkEvm = exports.polygonMumbai = exports.polygonAmoy = exports.polygon = exports.polterTestnet = exports.plumeTestnet = exports.plumeSepolia = exports.plumeMainnet = exports.plumeDevnet = exports.plume = exports.plinga = exports.playfiAlbireo = exports.plasmaTestnet = exports.plasmaDevnet = exports.plasma = exports.planq = exports.phoenix = exports.pgnTestnet = exports.pgn = exports.peaq = exports.palmTestnet = exports.palm = exports.otimDevnet = exports.orderlySepolia = exports.orderly = exports.optopiaTestnet = exports.optopia = exports.optimismSepolia = exports.optimismGoerli = exports.optimism = exports.openledger = exports.opBNBTestnet = exports.opBNB = exports.oortMainnetDev = exports.oneWorld = exports.omniOmega = exports.omni = exports.omax = exports.okc = exports.odysseyTestnet = exports.oasys = exports.oasisTestnet = void 0;
12
- exports.shimmerTestnet = exports.shimmer = exports.shiden = exports.shibariumTestnet = exports.shibarium = exports.shardeumSphinx = exports.shardeum = exports.shapeSepolia = exports.shape = exports.sepolia = exports.seiTestnet = exports.seismicDevnet = exports.seiDevnet = exports.sei = exports.scrollSepolia = exports.satoshiVMTestnet = exports.satoshiVM = exports.sapphireTestnet = exports.sapphire = exports.sanko = exports.saigon = exports.saga = exports.saakuru = exports.rss3Sepolia = exports.rss3 = exports.rootstockTestnet = exports.rootstock = exports.rootPorcini = exports.root = exports.ronin = exports.rolluxTestnet = exports.rollux = exports.rivalz = exports.riseTestnet = exports.reyaNetwork = exports.rei = exports.redstone = exports.reddioSepolia = exports.reddio = exports.redbellyTestnet = exports.redbellyMainnet = exports.real = exports.quaiTestnet = exports.quai = exports.qTestnet = exports.qMainnet = exports.ql1 = exports.pyrope = exports.pumpfiTestnet = exports.pulsechainV4 = void 0;
13
- exports.swanProximaTestnet = exports.swan = exports.surgeTestnet = exports.superseedSepolia = exports.superseed = exports.superposition = exports.superlumio = exports.stratis = exports.storyTestnet = exports.storyOdyssey = exports.storyAeneid = exports.story = exports.step = exports.statusNetworkSepolia = exports.statusSepolia = exports.spicy = exports.sovaSepolia = exports.sova = exports.sophonTestnet = exports.sophon = exports.sonicTestnet = exports.sonicBlazeTestnet = exports.sonic = exports.songbirdTestnet = exports.songbird = exports.soneiumMinato = exports.soneium = exports.somniaTestnet = exports.snaxTestnet = exports.snax = exports.sketchpad = exports.skaleTitanTestnet = exports.skaleTitan = exports.skaleRazor = exports.skaleNebulaTestnet = exports.skaleNebula = exports.skaleHumanProtocol = exports.skaleExorde = exports.skaleEuropaTestnet = exports.skaleEuropa = exports.skaleCryptoColosseum = exports.skaleCryptoBlades = exports.skaleCalypsoTestnet = exports.skaleCalypso = exports.skaleBlockBrawlers = exports.sixProtocol = exports.siliconSepolia = exports.silicon = exports.silentData = exports.sidraChain = void 0;
14
- exports.velas = exports.vechain = exports.vanar = exports.vanaMoksha = exports.vana = exports.unreal = exports.uniqueQuartz = exports.uniqueOpal = exports.unique = exports.unichainSepolia = exports.unichain = exports.ultronTestnet = exports.ultron = exports.ultraTestnet = exports.ultra = exports.ubiq = exports.tronShasta = exports.tronNile = exports.tron = exports.treasureTopaz = exports.treasure = exports.tomb = exports.tiktrixTestnet = exports.thunderTestnet = exports.thunderCore = exports.thetaTestnet = exports.theta = exports.that = exports.thaiChain = exports.ternoa = exports.tenet = exports.telosTestnet = exports.telos = exports.telcoinTestnet = exports.teaSepolia = exports.taraxaTestnet = exports.taraxa = exports.taikoTestnetSepolia = exports.taikoKatla = exports.taikoJolnir = exports.taikoHekla = exports.taiko = exports.tacSPB = exports.tac = exports.syscoinTestnet = exports.syscoin = exports.swissdlt = exports.swellchainTestnet = exports.swellchain = exports.swanSaturnTestnet = void 0;
15
- exports.zksync = exports.zkSync = exports.zkLinkNovaSepoliaTestnet = exports.zkLinkNova = exports.zkFairTestnet = exports.zkFair = exports.zircuitTestnet = exports.zircuitGarfieldTestnet = exports.zircuit = exports.zilliqaTestnet = exports.zilliqa = exports.zhejiang = exports.zetachainAthensTestnet = exports.zetachain = exports.zeroNetwork = exports.zeniq = exports.zenchainTestnet = exports.yooldoVerseTestnet = exports.yooldoVerse = exports.xrSepolia = exports.xrplevmTestnet = exports.xrplevmDevnet = exports.xrOne = exports.xphereTestnet = exports.xphereMainnet = exports.xoneTestnet = exports.xoneMainnet = exports.xLayerTestnet = exports.x1Testnet = exports.xLayer = exports.xdcTestnet = exports.xdc = exports.xaiTestnet = exports.xai = exports.worldLand = exports.worldchainSepolia = exports.worldchain = exports.wmcTestnet = exports.whitechainTestnet = exports.whitechain = exports.westendAssetHub = exports.wemixTestnet = exports.wemix = exports.weaveVMAlphanet = exports.wanchainTestnet = exports.wanchain = exports.visionTestnet = exports.vision = exports.victionTestnet = exports.viction = void 0;
16
- exports.zoraTestnet = exports.zoraSepolia = exports.zora = exports.zksyncSepoliaTestnet = exports.zkSyncSepoliaTestnet = exports.zksyncLocalNode = exports.zkSyncLocalNode = exports.zksyncLocalHyperchainL1 = exports.zksyncLocalHyperchain = exports.zksyncLocalCustomHyperchain = exports.zksyncInMemoryNode = exports.zkSyncInMemoryNode = void 0;
6
+ exports.fluenceStage = exports.fluence = exports.flowTestnet = exports.flowPreviewnet = exports.flowMainnet = exports.flareTestnet = exports.flare = exports.flame = exports.filecoinHyperspace = exports.filecoinCalibration = exports.filecoin = exports.fibo = exports.fantomTestnet = exports.fantomSonicTestnet = exports.fantom = exports.exsatTestnet = exports.exsat = exports.expanse = exports.excelonMainnet = exports.evmosTestnet = exports.evmos = exports.etp = exports.ethernity = exports.etherlinkTestnet = exports.etherlinkShadownetTestnet = exports.etherlink = exports.eteria = exports.eosTestnet = exports.eos = exports.eon = exports.enuls = exports.eniTestnet = exports.eni = exports.energy = exports.elysiumTestnet = exports.electroneumTestnet = exports.electroneum = exports.elastosTestnet = exports.elastos = exports.ektaTestnet = exports.ekta = exports.eduChainTestnet = exports.eduChain = exports.edgewareTestnet = exports.edgeware = exports.edgelessTestnet = exports.edgeless = exports.edexaTestnet = exports.edexa = exports.dymension = void 0;
7
+ exports.hemi = exports.heliosTestnet = exports.hela = exports.hederaTestnet = exports.hederaPreviewnet = exports.hedera = exports.haustTestnet = exports.hashkeyTestnet = exports.hashkey = exports.harmonyOne = exports.hardhat = exports.haqqTestedge2 = exports.haqqMainnet = exports.happychainTestnet = exports.ham = exports.guruTestnet = exports.guruNetwork = exports.gunz = exports.gravity = exports.graphiteTestnet = exports.graphite = exports.goerli = exports.godwoken = exports.goChain = exports.gobi = exports.goat = exports.gnosisChiado = exports.gnosis = exports.glideL2Protocol = exports.glideL1Protocol = exports.giwaSepolia = exports.genesys = exports.geist = exports.gatechain = exports.garnet = exports.fusionTestnet = exports.fusion = exports.fuseSparknet = exports.fuse = exports.funkiSepolia = exports.funkiMainnet = exports.fraxtalTestnet = exports.fraxtal = exports.foundry = exports.forta = exports.formTestnet = exports.forma = exports.form = exports.fluentTestnet = exports.fluenceTestnet = void 0;
8
+ exports.juneoUSDT1Chain = exports.juneoUSD1Chain = exports.juneoSocotraTestnet = exports.juneoSGD1Chain = exports.juneomBTC1Chain = exports.juneoLTC1Chain = exports.juneoLINK1Chain = exports.juneoGLD1Chain = exports.juneoEUR1Chain = exports.juneoDOGE1Chain = exports.juneoDAI1Chain = exports.juneoBCH1Chain = exports.juneo = exports.jovaySepolia = exports.jovay = exports.jocTestnet = exports.jocMainnet = exports.jbcTestnet = exports.jbc = exports.jasmyChainTestnet = exports.jasmyChain = exports.iSunCoin = exports.iotexTestnet = exports.iotex = exports.iotaTestnet = exports.iota = exports.inkSepolia = exports.ink = exports.injectiveTestnet = exports.injective = exports.initVerseGenesis = exports.initVerse = exports.inEVM = exports.immutableZkEvmTestnet = exports.immutableZkEvm = exports.idchain = exports.icbNetwork = exports.hyperliquidEvmTestnet = exports.hychainTestnet = exports.hychain = exports.humanodeTestnet5 = exports.humanode = exports.humanityTestnet = exports.humanity = exports.huddle01Testnet = exports.huddle01Mainnet = exports.hpb = exports.hoodi = exports.holesky = exports.hemiSepolia = void 0;
9
+ exports.mantleTestnet = exports.mantleSepoliaTestnet = exports.mantle = exports.mantaTestnet = exports.mantaSepoliaTestnet = exports.manta = exports.mandala = exports.mainnet = exports.lyra = exports.lycan = exports.lumozTestnet = exports.lumoz = exports.lumiaTestnet = exports.lumiaMainnet = exports.luksoTestnet = exports.lukso = exports.loop = exports.localhost = exports.loadAlphanet = exports.liskSepolia = exports.lisk = exports.lineaTestnet = exports.lineaSepolia = exports.lineaGoerli = exports.linea = exports.lightlinkPhoenix = exports.lightlinkPegasus = exports.lestnet = exports.lensTestnet = exports.lens = exports.lavita = exports.l3xTestnet = exports.l3x = exports.kromaSepolia = exports.kroma = exports.koi = exports.klaytnBaobab = exports.klaytn = exports.kinto = exports.kiiTestnetOro = exports.kcc = exports.kavaTestnet = exports.kava = exports.katana = exports.karura = exports.kardiaChain = exports.kakarotStarknetSepolia = exports.kakarotSepolia = exports.kairos = exports.kaia = void 0;
10
+ exports.nibiru = exports.nexilix = exports.nexi = exports.newton = exports.neoxT4 = exports.neoxMainnet = exports.neonMainnet = exports.neonDevnet = exports.nearTestnet = exports.near = exports.nautilus = exports.nahmii = exports.morphSepolia = exports.morphHolesky = exports.morph = exports.moonriver = exports.moonbeamDev = exports.moonbeam = exports.moonbaseAlpha = exports.monadTestnet = exports.monad = exports.modeTestnet = exports.mode = exports.mitosisTestnet = exports.mintSepoliaTestnet = exports.mint = exports.mevTestnet = exports.mev = exports.metisSepolia = exports.metisGoerli = exports.metis = exports.meterTestnet = exports.meter = exports.metalL2 = exports.metadium = exports.metachainIstanbul = exports.metachain = exports.merlinErigonTestnet = exports.merlin = exports.formicarium = exports.memecore = exports.meld = exports.mekong = exports.megaethTestnet = exports.mchVerse = exports.matchainTestnet = exports.matchain = exports.mapProtocol = exports.mantraEVM = exports.mantraDuKongEVMTestnet = void 0;
11
+ exports.potosTestnet = exports.potos = exports.polynomialSepolia = exports.polynomial = exports.polygonZkEvmTestnet = exports.polygonZkEvmCardona = exports.polygonZkEvm = exports.polygonMumbai = exports.polygonAmoy = exports.polygon = exports.polterTestnet = exports.plumeTestnet = exports.plumeSepolia = exports.plumeMainnet = exports.plumeDevnet = exports.plume = exports.plinga = exports.playfiAlbireo = exports.plasmaTestnet = exports.plasmaDevnet = exports.plasma = exports.planq = exports.phoenix = exports.pgnTestnet = exports.pgn = exports.peaq = exports.palmTestnet = exports.palm = exports.otimDevnet = exports.orderlySepolia = exports.orderly = exports.optopiaTestnet = exports.optopia = exports.optimismSepolia = exports.optimismGoerli = exports.optimism = exports.openledger = exports.opBNBTestnet = exports.opBNB = exports.oortMainnetDev = exports.oneWorld = exports.omniOmega = exports.omni = exports.omax = exports.okc = exports.odysseyTestnet = exports.oasys = exports.oasisTestnet = exports.nomina = exports.nitrographTestnet = void 0;
12
+ exports.shiden = exports.shibariumTestnet = exports.shibarium = exports.shardeumSphinx = exports.shardeum = exports.shapeSepolia = exports.shape = exports.sepolia = exports.seiTestnet = exports.seismicDevnet = exports.seiDevnet = exports.sei = exports.scrollSepolia = exports.satoshiVMTestnet = exports.satoshiVM = exports.sapphireTestnet = exports.sapphire = exports.sanko = exports.saigon = exports.saga = exports.saakuru = exports.rss3Sepolia = exports.rss3 = exports.rootstockTestnet = exports.rootstock = exports.rootPorcini = exports.root = exports.ronin = exports.rolluxTestnet = exports.rollux = exports.rivalz = exports.riseTestnet = exports.reyaNetwork = exports.rei = exports.redstone = exports.reddioSepolia = exports.reddio = exports.redbellyTestnet = exports.redbellyMainnet = exports.real = exports.quaiTestnet = exports.quai = exports.qTestnet = exports.qMainnet = exports.ql1 = exports.pyrope = exports.pumpfiTestnet = exports.pulsechainV4 = exports.pulsechain = exports.premiumBlockTestnet = void 0;
13
+ exports.surgeTestnet = exports.superseedSepolia = exports.superseed = exports.superposition = exports.superlumio = exports.stratis = exports.storyTestnet = exports.storyOdyssey = exports.storyAeneid = exports.story = exports.step = exports.statusNetworkSepolia = exports.statusSepolia = exports.spicy = exports.sovaSepolia = exports.sova = exports.sophonTestnet = exports.sophon = exports.sonicTestnet = exports.sonicBlazeTestnet = exports.sonic = exports.songbirdTestnet = exports.songbird = exports.soneiumMinato = exports.soneium = exports.somniaTestnet = exports.snaxTestnet = exports.snax = exports.sketchpad = exports.skaleTitanTestnet = exports.skaleTitan = exports.skaleRazor = exports.skaleNebulaTestnet = exports.skaleNebula = exports.skaleHumanProtocol = exports.skaleExorde = exports.skaleEuropaTestnet = exports.skaleEuropa = exports.skaleCryptoColosseum = exports.skaleCryptoBlades = exports.skaleCalypsoTestnet = exports.skaleCalypso = exports.skaleBlockBrawlers = exports.sixProtocol = exports.siliconSepolia = exports.silicon = exports.silentData = exports.sidraChain = exports.shimmerTestnet = exports.shimmer = void 0;
14
+ exports.vanar = exports.vanaMoksha = exports.vana = exports.unreal = exports.uniqueQuartz = exports.uniqueOpal = exports.unique = exports.unichainSepolia = exports.unichain = exports.ultronTestnet = exports.ultron = exports.ultraTestnet = exports.ultra = exports.ubiq = exports.tronShasta = exports.tronNile = exports.tron = exports.treasureTopaz = exports.treasure = exports.tomb = exports.tiktrixTestnet = exports.thunderTestnet = exports.thunderCore = exports.thetaTestnet = exports.theta = exports.that = exports.thaiChain = exports.ternoa = exports.tenet = exports.telosTestnet = exports.telos = exports.telcoinTestnet = exports.teaSepolia = exports.taraxaTestnet = exports.taraxa = exports.taikoTestnetSepolia = exports.taikoKatla = exports.taikoJolnir = exports.taikoHekla = exports.taiko = exports.tacSPB = exports.tac = exports.syscoinTestnet = exports.syscoin = exports.swissdlt = exports.swellchainTestnet = exports.swellchain = exports.swanSaturnTestnet = exports.swanProximaTestnet = exports.swan = void 0;
15
+ exports.zkLinkNovaSepoliaTestnet = exports.zkLinkNova = exports.zkFairTestnet = exports.zkFair = exports.zircuitTestnet = exports.zircuitGarfieldTestnet = exports.zircuit = exports.zilliqaTestnet = exports.zilliqa = exports.zhejiang = exports.zetachainAthensTestnet = exports.zetachain = exports.zeroNetwork = exports.zeniq = exports.zenchainTestnet = exports.yooldoVerseTestnet = exports.yooldoVerse = exports.xrSepolia = exports.xrplevmTestnet = exports.xrplevmDevnet = exports.xrOne = exports.xphereTestnet = exports.xphereMainnet = exports.xoneTestnet = exports.xoneMainnet = exports.xLayerTestnet = exports.x1Testnet = exports.xLayer = exports.xdcTestnet = exports.xdc = exports.xaiTestnet = exports.xai = exports.worldLand = exports.worldchainSepolia = exports.worldchain = exports.wmcTestnet = exports.whitechainTestnet = exports.whitechain = exports.westendAssetHub = exports.wemixTestnet = exports.wemix = exports.weaveVMAlphanet = exports.wanchainTestnet = exports.wanchain = exports.visionTestnet = exports.vision = exports.victionTestnet = exports.viction = exports.velas = exports.vechain = void 0;
16
+ exports.zoraTestnet = exports.zoraSepolia = exports.zora = exports.zksyncSepoliaTestnet = exports.zkSyncSepoliaTestnet = exports.zksyncLocalNode = exports.zkSyncLocalNode = exports.zksyncLocalHyperchainL1 = exports.zksyncLocalHyperchain = exports.zksyncLocalCustomHyperchain = exports.zksyncInMemoryNode = exports.zkSyncInMemoryNode = exports.zksync = exports.zkSync = void 0;
17
17
  var _0g_js_1 = require("./definitions/0g.js");
18
18
  Object.defineProperty(exports, "zeroG", { enumerable: true, get: function () { return _0g_js_1.zeroG; } });
19
19
  var _0gGalileoTestnet_js_1 = require("./definitions/0gGalileoTestnet.js");
@@ -362,6 +362,8 @@ var eteria_js_1 = require("./definitions/eteria.js");
362
362
  Object.defineProperty(exports, "eteria", { enumerable: true, get: function () { return eteria_js_1.eteria; } });
363
363
  var etherlink_js_1 = require("./definitions/etherlink.js");
364
364
  Object.defineProperty(exports, "etherlink", { enumerable: true, get: function () { return etherlink_js_1.etherlink; } });
365
+ var etherlinkShadownetTestnet_js_1 = require("./definitions/etherlinkShadownetTestnet.js");
366
+ Object.defineProperty(exports, "etherlinkShadownetTestnet", { enumerable: true, get: function () { return etherlinkShadownetTestnet_js_1.etherlinkShadownetTestnet; } });
365
367
  var etherlinkTestnet_js_1 = require("./definitions/etherlinkTestnet.js");
366
368
  Object.defineProperty(exports, "etherlinkTestnet", { enumerable: true, get: function () { return etherlinkTestnet_js_1.etherlinkTestnet; } });
367
369
  var ethernity_js_1 = require("./definitions/ethernity.js");
@@ -768,6 +770,8 @@ var mode_js_1 = require("./definitions/mode.js");
768
770
  Object.defineProperty(exports, "mode", { enumerable: true, get: function () { return mode_js_1.mode; } });
769
771
  var modeTestnet_js_1 = require("./definitions/modeTestnet.js");
770
772
  Object.defineProperty(exports, "modeTestnet", { enumerable: true, get: function () { return modeTestnet_js_1.modeTestnet; } });
773
+ var monad_js_1 = require("./definitions/monad.js");
774
+ Object.defineProperty(exports, "monad", { enumerable: true, get: function () { return monad_js_1.monad; } });
771
775
  var monadTestnet_js_1 = require("./definitions/monadTestnet.js");
772
776
  Object.defineProperty(exports, "monadTestnet", { enumerable: true, get: function () { return monadTestnet_js_1.monadTestnet; } });
773
777
  var moonbaseAlpha_js_1 = require("./definitions/moonbaseAlpha.js");