@streamr/cli-tools 100.0.0-testnet-three.6 → 100.0.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/README.md +1 -1
- package/bin/streamr-governance-vote.ts +1 -1
- package/bin/streamr-storage-node-add-stream.ts +1 -1
- package/bin/streamr-storage-node-list-streams.ts +1 -1
- package/bin/streamr-storage-node-list.ts +1 -1
- package/bin/streamr-storage-node-remove-stream.ts +1 -1
- package/bin/streamr-stream-create.ts +1 -1
- package/bin/streamr-stream-grant-permission.ts +1 -1
- package/bin/streamr-stream-publish.ts +1 -1
- package/bin/streamr-stream-resend-from.ts +1 -1
- package/bin/streamr-stream-resend-last.ts +1 -1
- package/bin/streamr-stream-resend-range.ts +1 -1
- package/bin/streamr-stream-revoke-permission.ts +1 -1
- package/bin/streamr-stream-search.ts +1 -1
- package/bin/streamr-stream-show.ts +1 -1
- package/bin/streamr-stream-subscribe.ts +1 -1
- package/bin/streamr-wallet-whoami.ts +1 -1
- package/dist/package.json +6 -6
- package/dist/src/client.d.ts +1 -1
- package/dist/src/client.js +3 -3
- package/dist/src/client.js.map +1 -1
- package/dist/src/command.d.ts +1 -1
- package/dist/src/config.d.ts +1 -1
- package/dist/src/permission.d.ts +1 -1
- package/dist/src/permission.js +6 -6
- package/dist/src/permission.js.map +1 -1
- package/dist/src/resend.d.ts +1 -1
- package/package.json +6 -6
- package/src/client.ts +1 -1
- package/src/command.ts +1 -1
- package/src/config.ts +1 -1
- package/src/permission.ts +1 -1
- package/src/resend.ts +1 -1
- package/test/storage-node.test.ts +1 -1
- package/test/stream-permission.test.ts +1 -1
- package/test/stream-publish-subscribe.test.ts +1 -1
- package/test/stream-resend.test.ts +1 -1
- package/test/utils.ts +1 -1
- package/OLD_CHANGELOG.md +0 -141
package/README.md
CHANGED
|
@@ -175,7 +175,7 @@ The `--config` argument tries to read a configuration file from the current work
|
|
|
175
175
|
|
|
176
176
|
If no `--config` argument is specified, default settings are read from `~/.streamr/config/default.json`, if that file exists.
|
|
177
177
|
|
|
178
|
-
The configuration file is a JSON. It has one root-level property `client`, which contains any configuration properties for the [streamr
|
|
178
|
+
The configuration file is a JSON. It has one root-level property `client`, which contains any configuration properties for the [@streamr/sdk](https://github.com/streamr-dev/network-monorepo/blob/main/packages/client/). Example:
|
|
179
179
|
```
|
|
180
180
|
{
|
|
181
181
|
"client": {
|
|
@@ -3,7 +3,7 @@ import { createCommand } from '../src/command'
|
|
|
3
3
|
import { getClientConfig } from '../src/client'
|
|
4
4
|
import snapshot from '@snapshot-labs/snapshot.js'
|
|
5
5
|
import { Wallet } from '@ethersproject/wallet'
|
|
6
|
-
import { PrivateKeyAuthConfig } from 'streamr
|
|
6
|
+
import { PrivateKeyAuthConfig } from '@streamr/sdk'
|
|
7
7
|
|
|
8
8
|
const hub = 'https://hub.snapshot.org'
|
|
9
9
|
const snapshotClient = new snapshot.Client712(hub)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import '../src/logLevel'
|
|
3
|
-
import { StreamrClient } from 'streamr
|
|
3
|
+
import { StreamrClient } from '@streamr/sdk'
|
|
4
4
|
import { createClientCommand } from '../src/command'
|
|
5
5
|
|
|
6
6
|
createClientCommand(async (client: StreamrClient, storageNodeAddress: string, streamId: string) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import '../src/logLevel'
|
|
3
3
|
import EasyTable from 'easy-table'
|
|
4
|
-
import { StreamrClient } from 'streamr
|
|
4
|
+
import { StreamrClient } from '@streamr/sdk'
|
|
5
5
|
import { createClientCommand } from '../src/command'
|
|
6
6
|
|
|
7
7
|
createClientCommand((async (client: StreamrClient, storageNodeAddress: string) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import '../src/logLevel'
|
|
3
|
-
import { StreamrClient } from 'streamr
|
|
3
|
+
import { StreamrClient } from '@streamr/sdk'
|
|
4
4
|
import { createClientCommand } from '../src/command'
|
|
5
5
|
|
|
6
6
|
createClientCommand(async (client: StreamrClient, storageNodeAddress: string, streamId: string) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import '../src/logLevel'
|
|
3
|
-
import { StreamrClient } from 'streamr
|
|
3
|
+
import { StreamrClient } from '@streamr/sdk'
|
|
4
4
|
import { createFnParseInt } from '../src/common'
|
|
5
5
|
import { createClientCommand, Options as BaseOptions } from '../src/command'
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import '../src/logLevel'
|
|
3
|
-
import { PermissionAssignment, Stream } from 'streamr
|
|
3
|
+
import { PermissionAssignment, Stream } from '@streamr/sdk'
|
|
4
4
|
import { runModifyPermissionsCommand } from '../src/permission'
|
|
5
5
|
|
|
6
6
|
runModifyPermissionsCommand(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import '../src/logLevel'
|
|
3
3
|
import { Writable } from 'stream'
|
|
4
|
-
import { StreamrClient } from 'streamr
|
|
4
|
+
import { StreamrClient } from '@streamr/sdk'
|
|
5
5
|
import { wait } from '@streamr/utils'
|
|
6
6
|
import es from 'event-stream'
|
|
7
7
|
import { createClientCommand, Options as BaseOptions } from '../src/command'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import '../src/logLevel'
|
|
3
|
-
import { StreamrClient } from 'streamr
|
|
3
|
+
import { StreamrClient } from '@streamr/sdk'
|
|
4
4
|
import { createClientCommand, Options as BaseOptions } from '../src/command'
|
|
5
5
|
import { assertBothOrNoneDefined, resend } from '../src/resend'
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import '../src/logLevel'
|
|
3
|
-
import { PermissionAssignment, Stream } from 'streamr
|
|
3
|
+
import { PermissionAssignment, Stream } from '@streamr/sdk'
|
|
4
4
|
import { runModifyPermissionsCommand } from '../src/permission'
|
|
5
5
|
|
|
6
6
|
runModifyPermissionsCommand(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import '../src/logLevel'
|
|
3
|
-
import { StreamrClient, SearchStreamsPermissionFilter, StreamPermission } from 'streamr
|
|
3
|
+
import { StreamrClient, SearchStreamsPermissionFilter, StreamPermission } from '@streamr/sdk'
|
|
4
4
|
import { createClientCommand, Options as BaseOptions } from '../src/command'
|
|
5
5
|
import { Option } from 'commander'
|
|
6
6
|
import { getPermission, PERMISSIONS } from '../src/permission'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import '../src/logLevel'
|
|
3
|
-
import { StreamrClient } from 'streamr
|
|
3
|
+
import { StreamrClient } from '@streamr/sdk'
|
|
4
4
|
import { createClientCommand, Options as BaseOptions } from '../src/command'
|
|
5
5
|
import { getPermissionId } from '../src/permission'
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import '../src/logLevel'
|
|
3
3
|
import omit from 'lodash/omit'
|
|
4
4
|
import isString from 'lodash/isString'
|
|
5
|
-
import { StreamrClient, MessageMetadata } from 'streamr
|
|
5
|
+
import { StreamrClient, MessageMetadata } from '@streamr/sdk'
|
|
6
6
|
import { createClientCommand, Options as BaseOptions } from '../src/command'
|
|
7
7
|
import { createFnParseInt } from '../src/common'
|
|
8
8
|
import { binaryToHex } from '@streamr/utils'
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamr/cli-tools",
|
|
3
|
-
"version": "100.0.0
|
|
3
|
+
"version": "100.0.0",
|
|
4
4
|
"description": "Command line tools for Streamr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"license": "AGPL-3.0",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@ethersproject/wallet": "^5.5.0",
|
|
30
|
-
"@snapshot-labs/snapshot.js": "^0.
|
|
31
|
-
"@streamr/
|
|
30
|
+
"@snapshot-labs/snapshot.js": "^0.11.6",
|
|
31
|
+
"@streamr/sdk": "100.0.0",
|
|
32
|
+
"@streamr/utils": "100.0.0",
|
|
32
33
|
"commander": "^12.0.0",
|
|
33
34
|
"easy-table": "^1.1.1",
|
|
34
35
|
"event-stream": "^4.0.1",
|
|
35
|
-
"lodash": "^4.17.21"
|
|
36
|
-
"streamr-client": "100.0.0-testnet-three.6"
|
|
36
|
+
"lodash": "^4.17.21"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@streamr/test-utils": "100.0.0
|
|
39
|
+
"@streamr/test-utils": "100.0.0",
|
|
40
40
|
"@types/event-stream": "^4.0.5",
|
|
41
41
|
"@types/lodash": "^4.14.202",
|
|
42
42
|
"@types/merge2": "^1.4.4",
|
package/dist/src/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StreamrClientConfig, StreamrClient } from 'streamr
|
|
1
|
+
import { StreamrClientConfig, StreamrClient } from '@streamr/sdk';
|
|
2
2
|
import { Options } from './command';
|
|
3
3
|
export declare const getClientConfig: (commandOptions: Options, overridenOptions?: StreamrClientConfig) => StreamrClientConfig;
|
|
4
4
|
export declare const createClient: (commandOptions: Options, overridenOptions?: StreamrClientConfig) => StreamrClient;
|
package/dist/src/client.js
CHANGED
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.createClient = exports.getClientConfig = void 0;
|
|
7
7
|
const omit_1 = __importDefault(require("lodash/omit"));
|
|
8
8
|
const merge_1 = __importDefault(require("lodash/merge"));
|
|
9
|
-
const
|
|
9
|
+
const sdk_1 = require("@streamr/sdk");
|
|
10
10
|
const config_1 = require("./config");
|
|
11
11
|
const getClientConfig = (commandOptions, overridenOptions = {}) => {
|
|
12
|
-
const environmentOptions = commandOptions.dev ? (0, omit_1.default)(
|
|
12
|
+
const environmentOptions = commandOptions.dev ? (0, omit_1.default)(sdk_1.CONFIG_TEST, 'auth') : undefined;
|
|
13
13
|
const configFileJson = (0, config_1.getConfig)(commandOptions.config)?.client;
|
|
14
14
|
const authenticationOptions = (commandOptions.privateKey !== undefined) ? { auth: { privateKey: commandOptions.privateKey } } : undefined;
|
|
15
15
|
return (0, merge_1.default)(environmentOptions, configFileJson, authenticationOptions, overridenOptions);
|
|
@@ -28,7 +28,7 @@ const addInterruptHandler = (client) => {
|
|
|
28
28
|
};
|
|
29
29
|
const createClient = (commandOptions, overridenOptions = {}) => {
|
|
30
30
|
const config = (0, exports.getClientConfig)(commandOptions, overridenOptions);
|
|
31
|
-
const client = new
|
|
31
|
+
const client = new sdk_1.StreamrClient(config);
|
|
32
32
|
addInterruptHandler(client);
|
|
33
33
|
return client;
|
|
34
34
|
};
|
package/dist/src/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";;;;;;AAAA,uDAA8B;AAC9B,yDAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";;;;;;AAAA,uDAA8B;AAC9B,yDAAgC;AAChC,sCAA8E;AAE9E,qCAAoC;AAE7B,MAAM,eAAe,GAAG,CAAC,cAAuB,EAAE,mBAAwC,EAAE,EAAuB,EAAE;IACxH,MAAM,kBAAkB,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,IAAA,cAAI,EAAC,iBAAW,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IACrF,MAAM,cAAc,GAAG,IAAA,kBAAS,EAAC,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IAC/D,MAAM,qBAAqB,GAAG,CAAC,cAAc,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,cAAc,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IACzI,OAAO,IAAA,eAAK,EACR,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,gBAAgB,CACnB,CAAA;AACL,CAAC,CAAA;AAVY,QAAA,eAAe,mBAU3B;AAED,MAAM,mBAAmB,GAAG,CAAC,MAAqB,EAAE,EAAE;IAClD,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;QAC5B,IAAI,CAAC;YACD,MAAM,MAAM,CAAC,OAAO,EAAE,CAAA;QAC1B,CAAC;QAAC,MAAM,CAAC;YACL,QAAQ;QACZ,CAAC;QACD,OAAO,CAAC,IAAI,EAAE,CAAA;IAClB,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAEM,MAAM,YAAY,GAAG,CAAC,cAAuB,EAAE,mBAAwC,EAAE,EAAiB,EAAE;IAC/G,MAAM,MAAM,GAAG,IAAA,uBAAe,EAAC,cAAc,EAAE,gBAAgB,CAAC,CAAA;IAChE,MAAM,MAAM,GAAG,IAAI,mBAAa,CAAC,MAAM,CAAC,CAAA;IACxC,mBAAmB,CAAC,MAAM,CAAC,CAAA;IAC3B,OAAO,MAAM,CAAA;AACjB,CAAC,CAAA;AALY,QAAA,YAAY,gBAKxB"}
|
package/dist/src/command.d.ts
CHANGED
package/dist/src/config.d.ts
CHANGED
package/dist/src/permission.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PermissionAssignment, Stream, StreamPermission } from 'streamr
|
|
1
|
+
import { PermissionAssignment, Stream, StreamPermission } from '@streamr/sdk';
|
|
2
2
|
export declare const PERMISSIONS: Map<string, StreamPermission>;
|
|
3
3
|
export declare const getPermission: (id: string) => StreamPermission | never;
|
|
4
4
|
export declare const getPermissionId: (permission: StreamPermission) => string;
|
package/dist/src/permission.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.runModifyPermissionsCommand = exports.getPermissionId = exports.getPermission = exports.PERMISSIONS = void 0;
|
|
4
4
|
const commander_1 = require("commander");
|
|
5
|
-
const
|
|
5
|
+
const sdk_1 = require("@streamr/sdk");
|
|
6
6
|
const command_1 = require("./command");
|
|
7
7
|
const PUBLIC_USER_ID = 'public';
|
|
8
8
|
exports.PERMISSIONS = new Map([
|
|
9
|
-
['subscribe',
|
|
10
|
-
['publish',
|
|
11
|
-
['edit',
|
|
12
|
-
['delete',
|
|
13
|
-
['grant',
|
|
9
|
+
['subscribe', sdk_1.StreamPermission.SUBSCRIBE],
|
|
10
|
+
['publish', sdk_1.StreamPermission.PUBLISH],
|
|
11
|
+
['edit', sdk_1.StreamPermission.EDIT],
|
|
12
|
+
['delete', sdk_1.StreamPermission.DELETE],
|
|
13
|
+
['grant', sdk_1.StreamPermission.GRANT]
|
|
14
14
|
]);
|
|
15
15
|
const getPermission = (id) => {
|
|
16
16
|
const result = exports.PERMISSIONS.get(id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.js","sourceRoot":"","sources":["../../src/permission.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"permission.js","sourceRoot":"","sources":["../../src/permission.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,sCAA4F;AAC5F,uCAA+C;AAE/C,MAAM,cAAc,GAAG,QAAQ,CAAA;AAElB,QAAA,WAAW,GAAG,IAAI,GAAG,CAA2B;IACzD,CAAC,WAAW,EAAE,sBAAgB,CAAC,SAAS,CAAC;IACzC,CAAC,SAAS,EAAE,sBAAgB,CAAC,OAAO,CAAC;IACrC,CAAC,MAAM,EAAE,sBAAgB,CAAC,IAAI,CAAC;IAC/B,CAAC,QAAQ,EAAE,sBAAgB,CAAC,MAAM,CAAC;IACnC,CAAC,OAAO,EAAE,sBAAgB,CAAC,KAAK,CAAC;CACpC,CAAC,CAAA;AAEK,MAAM,aAAa,GAAG,CAAC,EAAU,EAA4B,EAAE;IAClE,MAAM,MAAM,GAAG,mBAAW,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IAClC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAA;IAChD,CAAC;IACD,OAAO,MAAM,CAAA;AACjB,CAAC,CAAA;AANY,QAAA,aAAa,iBAMzB;AAEM,MAAM,eAAe,GAAG,CAAC,UAA4B,EAAU,EAAE;IACpE,OAAO,KAAK,CAAC,IAAI,CAAC,mBAAW,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,UAAU,CAAE,CAAC,CAAC,CAAC,CAAA;AACrF,CAAC,CAAA;AAFY,QAAA,eAAe,mBAE3B;AAEM,MAAM,2BAA2B,GAAG,CACvC,MAA2E,EAC3E,YAAoB,EAChB,EAAE;IACN,IAAA,6BAAmB,EAAC,KAAK,EAAE,MAAqB,EAAE,QAAgB,EAAE,IAAY,EAAE,aAAuB,EAAE,EAAE;QACzG,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;QAC/C,MAAM,WAAW,GAAuB,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,IAAA,qBAAa,EAAC,YAAY,CAAC,CAAC,CAAA;QACxG,IAAI,UAAgC,CAAA;QACpC,IAAI,IAAI,KAAK,cAAc,EAAE,CAAC;YAC1B,UAAU,GAAG;gBACT,WAAW;gBACX,MAAM,EAAE,IAAI;aACf,CAAA;QACL,CAAC;aAAM,CAAC;YACJ,UAAU,GAAG;gBACT,WAAW;gBACX,IAAI;aACP,CAAA;QACL,CAAC;QACD,MAAM,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IACpC,CAAC,CAAC;SACG,WAAW,CAAC,IAAI,oBAAQ,CAAC,YAAY,CAAC,CAAC;SACvC,WAAW,CAAC,IAAI,oBAAQ,CAAC,QAAQ,CAAC,CAAC;SACnC,WAAW,CAAC,IAAI,oBAAQ,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACrF,WAAW,CAAC,GAAG,YAAY,kDAAkD,YAAY,sBAAsB,CAAC;SAChH,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AACjC,CAAC,CAAA;AA1BY,QAAA,2BAA2B,+BA0BvC"}
|
package/dist/src/resend.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StreamrClient, ResendOptions } from 'streamr
|
|
1
|
+
import { StreamrClient, ResendOptions } from '@streamr/sdk';
|
|
2
2
|
export declare const assertBothOrNoneDefined: <T extends object>(option1: keyof T, option2: keyof T, errorMessage: string, commandOptions: T) => void | never;
|
|
3
3
|
export declare const resend: (streamId: string, resendOpts: ResendOptions, client: StreamrClient, subscribe: boolean) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamr/cli-tools",
|
|
3
|
-
"version": "100.0.0
|
|
3
|
+
"version": "100.0.0",
|
|
4
4
|
"description": "Command line tools for Streamr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"license": "AGPL-3.0",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@ethersproject/wallet": "^5.5.0",
|
|
30
|
-
"@snapshot-labs/snapshot.js": "^0.
|
|
31
|
-
"@streamr/
|
|
30
|
+
"@snapshot-labs/snapshot.js": "^0.11.6",
|
|
31
|
+
"@streamr/sdk": "100.0.0",
|
|
32
|
+
"@streamr/utils": "100.0.0",
|
|
32
33
|
"commander": "^12.0.0",
|
|
33
34
|
"easy-table": "^1.1.1",
|
|
34
35
|
"event-stream": "^4.0.1",
|
|
35
|
-
"lodash": "^4.17.21"
|
|
36
|
-
"streamr-client": "100.0.0-testnet-three.6"
|
|
36
|
+
"lodash": "^4.17.21"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@streamr/test-utils": "100.0.0
|
|
39
|
+
"@streamr/test-utils": "100.0.0",
|
|
40
40
|
"@types/event-stream": "^4.0.5",
|
|
41
41
|
"@types/lodash": "^4.14.202",
|
|
42
42
|
"@types/merge2": "^1.4.4",
|
package/src/client.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import omit from 'lodash/omit'
|
|
2
2
|
import merge from 'lodash/merge'
|
|
3
|
-
import { StreamrClientConfig, StreamrClient, CONFIG_TEST } from 'streamr
|
|
3
|
+
import { StreamrClientConfig, StreamrClient, CONFIG_TEST } from '@streamr/sdk'
|
|
4
4
|
import { Options } from './command'
|
|
5
5
|
import { getConfig } from './config'
|
|
6
6
|
|
package/src/command.ts
CHANGED
package/src/config.ts
CHANGED
package/src/permission.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Argument } from 'commander'
|
|
2
|
-
import { PermissionAssignment, Stream, StreamPermission, StreamrClient } from 'streamr
|
|
2
|
+
import { PermissionAssignment, Stream, StreamPermission, StreamrClient } from '@streamr/sdk'
|
|
3
3
|
import { createClientCommand } from './command'
|
|
4
4
|
|
|
5
5
|
const PUBLIC_USER_ID = 'public'
|
package/src/resend.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fetchPrivateKeyWithGas } from '@streamr/test-utils'
|
|
2
2
|
import 'jest-extended'
|
|
3
|
-
import { StreamID } from 'streamr
|
|
3
|
+
import { StreamID } from '@streamr/sdk'
|
|
4
4
|
import { DOCKER_DEV_STORAGE_NODE, createTestClient, runCommand } from './utils'
|
|
5
5
|
import { waitForCondition } from '@streamr/utils'
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fetchPrivateKeyWithGas, randomEthereumAddress } from '@streamr/test-utils'
|
|
2
2
|
import 'jest-extended'
|
|
3
|
-
import { StreamPermission } from 'streamr
|
|
3
|
+
import { StreamPermission } from '@streamr/sdk'
|
|
4
4
|
import { createTestClient, runCommand } from './utils'
|
|
5
5
|
|
|
6
6
|
describe('permission', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Wallet } from '@ethersproject/wallet'
|
|
2
2
|
import { fetchPrivateKeyWithGas } from '@streamr/test-utils'
|
|
3
3
|
import { collect } from '@streamr/utils'
|
|
4
|
-
import { StreamPermission } from 'streamr
|
|
4
|
+
import { StreamPermission } from '@streamr/sdk'
|
|
5
5
|
import { createTestClient, runCommand, startCommand } from './utils'
|
|
6
6
|
|
|
7
7
|
const TIMEOUT = 30 * 1000
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fetchPrivateKeyWithGas } from '@streamr/test-utils'
|
|
2
2
|
import range from 'lodash/range'
|
|
3
|
-
import { Message, Stream } from 'streamr
|
|
3
|
+
import { Message, Stream } from '@streamr/sdk'
|
|
4
4
|
import { DOCKER_DEV_STORAGE_NODE, createTestClient, runCommand } from './utils'
|
|
5
5
|
import { wait } from '@streamr/utils'
|
|
6
6
|
|
package/test/utils.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { collect, waitForCondition } from '@streamr/utils'
|
|
2
2
|
import { spawn } from 'child_process'
|
|
3
3
|
import merge2 from 'merge2'
|
|
4
|
-
import { CONFIG_TEST, Stream, StreamrClient } from 'streamr
|
|
4
|
+
import { CONFIG_TEST, Stream, StreamrClient } from '@streamr/sdk'
|
|
5
5
|
|
|
6
6
|
export const DOCKER_DEV_STORAGE_NODE = '0xde1112f631486CfC759A50196853011528bC5FA0'
|
|
7
7
|
|
package/OLD_CHANGELOG.md
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
# Old Changelog
|
|
2
|
-
|
|
3
|
-
Versions before 7.0.0 and below are collected into this file. Changelogs for
|
|
4
|
-
newer versions of the cli-tool are available at the root-level CHANGELOG.md
|
|
5
|
-
file.
|
|
6
|
-
|
|
7
|
-
## [6.1.1] - 2022-11-03
|
|
8
|
-
|
|
9
|
-
### Fixed
|
|
10
|
-
|
|
11
|
-
- Fix `streamr governance vote` command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [6.1.0] - 2022-10-31
|
|
15
|
-
|
|
16
|
-
### Added
|
|
17
|
-
|
|
18
|
-
- Add command `streamr governance vote` for casting votes on Streamr governance proposals
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
## [6.0.0] - 2022-02-23
|
|
22
|
-
|
|
23
|
-
- Add new command `stream wallet whoami` to display Ethereum address
|
|
24
|
-
- (Breaking) `stream create` argument is a stream ID, not a name
|
|
25
|
-
- Support path notation when defining a stream ID
|
|
26
|
-
- (Breaking) Remove `misc get-session-token` command
|
|
27
|
-
- (Breaking) Change permission names and arguments:
|
|
28
|
-
- renamed `--operation` to `--permission` in `stream list`
|
|
29
|
-
- the data format of `permissions` returned by `--include-permissions` of `stream show`
|
|
30
|
-
- enum values updated for all commands: `subscribe`, `publish`, `edit`, `delete` and `grant`
|
|
31
|
-
- (Breaking) Remove `lastUpdated` and `name` columns from `stream list` output
|
|
32
|
-
- (Breaking) Modify configuration management:
|
|
33
|
-
- can read config from `~/.streamr/config/default.json`
|
|
34
|
-
- `--config` argument added
|
|
35
|
-
- `--stg`, `--http-url` and `--ws-url` arguments removed
|
|
36
|
-
- (Breaking) Rename `--config` argument to `--stream-config` in `stream create`
|
|
37
|
-
- (Breaking) Remove `stream list` command
|
|
38
|
-
- Add `stream search` command
|
|
39
|
-
- (Breaking) Rename `--partition-key` argument to `--partition-key-field` in `stream publish`
|
|
40
|
-
- Bump dependency streamr-client to 6.1.0
|
|
41
|
-
- Bump dependency commander to 8.3.0
|
|
42
|
-
|
|
43
|
-
## 5.0.1 - 2021-06-04
|
|
44
|
-
|
|
45
|
-
- Add permission commands: `stream grant-permission` and `stream revoke-permission`
|
|
46
|
-
- Remove `typescript` and `ts-node` as run-time dependencies
|
|
47
|
-
- (Breaking) Remove `--msg-chain-id` parameter from `stream resend from`
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
## [5.0.0] - 2021-05-05
|
|
51
|
-
|
|
52
|
-
### Added
|
|
53
|
-
- Add storage node commands under `streamr storage-node`
|
|
54
|
-
|
|
55
|
-
### Changed
|
|
56
|
-
- (Breaking) Commands are divided to subcommands: most of the existing command are under `streamr stream`, and `generate` command under `streamr mock-data`
|
|
57
|
-
- `streamr subscribe` is now `streamr stream subscribe`
|
|
58
|
-
- `streamr publish` is now `streamr stream publish`
|
|
59
|
-
- `streamr list` is now `streamr stream list`
|
|
60
|
-
- `streamr show` is now `streamr stream show`
|
|
61
|
-
- `streamr create` is now `streamr stream create`
|
|
62
|
-
- `streamr resend` is now `streamr stream resend`
|
|
63
|
-
- `streamr generate` is now `streamr mock-data generate`
|
|
64
|
-
- Fixed examples of --private-key in README
|
|
65
|
-
- Internal implementation was converted to TypeScript
|
|
66
|
-
- Bump dependency streamr-client to 5.2.1
|
|
67
|
-
- Bump dependency commander to 7.2.0
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
## [4.1.1] - 2021-02-11
|
|
71
|
-
|
|
72
|
-
### Changed
|
|
73
|
-
- Bump dependency streamr-client to 5.0.0-beta.6
|
|
74
|
-
- Bump dependency commander to ^6.1.0
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
## [4.1.0] - 2020-10-12
|
|
78
|
-
|
|
79
|
-
### Changed
|
|
80
|
-
- Bump dependency streamr-client to ^4.1.1.
|
|
81
|
-
- Turn option `--privateKey` into `--private-key` for consistency.
|
|
82
|
-
- Turn `--apiKey` into `--api-key` for consistency.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
## [4.0.0] - 2020-06-18
|
|
86
|
-
|
|
87
|
-
### Added
|
|
88
|
-
|
|
89
|
-
- Ethereum authentication with `--privateKey <key>`. This also enables message signing when publishing messages.
|
|
90
|
-
|
|
91
|
-
### Changed
|
|
92
|
-
|
|
93
|
-
- (Breaking) Rename command `listen` to `subscribe`.
|
|
94
|
-
- (Breaking) API key is now given with `--apiKey <key>`. API keys are deprecated. Option `--privateKey` should be preferred.
|
|
95
|
-
|
|
96
|
-
## [3.1.1] - 2020-04-16
|
|
97
|
-
|
|
98
|
-
### Added
|
|
99
|
-
|
|
100
|
-
- Add `--subscribe` flag to commands `streamr resend from` and `streamr resend last`. This causes the command to resend and subscribe.
|
|
101
|
-
|
|
102
|
-
### Changed
|
|
103
|
-
|
|
104
|
-
- Bump dependency streamr-client to ^3.1.3.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
## [3.1.0] - 2019-12-12
|
|
108
|
-
|
|
109
|
-
### Added
|
|
110
|
-
|
|
111
|
-
- Add `--disable-ordering` flag to command `streamr listen` for disabling
|
|
112
|
-
ordering and gap filling.
|
|
113
|
-
- Add `--disable-ordering` flag to commands `streamr resend *` to disabling
|
|
114
|
-
ordering and gap filling.
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
## [3.0.1] - 2019-10-14
|
|
118
|
-
|
|
119
|
-
### Added
|
|
120
|
-
|
|
121
|
-
- Start keeping a CHANGELOG.md.
|
|
122
|
-
|
|
123
|
-
### Changed
|
|
124
|
-
- Bump dependency streamr-client to ^2.2.7.
|
|
125
|
-
- Bump dependency commander to ^4.0.1.
|
|
126
|
-
- Re-organize README.md and a few touches to Developing section paragraphs.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
[Unreleased]: https://github.com/streamr-dev/network/compare/cli-tools%2fv8.3.1...HEAD
|
|
130
|
-
[8.3.1]: https://github.com/streamr-dev/network/compare/cli-tools%2fv7.0.0...cli-tools%2fv8.3.1
|
|
131
|
-
[7.0.0]: https://github.com/streamr-dev/network/compare/cli-tools%2fv6.1.1...cli-tools%2fv7.0.0
|
|
132
|
-
[6.1.1]: https://github.com/streamr-dev/network/compare/cli-tools%2fv6.1.0...cli-tools%2fv6.1.1
|
|
133
|
-
[6.1.0]: https://github.com/streamr-dev/network/compare/cli-tools%2fv6.0.0...cli-tools%2fv6.1.0
|
|
134
|
-
[6.0.0]: https://github.com/streamr-dev/network/compare/cli-tools%2fv5.0.1...cli-tools%2fv6.0.0
|
|
135
|
-
[5.0.0]: https://github.com/streamr-dev/cli-tools/compare/v4.1.1...v5.0.0
|
|
136
|
-
[4.1.1]: https://github.com/streamr-dev/cli-tools/compare/v4.1.0...v4.1.1
|
|
137
|
-
[4.1.0]: https://github.com/streamr-dev/cli-tools/compare/v4.0.0...v4.1.0
|
|
138
|
-
[4.0.0]: https://github.com/streamr-dev/cli-tools/compare/v3.1.1...v4.0.0
|
|
139
|
-
[3.1.1]: https://github.com/streamr-dev/cli-tools/compare/v3.1.0...v3.1.1
|
|
140
|
-
[3.1.0]: https://github.com/streamr-dev/cli-tools/compare/v3.0.1...v3.1.0
|
|
141
|
-
[3.0.1]: https://github.com/streamr-dev/cli-tools/compare/v3.0.0...v3.0.1
|