Skip to content

Commit 7406b75

Browse files
authored
Merge pull request #32 from OceanProtocolEnterprise/feat/sync
Feat/sync
2 parents 557fb19 + f70adfb commit 7406b75

File tree

133 files changed

+8080
-4242
lines changed

Some content is hidden

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

133 files changed

+8080
-4242
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- develop
87
tags:
98
- '**'
109
pull_request:
@@ -15,12 +14,12 @@ jobs:
1514
lint:
1615
runs-on: ubuntu-latest
1716
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions/setup-node@v2
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
2019
with:
2120
node-version: 'v20.16.0'
2221
- name: Cache node_modules
23-
uses: actions/cache@v2
22+
uses: actions/cache@v3
2423
env:
2524
cache-name: cache-node-modules
2625
with:
@@ -30,11 +29,10 @@ jobs:
3029
- run: npm ci
3130
- run: npm run lint
3231

33-
3432
dockertest:
3533
runs-on: ubuntu-latest
3634
steps:
37-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
3836
- run: docker build -t 'ocean-node:mybuild' .
3937

4038
build:
@@ -47,12 +45,12 @@ jobs:
4745
node: ['18.20.4', 'v20.16.0', 'v22.5.1']
4846

4947
steps:
50-
- uses: actions/checkout@v3
51-
- uses: actions/setup-node@v2
48+
- uses: actions/checkout@v4
49+
- uses: actions/setup-node@v4
5250
with:
5351
node-version: ${{ matrix.node }}
5452
- name: Cache node_modules
55-
uses: actions/cache@v2
53+
uses: actions/cache@v3
5654
env:
5755
cache-name: cache-node-modules
5856
with:
@@ -65,12 +63,12 @@ jobs:
6563
test_unit:
6664
runs-on: ubuntu-latest
6765
steps:
68-
- uses: actions/checkout@v3
69-
- uses: actions/setup-node@v2
66+
- uses: actions/checkout@v4
67+
- uses: actions/setup-node@v4
7068
with:
7169
node-version: 'v20.16.0'
7270
- name: Cache node_modules
73-
uses: actions/cache@v2
71+
uses: actions/cache@v3
7472
env:
7573
cache-name: cache-node-modules
7674
with:
@@ -88,22 +86,23 @@ jobs:
8886
ARWEAVE_GATEWAY: https://arweave.net/
8987
RPCS: '{ "1": {"rpc": "https://rpc.eth.gateway.fm", "chainId": 1, "network": "mainet", "chunkSize": 100}, "137": {"rpc": "https://polygon.meowrpc.com", "chainId": 137, "network": "polygon", "chunkSize": 100 }, "80001": {"rpc": "https://rpc-mumbai.maticvigil.com","chainId": 80001, "network": "polygon-mumbai", "chunkSize": 100 } }'
9088
DB_URL: 'http://localhost:8108/?apiKey=xyz'
89+
DB_TYPE: 'typesense'
9190
FEE_TOKENS: '{ "1": "0x967da4048cD07aB37855c090aAF366e4ce1b9F48", "137": "0x282d8efCe846A88B159800bd4130ad77443Fa1A1", "80001": "0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8", "56": "0xDCe07662CA8EbC241316a15B611c89711414Dd1a" }'
9291
FEE_AMOUNT: '{ "amount": 1, "unit": "MB" }'
93-
- uses: actions/upload-artifact@v2
92+
- uses: actions/upload-artifact@v4
9493
with:
9594
name: coverage
9695
path: coverage/
9796

