Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
LIVE-1944 Update Polkadot dependencies (#1898)
Browse files Browse the repository at this point in the history
* Update Polkadot to 8.0.2

* update to last dot package

* fix new polkadot folder to test

Co-authored-by: Henri Ly <[email protected]>
  • Loading branch information
Hakim and henri-ly committed Apr 29, 2022
1 parent bcd322c commit 7d61755
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 188 deletions.
65 changes: 30 additions & 35 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,43 +25,38 @@ export default {
"test-helpers/",
],
moduleNameMapper: {
"^@polkadot/metadata/(.*)/(.*)": "@polkadot/metadata/$1/$2.cjs",
"^@polkadot/metadata/decorate$": "@polkadot/metadata/decorate/index.cjs",
"^@polkadot/metadata/(.*)": "@polkadot/metadata/$1.cjs",
"^@polkadot/metadata$": "@polkadot/metadata/index.cjs",
"^@polkadot/networks/(.*).cjs$": "@polkadot/networks/$1.cjs",
"^@polkadot/networks/(.*)": "@polkadot/networks/$1.cjs",
"^@polkadot/networks$": "@polkadot/networks/index.cjs",
"^@polkadot/types/codec$": "@polkadot/types/codec/index.cjs",
"^@polkadot/types/primitive$": "@polkadot/types/primitive/index.cjs",
"^@polkadot/types/augment$": "@polkadot/types/augment/index.cjs",
"^@polkadot/types/metadata$": "@polkadot/types/metadata/index.cjs",
"^@polkadot/networks/(.*)": "@polkadot/networks/$1.js",
"^@polkadot/networks$": "@polkadot/networks/cjs/index.js",
"^@polkadot/types/codec$": "@polkadot/types/cjs/codec/index.js",
"^@polkadot/types/primitive$": "@polkadot/types/cjs/primitive/index.js",
"^@polkadot/types/augment$": "@polkadot/types/cjs/augment/index.js",
"^@polkadot/types/metadata$": "@polkadot/types/cjs/metadata/index.js",
"^@polkadot/types/metadata/decorate$":
"@polkadot/types/metadata/decorate/index.cjs",
"^@polkadot/types/types$": "@polkadot/types/types/index.cjs",
"^@polkadot/types/(.*)/(.*)": "@polkadot/types/$1/$2.cjs",
"^@polkadot/types/(.*).cjs$": "@polkadot/types/$1.cjs",
"@polkadot/types/cjs/metadata/decorate/index.js",
"^@polkadot/types/types$": "@polkadot/types/cjs/types/index.js",
"^@polkadot/types/(.*)/(.*)": "@polkadot/types/$1/$2.js",
"^@polkadot/types/(.*).js$": "@polkadot/types/$1.js",
"^@polkadot/types/(.*)": "@polkadot/types/$1.cjs",
"^@polkadot/types$": "@polkadot/types/index.cjs",
"^@polkadot/types-known/(.*)": "@polkadot/types-known/$1.cjs",
"^@polkadot/types-known$": "@polkadot/types-known/index.cjs",
"^@polkadot/util/(.*).cjs$": "@polkadot/util/$1.cjs",
"^@polkadot/util$": "@polkadot/util/index.cjs",
"^@polkadot/util-crypto$": "@polkadot/util-crypto/index.cjs",
"^@polkadot/wasm-crypto$": "@polkadot/wasm-crypto/index.cjs",
"^@polkadot/wasm-crypto-asmjs/(.*)": "@polkadot/wasm-crypto-asmjs/$1.cjs",
"^@polkadot/wasm-crypto-asmjs$": "@polkadot/wasm-crypto-asmjs/empty.cjs",
"^@polkadot/wasm-crypto-wasm/(.*)": "@polkadot/wasm-crypto-wasm/$1.cjs",
"^@polkadot/wasm-crypto-wasm$": "@polkadot/wasm-crypto-wasm/data.cjs",
"^@polkadot/x-global$": "@polkadot/x-global/index.cjs",
"^@polkadot/x-randomvalues$": "@polkadot/x-randomvalues/node.cjs",
"^@polkadot/x-textdecoder$": "@polkadot/x-textdecoder/node.cjs",
"^@polkadot/x-textencoder$": "@polkadot/x-textencoder/node.cjs",
"^@polkadot/x-bigint/(.*)": "@polkadot/x-bigint/$1.cjs",
"^@polkadot/x-bigint$": "@polkadot/x-bigint/index.cjs",
"^@polkadot/x-noble-secp256k1$": "@polkadot/x-noble-secp256k1/index.cjs",
"^@polkadot/x-noble-hashes/(.*)": "@polkadot/x-noble-hashes/$1.cjs",
"^@polkadot/x-noble-hashes$": "@polkadot/x-noble-hashes/index.cjs",
"^@polkadot/types$": "@polkadot/types/cjs/index.js",
"^@polkadot/types-known/(.*)": "@polkadot/types-known/$1.js",
"^@polkadot/types-known$": "@polkadot/types-known/cjs/index.js",
"^@polkadot/util/(.*).js$": "@polkadot/util/$1.js",
"^@polkadot/util$": "@polkadot/util/cjs/index.js",
"^@polkadot/util-crypto$": "@polkadot/util-crypto/cjs/index.js",
"^@polkadot/wasm-crypto$": "@polkadot/wasm-crypto/cjs/index.js",
"^@polkadot/wasm-crypto-asmjs/(.*)": "@polkadot/wasm-crypto-asmjs/$1.js",
"^@polkadot/wasm-crypto-asmjs$": "@polkadot/wasm-crypto-asmjs/cjs/index.js",
"^@polkadot/wasm-crypto-wasm/(.*)": "@polkadot/wasm-crypto-wasm/$1.js",
"^@polkadot/wasm-crypto-wasm$": "@polkadot/wasm-crypto-wasm/cjs/index.js",
"^@polkadot/x-global$": "@polkadot/x-global/cjs/index.js",
"^@polkadot/x-randomvalues$": "@polkadot/x-randomvalues/cjs/node.js",
"^@polkadot/x-textdecoder$": "@polkadot/x-textdecoder/cjs/node.js",
"^@polkadot/x-textencoder$": "@polkadot/x-textencoder/cjs/node.js",
"^@polkadot/x-bigint/(.*)": "@polkadot/x-bigint/$1.js",
"^@polkadot/x-bigint$": "@polkadot/x-bigint/cjs/index.js",
"^@polkadot/x-noble-secp256k1$": "@polkadot/x-noble-secp256k1/cjs/index.js",
"^@polkadot/x-noble-hashes/(.*)": "@polkadot/x-noble-hashes/$1.js",
"^@polkadot/x-noble-hashes$": "@polkadot/x-noble-hashes/cjs/index.js",
},
transformIgnorePatterns: [
"/node_modules/(?!@polkadot|@babel/runtime/helpers/esm/)",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
"@ledgerhq/json-bignumber": "^1.1.0",
"@ledgerhq/live-app-sdk": "^0.2.0",
"@ledgerhq/logs": "6.10.0",
"@polkadot/types": "7.8.1",
"@polkadot/types-known": "7.8.1",
"@polkadot/types": "8.1.1",
"@polkadot/types-known": "8.1.1",
"@solana/spl-token": "^0.1.8",
"@solana/web3.js": "^1.32.0",
"@taquito/ledger-signer": "stablelib",
Expand Down
Loading

0 comments on commit 7d61755

Please sign in to comment.