@hyperauth/contracts 0.1.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.
@@ -0,0 +1,277 @@
1
+ /// Auto-generated by scripts/generate-sdk.mjs — do not edit manually.
2
+ export const hyperAuthAccountAbi = [
3
+ {
4
+ "type": "constructor",
5
+ "inputs": [
6
+ {
7
+ "name": "entryPoint_",
8
+ "type": "address",
9
+ "internalType": "address"
10
+ },
11
+ {
12
+ "name": "x",
13
+ "type": "uint256",
14
+ "internalType": "uint256"
15
+ },
16
+ {
17
+ "name": "y",
18
+ "type": "uint256",
19
+ "internalType": "uint256"
20
+ }
21
+ ],
22
+ "stateMutability": "nonpayable"
23
+ },
24
+ {
25
+ "type": "receive",
26
+ "stateMutability": "payable"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "ENTRY_POINT",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "address",
36
+ "internalType": "address"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "entryPoint",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "address",
49
+ "internalType": "contract IEntryPoint"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "execute",
57
+ "inputs": [
58
+ {
59
+ "name": "target",
60
+ "type": "address",
61
+ "internalType": "address"
62
+ },
63
+ {
64
+ "name": "value",
65
+ "type": "uint256",
66
+ "internalType": "uint256"
67
+ },
68
+ {
69
+ "name": "data",
70
+ "type": "bytes",
71
+ "internalType": "bytes"
72
+ }
73
+ ],
74
+ "outputs": [],
75
+ "stateMutability": "nonpayable"
76
+ },
77
+ {
78
+ "type": "function",
79
+ "name": "executeBatch",
80
+ "inputs": [
81
+ {
82
+ "name": "calls",
83
+ "type": "tuple[]",
84
+ "internalType": "struct BaseAccount.Call[]",
85
+ "components": [
86
+ {
87
+ "name": "target",
88
+ "type": "address",
89
+ "internalType": "address"
90
+ },
91
+ {
92
+ "name": "value",
93
+ "type": "uint256",
94
+ "internalType": "uint256"
95
+ },
96
+ {
97
+ "name": "data",
98
+ "type": "bytes",
99
+ "internalType": "bytes"
100
+ }
101
+ ]
102
+ }
103
+ ],
104
+ "outputs": [],
105
+ "stateMutability": "nonpayable"
106
+ },
107
+ {
108
+ "type": "function",
109
+ "name": "getNonce",
110
+ "inputs": [],
111
+ "outputs": [
112
+ {
113
+ "name": "",
114
+ "type": "uint256",
115
+ "internalType": "uint256"
116
+ }
117
+ ],
118
+ "stateMutability": "view"
119
+ },
120
+ {
121
+ "type": "function",
122
+ "name": "getOwner",
123
+ "inputs": [],
124
+ "outputs": [
125
+ {
126
+ "name": "x",
127
+ "type": "uint256",
128
+ "internalType": "uint256"
129
+ },
130
+ {
131
+ "name": "y",
132
+ "type": "uint256",
133
+ "internalType": "uint256"
134
+ }
135
+ ],
136
+ "stateMutability": "view"
137
+ },
138
+ {
139
+ "type": "function",
140
+ "name": "publicKeyX",
141
+ "inputs": [],
142
+ "outputs": [
143
+ {
144
+ "name": "",
145
+ "type": "uint256",
146
+ "internalType": "uint256"
147
+ }
148
+ ],
149
+ "stateMutability": "view"
150
+ },
151
+ {
152
+ "type": "function",
153
+ "name": "publicKeyY",
154
+ "inputs": [],
155
+ "outputs": [
156
+ {
157
+ "name": "",
158
+ "type": "uint256",
159
+ "internalType": "uint256"
160
+ }
161
+ ],
162
+ "stateMutability": "view"
163
+ },
164
+ {
165
+ "type": "function",
166
+ "name": "validateUserOp",
167
+ "inputs": [
168
+ {
169
+ "name": "userOp",
170
+ "type": "tuple",
171
+ "internalType": "struct PackedUserOperation",
172
+ "components": [
173
+ {
174
+ "name": "sender",
175
+ "type": "address",
176
+ "internalType": "address"
177
+ },
178
+ {
179
+ "name": "nonce",
180
+ "type": "uint256",
181
+ "internalType": "uint256"
182
+ },
183
+ {
184
+ "name": "initCode",
185
+ "type": "bytes",
186
+ "internalType": "bytes"
187
+ },
188
+ {
189
+ "name": "callData",
190
+ "type": "bytes",
191
+ "internalType": "bytes"
192
+ },
193
+ {
194
+ "name": "accountGasLimits",
195
+ "type": "bytes32",
196
+ "internalType": "bytes32"
197
+ },
198
+ {
199
+ "name": "preVerificationGas",
200
+ "type": "uint256",
201
+ "internalType": "uint256"
202
+ },
203
+ {
204
+ "name": "gasFees",
205
+ "type": "bytes32",
206
+ "internalType": "bytes32"
207
+ },
208
+ {
209
+ "name": "paymasterAndData",
210
+ "type": "bytes",
211
+ "internalType": "bytes"
212
+ },
213
+ {
214
+ "name": "signature",
215
+ "type": "bytes",
216
+ "internalType": "bytes"
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "name": "userOpHash",
222
+ "type": "bytes32",
223
+ "internalType": "bytes32"
224
+ },
225
+ {
226
+ "name": "missingAccountFunds",
227
+ "type": "uint256",
228
+ "internalType": "uint256"
229
+ }
230
+ ],
231
+ "outputs": [
232
+ {
233
+ "name": "validationData",
234
+ "type": "uint256",
235
+ "internalType": "uint256"
236
+ }
237
+ ],
238
+ "stateMutability": "nonpayable"
239
+ },
240
+ {
241
+ "type": "error",
242
+ "name": "ExecuteError",
243
+ "inputs": [
244
+ {
245
+ "name": "index",
246
+ "type": "uint256",
247
+ "internalType": "uint256"
248
+ },
249
+ {
250
+ "name": "error",
251
+ "type": "bytes",
252
+ "internalType": "bytes"
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "type": "error",
258
+ "name": "NotFromEntryPoint",
259
+ "inputs": [
260
+ {
261
+ "name": "msgSender",
262
+ "type": "address",
263
+ "internalType": "address"
264
+ },
265
+ {
266
+ "name": "entity",
267
+ "type": "address",
268
+ "internalType": "address"
269
+ },
270
+ {
271
+ "name": "entryPoint",
272
+ "type": "address",
273
+ "internalType": "address"
274
+ }
275
+ ]
276
+ }
277
+ ] as const;
@@ -0,0 +1,117 @@
1
+ /// Auto-generated by scripts/generate-sdk.mjs — do not edit manually.
2
+ export const hyperAuthFactoryAbi = [
3
+ {
4
+ "type": "constructor",
5
+ "inputs": [
6
+ {
7
+ "name": "entryPoint_",
8
+ "type": "address",
9
+ "internalType": "address"
10
+ }
11
+ ],
12
+ "stateMutability": "nonpayable"
13
+ },
14
+ {
15
+ "type": "function",
16
+ "name": "ACCOUNT_IMPLEMENTATION",
17
+ "inputs": [],
18
+ "outputs": [
19
+ {
20
+ "name": "",
21
+ "type": "address",
22
+ "internalType": "address"
23
+ }
24
+ ],
25
+ "stateMutability": "view"
26
+ },
27
+ {
28
+ "type": "function",
29
+ "name": "ENTRY_POINT",
30
+ "inputs": [],
31
+ "outputs": [
32
+ {
33
+ "name": "",
34
+ "type": "address",
35
+ "internalType": "address"
36
+ }
37
+ ],
38
+ "stateMutability": "view"
39
+ },
40
+ {
41
+ "type": "function",
42
+ "name": "createAccount",
43
+ "inputs": [
44
+ {
45
+ "name": "pubKeyX",
46
+ "type": "uint256",
47
+ "internalType": "uint256"
48
+ },
49
+ {
50
+ "name": "pubKeyY",
51
+ "type": "uint256",
52
+ "internalType": "uint256"
53
+ },
54
+ {
55
+ "name": "salt",
56
+ "type": "uint256",
57
+ "internalType": "uint256"
58
+ }
59
+ ],
60
+ "outputs": [
61
+ {
62
+ "name": "ret",
63
+ "type": "address",
64
+ "internalType": "address"
65
+ }
66
+ ],
67
+ "stateMutability": "nonpayable"
68
+ },
69
+ {
70
+ "type": "function",
71
+ "name": "getAddress",
72
+ "inputs": [
73
+ {
74
+ "name": "pubKeyX",
75
+ "type": "uint256",
76
+ "internalType": "uint256"
77
+ },
78
+ {
79
+ "name": "pubKeyY",
80
+ "type": "uint256",
81
+ "internalType": "uint256"
82
+ },
83
+ {
84
+ "name": "salt",
85
+ "type": "uint256",
86
+ "internalType": "uint256"
87
+ }
88
+ ],
89
+ "outputs": [
90
+ {
91
+ "name": "predicted",
92
+ "type": "address",
93
+ "internalType": "address"
94
+ }
95
+ ],
96
+ "stateMutability": "view"
97
+ },
98
+ {
99
+ "type": "event",
100
+ "name": "AccountCreated",
101
+ "inputs": [
102
+ {
103
+ "name": "account",
104
+ "type": "address",
105
+ "indexed": true,
106
+ "internalType": "address"
107
+ },
108
+ {
109
+ "name": "owner",
110
+ "type": "address",
111
+ "indexed": true,
112
+ "internalType": "address"
113
+ }
114
+ ],
115
+ "anonymous": false
116
+ }
117
+ ] as const;