@substrate/api-sidecar 12.1.0 → 12.1.1

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 CHANGED
@@ -36,9 +36,9 @@ Compatibility:
36
36
  | v14.x.x | Stable |
37
37
  | v16.x.x | Stable |
38
38
  | v17.x.x | Not Stable |
39
- | v18.x.x | Pending |
39
+ | v18.x.x | Pending |
40
40
 
41
- NOTE: Node LTS (`long term support`) versions start with an even number, and odd number versions are subject to a 6 month testing period with active support before they are unsupported. It is recommended to use sidecar with a stable actively maintained version of node.js.
41
+ NOTE: Node LTS (`long term support`) versions start with an even number, and odd number versions are subject to a 6 month testing period with active support before they are unsupported. It is recommended to use sidecar with a stable actively maintained version of node.js.
42
42
 
43
43
  ## Table of contents
44
44
 
@@ -94,7 +94,7 @@ node_modules/.bin/substrate-api-sidecar
94
94
 
95
95
  [Click here for full endpoint docs.](https://paritytech.github.io/substrate-api-sidecar/dist/)
96
96
 
97
- In the full endpoints doc, you will also find the following `trace` related endpoints :
97
+ In the full endpoints doc, you will also find the following `trace` related endpoints :
98
98
  - `/experimental/blocks/{blockId}/traces/operations?actions=false`
99
99
  - `/experimental/blocks/head/traces/operations?actions=false`
100
100
  - `/experimental/blocks/{blockId}/traces`
@@ -299,8 +299,8 @@ All the commits in this repo follow the [Conventional Commits spec](https://www.
299
299
 
300
300
  ### Updating polkadot-js dependencies
301
301
 
302
- 1. Every Monday the polkadot-js ecosystem will usually come out with a new release. It's important that we keep up,
303
- and read the release notes for any breaking changes or high priority updates. In order to update all the dependencies and resolutions run `yarn update-pjs-deps`.
302
+ 1. Every Monday the polkadot-js ecosystem will usually come out with a new release. It's important that we keep up,
303
+ and read the release notes for any breaking changes or high priority updates. In order to update all the dependencies and resolutions run `yarn update-pjs-deps`.
304
304
 
305
305
  - @polkadot/api [release notes](https://github.com/polkadot-js/api/releases)
306
306
  - @polkadot/apps-config [release notes](https://github.com/polkadot-js/apps/releases)
@@ -308,9 +308,19 @@ and read the release notes for any breaking changes or high priority updates. In
308
308
  - @polkadot/util-crypto [release notes](https://github.com/polkadot-js/common/releases)
309
309
  - @substrate/calc [npm release page](https://www.npmjs.com/package/@substrate/calc)
310
310
 
311
- 1. Ensure everything is working by running the following tests, `yarn build`, `yarn lint`, `yarn test`, `yarn test:init-e2e-tests`.
311
+ 1. Ensure everything is up to date and working by running the following:
312
+ ```
313
+ yarn
314
+ yarn dedupe
315
+ yarn build
316
+ yarn lint
317
+ yarn test
318
+ yarn test:init-e2e-tests
319
+ ```
312
320
 
313
- 1. Lastly, create a PR with the updates.
321
+ 1. Commit the dependency updates with a name like `fix(deps): update pjs api` (title depending on what got updated, see commit history for other examples of this), and wait to get it merged.
322
+
323
+ 1. Follow [RELEASE.md](./RELEASE.md) next if you're working through a full sidecar release. This will involve creating a separate PR where the changelog and versions are bumped.
314
324
 
315
325
  ## Hardware requirements
316
326
 
@@ -321,18 +331,18 @@ Sidecar is a stateless program and thus should not use any disk space.
321
331
  The requirements follow the default of node.js processes which is an upper bound in HEAP memory of a little less than 2GB thus 4GB of memory should be sufficient.
322
332
 
323
333
  ### Running sidecar and a node
324
- Please note that if you run sidecar next to a substrate node in a single machine then your system specifications should improve significantly.
334
+ Please note that if you run sidecar next to a substrate node in a single machine then your system specifications should improve significantly.
325
335
  - Our official specifications related to validator nodes can be found in the polkadot wiki [page](https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot#standard-hardware).
326
336
  - Regarding archive nodes :
327
337
  - again as mentioned in the polkadot wiki [page](https://wiki.polkadot.network/docs/maintain-sync#types-of-nodes), the space needed from an archive node depends on which block we are currently on (of the specific chain we are referring to).
328
338
  - there are no other hardware requirements for an archive node since it is not time critical (archive nodes do not participate in the consensus).
329
339
 
330
340
  ### Benchmarks
331
- During the benchmarks we performed, we concluded that sidecar would use a max of 1.1GB of RSS memory.
341
+ During the benchmarks we performed, we concluded that sidecar would use a max of 1.1GB of RSS memory.
332
342
 
333
343
  The benchmarks were:
334
344
  - using 4 threads over 12 open http connections and
335
- - were overloading the cache with every runtime possible on polkadot.
345
+ - were overloading the cache with every runtime possible on polkadot.
336
346
 
337
347
  Hardware specs in which the benchmarks were performed:
338
348
  ```
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "12.1.0",
2
+ "version": "12.1.1",
3
3
  "name": "@substrate/api-sidecar",
4
4
  "description": "REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.",
5
5
  "homepage": "https://github.com/paritytech/substrate-api-sidecar#readme",
@@ -54,8 +54,8 @@
54
54
  "update-pjs-deps": "substrate-update-pjs-deps && yarn"
55
55
  },
56
56
  "dependencies": {
57
- "@polkadot/api": "^8.7.1",
58
- "@polkadot/util-crypto": "^9.4.1",
57
+ "@polkadot/api": "8.8.2",
58
+ "@polkadot/util-crypto": "9.4.1",
59
59
  "@substrate/calc": "^0.2.8",
60
60
  "argparse": "^2.0.1",
61
61
  "confmgr": "1.0.7",
@@ -67,7 +67,7 @@
67
67
  "winston": "^3.3.3"
68
68
  },
69
69
  "devDependencies": {
70
- "@substrate/dev": "^0.6.1",
70
+ "@substrate/dev": "^0.6.2",
71
71
  "@types/argparse": "2.0.10",
72
72
  "@types/express": "4.17.13",
73
73
  "@types/express-serve-static-core": "4.17.25",
@@ -89,5 +89,5 @@
89
89
  "polkadot",
90
90
  "kusama"
91
91
  ],
92
- "packageManager": "yarn@3.2.0"
92
+ "packageManager": "yarn@3.2.1"
93
93
  }
package/build/src/main.js CHANGED
File without changes
@@ -1,6 +1,8 @@
1
- import { GenericEventData } from '@polkadot/types';
1
+ import { IEventData } from '@polkadot/types/types';
2
+ import { Codec } from '@polkadot/types-codec/types';
2
3
  import { IFrameMethod } from '.';
3
4
  export interface ISanitizedEvent {
4
5
  method: string | IFrameMethod;
5
- data: GenericEventData;
6
+ data: Codec[] & IEventData;
7
+ docs?: string;
6
8
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "12.1.0",
2
+ "version": "12.1.1",
3
3
  "name": "@substrate/api-sidecar",
4
4
  "description": "REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.",
5
5
  "homepage": "https://github.com/paritytech/substrate-api-sidecar#readme",
@@ -54,8 +54,8 @@
54
54
  "update-pjs-deps": "substrate-update-pjs-deps && yarn"
55
55
  },
56
56
  "dependencies": {
57
- "@polkadot/api": "^8.7.1",
58
- "@polkadot/util-crypto": "^9.4.1",
57
+ "@polkadot/api": "8.8.2",
58
+ "@polkadot/util-crypto": "9.4.1",
59
59
  "@substrate/calc": "^0.2.8",
60
60
  "argparse": "^2.0.1",
61
61
  "confmgr": "1.0.7",
@@ -67,7 +67,7 @@
67
67
  "winston": "^3.3.3"
68
68
  },
69
69
  "devDependencies": {
70
- "@substrate/dev": "^0.6.1",
70
+ "@substrate/dev": "^0.6.2",
71
71
  "@types/argparse": "2.0.10",
72
72
  "@types/express": "4.17.13",
73
73
  "@types/express-serve-static-core": "4.17.25",
@@ -89,5 +89,5 @@
89
89
  "polkadot",
90
90
  "kusama"
91
91
  ],
92
- "packageManager": "yarn@3.2.0"
92
+ "packageManager": "yarn@3.2.1"
93
93
  }