Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
273 commits
Select commit Hold shift + click to select a range
7050c54
Updating gitignore
jamiehewitt15 Nov 26, 2024
c397511
Merge branch 'main' into dependabot/npm_and_yarn/multi-e83d58bd95
paulo-ocean Nov 28, 2024
7405108
remove deps
paulo-ocean Nov 28, 2024
276b3af
try with nyc
paulo-ocean Nov 28, 2024
8358d8e
Merge pull request #750 from oceanprotocol/issue-728-misleading-msg
paulo-ocean Nov 29, 2024
fa82dc6
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/elliptic-6…
paulo-ocean Nov 29, 2024
a976d40
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/secp256k1-…
paulo-ocean Nov 29, 2024
bbb633b
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/fast-xml-p…
paulo-ocean Nov 29, 2024
8e1cbe2
Merge pull request #761 from oceanprotocol/issue-760-remove-express-d…
jamiehewitt15 Dec 2, 2024
2074a5a
Merge branch 'main' into dependabot/npm_and_yarn/multi-e83d58bd95
paulo-ocean Dec 3, 2024
c47fb67
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/elliptic-6…
paulo-ocean Dec 3, 2024
f0a6f1a
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/secp256k1-…
paulo-ocean Dec 3, 2024
0853365
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/fast-xml-p…
paulo-ocean Dec 3, 2024
ec17376
fix corner case issue on ganache
paulo-ocean Dec 4, 2024
fc69911
first draft
paulo-ocean Dec 5, 2024
e7360da
add doc
paulo-ocean Dec 5, 2024
ab4547b
Merge pull request #782 from oceanprotocol/issue-781-disable-cmd
paulo-ocean Dec 5, 2024
f822742
Release 0.2.1
paulo-ocean Dec 5, 2024
13b4add
fix usage of getBoolEnvValue
paulo-ocean Dec 5, 2024
ab2283e
refactor connections rate, per minute not second
paulo-ocean Dec 6, 2024
f8e264e
add global connection slimit, http request
paulo-ocean Dec 6, 2024
2de7c25
Merge pull request #784 from oceanprotocol/issue-783-fix-env
paulo-ocean Dec 6, 2024
beb3836
Merge branch 'main' into issue-780-rate-limmits
paulo-ocean Dec 6, 2024
b2bfc64
add missing check on republish ddos
paulo-ocean Dec 9, 2024
67d3209
refactor function + add checks on p2p as well
paulo-ocean Dec 9, 2024
94d9fdb
clear history after certain threshold
paulo-ocean Dec 9, 2024
2359529
recalculate hash if needed
paulo-ocean Dec 9, 2024
b3c26dc
remove import function, dependency problem
paulo-ocean Dec 9, 2024
1ac49e4
add reference in docs
paulo-ocean Dec 9, 2024
224321e
Merge branch 'main' into issue-773-indexer
paulo-ocean Dec 10, 2024
ce67eeb
Merge branch 'main' into dependabot/npm_and_yarn/multi-e83d58bd95
paulo-ocean Dec 10, 2024
3715a22
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/fast-xml-p…
paulo-ocean Dec 10, 2024
46fddbe
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/secp256k1-…
paulo-ocean Dec 10, 2024
58af456
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/elliptic-6…
paulo-ocean Dec 10, 2024
05e2203
refactor, move rate hanling to node instance, not handler
paulo-ocean Dec 10, 2024
105703b
update script, + add clear cache log
paulo-ocean Dec 11, 2024
78cb82e
update seeting on CI for test
paulo-ocean Dec 13, 2024
b9a4007
update setting on CI for system test
paulo-ocean Dec 13, 2024
f2cfda6
just debug system test
paulo-ocean Dec 16, 2024
f9a5c03
add setting for max connection on ci
paulo-ocean Dec 16, 2024
e42ada6
Merge pull request #790 from oceanprotocol/issue-772-missing-code-hash
paulo-ocean Dec 17, 2024
b7efa34
Merge branch 'main' into issue-788-missing-ddo-check
paulo-ocean Dec 17, 2024
cb3bcb1
Merge pull request #789 from oceanprotocol/issue-788-missing-ddo-check
paulo-ocean Dec 17, 2024
4da190c
fix conflicts
paulo-ocean Jan 8, 2025
bc7edcc
Merge pull request #785 from oceanprotocol/issue-780-rate-limmits
paulo-ocean Jan 9, 2025
0bd7079
add multiAddrs for directCommand (#796)
alexcos20 Jan 13, 2025
1badd40
no need to store everything in peerStore (#795)
alexcos20 Jan 13, 2025
e05ab46
add support for identifyPush protocol (#794)
alexcos20 Jan 13, 2025
c94b0dd
add findPeer & dht refactor (#793)
alexcos20 Jan 13, 2025
a783adb
Merge branch 'main' into issue-773-indexer
paulo-ocean Jan 13, 2025
4ac3a3f
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/elliptic-6…
paulo-ocean Jan 13, 2025
3393430
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/secp256k1-…
paulo-ocean Jan 13, 2025
4c0999d
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/fast-xml-p…
paulo-ocean Jan 13, 2025
1386b20
Merge pull request #775 from oceanprotocol/issue-773-indexer
paulo-ocean Jan 14, 2025
11bd4e5
Merge pull request #757 from oceanprotocol/dependabot/npm_and_yarn/mu…
paulo-ocean Jan 14, 2025
d1d114a
Merge pull request #746 from oceanprotocol/dependabot/npm_and_yarn/da…
paulo-ocean Jan 14, 2025
a0f4368
merge main, fix conflicts
paulo-ocean Jan 14, 2025
810f70f
Merge pull request #725 from oceanprotocol/dependabot/npm_and_yarn/da…
paulo-ocean Jan 14, 2025
b17bef0
Merge branch 'main' into dependabot/npm_and_yarn/dashboard/fast-xml-p…
paulo-ocean Jan 14, 2025
2b84e26
Merge pull request #711 from oceanprotocol/dependabot/npm_and_yarn/da…
paulo-ocean Jan 14, 2025
e77c598
new accessList credentials type
paulo-ocean Jan 24, 2025
05a74c1
some helper functions that might be used later
paulo-ocean Jan 24, 2025
94e1f31
add function return type to signature
paulo-ocean Jan 24, 2025
6f9a217
fix import
paulo-ocean Jan 24, 2025
5c84ed8
small refactor
paulo-ocean Jan 27, 2025
3b547c2
update build files and hash
paulo-ocean Jan 27, 2025
9a2aa19
add known types + check if configured
paulo-ocean Jan 27, 2025
53e5a8a
add util function to detect known cred type
paulo-ocean Jan 27, 2025
3631cd2
fix imports
paulo-ocean Jan 27, 2025
b9298cf
update download handler with regarding policy server
paulo-ocean Jan 27, 2025
9989937
check for policy server url or check creds locally
paulo-ocean Jan 27, 2025
9508da5
add tests + helper function for known types
paulo-ocean Jan 28, 2025
7799818
fix policy server check, ddo and service level merged together
paulo-ocean Jan 28, 2025
bf5bd7a
add AUTHORIZED_PUBLISHERS_*** env variables
paulo-ocean Jan 29, 2025
1c23f2a
add parsing of env vars and lists
paulo-ocean Jan 29, 2025
5ec1861
key can be null too
paulo-ocean Jan 29, 2025
cce9245
check for authorized publishers on indexer
paulo-ocean Jan 30, 2025
1ba68b2
add access list contract support
paulo-ocean Jan 30, 2025
d1c2ff3
add env.md entries
paulo-ocean Jan 31, 2025
8630ef9
start add ALLOWED_VALIDATORS_LIST
paulo-ocean Feb 3, 2025
b9cae0e
add types
paulo-ocean Feb 3, 2025
c565f9f
fix var name
paulo-ocean Feb 3, 2025
30056ff
refactor var type, .env example
paulo-ocean Feb 3, 2025
013100e
check for allowed validators list on smart contract
paulo-ocean Feb 3, 2025
c631325
small comments
paulo-ocean Feb 3, 2025
079848d
add routes
paulo-ocean Feb 3, 2025
547d987
fix doc route path
paulo-ocean Feb 3, 2025
4582432
Merge pull request #832 from oceanprotocol/issue-831-policy
paulo-ocean Feb 4, 2025
f5bb42d
fix: return correct message on policy server call
AdriGeorge Feb 4, 2025
5fe9a7b
Merge pull request #834 from oceanprotocol/fix/policy-server-return
paulo-ocean Feb 4, 2025
30cc03c
refactor allowed validators list checks
paulo-ocean Feb 4, 2025
0a2f1e4
some comments
paulo-ocean Feb 5, 2025
ed746fe
start adding AUTHORIZED_DECRYPTERS_LIST
paulo-ocean Feb 5, 2025
36eeaad
add support on config
paulo-ocean Feb 5, 2025
951ef2e
add skeleton for testing access list contracts
paulo-ocean Feb 5, 2025
50f8a05
fix balanceOf
paulo-ocean Feb 5, 2025
9c58fbb
access list check
paulo-ocean Feb 5, 2025
310fe8d
debug
paulo-ocean Feb 5, 2025
2cf762b
add address file env
paulo-ocean Feb 5, 2025
7236ac5
mv unit test to integration (need contracts deployment)
paulo-ocean Feb 6, 2025
80aa286
fix balance number check
paulo-ocean Feb 7, 2025
6db2924
add utility function for access list credentials
paulo-ocean Feb 7, 2025
234b360
force to number
paulo-ocean Feb 7, 2025
a1796ba
fix import
paulo-ocean Feb 7, 2025
6b3adc9
add * as match all rule for address types
paulo-ocean Feb 10, 2025
61a97bc
fix typo
paulo-ocean Feb 10, 2025
46ff541
fix review
paulo-ocean Feb 10, 2025
440b6f0
refactor return type, use boolean instead
paulo-ocean Feb 10, 2025
d34b760
Merge pull request #837 from oceanprotocol/issue-809-match-all
paulo-ocean Feb 11, 2025
2a9e884
Updating the dashboard build files
jamiehewitt15 Feb 11, 2025
98b32ce
Revert "Updating the dashboard build files"
jamiehewitt15 Feb 11, 2025
7b793c7
Merge branch 'main' into issue-820-dashboard-build-files
paulo-ocean Feb 11, 2025
4d40db2
Merge pull request #821 from oceanprotocol/issue-820-dashboard-build-…
paulo-ocean Feb 11, 2025
c4b5b56
remove echo command
paulo-ocean Feb 11, 2025
3d195d7
Merge branch 'main' into issue-813-validators-list
paulo-ocean Feb 12, 2025
4f788cf
Merge pull request #829 from oceanprotocol/issue-813-validators-list
paulo-ocean Feb 12, 2025
e818130
add allowed admins access list
paulo-ocean Feb 12, 2025
2c918c2
wip: add check for allowed admins froma ccess list contracts
paulo-ocean Feb 12, 2025
2f5586d
Merge branch 'main' into issue-808-accesslist-creds
paulo-ocean Feb 12, 2025
09a4553
Merge pull request #819 from oceanprotocol/issue-808-accesslist-creds
paulo-ocean Feb 12, 2025
3dfbc3d
merge main + fix conflicts
paulo-ocean Feb 12, 2025
9c74551
fix remaining conflicts
paulo-ocean Feb 12, 2025
df7a58a
fix duplicate line
paulo-ocean Feb 12, 2025
2981ff9
add check for AddressAdded event on test
paulo-ocean Feb 12, 2025
d42e17a
Merge branch 'main' into issue-812-admins-list
paulo-ocean Feb 12, 2025
7d23889
add util function to get all addresses on access list , looking for e…
paulo-ocean Feb 12, 2025
e10d92a
Merge branch 'main' into issue-778-remove-echo
paulo-ocean Feb 12, 2025
7834ad2
Merge pull request #839 from oceanprotocol/issue-778-remove-echo
paulo-ocean Feb 12, 2025
b652458
Merge branch 'main' into issue-812-admins-list
paulo-ocean Feb 13, 2025
5ba8bd5
refactor, move getAdmins fn to auth
paulo-ocean Feb 13, 2025
a89eaf6
refactor: move contract functions to separate file
paulo-ocean Feb 13, 2025
8aa0e7b
add missing file
paulo-ocean Feb 13, 2025
f4341c5
Test if dashboard changes are already commited
jamiehewitt15 Feb 13, 2025
eb3a29e
Test if the dashboard test fails when changes haven't been included i…
jamiehewitt15 Feb 13, 2025
0cdc90a
merge main and fix conflicts
paulo-ocean Feb 13, 2025
0dc0997
fix case search
paulo-ocean Feb 13, 2025
a70682a
Merge pull request #823 from oceanprotocol/issue-814-credentials-types
paulo-ocean Feb 13, 2025
3948d7c
merge main & fix conflicts
paulo-ocean Feb 13, 2025
8623160
Merge branch 'main' into issue-812-admins-list
paulo-ocean Feb 13, 2025
0813f94
add callback style for test
paulo-ocean Feb 13, 2025
389b56e
another try, small refactor
paulo-ocean Feb 13, 2025
de1df15
another try
paulo-ocean Feb 13, 2025
3ca8f75
debug
paulo-ocean Feb 13, 2025
0888447
another try
paulo-ocean Feb 13, 2025
b69f51d
try different approach, immediate call
paulo-ocean Feb 13, 2025
b252096
try different approach, immediate call, missing impls
paulo-ocean Feb 13, 2025
190a1f3
fix lint issues
paulo-ocean Feb 14, 2025
6d5115a
change interface for admin commands
paulo-ocean Feb 14, 2025
1b21e59
Merge pull request #826 from oceanprotocol/issue-815-isolated-node
paulo-ocean Feb 14, 2025
e994055
missing couple changes
paulo-ocean Feb 14, 2025
58d3bf7
merge main & fix conflicts
paulo-ocean Feb 14, 2025
37cbfa5
refactor handlers interfaces
paulo-ocean Feb 14, 2025
a789776
clean logs
paulo-ocean Feb 14, 2025
89e1bb2
Updating test
jamiehewitt15 Feb 17, 2025
a337876
Updating dashboard
jamiehewitt15 Feb 17, 2025
3e9f627
Updating CI
jamiehewitt15 Feb 17, 2025
2ddd63f
Updating CI
jamiehewitt15 Feb 17, 2025
22fb6b5
Updating test command
jamiehewitt15 Feb 17, 2025
713455e
Merge pull request #842 from oceanprotocol/issue-838-dashboard-build-…
jamiehewitt15 Feb 19, 2025
915bb14
Merge branch 'main' into issue-812-admins-list
paulo-ocean Mar 3, 2025
c90e80e
Merge branch 'main' into issue-811-decrypters
paulo-ocean Mar 3, 2025
77d272e
always check remote peerId (#864)
alexcos20 Mar 6, 2025
79ca8c2
move p2p getters as handlers (#862)
alexcos20 Mar 6, 2025
fdee534
Fix DDO: Stats and Prices for exchanges/dispensers (#774)
mariacarmina Mar 6, 2025
67697d5
fix sendTo
alexcos20 Mar 7, 2025
6a6d769
fix status code if policy server not available
paulo-ocean Mar 7, 2025
341040e
send 404 if not defined url
paulo-ocean Mar 7, 2025
f584f98
merge main & fix conflicts
paulo-ocean Mar 10, 2025
5fbf54d
Merge branch 'main' into issue-811-decrypters
paulo-ocean Mar 10, 2025
7607b3e
Merge pull request #869 from oceanprotocol/issue-868-passtrhough
paulo-ocean Mar 11, 2025
abc0860
Update error message for invalid peer connection
bogdanfazakas Mar 11, 2025
16d4392
Merge branch 'main' into issue-811-decrypters
paulo-ocean Mar 11, 2025
832bd4a
Merge pull request #836 from oceanprotocol/issue-811-decrypters
paulo-ocean Mar 11, 2025
6c84a53
Merge branch 'main' into issue-812-admins-list
paulo-ocean Mar 11, 2025
e528069
Merge pull request #874 from oceanprotocol/fix/p2p-remote-peer-msg
paulo-ocean Mar 14, 2025
c3fff98
Merge branch 'main' into issue-812-admins-list
paulo-ocean Mar 14, 2025
8db1004
Merge pull request #841 from oceanprotocol/issue-812-admins-list
paulo-ocean Mar 17, 2025
f14b0e9
fix issue with empty nft fields
paulo-ocean Mar 20, 2025
a7e4853
do same change on update
paulo-ocean Mar 20, 2025
b139b32
try different approach
paulo-ocean Mar 20, 2025
3f54ec2
fix test
paulo-ocean Mar 20, 2025
ca50a6c
delete previous comments
paulo-ocean Mar 20, 2025
30fe12a
Merge pull request #886 from oceanprotocol/issue-fix-indexing
paulo-ocean Mar 20, 2025
9f2870d
Updating codeowners (#887)
jamiehewitt15 Mar 20, 2025
bc6ec5f
C2D Docker (#705)
alexcos20 Mar 21, 2025
5c5831b
Upgrade tsx dep to v4.x (#893)
mariacarmina Mar 24, 2025
543045a
re-indexing old DDOs (#867)
jamiehewitt15 Mar 24, 2025
93b1db1
fix docker-compose (#895)
alexcos20 Mar 24, 2025
b2ba6f4
Update node script - C2D (#896)
giurgiur99 Mar 24, 2025
cdbe1a6
Release 0.2.3
alexcos20 Mar 24, 2025
2363257
Bump serialize-javascript and mocha (#891)
dependabot[bot] Mar 26, 2025
b6b9831
Bump axios from 1.7.4 to 1.8.2 (#892)
dependabot[bot] Mar 26, 2025
bc5558a
Fix validUntil value for free c2d. (#899)
mariacarmina Mar 31, 2025
f5d0f87
Fix bad content parsing results (#902)
giurgiur99 Apr 1, 2025
2c6e9a5
Make integration tests use Ocean Node not Provider or Aquarius
bogdanfazakas Apr 1, 2025
60e33d6
add logs
bogdanfazakas Apr 1, 2025
61eeba5
update log
bogdanfazakas Apr 11, 2025
254d4d9
added more logs
bogdanfazakas Apr 11, 2025
dc200d2
remove docker ci from dependabot triggered PR (#906)
alexcos20 Apr 14, 2025
97f9026
fixes cpu-quota computation (#908)
giurgiur99 Apr 14, 2025
bfcc929
Bump tar-fs and dockerode (#901)
dependabot[bot] Apr 14, 2025
4273203
Bump image-size from 1.1.1 to 1.2.1 in /dashboard (#903)
dependabot[bot] Apr 14, 2025
e18ddc8
Feature/escrow_payments (#828)
alexcos20 Apr 15, 2025
607b674
Bump cross-spawn from 7.0.3 to 7.0.6 in /dashboard (#803)
dependabot[bot] Apr 15, 2025
d41e57f
add some access/credentials tests + emit events if unauthorized (#879)
paulo-ocean Apr 17, 2025
6a1beeb
Improve build dashboard process (#910)
giurgiur99 Apr 17, 2025
8cca32e
Import v0.0.6 of ddo.js. (#898)
mariacarmina Apr 17, 2025
cdbe6e8
cleanups
bogdanfazakas Apr 17, 2025
d526062
Merge pull request #918 from oceanprotocol/fix/transferencoding+conte…
bogdanfazakas Apr 17, 2025
0f6f222
Add maxJobDuration into paid compute task. (#921)
mariacarmina Apr 25, 2025
c3ae21b
Refactor processor in indexer (#922)
giurgiur99 Apr 25, 2025
c30b26c
use latest contracts (#911)
alexcos20 Apr 28, 2025
2b01f32
use Ocean as default token (#929)
alexcos20 Apr 29, 2025
2de1a4f
Generate unique job id. (#931)
mariacarmina Apr 29, 2025
3066de2
Fix undefined stream (#932)
giurgiur99 May 2, 2025
7bbcb7c
Update Dockerfile
alexcos20 May 2, 2025
bb1c3ad
Bump nanoid from 3.3.7 to 3.3.11 in /controlpanel (#912)
dependabot[bot] May 19, 2025
9dab448
Bump elliptic from 6.6.0 to 6.6.1 in /controlpanel (#913)
dependabot[bot] May 19, 2025
728774d
Bump send and serve-static in /controlpanel (#914)
dependabot[bot] May 19, 2025
1a97128
Bump @babel/runtime from 7.24.4 to 7.27.0 in /controlpanel (#917)
dependabot[bot] May 19, 2025
7138c31
Bump @babel/helpers from 7.24.1 to 7.27.0 in /controlpanel (#915)
dependabot[bot] May 19, 2025
9db7674
Bump base-x from 3.0.9 to 3.0.11 (#933)
dependabot[bot] May 19, 2025
f2e3034
Add algoCustomData.json file into c2d (#942)
Breta01 May 28, 2025
e25a483
Check wallet signature (#947)
giurgiur99 May 29, 2025
ebd1317
sync
AdriGeorge May 30, 2025
8b57967
fix: build
AdriGeorge May 30, 2025
6e5240c
chore: sync
AdriGeorge Jun 2, 2025
8c29a8b
fix: lint
AdriGeorge Jun 2, 2025
3926a47
fix: ci
AdriGeorge Jun 2, 2025
dc402a8
fix: ci
AdriGeorge Jun 2, 2025
5656a4f
fix: tests
AdriGeorge Jun 2, 2025
a541140
fix: console
AdriGeorge Jun 2, 2025
8975648
fix: tests
AdriGeorge Jun 2, 2025
6a3c8f5
fix: tests
AdriGeorge Jun 2, 2025
2f98604
fix: ci cd
AdriGeorge Jun 3, 2025
bc21da1
fix: ci
AdriGeorge Jun 3, 2025
b7b8698
fix: ci
AdriGeorge Jun 3, 2025
b35071a
fix: tests
AdriGeorge Jun 3, 2025
6b32375
add log
AdriGeorge Jun 3, 2025
edcdedd
fix: logs
AdriGeorge Jun 3, 2025
696953e
fix: test and logs
AdriGeorge Jun 3, 2025
be9a5e9
fix: tests
AdriGeorge Jun 3, 2025
0839f35
fix: schema
AdriGeorge Jun 6, 2025
cfbaf40
fix: typesense schema
AdriGeorge Jun 6, 2025
e34958e
fix: tests
AdriGeorge Jun 6, 2025
61b595d
fix: tests
AdriGeorge Jun 6, 2025
52283a1
fix: ddojs
AdriGeorge Jun 11, 2025
36dfdac
fix: console
AdriGeorge Jun 12, 2025
e8f6f2f
fix: update event
AdriGeorge Jun 12, 2025
0be52b1
fix: remove logs
AdriGeorge Jun 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules
/dist/*
!/dist/dashboard
/dist
logs
c2d_storage
.env.local
.env
18 changes: 15 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,24 @@ export FEE_AMOUNT=
export ADDRESS_FILE=
export NODE_ENV=
export AUTHORIZED_DECRYPTERS=
export AUTHORIZED_DECRYPTERS_LIST=
export OPERATOR_SERVICE_URL=
export POLICY_SERVER_URL
export INTERFACES=
export ALLOWED_VALIDATORS=
export ALLOWED_VALIDATORS_LIST=
export AUTHORIZED_PUBLISHERS=
export AUTHORIZED_PUBLISHERS_LIST=
export INDEXER_INTERVAL=
export ALLOWED_ADMINS=
export DASHBOARD=true
export ALLOWED_ADMINS_LIST=
export CONTROL_PANEL=true
export RATE_DENY_LIST=
export MAX_REQ_PER_SECOND=
export MAX_REQ_PER_MINUTE=
export MAX_CHECKSUM_LENGTH=
export LOG_LEVEL=
export HTTP_API_PORT=
export VALIDATE_UNSIGNED_DDO=

## p2p

Expand All @@ -55,4 +62,9 @@ export P2P_ENABLE_AUTONAT=
export P2P_ENABLE_CIRCUIT_RELAY_SERVER=
export P2P_ENABLE_CIRCUIT_RELAY_CLIENT=
export P2P_BOOTSTRAP_NODES=
export P2P_FILTER_ANNOUNCED_ADDRESSES=
export P2P_FILTER_ANNOUNCED_ADDRESSES=

## compute
export DOCKER_COMPUTE_ENVIRONMENTS=


2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @alexcos20
* @alexcos20 @bogdanfazakas @jamiehewitt15 @mariacarmina @paulo-ocean @giurgiur99
49 changes: 37 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'v20.16.0'
node-version: 'v20.19.0'
- name: Cache node_modules
uses: actions/cache@v3
env:
Expand All @@ -42,7 +42,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: ['18.20.4', 'v20.16.0', 'v22.5.1']
node: ['18.20.4', 'v20.19.0', 'v22.5.1']

steps:
- uses: actions/checkout@v4
Expand All @@ -66,7 +66,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'v20.16.0'
node-version: 'v20.19.0'
- name: Cache node_modules
uses: actions/cache@v3
env:
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'v20.16.0'
node-version: 'v20.19.0'
- name: Cache node_modules
uses: actions/cache@v3
env:
Expand All @@ -125,24 +125,30 @@ jobs:
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Run Barge
working-directory: ${{ github.workspace }}/barge
env:
CONTRACTS_VERSION: escrow
run: |
bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-c2d --with-typesense 2>&1 > start_ocean.log &
bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-typesense 2>&1 > start_ocean.log &
- run: npm ci
- run: npm run build
- name: Wait for contracts deployment and C2D cluster to be ready
- run: docker image ls
- name: Delete default runner images
run: |
rm -rf /usr/share/swift/
- name: Wait for contracts deployment
working-directory: ${{ github.workspace }}/barge
run: |
for i in $(seq 1 250); do
sleep 10
sleep 5
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
done
- name: docker logs
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-kindcluster-1 && docker logs ocean-computetodata-1 && docker logs ocean-typesense-1
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-typesense-1
if: ${{ failure() }}
- name: integration tests
run: npm run test:integration:cover
env:
OPERATOR_SERVICE_URL: '["http://172.15.0.13:31000"]'
# OPERATOR_SERVICE_URL: '["http://172.15.0.13:31000"]'
PRIVATE_KEY: ${{ secrets.NODE1_PRIVATE_KEY }}
NODE1_PRIVATE_KEY: ${{ secrets.NODE1_PRIVATE_KEY }}
NODE2_PRIVATE_KEY: ${{ secrets.NODE2_PRIVATE_KEY }}
Expand All @@ -157,7 +163,7 @@ jobs:
ASSET_PURGATORY_URL: 'https://raw.githubusercontent.com/oceanprotocol/list-purgatory/main/list-assets.json'
ACCOUNT_PURGATORY_URL: 'https://raw.githubusercontent.com/oceanprotocol/list-purgatory/main/list-accounts.json'
- name: docker logs
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-kindcluster-1 && docker logs ocean-computetodata-1 && docker logs ocean-typesense-1
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-typesense-1
if: ${{ failure() }}
- uses: actions/upload-artifact@v4
with:
Expand All @@ -174,7 +180,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 'v20.16.0'
node-version: 'v20.19.0'

- name: Cache node_modules
uses: actions/cache@v3
Expand Down Expand Up @@ -225,7 +231,7 @@ jobs:
done

- name: docker logs
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-kindcluster-1 && docker logs ocean-computetodata-1 && docker logs ocean-typesense-1
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-typesense-1
if: ${{ failure() }}

- name: Checkout Ocean Node
Expand Down Expand Up @@ -286,3 +292,22 @@ jobs:
run: npm run test:system
env:
AVOID_LOOP_RUN: true

control_panel_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'v20.19.0'
- name: Cache node_modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-control-panel-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-control-panel-${{ env.cache-name }}-
- run: npm ci
- name: Build control panel
run: npm run build:controlpanel
43 changes: 43 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -81,3 +82,45 @@ jobs:
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1

merge:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
needs:
- build
steps:
- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digests-*
merge-multiple: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set Docker metadata
id: ocean_node_meta
uses: docker/metadata-action@v5
with:
images: |
oceanprotocol/ocean-node
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=ref,event=pr
# type=semver,pattern={{major}}.{{minor}}
# type=semver,pattern={{major}}
# type=sha
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf 'oceanprotocol/ocean-node@sha256:%s ' *)
- name: Inspect image
run: |
docker buildx imagetools inspect oceanprotocol/ocean-node:${{ steps.ocean_node_meta.outputs.version }}
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Dahsboard
dashboard/.env
# Control panel
controlpanel/.env

# Docker compose
**/docker-compose.yml

# Logs
logs
Expand Down Expand Up @@ -94,7 +97,7 @@ out
.nuxt

/dist/*
!/dist/dashboard
!/dist/controlpanel

# Gatsby files
.cache/
Expand Down Expand Up @@ -155,3 +158,4 @@ html-report.html
# databases
*.sqlite
databases/*
c2d_storage/*
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.16.0
v20.19.0
91 changes: 91 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,99 @@ 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).

#### [v0.2.3](https://github.com/oceanprotocol/ocean-node/compare/v0.2.1...v0.2.3)

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

#### [v0.2.1](https://github.com/oceanprotocol/ocean-node/compare/v0.2.0...v0.2.1)

> 5 December 2024

- have bootstrap config var [`#782`](https://github.com/oceanprotocol/ocean-node/pull/782)
- Removing unused express dependency from dashboard [`#761`](https://github.com/oceanprotocol/ocean-node/pull/761)
- check if rpcs and indexer_networks are aligned, log [`#750`](https://github.com/oceanprotocol/ocean-node/pull/750)
- remove node 16 image references [`#759`](https://github.com/oceanprotocol/ocean-node/pull/759)
- try debug and fix randomly logs failing test [`#752`](https://github.com/oceanprotocol/ocean-node/pull/752)
- fix dashboard hash out of sync [`#744`](https://github.com/oceanprotocol/ocean-node/pull/744)
- improve reindex command, optional block, also check if thread is running [`#747`](https://github.com/oceanprotocol/ocean-node/pull/747)
- Add cleaner logging when idexing and getting/updating block info from db [`#743`](https://github.com/oceanprotocol/ocean-node/pull/743)
- Add INDEXER_NETWORKS env var within CI job. [`#734`](https://github.com/oceanprotocol/ocean-node/pull/734)
- fix system tests. Running old version of node? [`#733`](https://github.com/oceanprotocol/ocean-node/pull/733)
- rm console.logs [`#731`](https://github.com/oceanprotocol/ocean-node/pull/731)
- fix wrong block for log [`#727`](https://github.com/oceanprotocol/ocean-node/pull/727)
- nonce db sql lite [`#723`](https://github.com/oceanprotocol/ocean-node/pull/723)
- Bump version axios 1.6.0 -&gt; 1.7.4. [`#716`](https://github.com/oceanprotocol/ocean-node/pull/716)
- Bump version express 4.18.2 -&gt; 4.21.0. [`#717`](https://github.com/oceanprotocol/ocean-node/pull/717)
- Feature/ add Elasticsearch database alternative for typesense [`#599`](https://github.com/oceanprotocol/ocean-node/pull/599)
- Database tests 2db [`#707`](https://github.com/oceanprotocol/ocean-node/pull/707)
- add credentials at service level, on schemas [`#710`](https://github.com/oceanprotocol/ocean-node/pull/710)
- Bump micromatch from 4.0.5 to 4.0.8 in /dashboard [`#649`](https://github.com/oceanprotocol/ocean-node/pull/649)
- Bump undici from 5.27.0 to 5.28.4 [`#610`](https://github.com/oceanprotocol/ocean-node/pull/610)
- testing changes [`#718`](https://github.com/oceanprotocol/ocean-node/pull/718)
- Policy Server [`#694`](https://github.com/oceanprotocol/ocean-node/pull/694)
- fix missing/invalid db_url log message, put warn at startup [`#654`](https://github.com/oceanprotocol/ocean-node/pull/654)
- move c2d engines under OceanNode class [`#702`](https://github.com/oceanprotocol/ocean-node/pull/702)
- improve error message, transfer fees and tweak node response [`#701`](https://github.com/oceanprotocol/ocean-node/pull/701)
- fix default filtered p2p ip list (non routable ips that should not be announced) [`#699`](https://github.com/oceanprotocol/ocean-node/pull/699)
- chore: add datatokenaddress in order table [`#700`](https://github.com/oceanprotocol/ocean-node/pull/700)
- fixing tests [`#703`](https://github.com/oceanprotocol/ocean-node/pull/703)
- Updating deprecated actions [`#681`](https://github.com/oceanprotocol/ocean-node/pull/681)
- add access control to service level [`#698`](https://github.com/oceanprotocol/ocean-node/pull/698)
- customize boostrap params [`#696`](https://github.com/oceanprotocol/ocean-node/pull/696)
- Issue 668 oasis decryption [`#679`](https://github.com/oceanprotocol/ocean-node/pull/679)
- Add max ram memory in node start cmd [`#697`](https://github.com/oceanprotocol/ocean-node/pull/697)
- Feature/add elasticdb search [`#695`](https://github.com/oceanprotocol/ocean-node/pull/695)
- fix: search and nonce [`#688`](https://github.com/oceanprotocol/ocean-node/pull/688)
- Issue 501 - C2D getJobStatus - did vs documentId vs agreementId [`#502`](https://github.com/oceanprotocol/ocean-node/pull/502)
- Feature/add elasticdb tvl [`#677`](https://github.com/oceanprotocol/ocean-node/pull/677)
- Renaming dashboard as Control Panel [`#674`](https://github.com/oceanprotocol/ocean-node/pull/674)
- add new schema + tests [`a648cb3`](https://github.com/oceanprotocol/ocean-node/commit/a648cb38df2dea537ca28e67ae4bf1113c9b287d)
- normalize responses [`584b6c0`](https://github.com/oceanprotocol/ocean-node/commit/584b6c09c67fb66fee7d0d01cca51693ea2a3723)
- first draft [`b3afc02`](https://github.com/oceanprotocol/ocean-node/commit/b3afc02219233af4026c43b886bf97c0a2edb323)

#### [v0.2.0](https://github.com/oceanprotocol/ocean-node/compare/v0.1.0...v0.2.0)

> 9 September 2024

- Downgrade indexer errors [`#675`](https://github.com/oceanprotocol/ocean-node/pull/675)
- Update system requirements: change iOS to macOS [`#673`](https://github.com/oceanprotocol/ocean-node/pull/673)
- Fix crash on connection reset - P2P streams [`#659`](https://github.com/oceanprotocol/ocean-node/pull/659)
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY .nvmrc /usr/src/app/
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
ENV NVM_DIR /usr/local/nvm
RUN mkdir $NVM_DIR
ENV NODE_VERSION=v20.16.0
ENV NODE_VERSION=v20.19.0
# Install nvm with node and npm
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \
&& source $NVM_DIR/nvm.sh \
Expand All @@ -27,8 +27,8 @@ COPY . /usr/src/app
WORKDIR /usr/src/app/
COPY --from=builder /usr/src/app/node_modules/ /usr/src/app/node_modules/
RUN npm run build
# Remove the dashboard folder to reduce the image size and avoid shipping development files
RUN rm -rf dashboard
# Remove the controlpanel folder to reduce the image size and avoid shipping development files
RUN rm -rf controlpanel
ENV P2P_ipV4BindTcpPort=9000
EXPOSE 9000
ENV P2P_ipV4BindWsPort=9001
Expand All @@ -40,4 +40,4 @@ EXPOSE 9003
ENV HTTP_API_PORT=8000
EXPOSE 8000
ENV NODE_ENV='production'
CMD ["npm","run","start"]
CMD ["npm","run","start"]
Loading
Loading