Skip to content

Commit a0b39b3

Browse files
authored
Prepare v0.18.0 with bug fixing polkadot-js/api bump (#291)
* Prepare v18 with bug fixing pd.js/api bump * Remove logs
1 parent 709bbb4 commit a0b39b3

File tree

3 files changed

+97
-61
lines changed

3 files changed

+97
-61
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "substrate-api-sidecar",
3-
"version": "0.17.0",
3+
"version": "0.18.0",
44
"description": "REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.",
55
"scripts": {
66
"preinstall": "yarn build:calc",
@@ -18,7 +18,7 @@
1818
"author": "Parity Technologies <admin@parity.io>",
1919
"license": "GPL-3.0-or-later",
2020
"dependencies": {
21-
"@polkadot/api": "^1.34.0-beta.8",
21+
"@polkadot/api": "^1.34.0-beta.11",
2222
"@polkadot/util-crypto": "^3.4.1",
2323
"@substrate/calc": "file:./calc/pkg",
2424
"body-parser": "^1.19.0",

src/services/blocks/BlocksService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export class BlocksService extends AbstractService {
4444
eventDocs: boolean,
4545
extrinsicDocs: boolean
4646
): Promise<IBlock> {
47-
const { api } = this;
47+
const api = await this.ensureMeta(hash);
48+
// const { api } = this;
4849

4950
const [{ block }, events, validators] = await Promise.all([
5051
api.rpc.chain.getBlock(hash),

yarn.lock

Lines changed: 93 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -519,35 +519,35 @@
519519
"@nodelib/fs.scandir" "2.1.3"
520520
fastq "^1.6.0"
521521

522-
"@polkadot/api-derive@1.34.0-beta.8":
523-
version "1.34.0-beta.8"
524-
resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-1.34.0-beta.8.tgz#25f3c36f4d7c8c7b8770af1c141b5f573a2b660b"
525-
integrity sha512-Nx5bnNCW1ZlYdtLn0FMOxFEbNg7BQZ1UOKSfhv0fI8FC4viwIZRtjX096NPMu88xKkbBX62WOMXFKlXrLrHVMg==
522+
"@polkadot/api-derive@1.34.0-beta.11":
523+
version "1.34.0-beta.11"
524+
resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-1.34.0-beta.11.tgz#1ac6dbc6ddbf31a2977365dec2a4fd7da5e7809f"
525+
integrity sha512-3caU9TAxaRMW/PjeVfdMcKJShfSPNcDlzomlC1dnmFfrZB8XyTgr++4CjGZRKx087O9YmxHdvnbI3BeaXAo53g==
526526
dependencies:
527527
"@babel/runtime" "^7.11.2"
528-
"@polkadot/api" "1.34.0-beta.8"
529-
"@polkadot/rpc-core" "1.34.0-beta.8"
530-
"@polkadot/rpc-provider" "1.34.0-beta.8"
531-
"@polkadot/types" "1.34.0-beta.8"
528+
"@polkadot/api" "1.34.0-beta.11"
529+
"@polkadot/rpc-core" "1.34.0-beta.11"
530+
"@polkadot/rpc-provider" "1.34.0-beta.11"
531+
"@polkadot/types" "1.34.0-beta.11"
532532
"@polkadot/util" "^3.4.1"
533533
"@polkadot/util-crypto" "^3.4.1"
534534
bn.js "^5.1.3"
535535
memoizee "^0.4.14"
536536
rxjs "^6.6.3"
537537

538-
"@polkadot/api@1.34.0-beta.8", "@polkadot/api@^1.34.0-beta.8":
539-
version "1.34.0-beta.8"
540-
resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-1.34.0-beta.8.tgz#8b354578958a806469307d582138da292c4e04e4"
541-
integrity sha512-zY1stnglU+t60p821v3jyfFmuL3e3UHUgh2ZHG1/N8aJgi6XycehCmpH9HX/hAcqFkeHaE5GaANWJ7M6EQtTHg==
538+
"@polkadot/api@1.34.0-beta.11", "@polkadot/api@^1.34.0-beta.11":
539+
version "1.34.0-beta.11"
540+
resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-1.34.0-beta.11.tgz#5708e0109242c0f26373948a0714567d4f59fd37"
541+
integrity sha512-DBiM3NTCeb4f8vnNKeNP9lL5i+FiuW2avxnTqNcDISEyJ1F2PBUoc9t+sHrhDvpWIxjjAMWADqHSTAJKnTIYrg==
542542
dependencies:
543543
"@babel/runtime" "^7.11.2"
544-
"@polkadot/api-derive" "1.34.0-beta.8"
544+
"@polkadot/api-derive" "1.34.0-beta.11"
545545
"@polkadot/keyring" "^3.4.1"
546-
"@polkadot/metadata" "1.34.0-beta.8"
547-
"@polkadot/rpc-core" "1.34.0-beta.8"
548-
"@polkadot/rpc-provider" "1.34.0-beta.8"
549-
"@polkadot/types" "1.34.0-beta.8"
550-
"@polkadot/types-known" "1.34.0-beta.8"
546+
"@polkadot/metadata" "1.34.0-beta.11"
547+
"@polkadot/rpc-core" "1.34.0-beta.11"
548+
"@polkadot/rpc-provider" "1.34.0-beta.11"
549+
"@polkadot/types" "1.34.0-beta.11"
550+
"@polkadot/types-known" "1.34.0-beta.11"
551551
"@polkadot/util" "^3.4.1"
552552
"@polkadot/util-crypto" "^3.4.1"
553553
bn.js "^5.1.3"
@@ -563,63 +563,63 @@
563563
"@polkadot/util" "3.4.1"
564564
"@polkadot/util-crypto" "3.4.1"
565565

566-
"@polkadot/metadata@1.34.0-beta.8":
567-
version "1.34.0-beta.8"
568-
resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-1.34.0-beta.8.tgz#c25cad293cabfe12a98e18a47da965df084dd3ff"
569-
integrity sha512-0Js36lvi8UFukHZLIcNCGQnOLR06AuoY3X3oFPfHN1csvEN718sk2+KYmHJOpQi+PUac4Uabe9yOX83Ygi2kwA==
566+
"@polkadot/metadata@1.34.0-beta.11":
567+
version "1.34.0-beta.11"
568+
resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-1.34.0-beta.11.tgz#f986d72f6044740fcd979f04253c505b57ebf560"
569+
integrity sha512-qW9hjHG+WuS/ADBjq4X+xLfzZXdGv5zQR9K1Y9qQwCYXzJiBV7R4SjkkiJu9FU1m0ckYWx+FNfj470pPwOqU1g==
570570
dependencies:
571571
"@babel/runtime" "^7.11.2"
572-
"@polkadot/types" "1.34.0-beta.8"
573-
"@polkadot/types-known" "1.34.0-beta.8"
572+
"@polkadot/types" "1.34.0-beta.11"
573+
"@polkadot/types-known" "1.34.0-beta.11"
574574
"@polkadot/util" "^3.4.1"
575575
"@polkadot/util-crypto" "^3.4.1"
576576
bn.js "^5.1.3"
577577

578-
"@polkadot/rpc-core@1.34.0-beta.8":
579-
version "1.34.0-beta.8"
580-
resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-1.34.0-beta.8.tgz#4ac6d841600faccbcaded775395f2aa4cb04ec20"
581-
integrity sha512-Tq3/QK32/IxLABlRE8OgvCqL36KY9MHycqhyczmxhh+truCXWM1J0wShMItDgFTrrCm+Nhg/Om3bfgUThMcaZg==
578+
"@polkadot/rpc-core@1.34.0-beta.11":
579+
version "1.34.0-beta.11"
580+
resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-1.34.0-beta.11.tgz#cc1efc4cd6540c9eedeee96c1c2eead853beb146"
581+
integrity sha512-L2T6IkXZ8M12/WzjCCPIqwQ8Vc2AciGij7vUvpKWKNgwCZoVoPwamyB7vq7lO4s2skEEwwqGbunqdmdnXj95Mg==
582582
dependencies:
583583
"@babel/runtime" "^7.11.2"
584-
"@polkadot/metadata" "1.34.0-beta.8"
585-
"@polkadot/rpc-provider" "1.34.0-beta.8"
586-
"@polkadot/types" "1.34.0-beta.8"
584+
"@polkadot/metadata" "1.34.0-beta.11"
585+
"@polkadot/rpc-provider" "1.34.0-beta.11"
586+
"@polkadot/types" "1.34.0-beta.11"
587587
"@polkadot/util" "^3.4.1"
588588
memoizee "^0.4.14"
589589
rxjs "^6.6.3"
590590

591-
"@polkadot/rpc-provider@1.34.0-beta.8":
592-
version "1.34.0-beta.8"
593-
resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-1.34.0-beta.8.tgz#b9ca20094e455fa1bc02e989457748a32af3a1b0"
594-
integrity sha512-Tl3tsG6RftbKmZDQXcYyw+CQ37V5N9fT4i9mtReb/TE27K98H9IhA5MD1p+pZGpvjCGEQp4mas/g6VPdw+cDng==
591+
"@polkadot/rpc-provider@1.34.0-beta.11":
592+
version "1.34.0-beta.11"
593+
resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-1.34.0-beta.11.tgz#ec146e220a5a83c7ba0f636f9db69fb8c7009656"
594+
integrity sha512-hsrmIPauvvsPfgBLNSthOICW9EGD8URtSU5Fmzo8iGD+/viLF3Mb1os5WYhWHdS2i8p26pVjAk5s641GJdEZGQ==
595595
dependencies:
596596
"@babel/runtime" "^7.11.2"
597-
"@polkadot/metadata" "1.34.0-beta.8"
598-
"@polkadot/types" "1.34.0-beta.8"
597+
"@polkadot/metadata" "1.34.0-beta.11"
598+
"@polkadot/types" "1.34.0-beta.11"
599599
"@polkadot/util" "^3.4.1"
600600
"@polkadot/util-crypto" "^3.4.1"
601+
"@polkadot/x-fetch" "^0.3.2"
602+
"@polkadot/x-ws" "^0.3.2"
601603
bn.js "^5.1.3"
602-
cross-fetch "^3.0.6"
603604
eventemitter3 "^4.0.7"
604-
websocket "^1.0.32"
605605

606-
"@polkadot/types-known@1.34.0-beta.8":
607-
version "1.34.0-beta.8"
608-
resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-1.34.0-beta.8.tgz#30d3ea2367e804691b4d984f6d258d42aef1e81a"
609-
integrity sha512-N8jyh0Bs3mWhpTCR/evlnDNnyCA1O8Sw0FQ3DEUYUOHncFpfAis6JoRjX4Fth4Q1iwZhQ4cJlgCLi+ObWRUazA==
606+
"@polkadot/types-known@1.34.0-beta.11":
607+
version "1.34.0-beta.11"
608+
resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-1.34.0-beta.11.tgz#62879aa2689cc630eccae653c7e1b8ad80cb7a86"
609+
integrity sha512-UV82b8EXxQa5o+4N5HUXi2VvVw57Xk9/11+3wsCz+NtyzekdCHEbw7f04LxdLZk20ljby29UrAEUmkpbAh5pCA==
610610
dependencies:
611611
"@babel/runtime" "^7.11.2"
612-
"@polkadot/types" "1.34.0-beta.8"
612+
"@polkadot/types" "1.34.0-beta.11"
613613
"@polkadot/util" "^3.4.1"
614614
bn.js "^5.1.3"
615615

616-
"@polkadot/types@1.34.0-beta.8":
617-
version "1.34.0-beta.8"
618-
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-1.34.0-beta.8.tgz#f4f940e03abf312c0cd2ed32253a52e823a7b7c6"
619-
integrity sha512-WLr6PhONta/7F+/4TwlrbRLxoQiI0Db6q0ZDKPl0MSkshw/r4qcRUVH5cx0K1+p6AE33gTgfFQRELDPVzf3GdA==
616+
"@polkadot/types@1.34.0-beta.11":
617+
version "1.34.0-beta.11"
618+
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-1.34.0-beta.11.tgz#83c24abb1700d28c1abea31cbabeaed5be8336cc"
619+
integrity sha512-AF1Oa4qZ7Ix/usRarv7TNJMrbL3laONmHyzNDZ8x03r9T7AE5uuDkWXtdK0FloWS+6QV5+klbCISy8DWGZJ8Jw==
620620
dependencies:
621621
"@babel/runtime" "^7.11.2"
622-
"@polkadot/metadata" "1.34.0-beta.8"
622+
"@polkadot/metadata" "1.34.0-beta.11"
623623
"@polkadot/util" "^3.4.1"
624624
"@polkadot/util-crypto" "^3.4.1"
625625
"@types/bn.js" "^4.11.6"
@@ -663,6 +663,24 @@
663663
resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-1.4.1.tgz#0a053d0c2587da30fb5313cef81f8d9a52029c68"
664664
integrity sha512-GPBCh8YvQmA5bobI4rqRkUhrEHkEWU1+lcJVPbZYsa7jiHFaZpzCLrGQfiqW/vtbU1aBS2wmJ0x1nlt33B9QqQ==
665665

666+
"@polkadot/x-fetch@^0.3.2":
667+
version "0.3.2"
668+
resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-0.3.2.tgz#73e19b87eca98101262619b0149e988aa75bfe22"
669+
integrity sha512-lk9M8ql/kBBqiZ8KOWj7LFK7P9OxDgVn2fZPNELJzQbfFZwFF8umBPDIWlQIK7wTnlRsQlzOuf6MGEyMK5p42w==
670+
dependencies:
671+
"@babel/runtime" "^7.11.2"
672+
"@types/node-fetch" "^2.5.7"
673+
node-fetch "^2.6.1"
674+
675+
"@polkadot/x-ws@^0.3.2":
676+
version "0.3.2"
677+
resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-0.3.2.tgz#56b771721bf13bba0e9dbaefa6547fbde6a3f6a2"
678+
integrity sha512-1aiG11Py8sgzJsz19melMzvBOn5zeMmfjCPoMryX4//063E0mcfnkujg4O6pTMygxJdFGAV1INB9wvMU9Dg9Wg==
679+
dependencies:
680+
"@babel/runtime" "^7.11.2"
681+
"@types/websocket" "^1.0.1"
682+
websocket "^1.0.32"
683+
666684
"@sinonjs/commons@^1.7.0":
667685
version "1.8.1"
668686
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.1.tgz#e7df00f98a203324f6dc7cc606cad9d4a8ab2217"
@@ -823,6 +841,14 @@
823841
dependencies:
824842
"@types/node" "*"
825843

844+
"@types/node-fetch@^2.5.7":
845+
version "2.5.7"
846+
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.5.7.tgz#20a2afffa882ab04d44ca786449a276f9f6bbf3c"
847+
integrity sha512-o2WVNf5UhWRkxlf6eq+jMZDu7kjgpgJfl4xVNlvryc95O/6F2ld8ztKX+qu+Rjyet93WAWm5LjeX9H5FGkODvw==
848+
dependencies:
849+
"@types/node" "*"
850+
form-data "^3.0.0"
851+
826852
"@types/node@*":
827853
version "14.10.2"
828854
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.10.2.tgz#9b47a2c8e4dabd4db73b57e750b24af689600514"
@@ -866,6 +892,13 @@
866892
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e"
867893
integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==
868894

895+
"@types/websocket@^1.0.1":
896+
version "1.0.1"
897+
resolved "https://registry.yarnpkg.com/@types/websocket/-/websocket-1.0.1.tgz#039272c196c2c0e4868a0d8a1a27bbb86e9e9138"
898+
integrity sha512-f5WLMpezwVxCLm1xQe/kdPpQIOmL0TXYx2O15VYfYzc7hTIdxiOoOvez+McSIw3b7z/1zGovew9YSL7+h4h7/Q==
899+
dependencies:
900+
"@types/node" "*"
901+
869902
"@types/yaml@1.9.7":
870903
version "1.9.7"
871904
resolved "https://registry.yarnpkg.com/@types/yaml/-/yaml-1.9.7.tgz#2331f36e0aac91311a63d33eb026c21687729679"
@@ -1491,7 +1524,7 @@ color-name@~1.1.4:
14911524
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
14921525
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
14931526

1494-
combined-stream@^1.0.6, combined-stream@~1.0.6:
1527+
combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6:
14951528
version "1.0.8"
14961529
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f"
14971530
integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
@@ -1582,13 +1615,6 @@ create-hmac@^1.1.4:
15821615
safe-buffer "^5.0.1"
15831616
sha.js "^2.4.8"
15841617

1585-
cross-fetch@^3.0.6:
1586-
version "3.0.6"
1587-
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.0.6.tgz#3a4040bc8941e653e0e9cf17f29ebcd177d3365c"
1588-
integrity sha512-KBPUbqgFjzWlVcURG+Svp9TlhA5uliYtiNx/0r8nv0pdypeQCRJ9IaSIc3q/x3q8t3F75cHuwxVql1HFGHCNJQ==
1589-
dependencies:
1590-
node-fetch "2.6.1"
1591-
15921618
cross-spawn@^6.0.0:
15931619
version "6.0.5"
15941620
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
@@ -2338,6 +2364,15 @@ forever-agent@~0.6.1:
23382364
resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
23392365
integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=
23402366

2367+
form-data@^3.0.0:
2368+
version "3.0.0"
2369+
resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.0.tgz#31b7e39c85f1355b7139ee0c647cf0de7f83c682"
2370+
integrity sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==
2371+
dependencies:
2372+
asynckit "^0.4.0"
2373+
combined-stream "^1.0.8"
2374+
mime-types "^2.1.12"
2375+
23412376
form-data@~2.3.2:
23422377
version "2.3.3"
23432378
resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6"
@@ -3748,7 +3783,7 @@ node-cleanup@^2.1.2:
37483783
resolved "https://registry.yarnpkg.com/node-cleanup/-/node-cleanup-2.1.2.tgz#7ac19abd297e09a7f72a71545d951b517e4dde2c"
37493784
integrity sha1-esGavSl+Caf3KnFUXZUbUX5N3iw=
37503785

3751-
node-fetch@2.6.1:
3786+
node-fetch@^2.6.1:
37523787
version "2.6.1"
37533788
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
37543789
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==

0 commit comments

Comments
 (0)