Skip to content

Commit

Permalink
Amoy migration (#210)
Browse files Browse the repository at this point in the history
* Amoy migration


---------

Co-authored-by: vmidyllic <[email protected]>
  • Loading branch information
Kolezhniuk and vmidyllic authored Apr 2, 2024
1 parent 749fc7b commit 952913b
Show file tree
Hide file tree
Showing 25 changed files with 695 additions and 772 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ jobs:
build:
strategy:
matrix:
version: [20.11.0]
version: ['lts/*']
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}

- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand All @@ -35,10 +35,10 @@ jobs:
run: npm ci

- name: Run Prettier
run: npm run format
run: npm run format:check

- name: Run ESLint
run: npm run lint
run: npm run lint:check

- name: Run Build
run: npm run build
Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ Installation:
npm install @0xpolygonid/js-sdk
```

See [tests](/tests) for examples on how to use SDK.
## Circuits

And place actual circuits to `test/proofs/testdata`

```bash
curl -LO https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/latest.zip
```

## Tests

Expand All @@ -35,10 +41,11 @@ export RHS_URL="..reverse hash service url"
export IPFS_URL="url for ipfs"
export STATE_CONTRACT_ADDRESS="state contract address"
export RHS_CONTRACT_ADDRESS="reverse hash service contract address"

```

And place actual circuits to `test/proofs/testdata`
## Examples

Please see [examples](https://github.com/0xPolygonID/js-sdk-examples) for visit examples information.

## Documentation

Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
const { did, credential } = await wallet.createIdentity({
method: core.DidMethod.Iden3,
blockchain: core.Blockchain.Polygon,
networkId: core.NetworkId.Mumbai,
networkId: core.NetworkId.Amoy,
revocationOpts: {
type: CredentialStatusType.Iden3ReverseSparseMerkleTreeProof,
id: 'https://rhs-staging.polygonid.me'
Expand All @@ -126,7 +126,7 @@
const { did: issuerDID, credential: issuerAuthCredential } = await wallet.createIdentity({
method: core.DidMethod.Iden3,
blockchain: core.Blockchain.Polygon,
networkId: core.NetworkId.Mumbai,
networkId: core.NetworkId.Amoy,
revocationOpts: {
type: CredentialStatusType.Iden3ReverseSparseMerkleTreeProof,
id: 'https://rhs-staging.polygonid.me'
Expand Down
Loading

0 comments on commit 952913b

Please sign in to comment.