viem 2.28.0-canary-20250421235327 → 2.28.0-canary-20250422025603

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 (97) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/_cjs/actions/index.js +12 -1
  3. package/_cjs/actions/index.js.map +1 -1
  4. package/_cjs/{experimental/eip5792/actions → actions/wallet}/getCallsStatus.js +2 -2
  5. package/_cjs/actions/wallet/getCallsStatus.js.map +1 -0
  6. package/_cjs/{experimental/eip5792/actions → actions/wallet}/getCapabilities.js +1 -1
  7. package/{_esm/experimental/eip5792/actions → _cjs/actions/wallet}/getCapabilities.js.map +1 -1
  8. package/_cjs/{experimental/eip5792/actions → actions/wallet}/sendCalls.js +5 -5
  9. package/_cjs/actions/wallet/sendCalls.js.map +1 -0
  10. package/_cjs/actions/wallet/showCallsStatus.js.map +1 -0
  11. package/_cjs/{experimental/eip5792/actions → actions/wallet}/waitForCallsStatus.js +5 -5
  12. package/_cjs/actions/wallet/waitForCallsStatus.js.map +1 -0
  13. package/_cjs/clients/decorators/wallet.js +10 -0
  14. package/_cjs/clients/decorators/wallet.js.map +1 -1
  15. package/_cjs/errors/version.js +1 -1
  16. package/_cjs/experimental/eip5792/actions/writeContracts.js +1 -1
  17. package/_cjs/experimental/eip5792/actions/writeContracts.js.map +1 -1
  18. package/_cjs/experimental/eip5792/decorators/eip5792.js +5 -5
  19. package/_cjs/experimental/eip5792/decorators/eip5792.js.map +1 -1
  20. package/_cjs/experimental/index.js +6 -7
  21. package/_cjs/experimental/index.js.map +1 -1
  22. package/_cjs/index.js +11 -9
  23. package/_cjs/index.js.map +1 -1
  24. package/_esm/actions/index.js +5 -0
  25. package/_esm/actions/index.js.map +1 -1
  26. package/_esm/{experimental/eip5792/actions → actions/wallet}/getCallsStatus.js +4 -4
  27. package/_esm/actions/wallet/getCallsStatus.js.map +1 -0
  28. package/_esm/{experimental/eip5792/actions → actions/wallet}/getCapabilities.js +3 -3
  29. package/_esm/actions/wallet/getCapabilities.js.map +1 -0
  30. package/_esm/{experimental/eip5792/actions → actions/wallet}/sendCalls.js +7 -7
  31. package/_esm/actions/wallet/sendCalls.js.map +1 -0
  32. package/_esm/{experimental/eip5792/actions → actions/wallet}/showCallsStatus.js +2 -2
  33. package/_esm/actions/wallet/showCallsStatus.js.map +1 -0
  34. package/_esm/{experimental/eip5792/actions → actions/wallet}/waitForCallsStatus.js +7 -7
  35. package/_esm/actions/wallet/waitForCallsStatus.js.map +1 -0
  36. package/_esm/clients/decorators/wallet.js +10 -0
  37. package/_esm/clients/decorators/wallet.js.map +1 -1
  38. package/_esm/errors/version.js +1 -1
  39. package/_esm/experimental/eip5792/actions/writeContracts.js +2 -3
  40. package/_esm/experimental/eip5792/actions/writeContracts.js.map +1 -1
  41. package/_esm/experimental/eip5792/decorators/eip5792.js +6 -5
  42. package/_esm/experimental/eip5792/decorators/eip5792.js.map +1 -1
  43. package/_esm/experimental/index.js +21 -7
  44. package/_esm/experimental/index.js.map +1 -1
  45. package/_esm/index.js +1 -0
  46. package/_esm/index.js.map +1 -1
  47. package/_types/actions/index.d.ts +5 -0
  48. package/_types/actions/index.d.ts.map +1 -1
  49. package/_types/{experimental/eip5792/actions → actions/wallet}/getCallsStatus.d.ts +10 -10
  50. package/_types/actions/wallet/getCallsStatus.d.ts.map +1 -0
  51. package/_types/{experimental/eip5792/actions → actions/wallet}/getCapabilities.d.ts +9 -9
  52. package/_types/actions/wallet/getCapabilities.d.ts.map +1 -0
  53. package/_types/{experimental/eip5792/actions → actions/wallet}/sendCalls.d.ts +10 -10
  54. package/_types/actions/wallet/sendCalls.d.ts.map +1 -0
  55. package/_types/{experimental/eip5792/actions → actions/wallet}/showCallsStatus.d.ts +8 -8
  56. package/_types/actions/wallet/showCallsStatus.d.ts.map +1 -0
  57. package/_types/{experimental/eip5792/actions → actions/wallet}/waitForCallsStatus.d.ts +9 -9
  58. package/_types/actions/wallet/waitForCallsStatus.d.ts.map +1 -0
  59. package/_types/clients/decorators/wallet.d.ts +126 -0
  60. package/_types/clients/decorators/wallet.d.ts.map +1 -1
  61. package/_types/errors/version.d.ts +1 -1
  62. package/_types/experimental/eip5792/actions/writeContracts.d.ts +1 -3
  63. package/_types/experimental/eip5792/actions/writeContracts.d.ts.map +1 -1
  64. package/_types/experimental/eip5792/decorators/eip5792.d.ts +5 -5
  65. package/_types/experimental/eip5792/decorators/eip5792.d.ts.map +1 -1
  66. package/_types/experimental/index.d.ts +63 -7
  67. package/_types/experimental/index.d.ts.map +1 -1
  68. package/_types/index.d.ts +6 -0
  69. package/_types/index.d.ts.map +1 -1
  70. package/actions/index.ts +31 -0
  71. package/{experimental/eip5792/actions → actions/wallet}/getCallsStatus.ts +12 -12
  72. package/{experimental/eip5792/actions → actions/wallet}/getCapabilities.ts +10 -10
  73. package/{experimental/eip5792/actions → actions/wallet}/sendCalls.ts +16 -16
  74. package/{experimental/eip5792/actions → actions/wallet}/showCallsStatus.ts +8 -8
  75. package/{experimental/eip5792/actions → actions/wallet}/waitForCallsStatus.ts +11 -11
  76. package/clients/decorators/wallet.ts +164 -0
  77. package/errors/version.ts +1 -1
  78. package/experimental/eip5792/actions/writeContracts.ts +8 -8
  79. package/experimental/eip5792/decorators/eip5792.ts +11 -9
  80. package/experimental/index.ts +33 -6
  81. package/index.ts +27 -0
  82. package/package.json +1 -1
  83. package/_cjs/experimental/eip5792/actions/getCallsStatus.js.map +0 -1
  84. package/_cjs/experimental/eip5792/actions/getCapabilities.js.map +0 -1
  85. package/_cjs/experimental/eip5792/actions/sendCalls.js.map +0 -1
  86. package/_cjs/experimental/eip5792/actions/showCallsStatus.js.map +0 -1
  87. package/_cjs/experimental/eip5792/actions/waitForCallsStatus.js.map +0 -1
  88. package/_esm/experimental/eip5792/actions/getCallsStatus.js.map +0 -1
  89. package/_esm/experimental/eip5792/actions/sendCalls.js.map +0 -1
  90. package/_esm/experimental/eip5792/actions/showCallsStatus.js.map +0 -1
  91. package/_esm/experimental/eip5792/actions/waitForCallsStatus.js.map +0 -1
  92. package/_types/experimental/eip5792/actions/getCallsStatus.d.ts.map +0 -1
  93. package/_types/experimental/eip5792/actions/getCapabilities.d.ts.map +0 -1
  94. package/_types/experimental/eip5792/actions/sendCalls.d.ts.map +0 -1
  95. package/_types/experimental/eip5792/actions/showCallsStatus.d.ts.map +0 -1
  96. package/_types/experimental/eip5792/actions/waitForCallsStatus.d.ts.map +0 -1
  97. /package/_cjs/{experimental/eip5792/actions → actions/wallet}/showCallsStatus.js +0 -0
