kokio-sdk 2.0.0 → 3.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 +21 -7
- package/dist/esm/abis/DeviceWallet.js +60 -59
- package/dist/esm/abis/ESIMWallet.js +263 -58
- package/dist/esm/abis/ESIMWalletFactory.js +2 -2
- package/dist/esm/abis/LazyWalletRegistry.js +68 -24
- package/dist/esm/abis/PaymentAdapter.js +861 -0
- package/dist/esm/abis/Registry.js +294 -18
- package/dist/esm/abis/RegistryHelper.js +101 -9
- package/dist/esm/abis/index.js +2 -1
- package/dist/esm/admin/config-admin.js +4 -0
- package/dist/esm/admin/interface/deviceWalletClass.js +3 -3
- package/dist/esm/admin/interface/eSIMWalletClass.js +6 -6
- package/dist/esm/admin/interface/lazyWalletRegistryClass.js +4 -1
- package/dist/esm/admin/interface/paymentAdapterClass.js +54 -0
- package/dist/esm/admin/interface/protocolAdminClass.js +6 -3
- package/dist/esm/admin/interface/registryClass.js +15 -6
- package/dist/esm/config.js +3 -0
- package/dist/esm/interface/deviceWalletClass.js +5 -5
- package/dist/esm/interface/eSIMWalletClass.js +10 -7
- package/dist/esm/interface/paymentAdapterClass.js +28 -0
- package/dist/esm/interface/registryClass.js +12 -3
- package/dist/esm/logic/admin/deviceWallet.eoa.js +3 -3
- package/dist/esm/logic/admin/deviceWalletFactory.eoa.js +6 -6
- package/dist/esm/logic/admin/eSIMWallet.eoa.js +14 -12
- package/dist/esm/logic/admin/eSIMWalletFactory.eoa.js +4 -4
- package/dist/esm/logic/admin/lazyWalletRegistry.eoa.js +7 -7
- package/dist/esm/logic/admin/paymentAdapter.eoa.js +123 -0
- package/dist/esm/logic/admin/protocolAdmin.eoa.js +34 -16
- package/dist/esm/logic/admin/reads/deviceWallet.reads.js +2 -2
- package/dist/esm/logic/admin/reads/eSIMWallet.reads.js +8 -7
- package/dist/esm/logic/admin/reads/lazyWalletRegistry.reads.js +19 -2
- package/dist/esm/logic/admin/reads/paymentAdapter.reads.js +106 -0
- package/dist/esm/logic/admin/reads/registry.reads.js +34 -6
- package/dist/esm/logic/admin/registry.eoa.js +44 -20
- package/dist/esm/logic/constants.js +17 -87
- package/dist/esm/logic/deviceWallet.js +11 -11
- package/dist/esm/logic/eSIMWallet.js +51 -22
- package/dist/esm/logic/errors.js +30 -1
- package/dist/esm/logic/paymentAdapter.js +116 -0
- package/dist/esm/logic/registry.js +50 -5
- package/dist/esm/types-export.js +1 -1
- package/dist/esm/types.js +11 -1
- package/dist/types/abis/DeviceWallet.d.ts +50 -49
- package/dist/types/abis/ESIMWallet.d.ts +215 -55
- package/dist/types/abis/ESIMWalletFactory.d.ts +2 -2
- package/dist/types/abis/LazyWalletRegistry.d.ts +58 -24
- package/dist/types/abis/PaymentAdapter.d.ts +661 -0
- package/dist/types/abis/Registry.d.ts +233 -18
- package/dist/types/abis/RegistryHelper.d.ts +83 -9
- package/dist/types/abis/index.d.ts +2 -1
- package/dist/types/admin/config-admin.d.ts +2 -0
- package/dist/types/admin/interface/deviceWalletClass.d.ts +1 -1
- package/dist/types/admin/interface/eSIMWalletClass.d.ts +3 -3
- package/dist/types/admin/interface/lazyWalletRegistryClass.d.ts +1 -0
- package/dist/types/admin/interface/paymentAdapterClass.d.ts +20 -0
- package/dist/types/admin/interface/protocolAdminClass.d.ts +2 -1
- package/dist/types/admin/interface/registryClass.d.ts +6 -2
- package/dist/types/config.d.ts +2 -0
- package/dist/types/interface/constantsClass.d.ts +2 -2
- package/dist/types/interface/deviceWalletClass.d.ts +2 -2
- package/dist/types/interface/eSIMWalletClass.d.ts +5 -4
- package/dist/types/interface/paymentAdapterClass.d.ts +13 -0
- package/dist/types/interface/registryClass.d.ts +5 -2
- package/dist/types/logic/admin/eSIMWallet.eoa.d.ts +9 -6
- package/dist/types/logic/admin/paymentAdapter.eoa.d.ts +28 -0
- package/dist/types/logic/admin/protocolAdmin.eoa.d.ts +12 -2
- package/dist/types/logic/admin/reads/deviceWallet.reads.d.ts +1 -1
- package/dist/types/logic/admin/reads/eSIMWallet.reads.d.ts +5 -4
- package/dist/types/logic/admin/reads/lazyWalletRegistry.reads.d.ts +7 -0
- package/dist/types/logic/admin/reads/paymentAdapter.reads.d.ts +30 -0
- package/dist/types/logic/admin/reads/registry.reads.d.ts +13 -5
- package/dist/types/logic/admin/registry.eoa.d.ts +18 -8
- package/dist/types/logic/constants.d.ts +5 -17
- package/dist/types/logic/deviceWallet.d.ts +7 -7
- package/dist/types/logic/eSIMWallet.d.ts +29 -15
- package/dist/types/logic/errors.d.ts +16 -1
- package/dist/types/logic/paymentAdapter.d.ts +40 -0
- package/dist/types/logic/registry.d.ts +20 -5
- package/dist/types/types-export.d.ts +2 -1
- package/dist/types/types.d.ts +20 -2
- package/package.json +1 -1
|
@@ -50,13 +50,17 @@ declare const LazyWalletRegistry: readonly [{
|
|
|
50
50
|
readonly type: "tuple[][]";
|
|
51
51
|
readonly internalType: "struct DataBundleDetails[][]";
|
|
52
52
|
readonly components: readonly [{
|
|
53
|
-
readonly name: "
|
|
54
|
-
readonly type: "
|
|
55
|
-
readonly internalType: "
|
|
53
|
+
readonly name: "id";
|
|
54
|
+
readonly type: "bytes32";
|
|
55
|
+
readonly internalType: "bytes32";
|
|
56
56
|
}, {
|
|
57
|
-
readonly name: "
|
|
58
|
-
readonly type: "
|
|
59
|
-
readonly internalType: "
|
|
57
|
+
readonly name: "priceUSDCents";
|
|
58
|
+
readonly type: "uint64";
|
|
59
|
+
readonly internalType: "uint64";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "settlement";
|
|
62
|
+
readonly type: "uint8";
|
|
63
|
+
readonly internalType: "enum Settlement";
|
|
60
64
|
}];
|
|
61
65
|
}];
|
|
62
66
|
readonly outputs: readonly [];
|
|
@@ -138,13 +142,17 @@ declare const LazyWalletRegistry: readonly [{
|
|
|
138
142
|
readonly internalType: "uint256";
|
|
139
143
|
}];
|
|
140
144
|
readonly outputs: readonly [{
|
|
141
|
-
readonly name: "
|
|
142
|
-
readonly type: "
|
|
143
|
-
readonly internalType: "
|
|
145
|
+
readonly name: "id";
|
|
146
|
+
readonly type: "bytes32";
|
|
147
|
+
readonly internalType: "bytes32";
|
|
144
148
|
}, {
|
|
145
|
-
readonly name: "
|
|
146
|
-
readonly type: "
|
|
147
|
-
readonly internalType: "
|
|
149
|
+
readonly name: "priceUSDCents";
|
|
150
|
+
readonly type: "uint64";
|
|
151
|
+
readonly internalType: "uint64";
|
|
152
|
+
}, {
|
|
153
|
+
readonly name: "settlement";
|
|
154
|
+
readonly type: "uint8";
|
|
155
|
+
readonly internalType: "enum Settlement";
|
|
148
156
|
}];
|
|
149
157
|
readonly stateMutability: "view";
|
|
150
158
|
}, {
|
|
@@ -277,6 +285,20 @@ declare const LazyWalletRegistry: readonly [{
|
|
|
277
285
|
readonly internalType: "uint256";
|
|
278
286
|
}];
|
|
279
287
|
readonly stateMutability: "view";
|
|
288
|
+
}, {
|
|
289
|
+
readonly type: "function";
|
|
290
|
+
readonly name: "outstandingHistoryEntries";
|
|
291
|
+
readonly inputs: readonly [{
|
|
292
|
+
readonly name: "_eSIMIdentifier";
|
|
293
|
+
readonly type: "string";
|
|
294
|
+
readonly internalType: "string";
|
|
295
|
+
}];
|
|
296
|
+
readonly outputs: readonly [{
|
|
297
|
+
readonly name: "";
|
|
298
|
+
readonly type: "uint256";
|
|
299
|
+
readonly internalType: "uint256";
|
|
300
|
+
}];
|
|
301
|
+
readonly stateMutability: "view";
|
|
280
302
|
}, {
|
|
281
303
|
readonly type: "function";
|
|
282
304
|
readonly name: "owner";
|
|
@@ -430,13 +452,17 @@ declare const LazyWalletRegistry: readonly [{
|
|
|
430
452
|
readonly indexed: false;
|
|
431
453
|
readonly internalType: "struct DataBundleDetails[]";
|
|
432
454
|
readonly components: readonly [{
|
|
433
|
-
readonly name: "
|
|
434
|
-
readonly type: "
|
|
435
|
-
readonly internalType: "
|
|
455
|
+
readonly name: "id";
|
|
456
|
+
readonly type: "bytes32";
|
|
457
|
+
readonly internalType: "bytes32";
|
|
436
458
|
}, {
|
|
437
|
-
readonly name: "
|
|
438
|
-
readonly type: "
|
|
439
|
-
readonly internalType: "
|
|
459
|
+
readonly name: "priceUSDCents";
|
|
460
|
+
readonly type: "uint64";
|
|
461
|
+
readonly internalType: "uint64";
|
|
462
|
+
}, {
|
|
463
|
+
readonly name: "settlement";
|
|
464
|
+
readonly type: "uint8";
|
|
465
|
+
readonly internalType: "enum Settlement";
|
|
440
466
|
}];
|
|
441
467
|
}];
|
|
442
468
|
readonly anonymous: false;
|
|
@@ -459,13 +485,17 @@ declare const LazyWalletRegistry: readonly [{
|
|
|
459
485
|
readonly indexed: false;
|
|
460
486
|
readonly internalType: "struct DataBundleDetails[]";
|
|
461
487
|
readonly components: readonly [{
|
|
462
|
-
readonly name: "
|
|
463
|
-
readonly type: "
|
|
464
|
-
readonly internalType: "
|
|
488
|
+
readonly name: "id";
|
|
489
|
+
readonly type: "bytes32";
|
|
490
|
+
readonly internalType: "bytes32";
|
|
491
|
+
}, {
|
|
492
|
+
readonly name: "priceUSDCents";
|
|
493
|
+
readonly type: "uint64";
|
|
494
|
+
readonly internalType: "uint64";
|
|
465
495
|
}, {
|
|
466
|
-
readonly name: "
|
|
467
|
-
readonly type: "
|
|
468
|
-
readonly internalType: "
|
|
496
|
+
readonly name: "settlement";
|
|
497
|
+
readonly type: "uint8";
|
|
498
|
+
readonly internalType: "enum Settlement";
|
|
469
499
|
}];
|
|
470
500
|
}];
|
|
471
501
|
readonly anonymous: false;
|
|
@@ -903,6 +933,10 @@ declare const LazyWalletRegistry: readonly [{
|
|
|
903
933
|
readonly type: "uint256";
|
|
904
934
|
readonly internalType: "uint256";
|
|
905
935
|
}];
|
|
936
|
+
}, {
|
|
937
|
+
readonly type: "error";
|
|
938
|
+
readonly name: "SettlementNotAsserted";
|
|
939
|
+
readonly inputs: readonly [];
|
|
906
940
|
}, {
|
|
907
941
|
readonly type: "error";
|
|
908
942
|
readonly name: "TooManyESIMWallets";
|