@metamask-previews/keyring-api 11.0.0-b85bfaa → 11.0.0-cd6bf38
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/dist/JsonRpcRequest.cjs +13 -0
- package/dist/JsonRpcRequest.cjs.map +1 -0
- package/dist/JsonRpcRequest.d.cts +17 -0
- package/dist/JsonRpcRequest.d.cts.map +1 -0
- package/dist/JsonRpcRequest.d.mts +17 -0
- package/dist/JsonRpcRequest.d.mts.map +1 -0
- package/dist/JsonRpcRequest.mjs +10 -0
- package/dist/JsonRpcRequest.mjs.map +1 -0
- package/dist/KeyringClient.cjs +130 -0
- package/dist/KeyringClient.cjs.map +1 -0
- package/dist/KeyringClient.d.cts +31 -0
- package/dist/KeyringClient.d.cts.map +1 -0
- package/dist/KeyringClient.d.mts +31 -0
- package/dist/KeyringClient.d.mts.map +1 -0
- package/dist/KeyringClient.mjs +126 -0
- package/dist/KeyringClient.mjs.map +1 -0
- package/dist/KeyringSnapRpcClient.cjs +68 -0
- package/dist/KeyringSnapRpcClient.cjs.map +1 -0
- package/dist/KeyringSnapRpcClient.d.cts +40 -0
- package/dist/KeyringSnapRpcClient.d.cts.map +1 -0
- package/dist/KeyringSnapRpcClient.d.mts +40 -0
- package/dist/KeyringSnapRpcClient.d.mts.map +1 -0
- package/dist/KeyringSnapRpcClient.mjs +63 -0
- package/dist/KeyringSnapRpcClient.mjs.map +1 -0
- package/dist/{account.cjs → api/account.cjs} +4 -3
- package/dist/api/account.cjs.map +1 -0
- package/dist/{account.d.cts → api/account.d.cts} +1 -1
- package/dist/api/account.d.cts.map +1 -0
- package/dist/{account.d.mts → api/account.d.mts} +1 -1
- package/dist/api/account.d.mts.map +1 -0
- package/dist/{account.mjs → api/account.mjs} +2 -1
- package/dist/api/account.mjs.map +1 -0
- package/dist/api/asset.cjs +83 -0
- package/dist/api/asset.cjs.map +1 -0
- package/dist/api/asset.d.cts +93 -0
- package/dist/api/asset.d.cts.map +1 -0
- package/dist/api/asset.d.mts +93 -0
- package/dist/api/asset.d.mts.map +1 -0
- package/dist/api/asset.mjs +80 -0
- package/dist/api/asset.mjs.map +1 -0
- package/dist/api/balance.cjs +11 -0
- package/dist/api/balance.cjs.map +1 -0
- package/dist/{balance.d.cts → api/balance.d.cts} +1 -1
- package/dist/api/balance.d.cts.map +1 -0
- package/dist/{balance.d.mts → api/balance.d.mts} +1 -1
- package/dist/api/balance.d.mts.map +1 -0
- package/dist/{balance.mjs → api/balance.mjs} +2 -1
- package/dist/api/balance.mjs.map +1 -0
- package/dist/{caip.cjs → api/caip.cjs} +3 -3
- package/dist/{caip.cjs.map → api/caip.cjs.map} +1 -1
- package/dist/api/caip.d.cts.map +1 -0
- package/dist/api/caip.d.mts.map +1 -0
- package/dist/{caip.mjs → api/caip.mjs} +1 -1
- package/dist/{caip.mjs.map → api/caip.mjs.map} +1 -1
- package/dist/api/export.cjs.map +1 -0
- package/dist/api/export.d.cts.map +1 -0
- package/dist/api/export.d.mts.map +1 -0
- package/dist/api/export.mjs.map +1 -0
- package/dist/api/index.cjs +25 -0
- package/dist/api/index.cjs.map +1 -0
- package/dist/api/index.d.cts +10 -0
- package/dist/api/index.d.cts.map +1 -0
- package/dist/api/index.d.mts +10 -0
- package/dist/api/index.d.mts.map +1 -0
- package/dist/api/index.mjs +9 -0
- package/dist/api/index.mjs.map +1 -0
- package/dist/api/keyring.cjs +3 -0
- package/dist/api/keyring.cjs.map +1 -0
- package/dist/{keyring.d.cts → api/keyring.d.cts} +14 -0
- package/dist/api/keyring.d.cts.map +1 -0
- package/dist/{keyring.d.mts → api/keyring.d.mts} +14 -0
- package/dist/api/keyring.d.mts.map +1 -0
- package/dist/api/keyring.mjs +2 -0
- package/dist/api/keyring.mjs.map +1 -0
- package/dist/{request.cjs → api/request.cjs} +7 -6
- package/dist/api/request.cjs.map +1 -0
- package/dist/{request.d.cts → api/request.d.cts} +3 -3
- package/dist/api/request.d.cts.map +1 -0
- package/dist/{request.d.mts → api/request.d.mts} +3 -3
- package/dist/api/request.d.mts.map +1 -0
- package/dist/{request.mjs → api/request.mjs} +2 -1
- package/dist/api/request.mjs.map +1 -0
- package/dist/{response.cjs → api/response.cjs} +6 -6
- package/dist/{response.cjs.map → api/response.cjs.map} +1 -1
- package/dist/api/response.d.cts.map +1 -0
- package/dist/api/response.d.mts.map +1 -0
- package/dist/{response.mjs → api/response.mjs} +1 -1
- package/dist/{response.mjs.map → api/response.mjs.map} +1 -1
- package/dist/api/transaction.cjs +283 -0
- package/dist/api/transaction.cjs.map +1 -0
- package/dist/api/transaction.d.cts +761 -0
- package/dist/api/transaction.d.cts.map +1 -0
- package/dist/api/transaction.d.mts +761 -0
- package/dist/api/transaction.d.mts.map +1 -0
- package/dist/api/transaction.mjs +280 -0
- package/dist/api/transaction.mjs.map +1 -0
- package/dist/btc/index.cjs +18 -0
- package/dist/btc/index.cjs.map +1 -0
- package/dist/btc/index.d.cts +2 -0
- package/dist/btc/index.d.cts.map +1 -0
- package/dist/btc/index.d.mts +2 -0
- package/dist/btc/index.d.mts.map +1 -0
- package/dist/btc/index.mjs +2 -0
- package/dist/btc/index.mjs.map +1 -0
- package/dist/btc/types.cjs +40 -0
- package/dist/btc/types.cjs.map +1 -0
- package/dist/btc/types.d.cts +34 -0
- package/dist/btc/types.d.cts.map +1 -0
- package/dist/btc/types.d.mts +34 -0
- package/dist/btc/types.d.mts.map +1 -0
- package/dist/btc/types.mjs +37 -0
- package/dist/btc/types.mjs.map +1 -0
- package/dist/eth/erc4337/index.cjs +18 -0
- package/dist/eth/erc4337/index.cjs.map +1 -0
- package/dist/eth/erc4337/index.d.cts +2 -0
- package/dist/eth/erc4337/index.d.cts.map +1 -0
- package/dist/eth/erc4337/index.d.mts +2 -0
- package/dist/eth/erc4337/index.d.mts.map +1 -0
- package/dist/eth/erc4337/index.mjs +2 -0
- package/dist/eth/erc4337/index.mjs.map +1 -0
- package/dist/eth/erc4337/types.cjs +62 -0
- package/dist/eth/erc4337/types.cjs.map +1 -0
- package/dist/eth/erc4337/types.d.cts +98 -0
- package/dist/eth/erc4337/types.d.cts.map +1 -0
- package/dist/eth/erc4337/types.d.mts +98 -0
- package/dist/eth/erc4337/types.d.mts.map +1 -0
- package/dist/eth/erc4337/types.mjs +59 -0
- package/dist/eth/erc4337/types.mjs.map +1 -0
- package/dist/eth/index.cjs +20 -0
- package/dist/eth/index.cjs.map +1 -0
- package/dist/eth/index.d.cts +4 -0
- package/dist/eth/index.d.cts.map +1 -0
- package/dist/eth/index.d.mts +4 -0
- package/dist/eth/index.d.mts.map +1 -0
- package/dist/eth/index.mjs +4 -0
- package/dist/eth/index.mjs.map +1 -0
- package/dist/eth/types.cjs +73 -0
- package/dist/eth/types.cjs.map +1 -0
- package/dist/eth/types.d.cts +81 -0
- package/dist/eth/types.d.cts.map +1 -0
- package/dist/eth/types.d.mts +81 -0
- package/dist/eth/types.d.mts.map +1 -0
- package/dist/eth/types.mjs +70 -0
- package/dist/eth/types.mjs.map +1 -0
- package/dist/eth/utils.cjs +14 -0
- package/dist/eth/utils.cjs.map +1 -0
- package/dist/eth/utils.d.cts +9 -0
- package/dist/eth/utils.d.cts.map +1 -0
- package/dist/eth/utils.d.mts +9 -0
- package/dist/eth/utils.d.mts.map +1 -0
- package/dist/eth/utils.mjs +11 -0
- package/dist/eth/utils.mjs.map +1 -0
- package/dist/events.cjs +17 -0
- package/dist/events.cjs.map +1 -0
- package/dist/events.d.cts +11 -0
- package/dist/events.d.cts.map +1 -0
- package/dist/events.d.mts +11 -0
- package/dist/events.d.mts.map +1 -0
- package/dist/events.mjs +14 -0
- package/dist/events.mjs.map +1 -0
- package/dist/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -7
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +12 -7
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +12 -6
- package/dist/index.mjs.map +1 -1
- package/dist/internal/api.cjs +150 -0
- package/dist/internal/api.cjs.map +1 -0
- package/dist/internal/api.d.cts +737 -0
- package/dist/internal/api.d.cts.map +1 -0
- package/dist/internal/api.d.mts +737 -0
- package/dist/internal/api.d.mts.map +1 -0
- package/dist/internal/api.mjs +147 -0
- package/dist/internal/api.mjs.map +1 -0
- package/dist/internal/eth/EthKeyring.cjs +3 -0
- package/dist/internal/eth/EthKeyring.cjs.map +1 -0
- package/dist/internal/eth/EthKeyring.d.cts +34 -0
- package/dist/internal/eth/EthKeyring.d.cts.map +1 -0
- package/dist/internal/eth/EthKeyring.d.mts +34 -0
- package/dist/internal/eth/EthKeyring.d.mts.map +1 -0
- package/dist/internal/eth/EthKeyring.mjs +2 -0
- package/dist/internal/eth/EthKeyring.mjs.map +1 -0
- package/dist/internal/eth/index.cjs +3 -0
- package/dist/internal/eth/index.cjs.map +1 -0
- package/dist/internal/eth/index.d.cts +2 -0
- package/dist/internal/eth/index.d.cts.map +1 -0
- package/dist/internal/eth/index.d.mts +2 -0
- package/dist/internal/eth/index.d.mts.map +1 -0
- package/dist/internal/eth/index.mjs +2 -0
- package/dist/internal/eth/index.mjs.map +1 -0
- package/dist/internal/events.cjs +72 -0
- package/dist/internal/events.cjs.map +1 -0
- package/dist/internal/events.d.cts +162 -0
- package/dist/internal/events.d.cts.map +1 -0
- package/dist/internal/events.d.mts +162 -0
- package/dist/internal/events.d.mts.map +1 -0
- package/dist/internal/events.mjs +69 -0
- package/dist/internal/events.mjs.map +1 -0
- package/dist/internal/index.cjs +21 -0
- package/dist/internal/index.cjs.map +1 -0
- package/dist/internal/index.d.cts +6 -0
- package/dist/internal/index.d.cts.map +1 -0
- package/dist/internal/index.d.mts +6 -0
- package/dist/internal/index.d.mts.map +1 -0
- package/dist/internal/index.mjs +5 -0
- package/dist/internal/index.mjs.map +1 -0
- package/dist/internal/rpc.cjs +34 -0
- package/dist/internal/rpc.cjs.map +1 -0
- package/dist/internal/rpc.d.cts +27 -0
- package/dist/internal/rpc.d.cts.map +1 -0
- package/dist/internal/rpc.d.mts +27 -0
- package/dist/internal/rpc.d.mts.map +1 -0
- package/dist/internal/rpc.mjs +30 -0
- package/dist/internal/rpc.mjs.map +1 -0
- package/dist/internal/types.cjs +52 -0
- package/dist/internal/types.cjs.map +1 -0
- package/dist/internal/types.d.cts +392 -0
- package/dist/internal/types.d.cts.map +1 -0
- package/dist/internal/types.d.mts +392 -0
- package/dist/internal/types.d.mts.map +1 -0
- package/dist/internal/types.mjs +49 -0
- package/dist/internal/types.mjs.map +1 -0
- package/dist/rpc-handler.cjs +143 -0
- package/dist/rpc-handler.cjs.map +1 -0
- package/dist/rpc-handler.d.cts +30 -0
- package/dist/rpc-handler.d.cts.map +1 -0
- package/dist/rpc-handler.d.mts +30 -0
- package/dist/rpc-handler.d.mts.map +1 -0
- package/dist/rpc-handler.mjs +138 -0
- package/dist/rpc-handler.mjs.map +1 -0
- package/dist/snap-utils.cjs +20 -0
- package/dist/snap-utils.cjs.map +1 -0
- package/dist/snap-utils.d.cts +12 -0
- package/dist/snap-utils.d.cts.map +1 -0
- package/dist/snap-utils.d.mts +12 -0
- package/dist/snap-utils.d.mts.map +1 -0
- package/dist/snap-utils.mjs +17 -0
- package/dist/snap-utils.mjs.map +1 -0
- package/dist/sol/index.cjs +18 -0
- package/dist/sol/index.cjs.map +1 -0
- package/dist/sol/index.d.cts +2 -0
- package/dist/sol/index.d.cts.map +1 -0
- package/dist/sol/index.d.mts +2 -0
- package/dist/sol/index.d.mts.map +1 -0
- package/dist/sol/index.mjs +2 -0
- package/dist/sol/index.mjs.map +1 -0
- package/dist/sol/types.cjs +36 -0
- package/dist/sol/types.cjs.map +1 -0
- package/dist/sol/types.d.cts +39 -0
- package/dist/sol/types.d.cts.map +1 -0
- package/dist/sol/types.d.mts +39 -0
- package/dist/sol/types.d.mts.map +1 -0
- package/dist/sol/types.mjs +33 -0
- package/dist/sol/types.mjs.map +1 -0
- package/dist/superstruct.cjs +109 -0
- package/dist/superstruct.cjs.map +1 -0
- package/dist/superstruct.d.cts +102 -0
- package/dist/superstruct.d.cts.map +1 -0
- package/dist/superstruct.d.mts +102 -0
- package/dist/superstruct.d.mts.map +1 -0
- package/dist/superstruct.mjs +102 -0
- package/dist/superstruct.mjs.map +1 -0
- package/dist/utils/index.cjs +20 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +4 -0
- package/dist/utils/index.d.cts.map +1 -0
- package/dist/utils/index.d.mts +4 -0
- package/dist/utils/index.d.mts.map +1 -0
- package/dist/utils/index.mjs +4 -0
- package/dist/utils/index.mjs.map +1 -0
- package/dist/utils/pagination.cjs +28 -0
- package/dist/utils/pagination.cjs.map +1 -0
- package/dist/utils/pagination.d.cts +59 -0
- package/dist/utils/pagination.d.cts.map +1 -0
- package/dist/utils/pagination.d.mts +59 -0
- package/dist/utils/pagination.d.mts.map +1 -0
- package/dist/utils/pagination.mjs +25 -0
- package/dist/utils/pagination.mjs.map +1 -0
- package/dist/utils/types.cjs +29 -0
- package/dist/utils/types.cjs.map +1 -0
- package/dist/utils/types.d.cts +42 -0
- package/dist/utils/types.d.cts.map +1 -0
- package/dist/utils/types.d.mts +42 -0
- package/dist/utils/types.d.mts.map +1 -0
- package/dist/utils/types.mjs +26 -0
- package/dist/utils/types.mjs.map +1 -0
- package/dist/utils/typing.cjs +20 -0
- package/dist/utils/typing.cjs.map +1 -0
- package/dist/utils/typing.d.cts +33 -0
- package/dist/utils/typing.d.cts.map +1 -0
- package/dist/utils/typing.d.mts +33 -0
- package/dist/utils/typing.d.mts.map +1 -0
- package/dist/utils/typing.mjs +17 -0
- package/dist/utils/typing.mjs.map +1 -0
- package/package.json +11 -10
- package/dist/account.cjs.map +0 -1
- package/dist/account.d.cts.map +0 -1
- package/dist/account.d.mts.map +0 -1
- package/dist/account.mjs.map +0 -1
- package/dist/balance.cjs +0 -10
- package/dist/balance.cjs.map +0 -1
- package/dist/balance.d.cts.map +0 -1
- package/dist/balance.d.mts.map +0 -1
- package/dist/balance.mjs.map +0 -1
- package/dist/caip.d.cts.map +0 -1
- package/dist/caip.d.mts.map +0 -1
- package/dist/export.cjs.map +0 -1
- package/dist/export.d.cts.map +0 -1
- package/dist/export.d.mts.map +0 -1
- package/dist/export.mjs.map +0 -1
- package/dist/keyring.cjs +0 -5
- package/dist/keyring.cjs.map +0 -1
- package/dist/keyring.d.cts.map +0 -1
- package/dist/keyring.d.mts.map +0 -1
- package/dist/keyring.mjs +0 -4
- package/dist/keyring.mjs.map +0 -1
- package/dist/request.cjs.map +0 -1
- package/dist/request.d.cts.map +0 -1
- package/dist/request.d.mts.map +0 -1
- package/dist/request.mjs.map +0 -1
- package/dist/response.d.cts.map +0 -1
- package/dist/response.d.mts.map +0 -1
- /package/dist/{caip.d.cts → api/caip.d.cts} +0 -0
- /package/dist/{caip.d.mts → api/caip.d.mts} +0 -0
- /package/dist/{export.cjs → api/export.cjs} +0 -0
- /package/dist/{export.d.cts → api/export.d.cts} +0 -0
- /package/dist/{export.d.mts → api/export.d.mts} +0 -0
- /package/dist/{export.mjs → api/export.mjs} +0 -0
- /package/dist/{response.d.cts → api/response.d.cts} +0 -0
- /package/dist/{response.d.mts → api/response.d.mts} +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type Infer } from "@metamask/superstruct";
|
|
2
|
+
/**
|
|
3
|
+
* Struct of a UserOperation as defined by ERC-4337.
|
|
4
|
+
*
|
|
5
|
+
* @see https://eips.ethereum.org/EIPS/eip-4337#definitions
|
|
6
|
+
*/
|
|
7
|
+
export declare const EthUserOperationStruct: import("@metamask/superstruct").Struct<{
|
|
8
|
+
sender: string;
|
|
9
|
+
nonce: string;
|
|
10
|
+
initCode: string;
|
|
11
|
+
callData: string;
|
|
12
|
+
callGasLimit: string;
|
|
13
|
+
verificationGasLimit: string;
|
|
14
|
+
preVerificationGas: string;
|
|
15
|
+
maxFeePerGas: string;
|
|
16
|
+
maxPriorityFeePerGas: string;
|
|
17
|
+
paymasterAndData: string;
|
|
18
|
+
signature: string;
|
|
19
|
+
}, {
|
|
20
|
+
sender: import("@metamask/superstruct").Struct<string, null>;
|
|
21
|
+
nonce: import("@metamask/superstruct").Struct<string, null>;
|
|
22
|
+
initCode: import("@metamask/superstruct").Struct<string, null>;
|
|
23
|
+
callData: import("@metamask/superstruct").Struct<string, null>;
|
|
24
|
+
callGasLimit: import("@metamask/superstruct").Struct<string, null>;
|
|
25
|
+
verificationGasLimit: import("@metamask/superstruct").Struct<string, null>;
|
|
26
|
+
preVerificationGas: import("@metamask/superstruct").Struct<string, null>;
|
|
27
|
+
maxFeePerGas: import("@metamask/superstruct").Struct<string, null>;
|
|
28
|
+
maxPriorityFeePerGas: import("@metamask/superstruct").Struct<string, null>;
|
|
29
|
+
paymasterAndData: import("@metamask/superstruct").Struct<string, null>;
|
|
30
|
+
signature: import("@metamask/superstruct").Struct<string, null>;
|
|
31
|
+
}>;
|
|
32
|
+
export type EthUserOperation = Infer<typeof EthUserOperationStruct>;
|
|
33
|
+
/**
|
|
34
|
+
* Struct containing the most basic transaction information required to
|
|
35
|
+
* construct a UserOperation.
|
|
36
|
+
*/
|
|
37
|
+
export declare const EthBaseTransactionStruct: import("@metamask/superstruct").Struct<{
|
|
38
|
+
value: string;
|
|
39
|
+
to: string;
|
|
40
|
+
data: string;
|
|
41
|
+
}, {
|
|
42
|
+
/**
|
|
43
|
+
* Address of the transaction recipient.
|
|
44
|
+
*/
|
|
45
|
+
to: import("@metamask/superstruct").Struct<string, null>;
|
|
46
|
+
/**
|
|
47
|
+
* Amount of wei to transfer to the recipient.
|
|
48
|
+
*/
|
|
49
|
+
value: import("@metamask/superstruct").Struct<string, null>;
|
|
50
|
+
/**
|
|
51
|
+
* Data to pass to the recipient.
|
|
52
|
+
*/
|
|
53
|
+
data: import("@metamask/superstruct").Struct<string, null>;
|
|
54
|
+
}>;
|
|
55
|
+
export type EthBaseTransaction = Infer<typeof EthBaseTransactionStruct>;
|
|
56
|
+
export declare const EthBaseUserOperationStruct: import("@metamask/superstruct").Struct<{
|
|
57
|
+
nonce: string;
|
|
58
|
+
initCode: string;
|
|
59
|
+
callData: string;
|
|
60
|
+
dummyPaymasterAndData: string;
|
|
61
|
+
dummySignature: string;
|
|
62
|
+
bundlerUrl: string;
|
|
63
|
+
gasLimits?: {
|
|
64
|
+
callGasLimit: string;
|
|
65
|
+
verificationGasLimit: string;
|
|
66
|
+
preVerificationGas: string;
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
nonce: import("@metamask/superstruct").Struct<string, null>;
|
|
70
|
+
initCode: import("@metamask/superstruct").Struct<string, null>;
|
|
71
|
+
callData: import("@metamask/superstruct").Struct<string, null>;
|
|
72
|
+
gasLimits: import("@metamask/superstruct").Struct<import("../../superstruct.cjs").ExactOptionalTag | {
|
|
73
|
+
callGasLimit: string;
|
|
74
|
+
verificationGasLimit: string;
|
|
75
|
+
preVerificationGas: string;
|
|
76
|
+
}, {
|
|
77
|
+
callGasLimit: import("@metamask/superstruct").Struct<string, null>;
|
|
78
|
+
verificationGasLimit: import("@metamask/superstruct").Struct<string, null>;
|
|
79
|
+
preVerificationGas: import("@metamask/superstruct").Struct<string, null>;
|
|
80
|
+
}>;
|
|
81
|
+
dummyPaymasterAndData: import("@metamask/superstruct").Struct<string, null>;
|
|
82
|
+
dummySignature: import("@metamask/superstruct").Struct<string, null>;
|
|
83
|
+
bundlerUrl: import("@metamask/superstruct").Struct<string, null>;
|
|
84
|
+
}>;
|
|
85
|
+
export type EthBaseUserOperation = Infer<typeof EthBaseUserOperationStruct>;
|
|
86
|
+
export declare const EthUserOperationPatchStruct: import("@metamask/superstruct").Struct<{
|
|
87
|
+
paymasterAndData: string;
|
|
88
|
+
callGasLimit?: string;
|
|
89
|
+
verificationGasLimit?: string;
|
|
90
|
+
preVerificationGas?: string;
|
|
91
|
+
}, {
|
|
92
|
+
paymasterAndData: import("@metamask/superstruct").Struct<string, null>;
|
|
93
|
+
callGasLimit: import("@metamask/superstruct").Struct<string | import("../../superstruct.cjs").ExactOptionalTag, null>;
|
|
94
|
+
verificationGasLimit: import("@metamask/superstruct").Struct<string | import("../../superstruct.cjs").ExactOptionalTag, null>;
|
|
95
|
+
preVerificationGas: import("@metamask/superstruct").Struct<string | import("../../superstruct.cjs").ExactOptionalTag, null>;
|
|
96
|
+
}>;
|
|
97
|
+
export type EthUserOperationPatch = Infer<typeof EthUserOperationPatchStruct>;
|
|
98
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../../src/eth/erc4337/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,8BAA8B;AAMnD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAYjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;IACnC;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;EAEH,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAExE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;;;;;;;EAKtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type Infer } from "@metamask/superstruct";
|
|
2
|
+
/**
|
|
3
|
+
* Struct of a UserOperation as defined by ERC-4337.
|
|
4
|
+
*
|
|
5
|
+
* @see https://eips.ethereum.org/EIPS/eip-4337#definitions
|
|
6
|
+
*/
|
|
7
|
+
export declare const EthUserOperationStruct: import("@metamask/superstruct").Struct<{
|
|
8
|
+
sender: string;
|
|
9
|
+
nonce: string;
|
|
10
|
+
initCode: string;
|
|
11
|
+
callData: string;
|
|
12
|
+
callGasLimit: string;
|
|
13
|
+
verificationGasLimit: string;
|
|
14
|
+
preVerificationGas: string;
|
|
15
|
+
maxFeePerGas: string;
|
|
16
|
+
maxPriorityFeePerGas: string;
|
|
17
|
+
paymasterAndData: string;
|
|
18
|
+
signature: string;
|
|
19
|
+
}, {
|
|
20
|
+
sender: import("@metamask/superstruct").Struct<string, null>;
|
|
21
|
+
nonce: import("@metamask/superstruct").Struct<string, null>;
|
|
22
|
+
initCode: import("@metamask/superstruct").Struct<string, null>;
|
|
23
|
+
callData: import("@metamask/superstruct").Struct<string, null>;
|
|
24
|
+
callGasLimit: import("@metamask/superstruct").Struct<string, null>;
|
|
25
|
+
verificationGasLimit: import("@metamask/superstruct").Struct<string, null>;
|
|
26
|
+
preVerificationGas: import("@metamask/superstruct").Struct<string, null>;
|
|
27
|
+
maxFeePerGas: import("@metamask/superstruct").Struct<string, null>;
|
|
28
|
+
maxPriorityFeePerGas: import("@metamask/superstruct").Struct<string, null>;
|
|
29
|
+
paymasterAndData: import("@metamask/superstruct").Struct<string, null>;
|
|
30
|
+
signature: import("@metamask/superstruct").Struct<string, null>;
|
|
31
|
+
}>;
|
|
32
|
+
export type EthUserOperation = Infer<typeof EthUserOperationStruct>;
|
|
33
|
+
/**
|
|
34
|
+
* Struct containing the most basic transaction information required to
|
|
35
|
+
* construct a UserOperation.
|
|
36
|
+
*/
|
|
37
|
+
export declare const EthBaseTransactionStruct: import("@metamask/superstruct").Struct<{
|
|
38
|
+
value: string;
|
|
39
|
+
to: string;
|
|
40
|
+
data: string;
|
|
41
|
+
}, {
|
|
42
|
+
/**
|
|
43
|
+
* Address of the transaction recipient.
|
|
44
|
+
*/
|
|
45
|
+
to: import("@metamask/superstruct").Struct<string, null>;
|
|
46
|
+
/**
|
|
47
|
+
* Amount of wei to transfer to the recipient.
|
|
48
|
+
*/
|
|
49
|
+
value: import("@metamask/superstruct").Struct<string, null>;
|
|
50
|
+
/**
|
|
51
|
+
* Data to pass to the recipient.
|
|
52
|
+
*/
|
|
53
|
+
data: import("@metamask/superstruct").Struct<string, null>;
|
|
54
|
+
}>;
|
|
55
|
+
export type EthBaseTransaction = Infer<typeof EthBaseTransactionStruct>;
|
|
56
|
+
export declare const EthBaseUserOperationStruct: import("@metamask/superstruct").Struct<{
|
|
57
|
+
nonce: string;
|
|
58
|
+
initCode: string;
|
|
59
|
+
callData: string;
|
|
60
|
+
dummyPaymasterAndData: string;
|
|
61
|
+
dummySignature: string;
|
|
62
|
+
bundlerUrl: string;
|
|
63
|
+
gasLimits?: {
|
|
64
|
+
callGasLimit: string;
|
|
65
|
+
verificationGasLimit: string;
|
|
66
|
+
preVerificationGas: string;
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
nonce: import("@metamask/superstruct").Struct<string, null>;
|
|
70
|
+
initCode: import("@metamask/superstruct").Struct<string, null>;
|
|
71
|
+
callData: import("@metamask/superstruct").Struct<string, null>;
|
|
72
|
+
gasLimits: import("@metamask/superstruct").Struct<import("../../superstruct.mjs").ExactOptionalTag | {
|
|
73
|
+
callGasLimit: string;
|
|
74
|
+
verificationGasLimit: string;
|
|
75
|
+
preVerificationGas: string;
|
|
76
|
+
}, {
|
|
77
|
+
callGasLimit: import("@metamask/superstruct").Struct<string, null>;
|
|
78
|
+
verificationGasLimit: import("@metamask/superstruct").Struct<string, null>;
|
|
79
|
+
preVerificationGas: import("@metamask/superstruct").Struct<string, null>;
|
|
80
|
+
}>;
|
|
81
|
+
dummyPaymasterAndData: import("@metamask/superstruct").Struct<string, null>;
|
|
82
|
+
dummySignature: import("@metamask/superstruct").Struct<string, null>;
|
|
83
|
+
bundlerUrl: import("@metamask/superstruct").Struct<string, null>;
|
|
84
|
+
}>;
|
|
85
|
+
export type EthBaseUserOperation = Infer<typeof EthBaseUserOperationStruct>;
|
|
86
|
+
export declare const EthUserOperationPatchStruct: import("@metamask/superstruct").Struct<{
|
|
87
|
+
paymasterAndData: string;
|
|
88
|
+
callGasLimit?: string;
|
|
89
|
+
verificationGasLimit?: string;
|
|
90
|
+
preVerificationGas?: string;
|
|
91
|
+
}, {
|
|
92
|
+
paymasterAndData: import("@metamask/superstruct").Struct<string, null>;
|
|
93
|
+
callGasLimit: import("@metamask/superstruct").Struct<string | import("../../superstruct.mjs").ExactOptionalTag, null>;
|
|
94
|
+
verificationGasLimit: import("@metamask/superstruct").Struct<string | import("../../superstruct.mjs").ExactOptionalTag, null>;
|
|
95
|
+
preVerificationGas: import("@metamask/superstruct").Struct<string | import("../../superstruct.mjs").ExactOptionalTag, null>;
|
|
96
|
+
}>;
|
|
97
|
+
export type EthUserOperationPatch = Infer<typeof EthUserOperationPatchStruct>;
|
|
98
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../../src/eth/erc4337/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,8BAA8B;AAMnD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAYjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;IACnC;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;EAEH,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAExE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;;;;;;;EAKtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { exactOptional, object } from "../../superstruct.mjs";
|
|
2
|
+
import { UrlStruct } from "../../utils/index.mjs";
|
|
3
|
+
import { EthAddressStruct, EthBytesStruct, EthUint256Struct } from "../types.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Struct of a UserOperation as defined by ERC-4337.
|
|
6
|
+
*
|
|
7
|
+
* @see https://eips.ethereum.org/EIPS/eip-4337#definitions
|
|
8
|
+
*/
|
|
9
|
+
export const EthUserOperationStruct = object({
|
|
10
|
+
sender: EthAddressStruct,
|
|
11
|
+
nonce: EthUint256Struct,
|
|
12
|
+
initCode: EthBytesStruct,
|
|
13
|
+
callData: EthBytesStruct,
|
|
14
|
+
callGasLimit: EthUint256Struct,
|
|
15
|
+
verificationGasLimit: EthUint256Struct,
|
|
16
|
+
preVerificationGas: EthUint256Struct,
|
|
17
|
+
maxFeePerGas: EthUint256Struct,
|
|
18
|
+
maxPriorityFeePerGas: EthUint256Struct,
|
|
19
|
+
paymasterAndData: EthBytesStruct,
|
|
20
|
+
signature: EthBytesStruct,
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* Struct containing the most basic transaction information required to
|
|
24
|
+
* construct a UserOperation.
|
|
25
|
+
*/
|
|
26
|
+
export const EthBaseTransactionStruct = object({
|
|
27
|
+
/**
|
|
28
|
+
* Address of the transaction recipient.
|
|
29
|
+
*/
|
|
30
|
+
to: EthAddressStruct,
|
|
31
|
+
/**
|
|
32
|
+
* Amount of wei to transfer to the recipient.
|
|
33
|
+
*/
|
|
34
|
+
value: EthUint256Struct,
|
|
35
|
+
/**
|
|
36
|
+
* Data to pass to the recipient.
|
|
37
|
+
*/
|
|
38
|
+
data: EthBytesStruct,
|
|
39
|
+
});
|
|
40
|
+
export const EthBaseUserOperationStruct = object({
|
|
41
|
+
nonce: EthUint256Struct,
|
|
42
|
+
initCode: EthBytesStruct,
|
|
43
|
+
callData: EthBytesStruct,
|
|
44
|
+
gasLimits: exactOptional(object({
|
|
45
|
+
callGasLimit: EthUint256Struct,
|
|
46
|
+
verificationGasLimit: EthUint256Struct,
|
|
47
|
+
preVerificationGas: EthUint256Struct,
|
|
48
|
+
})),
|
|
49
|
+
dummyPaymasterAndData: EthBytesStruct,
|
|
50
|
+
dummySignature: EthBytesStruct,
|
|
51
|
+
bundlerUrl: UrlStruct,
|
|
52
|
+
});
|
|
53
|
+
export const EthUserOperationPatchStruct = object({
|
|
54
|
+
paymasterAndData: EthBytesStruct,
|
|
55
|
+
callGasLimit: exactOptional(EthUint256Struct),
|
|
56
|
+
verificationGasLimit: exactOptional(EthUint256Struct),
|
|
57
|
+
preVerificationGas: exactOptional(EthUint256Struct),
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../../src/eth/erc4337/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,8BAA0B;AAC1D,OAAO,EAAE,SAAS,EAAE,8BAAoB;AACxC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,qBAAiB;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC;IAC3C,MAAM,EAAE,gBAAgB;IACxB,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,cAAc;IACxB,QAAQ,EAAE,cAAc;IACxB,YAAY,EAAE,gBAAgB;IAC9B,oBAAoB,EAAE,gBAAgB;IACtC,kBAAkB,EAAE,gBAAgB;IACpC,YAAY,EAAE,gBAAgB;IAC9B,oBAAoB,EAAE,gBAAgB;IACtC,gBAAgB,EAAE,cAAc;IAChC,SAAS,EAAE,cAAc;CAC1B,CAAC,CAAC;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC;IAC7C;;OAEG;IACH,EAAE,EAAE,gBAAgB;IAEpB;;OAEG;IACH,KAAK,EAAE,gBAAgB;IAEvB;;OAEG;IACH,IAAI,EAAE,cAAc;CACrB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC;IAC/C,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,cAAc;IACxB,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,aAAa,CACtB,MAAM,CAAC;QACL,YAAY,EAAE,gBAAgB;QAC9B,oBAAoB,EAAE,gBAAgB;QACtC,kBAAkB,EAAE,gBAAgB;KACrC,CAAC,CACH;IACD,qBAAqB,EAAE,cAAc;IACrC,cAAc,EAAE,cAAc;IAC9B,UAAU,EAAE,SAAS;CACtB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC;IAChD,gBAAgB,EAAE,cAAc;IAChC,YAAY,EAAE,aAAa,CAAC,gBAAgB,CAAC;IAC7C,oBAAoB,EAAE,aAAa,CAAC,gBAAgB,CAAC;IACrD,kBAAkB,EAAE,aAAa,CAAC,gBAAgB,CAAC;CACpD,CAAC,CAAC","sourcesContent":["import { type Infer } from '@metamask/superstruct';\n\nimport { exactOptional, object } from '../../superstruct';\nimport { UrlStruct } from '../../utils';\nimport { EthAddressStruct, EthBytesStruct, EthUint256Struct } from '../types';\n\n/**\n * Struct of a UserOperation as defined by ERC-4337.\n *\n * @see https://eips.ethereum.org/EIPS/eip-4337#definitions\n */\nexport const EthUserOperationStruct = object({\n sender: EthAddressStruct,\n nonce: EthUint256Struct,\n initCode: EthBytesStruct,\n callData: EthBytesStruct,\n callGasLimit: EthUint256Struct,\n verificationGasLimit: EthUint256Struct,\n preVerificationGas: EthUint256Struct,\n maxFeePerGas: EthUint256Struct,\n maxPriorityFeePerGas: EthUint256Struct,\n paymasterAndData: EthBytesStruct,\n signature: EthBytesStruct,\n});\n\nexport type EthUserOperation = Infer<typeof EthUserOperationStruct>;\n\n/**\n * Struct containing the most basic transaction information required to\n * construct a UserOperation.\n */\nexport const EthBaseTransactionStruct = object({\n /**\n * Address of the transaction recipient.\n */\n to: EthAddressStruct,\n\n /**\n * Amount of wei to transfer to the recipient.\n */\n value: EthUint256Struct,\n\n /**\n * Data to pass to the recipient.\n */\n data: EthBytesStruct,\n});\n\nexport type EthBaseTransaction = Infer<typeof EthBaseTransactionStruct>;\n\nexport const EthBaseUserOperationStruct = object({\n nonce: EthUint256Struct,\n initCode: EthBytesStruct,\n callData: EthBytesStruct,\n gasLimits: exactOptional(\n object({\n callGasLimit: EthUint256Struct,\n verificationGasLimit: EthUint256Struct,\n preVerificationGas: EthUint256Struct,\n }),\n ),\n dummyPaymasterAndData: EthBytesStruct,\n dummySignature: EthBytesStruct,\n bundlerUrl: UrlStruct,\n});\n\nexport type EthBaseUserOperation = Infer<typeof EthBaseUserOperationStruct>;\n\nexport const EthUserOperationPatchStruct = object({\n paymasterAndData: EthBytesStruct,\n callGasLimit: exactOptional(EthUint256Struct),\n verificationGasLimit: exactOptional(EthUint256Struct),\n preVerificationGas: exactOptional(EthUint256Struct),\n});\n\nexport type EthUserOperationPatch = Infer<typeof EthUserOperationPatchStruct>;\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./erc4337/index.cjs"), exports);
|
|
18
|
+
__exportStar(require("./types.cjs"), exports);
|
|
19
|
+
__exportStar(require("./utils.cjs"), exports);
|
|
20
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAA0B;AAC1B,8CAAwB;AACxB,8CAAwB","sourcesContent":["export * from './erc4337';\nexport * from './types';\nexport * from './utils';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,oCAA0B;AAC1B,4BAAwB;AACxB,4BAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,oCAA0B;AAC1B,4BAAwB;AACxB,4BAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,oCAA0B;AAC1B,4BAAwB;AACxB,4BAAwB","sourcesContent":["export * from './erc4337';\nexport * from './types';\nexport * from './utils';\n"]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EthErc4337AccountStruct = exports.EthEoaAccountStruct = exports.EthMethod = exports.EthUint256Struct = exports.EthAddressStruct = exports.EthBytesStruct = void 0;
|
|
4
|
+
const superstruct_1 = require("@metamask/superstruct");
|
|
5
|
+
const api_1 = require("../api/index.cjs");
|
|
6
|
+
const superstruct_2 = require("../superstruct.cjs");
|
|
7
|
+
exports.EthBytesStruct = (0, superstruct_2.definePattern)('EthBytes', /^0x[0-9a-f]*$/iu);
|
|
8
|
+
exports.EthAddressStruct = (0, superstruct_2.definePattern)('EthAddress', /^0x[0-9a-f]{40}$/iu);
|
|
9
|
+
exports.EthUint256Struct = (0, superstruct_2.definePattern)('EthUint256', /^0x([1-9a-f][0-9a-f]*|0)$/iu);
|
|
10
|
+
/**
|
|
11
|
+
* Supported Ethereum methods.
|
|
12
|
+
*/
|
|
13
|
+
var EthMethod;
|
|
14
|
+
(function (EthMethod) {
|
|
15
|
+
// General signing methods
|
|
16
|
+
EthMethod["PersonalSign"] = "personal_sign";
|
|
17
|
+
EthMethod["Sign"] = "eth_sign";
|
|
18
|
+
EthMethod["SignTransaction"] = "eth_signTransaction";
|
|
19
|
+
EthMethod["SignTypedDataV1"] = "eth_signTypedData_v1";
|
|
20
|
+
EthMethod["SignTypedDataV3"] = "eth_signTypedData_v3";
|
|
21
|
+
EthMethod["SignTypedDataV4"] = "eth_signTypedData_v4";
|
|
22
|
+
// ERC-4337 methods
|
|
23
|
+
EthMethod["PrepareUserOperation"] = "eth_prepareUserOperation";
|
|
24
|
+
EthMethod["PatchUserOperation"] = "eth_patchUserOperation";
|
|
25
|
+
EthMethod["SignUserOperation"] = "eth_signUserOperation";
|
|
26
|
+
})(EthMethod || (exports.EthMethod = EthMethod = {}));
|
|
27
|
+
exports.EthEoaAccountStruct = (0, superstruct_2.object)({
|
|
28
|
+
...api_1.KeyringAccountStruct.schema,
|
|
29
|
+
/**
|
|
30
|
+
* Account address.
|
|
31
|
+
*/
|
|
32
|
+
address: exports.EthAddressStruct,
|
|
33
|
+
/**
|
|
34
|
+
* Account type.
|
|
35
|
+
*/
|
|
36
|
+
type: (0, superstruct_1.literal)(`${api_1.EthAccountType.Eoa}`),
|
|
37
|
+
/**
|
|
38
|
+
* Account supported methods.
|
|
39
|
+
*/
|
|
40
|
+
methods: (0, superstruct_1.array)((0, superstruct_1.enums)([
|
|
41
|
+
`${EthMethod.PersonalSign}`,
|
|
42
|
+
`${EthMethod.Sign}`,
|
|
43
|
+
`${EthMethod.SignTransaction}`,
|
|
44
|
+
`${EthMethod.SignTypedDataV1}`,
|
|
45
|
+
`${EthMethod.SignTypedDataV3}`,
|
|
46
|
+
`${EthMethod.SignTypedDataV4}`,
|
|
47
|
+
])),
|
|
48
|
+
});
|
|
49
|
+
exports.EthErc4337AccountStruct = (0, superstruct_2.object)({
|
|
50
|
+
...api_1.KeyringAccountStruct.schema,
|
|
51
|
+
/**
|
|
52
|
+
* Account address.
|
|
53
|
+
*/
|
|
54
|
+
address: exports.EthAddressStruct,
|
|
55
|
+
/**
|
|
56
|
+
* Account type.
|
|
57
|
+
*/
|
|
58
|
+
type: (0, superstruct_1.literal)(`${api_1.EthAccountType.Erc4337}`),
|
|
59
|
+
/**
|
|
60
|
+
* Account supported methods.
|
|
61
|
+
*/
|
|
62
|
+
methods: (0, superstruct_1.array)((0, superstruct_1.enums)([
|
|
63
|
+
`${EthMethod.PersonalSign}`,
|
|
64
|
+
`${EthMethod.Sign}`,
|
|
65
|
+
`${EthMethod.SignTypedDataV1}`,
|
|
66
|
+
`${EthMethod.SignTypedDataV3}`,
|
|
67
|
+
`${EthMethod.SignTypedDataV4}`,
|
|
68
|
+
`${EthMethod.PrepareUserOperation}`,
|
|
69
|
+
`${EthMethod.PatchUserOperation}`,
|
|
70
|
+
`${EthMethod.SignUserOperation}`,
|
|
71
|
+
])),
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../../src/eth/types.ts"],"names":[],"mappings":";;;AACA,uDAA8D;AAE9D,0CAA8D;AAC9D,oDAAuD;AAE1C,QAAA,cAAc,GAAG,IAAA,2BAAa,EAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;AAE9D,QAAA,gBAAgB,GAAG,IAAA,2BAAa,EAC3C,YAAY,EACZ,oBAAoB,CACrB,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,2BAAa,EAC3C,YAAY,EACZ,6BAA6B,CAC9B,CAAC;AAEF;;GAEG;AACH,IAAY,SAYX;AAZD,WAAY,SAAS;IACnB,0BAA0B;IAC1B,2CAA8B,CAAA;IAC9B,8BAAiB,CAAA;IACjB,oDAAuC,CAAA;IACvC,qDAAwC,CAAA;IACxC,qDAAwC,CAAA;IACxC,qDAAwC,CAAA;IACxC,mBAAmB;IACnB,8DAAiD,CAAA;IACjD,0DAA6C,CAAA;IAC7C,wDAA2C,CAAA;AAC7C,CAAC,EAZW,SAAS,yBAAT,SAAS,QAYpB;AAEY,QAAA,mBAAmB,GAAG,IAAA,oBAAM,EAAC;IACxC,GAAG,0BAAoB,CAAC,MAAM;IAE9B;;OAEG;IACH,OAAO,EAAE,wBAAgB;IAEzB;;OAEG;IACH,IAAI,EAAE,IAAA,qBAAO,EAAC,GAAG,oBAAc,CAAC,GAAG,EAAE,CAAC;IAEtC;;OAEG;IACH,OAAO,EAAE,IAAA,mBAAK,EACZ,IAAA,mBAAK,EAAC;QACJ,GAAG,SAAS,CAAC,YAAY,EAAE;QAC3B,GAAG,SAAS,CAAC,IAAI,EAAE;QACnB,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;KAC/B,CAAC,CACH;CACF,CAAC,CAAC;AAIU,QAAA,uBAAuB,GAAG,IAAA,oBAAM,EAAC;IAC5C,GAAG,0BAAoB,CAAC,MAAM;IAE9B;;OAEG;IACH,OAAO,EAAE,wBAAgB;IAEzB;;OAEG;IACH,IAAI,EAAE,IAAA,qBAAO,EAAC,GAAG,oBAAc,CAAC,OAAO,EAAE,CAAC;IAE1C;;OAEG;IACH,OAAO,EAAE,IAAA,mBAAK,EACZ,IAAA,mBAAK,EAAC;QACJ,GAAG,SAAS,CAAC,YAAY,EAAE;QAC3B,GAAG,SAAS,CAAC,IAAI,EAAE;QACnB,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,oBAAoB,EAAE;QACnC,GAAG,SAAS,CAAC,kBAAkB,EAAE;QACjC,GAAG,SAAS,CAAC,iBAAiB,EAAE;KACjC,CAAC,CACH;CACF,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport { array, enums, literal } from '@metamask/superstruct';\n\nimport { EthAccountType, KeyringAccountStruct } from '../api';\nimport { object, definePattern } from '../superstruct';\n\nexport const EthBytesStruct = definePattern('EthBytes', /^0x[0-9a-f]*$/iu);\n\nexport const EthAddressStruct = definePattern(\n 'EthAddress',\n /^0x[0-9a-f]{40}$/iu,\n);\n\nexport const EthUint256Struct = definePattern(\n 'EthUint256',\n /^0x([1-9a-f][0-9a-f]*|0)$/iu,\n);\n\n/**\n * Supported Ethereum methods.\n */\nexport enum EthMethod {\n // General signing methods\n PersonalSign = 'personal_sign',\n Sign = 'eth_sign',\n SignTransaction = 'eth_signTransaction',\n SignTypedDataV1 = 'eth_signTypedData_v1',\n SignTypedDataV3 = 'eth_signTypedData_v3',\n SignTypedDataV4 = 'eth_signTypedData_v4',\n // ERC-4337 methods\n PrepareUserOperation = 'eth_prepareUserOperation',\n PatchUserOperation = 'eth_patchUserOperation',\n SignUserOperation = 'eth_signUserOperation',\n}\n\nexport const EthEoaAccountStruct = object({\n ...KeyringAccountStruct.schema,\n\n /**\n * Account address.\n */\n address: EthAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${EthAccountType.Eoa}`),\n\n /**\n * Account supported methods.\n */\n methods: array(\n enums([\n `${EthMethod.PersonalSign}`,\n `${EthMethod.Sign}`,\n `${EthMethod.SignTransaction}`,\n `${EthMethod.SignTypedDataV1}`,\n `${EthMethod.SignTypedDataV3}`,\n `${EthMethod.SignTypedDataV4}`,\n ]),\n ),\n});\n\nexport type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;\n\nexport const EthErc4337AccountStruct = object({\n ...KeyringAccountStruct.schema,\n\n /**\n * Account address.\n */\n address: EthAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${EthAccountType.Erc4337}`),\n\n /**\n * Account supported methods.\n */\n methods: array(\n enums([\n `${EthMethod.PersonalSign}`,\n `${EthMethod.Sign}`,\n `${EthMethod.SignTypedDataV1}`,\n `${EthMethod.SignTypedDataV3}`,\n `${EthMethod.SignTypedDataV4}`,\n `${EthMethod.PrepareUserOperation}`,\n `${EthMethod.PatchUserOperation}`,\n `${EthMethod.SignUserOperation}`,\n ]),\n ),\n});\n\nexport type EthErc4337Account = Infer<typeof EthErc4337AccountStruct>;\n"]}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { Infer } from "@metamask/superstruct";
|
|
2
|
+
export declare const EthBytesStruct: import("@metamask/superstruct").Struct<string, null>;
|
|
3
|
+
export declare const EthAddressStruct: import("@metamask/superstruct").Struct<string, null>;
|
|
4
|
+
export declare const EthUint256Struct: import("@metamask/superstruct").Struct<string, null>;
|
|
5
|
+
/**
|
|
6
|
+
* Supported Ethereum methods.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum EthMethod {
|
|
9
|
+
PersonalSign = "personal_sign",
|
|
10
|
+
Sign = "eth_sign",
|
|
11
|
+
SignTransaction = "eth_signTransaction",
|
|
12
|
+
SignTypedDataV1 = "eth_signTypedData_v1",
|
|
13
|
+
SignTypedDataV3 = "eth_signTypedData_v3",
|
|
14
|
+
SignTypedDataV4 = "eth_signTypedData_v4",
|
|
15
|
+
PrepareUserOperation = "eth_prepareUserOperation",
|
|
16
|
+
PatchUserOperation = "eth_patchUserOperation",
|
|
17
|
+
SignUserOperation = "eth_signUserOperation"
|
|
18
|
+
}
|
|
19
|
+
export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct<{
|
|
20
|
+
type: "eip155:eoa";
|
|
21
|
+
id: string;
|
|
22
|
+
address: string;
|
|
23
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
24
|
+
methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
|
|
25
|
+
}, {
|
|
26
|
+
/**
|
|
27
|
+
* Account address.
|
|
28
|
+
*/
|
|
29
|
+
address: import("@metamask/superstruct").Struct<string, null>;
|
|
30
|
+
/**
|
|
31
|
+
* Account type.
|
|
32
|
+
*/
|
|
33
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa", "eip155:eoa">;
|
|
34
|
+
/**
|
|
35
|
+
* Account supported methods.
|
|
36
|
+
*/
|
|
37
|
+
methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4", {
|
|
38
|
+
personal_sign: "personal_sign";
|
|
39
|
+
eth_sign: "eth_sign";
|
|
40
|
+
eth_signTransaction: "eth_signTransaction";
|
|
41
|
+
eth_signTypedData_v1: "eth_signTypedData_v1";
|
|
42
|
+
eth_signTypedData_v3: "eth_signTypedData_v3";
|
|
43
|
+
eth_signTypedData_v4: "eth_signTypedData_v4";
|
|
44
|
+
}>>;
|
|
45
|
+
id: import("@metamask/superstruct").Struct<string, null>;
|
|
46
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
47
|
+
}>;
|
|
48
|
+
export type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;
|
|
49
|
+
export declare const EthErc4337AccountStruct: import("@metamask/superstruct").Struct<{
|
|
50
|
+
type: "eip155:erc4337";
|
|
51
|
+
id: string;
|
|
52
|
+
address: string;
|
|
53
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
54
|
+
methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
|
|
55
|
+
}, {
|
|
56
|
+
/**
|
|
57
|
+
* Account address.
|
|
58
|
+
*/
|
|
59
|
+
address: import("@metamask/superstruct").Struct<string, null>;
|
|
60
|
+
/**
|
|
61
|
+
* Account type.
|
|
62
|
+
*/
|
|
63
|
+
type: import("@metamask/superstruct").Struct<"eip155:erc4337", "eip155:erc4337">;
|
|
64
|
+
/**
|
|
65
|
+
* Account supported methods.
|
|
66
|
+
*/
|
|
67
|
+
methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation", {
|
|
68
|
+
personal_sign: "personal_sign";
|
|
69
|
+
eth_sign: "eth_sign";
|
|
70
|
+
eth_signTypedData_v1: "eth_signTypedData_v1";
|
|
71
|
+
eth_signTypedData_v3: "eth_signTypedData_v3";
|
|
72
|
+
eth_signTypedData_v4: "eth_signTypedData_v4";
|
|
73
|
+
eth_prepareUserOperation: "eth_prepareUserOperation";
|
|
74
|
+
eth_patchUserOperation: "eth_patchUserOperation";
|
|
75
|
+
eth_signUserOperation: "eth_signUserOperation";
|
|
76
|
+
}>>;
|
|
77
|
+
id: import("@metamask/superstruct").Struct<string, null>;
|
|
78
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
79
|
+
}>;
|
|
80
|
+
export type EthErc4337Account = Infer<typeof EthErc4337AccountStruct>;
|
|
81
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/eth/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAMnD,eAAO,MAAM,cAAc,sDAA+C,CAAC;AAE3E,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,YAAY,kBAAkB;IAC9B,IAAI,aAAa;IACjB,eAAe,wBAAwB;IACvC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IAExC,oBAAoB,6BAA6B;IACjD,kBAAkB,2BAA2B;IAC7C,iBAAiB,0BAA0B;CAC5C;AAED,eAAO,MAAM,mBAAmB;;;;;;;IAG9B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;EAWH,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE9D,eAAO,MAAM,uBAAuB;;;;;;;IAGlC;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;EAaH,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { Infer } from "@metamask/superstruct";
|
|
2
|
+
export declare const EthBytesStruct: import("@metamask/superstruct").Struct<string, null>;
|
|
3
|
+
export declare const EthAddressStruct: import("@metamask/superstruct").Struct<string, null>;
|
|
4
|
+
export declare const EthUint256Struct: import("@metamask/superstruct").Struct<string, null>;
|
|
5
|
+
/**
|
|
6
|
+
* Supported Ethereum methods.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum EthMethod {
|
|
9
|
+
PersonalSign = "personal_sign",
|
|
10
|
+
Sign = "eth_sign",
|
|
11
|
+
SignTransaction = "eth_signTransaction",
|
|
12
|
+
SignTypedDataV1 = "eth_signTypedData_v1",
|
|
13
|
+
SignTypedDataV3 = "eth_signTypedData_v3",
|
|
14
|
+
SignTypedDataV4 = "eth_signTypedData_v4",
|
|
15
|
+
PrepareUserOperation = "eth_prepareUserOperation",
|
|
16
|
+
PatchUserOperation = "eth_patchUserOperation",
|
|
17
|
+
SignUserOperation = "eth_signUserOperation"
|
|
18
|
+
}
|
|
19
|
+
export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct<{
|
|
20
|
+
type: "eip155:eoa";
|
|
21
|
+
id: string;
|
|
22
|
+
address: string;
|
|
23
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
24
|
+
methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
|
|
25
|
+
}, {
|
|
26
|
+
/**
|
|
27
|
+
* Account address.
|
|
28
|
+
*/
|
|
29
|
+
address: import("@metamask/superstruct").Struct<string, null>;
|
|
30
|
+
/**
|
|
31
|
+
* Account type.
|
|
32
|
+
*/
|
|
33
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa", "eip155:eoa">;
|
|
34
|
+
/**
|
|
35
|
+
* Account supported methods.
|
|
36
|
+
*/
|
|
37
|
+
methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4", {
|
|
38
|
+
personal_sign: "personal_sign";
|
|
39
|
+
eth_sign: "eth_sign";
|
|
40
|
+
eth_signTransaction: "eth_signTransaction";
|
|
41
|
+
eth_signTypedData_v1: "eth_signTypedData_v1";
|
|
42
|
+
eth_signTypedData_v3: "eth_signTypedData_v3";
|
|
43
|
+
eth_signTypedData_v4: "eth_signTypedData_v4";
|
|
44
|
+
}>>;
|
|
45
|
+
id: import("@metamask/superstruct").Struct<string, null>;
|
|
46
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
47
|
+
}>;
|
|
48
|
+
export type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;
|
|
49
|
+
export declare const EthErc4337AccountStruct: import("@metamask/superstruct").Struct<{
|
|
50
|
+
type: "eip155:erc4337";
|
|
51
|
+
id: string;
|
|
52
|
+
address: string;
|
|
53
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
54
|
+
methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
|
|
55
|
+
}, {
|
|
56
|
+
/**
|
|
57
|
+
* Account address.
|
|
58
|
+
*/
|
|
59
|
+
address: import("@metamask/superstruct").Struct<string, null>;
|
|
60
|
+
/**
|
|
61
|
+
* Account type.
|
|
62
|
+
*/
|
|
63
|
+
type: import("@metamask/superstruct").Struct<"eip155:erc4337", "eip155:erc4337">;
|
|
64
|
+
/**
|
|
65
|
+
* Account supported methods.
|
|
66
|
+
*/
|
|
67
|
+
methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation", {
|
|
68
|
+
personal_sign: "personal_sign";
|
|
69
|
+
eth_sign: "eth_sign";
|
|
70
|
+
eth_signTypedData_v1: "eth_signTypedData_v1";
|
|
71
|
+
eth_signTypedData_v3: "eth_signTypedData_v3";
|
|
72
|
+
eth_signTypedData_v4: "eth_signTypedData_v4";
|
|
73
|
+
eth_prepareUserOperation: "eth_prepareUserOperation";
|
|
74
|
+
eth_patchUserOperation: "eth_patchUserOperation";
|
|
75
|
+
eth_signUserOperation: "eth_signUserOperation";
|
|
76
|
+
}>>;
|
|
77
|
+
id: import("@metamask/superstruct").Struct<string, null>;
|
|
78
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
79
|
+
}>;
|
|
80
|
+
export type EthErc4337Account = Infer<typeof EthErc4337AccountStruct>;
|
|
81
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/eth/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAMnD,eAAO,MAAM,cAAc,sDAA+C,CAAC;AAE3E,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,YAAY,kBAAkB;IAC9B,IAAI,aAAa;IACjB,eAAe,wBAAwB;IACvC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IAExC,oBAAoB,6BAA6B;IACjD,kBAAkB,2BAA2B;IAC7C,iBAAiB,0BAA0B;CAC5C;AAED,eAAO,MAAM,mBAAmB;;;;;;;IAG9B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;EAWH,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE9D,eAAO,MAAM,uBAAuB;;;;;;;IAGlC;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;EAaH,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|