@@ -1,16 +1,16 @@
1
1
  import type { Address } from 'abitype'
2
2
 
3
- import { parseAccount } from '../../../accounts/utils/parseAccount.js'
4
- import type { Client } from '../../../clients/createClient.js'
5
- import type { Transport } from '../../../clients/transports/createTransport.js'
6
- import type { ErrorType } from '../../../errors/utils.js'
7
- import type { Account } from '../../../types/account.js'
3
+ import { parseAccount } from '../../accounts/utils/parseAccount.js'
4
+ import type { Client } from '../../clients/createClient.js'
5
+ import type { Transport } from '../../clients/transports/createTransport.js'
6
+ import type { ErrorType } from '../../errors/utils.js'
7
+ import type { Account } from '../../types/account.js'
8
8
  import type {
9
9
  WalletCapabilities,
10
10
  WalletCapabilitiesRecord,
11
- } from '../../../types/eip1193.js'
12
- import type { Prettify } from '../../../types/utils.js'
13
- import type { RequestErrorType } from '../../../utils/buildRequest.js'
11
+ } from '../../types/eip1193.js'
12
+ import type { Prettify } from '../../types/utils.js'
13
+ import type { RequestErrorType } from '../../utils/buildRequest.js'
14
14
 
15
15
  export type GetCapabilitiesParameters<
16
16
  chainId extends number | undefined = undefined,
