viem 2.9.21 → 2.9.23

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 (181) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/_cjs/accounts/privateKeyToAccount.js +4 -0
  3. package/_cjs/accounts/privateKeyToAccount.js.map +1 -1
  4. package/_cjs/accounts/toAccount.js +1 -0
  5. package/_cjs/accounts/toAccount.js.map +1 -1
  6. package/_cjs/chains/definitions/dreyerxMainnet.js +25 -0
  7. package/_cjs/chains/definitions/dreyerxMainnet.js.map +1 -0
  8. package/_cjs/chains/index.js +7 -5
  9. package/_cjs/chains/index.js.map +1 -1
  10. package/_cjs/errors/version.js +1 -1
  11. package/_cjs/experimental/eip3074/actions/signAuthMessage.js +18 -0
  12. package/_cjs/experimental/eip3074/actions/signAuthMessage.js.map +1 -0
  13. package/_cjs/experimental/eip3074/decorators/eip3074.js +13 -0
  14. package/_cjs/experimental/eip3074/decorators/eip3074.js.map +1 -0
  15. package/_cjs/experimental/eip3074/utils/recoverAuthMessageAddress.js +12 -0
  16. package/_cjs/experimental/eip3074/utils/recoverAuthMessageAddress.js.map +1 -0
  17. package/_cjs/experimental/eip3074/utils/signAuthMessage.js +17 -0
  18. package/_cjs/experimental/eip3074/utils/signAuthMessage.js.map +1 -0
  19. package/_cjs/experimental/eip3074/utils/toAuthMessage.js +17 -0
  20. package/_cjs/experimental/eip3074/utils/toAuthMessage.js.map +1 -0
  21. package/_cjs/experimental/eip3074/utils/verifyAuthMessage.js +11 -0
  22. package/_cjs/experimental/eip3074/utils/verifyAuthMessage.js.map +1 -0
  23. package/_cjs/experimental/{actions → eip5792/actions}/getCallsStatus.js +2 -2
  24. package/_cjs/experimental/eip5792/actions/getCallsStatus.js.map +1 -0
  25. package/_cjs/experimental/{actions → eip5792/actions}/getCapabilities.js +2 -2
  26. package/_cjs/experimental/eip5792/actions/getCapabilities.js.map +1 -0
  27. package/_cjs/experimental/{actions → eip5792/actions}/sendCalls.js +6 -6
  28. package/_cjs/experimental/eip5792/actions/sendCalls.js.map +1 -0
  29. package/_cjs/experimental/eip5792/actions/showCallsStatus.js.map +1 -0
  30. package/_cjs/experimental/{actions → eip5792/actions}/writeContracts.js +1 -1
  31. package/_cjs/experimental/eip5792/actions/writeContracts.js.map +1 -0
  32. package/_cjs/experimental/eip5792/decorators/eip5792.js.map +1 -0
  33. package/_cjs/experimental/index.js +15 -7
  34. package/_cjs/experimental/index.js.map +1 -1
  35. package/_cjs/utils/signature/hexToSignature.js.map +1 -1
  36. package/_esm/accounts/privateKeyToAccount.js +4 -0
  37. package/_esm/accounts/privateKeyToAccount.js.map +1 -1
  38. package/_esm/accounts/toAccount.js +1 -0
  39. package/_esm/accounts/toAccount.js.map +1 -1
  40. package/_esm/actions/public/verifyHash.js +1 -1
  41. package/_esm/chains/definitions/dreyerxMainnet.js +22 -0
  42. package/_esm/chains/definitions/dreyerxMainnet.js.map +1 -0
  43. package/_esm/chains/index.js +1 -0
  44. package/_esm/chains/index.js.map +1 -1
  45. package/_esm/errors/version.js +1 -1
  46. package/_esm/experimental/eip3074/actions/signAuthMessage.js +69 -0
  47. package/_esm/experimental/eip3074/actions/signAuthMessage.js.map +1 -0
  48. package/_esm/experimental/eip3074/decorators/eip3074.js +26 -0
  49. package/_esm/experimental/eip3074/decorators/eip3074.js.map +1 -0
  50. package/_esm/experimental/eip3074/utils/recoverAuthMessageAddress.js +8 -0
  51. package/_esm/experimental/eip3074/utils/recoverAuthMessageAddress.js.map +1 -0
  52. package/_esm/experimental/eip3074/utils/signAuthMessage.js +16 -0
  53. package/_esm/experimental/eip3074/utils/signAuthMessage.js.map +1 -0
  54. package/_esm/experimental/eip3074/utils/toAuthMessage.js +17 -0
  55. package/_esm/experimental/eip3074/utils/toAuthMessage.js.map +1 -0
  56. package/_esm/experimental/eip3074/utils/verifyAuthMessage.js +13 -0
  57. package/_esm/experimental/eip3074/utils/verifyAuthMessage.js.map +1 -0
  58. package/_esm/experimental/{actions → eip5792/actions}/getCallsStatus.js +3 -3
  59. package/_esm/experimental/eip5792/actions/getCallsStatus.js.map +1 -0
  60. package/_esm/experimental/{actions → eip5792/actions}/getCapabilities.js +3 -3
  61. package/_esm/experimental/eip5792/actions/getCapabilities.js.map +1 -0
  62. package/_esm/experimental/{actions → eip5792/actions}/sendCalls.js +7 -7
  63. package/_esm/experimental/eip5792/actions/sendCalls.js.map +1 -0
  64. package/_esm/experimental/{actions → eip5792/actions}/showCallsStatus.js +1 -1
  65. package/_esm/experimental/eip5792/actions/showCallsStatus.js.map +1 -0
  66. package/_esm/experimental/{actions → eip5792/actions}/writeContracts.js +2 -2
  67. package/_esm/experimental/eip5792/actions/writeContracts.js.map +1 -0
  68. package/_esm/experimental/eip5792/decorators/eip5792.js.map +1 -0
  69. package/_esm/experimental/index.js +10 -6
  70. package/_esm/experimental/index.js.map +1 -1
  71. package/_esm/utils/signature/hexToSignature.js.map +1 -1
  72. package/_types/accounts/privateKeyToAccount.d.ts.map +1 -1
  73. package/_types/accounts/toAccount.d.ts.map +1 -1
  74. package/_types/accounts/types.d.ts +5 -3
  75. package/_types/accounts/types.d.ts.map +1 -1
  76. package/_types/actions/getContract.d.ts +2 -2
  77. package/_types/actions/getContract.d.ts.map +1 -1
  78. package/_types/actions/public/verifyHash.d.ts +1 -1
  79. package/_types/celo/chainConfig.d.ts +114 -114
  80. package/_types/celo/formatters.d.ts +57 -57
  81. package/_types/chains/definitions/ancient8.d.ts +45 -45
  82. package/_types/chains/definitions/ancient8Sepolia.d.ts +45 -45
  83. package/_types/chains/definitions/base.d.ts +45 -45
  84. package/_types/chains/definitions/baseGoerli.d.ts +45 -45
  85. package/_types/chains/definitions/baseSepolia.d.ts +45 -45
  86. package/_types/chains/definitions/celo.d.ts +114 -114
  87. package/_types/chains/definitions/celoAlfajores.d.ts +114 -114
  88. package/_types/chains/definitions/dreyerxMainnet.d.ts +35 -0
  89. package/_types/chains/definitions/dreyerxMainnet.d.ts.map +1 -0
  90. package/_types/chains/definitions/fraxtal.d.ts +45 -45
  91. package/_types/chains/definitions/fraxtalTestnet.d.ts +45 -45
  92. package/_types/chains/definitions/liskSepolia.d.ts +45 -45
  93. package/_types/chains/definitions/optimism.d.ts +45 -45
  94. package/_types/chains/definitions/optimismGoerli.d.ts +45 -45
  95. package/_types/chains/definitions/optimismSepolia.d.ts +45 -45
  96. package/_types/chains/definitions/pgn.d.ts +45 -45
  97. package/_types/chains/definitions/pgnTestnet.d.ts +45 -45
  98. package/_types/chains/definitions/rss3.d.ts +45 -45
  99. package/_types/chains/definitions/rss3Sepolia.d.ts +45 -45
  100. package/_types/chains/definitions/zora.d.ts +45 -45
  101. package/_types/chains/definitions/zoraSepolia.d.ts +45 -45
  102. package/_types/chains/definitions/zoraTestnet.d.ts +45 -45
  103. package/_types/chains/index.d.ts +1 -0
  104. package/_types/chains/index.d.ts.map +1 -1
  105. package/_types/errors/version.d.ts +1 -1
  106. package/_types/experimental/eip3074/actions/signAuthMessage.d.ts +72 -0
  107. package/_types/experimental/eip3074/actions/signAuthMessage.d.ts.map +1 -0
  108. package/_types/experimental/eip3074/decorators/eip3074.d.ts +27 -0
  109. package/_types/experimental/eip3074/decorators/eip3074.d.ts.map +1 -0
  110. package/_types/experimental/eip3074/utils/recoverAuthMessageAddress.d.ts +12 -0
  111. package/_types/experimental/eip3074/utils/recoverAuthMessageAddress.d.ts.map +1 -0
  112. package/_types/experimental/eip3074/utils/signAuthMessage.d.ts +16 -0
  113. package/_types/experimental/eip3074/utils/signAuthMessage.d.ts.map +1 -0
  114. package/_types/experimental/eip3074/utils/toAuthMessage.d.ts +20 -0
  115. package/_types/experimental/eip3074/utils/toAuthMessage.d.ts.map +1 -0
  116. package/_types/experimental/eip3074/utils/verifyAuthMessage.d.ts +19 -0
  117. package/_types/experimental/eip3074/utils/verifyAuthMessage.d.ts.map +1 -0
  118. package/_types/experimental/{actions → eip5792/actions}/getCallsStatus.d.ts +9 -9
  119. package/_types/experimental/eip5792/actions/getCallsStatus.d.ts.map +1 -0
  120. package/_types/experimental/{actions → eip5792/actions}/getCapabilities.d.ts +9 -9
  121. package/_types/experimental/eip5792/actions/getCapabilities.d.ts.map +1 -0
  122. package/_types/experimental/{actions → eip5792/actions}/sendCalls.d.ts +10 -10
  123. package/_types/experimental/eip5792/actions/sendCalls.d.ts.map +1 -0
  124. package/_types/experimental/{actions → eip5792/actions}/showCallsStatus.d.ts +7 -7
  125. package/_types/experimental/eip5792/actions/showCallsStatus.d.ts.map +1 -0
  126. package/_types/experimental/{actions → eip5792/actions}/writeContracts.d.ts +9 -9
  127. package/_types/experimental/eip5792/actions/writeContracts.d.ts.map +1 -0
  128. package/_types/experimental/{decorators → eip5792/decorators}/eip5792.d.ts +9 -9
  129. package/_types/experimental/eip5792/decorators/eip5792.d.ts.map +1 -0
  130. package/_types/experimental/index.d.ts +10 -6
  131. package/_types/experimental/index.d.ts.map +1 -1
  132. package/_types/op-stack/chainConfig.d.ts +45 -45
  133. package/_types/op-stack/formatters.d.ts +45 -45
  134. package/_types/utils/formatters/transaction.d.ts +1 -1
  135. package/_types/utils/formatters/transactionRequest.d.ts +1 -1
  136. package/_types/utils/signature/hexToSignature.d.ts +7 -2
  137. package/_types/utils/signature/hexToSignature.d.ts.map +1 -1
  138. package/accounts/privateKeyToAccount.ts +5 -1
  139. package/accounts/toAccount.ts +1 -0
  140. package/accounts/types.ts +12 -5
  141. package/actions/getContract.ts +2 -2
  142. package/actions/public/verifyHash.ts +1 -1
  143. package/chains/definitions/dreyerxMainnet.ts +22 -0
  144. package/chains/index.ts +1 -0
  145. package/errors/version.ts +1 -1
  146. package/experimental/eip3074/actions/signAuthMessage.ts +103 -0
  147. package/experimental/eip3074/decorators/eip3074.ts +51 -0
  148. package/experimental/eip3074/utils/recoverAuthMessageAddress.ts +29 -0
  149. package/experimental/eip3074/utils/signAuthMessage.ts +40 -0
  150. package/experimental/eip3074/utils/toAuthMessage.ts +50 -0
  151. package/experimental/eip3074/utils/verifyAuthMessage.ts +46 -0
  152. package/experimental/{actions → eip5792/actions}/getCallsStatus.ts +11 -11
  153. package/experimental/{actions → eip5792/actions}/getCapabilities.ts +11 -11
  154. package/experimental/{actions → eip5792/actions}/sendCalls.ts +17 -17
  155. package/experimental/{actions → eip5792/actions}/showCallsStatus.ts +7 -7
  156. package/experimental/{actions → eip5792/actions}/writeContracts.ts +9 -9
  157. package/experimental/{decorators → eip5792/decorators}/eip5792.ts +9 -9
  158. package/experimental/index.ts +29 -7
  159. package/package.json +1 -1
  160. package/utils/signature/hexToSignature.ts +2 -2
  161. package/_cjs/experimental/actions/getCallsStatus.js.map +0 -1
  162. package/_cjs/experimental/actions/getCapabilities.js.map +0 -1
  163. package/_cjs/experimental/actions/sendCalls.js.map +0 -1
  164. package/_cjs/experimental/actions/showCallsStatus.js.map +0 -1
  165. package/_cjs/experimental/actions/writeContracts.js.map +0 -1
  166. package/_cjs/experimental/decorators/eip5792.js.map +0 -1
  167. package/_esm/experimental/actions/getCallsStatus.js.map +0 -1
  168. package/_esm/experimental/actions/getCapabilities.js.map +0 -1
  169. package/_esm/experimental/actions/sendCalls.js.map +0 -1
  170. package/_esm/experimental/actions/showCallsStatus.js.map +0 -1
  171. package/_esm/experimental/actions/writeContracts.js.map +0 -1
  172. package/_esm/experimental/decorators/eip5792.js.map +0 -1
  173. package/_types/experimental/actions/getCallsStatus.d.ts.map +0 -1
  174. package/_types/experimental/actions/getCapabilities.d.ts.map +0 -1
  175. package/_types/experimental/actions/sendCalls.d.ts.map +0 -1
  176. package/_types/experimental/actions/showCallsStatus.d.ts.map +0 -1
  177. package/_types/experimental/actions/writeContracts.d.ts.map +0 -1
  178. package/_types/experimental/decorators/eip5792.d.ts.map +0 -1
  179. /package/_cjs/experimental/{actions → eip5792/actions}/showCallsStatus.js +0 -0
  180. /package/_cjs/experimental/{decorators → eip5792/decorators}/eip5792.js +0 -0
  181. /package/_esm/experimental/{decorators → eip5792/decorators}/eip5792.js +0 -0
