Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/docs/help/operator-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ Recheck operator address from the hub & reconfigure your node to use the correct
I’m receiving the following warning message.

```JSON
WARN [2023-11-10T10:01:42.418] (NodeWebRtcConnection): Failed to set remote descriptor for peer 0a3849076d8a43b19b876fbc6eba935f
WARN [2023-11-10T10:01:42.421] (NodeWebRtcConnection): Failed to set remote candidate for peer 0a3849076d8a43b19b876fbc6eba935f
WARN [2023-11-10T10:01:42.622] (NodeWebRtcConnection): Failed to set remote candidate for peer 0a3849076d8a43b19b876fbc6eba935f
WARN [2023-11-10T10:01:42.867] (NodeWebRtcConnection): Failed to set remote candidate for peer 0a3849076d8a43b19b876fbc6eba935f
WARN [2023-11-10T10:01:42.418] (WebRtcConnection): Failed to set remote descriptor for peer 0a3849076d8a43b19b876fbc6eba935f
WARN [2023-11-10T10:01:42.421] (WebRtcConnection): Failed to set remote candidate for peer 0a3849076d8a43b19b876fbc6eba935f
WARN [2023-11-10T10:01:42.622] (WebRtcConnection): Failed to set remote candidate for peer 0a3849076d8a43b19b876fbc6eba935f
WARN [2023-11-10T10:01:42.867] (WebRtcConnection): Failed to set remote candidate for peer 0a3849076d8a43b19b876fbc6eba935f
```

**Explanation:**
Expand Down Expand Up @@ -332,4 +332,4 @@ You'll need to pay the early exit fee of 5k DATA. The unwithdrawn earnings from
#### What are some tips for staying safe on Streamr?
- Consider starting small with your stake amount and use common sense to never stake more than you can afford to lose. A professional audit of the incentive layer has been completed by Cyfrin, but nothing can be guaranteed of course.
- If you want to stake on a sponsorship, DO NOT click on the "Sponsor". That's for funding the sponsorship, not staking! Instead, go to the sponsorship you want to stake on and click "Join as an operator” and enter the amount.
- There may be an increase in activity by scammers. A common approach is to pretend to offer help or tech support in direct messages (something we never do). Report any account that is asking you to sign transactions or asking for any sort of credentials such as your private key. These accounts are trying to steal your tokens. It’s advised you disable DMs on Discord. More tips can be found in #server-safety-guide.
- There may be an increase in activity by scammers. A common approach is to pretend to offer help or tech support in direct messages (something we never do). Report any account that is asking you to sign transactions or asking for any sort of credentials such as your private key. These accounts are trying to steal your tokens. It’s advised you disable DMs on Discord. More tips can be found in #server-safety-guide.
935 changes: 837 additions & 98 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 19 additions & 5 deletions packages/autocertifier-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,27 @@
"url": "git+https://github.com/streamr-dev/network.git",
"directory": "packages/autocertifier-client"
},
"main": "dist/src/exports.js",
"types": "dist/src/exports.d.ts",
"exports": {
".": {
"default": {
"types": "./dist/src/exports.d.ts",
"import": "./dist/src/exports.js",
"require": "./dist/src/exports.cjs"
}
}
},
"files": [
"dist",
"dist/src/exports.*",
"!*.tsbuildinfo"
],
"license": "STREAMR NETWORK OPEN SOURCE LICENSE",
"author": "Streamr Network AG <[email protected]>",
"scripts": {
"prebuild": "./proto.sh",
"prebuild": "npm run reset-self && ./proto.sh",
"build": "tsc -b",
"postbuild": "NODE_OPTIONS='--import tsx' rollup -c rollup.config.mts",
"check": "tsc --noEmit",
"reset-self": "rimraf --glob '**/*.tsbuildinfo'",
"clean": "rm -rf dist generated *.tsbuildinfo node_modules/.cache || true",
"eslint": "eslint --cache --cache-location=node_modules/.cache/.eslintcache/ '*/**/*.{js,ts}'"
},
Expand All @@ -29,6 +38,11 @@
"node-forge": "^1.3.2"
},
"devDependencies": {
"@types/node-forge": "^1.3.14"
"@rollup/plugin-node-resolve": "^16.0.3",
"@types/node-forge": "^1.3.14",
"rimraf": "^6.1.2",
"rollup": "^4.53.5",
"rollup-plugin-dts": "^6.3.0",
"tsx": "^4.21.0"
}
}
54 changes: 54 additions & 0 deletions packages/autocertifier-client/rollup.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { defineConfig, type RollupOptions } from 'rollup'
import { dts } from 'rollup-plugin-dts'
import { nodeResolve } from '@rollup/plugin-node-resolve'

