Skip to content

Commit

Permalink
Update the incorrect link in the readme (#3178)
Browse files Browse the repository at this point in the history
* update ts-tests link

* updating all readme
  • Loading branch information
0xverin authored Nov 15, 2024
1 parent aba3b1a commit 8b9c29b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ If you see the screenshot below, you can tell the worker is running:

### TEE worker tests

Refer to [tee-worker ts-tests](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/ts-tests/README.md)
Refer to [tee-worker ts-tests](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/identity/ts-tests/README.md)

### Teardown

Expand Down
2 changes: 1 addition & 1 deletion tee-worker/bitacross/ts-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ts-tests of bitacross-worker

Before running the ts-tests, the client-api types generation needs to be completed.

See client-api [README.md](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/client-api/README.md)
See client-api [README.md](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/identity/client-api/README.md)

## Installation

Expand Down
4 changes: 2 additions & 2 deletions tee-worker/identity/client-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ Once update the `client-api/parachain-api` or `client-api/sidechain-api`, all yo

## Publish

1. [parachain-api](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/client-api/parachain-api/README.md#publish-new-versions)
2. [sidechain-api](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/client-api/sidechain-api/README.md#publish-new-versions)
1. [parachain-api](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/identity/client-api/parachain-api/README.md#publish-new-versions)
2. [sidechain-api](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/identity/client-api/sidechain-api/README.md#publish-new-versions)
2 changes: 1 addition & 1 deletion tee-worker/identity/client-api/parachain-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ Versions in the pattern of `x.x.x-next.x` feature the most recent code version t

## How to regenerate types

Please read the commands of [client-api](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/client-api/README.md).
Please read the commands of [client-api](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/identity/client-api/README.md).
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,10 @@ This must match the Rust implementation of the TrustedCall

**`See`**

- https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/app-libs/stf/src/trusted_call.rs
- https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/identity/app-libs/stf/src/trusted_call.rs

Similarly, our types definitions must match also.
- https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/client-api/parachain-api/prepare-build/interfaces/trusted_operations/definitions.ts
- https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/identity/client-api/parachain-api/prepare-build/interfaces/trusted_operations/definitions.ts

#### Defined in

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ type RequestCreateAccountStoreParams = {
*
* Heads-up:
* This must match the Rust implementation of the TrustedCall
* @see https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/app-libs/stf/src/trusted_call.rs
* @see https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/identity/app-libs/stf/src/trusted_call.rs
*
* Similarly, our types definitions must match also.
* @see https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/client-api/parachain-api/prepare-build/interfaces/trusted_operations/definitions.ts
* @see https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/identity/client-api/parachain-api/prepare-build/interfaces/trusted_operations/definitions.ts
*/
export async function createTrustedCallType(
registry: Registry,
Expand Down
4 changes: 2 additions & 2 deletions tee-worker/identity/ts-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Direct requect vc test: `pnpm --filter integration-tests run test dr_vc.test.ts`
## Data-provider test

1. Start tee-worker with real endpoint and real code(Configure in `local-setup/env.dev.`).
2. Configure definitions in `ts-tests/integration-tests/common/credential-json/*.json`,like [vip3-membership-card-gold](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/ts-tests/integration-tests/common/credential-json/vip3.json#L3)
2. Configure definitions in `ts-tests/integration-tests/common/credential-json/*.json`,like [vip3-membership-card-gold](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/identity/ts-tests/integration-tests/common/credential-json/vip3.json#L3)
3. Execute test cases:
1. Single test: `pnpm run test-data-providers:local --id=your credential json id`
2. All credential tests:`pnpm run test-data-providers:local`(Run all the `credential-json/*.json` test cases, execute them in the order of [export](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/ts-tests/integration-tests/common/credential-json/index.ts#L21).)
2. All credential tests:`pnpm run test-data-providers:local`(Run all the `credential-json/*.json` test cases, execute them in the order of [export](https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/identity/ts-tests/integration-tests/common/credential-json/index.ts#L21).)

0 comments on commit 8b9c29b

Please sign in to comment.