kokio-sdk 1.1.0 → 2.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.
- package/README.md +68 -19
- package/dist/esm/abis/BeaconProxy.js +30 -46
- package/dist/esm/abis/DeviceWallet.js +546 -535
- package/dist/esm/abis/DeviceWalletFactory.js +537 -544
- package/dist/esm/abis/ESIMWallet.js +440 -299
- package/dist/esm/abis/ESIMWalletFactory.js +372 -289
- package/dist/esm/abis/LazyWalletRegistry.js +941 -421
- package/dist/esm/abis/P256Verifier.js +29 -29
- package/dist/esm/abis/ProtocolAdmin.js +1228 -0
- package/dist/esm/abis/Registry.js +1207 -466
- package/dist/esm/abis/RegistryHelper.js +414 -20
- package/dist/esm/abis/index.js +2 -1
- package/dist/esm/admin/config-admin.js +7 -0
- package/dist/esm/admin/interface/deviceWalletClass.js +27 -6
- package/dist/esm/admin/interface/deviceWalletFactoryClass.js +41 -19
- package/dist/esm/admin/interface/eSIMWalletClass.js +10 -1
- package/dist/esm/admin/interface/eSIMWalletFactoryClass.js +24 -2
- package/dist/esm/admin/interface/lazyWalletRegistryClass.js +83 -4
- package/dist/esm/admin/interface/protocolAdminClass.js +195 -0
- package/dist/esm/admin/interface/registryClass.js +93 -2
- package/dist/esm/config.js +42 -7
- package/dist/esm/interface/deviceWalletClass.js +45 -5
- package/dist/esm/interface/deviceWalletFactoryClass.js +20 -1
- package/dist/esm/interface/eSIMWalletClass.js +12 -3
- package/dist/esm/interface/registryClass.js +47 -0
- package/dist/esm/interface/smartAccountClass.js +2 -4
- package/dist/esm/logic/account-kit/createSmartAccount.js +156 -102
- package/dist/esm/logic/admin/deviceWallet.eoa.js +26 -15
- package/dist/esm/logic/admin/deviceWalletFactory.eoa.js +69 -48
- package/dist/esm/logic/admin/eSIMWallet.eoa.js +5 -7
- package/dist/esm/logic/admin/eSIMWalletFactory.eoa.js +79 -11
- package/dist/esm/logic/admin/lazyWalletRegistry.eoa.js +333 -22
- package/dist/esm/logic/admin/protocolAdmin.eoa.js +524 -0
- package/dist/esm/logic/admin/reads/deviceWallet.reads.js +82 -7
- package/dist/esm/logic/admin/reads/deviceWalletFactory.reads.js +82 -23
- package/dist/esm/logic/admin/reads/eSIMWallet.reads.js +50 -6
- package/dist/esm/logic/admin/reads/eSIMWalletFactory.reads.js +63 -5
- package/dist/esm/logic/admin/reads/lazyWalletRegistry.reads.js +171 -10
- package/dist/esm/logic/admin/reads/protocolAdmin.reads.js +154 -0
- package/dist/esm/logic/admin/reads/registry.reads.js +289 -9
- package/dist/esm/logic/admin/registry.eoa.js +276 -6
- package/dist/esm/logic/constants.js +53 -26
- package/dist/esm/logic/deviceWallet.js +224 -31
- package/dist/esm/logic/deviceWalletFactory.js +89 -0
- package/dist/esm/logic/eSIMWallet.js +113 -43
- package/dist/esm/logic/eSIMWalletFactory.js +8 -8
- package/dist/esm/logic/errors.js +94 -1
- package/dist/esm/logic/registry.js +236 -0
- package/dist/esm/logic/utils.js +2 -1
- package/dist/types/abis/BeaconProxy.d.ts +21 -33
- package/dist/types/abis/DeviceWallet.d.ts +372 -365
- package/dist/types/abis/DeviceWalletFactory.d.ts +438 -448
- package/dist/types/abis/ESIMWallet.d.ts +352 -245
- package/dist/types/abis/ESIMWalletFactory.d.ts +278 -216
- package/dist/types/abis/LazyWalletRegistry.d.ts +710 -317
- package/dist/types/abis/P256Verifier.d.ts +16 -16
- package/dist/types/abis/ProtocolAdmin.d.ts +947 -0
- package/dist/types/abis/Registry.d.ts +960 -393
- package/dist/types/abis/RegistryHelper.d.ts +317 -16
- package/dist/types/abis/index.d.ts +2 -1
- package/dist/types/admin/config-admin.d.ts +3 -0
- package/dist/types/admin/interface/deviceWalletClass.d.ts +10 -3
- package/dist/types/admin/interface/deviceWalletFactoryClass.d.ts +14 -7
- package/dist/types/admin/interface/eSIMWalletClass.d.ts +3 -0
- package/dist/types/admin/interface/eSIMWalletFactoryClass.d.ts +8 -1
- package/dist/types/admin/interface/lazyWalletRegistryClass.d.ts +38 -2
- package/dist/types/admin/interface/protocolAdminClass.d.ts +95 -0
- package/dist/types/admin/interface/registryClass.d.ts +30 -0
- package/dist/types/config.d.ts +26 -5
- package/dist/types/interface/P256VerifierClass.d.ts +3 -4
- package/dist/types/interface/deviceWalletClass.d.ts +22 -2569
- package/dist/types/interface/deviceWalletFactoryClass.d.ts +10 -2564
- package/dist/types/interface/eSIMWalletClass.d.ts +11 -8
- package/dist/types/interface/eSIMWalletFactoryClass.d.ts +5 -2565
- package/dist/types/interface/registryClass.d.ts +19 -0
- package/dist/types/interface/smartAccountClass.d.ts +6 -2568
- package/dist/types/logic/P256Verifier.d.ts +2 -2
- package/dist/types/logic/account-kit/createSmartAccount.d.ts +43 -19
- package/dist/types/logic/admin/deviceWallet.eoa.d.ts +15 -9
- package/dist/types/logic/admin/deviceWalletFactory.eoa.d.ts +34 -23
- package/dist/types/logic/admin/eSIMWallet.eoa.d.ts +0 -5
- package/dist/types/logic/admin/eSIMWalletFactory.eoa.d.ts +27 -9
- package/dist/types/logic/admin/lazyWalletRegistry.eoa.d.ts +102 -10
- package/dist/types/logic/admin/protocolAdmin.eoa.d.ts +163 -0
- package/dist/types/logic/admin/reads/deviceWallet.reads.d.ts +28 -8
- package/dist/types/logic/admin/reads/deviceWalletFactory.reads.d.ts +45 -14
- package/dist/types/logic/admin/reads/eSIMWallet.reads.d.ts +25 -6
- package/dist/types/logic/admin/reads/eSIMWalletFactory.reads.d.ts +21 -6
- package/dist/types/logic/admin/reads/lazyWalletRegistry.reads.d.ts +44 -11
- package/dist/types/logic/admin/reads/protocolAdmin.reads.d.ts +53 -0
- package/dist/types/logic/admin/reads/registry.reads.d.ts +105 -9
- package/dist/types/logic/admin/registry.eoa.d.ts +102 -5
- package/dist/types/logic/constants.d.ts +2 -0
- package/dist/types/logic/deviceWallet.d.ts +78 -6
- package/dist/types/logic/deviceWalletFactory.d.ts +32 -3
- package/dist/types/logic/eSIMWallet.d.ts +48 -7
- package/dist/types/logic/eSIMWalletFactory.d.ts +3 -3
- package/dist/types/logic/errors.d.ts +61 -1
- package/dist/types/logic/registry.d.ts +78 -0
- package/dist/types/types-export.d.ts +1 -1
- package/dist/types/types.d.ts +111 -1
- package/package.json +11 -13
- package/dist/esm/interface/lazyWalletRegistryClass.js +0 -10
- package/dist/esm/logic/lazyWalletRegistry.js +0 -19
- package/dist/types/interface/lazyWalletRegistryClass.d.ts +0 -6
- package/dist/types/logic/lazyWalletRegistry.d.ts +0 -2
|
@@ -1,913 +1,924 @@
|
|
|
1
1
|
const DeviceWallet = [
|
|
2
2
|
{
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
"internalType": "contract IEntryPoint",
|
|
6
|
-
"name": "anEntryPoint",
|
|
7
|
-
"type": "address"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"internalType": "contract P256Verifier",
|
|
11
|
-
"name": "_verifier",
|
|
12
|
-
"type": "address"
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"stateMutability": "nonpayable",
|
|
16
|
-
"type": "constructor"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"inputs": [],
|
|
20
|
-
"name": "FailedToTransfer",
|
|
21
|
-
"type": "error"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"inputs": [],
|
|
25
|
-
"name": "InvalidInitialization",
|
|
26
|
-
"type": "error"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"inputs": [],
|
|
30
|
-
"name": "NotInitializing",
|
|
31
|
-
"type": "error"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"inputs": [],
|
|
35
|
-
"name": "OnlyAssociatedESIMWallets",
|
|
36
|
-
"type": "error"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"inputs": [],
|
|
40
|
-
"name": "OnlyESIMWalletAdmin",
|
|
41
|
-
"type": "error"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"inputs": [],
|
|
45
|
-
"name": "OnlyESIMWalletAdminOrRegistry",
|
|
46
|
-
"type": "error"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"inputs": [],
|
|
50
|
-
"name": "OnlyRegistryOrDeviceWalletFactoryOrOwner",
|
|
51
|
-
"type": "error"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"inputs": [],
|
|
55
|
-
"name": "OnlySelfOrAssociatedESIMWallet",
|
|
56
|
-
"type": "error"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"inputs": [],
|
|
60
|
-
"name": "ReentrancyGuardReentrantCall",
|
|
61
|
-
"type": "error"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"anonymous": false,
|
|
65
|
-
"inputs": [
|
|
66
|
-
{
|
|
67
|
-
"indexed": true,
|
|
68
|
-
"internalType": "contract IEntryPoint",
|
|
69
|
-
"name": "entryPoint",
|
|
70
|
-
"type": "address"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"indexed": false,
|
|
74
|
-
"internalType": "bytes32[2]",
|
|
75
|
-
"name": "owner",
|
|
76
|
-
"type": "bytes32[2]"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"name": "Account4337Initialized",
|
|
80
|
-
"type": "event"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"anonymous": false,
|
|
84
|
-
"inputs": [
|
|
85
|
-
{
|
|
86
|
-
"indexed": false,
|
|
87
|
-
"internalType": "bytes32[2]",
|
|
88
|
-
"name": "newOwner",
|
|
89
|
-
"type": "bytes32[2]"
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"name": "AccountOwnershipTransferred",
|
|
93
|
-
"type": "event"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"anonymous": false,
|
|
97
|
-
"inputs": [
|
|
98
|
-
{
|
|
99
|
-
"indexed": true,
|
|
100
|
-
"internalType": "address",
|
|
101
|
-
"name": "_eSIMWalletAddress",
|
|
102
|
-
"type": "address"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"indexed": false,
|
|
106
|
-
"internalType": "bool",
|
|
107
|
-
"name": "_hasAccessToETH",
|
|
108
|
-
"type": "bool"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"indexed": true,
|
|
112
|
-
"internalType": "address",
|
|
113
|
-
"name": "_caller",
|
|
114
|
-
"type": "address"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"name": "ESIMWalletAdded",
|
|
118
|
-
"type": "event"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"anonymous": false,
|
|
122
|
-
"inputs": [
|
|
123
|
-
{
|
|
124
|
-
"indexed": true,
|
|
125
|
-
"internalType": "address",
|
|
126
|
-
"name": "_eSIMWalletAddress",
|
|
127
|
-
"type": "address"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"indexed": true,
|
|
131
|
-
"internalType": "address",
|
|
132
|
-
"name": "_deviceWalletAddress",
|
|
133
|
-
"type": "address"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"indexed": true,
|
|
137
|
-
"internalType": "address",
|
|
138
|
-
"name": "_caller",
|
|
139
|
-
"type": "address"
|
|
140
|
-
}
|
|
141
|
-
],
|
|
142
|
-
"name": "ESIMWalletRemoved",
|
|
143
|
-
"type": "event"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"anonymous": false,
|
|
147
|
-
"inputs": [
|
|
148
|
-
{
|
|
149
|
-
"indexed": true,
|
|
150
|
-
"internalType": "address",
|
|
151
|
-
"name": "_eSIMWalletAddress",
|
|
152
|
-
"type": "address"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"indexed": false,
|
|
156
|
-
"internalType": "bool",
|
|
157
|
-
"name": "_hasAccessToETH",
|
|
158
|
-
"type": "bool"
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
"name": "ETHAccessUpdated",
|
|
162
|
-
"type": "event"
|
|
3
|
+
"type": "receive",
|
|
4
|
+
"stateMutability": "payable"
|
|
163
5
|
},
|
|
164
6
|
{
|
|
165
|
-
"
|
|
166
|
-
"inputs": [
|
|
167
|
-
{
|
|
168
|
-
"indexed": false,
|
|
169
|
-
"internalType": "uint256",
|
|
170
|
-
"name": "_amount",
|
|
171
|
-
"type": "uint256"
|
|
172
|
-
}
|
|
173
|
-
],
|
|
174
|
-
"name": "ETHCalledBack",
|
|
175
|
-
"type": "event"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"anonymous": false,
|
|
179
|
-
"inputs": [
|
|
180
|
-
{
|
|
181
|
-
"indexed": true,
|
|
182
|
-
"internalType": "address",
|
|
183
|
-
"name": "_vault",
|
|
184
|
-
"type": "address"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"indexed": true,
|
|
188
|
-
"internalType": "address",
|
|
189
|
-
"name": "_eSIMWallet",
|
|
190
|
-
"type": "address"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"indexed": true,
|
|
194
|
-
"internalType": "uint256",
|
|
195
|
-
"name": "_amount",
|
|
196
|
-
"type": "uint256"
|
|
197
|
-
}
|
|
198
|
-
],
|
|
199
|
-
"name": "ETHPaidForDataBundle",
|
|
200
|
-
"type": "event"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"anonymous": false,
|
|
204
|
-
"inputs": [
|
|
205
|
-
{
|
|
206
|
-
"indexed": true,
|
|
207
|
-
"internalType": "address",
|
|
208
|
-
"name": "_eSIMWalletAddress",
|
|
209
|
-
"type": "address"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
"indexed": false,
|
|
213
|
-
"internalType": "uint256",
|
|
214
|
-
"name": "_amount",
|
|
215
|
-
"type": "uint256"
|
|
216
|
-
}
|
|
217
|
-
],
|
|
218
|
-
"name": "ETHSent",
|
|
219
|
-
"type": "event"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"anonymous": false,
|
|
223
|
-
"inputs": [
|
|
224
|
-
{
|
|
225
|
-
"indexed": false,
|
|
226
|
-
"internalType": "uint64",
|
|
227
|
-
"name": "version",
|
|
228
|
-
"type": "uint64"
|
|
229
|
-
}
|
|
230
|
-
],
|
|
231
|
-
"name": "Initialized",
|
|
232
|
-
"type": "event"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"anonymous": false,
|
|
236
|
-
"inputs": [],
|
|
237
|
-
"name": "NoETHToCallback",
|
|
238
|
-
"type": "event"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"stateMutability": "payable",
|
|
242
|
-
"type": "fallback"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"inputs": [],
|
|
7
|
+
"type": "function",
|
|
246
8
|
"name": "addDeposit",
|
|
9
|
+
"inputs": [],
|
|
247
10
|
"outputs": [],
|
|
248
|
-
"stateMutability": "payable"
|
|
249
|
-
"type": "function"
|
|
11
|
+
"stateMutability": "payable"
|
|
250
12
|
},
|
|
251
13
|
{
|
|
14
|
+
"type": "function",
|
|
15
|
+
"name": "addESIMWallet",
|
|
252
16
|
"inputs": [
|
|
253
17
|
{
|
|
254
|
-
"internalType": "address",
|
|
255
18
|
"name": "_eSIMWalletAddress",
|
|
256
|
-
"type": "address"
|
|
19
|
+
"type": "address",
|
|
20
|
+
"internalType": "address"
|
|
257
21
|
},
|
|
258
22
|
{
|
|
259
|
-
"internalType": "bool",
|
|
260
23
|
"name": "_hasAccessToETH",
|
|
261
|
-
"type": "bool"
|
|
24
|
+
"type": "bool",
|
|
25
|
+
"internalType": "bool"
|
|
262
26
|
}
|
|
263
27
|
],
|
|
264
|
-
"name": "addESIMWallet",
|
|
265
28
|
"outputs": [],
|
|
266
|
-
"stateMutability": "nonpayable"
|
|
267
|
-
"type": "function"
|
|
29
|
+
"stateMutability": "nonpayable"
|
|
268
30
|
},
|
|
269
31
|
{
|
|
32
|
+
"type": "function",
|
|
33
|
+
"name": "canPullETH",
|
|
270
34
|
"inputs": [
|
|
271
35
|
{
|
|
272
|
-
"internalType": "address",
|
|
273
36
|
"name": "eSIMWalletAddress",
|
|
274
|
-
"type": "address"
|
|
37
|
+
"type": "address",
|
|
38
|
+
"internalType": "address"
|
|
275
39
|
}
|
|
276
40
|
],
|
|
277
|
-
"name": "canPullETH",
|
|
278
41
|
"outputs": [
|
|
279
42
|
{
|
|
280
|
-
"internalType": "bool",
|
|
281
43
|
"name": "isAllowedToPullETH",
|
|
282
|
-
"type": "bool"
|
|
44
|
+
"type": "bool",
|
|
45
|
+
"internalType": "bool"
|
|
283
46
|
}
|
|
284
47
|
],
|
|
285
|
-
"stateMutability": "view"
|
|
286
|
-
"type": "function"
|
|
48
|
+
"stateMutability": "view"
|
|
287
49
|
},
|
|
288
50
|
{
|
|
51
|
+
"type": "function",
|
|
52
|
+
"name": "deployESIMWallet",
|
|
289
53
|
"inputs": [
|
|
290
54
|
{
|
|
291
|
-
"internalType": "bool",
|
|
292
55
|
"name": "_hasAccessToETH",
|
|
293
|
-
"type": "bool"
|
|
56
|
+
"type": "bool",
|
|
57
|
+
"internalType": "bool"
|
|
294
58
|
},
|
|
295
59
|
{
|
|
296
|
-
"internalType": "uint256",
|
|
297
60
|
"name": "_salt",
|
|
298
|
-
"type": "uint256"
|
|
61
|
+
"type": "uint256",
|
|
62
|
+
"internalType": "uint256"
|
|
299
63
|
}
|
|
300
64
|
],
|
|
301
|
-
"name": "deployESIMWallet",
|
|
302
65
|
"outputs": [
|
|
303
66
|
{
|
|
304
|
-
"internalType": "address",
|
|
305
67
|
"name": "",
|
|
306
|
-
"type": "address"
|
|
68
|
+
"type": "address",
|
|
69
|
+
"internalType": "address"
|
|
307
70
|
}
|
|
308
71
|
],
|
|
309
|
-
"stateMutability": "nonpayable"
|
|
310
|
-
"type": "function"
|
|
72
|
+
"stateMutability": "nonpayable"
|
|
311
73
|
},
|
|
312
74
|
{
|
|
313
|
-
"
|
|
75
|
+
"type": "function",
|
|
314
76
|
"name": "deviceUniqueIdentifier",
|
|
77
|
+
"inputs": [],
|
|
315
78
|
"outputs": [
|
|
316
79
|
{
|
|
317
|
-
"internalType": "string",
|
|
318
80
|
"name": "",
|
|
319
|
-
"type": "string"
|
|
81
|
+
"type": "string",
|
|
82
|
+
"internalType": "string"
|
|
320
83
|
}
|
|
321
84
|
],
|
|
322
|
-
"stateMutability": "view"
|
|
323
|
-
"type": "function"
|
|
85
|
+
"stateMutability": "view"
|
|
324
86
|
},
|
|
325
87
|
{
|
|
326
|
-
"
|
|
88
|
+
"type": "function",
|
|
327
89
|
"name": "eSIMWalletFactory",
|
|
90
|
+
"inputs": [],
|
|
328
91
|
"outputs": [
|
|
329
92
|
{
|
|
330
|
-
"internalType": "contract ESIMWalletFactory",
|
|
331
93
|
"name": "",
|
|
332
|
-
"type": "address"
|
|
94
|
+
"type": "address",
|
|
95
|
+
"internalType": "contract ESIMWalletFactory"
|
|
333
96
|
}
|
|
334
97
|
],
|
|
335
|
-
"stateMutability": "view"
|
|
336
|
-
"type": "function"
|
|
98
|
+
"stateMutability": "view"
|
|
337
99
|
},
|
|
338
100
|
{
|
|
339
|
-
"
|
|
101
|
+
"type": "function",
|
|
340
102
|
"name": "entryPoint",
|
|
103
|
+
"inputs": [],
|
|
341
104
|
"outputs": [
|
|
342
105
|
{
|
|
343
|
-
"internalType": "contract IEntryPoint",
|
|
344
106
|
"name": "",
|
|
345
|
-
"type": "address"
|
|
107
|
+
"type": "address",
|
|
108
|
+
"internalType": "contract IEntryPoint"
|
|
346
109
|
}
|
|
347
110
|
],
|
|
348
|
-
"stateMutability": "view"
|
|
349
|
-
"type": "function"
|
|
111
|
+
"stateMutability": "view"
|
|
350
112
|
},
|
|
351
113
|
{
|
|
114
|
+
"type": "function",
|
|
115
|
+
"name": "execute",
|
|
352
116
|
"inputs": [
|
|
353
117
|
{
|
|
118
|
+
"name": "call",
|
|
119
|
+
"type": "tuple",
|
|
120
|
+
"internalType": "struct Call",
|
|
354
121
|
"components": [
|
|
355
122
|
{
|
|
356
|
-
"internalType": "address",
|
|
357
123
|
"name": "dest",
|
|
358
|
-
"type": "address"
|
|
124
|
+
"type": "address",
|
|
125
|
+
"internalType": "address"
|
|
359
126
|
},
|
|
360
127
|
{
|
|
361
|
-
"internalType": "uint256",
|
|
362
128
|
"name": "value",
|
|
363
|
-
"type": "uint256"
|
|
129
|
+
"type": "uint256",
|
|
130
|
+
"internalType": "uint256"
|
|
364
131
|
},
|
|
365
132
|
{
|
|
366
|
-
"internalType": "bytes",
|
|
367
133
|
"name": "data",
|
|
368
|
-
"type": "bytes"
|
|
134
|
+
"type": "bytes",
|
|
135
|
+
"internalType": "bytes"
|
|
369
136
|
}
|
|
370
|
-
]
|
|
371
|
-
"internalType": "struct Call",
|
|
372
|
-
"name": "call",
|
|
373
|
-
"type": "tuple"
|
|
137
|
+
]
|
|
374
138
|
}
|
|
375
139
|
],
|
|
376
|
-
"name": "execute",
|
|
377
140
|
"outputs": [],
|
|
378
|
-
"stateMutability": "nonpayable"
|
|
379
|
-
"type": "function"
|
|
141
|
+
"stateMutability": "nonpayable"
|
|
380
142
|
},
|
|
381
143
|
{
|
|
144
|
+
"type": "function",
|
|
145
|
+
"name": "executeBatch",
|
|
382
146
|
"inputs": [
|
|
383
147
|
{
|
|
148
|
+
"name": "calls",
|
|
149
|
+
"type": "tuple[]",
|
|
150
|
+
"internalType": "struct Call[]",
|
|
384
151
|
"components": [
|
|
385
152
|
{
|
|
386
|
-
"internalType": "address",
|
|
387
153
|
"name": "dest",
|
|
388
|
-
"type": "address"
|
|
154
|
+
"type": "address",
|
|
155
|
+
"internalType": "address"
|
|
389
156
|
},
|
|
390
157
|
{
|
|
391
|
-
"internalType": "uint256",
|
|
392
158
|
"name": "value",
|
|
393
|
-
"type": "uint256"
|
|
159
|
+
"type": "uint256",
|
|
160
|
+
"internalType": "uint256"
|
|
394
161
|
},
|
|
395
162
|
{
|
|
396
|
-
"internalType": "bytes",
|
|
397
163
|
"name": "data",
|
|
398
|
-
"type": "bytes"
|
|
164
|
+
"type": "bytes",
|
|
165
|
+
"internalType": "bytes"
|
|
399
166
|
}
|
|
400
|
-
]
|
|
401
|
-
"internalType": "struct Call[]",
|
|
402
|
-
"name": "calls",
|
|
403
|
-
"type": "tuple[]"
|
|
167
|
+
]
|
|
404
168
|
}
|
|
405
169
|
],
|
|
406
|
-
"name": "executeBatch",
|
|
407
170
|
"outputs": [],
|
|
408
|
-
"stateMutability": "nonpayable"
|
|
409
|
-
"type": "function"
|
|
171
|
+
"stateMutability": "nonpayable"
|
|
410
172
|
},
|
|
411
173
|
{
|
|
412
|
-
"
|
|
174
|
+
"type": "function",
|
|
413
175
|
"name": "getDeposit",
|
|
176
|
+
"inputs": [],
|
|
414
177
|
"outputs": [
|
|
415
178
|
{
|
|
416
|
-
"internalType": "uint256",
|
|
417
179
|
"name": "",
|
|
418
|
-
"type": "uint256"
|
|
180
|
+
"type": "uint256",
|
|
181
|
+
"internalType": "uint256"
|
|
419
182
|
}
|
|
420
183
|
],
|
|
421
|
-
"stateMutability": "view"
|
|
422
|
-
"type": "function"
|
|
184
|
+
"stateMutability": "view"
|
|
423
185
|
},
|
|
424
186
|
{
|
|
425
|
-
"
|
|
187
|
+
"type": "function",
|
|
426
188
|
"name": "getVaultAddress",
|
|
189
|
+
"inputs": [],
|
|
427
190
|
"outputs": [
|
|
428
191
|
{
|
|
429
|
-
"internalType": "address",
|
|
430
192
|
"name": "",
|
|
431
|
-
"type": "address"
|
|
193
|
+
"type": "address",
|
|
194
|
+
"internalType": "address"
|
|
432
195
|
}
|
|
433
196
|
],
|
|
434
|
-
"stateMutability": "view"
|
|
435
|
-
"type": "function"
|
|
197
|
+
"stateMutability": "view"
|
|
436
198
|
},
|
|
437
199
|
{
|
|
200
|
+
"type": "function",
|
|
201
|
+
"name": "init",
|
|
438
202
|
"inputs": [
|
|
439
203
|
{
|
|
440
|
-
"internalType": "address",
|
|
441
204
|
"name": "_registry",
|
|
442
|
-
"type": "address"
|
|
205
|
+
"type": "address",
|
|
206
|
+
"internalType": "address"
|
|
443
207
|
},
|
|
444
208
|
{
|
|
445
|
-
"internalType": "bytes32[2]",
|
|
446
209
|
"name": "_deviceWalletOwnerKey",
|
|
447
|
-
"type": "bytes32[2]"
|
|
210
|
+
"type": "bytes32[2]",
|
|
211
|
+
"internalType": "bytes32[2]"
|
|
448
212
|
},
|
|
449
213
|
{
|
|
450
|
-
"internalType": "string",
|
|
451
214
|
"name": "_deviceUniqueIdentifier",
|
|
452
|
-
"type": "string"
|
|
215
|
+
"type": "string",
|
|
216
|
+
"internalType": "string"
|
|
453
217
|
},
|
|
454
218
|
{
|
|
455
|
-
"internalType": "address",
|
|
456
219
|
"name": "_eSIMWalletFactory",
|
|
457
|
-
"type": "address"
|
|
220
|
+
"type": "address",
|
|
221
|
+
"internalType": "address"
|
|
458
222
|
}
|
|
459
223
|
],
|
|
460
|
-
"name": "init",
|
|
461
|
-
"outputs": [],
|
|
462
|
-
"stateMutability": "nonpayable",
|
|
463
|
-
"type": "function"
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"inputs": [
|
|
467
|
-
{
|
|
468
|
-
"internalType": "bytes32[2]",
|
|
469
|
-
"name": "anOwner",
|
|
470
|
-
"type": "bytes32[2]"
|
|
471
|
-
}
|
|
472
|
-
],
|
|
473
|
-
"name": "initialize",
|
|
474
224
|
"outputs": [],
|
|
475
|
-
"stateMutability": "nonpayable"
|
|
476
|
-
"type": "function"
|
|
225
|
+
"stateMutability": "nonpayable"
|
|
477
226
|
},
|
|
478
227
|
{
|
|
228
|
+
"type": "function",
|
|
229
|
+
"name": "isValidESIMWallet",
|
|
479
230
|
"inputs": [
|
|
480
231
|
{
|
|
481
|
-
"internalType": "address",
|
|
482
232
|
"name": "eSIMWalletAddress",
|
|
483
|
-
"type": "address"
|
|
233
|
+
"type": "address",
|
|
234
|
+
"internalType": "address"
|
|
484
235
|
}
|
|
485
236
|
],
|
|
486
|
-
"name": "isValidESIMWallet",
|
|
487
237
|
"outputs": [
|
|
488
238
|
{
|
|
489
|
-
"internalType": "bool",
|
|
490
239
|
"name": "isValid",
|
|
491
|
-
"type": "bool"
|
|
240
|
+
"type": "bool",
|
|
241
|
+
"internalType": "bool"
|
|
492
242
|
}
|
|
493
243
|
],
|
|
494
|
-
"stateMutability": "view"
|
|
495
|
-
"type": "function"
|
|
244
|
+
"stateMutability": "view"
|
|
496
245
|
},
|
|
497
246
|
{
|
|
247
|
+
"type": "function",
|
|
248
|
+
"name": "isValidSignature",
|
|
498
249
|
"inputs": [
|
|
499
250
|
{
|
|
500
|
-
"internalType": "bytes32",
|
|
501
251
|
"name": "_messageHash",
|
|
502
|
-
"type": "bytes32"
|
|
252
|
+
"type": "bytes32",
|
|
253
|
+
"internalType": "bytes32"
|
|
503
254
|
},
|
|
504
255
|
{
|
|
505
|
-
"internalType": "bytes",
|
|
506
256
|
"name": "_signature",
|
|
507
|
-
"type": "bytes"
|
|
257
|
+
"type": "bytes",
|
|
258
|
+
"internalType": "bytes"
|
|
508
259
|
}
|
|
509
260
|
],
|
|
510
|
-
"name": "isValidSignature",
|
|
511
261
|
"outputs": [
|
|
512
262
|
{
|
|
513
|
-
"internalType": "bytes4",
|
|
514
263
|
"name": "magicValue",
|
|
515
|
-
"type": "bytes4"
|
|
264
|
+
"type": "bytes4",
|
|
265
|
+
"internalType": "bytes4"
|
|
516
266
|
}
|
|
517
267
|
],
|
|
518
|
-
"stateMutability": "view"
|
|
519
|
-
"type": "function"
|
|
268
|
+
"stateMutability": "view"
|
|
520
269
|
},
|
|
521
270
|
{
|
|
271
|
+
"type": "function",
|
|
272
|
+
"name": "onERC1155BatchReceived",
|
|
522
273
|
"inputs": [
|
|
523
274
|
{
|
|
524
|
-
"internalType": "address",
|
|
525
275
|
"name": "",
|
|
526
|
-
"type": "address"
|
|
276
|
+
"type": "address",
|
|
277
|
+
"internalType": "address"
|
|
527
278
|
},
|
|
528
279
|
{
|
|
529
|
-
"internalType": "address",
|
|
530
280
|
"name": "",
|
|
531
|
-
"type": "address"
|
|
281
|
+
"type": "address",
|
|
282
|
+
"internalType": "address"
|
|
532
283
|
},
|
|
533
284
|
{
|
|
534
|
-
"internalType": "uint256[]",
|
|
535
285
|
"name": "",
|
|
536
|
-
"type": "uint256[]"
|
|
286
|
+
"type": "uint256[]",
|
|
287
|
+
"internalType": "uint256[]"
|
|
537
288
|
},
|
|
538
289
|
{
|
|
539
|
-
"internalType": "uint256[]",
|
|
540
290
|
"name": "",
|
|
541
|
-
"type": "uint256[]"
|
|
291
|
+
"type": "uint256[]",
|
|
292
|
+
"internalType": "uint256[]"
|
|
542
293
|
},
|
|
543
294
|
{
|
|
544
|
-
"internalType": "bytes",
|
|
545
295
|
"name": "",
|
|
546
|
-
"type": "bytes"
|
|
296
|
+
"type": "bytes",
|
|
297
|
+
"internalType": "bytes"
|
|
547
298
|
}
|
|
548
299
|
],
|
|
549
|
-
"name": "onERC1155BatchReceived",
|
|
550
300
|
"outputs": [
|
|
551
301
|
{
|
|
552
|
-
"internalType": "bytes4",
|
|
553
302
|
"name": "",
|
|
554
|
-
"type": "bytes4"
|
|
303
|
+
"type": "bytes4",
|
|
304
|
+
"internalType": "bytes4"
|
|
555
305
|
}
|
|
556
306
|
],
|
|
557
|
-
"stateMutability": "pure"
|
|
558
|
-
"type": "function"
|
|
307
|
+
"stateMutability": "pure"
|
|
559
308
|
},
|
|
560
309
|
{
|
|
310
|
+
"type": "function",
|
|
311
|
+
"name": "onERC1155Received",
|
|
561
312
|
"inputs": [
|
|
562
313
|
{
|
|
563
|
-
"internalType": "address",
|
|
564
314
|
"name": "",
|
|
565
|
-
"type": "address"
|
|
315
|
+
"type": "address",
|
|
316
|
+
"internalType": "address"
|
|
566
317
|
},
|
|
567
318
|
{
|
|
568
|
-
"internalType": "address",
|
|
569
319
|
"name": "",
|
|
570
|
-
"type": "address"
|
|
320
|
+
"type": "address",
|
|
321
|
+
"internalType": "address"
|
|
571
322
|
},
|
|
572
323
|
{
|
|
573
|
-
"internalType": "uint256",
|
|
574
324
|
"name": "",
|
|
575
|
-
"type": "uint256"
|
|
325
|
+
"type": "uint256",
|
|
326
|
+
"internalType": "uint256"
|
|
576
327
|
},
|
|
577
328
|
{
|
|
578
|
-
"internalType": "uint256",
|
|
579
329
|
"name": "",
|
|
580
|
-
"type": "uint256"
|
|
330
|
+
"type": "uint256",
|
|
331
|
+
"internalType": "uint256"
|
|
581
332
|
},
|
|
582
333
|
{
|
|
583
|
-
"internalType": "bytes",
|
|
584
334
|
"name": "",
|
|
585
|
-
"type": "bytes"
|
|
335
|
+
"type": "bytes",
|
|
336
|
+
"internalType": "bytes"
|
|
586
337
|
}
|
|
587
338
|
],
|
|
588
|
-
"name": "onERC1155Received",
|
|
589
339
|
"outputs": [
|
|
590
340
|
{
|
|
591
|
-
"internalType": "bytes4",
|
|
592
341
|
"name": "",
|
|
593
|
-
"type": "bytes4"
|
|
342
|
+
"type": "bytes4",
|
|
343
|
+
"internalType": "bytes4"
|
|
594
344
|
}
|
|
595
345
|
],
|
|
596
|
-
"stateMutability": "pure"
|
|
597
|
-
"type": "function"
|
|
346
|
+
"stateMutability": "pure"
|
|
598
347
|
},
|
|
599
348
|
{
|
|
349
|
+
"type": "function",
|
|
350
|
+
"name": "onERC721Received",
|
|
600
351
|
"inputs": [
|
|
601
352
|
{
|
|
602
|
-
"internalType": "address",
|
|
603
353
|
"name": "",
|
|
604
|
-
"type": "address"
|
|
354
|
+
"type": "address",
|
|
355
|
+
"internalType": "address"
|
|
605
356
|
},
|
|
606
357
|
{
|
|
607
|
-
"internalType": "address",
|
|
608
358
|
"name": "",
|
|
609
|
-
"type": "address"
|
|
359
|
+
"type": "address",
|
|
360
|
+
"internalType": "address"
|
|
610
361
|
},
|
|
611
362
|
{
|
|
612
|
-
"internalType": "uint256",
|
|
613
363
|
"name": "",
|
|
614
|
-
"type": "uint256"
|
|
364
|
+
"type": "uint256",
|
|
365
|
+
"internalType": "uint256"
|
|
615
366
|
},
|
|
616
367
|
{
|
|
617
|
-
"internalType": "bytes",
|
|
618
368
|
"name": "",
|
|
619
|
-
"type": "bytes"
|
|
369
|
+
"type": "bytes",
|
|
370
|
+
"internalType": "bytes"
|
|
620
371
|
}
|
|
621
372
|
],
|
|
622
|
-
"name": "onERC721Received",
|
|
623
373
|
"outputs": [
|
|
624
374
|
{
|
|
625
|
-
"internalType": "bytes4",
|
|
626
375
|
"name": "",
|
|
627
|
-
"type": "bytes4"
|
|
376
|
+
"type": "bytes4",
|
|
377
|
+
"internalType": "bytes4"
|
|
628
378
|
}
|
|
629
379
|
],
|
|
630
|
-
"stateMutability": "pure"
|
|
631
|
-
"type": "function"
|
|
380
|
+
"stateMutability": "pure"
|
|
632
381
|
},
|
|
633
382
|
{
|
|
634
|
-
"
|
|
635
|
-
{
|
|
636
|
-
"internalType": "uint256",
|
|
637
|
-
"name": "",
|
|
638
|
-
"type": "uint256"
|
|
639
|
-
}
|
|
640
|
-
],
|
|
383
|
+
"type": "function",
|
|
641
384
|
"name": "owner",
|
|
642
|
-
"outputs": [
|
|
643
|
-
{
|
|
644
|
-
"internalType": "bytes32",
|
|
645
|
-
"name": "",
|
|
646
|
-
"type": "bytes32"
|
|
647
|
-
}
|
|
648
|
-
],
|
|
649
|
-
"stateMutability": "view",
|
|
650
|
-
"type": "function"
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
385
|
"inputs": [
|
|
654
386
|
{
|
|
655
|
-
"
|
|
656
|
-
"
|
|
657
|
-
"
|
|
387
|
+
"name": "",
|
|
388
|
+
"type": "uint256",
|
|
389
|
+
"internalType": "uint256"
|
|
658
390
|
}
|
|
659
391
|
],
|
|
660
|
-
"name": "payETHForDataBundles",
|
|
661
392
|
"outputs": [
|
|
662
393
|
{
|
|
663
|
-
"internalType": "uint256",
|
|
664
394
|
"name": "",
|
|
665
|
-
"type": "
|
|
395
|
+
"type": "bytes32",
|
|
396
|
+
"internalType": "bytes32"
|
|
666
397
|
}
|
|
667
398
|
],
|
|
668
|
-
"stateMutability": "
|
|
669
|
-
"type": "function"
|
|
399
|
+
"stateMutability": "view"
|
|
670
400
|
},
|
|
671
401
|
{
|
|
402
|
+
"type": "function",
|
|
403
|
+
"name": "pullETH",
|
|
672
404
|
"inputs": [
|
|
673
405
|
{
|
|
674
|
-
"internalType": "uint256",
|
|
675
406
|
"name": "_amount",
|
|
676
|
-
"type": "uint256"
|
|
407
|
+
"type": "uint256",
|
|
408
|
+
"internalType": "uint256"
|
|
677
409
|
}
|
|
678
410
|
],
|
|
679
|
-
"name": "pullETH",
|
|
680
411
|
"outputs": [
|
|
681
412
|
{
|
|
682
|
-
"internalType": "uint256",
|
|
683
413
|
"name": "",
|
|
684
|
-
"type": "uint256"
|
|
414
|
+
"type": "uint256",
|
|
415
|
+
"internalType": "uint256"
|
|
685
416
|
}
|
|
686
417
|
],
|
|
687
|
-
"stateMutability": "nonpayable"
|
|
688
|
-
"type": "function"
|
|
418
|
+
"stateMutability": "nonpayable"
|
|
689
419
|
},
|
|
690
420
|
{
|
|
691
|
-
"
|
|
421
|
+
"type": "function",
|
|
692
422
|
"name": "registry",
|
|
423
|
+
"inputs": [],
|
|
693
424
|
"outputs": [
|
|
694
425
|
{
|
|
695
|
-
"internalType": "contract Registry",
|
|
696
426
|
"name": "",
|
|
697
|
-
"type": "address"
|
|
427
|
+
"type": "address",
|
|
428
|
+
"internalType": "contract Registry"
|
|
698
429
|
}
|
|
699
430
|
],
|
|
700
|
-
"stateMutability": "view"
|
|
701
|
-
"type": "function"
|
|
431
|
+
"stateMutability": "view"
|
|
702
432
|
},
|
|
703
433
|
{
|
|
434
|
+
"type": "function",
|
|
435
|
+
"name": "removeESIMWallet",
|
|
704
436
|
"inputs": [
|
|
705
437
|
{
|
|
706
|
-
"internalType": "address",
|
|
707
438
|
"name": "_eSIMWalletAddress",
|
|
708
|
-
"type": "address"
|
|
439
|
+
"type": "address",
|
|
440
|
+
"internalType": "address"
|
|
709
441
|
},
|
|
710
442
|
{
|
|
711
|
-
"internalType": "bool",
|
|
712
443
|
"name": "_callBackETH",
|
|
713
|
-
"type": "bool"
|
|
444
|
+
"type": "bool",
|
|
445
|
+
"internalType": "bool"
|
|
714
446
|
}
|
|
715
447
|
],
|
|
716
|
-
"name": "removeESIMWallet",
|
|
717
448
|
"outputs": [],
|
|
718
|
-
"stateMutability": "nonpayable"
|
|
719
|
-
"type": "function"
|
|
720
|
-
},
|
|
721
|
-
{
|
|
722
|
-
"inputs": [
|
|
723
|
-
{
|
|
724
|
-
"internalType": "address",
|
|
725
|
-
"name": "_eSIMWalletAddress",
|
|
726
|
-
"type": "address"
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"internalType": "string",
|
|
730
|
-
"name": "_eSIMUniqueIdentifier",
|
|
731
|
-
"type": "string"
|
|
732
|
-
}
|
|
733
|
-
],
|
|
734
|
-
"name": "setESIMUniqueIdentifierForAnESIMWallet",
|
|
735
|
-
"outputs": [
|
|
736
|
-
{
|
|
737
|
-
"internalType": "string",
|
|
738
|
-
"name": "",
|
|
739
|
-
"type": "string"
|
|
740
|
-
}
|
|
741
|
-
],
|
|
742
|
-
"stateMutability": "nonpayable",
|
|
743
|
-
"type": "function"
|
|
449
|
+
"stateMutability": "nonpayable"
|
|
744
450
|
},
|
|
745
451
|
{
|
|
452
|
+
"type": "function",
|
|
453
|
+
"name": "supportsInterface",
|
|
746
454
|
"inputs": [
|
|
747
455
|
{
|
|
748
|
-
"internalType": "bytes4",
|
|
749
456
|
"name": "interfaceId",
|
|
750
|
-
"type": "bytes4"
|
|
457
|
+
"type": "bytes4",
|
|
458
|
+
"internalType": "bytes4"
|
|
751
459
|
}
|
|
752
460
|
],
|
|
753
|
-
"name": "supportsInterface",
|
|
754
461
|
"outputs": [
|
|
755
462
|
{
|
|
756
|
-
"internalType": "bool",
|
|
757
463
|
"name": "",
|
|
758
|
-
"type": "bool"
|
|
464
|
+
"type": "bool",
|
|
465
|
+
"internalType": "bool"
|
|
759
466
|
}
|
|
760
467
|
],
|
|
761
|
-
"stateMutability": "view"
|
|
762
|
-
"type": "function"
|
|
468
|
+
"stateMutability": "view"
|
|
763
469
|
},
|
|
764
470
|
{
|
|
471
|
+
"type": "function",
|
|
472
|
+
"name": "toggleAccessToETH",
|
|
765
473
|
"inputs": [
|
|
766
474
|
{
|
|
767
|
-
"internalType": "address",
|
|
768
475
|
"name": "_eSIMWalletAddress",
|
|
769
|
-
"type": "address"
|
|
476
|
+
"type": "address",
|
|
477
|
+
"internalType": "address"
|
|
770
478
|
},
|
|
771
479
|
{
|
|
772
|
-
"internalType": "bool",
|
|
773
480
|
"name": "_hasAccessToETH",
|
|
774
|
-
"type": "bool"
|
|
481
|
+
"type": "bool",
|
|
482
|
+
"internalType": "bool"
|
|
775
483
|
}
|
|
776
484
|
],
|
|
777
|
-
"name": "toggleAccessToETH",
|
|
778
485
|
"outputs": [],
|
|
779
|
-
"stateMutability": "nonpayable"
|
|
780
|
-
"type": "function"
|
|
486
|
+
"stateMutability": "nonpayable"
|
|
781
487
|
},
|
|
782
488
|
{
|
|
489
|
+
"type": "function",
|
|
490
|
+
"name": "transferOwnership",
|
|
783
491
|
"inputs": [
|
|
784
492
|
{
|
|
785
|
-
"internalType": "bytes32[2]",
|
|
786
493
|
"name": "newOwner",
|
|
787
|
-
"type": "bytes32[2]"
|
|
494
|
+
"type": "bytes32[2]",
|
|
495
|
+
"internalType": "bytes32[2]"
|
|
788
496
|
}
|
|
789
497
|
],
|
|
790
|
-
"name": "transferOwnership",
|
|
791
498
|
"outputs": [
|
|
792
499
|
{
|
|
793
|
-
"internalType": "bytes32[2]",
|
|
794
500
|
"name": "",
|
|
795
|
-
"type": "bytes32[2]"
|
|
501
|
+
"type": "bytes32[2]",
|
|
502
|
+
"internalType": "bytes32[2]"
|
|
796
503
|
}
|
|
797
504
|
],
|
|
798
|
-
"stateMutability": "nonpayable"
|
|
799
|
-
"type": "function"
|
|
505
|
+
"stateMutability": "nonpayable"
|
|
800
506
|
},
|
|
801
507
|
{
|
|
508
|
+
"type": "function",
|
|
509
|
+
"name": "validateUserOp",
|
|
802
510
|
"inputs": [
|
|
803
511
|
{
|
|
512
|
+
"name": "userOp",
|
|
513
|
+
"type": "tuple",
|
|
514
|
+
"internalType": "struct PackedUserOperation",
|
|
804
515
|
"components": [
|
|
805
516
|
{
|
|
806
|
-
"internalType": "address",
|
|
807
517
|
"name": "sender",
|
|
808
|
-
"type": "address"
|
|
518
|
+
"type": "address",
|
|
519
|
+
"internalType": "address"
|
|
809
520
|
},
|
|
810
521
|
{
|
|
811
|
-
"internalType": "uint256",
|
|
812
522
|
"name": "nonce",
|
|
813
|
-
"type": "uint256"
|
|
523
|
+
"type": "uint256",
|
|
524
|
+
"internalType": "uint256"
|
|
814
525
|
},
|
|
815
526
|
{
|
|
816
|
-
"internalType": "bytes",
|
|
817
527
|
"name": "initCode",
|
|
818
|
-
"type": "bytes"
|
|
528
|
+
"type": "bytes",
|
|
529
|
+
"internalType": "bytes"
|
|
819
530
|
},
|
|
820
531
|
{
|
|
821
|
-
"internalType": "bytes",
|
|
822
532
|
"name": "callData",
|
|
823
|
-
"type": "bytes"
|
|
533
|
+
"type": "bytes",
|
|
534
|
+
"internalType": "bytes"
|
|
824
535
|
},
|
|
825
536
|
{
|
|
826
|
-
"internalType": "bytes32",
|
|
827
537
|
"name": "accountGasLimits",
|
|
828
|
-
"type": "bytes32"
|
|
538
|
+
"type": "bytes32",
|
|
539
|
+
"internalType": "bytes32"
|
|
829
540
|
},
|
|
830
541
|
{
|
|
831
|
-
"internalType": "uint256",
|
|
832
542
|
"name": "preVerificationGas",
|
|
833
|
-
"type": "uint256"
|
|
543
|
+
"type": "uint256",
|
|
544
|
+
"internalType": "uint256"
|
|
834
545
|
},
|
|
835
546
|
{
|
|
836
|
-
"internalType": "bytes32",
|
|
837
547
|
"name": "gasFees",
|
|
838
|
-
"type": "bytes32"
|
|
548
|
+
"type": "bytes32",
|
|
549
|
+
"internalType": "bytes32"
|
|
839
550
|
},
|
|
840
551
|
{
|
|
841
|
-
"internalType": "bytes",
|
|
842
552
|
"name": "paymasterAndData",
|
|
843
|
-
"type": "bytes"
|
|
553
|
+
"type": "bytes",
|
|
554
|
+
"internalType": "bytes"
|
|
844
555
|
},
|
|
845
556
|
{
|
|
846
|
-
"internalType": "bytes",
|
|
847
557
|
"name": "signature",
|
|
848
|
-
"type": "bytes"
|
|
558
|
+
"type": "bytes",
|
|
559
|
+
"internalType": "bytes"
|
|
849
560
|
}
|
|
850
|
-
]
|
|
851
|
-
"internalType": "struct PackedUserOperation",
|
|
852
|
-
"name": "userOp",
|
|
853
|
-
"type": "tuple"
|
|
561
|
+
]
|
|
854
562
|
},
|
|
855
563
|
{
|
|
856
|
-
"internalType": "bytes32",
|
|
857
564
|
"name": "userOpHash",
|
|
858
|
-
"type": "bytes32"
|
|
565
|
+
"type": "bytes32",
|
|
566
|
+
"internalType": "bytes32"
|
|
859
567
|
},
|
|
860
568
|
{
|
|
861
|
-
"internalType": "uint256",
|
|
862
569
|
"name": "missingAccountFunds",
|
|
863
|
-
"type": "uint256"
|
|
570
|
+
"type": "uint256",
|
|
571
|
+
"internalType": "uint256"
|
|
864
572
|
}
|
|
865
573
|
],
|
|
866
|
-
"name": "validateUserOp",
|
|
867
574
|
"outputs": [
|
|
868
575
|
{
|
|
869
|
-
"internalType": "uint256",
|
|
870
576
|
"name": "validationData",
|
|
871
|
-
"type": "uint256"
|
|
577
|
+
"type": "uint256",
|
|
578
|
+
"internalType": "uint256"
|
|
872
579
|
}
|
|
873
580
|
],
|
|
874
|
-
"stateMutability": "nonpayable"
|
|
875
|
-
"type": "function"
|
|
581
|
+
"stateMutability": "nonpayable"
|
|
876
582
|
},
|
|
877
583
|
{
|
|
878
|
-
"
|
|
584
|
+
"type": "function",
|
|
879
585
|
"name": "verifier",
|
|
586
|
+
"inputs": [],
|
|
880
587
|
"outputs": [
|
|
881
588
|
{
|
|
882
|
-
"internalType": "contract P256Verifier",
|
|
883
589
|
"name": "",
|
|
884
|
-
"type": "address"
|
|
590
|
+
"type": "address",
|
|
591
|
+
"internalType": "contract P256Verifier"
|
|
885
592
|
}
|
|
886
593
|
],
|
|
887
|
-
"stateMutability": "view"
|
|
888
|
-
"type": "function"
|
|
594
|
+
"stateMutability": "view"
|
|
889
595
|
},
|
|
890
596
|
{
|
|
597
|
+
"type": "function",
|
|
598
|
+
"name": "withdrawDepositTo",
|
|
891
599
|
"inputs": [
|
|
892
600
|
{
|
|
893
|
-
"internalType": "address payable",
|
|
894
601
|
"name": "withdrawAddress",
|
|
895
|
-
"type": "address"
|
|
602
|
+
"type": "address",
|
|
603
|
+
"internalType": "address payable"
|
|
896
604
|
},
|
|
897
605
|
{
|
|
898
|
-
"internalType": "uint256",
|
|
899
606
|
"name": "amount",
|
|
900
|
-
"type": "uint256"
|
|
607
|
+
"type": "uint256",
|
|
608
|
+
"internalType": "uint256"
|
|
901
609
|
}
|
|
902
610
|
],
|
|
903
|
-
"name": "withdrawDepositTo",
|
|
904
611
|
"outputs": [],
|
|
905
|
-
"stateMutability": "nonpayable"
|
|
906
|
-
|
|
612
|
+
"stateMutability": "nonpayable"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"type": "event",
|
|
616
|
+
"name": "Account4337Initialized",
|
|
617
|
+
"inputs": [
|
|
618
|
+
{
|
|
619
|
+
"name": "entryPoint",
|
|
620
|
+
"type": "address",
|
|
621
|
+
"indexed": true,
|
|
622
|
+
"internalType": "contract IEntryPoint"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"name": "owner",
|
|
626
|
+
"type": "bytes32[2]",
|
|
627
|
+
"indexed": false,
|
|
628
|
+
"internalType": "bytes32[2]"
|
|
629
|
+
}
|
|
630
|
+
],
|
|
631
|
+
"anonymous": false
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"type": "event",
|
|
635
|
+
"name": "AccountOwnershipTransferred",
|
|
636
|
+
"inputs": [
|
|
637
|
+
{
|
|
638
|
+
"name": "newOwner",
|
|
639
|
+
"type": "bytes32[2]",
|
|
640
|
+
"indexed": false,
|
|
641
|
+
"internalType": "bytes32[2]"
|
|
642
|
+
}
|
|
643
|
+
],
|
|
644
|
+
"anonymous": false
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"type": "event",
|
|
648
|
+
"name": "ESIMWalletAdded",
|
|
649
|
+
"inputs": [
|
|
650
|
+
{
|
|
651
|
+
"name": "_eSIMWalletAddress",
|
|
652
|
+
"type": "address",
|
|
653
|
+
"indexed": true,
|
|
654
|
+
"internalType": "address"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"name": "_hasAccessToETH",
|
|
658
|
+
"type": "bool",
|
|
659
|
+
"indexed": false,
|
|
660
|
+
"internalType": "bool"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"name": "_caller",
|
|
664
|
+
"type": "address",
|
|
665
|
+
"indexed": true,
|
|
666
|
+
"internalType": "address"
|
|
667
|
+
}
|
|
668
|
+
],
|
|
669
|
+
"anonymous": false
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"type": "event",
|
|
673
|
+
"name": "ESIMWalletRemoved",
|
|
674
|
+
"inputs": [
|
|
675
|
+
{
|
|
676
|
+
"name": "_eSIMWalletAddress",
|
|
677
|
+
"type": "address",
|
|
678
|
+
"indexed": true,
|
|
679
|
+
"internalType": "address"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "_deviceWalletAddress",
|
|
683
|
+
"type": "address",
|
|
684
|
+
"indexed": true,
|
|
685
|
+
"internalType": "address"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "_caller",
|
|
689
|
+
"type": "address",
|
|
690
|
+
"indexed": true,
|
|
691
|
+
"internalType": "address"
|
|
692
|
+
}
|
|
693
|
+
],
|
|
694
|
+
"anonymous": false
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"type": "event",
|
|
698
|
+
"name": "ETHAccessUpdated",
|
|
699
|
+
"inputs": [
|
|
700
|
+
{
|
|
701
|
+
"name": "_eSIMWalletAddress",
|
|
702
|
+
"type": "address",
|
|
703
|
+
"indexed": true,
|
|
704
|
+
"internalType": "address"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"name": "_hasAccessToETH",
|
|
708
|
+
"type": "bool",
|
|
709
|
+
"indexed": false,
|
|
710
|
+
"internalType": "bool"
|
|
711
|
+
}
|
|
712
|
+
],
|
|
713
|
+
"anonymous": false
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"type": "event",
|
|
717
|
+
"name": "ETHCalledBack",
|
|
718
|
+
"inputs": [
|
|
719
|
+
{
|
|
720
|
+
"name": "_amount",
|
|
721
|
+
"type": "uint256",
|
|
722
|
+
"indexed": false,
|
|
723
|
+
"internalType": "uint256"
|
|
724
|
+
}
|
|
725
|
+
],
|
|
726
|
+
"anonymous": false
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"type": "event",
|
|
730
|
+
"name": "ETHSent",
|
|
731
|
+
"inputs": [
|
|
732
|
+
{
|
|
733
|
+
"name": "_eSIMWalletAddress",
|
|
734
|
+
"type": "address",
|
|
735
|
+
"indexed": true,
|
|
736
|
+
"internalType": "address"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"name": "_amount",
|
|
740
|
+
"type": "uint256",
|
|
741
|
+
"indexed": false,
|
|
742
|
+
"internalType": "uint256"
|
|
743
|
+
}
|
|
744
|
+
],
|
|
745
|
+
"anonymous": false
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"type": "event",
|
|
749
|
+
"name": "Initialized",
|
|
750
|
+
"inputs": [
|
|
751
|
+
{
|
|
752
|
+
"name": "version",
|
|
753
|
+
"type": "uint64",
|
|
754
|
+
"indexed": false,
|
|
755
|
+
"internalType": "uint64"
|
|
756
|
+
}
|
|
757
|
+
],
|
|
758
|
+
"anonymous": false
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"type": "event",
|
|
762
|
+
"name": "NoETHToCallback",
|
|
763
|
+
"inputs": [],
|
|
764
|
+
"anonymous": false
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"type": "error",
|
|
768
|
+
"name": "ESIMWalletAlreadyAdded",
|
|
769
|
+
"inputs": [
|
|
770
|
+
{
|
|
771
|
+
"name": "eSIMWallet",
|
|
772
|
+
"type": "address",
|
|
773
|
+
"internalType": "address"
|
|
774
|
+
}
|
|
775
|
+
]
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"type": "error",
|
|
779
|
+
"name": "ESIMWalletNotOwnedByThisDeviceWallet",
|
|
780
|
+
"inputs": [
|
|
781
|
+
{
|
|
782
|
+
"name": "eSIMWallet",
|
|
783
|
+
"type": "address",
|
|
784
|
+
"internalType": "address"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"name": "eSIMWalletOwner",
|
|
788
|
+
"type": "address",
|
|
789
|
+
"internalType": "address"
|
|
790
|
+
}
|
|
791
|
+
]
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"type": "error",
|
|
795
|
+
"name": "ETHAccessNotGrantableAtBind",
|
|
796
|
+
"inputs": [
|
|
797
|
+
{
|
|
798
|
+
"name": "eSIMWallet",
|
|
799
|
+
"type": "address",
|
|
800
|
+
"internalType": "address"
|
|
801
|
+
}
|
|
802
|
+
]
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"type": "error",
|
|
806
|
+
"name": "ETHAccessRevoked",
|
|
807
|
+
"inputs": [
|
|
808
|
+
{
|
|
809
|
+
"name": "eSIMWallet",
|
|
810
|
+
"type": "address",
|
|
811
|
+
"internalType": "address"
|
|
812
|
+
}
|
|
813
|
+
]
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"type": "error",
|
|
817
|
+
"name": "EmptyDeviceIdentifier",
|
|
818
|
+
"inputs": []
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"type": "error",
|
|
822
|
+
"name": "FailedToTransfer",
|
|
823
|
+
"inputs": []
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"type": "error",
|
|
827
|
+
"name": "InsufficientBalance",
|
|
828
|
+
"inputs": [
|
|
829
|
+
{
|
|
830
|
+
"name": "balance",
|
|
831
|
+
"type": "uint256",
|
|
832
|
+
"internalType": "uint256"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"name": "amount",
|
|
836
|
+
"type": "uint256",
|
|
837
|
+
"internalType": "uint256"
|
|
838
|
+
}
|
|
839
|
+
]
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"type": "error",
|
|
843
|
+
"name": "InvalidDeviceWalletOwnerKey",
|
|
844
|
+
"inputs": []
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"type": "error",
|
|
848
|
+
"name": "InvalidInitialization",
|
|
849
|
+
"inputs": []
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"type": "error",
|
|
853
|
+
"name": "NotInitializing",
|
|
854
|
+
"inputs": []
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"type": "error",
|
|
858
|
+
"name": "OnlyAssociatedESIMWallets",
|
|
859
|
+
"inputs": []
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"type": "error",
|
|
863
|
+
"name": "OnlyESIMWalletAdmin",
|
|
864
|
+
"inputs": []
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"type": "error",
|
|
868
|
+
"name": "OnlyEntryPoint",
|
|
869
|
+
"inputs": []
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"type": "error",
|
|
873
|
+
"name": "OnlyEntryPointOrSelf",
|
|
874
|
+
"inputs": []
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"type": "error",
|
|
878
|
+
"name": "OnlyRegistryOrDeviceWalletFactoryOrOwner",
|
|
879
|
+
"inputs": []
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"type": "error",
|
|
883
|
+
"name": "OnlySelf",
|
|
884
|
+
"inputs": []
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"type": "error",
|
|
888
|
+
"name": "OnlySelfOrAssociatedESIMWallet",
|
|
889
|
+
"inputs": []
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"type": "error",
|
|
893
|
+
"name": "ReentrancyGuardReentrantCall",
|
|
894
|
+
"inputs": []
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"type": "error",
|
|
898
|
+
"name": "UnknownESIMWallet",
|
|
899
|
+
"inputs": [
|
|
900
|
+
{
|
|
901
|
+
"name": "eSIMWallet",
|
|
902
|
+
"type": "address",
|
|
903
|
+
"internalType": "address"
|
|
904
|
+
}
|
|
905
|
+
]
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"type": "error",
|
|
909
|
+
"name": "ZeroAddress",
|
|
910
|
+
"inputs": [
|
|
911
|
+
{
|
|
912
|
+
"name": "parameter",
|
|
913
|
+
"type": "string",
|
|
914
|
+
"internalType": "string"
|
|
915
|
+
}
|
|
916
|
+
]
|
|
907
917
|
},
|
|
908
918
|
{
|
|
909
|
-
"
|
|
910
|
-
"
|
|
919
|
+
"type": "error",
|
|
920
|
+
"name": "ZeroAmount",
|
|
921
|
+
"inputs": []
|
|
911
922
|
}
|
|
912
923
|
];
|
|
913
924
|
export default DeviceWallet;
|