export default defineConfig([
nodejs(),
nodejsTypes(),
])

function nodejs(): RollupOptions {
return {
input: './dist/src/exports.js',
output: [
{
format: 'es',
file: './dist/src/exports.js',
sourcemap: true,
},
{
format: 'cjs',
file: './dist/src/exports.cjs',
sourcemap: true,
},
],
plugins: [
nodeResolve({
preferBuiltins: true,
}),
],
external: [
/node_modules/,
/@streamr\//,
],
}
}

function nodejsTypes(): RollupOptions {
return {
input: './dist/src/exports.d.ts',
output: [
{
file: './dist/src/exports.d.ts',
},
],
plugins: [
nodeResolve(),
dts(),
],
external: [
/node_modules/,
/@streamr\//,
],
}
}
7 changes: 6 additions & 1 deletion packages/autocertifier-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"outDir": "dist",
"noImplicitOverride": false
"noImplicitOverride": false,

/* Resolution */
"module": "preserve",
"moduleResolution": "bundler",
"baseUrl": "."
},
"include": [
"src",
Expand Down
22 changes: 18 additions & 4 deletions packages/browser-test-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,35 @@
"url": "git+https://github.com/streamr-dev/network.git",
"directory": "packages/browser-test-runner"
},
"main": "./dist/src/exports.js",
"browser": {
"./dist/src/exports.js": false
"exports": {
".": {
"default": {
"types": "./dist/src/exports.d.ts",
"import": "./dist/src/exports.js",
"require": "./dist/src/exports.cjs"
}
}
},
"files": [
"dist",
"dist/src/exports.*",
"dist/src/preload.cjs",
"!*.tsbuildinfo",
"LICENSE"
],
"scripts": {
"prebuild": "npm run reset-self",
"build": "tsc -b",
"postbuild": "NODE_OPTIONS='--import tsx' rollup -c rollup.config.mts",
"check": "tsc --noEmit",
"reset-self": "rimraf --glob '**/*.tsbuildinfo'",
"eslint": "eslint --cache --cache-location=node_modules/.cache/.eslintcache/ '**/*.{js,ts}'"
},
"author": "Streamr Network AG <[email protected]>",
"license": "Apache-2.0",
"devDependencies": {
"@electron/rebuild": "^4.0.1",
"@jest/fake-timers": "^30.0.5",
"@rollup/plugin-node-resolve": "^16.0.3",
"buffer": "^6.0.3",
"electron": "^34.0.0",
"expect": "^30.0.5",
Expand All @@ -40,6 +50,10 @@
"karma-spec-reporter": "^0.0.36",
"karma-webpack": "^5.0.1",
"node-polyfill-webpack-plugin": "^4.1.0",
"rimraf": "^6.1.2",
"rollup": "^4.53.5",
"rollup-plugin-dts": "^6.3.0",
"tsx": "^4.21.0",
"webpack": "^5.103.0",
"webpack-cli": "^6.0.1"
}
Expand Down
68 changes: 68 additions & 0 deletions packages/browser-test-runner/rollup.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import { defineConfig, type RollupOptions } from 'rollup'
import { dts } from 'rollup-plugin-dts'
import { nodeResolve } from '@rollup/plugin-node-resolve'

export default defineConfig([
...nodejs(),
nodejsTypes(),
])

function nodejs(): RollupOptions[] {
return [
{
input: './dist/src/exports.js',
output: [
{
format: 'es',
file: './dist/src/exports.js',
sourcemap: true,
},
{
format: 'cjs',
file: './dist/src/exports.cjs',
sourcemap: true,
},
],
plugins: [
nodeResolve({
preferBuiltins: true,
}),
],
external: [
/node_modules/,
/@streamr\//,
],
},
{
/**
* We need a CJS preload file for Electron apps - that's the only format they support.
*/
input: './dist/src/preload.js',
output: [
{
format: 'cjs',
file: './dist/src/preload.cjs',
},
],
},
]
}

function nodejsTypes(): RollupOptions {
return {
input: './dist/src/exports.d.ts',
output: [
{
file: './dist/src/exports.d.ts',
},
],
plugins: [
nodeResolve(),
dts(),
],
external: [
/node_modules/,
/@streamr\//,
],
}
}
5 changes: 3 additions & 2 deletions packages/browser-test-runner/src/createKarmaConfig.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import fs from 'fs'
import { fileURLToPath } from 'url'
import type { Configuration, ExternalItem } from 'webpack'

const DEBUG_MODE = process.env.BROWSER_TEST_DEBUG_MODE ?? false

export const createKarmaConfig = (
testPaths: string[], webpackConfig: () => Configuration, localDirectory?: string
): (config: any) => any => {
const setupFiles = [__dirname + '/karma-setup.js']
const setupFiles = [fileURLToPath(new URL('./karma-setup.js', import.meta.url))]

if (localDirectory !== undefined) {
const localSetupFile = localDirectory + '/karma-setup.js'
Expand Down Expand Up @@ -58,7 +59,7 @@ export const createKarmaConfig = (
browserWindowOptions: {
webPreferences: {
contextIsolation: false,
preload: __dirname + '/preload.js',
preload: fileURLToPath(new URL('./preload.cjs', import.meta.url)),
webSecurity: false,
sandbox: false,
nodeIntegration: true
Expand Down
7 changes: 6 additions & 1 deletion packages/browser-test-runner/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"outDir": "dist"
"outDir": "dist",

/* Resolution */
"module": "preserve",
"moduleResolution": "bundler",
"baseUrl": "."
},
"include": [
"src"
Expand Down
23 changes: 19 additions & 4 deletions packages/cdn-location/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,29 @@
"url": "git+https://github.com/streamr-dev/network.git",
"directory": "packages/cdn-location"
},
"main": "dist/src/exports.js",
"types": "dist/src/exports.d.ts",
"exports": {
".": {
"default": {
"types": "./dist/src/exports.d.ts",
"import": "./dist/src/exports.js",
"require": "./dist/src/exports.cjs"
}
}
},
"files": [
"dist",
"dist/src/exports.*",
"!*.tsbuildinfo",
"README.md",
"LICENSE"
],
"license": "Apache-2.0",
"author": "Streamr Network AG <[email protected]>",
"scripts": {
"prebuild": "npm run reset-self",
"build": "tsc -b",
"postbuild": "NODE_OPTIONS='--import tsx' rollup -c rollup.config.mts",
"check": "tsc -p tsconfig.jest.json",
"reset-self": "rimraf --glob '**/*.tsbuildinfo'",
"clean": "jest --clearCache --config '{}' || true; rm -rf dist *.tsbuildinfo node_modules/.cache || true",
"eslint": "eslint --cache --cache-location=node_modules/.cache/.eslintcache/ '*/**/*.{js,ts}'",
"test": "jest test/integration",
Expand All @@ -32,6 +42,11 @@
"haversine": "^1.1.1"
},
"devDependencies": {
"@types/haversine": "^1.1.8"
"@rollup/plugin-node-resolve": "^16.0.3",
"@types/haversine": "^1.1.8",
"rimraf": "^6.1.2",
"rollup": "^4.53.5",
"rollup-plugin-dts": "^6.3.0",
"tsx": "^4.21.0"
}
}
54 changes: 54 additions & 0 deletions packages/cdn-location/rollup.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { defineConfig, type RollupOptions } from 'rollup'
import { dts } from 'rollup-plugin-dts'
import { nodeResolve } from '@rollup/plugin-node-resolve'

export default defineConfig([
nodejs(),
nodejsTypes(),
])

function nodejs(): RollupOptions {
return {
input: './dist/src/exports.js',
output: [
{
format: 'es',
file: './dist/src/exports.js',
sourcemap: true,
},
{
format: 'cjs',
file: './dist/src/exports.cjs',
sourcemap: true,
},
],
plugins: [
nodeResolve({
preferBuiltins: true,
}),
],
external: [
/node_modules/,
/@streamr\//,
],
}
}

function nodejsTypes(): RollupOptions {
return {
input: './dist/src/exports.d.ts',
output: [
{
file: './dist/src/exports.d.ts',
},
],
plugins: [
nodeResolve(),
dts(),
],
external: [
/node_modules/,
/@streamr\//,
],
}
}
Loading
Loading