@substrate/api-sidecar 11.3.17 → 11.4.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 -3
- package/build/package.json +30 -29
- package/build/src/chains-config/index.js.map +1 -1
- package/build/src/controllers/AbstractController.d.ts +2 -1
- package/build/src/controllers/AbstractController.js +2 -2
- package/build/src/controllers/AbstractController.js.map +1 -1
- package/build/src/controllers/accounts/AccountsBalanceInfoController.js +3 -2
- package/build/src/controllers/accounts/AccountsBalanceInfoController.js.map +1 -1
- package/build/src/controllers/runtime/RuntimeMetadataController.js +9 -1
- package/build/src/controllers/runtime/RuntimeMetadataController.js.map +1 -1
- package/build/src/logging/transformers/nodeUtilFormat.js +1 -0
- package/build/src/logging/transformers/nodeUtilFormat.js.map +1 -1
- package/build/src/sanitize/sanitizeNumbers.d.ts +3 -1
- package/build/src/sanitize/sanitizeNumbers.js +88 -18
- package/build/src/sanitize/sanitizeNumbers.js.map +1 -1
- package/build/src/sanitize/sanitizeNumbers.spec.js +56 -0
- package/build/src/sanitize/sanitizeNumbers.spec.js.map +1 -1
- package/build/src/services/accounts/AccountsBalanceInfoService.d.ts +33 -1
- package/build/src/services/accounts/AccountsBalanceInfoService.js +80 -16
- package/build/src/services/accounts/AccountsBalanceInfoService.js.map +1 -1
- package/build/src/services/accounts/AccountsBalanceInfoService.spec.js +48 -4
- package/build/src/services/accounts/AccountsBalanceInfoService.spec.js.map +1 -1
- package/build/src/services/accounts/AccountsStakingPayoutsService.spec.js +3 -3
- package/build/src/services/blocks/BlocksService.js +2 -2
- package/build/src/services/blocks/BlocksService.js.map +1 -1
- package/build/src/types/responses/AccountBalanceInfo.d.ts +11 -6
- package/build/src/types/responses/Extrinsic.d.ts +4 -4
- package/build/src/types/sanitize/index.d.ts +1 -0
- package/build/src/types/sanitize/index.js +14 -0
- package/build/src/types/sanitize/index.js.map +1 -0
- package/build/src/types/sanitize/sanitize.d.ts +8 -0
- package/build/src/types/sanitize/sanitize.js +3 -0
- package/build/src/types/sanitize/sanitize.js.map +1 -0
- package/package.json +30 -29
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./sanitize"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/sanitize/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitize.js","sourceRoot":"","sources":["../../../../src/types/sanitize/sanitize.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "11.
|
|
2
|
+
"version": "11.4.0",
|
|
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",
|
|
@@ -47,15 +47,16 @@
|
|
|
47
47
|
"test:init-e2e-tests:statemine": "yarn test:init-e2e-tests --chain statemine",
|
|
48
48
|
"test:init-e2e-tests:statemint": "yarn test:init-e2e-tests --chain statemint",
|
|
49
49
|
"start:e2e-scripts": "yarn build:scripts && node scripts/build/runChainTests.js",
|
|
50
|
-
"build:scripts": "substrate-exec-rimraf scripts/build/ &&
|
|
50
|
+
"build:scripts": "substrate-exec-rimraf scripts/build/ && substrate-exec-tsc --project scripts/tsconfig.json",
|
|
51
51
|
"lint:scripts": "cd scripts && substrate-dev-run-lint",
|
|
52
52
|
"start:test-release": "yarn build:scripts && node scripts/build/runYarnPack.js",
|
|
53
|
-
"test:test-release": "yarn start:test-release"
|
|
53
|
+
"test:test-release": "yarn start:test-release",
|
|
54
|
+
"update-pjs-deps": "substrate-update-pjs-deps && yarn"
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
|
-
"@polkadot/api": "
|
|
57
|
-
"@polkadot/apps-config": "
|
|
58
|
-
"@polkadot/util-crypto": "
|
|
57
|
+
"@polkadot/api": "8.4.2",
|
|
58
|
+
"@polkadot/apps-config": "0.115.2",
|
|
59
|
+
"@polkadot/util-crypto": "9.2.1",
|
|
59
60
|
"@substrate/calc": "^0.2.8",
|
|
60
61
|
"argparse": "^2.0.1",
|
|
61
62
|
"confmgr": "1.0.7",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"winston": "^3.3.3"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
|
-
"@substrate/dev": "^0.
|
|
71
|
+
"@substrate/dev": "^0.6.1",
|
|
71
72
|
"@types/argparse": "2.0.10",
|
|
72
73
|
"@types/express": "4.17.13",
|
|
73
74
|
"@types/express-serve-static-core": "4.17.25",
|
|
@@ -78,28 +79,28 @@
|
|
|
78
79
|
"tsc-watch": "^4.4.0"
|
|
79
80
|
},
|
|
80
81
|
"resolutions": {
|
|
81
|
-
"@polkadot/api": "8.
|
|
82
|
-
"@polkadot/api-augment": "8.
|
|
83
|
-
"@polkadot/api-base": "8.
|
|
84
|
-
"@polkadot/api-derive": "8.
|
|
85
|
-
"@polkadot/rpc-core": "8.
|
|
86
|
-
"@polkadot/rpc-augment": "8.
|
|
87
|
-
"@polkadot/rpc-provider": "8.
|
|
88
|
-
"@polkadot/types": "8.
|
|
89
|
-
"@polkadot/types-augment": "8.
|
|
90
|
-
"@polkadot/types-codec": "8.
|
|
91
|
-
"@polkadot/types-create": "8.
|
|
92
|
-
"@polkadot/types-support": "8.
|
|
93
|
-
"@polkadot/types-known": "8.
|
|
94
|
-
"@polkadot/keyring": "9.
|
|
95
|
-
"@polkadot/networks": "9.
|
|
96
|
-
"@polkadot/util": "9.
|
|
97
|
-
"@polkadot/util-crypto": "9.
|
|
98
|
-
"@polkadot/x-fetch": "9.
|
|
99
|
-
"@polkadot/x-global": "9.
|
|
100
|
-
"@polkadot/x-bigint": "9.
|
|
101
|
-
"@polkadot/x-ws": "9.
|
|
102
|
-
"@polkadot/wasm-crypto": "6.
|
|
82
|
+
"@polkadot/api": "8.4.2",
|
|
83
|
+
"@polkadot/api-augment": "8.4.2",
|
|
84
|
+
"@polkadot/api-base": "8.4.2",
|
|
85
|
+
"@polkadot/api-derive": "8.4.2",
|
|
86
|
+
"@polkadot/rpc-core": "8.4.2",
|
|
87
|
+
"@polkadot/rpc-augment": "8.4.2",
|
|
88
|
+
"@polkadot/rpc-provider": "8.4.2",
|
|
89
|
+
"@polkadot/types": "8.4.2",
|
|
90
|
+
"@polkadot/types-augment": "8.4.2",
|
|
91
|
+
"@polkadot/types-codec": "8.4.2",
|
|
92
|
+
"@polkadot/types-create": "8.4.2",
|
|
93
|
+
"@polkadot/types-support": "8.4.2",
|
|
94
|
+
"@polkadot/types-known": "8.4.2",
|
|
95
|
+
"@polkadot/keyring": "9.2.1",
|
|
96
|
+
"@polkadot/networks": "9.2.1",
|
|
97
|
+
"@polkadot/util": "9.2.1",
|
|
98
|
+
"@polkadot/util-crypto": "9.2.1",
|
|
99
|
+
"@polkadot/x-fetch": "9.2.1",
|
|
100
|
+
"@polkadot/x-global": "9.2.1",
|
|
101
|
+
"@polkadot/x-bigint": "9.2.1",
|
|
102
|
+
"@polkadot/x-ws": "9.2.1",
|
|
103
|
+
"@polkadot/wasm-crypto": "6.1.1",
|
|
103
104
|
"bn.js": "5.2.0",
|
|
104
105
|
"node-fetch": "2.6.7",
|
|
105
106
|
"prismjs": ">=1.23.0",
|