Skip to content

Commit 69e5767

Browse files
authored
chore: Bump to @polkadot/api 1.4.0 beta (#15)
1 parent 52d508a commit 69e5767

File tree

5 files changed

+89
-89
lines changed

5 files changed

+89
-89
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/node_modules
22
/build
33
/target
4+
yarn-error.log
45
**/*.rs.bk

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "polkadot-rpc-proxy",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"description": "",
55
"main": "index.js",
66
"scripts": {
@@ -11,12 +11,12 @@
1111
"author": "",
1212
"license": "GPL-3.0-or-later",
1313
"dependencies": {
14-
"@polkadot/api": "^1.3.1",
15-
"@polkadot/metadata": "^1.3.1",
16-
"@polkadot/rpc-provider": "^1.3.1",
17-
"@polkadot/types": "^1.3.1",
14+
"@polkadot/api": "1.4.0-beta.45",
15+
"@polkadot/metadata": "1.4.0-beta.45",
16+
"@polkadot/rpc-provider": "1.4.0-beta.45",
17+
"@polkadot/types": "1.4.0-beta.45",
1818
"@types/express": "^4.17.2",
1919
"express": "^4.17.1",
20-
"typescript": "^3.7.4"
20+
"typescript": "^3.8.2"
2121
}
2222
}

src/ApiHandler.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
import { ApiPromise } from '@polkadot/api';
1818
import { BlockHash } from '@polkadot/types/interfaces/rpc';
1919
import { Event, EventRecord } from '@polkadot/types/interfaces/system';
20-
import { EventData } from '@polkadot/types/primitive/Generic/Event';
20+
import { EventData } from '@polkadot/types/generic/Event';
2121
import { blake2AsU8a } from '@polkadot/util-crypto';
2222
import { u8aToHex } from '@polkadot/util';
23-
import { getChainTypes } from '@polkadot/types/known';
23+
import { getSpecTypes } from '@polkadot/types/known';
2424
import { u32 } from '@polkadot/types/primitive';
2525

2626
interface SantiziedEvent {
@@ -167,7 +167,7 @@ export default class ApiHandler {
167167
const meta = await api.rpc.state.getMetadata(hash);
168168
const chain = await api.rpc.system.chain();
169169

170-
api.registry.register(getChainTypes(chain, runtimeVersion));
170+
api.registry.register(getSpecTypes(chain, runtimeVersion));
171171
api.registry.setMetadata(meta);
172172
}
173173
} catch (err) {

src/main.ts

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import * as express from 'express';
1818
import { Request, Response } from 'express';
1919
import { ApiPromise } from '@polkadot/api';
20-
import { GenericAccountId } from '@polkadot/types/primitive';
2120
import { BlockHash } from '@polkadot/types/interfaces/rpc';
2221
import { HttpProvider, WsProvider } from '@polkadot/rpc-provider';
2322
import ApiHandler from './ApiHandler';

yarn.lock

+79-79
Original file line numberDiff line numberDiff line change
@@ -9,120 +9,120 @@
99
dependencies:
1010
regenerator-runtime "^0.13.2"
1111

12-
"@polkadot/api-derive@^1.3.1":
13-
version "1.3.1"
14-
resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-1.3.1.tgz#5a03622bac278918bea6eaef4769b23bf249c502"
15-
integrity sha512-WApWB8pHSF4e1PT/7Z0qmERyZLD7cmNlbxdD8FkDg7bA+rd4tfwaYx9uRj2YnWZWOvuSK0P7WLeSEX34J7byLg==
12+
"@polkadot/api-derive@1.4.0-beta.45":
13+
version "1.4.0-beta.45"
14+
resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-1.4.0-beta.45.tgz#e68f01b3298045e30a0af6d6613240e55de886c2"
15+
integrity sha512-Humbma2eBdpQ6YjDw8TPnlILo5NspWcJCHdpgE9Bcl3UK772C+wDiCQ1sjxigLHIXl91BiyyUbPAwxql1Roelg==
1616
dependencies:
1717
"@babel/runtime" "^7.8.4"
18-
"@polkadot/api" "^1.3.1"
19-
"@polkadot/rpc-core" "^1.3.1"
20-
"@polkadot/rpc-provider" "^1.3.1"
21-
"@polkadot/types" "^1.3.1"
22-
"@polkadot/util" "^2.4.1"
23-
"@polkadot/util-crypto" "^2.4.1"
18+
"@polkadot/api" "1.4.0-beta.45"
19+
"@polkadot/rpc-core" "1.4.0-beta.45"
20+
"@polkadot/rpc-provider" "1.4.0-beta.45"
21+
"@polkadot/types" "1.4.0-beta.45"
22+
"@polkadot/util" "^2.5.1"
23+
"@polkadot/util-crypto" "^2.5.1"
2424
bn.js "^5.1.1"
2525
memoizee "^0.4.14"
2626
rxjs "^6.5.4"
2727

28-
"@polkadot/api@^1.3.1":
29-
version "1.3.1"
30-
resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-1.3.1.tgz#64a34ff0ea2ae4168c622f1dbe360def8ffa573a"
31-
integrity sha512-3W9eHvm3USckglV4NYWWRLLRIb/TildLtDH5jovrX38kJ6RVxy3PfesLi3McHHh/YbXgGQBqLmlJx+Gg21E1hw==
28+
"@polkadot/api@1.4.0-beta.45":
29+
version "1.4.0-beta.45"
30+
resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-1.4.0-beta.45.tgz#2b2b28216c8060453b5ac011aaff82339a234e32"
31+
integrity sha512-JyRg2bnA8hczdVH1jlvqV3i4FRyT++7U/Xwn96Lmg3mI0E2FInR3MXnqZmF3sBFnX7QRKlZm0C4os/pz4dYTJA==
3232
dependencies:
3333
"@babel/runtime" "^7.8.4"
34-
"@polkadot/api-derive" "^1.3.1"
35-
"@polkadot/keyring" "^2.4.1"
36-
"@polkadot/metadata" "^1.3.1"
37-
"@polkadot/rpc-core" "^1.3.1"
38-
"@polkadot/rpc-provider" "^1.3.1"
39-
"@polkadot/types" "^1.3.1"
40-
"@polkadot/util" "^2.4.1"
41-
"@polkadot/util-crypto" "^2.4.1"
34+
"@polkadot/api-derive" "1.4.0-beta.45"
35+
"@polkadot/keyring" "^2.5.1"
36+
"@polkadot/metadata" "1.4.0-beta.45"
37+
"@polkadot/rpc-core" "1.4.0-beta.45"
38+
"@polkadot/rpc-provider" "1.4.0-beta.45"
39+
"@polkadot/types" "1.4.0-beta.45"
40+
"@polkadot/util" "^2.5.1"
41+
"@polkadot/util-crypto" "^2.5.1"
4242
bn.js "^5.1.1"
4343
eventemitter3 "^4.0.0"
4444
rxjs "^6.5.4"
4545

46-
"@polkadot/jsonrpc@^1.3.1":
47-
version "1.3.1"
48-
resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-1.3.1.tgz#00436699e06dbacf67225e881c52e38735b7e797"
49-
integrity sha512-hKqwjFAPmPtWTz+r6j8W2QXvAzzb7mJhvEFSNaNePmOSytA+OPrmEnsIJOTP971xkkbtwrUjM2dYu24O1DF++w==
46+
"@polkadot/jsonrpc@1.4.0-beta.45":
47+
version "1.4.0-beta.45"
48+
resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-1.4.0-beta.45.tgz#d06a6ea302cf6dec064e2f2a84562200a4f82665"
49+
integrity sha512-W3PtAzq1PL11URnYPEpAyS2xG9QAvNAb1IKQyw43N8UMaOA51wV6utCXXHDukgaeUtUquCI3+KlNndafN2G5Hw==
5050
dependencies:
5151
"@babel/runtime" "^7.8.4"
52-
"@polkadot/types" "^1.3.1"
53-
"@polkadot/util" "^2.4.1"
52+
"@polkadot/types" "1.4.0-beta.45"
53+
"@polkadot/util" "^2.5.1"
5454

55-
"@polkadot/keyring@^2.4.1":
56-
version "2.4.1"
57-
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-2.4.1.tgz#1f6e59dd55031481d3642f18e407141d596fd388"
58-
integrity sha512-NBsw6ypCvTUNBUTB/LIZGcJE6R8qrsZ6CEa+Hu6uKrwhR/xjtPBCH2sPaXj+OeNAZ2sMQuEoUJlJUhYnMal2pg==
55+
"@polkadot/keyring@^2.5.1":
56+
version "2.5.1"
57+
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-2.5.1.tgz#53a7368f20e40faea5904d89b96dc89975360a22"
58+
integrity sha512-E6CdkHidW6CdP11sJv0Nq7sVPAAHSsIYdybPW34drVHjl11leho7WETIGkXGrbAFjj4bi6H2CFWfF4i0gh7qhg==
5959
dependencies:
6060
"@babel/runtime" "^7.8.4"
61-
"@polkadot/util" "^2.4.1"
62-
"@polkadot/util-crypto" "^2.4.1"
61+
"@polkadot/util" "2.5.1"
62+
"@polkadot/util-crypto" "2.5.1"
6363

64-
"@polkadot/metadata@^1.3.1":
65-
version "1.3.1"
66-
resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-1.3.1.tgz#1324195c67c0ec7b01873a30ac77dcb5303ad359"
67-
integrity sha512-sdtitMkdPzcnVfdDNyE1f916B35kRa4I/PGTrFR7/Q9xW5p/A1XbMNjApcXg3HGudrS9JRddebUM6q2MYsaGTA==
64+
"@polkadot/metadata@1.4.0-beta.45":
65+
version "1.4.0-beta.45"
66+
resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-1.4.0-beta.45.tgz#52147382fda918f9603069d60abcd16dd492d595"
67+
integrity sha512-cQZQulpEZ4kataA0I/qyQ4UPRueXuT7D2Lwv5/1Xhh4yPqAsbYLFFz9zYYZ1Hyvj2bcJqclck+8IAMCGT2VOdw==
6868
dependencies:
6969
"@babel/runtime" "^7.8.4"
70-
"@polkadot/types" "^1.3.1"
71-
"@polkadot/util" "^2.4.1"
72-
"@polkadot/util-crypto" "^2.4.1"
70+
"@polkadot/types" "1.4.0-beta.45"
71+
"@polkadot/util" "^2.5.1"
72+
"@polkadot/util-crypto" "^2.5.1"
7373
bn.js "^5.1.1"
7474

75-
"@polkadot/rpc-core@^1.3.1":
76-
version "1.3.1"
77-
resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-1.3.1.tgz#0957311f1f5fde905ca4d1311881af6270dcdefe"
78-
integrity sha512-Pg7LE/zOaH6yeZ5OPXqp8JchPXYBm4JFbCLr8hTi8f76IvPmwSJmk3xfWlvB5vbRGrtr+LieaUzp05n/pzCfNQ==
75+
"@polkadot/rpc-core@1.4.0-beta.45":
76+
version "1.4.0-beta.45"
77+
resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-1.4.0-beta.45.tgz#391d9ce4e0a144a8fa0c9443909b82ffce07fde7"
78+
integrity sha512-bzB2bHlawCRWo55zbmCJh8rfe1NHqvoKJdHO3tCUvJ1PnzINhJAd1+TCLQSovDUn/s3TR53BAo9qGty9esZUBA==
7979
dependencies:
8080
"@babel/runtime" "^7.8.4"
81-
"@polkadot/jsonrpc" "^1.3.1"
82-
"@polkadot/metadata" "^1.3.1"
83-
"@polkadot/rpc-provider" "^1.3.1"
84-
"@polkadot/types" "^1.3.1"
85-
"@polkadot/util" "^2.4.1"
81+
"@polkadot/jsonrpc" "1.4.0-beta.45"
82+
"@polkadot/metadata" "1.4.0-beta.45"
83+
"@polkadot/rpc-provider" "1.4.0-beta.45"
84+
"@polkadot/types" "1.4.0-beta.45"
85+
"@polkadot/util" "^2.5.1"
8686
memoizee "^0.4.14"
8787
rxjs "^6.5.4"
8888

89-
"@polkadot/rpc-provider@^1.3.1":
90-
version "1.3.1"
91-
resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-1.3.1.tgz#d35d2ad56bc777a39a453ba46d4e67b0052adb9d"
92-
integrity sha512-1F3Krjhw8VFWpbyjQAjy22A18w9l33AaPi+mxTSbNHiprQX6y918KBkDT69Doe0y4hN1nNlRyKGaSz8YVqP0BQ==
89+
"@polkadot/rpc-provider@1.4.0-beta.45":
90+
version "1.4.0-beta.45"
91+
resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-1.4.0-beta.45.tgz#f5f8fa5a01231d898dabdc920af319b4cbd4cf8a"
92+
integrity sha512-Hg7kzCkPXwqZjfxov+3tGyr6JcgTnIG4jtKReTLGRhg7o1sg/qBT+Diczfc6n0xsPpdnFQlo0CgxECmZMzmAWg==
9393
dependencies:
9494
"@babel/runtime" "^7.8.4"
95-
"@polkadot/jsonrpc" "^1.3.1"
96-
"@polkadot/metadata" "^1.3.1"
97-
"@polkadot/types" "^1.3.1"
98-
"@polkadot/util" "^2.4.1"
99-
"@polkadot/util-crypto" "^2.4.1"
95+
"@polkadot/jsonrpc" "1.4.0-beta.45"
96+
"@polkadot/metadata" "1.4.0-beta.45"
97+
"@polkadot/types" "1.4.0-beta.45"
98+
"@polkadot/util" "^2.5.1"
99+
"@polkadot/util-crypto" "^2.5.1"
100100
bn.js "^5.1.1"
101101
eventemitter3 "^4.0.0"
102102
isomorphic-fetch "^2.2.1"
103103
websocket "^1.0.31"
104104

105-
"@polkadot/types@^1.3.1":
106-
version "1.3.1"
107-
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-1.3.1.tgz#849050c11f0cbe119822e601a4500d2d2822fbc8"
108-
integrity sha512-BJOVE9rjeBOCCcl8Z2DlBXooavipovQwPs4HDMGykdypYmjKIpr1iEVBKWhDspANfNUi7PntfoLGNvsga0PSiw==
105+
"@polkadot/types@1.4.0-beta.45":
106+
version "1.4.0-beta.45"
107+
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-1.4.0-beta.45.tgz#00ccdacd6640bd613121f63868a6f0446d9b6d04"
108+
integrity sha512-sjMWEbnwGUWuy4NWjQ5OfnNivu4D0CLvnuemR3Oq/l60E+6l1EkTjEV0dUtPJ9ylBQvppxK1iuYgpfH7z0RfYg==
109109
dependencies:
110110
"@babel/runtime" "^7.8.4"
111-
"@polkadot/metadata" "^1.3.1"
112-
"@polkadot/util" "^2.4.1"
113-
"@polkadot/util-crypto" "^2.4.1"
111+
"@polkadot/metadata" "1.4.0-beta.45"
112+
"@polkadot/util" "^2.5.1"
113+
"@polkadot/util-crypto" "^2.5.1"
114114
"@types/bn.js" "^4.11.6"
115115
bn.js "^5.1.1"
116116
memoizee "^0.4.14"
117117
rxjs "^6.5.4"
118118

119-
"@polkadot/util-crypto@^2.4.1":
120-
version "2.4.1"
121-
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-2.4.1.tgz#f02e4dca225882c7f1a7762bc416530567c4803c"
122-
integrity sha512-5mPuRhpvYXeLqqGEqOtJqp+lZCr1Z2NIxIKgabaFfrp1malbgWhKDnafkAg7kwL3BrRQbOge0vgK6VmDiuXljQ==
119+
"@polkadot/util-crypto@2.5.1", "@polkadot/util-crypto@^2.5.1":
120+
version "2.5.1"
121+
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-2.5.1.tgz#9dceda1b2a6684d077ebe2981c4e0dbc69a52fd0"
122+
integrity sha512-AhL37ffn8MkSNwg//uj/xYFYzdbR3h196UB7y3IN6CPhD+pOPZOqDpqdd0oT2xpksppctvWZqYEaT1k7l3R2Tw==
123123
dependencies:
124124
"@babel/runtime" "^7.8.4"
125-
"@polkadot/util" "^2.4.1"
125+
"@polkadot/util" "2.5.1"
126126
"@polkadot/wasm-crypto" "^1.0.1"
127127
base-x "^3.0.7"
128128
bip39 "^3.0.2"
@@ -135,10 +135,10 @@
135135
tweetnacl "^1.0.3"
136136
xxhashjs "^0.2.2"
137137

138-
"@polkadot/util@^2.4.1":
139-
version "2.4.1"
140-
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-2.4.1.tgz#7c0d0619af6ced647e99d6bc8ccc24bc3202a2a7"
141-
integrity sha512-60yBpgYgowx/TVuJyrjYYIJJpw4aCNzay8imy5L2Fug2y3lvgrHyTxPAgrykOmuFeZ3jq9ayjXk5bpAJ179vFg==
138+
"@polkadot/util@2.5.1", "@polkadot/util@^2.5.1":
139+
version "2.5.1"
140+
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-2.5.1.tgz#8b4be9f7418a2872f6ccb1a0d18e426b4e8779a9"
141+
integrity sha512-MVQPyxkhfERvV1uGyne0b7iekX9h7v892144bNB5VYZ7C2rTuJ5XpaWgx0V9DANeaEv+cqfjeW+8ngYQwYhQKw==
142142
dependencies:
143143
"@babel/runtime" "^7.8.4"
144144
"@types/bn.js" "^4.11.6"
@@ -985,10 +985,10 @@ typedarray-to-buffer@^3.1.5:
985985
dependencies:
986986
is-typedarray "^1.0.0"
987987

988-
typescript@^3.7.4:
989-
version "3.7.5"
990-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae"
991-
integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==
988+
typescript@^3.8.2:
989+
version "3.8.2"
990+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.2.tgz#91d6868aaead7da74f493c553aeff76c0c0b1d5a"
991+
integrity sha512-EgOVgL/4xfVrCMbhYKUQTdF37SQn4Iw73H5BgCrF1Abdun7Kwy/QZsE/ssAy0y4LxBbvua3PIbFsbRczWWnDdQ==
992992

993993
[email protected], unpipe@~1.0.0:
994994
version "1.0.0"

0 commit comments

Comments
 (0)