Skip to content

Commit

Permalink
client-sdk,api: align versions with latest litentry parachain release (
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalvarezz authored Aug 27, 2024
1 parent 0cef4f7 commit d0ac733
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 70 deletions.
4 changes: 4 additions & 0 deletions tee-worker/client-api/parachain-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.9.19-07] - 2024-08-26

Matching version for [parachain-release v0.9.19-07](https://github.com/litentry/litentry-parachain/releases/tag/v0.9.19-07)

## [0.9.18-11.2] - 2024-07-26

### Added
Expand Down
2 changes: 1 addition & 1 deletion tee-worker/client-api/parachain-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/src/index.js",
"module": "dist/src/index.js",
"sideEffects": false,
"version": "0.9.18-11.2",
"version": "0.9.19-07",
"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",
Expand Down
4 changes: 4 additions & 0 deletions tee-worker/client-api/sidechain-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.9.19-07] - 2024-08-26

Matching version for [parachain-release v0.9.19-07](https://github.com/litentry/litentry-parachain/releases/tag/v0.9.19-07)

## [0.9.18-10] - 2024-07-19

Align version with [parachain-release v0.9.18-11](https://github.com/litentry/litentry-parachain/releases/tag/v0.9.18-11)
Expand Down
2 changes: 1 addition & 1 deletion tee-worker/client-api/sidechain-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/src/index.js",
"module": "dist/src/index.js",
"sideEffects": false,
"version": "0.9.18-11",
"version": "0.9.19-07",
"scripts": {
"clean": "rm -rf dist build node_modules",
"update-metadata": "../../bin/litentry-cli print-sgx-metadata-raw > prepare-build/litentry-sidechain-metadata.json",
Expand Down
6 changes: 6 additions & 0 deletions tee-worker/client-sdk/packages/enclave/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.2.0] - 2024-08-26

### Changed

- Use `@litentry/parachain-api@0.9.19-7`

## [4.1.0] - 2024-08-06

### Added
Expand Down
6 changes: 3 additions & 3 deletions tee-worker/client-sdk/packages/enclave/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@litentry/enclave",
"description": "This package provides helpers for dApps to interact with the Litentry Protocol Enclave.",
"version": "4.1.0",
"version": "4.2.0",
"license": "GPL-3.0-or-later",
"dependencies": {},
"devDependencies": {
"@polkadot/rpc-provider": "^10.9.1"
},
"peerDependencies": {
"@litentry/parachain-api": "0.9.18-11.2",
"@litentry/sidechain-api": "0.9.18-11",
"@litentry/parachain-api": "0.9.19-7",
"@litentry/sidechain-api": "0.9.19-7",
"@litentry/chaindata": "*",
"@polkadot/api": "^10.9.1",
"@polkadot/types": "^10.9.1",
Expand Down
106 changes: 56 additions & 50 deletions tee-worker/client-sdk/packages/vc-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,158 +7,164 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.3.0] - 2024-08-26

### Changed

- Use `@litentry/parachain-api@0.9.19-7`

## [3.2.0] - 2024-08-06

- Use `@litentry/parachain-api@0.9.18-11.2`
- Use `@litentry/parachain-api@0.9.18-11.2`

## [3.1.0] - 2024-07-22

### Changed

- `validator`: Use RPC call to retrieve blockHashes.
- `validator`: Use RPC call to retrieve blockHashes.

## [3.0.0] - 2024-07-22

### Removed

- Drop `parseVc`. Parsing a VC is now up to clients.
- Drop `parseVc`. Parsing a VC is now up to clients.

## [2.0.2] - 2024-07-19

- Use `@litentry/parachain-api@0.9.18-11` and `@litentry/sidechain-api@0.9.18-11` stable versions.
- Use `@litentry/parachain-api@0.9.18-11` and `@litentry/sidechain-api@0.9.18-11` stable versions.

## [2.0.1] - 2024-07-17

### Added

- Extend `PlatformUserSubject` to support `DarenMarket` and variations of `MagicKraft` and `KaratDao` for better backward compatibility.
- Extend `PlatformUserSubject` to support `DarenMarket` and variations of `MagicKraft` and `KaratDao` for better backward compatibility.

## [2.0.0] - 2024-07-15

- Migrate to `@litentry/parachain-api` and `@litentry/sidechain-api`.
- Distribute as ES Module
- Targets [parachain-release v0.9.18-10](https://github.com/litentry/litentry-parachain/releases/tag/v0.9.18-10)
- Migrate to `@litentry/parachain-api` and `@litentry/sidechain-api`.
- Distribute as ES Module
- Targets [parachain-release v0.9.18-10](https://github.com/litentry/litentry-parachain/releases/tag/v0.9.18-10)

## Changed

- Migrate to `@litentry/parachain-api` and `@litentry/sidechain-api` por chain types. Deprecates `@litentry/chain-types`.
- This library is now distributed as an ESModule
- Migrate to `@litentry/parachain-api` and `@litentry/sidechain-api` por chain types. Deprecates `@litentry/chain-types`.
- This library is now distributed as an ESModule

## Fixed

- `Active Discord ID-Hubber`: Update its `type` name.
- `EVM/Substrate Transaction Count`: add `SubstrateTestnet` to the list of supported networks.
- `Active Discord ID-Hubber`: Update its `type` name.
- `EVM/Substrate Transaction Count`: add `SubstrateTestnet` to the list of supported networks.

## Removed

- Drop `@litentry/chain-types` from dependencies.
- Drop `@litentry/chain-types` from dependencies.

## [1.5.0] - 2024-06-27

### Changed

- `validateVc`: rely on `vc.proof.verificationMethod` to get the VC's pubKey.
- `validateVc`: for new VCs where `vc.issuer.id` is an enclave account, query the specific enclave used at the time of issuing the VC for validation.
- `validateVc`: rely on `vc.proof.verificationMethod` to get the VC's pubKey.
- `validateVc`: for new VCs where `vc.issuer.id` is an enclave account, query the specific enclave used at the time of issuing the VC for validation.

## [1.4.1] - 2024-06-27

### Changed

- `TokenHoldingAmount` credential subject: optional `$network` and `$address`.
- `TokenHoldingAmount` credential subject: optional `$network` and `$address`.

## [1.4.0] - 2024-06-03

### Changed

- Upgrade `@polkadot/api*`, `@polkadot/rpc*`, `@polkadot/types*` to 10.9.1, and `@polkadot/util*` to `12.5.1`
- Upgrade `@polkadot/api*`, `@polkadot/rpc*`, `@polkadot/types*` to 10.9.1, and `@polkadot/util*` to `12.5.1`

### Removed

- Drop unused `@polkadot/keyring` dependency.
- Drop unused `@polkadot/keyring` dependency.

## [1.3.3] - 2024-06-03

### Fixed

- Add `MagicCraft` to the Credential Subject `PlatformUserSubject` type.
- Add `MagicCraft` to the Credential Subject `PlatformUserSubject` type.

## [1.3.2] - 2024-05-29

### Added

- Add `BEAN` to `BaseTokenHolderIITokenEnum` supported tokens.
- Add `BEAN` to `BaseTokenHolderIITokenEnum` supported tokens.

## [1.3.1] - 2024-05-28

### Fixed

- Deps: split `devDependencies` and move `@litentry/enclave` as `peerDependency`.
- Deps: split `devDependencies` and move `@litentry/enclave` as `peerDependency`.

## [1.3.0] - 2024-05-27

### Added

- Broad `BaseTokenHolderIITokenEnum` token support with: `ETH`, `USDC`, `ADA`, `DOGE`, `SHIB`, `UNI`, `BCH`, `ETC`, `ATOM`, `DAI`, `LEO`, `FIL`, `IMX`, `CRO`, `INJ`.
- Broad `BaseTokenHolderIITokenEnum` token support with: `ETH`, `USDC`, `ADA`, `DOGE`, `SHIB`, `UNI`, `BCH`, `ETC`, `ATOM`, `DAI`, `LEO`, `FIL`, `IMX`, `CRO`, `INJ`.

## [1.2.0] - 2024-05-08

### Fixed

- `BaseTokenAmountHolding` now support all the token names from the `TokenHoldingAmount` assertion.
- `BaseTokenAmountHolding` now support all the token names from the `TokenHoldingAmount` assertion.

### Changed

- The encoding of `address` clauses' is no longer validated.
- The encoding of `address` clauses' is no longer validated.

## [1.1.1] - 2024-04-22

### Added

- Add further tests coverage for the feature released on 1.1.0
- Add further tests coverage for the feature released on 1.1.0

## [1.1.0] - 2024-04-22

### Added

- Allow verifying Litentry VCs that were generated by Enclave running on `tee-dev` on this date. MREnclave: `0x585e6d8623b0f63706174025625adb163503863fe6f7cc9459df65cbc2097943`.
- Allow verifying Litentry VCs that were generated by Enclave running on `tee-dev` on this date. MREnclave: `0x585e6d8623b0f63706174025625adb163503863fe6f7cc9459df65cbc2097943`.

## [1.0.1] - 2024-04-18

## Fixed

- Restore a fix that mistakenly removed. The fix was a bug that was preventing legacy VC with `issuer.id` in base58 format to fail at validating.
- Restore a fix that mistakenly removed. The fix was a bug that was preventing legacy VC with `issuer.id` in base58 format to fail at validating.

## [1.0.0] - 2024-04-02

### Changed

- The Litentry's VC Registry was dropped. VCs' hash is no longer stored on-chain. VC Verification continues unaltered.
- Enclave's queries were migrated from `teerex` to `teebag` to match latest Litentry's runtime versions.
- The Litentry's VC Registry was dropped. VCs' hash is no longer stored on-chain. VC Verification continues unaltered.
- Enclave's queries were migrated from `teerex` to `teebag` to match latest Litentry's runtime versions.

### Added

- Credential parser: support the new `assertionText`, `parachainBlockNumber`, and `sidechainBlockNumber` schema fields.
- New Credential Subjects: `WeirdoGhostGangHolder`, `TokenAmountHolder`, `Brc20TokenHolder`, `LitStakingAmountSubject`, `NFTHolderSubject`, `CryptoSummarySubject`, `VIP3CardHolderSubject`, `KaratDaoPlatformUserSubject`, `BaseNftHoldingSubject`
- Credential parser: support the new `assertionText`, `parachainBlockNumber`, and `sidechainBlockNumber` schema fields.
- New Credential Subjects: `WeirdoGhostGangHolder`, `TokenAmountHolder`, `Brc20TokenHolder`, `LitStakingAmountSubject`, `NFTHolderSubject`, `CryptoSummarySubject`, `VIP3CardHolderSubject`, `KaratDaoPlatformUserSubject`, `BaseNftHoldingSubject`

### Removed

- `result.vcRegistry` property was removed from the return value of `validateVc`.
- `result.vcRegistry` property was removed from the return value of `validateVc`.

## [0.2.5] - 2023-11-27

### Added

- New Credential's assertions support: `GenericDiscordRole`, `BnbDomainHolding`, `BnbDigitDomainClub`.
- New Credential Subjects: `GenericDiscordRole`, `SpaceID10KClubMember`, `SpaceID999ClubMember`, `SpaceIDDomainHoldingAmount`.
- New Credential's assertions support: `GenericDiscordRole`, `BnbDomainHolding`, `BnbDigitDomainClub`.
- New Credential Subjects: `GenericDiscordRole`, `SpaceID10KClubMember`, `SpaceID999ClubMember`, `SpaceIDDomainHoldingAmount`.

### Fixed

- Fix parsing issue `EVMVersionEarlyBird` assertions when value is false
- Fix validation logic for VC with `SoraQuiz` assertions
- Fix parsing issue `EVMVersionEarlyBird` assertions when value is false
- Fix validation logic for VC with `SoraQuiz` assertions

### Changed

- `validateVc` early return if signature verifying fails.
- `validateVc` early return if signature verifying fails.

## [0.2.4]

Expand All @@ -168,45 +174,45 @@ Deprecated. Please upgrade to @latest.

### Fixed

- OneBlock+ VC type update
- OneBlock+ VC type update

## [0.2.2] - 2023-11-09

### Added

- Readme: Link to client-sdk-examples repository
- Readme: Link to client-sdk-examples repository

### Removed

- Docs: Exclude `examples` folder from the build output
- Docs: Exclude `examples` folder from the build output

## [0.2.1] - 2023-11-09

### Fixed

- Fix the README's example of `validateVc`.
- Other documentation fixes and improvements
- Fix the README's example of `validateVc`.
- Other documentation fixes and improvements

### Added

- Support SORA Quiz credential definitions' subject
- Include examples and docs folder in the build output
- Support SORA Quiz credential definitions' subject
- Include examples and docs folder in the build output

## [0.1.1] - 2023-10-25

### Added

- This changelog
- Validate VCs against previously registered Litentry Enclave versions and not only the current one.
- This changelog
- Validate VCs against previously registered Litentry Enclave versions and not only the current one.

### Fixed

- Fix bundle type definitions in the published package
- Fix type error in one of the README's examples
- Fix bundle type definitions in the published package
- Fix type error in one of the README's examples

## [0.1.0] - 2023-10-10

### Added

- parseVc method
- validateVc method
- parseVc method
- validateVc method
6 changes: 3 additions & 3 deletions tee-worker/client-sdk/packages/vc-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@litentry/vc-sdk",
"version": "3.2.0",
"version": "3.3.0",
"description": "This library the common functionality to help dApps parse and validate Litentry issued Verifiable Credentials",
"license": "GPL-3.0-or-later",
"dependencies": {},
"devDependencies": {
"fast-glob": "^3.3.2"
},
"peerDependencies": {
"@litentry/parachain-api": "0.9.18-11.2",
"@litentry/sidechain-api": "0.9.18-11",
"@litentry/parachain-api": "0.9.19-7",
"@litentry/sidechain-api": "0.9.19-7",
"@polkadot/api": "^10.9.1",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
Expand Down
Loading

0 comments on commit d0ac733

Please sign in to comment.