@@ -32,7 +32,7 @@ export type GetCapabilitiesErrorType = RequestErrorType | ErrorType
32
32
  /**
33
33
  * Extract capabilities that a connected wallet supports (e.g. paymasters, session keys, etc).
34
34
  *
35
- * - Docs: https://viem.sh/experimental/eip5792/getCapabilities
35
+ * - Docs: https://viem.sh/docs/actions/wallet/getCapabilities
36
36
  * - JSON-RPC Methods: [`wallet_getCapabilities`](https://eips.ethereum.org/EIPS/eip-5792)
37
37
  *
38
38
  * @param client - Client to use
@@ -41,7 +41,7 @@ export type GetCapabilitiesErrorType = RequestErrorType | ErrorType
41
41
  * @example
42
42
  * import { createWalletClient, custom } from 'viem'
43
43
  * import { mainnet } from 'viem/chains'
44
- * import { getCapabilities } from 'viem/experimental'
44
+ * import { getCapabilities } from 'viem/actions'
45
45
  *
46
46
  * const client = createWalletClient({
47
47
  * chain: mainnet,
@@ -1,21 +1,21 @@
1
1
  import type { Address, Narrow } from 'abitype'
2
- import { parseAccount } from '../../../accounts/utils/parseAccount.js'
3
- import type { Client } from '../../../clients/createClient.js'
4
- import type { Transport } from '../../../clients/transports/createTransport.js'
5
- import { AccountNotFoundError } from '../../../errors/account.js'
6
- import type { BaseError } from '../../../errors/base.js'
7
- import type { ErrorType } from '../../../errors/utils.js'
8
- import type { Account, GetAccountParameter } from '../../../types/account.js'
9
- import type { Call, Calls } from '../../../types/calls.js'
10
- import type { Chain, DeriveChain } from '../../../types/chain.js'
2
+ import { parseAccount } from '../../accounts/utils/parseAccount.js'
3
+ import type { Client } from '../../clients/createClient.js'
4
+ import type { Transport } from '../../clients/transports/createTransport.js'
5
+ import { AccountNotFoundError } from '../../errors/account.js'
6
+ import type { BaseError } from '../../errors/base.js'
7
+ import type { ErrorType } from '../../errors/utils.js'
8
+ import type { Account, GetAccountParameter } from '../../types/account.js'
9
+ import type { Call, Calls } from '../../types/calls.js'
10
+ import type { Chain, DeriveChain } from '../../types/chain.js'
11
11
  import type {
12
12
  WalletCapabilities,
13
13
  WalletSendCallsParameters,
14
- } from '../../../types/eip1193.js'
15
- import { encodeFunctionData } from '../../../utils/abi/encodeFunctionData.js'
16
- import type { RequestErrorType } from '../../../utils/buildRequest.js'
17
- import { numberToHex } from '../../../utils/encoding/toHex.js'
18
- import { getTransactionError } from '../../../utils/errors/getTransactionError.js'
14
+ } from '../../types/eip1193.js'
15
+ import { encodeFunctionData } from '../../utils/abi/encodeFunctionData.js'
16
+ import type { RequestErrorType } from '../../utils/buildRequest.js'
17
+ import { numberToHex } from '../../utils/encoding/toHex.js'
18
+ import { getTransactionError } from '../../utils/errors/getTransactionError.js'
19
19
 
20
20
  export type SendCallsParameters<
21
21
  chain extends Chain | undefined = Chain | undefined,
@@ -43,7 +43,7 @@ export type SendCallsErrorType = RequestErrorType | ErrorType
43
43
  /**
44
44
  * Requests the connected wallet to send a batch of calls.
45
45
  *
46
- * - Docs: https://viem.sh/experimental/eip5792/sendCalls
46
+ * - Docs: https://viem.sh/docs/actions/wallet/sendCalls
47
47
  * - JSON-RPC Methods: [`wallet_sendCalls`](https://eips.ethereum.org/EIPS/eip-5792)
48
48
  *
49
49
  * @param client - Client to use
@@ -52,7 +52,7 @@ export type SendCallsErrorType = RequestErrorType | ErrorType
52
52
  * @example
53
53
  * import { createWalletClient, custom } from 'viem'
54
54
  * import { mainnet } from 'viem/chains'
55
- * import { sendCalls } from 'viem/experimental'
55
+ * import { sendCalls } from 'viem/actions'
56
56
  *
57
57
  * const client = createWalletClient({
58
58
  * chain: mainnet,
@@ -1,9 +1,9 @@
1
- import type { Client } from '../../../clients/createClient.js'
2
- import type { Transport } from '../../../clients/transports/createTransport.js'
3
- import type { ErrorType } from '../../../errors/utils.js'
4
- import type { Account } from '../../../types/account.js'
5
- import type { Chain } from '../../../types/chain.js'
6
- import type { RequestErrorType } from '../../../utils/buildRequest.js'
1
+ import type { Client } from '../../clients/createClient.js'
2
+ import type { Transport } from '../../clients/transports/createTransport.js'
3
+ import type { ErrorType } from '../../errors/utils.js'
4
+ import type { Account } from '../../types/account.js'
5
+ import type { Chain } from '../../types/chain.js'
6
+ import type { RequestErrorType } from '../../utils/buildRequest.js'
7
7
 
8
8
  export type ShowCallsStatusParameters = { id: string }
9
9
 
@@ -15,7 +15,7 @@ export type ShowCallsStatusErrorType = RequestErrorType | ErrorType
15
15
  * Requests for the wallet to show information about a call batch
16
16
  * that was sent via `sendCalls`.
17
17
  *
18
- * - Docs: https://viem.sh/experimental/eip5792/showCallsStatus
18
+ * - Docs: https://viem.sh/docs/actions/wallet/showCallsStatus
19
19
  * - JSON-RPC Methods: [`wallet_showCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
20
20
  *
21
21
  * @param client - Client to use
@@ -24,7 +24,7 @@ export type ShowCallsStatusErrorType = RequestErrorType | ErrorType
24
24
  * @example
25
25
  * import { createWalletClient, custom } from 'viem'
26
26
  * import { mainnet } from 'viem/chains'
27
- * import { showCallsStatus } from 'viem/experimental'
27
+ * import { showCallsStatus } from 'viem/actions'
28
28
  *
29
29
  * const client = createWalletClient({
30
30
  * chain: mainnet,
@@ -1,12 +1,12 @@
1
- import type { Client } from '../../../clients/createClient.js'
2
- import type { Transport } from '../../../clients/transports/createTransport.js'
3
- import { BaseError } from '../../../errors/base.js'
4
- import type { ErrorType } from '../../../errors/utils.js'
5
- import type { Chain } from '../../../types/chain.js'
6
- import { type ObserveErrorType, observe } from '../../../utils/observe.js'
7
- import { type PollErrorType, poll } from '../../../utils/poll.js'
8
- import { withResolvers } from '../../../utils/promise/withResolvers.js'
9
- import { stringify } from '../../../utils/stringify.js'
1
+ import type { Client } from '../../clients/createClient.js'
2
+ import type { Transport } from '../../clients/transports/createTransport.js'
3
+ import { BaseError } from '../../errors/base.js'
4
+ import type { ErrorType } from '../../errors/utils.js'
5
+ import type { Chain } from '../../types/chain.js'
6
+ import { type ObserveErrorType, observe } from '../../utils/observe.js'
7
+ import { type PollErrorType, poll } from '../../utils/poll.js'
8
+ import { withResolvers } from '../../utils/promise/withResolvers.js'
9
+ import { stringify } from '../../utils/stringify.js'
10
10
  import {
11
11
  type GetCallsStatusErrorType,
12
12
  type GetCallsStatusReturnType,
@@ -50,7 +50,7 @@ export type WaitForCallsStatusErrorType =
50
50
  /**
51
51
  * Waits for the status & receipts of a call bundle that was sent via `sendCalls`.
52
52
  *
53
- * - Docs: https://viem.sh/experimental/eip5792/waitForCallsStatus
53
+ * - Docs: https://viem.sh/docs/actions/wallet/waitForCallsStatus
54
54
  * - JSON-RPC Methods: [`wallet_getCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
55
55
  *
56
56
  * @param client - Client to use
@@ -60,7 +60,7 @@ export type WaitForCallsStatusErrorType =
60
60
  * @example
61
61
  * import { createWalletClient, custom } from 'viem'
62
62
  * import { mainnet } from 'viem/chains'
63
- * import { waitForCallsStatus } from 'viem/experimental'
63
+ * import { waitForCallsStatus } from 'viem/actions'
64
64
  *
65
65
  * const client = createWalletClient({
66
66
  * chain: mainnet,
@@ -18,6 +18,16 @@ import {
18
18
  type GetAddressesReturnType,
19
19
  getAddresses,
20
20
  } from '../../actions/wallet/getAddresses.js'
21
+ import {
22
+ type GetCallsStatusParameters,
23
+ type GetCallsStatusReturnType,
24
+ getCallsStatus,
25
+ } from '../../actions/wallet/getCallsStatus.js'
26
+ import {
27
+ type GetCapabilitiesParameters,
28
+ type GetCapabilitiesReturnType,
29
+ getCapabilities,
30
+ } from '../../actions/wallet/getCapabilities.js'
21
31
  import {
22
32
  type GetPermissionsReturnType,
23
33
  getPermissions,
@@ -42,6 +52,11 @@ import {
42
52
  type RequestPermissionsReturnType,
43
53
  requestPermissions,
44
54
  } from '../../actions/wallet/requestPermissions.js'
55
+ import {
56
+ type SendCallsParameters,
57
+ type SendCallsReturnType,
58
+ sendCalls,
59
+ } from '../../actions/wallet/sendCalls.js'
45
60
  import {
46
61
  type SendRawTransactionParameters,
47
62
  type SendRawTransactionReturnType,
@@ -53,6 +68,11 @@ import {
53
68
  type SendTransactionReturnType,
54
69
  sendTransaction,
55
70
  } from '../../actions/wallet/sendTransaction.js'
71
+ import {
72
+ type ShowCallsStatusParameters,
73
+ type ShowCallsStatusReturnType,
74
+ showCallsStatus,
75
+ } from '../../actions/wallet/showCallsStatus.js'
56
76
  import {
57
77
  type SignAuthorizationParameters,
58
78
  type SignAuthorizationReturnType,
@@ -78,6 +98,11 @@ import {
78
98
  type SwitchChainParameters,
79
99
  switchChain,
80
100
  } from '../../actions/wallet/switchChain.js'
101
+ import {
102
+ type WaitForCallsStatusParameters,
103
+ type WaitForCallsStatusReturnType,
104
+ waitForCallsStatus,
105
+ } from '../../actions/wallet/waitForCallsStatus.js'
81
106
  import {
82
107
  type WatchAssetParameters,
83
108
  type WatchAssetReturnType,
@@ -168,6 +193,54 @@ export type WalletActions<
168
193
  * const accounts = await client.getAddresses()
169
194
  */
