viem 2.39.3 → 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 (77) hide show
  1. package/CHANGELOG.md +16 -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/monad.js +15 -3
  11. package/_cjs/chains/definitions/monad.js.map +1 -1
  12. package/_cjs/clients/decorators/public.js +2 -0
  13. package/_cjs/clients/decorators/public.js.map +1 -1
  14. package/_cjs/clients/decorators/wallet.js +2 -0
  15. package/_cjs/clients/decorators/wallet.js.map +1 -1
  16. package/_cjs/errors/request.js +28 -0
  17. package/_cjs/errors/request.js.map +1 -1
  18. package/_cjs/errors/version.js +1 -1
  19. package/_cjs/index.js.map +1 -1
  20. package/_cjs/utils/transaction/assertRequest.js +1 -6
  21. package/_cjs/utils/transaction/assertRequest.js.map +1 -1
  22. package/_esm/accounts/mnemonicToAccount.js +3 -3
  23. package/_esm/accounts/mnemonicToAccount.js.map +1 -1
  24. package/_esm/actions/index.js +1 -0
  25. package/_esm/actions/index.js.map +1 -1
  26. package/_esm/actions/public/fillTransaction.js +145 -0
  27. package/_esm/actions/public/fillTransaction.js.map +1 -0
  28. package/_esm/actions/wallet/prepareTransactionRequest.js +49 -11
  29. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  30. package/_esm/chains/definitions/monad.js +15 -3
  31. package/_esm/chains/definitions/monad.js.map +1 -1
  32. package/_esm/clients/decorators/public.js +2 -0
  33. package/_esm/clients/decorators/public.js.map +1 -1
  34. package/_esm/clients/decorators/wallet.js +2 -0
  35. package/_esm/clients/decorators/wallet.js.map +1 -1
  36. package/_esm/errors/request.js +28 -0
  37. package/_esm/errors/request.js.map +1 -1
  38. package/_esm/errors/version.js +1 -1
  39. package/_esm/index.js.map +1 -1
  40. package/_esm/utils/transaction/assertRequest.js +1 -6
  41. package/_esm/utils/transaction/assertRequest.js.map +1 -1
  42. package/_types/accounts/mnemonicToAccount.d.ts +4 -2
  43. package/_types/accounts/mnemonicToAccount.d.ts.map +1 -1
  44. package/_types/actions/index.d.ts +1 -0
  45. package/_types/actions/index.d.ts.map +1 -1
  46. package/_types/actions/public/fillTransaction.d.ts +49 -0
  47. package/_types/actions/public/fillTransaction.d.ts.map +1 -0
  48. package/_types/actions/wallet/prepareTransactionRequest.d.ts +1 -1
  49. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  50. package/_types/chains/definitions/monad.d.ts +15 -12
  51. package/_types/chains/definitions/monad.d.ts.map +1 -1
  52. package/_types/clients/decorators/public.d.ts +25 -0
  53. package/_types/clients/decorators/public.d.ts.map +1 -1
  54. package/_types/clients/decorators/wallet.d.ts +25 -0
  55. package/_types/clients/decorators/wallet.d.ts.map +1 -1
  56. package/_types/errors/request.d.ts +4 -0
  57. package/_types/errors/request.d.ts.map +1 -1
  58. package/_types/errors/version.d.ts +1 -1
  59. package/_types/index.d.ts +1 -0
  60. package/_types/index.d.ts.map +1 -1
  61. package/_types/types/eip1193.d.ts +30 -0
  62. package/_types/types/eip1193.d.ts.map +1 -1
  63. package/_types/utils/transaction/assertRequest.d.ts +1 -1
  64. package/_types/utils/transaction/assertRequest.d.ts.map +1 -1
  65. package/accounts/mnemonicToAccount.ts +6 -4
  66. package/actions/index.ts +6 -0
  67. package/actions/public/fillTransaction.ts +250 -0
  68. package/actions/wallet/prepareTransactionRequest.ts +76 -10
  69. package/chains/definitions/monad.ts +15 -3
  70. package/clients/decorators/public.ts +40 -0
  71. package/clients/decorators/wallet.ts +40 -0
  72. package/errors/request.ts +8 -1
  73. package/errors/version.ts +1 -1
  74. package/index.ts +5 -0
  75. package/package.json +1 -1
  76. package/types/eip1193.ts +30 -0
  77. package/utils/transaction/assertRequest.ts +2 -17
