kokio-sdk 0.0.4 → 0.0.6

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