viem 2.9.22 → 2.9.24
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.
- package/CHANGELOG.md +20 -0
- package/_cjs/accounts/privateKeyToAccount.js +4 -0
- package/_cjs/accounts/privateKeyToAccount.js.map +1 -1
- package/_cjs/accounts/toAccount.js +1 -0
- package/_cjs/accounts/toAccount.js.map +1 -1
- package/_cjs/actions/public/watchBlockNumber.js +20 -2
- package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
- package/_cjs/actions/public/watchBlocks.js +20 -2
- package/_cjs/actions/public/watchBlocks.js.map +1 -1
- package/_cjs/actions/public/watchContractEvent.js +22 -4
- package/_cjs/actions/public/watchContractEvent.js.map +1 -1
- package/_cjs/actions/public/watchEvent.js +22 -4
- package/_cjs/actions/public/watchEvent.js.map +1 -1
- package/_cjs/chains/definitions/cyberTestnet.js +29 -0
- package/_cjs/chains/definitions/cyberTestnet.js.map +1 -0
- package/_cjs/chains/definitions/dreyerxMainnet.js +25 -0
- package/_cjs/chains/definitions/dreyerxMainnet.js.map +1 -0
- package/_cjs/chains/index.js +9 -5
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/transports/fallback.js +2 -2
- package/_cjs/clients/transports/fallback.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/experimental/eip3074/actions/signAuthMessage.js +18 -0
- package/_cjs/experimental/eip3074/actions/signAuthMessage.js.map +1 -0
- package/_cjs/experimental/eip3074/decorators/eip3074.js +13 -0
- package/_cjs/experimental/eip3074/decorators/eip3074.js.map +1 -0
- package/_cjs/experimental/eip3074/utils/recoverAuthMessageAddress.js +12 -0
- package/_cjs/experimental/eip3074/utils/recoverAuthMessageAddress.js.map +1 -0
- package/_cjs/experimental/eip3074/utils/signAuthMessage.js +17 -0
- package/_cjs/experimental/eip3074/utils/signAuthMessage.js.map +1 -0
- package/_cjs/experimental/eip3074/utils/toAuthMessage.js +17 -0
- package/_cjs/experimental/eip3074/utils/toAuthMessage.js.map +1 -0
- package/_cjs/experimental/eip3074/utils/verifyAuthMessage.js +11 -0
- package/_cjs/experimental/eip3074/utils/verifyAuthMessage.js.map +1 -0
- package/_cjs/experimental/{actions → eip5792/actions}/getCallsStatus.js +2 -2
- package/_cjs/experimental/eip5792/actions/getCallsStatus.js.map +1 -0
- package/_cjs/experimental/{actions → eip5792/actions}/getCapabilities.js +2 -2
- package/_cjs/experimental/eip5792/actions/getCapabilities.js.map +1 -0
- package/_cjs/experimental/{actions → eip5792/actions}/sendCalls.js +6 -6
- package/_cjs/experimental/eip5792/actions/sendCalls.js.map +1 -0
- package/_cjs/experimental/eip5792/actions/showCallsStatus.js.map +1 -0
- package/_cjs/experimental/{actions → eip5792/actions}/writeContracts.js +1 -1
- package/_cjs/experimental/eip5792/actions/writeContracts.js.map +1 -0
- package/_cjs/experimental/eip5792/decorators/eip5792.js.map +1 -0
- package/_cjs/experimental/index.js +15 -7
- package/_cjs/experimental/index.js.map +1 -1
- package/_cjs/utils/signature/hexToSignature.js.map +1 -1
- package/_esm/accounts/privateKeyToAccount.js +4 -0
- package/_esm/accounts/privateKeyToAccount.js.map +1 -1
- package/_esm/accounts/toAccount.js +1 -0
- package/_esm/accounts/toAccount.js.map +1 -1
- package/_esm/actions/public/verifyHash.js +1 -1
- package/_esm/actions/public/waitForTransactionReceipt.js +1 -1
- package/_esm/actions/public/watchBlockNumber.js +20 -2
- package/_esm/actions/public/watchBlockNumber.js.map +1 -1
- package/_esm/actions/public/watchBlocks.js +20 -2
- package/_esm/actions/public/watchBlocks.js.map +1 -1
- package/_esm/actions/public/watchContractEvent.js +22 -4
- package/_esm/actions/public/watchContractEvent.js.map +1 -1
- package/_esm/actions/public/watchEvent.js +22 -4
- package/_esm/actions/public/watchEvent.js.map +1 -1
- package/_esm/chains/definitions/cyberTestnet.js +26 -0
- package/_esm/chains/definitions/cyberTestnet.js.map +1 -0
- package/_esm/chains/definitions/dreyerxMainnet.js +22 -0
- package/_esm/chains/definitions/dreyerxMainnet.js.map +1 -0
- package/_esm/chains/index.js +2 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/transports/fallback.js +2 -2
- package/_esm/clients/transports/fallback.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/experimental/eip3074/actions/signAuthMessage.js +69 -0
- package/_esm/experimental/eip3074/actions/signAuthMessage.js.map +1 -0
- package/_esm/experimental/eip3074/decorators/eip3074.js +26 -0
- package/_esm/experimental/eip3074/decorators/eip3074.js.map +1 -0
- package/_esm/experimental/eip3074/utils/recoverAuthMessageAddress.js +8 -0
- package/_esm/experimental/eip3074/utils/recoverAuthMessageAddress.js.map +1 -0
- package/_esm/experimental/eip3074/utils/signAuthMessage.js +16 -0
- package/_esm/experimental/eip3074/utils/signAuthMessage.js.map +1 -0
- package/_esm/experimental/eip3074/utils/toAuthMessage.js +17 -0
- package/_esm/experimental/eip3074/utils/toAuthMessage.js.map +1 -0
- package/_esm/experimental/eip3074/utils/verifyAuthMessage.js +13 -0
- package/_esm/experimental/eip3074/utils/verifyAuthMessage.js.map +1 -0
- package/_esm/experimental/{actions → eip5792/actions}/getCallsStatus.js +3 -3
- package/_esm/experimental/eip5792/actions/getCallsStatus.js.map +1 -0
- package/_esm/experimental/{actions → eip5792/actions}/getCapabilities.js +3 -3
- package/_esm/experimental/eip5792/actions/getCapabilities.js.map +1 -0
- package/_esm/experimental/{actions → eip5792/actions}/sendCalls.js +7 -7
- package/_esm/experimental/eip5792/actions/sendCalls.js.map +1 -0
- package/_esm/experimental/{actions → eip5792/actions}/showCallsStatus.js +1 -1
- package/_esm/experimental/eip5792/actions/showCallsStatus.js.map +1 -0
- package/_esm/experimental/{actions → eip5792/actions}/writeContracts.js +2 -2
- package/_esm/experimental/eip5792/actions/writeContracts.js.map +1 -0
- package/_esm/experimental/eip5792/decorators/eip5792.js.map +1 -0
- package/_esm/experimental/index.js +10 -6
- package/_esm/experimental/index.js.map +1 -1
- package/_esm/utils/signature/hexToSignature.js.map +1 -1
- package/_types/accounts/privateKeyToAccount.d.ts.map +1 -1
- package/_types/accounts/toAccount.d.ts.map +1 -1
- package/_types/accounts/types.d.ts +5 -3
- package/_types/accounts/types.d.ts.map +1 -1
- package/_types/actions/public/verifyHash.d.ts +1 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts +1 -1
- package/_types/actions/public/watchBlockNumber.d.ts +2 -2
- package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/watchBlocks.d.ts +2 -2
- package/_types/actions/public/watchBlocks.d.ts.map +1 -1
- package/_types/actions/public/watchContractEvent.d.ts.map +1 -1
- package/_types/actions/public/watchEvent.d.ts.map +1 -1
- package/_types/celo/chainConfig.d.ts +114 -114
- package/_types/celo/formatters.d.ts +57 -57
- package/_types/chains/definitions/ancient8.d.ts +45 -45
- package/_types/chains/definitions/ancient8Sepolia.d.ts +45 -45
- package/_types/chains/definitions/base.d.ts +45 -45
- package/_types/chains/definitions/baseGoerli.d.ts +45 -45
- package/_types/chains/definitions/baseSepolia.d.ts +45 -45
- package/_types/chains/definitions/celo.d.ts +114 -114
- package/_types/chains/definitions/celoAlfajores.d.ts +114 -114
- package/_types/chains/definitions/cyberTestnet.d.ts +34 -0
- package/_types/chains/definitions/cyberTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/dreyerxMainnet.d.ts +35 -0
- package/_types/chains/definitions/dreyerxMainnet.d.ts.map +1 -0
- package/_types/chains/definitions/fraxtal.d.ts +45 -45
- package/_types/chains/definitions/fraxtalTestnet.d.ts +45 -45
- package/_types/chains/definitions/liskSepolia.d.ts +45 -45
- package/_types/chains/definitions/optimism.d.ts +45 -45
- package/_types/chains/definitions/optimismGoerli.d.ts +45 -45
- package/_types/chains/definitions/optimismSepolia.d.ts +45 -45
- package/_types/chains/definitions/pgn.d.ts +45 -45
- package/_types/chains/definitions/pgnTestnet.d.ts +45 -45
- package/_types/chains/definitions/rss3.d.ts +45 -45
- package/_types/chains/definitions/rss3Sepolia.d.ts +45 -45
- package/_types/chains/definitions/zora.d.ts +45 -45
- package/_types/chains/definitions/zoraSepolia.d.ts +45 -45
- package/_types/chains/definitions/zoraTestnet.d.ts +45 -45
- package/_types/chains/index.d.ts +2 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/transports/fallback.d.ts +5 -3
- package/_types/clients/transports/fallback.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/experimental/eip3074/actions/signAuthMessage.d.ts +72 -0
- package/_types/experimental/eip3074/actions/signAuthMessage.d.ts.map +1 -0
- package/_types/experimental/eip3074/decorators/eip3074.d.ts +27 -0
- package/_types/experimental/eip3074/decorators/eip3074.d.ts.map +1 -0
- package/_types/experimental/eip3074/utils/recoverAuthMessageAddress.d.ts +12 -0
- package/_types/experimental/eip3074/utils/recoverAuthMessageAddress.d.ts.map +1 -0
- package/_types/experimental/eip3074/utils/signAuthMessage.d.ts +16 -0
- package/_types/experimental/eip3074/utils/signAuthMessage.d.ts.map +1 -0
- package/_types/experimental/eip3074/utils/toAuthMessage.d.ts +20 -0
- package/_types/experimental/eip3074/utils/toAuthMessage.d.ts.map +1 -0
- package/_types/experimental/eip3074/utils/verifyAuthMessage.d.ts +19 -0
- package/_types/experimental/eip3074/utils/verifyAuthMessage.d.ts.map +1 -0
- package/_types/experimental/{actions → eip5792/actions}/getCallsStatus.d.ts +9 -9
- package/_types/experimental/eip5792/actions/getCallsStatus.d.ts.map +1 -0
- package/_types/experimental/{actions → eip5792/actions}/getCapabilities.d.ts +9 -9
- package/_types/experimental/eip5792/actions/getCapabilities.d.ts.map +1 -0
- package/_types/experimental/{actions → eip5792/actions}/sendCalls.d.ts +10 -10
- package/_types/experimental/eip5792/actions/sendCalls.d.ts.map +1 -0
- package/_types/experimental/{actions → eip5792/actions}/showCallsStatus.d.ts +7 -7
- package/_types/experimental/eip5792/actions/showCallsStatus.d.ts.map +1 -0
- package/_types/experimental/{actions → eip5792/actions}/writeContracts.d.ts +9 -9
- package/_types/experimental/eip5792/actions/writeContracts.d.ts.map +1 -0
- package/_types/experimental/{decorators → eip5792/decorators}/eip5792.d.ts +9 -9
- package/_types/experimental/eip5792/decorators/eip5792.d.ts.map +1 -0
- package/_types/experimental/index.d.ts +10 -6
- package/_types/experimental/index.d.ts.map +1 -1
- package/_types/op-stack/chainConfig.d.ts +45 -45
- package/_types/op-stack/formatters.d.ts +45 -45
- package/_types/types/transport.d.ts +6 -1
- package/_types/types/transport.d.ts.map +1 -1
- package/_types/types/utils.d.ts +11 -0
- package/_types/types/utils.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/_types/utils/signature/hexToSignature.d.ts +7 -2
- package/_types/utils/signature/hexToSignature.d.ts.map +1 -1
- package/accounts/privateKeyToAccount.ts +5 -1
- package/accounts/toAccount.ts +1 -0
- package/accounts/types.ts +12 -5
- package/actions/public/verifyHash.ts +1 -1
- package/actions/public/waitForTransactionReceipt.ts +1 -1
- package/actions/public/watchBlockNumber.ts +36 -17
- package/actions/public/watchBlocks.ts +25 -5
- package/actions/public/watchContractEvent.ts +66 -48
- package/actions/public/watchEvent.ts +24 -5
- package/chains/definitions/cyberTestnet.ts +26 -0
- package/chains/definitions/dreyerxMainnet.ts +22 -0
- package/chains/index.ts +2 -0
- package/clients/transports/fallback.ts +16 -13
- package/errors/version.ts +1 -1
- package/experimental/eip3074/actions/signAuthMessage.ts +103 -0
- package/experimental/eip3074/decorators/eip3074.ts +51 -0
- package/experimental/eip3074/utils/recoverAuthMessageAddress.ts +29 -0
- package/experimental/eip3074/utils/signAuthMessage.ts +40 -0
- package/experimental/eip3074/utils/toAuthMessage.ts +50 -0
- package/experimental/eip3074/utils/verifyAuthMessage.ts +46 -0
- package/experimental/{actions → eip5792/actions}/getCallsStatus.ts +11 -11
- package/experimental/{actions → eip5792/actions}/getCapabilities.ts +11 -11
- package/experimental/{actions → eip5792/actions}/sendCalls.ts +17 -17
- package/experimental/{actions → eip5792/actions}/showCallsStatus.ts +7 -7
- package/experimental/{actions → eip5792/actions}/writeContracts.ts +9 -9
- package/experimental/{decorators → eip5792/decorators}/eip5792.ts +9 -9
- package/experimental/index.ts +29 -7
- package/package.json +1 -1
- package/types/transport.ts +16 -1
- package/types/utils.ts +16 -0
- package/utils/signature/hexToSignature.ts +2 -2
- package/_cjs/experimental/actions/getCallsStatus.js.map +0 -1
- package/_cjs/experimental/actions/getCapabilities.js.map +0 -1
- package/_cjs/experimental/actions/sendCalls.js.map +0 -1
- package/_cjs/experimental/actions/showCallsStatus.js.map +0 -1
- package/_cjs/experimental/actions/writeContracts.js.map +0 -1
- package/_cjs/experimental/decorators/eip5792.js.map +0 -1
- package/_esm/experimental/actions/getCallsStatus.js.map +0 -1
- package/_esm/experimental/actions/getCapabilities.js.map +0 -1
- package/_esm/experimental/actions/sendCalls.js.map +0 -1
- package/_esm/experimental/actions/showCallsStatus.js.map +0 -1
- package/_esm/experimental/actions/writeContracts.js.map +0 -1
- package/_esm/experimental/decorators/eip5792.js.map +0 -1
- package/_types/experimental/actions/getCallsStatus.d.ts.map +0 -1
- package/_types/experimental/actions/getCapabilities.d.ts.map +0 -1
- package/_types/experimental/actions/sendCalls.d.ts.map +0 -1
- package/_types/experimental/actions/showCallsStatus.d.ts.map +0 -1
- package/_types/experimental/actions/writeContracts.d.ts.map +0 -1
- package/_types/experimental/decorators/eip5792.d.ts.map +0 -1
- /package/_cjs/experimental/{actions → eip5792/actions}/showCallsStatus.js +0 -0
- /package/_cjs/experimental/{decorators → eip5792/decorators}/eip5792.js +0 -0
- /package/_esm/experimental/{decorators → eip5792/decorators}/eip5792.js +0 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { Address } from 'abitype';
|
2
|
+
import type { ErrorType } from '../../../errors/utils.js';
|
3
|
+
import { type GetAddressErrorType } from '../../../utils/address/getAddress.js';
|
4
|
+
import { type IsAddressEqualErrorType } from '../../../utils/address/isAddressEqual.js';
|
5
|
+
import { type RecoverAuthMessageAddressErrorType, type RecoverAuthMessageAddressParameters } from './recoverAuthMessageAddress.js';
|
6
|
+
export type VerifyAuthMessageParameters = RecoverAuthMessageAddressParameters & {
|
7
|
+
/** The address that signed the original auth message. */
|
8
|
+
address: Address;
|
9
|
+
};
|
10
|
+
export type VerifyAuthMessageReturnType = boolean;
|
11
|
+
export type VerifyAuthMessageErrorType = IsAddressEqualErrorType | GetAddressErrorType | RecoverAuthMessageAddressErrorType | ErrorType;
|
12
|
+
/**
|
13
|
+
* Verify that a auth message was signed by the provided address.
|
14
|
+
*
|
15
|
+
* @param parameters - {@link VerifyAuthMessageParameters}
|
16
|
+
* @returns Whether or not the signature is valid. {@link VerifyAuthMessageReturnType}
|
17
|
+
*/
|
18
|
+
export declare function verifyAuthMessage({ address, ...parameters }: VerifyAuthMessageParameters): Promise<VerifyAuthMessageReturnType>;
|
19
|
+
//# sourceMappingURL=verifyAuthMessage.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"verifyAuthMessage.d.ts","sourceRoot":"","sources":["../../../../experimental/eip3074/utils/verifyAuthMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,0CAA0C,CAAA;AACjD,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAEzC,MAAM,gCAAgC,CAAA;AAEvC,MAAM,MAAM,2BAA2B,GACrC,mCAAmC,GAAG;IACpC,yDAAyD;IACzD,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAEH,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAA;AAEjD,MAAM,MAAM,0BAA0B,GAClC,uBAAuB,GACvB,mBAAmB,GACnB,kCAAkC,GAClC,SAAS,CAAA;AAEb;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,EACtC,OAAO,EACP,GAAG,UAAU,EACd,EAAE,2BAA2B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAKpE"}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import type { Client } from '
|
2
|
-
import type { Transport } from '
|
3
|
-
import type { ErrorType } from '
|
4
|
-
import type { Account } from '
|
5
|
-
import type { Chain } from '
|
6
|
-
import type { WalletGetCallsStatusReturnType } from '
|
7
|
-
import type { Prettify } from '
|
8
|
-
import type { RequestErrorType } from '
|
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
9
|
export type GetCallsStatusParameters = {
|
10
10
|
id: string;
|
11
11
|
};
|
@@ -14,7 +14,7 @@ export type GetCallsStatusErrorType = RequestErrorType | ErrorType;
|
|
14
14
|
/**
|
15
15
|
* Returns the status of a call batch that was sent via `sendCalls`.
|
16
16
|
*
|
17
|
-
* - Docs: https://viem.sh/experimental/
|
17
|
+
* - Docs: https://viem.sh/experimental/eip5792/getCallsStatus
|
18
18
|
* - JSON-RPC Methods: [`wallet_getCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
|
19
19
|
*
|
20
20
|
* @param client - Client to use
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getCallsStatus.d.ts","sourceRoot":"","sources":["../../../../experimental/eip5792/actions/getCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAItE,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,18 +1,18 @@
|
|
1
|
-
import type { Client } from '
|
2
|
-
import type { Transport } from '
|
3
|
-
import type { ErrorType } from '
|
4
|
-
import type { GetAccountParameter, JsonRpcAccount } from '
|
5
|
-
import type { Chain } from '
|
6
|
-
import type { WalletCapabilities, WalletCapabilitiesRecord } from '
|
7
|
-
import type { Prettify } from '
|
8
|
-
import type { RequestErrorType } from '
|
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 { GetAccountParameter, JsonRpcAccount } from '../../../types/account.js';
|
5
|
+
import type { Chain } from '../../../types/chain.js';
|
6
|
+
import type { WalletCapabilities, WalletCapabilitiesRecord } from '../../../types/eip1193.js';
|
7
|
+
import type { Prettify } from '../../../types/utils.js';
|
8
|
+
import type { RequestErrorType } from '../../../utils/buildRequest.js';
|
9
9
|
export type GetCapabilitiesParameters<account extends JsonRpcAccount | undefined = JsonRpcAccount | undefined> = GetAccountParameter<account>;
|
10
10
|
export type GetCapabilitiesReturnType = Prettify<WalletCapabilitiesRecord<WalletCapabilities, number>>;
|
11
11
|
export type GetCapabilitiesErrorType = RequestErrorType | ErrorType;
|
12
12
|
/**
|
13
13
|
* Extract capabilities that a connected wallet supports (e.g. paymasters, session keys, etc).
|
14
14
|
*
|
15
|
-
* - Docs: https://viem.sh/experimental/
|
15
|
+
* - Docs: https://viem.sh/experimental/eip5792/getCapabilities
|
16
16
|
* - JSON-RPC Methods: [`wallet_getCapabilities`](https://eips.ethereum.org/EIPS/eip-5792)
|
17
17
|
*
|
18
18
|
* @param client - Client to use
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getCapabilities.d.ts","sourceRoot":"","sources":["../../../../experimental/eip5792/actions/getCapabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAE/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAEvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAEtE,MAAM,MAAM,yBAAyB,CACnC,OAAO,SAAS,cAAc,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,IACrE,mBAAmB,CAAC,OAAO,CAAC,CAAA;AAEhC,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAC9C,wBAAwB,CAAC,kBAAkB,EAAE,MAAM,CAAC,CACrD,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,GAAG,SAAS,CAAA;AAEnE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,eAAe,CACnC,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,OAAO,SAAS,cAAc,GAAG,SAAS,GAAG,SAAS,EAEtD,GAAG,UAAU,EAAE,OAAO,SAAS,cAAc,GAErC,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,GAC3C;IACE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC;IACzC,UAAU,EAAE,yBAAyB,CAAC,OAAO,CAAC;CAC/C,GACL;IACE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC;IACzC,UAAU,EAAE,yBAAyB,CAAC,OAAO,CAAC;CAC/C,GACJ,OAAO,CAAC,yBAAyB,CAAC,CAmBpC"}
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import type { Client } from '
|
2
|
-
import type { Transport } from '
|
3
|
-
import type { ErrorType } from '
|
4
|
-
import type { Account, GetAccountParameter } from '
|
5
|
-
import type { Chain, GetChainParameter } from '
|
6
|
-
import type { WalletCapabilities, WalletSendCallsParameters } from '
|
7
|
-
import type { Hex } from '
|
8
|
-
import type { OneOf } from '
|
9
|
-
import type { RequestErrorType } from '
|
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, GetAccountParameter } from '../../../types/account.js';
|
5
|
+
import type { Chain, GetChainParameter } from '../../../types/chain.js';
|
6
|
+
import type { WalletCapabilities, WalletSendCallsParameters } from '../../../types/eip1193.js';
|
7
|
+
import type { Hex } from '../../../types/misc.js';
|
8
|
+
import type { OneOf } from '../../../types/utils.js';
|
9
|
+
import type { RequestErrorType } from '../../../utils/buildRequest.js';
|
10
10
|
export type SendCallsParameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined, chainOverride extends Chain | undefined = Chain | undefined> = {
|
11
11
|
calls: OneOf<{
|
12
12
|
to: Hex;
|
@@ -23,7 +23,7 @@ export type SendCallsErrorType = RequestErrorType | ErrorType;
|
|
23
23
|
/**
|
24
24
|
* Requests the connected wallet to send a batch of calls.
|
25
25
|
*
|
26
|
-
* - Docs: https://viem.sh/experimental/
|
26
|
+
* - Docs: https://viem.sh/experimental/eip5792/sendCalls
|
27
27
|
* - JSON-RPC Methods: [`wallet_sendCalls`](https://eips.ethereum.org/EIPS/eip-5792)
|
28
28
|
*
|
29
29
|
* @param client - Client to use
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sendCalls.d.ts","sourceRoot":"","sources":["../../../../experimental/eip5792/actions/sendCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAI/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACvE,OAAO,KAA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,SAAS,GAAG,SAAS,EAEnD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACzC,UAAU,EAAE,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,GAC7D,OAAO,CAAC,mBAAmB,CAAC,CA2C9B"}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import type { Client } from '
|
2
|
-
import type { Transport } from '
|
3
|
-
import type { ErrorType } from '
|
4
|
-
import type { Account } from '
|
5
|
-
import type { Chain } from '
|
6
|
-
import type { RequestErrorType } from '
|
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
|
export type ShowCallsStatusParameters = {
|
8
8
|
id: string;
|
9
9
|
};
|
@@ -13,7 +13,7 @@ export type ShowCallsStatusErrorType = RequestErrorType | ErrorType;
|
|
13
13
|
* Requests for the wallet to show information about a call batch
|
14
14
|
* that was sent via `sendCalls`.
|
15
15
|
*
|
16
|
-
* - Docs: https://viem.sh/experimental/
|
16
|
+
* - Docs: https://viem.sh/experimental/eip5792/showCallsStatus
|
17
17
|
* - JSON-RPC Methods: [`wallet_showCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
|
18
18
|
*
|
19
19
|
* @param client - Client to use
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"showCallsStatus.d.ts","sourceRoot":"","sources":["../../../../experimental/eip5792/actions/showCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAEtE,MAAM,MAAM,yBAAyB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA;AAEtD,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAA;AAE5C,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,GAAG,SAAS,CAAA;AAEnE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,eAAe,CACnC,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,yBAAyB,GACpC,OAAO,CAAC,yBAAyB,CAAC,CAOpC"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import type { AbiStateMutability, Narrow } from 'abitype';
|
2
|
-
import type { Client } from '
|
3
|
-
import type { Transport } from '
|
4
|
-
import type { ErrorType } from '
|
5
|
-
import type { Account, GetAccountParameter } from '
|
6
|
-
import type { Chain, GetChainParameter } from '
|
7
|
-
import type { ContractFunctionParameters } from '
|
8
|
-
import type { MulticallContracts } from '
|
9
|
-
import { type EncodeFunctionDataErrorType } from '
|
2
|
+
import type { Client } from '../../../clients/createClient.js';
|
3
|
+
import type { Transport } from '../../../clients/transports/createTransport.js';
|
4
|
+
import type { ErrorType } from '../../../errors/utils.js';
|
5
|
+
import type { Account, GetAccountParameter } from '../../../types/account.js';
|
6
|
+
import type { Chain, GetChainParameter } from '../../../types/chain.js';
|
7
|
+
import type { ContractFunctionParameters } from '../../../types/contract.js';
|
8
|
+
import type { MulticallContracts } from '../../../types/multicall.js';
|
9
|
+
import { type EncodeFunctionDataErrorType } from '../../../utils/abi/encodeFunctionData.js';
|
10
10
|
import { type SendCallsErrorType, type SendCallsParameters, type SendCallsReturnType } from './sendCalls.js';
|
11
11
|
export type WriteContractsParameters<contracts extends readonly unknown[] = readonly ContractFunctionParameters[], chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined, chainOverride extends Chain | undefined = Chain | undefined> = Pick<SendCallsParameters<chain, account, chainOverride>, 'capabilities' | 'version'> & {
|
12
12
|
contracts: MulticallContracts<Narrow<contracts>, {
|
@@ -18,7 +18,7 @@ export type WriteContractsErrorType = EncodeFunctionDataErrorType | SendCallsErr
|
|
18
18
|
/**
|
19
19
|
* Requests for the wallet to sign and broadcast a batch of write contract calls (transactions) to the network.
|
20
20
|
*
|
21
|
-
* - Docs: https://viem.sh/experimental/
|
21
|
+
* - Docs: https://viem.sh/experimental/eip5792/writeContracts
|
22
22
|
*
|
23
23
|
* @param client - Client to use
|
24
24
|
* @param parameters - {@link WriteContractsParameters}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"writeContracts.d.ts","sourceRoot":"","sources":["../../../../experimental/eip5792/actions/writeContracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACvE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CA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AAK,EACL,OAAO,EACP,aAAa,CACd,GACA,OAAO,CAAC,wBAAwB,CAAC,CAenC"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { Client } from '
|
2
|
-
import type { Transport } from '
|
3
|
-
import type { Account, JsonRpcAccount } from '
|
4
|
-
import type { Chain } from '
|
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 { type GetCallsStatusParameters, type GetCallsStatusReturnType } from '../actions/getCallsStatus.js';
|
6
6
|
import { type GetCapabilitiesParameters, type GetCapabilitiesReturnType } from '../actions/getCapabilities.js';
|
7
7
|
import { type SendCallsParameters, type SendCallsReturnType } from '../actions/sendCalls.js';
|
@@ -11,7 +11,7 @@ export type WalletActionsEip5792<chain extends Chain | undefined = Chain | undef
|
|
11
11
|
/**
|
12
12
|
* Returns the status of a call batch that was sent via `sendCalls`.
|
13
13
|
*
|
14
|
-
* - Docs: https://viem.sh/experimental/
|
14
|
+
* - Docs: https://viem.sh/experimental/eip5792/getCallsStatus
|
15
15
|
* - JSON-RPC Methods: [`wallet_getCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
|
16
16
|
*
|
17
17
|
* @param client - Client to use
|
@@ -33,7 +33,7 @@ export type WalletActionsEip5792<chain extends Chain | undefined = Chain | undef
|
|
33
33
|
/**
|
34
34
|
* Extract capabilities that a connected wallet supports (e.g. paymasters, session keys, etc).
|
35
35
|
*
|
36
|
-
* - Docs: https://viem.sh/experimental/
|
36
|
+
* - Docs: https://viem.sh/experimental/eip5792/getCapabilities
|
37
37
|
* - JSON-RPC Methods: [`wallet_getCapabilities`](https://eips.ethereum.org/EIPS/eip-5792)
|
38
38
|
*
|
39
39
|
* @param client - Client to use
|
@@ -57,7 +57,7 @@ export type WalletActionsEip5792<chain extends Chain | undefined = Chain | undef
|
|
57
57
|
/**
|
58
58
|
* Requests the connected wallet to send a batch of calls.
|
59
59
|
*
|
60
|
-
* - Docs: https://viem.sh/experimental/
|
60
|
+
* - Docs: https://viem.sh/experimental/eip5792/sendCalls
|
61
61
|
* - JSON-RPC Methods: [`wallet_sendCalls`](https://eips.ethereum.org/EIPS/eip-5792)
|
62
62
|
*
|
63
63
|
* @param client - Client to use
|
@@ -92,7 +92,7 @@ export type WalletActionsEip5792<chain extends Chain | undefined = Chain | undef
|
|
92
92
|
* Requests for the wallet to show information about a call batch
|
93
93
|
* that was sent via `sendCalls`.
|
94
94
|
*
|
95
|
-
* - Docs: https://viem.sh/experimental/
|
95
|
+
* - Docs: https://viem.sh/experimental/eip5792/showCallsStatus
|
96
96
|
* - JSON-RPC Methods: [`wallet_showCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792)
|
97
97
|
*
|
98
98
|
* @param client - Client to use
|
@@ -114,7 +114,7 @@ export type WalletActionsEip5792<chain extends Chain | undefined = Chain | undef
|
|
114
114
|
/**
|
115
115
|
* Requests for the wallet to sign and broadcast a batch of write contract calls (transactions) to the network.
|
116
116
|
*
|
117
|
-
* - Docs: https://viem.sh/experimental/
|
117
|
+
* - Docs: https://viem.sh/experimental/eip5792/writeContracts
|
118
118
|
*
|
119
119
|
* @param client - Client to use
|
120
120
|
* @param parameters - {@link WriteContractsParameters}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"eip5792.d.ts","sourceRoot":"","sources":["../../../../experimental/eip5792/decorators/eip5792.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EACL,KAAK,wBAAwB,EAC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,CAAA;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,cAAc,EAAE,CACd,KAAK,CAAC,SAAS,SAAS,SAAS,OAAO,EAAE,EAC1C,aAAa,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EAEnD,UAAU,EAAE,wBAAwB,CAClC,SAAS,EACT,KAAK,EACL,OAAO,EACP,aAAa,CACd,KACE,OAAO,CAAC,wBAAwB,CAAC,CAAA;CACvC,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oBAAoB,0JAMxB,OAAO,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,KACxC,qBAAqB,KAAK,EAAE,OAAO,CAAC,CAUxC"}
|
@@ -1,7 +1,11 @@
|
|
1
|
-
export { type
|
2
|
-
export { type
|
3
|
-
export { type
|
4
|
-
export { type
|
5
|
-
export { type
|
6
|
-
export { type
|
1
|
+
export { type SignAuthMessageErrorType, type SignAuthMessageParameters, type SignAuthMessageReturnType, signAuthMessage, } from './eip3074/actions/signAuthMessage.js';
|
2
|
+
export { type RecoverAuthMessageAddressParameters, type RecoverAuthMessageAddressReturnType, type RecoverAuthMessageAddressErrorType, recoverAuthMessageAddress, } from './eip3074/utils/recoverAuthMessageAddress.js';
|
3
|
+
export { type VerifyAuthMessageParameters, type VerifyAuthMessageReturnType, type VerifyAuthMessageErrorType, verifyAuthMessage, } from './eip3074/utils/verifyAuthMessage.js';
|
4
|
+
export { type WalletActionsEip3074, walletActionsEip3074, } from './eip3074/decorators/eip3074.js';
|
5
|
+
export { type GetCapabilitiesErrorType, type GetCapabilitiesReturnType, getCapabilities, } from './eip5792/actions/getCapabilities.js';
|
6
|
+
export { type SendCallsErrorType, type SendCallsParameters, type SendCallsReturnType, sendCalls, } from './eip5792/actions/sendCalls.js';
|
7
|
+
export { type GetCallsStatusErrorType, type GetCallsStatusParameters, type GetCallsStatusReturnType, getCallsStatus, } from './eip5792/actions/getCallsStatus.js';
|
8
|
+
export { type ShowCallsStatusErrorType, type ShowCallsStatusParameters, type ShowCallsStatusReturnType, showCallsStatus, } from './eip5792/actions/showCallsStatus.js';
|
9
|
+
export { type WriteContractsErrorType, type WriteContractsParameters, type WriteContractsReturnType, writeContracts, } from './eip5792/actions/writeContracts.js';
|
10
|
+
export { type WalletActionsEip5792, walletActionsEip5792, } from './eip5792/decorators/eip5792.js';
|
7
11
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../experimental/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,eAAe,GAChB,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../experimental/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,eAAe,GAChB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,KAAK,mCAAmC,EACxC,KAAK,mCAAmC,EACxC,KAAK,kCAAkC,EACvC,yBAAyB,GAC1B,MAAM,8CAA8C,CAAA;AACrD,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,iBAAiB,GAClB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,KAAK,oBAAoB,EACzB,oBAAoB,GACrB,MAAM,iCAAiC,CAAA;AAExC,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,eAAe,GAChB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,SAAS,GACV,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,cAAc,GACf,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,eAAe,GAChB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,cAAc,GACf,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,oBAAoB,EACzB,oBAAoB,GACrB,MAAM,iCAAiC,CAAA"}
|