1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Merge branch 'issue-1474-refactoring-restructure-imports' into issue-1474-refactoring-move-types-to-types-folder

This commit is contained in:
Miquel A. Cabot 2022-06-15 10:10:08 +02:00
commit aba454cf9d
6 changed files with 53 additions and 34 deletions

View File

@ -2,8 +2,7 @@ version: 2
updates:
- package-ecosystem: npm
directory: '/'
versioning-strategy: increase
schedule:
interval: daily
interval: monthly
time: '03:00'
timezone: Europe/Berlin

View File

@ -4,7 +4,7 @@ on:
push:
branches:
- main
- v4main
- v3
tags:
- '**'
pull_request:
@ -15,7 +15,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'
@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'
@ -48,16 +48,15 @@ jobs:
restore-keys: ${{ runner.os }}-test-unit-${{ env.cache-name }}-
- name: Checkout Barge
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: 'oceanprotocol/barge'
path: 'barge'
ref: v4
- name: Run Ganache with Barge
working-directory: ${{ github.workspace }}/barge
run: |
bash -x start_ocean.sh --no-aquarius --no-elasticsearch --no-provider --no-dashboard 2>&1 > start_ocean.log &
bash -x start_ocean.sh --no-aquarius --no-elasticsearch --no-provider --no-dashboard 2>&1 > start_ocean.log &
- run: npm ci
- name: Wait for contracts deployment
working-directory: ${{ github.workspace }}/barge
@ -78,7 +77,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'
@ -97,11 +96,10 @@ jobs:
run: echo "ADDRESS_FILE=${HOME}/.ocean/ocean-contracts/artifacts/address.json" >> $GITHUB_ENV
- name: Checkout Barge
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: 'oceanprotocol/barge'
path: 'barge'
ref: v4
- name: Login to Docker Hub
if: ${{ env.DOCKERHUB_PASSWORD && env.DOCKERHUB_USERNAME }}
@ -125,13 +123,12 @@ jobs:
sleep 10
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" -a -f "$HOME/.ocean/ocean-c2d/ready" ] && break
done
- name: integration
run: npm run test:integration:cover
env:
PROVIDER_URL: 'http://172.15.0.4:8030'
- name: docker logs
- name: docker logs
run: docker logs ocean_aquarius_1 && docker logs ocean_provider_1 && docker logs ocean_provider2_1 && docker logs ocean_computetodata_1
if: ${{ failure() }}
- name: Upload coverage
@ -150,7 +147,7 @@ jobs:
node: ['15', '16']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
@ -171,7 +168,7 @@ jobs:
needs: [test_unit, test_integration]
if: ${{ success() && github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/download-artifact@v2
with:
name: coverage
@ -188,13 +185,13 @@ jobs:
runs-on: ubuntu-latest
needs: [test_unit, test_integration]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: checkout ocean.js repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: 'oceanprotocol/ocean.js'
path: 'ocean.js'
@ -208,6 +205,3 @@ jobs:
- name: Create Guide & Commit if there are changes
run: npm run commit:guide

View File

@ -11,7 +11,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'

View File

@ -4,14 +4,40 @@ All notable changes to this project will be documented in this file. Dates are d
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
#### [v1.0.0](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.45...v1.0.0)
#### [v1.0.0-next.45](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.44...v1.0.0-next.45)
> 5 June 2022
- contracts_1.0.0 [`#1494`](https://github.com/oceanprotocol/ocean.js/pull/1494)
- Creating code examples file + updates to readme [`#1438`](https://github.com/oceanprotocol/ocean.js/pull/1438)
- Issue-#1342: Rewrite publish flow test [`#1460`](https://github.com/oceanprotocol/ocean.js/pull/1460)
- Issue-#1349 Rewrite Pool test [`#1398`](https://github.com/oceanprotocol/ocean.js/pull/1398)
- Issue-#1351: Rewrite FixedRateExchange test [`#1393`](https://github.com/oceanprotocol/ocean.js/pull/1393)
- Issue-#1352: Rewrite SideStaking test [`#1399`](https://github.com/oceanprotocol/ocean.js/pull/1399)
- Issue-#1346: Rewrite Datatoken test [`#1377`](https://github.com/oceanprotocol/ocean.js/pull/1377)
- Issue-#1350: Rewrite Dispenser test [`#1412`](https://github.com/oceanprotocol/ocean.js/pull/1412)
- Issue-#1347: Rewrite Nft test [`#1369`](https://github.com/oceanprotocol/ocean.js/pull/1369)
- Bump @types/node from 17.0.34 to 17.0.35 [`#1477`](https://github.com/oceanprotocol/ocean.js/pull/1477)
- Bump ts-node from 10.7.0 to 10.8.0 [`#1478`](https://github.com/oceanprotocol/ocean.js/pull/1478)
- Fixing all FixedRateExchange gas estimates [`#1467`](https://github.com/oceanprotocol/ocean.js/pull/1467)
- Creating set publishing market fee function [`#1428`](https://github.com/oceanprotocol/ocean.js/pull/1428)
- Issue-#1348 rewrite NftFactory test [`#1362`](https://github.com/oceanprotocol/ocean.js/pull/1362)
- Updating CodeExamples.md [`546e509`](https://github.com/oceanprotocol/ocean.js/commit/546e509820d1d745d608825554c5fdaf3292acc5)
- use transfer() approve() and balance() functions [`e42e031`](https://github.com/oceanprotocol/ocean.js/commit/e42e031c1e1492a51ec6b88e31c828b702fde083)
- use balance() and transfer() functions [`b44f1f8`](https://github.com/oceanprotocol/ocean.js/commit/b44f1f802aa63f61f80b7428f1d24750814d9d1d)
#### [v1.0.0-next.44](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.43...v1.0.0-next.44)
> 17 May 2022
- bump to contracts 34 [`#1476`](https://github.com/oceanprotocol/ocean.js/pull/1476)
- update max out [`#1475`](https://github.com/oceanprotocol/ocean.js/pull/1475)
- Issue-#1343: Rewrite simple publish consume flow test [`#1454`](https://github.com/oceanprotocol/ocean.js/pull/1454)
- refactor SimplePublishConsumeFlow.test.ts file [`c97f750`](https://github.com/oceanprotocol/ocean.js/commit/c97f7503133986c4a6165c4ddcb7f54e5afdc2fe)
- Release 1.0.0-next.44 [`620b5d3`](https://github.com/oceanprotocol/ocean.js/commit/620b5d3a24e3d76a7b9ac1fc78a370add76f549a)
- don't deploy smart contracts [`a75ca34`](https://github.com/oceanprotocol/ocean.js/commit/a75ca34e9e5245cfdbb670f1c23c91d96c57ec30)
- add DDO type [`11508b7`](https://github.com/oceanprotocol/ocean.js/commit/11508b7794048dc5f81fc4aba4c3a5b551c9e18c)
#### [v1.0.0-next.43](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.42...v1.0.0-next.43)

20
package-lock.json generated
View File

@ -1,15 +1,15 @@
{
"name": "@oceanprotocol/lib",
"version": "1.0.0-next.44",
"version": "1.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@oceanprotocol/lib",
"version": "1.0.0-next.44",
"version": "1.0.0",
"license": "Apache-2.0",
"dependencies": {
"@oceanprotocol/contracts": "^1.0.0-alpha.34",
"@oceanprotocol/contracts": "^1.0.0",
"bignumber.js": "^9.0.2",
"cross-fetch": "^3.1.5",
"crypto-js": "^4.1.1",
@ -2487,9 +2487,9 @@
}
},
"node_modules/@oceanprotocol/contracts": {
"version": "1.0.0-alpha.34",
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-1.0.0-alpha.34.tgz",
"integrity": "sha512-ZhNCakYbUpXrffpS98Hj0r5K70IzzTXNoYKBX4Ks3Qqc2T7mhXIxtakzygkM0lEk038ImWuzS2PAZKTATz+X2w=="
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-1.0.0.tgz",
"integrity": "sha512-rDCIooe1WHipLejuGhx2Wv/88SB7bWrN3+XHCWxXyPKTmmSQsgxKZPPzbIVBQ0ESChQZqGSBBJyqErqwwW4eBw=="
},
"node_modules/@octokit/auth-token": {
"version": "2.5.0",
@ -19642,9 +19642,9 @@
}
},
"@oceanprotocol/contracts": {
"version": "1.0.0-alpha.34",
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-1.0.0-alpha.34.tgz",
"integrity": "sha512-ZhNCakYbUpXrffpS98Hj0r5K70IzzTXNoYKBX4Ks3Qqc2T7mhXIxtakzygkM0lEk038ImWuzS2PAZKTATz+X2w=="
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-1.0.0.tgz",
"integrity": "sha512-rDCIooe1WHipLejuGhx2Wv/88SB7bWrN3+XHCWxXyPKTmmSQsgxKZPPzbIVBQ0ESChQZqGSBBJyqErqwwW4eBw=="
},
"@octokit/auth-token": {
"version": "2.5.0",
@ -31602,4 +31602,4 @@
"dev": true
}
}
}
}

View File

@ -1,7 +1,7 @@
{
"name": "@oceanprotocol/lib",
"source": "./src/index.ts",
"version": "1.0.0-next.44",
"version": "1.0.0",
"description": "JavaScript client library for Ocean Protocol",
"main": "./dist/lib.js",
"umd:main": "dist/lib.umd.js",
@ -62,7 +62,7 @@
"web3": "^1.7.3"
},
"dependencies": {
"@oceanprotocol/contracts": "^1.0.0-alpha.34",
"@oceanprotocol/contracts": "^1.0.0",
"bignumber.js": "^9.0.2",
"cross-fetch": "^3.1.5",
"crypto-js": "^4.1.1",