9897
test_integration:
9998
runs-on: ubuntu-latest
10099
steps:
101-
- uses: actions/checkout@v3
102-
- uses: actions/setup-node@v2
100+
- uses: actions/checkout@v4
101+
- uses: actions/setup-node@v4
103102
with:
104103
node-version: 'v20.16.0'
105104
- name: Cache node_modules
106-
uses: actions/cache@v2
105+
uses: actions/cache@v3
107106
env:
108107
cache-name: cache-node-modules
109108
with:
@@ -113,7 +112,7 @@ jobs:
113112
- name: Set ADDRESS_FILE
114113
run: echo "ADDRESS_FILE=${HOME}/.ocean/ocean-contracts/artifacts/address.json" >> $GITHUB_ENV
115114
- name: Checkout Barge
116-
uses: actions/checkout@v3
115+
uses: actions/checkout@v4
117116
with:
118117
repository: 'oceanprotocol/barge'
119118
path: 'barge'
@@ -127,7 +126,7 @@ jobs:
127126
- name: Run Barge
128127
working-directory: ${{ github.workspace }}/barge
129128
run: |
130-
bash -x start_ocean.sh --no-aquarius --no-provider --no-elasticsearch --no-dashboard --with-c2d --with-typesense 2>&1 > start_ocean.log &
129+
bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-c2d --with-typesense 2>&1 > start_ocean.log &
131130
- run: npm ci
132131
- run: npm run build
133132
- run: docker image ls
@@ -137,8 +136,6 @@ jobs:
137136
docker image rm node:20-alpine
138137
docker image rm node:18
139138
docker image rm node:18-alpine
140-
docker image rm node:16
141-
docker image rm node:16-alpine
142139
docker image rm debian:10
143140
docker image rm debian:11
144141
docker image rm ubuntu:22.04
@@ -166,15 +163,16 @@ jobs:
166163
IPFS_GATEWAY: http://172.15.0.16:8080/
167164
ARWEAVE_GATEWAY: https://arweave.net/
168165
RPCS: '{ "8996": {"rpc": "http://127.0.0.1:8545", "chainId": 8996, "network": "development", "chunkSize": 100}}'
169-
DB_URL: 'http://localhost:8108/?apiKey=xyz'
166+
DB_URL: 'http://localhost:9200'
167+
DB_TYPE: 'elasticsearch'
170168
FEE_TOKENS: '{ "1": "0x967da4048cD07aB37855c090aAF366e4ce1b9F48", "137": "0x282d8efCe846A88B159800bd4130ad77443Fa1A1", "80001": "0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8", "56": "0xDCe07662CA8EbC241316a15B611c89711414Dd1a" }'
171169
FEE_AMOUNT: '{ "amount": 1, "unit": "MB" }'
172170
ASSET_PURGATORY_URL: 'https://raw.githubusercontent.com/oceanprotocol/list-purgatory/main/list-assets.json'
173171
ACCOUNT_PURGATORY_URL: 'https://raw.githubusercontent.com/oceanprotocol/list-purgatory/main/list-accounts.json'
174172
- name: docker logs
175173
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-kindcluster-1 && docker logs ocean-computetodata-1 && docker logs ocean-typesense-1
176174
if: ${{ failure() }}
177-
- uses: actions/upload-artifact@v2
175+
- uses: actions/upload-artifact@v4
178176
with:
179177
name: coverage
180178
path: coverage/
@@ -184,15 +182,15 @@ jobs:
184182

185183
steps:
186184
- name: Checkout code
187-
uses: actions/checkout@v3
185+
uses: actions/checkout@v4
188186

189187
- name: Set up Node.js
190-
uses: actions/setup-node@v2
188+
uses: actions/setup-node@v4
191189
with:
192190
node-version: 'v20.16.0'
193191

194192
- name: Cache node_modules
195-
uses: actions/cache@v2
193+
uses: actions/cache@v3
196194
env:
197195
cache-name: cache-node-modules
198196
with:
@@ -204,7 +202,7 @@ jobs:
204202
run: echo "ADDRESS_FILE=${HOME}/.ocean/ocean-contracts/artifacts/address.json" >> $GITHUB_ENV
205203

206204
- name: Checkout Barge
207-
uses: actions/checkout@v3
205+
uses: actions/checkout@v4
208206
with:
209207
repository: 'oceanprotocol/barge'
210208
path: 'barge'
@@ -221,7 +219,7 @@ jobs:
221219
- name: Run Barge
222220
working-directory: ${{ github.workspace }}/barge
223221
run: |
224-
bash -x start_ocean.sh --no-dashboard --no-aquarius --no-provider --no-elasticsearch --with-typesense --with-c2d 2>&1 > start_ocean.log &
222+
bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-c2d --with-typesense 2>&1 > start_ocean.log &
225223
226224
- run: npm ci
227225
- run: npm run build
@@ -232,8 +230,6 @@ jobs:
232230
docker image rm node:20-alpine
233231
docker image rm node:18
234232
docker image rm node:18-alpine
235-
docker image rm node:16
236-
docker image rm node:16-alpine
237233
docker image rm debian:10
238234
docker image rm debian:11
239235
docker image rm ubuntu:22.04
@@ -254,11 +250,11 @@ jobs:
254250
if: ${{ failure() }}
255251

