Skip to content

Commit aaeb4d4

Browse files
committed
Merge branch 'main' into issue-810-creds-address-behaviour
# Conflicts: # src/@types/DDO/Credentials.ts # src/test/unit/credentials.test.ts # src/utils/credentials.ts
2 parents 4136d96 + d526062 commit aaeb4d4

287 files changed

Lines changed: 12672 additions & 8532 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
2-
/dist/*
3-
!/dist/dashboard
2+
/dist
43
logs
4+
c2d_storage
55
.env.local
66
.env

.env.example

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export AUTHORIZED_PUBLISHERS=
3030
export AUTHORIZED_PUBLISHERS_LIST=
3131
export INDEXER_INTERVAL=
3232
export ALLOWED_ADMINS=
33-
export DASHBOARD=true
33+
export ALLOWED_ADMINS_LIST=
34+
export CONTROL_PANEL=true
3435
export RATE_DENY_LIST=
3536
export MAX_REQ_PER_MINUTE=
3637
export MAX_CHECKSUM_LENGTH=
@@ -60,4 +61,9 @@ export P2P_ENABLE_AUTONAT=
6061
export P2P_ENABLE_CIRCUIT_RELAY_SERVER=
6162
export P2P_ENABLE_CIRCUIT_RELAY_CLIENT=
6263
export P2P_BOOTSTRAP_NODES=
63-
export P2P_FILTER_ANNOUNCED_ADDRESSES=
64+
export P2P_FILTER_ANNOUNCED_ADDRESSES=
65+
66+
## compute
67+
export DOCKER_COMPUTE_ENVIRONMENTS=
68+
69+

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @alexcos20 @bogdanfazakas @jamiehewitt15 @mariacarmina @paulo-ocean
1+
* @alexcos20 @bogdanfazakas @jamiehewitt15 @mariacarmina @paulo-ocean @giurgiur99

.github/workflows/ci.yml

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 'v20.16.0'
20+
node-version: 'v20.19.0'
2121
- name: Cache node_modules
2222
uses: actions/cache@v3
2323
env:
@@ -42,7 +42,7 @@ jobs:
4242
fail-fast: false
4343
matrix:
4444
os: [ubuntu-latest]
45-
node: ['18.20.4', 'v20.16.0', 'v22.5.1']
45+
node: ['18.20.4', 'v20.19.0', 'v22.5.1']
4646

4747
steps:
4848
- uses: actions/checkout@v4
@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v4
6767
- uses: actions/setup-node@v4
6868
with:
69-
node-version: 'v20.16.0'
69+
node-version: 'v20.19.0'
7070
- name: Cache node_modules
7171
uses: actions/cache@v3
7272
env:
@@ -100,7 +100,7 @@ jobs:
100100
- uses: actions/checkout@v4
101101
- uses: actions/setup-node@v4
102102
with:
103-
node-version: 'v20.16.0'
103+
node-version: 'v20.19.0'
104104
- name: Cache node_modules
105105
uses: actions/cache@v3
106106
env:
@@ -125,28 +125,30 @@ jobs:
125125
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
126126
- name: Run Barge
127127
working-directory: ${{ github.workspace }}/barge
128+
env:
129+
CONTRACTS_VERSION: escrow
128130
run: |
129-
bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-c2d --with-typesense 2>&1 > start_ocean.log &
131+
bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-typesense 2>&1 > start_ocean.log &
130132
- run: npm ci
131133
- run: npm run build
132134
- run: docker image ls
133135
- name: Delete default runner images
134136
run: |
135137
rm -rf /usr/share/swift/
136-
- name: Wait for contracts deployment and C2D cluster to be ready
138+
- name: Wait for contracts deployment
137139
working-directory: ${{ github.workspace }}/barge
138140
run: |
139141
for i in $(seq 1 250); do
140-
sleep 10
141-
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" -a -f "$HOME/.ocean/ocean-c2d/ready" ] && break
142+
sleep 5
143+
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
142144
done
143145
- name: docker logs
144-
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-kindcluster-1 && docker logs ocean-computetodata-1 && docker logs ocean-typesense-1
146+
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-typesense-1
145147
if: ${{ failure() }}
146148
- name: integration tests
147149
run: npm run test:integration:cover
148150
env:
149-
OPERATOR_SERVICE_URL: '["http://172.15.0.13:31000"]'
151+
# OPERATOR_SERVICE_URL: '["http://172.15.0.13:31000"]'
150152
PRIVATE_KEY: ${{ secrets.NODE1_PRIVATE_KEY }}
151153
NODE1_PRIVATE_KEY: ${{ secrets.NODE1_PRIVATE_KEY }}
152154
NODE2_PRIVATE_KEY: ${{ secrets.NODE2_PRIVATE_KEY }}
@@ -178,7 +180,7 @@ jobs:
178180
- name: Set up Node.js
179181
uses: actions/setup-node@v4
180182
with:
181-
node-version: 'v20.16.0'
183+
node-version: 'v20.19.0'
182184

183185
- name: Cache node_modules
184186
uses: actions/cache@v3
@@ -210,8 +212,9 @@ jobs:
210212
- name: Run Barge
211213
working-directory: ${{ github.workspace }}/barge
212214
run: |
213-
bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-c2d --with-typesense 2>&1 > start_ocean.log &
214-
215+
bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-typesense 2>&1 > start_ocean.log &
216+
env:
217+
CONTRACTS_VERSION: escrow
215218
- run: npm ci
216219
- run: npm run build
217220
- run: docker image ls
@@ -224,7 +227,7 @@ jobs:
224227
run: |
225228
for i in $(seq 1 250); do
226229
sleep 10
227-
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" -a -f "$HOME/.ocean/ocean-c2d/ready" ] && break
230+
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
228231
done
229232
230233
- name: docker logs
@@ -287,22 +290,24 @@ jobs:
287290
- name: Run system tests
288291
working-directory: ${{ github.workspace }}/ocean-cli
289292
run: npm run test:system
293+
env:
294+
AVOID_LOOP_RUN: true
290295

291-
dashboard_build:
296+
control_panel_build:
292297
runs-on: ubuntu-latest
293298
steps:
294299
- uses: actions/checkout@v4
295300
- uses: actions/setup-node@v4
296301
with:
297-
node-version: 'v20.16.0'
302+
node-version: 'v20.19.0'
298303
- name: Cache node_modules
299304
uses: actions/cache@v3
300305
env:
301306
cache-name: cache-node-modules
302307
with:
303308
path: ~/.npm
304-
key: ${{ runner.os }}-dashboard-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
305-
restore-keys: ${{ runner.os }}-dashboard-${{ env.cache-name }}-
309+
key: ${{ runner.os }}-control-panel-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
310+
restore-keys: ${{ runner.os }}-control-panel-${{ env.cache-name }}-
306311
- run: npm ci
307-
- name: Run dashboard build test
308-
run: npm run test:dashboard
312+
- name: Build control panel
313+
run: npm run build:controlpanel

.github/workflows/docker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17+
if: ${{ github.actor != 'dependabot[bot]' }}
1718
strategy:
1819
fail-fast: false
1920
matrix:
@@ -84,6 +85,7 @@ jobs:
8485

8586
merge:
8687
runs-on: ubuntu-latest
88+
if: ${{ github.actor != 'dependabot[bot]' }}
8789
needs:
8890
- build
8991
steps:

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Dahsboard
2-
dashboard/.env
1+
# Control panel
2+
controlpanel/.env
33

44
# Docker compose
55
**/docker-compose.yml
@@ -97,7 +97,7 @@ out
9797
.nuxt
9898

