@twin.org/dlt-iota 0.0.3-next.9 → 0.9.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.
Files changed (60) hide show
  1. package/dist/es/index.js +7 -3
  2. package/dist/es/index.js.map +1 -1
  3. package/dist/es/iota.js +356 -93
  4. package/dist/es/iota.js.map +1 -1
  5. package/dist/es/iotaIdentityUtils.js +2 -4
  6. package/dist/es/iotaIdentityUtils.js.map +1 -1
  7. package/dist/es/iotaSmartContractUtils.js +31 -27
  8. package/dist/es/iotaSmartContractUtils.js.map +1 -1
  9. package/dist/es/models/IAdminCapFields.js.map +1 -1
  10. package/dist/es/models/IGasStationExecuteResponse.js.map +1 -1
  11. package/dist/es/models/IIotaConfig.js.map +1 -1
  12. package/dist/es/models/IIotaControllerCapInfo.js.map +1 -1
  13. package/dist/es/models/IIotaResponseOptions.js.map +1 -1
  14. package/dist/es/models/IMigrationStateFields.js.map +1 -1
  15. package/dist/es/models/ISmartContractObject.js.map +1 -1
  16. package/dist/es/models/ITransactionSigner.js +2 -0
  17. package/dist/es/models/ITransactionSigner.js.map +1 -0
  18. package/dist/es/vaultJwkStorage.js +71 -0
  19. package/dist/es/vaultJwkStorage.js.map +1 -0
  20. package/dist/es/vaultJwtSigner.js +49 -0
  21. package/dist/es/vaultJwtSigner.js.map +1 -0
  22. package/dist/es/vaultSigner.js +60 -0
  23. package/dist/es/vaultSigner.js.map +1 -0
  24. package/dist/es/vaultTransactionSigner.js +74 -0
  25. package/dist/es/vaultTransactionSigner.js.map +1 -0
  26. package/dist/types/index.d.ts +7 -3
  27. package/dist/types/iota.d.ts +82 -53
  28. package/dist/types/iotaIdentityUtils.d.ts +2 -4
  29. package/dist/types/iotaSmartContractUtils.d.ts +18 -17
  30. package/dist/types/models/IAdminCapFields.d.ts +2 -2
  31. package/dist/types/models/IGasStationExecuteResponse.d.ts +1 -3
  32. package/dist/types/models/IIotaConfig.d.ts +5 -0
  33. package/dist/types/models/IIotaControllerCapInfo.d.ts +3 -6
  34. package/dist/types/models/IIotaResponseOptions.d.ts +1 -1
  35. package/dist/types/models/IMigrationStateFields.d.ts +2 -2
  36. package/dist/types/models/ISmartContractObject.d.ts +2 -2
  37. package/dist/types/models/ITransactionSigner.d.ts +27 -0
  38. package/dist/types/vaultJwkStorage.d.ts +50 -0
  39. package/dist/types/vaultJwtSigner.d.ts +26 -0
  40. package/dist/types/vaultSigner.d.ts +32 -0
  41. package/dist/types/vaultTransactionSigner.d.ts +39 -0
  42. package/docs/changelog.md +112 -0
  43. package/docs/examples.md +6 -13
  44. package/docs/reference/classes/Iota.md +325 -189
  45. package/docs/reference/classes/IotaIdentityUtils.md +2 -4
  46. package/docs/reference/classes/IotaSmartContractUtils.md +57 -40
  47. package/docs/reference/classes/VaultJwtSigner.md +71 -0
  48. package/docs/reference/classes/VaultSigner.md +106 -0
  49. package/docs/reference/classes/VaultTransactionSigner.md +122 -0
  50. package/docs/reference/index.md +4 -0
  51. package/docs/reference/interfaces/IAdminCapFields.md +2 -2
  52. package/docs/reference/interfaces/IGasStationExecuteResponse.md +1 -3
  53. package/docs/reference/interfaces/IIotaConfig.md +14 -0
  54. package/docs/reference/interfaces/IIotaControllerCapInfo.md +3 -6
  55. package/docs/reference/interfaces/IIotaResponseOptions.md +1 -1
  56. package/docs/reference/interfaces/IMigrationStateFields.md +2 -2
  57. package/docs/reference/interfaces/ISmartContractObject.md +2 -2
  58. package/docs/reference/interfaces/ITransactionSigner.md +67 -0
  59. package/locales/en.json +7 -1
  60. package/package.json +12 -12