170
195
  getAddresses: () => Promise<GetAddressesReturnType>
196
+ /**
197
+ * Returns the status of a call batch that was sent via `sendCalls`.
198
+ *
199
+ * - Docs: https://viem.sh/docs/actions/wallet/getCallsStatus
200
+ * - JSON-RPC Methods: [`wallet_getCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
201
+ *
202
+ * @param client - Client to use
203
+ * @returns Status of the calls. {@link GetCallsStatusReturnType}
204
+ *
205
+ * @example
206
+ * import { createWalletClient, custom } from 'viem'
207
+ * import { mainnet } from 'viem/chains'
208
+ *
209
+ * const client = createWalletClient({
210
+ * chain: mainnet,
211
+ * transport: custom(window.ethereum),
212
+ * })
213
+ *
214
+ * const { receipts, status } = await client.getCallsStatus({ id: '0xdeadbeef' })
215
+ */
216
+ getCallsStatus: (
217
+ parameters: GetCallsStatusParameters,
218
+ ) => Promise<GetCallsStatusReturnType>
219
+ /**
220
+ * Extract capabilities that a connected wallet supports (e.g. paymasters, session keys, etc).
221
+ *
222
+ * - Docs: https://viem.sh/docs/actions/wallet/getCapabilities
223
+ * - JSON-RPC Methods: [`wallet_getCapabilities`](https://eips.ethereum.org/EIPS/eip-5792)
224
+ *
225
+ * @param client - Client to use
226
+ * @returns The wallet's capabilities. {@link GetCapabilitiesReturnType}
227
+ *
228
+ * @example
229
+ * import { createWalletClient, custom } from 'viem'
230
+ * import { mainnet } from 'viem/chains'
231
+ *
232
+ * const client = createWalletClient({
233
+ * chain: mainnet,
234
+ * transport: custom(window.ethereum),
235
+ * })
236
+ *
237
+ * const capabilities = await client.getCapabilities({
238
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
239
+ * })
240
+ */
241
+ getCapabilities: (
242
+ parameters?: GetCapabilitiesParameters,
243
+ ) => Promise<GetCapabilitiesReturnType>
171
244
  /**
172
245
  * Returns the chain ID associated with the current network.
173
246
  *
@@ -360,6 +433,44 @@ export type WalletActions<
360
433
  requestPermissions: (
361
434
  args: RequestPermissionsParameters,
362
435
  ) => Promise<RequestPermissionsReturnType>
436
+ /**
437
+ * Requests the connected wallet to send a batch of calls.
438
+ *
439
+ * - Docs: https://viem.sh/docs/actions/wallet/sendCalls
440
+ * - JSON-RPC Methods: [`wallet_sendCalls`](https://eips.ethereum.org/EIPS/eip-5792)
441
+ *
442
+ * @param client - Client to use
443
+ * @returns Transaction identifier. {@link SendCallsReturnType}
444
+ *
445
+ * @example
446
+ * import { createWalletClient, custom } from 'viem'
447
+ * import { mainnet } from 'viem/chains'
448
+ *
449
+ * const client = createWalletClient({
450
+ * chain: mainnet,
451
+ * transport: custom(window.ethereum),
452
+ * })
453
+ *
454
+ * const id = await client.sendCalls({
455
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
456
+ * calls: [
457
+ * {
458
+ * data: '0xdeadbeef',
459
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
460
+ * },
461
+ * {
462
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
463
+ * value: 69420n,
464
+ * },
465
+ * ],
466
+ * })
467
+ */
468
+ sendCalls: <
469
+ const calls extends readonly unknown[],
470
+ chainOverride extends Chain | undefined = undefined,
471
+ >(
472
+ parameters: SendCallsParameters<chain, account, chainOverride, calls>,
473
+ ) => Promise<SendCallsReturnType>
363
474
  /**
364
475
  * Sends a **signed** transaction to the network
365
476
  *
@@ -435,6 +546,30 @@ export type WalletActions<
435
546
  >(
436
547
  args: SendTransactionParameters<chain, account, chainOverride, request>,
437
548
  ) => Promise<SendTransactionReturnType>
549
+ /**
550
+ * Requests for the wallet to show information about a call batch
551
+ * that was sent via `sendCalls`.
552
+ *
553
+ * - Docs: https://viem.sh/docs/actions/wallet/showCallsStatus
554
+ * - JSON-RPC Methods: [`wallet_showCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
555
+ *
556
+ * @param client - Client to use
557
+ * @returns Displays status of the calls in wallet. {@link ShowCallsStatusReturnType}
558
+ *
559
+ * @example
560
+ * import { createWalletClient, custom } from 'viem'
561
+ * import { mainnet } from 'viem/chains'
562
+ *
563
+ * const client = createWalletClient({
564
+ * chain: mainnet,
565
+ * transport: custom(window.ethereum),
566
+ * })
567
+ *
568
+ * await client.showCallsStatus({ id: '0xdeadbeef' })
569
+ */
570
+ showCallsStatus: (
571
+ parameters: ShowCallsStatusParameters,
572
+ ) => Promise<ShowCallsStatusReturnType>
438
573
  /**
439
574
  * Signs an [EIP-7702 Authorization](https://eips.ethereum.org/EIPS/eip-7702) object.
440
575
  *
@@ -699,6 +834,30 @@ export type WalletActions<
699
834
  * await client.switchChain({ id: optimism.id })
700
835
  */
