@twin.org/dlt-iota 0.0.2-next.9 → 0.0.3-next.1
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 +1 -81
- package/dist/es/index.js +19 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/iota.js +508 -0
- package/dist/es/iota.js.map +1 -0
- package/dist/es/iotaSmartContractUtils.js +413 -0
- package/dist/es/iotaSmartContractUtils.js.map +1 -0
- package/dist/es/models/IAdminCapFields.js +4 -0
- package/dist/es/models/IAdminCapFields.js.map +1 -0
- package/dist/es/models/IContractData.js +4 -0
- package/dist/es/models/IContractData.js.map +1 -0
- package/dist/es/models/IGasReservationResult.js +2 -0
- package/dist/es/models/IGasReservationResult.js.map +1 -0
- package/dist/es/models/IGasStationConfig.js +4 -0
- package/dist/es/models/IGasStationConfig.js.map +1 -0
- package/dist/es/models/IGasStationExecuteResponse.js +4 -0
- package/dist/es/models/IGasStationExecuteResponse.js.map +1 -0
- package/dist/es/models/IGasStationReserveGasResponse.js +2 -0
- package/dist/es/models/IGasStationReserveGasResponse.js.map +1 -0
- package/dist/es/models/IGasStationReserveGasResult.js +2 -0
- package/dist/es/models/IGasStationReserveGasResult.js.map +1 -0
- package/dist/es/models/IIotaConfig.js +2 -0
- package/dist/es/models/IIotaConfig.js.map +1 -0
- package/dist/es/models/IIotaDryRun.js +2 -0
- package/dist/es/models/IIotaDryRun.js.map +1 -0
- package/dist/es/models/IIotaResponseOptions.js +2 -0
- package/dist/es/models/IIotaResponseOptions.js.map +1 -0
- package/dist/es/models/IMigrationStateFields.js +4 -0
- package/dist/es/models/IMigrationStateFields.js.map +1 -0
- package/dist/es/models/ISmartContractDeployments.js +2 -0
- package/dist/es/models/ISmartContractDeployments.js.map +1 -0
- package/dist/es/models/ISmartContractObject.js +4 -0
- package/dist/es/models/ISmartContractObject.js.map +1 -0
- package/dist/es/models/networkTypes.js +21 -0
- package/dist/es/models/networkTypes.js.map +1 -0
- package/dist/types/index.d.ts +16 -16
- package/dist/types/iota.d.ts +8 -4
- package/dist/types/iotaSmartContractUtils.d.ts +2 -2
- package/dist/types/models/IGasStationReserveGasResponse.d.ts +1 -1
- package/dist/types/models/IIotaConfig.d.ts +1 -1
- package/dist/types/models/ISmartContractDeployments.d.ts +2 -2
- package/docs/changelog.md +44 -0
- package/docs/reference/classes/Iota.md +11 -3
- package/docs/reference/classes/IotaSmartContractUtils.md +3 -3
- package/docs/reference/interfaces/IGasStationExecuteResponse.md +1 -1
- package/docs/reference/interfaces/IGasStationReserveGasResponse.md +1 -1
- package/locales/en.json +6 -2
- package/package.json +21 -12
- package/dist/cjs/index.cjs +0 -946
- package/dist/esm/index.mjs +0 -942
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IGasStationExecuteResponse.js","sourceRoot":"","sources":["../../../src/models/IGasStationExecuteResponse.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Interface for the gas station execute transaction response.\n */\nexport interface IGasStationExecuteResponse {\n\t/**\n\t * The transaction effects from the IOTA network.\n\t * This contains the full IOTA transaction effects object.\n\t */\n\teffects: {\n\t\t/**\n\t\t * Additional effects data from the IOTA network.\n\t\t * This includes messageVersion, status, executedEpoch, gasUsed, etc.\n\t\t */\n\t\t[key: string]: unknown;\n\n\t\t/**\n\t\t * The transaction digest.\n\t\t */\n\t\ttransactionDigest: string;\n\t};\n\n\t/**\n\t * Error message if the request failed.\n\t */\n\terror?: string | null;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IGasStationReserveGasResponse.js","sourceRoot":"","sources":["../../../src/models/IGasStationReserveGasResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IGasStationReserveGasResult } from \"./IGasStationReserveGasResult.js\";\n\n/**\n * Interface for the gas station reserve gas response.\n */\nexport interface IGasStationReserveGasResponse {\n\t/**\n\t * The reservation result.\n\t */\n\tresult: IGasStationReserveGasResult;\n\n\t/**\n\t * Error message if the request failed.\n\t */\n\terror?: string | null;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IGasStationReserveGasResult.js","sourceRoot":"","sources":["../../../src/models/IGasStationReserveGasResult.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectRef } from \"@iota/iota-sdk/transactions\";\n\n/**\n * Interface for the gas reservation result returned by the gas station.\n * This matches the snake_case format returned by the gas station API.\n */\nexport interface IGasStationReserveGasResult {\n\t/**\n\t * The sponsor's on-chain address.\n\t */\n\tsponsor_address: string;\n\n\t/**\n\t * An ID used to reference this particular gas reservation.\n\t */\n\treservation_id: number;\n\n\t/**\n\t * References to the sponsor's coins that will pay gas.\n\t */\n\tgas_coins: ObjectRef[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IIotaConfig.js","sourceRoot":"","sources":["../../../src/models/IIotaConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IotaClientOptions } from \"@iota/iota-sdk/client\";\nimport type { IGasStationConfig } from \"./IGasStationConfig.js\";\n\n/**\n * Configuration for IOTA.\n */\nexport interface IIotaConfig {\n\t/**\n\t * The configuration for the client.\n\t */\n\tclientOptions: IotaClientOptions;\n\n\t/**\n\t * The network the operations are being performed on.\n\t */\n\tnetwork: string;\n\n\t/**\n\t * The id of the entry in the vault containing the mnemonic.\n\t * @default mnemonic\n\t */\n\tvaultMnemonicId?: string;\n\n\t/**\n\t * The id of the entry in the vault containing the seed.\n\t * @default seed\n\t */\n\tvaultSeedId?: string;\n\n\t/**\n\t * The coin type.\n\t * @default IOTA 4218\n\t */\n\tcoinType?: number;\n\n\t/**\n\t * The maximum range to scan for addresses.\n\t * @default 1000\n\t */\n\tmaxAddressScanRange?: number;\n\n\t/**\n\t * The length of time to wait for the inclusion of a transaction in seconds.\n\t * @default 60\n\t */\n\tinclusionTimeoutSeconds?: number;\n\n\t/**\n\t * Gas station configuration for sponsored transactions.\n\t * If provided, transactions will be processed through the gas station.\n\t */\n\tgasStation?: IGasStationConfig;\n\n\t/**\n\t * The default gas budget for all transactions (including sponsored and direct).\n\t * @default 50000000\n\t */\n\tgasBudget?: number;\n\n\t/**\n\t * Enable cost logging for transactions.\n\t * @default false\n\t */\n\tenableCostLogging?: boolean;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IIotaDryRun.js","sourceRoot":"","sources":["../../../src/models/IIotaDryRun.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { BalanceChange, IotaEvent, IotaObjectChange } from \"@iota/iota-sdk/client\";\n\n/**\n * Interface for the dry run transaction response.\n */\nexport interface IIotaDryRun {\n\t/**\n\t * The status of the dry run.\n\t */\n\tstatus: string;\n\n\t/**\n\t * The costs associated with the transaction.\n\t */\n\tcosts: {\n\t\t/**\n\t\t * The computation cost.\n\t\t */\n\t\tcomputationCost: string;\n\n\t\t/**\n\t\t * The computation cost that was burned.\n\t\t */\n\t\tcomputationCostBurned: string;\n\n\t\t/**\n\t\t * The storage cost.\n\t\t */\n\t\tstorageCost: string;\n\n\t\t/**\n\t\t * The storage rebate.\n\t\t */\n\t\tstorageRebate: string;\n\n\t\t/**\n\t\t * The non-refundable storage fee.\n\t\t */\n\t\tnonRefundableStorageFee: string;\n\t};\n\n\t/**\n\t * The events emitted during the dry run.\n\t */\n\tevents: IotaEvent[];\n\n\t/**\n\t * The balance changes that occurred during the dry run.\n\t */\n\tbalanceChanges: BalanceChange[];\n\n\t/**\n\t * The object changes that occurred during the dry run.\n\t */\n\tobjectChanges: IotaObjectChange[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IIotaResponseOptions.js","sourceRoot":"","sources":["../../../src/models/IIotaResponseOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IotaTransactionBlockResponseOptions } from \"@iota/iota-sdk/client\";\n\n/**\n * Configuration for IOTA.\n */\nexport interface IIotaResponseOptions extends IotaTransactionBlockResponseOptions {\n\t/**\n\t * Wait for confirmation of the transaction.\n\t * @default true\n\t */\n\twaitForConfirmation?: boolean;\n\n\t/**\n\t * Dry run the transaction with this label, if not set no dry run will occur.\n\t */\n\tdryRunLabel?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IMigrationStateFields.js","sourceRoot":"","sources":["../../../src/models/IMigrationStateFields.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Generic interface representing the storage fields of a MigrationState object.\n */\nexport interface IMigrationStateFields {\n\t/**\n\t * The ID of the MigrationState object.\n\t */\n\tid: {\n\t\t/**\n\t\t * The ID of the MigrationState object.\n\t\t */\n\t\tid: string; // UID is an object with an 'id' field\n\t};\n\n\t/**\n\t * Whether migration is currently enabled.\n\t */\n\tenabled: boolean;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISmartContractDeployments.js","sourceRoot":"","sources":["../../../src/models/ISmartContractDeployments.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IContractData } from \"./IContractData.js\";\nimport type { NetworkTypes } from \"./networkTypes.js\";\n\n/**\n * Type for the smart-contract-deployments.json structure, mapping each network to its contract data.\n */\nexport type ISmartContractDeployments = {\n\t[K in NetworkTypes]?: IContractData;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISmartContractObject.js","sourceRoot":"","sources":["../../../src/models/ISmartContractObject.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Base interface for all smart contract objects with versioning support.\n */\nexport interface ISmartContractObject {\n\t/**\n\t * The ID of the smart contract object.\n\t */\n\tid: {\n\t\t/**\n\t\t * The ID of the smart contract object.\n\t\t */\n\t\tid: string; // UID is an object with an 'id' field\n\t};\n\n\t/**\n\t * The version of the contract that created this object.\n\t */\n\tversion: string;\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Network types supported for deployment
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const NetworkTypes = {
|
|
8
|
+
/**
|
|
9
|
+
* Testnet.
|
|
10
|
+
*/
|
|
11
|
+
Testnet: "testnet",
|
|
12
|
+
/**
|
|
13
|
+
* Devnet.
|
|
14
|
+
*/
|
|
15
|
+
Devnet: "devnet",
|
|
16
|
+
/**
|
|
17
|
+
* Mainnet.
|
|
18
|
+
*/
|
|
19
|
+
Mainnet: "mainnet"
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=networkTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkTypes.js","sourceRoot":"","sources":["../../../src/models/networkTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Network types supported for deployment\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const NetworkTypes = {\n\t/**\n\t * Testnet.\n\t */\n\tTestnet: \"testnet\",\n\t/**\n\t * Devnet.\n\t */\n\tDevnet: \"devnet\",\n\t/**\n\t * Mainnet.\n\t */\n\tMainnet: \"mainnet\"\n} as const;\n\n/**\n * Network types supported for deployment\n */\nexport type NetworkTypes = (typeof NetworkTypes)[keyof typeof NetworkTypes];\n"]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export * from "./iota";
|
|
2
|
-
export * from "./iotaSmartContractUtils";
|
|
3
|
-
export * from "./models/
|
|
4
|
-
export * from "./models/
|
|
5
|
-
export * from "./models/
|
|
6
|
-
export * from "./models/
|
|
7
|
-
export * from "./models/
|
|
8
|
-
export * from "./models/
|
|
9
|
-
export * from "./models/
|
|
10
|
-
export * from "./models/
|
|
11
|
-
export * from "./models/
|
|
12
|
-
export * from "./models/
|
|
13
|
-
export * from "./models/
|
|
14
|
-
export * from "./models/
|
|
15
|
-
export * from "./models/
|
|
16
|
-
export * from "./models/
|
|
1
|
+
export * from "./iota.js";
|
|
2
|
+
export * from "./iotaSmartContractUtils.js";
|
|
3
|
+
export * from "./models/IAdminCapFields.js";
|
|
4
|
+
export * from "./models/IContractData.js";
|
|
5
|
+
export * from "./models/IGasReservationResult.js";
|
|
6
|
+
export * from "./models/IGasStationConfig.js";
|
|
7
|
+
export * from "./models/IGasStationExecuteResponse.js";
|
|
8
|
+
export * from "./models/IGasStationReserveGasResponse.js";
|
|
9
|
+
export * from "./models/IGasStationReserveGasResult.js";
|
|
10
|
+
export * from "./models/IIotaConfig.js";
|
|
11
|
+
export * from "./models/IIotaDryRun.js";
|
|
12
|
+
export * from "./models/IIotaResponseOptions.js";
|
|
13
|
+
export * from "./models/IMigrationStateFields.js";
|
|
14
|
+
export * from "./models/ISmartContractDeployments.js";
|
|
15
|
+
export * from "./models/ISmartContractObject.js";
|
|
16
|
+
export * from "./models/networkTypes.js";
|
package/dist/types/iota.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { Transaction } from "@iota/iota-sdk/transactions";
|
|
|
3
3
|
import { type IError } from "@twin.org/core";
|
|
4
4
|
import type { ILoggingComponent } from "@twin.org/logging-models";
|
|
5
5
|
import type { IVaultConnector } from "@twin.org/vault-models";
|
|
6
|
-
import type { IGasReservationResult } from "./models/IGasReservationResult";
|
|
7
|
-
import type { IIotaConfig } from "./models/IIotaConfig";
|
|
8
|
-
import type { IIotaDryRun } from "./models/IIotaDryRun";
|
|
9
|
-
import type { IIotaResponseOptions } from "./models/IIotaResponseOptions";
|
|
6
|
+
import type { IGasReservationResult } from "./models/IGasReservationResult.js";
|
|
7
|
+
import type { IIotaConfig } from "./models/IIotaConfig.js";
|
|
8
|
+
import type { IIotaDryRun } from "./models/IIotaDryRun.js";
|
|
9
|
+
import type { IIotaResponseOptions } from "./models/IIotaResponseOptions.js";
|
|
10
10
|
/**
|
|
11
11
|
* Class for performing operations on IOTA.
|
|
12
12
|
*/
|
|
@@ -31,6 +31,10 @@ export declare class Iota {
|
|
|
31
31
|
* Default inclusion timeout.
|
|
32
32
|
*/
|
|
33
33
|
static readonly DEFAULT_INCLUSION_TIMEOUT: number;
|
|
34
|
+
/**
|
|
35
|
+
* Runtime name for the class.
|
|
36
|
+
*/
|
|
37
|
+
static readonly CLASS_NAME: string;
|
|
34
38
|
/**
|
|
35
39
|
* Create a new IOTA client.
|
|
36
40
|
* @param config The configuration.
|
|
@@ -2,8 +2,8 @@ import type { IotaClient } from "@iota/iota-sdk/client";
|
|
|
2
2
|
import type { ILoggingComponent } from "@twin.org/logging-models";
|
|
3
3
|
import type { IVaultConnector } from "@twin.org/vault-models";
|
|
4
4
|
import type { IWalletConnector } from "@twin.org/wallet-models";
|
|
5
|
-
import type { IIotaConfig } from "./models/IIotaConfig";
|
|
6
|
-
import type { ISmartContractDeployments } from "./models/ISmartContractDeployments";
|
|
5
|
+
import type { IIotaConfig } from "./models/IIotaConfig.js";
|
|
6
|
+
import type { ISmartContractDeployments } from "./models/ISmartContractDeployments.js";
|
|
7
7
|
/**
|
|
8
8
|
* Utility class providing common smart contract operations for IOTA-based contracts.
|
|
9
9
|
* This class uses composition pattern to provide shared functionality without inheritance complexity.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IContractData } from "./IContractData";
|
|
2
|
-
import type { NetworkTypes } from "./networkTypes";
|
|
1
|
+
import type { IContractData } from "./IContractData.js";
|
|
2
|
+
import type { NetworkTypes } from "./networkTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Type for the smart-contract-deployments.json structure, mapping each network to its contract data.
|
|
5
5
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @twin.org/dlt-iota - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.1](https://github.com/twinfoundation/dlt/compare/dlt-iota-v0.0.3-next.0...dlt-iota-v0.0.3-next.1) (2025-11-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add context id features ([#51](https://github.com/twinfoundation/dlt/issues/51)) ([fb68498](https://github.com/twinfoundation/dlt/commit/fb6849897957904ec90cf6368153aeff3bef261a))
|
|
9
|
+
* add validate-locales ([8465099](https://github.com/twinfoundation/dlt/commit/8465099626ab1891d419a35870fae447efc3008d))
|
|
10
|
+
* adding gas station docker image config ([#24](https://github.com/twinfoundation/dlt/issues/24)) ([0663303](https://github.com/twinfoundation/dlt/commit/06633039598ccfe5b1cf0d72332327fc151dc5c9))
|
|
11
|
+
* blend transaction methods ([#13](https://github.com/twinfoundation/dlt/issues/13)) ([763a93c](https://github.com/twinfoundation/dlt/commit/763a93cf30eaa3872ac56fa9cef512d58cdb0208))
|
|
12
|
+
* bytecode change detection ([#43](https://github.com/twinfoundation/dlt/issues/43)) ([528469c](https://github.com/twinfoundation/dlt/commit/528469c1e4f032c6a936a9724a692abe403d92f6))
|
|
13
|
+
* consolidate environment management ([#41](https://github.com/twinfoundation/dlt/issues/41)) ([add1618](https://github.com/twinfoundation/dlt/commit/add161828e5dc42880fb0a5f9d3e61e611cf92bb))
|
|
14
|
+
* eslint migration to flat config ([da1d12d](https://github.com/twinfoundation/dlt/commit/da1d12dcf5b24e7ba6204f540c27de191bca098e))
|
|
15
|
+
* gas station integration ([#17](https://github.com/twinfoundation/dlt/issues/17)) ([23c7c96](https://github.com/twinfoundation/dlt/commit/23c7c96858dd6a91d01306983080e1eb8860115a))
|
|
16
|
+
* Get Key Pair method in the iota dlt ([#5](https://github.com/twinfoundation/dlt/issues/5)) ([3179854](https://github.com/twinfoundation/dlt/commit/31798540b9b8be68079ba1696b29a11c84c40fa5))
|
|
17
|
+
* github action simplification and readme update ([#25](https://github.com/twinfoundation/dlt/issues/25)) ([b1a3988](https://github.com/twinfoundation/dlt/commit/b1a3988fd5e8b4bef31208a2da6d0d5fff13758d))
|
|
18
|
+
* improve error handling ([179188d](https://github.com/twinfoundation/dlt/commit/179188dce9bbc6add5f537cb83e50cac817e5cf9))
|
|
19
|
+
* improve prepareAndPostGasStationTransaction with options parameter ([#20](https://github.com/twinfoundation/dlt/issues/20)) ([778365d](https://github.com/twinfoundation/dlt/commit/778365d535965fb67583db93d9611bfbb944b64d))
|
|
20
|
+
* rebased release ([8ce044b](https://github.com/twinfoundation/dlt/commit/8ce044b93a596415852b1f7b75c3e315fe2c6b6f))
|
|
21
|
+
* update dependencies ([f7b71c2](https://github.com/twinfoundation/dlt/commit/f7b71c24274b71e2d37c26c4a7e5e6d9df1dc9b7))
|
|
22
|
+
* update framework core ([79fc4b9](https://github.com/twinfoundation/dlt/commit/79fc4b961bd755437cad98d733ca9e25476bc03f))
|
|
23
|
+
* upgrade capabilities ([#32](https://github.com/twinfoundation/dlt/issues/32)) ([437219f](https://github.com/twinfoundation/dlt/commit/437219f0f784ec38353c01e1c8ce6bfba3b1b530))
|
|
24
|
+
* use shared store mechanism ([#10](https://github.com/twinfoundation/dlt/issues/10)) ([ce36214](https://github.com/twinfoundation/dlt/commit/ce36214577f02cbb9642f831cb2c21335c31cc9a))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* added missing dependency ([#35](https://github.com/twinfoundation/dlt/issues/35)) ([c280e8a](https://github.com/twinfoundation/dlt/commit/c280e8aba583a957f89929dbe5105352e59c4c3f))
|
|
30
|
+
* isAbortError static method ([2544c92](https://github.com/twinfoundation/dlt/commit/2544c926a5f0c4505e9f2c23d4380ced368f8470))
|
|
31
|
+
* modifying logging type param ([#36](https://github.com/twinfoundation/dlt/issues/36)) ([b884fcc](https://github.com/twinfoundation/dlt/commit/b884fccef5bea5c6818cf8bfa8af197d3622cac6))
|
|
32
|
+
|
|
33
|
+
## [0.0.2-next.11](https://github.com/twinfoundation/dlt/compare/dlt-iota-v0.0.2-next.10...dlt-iota-v0.0.2-next.11) (2025-10-09)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* add validate-locales ([8465099](https://github.com/twinfoundation/dlt/commit/8465099626ab1891d419a35870fae447efc3008d))
|
|
39
|
+
|
|
40
|
+
## [0.0.2-next.10](https://github.com/twinfoundation/dlt/compare/dlt-iota-v0.0.2-next.9...dlt-iota-v0.0.2-next.10) (2025-09-29)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Miscellaneous Chores
|
|
44
|
+
|
|
45
|
+
* **dlt-iota:** Synchronize repo versions
|
|
46
|
+
|
|
3
47
|
## [0.0.2-next.9](https://github.com/twinfoundation/dlt/compare/dlt-iota-v0.0.2-next.8...dlt-iota-v0.0.2-next.9) (2025-09-22)
|
|
4
48
|
|
|
5
49
|
|
|
@@ -52,6 +52,14 @@ Default scan range.
|
|
|
52
52
|
|
|
53
53
|
Default inclusion timeout.
|
|
54
54
|
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### CLASS\_NAME
|
|
58
|
+
|
|
59
|
+
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
60
|
+
|
|
61
|
+
Runtime name for the class.
|
|
62
|
+
|
|
55
63
|
## Methods
|
|
56
64
|
|
|
57
65
|
### createClient()
|
|
@@ -226,7 +234,7 @@ The vault connector.
|
|
|
226
234
|
|
|
227
235
|
The logging component.
|
|
228
236
|
|
|
229
|
-
`
|
|
237
|
+
`ILoggingComponent` | `undefined`
|
|
230
238
|
|
|
231
239
|
##### identity
|
|
232
240
|
|
|
@@ -296,7 +304,7 @@ The vault connector.
|
|
|
296
304
|
|
|
297
305
|
The logging component.
|
|
298
306
|
|
|
299
|
-
`
|
|
307
|
+
`ILoggingComponent` | `undefined`
|
|
300
308
|
|
|
301
309
|
##### identity
|
|
302
310
|
|
|
@@ -551,7 +559,7 @@ The IOTA client.
|
|
|
551
559
|
|
|
552
560
|
The logging component.
|
|
553
561
|
|
|
554
|
-
`
|
|
562
|
+
`ILoggingComponent` | `undefined`
|
|
555
563
|
|
|
556
564
|
##### txb
|
|
557
565
|
|
|
@@ -60,7 +60,7 @@ The wallet connector for address generation.
|
|
|
60
60
|
|
|
61
61
|
Optional logging component.
|
|
62
62
|
|
|
63
|
-
`
|
|
63
|
+
`ILoggingComponent` | `undefined`
|
|
64
64
|
|
|
65
65
|
##### gasBudget
|
|
66
66
|
|
|
@@ -148,7 +148,7 @@ The wallet connector for address generation.
|
|
|
148
148
|
|
|
149
149
|
Optional logging component.
|
|
150
150
|
|
|
151
|
-
`
|
|
151
|
+
`ILoggingComponent` | `undefined`
|
|
152
152
|
|
|
153
153
|
##### gasBudget
|
|
154
154
|
|
|
@@ -230,7 +230,7 @@ The wallet connector for address generation.
|
|
|
230
230
|
|
|
231
231
|
Optional logging component.
|
|
232
232
|
|
|
233
|
-
`
|
|
233
|
+
`ILoggingComponent` | `undefined`
|
|
234
234
|
|
|
235
235
|
##### gasBudget
|
|
236
236
|
|
package/locales/en.json
CHANGED
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
"transactionFailed": "The transaction failed",
|
|
9
9
|
"addressNotFound": "The address is missing could not be found from the seed \"{address}\"",
|
|
10
10
|
"gasStationTransactionFailed": "The gas station transaction failed",
|
|
11
|
-
"
|
|
12
|
-
"gasStationExecutionFailed": "The gas station execution failed"
|
|
11
|
+
"dryRunFailed": "The dry run execution failed"
|
|
13
12
|
},
|
|
14
13
|
"iotaSmartContractUtils": {
|
|
15
14
|
"migrationFailed": "Smart contract migration failed",
|
|
@@ -28,5 +27,10 @@
|
|
|
28
27
|
"adminCapNotFound": "AdminCap object not found for type \"{adminCapType}\" and address \"{adminAddress}\"",
|
|
29
28
|
"migrationStateNotFound": "MigrationState object not found for type \"{migrationStateType}\" and address \"{adminAddress}\""
|
|
30
29
|
}
|
|
30
|
+
},
|
|
31
|
+
"info": {
|
|
32
|
+
"iota": {
|
|
33
|
+
"transactionCosts": "Transaction costs for operation \"{operation}\", \"{cost}\""
|
|
34
|
+
}
|
|
31
35
|
}
|
|
32
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/dlt-iota",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3-next.1",
|
|
4
4
|
"description": "DLT helpers for use with IOTA",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@iota/bcs": "1.
|
|
18
|
-
"@iota/iota-sdk": "1.
|
|
17
|
+
"@iota/bcs": "1.3.0",
|
|
18
|
+
"@iota/iota-sdk": "1.7.1",
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
20
|
"@twin.org/crypto": "next",
|
|
21
21
|
"@twin.org/logging-models": "next",
|
|
@@ -24,22 +24,31 @@
|
|
|
24
24
|
"@twin.org/wallet-models": "next",
|
|
25
25
|
"@twin.org/web": "next"
|
|
26
26
|
},
|
|
27
|
-
"main": "./dist/
|
|
28
|
-
"module": "./dist/esm/index.mjs",
|
|
27
|
+
"main": "./dist/es/index.js",
|
|
29
28
|
"types": "./dist/types/index.d.ts",
|
|
30
29
|
"exports": {
|
|
31
30
|
".": {
|
|
32
31
|
"types": "./dist/types/index.d.ts",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
}
|
|
36
|
-
"./locales": "./locales"
|
|
32
|
+
"import": "./dist/es/index.js",
|
|
33
|
+
"default": "./dist/es/index.js"
|
|
34
|
+
}
|
|
37
35
|
},
|
|
38
36
|
"files": [
|
|
39
|
-
"dist/
|
|
40
|
-
"dist/esm",
|
|
37
|
+
"dist/es",
|
|
41
38
|
"dist/types",
|
|
42
39
|
"locales",
|
|
43
40
|
"docs"
|
|
44
|
-
]
|
|
41
|
+
],
|
|
42
|
+
"keywords": [
|
|
43
|
+
"twin",
|
|
44
|
+
"trade",
|
|
45
|
+
"iota",
|
|
46
|
+
"framework",
|
|
47
|
+
"blockchain",
|
|
48
|
+
"dlt"
|
|
49
|
+
],
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "git+https://github.com/twinfoundation/dlt/issues"
|
|
52
|
+
},
|
|
53
|
+
"homepage": "https://twindev.org"
|
|
45
54
|
}
|