diff --git a/tee-worker/client-api/parachain-api/CHANGELOG.md b/tee-worker/client-api/parachain-api/CHANGELOG.md new file mode 100644 index 0000000000..b6e7384f06 --- /dev/null +++ b/tee-worker/client-api/parachain-api/CHANGELOG.md @@ -0,0 +1,29 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.9.18-next.8] - 2024-07-02 + +Routinely update + +## [0.9.18-next.7] - 2024-06-19 + +### Added + +- `Web3Network`: add `Combo`. +- Add `SubstrateNetwork`, `EvmNetwork`, `SolanaNetwork`, `BitcoinNetwork`, `Web2Network`, `PrimeIdentity` types. + +## [0.9.18-next.6] - 2024-06-12 + +### Changed + +- `package.json`: add `module` entry and mark it as side-effects free. + +## [0.9.18-next.5] - 2024-06-12 + +- Routinary update diff --git a/tee-worker/client-api/parachain-api/README.md b/tee-worker/client-api/parachain-api/README.md index 5b9afe455a..e301ec6e1d 100644 --- a/tee-worker/client-api/parachain-api/README.md +++ b/tee-worker/client-api/parachain-api/README.md @@ -45,6 +45,8 @@ Versions in the pattern of `x.x.x-next.x` feature the most recent code version t 1. [Update your published package version number](https://docs.npmjs.com/updating-your-published-package-version-number) +1. Update the `CHANGELOG.md` file + 1. Build the package ```s diff --git a/tee-worker/client-api/parachain-api/package.json b/tee-worker/client-api/parachain-api/package.json index b227c1e61e..108306897c 100644 --- a/tee-worker/client-api/parachain-api/package.json +++ b/tee-worker/client-api/parachain-api/package.json @@ -3,7 +3,9 @@ "type": "module", "license": "ISC", "main": "dist/src/index.js", - "version": "0.9.17-1", + "module": "dist/src/index.js", + "sideEffects": false, + "version": "0.9.18-next.8", "scripts": { "clean": "rm -rf dist build node_modules", "update-metadata": "curl -s -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9944 > prepare-build/litentry-parachain-metadata.json", diff --git a/tee-worker/client-api/parachain-api/prepare-build/interfaces/identity/definitions.ts b/tee-worker/client-api/parachain-api/prepare-build/interfaces/identity/definitions.ts index f7a6f38284..767dfe265a 100644 --- a/tee-worker/client-api/parachain-api/prepare-build/interfaces/identity/definitions.ts +++ b/tee-worker/client-api/parachain-api/prepare-build/interfaces/identity/definitions.ts @@ -53,6 +53,7 @@ export default { "Polygon", "Arbitrum", "Solana", + "Combo", ], }, LitentryValidationData: { diff --git a/tee-worker/client-api/parachain-api/src/index.ts b/tee-worker/client-api/parachain-api/src/index.ts index 170c11a89c..4778713df8 100644 --- a/tee-worker/client-api/parachain-api/src/index.ts +++ b/tee-worker/client-api/parachain-api/src/index.ts @@ -17,3 +17,24 @@ import { default as vc } from "../build/interfaces/vc/definitions"; import { default as trusted_operations } from "../build/interfaces/trusted_operations/definitions"; import { default as sidechain } from "../build/interfaces/sidechain/definitions"; export { identity, vc, trusted_operations, sidechain }; + +// Export handy types +import type { LitentryIdentity, Web3Network } from "../build/interfaces/identity/types"; + +export type SubstrateNetwork = Extract< + Web3Network["type"], + "Polkadot" | "Kusama" | "Litentry" | "Litmus" | "LitentryRococo" | "Khala" | "SubstrateTestnet" +>; + +export type EvmNetwork = Extract; + +export type SolanaNetwork = Extract; + +export type BitcoinNetwork = Exclude; + +export type Web2Network = Exclude; + +/** + * Identities that can be used as prime identity to own an idGraph. + */ +export type PrimeIdentity = Extract; diff --git a/tee-worker/client-api/sidechain-api/CHANGELOG.md b/tee-worker/client-api/sidechain-api/CHANGELOG.md new file mode 100644 index 0000000000..42fbf32a3d --- /dev/null +++ b/tee-worker/client-api/sidechain-api/CHANGELOG.md @@ -0,0 +1,22 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.0.2-next.5] - 2024-07-02 + +Routinely update + +## [0.0.2-next.4] - 2024-06-13 + +### Changed + +- `package.json`: add `module` entry and mark it as side-effects free. + +## [0.0.2-next.3] - 2024-06-12 + +- Routinary update diff --git a/tee-worker/client-api/sidechain-api/README.md b/tee-worker/client-api/sidechain-api/README.md index 6764481882..97af7208eb 100644 --- a/tee-worker/client-api/sidechain-api/README.md +++ b/tee-worker/client-api/sidechain-api/README.md @@ -32,6 +32,8 @@ Versions in the pattern of `x.x.x-next.x` feature the most recent code version t 1. [Update your published package version number](https://docs.npmjs.com/updating-your-published-package-version-number) +1. Update the `CHANGELOG.md` file. + 1. Build the package ```s diff --git a/tee-worker/client-api/sidechain-api/package.json b/tee-worker/client-api/sidechain-api/package.json index bcbfeb3710..4b1296bb20 100644 --- a/tee-worker/client-api/sidechain-api/package.json +++ b/tee-worker/client-api/sidechain-api/package.json @@ -3,7 +3,9 @@ "type": "module", "license": "ISC", "main": "dist/src/index.js", - "version": "0.0.1-1", + "module": "dist/src/index.js", + "sideEffects": false, + "version": "0.0.2-next.5", "scripts": { "clean": "rm -rf dist build node_modules", "update-metadata": "../../bin/litentry-cli print-sgx-metadata-raw > prepare-build/litentry-sidechain-metadata.json",