@@ -0,0 +1,51 @@
1
+ import type { Client } from '../../../clients/createClient.js'
2
+ import type { Transport } from '../../../clients/transports/createTransport.js'
3
+ import type { Account, PrivateKeyAccount } from '../../../types/account.js'
4
+ import type { Chain } from '../../../types/chain.js'
5
+ import {
6
+ type SignAuthMessageParameters,
7
+ type SignAuthMessageReturnType,
8
+ signAuthMessage,
9
+ } from '../actions/signAuthMessage.js'
10
+
11
+ export type WalletActionsEip3074<
12
+ account extends Account | undefined = Account | undefined,
13
+ > = {
14
+ signAuthMessage: (
15
+ parameters: SignAuthMessageParameters<
16
+ account extends PrivateKeyAccount ? account : undefined
17
+ >,
18
+ ) => Promise<SignAuthMessageReturnType>
19
+ }
20
+
21
+ /**
22
+ * A suite of EIP-3074 Wallet Actions.
23
+ *
24
+ * - Docs: https://viem.sh/experimental
25
+ *
26
+ * @example
27
+ * import { createPublicClient, createWalletClient, http } from 'viem'
28
+ * import { mainnet } from 'viem/chains'
29
+ * import { walletActionsEip3074 } from 'viem/experimental'
30
+ *
31
+ * const walletClient = createWalletClient({
32
+ * chain: mainnet,
33
+ * transport: http(),
34
+ * }).extend(walletActionsEip3074())
35
+ *
36
+ * const signature = await walletClient.signAuthMessage({...})
37
+ */
38
+ export function walletActionsEip3074() {
39
+ return <
40
+ transport extends Transport,
41
+ chain extends Chain | undefined = Chain | undefined,
42
+ account extends Account | undefined = Account | undefined,
43
+ >(
44
+ client: Client<transport, chain, account>,
45
+ ): WalletActionsEip3074<account> => {
46
+ return {
47
+ signAuthMessage: (parameters) =>
48
+ signAuthMessage(client as any, parameters),
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,29 @@
1
+ import type { Address } from 'abitype'
2
+
3
+ import type { ByteArray, Hex } from '../../../types/misc.js'
4
+
5
+ import type { ErrorType } from '../../../errors/utils.js'
6
+ import { keccak256 } from '../../../utils/hash/keccak256.js'
7
+ import {
8
+ type RecoverAddressErrorType,
9
+ recoverAddress,
10
+ } from '../../../utils/signature/recoverAddress.js'
11
+ import { type ToAuthMessageParameters, toAuthMessage } from './toAuthMessage.js'
12
+
13
+ export type RecoverAuthMessageAddressParameters = ToAuthMessageParameters & {
14
+ signature: Hex | ByteArray
15
+ }
16
+
17
+ export type RecoverAuthMessageAddressReturnType = Address
18
+
19
+ export type RecoverAuthMessageAddressErrorType =
20
+ | RecoverAddressErrorType
21
+ | ErrorType
22
+
23
+ export async function recoverAuthMessageAddress({
24
+ signature,
25
+ ...parameters
26
+ }: RecoverAuthMessageAddressParameters): Promise<RecoverAuthMessageAddressReturnType> {
27
+ const hash = keccak256(toAuthMessage(parameters))
28
+ return recoverAddress({ hash, signature })
29
+ }
@@ -0,0 +1,40 @@
1
+ import { type SignErrorType, sign } from '../../../accounts/utils/sign.js'
2
+ import type { ErrorType } from '../../../errors/utils.js'
3
+ import type { Hex } from '../../../types/misc.js'
4
+ import { keccak256 } from '../../../utils/hash/keccak256.js'
5
+ import {
6
+ type SignatureToHexErrorType,
7
+ signatureToHex,
8
+ } from '../../../utils/signature/signatureToHex.js'
9
+ import {
10
+ type ToAuthMessageErrorType,
11
+ type ToAuthMessageParameters,
12
+ toAuthMessage,
13
+ } from './toAuthMessage.js'
14
+
15
+ export type SignAuthMessageParameters = ToAuthMessageParameters & {
16
+ /** The private key to sign with. */
17
+ privateKey: Hex
18
+ }
19
+
20
+ export type SignAuthMessageReturnType = Hex
21
+
22
+ export type SignAuthMessageErrorType =
23
+ | SignErrorType
24
+ | ToAuthMessageErrorType
25
+ | SignatureToHexErrorType
26
+ | ErrorType
27
+
28
+ /**
29
+ * Computes a EIP-3074 authorization signature in format: `keccak256(MAGIC || chainId || nonce || invokerAddress || commit))`.
30
+ */
31
+ export async function signAuthMessage(
32
+ parameters: SignAuthMessageParameters,
33
+ ): Promise<SignAuthMessageReturnType> {
34
+ const { privateKey } = parameters
35
+ const signature = await sign({
36
+ hash: keccak256(toAuthMessage(parameters)),
37
+ privateKey,
38
+ })
39
+ return signatureToHex(signature)
40
+ }
@@ -0,0 +1,50 @@
1
+ import type { Address } from 'abitype'
2
+ import type { ErrorType } from '../../../errors/utils.js'
3
+ import type { Hash } from '../../../types/misc.js'
4
+ import {
5
+ type EncodePackedErrorType,
6
+ encodePacked,
7
+ } from '../../../utils/abi/encodePacked.js'
8
+ import { type PadHexErrorType, padHex } from '../../../utils/data/pad.js'
9
+ import {
10
+ type NumberToHexErrorType,
11
+ numberToHex,
12
+ } from '../../../utils/encoding/toHex.js'
13
+ import { type Keccak256ErrorType } from '../../../utils/hash/keccak256.js'
14
+
15
+ export type ToAuthMessageParameters = {
16
+ chainId: number
17
+ commit: Hash
18
+ invokerAddress: Address
19
+ nonce: number
20
+ }
21
+
22
+ export type ToAuthMessageReturnType = Hash
23
+
24
+ export type ToAuthMessageErrorType =
25
+ | Keccak256ErrorType
26
+ | EncodePackedErrorType
27
+ | NumberToHexErrorType
28
+ | PadHexErrorType
29
+ | ErrorType
30
+
31
+ /**
32
+ * Returns the message to be signed for EIP-3074 authorization.
33
+ */
34
+ export function toAuthMessage({
35
+ chainId,
36
+ commit,
37
+ invokerAddress,
38
+ nonce,
39
+ }: ToAuthMessageParameters): ToAuthMessageReturnType {
40
+ return encodePacked(
41
+ ['uint8', 'bytes32', 'uint256', 'bytes32', 'bytes32'],
42
+ [
43
+ 0x04, // MAGIC
44
+ numberToHex(chainId, { size: 32 }),
45
+ BigInt(nonce),
46
+ padHex(invokerAddress, { size: 32 }),
47
+ commit,
48
+ ],
49
+ )
50
+ }
@@ -0,0 +1,46 @@
1
+ import type { Address } from 'abitype'
2
+
3
+ import type { ErrorType } from '../../../errors/utils.js'
4
+ import {
5
+ type GetAddressErrorType,
6
+ getAddress,
7
+ } from '../../../utils/address/getAddress.js'
8
+ import {
9
+ type IsAddressEqualErrorType,
10
+ isAddressEqual,
11
+ } from '../../../utils/address/isAddressEqual.js'
12
+ import {
13
+ type RecoverAuthMessageAddressErrorType,
14
+ type RecoverAuthMessageAddressParameters,
15
+ recoverAuthMessageAddress,
16
+ } from './recoverAuthMessageAddress.js'
17
+
18
+ export type VerifyAuthMessageParameters =
19
+ RecoverAuthMessageAddressParameters & {
20
+ /** The address that signed the original auth message. */
21
+ address: Address
22
+ }
23
+
24
+ export type VerifyAuthMessageReturnType = boolean
25
+
26
+ export type VerifyAuthMessageErrorType =
27
+ | IsAddressEqualErrorType
28
+ | GetAddressErrorType
29
+ | RecoverAuthMessageAddressErrorType
30
+ | ErrorType
31
+
32
+ /**
33
+ * Verify that a auth message was signed by the provided address.
34
+ *
35
+ * @param parameters - {@link VerifyAuthMessageParameters}
36
+ * @returns Whether or not the signature is valid. {@link VerifyAuthMessageReturnType}
37
+ */
38
+ export async function verifyAuthMessage({
39
+ address,
40
+ ...parameters
41
+ }: VerifyAuthMessageParameters): Promise<VerifyAuthMessageReturnType> {
42
+ return isAddressEqual(
43
+ getAddress(address),
44
+ await recoverAuthMessageAddress(parameters),
45
+ )
46
+ }
@@ -1,13 +1,13 @@
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 { WalletGetCallsStatusReturnType } from '../../types/eip1193.js'
7
- import type { Prettify } from '../../types/utils.js'
8
- import type { RequestErrorType } from '../../utils/buildRequest.js'
9
- import { hexToBigInt } from '../../utils/encoding/fromHex.js'
10
- import { receiptStatuses } from '../../utils/formatters/transactionReceipt.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 { WalletGetCallsStatusReturnType } from '../../../types/eip1193.js'
7
+ import type { Prettify } from '../../../types/utils.js'
8
+ import type { RequestErrorType } from '../../../utils/buildRequest.js'
9
+ import { hexToBigInt } from '../../../utils/encoding/fromHex.js'
10
+ import { receiptStatuses } from '../../../utils/formatters/transactionReceipt.js'
11
11
 
12
12
  export type GetCallsStatusParameters = { id: string }
13
13
 
@@ -20,7 +20,7 @@ export type GetCallsStatusErrorType = RequestErrorType | ErrorType
20
20
  /**
21
21
  * Returns the status of a call batch that was sent via `sendCalls`.
22
22
  *
23
- * - Docs: https://viem.sh/experimental/actions/getCallsStatus
23
+ * - Docs: https://viem.sh/experimental/eip5792/getCallsStatus
24
24
  * - JSON-RPC Methods: [`wallet_getCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
25
25
  *
26
26
  * @param client - Client to use
@@ -1,19 +1,19 @@
1
- import type { Client } from '../../clients/createClient.js'
2
- import type { Transport } from '../../clients/transports/createTransport.js'
3
- import { AccountNotFoundError } from '../../errors/account.js'
4
- import type { ErrorType } from '../../errors/utils.js'
1
+ import type { Client } from '../../../clients/createClient.js'
2
+ import type { Transport } from '../../../clients/transports/createTransport.js'
3
+ import { AccountNotFoundError } from '../../../errors/account.js'
4
+ import type { ErrorType } from '../../../errors/utils.js'
5
5
  import type {
6
6
  GetAccountParameter,
7
7
  JsonRpcAccount,
8
- } from '../../types/account.js'
9
- import type { Chain } from '../../types/chain.js'
8
+ } from '../../../types/account.js'
9
+ import type { Chain } from '../../../types/chain.js'
10
10
  import type {
11
11
  WalletCapabilities,
12
12
  WalletCapabilitiesRecord,
13
- } from '../../types/eip1193.js'
14
- import type { Prettify } from '../../types/utils.js'
15
- import { parseAccount } from '../../utils/accounts.js'
16
- import type { RequestErrorType } from '../../utils/buildRequest.js'
13
+ } from '../../../types/eip1193.js'
14
+ import type { Prettify } from '../../../types/utils.js'
15
+ import { parseAccount } from '../../../utils/accounts.js'
16
+ import type { RequestErrorType } from '../../../utils/buildRequest.js'
17
17
 
18
18
  export type GetCapabilitiesParameters<
19
19
  account extends JsonRpcAccount | undefined = JsonRpcAccount | undefined,
@@ -28,7 +28,7 @@ export type GetCapabilitiesErrorType = RequestErrorType | ErrorType
28
28
  /**
29
29
  * Extract capabilities that a connected wallet supports (e.g. paymasters, session keys, etc).
30
30
  *
31
- * - Docs: https://viem.sh/experimental/actions/getCapabilities
31
+ * - Docs: https://viem.sh/experimental/eip5792/getCapabilities
32
32
  * - JSON-RPC Methods: [`wallet_getCapabilities`](https://eips.ethereum.org/EIPS/eip-5792)
33
33
  *
34
34
  * @param client - Client to use
@@ -1,21 +1,21 @@
1
- import type { Client } from '../../clients/createClient.js'
2
- import type { Transport } from '../../clients/transports/createTransport.js'
3
- import { AccountNotFoundError } from '../../errors/account.js'
4
- import type { BaseError } from '../../errors/base.js'
5
- import { ChainNotFoundError } from '../../errors/chain.js'
6
- import type { ErrorType } from '../../errors/utils.js'
7
- import type { Account, GetAccountParameter } from '../../types/account.js'
8
- import type { Chain, GetChainParameter } from '../../types/chain.js'
1
+ import type { Client } from '../../../clients/createClient.js'
2
+ import type { Transport } from '../../../clients/transports/createTransport.js'
3
+ import { AccountNotFoundError } from '../../../errors/account.js'
4
+ import type { BaseError } from '../../../errors/base.js'
5
+ import { ChainNotFoundError } from '../../../errors/chain.js'
6
+ import type { ErrorType } from '../../../errors/utils.js'
7
+ import type { Account, GetAccountParameter } from '../../../types/account.js'
8
+ import type { Chain, GetChainParameter } from '../../../types/chain.js'
9
9
  import type {
10
10
  WalletCapabilities,
11
11
  WalletSendCallsParameters,
12
- } from '../../types/eip1193.js'
13
- import type { Hex } from '../../types/misc.js'
14
- import type { OneOf } from '../../types/utils.js'
15
- import { parseAccount } from '../../utils/accounts.js'
16
- import type { RequestErrorType } from '../../utils/buildRequest.js'
17
- import { numberToHex } from '../../utils/encoding/toHex.js'
18
- import { getTransactionError } from '../../utils/index.js'
12
+ } from '../../../types/eip1193.js'
13
+ import type { Hex } from '../../../types/misc.js'
14
+ import type { OneOf } from '../../../types/utils.js'
15
+ import { parseAccount } from '../../../utils/accounts.js'
16
+ import type { RequestErrorType } from '../../../utils/buildRequest.js'
17
+ import { numberToHex } from '../../../utils/encoding/toHex.js'
18
+ import { getTransactionError } from '../../../utils/index.js'
19
19
 
20
20
  export type SendCallsParameters<
21
21
  chain extends Chain | undefined = Chain | undefined,
@@ -46,7 +46,7 @@ export type SendCallsErrorType = RequestErrorType | ErrorType
46
46
  /**
47
47
  * Requests the connected wallet to send a batch of calls.
48
48
  *
49
- * - Docs: https://viem.sh/experimental/actions/sendCalls
49
+ * - Docs: https://viem.sh/experimental/eip5792/sendCalls
50
50
  * - JSON-RPC Methods: [`wallet_sendCalls`](https://eips.ethereum.org/EIPS/eip-5792)
51
51
  *
52
52
  * @param client - Client to use
@@ -93,7 +93,7 @@ export async function sendCalls<
93
93
 
94
94
  if (!account_)
95
95
  throw new AccountNotFoundError({
96
- docsPath: '/experimental/actions/sendCalls',
96
+ docsPath: '/experimental/eip5792/sendCalls',
97
97
  })
98
98
  const account = parseAccount(account_)
99
99
 
@@ -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/actions/showCallsStatus
18
+ * - Docs: https://viem.sh/experimental/eip5792/showCallsStatus
19
19
  * - JSON-RPC Methods: [`wallet_showCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
20
20
  *
21
21
  * @param client - Client to use
@@ -1,16 +1,16 @@
1
1
  import type { AbiStateMutability, Narrow } from 'abitype'
2
2
 
3
- import type { Client } from '../../clients/createClient.js'
4
- import type { Transport } from '../../clients/transports/createTransport.js'
5
- import type { ErrorType } from '../../errors/utils.js'
6
- import type { Account, GetAccountParameter } from '../../types/account.js'
7
- import type { Chain, GetChainParameter } from '../../types/chain.js'
8
- import type { ContractFunctionParameters } from '../../types/contract.js'
9
- import type { MulticallContracts } from '../../types/multicall.js'
3
+ import type { Client } from '../../../clients/createClient.js'
4
+ import type { Transport } from '../../../clients/transports/createTransport.js'
5
+ import type { ErrorType } from '../../../errors/utils.js'
6
+ import type { Account, GetAccountParameter } from '../../../types/account.js'
7
+ import type { Chain, GetChainParameter } from '../../../types/chain.js'
8
+ import type { ContractFunctionParameters } from '../../../types/contract.js'
9
+ import type { MulticallContracts } from '../../../types/multicall.js'
10
10
  import {
11
11
  type EncodeFunctionDataErrorType,
12
12
  encodeFunctionData,
13
- } from '../../utils/abi/encodeFunctionData.js'
13
+ } from '../../../utils/abi/encodeFunctionData.js'
14
14
  import {
15
15
  type SendCallsErrorType,
16
16
  type SendCallsParameters,
@@ -44,7 +44,7 @@ export type WriteContractsErrorType =
44
44
  /**
45
45
  * Requests for the wallet to sign and broadcast a batch of write contract calls (transactions) to the network.
46
46
  *
47
- * - Docs: https://viem.sh/experimental/actions/writeContracts
47
+ * - Docs: https://viem.sh/experimental/eip5792/writeContracts
48
48
  *
49
49
  * @param client - Client to use
50
50
  * @param parameters - {@link WriteContractsParameters}
@@ -1,7 +1,7 @@
1
- import type { Client } from '../../clients/createClient.js'
2
- import type { Transport } from '../../clients/transports/createTransport.js'
3
- import type { Account, JsonRpcAccount } from '../../types/account.js'
4
- import type { Chain } from '../../types/chain.js'
1
+ import type { Client } from '../../../clients/createClient.js'
2
+ import type { Transport } from '../../../clients/transports/createTransport.js'
3
+ import type { Account, JsonRpcAccount } from '../../../types/account.js'
4
+ import type { Chain } from '../../../types/chain.js'
5
5
  import {
6
6
  type GetCallsStatusParameters,
7
7
  type GetCallsStatusReturnType,
@@ -35,7 +35,7 @@ export type WalletActionsEip5792<
35
35
  /**
36
36
  * Returns the status of a call batch that was sent via `sendCalls`.
37
37
  *
38
- * - Docs: https://viem.sh/experimental/actions/getCallsStatus
38
+ * - Docs: https://viem.sh/experimental/eip5792/getCallsStatus
39
39
  * - JSON-RPC Methods: [`wallet_getCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
40
40
  *
41
41
  * @param client - Client to use
@@ -59,7 +59,7 @@ export type WalletActionsEip5792<
59
59
  /**
60
60
  * Extract capabilities that a connected wallet supports (e.g. paymasters, session keys, etc).
61
61
  *
62
- * - Docs: https://viem.sh/experimental/actions/getCapabilities
62
+ * - Docs: https://viem.sh/experimental/eip5792/getCapabilities
63
63
  * - JSON-RPC Methods: [`wallet_getCapabilities`](https://eips.ethereum.org/EIPS/eip-5792)
64
64
  *
65
65
  * @param client - Client to use
@@ -87,7 +87,7 @@ export type WalletActionsEip5792<
87
87
  /**
88
88
  * Requests the connected wallet to send a batch of calls.
89
89
  *
90
- * - Docs: https://viem.sh/experimental/actions/sendCalls
90
+ * - Docs: https://viem.sh/experimental/eip5792/sendCalls
91
91
  * - JSON-RPC Methods: [`wallet_sendCalls`](https://eips.ethereum.org/EIPS/eip-5792)
92
92
  *
93
93
  * @param client - Client to use
@@ -124,7 +124,7 @@ export type WalletActionsEip5792<
124
124
  * Requests for the wallet to show information about a call batch
125
125
  * that was sent via `sendCalls`.
126
126
  *
127
- * - Docs: https://viem.sh/experimental/actions/showCallsStatus
127
+ * - Docs: https://viem.sh/experimental/eip5792/showCallsStatus
128
128
  * - JSON-RPC Methods: [`wallet_showCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
129
129
  *
130
130
  * @param client - Client to use
@@ -148,7 +148,7 @@ export type WalletActionsEip5792<
148
148
  /**
149
149
  * Requests for the wallet to sign and broadcast a batch of write contract calls (transactions) to the network.
150
150
  *
151
- * - Docs: https://viem.sh/experimental/actions/writeContracts
151
+ * - Docs: https://viem.sh/experimental/eip5792/writeContracts
152
152
  *
153
153
  * @param client - Client to use
154
154
  * @param parameters - {@link WriteContractsParameters}
@@ -1,34 +1,56 @@
1
+ export {
2
+ type SignAuthMessageErrorType,
3
+ type SignAuthMessageParameters,
4
+ type SignAuthMessageReturnType,
5
+ signAuthMessage,
6
+ } from './eip3074/actions/signAuthMessage.js'
7
+ export {
8
+ type RecoverAuthMessageAddressParameters,
9
+ type RecoverAuthMessageAddressReturnType,
10
+ type RecoverAuthMessageAddressErrorType,
11
+ recoverAuthMessageAddress,
12
+ } from './eip3074/utils/recoverAuthMessageAddress.js'
13
+ export {
14
+ type VerifyAuthMessageParameters,
15
+ type VerifyAuthMessageReturnType,
16
+ type VerifyAuthMessageErrorType,
17
+ verifyAuthMessage,
18
+ } from './eip3074/utils/verifyAuthMessage.js'
19
+ export {
20
+ type WalletActionsEip3074,
21
+ walletActionsEip3074,
22
+ } from './eip3074/decorators/eip3074.js'
23
+
1
24
  export {
2
25
  type GetCapabilitiesErrorType,
3
26
  type GetCapabilitiesReturnType,
4
27
  getCapabilities,
5
- } from './actions/getCapabilities.js'
28
+ } from './eip5792/actions/getCapabilities.js'
6
29
  export {
7
30
  type SendCallsErrorType,
8
31
  type SendCallsParameters,
9
32
  type SendCallsReturnType,
10
33
  sendCalls,
11
- } from './actions/sendCalls.js'
34
+ } from './eip5792/actions/sendCalls.js'
12
35
  export {
13
36
  type GetCallsStatusErrorType,
14
37
  type GetCallsStatusParameters,
15
38
  type GetCallsStatusReturnType,
16
39
  getCallsStatus,
17
- } from './actions/getCallsStatus.js'
40
+ } from './eip5792/actions/getCallsStatus.js'
18
41
  export {
19
42
  type ShowCallsStatusErrorType,
20
43
  type ShowCallsStatusParameters,
21
44
  type ShowCallsStatusReturnType,
22
45
  showCallsStatus,
23
- } from './actions/showCallsStatus.js'
46
+ } from './eip5792/actions/showCallsStatus.js'
24
47
  export {
25
48
  type WriteContractsErrorType,
26
49
  type WriteContractsParameters,
27
50
  type WriteContractsReturnType,
28
51
  writeContracts,
29
- } from './actions/writeContracts.js'
30
-
52
+ } from './eip5792/actions/writeContracts.js'
31
53
  export {
32
54
  type WalletActionsEip5792,
33
55
  walletActionsEip5792,
34
- } from './decorators/eip5792.js'
56
+ } from './eip5792/decorators/eip5792.js'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.9.21",
4
+ "version": "2.9.23",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",
@@ -19,7 +19,7 @@ export type HexToSignatureErrorType = NumberToHexErrorType | ErrorType
19
19
  * hexToSignature('0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db81c')
20
20
  * // { r: '0x...', s: '0x...', v: 28n }
21
21
  */
22
- export function hexToSignature(signatureHex: Hex): Signature {
22
+ export function hexToSignature(signatureHex: Hex) {
23
23
  const { r, s } = secp256k1.Signature.fromCompact(signatureHex.slice(2, 130))
24
24
  const v = BigInt(`0x${signatureHex.slice(130)}`)
25
25
  return {
@@ -27,5 +27,5 @@ export function hexToSignature(signatureHex: Hex): Signature {
27
27
  s: numberToHex(s, { size: 32 }),
28
28
  v,
29
29
  yParity: v === 28n ? 1 : 0,
30
- }
30
+ } satisfies Signature
31
31
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCallsStatus.js","sourceRoot":"","sources":["../../../experimental/actions/getCallsStatus.ts"],"names":[],"mappings":";;;AAQA,gEAA6D;AAC7D,wFAA8E;AA8BvE,KAAK,UAAU,cAAc,CAIlC,MAAyC,EACzC,UAAoC;IAEpC,MAAM,EAAE,EAAE,EAAE,GAAG,UAAU,CAAA;IACzB,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAChD,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OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,8BAAmB,EAAC,GAAgB,EAAE;YAC1C,GAAG,UAAU;YACb,OAAO;YACP,KAAK,EAAE,UAAU,CAAC,KAAM;SACzB,CAAC,CAAA;IACJ,CAAC;AACH,CAAC;AAlDD,8BAkDC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"showCallsStatus.js","sourceRoot":"","sources":["../../../experimental/actions/showCallsStatus.ts"],"names":[],"mappings":";;;AAkCO,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;AAbD,0CAaC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"writeContracts.js","sourceRoot":"","sources":["../../../experimental/actions/writeContracts.ts"],"names":[],"mappings":";;;AASA,iFAG8C;AAC9C,iDAKuB;AAoEhB,KAAK,UAAU,cAAc,CAMlC,MAAgC,EAChC,UAKC;IAED,MAAM,SAAS,GAAG,UAAU,CAAC,SAAyC,CAAA;IACtE,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;QACvC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAA;QAC5D,OAAO;YACL,IAAI,EAAE,IAAA,0CAAkB,EAAC;gBACvB,GAAG;gBACH,YAAY;gBACZ,IAAI;aACL,CAAC;YACF,EAAE,EAAE,OAAO;YACX,KAAK;SACyC,CAAA;IAClD,CAAC,CAAC,CAAA;IACF,OAAO,IAAA,wBAAS,EAAC,MAAM,EAAE,EAAE,GAAG,UAAU,EAAE,KAAK,EAAyB,CAAC,CAAA;AAC3E,CAAC;AA5BD,wCA4BC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"eip5792.js","sourceRoot":"","sources":["../../../experimental/decorators/eip5792.ts"],"names":[],"mappings":";;;AAIA,oEAIqC;AACrC,sEAIsC;AACtC,0DAIgC;AAChC,sEAIsC;AACtC,oEAIqC;AAiMrC,SAAgB,oBAAoB;IAClC,OAAO,CAKL,MAAyC,EACH,EAAE;QACxC,OAAO;YACL,cAAc,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,kCAAc,EAAC,MAAM,EAAE,UAAU,CAAC;YAClE,eAAe,EAAE,CAAC,CAAC,UAAe,EAAE,EAAE,CACpC,IAAA,oCAAe,EAAC,MAAa,EAAE,UAAU,CAAC,CAAQ;YACpD,SAAS,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,wBAAS,EAAC,MAAM,EAAE,UAAU,CAAC;YACxD,eAAe,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,oCAAe,EAAC,MAAM,EAAE,UAAU,CAAC;YACpE,cAAc,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,kCAAc,EAAC,MAAM,EAAE,UAAU,CAAC;SACnE,CAAA;IACH,CAAC,CAAA;AACH,CAAC;AAjBD,oDAiBC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCallsStatus.js","sourceRoot":"","sources":["../../../experimental/actions/getCallsStatus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AAU9E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAIlC,MAAyC,EACzC,UAAoC;IAEpC,MAAM,EAAE,EAAE,EAAE,GAAG,UAAU,CAAA;IACzB,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAChD,MAAM,EAAE,uBAAuB;QA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,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;qBACxD,CAAC,CAAQ;oBACV,YAAY;oBACZ,OAAO,EAAE,WAAW,CAAC,KAAM,CAAC,EAAE,CAAC;oBAC/B,IAAI,EAAE,OAAO,CAAC,OAAO;oBACrB,OAAO;iBACR;aACF;SACF,EACD,EAAE,UAAU,EAAE,CAAC,EAAE,CAClB,CAAA;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,mBAAmB,CAAC,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/actions/showCallsStatus.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,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":"writeContracts.js","sourceRoot":"","sources":["../../../experimental/actions/writeContracts.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,kBAAkB,GACnB,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAIL,SAAS,GACV,MAAM,gBAAgB,CAAA;AAyBvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAMlC,MAAgC,EAChC,UAKC;IAED,MAAM,SAAS,GAAG,UAAU,CAAC,SAAyC,CAAA;IACtE,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,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,CAAC,cAAc,CAAC,MAAM,EAAE,UAAU,CAAC;SACnE,CAAA;IACH,CAAC,CAAA;AACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCallsStatus.d.ts","sourceRoot":"","sources":["../../../experimental/actions/getCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAA;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAInE,MAAM,MAAM,wBAAwB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA;AAErD,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAC7C,8BAA8B,CAAC,MAAM,EAAE,SAAS,GAAG,UAAU,CAAC,CAC/D,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,GAAG,SAAS,CAAA;AAElE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,cAAc,CAClC,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAE/C,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACzC,UAAU,EAAE,wBAAwB,GACnC,OAAO,CAAC,wBAAwB,CAAC,CAgBnC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCapabilities.d.ts","sourceRoot":"","sources":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