package/docs/changelog.md CHANGED
@@ -1,5 +1,117 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.0](https://github.com/iotaledger/twin-dlt/compare/dlt-iota-v0.9.0...dlt-iota-v0.9.0) (2026-06-25)
4
+
5
+
6
+ ### Features
7
+
8
+ * adding gas station docker image config ([#24](https://github.com/iotaledger/twin-dlt/issues/24)) ([0663303](https://github.com/iotaledger/twin-dlt/commit/06633039598ccfe5b1cf0d72332327fc151dc5c9))
9
+ * blend transaction methods ([#13](https://github.com/iotaledger/twin-dlt/issues/13)) ([763a93c](https://github.com/iotaledger/twin-dlt/commit/763a93cf30eaa3872ac56fa9cef512d58cdb0208))
10
+ * gas station integration ([#17](https://github.com/iotaledger/twin-dlt/issues/17)) ([23c7c96](https://github.com/iotaledger/twin-dlt/commit/23c7c96858dd6a91d01306983080e1eb8860115a))
11
+ * Get Key Pair method in the iota dlt ([#5](https://github.com/iotaledger/twin-dlt/issues/5)) ([3179854](https://github.com/iotaledger/twin-dlt/commit/31798540b9b8be68079ba1696b29a11c84c40fa5))
12
+ * github action simplification and readme update ([#25](https://github.com/iotaledger/twin-dlt/issues/25)) ([b1a3988](https://github.com/iotaledger/twin-dlt/commit/b1a3988fd5e8b4bef31208a2da6d0d5fff13758d))
13
+ * improve error handling ([179188d](https://github.com/iotaledger/twin-dlt/commit/179188dce9bbc6add5f537cb83e50cac817e5cf9))
14
+ * improve prepareAndPostGasStationTransaction with options parameter ([#20](https://github.com/iotaledger/twin-dlt/issues/20)) ([778365d](https://github.com/iotaledger/twin-dlt/commit/778365d535965fb67583db93d9611bfbb944b64d))
15
+ * rebased release ([8ce044b](https://github.com/iotaledger/twin-dlt/commit/8ce044b93a596415852b1f7b75c3e315fe2c6b6f))
16
+ * release to production ([fe6a7f7](https://github.com/iotaledger/twin-dlt/commit/fe6a7f751138ea92ac22c70438261b0cea6fb238))
17
+ * release to production ([#82](https://github.com/iotaledger/twin-dlt/issues/82)) ([b628936](https://github.com/iotaledger/twin-dlt/commit/b62893622f0fe2d4a817297ebed39066f40c0bce))
18
+ * release to production ([#86](https://github.com/iotaledger/twin-dlt/issues/86)) ([687e24b](https://github.com/iotaledger/twin-dlt/commit/687e24b0061231900f5e5ac8bb8b7ef2a2bdc830))
19
+ * update dependencies ([f7b71c2](https://github.com/iotaledger/twin-dlt/commit/f7b71c24274b71e2d37c26c4a7e5e6d9df1dc9b7))
20
+ * use shared store mechanism ([#10](https://github.com/iotaledger/twin-dlt/issues/10)) ([ce36214](https://github.com/iotaledger/twin-dlt/commit/ce36214577f02cbb9642f831cb2c21335c31cc9a))
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * isAbortError static method ([2544c92](https://github.com/iotaledger/twin-dlt/commit/2544c926a5f0c4505e9f2c23d4380ced368f8470))
26
+
27
+ ## [0.9.0-next.1](https://github.com/iotaledger/twin-dlt/compare/dlt-iota-v0.9.0-next.0...dlt-iota-v0.9.0-next.1) (2026-06-23)
28
+
29
+
30
+ ### Features
31
+
32
+ * add context id features ([#51](https://github.com/iotaledger/twin-dlt/issues/51)) ([fb68498](https://github.com/iotaledger/twin-dlt/commit/fb6849897957904ec90cf6368153aeff3bef261a))
33
+ * add IotaIdentityUtils to resolve IOTA identity controller cap info ([#57](https://github.com/iotaledger/twin-dlt/issues/57)) ([f15281a](https://github.com/iotaledger/twin-dlt/commit/f15281af3b2812bde5130a1813f9c0143f1462bf))
34
+ * add validate-locales ([8465099](https://github.com/iotaledger/twin-dlt/commit/8465099626ab1891d419a35870fae447efc3008d))
35
+ * add vault signers ([#76](https://github.com/iotaledger/twin-dlt/issues/76)) ([bfdd701](https://github.com/iotaledger/twin-dlt/commit/bfdd701a010ad45d4f0cffb06d829360cf380a40))
36
+ * adding gas station docker image config ([#24](https://github.com/iotaledger/twin-dlt/issues/24)) ([0663303](https://github.com/iotaledger/twin-dlt/commit/06633039598ccfe5b1cf0d72332327fc151dc5c9))
37
+ * blend transaction methods ([#13](https://github.com/iotaledger/twin-dlt/issues/13)) ([763a93c](https://github.com/iotaledger/twin-dlt/commit/763a93cf30eaa3872ac56fa9cef512d58cdb0208))
38
+ * bytecode change detection ([#43](https://github.com/iotaledger/twin-dlt/issues/43)) ([528469c](https://github.com/iotaledger/twin-dlt/commit/528469c1e4f032c6a936a9724a692abe403d92f6))
39
+ * consolidate environment management ([#41](https://github.com/iotaledger/twin-dlt/issues/41)) ([add1618](https://github.com/iotaledger/twin-dlt/commit/add161828e5dc42880fb0a5f9d3e61e611cf92bb))
40
+ * eslint migration to flat config ([da1d12d](https://github.com/iotaledger/twin-dlt/commit/da1d12dcf5b24e7ba6204f540c27de191bca098e))
41
+ * gas station integration ([#17](https://github.com/iotaledger/twin-dlt/issues/17)) ([23c7c96](https://github.com/iotaledger/twin-dlt/commit/23c7c96858dd6a91d01306983080e1eb8860115a))
42
+ * Get Key Pair method in the iota dlt ([#5](https://github.com/iotaledger/twin-dlt/issues/5)) ([3179854](https://github.com/iotaledger/twin-dlt/commit/31798540b9b8be68079ba1696b29a11c84c40fa5))
43
+ * github action simplification and readme update ([#25](https://github.com/iotaledger/twin-dlt/issues/25)) ([b1a3988](https://github.com/iotaledger/twin-dlt/commit/b1a3988fd5e8b4bef31208a2da6d0d5fff13758d))
44
+ * improve error handling ([179188d](https://github.com/iotaledger/twin-dlt/commit/179188dce9bbc6add5f537cb83e50cac817e5cf9))
45
+ * improve prepareAndPostGasStationTransaction with options parameter ([#20](https://github.com/iotaledger/twin-dlt/issues/20)) ([778365d](https://github.com/iotaledger/twin-dlt/commit/778365d535965fb67583db93d9611bfbb944b64d))
46
+ * increase default gas reservation duration and make configurable ([3e16bd9](https://github.com/iotaledger/twin-dlt/commit/3e16bd9a9bf15e5a9686c36e9bb5ed5ee2dee476))
47
+ * private statics ([f6b3684](https://github.com/iotaledger/twin-dlt/commit/f6b3684469256e62d55c250663780d70106b1343))
48
+ * rebased release ([8ce044b](https://github.com/iotaledger/twin-dlt/commit/8ce044b93a596415852b1f7b75c3e315fe2c6b6f))
49
+ * support alternate abort error format ([3e7ffa1](https://github.com/iotaledger/twin-dlt/commit/3e7ffa117f4bfc121da8cdc79f69d762b35a1638))
50
+ * support alternate abort error format ([72c4136](https://github.com/iotaledger/twin-dlt/commit/72c41364f0ff8fd5e5859a096c05eaba46e353c7))
51
+ * support more abort code errors formats ([b6d0d88](https://github.com/iotaledger/twin-dlt/commit/b6d0d880e62175de2d0d0c80d5df8c84605a6759))
52
+ * typescript 6 update ([94a1ed6](https://github.com/iotaledger/twin-dlt/commit/94a1ed60e1da9847a29dc9cc85669067725edcf8))
53
+ * update dependencies ([cd1bdef](https://github.com/iotaledger/twin-dlt/commit/cd1bdef487bb3cfe3ea57f584395ad2ae1105245))
54
+ * update dependencies ([bfbe8fc](https://github.com/iotaledger/twin-dlt/commit/bfbe8fcfda80aa59d04f4ade3e4012e5291c8877))
55
+ * update dependencies ([f7b71c2](https://github.com/iotaledger/twin-dlt/commit/f7b71c24274b71e2d37c26c4a7e5e6d9df1dc9b7))
56
+ * update framework core ([79fc4b9](https://github.com/iotaledger/twin-dlt/commit/79fc4b961bd755437cad98d733ca9e25476bc03f))
57
+ * upgrade capabilities ([#32](https://github.com/iotaledger/twin-dlt/issues/32)) ([437219f](https://github.com/iotaledger/twin-dlt/commit/437219f0f784ec38353c01e1c8ce6bfba3b1b530))
58
+ * use bip 44 path for chunks ([c5f8b1c](https://github.com/iotaledger/twin-dlt/commit/c5f8b1c659d33a117a8baa785f1981e557996f5f))
59
+ * use shared store mechanism ([#10](https://github.com/iotaledger/twin-dlt/issues/10)) ([ce36214](https://github.com/iotaledger/twin-dlt/commit/ce36214577f02cbb9642f831cb2c21335c31cc9a))
60
+
61
+
62
+ ### Bug Fixes
63
+
64
+ * added missing dependency ([#35](https://github.com/iotaledger/twin-dlt/issues/35)) ([c280e8a](https://github.com/iotaledger/twin-dlt/commit/c280e8aba583a957f89929dbe5105352e59c4c3f))
65
+ * buffer usage required for identity ([#60](https://github.com/iotaledger/twin-dlt/issues/60)) ([0ba7d16](https://github.com/iotaledger/twin-dlt/commit/0ba7d165662b0083aa2b4c1325dd8c2e65defa2e))
66
+ * isAbortError static method ([2544c92](https://github.com/iotaledger/twin-dlt/commit/2544c926a5f0c4505e9f2c23d4380ced368f8470))
67
+ * missing dependency ([40ec9bc](https://github.com/iotaledger/twin-dlt/commit/40ec9bce5936c801f22d499fe1098884b2c1974d))
68
+ * modifying logging type param ([#36](https://github.com/iotaledger/twin-dlt/issues/36)) ([b884fcc](https://github.com/iotaledger/twin-dlt/commit/b884fccef5bea5c6818cf8bfa8af197d3622cac6))
69
+ * use async getStore in tests ([0a7d4ac](https://github.com/iotaledger/twin-dlt/commit/0a7d4ac3e524481c2ca49d7fbb3507556b42473e))
70
+ * use async getStore in tests ([39a533d](https://github.com/iotaledger/twin-dlt/commit/39a533d9e2f806add624fc3f7ea7817f4b4c89f1))
71
+
72
+ ## [0.0.3-next.15](https://github.com/iotaledger/twin-dlt/compare/dlt-iota-v0.0.3-next.14...dlt-iota-v0.0.3-next.15) (2026-06-17)
73
+
74
+
75
+ ### Features
76
+
77
+ * add vault signers ([#76](https://github.com/iotaledger/twin-dlt/issues/76)) ([bfdd701](https://github.com/iotaledger/twin-dlt/commit/bfdd701a010ad45d4f0cffb06d829360cf380a40))
78
+
79
+ ## [0.0.3-next.14](https://github.com/iotaledger/twin-dlt/compare/dlt-iota-v0.0.3-next.13...dlt-iota-v0.0.3-next.14) (2026-06-15)
80
+
81
+
82
+ ### Bug Fixes
83
+
84
+ * use async getStore in tests ([0a7d4ac](https://github.com/iotaledger/twin-dlt/commit/0a7d4ac3e524481c2ca49d7fbb3507556b42473e))
85
+ * use async getStore in tests ([39a533d](https://github.com/iotaledger/twin-dlt/commit/39a533d9e2f806add624fc3f7ea7817f4b4c89f1))
86
+
87
+ ## [0.0.3-next.13](https://github.com/iotaledger/twin-dlt/compare/dlt-iota-v0.0.3-next.12...dlt-iota-v0.0.3-next.13) (2026-05-20)
88
+
89
+
90
+ ### Features
91
+
92
+ * update dependencies ([cd1bdef](https://github.com/iotaledger/twin-dlt/commit/cd1bdef487bb3cfe3ea57f584395ad2ae1105245))
93
+
94
+ ## [0.0.3-next.12](https://github.com/iotaledger/twin-dlt/compare/dlt-iota-v0.0.3-next.11...dlt-iota-v0.0.3-next.12) (2026-05-12)
95
+
96
+
97
+ ### Features
98
+
99
+ * use bip 44 path for chunks ([c5f8b1c](https://github.com/iotaledger/twin-dlt/commit/c5f8b1c659d33a117a8baa785f1981e557996f5f))
100
+
101
+ ## [0.0.3-next.11](https://github.com/iotaledger/twin-dlt/compare/dlt-iota-v0.0.3-next.10...dlt-iota-v0.0.3-next.11) (2026-05-12)
102
+
103
+
104
+ ### Features
105
+
106
+ * increase default gas reservation duration and make configurable ([3e16bd9](https://github.com/iotaledger/twin-dlt/commit/3e16bd9a9bf15e5a9686c36e9bb5ed5ee2dee476))
107
+
108
+ ## [0.0.3-next.10](https://github.com/iotaledger/twin-dlt/compare/dlt-iota-v0.0.3-next.9...dlt-iota-v0.0.3-next.10) (2026-05-12)
109
+
110
+
111
+ ### Features
112
+
113
+ * typescript 6 update ([94a1ed6](https://github.com/iotaledger/twin-dlt/commit/94a1ed60e1da9847a29dc9cc85669067725edcf8))
114
+
3
115
  ## [0.0.3-next.9](https://github.com/iotaledger/twin-dlt/compare/dlt-iota-v0.0.3-next.8...dlt-iota-v0.0.3-next.9) (2026-05-11)
4
116
 
5
117
 
package/docs/examples.md CHANGED
@@ -31,9 +31,11 @@ const mnemonic =
31
31
  'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about';
32
32
  const seed = Bip39.mnemonicToSeed(mnemonic);
33
33
 
34
- const addresses = Iota.getAddresses(seed, Iota.DEFAULT_COIN_TYPE, 0, 0, 3);
35
- const keyPair = Iota.getKeyPair(seed, Iota.DEFAULT_COIN_TYPE, 0, 0);
36
- const found = Iota.findAddress(50, Iota.DEFAULT_COIN_TYPE, seed, addresses[0]);
34
+ const vault = VaultConnectorFactort.get('vault');
35
+
36
+ const addresses = Iota.getAddresses(vault, {}, 0, 0, 3);
37
+ const keyPair = Iota.getKeyPair(vault, {}, 0, 0);
38
+ const found = Iota.findAddress(vault, {}, addresses[0], 50);
37
39
 
38
40
  console.log(addresses.length); // 3
39
41
  console.log(found.address === addresses[0]); // true
@@ -65,15 +67,7 @@ const vaultConnector: IVaultConnector = {
65
67
  }
66
68
  throw new Error('Unknown key');
67
69
  }
68
- } as IVaultConnector;
69
-
70
- const mnemonicKey = Iota.buildMnemonicKey('deployer', config.vaultMnemonicId);
71
- const seedKey = Iota.buildSeedKey('deployer', config.vaultSeedId);
72
- const seed = await Iota.getSeed(config, vaultConnector, 'deployer');
73
-
74
- console.log(mnemonicKey); // deployer/deployment-mnemonic
75
- console.log(seedKey); // deployer/deployment-seed
76
- console.log(seed.length); // 32
70
+ };
77
71
  ```
78
72
 
79
73
  ```typescript
@@ -351,7 +345,6 @@ await IotaSmartContractUtils.migrateSmartContract(
351
345
  config,
352
346
  client,
353
347
  vaultConnector,
354
- walletConnector,
355
348
  logging,
356
349
  90_000_000,
357
350
  'controller',