kokio-sdk 0.0.3 → 0.0.5

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.
@@ -1,467 +1,462 @@
1
1
  [
2
2
  {
3
- "type": "constructor",
4
- "inputs": [],
5
- "stateMutability": "nonpayable"
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "target",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "name": "AddressEmptyCode",
11
+ "type": "error"
6
12
  },
7
13
  {
8
- "type": "function",
9
- "name": "UPGRADE_INTERFACE_VERSION",
10
- "inputs": [],
11
- "outputs": [
14
+ "inputs": [
12
15
  {
13
- "name": "",
14
- "type": "string",
15
- "internalType": "string"
16
+ "internalType": "address",
17
+ "name": "implementation",
18
+ "type": "address"
16
19
  }
17
20
  ],
18
- "stateMutability": "view"
21
+ "name": "ERC1967InvalidImplementation",
22
+ "type": "error"
19
23
  },
20
24
  {
21
- "type": "function",
22
- "name": "acceptOwnership",
23
25
  "inputs": [],
24
- "outputs": [],
25
- "stateMutability": "nonpayable"
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": "OnlyRegistryOrDeviceWalletFactoryOrDeviceWallet",
47
+ "type": "error"
26
48
  },
27
49
  {
28
- "type": "function",
29
- "name": "addRegistryAddress",
30
50
  "inputs": [
31
51
  {
32
- "name": "_registryContractAddress",
33
- "type": "address",
34
- "internalType": "address"
52
+ "internalType": "address",
53
+ "name": "owner",
54
+ "type": "address"
35
55
  }
36
56
  ],
37
- "outputs": [
57
+ "name": "OwnableInvalidOwner",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
38
62
  {
39
- "name": "",
40
- "type": "address",
41
- "internalType": "address"
63
+ "internalType": "address",
64
+ "name": "account",
65
+ "type": "address"
42
66
  }
43
67
  ],
44
- "stateMutability": "nonpayable"
68
+ "name": "OwnableUnauthorizedAccount",
69
+ "type": "error"
45
70
  },
46
71
  {
47
- "type": "function",
48
- "name": "beacon",
49
72
  "inputs": [],
50
- "outputs": [
51
- {
52
- "name": "",
53
- "type": "address",
54
- "internalType": "contract UpgradeableBeacon"
55
- }
56
- ],
57
- "stateMutability": "view"
73
+ "name": "UUPSUnauthorizedCallContext",
74
+ "type": "error"
58
75
  },
59
76
  {
60
- "type": "function",
61
- "name": "deployESIMWallet",
62
77
  "inputs": [
63
78
  {
64
- "name": "_deviceWalletAddress",
65
- "type": "address",
66
- "internalType": "address"
67
- },
68
- {
69
- "name": "_salt",
70
- "type": "uint256",
71
- "internalType": "uint256"
79
+ "internalType": "bytes32",
80
+ "name": "slot",
81
+ "type": "bytes32"
72
82
  }
73
83
  ],
74
- "outputs": [
84
+ "name": "UUPSUnsupportedProxiableUUID",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "anonymous": false,
89
+ "inputs": [
75
90
  {
76
- "name": "",
77
- "type": "address",
78
- "internalType": "address"
91
+ "indexed": true,
92
+ "internalType": "address",
93
+ "name": "registry",
94
+ "type": "address"
79
95
  }
80
96
  ],
81
- "stateMutability": "nonpayable"
97
+ "name": "AddedRegistry",
98
+ "type": "event"
82
99
  },
83
100
  {
84
- "type": "function",
85
- "name": "getCurrentESIMWalletImplementation",
86
- "inputs": [],
87
- "outputs": [
101
+ "anonymous": false,
102
+ "inputs": [
88
103
  {
89
- "name": "",
90
- "type": "address",
91
- "internalType": "address"
104
+ "indexed": true,
105
+ "internalType": "address",
106
+ "name": "_eSIMWalletAddress",
107
+ "type": "address"
108
+ },
109
+ {
110
+ "indexed": true,
111
+ "internalType": "address",
112
+ "name": "_deviceWalletAddress",
113
+ "type": "address"
114
+ },
115
+ {
116
+ "indexed": true,
117
+ "internalType": "address",
118
+ "name": "_caller",
119
+ "type": "address"
92
120
  }
93
121
  ],
94
- "stateMutability": "view"
122
+ "name": "ESIMWalletDeployed",
123
+ "type": "event"
95
124
  },
96
125
  {
97
- "type": "function",
98
- "name": "initialize",
126
+ "anonymous": false,
99
127
  "inputs": [
100
128
  {
129
+ "indexed": true,
130
+ "internalType": "address",
131
+ "name": "_upgradeManager",
132
+ "type": "address"
133
+ },
134
+ {
135
+ "indexed": true,
136
+ "internalType": "address",
101
137
  "name": "_eSIMWalletImplementation",
102
- "type": "address",
103
- "internalType": "address"
138
+ "type": "address"
104
139
  },
105
140
  {
106
- "name": "_upgradeManager",
107
- "type": "address",
108
- "internalType": "address"
141
+ "indexed": true,
142
+ "internalType": "address",
143
+ "name": "beacon",
144
+ "type": "address"
109
145
  }
110
146
  ],
111
- "outputs": [],
112
- "stateMutability": "nonpayable"
147
+ "name": "ESIMWalletFactorydeployed",
148
+ "type": "event"
113
149
  },
114
150
  {
115
- "type": "function",
116
- "name": "isESIMWalletDeployed",
151
+ "anonymous": false,
117
152
  "inputs": [
118
153
  {
119
- "name": "eSIMWalletAddress",
120
- "type": "address",
121
- "internalType": "address"
154
+ "indexed": true,
155
+ "internalType": "address",
156
+ "name": "_newImplementation",
157
+ "type": "address"
122
158
  }
123
159
  ],
124
- "outputs": [
160
+ "name": "ESIMWalletImplementationUpdated",
161
+ "type": "event"
162
+ },
163
+ {
164
+ "anonymous": false,
165
+ "inputs": [
125
166
  {
126
- "name": "isDeployed",
127
- "type": "bool",
128
- "internalType": "bool"
167
+ "indexed": false,
168
+ "internalType": "uint64",
169
+ "name": "version",
170
+ "type": "uint64"
129
171
  }
130
172
  ],
131
- "stateMutability": "view"
173
+ "name": "Initialized",
174
+ "type": "event"
132
175
  },
133
176
  {
134
- "type": "function",
135
- "name": "owner",
136
- "inputs": [],
137
- "outputs": [
177
+ "anonymous": false,
178
+ "inputs": [
138
179
  {
139
- "name": "",
140
- "type": "address",
141
- "internalType": "address"
180
+ "indexed": true,
181
+ "internalType": "address",
182
+ "name": "previousOwner",
183
+ "type": "address"
184
+ },
185
+ {
186
+ "indexed": true,
187
+ "internalType": "address",
188
+ "name": "newOwner",
189
+ "type": "address"
142
190
  }
143
191
  ],
144
- "stateMutability": "view"
192
+ "name": "OwnershipTransferStarted",
193
+ "type": "event"
145
194
  },
146
195
  {
147
- "type": "function",
148
- "name": "pendingOwner",
149
- "inputs": [],
150
- "outputs": [
196
+ "anonymous": false,
197
+ "inputs": [
151
198
  {
152
- "name": "",
153
- "type": "address",
154
- "internalType": "address"
199
+ "indexed": true,
200
+ "internalType": "address",
201
+ "name": "previousOwner",
202
+ "type": "address"
203
+ },
204
+ {
205
+ "indexed": true,
206
+ "internalType": "address",
207
+ "name": "newOwner",
208
+ "type": "address"
155
209
  }
156
210
  ],
157
- "stateMutability": "view"
211
+ "name": "OwnershipTransferred",
212
+ "type": "event"
158
213
  },
159
214
  {
160
- "type": "function",
161
- "name": "proxiableUUID",
162
- "inputs": [],
163
- "outputs": [
215
+ "anonymous": false,
216
+ "inputs": [
164
217
  {
165
- "name": "",
166
- "type": "bytes32",
167
- "internalType": "bytes32"
218
+ "indexed": true,
219
+ "internalType": "address",
220
+ "name": "implementation",
221
+ "type": "address"
168
222
  }
169
223
  ],
170
- "stateMutability": "view"
224
+ "name": "Upgraded",
225
+ "type": "event"
171
226
  },
172
227
  {
173
- "type": "function",
174
- "name": "registry",
175
228
  "inputs": [],
229
+ "name": "UPGRADE_INTERFACE_VERSION",
176
230
  "outputs": [
177
231
  {
232
+ "internalType": "string",
178
233
  "name": "",
179
- "type": "address",
180
- "internalType": "contract Registry"
234
+ "type": "string"
181
235
  }
182
236
  ],
183
- "stateMutability": "view"
237
+ "stateMutability": "view",
238
+ "type": "function"
184
239
  },
185
240
  {
186
- "type": "function",
187
- "name": "renounceOwnership",
188
241
  "inputs": [],
242
+ "name": "acceptOwnership",
189
243
  "outputs": [],
190
- "stateMutability": "nonpayable"
244
+ "stateMutability": "nonpayable",
245
+ "type": "function"
191
246
  },
192
247
  {
193
- "type": "function",
194
- "name": "transferOwnership",
195
248
  "inputs": [
196
249
  {
197
- "name": "newOwner",
198
- "type": "address",
199
- "internalType": "address"
250
+ "internalType": "address",
251
+ "name": "_registryContractAddress",
252
+ "type": "address"
200
253
  }
201
254
  ],
202
- "outputs": [],
203
- "stateMutability": "nonpayable"
204
- },
205
- {
206
- "type": "function",
207
- "name": "updateESIMWalletImplementation",
208
- "inputs": [
255
+ "name": "addRegistryAddress",
256
+ "outputs": [
209
257
  {
210
- "name": "_eSIMWalletImpl",
211
- "type": "address",
212
- "internalType": "address"
258
+ "internalType": "address",
259
+ "name": "",
260
+ "type": "address"
213
261
  }
214
262
  ],
263
+ "stateMutability": "nonpayable",
264
+ "type": "function"
265
+ },
266
+ {
267
+ "inputs": [],
268
+ "name": "beacon",
215
269
  "outputs": [
216
270
  {
271
+ "internalType": "contract UpgradeableBeacon",
217
272
  "name": "",
218
- "type": "address",
219
- "internalType": "address"
273
+ "type": "address"
220
274
  }
221
275
  ],
222
- "stateMutability": "nonpayable"
276
+ "stateMutability": "view",
277
+ "type": "function"
223
278
  },
224
279
  {
225
- "type": "function",
226
- "name": "upgradeToAndCall",
227
280
  "inputs": [
228
281
  {
229
- "name": "newImplementation",
230
- "type": "address",
231
- "internalType": "address"
282
+ "internalType": "address",
283
+ "name": "_deviceWalletAddress",
284
+ "type": "address"
232
285
  },
233
286
  {
234
- "name": "data",
235
- "type": "bytes",
236
- "internalType": "bytes"
287
+ "internalType": "uint256",
288
+ "name": "_salt",
289
+ "type": "uint256"
237
290
  }
238
291
  ],
239
- "outputs": [],
240
- "stateMutability": "payable"
241
- },
242
- {
243
- "type": "event",
244
- "name": "AddedRegistry",
245
- "inputs": [
292
+ "name": "deployESIMWallet",
293
+ "outputs": [
246
294
  {
247
- "name": "registry",
248
- "type": "address",
249
- "indexed": true,
250
- "internalType": "address"
295
+ "internalType": "address",
296
+ "name": "",
297
+ "type": "address"
251
298
  }
252
299
  ],
253
- "anonymous": false
300
+ "stateMutability": "nonpayable",
301
+ "type": "function"
254
302
  },
255
303
  {
256
- "type": "event",
257
- "name": "ESIMWalletDeployed",
258
- "inputs": [
259
- {
260
- "name": "_eSIMWalletAddress",
261
- "type": "address",
262
- "indexed": true,
263
- "internalType": "address"
264
- },
265
- {
266
- "name": "_deviceWalletAddress",
267
- "type": "address",
268
- "indexed": true,
269
- "internalType": "address"
270
- },
304
+ "inputs": [],
305
+ "name": "getCurrentESIMWalletImplementation",
306
+ "outputs": [
271
307
  {
272
- "name": "_caller",
273
- "type": "address",
274
- "indexed": true,
275
- "internalType": "address"
308
+ "internalType": "address",
309
+ "name": "",
310
+ "type": "address"
276
311
  }
277
312
  ],
278
- "anonymous": false
313
+ "stateMutability": "view",
314
+ "type": "function"
279
315
  },
280
316
  {
281
- "type": "event",
282
- "name": "ESIMWalletFactorydeployed",
283
317
  "inputs": [
284
318
  {
285
- "name": "_upgradeManager",
286
- "type": "address",
287
- "indexed": true,
288
- "internalType": "address"
289
- },
290
- {
319
+ "internalType": "address",
291
320
  "name": "_eSIMWalletImplementation",
292
- "type": "address",
293
- "indexed": true,
294
- "internalType": "address"
321
+ "type": "address"
295
322
  },
296
323
  {
297
- "name": "beacon",
298
- "type": "address",
299
- "indexed": true,
300
- "internalType": "address"
324
+ "internalType": "address",
325
+ "name": "_upgradeManager",
326
+ "type": "address"
301
327
  }
302
328
  ],
303
- "anonymous": false
329
+ "name": "initialize",
330
+ "outputs": [],
331
+ "stateMutability": "nonpayable",
332
+ "type": "function"
304
333
  },
305
334
  {
306
- "type": "event",
307
- "name": "ESIMWalletImplementationUpdated",
308
335
  "inputs": [
309
336
  {
310
- "name": "_newImplementation",
311
- "type": "address",
312
- "indexed": true,
313
- "internalType": "address"
337
+ "internalType": "address",
338
+ "name": "eSIMWalletAddress",
339
+ "type": "address"
314
340
  }
315
341
  ],
316
- "anonymous": false
317
- },
318
- {
319
- "type": "event",
320
- "name": "Initialized",
321
- "inputs": [
342
+ "name": "isESIMWalletDeployed",
343
+ "outputs": [
322
344
  {
323
- "name": "version",
324
- "type": "uint64",
325
- "indexed": false,
326
- "internalType": "uint64"
345
+ "internalType": "bool",
346
+ "name": "isDeployed",
347
+ "type": "bool"
327
348
  }
328
349
  ],
329
- "anonymous": false
350
+ "stateMutability": "view",
351
+ "type": "function"
330
352
  },
331
353
  {
332
- "type": "event",
333
- "name": "OwnershipTransferStarted",
334
- "inputs": [
335
- {
336
- "name": "previousOwner",
337
- "type": "address",
338
- "indexed": true,
339
- "internalType": "address"
340
- },
354
+ "inputs": [],
355
+ "name": "owner",
356
+ "outputs": [
341
357
  {
342
- "name": "newOwner",
343
- "type": "address",
344
- "indexed": true,
345
- "internalType": "address"
358
+ "internalType": "address",
359
+ "name": "",
360
+ "type": "address"
346
361
  }
347
362
  ],
348
- "anonymous": false
363
+ "stateMutability": "view",
364
+ "type": "function"
349
365
  },
350
366
  {
351
- "type": "event",
352
- "name": "OwnershipTransferred",
353
- "inputs": [
354
- {
355
- "name": "previousOwner",
356
- "type": "address",
357
- "indexed": true,
358
- "internalType": "address"
359
- },
367
+ "inputs": [],
368
+ "name": "pendingOwner",
369
+ "outputs": [
360
370
  {
361
- "name": "newOwner",
362
- "type": "address",
363
- "indexed": true,
364
- "internalType": "address"
371
+ "internalType": "address",
372
+ "name": "",
373
+ "type": "address"
365
374
  }
366
375
  ],
367
- "anonymous": false
376
+ "stateMutability": "view",
377
+ "type": "function"
368
378
  },
369
379
  {
370
- "type": "event",
371
- "name": "Upgraded",
372
- "inputs": [
380
+ "inputs": [],
381
+ "name": "proxiableUUID",
382
+ "outputs": [
373
383
  {
374
- "name": "implementation",
375
- "type": "address",
376
- "indexed": true,
377
- "internalType": "address"
384
+ "internalType": "bytes32",
385
+ "name": "",
386
+ "type": "bytes32"
378
387
  }
379
388
  ],
380
- "anonymous": false
381
- },
382
- {
383
- "type": "error",
384
- "name": "AddressEmptyCode",
385
- "inputs": [
386
- {
387
- "name": "target",
388
- "type": "address",
389
- "internalType": "address"
390
- }
391
- ]
389
+ "stateMutability": "view",
390
+ "type": "function"
392
391
  },
393
392
  {
394
- "type": "error",
395
- "name": "ERC1967InvalidImplementation",
396
- "inputs": [
393
+ "inputs": [],
394
+ "name": "registry",
395
+ "outputs": [
397
396
  {
398
- "name": "implementation",
399
- "type": "address",
400
- "internalType": "address"
397
+ "internalType": "contract Registry",
398
+ "name": "",
399
+ "type": "address"
401
400
  }
402
- ]
403
- },
404
- {
405
- "type": "error",
406
- "name": "ERC1967NonPayable",
407
- "inputs": []
408
- },
409
- {
410
- "type": "error",
411
- "name": "FailedInnerCall",
412
- "inputs": []
413
- },
414
- {
415
- "type": "error",
416
- "name": "InvalidInitialization",
417
- "inputs": []
418
- },
419
- {
420
- "type": "error",
421
- "name": "NotInitializing",
422
- "inputs": []
401
+ ],
402
+ "stateMutability": "view",
403
+ "type": "function"
423
404
  },
424
405
  {
425
- "type": "error",
426
- "name": "OnlyRegistryOrDeviceWalletFactoryOrDeviceWallet",
427
- "inputs": []
406
+ "inputs": [],
407
+ "name": "renounceOwnership",
408
+ "outputs": [],
409
+ "stateMutability": "nonpayable",
410
+ "type": "function"
428
411
  },
429
412
  {
430
- "type": "error",
431
- "name": "OwnableInvalidOwner",
432
413
  "inputs": [
433
414
  {
434
- "name": "owner",
435
- "type": "address",
436
- "internalType": "address"
415
+ "internalType": "address",
416
+ "name": "newOwner",
417
+ "type": "address"
437
418
  }
438
- ]
419
+ ],
420
+ "name": "transferOwnership",
421
+ "outputs": [],
422
+ "stateMutability": "nonpayable",
423
+ "type": "function"
439
424
  },
440
425
  {
441
- "type": "error",
442
- "name": "OwnableUnauthorizedAccount",
443
426
  "inputs": [
444
427
  {
445
- "name": "account",
446
- "type": "address",
447
- "internalType": "address"
428
+ "internalType": "address",
429
+ "name": "_eSIMWalletImpl",
430
+ "type": "address"
448
431
  }
449
- ]
450
- },
451
- {
452
- "type": "error",
453
- "name": "UUPSUnauthorizedCallContext",
454
- "inputs": []
432
+ ],
433
+ "name": "updateESIMWalletImplementation",
434
+ "outputs": [
435
+ {
436
+ "internalType": "address",
437
+ "name": "",
438
+ "type": "address"
439
+ }
440
+ ],
441
+ "stateMutability": "nonpayable",
442
+ "type": "function"
455
443
  },
456
444
  {
457
- "type": "error",
458
- "name": "UUPSUnsupportedProxiableUUID",
459
445
  "inputs": [
460
446
  {
461
- "name": "slot",
462
- "type": "bytes32",
463
- "internalType": "bytes32"
447
+ "internalType": "address",
448
+ "name": "newImplementation",
449
+ "type": "address"
450
+ },
451
+ {
452
+ "internalType": "bytes",
453
+ "name": "data",
454
+ "type": "bytes"
464
455
  }
465
- ]
456
+ ],
457
+ "name": "upgradeToAndCall",
458
+ "outputs": [],
459
+ "stateMutability": "payable",
460
+ "type": "function"
466
461
  }
467
- ]
462
+ ]