Skip to content

Commit

Permalink
Merge pull request #71 from nevermined-io/feat/sdk-peer-dependencie
Browse files Browse the repository at this point in the history
feat: make the sdk a peer dependency
  • Loading branch information
r-marques authored Jul 11, 2023
2 parents 11c128a + 358df3a commit e018086
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 21 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/testing-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,15 @@ jobs:
frost-version: 'v3.2.2.004'
node: 'false'

- name: Install sponge
run: sudo apt-get install -y moreutils

- name: Install dependencies
run: yarn

- name: Build SDK-DTP package and node
run: |
yarn build
yarn pack
cp *dtp*.tgz ./node/dtp.tgz
cd ./node
cat package.json | jq '.dependencies."@nevermined-io/sdk-dtp"="./dtp.tgz"' | sponge package.json
yarn
yarn add ../
yarn run setup:dev
yarn build
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -27,7 +25,7 @@ jobs:
- name: Install dependencies
run: |
yarn
- name: Run linters
- name: Copy artifacts
run: |
nvm-tools copy-artifacts ./artifacts
nvm-tools copy-circuits ./circuits
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Nevermined SDK Data Transfer Proofs

> Javascript Data Tranfer Proofs library
> Javascript Data Transfer Proofs library
> [nevermined.io](https://nevermined.io)
[![CI Build](https://github.com/nevermined-io/sdk-dtp/actions/workflows/testing.yml/badge.svg)](https://github.com/nevermined-io/sdk-dtp/actions/workflows/testing.yml)
Expand All @@ -11,6 +11,10 @@

## Get started

```bash
$ yarn add @nevermined-io/sdk @nevermined-io/sdk-dtp
```

SDK Data Transfer Proofs (aka DTP) library allows the delivery of use cases involving encrypted assets in a Nevermined deployment.
The library is packaged in NPM format:

Expand All @@ -28,7 +32,7 @@ For linting and auto-formatting you can use:

```bash
# lint all ts with eslint
yarn run lint
yarn lint

```

Expand Down
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nevermined-io/sdk-dtp",
"version": "0.5.3",
"version": "0.6.0",
"description": "Javascript SDK for connecting with Nevermined Data Platform (Data Transfer proofs module)",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -30,16 +30,19 @@
},
"homepage": "https://github.com/nevermined-io/sdk-dtp#readme",
"dependencies": {
"@nevermined-io/sdk": "^1.5.4",
"circomlibjs": "^0.1.1",
"eciesjs": "^0.3.15",
"ffjavascript": "^0.2.55",
"node-rsa": "^1.1.1",
"snarkjs": "^0.4.26",
"web3-utils": "^1.7.4"
},
"peerDependencies": {
"@nevermined-io/sdk": "^1.6.0-rc1"
},
"devDependencies": {
"@faker-js/faker": "^6.3.1",
"@nevermined-io/sdk": "^1.6.0-rc1",
"@release-it/bumper": "^1.4.1",
"@truffle/hdwallet-provider": "^1.0.42",
"@types/chai": "^4.2.12",
Expand All @@ -49,8 +52,8 @@
"@types/node": "^12.19.8",
"@types/node-fetch": "^2.5.7",
"@types/temp": "^0.8.34",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"auto-changelog": "^1.16.4",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
Expand All @@ -77,9 +80,9 @@
"stream-http": "^3.2.0",
"tar": "^6.1.11",
"terser-webpack-plugin": "^5.3.1",
"ts-node": "^8.10.2",
"typedoc": "^0.20.0",
"typescript": "^3.9.7",
"ts-node": "^10.9.1",
"typedoc": "^0.24.8",
"typescript": "^5.1.6",
"url": "^0.11.0",
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2",
Expand Down
2 changes: 0 additions & 2 deletions src/Dtp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@ export class Dtp extends Instantiable {
// const { accessProofCondition } = this.nevermined.keeper.conditions
const evOptions: EventOptions = {
eventName: 'Fulfilled',
methodName: 'getFulfilleds',
filterJsonRpc: { _agreementId: agreementId },
filterSubgraph: { where: { _agreementId: agreementId } },
result: {
Expand Down Expand Up @@ -387,7 +386,6 @@ export class Dtp extends Instantiable {
) {
const evOptions: EventOptions = {
eventName: 'Fulfilled',
methodName: 'getFulfilleds',
filterJsonRpc: { _agreementId: agreementId },
filterSubgraph: { where: { _agreementId: agreementId } },
result: {
Expand Down

0 comments on commit e018086

Please sign in to comment.