Skip to content

Commit

Permalink
Merge pull request #2487 from OriginTrail/v6/release/testnet
Browse files Browse the repository at this point in the history
Mainnet 6.0.7 Release
  • Loading branch information
zeroxbt authored May 3, 2023
2 parents face8c1 + ef55f91 commit 0c37caa
Show file tree
Hide file tree
Showing 53 changed files with 2,772 additions and 1,709 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
extends: ['airbnb/base', 'prettier'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 'latest'
ecmaVersion: 'latest',
},
rules: {
'linebreak-style': ['error', 'unix'],
Expand All @@ -27,5 +27,11 @@ module.exports = {
'no-unused-expressions': 'off',
},
},
{
files: ['*-mock.js', '*.test.js'],
rules: {
'no-unused-vars': 'off',
},
},
],
};
30 changes: 25 additions & 5 deletions .github/workflows/TEST-bdd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ jobs:
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
blazegraph:
image: lyrasis/blazegraph:2.1.5
ports:
- 9999:9999
strategy:
matrix:
node-version: [16.x]
Expand All @@ -36,12 +32,36 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- name: Download Blazegraph
run: wget https://github.com/blazegraph/database/releases/latest/download/blazegraph.jar
- name: Cache Blazegraph
uses: actions/cache@v2
with:
path: blazegraph.jar
key: ${{ runner.os }}-blazegraph-${{ hashFiles('blazegraph.jar') }}
restore-keys: ${{ runner.os }}-blazegraph-
- run: /usr/bin/java -Djava.awt.headless=true -jar blazegraph.jar &
- name: Cache node_modules
uses: actions/cache@v2
with:
path: |
~/.npm
./node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: mkdir -p $ARTIFACTS_DIR
- run: sudo chmod -R 777 $ARTIFACTS_DIR
- run: mkdir -p $CUCUMBER_ARTIFACTS_DIR
- run: sudo chmod -R 777 $CUCUMBER_ARTIFACTS_DIR
- run: npm explore dkg-evm-module -- npm run compile;
- name: Cache compiled contracts
uses: actions/cache@v2
with:
path: node_modules/dkg-evm-module/artifacts
key: ${{ runner.os }}-contracts-${{ hashFiles('**/artifacts/contracts') }}
restore-keys: ${{ runner.os }}-contracts-
- run: npm run test:bdd;
- uses: actions/upload-artifact@v2
if: ${{ always() }}
Expand Down
194 changes: 67 additions & 127 deletions dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,14 @@
- **version**: ^8.5.2
- **description**: used to execute bdd tests

##### [@ethersproject/bytes](https://www.npmjs.com/package/@ethersproject/bytes)

- **version**: ^5.7.0
- **description**: Used for creating substrate and evm accounts mapping signatures in `create-account-mapping-signature.js`

##### [@ethersproject/hash](https://www.npmjs.com/package/@ethersproject/hash)

- **version**: ^5.7.0
- **description**: Used for creating substrate and evm accounts mapping signatures in `create-account-mapping-signature.js`

##### [@ethersproject/wallet](https://www.npmjs.com/package/@ethersproject/wallet)

- **version**: ^5.7.0
- **description**: Used for creating substrate and evm accounts mapping signatures in `create-account-mapping-signature.js`

##### [@polkadot/util](https://www.npmjs.com/package/@polkadot/util)

- **version**: ^10.1.7
- **description**: Used for creating substrate and evm accounts mapping signatures in `create-account-mapping-signature.js`

##### [@polkadot/util-crypto](https://www.npmjs.com/package/@polkadot/util-crypto)

- **version**: ^10.1.7
- **description**: Used for creating substrate and evm accounts mapping signatures in `create-account-mapping-signature.js`

##### [chai](https://www.npmjs.com/package/chai)

- **version**: ^4.3.6
- **description**: assertion library for bdd tests

##### [dkg.js](https://www.npmjs.com/package/dkg.js)

- **version**: ^6.0.0-beta.3.0.3
- **version**: ^6.0.2
- **description**: dkg client used in bdd tests

##### [eslint](https://www.npmjs.com/package/eslint)
Expand All @@ -57,11 +32,6 @@
- **version**: ^8.5.0
- **description**: linter plugin

##### [ethers](https://www.npmjs.com/package/ethers)

- **version**: ^5.7.2
- **description**: used to interact with evm smart contracts

##### [husky](https://www.npmjs.com/package/husky)

- **version**: ^8.0.1
Expand Down Expand Up @@ -99,55 +69,45 @@

## dependencies

##### [@chainsafe/libp2p-noise](https://www.npmjs.com/package/@chainsafe/libp2p-noise)

- **version**: ^8.0.1
- **description**: libp2p connection encription module