@@ -5,19 +5,14 @@ const parseAccount_js_1 = require("../../accounts/utils/parseAccount.js");
5
5
  const number_js_1 = require("../../constants/number.js");
6
6
  const address_js_1 = require("../../errors/address.js");
7
7
  const node_js_1 = require("../../errors/node.js");
8
- const transaction_js_1 = require("../../errors/transaction.js");
9
8
  const isAddress_js_1 = require("../address/isAddress.js");
10
9
  function assertRequest(args) {
11
- const { account: account_, gasPrice, maxFeePerGas, maxPriorityFeePerGas, to, } = args;
10
+ const { account: account_, maxFeePerGas, maxPriorityFeePerGas, to } = args;
12
11
  const account = account_ ? (0, parseAccount_js_1.parseAccount)(account_) : undefined;
13
12
  if (account && !(0, isAddress_js_1.isAddress)(account.address))
14
13
  throw new address_js_1.InvalidAddressError({ address: account.address });
15
14
  if (to && !(0, isAddress_js_1.isAddress)(to))
16
15
  throw new address_js_1.InvalidAddressError({ address: to });
17
- if (typeof gasPrice !== 'undefined' &&
18
- (typeof maxFeePerGas !== 'undefined' ||
19
- typeof maxPriorityFeePerGas !== 'undefined'))
20
- throw new transaction_js_1.FeeConflictError();
21
16
  if (maxFeePerGas && maxFeePerGas > number_js_1.maxUint256)
22
17
  throw new node_js_1.FeeCapTooHighError({ maxFeePerGas });
23
18
  if (maxPriorityFeePerGas &&
@@ -1 +1 @@
1
- {"version":3,"file":"assertRequest.js","sourceRoot":"","sources":["../../../utils/transaction/assertRequest.ts"],"names":[],"mappings":";;AAqCA,sCA2BC;AAhED,0EAG6C;AAE7C,yDAAsD;AACtD,wDAGgC;AAChC,kDAK6B;AAC7B,gEAGoC;AAIpC,0DAAmD;AAcnD,SAAgB,aAAa,CAAC,IAA6B;IACzD,MAAM,EACJ,OAAO,EAAE,QAAQ,EACjB,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,EAAE,GACH,GAAG,I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AC,SAAS,CAAA;IAC7D,IAAI,OAAO,IAAI,CAAC,IAAA,wBAAS,EAAC,OAAO,CAAC,OAAO,CAAC;QACxC,MAAM,IAAI,gCAAmB,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;IAC7D,IAAI,EAAE,IAAI,CAAC,IAAA,wBAAS,EAAC,EAAE,CAAC;QAAE,MAAM,IAAI,gCAAmB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;IAExE,IAAI,YAAY,IAAI,YAAY,GAAG,sBAAU;QAC3C,MAAM,IAAI,4BAAkB,CAAC,EAAE,YAAY,EAAE,CAAC,CAAA;IAChD,IACE,oBAAoB;QACpB,YAAY;QACZ,oBAAoB,GAAG,YAAY;QAEnC,MAAM,IAAI,6BAAmB,CAAC,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC,CAAA;AACzE,CAAC"}
@@ -6,8 +6,8 @@ import { hdKeyToAccount, } from './hdKeyToAccount.js';
6
6
  *
7
7
  * @returns A HD Account.
8
8
  */
9
- export function mnemonicToAccount(mnemonic, opts = {}) {
10
- const seed = mnemonicToSeedSync(mnemonic);
11
- return hdKeyToAccount(HDKey.fromMasterSeed(seed), opts);
9
+ export function mnemonicToAccount(mnemonic, { passphrase, ...hdKeyOpts } = {}) {
10
+ const seed = mnemonicToSeedSync(mnemonic, passphrase);
11
+ return hdKeyToAccount(HDKey.fromMasterSeed(seed), hdKeyOpts);
12
12
  }
13
13
  //# sourceMappingURL=mnemonicToAccount.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mnemonicToAccount.js","sourceRoot":"","sources":["../../accounts/mnemonicToAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGjD,OAAO,EAGL,cAAc,GACf,MAAM,qBAAqB,CAAA;AAO5B;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC/B,QAAgB,EAChB,OAAiC,EAAE;IAEnC,MAAM,IAAI,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAA;IACzC,OAAO,cAAc,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;AACzD,CAAC"}
1
+ {"version":3,"file":"mnemonicToAccount.js","sourceRoot":"","sources":["../../accounts/mnemonicToAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGjD,OAAO,EAGL,cAAc,GACf,MAAM,qBAAqB,CAAA;AAS5B;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC/B,QAAgB,EAChB,EAAE,UAAU,EAAE,GAAG,SAAS,KAA+B,EAAE;IAE3D,MAAM,IAAI,GAAG,kBAAkB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;IACrD,OAAO,cAAc,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,CAAA;AAC9D,CAAC"}
@@ -14,6 +14,7 @@ export { estimateContractGas, } from './public/estimateContractGas.js';
14
14
  export { estimateFeesPerGas, } from './public/estimateFeesPerGas.js';
15
15
  export { estimateGas, } from './public/estimateGas.js';
16
16
  export { estimateMaxPriorityFeePerGas, } from './public/estimateMaxPriorityFeePerGas.js';
17
+ export { fillTransaction, } from './public/fillTransaction.js';
17
18
  export { getBalance, } from './public/getBalance.js';
18
19
  export { getBlobBaseFee, } from './public/getBlobBaseFee.js';
19
20
  export { getBlock, } from './public/getBlock.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAIL,aAAa,GACd,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAIL,YAAY,GACb,MAAM,uBAAuB,CAAA;AAC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MAAM,2BAA2B,CAAA;AAClC,OAAO,EAIL,iBAAiB,GAClB,MAAM,+BAA+B,CAAA"}
@@ -0,0 +1,145 @@
1
+ import { parseAccount } from '../../accounts/utils/parseAccount.js';
2
+ import { BaseFeeScalarError } from '../../errors/fee.js';
3
+ import { getTransactionError, } from '../../utils/errors/getTransactionError.js';
4
+ import { extract } from '../../utils/formatters/extract.js';
5
+ import { formatTransaction, } from '../../utils/formatters/transaction.js';
6
+ import { formatTransactionRequest, } from '../../utils/formatters/transactionRequest.js';
7
+ import { getAction } from '../../utils/getAction.js';
8
+ import { assertRequest } from '../../utils/transaction/assertRequest.js';
9
+ import { getBlock } from './getBlock.js';
10
+ import { getChainId as getChainId_ } from './getChainId.js';
11
+ /**
12
+ * Fills a transaction request with the necessary fields to be signed over.
13
+ *
14
+ * - Docs: https://viem.sh/docs/actions/public/fillTransaction
15
+ *
16
+ * @param client - Client to use
17
+ * @param parameters - {@link FillTransactionParameters}
18
+ * @returns The filled transaction. {@link FillTransactionReturnType}
19
+ *
20
+ * @example
21
+ * import { createPublicClient, http } from 'viem'
22
+ * import { mainnet } from 'viem/chains'
23
+ * import { fillTransaction } from 'viem/public'
24
+ *
25
+ * const client = createPublicClient({
26
+ * chain: mainnet,
27
+ * transport: http(),
28
+ * })
29
+ * const result = await fillTransaction(client, {
30
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
31
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
32
+ * value: parseEther('1'),
33
+ * })
34
+ */
35
+ export async function fillTransaction(client, parameters) {
36
+ 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;
37
+ const nonce = await (async () => {
38
+ if (!account)
39
+ return nonce_;
40
+ if (!nonceManager)
41
+ return nonce_;
42
+ const account_ = parseAccount(account);
43
+ const chainId = chain
44
+ ? chain.id
45
+ : await getAction(client, getChainId_, 'getChainId')({});
46
+ return await nonceManager.consume({
47
+ address: account_.address,
48
+ chainId,
49
+ client,
50
+ });
51
+ })();
52
+ assertRequest(parameters);
53
+ const chainFormat = chain?.formatters?.transactionRequest?.format;
54
+ const format = chainFormat || formatTransactionRequest;
55
+ const request = format({
56
+ // Pick out extra data that might exist on the chain's transaction request type.
57
+ ...extract(rest, { format: chainFormat }),
58
+ account: account ? parseAccount(account) : undefined,
59
+ accessList,
60
+ authorizationList,
61
+ blobs,
62
+ blobVersionedHashes,
63
+ data,
64
+ gas,
65
+ gasPrice,
66
+ maxFeePerBlobGas,
67
+ maxFeePerGas,
68
+ maxPriorityFeePerGas,
69
+ nonce,
70
+ to,
71
+ type,
72
+ value,
73
+ }, 'fillTransaction');
74
+ try {
75
+ const response = await client.request({
76
+ method: 'eth_fillTransaction',
77
+ params: [request],
78
+ });
79
+ const format = chain?.formatters?.transaction?.format || formatTransaction;
80
+ const transaction = format(response.tx);
81
+ // Remove unnecessary fields.
82
+ delete transaction.blockHash;
83
+ delete transaction.blockNumber;
84
+ delete transaction.r;
85
+ delete transaction.s;
86
+ delete transaction.transactionIndex;
87
+ delete transaction.v;
88
+ delete transaction.yParity;
89
+ // Rewrite fields.
90
+ transaction.data = transaction.input;
91
+ // Preference supplied fees (some nodes do not take these preferences).
92
+ if (transaction.gas)
93
+ transaction.gas = parameters.gas ?? transaction.gas;
94
+ if (transaction.gasPrice)
95
+ transaction.gasPrice = parameters.gasPrice ?? transaction.gasPrice;
96
+ if (transaction.maxFeePerBlobGas)
97
+ transaction.maxFeePerBlobGas =
98
+ parameters.maxFeePerBlobGas ?? transaction.maxFeePerBlobGas;
99
+ if (transaction.maxFeePerGas)
100
+ transaction.maxFeePerGas =
101
+ parameters.maxFeePerGas ?? transaction.maxFeePerGas;
102
+ if (transaction.maxPriorityFeePerGas)
103
+ transaction.maxPriorityFeePerGas =
104
+ parameters.maxPriorityFeePerGas ?? transaction.maxPriorityFeePerGas;
105
+ if (transaction.nonce)
106
+ transaction.nonce = parameters.nonce ?? transaction.nonce;
107
+ // Build fee multiplier function.
108
+ const feeMultiplier = await (async () => {
109
+ if (typeof chain?.fees?.baseFeeMultiplier === 'function') {
110
+ const block = await getAction(client, getBlock, 'getBlock')({});
111
+ return chain.fees.baseFeeMultiplier({
112
+ block,
113
+ client,
114
+ request: parameters,
115
+ });
116
+ }
117
+ return chain?.fees?.baseFeeMultiplier ?? 1.2;
118
+ })();
119
+ if (feeMultiplier < 1)
120
+ throw new BaseFeeScalarError();
121
+ const decimals = feeMultiplier.toString().split('.')[1]?.length ?? 0;
122
+ const denominator = 10 ** decimals;
123
+ const multiplyFee = (base) => (base * BigInt(Math.ceil(feeMultiplier * denominator))) /
124
+ BigInt(denominator);
125
+ // Apply fee multiplier.
126
+ if (transaction.maxFeePerGas && !parameters.maxFeePerGas)
127
+ transaction.maxFeePerGas = multiplyFee(transaction.maxFeePerGas);
128
+ if (transaction.gasPrice && !parameters.gasPrice)
129
+ transaction.gasPrice = multiplyFee(transaction.gasPrice);
130
+ return {
131
+ raw: response.raw,
132
+ transaction: {
133
+ from: request.from,
134
+ ...transaction,
135
+ },
136
+ };
137
+ }
138
+ catch (err) {
139
+ throw getTransactionError(err, {
140
+ ...parameters,
141
+ chain: client.chain,
142
+ });
143
+ }
144
+ }
145
+ //# sourceMappingURL=fillTransaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fillTransaction.js","sourceRoot":"","sources":["../../../actions/public/fillTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AAInE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAYxD,OAAO,EAEL,mBAAmB,GACpB,MAAM,2CAA2C,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAA;AAC3D,OAAO,EAEL,iBAAiB,GAClB,MAAM,uCAAuC,CAAA;AAC9C,O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GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,CAAC,CAAA;QACpE,MAAM,WAAW,GAAG,EAAE,IAAI,QAAQ,CAAA;QAClC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,EAAE,CACnC,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,CAAC,CAAC;YACvD,MAAM,CAAC,WAAW,CAAC,CAAA;QAErB,wBAAwB;QACxB,IAAI,WAAW,CAAC,YAAY,IAAI,CAAC,UAAU,CAAC,YAAY;YACtD,WAAW,CAAC,YAAY,GAAG,WAAW,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;QAClE,IAAI,WAAW,CAAC,QAAQ,IAAI,CAAC,UAAU,CAAC,QAAQ;YAC9C,WAAW,CAAC,QAAQ,GAAG,WAAW,CAAC,WAAW,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,mBAAmB,CACvB,GAAgB,EAChB;YACE,GAAG,UAAU;YACb,KAAK,EAAE,MAAM,CAAC,KAAK;SACX,CACX,CAAA;IACH,CAAC;AACH,CAAC"}
@@ -9,8 +9,10 @@ import { blobsToProofs } from '../../utils/blob/blobsToProofs.js';
9
9
  import { commitmentsToVersionedHashes } from '../../utils/blob/commitmentsToVersionedHashes.js';
10
10
  import { toBlobSidecars } from '../../utils/blob/toBlobSidecars.js';
11
11
  import { getAction } from '../../utils/getAction.js';
12
+ import { LruMap } from '../../utils/lru.js';
12
13
  import { assertRequest, } from '../../utils/transaction/assertRequest.js';
13
14
  import { getTransactionType, } from '../../utils/transaction/getTransactionType.js';
15
+ import { fillTransaction, } from '../public/fillTransaction.js';
14
16
  import { getChainId as getChainId_ } from '../public/getChainId.js';
15
17
  export const defaultParameters = [
16
18
  'blobVersionedHashes',
@@ -22,6 +24,7 @@ export const defaultParameters = [
22
24
  ];
23
25
  /** @internal */
24
26
  export const eip1559NetworkCache = /*#__PURE__*/ new Map();
27
+ const supportsFillTransaction = /*#__PURE__*/ new LruMap(128);
25
28
  /**
26
29
  * Prepares a transaction request for signing.
27
30
  *
@@ -62,10 +65,45 @@ export const eip1559NetworkCache = /*#__PURE__*/ new Map();
62
65
  * value: 1n,
63
66
  * })
64
67
  */
65
- export async function prepareTransactionRequest(client, args) {
66
- const { account: account_ = client.account, blobs, chain, gas, kzg, nonce, nonceManager, parameters = defaultParameters, type, } = args;
68
+ export async function prepareTransactionRequest(client, args_) {
69
+ const attemptFill =
70
+ // Do not attempt if `eth_fillTransaction` is not supported.
71
+ supportsFillTransaction.get(client.uid) !== false &&
72
+ // Should attempt `eth_fillTransaction` if "fees" or "gas" are required to be populated,
73
+ // otherwise, can just use the other individual calls.
74
+ ['fees', 'gas'].some((parameter) => args_.parameters?.includes(parameter));
75
+ const fillResult = attemptFill
76
+ ? await getAction(client, fillTransaction, 'fillTransaction')(args_)
77
+ .then((result) => {
78
+ const { chainId, from, gas, gasPrice, nonce, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, type, } = result.transaction;
79
+ supportsFillTransaction.set(client.uid, true);
80
+ return {
81
+ ...args_,
82
+ chainId,
83
+ from,
84
+ gas,
85
+ gasPrice,
86
+ nonce,
87
+ maxFeePerBlobGas,
88
+ maxFeePerGas,
89
+ maxPriorityFeePerGas,
90
+ type,
91
+ };
92
+ })
93
+ .catch((e) => {
94
+ const error = e;
95
+ if (error.cause.name === 'MethodNotFoundRpcError' ||
96
+ error.cause.name === 'MethodNotSupportedRpcError')
97
+ supportsFillTransaction.set(client.uid, false);
98
+ return args_;
99
+ })
100
+ : args_;
101
+ const { account: account_ = client.account, blobs, chain, gas, kzg, nonce, nonceManager, parameters = defaultParameters, type, } = fillResult;
67
102
  const account = account_ ? parseAccount(account_) : account_;
68
- const request = { ...args, ...(account ? { from: account?.address } : {}) };
103
+ const request = {
104
+ ...fillResult,
105
+ ...(account ? { from: account?.address } : {}),
106
+ };
69
107
  let block;
70
108
  async function getBlock() {
71
109
  if (block)
@@ -79,8 +117,8 @@ export async function prepareTransactionRequest(client, args) {
79
117
  return chainId;
80
118
  if (chain)
81
119
  return chain.id;
82
- if (typeof args.chainId !== 'undefined')
83
- return args.chainId;
120
+ if (typeof request.chainId !== 'undefined')
121
+ return request.chainId;
84
122
  const chainId_ = await getAction(client, getChainId_, 'getChainId')({});
85
123
  chainId = chainId_;
86
124
  return chainId;
@@ -153,9 +191,9 @@ export async function prepareTransactionRequest(client, args) {
153
191
  chain,
154
192
  request: request,
155
193
  });
156
- if (typeof args.maxPriorityFeePerGas === 'undefined' &&
157
- args.maxFeePerGas &&
158
- args.maxFeePerGas < maxPriorityFeePerGas)
194
+ if (typeof request.maxPriorityFeePerGas === 'undefined' &&
195
+ request.maxFeePerGas &&
196
+ request.maxFeePerGas < maxPriorityFeePerGas)
159
197
  throw new MaxFeePerGasTooLowError({
160
198
  maxPriorityFeePerGas,
161
199
  });
@@ -165,10 +203,10 @@ export async function prepareTransactionRequest(client, args) {
165
203
  }
166
204
  else {
167
205
  // Legacy fees
168
- if (typeof args.maxFeePerGas !== 'undefined' ||
169
- typeof args.maxPriorityFeePerGas !== 'undefined')
206
+ if (typeof request.maxFeePerGas !== 'undefined' ||
207
+ typeof request.maxPriorityFeePerGas !== 'undefined')
170
208
  throw new Eip1559FeesNotSupportedError();
171
- if (typeof args.gasPrice === 'undefined') {
209
+ if (typeof request.gasPrice === 'undefined') {
172
210
  const block = await getBlock();
173
211
  const { gasPrice: gasPrice_ } = await internal_estimateFeesPerGas(client, {
174
212
  block: block,
@@ -1 +1 @@
1
- {"version":3,"file":"prepareTransactionRequest.js","sourceRoot":"","sources":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,CAAA;AACvB,CAAC"}
1
+ {"version":3,"file":"prepareTransactionRequest.js","sourceRoot":"","sources":["../../../actions/wallet/prepareTransactionRequest.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,YAAY,GACb,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAEL,2BAA2B,GAC5B,MAAM,4CAA4C,CAAA;AACnD,OAAO,EAGL,WAAW,GACZ,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAEL,QAAQ,IAAI,SAAS,GACtB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAEL,mBAAmB,GACpB,MAAM,6CAA6C,CAAA;AAKpD,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,qBAAqB,CAAA;AAyB5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAA;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C,OAAO,EAGL,aAAa,GACd,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAEL,kBAAkB,GACnB,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAEL,eAAe,GAChB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,UAAU,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEnE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,qBAAqB;IACrB,SAAS;IACT,MAAM;IACN,KAAK;IACL,OAAO;IACP,MAAM;CACE,CAAA;AAEV,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,IAAI,GAAG,EAAmB,CAAA;AAE3E,MAAM,uBAAuB,GAAG,aAAa,C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AAI,KAAK,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC;SACzC,CAAC,CAAA;IAE7B,aAAa,CAAC,OAAkC,CAAC,CAAA;IAEjD,OAAO,OAAO,CAAC,UAAU,CAAA;IAEzB,OAAO,OAAc,CAAA;AACvB,CAAC"}
@@ -10,15 +10,27 @@ export const monad = /*#__PURE__*/ defineChain({
10
10
  },
11
11
  rpcUrls: {
12
12
  default: {
13
- http: ['https://rpc.monad.xyz'],
13
+ http: ['https://rpc.monad.xyz', 'https://rpc1.monad.xyz'],
14
+ webSocket: ['wss://rpc.monad.xyz', 'wss://rpc1.monad.xyz'],
14
15
  },
15
16
  },
16
17
  blockExplorers: {
17
18
  default: {
18
- name: 'Monvision',
19
- url: 'https://mainnet-beta.monvision.io',
19
+ name: 'MonadVision',
20
+ url: 'https://monadvision.com',
21
+ },
22
+ monadscan: {
23
+ name: 'Monadscan',
24
+ url: 'https://monadscan.com',
25
+ apiUrl: 'https://api.monadscan.com/api',
20
26
  },
21
27
  },
22
28
  testnet: false,
29
+ contracts: {
30
+ multicall3: {
31
+ address: '0xcA11bde05977b3631167028862bE2a173976CA11',
32
+ blockCreated: 9248132,
33
+ },
34
+ },
23
35
  });
24
36
  //# sourceMappingURL=monad.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"monad.js","sourceRoot":"","sources":["../../../chains/definitions/monad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,KAAK,GAAG,aAAa,CAAC,WAAW,CAAC;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,CAAC;SAChC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,WAAW;YACjB,GAAG,EAAE,mCAAmC;SACzC;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC,CAAA"}
1
+ {"version":3,"file":"monad.js","sourceRoot":"","sources":["../../../chains/definitions/monad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,KAAK,GAAG,aAAa,CAAC,WAAW,CAAC;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"}
@@ -13,6 +13,7 @@ import { estimateContractGas, } from '../../actions/public/estimateContractGas.j
13
13
  import { estimateFeesPerGas, } from '../../actions/public/estimateFeesPerGas.js';
14
14
  import { estimateGas, } from '../../actions/public/estimateGas.js';
15
15
  import { estimateMaxPriorityFeePerGas, } from '../../actions/public/estimateMaxPriorityFeePerGas.js';
16
+ import { fillTransaction, } from '../../actions/public/fillTransaction.js';
16
17
  import { getBalance, } from '../../actions/public/getBalance.js';
17
18
  import { getBlobBaseFee, } from '../../actions/public/getBlobBaseFee.js';
18
19
  import { getBlock, } from '../../actions/public/getBlock.js';
@@ -85,6 +86,7 @@ export function publicActions(client) {
85
86
  getLogs: (args) => getLogs(client, args),
86
87
  getProof: (args) => getProof(client, args),
87
88
  estimateMaxPriorityFeePerGas: (args) => estimateMaxPriorityFeePerGas(client, args),
89
+ fillTransaction: (args) => fillTransaction(client, args),
88
90
  getStorageAt: (args) => getStorageAt(client, args),
89
91
  getTransaction: (args) => getTransaction(client, args),
90
92
  getTransactionConfirmations: (args) => getTransactionConfirmations(client, args),
@@ -1 +1 @@
1
- {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../clients/decorators/public.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,aAAa,GACd,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAGL,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAGL,UAAU,GACX,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAGL,cAAc,GACf,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAGL,UAAU,GACX,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAGL,IAAI,GACL,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAGL,gBAAgB,GACjB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAEL,iBAAiB,GAClB,MAAM,2CAA2C,CAAA;AAClD,OAAO,EAGL,yBAAyB,GAC1B,MAAM,mDAAmD,CAAA;AAC1D,OAAO,EAGL,iBAAiB,GAClB,MAAM,2CAA2C,CAAA;AAClD,OAAO,EAEL,8BAA8B,GAC/B,MAAM,wDAAwD,CAAA;AAC/D,OAAO,EAGL,mBAAmB,GACpB,MAAM,6CAA6C,CAAA;AACpD,OAAO,EAGL,kBAAkB,GACnB,MAAM,4CAA4C,CAAA;AACnD,OAAO,EAGL,WAAW,GACZ,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAGL,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/getChainId.js';
2
3
  import { addChain, } from '../../actions/wallet/addChain.js';
3
4
  import { deployContract, } from '../../actions/wallet/deployContract.js';
@@ -29,6 +30,7 @@ export function walletActions(client) {
29
30
  return {
30
31
  addChain: (args) => addChain(client, args),
31
32
  deployContract: (args) => deployContract(client, args),
33
+ fillTransaction: (args) => fillTransaction(client, args),
32
34
  getAddresses: () => getAddresses(client),
33
35
  getCallsStatus: (args) => getCallsStatus(client, args),
34
36
  getCapabilities: (args) => getCapabilities(client, args),
@@ -1 +1 @@
1
- {"version":3,"file":"wallet.js","sourceRoot":"","sources":["../../../clients/decorators/wallet.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,UAAU,GACX,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAEL,QAAQ,GACT,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAGL,cAAc,GACf,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAEL,YAAY,GACb,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAGL,cAAc,GACf,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAGL,eAAe,GAChB,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAEL,cAAc,GACf,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAGL,oBAAoB,GACrB,MAAM,8CAA8C,CAAA;AACrD,OAAO,EAIL,yBAAyB,GAC1B,MAAM,mDAAmD,CAAA;AAC1D,OAAO,EAEL,gBAAgB,GACjB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAGL,kBAAkB,GACnB,MAAM,4CAA4C,CAAA;AACnD,OAAO,EAGL,SAAS,GACV,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAGL,aAAa,GACd,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAGL,kBAAkB,GACnB,MAAM,4CAA4C,CAAA;AACnD,OAAO,EAGL,sBAAsB,GACvB,MAAM,gDAAgD,CAAA;AACvD,OAAO,EAIL,eAAe,GAChB,MAAM,yCAAyC,CAAA;AAChD,O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,IAAI,CAAC;QAChD,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC;QACxD,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC;QACpD,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC;QAChD,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,MAAM,EAAE,IAAI,CAAC;QAC9D,UAAU,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC;QAC9C,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,IAAW,CAAC;QAC3D,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,MAAM,EAAE,IAAW,CAAC;KACpE,CAAA;AACH,CAAC"}
@@ -54,6 +54,13 @@ export class WebSocketRequestError extends BaseError {
54
54
  ].filter(Boolean),
55
55
  name: 'WebSocketRequestError',
56
56
  });
57
+ Object.defineProperty(this, "url", {
58
+ enumerable: true,
59
+ configurable: true,
60
+ writable: true,
61
+ value: void 0
62
+ });
63
+ this.url = url;
57
64
  }
58
65
  }
59
66
  export class RpcRequestError extends BaseError {
@@ -76,8 +83,15 @@ export class RpcRequestError extends BaseError {
76
83
  writable: true,
77
84
  value: void 0
78
85
  });
86
+ Object.defineProperty(this, "url", {
87
+ enumerable: true,
88
+ configurable: true,
89
+ writable: true,
90
+ value: void 0
91
+ });
79
92
  this.code = error.code;
80
93
  this.data = error.data;
94
+ this.url = url;
81
95
  }
82
96
  }
83
97
  export class SocketClosedError extends BaseError {
@@ -86,6 +100,13 @@ export class SocketClosedError extends BaseError {
86
100
  metaMessages: [url && `URL: ${getUrl(url)}`].filter(Boolean),
87
101
  name: 'SocketClosedError',
88
102
  });
103
+ Object.defineProperty(this, "url", {
104
+ enumerable: true,
105
+ configurable: true,
106
+ writable: true,
107
+ value: void 0
108
+ });
109
+ this.url = url;
89
110
  }
90
111
  }
91
112
  export class TimeoutError extends BaseError {
@@ -95,6 +116,13 @@ export class TimeoutError extends BaseError {
95
116
  metaMessages: [`URL: ${getUrl(url)}`, `Request body: ${stringify(body)}`],
96
117
  name: 'TimeoutError',
97
118
  });
119
+ Object.defineProperty(this, "url", {
120
+ enumerable: true,
121
+ configurable: true,
122
+ writable: true,
123
+ value: void 0
124
+ });
125
+ this.url = url;
98
126
  }
99
127
  }
100
128
  //# sourceMappingURL=request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../errors/request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAKnC,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAM7C,YAAY,EACV,IAAI,EACJ,KAAK,EACL,OAAO,EACP,OAAO,EACP,MAAM,EACN,GAAG,GAQJ;QACC,KAAK,CAAC,sBAAsB,EAAE;YAC5B,KAAK;YACL,OAAO;YACP,YAAY,EAAE;gBACZ,MAAM,IAAI,WAAW,MAAM,EAAE;gBAC7B,QAAQ,MAAM,CAAC,GAAG,CAAC,EAAE;gBACrB,IAAI,IAAI,iBAAiB,SAAS,CAAC,IAAI,CAAC,EAAE;aAC3C,CAAC,MAAM,CAAC,OAAO,CAAa;YAC7B,IAAI,EAAE,kBAAkB;SACzB,CAAC,CAAA;QA7BJ;;;;;WAAwE;QACxE;;;;;WAA6B;QAC7B;;;;;WAA2B;QAC3B;;;;;WAAW;QA2BT,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAA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