kokio-sdk 1.0.0 → 2.0.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 +24 -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 +23 -12
- package/dist/esm/logic/admin/deviceWalletFactory.eoa.js +63 -42
- package/dist/esm/logic/admin/eSIMWallet.eoa.js +3 -5
- package/dist/esm/logic/admin/eSIMWalletFactory.eoa.js +76 -8
- package/dist/esm/logic/admin/lazyWalletRegistry.eoa.js +330 -19
- 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 +274 -4
- 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 +64 -0
- 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 +16 -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/constantsClass.d.ts +2 -2
- 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 +45 -0
- 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,824 +1,817 @@
|
|
|
1
1
|
const DeviceWalletFactory = [
|
|
2
2
|
{
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"type": "address"
|
|
8
|
-
}
|
|
9
|
-
],
|
|
10
|
-
"name": "AddressEmptyCode",
|
|
11
|
-
"type": "error"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"inputs": [
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "UPGRADE_INTERFACE_VERSION",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [
|
|
15
7
|
{
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
8
|
+
"name": "",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"internalType": "string"
|
|
19
11
|
}
|
|
20
12
|
],
|
|
21
|
-
"
|
|
22
|
-
"type": "error"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"inputs": [],
|
|
26
|
-
"name": "ERC1967NonPayable",
|
|
27
|
-
"type": "error"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"inputs": [],
|
|
31
|
-
"name": "FailedInnerCall",
|
|
32
|
-
"type": "error"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"inputs": [],
|
|
36
|
-
"name": "InvalidInitialization",
|
|
37
|
-
"type": "error"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"inputs": [],
|
|
41
|
-
"name": "NotInitializing",
|
|
42
|
-
"type": "error"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"inputs": [],
|
|
46
|
-
"name": "OnlyAdmin",
|
|
47
|
-
"type": "error"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"inputs": [],
|
|
51
|
-
"name": "OnlyAdminOrRegistry",
|
|
52
|
-
"type": "error"
|
|
13
|
+
"stateMutability": "view"
|
|
53
14
|
},
|
|
54
15
|
{
|
|
16
|
+
"type": "function",
|
|
17
|
+
"name": "acceptOwnership",
|
|
55
18
|
"inputs": [],
|
|
56
|
-
"
|
|
57
|
-
"
|
|
19
|
+
"outputs": [],
|
|
20
|
+
"stateMutability": "nonpayable"
|
|
58
21
|
},
|
|
59
22
|
{
|
|
23
|
+
"type": "function",
|
|
24
|
+
"name": "addRegistryAddress",
|
|
60
25
|
"inputs": [
|
|
61
26
|
{
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
27
|
+
"name": "_registryContractAddress",
|
|
28
|
+
"type": "address",
|
|
29
|
+
"internalType": "address"
|
|
65
30
|
}
|
|
66
31
|
],
|
|
67
|
-
"
|
|
68
|
-
"type": "error"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"inputs": [
|
|
32
|
+
"outputs": [
|
|
72
33
|
{
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
34
|
+
"name": "",
|
|
35
|
+
"type": "address",
|
|
36
|
+
"internalType": "address"
|
|
76
37
|
}
|
|
77
38
|
],
|
|
78
|
-
"
|
|
79
|
-
"type": "error"
|
|
39
|
+
"stateMutability": "nonpayable"
|
|
80
40
|
},
|
|
81
41
|
{
|
|
42
|
+
"type": "function",
|
|
43
|
+
"name": "beacon",
|
|
82
44
|
"inputs": [],
|
|
83
|
-
"
|
|
84
|
-
"type": "error"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"inputs": [
|
|
88
|
-
{
|
|
89
|
-
"internalType": "bytes32",
|
|
90
|
-
"name": "slot",
|
|
91
|
-
"type": "bytes32"
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"name": "UUPSUnsupportedProxiableUUID",
|
|
95
|
-
"type": "error"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"anonymous": false,
|
|
99
|
-
"inputs": [
|
|
45
|
+
"outputs": [
|
|
100
46
|
{
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"type": "address"
|
|
47
|
+
"name": "",
|
|
48
|
+
"type": "address",
|
|
49
|
+
"internalType": "contract UpgradeableBeacon"
|
|
105
50
|
}
|
|
106
51
|
],
|
|
107
|
-
"
|
|
108
|
-
"type": "event"
|
|
52
|
+
"stateMutability": "view"
|
|
109
53
|
},
|
|
110
54
|
{
|
|
111
|
-
"
|
|
55
|
+
"type": "function",
|
|
56
|
+
"name": "createAccount",
|
|
112
57
|
"inputs": [
|
|
113
58
|
{
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"type": "address"
|
|
59
|
+
"name": "_deviceUniqueIdentifier",
|
|
60
|
+
"type": "string",
|
|
61
|
+
"internalType": "string"
|
|
118
62
|
},
|
|
119
63
|
{
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"type": "address"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"name": "AdminUpdateRequested",
|
|
127
|
-
"type": "event"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"anonymous": false,
|
|
131
|
-
"inputs": [
|
|
132
|
-
{
|
|
133
|
-
"indexed": true,
|
|
134
|
-
"internalType": "address",
|
|
135
|
-
"name": "_currentAdmin",
|
|
136
|
-
"type": "address"
|
|
64
|
+
"name": "_deviceWalletOwnerKey",
|
|
65
|
+
"type": "bytes32[2]",
|
|
66
|
+
"internalType": "bytes32[2]"
|
|
137
67
|
},
|
|
138
68
|
{
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"type": "address"
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
"name": "AdminUpdateRevoked",
|
|
146
|
-
"type": "event"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"anonymous": false,
|
|
150
|
-
"inputs": [
|
|
151
|
-
{
|
|
152
|
-
"indexed": true,
|
|
153
|
-
"internalType": "address",
|
|
154
|
-
"name": "_newAdmin",
|
|
155
|
-
"type": "address"
|
|
69
|
+
"name": "_salt",
|
|
70
|
+
"type": "uint256",
|
|
71
|
+
"internalType": "uint256"
|
|
156
72
|
}
|
|
157
73
|
],
|
|
158
|
-
"
|
|
159
|
-
"type": "event"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"anonymous": false,
|
|
163
|
-
"inputs": [
|
|
164
|
-
{
|
|
165
|
-
"indexed": true,
|
|
166
|
-
"internalType": "address",
|
|
167
|
-
"name": "_deviceWalletAddress",
|
|
168
|
-
"type": "address"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"indexed": true,
|
|
172
|
-
"internalType": "address",
|
|
173
|
-
"name": "_eSIMWalletAddress",
|
|
174
|
-
"type": "address"
|
|
175
|
-
},
|
|
74
|
+
"outputs": [
|
|
176
75
|
{
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"type": "bytes32[2]"
|
|
76
|
+
"name": "deviceWallet",
|
|
77
|
+
"type": "address",
|
|
78
|
+
"internalType": "contract DeviceWallet"
|
|
181
79
|
}
|
|
182
80
|
],
|
|
183
|
-
"
|
|
184
|
-
"type": "event"
|
|
81
|
+
"stateMutability": "payable"
|
|
185
82
|
},
|
|
186
83
|
{
|
|
187
|
-
"
|
|
84
|
+
"type": "function",
|
|
85
|
+
"name": "deployDeviceWalletForUsers",
|
|
188
86
|
"inputs": [
|
|
189
87
|
{
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"type": "address"
|
|
88
|
+
"name": "_deviceUniqueIdentifiers",
|
|
89
|
+
"type": "string[]",
|
|
90
|
+
"internalType": "string[]"
|
|
194
91
|
},
|
|
195
92
|
{
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"type": "address"
|
|
93
|
+
"name": "_deviceWalletOwnersKey",
|
|
94
|
+
"type": "bytes32[2][]",
|
|
95
|
+
"internalType": "bytes32[2][]"
|
|
200
96
|
},
|
|
201
97
|
{
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"type": "address"
|
|
98
|
+
"name": "_salts",
|
|
99
|
+
"type": "uint256[]",
|
|
100
|
+
"internalType": "uint256[]"
|
|
206
101
|
},
|
|
207
102
|
{
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
|
|
212
|
-
|
|
103
|
+
"name": "_depositAmounts",
|
|
104
|
+
"type": "uint256[]",
|
|
105
|
+
"internalType": "uint256[]"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"outputs": [
|
|
213
109
|
{
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"
|
|
110
|
+
"name": "",
|
|
111
|
+
"type": "tuple[]",
|
|
112
|
+
"internalType": "struct Wallets[]",
|
|
113
|
+
"components": [
|
|
114
|
+
{
|
|
115
|
+
"name": "deviceWallet",
|
|
116
|
+
"type": "address",
|
|
117
|
+
"internalType": "address"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "eSIMWallet",
|
|
121
|
+
"type": "address",
|
|
122
|
+
"internalType": "address"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
218
125
|
}
|
|
219
126
|
],
|
|
220
|
-
"
|
|
221
|
-
"type": "event"
|
|
127
|
+
"stateMutability": "payable"
|
|
222
128
|
},
|
|
223
129
|
{
|
|
224
|
-
"
|
|
130
|
+
"type": "function",
|
|
131
|
+
"name": "deviceWalletInfoAdded",
|
|
225
132
|
"inputs": [
|
|
226
133
|
{
|
|
227
|
-
"
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
"type": "address"
|
|
134
|
+
"name": "deviceWallet",
|
|
135
|
+
"type": "address",
|
|
136
|
+
"internalType": "address"
|
|
231
137
|
}
|
|
232
138
|
],
|
|
233
|
-
"
|
|
234
|
-
"type": "event"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"anonymous": false,
|
|
238
|
-
"inputs": [
|
|
139
|
+
"outputs": [
|
|
239
140
|
{
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
"
|
|
243
|
-
"type": "uint64"
|
|
141
|
+
"name": "isAdded",
|
|
142
|
+
"type": "bool",
|
|
143
|
+
"internalType": "bool"
|
|
244
144
|
}
|
|
245
145
|
],
|
|
246
|
-
"
|
|
247
|
-
"type": "event"
|
|
146
|
+
"stateMutability": "view"
|
|
248
147
|
},
|
|
249
148
|
{
|
|
250
|
-
"
|
|
251
|
-
"
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
"internalType": "address",
|
|
255
|
-
"name": "previousOwner",
|
|
256
|
-
"type": "address"
|
|
257
|
-
},
|
|
149
|
+
"type": "function",
|
|
150
|
+
"name": "eSIMWalletAdmin",
|
|
151
|
+
"inputs": [],
|
|
152
|
+
"outputs": [
|
|
258
153
|
{
|
|
259
|
-
"
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
"type": "address"
|
|
154
|
+
"name": "",
|
|
155
|
+
"type": "address",
|
|
156
|
+
"internalType": "address"
|
|
263
157
|
}
|
|
264
158
|
],
|
|
265
|
-
"
|
|
266
|
-
"type": "event"
|
|
159
|
+
"stateMutability": "view"
|
|
267
160
|
},
|
|
268
161
|
{
|
|
269
|
-
"
|
|
270
|
-
"
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
"internalType": "address",
|
|
274
|
-
"name": "previousOwner",
|
|
275
|
-
"type": "address"
|
|
276
|
-
},
|
|
162
|
+
"type": "function",
|
|
163
|
+
"name": "eSIMWalletFactory",
|
|
164
|
+
"inputs": [],
|
|
165
|
+
"outputs": [
|
|
277
166
|
{
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"type": "address"
|
|
167
|
+
"name": "",
|
|
168
|
+
"type": "address",
|
|
169
|
+
"internalType": "contract ESIMWalletFactory"
|
|
282
170
|
}
|
|
283
171
|
],
|
|
284
|
-
"
|
|
285
|
-
"type": "event"
|
|
172
|
+
"stateMutability": "view"
|
|
286
173
|
},
|
|
287
174
|
{
|
|
288
|
-
"
|
|
289
|
-
"
|
|
175
|
+
"type": "function",
|
|
176
|
+
"name": "entryPoint",
|
|
177
|
+
"inputs": [],
|
|
178
|
+
"outputs": [
|
|
290
179
|
{
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"type": "address"
|
|
180
|
+
"name": "",
|
|
181
|
+
"type": "address",
|
|
182
|
+
"internalType": "contract IEntryPoint"
|
|
295
183
|
}
|
|
296
184
|
],
|
|
297
|
-
"
|
|
298
|
-
"type": "event"
|
|
185
|
+
"stateMutability": "view"
|
|
299
186
|
},
|
|
300
187
|
{
|
|
301
|
-
"
|
|
188
|
+
"type": "function",
|
|
189
|
+
"name": "getCounterFactualAddress",
|
|
302
190
|
"inputs": [
|
|
303
191
|
{
|
|
304
|
-
"
|
|
305
|
-
"
|
|
306
|
-
"
|
|
307
|
-
|
|
192
|
+
"name": "_deviceWalletOwnerKey",
|
|
193
|
+
"type": "bytes32[2]",
|
|
194
|
+
"internalType": "bytes32[2]"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "_deviceUniqueIdentifier",
|
|
198
|
+
"type": "string",
|
|
199
|
+
"internalType": "string"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "_salt",
|
|
203
|
+
"type": "uint256",
|
|
204
|
+
"internalType": "uint256"
|
|
308
205
|
}
|
|
309
206
|
],
|
|
310
|
-
"name": "VaultAddressUpdated",
|
|
311
|
-
"type": "event"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"inputs": [],
|
|
315
|
-
"name": "UPGRADE_INTERFACE_VERSION",
|
|
316
207
|
"outputs": [
|
|
317
208
|
{
|
|
318
|
-
"internalType": "string",
|
|
319
209
|
"name": "",
|
|
320
|
-
"type": "
|
|
210
|
+
"type": "address",
|
|
211
|
+
"internalType": "address"
|
|
321
212
|
}
|
|
322
213
|
],
|
|
323
|
-
"stateMutability": "view"
|
|
324
|
-
"type": "function"
|
|
214
|
+
"stateMutability": "view"
|
|
325
215
|
},
|
|
326
216
|
{
|
|
217
|
+
"type": "function",
|
|
218
|
+
"name": "getCurrentDeviceWalletImplementation",
|
|
327
219
|
"inputs": [],
|
|
328
|
-
"name": "acceptAdminUpdate",
|
|
329
220
|
"outputs": [
|
|
330
221
|
{
|
|
331
|
-
"internalType": "address",
|
|
332
222
|
"name": "",
|
|
333
|
-
"type": "address"
|
|
223
|
+
"type": "address",
|
|
224
|
+
"internalType": "address"
|
|
334
225
|
}
|
|
335
226
|
],
|
|
336
|
-
"stateMutability": "
|
|
337
|
-
"type": "function"
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
"inputs": [],
|
|
341
|
-
"name": "acceptOwnership",
|
|
342
|
-
"outputs": [],
|
|
343
|
-
"stateMutability": "nonpayable",
|
|
344
|
-
"type": "function"
|
|
227
|
+
"stateMutability": "view"
|
|
345
228
|
},
|
|
346
229
|
{
|
|
230
|
+
"type": "function",
|
|
231
|
+
"name": "initialize",
|
|
347
232
|
"inputs": [
|
|
348
233
|
{
|
|
349
|
-
"
|
|
350
|
-
"
|
|
351
|
-
"
|
|
234
|
+
"name": "_deviceWalletImplementation",
|
|
235
|
+
"type": "address",
|
|
236
|
+
"internalType": "address"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "_upgradeManager",
|
|
240
|
+
"type": "address",
|
|
241
|
+
"internalType": "address"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "_eSIMWalletFactoryAddress",
|
|
245
|
+
"type": "address",
|
|
246
|
+
"internalType": "address"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "_entryPoint",
|
|
250
|
+
"type": "address",
|
|
251
|
+
"internalType": "contract IEntryPoint"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "_verifier",
|
|
255
|
+
"type": "address",
|
|
256
|
+
"internalType": "contract P256Verifier"
|
|
352
257
|
}
|
|
353
258
|
],
|
|
354
|
-
"
|
|
259
|
+
"outputs": [],
|
|
260
|
+
"stateMutability": "nonpayable"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"type": "function",
|
|
264
|
+
"name": "owner",
|
|
265
|
+
"inputs": [],
|
|
355
266
|
"outputs": [
|
|
356
267
|
{
|
|
357
|
-
"internalType": "address",
|
|
358
268
|
"name": "",
|
|
359
|
-
"type": "address"
|
|
269
|
+
"type": "address",
|
|
270
|
+
"internalType": "address"
|
|
360
271
|
}
|
|
361
272
|
],
|
|
362
|
-
"stateMutability": "
|
|
363
|
-
"type": "function"
|
|
273
|
+
"stateMutability": "view"
|
|
364
274
|
},
|
|
365
275
|
{
|
|
276
|
+
"type": "function",
|
|
277
|
+
"name": "pendingOwner",
|
|
366
278
|
"inputs": [],
|
|
367
|
-
"name": "beacon",
|
|
368
279
|
"outputs": [
|
|
369
280
|
{
|
|
370
|
-
"internalType": "contract UpgradeableBeacon",
|
|
371
281
|
"name": "",
|
|
372
|
-
"type": "address"
|
|
282
|
+
"type": "address",
|
|
283
|
+
"internalType": "address"
|
|
373
284
|
}
|
|
374
285
|
],
|
|
375
|
-
"stateMutability": "view"
|
|
376
|
-
"type": "function"
|
|
286
|
+
"stateMutability": "view"
|
|
377
287
|
},
|
|
378
288
|
{
|
|
289
|
+
"type": "function",
|
|
290
|
+
"name": "postCreateAccount",
|
|
379
291
|
"inputs": [
|
|
380
292
|
{
|
|
381
|
-
"
|
|
293
|
+
"name": "_deviceWallet",
|
|
294
|
+
"type": "address",
|
|
295
|
+
"internalType": "address"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
382
298
|
"name": "_deviceUniqueIdentifier",
|
|
383
|
-
"type": "string"
|
|
299
|
+
"type": "string",
|
|
300
|
+
"internalType": "string"
|
|
384
301
|
},
|
|
385
302
|
{
|
|
386
|
-
"internalType": "bytes32[2]",
|
|
387
303
|
"name": "_deviceWalletOwnerKey",
|
|
388
|
-
"type": "bytes32[2]"
|
|
304
|
+
"type": "bytes32[2]",
|
|
305
|
+
"internalType": "bytes32[2]"
|
|
389
306
|
},
|
|
390
307
|
{
|
|
391
|
-
"internalType": "uint256",
|
|
392
308
|
"name": "_salt",
|
|
393
|
-
"type": "uint256"
|
|
394
|
-
|
|
395
|
-
],
|
|
396
|
-
"name": "createAccount",
|
|
397
|
-
"outputs": [
|
|
398
|
-
{
|
|
399
|
-
"internalType": "contract DeviceWallet",
|
|
400
|
-
"name": "deviceWallet",
|
|
401
|
-
"type": "address"
|
|
309
|
+
"type": "uint256",
|
|
310
|
+
"internalType": "uint256"
|
|
402
311
|
}
|
|
403
312
|
],
|
|
404
|
-
"
|
|
405
|
-
"
|
|
313
|
+
"outputs": [],
|
|
314
|
+
"stateMutability": "nonpayable"
|
|
406
315
|
},
|
|
407
316
|
{
|
|
317
|
+
"type": "function",
|
|
318
|
+
"name": "preCreateAccountValidation",
|
|
408
319
|
"inputs": [
|
|
409
320
|
{
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
"internalType": "bytes32[2][]",
|
|
416
|
-
"name": "_deviceWalletOwnersKey",
|
|
417
|
-
"type": "bytes32[2][]"
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
"internalType": "uint256[]",
|
|
421
|
-
"name": "_salts",
|
|
422
|
-
"type": "uint256[]"
|
|
321
|
+
"name": "_deviceUniqueIdentifier",
|
|
322
|
+
"type": "string",
|
|
323
|
+
"internalType": "string"
|
|
423
324
|
},
|
|
424
325
|
{
|
|
425
|
-
"
|
|
426
|
-
"
|
|
427
|
-
"
|
|
326
|
+
"name": "_deviceWalletOwnerKey",
|
|
327
|
+
"type": "bytes32[2]",
|
|
328
|
+
"internalType": "bytes32[2]"
|
|
428
329
|
}
|
|
429
330
|
],
|
|
430
|
-
"name": "deployDeviceWalletForUsers",
|
|
431
331
|
"outputs": [
|
|
432
332
|
{
|
|
433
|
-
"
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
"name": "deviceWallet",
|
|
437
|
-
"type": "address"
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"internalType": "address",
|
|
441
|
-
"name": "eSIMWallet",
|
|
442
|
-
"type": "address"
|
|
443
|
-
}
|
|
444
|
-
],
|
|
445
|
-
"internalType": "struct Wallets[]",
|
|
446
|
-
"name": "",
|
|
447
|
-
"type": "tuple[]"
|
|
333
|
+
"name": "wallet",
|
|
334
|
+
"type": "address",
|
|
335
|
+
"internalType": "address"
|
|
448
336
|
}
|
|
449
337
|
],
|
|
450
|
-
"stateMutability": "
|
|
451
|
-
"type": "function"
|
|
338
|
+
"stateMutability": "view"
|
|
452
339
|
},
|
|
453
340
|
{
|
|
454
|
-
"
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
"name": "deviceWallet",
|
|
458
|
-
"type": "address"
|
|
459
|
-
}
|
|
460
|
-
],
|
|
461
|
-
"name": "deviceWalletInfoAdded",
|
|
341
|
+
"type": "function",
|
|
342
|
+
"name": "proxiableUUID",
|
|
343
|
+
"inputs": [],
|
|
462
344
|
"outputs": [
|
|
463
345
|
{
|
|
464
|
-
"
|
|
465
|
-
"
|
|
466
|
-
"
|
|
346
|
+
"name": "",
|
|
347
|
+
"type": "bytes32",
|
|
348
|
+
"internalType": "bytes32"
|
|
467
349
|
}
|
|
468
350
|
],
|
|
469
|
-
"stateMutability": "view"
|
|
470
|
-
"type": "function"
|
|
351
|
+
"stateMutability": "view"
|
|
471
352
|
},
|
|
472
353
|
{
|
|
354
|
+
"type": "function",
|
|
355
|
+
"name": "registry",
|
|
473
356
|
"inputs": [],
|
|
474
|
-
"name": "eSIMWalletAdmin",
|
|
475
357
|
"outputs": [
|
|
476
358
|
{
|
|
477
|
-
"internalType": "address",
|
|
478
359
|
"name": "",
|
|
479
|
-
"type": "address"
|
|
360
|
+
"type": "address",
|
|
361
|
+
"internalType": "contract Registry"
|
|
480
362
|
}
|
|
481
363
|
],
|
|
482
|
-
"stateMutability": "view"
|
|
483
|
-
"type": "function"
|
|
364
|
+
"stateMutability": "view"
|
|
484
365
|
},
|
|
485
366
|
{
|
|
367
|
+
"type": "function",
|
|
368
|
+
"name": "renounceOwnership",
|
|
486
369
|
"inputs": [],
|
|
487
|
-
"
|
|
488
|
-
"
|
|
370
|
+
"outputs": [],
|
|
371
|
+
"stateMutability": "pure"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"type": "function",
|
|
375
|
+
"name": "transferOwnership",
|
|
376
|
+
"inputs": [
|
|
489
377
|
{
|
|
490
|
-
"
|
|
491
|
-
"
|
|
492
|
-
"
|
|
378
|
+
"name": "newOwner",
|
|
379
|
+
"type": "address",
|
|
380
|
+
"internalType": "address"
|
|
493
381
|
}
|
|
494
382
|
],
|
|
495
|
-
"
|
|
496
|
-
"
|
|
383
|
+
"outputs": [],
|
|
384
|
+
"stateMutability": "nonpayable"
|
|
497
385
|
},
|
|
498
386
|
{
|
|
499
|
-
"
|
|
500
|
-
"name": "
|
|
387
|
+
"type": "function",
|
|
388
|
+
"name": "updateDeviceWalletImplementation",
|
|
389
|
+
"inputs": [
|
|
390
|
+
{
|
|
391
|
+
"name": "_newDeviceImpl",
|
|
392
|
+
"type": "address",
|
|
393
|
+
"internalType": "address"
|
|
394
|
+
}
|
|
395
|
+
],
|
|
501
396
|
"outputs": [
|
|
502
397
|
{
|
|
503
|
-
"internalType": "contract IEntryPoint",
|
|
504
398
|
"name": "",
|
|
505
|
-
"type": "address"
|
|
399
|
+
"type": "address",
|
|
400
|
+
"internalType": "address"
|
|
506
401
|
}
|
|
507
402
|
],
|
|
508
|
-
"stateMutability": "
|
|
509
|
-
"type": "function"
|
|
403
|
+
"stateMutability": "nonpayable"
|
|
510
404
|
},
|
|
511
405
|
{
|
|
406
|
+
"type": "function",
|
|
407
|
+
"name": "upgradeToAndCall",
|
|
512
408
|
"inputs": [
|
|
513
409
|
{
|
|
514
|
-
"
|
|
515
|
-
"
|
|
516
|
-
"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
"internalType": "string",
|
|
520
|
-
"name": "_deviceUniqueIdentifier",
|
|
521
|
-
"type": "string"
|
|
410
|
+
"name": "newImplementation",
|
|
411
|
+
"type": "address",
|
|
412
|
+
"internalType": "address"
|
|
522
413
|
},
|
|
523
414
|
{
|
|
524
|
-
"
|
|
525
|
-
"
|
|
526
|
-
"
|
|
415
|
+
"name": "data",
|
|
416
|
+
"type": "bytes",
|
|
417
|
+
"internalType": "bytes"
|
|
527
418
|
}
|
|
528
419
|
],
|
|
529
|
-
"
|
|
420
|
+
"outputs": [],
|
|
421
|
+
"stateMutability": "payable"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"type": "function",
|
|
425
|
+
"name": "verifier",
|
|
426
|
+
"inputs": [],
|
|
530
427
|
"outputs": [
|
|
531
428
|
{
|
|
532
|
-
"internalType": "address",
|
|
533
429
|
"name": "",
|
|
534
|
-
"type": "address"
|
|
430
|
+
"type": "address",
|
|
431
|
+
"internalType": "contract P256Verifier"
|
|
535
432
|
}
|
|
536
433
|
],
|
|
537
|
-
"stateMutability": "view"
|
|
538
|
-
"type": "function"
|
|
434
|
+
"stateMutability": "view"
|
|
539
435
|
},
|
|
540
436
|
{
|
|
541
|
-
"
|
|
542
|
-
"name": "
|
|
543
|
-
"
|
|
437
|
+
"type": "event",
|
|
438
|
+
"name": "AddedRegistry",
|
|
439
|
+
"inputs": [
|
|
544
440
|
{
|
|
545
|
-
"
|
|
546
|
-
"
|
|
547
|
-
"
|
|
441
|
+
"name": "registry",
|
|
442
|
+
"type": "address",
|
|
443
|
+
"indexed": true,
|
|
444
|
+
"internalType": "address"
|
|
548
445
|
}
|
|
549
446
|
],
|
|
550
|
-
"
|
|
551
|
-
"type": "function"
|
|
447
|
+
"anonymous": false
|
|
552
448
|
},
|
|
553
449
|
{
|
|
450
|
+
"type": "event",
|
|
451
|
+
"name": "DeviceWalletDeployed",
|
|
554
452
|
"inputs": [
|
|
555
453
|
{
|
|
556
|
-
"
|
|
557
|
-
"
|
|
558
|
-
"
|
|
454
|
+
"name": "_deviceWalletAddress",
|
|
455
|
+
"type": "address",
|
|
456
|
+
"indexed": true,
|
|
457
|
+
"internalType": "address"
|
|
559
458
|
},
|
|
560
459
|
{
|
|
561
|
-
"
|
|
562
|
-
"
|
|
563
|
-
"
|
|
460
|
+
"name": "_eSIMWalletAddress",
|
|
461
|
+
"type": "address",
|
|
462
|
+
"indexed": true,
|
|
463
|
+
"internalType": "address"
|
|
564
464
|
},
|
|
565
465
|
{
|
|
566
|
-
"
|
|
567
|
-
"
|
|
568
|
-
"
|
|
569
|
-
|
|
466
|
+
"name": "_deviceWalletOwnerKey",
|
|
467
|
+
"type": "bytes32[2]",
|
|
468
|
+
"indexed": false,
|
|
469
|
+
"internalType": "bytes32[2]"
|
|
470
|
+
}
|
|
471
|
+
],
|
|
472
|
+
"anonymous": false
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"type": "event",
|
|
476
|
+
"name": "DeviceWalletFactoryDeployed",
|
|
477
|
+
"inputs": [
|
|
570
478
|
{
|
|
571
|
-
"internalType": "address",
|
|
572
479
|
"name": "_upgradeManager",
|
|
573
|
-
"type": "address"
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
"internalType": "address",
|
|
577
|
-
"name": "_eSIMWalletFactoryAddress",
|
|
578
|
-
"type": "address"
|
|
480
|
+
"type": "address",
|
|
481
|
+
"indexed": true,
|
|
482
|
+
"internalType": "address"
|
|
579
483
|
},
|
|
580
484
|
{
|
|
581
|
-
"
|
|
582
|
-
"
|
|
583
|
-
"
|
|
485
|
+
"name": "_deviceWalletImplementation",
|
|
486
|
+
"type": "address",
|
|
487
|
+
"indexed": true,
|
|
488
|
+
"internalType": "address"
|
|
584
489
|
},
|
|
585
490
|
{
|
|
586
|
-
"
|
|
587
|
-
"
|
|
588
|
-
"
|
|
491
|
+
"name": "_beacon",
|
|
492
|
+
"type": "address",
|
|
493
|
+
"indexed": true,
|
|
494
|
+
"internalType": "address"
|
|
589
495
|
}
|
|
590
496
|
],
|
|
591
|
-
"
|
|
592
|
-
"outputs": [],
|
|
593
|
-
"stateMutability": "nonpayable",
|
|
594
|
-
"type": "function"
|
|
497
|
+
"anonymous": false
|
|
595
498
|
},
|
|
596
499
|
{
|
|
597
|
-
"
|
|
598
|
-
"name": "
|
|
599
|
-
"
|
|
500
|
+
"type": "event",
|
|
501
|
+
"name": "DeviceWalletImplementationUpdated",
|
|
502
|
+
"inputs": [
|
|
600
503
|
{
|
|
601
|
-
"
|
|
602
|
-
"
|
|
603
|
-
"
|
|
504
|
+
"name": "_newDeviceImplementation",
|
|
505
|
+
"type": "address",
|
|
506
|
+
"indexed": true,
|
|
507
|
+
"internalType": "address"
|
|
604
508
|
}
|
|
605
509
|
],
|
|
606
|
-
"
|
|
607
|
-
"type": "function"
|
|
510
|
+
"anonymous": false
|
|
608
511
|
},
|
|
609
512
|
{
|
|
610
|
-
"
|
|
611
|
-
"name": "
|
|
612
|
-
"
|
|
513
|
+
"type": "event",
|
|
514
|
+
"name": "Initialized",
|
|
515
|
+
"inputs": [
|
|
613
516
|
{
|
|
614
|
-
"
|
|
615
|
-
"
|
|
616
|
-
"
|
|
517
|
+
"name": "version",
|
|
518
|
+
"type": "uint64",
|
|
519
|
+
"indexed": false,
|
|
520
|
+
"internalType": "uint64"
|
|
617
521
|
}
|
|
618
522
|
],
|
|
619
|
-
"
|
|
620
|
-
"type": "function"
|
|
523
|
+
"anonymous": false
|
|
621
524
|
},
|
|
622
525
|
{
|
|
623
|
-
"
|
|
624
|
-
"name": "
|
|
625
|
-
"
|
|
526
|
+
"type": "event",
|
|
527
|
+
"name": "OwnershipTransferStarted",
|
|
528
|
+
"inputs": [
|
|
626
529
|
{
|
|
627
|
-
"
|
|
628
|
-
"
|
|
629
|
-
"
|
|
530
|
+
"name": "previousOwner",
|
|
531
|
+
"type": "address",
|
|
532
|
+
"indexed": true,
|
|
533
|
+
"internalType": "address"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"name": "newOwner",
|
|
537
|
+
"type": "address",
|
|
538
|
+
"indexed": true,
|
|
539
|
+
"internalType": "address"
|
|
630
540
|
}
|
|
631
541
|
],
|
|
632
|
-
"
|
|
633
|
-
"type": "function"
|
|
542
|
+
"anonymous": false
|
|
634
543
|
},
|
|
635
544
|
{
|
|
545
|
+
"type": "event",
|
|
546
|
+
"name": "OwnershipTransferred",
|
|
636
547
|
"inputs": [
|
|
637
548
|
{
|
|
638
|
-
"
|
|
639
|
-
"
|
|
640
|
-
"
|
|
549
|
+
"name": "previousOwner",
|
|
550
|
+
"type": "address",
|
|
551
|
+
"indexed": true,
|
|
552
|
+
"internalType": "address"
|
|
641
553
|
},
|
|
642
554
|
{
|
|
643
|
-
"
|
|
644
|
-
"
|
|
645
|
-
"
|
|
646
|
-
|
|
555
|
+
"name": "newOwner",
|
|
556
|
+
"type": "address",
|
|
557
|
+
"indexed": true,
|
|
558
|
+
"internalType": "address"
|
|
559
|
+
}
|
|
560
|
+
],
|
|
561
|
+
"anonymous": false
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"type": "event",
|
|
565
|
+
"name": "Upgraded",
|
|
566
|
+
"inputs": [
|
|
647
567
|
{
|
|
648
|
-
"
|
|
649
|
-
"
|
|
650
|
-
"
|
|
568
|
+
"name": "implementation",
|
|
569
|
+
"type": "address",
|
|
570
|
+
"indexed": true,
|
|
571
|
+
"internalType": "address"
|
|
651
572
|
}
|
|
652
573
|
],
|
|
653
|
-
"
|
|
654
|
-
"outputs": [],
|
|
655
|
-
"stateMutability": "nonpayable",
|
|
656
|
-
"type": "function"
|
|
574
|
+
"anonymous": false
|
|
657
575
|
},
|
|
658
576
|
{
|
|
577
|
+
"type": "error",
|
|
578
|
+
"name": "AddressEmptyCode",
|
|
659
579
|
"inputs": [
|
|
660
580
|
{
|
|
661
|
-
"
|
|
662
|
-
"
|
|
663
|
-
"
|
|
581
|
+
"name": "target",
|
|
582
|
+
"type": "address",
|
|
583
|
+
"internalType": "address"
|
|
584
|
+
}
|
|
585
|
+
]
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"type": "error",
|
|
589
|
+
"name": "ArrayLengthMismatch",
|
|
590
|
+
"inputs": [
|
|
591
|
+
{
|
|
592
|
+
"name": "expected",
|
|
593
|
+
"type": "uint256",
|
|
594
|
+
"internalType": "uint256"
|
|
664
595
|
},
|
|
665
596
|
{
|
|
666
|
-
"
|
|
667
|
-
"
|
|
668
|
-
"
|
|
597
|
+
"name": "actual",
|
|
598
|
+
"type": "uint256",
|
|
599
|
+
"internalType": "uint256"
|
|
669
600
|
}
|
|
670
|
-
]
|
|
671
|
-
|
|
672
|
-
|
|
601
|
+
]
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"type": "error",
|
|
605
|
+
"name": "DeviceWalletAlreadyExists",
|
|
606
|
+
"inputs": [
|
|
673
607
|
{
|
|
674
|
-
"
|
|
675
|
-
"
|
|
676
|
-
"
|
|
608
|
+
"name": "deviceIdentifier",
|
|
609
|
+
"type": "string",
|
|
610
|
+
"internalType": "string"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "deviceWallet",
|
|
614
|
+
"type": "address",
|
|
615
|
+
"internalType": "address"
|
|
677
616
|
}
|
|
678
|
-
]
|
|
679
|
-
"stateMutability": "view",
|
|
680
|
-
"type": "function"
|
|
617
|
+
]
|
|
681
618
|
},
|
|
682
619
|
{
|
|
683
|
-
"
|
|
684
|
-
"name": "
|
|
685
|
-
"
|
|
620
|
+
"type": "error",
|
|
621
|
+
"name": "DeviceWalletInfoAlreadyAdded",
|
|
622
|
+
"inputs": [
|
|
686
623
|
{
|
|
687
|
-
"
|
|
688
|
-
"
|
|
689
|
-
"
|
|
624
|
+
"name": "deviceWallet",
|
|
625
|
+
"type": "address",
|
|
626
|
+
"internalType": "address"
|
|
690
627
|
}
|
|
691
|
-
]
|
|
692
|
-
"stateMutability": "view",
|
|
693
|
-
"type": "function"
|
|
628
|
+
]
|
|
694
629
|
},
|
|
695
630
|
{
|
|
696
|
-
"
|
|
697
|
-
"name": "
|
|
698
|
-
"
|
|
631
|
+
"type": "error",
|
|
632
|
+
"name": "DeviceWalletMismatch",
|
|
633
|
+
"inputs": [
|
|
699
634
|
{
|
|
700
|
-
"
|
|
701
|
-
"
|
|
702
|
-
"
|
|
635
|
+
"name": "deviceWallet",
|
|
636
|
+
"type": "address",
|
|
637
|
+
"internalType": "address"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"name": "derived",
|
|
641
|
+
"type": "address",
|
|
642
|
+
"internalType": "address"
|
|
703
643
|
}
|
|
704
|
-
]
|
|
705
|
-
"stateMutability": "view",
|
|
706
|
-
"type": "function"
|
|
644
|
+
]
|
|
707
645
|
},
|
|
708
646
|
{
|
|
709
|
-
"
|
|
710
|
-
"name": "
|
|
711
|
-
"
|
|
712
|
-
|
|
713
|
-
|
|
647
|
+
"type": "error",
|
|
648
|
+
"name": "DeviceWalletNotDeployed",
|
|
649
|
+
"inputs": [
|
|
650
|
+
{
|
|
651
|
+
"name": "deviceWallet",
|
|
652
|
+
"type": "address",
|
|
653
|
+
"internalType": "address"
|
|
654
|
+
}
|
|
655
|
+
]
|
|
714
656
|
},
|
|
715
657
|
{
|
|
658
|
+
"type": "error",
|
|
659
|
+
"name": "ERC1967InvalidImplementation",
|
|
716
660
|
"inputs": [
|
|
717
661
|
{
|
|
718
|
-
"
|
|
719
|
-
"
|
|
720
|
-
"
|
|
662
|
+
"name": "implementation",
|
|
663
|
+
"type": "address",
|
|
664
|
+
"internalType": "address"
|
|
721
665
|
}
|
|
722
|
-
]
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
"
|
|
726
|
-
"
|
|
666
|
+
]
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"type": "error",
|
|
670
|
+
"name": "ERC1967NonPayable",
|
|
671
|
+
"inputs": []
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"type": "error",
|
|
675
|
+
"name": "EmptyBatch",
|
|
676
|
+
"inputs": []
|
|
727
677
|
},
|
|
728
678
|
{
|
|
679
|
+
"type": "error",
|
|
680
|
+
"name": "EmptyDeviceIdentifier",
|
|
681
|
+
"inputs": []
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"type": "error",
|
|
685
|
+
"name": "FailedCall",
|
|
686
|
+
"inputs": []
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"type": "error",
|
|
690
|
+
"name": "FailedToTransfer",
|
|
691
|
+
"inputs": []
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"type": "error",
|
|
695
|
+
"name": "ImplementationUnchanged",
|
|
729
696
|
"inputs": [
|
|
730
697
|
{
|
|
731
|
-
"
|
|
732
|
-
"
|
|
733
|
-
"
|
|
698
|
+
"name": "implementation",
|
|
699
|
+
"type": "address",
|
|
700
|
+
"internalType": "address"
|
|
734
701
|
}
|
|
735
|
-
]
|
|
736
|
-
"name": "transferOwnership",
|
|
737
|
-
"outputs": [],
|
|
738
|
-
"stateMutability": "nonpayable",
|
|
739
|
-
"type": "function"
|
|
702
|
+
]
|
|
740
703
|
},
|
|
741
704
|
{
|
|
705
|
+
"type": "error",
|
|
706
|
+
"name": "InsufficientBalance",
|
|
742
707
|
"inputs": [
|
|
743
708
|
{
|
|
744
|
-
"
|
|
745
|
-
"
|
|
746
|
-
"
|
|
747
|
-
}
|
|
748
|
-
],
|
|
749
|
-
"name": "updateDeviceWalletImplementation",
|
|
750
|
-
"outputs": [
|
|
709
|
+
"name": "balance",
|
|
710
|
+
"type": "uint256",
|
|
711
|
+
"internalType": "uint256"
|
|
712
|
+
},
|
|
751
713
|
{
|
|
752
|
-
"
|
|
753
|
-
"
|
|
754
|
-
"
|
|
714
|
+
"name": "amount",
|
|
715
|
+
"type": "uint256",
|
|
716
|
+
"internalType": "uint256"
|
|
755
717
|
}
|
|
756
|
-
]
|
|
757
|
-
|
|
758
|
-
|
|
718
|
+
]
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"type": "error",
|
|
722
|
+
"name": "InvalidDeviceWalletOwnerKey",
|
|
723
|
+
"inputs": []
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"type": "error",
|
|
727
|
+
"name": "InvalidInitialization",
|
|
728
|
+
"inputs": []
|
|
759
729
|
},
|
|
760
730
|
{
|
|
731
|
+
"type": "error",
|
|
732
|
+
"name": "NotInitializing",
|
|
733
|
+
"inputs": []
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"type": "error",
|
|
737
|
+
"name": "OnlyAdminOrRegistry",
|
|
738
|
+
"inputs": []
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"type": "error",
|
|
742
|
+
"name": "OwnableInvalidOwner",
|
|
761
743
|
"inputs": [
|
|
762
744
|
{
|
|
763
|
-
"
|
|
764
|
-
"
|
|
765
|
-
"
|
|
745
|
+
"name": "owner",
|
|
746
|
+
"type": "address",
|
|
747
|
+
"internalType": "address"
|
|
766
748
|
}
|
|
767
|
-
]
|
|
768
|
-
|
|
769
|
-
|
|
749
|
+
]
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"type": "error",
|
|
753
|
+
"name": "OwnableUnauthorizedAccount",
|
|
754
|
+
"inputs": [
|
|
770
755
|
{
|
|
771
|
-
"
|
|
772
|
-
"
|
|
773
|
-
"
|
|
756
|
+
"name": "account",
|
|
757
|
+
"type": "address",
|
|
758
|
+
"internalType": "address"
|
|
774
759
|
}
|
|
775
|
-
]
|
|
776
|
-
"stateMutability": "nonpayable",
|
|
777
|
-
"type": "function"
|
|
760
|
+
]
|
|
778
761
|
},
|
|
779
762
|
{
|
|
763
|
+
"type": "error",
|
|
764
|
+
"name": "OwnerKeyAlreadyRegistered",
|
|
780
765
|
"inputs": [
|
|
781
766
|
{
|
|
782
|
-
"
|
|
783
|
-
"
|
|
784
|
-
"
|
|
785
|
-
}
|
|
767
|
+
"name": "ownerKeyHash",
|
|
768
|
+
"type": "bytes32",
|
|
769
|
+
"internalType": "bytes32"
|
|
770
|
+
}
|
|
771
|
+
]
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"type": "error",
|
|
775
|
+
"name": "OwnershipCannotBeRenounced",
|
|
776
|
+
"inputs": []
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"type": "error",
|
|
780
|
+
"name": "RegistryAlreadySet",
|
|
781
|
+
"inputs": [
|
|
786
782
|
{
|
|
787
|
-
"
|
|
788
|
-
"
|
|
789
|
-
"
|
|
783
|
+
"name": "registry",
|
|
784
|
+
"type": "address",
|
|
785
|
+
"internalType": "address"
|
|
790
786
|
}
|
|
791
|
-
]
|
|
792
|
-
"name": "upgradeToAndCall",
|
|
793
|
-
"outputs": [],
|
|
794
|
-
"stateMutability": "payable",
|
|
795
|
-
"type": "function"
|
|
787
|
+
]
|
|
796
788
|
},
|
|
797
789
|
{
|
|
798
|
-
"
|
|
799
|
-
"name": "
|
|
800
|
-
"
|
|
790
|
+
"type": "error",
|
|
791
|
+
"name": "UUPSUnauthorizedCallContext",
|
|
792
|
+
"inputs": []
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"type": "error",
|
|
796
|
+
"name": "UUPSUnsupportedProxiableUUID",
|
|
797
|
+
"inputs": [
|
|
801
798
|
{
|
|
802
|
-
"
|
|
803
|
-
"
|
|
804
|
-
"
|
|
799
|
+
"name": "slot",
|
|
800
|
+
"type": "bytes32",
|
|
801
|
+
"internalType": "bytes32"
|
|
805
802
|
}
|
|
806
|
-
]
|
|
807
|
-
"stateMutability": "view",
|
|
808
|
-
"type": "function"
|
|
803
|
+
]
|
|
809
804
|
},
|
|
810
805
|
{
|
|
811
|
-
"
|
|
812
|
-
"name": "
|
|
813
|
-
"
|
|
806
|
+
"type": "error",
|
|
807
|
+
"name": "ZeroAddress",
|
|
808
|
+
"inputs": [
|
|
814
809
|
{
|
|
815
|
-
"
|
|
816
|
-
"
|
|
817
|
-
"
|
|
810
|
+
"name": "parameter",
|
|
811
|
+
"type": "string",
|
|
812
|
+
"internalType": "string"
|
|
818
813
|
}
|
|
819
|
-
]
|
|
820
|
-
"stateMutability": "view",
|
|
821
|
-
"type": "function"
|
|
814
|
+
]
|
|
822
815
|
}
|
|
823
816
|
];
|
|
824
817
|
export default DeviceWalletFactory;
|