@streamr/cli-tools 7.2.1 → 7.3.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamr/cli-tools",
3
- "version": "7.2.1",
3
+ "version": "7.3.0-beta.0",
4
4
  "description": "Command line tools for Streamr",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,12 +28,12 @@
28
28
  "dependencies": {
29
29
  "@ethersproject/wallet": "^5.5.0",
30
30
  "@snapshot-labs/snapshot.js": "^0.4.43",
31
- "@streamr/utils": "7.2.1",
31
+ "@streamr/utils": "7.3.0-beta.0",
32
32
  "commander": "^8.3.0",
33
33
  "easy-table": "^1.1.1",
34
34
  "event-stream": "^4.0.1",
35
35
  "lodash": "^4.17.21",
36
- "streamr-client": "7.2.1"
36
+ "streamr-client": "7.3.0-beta.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/easy-table": "0.0.32",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamr/cli-tools",
3
- "version": "7.2.1",
3
+ "version": "7.3.0-beta.0",
4
4
  "description": "Command line tools for Streamr",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,12 +28,12 @@
28
28
  "dependencies": {
29
29
  "@ethersproject/wallet": "^5.5.0",
30
30
  "@snapshot-labs/snapshot.js": "^0.4.43",
31
- "@streamr/utils": "7.2.1",
31
+ "@streamr/utils": "7.3.0-beta.0",
32
32
  "commander": "^8.3.0",
33
33
  "easy-table": "^1.1.1",
34
34
  "event-stream": "^4.0.1",
35
35
  "lodash": "^4.17.21",
36
- "streamr-client": "7.2.1"
36
+ "streamr-client": "7.3.0-beta.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/easy-table": "0.0.32",
package/create-stream.sh DELETED
@@ -1,7 +0,0 @@
1
- NOW=$(date +"%Y%m%d/%H%M%S")
2
- DEBUG=Streamr* node dist/bin/streamr-stream-create /test/$NOW --dev
3
- if [ "$1" == "true" ]
4
- then
5
- echo 'Add to storage node'
6
- DEBUG=Streamr* node dist/bin/streamr-storage-node-add-stream 0xde1112f631486cfc759a50196853011528bc5fa0 /test/$NOW --dev
7
- fi
package/manual-test.sh DELETED
@@ -1,75 +0,0 @@
1
- # streamr-docker-dev start nginx cassandra graph-deploy-streamregistry-subgraph init-keyspace parity-node0 core-api
2
- # and start brokers and trackers (either by streamr-docker-dev start brokers trackers, or brokers/run.sh)
3
-
4
- # configured 0x0000000000000000000000000000000000000000000000000000000000000001 in default.json
5
- STREAM_ID='0x7e5f4552091a69125d5dfcb7b8c2659029395bdf/test/'$(date +%s)
6
- STORAGE_NODE=0xde1112f631486CfC759A50196853011528bC5FA0
7
- OTHER_USER_PRIVATE_KEY='0x0000000000000000000000000000000000000000000000000000000000000002'
8
- OTHER_USER=0x2B5AD5c4795c026514f8317c7a215E218DcCD6cF
9
- GLOBALCONFIG='--dev'
10
- BINPATH=dist/bin
11
-
12
- npm run build
13
- chmod +x $BINPATH/streamr*.js
14
-
15
- printHeader() {
16
- echo '\n\n\n'$1
17
- }
18
-
19
- echo 'STREAM_ID='$STREAM_ID
20
-
21
- printHeader 'mock-data: generate'
22
- $BINPATH/streamr.js mock-data generate > generate.tmp &
23
- pid=$!
24
- sleep 2s
25
- kill $pid
26
- tail generate.tmp
27
- rm generate.tmp
28
-
29
- printHeader 'stream: create'
30
- $BINPATH/streamr.js stream create $STREAM_ID $GLOBALCONFIG
31
-
32
- printHeader 'stream: show'
33
- $BINPATH/streamr.js stream show $STREAM_ID $GLOBALCONFIG
34
-
35
- printHeader 'storage-node: add-stream'
36
- $BINPATH/streamr.js storage-node add-stream $STORAGE_NODE $STREAM_ID $GLOBALCONFIG
37
-
38
- printHeader 'stream: list'
39
- $BINPATH/streamr.js stream list $GLOBALCONFIG
40
-
41
- printHeader 'stream: publish & stream: subscribe'
42
- $BINPATH/streamr.js stream subscribe $STREAM_ID $GLOBALCONFIG &
43
- pid=$!
44
- echo 'manual.sh: publish'
45
- echo '{"foo":"bar"}' | $BINPATH/streamr.js stream publish $STREAM_ID $GLOBALCONFIG
46
- sleep 10s
47
- kill $pid
48
- wait $! 2>/dev/null
49
-
50
- printHeader 'stream: resend (last)'
51
- $BINPATH/streamr.js stream resend last 1 $STREAM_ID $GLOBALCONFIG
52
-
53
- printHeader 'stream: resend (from)'
54
- $BINPATH/streamr.js stream resend from '2020-01-01T00:00:00Z' $STREAM_ID $GLOBALCONFIG
55
-
56
- printHeader 'stream: resend (range)'
57
- $BINPATH/streamr.js stream resend range '2020-01-01T00:00:00Z' '2029-12-31T00:00:00Z' $STREAM_ID $GLOBALCONFIG
58
-
59
- printHeader 'stream: grant-permission'
60
- $BINPATH/streamr.js stream grant-permission $STREAM_ID $OTHER_USER subscribe $GLOBALCONFIG
61
-
62
- printHeader 'stream: revoke-permission'
63
- $BINPATH/streamr.js stream revoke-permission $STREAM_ID $OTHER_USER subscribe $GLOBALCONFIG
64
-
65
- printHeader 'storage-node: list-stream-parts'
66
- $BINPATH/streamr.js storage-node list-stream-parts $STORAGE_NODE $GLOBALCONFIG
67
-
68
- printHeader 'storage-node: list (all)'
69
- $BINPATH/streamr.js storage-node list $GLOBALCONFIG
70
-
71
- printHeader 'storage-node: list (test stream)'
72
- $BINPATH/streamr.js storage-node list -s $STREAM_ID $GLOBALCONFIG
73
-
74
- printHeader 'storage-node: remove-stream'
75
- $BINPATH/streamr.js storage-node remove-stream $STORAGE_NODE $STREAM_ID $GLOBALCONFIG