9999
/dist/*
100-
!/dist/dashboard
100+
!/dist/controlpanel
101101

102102
# Gatsby files
103103
.cache/
@@ -158,3 +158,4 @@ html-report.html
158158
# databases
159159
*.sqlite
160160
databases/*
161+
c2d_storage/*

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.16.0
1+
v20.19.0

CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,53 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v0.2.3](https://github.com/oceanprotocol/ocean-node/compare/v0.2.1...v0.2.3)
8+
9+
- Update node script - C2D [`#896`](https://github.com/oceanprotocol/ocean-node/pull/896)
10+
- fix docker-compose [`#895`](https://github.com/oceanprotocol/ocean-node/pull/895)
11+
- re-indexing old DDOs [`#867`](https://github.com/oceanprotocol/ocean-node/pull/867)
12+
- Upgrade tsx dep to v4.x [`#893`](https://github.com/oceanprotocol/ocean-node/pull/893)
13+
- C2D Docker [`#705`](https://github.com/oceanprotocol/ocean-node/pull/705)
14+
- Updating codeowners [`#887`](https://github.com/oceanprotocol/ocean-node/pull/887)
15+
- fix issue with empty nft fields [`#886`](https://github.com/oceanprotocol/ocean-node/pull/886)
16+
- add allowed admins access list [`#841`](https://github.com/oceanprotocol/ocean-node/pull/841)
17+
- Update error message for invalid peer connection [`#874`](https://github.com/oceanprotocol/ocean-node/pull/874)
18+
- add AUTHORIZED_DECRYPTERS_LIST [`#836`](https://github.com/oceanprotocol/ocean-node/pull/836)
19+
- fix status code if policy server not available [`#869`](https://github.com/oceanprotocol/ocean-node/pull/869)
20+
- Fix DDO: Stats and Prices for exchanges/dispensers [`#774`](https://github.com/oceanprotocol/ocean-node/pull/774)
21+
- move p2p getters as handlers [`#862`](https://github.com/oceanprotocol/ocean-node/pull/862)
22+
- always check remote peerId [`#864`](https://github.com/oceanprotocol/ocean-node/pull/864)
23+
- Test if dashboard changes are already committed [`#842`](https://github.com/oceanprotocol/ocean-node/pull/842)
24+
- add AUTHORIZED_PUBLISHERS_*** env variables [`#826`](https://github.com/oceanprotocol/ocean-node/pull/826)
25+
- Issue 814 credentials types [`#823`](https://github.com/oceanprotocol/ocean-node/pull/823)
26+
- remove echo command [`#839`](https://github.com/oceanprotocol/ocean-node/pull/839)
27+
- Issue 808 - new accesslist credentials type [`#819`](https://github.com/oceanprotocol/ocean-node/pull/819)
28+
- add ALLOWED_VALIDATORS_LIST [`#829`](https://github.com/oceanprotocol/ocean-node/pull/829)
29+
- update build files and hash [`#821`](https://github.com/oceanprotocol/ocean-node/pull/821)
30+
- add * as match all rule for address types [`#837`](https://github.com/oceanprotocol/ocean-node/pull/837)
31+
- fix: return correct message on policy server call [`#834`](https://github.com/oceanprotocol/ocean-node/pull/834)
32+
- add policyServerPassthrough routes [`#832`](https://github.com/oceanprotocol/ocean-node/pull/832)
33+
- Bump fast-xml-parser from 4.3.6 to 4.5.0 in /dashboard [`#711`](https://github.com/oceanprotocol/ocean-node/pull/711)
34+
- Bump secp256k1 from 5.0.0 to 5.0.1 in /dashboard [`#725`](https://github.com/oceanprotocol/ocean-node/pull/725)
35+
- Bump elliptic from 6.5.5 to 6.6.0 in /dashboard [`#746`](https://github.com/oceanprotocol/ocean-node/pull/746)
36+
- Bump cross-spawn and aegir (UPDATE: delete deps) [`#757`](https://github.com/oceanprotocol/ocean-node/pull/757)
37+
- fix corner case issue, cannot start indexing on ganache without ADDRESS_FILE [`#775`](https://github.com/oceanprotocol/ocean-node/pull/775)
38+
- add findPeer & dht refactor [`#793`](https://github.com/oceanprotocol/ocean-node/pull/793)
39+
- add support for identifyPush protocol [`#794`](https://github.com/oceanprotocol/ocean-node/pull/794)
40+
- no need to store everything in peerStore [`#795`](https://github.com/oceanprotocol/ocean-node/pull/795)
41+
- add multiAddrs for directCommand [`#796`](https://github.com/oceanprotocol/ocean-node/pull/796)
42+
- Refactor connections rate, rate per minute instead of second [`#785`](https://github.com/oceanprotocol/ocean-node/pull/785)
43+
- add missing check for ddo DB on republish ddos [`#789`](https://github.com/oceanprotocol/ocean-node/pull/789)
44+
- recalculate code hash if needed [`#790`](https://github.com/oceanprotocol/ocean-node/pull/790)
45+
- fix usage of getBoolEnvValue [`#784`](https://github.com/oceanprotocol/ocean-node/pull/784)
46+
- refactor handlers interfaces [`37cbfa5`](https://github.com/oceanprotocol/ocean-node/commit/37cbfa5076d6b665d9ba524156a8f48a656fe93f)
47+
- mv unit test to integration (need contracts deployment) [`7236ac5`](https://github.com/oceanprotocol/ocean-node/commit/7236ac5a603b2ef9c66ccf68a8a6d52acdb96855)
48+
- refactor, move getAdmins fn to auth [`5ba8bd5`](https://github.com/oceanprotocol/ocean-node/commit/5ba8bd528286a5c18acda572a1ce6170672415e6)
49+
750
#### [v0.2.1](https://github.com/oceanprotocol/ocean-node/compare/v0.2.0...v0.2.1)
851

52+
> 5 December 2024
53+
954
- have bootstrap config var [`#782`](https://github.com/oceanprotocol/ocean-node/pull/782)
1055
- Removing unused express dependency from dashboard [`#761`](https://github.com/oceanprotocol/ocean-node/pull/761)
1156
- check if rpcs and indexer_networks are aligned, log [`#750`](https://github.com/oceanprotocol/ocean-node/pull/750)

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ COPY . /usr/src/app
2727
WORKDIR /usr/src/app/
2828
COPY --from=builder /usr/src/app/node_modules/ /usr/src/app/node_modules/
2929
RUN npm run build
30-
# Remove the dashboard folder to reduce the image size and avoid shipping development files
31-
RUN rm -rf dashboard
30+
# Remove the controlpanel folder to reduce the image size and avoid shipping development files
31+
RUN rm -rf controlpanel
3232
ENV P2P_ipV4BindTcpPort=9000
3333
EXPOSE 9000
3434
ENV P2P_ipV4BindWsPort=9001

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,17 @@ Your node is now running, the control panel will be available at `http://localho
137137
- [Testing Guide](docs/testing.md)
138138
- [Network Configuration](docs/networking.md)
139139
- [Logging & accessing logs](docs/networking.md)
140-
- [Control Panel: Local development](dashboard/README.md)
140+
- [Control Panel: Local development](controlpanel/README.md)
141141
- [Docker Deployment Guide](docs/dockerDeployment.md)
142+
143+
## Control Panel
144+
145+
The control panel is available at `http://localhost:8000/controlpanel/` when your node is running. The built files are included in the distribution, so you **don't need to rebuild it** unless you make changes to the control panel code.
146+
147+
To rebuild after changes:
148+
149+
```bash
150+
npm run build:controlpanel
151+
```
152+
153+
For more details, see the [Control Panel Development Guide](controlpanel/README.md).

0 commit comments

Comments
 (0)