Skip to content

Commit 9021cf2

Browse files
authored
feat!: drop legacy storage (#1117)
1 parent 9414820 commit 9021cf2

File tree

133 files changed

+1600
-10707
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

+1600
-10707
lines changed

.circleci/config.yml

Lines changed: 7 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ jobs:
9696
- run:
9797
name: Generate Payment Detection queries
9898
command: yarn workspace @requestnetwork/payment-detection run codegen
99-
10099
- run:
101100
name: Build all packages (tsc)
102101
command: yarn build:tsc
@@ -372,6 +371,8 @@ jobs:
372371
- *node_image
373372
- *ipfs_image
374373
- *ganache_image
374+
- *postgres_image
375+
- *graph_image
375376
working_directory: *working_directory
376377
steps:
377378
- attach_workspace:
@@ -382,6 +383,7 @@ jobs:
382383
- run:
383384
name: 'Deploy test contract from smart-contracts'
384385
command: 'yarn workspace @requestnetwork/smart-contracts run deploy'
386+
- run: *step_graph_deploy
385387
- run:
386388
name: 'Start request-node'
387389
command: 'yarn workspace @requestnetwork/request-node run start'
@@ -393,44 +395,6 @@ jobs:
393395
- run:
394396
name: 'Test integration-test (layers)'
395397
command: 'yarn workspace @requestnetwork/integration-test run test:layers --ci --maxWorkers=1'
396-
# This test runs the node-client tests against a node backed by TheGraph data access
397-
test-integration-graph-node:
398-
docker:
399-
- *node_image
400-
- *ipfs_image
401-
- *ganache_image
402-
- *postgres_image
403-
- *graph_image
404-
working_directory: *working_directory
405-
steps:
406-
- attach_workspace:
407-
at: *working_directory
408-
- run:
409-
name: 'Build integration-test'
410-
command: 'yarn workspace @requestnetwork/integration-test run build'
411-
- run:
412-
name: 'Deploy test contract from smart-contracts'
413-
command: 'yarn workspace @requestnetwork/smart-contracts run deploy'
414-
- run: *step_graph_deploy
415-
- run:
416-
name: 'Start request-node'
417-
command: 'yarn workspace @requestnetwork/request-node run start'
418-
background: true
419-
environment:
420-
GRAPH_NODE_URL: http://localhost:8000/subgraphs/name/RequestNetwork/request-storage
421-
- run: *step_wait_for_node
422-
- run:
423-
name: 'Confirm TheGraph mode'
424-
command: |
425-
NODE_ENDPOINT=$(wget -O- http://localhost:3000/status | jq .dataAccess.endpoint -r)
426-
if [ "$NODE_ENDPOINT" != "http://localhost:8000/subgraphs/name/RequestNetwork/request-storage" ] ; then
427-
print "Graph node URL mismatch"
428-
print $NODE_ENDPOINT
429-
exit 1
430-
fi
431-
- run:
432-
name: 'Test integration-test'
433-
command: 'yarn workspace @requestnetwork/integration-test run test:node'
434398
test-usage-examples:
435399
docker:
436400
- *node_image
@@ -528,6 +492,8 @@ jobs:
528492
- *node_image
529493
- *ipfs_image
530494
- *ganache_image
495+
- *postgres_image
496+
- *graph_image
531497
working_directory: *working_directory
532498
steps:
533499
- attach_workspace:
@@ -538,20 +504,12 @@ jobs:
538504
- run:
539505
name: 'Deploy test contract from smart-contracts'
540506
command: 'yarn workspace @requestnetwork/smart-contracts run deploy'
507+
- run: *step_graph_deploy
541508
- run:
542509
name: 'Start request-node'
543510
command: 'yarn workspace @requestnetwork/request-node run start'
544511
background: true
545-
- run:
546-
name: Waiting for Request Node to be ready
547-
command: |
548-
for i in `seq 1 10`;
549-
do
550-
curl -s -o /dev/null -f http://localhost:3000/readyz > /dev/null && echo Success && exit 0
551-
echo -n .
552-
sleep 1
553-
done
554-
echo Failed waiting for Node initialization && exit 1
512+
- run: *step_wait_for_node
555513
- run:
556514
name: 'Test integration-test (erc20)'
557515
command: 'yarn workspace @requestnetwork/integration-test run test:erc20 --ci --maxWorkers=1'
@@ -659,9 +617,6 @@ workflows:
659617
- test-integration-test:
660618
requires:
661619
- build
662-
- test-integration-graph-node:
663-
requires:
664-
- build
665620
- test-payment-detection:
666621
requires:
667622
- build
@@ -699,7 +654,6 @@ workflows:
699654
- test-epk-signature
700655
- test-ethereum-storage
701656
- test-integration-test
702-
- test-integration-graph-node
703657
- test-smart-contracts
704658
- test-multi-format
705659
- test-request-client

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ Join the [Request Discord][request-discord-url] to get in touch with us.
4141

4242
### Private Packages
4343

44-
| Package | Description |
45-
| ---------------------------------------------------------------------- | ----------------------------------------------------------- |
46-
| [`@requestnetwork/integration-test`](/packages/integration-test) | Integration test for the Request system |
47-
| [`@requestnetwork/prototype-estimator`](/packages/prototype-estimator) | Give estimates of size and throughput of the Request system |
48-
| [`@requestnetwork/toolbox`](/packages/toolbox) | Toolbox for Request Network |
49-
| [`@requestnetwork/usage-example`](/packages/usage-example) | Usage examples of Request Network |
44+
| Package | Description |
45+
| ---------------------------------------------------------------- | --------------------------------------- |
46+
| [`@requestnetwork/integration-test`](/packages/integration-test) | Integration test for the Request system |
47+
| [`@requestnetwork/toolbox`](/packages/toolbox) | Toolbox for Request Network |
48+
| [`@requestnetwork/usage-example`](/packages/usage-example) | Usage examples of Request Network |
5049

5150
## Contributing
5251

packages/advanced-logic/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,11 @@
4242
"@requestnetwork/currency": "0.10.0",
4343
"@requestnetwork/types": "0.37.0",
4444
"@requestnetwork/utils": "0.37.0",
45-
"@types/node": "16.11.7",
46-
"lodash": "4.17.21",
4745
"tslib": "2.5.0"
4846
},
4947
"devDependencies": {
5048
"@types/jest": "26.0.13",
51-
"@types/lodash": "4.14.161",
49+
"@types/node": "16.11.7",
5250
"jest": "26.4.2",
5351
"nyc": "15.1.0",
5452
"shx": "0.3.2",

packages/data-access/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,10 @@
4242
"@requestnetwork/multi-format": "0.15.11",
4343
"@requestnetwork/types": "0.37.0",
4444
"@requestnetwork/utils": "0.37.0",
45-
"bluebird": "3.7.2",
46-
"keyv": "4.0.3",
4745
"tslib": "2.5.0"
4846
},
4947
"devDependencies": {
50-
"@types/bluebird": "3.5.33",
5148
"@types/jest": "26.0.13",
52-
"@types/keyv": "3.1.1",
5349
"@types/node": "16.11.7",
5450
"jest": "26.4.2",
5551
"nyc": "15.1.0",

packages/data-access/src/combined-data-access.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,4 @@ export abstract class CombinedDataAccess implements DataAccessTypes.IDataAccess
3939
channelId: string,
4040
topics?: string[] | undefined,
4141
) => Promise<DataAccessTypes.IReturnPersistTransaction>;
42-
43-
abstract _getStatus(): Promise<any>;
4442
}

0 commit comments

Comments
 (0)