-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use latest
cheqd
node for tests (#489)
* Use latest `cheqd` node * Include `IMAGE_TAG` * Include `IMAGE_TAG` in `turbo` call * Modify the `SDK` to be compatible with the most recent `cheqd` node. * Update snapshots * Correct `IMAGE_TAG` * Switch to `cjs` tag * Bump up version * Improve `filterObj` * Enable cache for build
- Loading branch information
Showing
24 changed files
with
249 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
env: | ||
CHEQD_MNEMONIC: "steak come surprise obvious remain black trouble measure design volume retreat float coach amused match album moment radio stuff crack orphan ranch dose endorse" | ||
IMAGE_TAG: 3.0.1 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
|
@@ -14,4 +15,4 @@ jobs: | |
- run: yarn install --frozen-lockfile --ignore-scripts | ||
- run: npm install -g [email protected] | ||
- run: turbo telemetry disable | ||
- run: CHEQD_MNEMONIC=$CHEQD_MNEMONIC turbo run test-with-node --filter @docknetwork/cheqd-blockchain-modules | ||
- run: CHEQD_MNEMONIC=$CHEQD_MNEMONIC IMAGE_TAG=$IMAGE_TAG turbo run test-with-node --filter @docknetwork/cheqd-blockchain-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "root", | ||
"version": "0.16.0", | ||
"version": "0.17.0", | ||
"private": true, | ||
"workspaces": [ | ||
"packages/*", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...ential-sdk/src/types/did/document/verification-method-ref-or-cheqd-verification-method.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import VerificationMethodRef from './verification-method-ref'; | ||
import { CheqdVerificationMethod } from './verification-method'; | ||
import { withFrom } from '../../generic'; | ||
|
||
export default class VerificationMethodRefOrCheqdVerificationMethod extends withFrom( | ||
VerificationMethodRef, | ||
(value, from) => { | ||
try { | ||
return class CheqdVerificationMethodToJSONString extends CheqdVerificationMethod { | ||
toJSON() { | ||
return JSON.stringify(JSON.stringify(super.toJSON())); | ||
} | ||
|
||
static from(obj) { | ||
return typeof obj === 'string' ? super.fromJSON(JSON.parse(JSON.parse(obj))) : super.from(obj); | ||
} | ||
}.from(value); | ||
} catch { | ||
return from(value); | ||
} | ||
}, | ||
) {} |
14 changes: 0 additions & 14 deletions
14
packages/credential-sdk/src/types/did/document/verification-method-ref-or-did-key.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.