256252
- name: Checkout Ocean Node
257-
uses: actions/checkout@v3
253+
uses: actions/checkout@v4
258254
with:
259-
repository: 'oceanprotocol/ocean-node'
255+
repository: 'OceanProtocolEnterprise/ocean-node'
260256
path: 'ocean-node'
261-
ref: ${{ github.event_name == 'pull_request' && github.head_ref || 'develop' }}
257+
ref: ${{ github.event_name == 'pull_request' && github.head_ref || 'main' }}
262258

263259
- name: Start Ocean Node
264260
working-directory: ${{ github.workspace }}/ocean-node
@@ -273,14 +269,18 @@ jobs:
273269
P2P_ipV4BindTcpPort: 8000
274270
HTTP_API_PORT: 8001
275271
RPCS: '{ "8996": {"rpc": "http://127.0.0.1:8545", "chainId": 8996, "network": "development", "chunkSize": 100} }'
276-
DB_URL: 'http://localhost:8108/?apiKey=xyz'
272+
INDEXER_NETWORKS: '[8996]'
273+
DB_URL: 'http://localhost:9200'
277274
FEE_TOKENS: '{ "1": "0x967da4048cD07aB37855c090aAF366e4ce1b9F48", "137": "0x282d8efCe846A88B159800bd4130ad77443Fa1A1", "80001": "0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8", "56": "0xDCe07662CA8EbC241316a15B611c89711414Dd1a" }'
278275
FEE_AMOUNT: '{ "amount": 1, "unit": "MB" }'
279276
AUTHORIZED_DECRYPTERS: '["0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"]'
277+
P2P_ENABLE_UPNP: 'false'
278+
P2P_ENABLE_AUTONAT: 'false'
280279
ALLOWED_ADMINS: '["0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"]'
280+
DB_TYPE: 'elasticsearch'
281281
- name: Check Ocean Node is running
282282
run: |
283-
for i in $(seq 1 30); do
283+
for i in $(seq 1 90); do
284284
if curl --output /dev/null --silent --head --fail "http://localhost:8001"; then
285285
echo "Ocean Node is up"
286286
exit 0
@@ -290,7 +290,7 @@ jobs:
290290
echo "Ocean Node did not start in time"
291291
exit 1
292292
- name: Checkout Ocean CLI
293-
uses: actions/checkout@v3
293+
uses: actions/checkout@v4
294294
with:
295295
repository: 'oceanprotocol/ocean-cli'
296296
path: 'ocean-cli'

.github/workflows/docker.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
uses: docker/metadata-action@v5
5050
with:
5151
images: |
52-
oceanprotocol/ocean-node
52+
ocnenterprise/ocean-node
5353
# generate Docker tags based on the following events/attributes
5454
tags: |
5555
type=ref,event=branch
@@ -68,7 +68,7 @@ jobs:
6868
push: false
6969
# tags: ${{ steps.ocean_node_meta.outputs.tags }}
7070
labels: ${{ steps.ocean_node_meta.outputs.labels }}
71-
outputs: type=image,name=oceanprotocol/ocean-node,push-by-digest=true,name-canonical=true,push=true
71+
outputs: type=image,name=ocnenterprise/ocean-node,push-by-digest=true,name-canonical=true,push=true
7272
- name: Export digest
7373
run: |
7474
mkdir -p /tmp/digests
@@ -81,5 +81,3 @@ jobs:
8181
path: /tmp/digests/*
8282
if-no-files-found: error
8383
retention-days: 1
84-
85-

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ html-report.html
154154

155155
# databases
156156
*.sqlite
157-
databases/*
157+
databases/*

.prettierrc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"semi": false,
3-
"singleQuote": true,
4-
"printWidth": 90,
5-
"trailingComma": "none",
6-
"tabWidth": 2
7-
}
2+
"semi": false,
3+
"singleQuote": true,
4+
"printWidth": 90,
5+
"trailingComma": "none",
6+
"tabWidth": 2
7+
}

0 commit comments

Comments
 (0)