##### [@comunica/query-sparql](https://www.npmjs.com/package/@comunica/query-sparql)

- **version**: ^2.4.3
- **description**: sparql query engine

##### [@libp2p/bootstrap](https://www.npmjs.com/package/@libp2p/bootstrap)

- **version**: ^2.0.0
- **description**: used to connect to list of boostraps

##### [@libp2p/kad-dht](https://www.npmjs.com/package/@libp2p/kad-dht)
##### [@ethersproject/bytes](https://www.npmjs.com/package/@ethersproject/bytes)

- **version**: ^3.0.4
- **description**: libp2p kademlia dht module
- **version**: ^5.7.0
- **description**: Used for creating substrate and evm accounts mapping signatures in `create-account-mapping-signature.js`

##### [@libp2p/mplex](https://www.npmjs.com/package/@libp2p/mplex)
##### [@ethersproject/hash](https://www.npmjs.com/package/@ethersproject/hash)

- **version**: ^5.0.0
- **description**: libp2p stream multiplexer module
- **version**: ^5.7.0
- **description**: Used for creating substrate and evm accounts mapping signatures in `create-account-mapping-signature.js`

##### [@libp2p/peer-collections](https://www.npmjs.com/package/@libp2p/peer-collections)
##### [@ethersproject/wallet](https://www.npmjs.com/package/@ethersproject/wallet)

- **version**: ^2.0.0
- **description**: collections that stringifies peerIds before storing them
- **version**: ^5.7.0
- **description**: Used for creating substrate and evm accounts mapping signatures in `create-account-mapping-signature.js`

##### [@libp2p/peer-id-factory](https://www.npmjs.com/package/@libp2p/peer-id-factory)
##### [@polkadot/api](https://www.npmjs.com/package/@polkadot/api)

- **version**: ^1.0.18
- **description**: used for creation of libp2p network identity
- **version**: ^9.3.2
- **description**: used to interact with substrate nodes

##### [@libp2p/tcp](https://www.npmjs.com/package/@libp2p/tcp)
##### [@polkadot/keyring](https://www.npmjs.com/package/@polkadot/keyring)

- **version**: ^3.0.3
- **description**: libp2p TCP module
- **version**: ^10.1.7
- **description**: Used for creating substrate and evm accounts mapping signatures in `create-account-mapping-signature.js`

##### [@multiformats/multiaddr](https://www.npmjs.com/package/@multiformats/multiaddr)
##### [@polkadot/util](https://www.npmjs.com/package/@polkadot/util)

- **version**: ^11.0.1
- **description**: create libp2p peers multiaddresses from string
- **version**: ^10.1.7
- **description**: Used for creating substrate and evm accounts mapping signatures in `create-account-mapping-signature.js`

##### [@polkadot/api](https://www.npmjs.com/package/@polkadot/api)
##### [@polkadot/util-crypto](https://www.npmjs.com/package/@polkadot/util-crypto)

- **version**: ^9.2.4
- **description**: used to interact with substrate nodes
- **version**: ^10.1.7
- **description**: Used for creating substrate and evm accounts mapping signatures in `create-account-mapping-signature.js`

##### [app-root-path](https://www.npmjs.com/package/app-root-path)

Expand All @@ -156,7 +116,7 @@

##### [assertion-tools](https://www.npmjs.com/package/assertion-tools)

- **version**: ^1.0.8
- **version**: ^2.0.2
- **description**: various functions used by both dkg.js and ot-node

##### [async](https://www.npmjs.com/package/async)
Expand Down Expand Up @@ -191,14 +151,19 @@

##### [dkg-evm-module](https://www.npmjs.com/package/dkg-evm-module)

- **version**: ^1.0.1
- **version**: ^4.0.4
- **description**: used to import latest ot-node smart contracts abis

##### [dotenv](https://www.npmjs.com/package/dotenv)

- **version**: ^16.0.1
- **description**: used for NODE_ENV variable

##### [ethers](https://www.npmjs.com/package/ethers)

- **version**: ^5.7.2
- **description**: used to interact with blockchain nodes

##### [express](https://www.npmjs.com/package/express)

- **version**: ^4.18.1
Expand Down Expand Up @@ -229,51 +194,21 @@
- **version**: ^1.1.8
- **description**: used to compare ip addresses

##### [it-all](https://www.npmjs.com/package/it-all)

- **version**: ^1.0.6
- **description**: collect iterable values

##### [it-filter](https://www.npmjs.com/package/it-filter)

- **version**: ^1.0.3
- **description**: filter operation that supports iterables

##### [it-foreach](https://www.npmjs.com/package/it-foreach)

- **version**: ^0.1.1
- **description**: foreach operation that supports iterables

