kokio-sdk 1.1.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 +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 +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 +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 +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,487 +1,628 @@
|
|
|
1
1
|
const ESIMWallet = [
|
|
2
2
|
{
|
|
3
|
+
"type": "receive",
|
|
4
|
+
"stateMutability": "payable"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"type": "function",
|
|
8
|
+
"name": "acceptOwnershipTransfer",
|
|
3
9
|
"inputs": [],
|
|
4
|
-
"
|
|
5
|
-
"
|
|
10
|
+
"outputs": [],
|
|
11
|
+
"stateMutability": "nonpayable"
|
|
6
12
|
},
|
|
7
13
|
{
|
|
14
|
+
"type": "function",
|
|
15
|
+
"name": "buyDataBundle",
|
|
16
|
+
"inputs": [
|
|
17
|
+
{
|
|
18
|
+
"name": "_dataBundleDetail",
|
|
19
|
+
"type": "tuple",
|
|
20
|
+
"internalType": "struct DataBundleDetails",
|
|
21
|
+
"components": [
|
|
22
|
+
{
|
|
23
|
+
"name": "dataBundleID",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"internalType": "string"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "dataBundlePrice",
|
|
29
|
+
"type": "uint256",
|
|
30
|
+
"internalType": "uint256"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"outputs": [
|
|
36
|
+
{
|
|
37
|
+
"name": "",
|
|
38
|
+
"type": "bool",
|
|
39
|
+
"internalType": "bool"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"stateMutability": "payable"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "function",
|
|
46
|
+
"name": "dataBundlePriceCap",
|
|
8
47
|
"inputs": [],
|
|
9
|
-
"
|
|
10
|
-
|
|
48
|
+
"outputs": [
|
|
49
|
+
{
|
|
50
|
+
"name": "",
|
|
51
|
+
"type": "uint256",
|
|
52
|
+
"internalType": "uint256"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"stateMutability": "view"
|
|
11
56
|
},
|
|
12
57
|
{
|
|
58
|
+
"type": "function",
|
|
59
|
+
"name": "deviceWallet",
|
|
13
60
|
"inputs": [],
|
|
14
|
-
"
|
|
15
|
-
|
|
61
|
+
"outputs": [
|
|
62
|
+
{
|
|
63
|
+
"name": "",
|
|
64
|
+
"type": "address",
|
|
65
|
+
"internalType": "contract DeviceWallet"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"stateMutability": "view"
|
|
16
69
|
},
|
|
17
70
|
{
|
|
71
|
+
"type": "function",
|
|
72
|
+
"name": "eSIMUniqueIdentifier",
|
|
18
73
|
"inputs": [],
|
|
19
|
-
"
|
|
20
|
-
|
|
74
|
+
"outputs": [
|
|
75
|
+
{
|
|
76
|
+
"name": "",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"internalType": "string"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"stateMutability": "view"
|
|
21
82
|
},
|
|
22
83
|
{
|
|
84
|
+
"type": "function",
|
|
85
|
+
"name": "eSIMWalletFactory",
|
|
23
86
|
"inputs": [],
|
|
24
|
-
"
|
|
25
|
-
|
|
87
|
+
"outputs": [
|
|
88
|
+
{
|
|
89
|
+
"name": "",
|
|
90
|
+
"type": "address",
|
|
91
|
+
"internalType": "address"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"stateMutability": "view"
|
|
26
95
|
},
|
|
27
96
|
{
|
|
97
|
+
"type": "function",
|
|
98
|
+
"name": "initialize",
|
|
99
|
+
"inputs": [
|
|
100
|
+
{
|
|
101
|
+
"name": "_eSIMWalletFactoryAddress",
|
|
102
|
+
"type": "address",
|
|
103
|
+
"internalType": "address"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "_deviceWalletAddress",
|
|
107
|
+
"type": "address",
|
|
108
|
+
"internalType": "address"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"outputs": [],
|
|
112
|
+
"stateMutability": "nonpayable"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "function",
|
|
116
|
+
"name": "newRequestedOwner",
|
|
28
117
|
"inputs": [],
|
|
29
|
-
"
|
|
30
|
-
|
|
118
|
+
"outputs": [
|
|
119
|
+
{
|
|
120
|
+
"name": "",
|
|
121
|
+
"type": "address",
|
|
122
|
+
"internalType": "address"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"stateMutability": "view"
|
|
31
126
|
},
|
|
32
127
|
{
|
|
128
|
+
"type": "function",
|
|
129
|
+
"name": "owner",
|
|
33
130
|
"inputs": [],
|
|
34
|
-
"
|
|
35
|
-
|
|
131
|
+
"outputs": [
|
|
132
|
+
{
|
|
133
|
+
"name": "",
|
|
134
|
+
"type": "address",
|
|
135
|
+
"internalType": "address"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"stateMutability": "view"
|
|
36
139
|
},
|
|
37
140
|
{
|
|
141
|
+
"type": "function",
|
|
142
|
+
"name": "populateHistory",
|
|
38
143
|
"inputs": [
|
|
39
144
|
{
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
145
|
+
"name": "_dataBundleDetails",
|
|
146
|
+
"type": "tuple[]",
|
|
147
|
+
"internalType": "struct DataBundleDetails[]",
|
|
148
|
+
"components": [
|
|
149
|
+
{
|
|
150
|
+
"name": "dataBundleID",
|
|
151
|
+
"type": "string",
|
|
152
|
+
"internalType": "string"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "dataBundlePrice",
|
|
156
|
+
"type": "uint256",
|
|
157
|
+
"internalType": "uint256"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
43
160
|
}
|
|
44
161
|
],
|
|
45
|
-
"
|
|
46
|
-
|
|
162
|
+
"outputs": [
|
|
163
|
+
{
|
|
164
|
+
"name": "",
|
|
165
|
+
"type": "bool",
|
|
166
|
+
"internalType": "bool"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"stateMutability": "nonpayable"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"type": "function",
|
|
173
|
+
"name": "renounceOwnership",
|
|
174
|
+
"inputs": [],
|
|
175
|
+
"outputs": [],
|
|
176
|
+
"stateMutability": "pure"
|
|
47
177
|
},
|
|
48
178
|
{
|
|
179
|
+
"type": "function",
|
|
180
|
+
"name": "requestTransferOwnership",
|
|
49
181
|
"inputs": [
|
|
50
182
|
{
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
183
|
+
"name": "_newOwner",
|
|
184
|
+
"type": "address",
|
|
185
|
+
"internalType": "address"
|
|
54
186
|
}
|
|
55
187
|
],
|
|
56
|
-
"
|
|
57
|
-
"
|
|
188
|
+
"outputs": [],
|
|
189
|
+
"stateMutability": "nonpayable"
|
|
58
190
|
},
|
|
59
191
|
{
|
|
60
|
-
"
|
|
61
|
-
"name": "
|
|
62
|
-
"
|
|
192
|
+
"type": "function",
|
|
193
|
+
"name": "sendETHToDeviceWallet",
|
|
194
|
+
"inputs": [
|
|
195
|
+
{
|
|
196
|
+
"name": "_amount",
|
|
197
|
+
"type": "uint256",
|
|
198
|
+
"internalType": "uint256"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"outputs": [
|
|
202
|
+
{
|
|
203
|
+
"name": "",
|
|
204
|
+
"type": "uint256",
|
|
205
|
+
"internalType": "uint256"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"stateMutability": "nonpayable"
|
|
63
209
|
},
|
|
64
210
|
{
|
|
65
|
-
"
|
|
211
|
+
"type": "function",
|
|
212
|
+
"name": "setDataBundlePriceCap",
|
|
66
213
|
"inputs": [
|
|
67
214
|
{
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
|
|
215
|
+
"name": "_cap",
|
|
216
|
+
"type": "uint256",
|
|
217
|
+
"internalType": "uint256"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"outputs": [],
|
|
221
|
+
"stateMutability": "nonpayable"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"type": "function",
|
|
225
|
+
"name": "setESIMUniqueIdentifier",
|
|
226
|
+
"inputs": [
|
|
227
|
+
{
|
|
228
|
+
"name": "_eSIMUniqueIdentifier",
|
|
229
|
+
"type": "string",
|
|
230
|
+
"internalType": "string"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"outputs": [],
|
|
234
|
+
"stateMutability": "nonpayable"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"type": "function",
|
|
238
|
+
"name": "transactionHistory",
|
|
239
|
+
"inputs": [
|
|
240
|
+
{
|
|
241
|
+
"name": "",
|
|
242
|
+
"type": "uint256",
|
|
243
|
+
"internalType": "uint256"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"outputs": [
|
|
247
|
+
{
|
|
248
|
+
"name": "dataBundleID",
|
|
249
|
+
"type": "string",
|
|
250
|
+
"internalType": "string"
|
|
72
251
|
},
|
|
73
252
|
{
|
|
253
|
+
"name": "dataBundlePrice",
|
|
254
|
+
"type": "uint256",
|
|
255
|
+
"internalType": "uint256"
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"stateMutability": "view"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"type": "function",
|
|
262
|
+
"name": "transferOwnership",
|
|
263
|
+
"inputs": [
|
|
264
|
+
{
|
|
265
|
+
"name": "",
|
|
266
|
+
"type": "address",
|
|
267
|
+
"internalType": "address"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"outputs": [],
|
|
271
|
+
"stateMutability": "pure"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"type": "event",
|
|
275
|
+
"name": "DataBundleBought",
|
|
276
|
+
"inputs": [
|
|
277
|
+
{
|
|
278
|
+
"name": "_dataBundleID",
|
|
279
|
+
"type": "string",
|
|
74
280
|
"indexed": false,
|
|
75
|
-
"internalType": "
|
|
76
|
-
"name": "_dataBundlePrice",
|
|
77
|
-
"type": "uint256"
|
|
281
|
+
"internalType": "string"
|
|
78
282
|
},
|
|
79
283
|
{
|
|
284
|
+
"name": "_dataBundlePrice",
|
|
285
|
+
"type": "uint256",
|
|
80
286
|
"indexed": false,
|
|
81
|
-
"internalType": "uint256"
|
|
287
|
+
"internalType": "uint256"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
82
290
|
"name": "_ethFromUser",
|
|
83
|
-
"type": "uint256"
|
|
291
|
+
"type": "uint256",
|
|
292
|
+
"indexed": false,
|
|
293
|
+
"internalType": "uint256"
|
|
84
294
|
}
|
|
85
295
|
],
|
|
86
|
-
"
|
|
87
|
-
"type": "event"
|
|
296
|
+
"anonymous": false
|
|
88
297
|
},
|
|
89
298
|
{
|
|
90
|
-
"
|
|
299
|
+
"type": "event",
|
|
300
|
+
"name": "DataBundlePriceCapUpdated",
|
|
91
301
|
"inputs": [
|
|
92
302
|
{
|
|
303
|
+
"name": "_cap",
|
|
304
|
+
"type": "uint256",
|
|
93
305
|
"indexed": false,
|
|
94
|
-
"internalType": "
|
|
95
|
-
"name": "_eSIMUniqueIdentifier",
|
|
96
|
-
"type": "string"
|
|
306
|
+
"internalType": "uint256"
|
|
97
307
|
}
|
|
98
308
|
],
|
|
309
|
+
"anonymous": false
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"type": "event",
|
|
99
313
|
"name": "ESIMUniqueIdentifierInitialised",
|
|
100
|
-
"
|
|
314
|
+
"inputs": [
|
|
315
|
+
{
|
|
316
|
+
"name": "_eSIMUniqueIdentifier",
|
|
317
|
+
"type": "string",
|
|
318
|
+
"indexed": false,
|
|
319
|
+
"internalType": "string"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"anonymous": false
|
|
101
323
|
},
|
|
102
324
|
{
|
|
103
|
-
"
|
|
325
|
+
"type": "event",
|
|
326
|
+
"name": "ESIMWalletDeployed",
|
|
104
327
|
"inputs": [
|
|
105
328
|
{
|
|
106
|
-
"indexed": true,
|
|
107
|
-
"internalType": "address",
|
|
108
329
|
"name": "_eSIMWalletAddress",
|
|
109
|
-
"type": "address"
|
|
330
|
+
"type": "address",
|
|
331
|
+
"indexed": true,
|
|
332
|
+
"internalType": "address"
|
|
110
333
|
},
|
|
111
334
|
{
|
|
112
|
-
"indexed": true,
|
|
113
|
-
"internalType": "address",
|
|
114
335
|
"name": "_deviceWalletAddress",
|
|
115
|
-
"type": "address"
|
|
336
|
+
"type": "address",
|
|
337
|
+
"indexed": true,
|
|
338
|
+
"internalType": "address"
|
|
116
339
|
},
|
|
117
340
|
{
|
|
118
|
-
"indexed": true,
|
|
119
|
-
"internalType": "address",
|
|
120
341
|
"name": "_owner",
|
|
121
|
-
"type": "address"
|
|
342
|
+
"type": "address",
|
|
343
|
+
"indexed": true,
|
|
344
|
+
"internalType": "address"
|
|
122
345
|
}
|
|
123
346
|
],
|
|
124
|
-
"
|
|
125
|
-
"type": "event"
|
|
347
|
+
"anonymous": false
|
|
126
348
|
},
|
|
127
349
|
{
|
|
128
|
-
"
|
|
350
|
+
"type": "event",
|
|
351
|
+
"name": "ETHSent",
|
|
129
352
|
"inputs": [
|
|
130
353
|
{
|
|
131
|
-
"indexed": true,
|
|
132
|
-
"internalType": "address",
|
|
133
354
|
"name": "_recipient",
|
|
134
|
-
"type": "address"
|
|
355
|
+
"type": "address",
|
|
356
|
+
"indexed": true,
|
|
357
|
+
"internalType": "address"
|
|
135
358
|
},
|
|
136
359
|
{
|
|
137
|
-
"indexed": false,
|
|
138
|
-
"internalType": "uint256",
|
|
139
360
|
"name": "_amount",
|
|
140
|
-
"type": "uint256"
|
|
361
|
+
"type": "uint256",
|
|
362
|
+
"indexed": false,
|
|
363
|
+
"internalType": "uint256"
|
|
141
364
|
}
|
|
142
365
|
],
|
|
143
|
-
"
|
|
144
|
-
"type": "event"
|
|
366
|
+
"anonymous": false
|
|
145
367
|
},
|
|
146
368
|
{
|
|
147
|
-
"
|
|
369
|
+
"type": "event",
|
|
370
|
+
"name": "Initialized",
|
|
148
371
|
"inputs": [
|
|
149
372
|
{
|
|
150
|
-
"indexed": false,
|
|
151
|
-
"internalType": "uint64",
|
|
152
373
|
"name": "version",
|
|
153
|
-
"type": "uint64"
|
|
374
|
+
"type": "uint64",
|
|
375
|
+
"indexed": false,
|
|
376
|
+
"internalType": "uint64"
|
|
154
377
|
}
|
|
155
378
|
],
|
|
156
|
-
"
|
|
157
|
-
"type": "event"
|
|
379
|
+
"anonymous": false
|
|
158
380
|
},
|
|
159
381
|
{
|
|
160
|
-
"
|
|
382
|
+
"type": "event",
|
|
383
|
+
"name": "OwnershipTransferRequested",
|
|
161
384
|
"inputs": [
|
|
162
385
|
{
|
|
163
|
-
"indexed": true,
|
|
164
|
-
"internalType": "address",
|
|
165
386
|
"name": "_currentOwner",
|
|
166
|
-
"type": "address"
|
|
387
|
+
"type": "address",
|
|
388
|
+
"indexed": true,
|
|
389
|
+
"internalType": "address"
|
|
167
390
|
},
|
|
168
391
|
{
|
|
169
|
-
"indexed": true,
|
|
170
|
-
"internalType": "address",
|
|
171
392
|
"name": "_newOwner",
|
|
172
|
-
"type": "address"
|
|
393
|
+
"type": "address",
|
|
394
|
+
"indexed": true,
|
|
395
|
+
"internalType": "address"
|
|
173
396
|
}
|
|
174
397
|
],
|
|
175
|
-
"
|
|
176
|
-
"type": "event"
|
|
398
|
+
"anonymous": false
|
|
177
399
|
},
|
|
178
400
|
{
|
|
179
|
-
"
|
|
401
|
+
"type": "event",
|
|
402
|
+
"name": "OwnershipTransferRevoked",
|
|
180
403
|
"inputs": [
|
|
181
404
|
{
|
|
182
|
-
"indexed": true,
|
|
183
|
-
"internalType": "address",
|
|
184
405
|
"name": "_currentOwner",
|
|
185
|
-
"type": "address"
|
|
406
|
+
"type": "address",
|
|
407
|
+
"indexed": true,
|
|
408
|
+
"internalType": "address"
|
|
186
409
|
},
|
|
187
410
|
{
|
|
188
|
-
"indexed": true,
|
|
189
|
-
"internalType": "address",
|
|
190
411
|
"name": "_revokedOwner",
|
|
191
|
-
"type": "address"
|
|
412
|
+
"type": "address",
|
|
413
|
+
"indexed": true,
|
|
414
|
+
"internalType": "address"
|
|
192
415
|
}
|
|
193
416
|
],
|
|
194
|
-
"
|
|
195
|
-
"type": "event"
|
|
417
|
+
"anonymous": false
|
|
196
418
|
},
|
|
197
419
|
{
|
|
198
|
-
"
|
|
420
|
+
"type": "event",
|
|
421
|
+
"name": "OwnershipTransferred",
|
|
199
422
|
"inputs": [
|
|
200
423
|
{
|
|
201
|
-
"indexed": true,
|
|
202
|
-
"internalType": "address",
|
|
203
424
|
"name": "previousOwner",
|
|
204
|
-
"type": "address"
|
|
425
|
+
"type": "address",
|
|
426
|
+
"indexed": true,
|
|
427
|
+
"internalType": "address"
|
|
205
428
|
},
|
|
206
429
|
{
|
|
207
|
-
"indexed": true,
|
|
208
|
-
"internalType": "address",
|
|
209
430
|
"name": "newOwner",
|
|
210
|
-
"type": "address"
|
|
431
|
+
"type": "address",
|
|
432
|
+
"indexed": true,
|
|
433
|
+
"internalType": "address"
|
|
211
434
|
}
|
|
212
435
|
],
|
|
213
|
-
"
|
|
214
|
-
"type": "event"
|
|
436
|
+
"anonymous": false
|
|
215
437
|
},
|
|
216
438
|
{
|
|
217
|
-
"
|
|
439
|
+
"type": "event",
|
|
440
|
+
"name": "TransactionHistoryPopulated",
|
|
218
441
|
"inputs": [
|
|
219
442
|
{
|
|
443
|
+
"name": "_dataBundleDetails",
|
|
444
|
+
"type": "tuple[]",
|
|
445
|
+
"indexed": false,
|
|
446
|
+
"internalType": "struct DataBundleDetails[]",
|
|
220
447
|
"components": [
|
|
221
448
|
{
|
|
222
|
-
"internalType": "string",
|
|
223
449
|
"name": "dataBundleID",
|
|
224
|
-
"type": "string"
|
|
450
|
+
"type": "string",
|
|
451
|
+
"internalType": "string"
|
|
225
452
|
},
|
|
226
453
|
{
|
|
227
|
-
"internalType": "uint256",
|
|
228
454
|
"name": "dataBundlePrice",
|
|
229
|
-
"type": "uint256"
|
|
455
|
+
"type": "uint256",
|
|
456
|
+
"internalType": "uint256"
|
|
230
457
|
}
|
|
231
|
-
]
|
|
458
|
+
]
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "_totalEntries",
|
|
462
|
+
"type": "uint256",
|
|
232
463
|
"indexed": false,
|
|
233
|
-
"internalType": "
|
|
234
|
-
"name": "_dataBundleDetails",
|
|
235
|
-
"type": "tuple[]"
|
|
464
|
+
"internalType": "uint256"
|
|
236
465
|
}
|
|
237
466
|
],
|
|
238
|
-
"
|
|
239
|
-
"type": "event"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"inputs": [],
|
|
243
|
-
"name": "acceptOwnershipTransfer",
|
|
244
|
-
"outputs": [],
|
|
245
|
-
"stateMutability": "nonpayable",
|
|
246
|
-
"type": "function"
|
|
467
|
+
"anonymous": false
|
|
247
468
|
},
|
|
248
469
|
{
|
|
470
|
+
"type": "error",
|
|
471
|
+
"name": "DataBundlePriceAboveCap",
|
|
249
472
|
"inputs": [
|
|
250
473
|
{
|
|
251
|
-
"
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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": [
|
|
474
|
+
"name": "price",
|
|
475
|
+
"type": "uint256",
|
|
476
|
+
"internalType": "uint256"
|
|
477
|
+
},
|
|
270
478
|
{
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
479
|
+
"name": "cap",
|
|
480
|
+
"type": "uint256",
|
|
481
|
+
"internalType": "uint256"
|
|
274
482
|
}
|
|
275
|
-
]
|
|
276
|
-
"stateMutability": "payable",
|
|
277
|
-
"type": "function"
|
|
483
|
+
]
|
|
278
484
|
},
|
|
279
485
|
{
|
|
280
|
-
"
|
|
281
|
-
"name": "
|
|
282
|
-
"
|
|
486
|
+
"type": "error",
|
|
487
|
+
"name": "ESIMIdentifierAlreadySet",
|
|
488
|
+
"inputs": [
|
|
283
489
|
{
|
|
284
|
-
"
|
|
285
|
-
"
|
|
286
|
-
"
|
|
490
|
+
"name": "eSIMUniqueIdentifier",
|
|
491
|
+
"type": "string",
|
|
492
|
+
"internalType": "string"
|
|
287
493
|
}
|
|
288
|
-
]
|
|
289
|
-
"stateMutability": "view",
|
|
290
|
-
"type": "function"
|
|
494
|
+
]
|
|
291
495
|
},
|
|
292
496
|
{
|
|
293
|
-
"
|
|
294
|
-
"name": "
|
|
295
|
-
"
|
|
296
|
-
{
|
|
297
|
-
"internalType": "string",
|
|
298
|
-
"name": "",
|
|
299
|
-
"type": "string"
|
|
300
|
-
}
|
|
301
|
-
],
|
|
302
|
-
"stateMutability": "view",
|
|
303
|
-
"type": "function"
|
|
497
|
+
"type": "error",
|
|
498
|
+
"name": "EmptyDataBundleID",
|
|
499
|
+
"inputs": []
|
|
304
500
|
},
|
|
305
501
|
{
|
|
306
|
-
"
|
|
307
|
-
"name": "
|
|
308
|
-
"
|
|
309
|
-
{
|
|
310
|
-
"internalType": "address",
|
|
311
|
-
"name": "",
|
|
312
|
-
"type": "address"
|
|
313
|
-
}
|
|
314
|
-
],
|
|
315
|
-
"stateMutability": "view",
|
|
316
|
-
"type": "function"
|
|
502
|
+
"type": "error",
|
|
503
|
+
"name": "EmptyESIMIdentifier",
|
|
504
|
+
"inputs": []
|
|
317
505
|
},
|
|
318
506
|
{
|
|
507
|
+
"type": "error",
|
|
508
|
+
"name": "FailedToTransfer",
|
|
509
|
+
"inputs": []
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"type": "error",
|
|
513
|
+
"name": "InsufficientBalance",
|
|
319
514
|
"inputs": [
|
|
320
515
|
{
|
|
321
|
-
"
|
|
322
|
-
"
|
|
323
|
-
"
|
|
516
|
+
"name": "balance",
|
|
517
|
+
"type": "uint256",
|
|
518
|
+
"internalType": "uint256"
|
|
324
519
|
},
|
|
325
520
|
{
|
|
326
|
-
"
|
|
327
|
-
"
|
|
328
|
-
"
|
|
521
|
+
"name": "amount",
|
|
522
|
+
"type": "uint256",
|
|
523
|
+
"internalType": "uint256"
|
|
329
524
|
}
|
|
330
|
-
]
|
|
331
|
-
"name": "initialize",
|
|
332
|
-
"outputs": [],
|
|
333
|
-
"stateMutability": "nonpayable",
|
|
334
|
-
"type": "function"
|
|
525
|
+
]
|
|
335
526
|
},
|
|
336
527
|
{
|
|
337
|
-
"
|
|
338
|
-
"name": "
|
|
339
|
-
"
|
|
340
|
-
{
|
|
341
|
-
"internalType": "address",
|
|
342
|
-
"name": "",
|
|
343
|
-
"type": "address"
|
|
344
|
-
}
|
|
345
|
-
],
|
|
346
|
-
"stateMutability": "view",
|
|
347
|
-
"type": "function"
|
|
528
|
+
"type": "error",
|
|
529
|
+
"name": "InvalidInitialization",
|
|
530
|
+
"inputs": []
|
|
348
531
|
},
|
|
349
532
|
{
|
|
350
|
-
"
|
|
351
|
-
"name": "
|
|
352
|
-
"
|
|
533
|
+
"type": "error",
|
|
534
|
+
"name": "NotADeviceWallet",
|
|
535
|
+
"inputs": [
|
|
353
536
|
{
|
|
354
|
-
"
|
|
355
|
-
"
|
|
356
|
-
"
|
|
537
|
+
"name": "account",
|
|
538
|
+
"type": "address",
|
|
539
|
+
"internalType": "address"
|
|
357
540
|
}
|
|
358
|
-
]
|
|
359
|
-
"stateMutability": "view",
|
|
360
|
-
"type": "function"
|
|
541
|
+
]
|
|
361
542
|
},
|
|
362
543
|
{
|
|
363
|
-
"
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
{
|
|
367
|
-
"internalType": "string",
|
|
368
|
-
"name": "dataBundleID",
|
|
369
|
-
"type": "string"
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
"internalType": "uint256",
|
|
373
|
-
"name": "dataBundlePrice",
|
|
374
|
-
"type": "uint256"
|
|
375
|
-
}
|
|
376
|
-
],
|
|
377
|
-
"internalType": "struct DataBundleDetails[]",
|
|
378
|
-
"name": "_dataBundleDetails",
|
|
379
|
-
"type": "tuple[]"
|
|
380
|
-
}
|
|
381
|
-
],
|
|
382
|
-
"name": "populateHistory",
|
|
383
|
-
"outputs": [
|
|
384
|
-
{
|
|
385
|
-
"internalType": "bool",
|
|
386
|
-
"name": "",
|
|
387
|
-
"type": "bool"
|
|
388
|
-
}
|
|
389
|
-
],
|
|
390
|
-
"stateMutability": "nonpayable",
|
|
391
|
-
"type": "function"
|
|
544
|
+
"type": "error",
|
|
545
|
+
"name": "NotInitializing",
|
|
546
|
+
"inputs": []
|
|
392
547
|
},
|
|
393
548
|
{
|
|
394
|
-
"
|
|
395
|
-
"name": "
|
|
396
|
-
"
|
|
397
|
-
"stateMutability": "nonpayable",
|
|
398
|
-
"type": "function"
|
|
549
|
+
"type": "error",
|
|
550
|
+
"name": "OnlyDeviceWallet",
|
|
551
|
+
"inputs": []
|
|
399
552
|
},
|
|
400
553
|
{
|
|
401
|
-
"
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
"
|
|
409
|
-
"outputs": [],
|
|
410
|
-
"stateMutability": "nonpayable",
|
|
411
|
-
"type": "function"
|
|
554
|
+
"type": "error",
|
|
555
|
+
"name": "OnlyDeviceWalletOrESIMWalletAdmin",
|
|
556
|
+
"inputs": []
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"type": "error",
|
|
560
|
+
"name": "OnlyRegistry",
|
|
561
|
+
"inputs": []
|
|
412
562
|
},
|
|
413
563
|
{
|
|
564
|
+
"type": "error",
|
|
565
|
+
"name": "OnlyRequestedOwner",
|
|
414
566
|
"inputs": [
|
|
415
567
|
{
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
"
|
|
419
|
-
}
|
|
420
|
-
],
|
|
421
|
-
"name": "sendETHToDeviceWallet",
|
|
422
|
-
"outputs": [
|
|
423
|
-
{
|
|
424
|
-
"internalType": "uint256",
|
|
425
|
-
"name": "",
|
|
426
|
-
"type": "uint256"
|
|
568
|
+
"name": "newRequestedOwner",
|
|
569
|
+
"type": "address",
|
|
570
|
+
"internalType": "address"
|
|
427
571
|
}
|
|
428
|
-
]
|
|
429
|
-
"stateMutability": "nonpayable",
|
|
430
|
-
"type": "function"
|
|
572
|
+
]
|
|
431
573
|
},
|
|
432
574
|
{
|
|
575
|
+
"type": "error",
|
|
576
|
+
"name": "OwnableInvalidOwner",
|
|
433
577
|
"inputs": [
|
|
434
578
|
{
|
|
435
|
-
"
|
|
436
|
-
"
|
|
437
|
-
"
|
|
579
|
+
"name": "owner",
|
|
580
|
+
"type": "address",
|
|
581
|
+
"internalType": "address"
|
|
438
582
|
}
|
|
439
|
-
]
|
|
440
|
-
"name": "setESIMUniqueIdentifier",
|
|
441
|
-
"outputs": [],
|
|
442
|
-
"stateMutability": "nonpayable",
|
|
443
|
-
"type": "function"
|
|
583
|
+
]
|
|
444
584
|
},
|
|
445
585
|
{
|
|
586
|
+
"type": "error",
|
|
587
|
+
"name": "OwnableUnauthorizedAccount",
|
|
446
588
|
"inputs": [
|
|
447
589
|
{
|
|
448
|
-
"
|
|
449
|
-
"
|
|
450
|
-
"
|
|
451
|
-
}
|
|
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"
|
|
590
|
+
"name": "account",
|
|
591
|
+
"type": "address",
|
|
592
|
+
"internalType": "address"
|
|
464
593
|
}
|
|
465
|
-
]
|
|
466
|
-
"stateMutability": "view",
|
|
467
|
-
"type": "function"
|
|
594
|
+
]
|
|
468
595
|
},
|
|
469
596
|
{
|
|
597
|
+
"type": "error",
|
|
598
|
+
"name": "OwnershipCannotBeRenounced",
|
|
599
|
+
"inputs": []
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"type": "error",
|
|
603
|
+
"name": "ReentrancyGuardReentrantCall",
|
|
604
|
+
"inputs": []
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"type": "error",
|
|
608
|
+
"name": "UseAcceptOwnershipTransfer",
|
|
609
|
+
"inputs": []
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"type": "error",
|
|
613
|
+
"name": "ZeroAddress",
|
|
470
614
|
"inputs": [
|
|
471
615
|
{
|
|
472
|
-
"
|
|
473
|
-
"
|
|
474
|
-
"
|
|
616
|
+
"name": "parameter",
|
|
617
|
+
"type": "string",
|
|
618
|
+
"internalType": "string"
|
|
475
619
|
}
|
|
476
|
-
]
|
|
477
|
-
"name": "transferOwnership",
|
|
478
|
-
"outputs": [],
|
|
479
|
-
"stateMutability": "pure",
|
|
480
|
-
"type": "function"
|
|
620
|
+
]
|
|
481
621
|
},
|
|
482
622
|
{
|
|
483
|
-
"
|
|
484
|
-
"
|
|
623
|
+
"type": "error",
|
|
624
|
+
"name": "ZeroDataBundlePrice",
|
|
625
|
+
"inputs": []
|
|
485
626
|
}
|
|
486
627
|
];
|
|
487
628
|
export default ESIMWallet;
|