Skip to content

Commit

Permalink
client-api: package update for publishing (#2850)
Browse files Browse the repository at this point in the history
---------

Signed-off-by: Jonathan Alvarez <jonathan@litentry.com>
Co-authored-by: 0xverin <104152026+0xverin@users.noreply.github.com>
  • Loading branch information
jonalvarezz and 0xverin committed Jul 2, 2024
1 parent d20cff3 commit 644ffd7
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 2 deletions.
29 changes: 29 additions & 0 deletions tee-worker/client-api/parachain-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions tee-worker/client-api/parachain-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion tee-worker/client-api/parachain-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default {
"Polygon",
"Arbitrum",
"Solana",
"Combo",
],
},
LitentryValidationData: {
Expand Down
21 changes: 21 additions & 0 deletions tee-worker/client-api/parachain-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Web3Network["type"], "Ethereum" | "Bsc" | "Polygon" | "Arbitrum" | "Combo">;

export type SolanaNetwork = Extract<Web3Network["type"], "Solana">;

export type BitcoinNetwork = Exclude<Web3Network["type"], SubstrateNetwork | EvmNetwork | SolanaNetwork>;

export type Web2Network = Exclude<LitentryIdentity["type"], "Substrate" | "Evm" | "Bitcoin" | "Solana">;

/**
* Identities that can be used as prime identity to own an idGraph.
*/
export type PrimeIdentity = Extract<LitentryIdentity["type"], "Substrate" | "Evm" | "Bitcoin" | "Solana">;
22 changes: 22 additions & 0 deletions tee-worker/client-api/sidechain-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions tee-worker/client-api/sidechain-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion tee-worker/client-api/sidechain-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 644ffd7

Please sign in to comment.