@account-kit/smart-contracts 4.6.1 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/src/ma-v2/abis/accountFactoryAbi.d.ts +492 -0
- package/dist/esm/src/ma-v2/abis/accountFactoryAbi.js +639 -0
- package/dist/esm/src/ma-v2/abis/accountFactoryAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/abis/modularAccountAbi.d.ts +954 -0
- package/dist/esm/src/ma-v2/abis/modularAccountAbi.js +1242 -0
- package/dist/esm/src/ma-v2/abis/modularAccountAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts +991 -0
- package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.js +1289 -0
- package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts +1001 -0
- package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.js +1302 -0
- package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/account/nativeSMASigner.d.ts +238 -0
- package/dist/esm/src/ma-v2/account/nativeSMASigner.js +88 -0
- package/dist/esm/src/ma-v2/account/nativeSMASigner.js.map +1 -0
- package/dist/esm/src/ma-v2/account/semiModularAccountV2.d.ts +41 -0
- package/dist/esm/src/ma-v2/account/semiModularAccountV2.js +148 -0
- package/dist/esm/src/ma-v2/account/semiModularAccountV2.js.map +1 -0
- package/dist/esm/src/ma-v2/actions/common/types.d.ts +31 -0
- package/dist/esm/src/ma-v2/actions/common/types.js +6 -0
- package/dist/esm/src/ma-v2/actions/common/types.js.map +1 -0
- package/dist/esm/src/ma-v2/actions/common/utils.d.ts +76 -0
- package/dist/esm/src/ma-v2/actions/common/utils.js +100 -0
- package/dist/esm/src/ma-v2/actions/common/utils.js.map +1 -0
- package/dist/esm/src/ma-v2/actions/install-validation/installValidation.d.ts +71 -0
- package/dist/esm/src/ma-v2/actions/install-validation/installValidation.js +109 -0
- package/dist/esm/src/ma-v2/actions/install-validation/installValidation.js.map +1 -0
- package/dist/esm/src/ma-v2/client/client.d.ts +6 -0
- package/dist/esm/src/ma-v2/client/client.js +40 -0
- package/dist/esm/src/ma-v2/client/client.js.map +1 -0
- package/dist/esm/src/ma-v2/index.d.ts +26 -0
- package/dist/esm/src/ma-v2/index.js +24 -0
- package/dist/esm/src/ma-v2/index.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts +556 -0
- package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.js +716 -0
- package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/allowlist-module/module.d.ts +579 -0
- package/dist/esm/src/ma-v2/modules/allowlist-module/module.js +56 -0
- package/dist/esm/src/ma-v2/modules/allowlist-module/module.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts +312 -0
- package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.js +404 -0
- package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.d.ts +322 -0
- package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.js +14 -0
- package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts +186 -0
- package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.js +242 -0
- package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.d.ts +196 -0
- package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.js +25 -0
- package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts +45 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.js +331 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/module.d.ts +10 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/module.js +16 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/module.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.d.ts +239 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.js +93 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts +229 -0
- package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.js +296 -0
- package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/time-range-module/module.d.ts +245 -0
- package/dist/esm/src/ma-v2/modules/time-range-module/module.js +42 -0
- package/dist/esm/src/ma-v2/modules/time-range-module/module.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/utils.d.ts +91 -0
- package/dist/esm/src/ma-v2/modules/utils.js +188 -0
- package/dist/esm/src/ma-v2/modules/utils.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +287 -0
- package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js +374 -0
- package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/utils.d.ts +16 -0
- package/dist/esm/src/ma-v2/utils.js +105 -0
- package/dist/esm/src/ma-v2/utils.js.map +1 -0
- package/dist/types/src/ma-v2/abis/accountFactoryAbi.d.ts +493 -0
- package/dist/types/src/ma-v2/abis/accountFactoryAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/abis/modularAccountAbi.d.ts +955 -0
- package/dist/types/src/ma-v2/abis/modularAccountAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts +992 -0
- package/dist/types/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts +1002 -0
- package/dist/types/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/account/nativeSMASigner.d.ts +239 -0
- package/dist/types/src/ma-v2/account/nativeSMASigner.d.ts.map +1 -0
- package/dist/types/src/ma-v2/account/semiModularAccountV2.d.ts +42 -0
- package/dist/types/src/ma-v2/account/semiModularAccountV2.d.ts.map +1 -0
- package/dist/types/src/ma-v2/actions/common/types.d.ts +32 -0
- package/dist/types/src/ma-v2/actions/common/types.d.ts.map +1 -0
- package/dist/types/src/ma-v2/actions/common/utils.d.ts +77 -0
- package/dist/types/src/ma-v2/actions/common/utils.d.ts.map +1 -0
- package/dist/types/src/ma-v2/actions/install-validation/installValidation.d.ts +72 -0
- package/dist/types/src/ma-v2/actions/install-validation/installValidation.d.ts.map +1 -0
- package/dist/types/src/ma-v2/client/client.d.ts +7 -0
- package/dist/types/src/ma-v2/client/client.d.ts.map +1 -0
- package/dist/types/src/ma-v2/index.d.ts +27 -0
- package/dist/types/src/ma-v2/index.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts +557 -0
- package/dist/types/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/allowlist-module/module.d.ts +580 -0
- package/dist/types/src/ma-v2/modules/allowlist-module/module.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts +313 -0
- package/dist/types/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/native-token-limit-module/module.d.ts +323 -0
- package/dist/types/src/ma-v2/modules/native-token-limit-module/module.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts +187 -0
- package/dist/types/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/paymaster-guard-module/module.d.ts +197 -0
- package/dist/types/src/ma-v2/modules/paymaster-guard-module/module.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts +46 -0
- package/dist/types/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/single-signer-validation/module.d.ts +11 -0
- package/dist/types/src/ma-v2/modules/single-signer-validation/module.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/single-signer-validation/signer.d.ts +240 -0
- package/dist/types/src/ma-v2/modules/single-signer-validation/signer.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts +230 -0
- package/dist/types/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/time-range-module/module.d.ts +246 -0
- package/dist/types/src/ma-v2/modules/time-range-module/module.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/utils.d.ts +92 -0
- package/dist/types/src/ma-v2/modules/utils.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +288 -0
- package/dist/types/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/utils.d.ts +17 -0
- package/dist/types/src/ma-v2/utils.d.ts.map +1 -0
- package/package.json +10 -5
- package/src/ma-v2/abis/accountFactoryAbi.ts +638 -0
- package/src/ma-v2/abis/modularAccountAbi.ts +1241 -0
- package/src/ma-v2/abis/semiModularAccountBytecodeAbi.ts +1288 -0
- package/src/ma-v2/abis/semiModularAccountStorageAbi.ts +1301 -0
- package/src/ma-v2/account/nativeSMASigner.ts +121 -0
- package/src/ma-v2/account/semiModularAccountV2.ts +289 -0
- package/src/ma-v2/actions/common/types.ts +37 -0
- package/src/ma-v2/actions/common/utils.ts +103 -0
- package/src/ma-v2/actions/install-validation/installValidation.ts +213 -0
- package/src/ma-v2/client/client.ts +74 -0
- package/src/ma-v2/index.ts +47 -0
- package/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.ts +715 -0
- package/src/ma-v2/modules/allowlist-module/module.ts +87 -0
- package/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.ts +403 -0
- package/src/ma-v2/modules/native-token-limit-module/module.ts +21 -0
- package/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.ts +241 -0
- package/src/ma-v2/modules/paymaster-guard-module/module.ts +35 -0
- package/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.ts +330 -0
- package/src/ma-v2/modules/single-signer-validation/module.ts +24 -0
- package/src/ma-v2/modules/single-signer-validation/signer.ts +127 -0
- package/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.ts +295 -0
- package/src/ma-v2/modules/time-range-module/module.ts +63 -0
- package/src/ma-v2/modules/utils.ts +213 -0
- package/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.ts +373 -0
- package/src/ma-v2/utils.ts +138 -0
package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.js
ADDED
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
export const singleSignerValidationModuleAbi = [
|
|
2
|
+
{
|
|
3
|
+
type: "function",
|
|
4
|
+
name: "moduleId",
|
|
5
|
+
inputs: [],
|
|
6
|
+
outputs: [
|
|
7
|
+
{
|
|
8
|
+
name: "",
|
|
9
|
+
type: "string",
|
|
10
|
+
internalType: "string",
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
stateMutability: "pure",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
type: "function",
|
|
17
|
+
name: "onInstall",
|
|
18
|
+
inputs: [
|
|
19
|
+
{
|
|
20
|
+
name: "data",
|
|
21
|
+
type: "bytes",
|
|
22
|
+
internalType: "bytes",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
outputs: [],
|
|
26
|
+
stateMutability: "nonpayable",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
type: "function",
|
|
30
|
+
name: "onUninstall",
|
|
31
|
+
inputs: [
|
|
32
|
+
{
|
|
33
|
+
name: "data",
|
|
34
|
+
type: "bytes",
|
|
35
|
+
internalType: "bytes",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
outputs: [],
|
|
39
|
+
stateMutability: "nonpayable",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
type: "function",
|
|
43
|
+
name: "replaySafeHash",
|
|
44
|
+
inputs: [
|
|
45
|
+
{
|
|
46
|
+
name: "account",
|
|
47
|
+
type: "address",
|
|
48
|
+
internalType: "address",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "hash",
|
|
52
|
+
type: "bytes32",
|
|
53
|
+
internalType: "bytes32",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
outputs: [
|
|
57
|
+
{
|
|
58
|
+
name: "",
|
|
59
|
+
type: "bytes32",
|
|
60
|
+
internalType: "bytes32",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
stateMutability: "view",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: "function",
|
|
67
|
+
name: "signers",
|
|
68
|
+
inputs: [
|
|
69
|
+
{
|
|
70
|
+
name: "entityId",
|
|
71
|
+
type: "uint32",
|
|
72
|
+
internalType: "uint32",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "account",
|
|
76
|
+
type: "address",
|
|
77
|
+
internalType: "address",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
outputs: [
|
|
81
|
+
{
|
|
82
|
+
name: "",
|
|
83
|
+
type: "address",
|
|
84
|
+
internalType: "address",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
stateMutability: "view",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: "function",
|
|
91
|
+
name: "supportsInterface",
|
|
92
|
+
inputs: [
|
|
93
|
+
{
|
|
94
|
+
name: "interfaceId",
|
|
95
|
+
type: "bytes4",
|
|
96
|
+
internalType: "bytes4",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
outputs: [
|
|
100
|
+
{
|
|
101
|
+
name: "",
|
|
102
|
+
type: "bool",
|
|
103
|
+
internalType: "bool",
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
stateMutability: "view",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
type: "function",
|
|
110
|
+
name: "transferSigner",
|
|
111
|
+
inputs: [
|
|
112
|
+
{
|
|
113
|
+
name: "entityId",
|
|
114
|
+
type: "uint32",
|
|
115
|
+
internalType: "uint32",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "newSigner",
|
|
119
|
+
type: "address",
|
|
120
|
+
internalType: "address",
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
outputs: [],
|
|
124
|
+
stateMutability: "nonpayable",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: "function",
|
|
128
|
+
name: "validateRuntime",
|
|
129
|
+
inputs: [
|
|
130
|
+
{
|
|
131
|
+
name: "account",
|
|
132
|
+
type: "address",
|
|
133
|
+
internalType: "address",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "entityId",
|
|
137
|
+
type: "uint32",
|
|
138
|
+
internalType: "uint32",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: "sender",
|
|
142
|
+
type: "address",
|
|
143
|
+
internalType: "address",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "",
|
|
147
|
+
type: "uint256",
|
|
148
|
+
internalType: "uint256",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "",
|
|
152
|
+
type: "bytes",
|
|
153
|
+
internalType: "bytes",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "",
|
|
157
|
+
type: "bytes",
|
|
158
|
+
internalType: "bytes",
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
outputs: [],
|
|
162
|
+
stateMutability: "view",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
type: "function",
|
|
166
|
+
name: "validateSignature",
|
|
167
|
+
inputs: [
|
|
168
|
+
{
|
|
169
|
+
name: "account",
|
|
170
|
+
type: "address",
|
|
171
|
+
internalType: "address",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: "entityId",
|
|
175
|
+
type: "uint32",
|
|
176
|
+
internalType: "uint32",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: "",
|
|
180
|
+
type: "address",
|
|
181
|
+
internalType: "address",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: "digest",
|
|
185
|
+
type: "bytes32",
|
|
186
|
+
internalType: "bytes32",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: "signature",
|
|
190
|
+
type: "bytes",
|
|
191
|
+
internalType: "bytes",
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
outputs: [
|
|
195
|
+
{
|
|
196
|
+
name: "",
|
|
197
|
+
type: "bytes4",
|
|
198
|
+
internalType: "bytes4",
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
stateMutability: "view",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
type: "function",
|
|
205
|
+
name: "validateUserOp",
|
|
206
|
+
inputs: [
|
|
207
|
+
{
|
|
208
|
+
name: "entityId",
|
|
209
|
+
type: "uint32",
|
|
210
|
+
internalType: "uint32",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: "userOp",
|
|
214
|
+
type: "tuple",
|
|
215
|
+
internalType: "struct PackedUserOperation",
|
|
216
|
+
components: [
|
|
217
|
+
{
|
|
218
|
+
name: "sender",
|
|
219
|
+
type: "address",
|
|
220
|
+
internalType: "address",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: "nonce",
|
|
224
|
+
type: "uint256",
|
|
225
|
+
internalType: "uint256",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: "initCode",
|
|
229
|
+
type: "bytes",
|
|
230
|
+
internalType: "bytes",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
name: "callData",
|
|
234
|
+
type: "bytes",
|
|
235
|
+
internalType: "bytes",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: "accountGasLimits",
|
|
239
|
+
type: "bytes32",
|
|
240
|
+
internalType: "bytes32",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: "preVerificationGas",
|
|
244
|
+
type: "uint256",
|
|
245
|
+
internalType: "uint256",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: "gasFees",
|
|
249
|
+
type: "bytes32",
|
|
250
|
+
internalType: "bytes32",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: "paymasterAndData",
|
|
254
|
+
type: "bytes",
|
|
255
|
+
internalType: "bytes",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
name: "signature",
|
|
259
|
+
type: "bytes",
|
|
260
|
+
internalType: "bytes",
|
|
261
|
+
},
|
|
262
|
+
],
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: "userOpHash",
|
|
266
|
+
type: "bytes32",
|
|
267
|
+
internalType: "bytes32",
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
outputs: [
|
|
271
|
+
{
|
|
272
|
+
name: "",
|
|
273
|
+
type: "uint256",
|
|
274
|
+
internalType: "uint256",
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
stateMutability: "view",
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
type: "event",
|
|
281
|
+
name: "SignerTransferred",
|
|
282
|
+
inputs: [
|
|
283
|
+
{
|
|
284
|
+
name: "account",
|
|
285
|
+
type: "address",
|
|
286
|
+
indexed: true,
|
|
287
|
+
internalType: "address",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: "entityId",
|
|
291
|
+
type: "uint32",
|
|
292
|
+
indexed: true,
|
|
293
|
+
internalType: "uint32",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: "newSigner",
|
|
297
|
+
type: "address",
|
|
298
|
+
indexed: true,
|
|
299
|
+
internalType: "address",
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
name: "previousSigner",
|
|
303
|
+
type: "address",
|
|
304
|
+
indexed: false,
|
|
305
|
+
internalType: "address",
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
anonymous: true,
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
type: "error",
|
|
312
|
+
name: "InvalidSignatureType",
|
|
313
|
+
inputs: [],
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
type: "error",
|
|
317
|
+
name: "NotAuthorized",
|
|
318
|
+
inputs: [],
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
type: "error",
|
|
322
|
+
name: "NotImplemented",
|
|
323
|
+
inputs: [],
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
type: "error",
|
|
327
|
+
name: "UnexpectedDataPassed",
|
|
328
|
+
inputs: [],
|
|
329
|
+
},
|
|
330
|
+
];
|
|
331
|
+
//# sourceMappingURL=singleSignerValidationModuleAbi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"singleSignerValidationModuleAbi.js","sourceRoot":"","sources":["../../../../../../../src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,YAAY,EAAE,QAAQ;aACvB;SACF;QACD,eAAe,EAAE,MAAM;KACxB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;gBACb,YAAY,EAAE,OAAO;aACtB;SACF;QACD,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;KAC9B;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;gBACb,YAAY,EAAE,OAAO;aACtB;SACF;QACD,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;KAC9B;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,SAAS;aACxB;YACD;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,SAAS;aACxB;SACF;QACD,OAAO,EAAE;YACP;gBAC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AE;YACN;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;aACxB;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,QAAQ;aACvB;YACD;gBACE,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;aACxB;YACD;gBACE,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;aACxB;SACF;QACD,SAAS,EAAE,IAAI;KAChB;IACD;QACE,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,sBAAsB;QAC5B,MAAM,EAAE,EAAE;KACX;IACD;QACE,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,EAAE;KACX;IACD;QACE,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,EAAE;KACX;IACD;QACE,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,sBAAsB;QAC5B,MAAM,EAAE,EAAE;KACX;CACF,CAAC","sourcesContent":["export const singleSignerValidationModuleAbi = [\n {\n type: \"function\",\n name: \"moduleId\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"string\",\n internalType: \"string\",\n },\n ],\n stateMutability: \"pure\",\n },\n {\n type: \"function\",\n name: \"onInstall\",\n inputs: [\n {\n name: \"data\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n ],\n outputs: [],\n stateMutability: \"nonpayable\",\n },\n {\n type: \"function\",\n name: \"onUninstall\",\n inputs: [\n {\n name: \"data\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n ],\n outputs: [],\n stateMutability: \"nonpayable\",\n },\n {\n type: \"function\",\n name: \"replaySafeHash\",\n inputs: [\n {\n name: \"account\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"hash\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"signers\",\n inputs: [\n {\n name: \"entityId\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"account\",\n type: \"address\",\n internalType: \"address\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"address\",\n internalType: \"address\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"supportsInterface\",\n inputs: [\n {\n name: \"interfaceId\",\n type: \"bytes4\",\n internalType: \"bytes4\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"bool\",\n internalType: \"bool\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"transferSigner\",\n inputs: [\n {\n name: \"entityId\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"newSigner\",\n type: \"address\",\n internalType: \"address\",\n },\n ],\n outputs: [],\n stateMutability: \"nonpayable\",\n },\n {\n type: \"function\",\n name: \"validateRuntime\",\n inputs: [\n {\n name: \"account\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"entityId\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"sender\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n {\n name: \"\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n ],\n outputs: [],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"validateSignature\",\n inputs: [\n {\n name: \"account\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"entityId\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"digest\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n {\n name: \"signature\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"bytes4\",\n internalType: \"bytes4\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"validateUserOp\",\n inputs: [\n {\n name: \"entityId\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"userOp\",\n type: \"tuple\",\n internalType: \"struct PackedUserOperation\",\n components: [\n {\n name: \"sender\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"nonce\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"initCode\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n {\n name: \"callData\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n {\n name: \"accountGasLimits\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n {\n name: \"preVerificationGas\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"gasFees\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n {\n name: \"paymasterAndData\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n {\n name: \"signature\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n ],\n },\n {\n name: \"userOpHash\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"event\",\n name: \"SignerTransferred\",\n inputs: [\n {\n name: \"account\",\n type: \"address\",\n indexed: true,\n internalType: \"address\",\n },\n {\n name: \"entityId\",\n type: \"uint32\",\n indexed: true,\n internalType: \"uint32\",\n },\n {\n name: \"newSigner\",\n type: \"address\",\n indexed: true,\n internalType: \"address\",\n },\n {\n name: \"previousSigner\",\n type: \"address\",\n indexed: false,\n internalType: \"address\",\n },\n ],\n anonymous: true,\n },\n {\n type: \"error\",\n name: \"InvalidSignatureType\",\n inputs: [],\n },\n {\n type: \"error\",\n name: \"NotAuthorized\",\n inputs: [],\n },\n {\n type: \"error\",\n name: \"NotImplemented\",\n inputs: [],\n },\n {\n type: \"error\",\n name: \"UnexpectedDataPassed\",\n inputs: [],\n },\n];\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { encodeAbiParameters } from "viem";
|
|
2
|
+
export const SingleSignerValidationModule = {
|
|
3
|
+
encodeOnInstallData: (args) => {
|
|
4
|
+
const { entityId, signer } = args;
|
|
5
|
+
return encodeAbiParameters([{ type: "uint32" }, { type: "address" }], [entityId, signer]);
|
|
6
|
+
},
|
|
7
|
+
encodeOnUninstallData: (args) => {
|
|
8
|
+
const { entityId } = args;
|
|
9
|
+
return encodeAbiParameters([
|
|
10
|
+
{
|
|
11
|
+
type: "uint32",
|
|
12
|
+
},
|
|
13
|
+
], [entityId]);
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../../../../src/ma-v2/modules/single-signer-validation/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAA0B,MAAM,MAAM,CAAC;AAEnE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,mBAAmB,EAAE,CAAC,IAA2C,EAAO,EAAE;QACxE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAClC,OAAO,mBAAmB,CACxB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EACzC,CAAC,QAAQ,EAAE,MAAM,CAAC,CACnB,CAAC;IACJ,CAAC;IAED,qBAAqB,EAAE,CAAC,IAA0B,EAAO,EAAE;QACzD,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;QAE1B,OAAO,mBAAmB,CACxB;YACE;gBACE,IAAI,EAAE,QAAQ;aACf;SACF,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["import { encodeAbiParameters, type Address, type Hex } from \"viem\";\n\nexport const SingleSignerValidationModule = {\n encodeOnInstallData: (args: { entityId: number; signer: Address }): Hex => {\n const { entityId, signer } = args;\n return encodeAbiParameters(\n [{ type: \"uint32\" }, { type: \"address\" }],\n [entityId, signer]\n );\n },\n\n encodeOnUninstallData: (args: { entityId: number }): Hex => {\n const { entityId } = args;\n\n return encodeAbiParameters(\n [\n {\n type: \"uint32\",\n },\n ],\n [entityId]\n );\n },\n};\n"]}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import type { SmartAccountSigner } from "@aa-sdk/core";
|
|
2
|
+
import { type Hex, type SignableMessage, type TypedDataDefinition, type Chain, type Address } from "viem";
|
|
3
|
+
/**
|
|
4
|
+
* Creates an object with methods for generating a dummy signature, signing user operation hashes, signing messages, and signing typed data.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { singleSignerMessageSigner } from "@account-kit/smart-contracts";
|
|
10
|
+
* import { LocalAccountSigner } from "@aa-sdk/core";
|
|
11
|
+
*
|
|
12
|
+
* const MNEMONIC = "...":
|
|
13
|
+
*
|
|
14
|
+
* const account = createSMAV2Account({ config });
|
|
15
|
+
*
|
|
16
|
+
* const signer = LocalAccountSigner.mnemonicToAccountSigner(MNEMONIC);
|
|
17
|
+
*
|
|
18
|
+
* const messageSigner = singleSignerMessageSigner(signer, chain, account.address, account.signerEntity.entityId);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @param {SmartAccountSigner} signer Signer to use for signing operations
|
|
22
|
+
* @param {Chain} chain Chain object for the signer
|
|
23
|
+
* @param {Address} accountAddress address of the smart account using this signer
|
|
24
|
+
* @param {number} entityId the entity id of the signing validation
|
|
25
|
+
* @returns {object} an object with methods for signing operations and managing signatures
|
|
26
|
+
*/
|
|
27
|
+
export declare const singleSignerMessageSigner: (signer: SmartAccountSigner, chain: Chain, accountAddress: Address, entityId: number) => {
|
|
28
|
+
getDummySignature: () => Hex;
|
|
29
|
+
signUserOperationHash: (uoHash: Hex) => Promise<Hex>;
|
|
30
|
+
signMessage({ message }: {
|
|
31
|
+
message: SignableMessage;
|
|
32
|
+
}): Promise<Hex>;
|
|
33
|
+
signTypedData: <const typedData extends Record<string, unknown> | {
|
|
34
|
+
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
35
|
+
[x: `string[${string}]`]: undefined;
|
|
36
|
+
[x: `function[${string}]`]: undefined;
|
|
37
|
+
[x: `address[${string}]`]: undefined;
|
|
38
|
+
[x: `uint64[${string}]`]: undefined;
|
|
39
|
+
[x: `bytes32[${string}]`]: undefined;
|
|
40
|
+
[x: `bytes[${string}]`]: undefined;
|
|
41
|
+
[x: `uint256[${string}]`]: undefined;
|
|
42
|
+
[x: `bytes4[${string}]`]: undefined;
|
|
43
|
+
[x: `bool[${string}]`]: undefined;
|
|
44
|
+
[x: `bytes1[${string}]`]: undefined;
|
|
45
|
+
[x: `uint32[${string}]`]: undefined;
|
|
46
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
47
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
48
|
+
[x: `bytes5[${string}]`]: undefined;
|
|
49
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
50
|
+
[x: `bytes11[${string}]`]: undefined;
|
|
51
|
+
[x: `bytes7[${string}]`]: undefined;
|
|
52
|
+
[x: `bytes9[${string}]`]: undefined;
|
|
53
|
+
[x: `bytes27[${string}]`]: undefined;
|
|
54
|
+
[x: `bytes22[${string}]`]: undefined;
|
|
55
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
56
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
57
|
+
[x: `bytes12[${string}]`]: undefined;
|
|
58
|
+
[x: `bytes13[${string}]`]: undefined;
|
|
59
|
+
[x: `bytes14[${string}]`]: undefined;
|
|
60
|
+
[x: `bytes15[${string}]`]: undefined;
|
|
61
|
+
[x: `bytes16[${string}]`]: undefined;
|
|
62
|
+
[x: `bytes17[${string}]`]: undefined;
|
|
63
|
+
[x: `bytes18[${string}]`]: undefined;
|
|
64
|
+
[x: `bytes19[${string}]`]: undefined;
|
|
65
|
+
[x: `bytes20[${string}]`]: undefined;
|
|
66
|
+
[x: `bytes21[${string}]`]: undefined;
|
|
67
|
+
[x: `bytes23[${string}]`]: undefined;
|
|
68
|
+
[x: `bytes24[${string}]`]: undefined;
|
|
69
|
+
[x: `bytes25[${string}]`]: undefined;
|
|
70
|
+
[x: `bytes26[${string}]`]: undefined;
|
|
71
|
+
[x: `bytes28[${string}]`]: undefined;
|
|
72
|
+
[x: `bytes29[${string}]`]: undefined;
|
|
73
|
+
[x: `bytes30[${string}]`]: undefined;
|
|
74
|
+
[x: `bytes31[${string}]`]: undefined;
|
|
75
|
+
[x: `int[${string}]`]: undefined;
|
|
76
|
+
[x: `int8[${string}]`]: undefined;
|
|
77
|
+
[x: `int16[${string}]`]: undefined;
|
|
78
|
+
[x: `int24[${string}]`]: undefined;
|
|
79
|
+
[x: `int32[${string}]`]: undefined;
|
|
80
|
+
[x: `int40[${string}]`]: undefined;
|
|
81
|
+
[x: `int48[${string}]`]: undefined;
|
|
82
|
+
[x: `int56[${string}]`]: undefined;
|
|
83
|
+
[x: `int64[${string}]`]: undefined;
|
|
84
|
+
[x: `int72[${string}]`]: undefined;
|
|
85
|
+
[x: `int80[${string}]`]: undefined;
|
|
86
|
+
[x: `int88[${string}]`]: undefined;
|
|
87
|
+
[x: `int96[${string}]`]: undefined;
|
|
88
|
+
[x: `int104[${string}]`]: undefined;
|
|
89
|
+
[x: `int112[${string}]`]: undefined;
|
|
90
|
+
[x: `int120[${string}]`]: undefined;
|
|
91
|
+
[x: `int128[${string}]`]: undefined;
|
|
92
|
+
[x: `int136[${string}]`]: undefined;
|
|
93
|
+
[x: `int144[${string}]`]: undefined;
|
|
94
|
+
[x: `int152[${string}]`]: undefined;
|
|
95
|
+
[x: `int160[${string}]`]: undefined;
|
|
96
|
+
[x: `int168[${string}]`]: undefined;
|
|
97
|
+
[x: `int176[${string}]`]: undefined;
|
|
98
|
+
[x: `int184[${string}]`]: undefined;
|
|
99
|
+
[x: `int192[${string}]`]: undefined;
|
|
100
|
+
[x: `int200[${string}]`]: undefined;
|
|
101
|
+
[x: `int208[${string}]`]: undefined;
|
|
102
|
+
[x: `int216[${string}]`]: undefined;
|
|
103
|
+
[x: `int224[${string}]`]: undefined;
|
|
104
|
+
[x: `int232[${string}]`]: undefined;
|
|
105
|
+
[x: `int240[${string}]`]: undefined;
|
|
106
|
+
[x: `int248[${string}]`]: undefined;
|
|
107
|
+
[x: `int256[${string}]`]: undefined;
|
|
108
|
+
[x: `uint[${string}]`]: undefined;
|
|
109
|
+
[x: `uint8[${string}]`]: undefined;
|
|
110
|
+
[x: `uint16[${string}]`]: undefined;
|
|
111
|
+
[x: `uint24[${string}]`]: undefined;
|
|
112
|
+
[x: `uint40[${string}]`]: undefined;
|
|
113
|
+
[x: `uint48[${string}]`]: undefined;
|
|
114
|
+
[x: `uint56[${string}]`]: undefined;
|
|
115
|
+
[x: `uint72[${string}]`]: undefined;
|
|
116
|
+
[x: `uint80[${string}]`]: undefined;
|
|
117
|
+
[x: `uint88[${string}]`]: undefined;
|
|
118
|
+
[x: `uint96[${string}]`]: undefined;
|
|
119
|
+
[x: `uint104[${string}]`]: undefined;
|
|
120
|
+
[x: `uint112[${string}]`]: undefined;
|
|
121
|
+
[x: `uint120[${string}]`]: undefined;
|
|
122
|
+
[x: `uint128[${string}]`]: undefined;
|
|
123
|
+
[x: `uint136[${string}]`]: undefined;
|
|
124
|
+
[x: `uint144[${string}]`]: undefined;
|
|
125
|
+
[x: `uint152[${string}]`]: undefined;
|
|
126
|
+
[x: `uint160[${string}]`]: undefined;
|
|
127
|
+
[x: `uint168[${string}]`]: undefined;
|
|
128
|
+
[x: `uint176[${string}]`]: undefined;
|
|
129
|
+
[x: `uint184[${string}]`]: undefined;
|
|
130
|
+
[x: `uint192[${string}]`]: undefined;
|
|
131
|
+
[x: `uint200[${string}]`]: undefined;
|
|
132
|
+
[x: `uint208[${string}]`]: undefined;
|
|
133
|
+
[x: `uint216[${string}]`]: undefined;
|
|
134
|
+
[x: `uint224[${string}]`]: undefined;
|
|
135
|
+
[x: `uint232[${string}]`]: undefined;
|
|
136
|
+
[x: `uint240[${string}]`]: undefined;
|
|
137
|
+
[x: `uint248[${string}]`]: undefined;
|
|
138
|
+
string?: undefined;
|
|
139
|
+
address?: undefined;
|
|
140
|
+
uint64?: undefined;
|
|
141
|
+
bytes32?: undefined;
|
|
142
|
+
bytes?: undefined;
|
|
143
|
+
uint256?: undefined;
|
|
144
|
+
bytes4?: undefined;
|
|
145
|
+
bool?: undefined;
|
|
146
|
+
bytes1?: undefined;
|
|
147
|
+
uint32?: undefined;
|
|
148
|
+
bytes2?: undefined;
|
|
149
|
+
bytes3?: undefined;
|
|
150
|
+
bytes5?: undefined;
|
|
151
|
+
bytes6?: undefined;
|
|
152
|
+
bytes11?: undefined;
|
|
153
|
+
bytes7?: undefined;
|
|
154
|
+
bytes9?: undefined;
|
|
155
|
+
bytes27?: undefined;
|
|
156
|
+
bytes22?: undefined;
|
|
157
|
+
bytes8?: undefined;
|
|
158
|
+
bytes10?: undefined;
|
|
159
|
+
bytes12?: undefined;
|
|
160
|
+
bytes13?: undefined;
|
|
161
|
+
bytes14?: undefined;
|
|
162
|
+
bytes15?: undefined;
|
|
163
|
+
bytes16?: undefined;
|
|
164
|
+
bytes17?: undefined;
|
|
165
|
+
bytes18?: undefined;
|
|
166
|
+
bytes19?: undefined;
|
|
167
|
+
bytes20?: undefined;
|
|
168
|
+
bytes21?: undefined;
|
|
169
|
+
bytes23?: undefined;
|
|
170
|
+
bytes24?: undefined;
|
|
171
|
+
bytes25?: undefined;
|
|
172
|
+
bytes26?: undefined;
|
|
173
|
+
bytes28?: undefined;
|
|
174
|
+
bytes29?: undefined;
|
|
175
|
+
bytes30?: undefined;
|
|
176
|
+
bytes31?: undefined;
|
|
177
|
+
int8?: undefined;
|
|
178
|
+
int16?: undefined;
|
|
179
|
+
int24?: undefined;
|
|
180
|
+
int32?: undefined;
|
|
181
|
+
int40?: undefined;
|
|
182
|
+
int48?: undefined;
|
|
183
|
+
int56?: undefined;
|
|
184
|
+
int64?: undefined;
|
|
185
|
+
int72?: undefined;
|
|
186
|
+
int80?: undefined;
|
|
187
|
+
int88?: undefined;
|
|
188
|
+
int96?: undefined;
|
|
189
|
+
int104?: undefined;
|
|
190
|
+
int112?: undefined;
|
|
191
|
+
int120?: undefined;
|
|
192
|
+
int128?: undefined;
|
|
193
|
+
int136?: undefined;
|
|
194
|
+
int144?: undefined;
|
|
195
|
+
int152?: undefined;
|
|
196
|
+
int160?: undefined;
|
|
197
|
+
int168?: undefined;
|
|
198
|
+
int176?: undefined;
|
|
199
|
+
int184?: undefined;
|
|
200
|
+
int192?: undefined;
|
|
201
|
+
int200?: undefined;
|
|
202
|
+
int208?: undefined;
|
|
203
|
+
int216?: undefined;
|
|
204
|
+
int224?: undefined;
|
|
205
|
+
int232?: undefined;
|
|
206
|
+
int240?: undefined;
|
|
207
|
+
int248?: undefined;
|
|
208
|
+
int256?: undefined;
|
|
209
|
+
uint8?: undefined;
|
|
210
|
+
uint16?: undefined;
|
|
211
|
+
uint24?: undefined;
|
|
212
|
+
uint40?: undefined;
|
|
213
|
+
uint48?: undefined;
|
|
214
|
+
uint56?: undefined;
|
|
215
|
+
uint72?: undefined;
|
|
216
|
+
uint80?: undefined;
|
|
217
|
+
uint88?: undefined;
|
|
218
|
+
uint96?: undefined;
|
|
219
|
+
uint104?: undefined;
|
|
220
|
+
uint112?: undefined;
|
|
221
|
+
uint120?: undefined;
|
|
222
|
+
uint128?: undefined;
|
|
223
|
+
uint136?: undefined;
|
|
224
|
+
uint144?: undefined;
|
|
225
|
+
uint152?: undefined;
|
|
226
|
+
uint160?: undefined;
|
|
227
|
+
uint168?: undefined;
|
|
228
|
+
uint176?: undefined;
|
|
229
|
+
uint184?: undefined;
|
|
230
|
+
uint192?: undefined;
|
|
231
|
+
uint200?: undefined;
|
|
232
|
+
uint208?: undefined;
|
|
233
|
+
uint216?: undefined;
|
|
234
|
+
uint224?: undefined;
|
|
235
|
+
uint232?: undefined;
|
|
236
|
+
uint240?: undefined;
|
|
237
|
+
uint248?: undefined;
|
|
238
|
+
}, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(typedDataDefinition: TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
|
|
239
|
+
};
|