701
836
  switchChain: (args: SwitchChainParameters) => Promise<void>
837
+ /**
838
+ * Waits for the status & receipts of a call bundle that was sent via `sendCalls`.
839
+ *
840
+ * - Docs: https://viem.sh/docs/actions/wallet/waitForCallsStatus
841
+ * - JSON-RPC Methods: [`wallet_getCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
842
+ *
843
+ * @param client - Client to use
844
+ * @param parameters - {@link WaitForCallsStatusParameters}
845
+ * @returns Status & receipts of the call bundle. {@link WaitForCallsStatusReturnType}
846
+ *
847
+ * @example
848
+ * import { createWalletClient, custom } from 'viem'
849
+ * import { mainnet } from 'viem/chains'
850
+ *
851
+ * const client = createWalletClient({
852
+ * chain: mainnet,
853
+ * transport: custom(window.ethereum),
854
+ * })
855
+ *
856
+ * const { receipts, status } = await waitForCallsStatus(client, { id: '0xdeadbeef' })
857
+ */
858
+ waitForCallsStatus: (
859
+ parameters: WaitForCallsStatusParameters,
860
+ ) => Promise<WaitForCallsStatusReturnType>
702
861
  /**
703
862
  * Adds an EVM chain to the wallet.
704
863
  *
@@ -803,6 +962,8 @@ export function walletActions<
803
962
  addChain: (args) => addChain(client, args),
804
963
  deployContract: (args) => deployContract(client, args),
805
964
  getAddresses: () => getAddresses(client),
965
+ getCallsStatus: (args) => getCallsStatus(client, args),
966
+ getCapabilities: () => getCapabilities(client),
806
967
  getChainId: () => getChainId(client),
807
968
  getPermissions: () => getPermissions(client),
808
969
  prepareAuthorization: (args) => prepareAuthorization(client, args),
@@ -810,13 +971,16 @@ export function walletActions<
810
971
  prepareTransactionRequest(client as any, args as any) as any,
811
972
  requestAddresses: () => requestAddresses(client),
812
973
  requestPermissions: (args) => requestPermissions(client, args),
974
+ sendCalls: (args) => sendCalls(client, args),
813
975
  sendRawTransaction: (args) => sendRawTransaction(client, args),
814
976
  sendTransaction: (args) => sendTransaction(client, args),
977
+ showCallsStatus: (args) => showCallsStatus(client, args),
815
978
  signAuthorization: (args) => signAuthorization(client, args),
816
979
  signMessage: (args) => signMessage(client, args),
817
980
  signTransaction: (args) => signTransaction(client, args),
818
981
  signTypedData: (args) => signTypedData(client, args),
819
982
  switchChain: (args) => switchChain(client, args),
983
+ waitForCallsStatus: (args) => waitForCallsStatus(client, args),
820
984
  watchAsset: (args) => watchAsset(client, args),
821
985
  writeContract: (args) => writeContract(client, args as any),
822
986
  }
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.28.0-canary-20250421235327'
1
+ export const version = '2.28.0-canary-20250422025603'
@@ -1,5 +1,13 @@
1
+ // TODO(v3): Remove this.
2
+
1
3
  import type { Abi, AbiStateMutability, Address, Narrow } from 'abitype'
2
4
 
5
+ import {
6
+ type SendCallsErrorType,
7
+ type SendCallsParameters,
8
+ type SendCallsReturnType,
9
+ sendCalls,
10
+ } from '../../../actions/wallet/sendCalls.js'
3
11
  import type { Client } from '../../../clients/createClient.js'
4
12
  import type { Transport } from '../../../clients/transports/createTransport.js'
5
13
  import type { ErrorType } from '../../../errors/utils.js'
@@ -18,12 +26,6 @@ import {
18
26
  encodeFunctionData,
19
27
  } from '../../../utils/abi/encodeFunctionData.js'
20
28
  import { getAction } from '../../../utils/getAction.js'
21
- import {
22
- type SendCallsErrorType,
23
- type SendCallsParameters,
24
- type SendCallsReturnType,
25
- sendCalls,
26
- } from './sendCalls.js'
27
29
 
28
30
  export type WriteContractsParameters<
29
31
  contracts extends
@@ -50,8 +52,6 @@ export type WriteContractsErrorType =
50
52
  | ErrorType
51
53
 
52
54
  /**
53
- * @deprecated Use {@link sendCalls} instead. See https://viem.sh/experimental/eip5792/sendCalls#contract-calls.
54
- *
55
55
  * Requests for the wallet to sign and broadcast a batch of write contract calls (transactions) to the network.
56
56
  *
57
57
  * - Docs: https://viem.sh/experimental/eip5792/writeContracts
@@ -1,32 +1,34 @@
1
- import type { Client } from '../../../clients/createClient.js'
2
- import type { Transport } from '../../../clients/transports/createTransport.js'
3
- import type { Account } from '../../../types/account.js'
4
- import type { Chain } from '../../../types/chain.js'
1
+ // TODO(v3): Remove this.
2
+
5
3
  import {
6
4
  type GetCallsStatusParameters,
7
5
  type GetCallsStatusReturnType,
8
6
  getCallsStatus,
9
- } from '../actions/getCallsStatus.js'
7
+ } from '../../../actions/wallet/getCallsStatus.js'
10
8
  import {
11
9
  type GetCapabilitiesParameters,
12
10
  type GetCapabilitiesReturnType,
13
11
  getCapabilities,
14
- } from '../actions/getCapabilities.js'
12
+ } from '../../../actions/wallet/getCapabilities.js'
15
13
  import {
16
14
  type SendCallsParameters,
17
15
  type SendCallsReturnType,
18
16
  sendCalls,
19
- } from '../actions/sendCalls.js'
17
+ } from '../../../actions/wallet/sendCalls.js'
20
18
  import {
21
19
  type ShowCallsStatusParameters,
22
20
  type ShowCallsStatusReturnType,
23
21
  showCallsStatus,
24
- } from '../actions/showCallsStatus.js'
22
+ } from '../../../actions/wallet/showCallsStatus.js'
25
23
  import {
26
24
  type WaitForCallsStatusParameters,
27
25
  type WaitForCallsStatusReturnType,
28
26
  waitForCallsStatus,
29
- } from '../actions/waitForCallsStatus.js'
27
+ } from '../../../actions/wallet/waitForCallsStatus.js'
28
+ import type { Client } from '../../../clients/createClient.js'
29
+ import type { Transport } from '../../../clients/transports/createTransport.js'
30
+ import type { Account } from '../../../types/account.js'
31
+ import type { Chain } from '../../../types/chain.js'
30
32
  import {
31
33
  type WriteContractsParameters,
32
34
  type WriteContractsReturnType,
@@ -1,45 +1,72 @@
1
1
  // biome-ignore lint/performance/noBarrelFile: entrypoint module
2
2
  export {
3
+ /** @deprecated This is no longer experimental – use `import type { GetCapabilitiesParameters } from 'viem/actions'` instead. */
3
4
  type GetCapabilitiesParameters,