##### [it-length-prefixed](https://www.npmjs.com/package/it-length-prefixed)

- **version**: ^8.0.2
- **version**: ^5.0.3
- **description**: used to encode and decode streamed buffers in libp2p

##### [it-map](https://www.npmjs.com/package/it-map)

- **version**: ^1.0.6
- **description**: used to map values received yielded by libp2p async iterators

##### [it-merge](https://www.npmjs.com/package/it-merge)

- **version**: ^2.0.4
- **description**: merge operation that supports iterables

##### [it-pipe](https://www.npmjs.com/package/it-pipe)

- **version**: ^2.0.4
- **version**: ^1.1.0
- **description**: stream pipeline that supports libp2p duplex streams. Used for streaming messages between nodes

##### [it-sort](https://www.npmjs.com/package/it-sort)

- **version**: ^1.0.1
- **description**: sort operation that supports iterables

##### [it-take](https://www.npmjs.com/package/it-take)

- **version**: ^1.0.2
- **description**: slice operation that supports iterables

##### [jsonld](https://www.npmjs.com/package/jsonld)

- **version**: ^8.1.0
Expand All @@ -286,39 +221,59 @@

##### [jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken)

- **version**: ^8.5.1
- **version**: ^9.0.0
- **description**: used to generate, validate and decode JWTs

##### [keccak256](https://www.npmjs.com/package/keccak256)
##### [libp2p](https://www.npmjs.com/package/libp2p)

- **version**: ^1.0.6
- **description**: used to hash n-quads in validation module. **Should be moved to assertion-tools dependency**
- **version**: ^0.32.4
- **description**: used for p2p network communication

##### [libp2p](https://www.npmjs.com/package/libp2p)
##### [libp2p-bootstrap](https://www.npmjs.com/package/libp2p-bootstrap)

- **version**: ^0.38.0
- **description**:
- **version**: ^0.13.0
- **description**: used to define libp2p bootstrap nodes

##### [libp2p-kad-dht](https://www.npmjs.com/package/libp2p-kad-dht)

- **version**: ^0.24.2
- **description**: used for libp2p kad dht initialisation

##### [libp2p-mplex](https://www.npmjs.com/package/libp2p-mplex)

##### [merkletreejs](https://www.npmjs.com/package/merkletreejs)
- **version**: ^0.10.7
- **description**: used for libp2p mplex initialisation

- **version**: ^0.2.32
- **description**: used to create merkle tree in validation module. **Should be moved to assertion-tools dependency**
##### [libp2p-noise](https://www.npmjs.com/package/libp2p-noise)

- **version**: ^4.0.0
- **description**: used for libp2p message encription

##### [libp2p-tcp](https://www.npmjs.com/package/libp2p-tcp)

- **version**: ^0.17.2
- **description**: used for libp2p tcp communication

##### [minimist](https://www.npmjs.com/package/minimist)

- **version**: ^1.2.7
- **description**: used to parse process arguments

##### [ms](https://www.npmjs.com/package/ms)

- **version**: ^2.1.3
- **description**: convert expiration time to milliseconds in `token-generation.js`

##### [multiformats](https://www.npmjs.com/package/multiformats)

- **version**: ^9.8.1
- **description**: calculate sha256 hash of peerIds (libp2p find nodes operation)

##### [mysql2](https://www.npmjs.com/package/mysql2)

- **version**: ^2.3.3
- **description**:

##### [peer-id](https://www.npmjs.com/package/peer-id)

- **version**: ^0.15.3
- **description**: used to create network id

##### [pino](https://www.npmjs.com/package/pino)

- **version**: ^8.4.2
Expand Down Expand Up @@ -346,24 +301,14 @@

##### [sequelize](https://www.npmjs.com/package/sequelize)

- **version**: ^6.21.4
- **version**: ^6.29.0
- **description**: used to communicate with sql repository

##### [timeout-abort-controller](https://www.npmjs.com/package/timeout-abort-controller)

- **version**: ^3.0.0
- **description**: timeout network messages


##### [multiformats](https://www.npmjs.com/package/multiformats)

- **version**: ^9.8.1
- **description**: calculate sha256 hash of peerIds (libp2p find nodes operation)

##### [mysql2](https://www.npmjs.com/package/mysql2)
- **version**: ^2.3.3
- **description**:

##### [toobusy-js](https://www.npmjs.com/package/toobusy-js)

- **version**: ^0.5.1
Expand All @@ -388,8 +333,3 @@

- **version**: ^8.3.2
- **description**: uuid generation

##### [workerpool](https://www.npmjs.com/package/workerpool)

- **version**: ^6.2.1
- **description**: offload cpu intensive work
Loading

0 comments on commit 0c37caa

Please sign in to comment.