5
+ /** @deprecated This is no longer experimental – use `import type { GetCapabilitiesErrorType } from 'viem/actions'` instead. */
4
6
  type GetCapabilitiesErrorType,
7
+ /** @deprecated This is no longer experimental – use `import type { GetCapabilitiesReturnType } from 'viem/actions'` instead. */
5
8
  type GetCapabilitiesReturnType,
9
+ /** @deprecated This is no longer experimental – use `import { getCapabilities } from 'viem/actions'` instead. */
6
10
  getCapabilities,
7
- } from './eip5792/actions/getCapabilities.js'
11
+ } from '../actions/wallet/getCapabilities.js'
8
12
  export {
13
+ /** @deprecated This is no longer experimental – use `import type { SendCallsErrorType } from 'viem/actions'` instead. */
9
14
  type SendCallsErrorType,
15
+ /** @deprecated This is no longer experimental – use `import type { SendCallsParameters } from 'viem/actions'` instead. */
10
16
  type SendCallsParameters,
17
+ /** @deprecated This is no longer experimental – use `import type { SendCallsReturnType } from 'viem/actions'` instead. */
11
18
  type SendCallsReturnType,
19
+ /** @deprecated This is no longer experimental – use `import { sendCalls } from 'viem/actions'` instead. */
12
20
  sendCalls,
13
- } from './eip5792/actions/sendCalls.js'
21
+ } from '../actions/wallet/sendCalls.js'
14
22
  export {
23
+ /** @deprecated This is no longer experimental – use `import type { GetCallsStatusErrorType } from 'viem/actions'` instead. */
15
24
  type GetCallsStatusErrorType,
25
+ /** @deprecated This is no longer experimental – use `import type { GetCallsStatusParameters } from 'viem/actions'` instead. */
16
26
  type GetCallsStatusParameters,
27
+ /** @deprecated This is no longer experimental – use `import type { GetCallsStatusReturnType } from 'viem/actions'` instead. */
17
28
  type GetCallsStatusReturnType,
29
+ /** @deprecated This is no longer experimental – use `import { getCallsStatus } from 'viem/actions'` instead. */
18
30
  getCallsStatus,
19
- } from './eip5792/actions/getCallsStatus.js'
31
+ } from '../actions/wallet/getCallsStatus.js'
20
32
  export {
33
+ /** @deprecated This is no longer experimental – use `import type { ShowCallsStatusErrorType } from 'viem/actions'` instead. */
21
34
  type ShowCallsStatusErrorType,
35
+ /** @deprecated This is no longer experimental – use `import type { ShowCallsStatusParameters } from 'viem/actions'` instead. */
22
36
  type ShowCallsStatusParameters,
37
+ /** @deprecated This is no longer experimental – use `import type { ShowCallsStatusReturnType } from 'viem/actions'` instead. */
23
38
  type ShowCallsStatusReturnType,
39
+ /** @deprecated This is no longer experimental – use `import { showCallsStatus } from 'viem/actions'` instead. */
24
40
  showCallsStatus,
25
- } from './eip5792/actions/showCallsStatus.js'
41
+ } from '../actions/wallet/showCallsStatus.js'
26
42
  export {
43
+ /** @deprecated This is no longer experimental – use `import type { WaitForCallsStatusErrorType } from 'viem/actions'` instead. */
27
44
  type WaitForCallsStatusErrorType,
45
+ /** @deprecated This is no longer experimental – use `import type { WaitForCallsStatusParameters } from 'viem/actions'` instead. */
28
46
  type WaitForCallsStatusParameters,
47
+ /** @deprecated This is no longer experimental – use `import type { WaitForCallsStatusReturnType } from 'viem/actions'` instead. */
29
48
  type WaitForCallsStatusReturnType,
49
+ /** @deprecated This is no longer experimental – use `import type { WaitForCallsStatusTimeoutErrorType } from 'viem/actions'` instead. */
30
50
  type WaitForCallsStatusTimeoutErrorType,
31
- WaitForCallsStatusTimeoutError,
51
+ /** @deprecated This is no longer experimental – use `import { waitForCallsStatus } from 'viem/actions'` instead. */
32
52
  waitForCallsStatus,
33
- } from './eip5792/actions/waitForCallsStatus.js'
53
+ } from '../actions/wallet/waitForCallsStatus.js'
34
54
  export {
55
+ /** @deprecated Use `SendCallsErrorType` instead. */
35
56
  type WriteContractsErrorType,
57
+ /** @deprecated Use `SendCallsParameters` instead. */
36
58
  type WriteContractsParameters,
59
+ /** @deprecated Use `SendCallsReturnType` instead. */
37
60
  type WriteContractsReturnType,
61
+ /** @deprecated */
38
62
  type WriteContractFunctionParameters,
63
+ /** @deprecated Use `sendCalls` instead. */
39
64
  writeContracts,
40
65
  } from './eip5792/actions/writeContracts.js'
41
66
  export {
67
+ /** @deprecated This is no longer experimental – use `import type { WalletActions } from 'viem'` instead. */
42
68
  type Eip5792Actions,
69
+ /** @deprecated This is no longer experimental – use `import { createWalletClient } from 'viem'` or `import { walletActions } from 'viem'` instead. */
43
70
  eip5792Actions,
44
71
  } from './eip5792/decorators/eip5792.js'
45
72
 
package/index.ts CHANGED
@@ -378,6 +378,33 @@ export type {
378
378
  PrepareTransactionRequestRequest,
379
379
  PrepareTransactionRequestReturnType,
380
380
  } from './actions/wallet/prepareTransactionRequest.js'
381
+ export type {
382
+ GetCapabilitiesParameters,
383
+ GetCapabilitiesErrorType,
384
+ GetCapabilitiesReturnType,
385
+ } from './actions/wallet/getCapabilities.js'
386
+ export type {
387
+ SendCallsErrorType,
388
+ SendCallsParameters,
389
+ SendCallsReturnType,
390
+ } from './actions/wallet/sendCalls.js'
391
+ export type {
392
+ GetCallsStatusErrorType,
393
+ GetCallsStatusParameters,
394
+ GetCallsStatusReturnType,
395
+ } from './actions/wallet/getCallsStatus.js'
396
+ export type {
397
+ ShowCallsStatusErrorType,
398
+ ShowCallsStatusParameters,
399
+ ShowCallsStatusReturnType,
400
+ } from './actions/wallet/showCallsStatus.js'
401
+ export { WaitForCallsStatusTimeoutError } from './actions/wallet/waitForCallsStatus.js'
402
+ export type {
403
+ WaitForCallsStatusErrorType,
404
+ WaitForCallsStatusParameters,
405
+ WaitForCallsStatusReturnType,
406
+ WaitForCallsStatusTimeoutErrorType,
407
+ } from './actions/wallet/waitForCallsStatus.js'
381
408
  export type {
382
409
  SendUnsignedTransactionErrorType,
383
410
  SendUnsignedTransactionParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.28.0-canary-20250421235327",
4
+ "version": "2.28.0-canary-20250422025603",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCallsStatus.js","sourceRoot":"","sources":["../../../../experimental/eip5792/actions/getCallsStatus.ts"],"names":[],"mappings":";;AAqDA,wCA+CC;AAzFD,mEAA6E;AAC7E,2FAAiF;AAyC1E,KAAK,UAAU,cAAc,CAIlC,MAAyC,EACzC,UAAoC;IAEpC,MAAM,EACJ,MAAM,GAAG,KAAK,EACd,OAAO,EACP,QAAQ,EACR,OAAO,GAAG,OAAO,EACjB,GAAG,QAAQ,EACZ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QACvB,MAAM,EAAE,uBAAuB;QAC/B,MAAM,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;KACxB,CAAC,CAAA;IACF,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE;QACjC,MAAM,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAA;QAClC,IAAI,UAAU,IAAI,GAAG,IAAI,UAAU,GAAG,GAAG;YACvC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAU,CAAA;QACzC,IAAI,UAAU,IAAI,GAAG,IAAI,UAAU,GAAG,GAAG;YACvC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAU,CAAA;QACzC,IAAI,UAAU,IAAI,GAAG,IAAI,UAAU,GAAG,GAAG;YACvC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAU,CAAA;QAEzC,IAAI,UAAU,KAAK,WAAW;YAAE,OAAO,CAAC,SAAS,EAAE,GAAG,CAAU,CAAA;QAEhE,IAAI,UAAU,KAAK,SAAS;YAAE,OA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AAE,IAAI,CAAC,IAAI;aAChB,CAAC;YACJ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAA;QAEb,OAAO;YACL,IAAI;YACJ,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAA,sBAAW,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;SACxD,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CACnC;YACE,MAAM,EAAE,kBAAkB;YAC1B,MAAM,EAAE;gBACN;oBACE,cAAc,EAAE,WAAW;oBAC3B,KAAK;oBACL,YAAY;oBACZ,OAAO,EAAE,IAAA,sBAAW,EAAC,KAAM,CAAC,EAAE,CAAC;oBAC/B,IAAI,EAAE,OAAO,EAAE,OAAO;oBACtB,EAAE;oBACF,OAAO;iBACR;aACF;SACF,EACD,EAAE,UAAU,EAAE,CAAC,EAAE,CAClB,CAAA;QACD,IAAI,OAAO,QAAQ,KAAK,QAAQ;YAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAA;QACzD,OAAO,QAAQ,CAAA;IACjB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,4CAAmB,EAAC,GAAgB,EAAE;YAC1C,GAAG,UAAU;YACb,OAAO;YACP,KAAK,EAAE,UAAU,CAAC,KAAM;SACzB,CAAC,CAAA;IACJ,CAAC;AACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"showCallsStatus.js","sourceRoot":"","sources":["../../../../experimental/eip5792/actions/showCallsStatus.ts"],"names":[],"mappings":";;AAkCA,0CAaC;AAbM,KAAK,UAAU,eAAe,CAInC,MAAyC,EACzC,UAAqC;IAErC,MAAM,EAAE,EAAE,EAAE,GAAG,UAAU,CAAA;IACzB,MAAM,MAAM,CAAC,OAAO,CAAC;QACnB,MAAM,EAAE,wBAAwB;QAChC,MAAM,EAAE,CAAC,EAAE,CAAC;KACb,CAAC,CAAA;IACF,OAAM;AACR,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"waitForCallsStatus.js","sourceRoot":"","sources":["../../../../experimental/eip5792/actions/waitForCallsStatus.ts"],"names":[],"mappings":";;;AAuEA,gDAqDC;AA1HD,qDAAmD;AAGnD,0DAA0E;AAC1E,oDAAiE;AACjE,8EAAuE;AACvE,8DAAuD;AACvD,2DAI4B;AA0DrB,KAAK,UAAU,kBAAkB,CACtC,MAAgC,EAChC,UAAwC;IAExC,MAAM,EACJ,EAAE,EACF,eAAe,GAAG,MAAM,CAAC,eAAe,EACxC,MAAM,GAAG,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,UAAU,IAAI,GAAG,EAC9C,OAAO,GAAG,MAAM,GACjB,GAAG,UAAU,CAAA;IACd,MAAM,UAAU,GAAG,IAAA,wBAAS,EAAC,CAAC,oBAAoB,EAAE,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAA;IAEpE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,GAChC,IAAA,gCAAa,GAAgC,CAAA;IAE/C,IAAI,KAAK,GAAsB,SAAS,CAAA;IAExC,MAAM,SAAS,GAAG,IAAA,oBAAO,EAAC,UAAU,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;QAClE,MAAM,MAAM,GAAG,IAAA,cAAI,EACjB,KAAK,IAAI,EAAE;YACT,MAAM,IAAI,GAAG,CAAC,EAAc,EAAE,EAAE;gBAC9B,YAAY,CAAC,KAAK,CAAC,CAAA;gBACnB,MAAM,EAAE,CAAA;gBACR,EAAE,EAAE,CAAA;gBACJ,SAAS,EAAE,CAAA;YACb,CAAC,CAAA;YAED,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,IAAA,kCAAc,EAAC,MAAM,EAAE,EAAE,EAAE,E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