From fe7cef6028412964724fa5a4caa00fc531373abb Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 20 May 2021 21:02:46 +0800 Subject: [PATCH 01/74] feat(e2e): init typescript for e2e tests --- .gitignore | 7 + e2e/README.md | 7 + e2e/index.ts | 5 + e2e/package.json | 20 ++ e2e/src/cmd.ts | 21 ++ e2e/tsconfig.json | 13 + e2e/yarn.lock | 815 ++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 888 insertions(+) create mode 100644 e2e/README.md create mode 100644 e2e/index.ts create mode 100644 e2e/package.json create mode 100644 e2e/src/cmd.ts create mode 100644 e2e/tsconfig.json create mode 100644 e2e/yarn.lock diff --git a/.gitignore b/.gitignore index edfb46c29b..b0999cf9d9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,8 +4,15 @@ # These are backup files generated by rustfmt **/*.rs.bk +# node deps for e2e +node_modules + +# The directory caches for osx .DS_Store +# typescript language server logs +.log + # The cache for docker container dependency .cargo diff --git a/e2e/README.md b/e2e/README.md new file mode 100644 index 0000000000..2b10559405 --- /dev/null +++ b/e2e/README.md @@ -0,0 +1,7 @@ +# E2E + +E2E tests for PINT. + +## LICENSE + +GNU-v3 diff --git a/e2e/index.ts b/e2e/index.ts new file mode 100644 index 0000000000..20c7d33512 --- /dev/null +++ b/e2e/index.ts @@ -0,0 +1,5 @@ +import cmd from "./src/cmd"; + +(() => { + cmd(); +})(); diff --git a/e2e/package.json b/e2e/package.json new file mode 100644 index 0000000000..dac65c0644 --- /dev/null +++ b/e2e/package.json @@ -0,0 +1,20 @@ +{ + "name": "pint-e2e", + "version": "0.0.1", + "description": "E2E tests for PINT", + "main": "index.js", + "repository": "https://github.com/ChainSafe/PINT", + "author": "ChainSafe", + "license": "GNU-v3", + "private": true, + "devDependencies": { + "@types/node": "^15.3.1", + "@types/yargs": "^16.0.2", + "ts-node": "^9.1.1", + "typescript": "^4.2.4" + }, + "dependencies": { + "@polkadot/api": "^4.10.1", + "yargs": "^17.0.1" + } +} diff --git a/e2e/src/cmd.ts b/e2e/src/cmd.ts new file mode 100644 index 0000000000..d8ffa41c6b --- /dev/null +++ b/e2e/src/cmd.ts @@ -0,0 +1,21 @@ +import yargs from "yargs/yargs"; +import { hideBin } from "yargs/helpers"; + +/** + * command entry + */ +const main = () => { + const _ = yargs(hideBin(process.argv)) + .command({ + command: "run", + describe: "run E2E tests", + handler: () => { + console.log("Run e2e tests"); + }, + }) + .help() + .demandCommand(1, "You need at least one command before moving on").argv; +}; + +// exports +export default main; diff --git a/e2e/tsconfig.json b/e2e/tsconfig.json new file mode 100644 index 0000000000..320a960138 --- /dev/null +++ b/e2e/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "outDir": "lib" + }, + "include": ["index.ts", "src/**/*"], + "exclude": ["node_modules"] +} diff --git a/e2e/yarn.lock b/e2e/yarn.lock new file mode 100644 index 0000000000..73b97af6d3 --- /dev/null +++ b/e2e/yarn.lock @@ -0,0 +1,815 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@babel/runtime@^7.13.9", "@babel/runtime@^7.14.0": + version "7.14.0" + resolved "https://registry.nlark.com/@babel/runtime/download/@babel/runtime-7.14.0.tgz?cache=0&sync_timestamp=1619727501090&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.14.0.tgz#46794bc20b612c5f75e62dd071e24dfd95f1cbe6" + integrity sha1-RnlLwgthLF915i3QceJN/ZXxy+Y= + dependencies: + regenerator-runtime "^0.13.4" + +"@polkadot/api-derive@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/api-derive/download/@polkadot/api-derive-4.10.1.tgz#391ecde22d2f4de67b3eec3389d3f08b9a0cbc4c" + integrity sha1-OR7N4i0vTeZ7PuwzidPwi5oMvEw= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/api" "4.10.1" + "@polkadot/rpc-core" "4.10.1" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + bn.js "^4.11.9" + +"@polkadot/api@4.10.1", "@polkadot/api@^4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/api/download/@polkadot/api-4.10.1.tgz#6a43c9c4585f3f92cd21d7ae85ae481d50eb3bac" + integrity sha1-akPJxFhfP5LNIdeuha5IHVDrO6w= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/api-derive" "4.10.1" + "@polkadot/keyring" "^6.4.1" + "@polkadot/metadata" "4.10.1" + "@polkadot/rpc-core" "4.10.1" + "@polkadot/rpc-provider" "4.10.1" + "@polkadot/types" "4.10.1" + "@polkadot/types-known" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + +"@polkadot/keyring@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/keyring/download/@polkadot/keyring-6.4.1.tgz#769c5f0613a27e18726b51e6539fa56f161f6160" + integrity sha1-dpxfBhOifhhya1HmU5+lbxYfYWA= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/util" "6.4.1" + "@polkadot/util-crypto" "6.4.1" + +"@polkadot/metadata@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/metadata/download/@polkadot/metadata-4.10.1.tgz#f22b76e1fc575c20e44b8ba96949f474505ad5fb" + integrity sha1-8it24fxXXCDkS4upaUn0dFBa1fs= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.10.1" + "@polkadot/types-known" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + bn.js "^4.11.9" + +"@polkadot/networks@6.4.1", "@polkadot/networks@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/networks/download/@polkadot/networks-6.4.1.tgz#0f933c4af10a2bfe8f072e2c7e8357ef03b2e37e" + integrity sha1-D5M8SvEKK/6PBy4sfoNX7wOy434= + dependencies: + "@babel/runtime" "^7.14.0" + +"@polkadot/rpc-core@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/rpc-core/download/@polkadot/rpc-core-4.10.1.tgz#531cbb481db5ef02a162039a16958509859431f1" + integrity sha1-Uxy7SB217wKhYgOaFpWFCYWUMfE= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.10.1" + "@polkadot/rpc-provider" "4.10.1" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + +"@polkadot/rpc-provider@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/rpc-provider/download/@polkadot/rpc-provider-4.10.1.tgz#822dbe90a2d0afbf67fcfa2c41ffc2c026d85c10" + integrity sha1-gi2+kKLQr79n/PosQf/CwCbYXBA= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-fetch" "^6.4.1" + "@polkadot/x-global" "^6.4.1" + "@polkadot/x-ws" "^6.4.1" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + +"@polkadot/types-known@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/types-known/download/@polkadot/types-known-4.10.1.tgz#3377a6482f116c88f82140e7327c9cdea32b0a1d" + integrity sha1-M3emSC8RbIj4IUDnMnyc3qMrCh0= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "^6.4.1" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + bn.js "^4.11.9" + +"@polkadot/types@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/types/download/@polkadot/types-4.10.1.tgz#603d273ec5ad83cfce9d3eec05bbd198ae9677f0" + integrity sha1-YD0nPsWtg8/OnT7sBbvRmK6Wd/A= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + +"@polkadot/util-crypto@6.4.1", "@polkadot/util-crypto@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/util-crypto/download/@polkadot/util-crypto-6.4.1.tgz#b567d824598bf8f4587364c1d7234bafe805f1c5" + integrity sha1-tWfYJFmL+PRYc2TB1yNLr+gF8cU= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "6.4.1" + "@polkadot/util" "6.4.1" + "@polkadot/wasm-crypto" "^4.0.2" + "@polkadot/x-randomvalues" "6.4.1" + base-x "^3.0.8" + base64-js "^1.5.1" + blakejs "^1.1.0" + bn.js "^4.11.9" + create-hash "^1.2.0" + elliptic "^6.5.4" + hash.js "^1.1.7" + js-sha3 "^0.8.0" + scryptsy "^2.1.0" + tweetnacl "^1.0.3" + xxhashjs "^0.2.2" + +"@polkadot/util@6.4.1", "@polkadot/util@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/util/download/@polkadot/util-6.4.1.tgz#f40fdc91ae49396d7930e37dbd31747769555b7a" + integrity sha1-9A/cka5JOW15MON9vTF0d2lVW3o= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-textdecoder" "6.4.1" + "@polkadot/x-textencoder" "6.4.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + camelcase "^5.3.1" + ip-regex "^4.3.0" + +"@polkadot/wasm-crypto-asmjs@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto-asmjs/download/@polkadot/wasm-crypto-asmjs-4.0.2.tgz#f42c353a64e1243841daf90e4bd54eff01a4e3cf" + integrity sha1-9Cw1OmThJDhB2vkOS9VO/wGk488= + dependencies: + "@babel/runtime" "^7.13.9" + +"@polkadot/wasm-crypto-wasm@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto-wasm/download/@polkadot/wasm-crypto-wasm-4.0.2.tgz#89f9e0a1e4d076784d4a42bea37fc8b06bdd8bb6" + integrity sha1-ifngoeTQdnhNSkK+o3/IsGvdi7Y= + dependencies: + "@babel/runtime" "^7.13.9" + +"@polkadot/wasm-crypto@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto/download/@polkadot/wasm-crypto-4.0.2.tgz#9649057adee8383cc86433d107ba526b718c5a3b" + integrity sha1-lkkFet7oODzIZDPRB7pSa3GMWjs= + dependencies: + "@babel/runtime" "^7.13.9" + "@polkadot/wasm-crypto-asmjs" "^4.0.2" + "@polkadot/wasm-crypto-wasm" "^4.0.2" + +"@polkadot/x-fetch@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-fetch/download/@polkadot/x-fetch-6.4.1.tgz#12b9e6d42e71deceff44c324ba41baed879093c1" + integrity sha1-Ernm1C5x3s7/RMMkukG67YeQk8E= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + "@types/node-fetch" "^2.5.10" + node-fetch "^2.6.1" + +"@polkadot/x-global@6.4.1", "@polkadot/x-global@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-global/download/@polkadot/x-global-6.4.1.tgz#546e019e0c7f72a92a2612cacf90e8797c94709f" + integrity sha1-VG4Bngx/cqkqJhLKz5DoeXyUcJ8= + dependencies: + "@babel/runtime" "^7.14.0" + "@types/node-fetch" "^2.5.10" + node-fetch "^2.6.1" + +"@polkadot/x-randomvalues@6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-randomvalues/download/@polkadot/x-randomvalues-6.4.1.tgz#bb30d309e03ab63196504f53962e47ec7b97fac9" + integrity sha1-uzDTCeA6tjGWUE9Tli5H7HuX+sk= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + +"@polkadot/x-rxjs@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-rxjs/download/@polkadot/x-rxjs-6.4.1.tgz#c6e8cef8dc3f20b4c7468bd6976d843947da1f15" + integrity sha1-xujO+Nw/ILTHRovWl22EOUfaHxU= + dependencies: + "@babel/runtime" "^7.14.0" + rxjs "^6.6.7" + +"@polkadot/x-textdecoder@6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-textdecoder/download/@polkadot/x-textdecoder-6.4.1.tgz#f33b81267d8de313e851cc699b9dfa6e8f109cde" + integrity sha1-8zuBJn2N4xPoUcxpm536bo8QnN4= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + +"@polkadot/x-textencoder@6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-textencoder/download/@polkadot/x-textencoder-6.4.1.tgz#f34bcc1c1a60d723ea8ce84e10a1efbbf6c1371a" + integrity sha1-80vMHBpg1yPqjOhOEKHvu/bBNxo= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + +"@polkadot/x-ws@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-ws/download/@polkadot/x-ws-6.4.1.tgz#e03295907a50f74ec220d9dc9aa6d45370f67554" + integrity sha1-4DKVkHpQ907CINncmqbUU3D2dVQ= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + "@types/websocket" "^1.0.2" + websocket "^1.0.34" + +"@types/bn.js@^4.11.6": + version "4.11.6" + resolved "https://registry.nlark.com/@types/bn.js/download/@types/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c" + integrity sha1-wwbHDZNYquozzU7aCSp0K5UFlnw= + dependencies: + "@types/node" "*" + +"@types/node-fetch@^2.5.10": + version "2.5.10" + resolved "https://registry.nlark.com/@types/node-fetch/download/@types/node-fetch-2.5.10.tgz#9b4d4a0425562f9fcea70b12cb3fcdd946ca8132" + integrity sha1-m01KBCVWL5/OpwsSyz/N2UbKgTI= + dependencies: + "@types/node" "*" + form-data "^3.0.0" + +"@types/node@*", "@types/node@^15.3.1": + version "15.3.1" + resolved "https://registry.nlark.com/@types/node/download/@types/node-15.3.1.tgz?cache=0&sync_timestamp=1621463621315&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-15.3.1.tgz#23a06b87eedb524016616e886b116b8fdcb180af" + integrity sha1-I6Brh+7bUkAWYW6IaxFrj9yxgK8= + +"@types/websocket@^1.0.2": + version "1.0.2" + resolved "https://registry.nlark.com/@types/websocket/download/@types/websocket-1.0.2.tgz?cache=0&sync_timestamp=1621244924715&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fwebsocket%2Fdownload%2F%40types%2Fwebsocket-1.0.2.tgz#d2855c6a312b7da73ed16ba6781815bf30c6187a" + integrity sha1-0oVcajErfac+0WumeBgVvzDGGHo= + dependencies: + "@types/node" "*" + +"@types/yargs-parser@*": + version "20.2.0" + resolved "https://registry.nlark.com/@types/yargs-parser/download/@types/yargs-parser-20.2.0.tgz?cache=0&sync_timestamp=1621243984050&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fyargs-parser%2Fdownload%2F%40types%2Fyargs-parser-20.2.0.tgz#dd3e6699ba3237f0348cd085e4698780204842f9" + integrity sha1-3T5mmboyN/A0jNCF5GmHgCBIQvk= + +"@types/yargs@^16.0.2": + version "16.0.2" + resolved "https://registry.nlark.com/@types/yargs/download/@types/yargs-16.0.2.tgz#b860dfa2964425239bba37ab3178b0acd79b8a61" + integrity sha1-uGDfopZEJSObujerMXiwrNebimE= + dependencies: + "@types/yargs-parser" "*" + +ansi-regex@^5.0.0: + version "5.0.0" + resolved "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz?cache=0&sync_timestamp=1618553044693&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" + integrity sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U= + +ansi-styles@^4.0.0: + version "4.3.0" + resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= + dependencies: + color-convert "^2.0.1" + +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npm.taobao.org/arg/download/arg-4.1.3.tgz?cache=0&sync_timestamp=1605576950209&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Farg%2Fdownload%2Farg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk= + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.npm.taobao.org/asynckit/download/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +base-x@^3.0.8: + version "3.0.8" + resolved "https://registry.npm.taobao.org/base-x/download/base-x-3.0.8.tgz#1e1106c2537f0162e8b52474a557ebb09000018d" + integrity sha1-HhEGwlN/AWLotSR0pVfrsJAAAY0= + dependencies: + safe-buffer "^5.0.1" + +base64-js@^1.5.1: + version "1.5.1" + resolved "https://registry.nlark.com/base64-js/download/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha1-GxtEAWClv3rUC2UPCVljSBkDkwo= + +blakejs@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/blakejs/download/blakejs-1.1.0.tgz#69df92ef953aa88ca51a32df6ab1c54a155fc7a5" + integrity sha1-ad+S75U6qIylGjLfarHFShVfx6U= + +bn.js@^4.11.9: + version "4.12.0" + resolved "https://registry.npm.taobao.org/bn.js/download/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" + integrity sha1-d1s/J477uXGO7HNh9IP7Nvu/6og= + +brorand@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/brorand/download/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= + +buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.nlark.com/buffer-from/download/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + integrity sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8= + +bufferutil@^4.0.1: + version "4.0.3" + resolved "https://registry.npm.taobao.org/bufferutil/download/bufferutil-4.0.3.tgz?cache=0&sync_timestamp=1609618802475&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbufferutil%2Fdownload%2Fbufferutil-4.0.3.tgz#66724b756bed23cd7c28c4d306d7994f9943cc6b" + integrity sha1-ZnJLdWvtI818KMTTBteZT5lDzGs= + dependencies: + node-gyp-build "^4.2.0" + +camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA= + +cipher-base@^1.0.1: + version "1.0.4" + resolved "https://registry.nlark.com/cipher-base/download/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" + integrity sha1-h2Dk7MJy9MNjUy+SbYdKriwTl94= + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.nlark.com/cliui/download/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08= + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.nlark.com/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.nlark.com/combined-stream/download/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha1-w9RaizT9cwYxoRCoolIGgrMdWn8= + dependencies: + delayed-stream "~1.0.0" + +create-hash@^1.2.0: + version "1.2.0" + resolved "https://registry.nlark.com/create-hash/download/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + integrity sha1-iJB4rxGmN1a8+1m9IhmWvjqe8ZY= + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.npm.taobao.org/create-require/download/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha1-wdfo8eX2z8n/ZfnNNS03NIdWwzM= + +cuint@^0.2.2: + version "0.2.2" + resolved "https://registry.nlark.com/cuint/download/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b" + integrity sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs= + +d@1, d@^1.0.1: + version "1.0.1" + resolved "https://registry.npm.taobao.org/d/download/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" + integrity sha1-hpgJU3LVjb7jRv/Qxwk/mfj561o= + dependencies: + es5-ext "^0.10.50" + type "^1.0.1" + +debug@^2.2.0: + version "2.6.9" + resolved "https://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz?cache=0&sync_timestamp=1614330710870&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8= + dependencies: + ms "2.0.0" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.nlark.com/delayed-stream/download/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npm.taobao.org/diff/download/diff-4.0.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdiff%2Fdownload%2Fdiff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha1-YPOuy4nV+uUgwRqhnvwruYKq3n0= + +elliptic@^6.5.4: + version "6.5.4" + resolved "https://registry.nlark.com/elliptic/download/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" + integrity sha1-2jfOvTHnmhNn6UG1ku0fvr1Yq7s= + dependencies: + bn.js "^4.11.9" + brorand "^1.1.0" + hash.js "^1.0.0" + hmac-drbg "^1.0.1" + inherits "^2.0.4" + minimalistic-assert "^1.0.1" + minimalistic-crypto-utils "^1.0.1" + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.nlark.com/emoji-regex/download/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc= + +es5-ext@^0.10.35, es5-ext@^0.10.50: + version "0.10.53" + resolved "https://registry.npm.taobao.org/es5-ext/download/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1" + integrity sha1-k8WjrP2+8nUiCtcmRK0C7hg2jeE= + dependencies: + es6-iterator "~2.0.3" + es6-symbol "~3.1.3" + next-tick "~1.0.0" + +es6-iterator@~2.0.3: + version "2.0.3" + resolved "https://registry.nlark.com/es6-iterator/download/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" + integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c= + dependencies: + d "1" + es5-ext "^0.10.35" + es6-symbol "^3.1.1" + +es6-symbol@^3.1.1, es6-symbol@~3.1.3: + version "3.1.3" + resolved "https://registry.npm.taobao.org/es6-symbol/download/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" + integrity sha1-utXTwbzawoJp9MszHkMceKxwXRg= + dependencies: + d "^1.0.1" + ext "^1.1.2" + +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA= + +eventemitter3@^4.0.7: + version "4.0.7" + resolved "https://registry.npm.taobao.org/eventemitter3/download/eventemitter3-4.0.7.tgz?cache=0&sync_timestamp=1598517819668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feventemitter3%2Fdownload%2Feventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha1-Lem2j2Uo1WRO9cWVJqG0oHMGFp8= + +ext@^1.1.2: + version "1.4.0" + resolved "https://registry.npm.taobao.org/ext/download/ext-1.4.0.tgz#89ae7a07158f79d35517882904324077e4379244" + integrity sha1-ia56BxWPedNVF4gpBDJAd+Q3kkQ= + dependencies: + type "^2.0.0" + +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.nlark.com/form-data/download/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" + integrity sha1-69U3kbeDVqma+aMA1CgsTV65dV8= + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= + +hash-base@^3.0.0: + version "3.1.0" + resolved "https://registry.npm.taobao.org/hash-base/download/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" + integrity sha1-VcOB2eBuHSmXqIO0o/3f5/DTrzM= + dependencies: + inherits "^2.0.4" + readable-stream "^3.6.0" + safe-buffer "^5.2.0" + +hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7: + version "1.1.7" + resolved "https://registry.npm.taobao.org/hash.js/download/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" + integrity sha1-C6vKU46NTuSg+JiNaIZlN6ADz0I= + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.1" + +hmac-drbg@^1.0.1: + version "1.0.1" + resolved "https://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: + version "2.0.4" + resolved "https://registry.nlark.com/inherits/download/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w= + +ip-regex@^4.3.0: + version "4.3.0" + resolved "https://registry.nlark.com/ip-regex/download/ip-regex-4.3.0.tgz?cache=0&sync_timestamp=1618846943469&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fip-regex%2Fdownload%2Fip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" + integrity sha1-aHJ1qw9X+naXj/j03dyKI9WZDbU= + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.nlark.com/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0= + +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.npm.taobao.org/is-typedarray/download/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +js-sha3@^0.8.0: + version "0.8.0" + resolved "https://registry.npm.taobao.org/js-sha3/download/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" + integrity sha1-ubel2nOvrX3t0PjEY5VMveaBiEA= + +make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha1-LrLjfqm2fEiR9oShOUeZr0hM96I= + +md5.js@^1.3.4: + version "1.3.5" + resolved "https://registry.npm.taobao.org/md5.js/download/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" + integrity sha1-tdB7jjIW4+J81yjXL3DR5qNCAF8= + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +mime-db@1.47.0: + version "1.47.0" + resolved "https://registry.npm.taobao.org/mime-db/download/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" + integrity sha1-jLMT5Zll08Bc+/iYkVomevRqM1w= + +mime-types@^2.1.12: + version "2.1.30" + resolved "https://registry.npm.taobao.org/mime-types/download/mime-types-2.1.30.tgz?cache=0&sync_timestamp=1617340140598&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-types%2Fdownload%2Fmime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" + integrity sha1-bnvotMR5gl+F7WMmaV23P5MF1i0= + dependencies: + mime-db "1.47.0" + +minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.nlark.com/minimalistic-assert/download/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha1-LhlN4ERibUoQ5/f7wAznPoPk1cc= + +minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.nlark.com/minimalistic-crypto-utils/download/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&sync_timestamp=1607433899126&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + +next-tick@~1.0.0: + version "1.0.0" + resolved "https://registry.npm.taobao.org/next-tick/download/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" + integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= + +node-fetch@^2.6.1: + version "2.6.1" + resolved "https://registry.nlark.com/node-fetch/download/node-fetch-2.6.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fnode-fetch%2Fdownload%2Fnode-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" + integrity sha1-BFvTI2Mfdu0uK1VXM5RBa2OaAFI= + +node-gyp-build@^4.2.0: + version "4.2.3" + resolved "https://registry.npm.taobao.org/node-gyp-build/download/node-gyp-build-4.2.3.tgz#ce6277f853835f718829efb47db20f3e4d9c4739" + integrity sha1-zmJ3+FODX3GIKe+0fbIPPk2cRzk= + +readable-stream@^3.6.0: + version "3.6.0" + resolved "https://registry.nlark.com/readable-stream/download/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha1-M3u9o63AcGvT4CRCaihtS0sskZg= + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +regenerator-runtime@^0.13.4: + version "0.13.7" + resolved "https://registry.nlark.com/regenerator-runtime/download/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" + integrity sha1-ysLazIoepnX+qrrriugziYrkb1U= + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.nlark.com/require-directory/download/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +ripemd160@^2.0.1: + version "2.0.2" + resolved "https://registry.npm.taobao.org/ripemd160/download/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + integrity sha1-ocGm9iR1FXe6XQeRTLyShQWFiQw= + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +rxjs@^6.6.7: + version "6.6.7" + resolved "https://registry.nlark.com/rxjs/download/rxjs-6.6.7.tgz?cache=0&sync_timestamp=1620786704383&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frxjs%2Fdownload%2Frxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" + integrity sha1-kKwBisq/SRv2UEQjXVhjxNq4BMk= + dependencies: + tslib "^1.9.0" + +safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.nlark.com/safe-buffer/download/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY= + +scryptsy@^2.1.0: + version "2.1.0" + resolved "https://registry.npm.taobao.org/scryptsy/download/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" + integrity sha1-jR6NDAJbWP3SW2+poNyQXuj6p5A= + +sha.js@^2.4.0: + version "2.4.11" + resolved "https://registry.npm.taobao.org/sha.js/download/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + integrity sha1-N6XPC4HsvGlD3hCbopYNGyZYSuc= + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npm.taobao.org/source-map-support/download/source-map-support-0.5.19.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map-support%2Fdownload%2Fsource-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha1-qYti+G3K9PZzmWSMCFKRq56P7WE= + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0: + version "0.6.1" + resolved "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha1-dHIq8y6WFOnCh6jQu95IteLxomM= + +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.2" + resolved "https://registry.nlark.com/string-width/download/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" + integrity sha1-2v1PlVmnWFz7pSnGoKT3NIjr1MU= + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.nlark.com/string_decoder/download/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha1-QvEUWUpGzxqOMLCoT1bHjD7awh4= + dependencies: + safe-buffer "~5.2.0" + +strip-ansi@^6.0.0: + version "6.0.0" + resolved "https://registry.nlark.com/strip-ansi/download/strip-ansi-6.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" + integrity sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI= + dependencies: + ansi-regex "^5.0.0" + +ts-node@^9.1.1: + version "9.1.1" + resolved "https://registry.nlark.com/ts-node/download/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" + integrity sha1-UamkUKPpWUAb2l8ASnLVS5NtN20= + dependencies: + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + source-map-support "^0.5.17" + yn "3.1.1" + +tslib@^1.9.0: + version "1.14.1" + resolved "https://registry.nlark.com/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1618847097275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA= + +tweetnacl@^1.0.3: + version "1.0.3" + resolved "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" + integrity sha1-rAr3FoBFjYpjeNDQ0FCrFAfTVZY= + +type@^1.0.1: + version "1.2.0" + resolved "https://registry.npm.taobao.org/type/download/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" + integrity sha1-hI3XaY2vo+VKbEeedZxLw/GIR6A= + +type@^2.0.0: + version "2.5.0" + resolved "https://registry.npm.taobao.org/type/download/type-2.5.0.tgz#0a2e78c2e77907b252abe5f298c1b01c63f0db3d" + integrity sha1-Ci54wud5B7JSq+XymMGwHGPw2z0= + +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.npm.taobao.org/typedarray-to-buffer/download/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha1-qX7nqf9CaRufeD/xvFES/j/KkIA= + dependencies: + is-typedarray "^1.0.0" + +typescript@^4.2.4: + version "4.2.4" + resolved "https://registry.nlark.com/typescript/download/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961" + integrity sha1-hhC1l0feAo/aiYqK7w4QPxVtCWE= + +utf-8-validate@^5.0.2: + version "5.0.5" + resolved "https://registry.nlark.com/utf-8-validate/download/utf-8-validate-5.0.5.tgz?cache=0&sync_timestamp=1620067993025&other_urls=https%3A%2F%2Fregistry.nlark.com%2Futf-8-validate%2Fdownload%2Futf-8-validate-5.0.5.tgz#dd32c2e82c72002dc9f02eb67ba6761f43456ca1" + integrity sha1-3TLC6CxyAC3J8C62e6Z2H0NFbKE= + dependencies: + node-gyp-build "^4.2.0" + +util-deprecate@^1.0.1: + version "1.0.2" + resolved "https://registry.npm.taobao.org/util-deprecate/download/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +websocket@^1.0.34: + version "1.0.34" + resolved "https://registry.npm.taobao.org/websocket/download/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" + integrity sha1-K9wmAsCL8sgiU7cwZVwO99yrMRE= + dependencies: + bufferutil "^4.0.1" + debug "^2.2.0" + es5-ext "^0.10.50" + typedarray-to-buffer "^3.1.5" + utf-8-validate "^5.0.2" + yaeti "^0.0.6" + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM= + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +xxhashjs@^0.2.2: + version "0.2.2" + resolved "https://registry.nlark.com/xxhashjs/download/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8" + integrity sha1-imJRVnYhocRqWuIE2gJJx/jKqdg= + dependencies: + cuint "^0.2.2" + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.nlark.com/y18n/download/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha1-f0k00PfKjFb5UxSTndzS3ZHOHVU= + +yaeti@^0.0.6: + version "0.0.6" + resolved "https://registry.npm.taobao.org/yaeti/download/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" + integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc= + +yargs-parser@^20.2.2: + version "20.2.7" + resolved "https://registry.nlark.com/yargs-parser/download/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" + integrity sha1-Yd+FwRPt+1p6TjbriqYO9CPLyQo= + +yargs@^17.0.1: + version "17.0.1" + resolved "https://registry.nlark.com/yargs/download/yargs-17.0.1.tgz?cache=0&sync_timestamp=1620086644940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-17.0.1.tgz#6a1ced4ed5ee0b388010ba9fd67af83b9362e0bb" + integrity sha1-ahztTtXuCziAELqf1nr4O5Ni4Ls= + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" + +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npm.taobao.org/yn/download/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A= From ae839064cd446cead5e5d6923b5929985c136694 Mon Sep 17 00:00:00 2001 From: clearloop Date: Fri, 21 May 2021 15:07:16 +0800 Subject: [PATCH 02/74] ci(build): build and test with release binary --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7f623b6589..6c101b60de 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -105,7 +105,7 @@ jobs: - build_setup - run: name: Clippy Check - command: cargo clippy --all-features + command: cargo clippy --all-features --release - save_build_cache test: executor: test-executor @@ -114,7 +114,7 @@ jobs: - build_setup - run: name: Run Tests - command: cargo test --all-features + command: cargo test --all-features --release - save_build_cache security: executor: test-executor From 6aaf4243e4daa3c2f37414202bf0d00c0f1f8be9 Mon Sep 17 00:00:00 2001 From: clearloop Date: Sun, 23 May 2021 09:38:09 +0800 Subject: [PATCH 03/74] feat(e2e): abstract pint command --- e2e/src/pint.ts | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 e2e/src/pint.ts diff --git a/e2e/src/pint.ts b/e2e/src/pint.ts new file mode 100644 index 0000000000..5c8c762172 --- /dev/null +++ b/e2e/src/pint.ts @@ -0,0 +1,55 @@ +// Run pint binary +import path from "path"; +import fs from "fs"; + +/** + * PINT process + * + * ENV ARGS (default "--dev --ws-port 3055") + * ENV PINT (default "../target/release/pint") + * ENV WS_PORT (default 3055) + */ +class PINT { + private _args: string[]; + private path: string; + private wsPort: number; + + /** + * Check init PINT binary + */ + constructor( + defaultPath: string = path.resolve(__filename, "../target/release/pint"), + defaultWsPort: number = 3055, + defaultArgs: string[] = ["--dev"] + ) { + const _path = process.env.PINT ? process.env.PINT : defaultPath; + const _ws_port = + process.env.WS_PORT && Number(process.env.PINT) !== NaN + ? Number(process.env.PINT) + : defaultWsPort; + + // Check if binary exists + try { + if (fs.existsSync(_path)) { + this.path = _path; + this.wsPort = _ws_port; + } + } catch (err) { + console.error(err); + process.exit(1); + } + } + + /** + * Build arguments + */ + private build() {} + + /** + * Reset arguments, run PINT binary as your wish. + */ + public args(args: string[]): PINT { + this._args = args; + return this; + } +} From 7dc726ebdf565cecd5589ce72087fdfde5cc06f4 Mon Sep 17 00:00:00 2001 From: clearloop Date: Wed, 26 May 2021 17:02:14 +0800 Subject: [PATCH 04/74] ci(docker): move docker config into folder docker --- .circleci/config.yml | 8 +- Cargo.lock | 470 ++++++++++++------------ config.json | 4 +- Dockerfile => docker/release.Dockerfile | 0 4 files changed, 241 insertions(+), 241 deletions(-) rename Dockerfile => docker/release.Dockerfile (100%) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6c101b60de..4d4d7b739a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -126,14 +126,14 @@ jobs: - run: name: Check for known security issues in dependencies command: cargo audit - docker-build: + docker-build-release: executor: test-executor description: Build Docker Image steps: - checkout - run: name: Build docker image - command: BUILDKIT_PROGRESS=plain DOCKER_BUILDKIT=1 docker build -t $IMAGE_NAME:latest . + command: BUILDKIT_PROGRESS=plain DOCKER_BUILDKIT=1 docker build -f docker/release -t $IMAGE_NAME:latest . - run: name: Archive Docker image command: docker save -o image.tar $IMAGE_NAME @@ -183,10 +183,10 @@ workflows: - security docker: jobs: - - docker-build + - docker-build-release - docker-publish-latest: requires: - - docker-build + - docker-build-release filters: branches: only: main diff --git a/Cargo.lock b/Cargo.lock index 1b34ab0832..e61477de68 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1993,39 +1993,39 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "linregress", "log", "parity-scale-codec", "paste", - "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "frame-benchmarking" version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ - "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git)", "linregress", "log", "parity-scale-codec", "paste", - "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] @@ -2079,17 +2079,6 @@ dependencies = [ "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] -[[package]] -name = "frame-metadata" -version = "13.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" -dependencies = [ - "parity-scale-codec", - "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", -] - [[package]] name = "frame-metadata" version = "13.0.0" @@ -2102,29 +2091,14 @@ dependencies = [ ] [[package]] -name = "frame-support" -version = "3.0.0" +name = "frame-metadata" +version = "13.0.0" source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ - "bitflags", - "frame-metadata 13.0.0 (git+https://github.com/paritytech/substrate.git)", - "frame-support-procedural 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "impl-trait-for-tuples", - "log", - "once_cell", "parity-scale-codec", - "paste", "serde", - "smallvec 1.6.1", - "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git)", "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git)", "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] @@ -2154,15 +2128,29 @@ dependencies = [ ] [[package]] -name = "frame-support-procedural" +name = "frame-support" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ - "Inflector", - "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", + "bitflags", + "frame-metadata 13.0.0 (git+https://github.com/paritytech/substrate.git)", + "frame-support-procedural 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "impl-trait-for-tuples", + "log", + "once_cell", + "parity-scale-codec", + "paste", + "serde", + "smallvec 1.6.1", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] @@ -2178,12 +2166,12 @@ dependencies = [ ] [[package]] -name = "frame-support-procedural-tools" +name = "frame-support-procedural" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ - "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "proc-macro-crate 1.0.0", + "Inflector", + "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git)", "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", @@ -2202,10 +2190,12 @@ dependencies = [ ] [[package]] -name = "frame-support-procedural-tools-derive" +name = "frame-support-procedural-tools" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ + "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "proc-macro-crate 1.0.0", "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", @@ -2222,20 +2212,13 @@ dependencies = [ ] [[package]] -name = "frame-system" +name = "frame-support-procedural-tools-derive" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ - "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "proc-macro2 1.0.26", + "quote 1.0.9", + "syn 1.0.72", ] [[package]] @@ -2255,6 +2238,23 @@ dependencies = [ "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] +[[package]] +name = "frame-system" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +dependencies = [ + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "serde", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git)", +] + [[package]] name = "frame-system-benchmarking" version = "3.0.0" @@ -9129,41 +9129,41 @@ dependencies = [ [[package]] name = "sp-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "hash-db", "log", "parity-scale-codec", - "sp-api-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-api-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", ] [[package]] name = "sp-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "hash-db", "log", "parity-scale-codec", - "sp-api-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-api-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git)", "thiserror", ] [[package]] name = "sp-api-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "blake2-rfc", "proc-macro-crate 1.0.0", @@ -9175,7 +9175,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "blake2-rfc", "proc-macro-crate 1.0.0", @@ -9187,52 +9187,52 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "parity-scale-codec", "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-application-crypto" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "parity-scale-codec", "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] name = "sp-arithmetic" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "serde", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "static_assertions", ] [[package]] name = "sp-arithmetic" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "serde", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", "static_assertions", ] @@ -9371,7 +9371,7 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "base58", "blake2-rfc", @@ -9398,11 +9398,11 @@ dependencies = [ "secrecy", "serde", "sha2 0.9.5", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-bip39", "thiserror", "tiny-bip39", @@ -9415,7 +9415,7 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "base58", "blake2-rfc", @@ -9442,11 +9442,11 @@ dependencies = [ "secrecy", "serde", "sha2 0.9.5", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", "substrate-bip39", "thiserror", "tiny-bip39", @@ -9468,7 +9468,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "proc-macro2 1.0.26", "quote 1.0.9", @@ -9478,7 +9478,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "proc-macro2 1.0.26", "quote 1.0.9", @@ -9488,23 +9488,23 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] @@ -9524,6 +9524,18 @@ dependencies = [ "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] +[[package]] +name = "sp-inherents" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +dependencies = [ + "parity-scale-codec", + "parking_lot 0.11.1", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "thiserror", +] + [[package]] name = "sp-inherents" version = "3.0.0" @@ -9539,15 +9551,27 @@ dependencies = [ ] [[package]] -name = "sp-inherents" +name = "sp-io" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ + "futures 0.3.15", + "hash-db", + "libsecp256k1", + "log", "parity-scale-codec", "parking_lot 0.11.1", "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "thiserror", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "tracing", + "tracing-core", ] [[package]] @@ -9575,30 +9599,6 @@ dependencies = [ "tracing-core", ] -[[package]] -name = "sp-io" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "futures 0.3.15", - "hash-db", - "libsecp256k1", - "log", - "parity-scale-codec", - "parking_lot 0.11.1", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "tracing", - "tracing-core", -] - [[package]] name = "sp-keyring" version = "3.0.0" @@ -9613,7 +9613,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-trait", "derive_more 0.99.13", @@ -9622,14 +9622,15 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", "schnorrkel", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", + "serde", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "async-trait", "derive_more 0.99.13", @@ -9638,15 +9639,14 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", "schnorrkel", - "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] name = "sp-maybe-compressed-blob" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "ruzstd", "zstd", @@ -9655,7 +9655,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "ruzstd", "zstd", @@ -9698,7 +9698,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "backtrace", ] @@ -9706,7 +9706,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "backtrace", ] @@ -9723,7 +9723,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "either", "hash256-std-hasher", @@ -9734,17 +9734,17 @@ dependencies = [ "paste", "rand 0.7.3", "serde", - "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "either", "hash256-std-hasher", @@ -9755,51 +9755,51 @@ dependencies = [ "paste", "rand 0.7.3", "serde", - "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime-interface-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "static_assertions", ] [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime-interface-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime-interface-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git)", "static_assertions", ] [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "Inflector", "proc-macro-crate 1.0.0", @@ -9811,7 +9811,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "Inflector", "proc-macro-crate 1.0.0", @@ -9845,27 +9845,27 @@ dependencies = [ [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "parity-scale-codec", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "parity-scale-codec", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "hash-db", "log", @@ -9874,13 +9874,12 @@ dependencies = [ "parking_lot 0.11.1", "rand 0.7.3", "smallvec 1.6.1", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", - "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", - "tracing", "trie-db", "trie-root", ] @@ -9888,7 +9887,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "hash-db", "log", @@ -9897,12 +9896,13 @@ dependencies = [ "parking_lot 0.11.1", "rand 0.7.3", "smallvec 1.6.1", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git)", "thiserror", + "tracing", "trie-db", "trie-root", ] @@ -9910,37 +9910,37 @@ dependencies = [ [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] @@ -9972,16 +9972,11 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "erased-serde", "log", "parity-scale-codec", - "parking_lot 0.10.2", - "serde", - "serde_json", - "slog", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", "tracing-core", "tracing-subscriber", @@ -9990,11 +9985,16 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ + "erased-serde", "log", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "parking_lot 0.10.2", + "serde", + "serde_json", + "slog", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", "tracing", "tracing-core", "tracing-subscriber", @@ -10019,13 +10019,13 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "hash-db", "memory-db", "parity-scale-codec", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "trie-db", "trie-root", ] @@ -10033,13 +10033,13 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "hash-db", "memory-db", "parity-scale-codec", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", "trie-db", "trie-root", ] @@ -10059,26 +10059,26 @@ dependencies = [ [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "impl-serde", "parity-scale-codec", "serde", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-version-proc-macro", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "impl-serde", "parity-scale-codec", "serde", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-version-proc-macro", ] [[package]] @@ -10096,22 +10096,22 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "wasmi", ] [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", "wasmi", ] diff --git a/config.json b/config.json index 6aaac3ead5..9ec1a89cb4 100644 --- a/config.json +++ b/config.json @@ -22,7 +22,7 @@ }, "parachains": [ { - "bin": "./target/target/pint", + "bin": "./target/release/pint", "chain": "pint-dev", "id": "1", "wsPort": 9988, @@ -60,4 +60,4 @@ ], "types": {}, "finalization": false -} \ No newline at end of file +} diff --git a/Dockerfile b/docker/release.Dockerfile similarity index 100% rename from Dockerfile rename to docker/release.Dockerfile From f7d782ebc7460f94e2a90c3389ecc113a76d194f Mon Sep 17 00:00:00 2001 From: clearloop Date: Wed, 26 May 2021 17:12:06 +0800 Subject: [PATCH 05/74] ci(docker): type of the path of Dockerfile --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4d4d7b739a..c0d859af0f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -133,7 +133,7 @@ jobs: - checkout - run: name: Build docker image - command: BUILDKIT_PROGRESS=plain DOCKER_BUILDKIT=1 docker build -f docker/release -t $IMAGE_NAME:latest . + command: BUILDKIT_PROGRESS=plain DOCKER_BUILDKIT=1 docker build -f docker/release.Dockerfile -t $IMAGE_NAME:latest . - run: name: Archive Docker image command: docker save -o image.tar $IMAGE_NAME From aeb974679abb03fa2c7c2d983b49675d968105fa Mon Sep 17 00:00:00 2001 From: clearloop Date: Wed, 26 May 2021 19:14:19 +0800 Subject: [PATCH 06/74] fead(docker): add Dockerfile for launching PINT --- .circleci/config.yml | 4 ++-- .gitignore | 3 +++ docker/e2e.Dockerfile | 23 +++++++++++++++++++++++ config.json => launch/config.json | 30 +++++++++++++++++------------- 4 files changed, 45 insertions(+), 15 deletions(-) create mode 100644 docker/e2e.Dockerfile rename config.json => launch/config.json (72%) diff --git a/.circleci/config.yml b/.circleci/config.yml index c0d859af0f..72e5d41b1c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -105,7 +105,7 @@ jobs: - build_setup - run: name: Clippy Check - command: cargo clippy --all-features --release + command: cargo clippy --all-features - save_build_cache test: executor: test-executor @@ -114,7 +114,7 @@ jobs: - build_setup - run: name: Run Tests - command: cargo test --all-features --release + command: cargo test --all-features - save_build_cache security: executor: test-executor diff --git a/.gitignore b/.gitignore index b0999cf9d9..f3d1a8288c 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,7 @@ node_modules # The cache for chain data in container .local +# Binaries for launching PINT with polkadot +launch/bin + local-test \ No newline at end of file diff --git a/docker/e2e.Dockerfile b/docker/e2e.Dockerfile new file mode 100644 index 0000000000..4e6ba18750 --- /dev/null +++ b/docker/e2e.Dockerfile @@ -0,0 +1,23 @@ +# syntax=docker/dockerfile:experimental +# +# Copyright 2021 ChainSafe Systems +# SPDX-License-Identifier: LGPL-3.0-only +# +# This Dockerfile builds the environment of e2e tests +FROM ubuntu:latest +COPY launch launch +ENV CARGO_TERM_COLOR=always +RUN apt-get update -y \ + && apt-get install openssl curl git -y \ + && curl -sL https://deb.nodesource.com/setup_15.x | bash - \ + && apt-get -qqy --no-install-recommends install nodejs -y \ + && rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb \ + && rm -f /var/cache/apt/*.bin \ + && git clone https://github.com/paritytech/polkadot-launch.git \ + && cd polkadot-launch \ + && npm install \ + && npm run build +EXPOSE 9966 +EXPOSE 9988 +EXPOSE 9999 +ENTRYPOINT [ "node", "polkadot-launch/dist/index.js", "launch/config.json" ] diff --git a/config.json b/launch/config.json similarity index 72% rename from config.json rename to launch/config.json index 9ec1a89cb4..21527a932f 100644 --- a/config.json +++ b/launch/config.json @@ -22,30 +22,34 @@ }, "parachains": [ { - "bin": "./target/release/pint", + "bin": "./bin/pint", "chain": "pint-dev", "id": "1", - "wsPort": 9988, - "port": 31200, "balance": "1000000000000000000000", - "flags": [ - "-lruntime=debug", - "--", - "--execution=wasm" - ] + "nodes": [{ + "wsPort": 9988, + "port": 31200, + "flags": [ + "-lruntime=debug", + "--", + "--execution=wasm" + ] + }] }, { "bin": "./bin/statemint", "chain": "statemint-dev", "id": "300", - "wsPort": 9999, - "port": 31300, "balance": "1000000000000000000000", - "flags": [ - "-lruntime=debug", + "nodes": [{ + "wsPort": 9999, + "port": 31300, + "flags": [ + "-lruntime=debug", "--", "--execution=wasm" - ] + ] + }] } ], "simpleParachains": [ From 4d86b9c1b58e1956d5d043817ada4c73ed9e85f3 Mon Sep 17 00:00:00 2001 From: clearloop Date: Wed, 26 May 2021 19:44:34 +0800 Subject: [PATCH 07/74] feat(e2e): use test binaries served by clearloop --- Cargo.lock | 309 ++++++++++++++++++------------------ docker/e2e.Dockerfile | 5 +- docker/rococo.Dockerfile | 16 ++ docker/statemint.Dockerfile | 16 ++ 4 files changed, 191 insertions(+), 155 deletions(-) create mode 100644 docker/rococo.Dockerfile create mode 100644 docker/statemint.Dockerfile diff --git a/Cargo.lock b/Cargo.lock index e61477de68..c5fe6431b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -340,9 +340,9 @@ dependencies = [ [[package]] name = "async-std-resolver" -version = "0.20.2" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d613d619c2886fc0f4b5a777eceab405b23de82d73f0fc61ae402fdb9bc6fb2" +checksum = "ed4e2c3da14d8ad45acb1e3191db7a918e9505b6f155b218e70a7c9a1a48c638" dependencies = [ "async-std", "async-trait", @@ -364,7 +364,7 @@ version = "0.1.50" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b98e84bbb4cbcdd97da190ba0c58a1bb0de2c1fdf67d159e192ed766aeca722" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -554,7 +554,7 @@ dependencies = [ "lazy_static", "lazycell", "peeking_take_while", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "regex", "rustc-hash", @@ -624,9 +624,9 @@ dependencies = [ [[package]] name = "blake3" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9ff35b701f3914bdb8fad3368d822c766ef2858b2583198e41639b936f09d3f" +checksum = "b64485778c4f16a6a5a9d335e80d449ac6c70cdd6a06d2af18a6f6f775a125b3" dependencies = [ "arrayref", "arrayvec 0.5.2", @@ -798,9 +798,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.67" +version = "1.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd" +checksum = "4a72c244c1ff497a746a7e1fb3d14bd08420ecda70c8f25c7112f2781652d787" dependencies = [ "jobserver", ] @@ -981,9 +981,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.1.1" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dec1028182c380cc45a2e2c5ec841134f2dfd0f8f5f0a5bcd68004f81b5efdf4" +checksum = "ed00c67cb5d0a7d64a44f6ad2668db7e7530311dd53ea79bcd4fb022c64911c8" dependencies = [ "libc", ] @@ -1337,7 +1337,7 @@ name = "cumulus-client-network" version = "0.1.0" source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "futures 0.3.15", "futures-timer 3.0.2", "parity-scale-codec", @@ -1531,9 +1531,9 @@ checksum = "3ee2393c4a91429dffb4bedf19f4d6abf27d8a732c8ce4980305d782e5426d57" [[package]] name = "data-encoding-macro" -version = "0.1.10" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a94feec3d2ba66c0b6621bca8bc6f68415b1e5c69af3586fdd0af9fd9f29b17" +checksum = "d3920ab0ba823e4fe0fe4c358f105a7e36643f2155f409b13df03e67965d296f" dependencies = [ "data-encoding", "data-encoding-macro-internal", @@ -1555,7 +1555,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -1576,12 +1576,12 @@ dependencies = [ [[package]] name = "derive_more" -version = "0.99.13" +version = "0.99.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f82b1b72f1263f214c0f823371768776c4f5841b942c9883aa8e5ec584fd0ba6" +checksum = "5cc7b9cef1e351660e5443924e4f43ab25fbbed3e9a5f052df3677deb4d6b320" dependencies = [ "convert_case", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -1671,7 +1671,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -1718,7 +1718,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c5f0096a91d210159eceb2ff5e1c4da18388a170e1e3ce948aac9c8fdbbf595" dependencies = [ "heck", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -1738,7 +1738,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "946ee94e3dbf58fdd324f9ce245c7b238d46a66f00e86a020b71996349e46cce" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -1749,7 +1749,7 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e58b112d5099aa0857c5d05f0eacab86406dd8c0f85fe5d320a13256d29ecf4" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -1788,9 +1788,9 @@ checksum = "68b91989ae21441195d7d9b9993a2f9295c7e1a8c96255d8b729accddc124797" [[package]] name = "erased-serde" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0465971a8cc1fa2455c8465aaa377131e1f1cf4983280f474a13e68793aa770c" +checksum = "e5b36e6f2295f393f44894c6031f67df4d185b984cd54d08f768ce678007efcd" dependencies = [ "serde", ] @@ -1874,7 +1874,7 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", "synstructure", @@ -2012,7 +2012,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git)", @@ -2093,7 +2093,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "13.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "parity-scale-codec", "serde", @@ -2130,7 +2130,7 @@ dependencies = [ [[package]] name = "frame-support" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "bitflags", "frame-metadata 13.0.0 (git+https://github.com/paritytech/substrate.git)", @@ -2160,7 +2160,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8f dependencies = [ "Inflector", "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -2168,11 +2168,11 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "Inflector", "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -2184,7 +2184,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8f dependencies = [ "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -2192,11 +2192,11 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -2206,7 +2206,7 @@ name = "frame-support-procedural-tools-derive" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -2214,9 +2214,9 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -2241,7 +2241,7 @@ dependencies = [ [[package]] name = "frame-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", "impl-trait-for-tuples", @@ -2450,7 +2450,7 @@ checksum = "a4c40298486cdf52cc00cd6d6987892ba502c7656a16a4192a9992b1ccedd121" dependencies = [ "autocfg", "proc-macro-hack", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -2559,9 +2559,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8" +checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753" dependencies = [ "cfg-if 1.0.0", "libc", @@ -3035,7 +3035,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d5dacb10c5b3bb92d46ba347505a9041e676bb20ad220101326bffb0c93031ee" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -3205,7 +3205,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99a847f9ec7bb52149b2786a17c9cb260d6effc6b8eeb8c16b343a487a7563a3" dependencies = [ "proc-macro-crate 0.1.5", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -3309,7 +3309,7 @@ checksum = "b0cbaee9ca6440e191545a68c7bf28db0ff918359a904e37a6e7cf7edd132f5a" dependencies = [ "Inflector", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -3502,9 +3502,9 @@ checksum = "3576a87f2ba00f6f106fdfcd16db1d698d648a26ad8e0573cad8537c3c362d2a" [[package]] name = "libc" -version = "0.2.94" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18794a8ad5b29321f790b55d93dfba91e125cb1a9edbd4f8e3150acc771c1a5e" +checksum = "789da6d93f1b866ffe175afc5322a4d76c038605a1c3319bb57b06967ca98a36" [[package]] name = "libloading" @@ -4144,9 +4144,9 @@ checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" [[package]] name = "memmap2" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "397d1a6d6d0563c0f5462bbdae662cf6c784edf5e828e40c7257f85d82bf56dd" +checksum = "723e3ebdcdc5c023db1df315364573789f8857c11b631a2fdfad7c00f5c046b4" dependencies = [ "libc", ] @@ -4212,7 +4212,7 @@ name = "metered-channel" version = "0.1.0" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "futures 0.3.15", "futures-timer 3.0.2", ] @@ -4243,7 +4243,7 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f2b9e8883d58e34b18facd16c4564a77ea50fce028ad3d0ee6753440e37acc8" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -4375,7 +4375,7 @@ checksum = "85ee3c48cb9d9b275ad967a0e96715badc13c6029adb92f34fa17b9ff28fd81f" dependencies = [ "proc-macro-crate 0.1.5", "proc-macro-error", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", "synstructure", @@ -5047,7 +5047,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-election-provider-support", @@ -5192,7 +5192,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", @@ -5248,7 +5248,7 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -5538,7 +5538,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f44c5f94427bd0b5076e8f7e15ca3f60a4d8ac0077e4793884e6fdfd8915344e" dependencies = [ "proc-macro-crate 0.1.5", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -5592,7 +5592,7 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "syn 1.0.72", "synstructure", ] @@ -5787,7 +5787,7 @@ checksum = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55" dependencies = [ "pest", "pest_meta", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -5837,7 +5837,7 @@ version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3be26700300be6d9d23264c73211d8190e755b6b5ca7a1b28230025511b52a5e" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -5848,7 +5848,7 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48c950132583b500556b1efd71d45b319029f2b71518d979fcc208e16b42426f" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -6131,7 +6131,7 @@ version = "0.1.0" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" dependencies = [ "bitvec", - "derive_more 0.99.13", + "derive_more 0.99.14", "futures 0.3.15", "futures-timer 3.0.2", "kvdb", @@ -6401,7 +6401,7 @@ source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf dependencies = [ "async-std", "async-trait", - "derive_more 0.99.13", + "derive_more 0.99.14", "futures 0.3.15", "futures-timer 3.0.2", "lazy_static", @@ -6474,7 +6474,7 @@ name = "polkadot-parachain" version = "0.8.30" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "parity-scale-codec", "parity-util-mem", "polkadot-core-primitives", @@ -6519,7 +6519,7 @@ version = "0.1.0" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" dependencies = [ "assert_matches", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -6682,7 +6682,7 @@ version = "0.8.30" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" dependencies = [ "bitvec", - "derive_more 0.99.13", + "derive_more 0.99.14", "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", @@ -7021,7 +7021,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" dependencies = [ "proc-macro-error-attr", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", "version_check", @@ -7033,7 +7033,7 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "version_check", ] @@ -7061,9 +7061,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.26" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec" +checksum = "f0d8caf72986c1a598726adc988bb5984792ef84f5ee5aa50209145ee8077038" dependencies = [ "unicode-xid 0.2.2", ] @@ -7118,7 +7118,7 @@ checksum = "169a15f3008ecb5160cba7d37bcd690a7601b6d30cfb87a117d45e59d52af5d4" dependencies = [ "anyhow", "itertools 0.9.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -7135,9 +7135,9 @@ dependencies = [ [[package]] name = "psm" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3abf49e5417290756acfd26501536358560c4a5cc4a0934d390939acb3e7083a" +checksum = "21ff0279b4a85e576b97e4a21d13e437ebcd56612706cde5d3f0d5c9399490c0" dependencies = [ "cc", ] @@ -7191,7 +7191,7 @@ version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", ] [[package]] @@ -7299,7 +7299,7 @@ version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7" dependencies = [ - "getrandom 0.2.2", + "getrandom 0.2.3", ] [[package]] @@ -7346,9 +7346,9 @@ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" [[package]] name = "rayon" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b0d8e0819fadc20c74ea8373106ead0600e3a67ef1fe8da56e39b9ae7275674" +checksum = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90" dependencies = [ "autocfg", "crossbeam-deque 0.8.0", @@ -7358,9 +7358,9 @@ dependencies = [ [[package]] name = "rayon-core" -version = "1.9.0" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ab346ac5921dc62ffa9f89b7a773907511cdfa5490c572ae9be1be33e8afa4a" +checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e" dependencies = [ "crossbeam-channel", "crossbeam-deque 0.8.0", @@ -7399,7 +7399,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" dependencies = [ - "getrandom 0.2.2", + "getrandom 0.2.3", "redox_syscall 0.2.8", ] @@ -7409,7 +7409,7 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3bd8f48b2066e9f69ab192797d66da804d1935bf22763204ed3675740cb0f221" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "fs-err", "itertools 0.10.0", "static_init", @@ -7431,7 +7431,7 @@ version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c38e3aecd2b21cb3959637b883bb3714bc7e43f0268b9a29d3743ee3e55cdd2" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -7761,7 +7761,7 @@ version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-trait", - "derive_more 0.99.13", + "derive_more 0.99.14", "either", "futures 0.3.15", "futures-timer 3.0.2", @@ -7850,7 +7850,7 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -7898,7 +7898,7 @@ name = "sc-client-api" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "fnv", "futures 0.3.15", "hash-db", @@ -7975,7 +7975,7 @@ version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-trait", - "derive_more 0.99.13", + "derive_more 0.99.14", "fork-tree", "futures 0.3.15", "futures-timer 3.0.2", @@ -8021,7 +8021,7 @@ name = "sc-consensus-babe-rpc" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "futures 0.3.15", "jsonrpc-core", "jsonrpc-core-client", @@ -8099,7 +8099,7 @@ name = "sc-executor" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "lazy_static", "libsecp256k1", "log", @@ -8129,7 +8129,7 @@ name = "sc-executor-common" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "parity-scale-codec", "parity-wasm 0.41.0", "pwasm-utils", @@ -8180,7 +8180,7 @@ version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-trait", - "derive_more 0.99.13", + "derive_more 0.99.14", "dyn-clone", "finality-grandpa", "fork-tree", @@ -8219,7 +8219,7 @@ name = "sc-finality-grandpa-rpc" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "finality-grandpa", "futures 0.3.15", "jsonrpc-core", @@ -8243,7 +8243,7 @@ name = "sc-finality-grandpa-warp-sync" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "futures 0.3.15", "log", "num-traits", @@ -8283,7 +8283,7 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-trait", - "derive_more 0.99.13", + "derive_more 0.99.14", "futures 0.3.15", "futures-util", "hex", @@ -8328,7 +8328,7 @@ dependencies = [ "bs58", "bytes 1.0.1", "cid", - "derive_more 0.99.13", + "derive_more 0.99.14", "either", "erased-serde", "fnv", @@ -8475,7 +8475,7 @@ name = "sc-rpc-api" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "futures 0.3.15", "jsonrpc-core", "jsonrpc-core-client", @@ -8664,7 +8664,7 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -8674,7 +8674,7 @@ name = "sc-transaction-graph" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "futures 0.3.15", "linked-hash-map", "log", @@ -8773,7 +8773,7 @@ version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aaaae8f38bb311444cfb7f1979af0bc9240d95795f75f9ceddf6a59b79ceffa0" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -8878,7 +8878,7 @@ version = "1.0.126" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "963a7dbc9895aeac7ac90e74f34a5d5261828f79df35cbed41e10189d3804d43" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -9146,7 +9146,7 @@ dependencies = [ [[package]] name = "sp-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "hash-db", "log", @@ -9167,7 +9167,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8f dependencies = [ "blake2-rfc", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -9175,11 +9175,11 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "blake2-rfc", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -9199,7 +9199,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "parity-scale-codec", "serde", @@ -9225,7 +9225,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "integer-sqrt", "num-traits", @@ -9415,7 +9415,7 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "base58", "blake2-rfc", @@ -9470,7 +9470,7 @@ name = "sp-debug-derive" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -9478,9 +9478,9 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -9499,7 +9499,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "environmental", "parity-scale-codec", @@ -9539,7 +9539,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9577,7 +9577,7 @@ dependencies = [ [[package]] name = "sp-io" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "futures 0.3.15", "hash-db", @@ -9616,7 +9616,7 @@ version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-trait", - "derive_more 0.99.13", + "derive_more 0.99.14", "futures 0.3.15", "merlin", "parity-scale-codec", @@ -9630,10 +9630,10 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "async-trait", - "derive_more 0.99.13", + "derive_more 0.99.14", "futures 0.3.15", "merlin", "parity-scale-codec", @@ -9655,7 +9655,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "ruzstd", "zstd", @@ -9680,7 +9680,7 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -9706,7 +9706,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "backtrace", ] @@ -9744,7 +9744,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "either", "hash256-std-hasher", @@ -9782,7 +9782,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9803,7 +9803,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8f dependencies = [ "Inflector", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -9811,11 +9811,11 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "Inflector", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -9855,7 +9855,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "parity-scale-codec", "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", @@ -9887,7 +9887,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "hash-db", "log", @@ -9915,7 +9915,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8f [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" [[package]] name = "sp-storage" @@ -9933,7 +9933,7 @@ dependencies = [ [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9985,7 +9985,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "erased-serde", "log", @@ -10005,7 +10005,7 @@ name = "sp-transaction-pool" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.13", + "derive_more 0.99.14", "futures 0.3.15", "log", "parity-scale-codec", @@ -10033,7 +10033,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "hash-db", "memory-db", @@ -10071,7 +10071,7 @@ dependencies = [ [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10084,11 +10084,11 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "parity-scale-codec", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -10107,7 +10107,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10153,7 +10153,7 @@ checksum = "f2261c91034a1edc3fc4d1b80e89d82714faede0515c14a75da10cb941546bbf" dependencies = [ "cfg_aliases", "memchr", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -10224,7 +10224,7 @@ checksum = "5ba9cdfda491b814720b6b06e0cac513d922fc407582032e8706e9f137976f90" dependencies = [ "heck", "proc-macro-error", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -10245,7 +10245,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee8bc6b87a5112aeeab1f4a9f7ab634fe6cbefc4850006df31267f4cfb9e3149" dependencies = [ "heck", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -10300,7 +10300,7 @@ version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-std", - "derive_more 0.99.13", + "derive_more 0.99.14", "futures-util", "hyper 0.13.10", "log", @@ -10398,7 +10398,7 @@ version = "1.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1e8cdbefb79a9a5a65e0db8b47b723ee907b7c7f8496c76a1770b5c310bab82" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "unicode-xid 0.2.2", ] @@ -10409,7 +10409,7 @@ version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", "unicode-xid 0.2.2", @@ -10467,20 +10467,20 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e" +checksum = "fa6f76457f59514c7eeb4e59d891395fab0b2fd1d40723ae737d64153392e9c6" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0" +checksum = "8a36768c0fbf1bb15eca10defa29526bda730a2376c2ab4393ccfa16fb1a318d" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -10866,7 +10866,7 @@ version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c42e6fa53307c8a17e4ccd4dc81cf5ec38db9209f59b222210375b54ee40d1e2" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", ] @@ -10957,9 +10957,9 @@ dependencies = [ [[package]] name = "trust-dns-proto" -version = "0.20.2" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "952a078337565ba39007de99b151770f41039253a31846f0a3d5cd5a4ac8eedf" +checksum = "ad0d7f5db438199a6e2609debe3f69f808d074e0a2888ee0bccb45fe234d03f4" dependencies = [ "async-trait", "cfg-if 1.0.0", @@ -10981,9 +10981,9 @@ dependencies = [ [[package]] name = "trust-dns-resolver" -version = "0.20.2" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da9c97f7d103e0f94dbe384a57908833505ae5870126492f166821b7cf685589" +checksum = "f6ad17b608a64bd0735e67bde16b0636f8aa8591f831a25d18443ed00a699770" dependencies = [ "cfg-if 1.0.0", "futures-util", @@ -11183,18 +11183,19 @@ dependencies = [ [[package]] name = "value-bag" -version = "1.0.0-alpha.6" +version = "1.0.0-alpha.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b676010e055c99033117c2343b33a40a30b91fecd6c49055ac9cd2d6c305ab1" +checksum = "dd320e1520f94261153e96f7534476ad869c14022aee1e59af7c778075d840ae" dependencies = [ "ctor", + "version_check", ] [[package]] name = "vcpkg" -version = "0.2.12" +version = "0.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbdbff6266a24120518560b5dc983096efb98462e51d0d68169895b237be3e5d" +checksum = "025ce40a007e1907e58d5bc1a594def78e5573bb0b1160bc389634e8f12e4faa" [[package]] name = "vec_map" @@ -11283,7 +11284,7 @@ dependencies = [ "bumpalo", "lazy_static", "log", - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", "wasm-bindgen-shared", @@ -11317,7 +11318,7 @@ version = "0.2.74" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be2241542ff3d9f241f5e2cb6dd09b37efe786df8851c54957683a49f0987a97" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", "wasm-bindgen-backend", @@ -11889,7 +11890,7 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2c1e130bebaeab2f23886bf9acbaca14b092408c452543c857f66399cd6dab1" dependencies = [ - "proc-macro2 1.0.26", + "proc-macro2 1.0.27", "quote 1.0.9", "syn 1.0.72", "synstructure", diff --git a/docker/e2e.Dockerfile b/docker/e2e.Dockerfile index 4e6ba18750..5d09dc7008 100644 --- a/docker/e2e.Dockerfile +++ b/docker/e2e.Dockerfile @@ -4,8 +4,11 @@ # SPDX-License-Identifier: LGPL-3.0-only # # This Dockerfile builds the environment of e2e tests -FROM ubuntu:latest +FROM debian:buster-slim COPY launch launch +COPY --from=chainsafe/pint /usr/local/bin/pint /launch/bin +COPY --from=clearloop/rococo-v1 /usr/local/bin/polkadot /launch/bin +COPY --from=clearloop/statemint /usr/local/bin/statemint /launch/bin ENV CARGO_TERM_COLOR=always RUN apt-get update -y \ && apt-get install openssl curl git -y \ diff --git a/docker/rococo.Dockerfile b/docker/rococo.Dockerfile new file mode 100644 index 0000000000..ef0b4c56cf --- /dev/null +++ b/docker/rococo.Dockerfile @@ -0,0 +1,16 @@ +# syntax=docker/dockerfile:experimental +# +# Copyright 2021 ChainSafe Systems +# SPDX-License-Identifier: LGPL-3.0-only +# +# rococo-v1 +FROM paritytech/ci-linux:production as builder +COPY . . +ENV CARGO_TERM_COLOR=always +RUN --mount=type=cache,target=/usr/local/cargo/git \ + --mount=type=cache,target=/usr/local/cargo/registry \ + --mount=type=cache,sharing=private,target=target \ + git clone https://github.com/paritytech/polkadot.git -b rococo-v1 \ + && cd polkadot \ + && cargo build --release \ + && mv target/release/polkadot /usr/local/bin/polkadot diff --git a/docker/statemint.Dockerfile b/docker/statemint.Dockerfile new file mode 100644 index 0000000000..3b6a9347c0 --- /dev/null +++ b/docker/statemint.Dockerfile @@ -0,0 +1,16 @@ +# syntax=docker/dockerfile:experimental +# +# Copyright 2021 ChainSafe Systems +# SPDX-License-Identifier: LGPL-3.0-only +# +# statemint +FROM paritytech/ci-linux:production as builder +COPY . . +ENV CARGO_TERM_COLOR=always +RUN --mount=type=cache,target=/usr/local/cargo/git \ + --mount=type=cache,target=/usr/local/cargo/registry \ + --mount=type=cache,sharing=private,target=target \ + git clone https://github.com/paritytech/statemint.git \ + && cd statemint \ + && cargo build --release \ + && mv target/release/statemint /statemint From 1b64ca9e8edce5a33135b57511594159321f1f55 Mon Sep 17 00:00:00 2001 From: clearloop Date: Wed, 26 May 2021 20:02:47 +0800 Subject: [PATCH 08/74] ci(e2e): save binaires into scratch image --- docker/rococo.Dockerfile | 6 +++++- docker/statemint.Dockerfile | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docker/rococo.Dockerfile b/docker/rococo.Dockerfile index ef0b4c56cf..a09c2016e8 100644 --- a/docker/rococo.Dockerfile +++ b/docker/rococo.Dockerfile @@ -13,4 +13,8 @@ RUN --mount=type=cache,target=/usr/local/cargo/git \ git clone https://github.com/paritytech/polkadot.git -b rococo-v1 \ && cd polkadot \ && cargo build --release \ - && mv target/release/polkadot /usr/local/bin/polkadot + && mv target/release/polkadot /polkadot + +# Only a binary for debian +FROM scratch +COPY --from=builder /polkadot /usr/local/bin diff --git a/docker/statemint.Dockerfile b/docker/statemint.Dockerfile index 3b6a9347c0..2243b361ab 100644 --- a/docker/statemint.Dockerfile +++ b/docker/statemint.Dockerfile @@ -14,3 +14,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/git \ && cd statemint \ && cargo build --release \ && mv target/release/statemint /statemint + +# Only a binary for debian +FROM scratch +COPY --from=builder /statemint /usr/local/bin/ From cd483d6e02552970ea97b62222d2139d46f3101d Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 27 May 2021 01:34:27 +0800 Subject: [PATCH 09/74] ci(docker): fetch binaries from dockerhub --- .dockerignore | 1 + docker/e2e.Dockerfile | 6 +++--- docker/rococo.Dockerfile | 4 ++-- docker/statemint.Dockerfile | 6 +++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.dockerignore b/.dockerignore index 796d5fbe18..6475c7c836 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ /target /Dockerfile +/launch/bin \ No newline at end of file diff --git a/docker/e2e.Dockerfile b/docker/e2e.Dockerfile index 5d09dc7008..96d792e789 100644 --- a/docker/e2e.Dockerfile +++ b/docker/e2e.Dockerfile @@ -6,9 +6,9 @@ # This Dockerfile builds the environment of e2e tests FROM debian:buster-slim COPY launch launch -COPY --from=chainsafe/pint /usr/local/bin/pint /launch/bin -COPY --from=clearloop/rococo-v1 /usr/local/bin/polkadot /launch/bin -COPY --from=clearloop/statemint /usr/local/bin/statemint /launch/bin +COPY --from=chainsafe/pint /usr/local/bin/pint /launch/bin/ +COPY --from=clearloop/rococo-v1 /polkadot /launch/bin/ +COPY --from=clearloop/statemint /statemint /launch/bin/ ENV CARGO_TERM_COLOR=always RUN apt-get update -y \ && apt-get install openssl curl git -y \ diff --git a/docker/rococo.Dockerfile b/docker/rococo.Dockerfile index a09c2016e8..abe1ca8441 100644 --- a/docker/rococo.Dockerfile +++ b/docker/rococo.Dockerfile @@ -10,11 +10,11 @@ ENV CARGO_TERM_COLOR=always RUN --mount=type=cache,target=/usr/local/cargo/git \ --mount=type=cache,target=/usr/local/cargo/registry \ --mount=type=cache,sharing=private,target=target \ - git clone https://github.com/paritytech/polkadot.git -b rococo-v1 \ + git clone https://github.com/paritytech/polkadot.git -b rococo-v1 --depth=1 \ && cd polkadot \ && cargo build --release \ && mv target/release/polkadot /polkadot # Only a binary for debian FROM scratch -COPY --from=builder /polkadot /usr/local/bin +COPY --from=builder /polkadot / diff --git a/docker/statemint.Dockerfile b/docker/statemint.Dockerfile index 2243b361ab..ae43ba8e5f 100644 --- a/docker/statemint.Dockerfile +++ b/docker/statemint.Dockerfile @@ -10,11 +10,11 @@ ENV CARGO_TERM_COLOR=always RUN --mount=type=cache,target=/usr/local/cargo/git \ --mount=type=cache,target=/usr/local/cargo/registry \ --mount=type=cache,sharing=private,target=target \ - git clone https://github.com/paritytech/statemint.git \ + git clone https://github.com/paritytech/statemint.git --depth=1 \ && cd statemint \ && cargo build --release \ - && mv target/release/statemint /statemint + && mv target/release/statemilnt /statemint # Only a binary for debian FROM scratch -COPY --from=builder /statemint /usr/local/bin/ +COPY --from=builder /statemint / From a9b081c98fb8834875a0b38f3e4960a4dbfc66c5 Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 27 May 2021 11:16:30 +0800 Subject: [PATCH 10/74] ci(e2e): build e2e image in CI --- .circleci/config.yml | 12 +++++++++ Cargo.lock | 62 ++++++++++++++++++++++---------------------- 2 files changed, 43 insertions(+), 31 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 72e5d41b1c..d4837c3c34 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -141,6 +141,18 @@ jobs: root: . paths: - ./image.tar + docker-run-e2e: + executor: test-executor + description: Build and run e2e tests + steps: + - attach_workspace: + at: /tmp/workspace + - run: + name: Load Archived Docker Image + command: docker load -i /tmp/workspace/image.tar + - run: + name: Build e2e Image + command: docker build -f docker/e2e.Dockerfile -t e2e . docker-publish-latest: executor: test-executor description: Publish latest Docker Image diff --git a/Cargo.lock b/Cargo.lock index c5fe6431b8..bfccc58eea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2012,7 +2012,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git)", @@ -2093,7 +2093,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "13.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "parity-scale-codec", "serde", @@ -2130,7 +2130,7 @@ dependencies = [ [[package]] name = "frame-support" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "bitflags", "frame-metadata 13.0.0 (git+https://github.com/paritytech/substrate.git)", @@ -2168,7 +2168,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "Inflector", "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git)", @@ -2192,7 +2192,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", "proc-macro-crate 1.0.0", @@ -2214,7 +2214,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "proc-macro2 1.0.27", "quote 1.0.9", @@ -2241,7 +2241,7 @@ dependencies = [ [[package]] name = "frame-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", "impl-trait-for-tuples", @@ -9146,7 +9146,7 @@ dependencies = [ [[package]] name = "sp-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "hash-db", "log", @@ -9175,7 +9175,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "blake2-rfc", "proc-macro-crate 1.0.0", @@ -9199,7 +9199,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "parity-scale-codec", "serde", @@ -9225,7 +9225,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "integer-sqrt", "num-traits", @@ -9415,7 +9415,7 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "base58", "blake2-rfc", @@ -9478,7 +9478,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "proc-macro2 1.0.27", "quote 1.0.9", @@ -9499,7 +9499,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "environmental", "parity-scale-codec", @@ -9539,7 +9539,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9577,7 +9577,7 @@ dependencies = [ [[package]] name = "sp-io" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "futures 0.3.15", "hash-db", @@ -9630,7 +9630,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "async-trait", "derive_more 0.99.14", @@ -9655,7 +9655,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "ruzstd", "zstd", @@ -9706,7 +9706,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "backtrace", ] @@ -9744,7 +9744,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "either", "hash256-std-hasher", @@ -9782,7 +9782,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9811,7 +9811,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "Inflector", "proc-macro-crate 1.0.0", @@ -9855,7 +9855,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "parity-scale-codec", "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", @@ -9887,7 +9887,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "hash-db", "log", @@ -9915,7 +9915,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8f [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" [[package]] name = "sp-storage" @@ -9933,7 +9933,7 @@ dependencies = [ [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9985,7 +9985,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "erased-serde", "log", @@ -10033,7 +10033,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "hash-db", "memory-db", @@ -10071,7 +10071,7 @@ dependencies = [ [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10084,7 +10084,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "parity-scale-codec", "proc-macro-crate 1.0.0", @@ -10107,7 +10107,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#cb308ac8d289b3089560a61a2bb6b6093af26f53" +source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", From 640fad80cae296f53e670475f8dca2293ecca0b9 Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 27 May 2021 11:18:21 +0800 Subject: [PATCH 11/74] ci(e2e): add e2e to workflow jobs --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index d4837c3c34..8c1effc617 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -196,6 +196,9 @@ workflows: docker: jobs: - docker-build-release + - docker-run-e2e: + requires: + - docker-build-release - docker-publish-latest: requires: - docker-build-release From 72609b8839e70383920af2e8b2a0eae8846440b5 Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 27 May 2021 11:49:31 +0800 Subject: [PATCH 12/74] feat(e2e): init javascript workspace --- .dockerignore | 2 +- .gitignore | 2 +- e2e/index.ts | 4 +- e2e/package.json | 1 + e2e/src/cmd.ts | 21 -- e2e/src/pint.ts | 55 ---- package.json | 4 + yarn.lock | 815 +++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 823 insertions(+), 81 deletions(-) delete mode 100644 e2e/src/cmd.ts delete mode 100644 e2e/src/pint.ts create mode 100644 package.json create mode 100644 yarn.lock diff --git a/.dockerignore b/.dockerignore index 6475c7c836..609598f7f7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,3 @@ /target /Dockerfile -/launch/bin \ No newline at end of file +/launch/bin diff --git a/.gitignore b/.gitignore index f3d1a8288c..22ead761b1 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,4 @@ node_modules # Binaries for launching PINT with polkadot launch/bin -local-test \ No newline at end of file +local-test diff --git a/e2e/index.ts b/e2e/index.ts index 20c7d33512..baaa62f372 100644 --- a/e2e/index.ts +++ b/e2e/index.ts @@ -1,5 +1,3 @@ -import cmd from "./src/cmd"; - (() => { - cmd(); + console.log("hello"); })(); diff --git a/e2e/package.json b/e2e/package.json index dac65c0644..09816a9459 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -15,6 +15,7 @@ }, "dependencies": { "@polkadot/api": "^4.10.1", + "@pint/types": "^1", "yargs": "^17.0.1" } } diff --git a/e2e/src/cmd.ts b/e2e/src/cmd.ts deleted file mode 100644 index d8ffa41c6b..0000000000 --- a/e2e/src/cmd.ts +++ /dev/null @@ -1,21 +0,0 @@ -import yargs from "yargs/yargs"; -import { hideBin } from "yargs/helpers"; - -/** - * command entry - */ -const main = () => { - const _ = yargs(hideBin(process.argv)) - .command({ - command: "run", - describe: "run E2E tests", - handler: () => { - console.log("Run e2e tests"); - }, - }) - .help() - .demandCommand(1, "You need at least one command before moving on").argv; -}; - -// exports -export default main; diff --git a/e2e/src/pint.ts b/e2e/src/pint.ts deleted file mode 100644 index 5c8c762172..0000000000 --- a/e2e/src/pint.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Run pint binary -import path from "path"; -import fs from "fs"; - -/** - * PINT process - * - * ENV ARGS (default "--dev --ws-port 3055") - * ENV PINT (default "../target/release/pint") - * ENV WS_PORT (default 3055) - */ -class PINT { - private _args: string[]; - private path: string; - private wsPort: number; - - /** - * Check init PINT binary - */ - constructor( - defaultPath: string = path.resolve(__filename, "../target/release/pint"), - defaultWsPort: number = 3055, - defaultArgs: string[] = ["--dev"] - ) { - const _path = process.env.PINT ? process.env.PINT : defaultPath; - const _ws_port = - process.env.WS_PORT && Number(process.env.PINT) !== NaN - ? Number(process.env.PINT) - : defaultWsPort; - - // Check if binary exists - try { - if (fs.existsSync(_path)) { - this.path = _path; - this.wsPort = _ws_port; - } - } catch (err) { - console.error(err); - process.exit(1); - } - } - - /** - * Build arguments - */ - private build() {} - - /** - * Reset arguments, run PINT binary as your wish. - */ - public args(args: string[]): PINT { - this._args = args; - return this; - } -} diff --git a/package.json b/package.json new file mode 100644 index 0000000000..5fef3b426a --- /dev/null +++ b/package.json @@ -0,0 +1,4 @@ +{ + "private": true, + "workspaces": ["pint-types-bundle", "e2e"] +} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000000..e8dd96c07a --- /dev/null +++ b/yarn.lock @@ -0,0 +1,815 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@babel/runtime@^7.13.9", "@babel/runtime@^7.14.0": + version "7.14.0" + resolved "https://registry.nlark.com/@babel/runtime/download/@babel/runtime-7.14.0.tgz?cache=0&sync_timestamp=1619727501090&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.14.0.tgz#46794bc20b612c5f75e62dd071e24dfd95f1cbe6" + integrity sha1-RnlLwgthLF915i3QceJN/ZXxy+Y= + dependencies: + regenerator-runtime "^0.13.4" + +"@polkadot/api-derive@4.11.2": + version "4.11.2" + resolved "https://registry.nlark.com/@polkadot/api-derive/download/@polkadot/api-derive-4.11.2.tgz#e462a30e82319c83e91369ebb9a952c16bfc50db" + integrity sha1-5GKjDoIxnIPpE2nrualSwWv8UNs= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/api" "4.11.2" + "@polkadot/rpc-core" "4.11.2" + "@polkadot/types" "4.11.2" + "@polkadot/util" "^6.5.1" + "@polkadot/util-crypto" "^6.5.1" + "@polkadot/x-rxjs" "^6.5.1" + bn.js "^4.11.9" + +"@polkadot/api@4.11.2", "@polkadot/api@^4.10.1": + version "4.11.2" + resolved "https://registry.nlark.com/@polkadot/api/download/@polkadot/api-4.11.2.tgz#5d531fbc30f5b0315e329f71052b9abf8c8952a0" + integrity sha1-XVMfvDD1sDFeMp9xBSuav4yJUqA= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/api-derive" "4.11.2" + "@polkadot/keyring" "^6.5.1" + "@polkadot/metadata" "4.11.2" + "@polkadot/rpc-core" "4.11.2" + "@polkadot/rpc-provider" "4.11.2" + "@polkadot/types" "4.11.2" + "@polkadot/types-known" "4.11.2" + "@polkadot/util" "^6.5.1" + "@polkadot/util-crypto" "^6.5.1" + "@polkadot/x-rxjs" "^6.5.1" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + +"@polkadot/keyring@^6.3.1", "@polkadot/keyring@^6.5.1": + version "6.5.1" + resolved "https://registry.nlark.com/@polkadot/keyring/download/@polkadot/keyring-6.5.1.tgz?cache=0&sync_timestamp=1622018571337&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Fkeyring%2Fdownload%2F%40polkadot%2Fkeyring-6.5.1.tgz#6ef650514cf7a890bd1e04ad793574ed4354d2ff" + integrity sha1-bvZQUUz3qJC9HgSteTV07UNU0v8= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/util" "6.5.1" + "@polkadot/util-crypto" "6.5.1" + +"@polkadot/metadata@4.11.2": + version "4.11.2" + resolved "https://registry.nlark.com/@polkadot/metadata/download/@polkadot/metadata-4.11.2.tgz#eacf7e1a720a4b32e48e0f295d0fb7e0099d75d2" + integrity sha1-6s9+GnIKSzLkjg8pXQ+34AmdddI= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.11.2" + "@polkadot/types-known" "4.11.2" + "@polkadot/util" "^6.5.1" + "@polkadot/util-crypto" "^6.5.1" + bn.js "^4.11.9" + +"@polkadot/networks@6.5.1", "@polkadot/networks@^6.5.1": + version "6.5.1" + resolved "https://registry.nlark.com/@polkadot/networks/download/@polkadot/networks-6.5.1.tgz?cache=0&sync_timestamp=1622018560012&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Fnetworks%2Fdownload%2F%40polkadot%2Fnetworks-6.5.1.tgz#97c29922a924286919927149f5ba869026d07a53" + integrity sha1-l8KZIqkkKGkZknFJ9bqGkCbQelM= + dependencies: + "@babel/runtime" "^7.14.0" + +"@polkadot/rpc-core@4.11.2": + version "4.11.2" + resolved "https://registry.nlark.com/@polkadot/rpc-core/download/@polkadot/rpc-core-4.11.2.tgz#b59112874d6dfd162fc93ec4f32f7a1962bfce71" + integrity sha1-tZESh01t/RYvyT7E8y96GWK/znE= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.11.2" + "@polkadot/rpc-provider" "4.11.2" + "@polkadot/types" "4.11.2" + "@polkadot/util" "^6.5.1" + "@polkadot/x-rxjs" "^6.5.1" + +"@polkadot/rpc-provider@4.11.2": + version "4.11.2" + resolved "https://registry.nlark.com/@polkadot/rpc-provider/download/@polkadot/rpc-provider-4.11.2.tgz#6f214d55ff2d39a9b625ccef8ed7bff9d12a9048" + integrity sha1-byFNVf8tOam2Jczvjte/+dEqkEg= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.11.2" + "@polkadot/util" "^6.5.1" + "@polkadot/util-crypto" "^6.5.1" + "@polkadot/x-fetch" "^6.5.1" + "@polkadot/x-global" "^6.5.1" + "@polkadot/x-ws" "^6.5.1" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + +"@polkadot/types-known@4.11.2": + version "4.11.2" + resolved "https://registry.nlark.com/@polkadot/types-known/download/@polkadot/types-known-4.11.2.tgz#098b8d730dd353ade79fa8ffab8b7ff60ba247d8" + integrity sha1-CYuNcw3TU63nn6j/q4t/9guiR9g= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "^6.5.1" + "@polkadot/types" "4.11.2" + "@polkadot/util" "^6.5.1" + bn.js "^4.11.9" + +"@polkadot/types@4.11.2", "@polkadot/types@^4.7.2": + version "4.11.2" + resolved "https://registry.nlark.com/@polkadot/types/download/@polkadot/types-4.11.2.tgz#1067ec8dfd908fb434d29c44064a72409c4d5557" + integrity sha1-EGfsjf2Qj7Q00pxEBkpyQJxNVVc= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.11.2" + "@polkadot/util" "^6.5.1" + "@polkadot/util-crypto" "^6.5.1" + "@polkadot/x-rxjs" "^6.5.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + +"@polkadot/util-crypto@6.5.1", "@polkadot/util-crypto@^6.5.1": + version "6.5.1" + resolved "https://registry.nlark.com/@polkadot/util-crypto/download/@polkadot/util-crypto-6.5.1.tgz?cache=0&sync_timestamp=1622018598648&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Futil-crypto%2Fdownload%2F%40polkadot%2Futil-crypto-6.5.1.tgz#d0b63eaa2372665fd2b0610c36444962bc751b68" + integrity sha1-0LY+qiNyZl/SsGEMNkRJYrx1G2g= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "6.5.1" + "@polkadot/util" "6.5.1" + "@polkadot/wasm-crypto" "^4.0.2" + "@polkadot/x-randomvalues" "6.5.1" + base-x "^3.0.8" + base64-js "^1.5.1" + blakejs "^1.1.0" + bn.js "^4.11.9" + create-hash "^1.2.0" + elliptic "^6.5.4" + hash.js "^1.1.7" + js-sha3 "^0.8.0" + scryptsy "^2.1.0" + tweetnacl "^1.0.3" + xxhashjs "^0.2.2" + +"@polkadot/util@6.5.1", "@polkadot/util@^6.5.1": + version "6.5.1" + resolved "https://registry.nlark.com/@polkadot/util/download/@polkadot/util-6.5.1.tgz#27f75c53df9e990ed37c2edf7aab87ac1a63afb5" + integrity sha1-J/dcU9+emQ7TfC7fequHrBpjr7U= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-textdecoder" "6.5.1" + "@polkadot/x-textencoder" "6.5.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + camelcase "^5.3.1" + ip-regex "^4.3.0" + +"@polkadot/wasm-crypto-asmjs@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto-asmjs/download/@polkadot/wasm-crypto-asmjs-4.0.2.tgz#f42c353a64e1243841daf90e4bd54eff01a4e3cf" + integrity sha1-9Cw1OmThJDhB2vkOS9VO/wGk488= + dependencies: + "@babel/runtime" "^7.13.9" + +"@polkadot/wasm-crypto-wasm@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto-wasm/download/@polkadot/wasm-crypto-wasm-4.0.2.tgz#89f9e0a1e4d076784d4a42bea37fc8b06bdd8bb6" + integrity sha1-ifngoeTQdnhNSkK+o3/IsGvdi7Y= + dependencies: + "@babel/runtime" "^7.13.9" + +"@polkadot/wasm-crypto@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto/download/@polkadot/wasm-crypto-4.0.2.tgz#9649057adee8383cc86433d107ba526b718c5a3b" + integrity sha1-lkkFet7oODzIZDPRB7pSa3GMWjs= + dependencies: + "@babel/runtime" "^7.13.9" + "@polkadot/wasm-crypto-asmjs" "^4.0.2" + "@polkadot/wasm-crypto-wasm" "^4.0.2" + +"@polkadot/x-fetch@^6.5.1": + version "6.5.1" + resolved "https://registry.nlark.com/@polkadot/x-fetch/download/@polkadot/x-fetch-6.5.1.tgz#94dec3e81637b55a1270d7bf7bd4cdc0ae22ad08" + integrity sha1-lN7D6BY3tVoScNe/e9TNwK4irQg= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.5.1" + "@types/node-fetch" "^2.5.10" + node-fetch "^2.6.1" + +"@polkadot/x-global@6.5.1", "@polkadot/x-global@^6.5.1": + version "6.5.1" + resolved "https://registry.nlark.com/@polkadot/x-global/download/@polkadot/x-global-6.5.1.tgz?cache=0&sync_timestamp=1622018585800&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Fx-global%2Fdownload%2F%40polkadot%2Fx-global-6.5.1.tgz#cdc42c200cd0182845284d237c3cd55fbf89898d" + integrity sha1-zcQsIAzQGChFKE0jfDzVX7+JiY0= + dependencies: + "@babel/runtime" "^7.14.0" + "@types/node-fetch" "^2.5.10" + node-fetch "^2.6.1" + +"@polkadot/x-randomvalues@6.5.1": + version "6.5.1" + resolved "https://registry.nlark.com/@polkadot/x-randomvalues/download/@polkadot/x-randomvalues-6.5.1.tgz#e04fb8f149ee1b6921e668ed22b5d65c0dfce8f2" + integrity sha1-4E+48UnuG2kh5mjtIrXWXA386PI= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.5.1" + +"@polkadot/x-rxjs@^6.5.1": + version "6.5.1" + resolved "https://registry.nlark.com/@polkadot/x-rxjs/download/@polkadot/x-rxjs-6.5.1.tgz?cache=0&sync_timestamp=1622018605319&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Fx-rxjs%2Fdownload%2F%40polkadot%2Fx-rxjs-6.5.1.tgz#4a4e3a6743bf15cc086edc57b4ee4d800274c073" + integrity sha1-Sk46Z0O/FcwIbtxXtO5NgAJ0wHM= + dependencies: + "@babel/runtime" "^7.14.0" + rxjs "^6.6.7" + +"@polkadot/x-textdecoder@6.5.1": + version "6.5.1" + resolved "https://registry.nlark.com/@polkadot/x-textdecoder/download/@polkadot/x-textdecoder-6.5.1.tgz#430f9fa5e4f348effb0fb5b793fef49ae97a361a" + integrity sha1-Qw+fpeTzSO/7D7W3k/70mul6Nho= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.5.1" + +"@polkadot/x-textencoder@6.5.1": + version "6.5.1" + resolved "https://registry.nlark.com/@polkadot/x-textencoder/download/@polkadot/x-textencoder-6.5.1.tgz#06c66f0c5a1857d22729cebc9d72b4e404a81bf2" + integrity sha1-BsZvDFoYV9InKc68nXK05ASoG/I= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.5.1" + +"@polkadot/x-ws@^6.5.1": + version "6.5.1" + resolved "https://registry.nlark.com/@polkadot/x-ws/download/@polkadot/x-ws-6.5.1.tgz?cache=0&sync_timestamp=1622018605001&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Fx-ws%2Fdownload%2F%40polkadot%2Fx-ws-6.5.1.tgz#662076ee835108381e83b7f6b1da3e8c60d27a70" + integrity sha1-ZiB27oNRCDgeg7f2sdo+jGDSenA= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.5.1" + "@types/websocket" "^1.0.2" + websocket "^1.0.34" + +"@types/bn.js@^4.11.6": + version "4.11.6" + resolved "https://registry.nlark.com/@types/bn.js/download/@types/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c" + integrity sha1-wwbHDZNYquozzU7aCSp0K5UFlnw= + dependencies: + "@types/node" "*" + +"@types/node-fetch@^2.5.10": + version "2.5.10" + resolved "https://registry.nlark.com/@types/node-fetch/download/@types/node-fetch-2.5.10.tgz#9b4d4a0425562f9fcea70b12cb3fcdd946ca8132" + integrity sha1-m01KBCVWL5/OpwsSyz/N2UbKgTI= + dependencies: + "@types/node" "*" + form-data "^3.0.0" + +"@types/node@*", "@types/node@^15.3.1": + version "15.6.1" + resolved "https://registry.nlark.com/@types/node/download/@types/node-15.6.1.tgz#32d43390d5c62c5b6ec486a9bc9c59544de39a08" + integrity sha1-MtQzkNXGLFtuxIapvJxZVE3jmgg= + +"@types/websocket@^1.0.2": + version "1.0.2" + resolved "https://registry.nlark.com/@types/websocket/download/@types/websocket-1.0.2.tgz?cache=0&sync_timestamp=1621244924715&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fwebsocket%2Fdownload%2F%40types%2Fwebsocket-1.0.2.tgz#d2855c6a312b7da73ed16ba6781815bf30c6187a" + integrity sha1-0oVcajErfac+0WumeBgVvzDGGHo= + dependencies: + "@types/node" "*" + +"@types/yargs-parser@*": + version "20.2.0" + resolved "https://registry.nlark.com/@types/yargs-parser/download/@types/yargs-parser-20.2.0.tgz?cache=0&sync_timestamp=1621243984050&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fyargs-parser%2Fdownload%2F%40types%2Fyargs-parser-20.2.0.tgz#dd3e6699ba3237f0348cd085e4698780204842f9" + integrity sha1-3T5mmboyN/A0jNCF5GmHgCBIQvk= + +"@types/yargs@^16.0.2": + version "16.0.3" + resolved "https://registry.nlark.com/@types/yargs/download/@types/yargs-16.0.3.tgz#4b6d35bb8e680510a7dc2308518a80ee1ef27e01" + integrity sha1-S201u45oBRCn3CMIUYqA7h7yfgE= + dependencies: + "@types/yargs-parser" "*" + +ansi-regex@^5.0.0: + version "5.0.0" + resolved "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz?cache=0&sync_timestamp=1618553044693&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" + integrity sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U= + +ansi-styles@^4.0.0: + version "4.3.0" + resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= + dependencies: + color-convert "^2.0.1" + +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npm.taobao.org/arg/download/arg-4.1.3.tgz?cache=0&sync_timestamp=1605576950209&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Farg%2Fdownload%2Farg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk= + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.npm.taobao.org/asynckit/download/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +base-x@^3.0.8: + version "3.0.8" + resolved "https://registry.npm.taobao.org/base-x/download/base-x-3.0.8.tgz#1e1106c2537f0162e8b52474a557ebb09000018d" + integrity sha1-HhEGwlN/AWLotSR0pVfrsJAAAY0= + dependencies: + safe-buffer "^5.0.1" + +base64-js@^1.5.1: + version "1.5.1" + resolved "https://registry.nlark.com/base64-js/download/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha1-GxtEAWClv3rUC2UPCVljSBkDkwo= + +blakejs@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/blakejs/download/blakejs-1.1.0.tgz#69df92ef953aa88ca51a32df6ab1c54a155fc7a5" + integrity sha1-ad+S75U6qIylGjLfarHFShVfx6U= + +bn.js@^4.11.9: + version "4.12.0" + resolved "https://registry.npm.taobao.org/bn.js/download/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" + integrity sha1-d1s/J477uXGO7HNh9IP7Nvu/6og= + +brorand@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/brorand/download/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= + +buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.nlark.com/buffer-from/download/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + integrity sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8= + +bufferutil@^4.0.1: + version "4.0.3" + resolved "https://registry.npm.taobao.org/bufferutil/download/bufferutil-4.0.3.tgz?cache=0&sync_timestamp=1609618802475&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbufferutil%2Fdownload%2Fbufferutil-4.0.3.tgz#66724b756bed23cd7c28c4d306d7994f9943cc6b" + integrity sha1-ZnJLdWvtI818KMTTBteZT5lDzGs= + dependencies: + node-gyp-build "^4.2.0" + +camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA= + +cipher-base@^1.0.1: + version "1.0.4" + resolved "https://registry.nlark.com/cipher-base/download/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" + integrity sha1-h2Dk7MJy9MNjUy+SbYdKriwTl94= + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.nlark.com/cliui/download/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08= + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.nlark.com/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.nlark.com/combined-stream/download/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha1-w9RaizT9cwYxoRCoolIGgrMdWn8= + dependencies: + delayed-stream "~1.0.0" + +create-hash@^1.2.0: + version "1.2.0" + resolved "https://registry.nlark.com/create-hash/download/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + integrity sha1-iJB4rxGmN1a8+1m9IhmWvjqe8ZY= + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.npm.taobao.org/create-require/download/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha1-wdfo8eX2z8n/ZfnNNS03NIdWwzM= + +cuint@^0.2.2: + version "0.2.2" + resolved "https://registry.nlark.com/cuint/download/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b" + integrity sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs= + +d@1, d@^1.0.1: + version "1.0.1" + resolved "https://registry.npm.taobao.org/d/download/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" + integrity sha1-hpgJU3LVjb7jRv/Qxwk/mfj561o= + dependencies: + es5-ext "^0.10.50" + type "^1.0.1" + +debug@^2.2.0: + version "2.6.9" + resolved "https://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz?cache=0&sync_timestamp=1614330710870&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8= + dependencies: + ms "2.0.0" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.nlark.com/delayed-stream/download/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npm.taobao.org/diff/download/diff-4.0.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdiff%2Fdownload%2Fdiff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha1-YPOuy4nV+uUgwRqhnvwruYKq3n0= + +elliptic@^6.5.4: + version "6.5.4" + resolved "https://registry.nlark.com/elliptic/download/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" + integrity sha1-2jfOvTHnmhNn6UG1ku0fvr1Yq7s= + dependencies: + bn.js "^4.11.9" + brorand "^1.1.0" + hash.js "^1.0.0" + hmac-drbg "^1.0.1" + inherits "^2.0.4" + minimalistic-assert "^1.0.1" + minimalistic-crypto-utils "^1.0.1" + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.nlark.com/emoji-regex/download/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc= + +es5-ext@^0.10.35, es5-ext@^0.10.50: + version "0.10.53" + resolved "https://registry.npm.taobao.org/es5-ext/download/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1" + integrity sha1-k8WjrP2+8nUiCtcmRK0C7hg2jeE= + dependencies: + es6-iterator "~2.0.3" + es6-symbol "~3.1.3" + next-tick "~1.0.0" + +es6-iterator@~2.0.3: + version "2.0.3" + resolved "https://registry.nlark.com/es6-iterator/download/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" + integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c= + dependencies: + d "1" + es5-ext "^0.10.35" + es6-symbol "^3.1.1" + +es6-symbol@^3.1.1, es6-symbol@~3.1.3: + version "3.1.3" + resolved "https://registry.npm.taobao.org/es6-symbol/download/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" + integrity sha1-utXTwbzawoJp9MszHkMceKxwXRg= + dependencies: + d "^1.0.1" + ext "^1.1.2" + +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA= + +eventemitter3@^4.0.7: + version "4.0.7" + resolved "https://registry.npm.taobao.org/eventemitter3/download/eventemitter3-4.0.7.tgz?cache=0&sync_timestamp=1598517819668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feventemitter3%2Fdownload%2Feventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha1-Lem2j2Uo1WRO9cWVJqG0oHMGFp8= + +ext@^1.1.2: + version "1.4.0" + resolved "https://registry.npm.taobao.org/ext/download/ext-1.4.0.tgz#89ae7a07158f79d35517882904324077e4379244" + integrity sha1-ia56BxWPedNVF4gpBDJAd+Q3kkQ= + dependencies: + type "^2.0.0" + +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.nlark.com/form-data/download/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" + integrity sha1-69U3kbeDVqma+aMA1CgsTV65dV8= + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= + +hash-base@^3.0.0: + version "3.1.0" + resolved "https://registry.npm.taobao.org/hash-base/download/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" + integrity sha1-VcOB2eBuHSmXqIO0o/3f5/DTrzM= + dependencies: + inherits "^2.0.4" + readable-stream "^3.6.0" + safe-buffer "^5.2.0" + +hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7: + version "1.1.7" + resolved "https://registry.npm.taobao.org/hash.js/download/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" + integrity sha1-C6vKU46NTuSg+JiNaIZlN6ADz0I= + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.1" + +hmac-drbg@^1.0.1: + version "1.0.1" + resolved "https://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: + version "2.0.4" + resolved "https://registry.nlark.com/inherits/download/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w= + +ip-regex@^4.3.0: + version "4.3.0" + resolved "https://registry.nlark.com/ip-regex/download/ip-regex-4.3.0.tgz?cache=0&sync_timestamp=1618846943469&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fip-regex%2Fdownload%2Fip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" + integrity sha1-aHJ1qw9X+naXj/j03dyKI9WZDbU= + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.nlark.com/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0= + +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.npm.taobao.org/is-typedarray/download/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +js-sha3@^0.8.0: + version "0.8.0" + resolved "https://registry.npm.taobao.org/js-sha3/download/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" + integrity sha1-ubel2nOvrX3t0PjEY5VMveaBiEA= + +make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha1-LrLjfqm2fEiR9oShOUeZr0hM96I= + +md5.js@^1.3.4: + version "1.3.5" + resolved "https://registry.npm.taobao.org/md5.js/download/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" + integrity sha1-tdB7jjIW4+J81yjXL3DR5qNCAF8= + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +mime-db@1.47.0: + version "1.47.0" + resolved "https://registry.npm.taobao.org/mime-db/download/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" + integrity sha1-jLMT5Zll08Bc+/iYkVomevRqM1w= + +mime-types@^2.1.12: + version "2.1.30" + resolved "https://registry.npm.taobao.org/mime-types/download/mime-types-2.1.30.tgz?cache=0&sync_timestamp=1617340140598&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-types%2Fdownload%2Fmime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" + integrity sha1-bnvotMR5gl+F7WMmaV23P5MF1i0= + dependencies: + mime-db "1.47.0" + +minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.nlark.com/minimalistic-assert/download/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha1-LhlN4ERibUoQ5/f7wAznPoPk1cc= + +minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.nlark.com/minimalistic-crypto-utils/download/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&sync_timestamp=1607433899126&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + +next-tick@~1.0.0: + version "1.0.0" + resolved "https://registry.npm.taobao.org/next-tick/download/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" + integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= + +node-fetch@^2.6.1: + version "2.6.1" + resolved "https://registry.nlark.com/node-fetch/download/node-fetch-2.6.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fnode-fetch%2Fdownload%2Fnode-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" + integrity sha1-BFvTI2Mfdu0uK1VXM5RBa2OaAFI= + +node-gyp-build@^4.2.0: + version "4.2.3" + resolved "https://registry.npm.taobao.org/node-gyp-build/download/node-gyp-build-4.2.3.tgz#ce6277f853835f718829efb47db20f3e4d9c4739" + integrity sha1-zmJ3+FODX3GIKe+0fbIPPk2cRzk= + +readable-stream@^3.6.0: + version "3.6.0" + resolved "https://registry.nlark.com/readable-stream/download/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha1-M3u9o63AcGvT4CRCaihtS0sskZg= + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +regenerator-runtime@^0.13.4: + version "0.13.7" + resolved "https://registry.nlark.com/regenerator-runtime/download/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" + integrity sha1-ysLazIoepnX+qrrriugziYrkb1U= + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.nlark.com/require-directory/download/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +ripemd160@^2.0.1: + version "2.0.2" + resolved "https://registry.npm.taobao.org/ripemd160/download/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + integrity sha1-ocGm9iR1FXe6XQeRTLyShQWFiQw= + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +rxjs@^6.6.7: + version "6.6.7" + resolved "https://registry.nlark.com/rxjs/download/rxjs-6.6.7.tgz?cache=0&sync_timestamp=1621619391474&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frxjs%2Fdownload%2Frxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" + integrity sha1-kKwBisq/SRv2UEQjXVhjxNq4BMk= + dependencies: + tslib "^1.9.0" + +safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.nlark.com/safe-buffer/download/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY= + +scryptsy@^2.1.0: + version "2.1.0" + resolved "https://registry.npm.taobao.org/scryptsy/download/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" + integrity sha1-jR6NDAJbWP3SW2+poNyQXuj6p5A= + +sha.js@^2.4.0: + version "2.4.11" + resolved "https://registry.npm.taobao.org/sha.js/download/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + integrity sha1-N6XPC4HsvGlD3hCbopYNGyZYSuc= + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npm.taobao.org/source-map-support/download/source-map-support-0.5.19.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map-support%2Fdownload%2Fsource-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha1-qYti+G3K9PZzmWSMCFKRq56P7WE= + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0: + version "0.6.1" + resolved "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha1-dHIq8y6WFOnCh6jQu95IteLxomM= + +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.2" + resolved "https://registry.nlark.com/string-width/download/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" + integrity sha1-2v1PlVmnWFz7pSnGoKT3NIjr1MU= + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.nlark.com/string_decoder/download/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha1-QvEUWUpGzxqOMLCoT1bHjD7awh4= + dependencies: + safe-buffer "~5.2.0" + +strip-ansi@^6.0.0: + version "6.0.0" + resolved "https://registry.nlark.com/strip-ansi/download/strip-ansi-6.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" + integrity sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI= + dependencies: + ansi-regex "^5.0.0" + +ts-node@^9.1.1: + version "9.1.1" + resolved "https://registry.nlark.com/ts-node/download/ts-node-9.1.1.tgz?cache=0&sync_timestamp=1621798304685&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fts-node%2Fdownload%2Fts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" + integrity sha1-UamkUKPpWUAb2l8ASnLVS5NtN20= + dependencies: + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + source-map-support "^0.5.17" + yn "3.1.1" + +tslib@^1.9.0: + version "1.14.1" + resolved "https://registry.nlark.com/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1618847097275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA= + +tweetnacl@^1.0.3: + version "1.0.3" + resolved "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" + integrity sha1-rAr3FoBFjYpjeNDQ0FCrFAfTVZY= + +type@^1.0.1: + version "1.2.0" + resolved "https://registry.npm.taobao.org/type/download/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" + integrity sha1-hI3XaY2vo+VKbEeedZxLw/GIR6A= + +type@^2.0.0: + version "2.5.0" + resolved "https://registry.npm.taobao.org/type/download/type-2.5.0.tgz#0a2e78c2e77907b252abe5f298c1b01c63f0db3d" + integrity sha1-Ci54wud5B7JSq+XymMGwHGPw2z0= + +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.npm.taobao.org/typedarray-to-buffer/download/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha1-qX7nqf9CaRufeD/xvFES/j/KkIA= + dependencies: + is-typedarray "^1.0.0" + +typescript@^4.2.4: + version "4.3.2" + resolved "https://registry.nlark.com/typescript/download/typescript-4.3.2.tgz?cache=0&sync_timestamp=1622050396175&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftypescript%2Fdownload%2Ftypescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805" + integrity sha1-OZqxiqxFgC1vJJjeUFT8u+cWqAU= + +utf-8-validate@^5.0.2: + version "5.0.5" + resolved "https://registry.nlark.com/utf-8-validate/download/utf-8-validate-5.0.5.tgz?cache=0&sync_timestamp=1620067993025&other_urls=https%3A%2F%2Fregistry.nlark.com%2Futf-8-validate%2Fdownload%2Futf-8-validate-5.0.5.tgz#dd32c2e82c72002dc9f02eb67ba6761f43456ca1" + integrity sha1-3TLC6CxyAC3J8C62e6Z2H0NFbKE= + dependencies: + node-gyp-build "^4.2.0" + +util-deprecate@^1.0.1: + version "1.0.2" + resolved "https://registry.npm.taobao.org/util-deprecate/download/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +websocket@^1.0.34: + version "1.0.34" + resolved "https://registry.npm.taobao.org/websocket/download/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" + integrity sha1-K9wmAsCL8sgiU7cwZVwO99yrMRE= + dependencies: + bufferutil "^4.0.1" + debug "^2.2.0" + es5-ext "^0.10.50" + typedarray-to-buffer "^3.1.5" + utf-8-validate "^5.0.2" + yaeti "^0.0.6" + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM= + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +xxhashjs@^0.2.2: + version "0.2.2" + resolved "https://registry.nlark.com/xxhashjs/download/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8" + integrity sha1-imJRVnYhocRqWuIE2gJJx/jKqdg= + dependencies: + cuint "^0.2.2" + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.nlark.com/y18n/download/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha1-f0k00PfKjFb5UxSTndzS3ZHOHVU= + +yaeti@^0.0.6: + version "0.0.6" + resolved "https://registry.npm.taobao.org/yaeti/download/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" + integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc= + +yargs-parser@^20.2.2: + version "20.2.7" + resolved "https://registry.nlark.com/yargs-parser/download/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" + integrity sha1-Yd+FwRPt+1p6TjbriqYO9CPLyQo= + +yargs@^17.0.1: + version "17.0.1" + resolved "https://registry.nlark.com/yargs/download/yargs-17.0.1.tgz?cache=0&sync_timestamp=1620086644940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-17.0.1.tgz#6a1ced4ed5ee0b388010ba9fd67af83b9362e0bb" + integrity sha1-ahztTtXuCziAELqf1nr4O5Ni4Ls= + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" + +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npm.taobao.org/yn/download/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A= From 33e43269f65d7a7335ed6127bb759961e97abda4 Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 27 May 2021 11:53:37 +0800 Subject: [PATCH 13/74] ci(e2e): checkout before building e2e image --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8c1effc617..d24274f536 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -150,6 +150,7 @@ jobs: - run: name: Load Archived Docker Image command: docker load -i /tmp/workspace/image.tar + - checkout - run: name: Build e2e Image command: docker build -f docker/e2e.Dockerfile -t e2e . From a3d42a454ae89a5ae150d10be92fbf46939daf28 Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 27 May 2021 13:58:23 +0800 Subject: [PATCH 14/74] feat(e2e): init tester --- .gitignore | 5 +- launch/config.json => config.json | 0 docker/e2e.Dockerfile | 10 +- e2e/package.json | 10 +- e2e/src/index.ts | 1 + e2e/src/tester.ts | 36 +++++ e2e/tsconfig.json | 16 +- e2e/tslint.json | 19 +++ yarn.lock | 252 +++++++++++++++++++++++++++++- 9 files changed, 334 insertions(+), 15 deletions(-) rename launch/config.json => config.json (100%) create mode 100644 e2e/src/index.ts create mode 100644 e2e/src/tester.ts create mode 100644 e2e/tslint.json diff --git a/.gitignore b/.gitignore index 22ead761b1..7a17b62397 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,9 @@ node_modules .local # Binaries for launching PINT with polkadot -launch/bin +bin + +# Libraries of js output +e2e/lib local-test diff --git a/launch/config.json b/config.json similarity index 100% rename from launch/config.json rename to config.json diff --git a/docker/e2e.Dockerfile b/docker/e2e.Dockerfile index 96d792e789..fe195cef05 100644 --- a/docker/e2e.Dockerfile +++ b/docker/e2e.Dockerfile @@ -5,10 +5,10 @@ # # This Dockerfile builds the environment of e2e tests FROM debian:buster-slim -COPY launch launch -COPY --from=chainsafe/pint /usr/local/bin/pint /launch/bin/ -COPY --from=clearloop/rococo-v1 /polkadot /launch/bin/ -COPY --from=clearloop/statemint /statemint /launch/bin/ +COPY config.json config.json +COPY --from=chainsafe/pint /usr/local/bin/pint bin/ +COPY --from=clearloop/rococo-v1 /polkadot bin/ +COPY --from=clearloop/statemint /statemint bin/ ENV CARGO_TERM_COLOR=always RUN apt-get update -y \ && apt-get install openssl curl git -y \ @@ -23,4 +23,4 @@ RUN apt-get update -y \ EXPOSE 9966 EXPOSE 9988 EXPOSE 9999 -ENTRYPOINT [ "node", "polkadot-launch/dist/index.js", "launch/config.json" ] +ENTRYPOINT [ "node", "polkadot-launch/dist/index.js", "config.json" ] diff --git a/e2e/package.json b/e2e/package.json index 09816a9459..79369195ec 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -1,6 +1,6 @@ { "name": "pint-e2e", - "version": "0.0.1", + "version": "1.0.0", "description": "E2E tests for PINT", "main": "index.js", "repository": "https://github.com/ChainSafe/PINT", @@ -11,11 +11,17 @@ "@types/node": "^15.3.1", "@types/yargs": "^16.0.2", "ts-node": "^9.1.1", + "tslint": "^6.1.3", "typescript": "^4.2.4" }, "dependencies": { - "@polkadot/api": "^4.10.1", "@pint/types": "^1", + "@polkadot/api": "^4.10.1", + "@polkadot/keyring": "^6.5.1", "yargs": "^17.0.1" + }, + "scripts": { + "build": "tsc --strict", + "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" } } diff --git a/e2e/src/index.ts b/e2e/src/index.ts new file mode 100644 index 0000000000..c5c02c886d --- /dev/null +++ b/e2e/src/index.ts @@ -0,0 +1 @@ +/* exports */ diff --git a/e2e/src/tester.ts b/e2e/src/tester.ts new file mode 100644 index 0000000000..30cdddfce0 --- /dev/null +++ b/e2e/src/tester.ts @@ -0,0 +1,36 @@ +import { ApiPromise, WsProvider } from "@polkadot/api"; +import { Keyring } from "@polkadot/keyring"; +import { KeyringPair } from "@polkadot/keyring/types"; + +/** + * Tester + */ +class Tester { + api: ApiPromise; + pair: KeyringPair; + + /** + * Init API with provided config + */ + static async init( + // PINT websocket port + wsPort: string = "ws://0.0.0.0:9988", + // Testing account + uri: string = "//Alice" + ): Promise { + // init api + const provider = new WsProvider(wsPort); + const api = await ApiPromise.create({ provider }); + + // init keyring + const keyring = new Keyring({ type: "sr25519" }); + const pair = keyring.addFromUri(uri); + + return new Tester(api, pair); + } + + constructor(api: ApiPromise, pair: KeyringPair) { + this.api = api; + this.pair = pair; + } +} diff --git a/e2e/tsconfig.json b/e2e/tsconfig.json index 320a960138..8db1eddfc2 100644 --- a/e2e/tsconfig.json +++ b/e2e/tsconfig.json @@ -1,12 +1,18 @@ { + "indent": [true, "spaces", 2], "compilerOptions": { - "target": "es5", - "module": "commonjs", - "strict": true, + "allowSyntheticDefaultImports": true, + "baseUrl": ".", + "declaration": true, "esModuleInterop": true, + "outDir": "lib", + "module": "commonjs", + "moduleResolution": "node", + "noImplicitAny": true, + "resolveJsonModule": true, + "sourceMap": true, "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "outDir": "lib" + "target": "es6" }, "include": ["index.ts", "src/**/*"], "exclude": ["node_modules"] diff --git a/e2e/tslint.json b/e2e/tslint.json new file mode 100644 index 0000000000..0b5e9615e0 --- /dev/null +++ b/e2e/tslint.json @@ -0,0 +1,19 @@ +{ + "extends": "tslint:recommended", + "rules": { + "curly": [true, "ignore-same-line"], + "max-classes-per-file": false, + "max-line-length": { + "options": [120] + }, + "new-parens": true, + "no-arg": true, + "no-bitwise": true, + "no-conditional-assignment": true, + "no-consecutive-blank-lines": false, + "no-console": false + }, + "linterOptions": { + "exclude": [] + } +} diff --git a/yarn.lock b/yarn.lock index e8dd96c07a..e554dd9f58 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,27 @@ # yarn lockfile v1 +"@babel/code-frame@^7.0.0": + version "7.12.13" + resolved "https://registry.nlark.com/@babel/code-frame/download/@babel/code-frame-7.12.13.tgz#dcfc826beef65e75c50e21d3837d7d95798dd658" + integrity sha1-3PyCa+72XnXFDiHTg319lXmN1lg= + dependencies: + "@babel/highlight" "^7.12.13" + +"@babel/helper-validator-identifier@^7.14.0": + version "7.14.0" + resolved "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.0.tgz?cache=0&sync_timestamp=1619727556616&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fhelper-validator-identifier%2Fdownload%2F%40babel%2Fhelper-validator-identifier-7.14.0.tgz#d26cad8a47c65286b15df1547319a5d0bcf27288" + integrity sha1-0mytikfGUoaxXfFUcxml0Lzycog= + +"@babel/highlight@^7.12.13": + version "7.14.0" + resolved "https://registry.nlark.com/@babel/highlight/download/@babel/highlight-7.14.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fhighlight%2Fdownload%2F%40babel%2Fhighlight-7.14.0.tgz#3197e375711ef6bf834e67d0daec88e4f46113cf" + integrity sha1-MZfjdXEe9r+DTmfQ2uyI5PRhE88= + dependencies: + "@babel/helper-validator-identifier" "^7.14.0" + chalk "^2.0.0" + js-tokens "^4.0.0" + "@babel/runtime@^7.13.9", "@babel/runtime@^7.14.0": version "7.14.0" resolved "https://registry.nlark.com/@babel/runtime/download/@babel/runtime-7.14.0.tgz?cache=0&sync_timestamp=1619727501090&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.14.0.tgz#46794bc20b612c5f75e62dd071e24dfd95f1cbe6" @@ -284,6 +305,13 @@ ansi-regex@^5.0.0: resolved "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz?cache=0&sync_timestamp=1618553044693&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" integrity sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U= +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-3.2.1.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0= + dependencies: + color-convert "^1.9.0" + ansi-styles@^4.0.0: version "4.3.0" resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" @@ -296,11 +324,23 @@ arg@^4.1.0: resolved "https://registry.npm.taobao.org/arg/download/arg-4.1.3.tgz?cache=0&sync_timestamp=1605576950209&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Farg%2Fdownload%2Farg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" integrity sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk= +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.nlark.com/argparse/download/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha1-vNZ5HqWuCXJeF+WtmIE0zUCz2RE= + dependencies: + sprintf-js "~1.0.2" + asynckit@^0.4.0: version "0.4.0" resolved "https://registry.npm.taobao.org/asynckit/download/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.npm.taobao.org/balanced-match/download/balanced-match-1.0.2.tgz?cache=0&sync_timestamp=1617714233441&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbalanced-match%2Fdownload%2Fbalanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + integrity sha1-6D46fj8wCzTLnYf2FfoMvzV2kO4= + base-x@^3.0.8: version "3.0.8" resolved "https://registry.npm.taobao.org/base-x/download/base-x-3.0.8.tgz#1e1106c2537f0162e8b52474a557ebb09000018d" @@ -323,6 +363,14 @@ bn.js@^4.11.9: resolved "https://registry.npm.taobao.org/bn.js/download/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" integrity sha1-d1s/J477uXGO7HNh9IP7Nvu/6og= +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.nlark.com/brace-expansion/download/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0= + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + brorand@^1.1.0: version "1.1.0" resolved "https://registry.npm.taobao.org/brorand/download/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" @@ -340,11 +388,25 @@ bufferutil@^4.0.1: dependencies: node-gyp-build "^4.2.0" +builtin-modules@^1.1.1: + version "1.1.1" + resolved "https://registry.npm.taobao.org/builtin-modules/download/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" + integrity sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8= + camelcase@^5.3.1: version "5.3.1" resolved "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA= +chalk@^2.0.0, chalk@^2.3.0: + version "2.4.2" + resolved "https://registry.nlark.com/chalk/download/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha1-zUJUFnelQzPPVBpJEIwUMrRMlCQ= + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + cipher-base@^1.0.1: version "1.0.4" resolved "https://registry.nlark.com/cipher-base/download/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" @@ -362,6 +424,13 @@ cliui@^7.0.2: strip-ansi "^6.0.0" wrap-ansi "^7.0.0" +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.nlark.com/color-convert/download/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha1-u3GFBpDh8TZWfeYp0tVHHe2kweg= + dependencies: + color-name "1.1.3" + color-convert@^2.0.1: version "2.0.1" resolved "https://registry.nlark.com/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" @@ -369,6 +438,11 @@ color-convert@^2.0.1: dependencies: color-name "~1.1.4" +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + color-name@~1.1.4: version "1.1.4" resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" @@ -381,6 +455,16 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" +commander@^2.12.1: + version "2.20.3" + resolved "https://registry.nlark.com/commander/download/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha1-/UhehMA+tIgcIHIrpIA16FMa6zM= + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.npm.taobao.org/concat-map/download/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + create-hash@^1.2.0: version "1.2.0" resolved "https://registry.nlark.com/create-hash/download/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" @@ -476,6 +560,16 @@ escalade@^3.1.1: resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA= +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.nlark.com/escape-string-regexp/download/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.nlark.com/esprima/download/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha1-E7BM2z5sXRnfkatph6hpVhmwqnE= + eventemitter3@^4.0.7: version "4.0.7" resolved "https://registry.npm.taobao.org/eventemitter3/download/eventemitter3-4.0.7.tgz?cache=0&sync_timestamp=1598517819668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feventemitter3%2Fdownload%2Feventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" @@ -497,11 +591,45 @@ form-data@^3.0.0: combined-stream "^1.0.8" mime-types "^2.1.12" +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.nlark.com/fs.realpath/download/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.nlark.com/function-bind/download/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0= + get-caller-file@^2.0.5: version "2.0.5" resolved "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= +glob@^7.1.1: + version "7.1.7" + resolved "https://registry.nlark.com/glob/download/glob-7.1.7.tgz?cache=0&sync_timestamp=1620337382269&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fglob%2Fdownload%2Fglob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" + integrity sha1-Oxk+kjPwHULQs/eClLvutBj5SpA= + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.npm.taobao.org/has-flag/download/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.nlark.com/has/download/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y= + dependencies: + function-bind "^1.1.1" + hash-base@^3.0.0: version "3.1.0" resolved "https://registry.npm.taobao.org/hash-base/download/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" @@ -528,7 +656,15 @@ hmac-drbg@^1.0.1: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.1" -inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.npm.taobao.org/inflight/download/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: version "2.0.4" resolved "https://registry.nlark.com/inherits/download/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w= @@ -538,6 +674,13 @@ ip-regex@^4.3.0: resolved "https://registry.nlark.com/ip-regex/download/ip-regex-4.3.0.tgz?cache=0&sync_timestamp=1618846943469&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fip-regex%2Fdownload%2Fip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" integrity sha1-aHJ1qw9X+naXj/j03dyKI9WZDbU= +is-core-module@^2.2.0: + version "2.4.0" + resolved "https://registry.nlark.com/is-core-module/download/is-core-module-2.4.0.tgz#8e9fc8e15027b011418026e98f0e6f4d86305cc1" + integrity sha1-jp/I4VAnsBFBgCbpjw5vTYYwXME= + dependencies: + has "^1.0.3" + is-fullwidth-code-point@^3.0.0: version "3.0.0" resolved "https://registry.nlark.com/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" @@ -553,6 +696,19 @@ js-sha3@^0.8.0: resolved "https://registry.npm.taobao.org/js-sha3/download/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" integrity sha1-ubel2nOvrX3t0PjEY5VMveaBiEA= +js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.nlark.com/js-tokens/download/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha1-GSA/tZmR35jjoocFDUZHzerzJJk= + +js-yaml@^3.13.1: + version "3.14.1" + resolved "https://registry.npm.taobao.org/js-yaml/download/js-yaml-3.14.1.tgz?cache=0&sync_timestamp=1618435151523&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjs-yaml%2Fdownload%2Fjs-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + integrity sha1-2ugS/bOCX6MGYJqHFzg8UMNqBTc= + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + make-error@^1.1.1: version "1.3.6" resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" @@ -589,6 +745,25 @@ minimalistic-crypto-utils@^1.0.1: resolved "https://registry.nlark.com/minimalistic-crypto-utils/download/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= +minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.npm.taobao.org/minimatch/download/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM= + dependencies: + brace-expansion "^1.1.7" + +minimist@^1.2.5: + version "1.2.5" + resolved "https://registry.npm.taobao.org/minimist/download/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" + integrity sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI= + +mkdirp@^0.5.3: + version "0.5.5" + resolved "https://registry.npm.taobao.org/mkdirp/download/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" + integrity sha1-2Rzv1i0UNsoPQWIOJRKI1CAJne8= + dependencies: + minimist "^1.2.5" + ms@2.0.0: version "2.0.0" resolved "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&sync_timestamp=1607433899126&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" @@ -609,6 +784,23 @@ node-gyp-build@^4.2.0: resolved "https://registry.npm.taobao.org/node-gyp-build/download/node-gyp-build-4.2.3.tgz#ce6277f853835f718829efb47db20f3e4d9c4739" integrity sha1-zmJ3+FODX3GIKe+0fbIPPk2cRzk= +once@^1.3.0: + version "1.4.0" + resolved "https://registry.nlark.com/once/download/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.npm.taobao.org/path-is-absolute/download/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-parse@^1.0.6: + version "1.0.7" + resolved "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU= + readable-stream@^3.6.0: version "3.6.0" resolved "https://registry.nlark.com/readable-stream/download/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" @@ -628,6 +820,14 @@ require-directory@^2.1.1: resolved "https://registry.nlark.com/require-directory/download/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= +resolve@^1.3.2: + version "1.20.0" + resolved "https://registry.npm.taobao.org/resolve/download/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" + integrity sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU= + dependencies: + is-core-module "^2.2.0" + path-parse "^1.0.6" + ripemd160@^2.0.1: version "2.0.2" resolved "https://registry.npm.taobao.org/ripemd160/download/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" @@ -653,6 +853,11 @@ scryptsy@^2.1.0: resolved "https://registry.npm.taobao.org/scryptsy/download/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" integrity sha1-jR6NDAJbWP3SW2+poNyQXuj6p5A= +semver@^5.3.0: + version "5.7.1" + resolved "https://registry.nlark.com/semver/download/semver-5.7.1.tgz?cache=0&sync_timestamp=1618846864940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fsemver%2Fdownload%2Fsemver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha1-qVT5Ma66UI0we78Gnv8MAclhFvc= + sha.js@^2.4.0: version "2.4.11" resolved "https://registry.npm.taobao.org/sha.js/download/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" @@ -674,6 +879,11 @@ source-map@^0.6.0: resolved "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha1-dHIq8y6WFOnCh6jQu95IteLxomM= +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.nlark.com/sprintf-js/download/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + string-width@^4.1.0, string-width@^4.2.0: version "4.2.2" resolved "https://registry.nlark.com/string-width/download/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" @@ -697,6 +907,13 @@ strip-ansi@^6.0.0: dependencies: ansi-regex "^5.0.0" +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-5.5.0.tgz?cache=0&sync_timestamp=1618560959124&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha1-4uaaRKyHcveKHsCzW2id9lMO/I8= + dependencies: + has-flag "^3.0.0" + ts-node@^9.1.1: version "9.1.1" resolved "https://registry.nlark.com/ts-node/download/ts-node-9.1.1.tgz?cache=0&sync_timestamp=1621798304685&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fts-node%2Fdownload%2Fts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" @@ -709,11 +926,37 @@ ts-node@^9.1.1: source-map-support "^0.5.17" yn "3.1.1" -tslib@^1.9.0: +tslib@^1.13.0, tslib@^1.8.1, tslib@^1.9.0: version "1.14.1" resolved "https://registry.nlark.com/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1618847097275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA= +tslint@^6.1.3: + version "6.1.3" + resolved "https://registry.nlark.com/tslint/download/tslint-6.1.3.tgz?cache=0&sync_timestamp=1618847624538&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslint%2Fdownload%2Ftslint-6.1.3.tgz#5c23b2eccc32487d5523bd3a470e9aa31789d904" + integrity sha1-XCOy7MwySH1VI706Rw6aoxeJ2QQ= + dependencies: + "@babel/code-frame" "^7.0.0" + builtin-modules "^1.1.1" + chalk "^2.3.0" + commander "^2.12.1" + diff "^4.0.1" + glob "^7.1.1" + js-yaml "^3.13.1" + minimatch "^3.0.4" + mkdirp "^0.5.3" + resolve "^1.3.2" + semver "^5.3.0" + tslib "^1.13.0" + tsutils "^2.29.0" + +tsutils@^2.29.0: + version "2.29.0" + resolved "https://registry.npm.taobao.org/tsutils/download/tsutils-2.29.0.tgz#32b488501467acbedd4b85498673a0812aca0b99" + integrity sha1-MrSIUBRnrL7dS4VJhnOggSrKC5k= + dependencies: + tslib "^1.8.1" + tweetnacl@^1.0.3: version "1.0.3" resolved "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" @@ -774,6 +1017,11 @@ wrap-ansi@^7.0.0: string-width "^4.1.0" strip-ansi "^6.0.0" +wrappy@1: + version "1.0.2" + resolved "https://registry.nlark.com/wrappy/download/wrappy-1.0.2.tgz?cache=0&sync_timestamp=1619133505879&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrappy%2Fdownload%2Fwrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + xxhashjs@^0.2.2: version "0.2.2" resolved "https://registry.nlark.com/xxhashjs/download/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8" From 9afcae38ec78a4164a343584c5f0130c78b2dd7b Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 27 May 2021 14:52:36 +0800 Subject: [PATCH 15/74] feat(e2e): abstract result type --- Cargo.lock | 72 +++++++++++++++++++++++------------------------ e2e/src/result.ts | 25 ++++++++++++++++ e2e/src/tester.ts | 11 +++++++- 3 files changed, 71 insertions(+), 37 deletions(-) create mode 100644 e2e/src/result.ts diff --git a/Cargo.lock b/Cargo.lock index bfccc58eea..bb9a2991d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2012,7 +2012,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git)", @@ -2093,7 +2093,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "13.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "parity-scale-codec", "serde", @@ -2130,7 +2130,7 @@ dependencies = [ [[package]] name = "frame-support" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "bitflags", "frame-metadata 13.0.0 (git+https://github.com/paritytech/substrate.git)", @@ -2168,7 +2168,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "Inflector", "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git)", @@ -2192,7 +2192,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", "proc-macro-crate 1.0.0", @@ -2214,7 +2214,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "proc-macro2 1.0.27", "quote 1.0.9", @@ -2241,7 +2241,7 @@ dependencies = [ [[package]] name = "frame-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", "impl-trait-for-tuples", @@ -4369,11 +4369,11 @@ dependencies = [ [[package]] name = "multihash-derive" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85ee3c48cb9d9b275ad967a0e96715badc13c6029adb92f34fa17b9ff28fd81f" +checksum = "424f6e86263cd5294cbd7f1e95746b95aca0e0d66bff31e5a40d6baa87b4aa99" dependencies = [ - "proc-macro-crate 0.1.5", + "proc-macro-crate 1.0.0", "proc-macro-error", "proc-macro2 1.0.27", "quote 1.0.9", @@ -9146,7 +9146,7 @@ dependencies = [ [[package]] name = "sp-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "hash-db", "log", @@ -9175,7 +9175,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "blake2-rfc", "proc-macro-crate 1.0.0", @@ -9199,7 +9199,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "parity-scale-codec", "serde", @@ -9225,7 +9225,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "integer-sqrt", "num-traits", @@ -9415,7 +9415,7 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "base58", "blake2-rfc", @@ -9478,7 +9478,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "proc-macro2 1.0.27", "quote 1.0.9", @@ -9499,7 +9499,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "environmental", "parity-scale-codec", @@ -9539,7 +9539,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9577,7 +9577,7 @@ dependencies = [ [[package]] name = "sp-io" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "futures 0.3.15", "hash-db", @@ -9630,7 +9630,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "async-trait", "derive_more 0.99.14", @@ -9655,7 +9655,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "ruzstd", "zstd", @@ -9706,7 +9706,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "backtrace", ] @@ -9744,7 +9744,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "either", "hash256-std-hasher", @@ -9782,7 +9782,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9811,7 +9811,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "Inflector", "proc-macro-crate 1.0.0", @@ -9855,7 +9855,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "parity-scale-codec", "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", @@ -9887,7 +9887,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "hash-db", "log", @@ -9915,7 +9915,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8f [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" [[package]] name = "sp-storage" @@ -9933,7 +9933,7 @@ dependencies = [ [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9985,7 +9985,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "erased-serde", "log", @@ -10033,7 +10033,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "hash-db", "memory-db", @@ -10071,7 +10071,7 @@ dependencies = [ [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10084,7 +10084,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "parity-scale-codec", "proc-macro-crate 1.0.0", @@ -10107,7 +10107,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1f3a89090aecff1aa532c54e78d3fa4eec564b01" +source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10935,9 +10935,9 @@ dependencies = [ [[package]] name = "trie-db" -version = "0.22.3" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec051edf7f0fc9499a2cb0947652cab2148b9d7f61cee7605e312e9f970dacaf" +checksum = "cd81fe0c8bc2b528a51c9d2c31dae4483367a26a723a3c9a4a8120311d7774e3" dependencies = [ "hash-db", "hashbrown", diff --git a/e2e/src/result.ts b/e2e/src/result.ts new file mode 100644 index 0000000000..2a837fb87f --- /dev/null +++ b/e2e/src/result.ts @@ -0,0 +1,25 @@ +// result error + +export class Result { + inner: T | Error; + + constructor(inner: T | Error, reason: string | undefined = undefined) { + this.inner = inner; + if (inner instanceof Error) { + (this.inner as Error).message = reason; + } + } + + /** + * resolve inner value or throw Error + * + * @return T + */ + unwrap(): T { + if (this.inner instanceof Error) { + throw this.inner as Error; + } + + return this.inner as T; + } +} diff --git a/e2e/src/tester.ts b/e2e/src/tester.ts index 30cdddfce0..9c456892e2 100644 --- a/e2e/src/tester.ts +++ b/e2e/src/tester.ts @@ -1,6 +1,8 @@ import { ApiPromise, WsProvider } from "@polkadot/api"; import { Keyring } from "@polkadot/keyring"; import { KeyringPair } from "@polkadot/keyring/types"; +import { typesBundle } from "@pint/types"; +import { Result } from "./result"; /** * Tester @@ -20,7 +22,7 @@ class Tester { ): Promise { // init api const provider = new WsProvider(wsPort); - const api = await ApiPromise.create({ provider }); + const api = await ApiPromise.create({ provider, typesBundle: typesBundle }); // init keyring const keyring = new Keyring({ type: "sr25519" }); @@ -29,6 +31,13 @@ class Tester { return new Tester(api, pair); } + /** + * Run tests + */ + static async run(): Promise> { + return new Result(null); + } + constructor(api: ApiPromise, pair: KeyringPair) { this.api = api; this.pair = pair; From c480ddc0f63a9310965f001a1263924d0d0a157d Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 27 May 2021 17:39:42 +0800 Subject: [PATCH 16/74] feat(e2e): define types for pallets --- e2e/src/{tester.ts => api.ts} | 18 ++++-------- e2e/src/pallets/assetIndex.ts | 8 ++++++ e2e/src/pallets/index.ts | 17 ++++++++++++ e2e/src/result.ts | 4 +-- e2e/src/utils.ts | 1 + pint-types-bundle/index.ts | 49 +++++++++++++++++++-------------- pint-types-bundle/tsconfig.json | 15 +++------- runtime/src/lib.rs | 2 +- 8 files changed, 67 insertions(+), 47 deletions(-) rename e2e/src/{tester.ts => api.ts} (75%) create mode 100644 e2e/src/pallets/assetIndex.ts create mode 100644 e2e/src/pallets/index.ts create mode 100644 e2e/src/utils.ts diff --git a/e2e/src/tester.ts b/e2e/src/api.ts similarity index 75% rename from e2e/src/tester.ts rename to e2e/src/api.ts index 9c456892e2..5018e443f4 100644 --- a/e2e/src/tester.ts +++ b/e2e/src/api.ts @@ -2,14 +2,13 @@ import { ApiPromise, WsProvider } from "@polkadot/api"; import { Keyring } from "@polkadot/keyring"; import { KeyringPair } from "@polkadot/keyring/types"; import { typesBundle } from "@pint/types"; -import { Result } from "./result"; /** * Tester */ -class Tester { - api: ApiPromise; - pair: KeyringPair; +export class Api { + public api: ApiPromise; + public pair: KeyringPair; /** * Init API with provided config @@ -19,7 +18,7 @@ class Tester { wsPort: string = "ws://0.0.0.0:9988", // Testing account uri: string = "//Alice" - ): Promise { + ): Promise { // init api const provider = new WsProvider(wsPort); const api = await ApiPromise.create({ provider, typesBundle: typesBundle }); @@ -28,14 +27,7 @@ class Tester { const keyring = new Keyring({ type: "sr25519" }); const pair = keyring.addFromUri(uri); - return new Tester(api, pair); - } - - /** - * Run tests - */ - static async run(): Promise> { - return new Result(null); + return new Api(api, pair); } constructor(api: ApiPromise, pair: KeyringPair) { diff --git a/e2e/src/pallets/assetIndex.ts b/e2e/src/pallets/assetIndex.ts new file mode 100644 index 0000000000..6c6cc8452f --- /dev/null +++ b/e2e/src/pallets/assetIndex.ts @@ -0,0 +1,8 @@ +// tests for pallet asset-index +import { Result } from "../result"; +import { Api } from "../api"; +import { Pallet, Call } from "./index"; + +export const addAsset: Call = (api: Api): Result => { + return new Result(null); +}; diff --git a/e2e/src/pallets/index.ts b/e2e/src/pallets/index.ts new file mode 100644 index 0000000000..f7527bdc84 --- /dev/null +++ b/e2e/src/pallets/index.ts @@ -0,0 +1,17 @@ +/* exports */ +import { Result } from "../result"; +import { Api } from "../api"; + +/** + * Call + */ +export type Call = (api: Api, ...args: any[]) => Result; + +/** + * Pallet + */ +export interface Pallet { + [index: string]: Call; +} + +export default {}; diff --git a/e2e/src/result.ts b/e2e/src/result.ts index 2a837fb87f..f8342b7b3c 100644 --- a/e2e/src/result.ts +++ b/e2e/src/result.ts @@ -6,14 +6,14 @@ export class Result { constructor(inner: T | Error, reason: string | undefined = undefined) { this.inner = inner; if (inner instanceof Error) { - (this.inner as Error).message = reason; + (this.inner as Error).message = String(reason); } } /** * resolve inner value or throw Error * - * @return T + * @returns {T} */ unwrap(): T { if (this.inner instanceof Error) { diff --git a/e2e/src/utils.ts b/e2e/src/utils.ts new file mode 100644 index 0000000000..ab4e13cd67 --- /dev/null +++ b/e2e/src/utils.ts @@ -0,0 +1 @@ +/* utils */ diff --git a/pint-types-bundle/index.ts b/pint-types-bundle/index.ts index 1035965872..3d771484fb 100644 --- a/pint-types-bundle/index.ts +++ b/pint-types-bundle/index.ts @@ -1,26 +1,35 @@ -import {OverrideBundleDefinition, OverrideBundleType,} from "@polkadot/types/types"; +import { + OverrideBundleDefinition, + OverrideBundleType, +} from "@polkadot/types/types"; export const definitions = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: "MultiAddress", - LookupSource: "MultiAddress", - AssetId: "u32", - AccountIdFor: "AccountId", - Balance: "u128", - BalanceFor: "Balance", - FeedId: "u64", - HashFor: "Hash" - }, - } - ], + types: [ + { + // on all versions + minmax: [0, undefined], + types: { + Address: "MultiAddress", + LookupSource: "MultiAddress", + AssetId: "u32", + AccountIdFor: "AccountId", + Balance: "u128", + BalanceFor: "Balance", + FeedId: "u64", + HashFor: "Hash", + AssetAvailability: { + _enum: { + Liquid: "MultiLocation", + Saft: null, + }, + }, + }, + }, + ], } as OverrideBundleDefinition; export const typesBundle = { - spec: { - pint: definitions - }, + spec: { + pint: definitions, + }, } as OverrideBundleType; diff --git a/pint-types-bundle/tsconfig.json b/pint-types-bundle/tsconfig.json index 74e27b7503..b694623894 100644 --- a/pint-types-bundle/tsconfig.json +++ b/pint-types-bundle/tsconfig.json @@ -1,20 +1,13 @@ { + "indent": [true, "spaces", 2], "compilerOptions": { "target": "es5", "module": "commonjs", - "lib": [ - "es2017", - "es7", - "es6", - "dom" - ], + "lib": ["es2017", "es7", "es6", "dom"], "declaration": true, "outDir": "dist", "strict": true, "esModuleInterop": true }, - "exclude": [ - "node_modules", - "dist" - ] -} \ No newline at end of file + "exclude": ["node_modules", "dist"] +} diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 939f85348e..2b7b24d1a9 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -537,7 +537,7 @@ parameter_types! { impl pallet_asset_index::Config for Runtime { // Using root as the admin origin for now - type AdminOrigin = frame_system::EnsureRoot; + type AdminOrigin = frame_system::EnsureSigned; type Event = Event; type AssetId = AssetId; type IndexToken = Balances; From 741883b82fa59ea705a226a63525bba897ea3aef Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 27 May 2021 19:01:39 +0800 Subject: [PATCH 17/74] chore(js): move js packages into js folder --- .gitignore | 2 +- {e2e => js/api}/README.md | 0 js/api/index.ts | 1 + js/api/package.json | 26 + {e2e => js/api}/src/api.ts | 0 js/api/src/index.ts | 2 + {e2e => js/api}/src/pallets/assetIndex.ts | 0 {e2e => js/api}/src/pallets/index.ts | 0 {e2e => js/api}/src/result.ts | 0 {e2e => js/api}/src/utils.ts | 0 {e2e => js/api}/tsconfig.json | 0 {e2e => js/api}/tslint.json | 0 js/api/yarn-error.log | 875 ++++++++++++++++++ {e2e => js/api}/yarn.lock | 0 js/e2e/README.md | 7 + {e2e => js/e2e}/index.ts | 0 {e2e => js/e2e}/package.json | 0 js/e2e/src/api.ts | 37 + {e2e => js/e2e}/src/index.ts | 0 js/e2e/src/pallets/assetIndex.ts | 8 + js/e2e/src/pallets/index.ts | 17 + js/e2e/src/result.ts | 25 + js/e2e/src/utils.ts | 1 + js/e2e/tsconfig.json | 19 + js/e2e/tslint.json | 19 + js/e2e/yarn.lock | 815 ++++++++++++++++ js/launch/README.md | 7 + js/launch/index.ts | 3 + js/launch/package.json | 27 + js/launch/src/api.ts | 37 + js/launch/src/index.ts | 1 + js/launch/src/pallets/assetIndex.ts | 8 + js/launch/src/pallets/index.ts | 17 + js/launch/src/result.ts | 25 + js/launch/src/utils.ts | 1 + js/launch/tsconfig.json | 19 + js/launch/tslint.json | 19 + js/launch/yarn.lock | 815 ++++++++++++++++ js/package.json | 4 + .../pint-types-bundle}/.gitignore | 0 js/pint-types-bundle/LICENSE | 1 + .../pint-types-bundle}/README.md | 0 .../pint-types-bundle}/index.ts | 0 .../pint-types-bundle}/package.json | 0 .../pint-types-bundle}/tsconfig.json | 0 .../pint-types-bundle}/yarn.lock | 0 yarn.lock => js/yarn.lock | 16 +- package.json | 4 - pint-types-bundle/LICENSE | 1 - 49 files changed, 2845 insertions(+), 14 deletions(-) rename {e2e => js/api}/README.md (100%) create mode 100644 js/api/index.ts create mode 100644 js/api/package.json rename {e2e => js/api}/src/api.ts (100%) create mode 100644 js/api/src/index.ts rename {e2e => js/api}/src/pallets/assetIndex.ts (100%) rename {e2e => js/api}/src/pallets/index.ts (100%) rename {e2e => js/api}/src/result.ts (100%) rename {e2e => js/api}/src/utils.ts (100%) rename {e2e => js/api}/tsconfig.json (100%) rename {e2e => js/api}/tslint.json (100%) create mode 100644 js/api/yarn-error.log rename {e2e => js/api}/yarn.lock (100%) create mode 100644 js/e2e/README.md rename {e2e => js/e2e}/index.ts (100%) rename {e2e => js/e2e}/package.json (100%) create mode 100644 js/e2e/src/api.ts rename {e2e => js/e2e}/src/index.ts (100%) create mode 100644 js/e2e/src/pallets/assetIndex.ts create mode 100644 js/e2e/src/pallets/index.ts create mode 100644 js/e2e/src/result.ts create mode 100644 js/e2e/src/utils.ts create mode 100644 js/e2e/tsconfig.json create mode 100644 js/e2e/tslint.json create mode 100644 js/e2e/yarn.lock create mode 100644 js/launch/README.md create mode 100644 js/launch/index.ts create mode 100644 js/launch/package.json create mode 100644 js/launch/src/api.ts create mode 100644 js/launch/src/index.ts create mode 100644 js/launch/src/pallets/assetIndex.ts create mode 100644 js/launch/src/pallets/index.ts create mode 100644 js/launch/src/result.ts create mode 100644 js/launch/src/utils.ts create mode 100644 js/launch/tsconfig.json create mode 100644 js/launch/tslint.json create mode 100644 js/launch/yarn.lock create mode 100644 js/package.json rename {pint-types-bundle => js/pint-types-bundle}/.gitignore (100%) create mode 120000 js/pint-types-bundle/LICENSE rename {pint-types-bundle => js/pint-types-bundle}/README.md (100%) rename {pint-types-bundle => js/pint-types-bundle}/index.ts (100%) rename {pint-types-bundle => js/pint-types-bundle}/package.json (100%) rename {pint-types-bundle => js/pint-types-bundle}/tsconfig.json (100%) rename {pint-types-bundle => js/pint-types-bundle}/yarn.lock (100%) rename yarn.lock => js/yarn.lock (96%) delete mode 100644 package.json delete mode 120000 pint-types-bundle/LICENSE diff --git a/.gitignore b/.gitignore index 7a17b62397..f298bb472c 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,6 @@ node_modules bin # Libraries of js output -e2e/lib +js/**/*/lib local-test diff --git a/e2e/README.md b/js/api/README.md similarity index 100% rename from e2e/README.md rename to js/api/README.md diff --git a/js/api/index.ts b/js/api/index.ts new file mode 100644 index 0000000000..c574589b7f --- /dev/null +++ b/js/api/index.ts @@ -0,0 +1 @@ +export { Api } from "./src/index"; diff --git a/js/api/package.json b/js/api/package.json new file mode 100644 index 0000000000..c235f40908 --- /dev/null +++ b/js/api/package.json @@ -0,0 +1,26 @@ +{ + "name": "@pint/api", + "version": "1.0.0", + "description": "E2E tests for PINT", + "main": "index.js", + "repository": "https://github.com/ChainSafe/PINT", + "author": "ChainSafe", + "license": "GNU-v3", + "private": true, + "devDependencies": { + "@types/node": "^15.3.1", + "ts-node": "^9.1.1", + "tslint": "^6.1.3", + "typescript": "^4.2.4" + }, + "dependencies": { + "@pint/types": "^1", + "@polkadot/api": "^4.10.1", + "@polkadot/keyring": "^6.5.1", + "yargs": "^17.0.1" + }, + "scripts": { + "build": "tsc --strict", + "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" + } +} diff --git a/e2e/src/api.ts b/js/api/src/api.ts similarity index 100% rename from e2e/src/api.ts rename to js/api/src/api.ts diff --git a/js/api/src/index.ts b/js/api/src/index.ts new file mode 100644 index 0000000000..367c722dcb --- /dev/null +++ b/js/api/src/index.ts @@ -0,0 +1,2 @@ +/* exports */ +export { Api } from "./api"; diff --git a/e2e/src/pallets/assetIndex.ts b/js/api/src/pallets/assetIndex.ts similarity index 100% rename from e2e/src/pallets/assetIndex.ts rename to js/api/src/pallets/assetIndex.ts diff --git a/e2e/src/pallets/index.ts b/js/api/src/pallets/index.ts similarity index 100% rename from e2e/src/pallets/index.ts rename to js/api/src/pallets/index.ts diff --git a/e2e/src/result.ts b/js/api/src/result.ts similarity index 100% rename from e2e/src/result.ts rename to js/api/src/result.ts diff --git a/e2e/src/utils.ts b/js/api/src/utils.ts similarity index 100% rename from e2e/src/utils.ts rename to js/api/src/utils.ts diff --git a/e2e/tsconfig.json b/js/api/tsconfig.json similarity index 100% rename from e2e/tsconfig.json rename to js/api/tsconfig.json diff --git a/e2e/tslint.json b/js/api/tslint.json similarity index 100% rename from e2e/tslint.json rename to js/api/tslint.json diff --git a/js/api/yarn-error.log b/js/api/yarn-error.log new file mode 100644 index 0000000000..402b492c06 --- /dev/null +++ b/js/api/yarn-error.log @@ -0,0 +1,875 @@ +Arguments: + /opt/homebrew/Cellar/node/15.9.0/bin/node /opt/homebrew/bin/yarn + +PATH: + /Users/clearloop/.rvm/gems/ruby-3.0.0/bin:/Users/clearloop/.rvm/gems/ruby-3.0.0@global/bin:/Users/clearloop/.rvm/rubies/ruby-3.0.0/bin:/opt/homebrew/opt/node@14/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/krb5/sbin:/opt/homebrew/opt/krb5/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/bin:/Users/clearloop/.radicle/bin:/usr/local/share/android-sdk/emulator:/usr/local/share/android-sdk/platform-tools:/usr/local/share/android-sdk/tools/bin:/usr/local/share/android-sdk/tools:/Users/clearloop/.wabt/bin:/Users/clearloop/.wasmer/bin:/Users/clearloop/code/binaryen/bin:/Users/clearloop/Library/go/bin:/Users/clearloop/.config/npm/bin:/usr/local/opt/node@12/bin:/Users/clearloop/.cargo/bin:/usr/local/sbin:/Users/clearloop/.pub-cache/bin:/Users/clearloop/Library/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/opt/homebrew/opt/node@14/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/krb5/sbin:/opt/homebrew/opt/krb5/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/bin:/Users/clearloop/.radicle/bin:/usr/local/share/android-sdk/emulator:/usr/local/share/android-sdk/platform-tools:/usr/local/share/android-sdk/tools/bin:/usr/local/share/android-sdk/tools:/Users/clearloop/.wabt/bin:/Users/clearloop/.wasmer/bin:/Users/clearloop/code/binaryen/bin:/Users/clearloop/Library/go/bin:/Users/clearloop/.config/npm/bin:/usr/local/opt/node@12/bin:/Users/clearloop/.cargo/bin:/usr/local/sbin:/Users/clearloop/.pub-cache/bin:/Users/clearloop/Library/bin:/Users/clearloop/.rvm/gems/ruby-3.0.0/bin:/Users/clearloop/.rvm/gems/ruby-3.0.0@global/bin:/Users/clearloop/.rvm/rubies/ruby-3.0.0/bin:/Users/clearloop/Library/flutter/bin:/opt/flutter/bin:/Users/clearloop/.binaryen/bin:/Users/clearloop/.rvm/bin:/Users/clearloop/Library/flutter/bin:/opt/flutter/bin:/Users/clearloop/.binaryen/bin + +Yarn version: + 1.22.10 + +Node version: + 15.9.0 + +Platform: + darwin arm64 + +Trace: + Error: https://registry.npm.taobao.org/@pint%2ftypes: Not found + at Request.params.callback [as _callback] (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:66988:18) + at Request.self.callback (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:140662:22) + at Request.emit (node:events:378:20) + at Request. (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:141634:10) + at Request.emit (node:events:378:20) + at IncomingMessage. (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:141556:12) + at Object.onceWrapper (node:events:484:28) + at IncomingMessage.emit (node:events:390:22) + at endReadableNT (node:internal/streams/readable:1307:12) + at processTicksAndRejections (node:internal/process/task_queues:81:21) + +npm manifest: + { + "name": "@pint/api", + "version": "1.0.0", + "description": "E2E tests for PINT", + "main": "index.js", + "repository": "https://github.com/ChainSafe/PINT", + "author": "ChainSafe", + "license": "GNU-v3", + "private": true, + "devDependencies": { + "@types/node": "^15.3.1", + "ts-node": "^9.1.1", + "tslint": "^6.1.3", + "typescript": "^4.2.4" + }, + "dependencies": { + "@pint/types": "^1", + "@polkadot/api": "^4.10.1", + "@polkadot/keyring": "^6.5.1", + "yargs": "^17.0.1" + }, + "scripts": { + "build": "tsc --strict", + "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" + } + } + +yarn manifest: + No manifest + +Lockfile: + # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. + # yarn lockfile v1 + + + "@babel/runtime@^7.13.9", "@babel/runtime@^7.14.0": + version "7.14.0" + resolved "https://registry.nlark.com/@babel/runtime/download/@babel/runtime-7.14.0.tgz?cache=0&sync_timestamp=1619727501090&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.14.0.tgz#46794bc20b612c5f75e62dd071e24dfd95f1cbe6" + integrity sha1-RnlLwgthLF915i3QceJN/ZXxy+Y= + dependencies: + regenerator-runtime "^0.13.4" + + "@polkadot/api-derive@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/api-derive/download/@polkadot/api-derive-4.10.1.tgz#391ecde22d2f4de67b3eec3389d3f08b9a0cbc4c" + integrity sha1-OR7N4i0vTeZ7PuwzidPwi5oMvEw= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/api" "4.10.1" + "@polkadot/rpc-core" "4.10.1" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + bn.js "^4.11.9" + + "@polkadot/api@4.10.1", "@polkadot/api@^4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/api/download/@polkadot/api-4.10.1.tgz#6a43c9c4585f3f92cd21d7ae85ae481d50eb3bac" + integrity sha1-akPJxFhfP5LNIdeuha5IHVDrO6w= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/api-derive" "4.10.1" + "@polkadot/keyring" "^6.4.1" + "@polkadot/metadata" "4.10.1" + "@polkadot/rpc-core" "4.10.1" + "@polkadot/rpc-provider" "4.10.1" + "@polkadot/types" "4.10.1" + "@polkadot/types-known" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + + "@polkadot/keyring@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/keyring/download/@polkadot/keyring-6.4.1.tgz#769c5f0613a27e18726b51e6539fa56f161f6160" + integrity sha1-dpxfBhOifhhya1HmU5+lbxYfYWA= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/util" "6.4.1" + "@polkadot/util-crypto" "6.4.1" + + "@polkadot/metadata@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/metadata/download/@polkadot/metadata-4.10.1.tgz#f22b76e1fc575c20e44b8ba96949f474505ad5fb" + integrity sha1-8it24fxXXCDkS4upaUn0dFBa1fs= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.10.1" + "@polkadot/types-known" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + bn.js "^4.11.9" + + "@polkadot/networks@6.4.1", "@polkadot/networks@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/networks/download/@polkadot/networks-6.4.1.tgz#0f933c4af10a2bfe8f072e2c7e8357ef03b2e37e" + integrity sha1-D5M8SvEKK/6PBy4sfoNX7wOy434= + dependencies: + "@babel/runtime" "^7.14.0" + + "@polkadot/rpc-core@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/rpc-core/download/@polkadot/rpc-core-4.10.1.tgz#531cbb481db5ef02a162039a16958509859431f1" + integrity sha1-Uxy7SB217wKhYgOaFpWFCYWUMfE= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.10.1" + "@polkadot/rpc-provider" "4.10.1" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + + "@polkadot/rpc-provider@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/rpc-provider/download/@polkadot/rpc-provider-4.10.1.tgz#822dbe90a2d0afbf67fcfa2c41ffc2c026d85c10" + integrity sha1-gi2+kKLQr79n/PosQf/CwCbYXBA= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-fetch" "^6.4.1" + "@polkadot/x-global" "^6.4.1" + "@polkadot/x-ws" "^6.4.1" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + + "@polkadot/types-known@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/types-known/download/@polkadot/types-known-4.10.1.tgz#3377a6482f116c88f82140e7327c9cdea32b0a1d" + integrity sha1-M3emSC8RbIj4IUDnMnyc3qMrCh0= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "^6.4.1" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + bn.js "^4.11.9" + + "@polkadot/types@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/types/download/@polkadot/types-4.10.1.tgz#603d273ec5ad83cfce9d3eec05bbd198ae9677f0" + integrity sha1-YD0nPsWtg8/OnT7sBbvRmK6Wd/A= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + + "@polkadot/util-crypto@6.4.1", "@polkadot/util-crypto@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/util-crypto/download/@polkadot/util-crypto-6.4.1.tgz#b567d824598bf8f4587364c1d7234bafe805f1c5" + integrity sha1-tWfYJFmL+PRYc2TB1yNLr+gF8cU= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "6.4.1" + "@polkadot/util" "6.4.1" + "@polkadot/wasm-crypto" "^4.0.2" + "@polkadot/x-randomvalues" "6.4.1" + base-x "^3.0.8" + base64-js "^1.5.1" + blakejs "^1.1.0" + bn.js "^4.11.9" + create-hash "^1.2.0" + elliptic "^6.5.4" + hash.js "^1.1.7" + js-sha3 "^0.8.0" + scryptsy "^2.1.0" + tweetnacl "^1.0.3" + xxhashjs "^0.2.2" + + "@polkadot/util@6.4.1", "@polkadot/util@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/util/download/@polkadot/util-6.4.1.tgz#f40fdc91ae49396d7930e37dbd31747769555b7a" + integrity sha1-9A/cka5JOW15MON9vTF0d2lVW3o= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-textdecoder" "6.4.1" + "@polkadot/x-textencoder" "6.4.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + camelcase "^5.3.1" + ip-regex "^4.3.0" + + "@polkadot/wasm-crypto-asmjs@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto-asmjs/download/@polkadot/wasm-crypto-asmjs-4.0.2.tgz#f42c353a64e1243841daf90e4bd54eff01a4e3cf" + integrity sha1-9Cw1OmThJDhB2vkOS9VO/wGk488= + dependencies: + "@babel/runtime" "^7.13.9" + + "@polkadot/wasm-crypto-wasm@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto-wasm/download/@polkadot/wasm-crypto-wasm-4.0.2.tgz#89f9e0a1e4d076784d4a42bea37fc8b06bdd8bb6" + integrity sha1-ifngoeTQdnhNSkK+o3/IsGvdi7Y= + dependencies: + "@babel/runtime" "^7.13.9" + + "@polkadot/wasm-crypto@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto/download/@polkadot/wasm-crypto-4.0.2.tgz#9649057adee8383cc86433d107ba526b718c5a3b" + integrity sha1-lkkFet7oODzIZDPRB7pSa3GMWjs= + dependencies: + "@babel/runtime" "^7.13.9" + "@polkadot/wasm-crypto-asmjs" "^4.0.2" + "@polkadot/wasm-crypto-wasm" "^4.0.2" + + "@polkadot/x-fetch@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-fetch/download/@polkadot/x-fetch-6.4.1.tgz#12b9e6d42e71deceff44c324ba41baed879093c1" + integrity sha1-Ernm1C5x3s7/RMMkukG67YeQk8E= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + "@types/node-fetch" "^2.5.10" + node-fetch "^2.6.1" + + "@polkadot/x-global@6.4.1", "@polkadot/x-global@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-global/download/@polkadot/x-global-6.4.1.tgz#546e019e0c7f72a92a2612cacf90e8797c94709f" + integrity sha1-VG4Bngx/cqkqJhLKz5DoeXyUcJ8= + dependencies: + "@babel/runtime" "^7.14.0" + "@types/node-fetch" "^2.5.10" + node-fetch "^2.6.1" + + "@polkadot/x-randomvalues@6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-randomvalues/download/@polkadot/x-randomvalues-6.4.1.tgz#bb30d309e03ab63196504f53962e47ec7b97fac9" + integrity sha1-uzDTCeA6tjGWUE9Tli5H7HuX+sk= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + + "@polkadot/x-rxjs@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-rxjs/download/@polkadot/x-rxjs-6.4.1.tgz#c6e8cef8dc3f20b4c7468bd6976d843947da1f15" + integrity sha1-xujO+Nw/ILTHRovWl22EOUfaHxU= + dependencies: + "@babel/runtime" "^7.14.0" + rxjs "^6.6.7" + + "@polkadot/x-textdecoder@6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-textdecoder/download/@polkadot/x-textdecoder-6.4.1.tgz#f33b81267d8de313e851cc699b9dfa6e8f109cde" + integrity sha1-8zuBJn2N4xPoUcxpm536bo8QnN4= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + + "@polkadot/x-textencoder@6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-textencoder/download/@polkadot/x-textencoder-6.4.1.tgz#f34bcc1c1a60d723ea8ce84e10a1efbbf6c1371a" + integrity sha1-80vMHBpg1yPqjOhOEKHvu/bBNxo= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + + "@polkadot/x-ws@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-ws/download/@polkadot/x-ws-6.4.1.tgz#e03295907a50f74ec220d9dc9aa6d45370f67554" + integrity sha1-4DKVkHpQ907CINncmqbUU3D2dVQ= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + "@types/websocket" "^1.0.2" + websocket "^1.0.34" + + "@types/bn.js@^4.11.6": + version "4.11.6" + resolved "https://registry.nlark.com/@types/bn.js/download/@types/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c" + integrity sha1-wwbHDZNYquozzU7aCSp0K5UFlnw= + dependencies: + "@types/node" "*" + + "@types/node-fetch@^2.5.10": + version "2.5.10" + resolved "https://registry.nlark.com/@types/node-fetch/download/@types/node-fetch-2.5.10.tgz#9b4d4a0425562f9fcea70b12cb3fcdd946ca8132" + integrity sha1-m01KBCVWL5/OpwsSyz/N2UbKgTI= + dependencies: + "@types/node" "*" + form-data "^3.0.0" + + "@types/node@*", "@types/node@^15.3.1": + version "15.3.1" + resolved "https://registry.nlark.com/@types/node/download/@types/node-15.3.1.tgz?cache=0&sync_timestamp=1621463621315&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-15.3.1.tgz#23a06b87eedb524016616e886b116b8fdcb180af" + integrity sha1-I6Brh+7bUkAWYW6IaxFrj9yxgK8= + + "@types/websocket@^1.0.2": + version "1.0.2" + resolved "https://registry.nlark.com/@types/websocket/download/@types/websocket-1.0.2.tgz?cache=0&sync_timestamp=1621244924715&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fwebsocket%2Fdownload%2F%40types%2Fwebsocket-1.0.2.tgz#d2855c6a312b7da73ed16ba6781815bf30c6187a" + integrity sha1-0oVcajErfac+0WumeBgVvzDGGHo= + dependencies: + "@types/node" "*" + + "@types/yargs-parser@*": + version "20.2.0" + resolved "https://registry.nlark.com/@types/yargs-parser/download/@types/yargs-parser-20.2.0.tgz?cache=0&sync_timestamp=1621243984050&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fyargs-parser%2Fdownload%2F%40types%2Fyargs-parser-20.2.0.tgz#dd3e6699ba3237f0348cd085e4698780204842f9" + integrity sha1-3T5mmboyN/A0jNCF5GmHgCBIQvk= + + "@types/yargs@^16.0.2": + version "16.0.2" + resolved "https://registry.nlark.com/@types/yargs/download/@types/yargs-16.0.2.tgz#b860dfa2964425239bba37ab3178b0acd79b8a61" + integrity sha1-uGDfopZEJSObujerMXiwrNebimE= + dependencies: + "@types/yargs-parser" "*" + + ansi-regex@^5.0.0: + version "5.0.0" + resolved "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz?cache=0&sync_timestamp=1618553044693&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" + integrity sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U= + + ansi-styles@^4.0.0: + version "4.3.0" + resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= + dependencies: + color-convert "^2.0.1" + + arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npm.taobao.org/arg/download/arg-4.1.3.tgz?cache=0&sync_timestamp=1605576950209&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Farg%2Fdownload%2Farg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk= + + asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.npm.taobao.org/asynckit/download/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + + base-x@^3.0.8: + version "3.0.8" + resolved "https://registry.npm.taobao.org/base-x/download/base-x-3.0.8.tgz#1e1106c2537f0162e8b52474a557ebb09000018d" + integrity sha1-HhEGwlN/AWLotSR0pVfrsJAAAY0= + dependencies: + safe-buffer "^5.0.1" + + base64-js@^1.5.1: + version "1.5.1" + resolved "https://registry.nlark.com/base64-js/download/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha1-GxtEAWClv3rUC2UPCVljSBkDkwo= + + blakejs@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/blakejs/download/blakejs-1.1.0.tgz#69df92ef953aa88ca51a32df6ab1c54a155fc7a5" + integrity sha1-ad+S75U6qIylGjLfarHFShVfx6U= + + bn.js@^4.11.9: + version "4.12.0" + resolved "https://registry.npm.taobao.org/bn.js/download/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" + integrity sha1-d1s/J477uXGO7HNh9IP7Nvu/6og= + + brorand@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/brorand/download/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= + + buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.nlark.com/buffer-from/download/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + integrity sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8= + + bufferutil@^4.0.1: + version "4.0.3" + resolved "https://registry.npm.taobao.org/bufferutil/download/bufferutil-4.0.3.tgz?cache=0&sync_timestamp=1609618802475&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbufferutil%2Fdownload%2Fbufferutil-4.0.3.tgz#66724b756bed23cd7c28c4d306d7994f9943cc6b" + integrity sha1-ZnJLdWvtI818KMTTBteZT5lDzGs= + dependencies: + node-gyp-build "^4.2.0" + + camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA= + + cipher-base@^1.0.1: + version "1.0.4" + resolved "https://registry.nlark.com/cipher-base/download/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" + integrity sha1-h2Dk7MJy9MNjUy+SbYdKriwTl94= + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + + cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.nlark.com/cliui/download/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08= + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + + color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.nlark.com/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= + dependencies: + color-name "~1.1.4" + + color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= + + combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.nlark.com/combined-stream/download/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha1-w9RaizT9cwYxoRCoolIGgrMdWn8= + dependencies: + delayed-stream "~1.0.0" + + create-hash@^1.2.0: + version "1.2.0" + resolved "https://registry.nlark.com/create-hash/download/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + integrity sha1-iJB4rxGmN1a8+1m9IhmWvjqe8ZY= + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + + create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.npm.taobao.org/create-require/download/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha1-wdfo8eX2z8n/ZfnNNS03NIdWwzM= + + cuint@^0.2.2: + version "0.2.2" + resolved "https://registry.nlark.com/cuint/download/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b" + integrity sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs= + + d@1, d@^1.0.1: + version "1.0.1" + resolved "https://registry.npm.taobao.org/d/download/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" + integrity sha1-hpgJU3LVjb7jRv/Qxwk/mfj561o= + dependencies: + es5-ext "^0.10.50" + type "^1.0.1" + + debug@^2.2.0: + version "2.6.9" + resolved "https://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz?cache=0&sync_timestamp=1614330710870&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8= + dependencies: + ms "2.0.0" + + delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.nlark.com/delayed-stream/download/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + + diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npm.taobao.org/diff/download/diff-4.0.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdiff%2Fdownload%2Fdiff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha1-YPOuy4nV+uUgwRqhnvwruYKq3n0= + + elliptic@^6.5.4: + version "6.5.4" + resolved "https://registry.nlark.com/elliptic/download/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" + integrity sha1-2jfOvTHnmhNn6UG1ku0fvr1Yq7s= + dependencies: + bn.js "^4.11.9" + brorand "^1.1.0" + hash.js "^1.0.0" + hmac-drbg "^1.0.1" + inherits "^2.0.4" + minimalistic-assert "^1.0.1" + minimalistic-crypto-utils "^1.0.1" + + emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.nlark.com/emoji-regex/download/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc= + + es5-ext@^0.10.35, es5-ext@^0.10.50: + version "0.10.53" + resolved "https://registry.npm.taobao.org/es5-ext/download/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1" + integrity sha1-k8WjrP2+8nUiCtcmRK0C7hg2jeE= + dependencies: + es6-iterator "~2.0.3" + es6-symbol "~3.1.3" + next-tick "~1.0.0" + + es6-iterator@~2.0.3: + version "2.0.3" + resolved "https://registry.nlark.com/es6-iterator/download/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" + integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c= + dependencies: + d "1" + es5-ext "^0.10.35" + es6-symbol "^3.1.1" + + es6-symbol@^3.1.1, es6-symbol@~3.1.3: + version "3.1.3" + resolved "https://registry.npm.taobao.org/es6-symbol/download/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" + integrity sha1-utXTwbzawoJp9MszHkMceKxwXRg= + dependencies: + d "^1.0.1" + ext "^1.1.2" + + escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA= + + eventemitter3@^4.0.7: + version "4.0.7" + resolved "https://registry.npm.taobao.org/eventemitter3/download/eventemitter3-4.0.7.tgz?cache=0&sync_timestamp=1598517819668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feventemitter3%2Fdownload%2Feventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha1-Lem2j2Uo1WRO9cWVJqG0oHMGFp8= + + ext@^1.1.2: + version "1.4.0" + resolved "https://registry.npm.taobao.org/ext/download/ext-1.4.0.tgz#89ae7a07158f79d35517882904324077e4379244" + integrity sha1-ia56BxWPedNVF4gpBDJAd+Q3kkQ= + dependencies: + type "^2.0.0" + + form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.nlark.com/form-data/download/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" + integrity sha1-69U3kbeDVqma+aMA1CgsTV65dV8= + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + + get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= + + hash-base@^3.0.0: + version "3.1.0" + resolved "https://registry.npm.taobao.org/hash-base/download/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" + integrity sha1-VcOB2eBuHSmXqIO0o/3f5/DTrzM= + dependencies: + inherits "^2.0.4" + readable-stream "^3.6.0" + safe-buffer "^5.2.0" + + hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7: + version "1.1.7" + resolved "https://registry.npm.taobao.org/hash.js/download/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" + integrity sha1-C6vKU46NTuSg+JiNaIZlN6ADz0I= + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.1" + + hmac-drbg@^1.0.1: + version "1.0.1" + resolved "https://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + + inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: + version "2.0.4" + resolved "https://registry.nlark.com/inherits/download/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w= + + ip-regex@^4.3.0: + version "4.3.0" + resolved "https://registry.nlark.com/ip-regex/download/ip-regex-4.3.0.tgz?cache=0&sync_timestamp=1618846943469&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fip-regex%2Fdownload%2Fip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" + integrity sha1-aHJ1qw9X+naXj/j03dyKI9WZDbU= + + is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.nlark.com/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0= + + is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.npm.taobao.org/is-typedarray/download/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + + js-sha3@^0.8.0: + version "0.8.0" + resolved "https://registry.npm.taobao.org/js-sha3/download/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" + integrity sha1-ubel2nOvrX3t0PjEY5VMveaBiEA= + + make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha1-LrLjfqm2fEiR9oShOUeZr0hM96I= + + md5.js@^1.3.4: + version "1.3.5" + resolved "https://registry.npm.taobao.org/md5.js/download/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" + integrity sha1-tdB7jjIW4+J81yjXL3DR5qNCAF8= + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + + mime-db@1.47.0: + version "1.47.0" + resolved "https://registry.npm.taobao.org/mime-db/download/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" + integrity sha1-jLMT5Zll08Bc+/iYkVomevRqM1w= + + mime-types@^2.1.12: + version "2.1.30" + resolved "https://registry.npm.taobao.org/mime-types/download/mime-types-2.1.30.tgz?cache=0&sync_timestamp=1617340140598&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-types%2Fdownload%2Fmime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" + integrity sha1-bnvotMR5gl+F7WMmaV23P5MF1i0= + dependencies: + mime-db "1.47.0" + + minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.nlark.com/minimalistic-assert/download/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha1-LhlN4ERibUoQ5/f7wAznPoPk1cc= + + minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.nlark.com/minimalistic-crypto-utils/download/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= + + ms@2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&sync_timestamp=1607433899126&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + + next-tick@~1.0.0: + version "1.0.0" + resolved "https://registry.npm.taobao.org/next-tick/download/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" + integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= + + node-fetch@^2.6.1: + version "2.6.1" + resolved "https://registry.nlark.com/node-fetch/download/node-fetch-2.6.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fnode-fetch%2Fdownload%2Fnode-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" + integrity sha1-BFvTI2Mfdu0uK1VXM5RBa2OaAFI= + + node-gyp-build@^4.2.0: + version "4.2.3" + resolved "https://registry.npm.taobao.org/node-gyp-build/download/node-gyp-build-4.2.3.tgz#ce6277f853835f718829efb47db20f3e4d9c4739" + integrity sha1-zmJ3+FODX3GIKe+0fbIPPk2cRzk= + + readable-stream@^3.6.0: + version "3.6.0" + resolved "https://registry.nlark.com/readable-stream/download/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha1-M3u9o63AcGvT4CRCaihtS0sskZg= + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + + regenerator-runtime@^0.13.4: + version "0.13.7" + resolved "https://registry.nlark.com/regenerator-runtime/download/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" + integrity sha1-ysLazIoepnX+qrrriugziYrkb1U= + + require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.nlark.com/require-directory/download/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + + ripemd160@^2.0.1: + version "2.0.2" + resolved "https://registry.npm.taobao.org/ripemd160/download/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + integrity sha1-ocGm9iR1FXe6XQeRTLyShQWFiQw= + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + + rxjs@^6.6.7: + version "6.6.7" + resolved "https://registry.nlark.com/rxjs/download/rxjs-6.6.7.tgz?cache=0&sync_timestamp=1620786704383&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frxjs%2Fdownload%2Frxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" + integrity sha1-kKwBisq/SRv2UEQjXVhjxNq4BMk= + dependencies: + tslib "^1.9.0" + + safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.nlark.com/safe-buffer/download/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY= + + scryptsy@^2.1.0: + version "2.1.0" + resolved "https://registry.npm.taobao.org/scryptsy/download/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" + integrity sha1-jR6NDAJbWP3SW2+poNyQXuj6p5A= + + sha.js@^2.4.0: + version "2.4.11" + resolved "https://registry.npm.taobao.org/sha.js/download/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + integrity sha1-N6XPC4HsvGlD3hCbopYNGyZYSuc= + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + + source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npm.taobao.org/source-map-support/download/source-map-support-0.5.19.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map-support%2Fdownload%2Fsource-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha1-qYti+G3K9PZzmWSMCFKRq56P7WE= + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + + source-map@^0.6.0: + version "0.6.1" + resolved "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha1-dHIq8y6WFOnCh6jQu95IteLxomM= + + string-width@^4.1.0, string-width@^4.2.0: + version "4.2.2" + resolved "https://registry.nlark.com/string-width/download/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" + integrity sha1-2v1PlVmnWFz7pSnGoKT3NIjr1MU= + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + + string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.nlark.com/string_decoder/download/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha1-QvEUWUpGzxqOMLCoT1bHjD7awh4= + dependencies: + safe-buffer "~5.2.0" + + strip-ansi@^6.0.0: + version "6.0.0" + resolved "https://registry.nlark.com/strip-ansi/download/strip-ansi-6.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" + integrity sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI= + dependencies: + ansi-regex "^5.0.0" + + ts-node@^9.1.1: + version "9.1.1" + resolved "https://registry.nlark.com/ts-node/download/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" + integrity sha1-UamkUKPpWUAb2l8ASnLVS5NtN20= + dependencies: + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + source-map-support "^0.5.17" + yn "3.1.1" + + tslib@^1.9.0: + version "1.14.1" + resolved "https://registry.nlark.com/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1618847097275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA= + + tweetnacl@^1.0.3: + version "1.0.3" + resolved "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" + integrity sha1-rAr3FoBFjYpjeNDQ0FCrFAfTVZY= + + type@^1.0.1: + version "1.2.0" + resolved "https://registry.npm.taobao.org/type/download/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" + integrity sha1-hI3XaY2vo+VKbEeedZxLw/GIR6A= + + type@^2.0.0: + version "2.5.0" + resolved "https://registry.npm.taobao.org/type/download/type-2.5.0.tgz#0a2e78c2e77907b252abe5f298c1b01c63f0db3d" + integrity sha1-Ci54wud5B7JSq+XymMGwHGPw2z0= + + typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.npm.taobao.org/typedarray-to-buffer/download/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha1-qX7nqf9CaRufeD/xvFES/j/KkIA= + dependencies: + is-typedarray "^1.0.0" + + typescript@^4.2.4: + version "4.2.4" + resolved "https://registry.nlark.com/typescript/download/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961" + integrity sha1-hhC1l0feAo/aiYqK7w4QPxVtCWE= + + utf-8-validate@^5.0.2: + version "5.0.5" + resolved "https://registry.nlark.com/utf-8-validate/download/utf-8-validate-5.0.5.tgz?cache=0&sync_timestamp=1620067993025&other_urls=https%3A%2F%2Fregistry.nlark.com%2Futf-8-validate%2Fdownload%2Futf-8-validate-5.0.5.tgz#dd32c2e82c72002dc9f02eb67ba6761f43456ca1" + integrity sha1-3TLC6CxyAC3J8C62e6Z2H0NFbKE= + dependencies: + node-gyp-build "^4.2.0" + + util-deprecate@^1.0.1: + version "1.0.2" + resolved "https://registry.npm.taobao.org/util-deprecate/download/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + + websocket@^1.0.34: + version "1.0.34" + resolved "https://registry.npm.taobao.org/websocket/download/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" + integrity sha1-K9wmAsCL8sgiU7cwZVwO99yrMRE= + dependencies: + bufferutil "^4.0.1" + debug "^2.2.0" + es5-ext "^0.10.50" + typedarray-to-buffer "^3.1.5" + utf-8-validate "^5.0.2" + yaeti "^0.0.6" + + wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM= + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + + xxhashjs@^0.2.2: + version "0.2.2" + resolved "https://registry.nlark.com/xxhashjs/download/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8" + integrity sha1-imJRVnYhocRqWuIE2gJJx/jKqdg= + dependencies: + cuint "^0.2.2" + + y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.nlark.com/y18n/download/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha1-f0k00PfKjFb5UxSTndzS3ZHOHVU= + + yaeti@^0.0.6: + version "0.0.6" + resolved "https://registry.npm.taobao.org/yaeti/download/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" + integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc= + + yargs-parser@^20.2.2: + version "20.2.7" + resolved "https://registry.nlark.com/yargs-parser/download/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" + integrity sha1-Yd+FwRPt+1p6TjbriqYO9CPLyQo= + + yargs@^17.0.1: + version "17.0.1" + resolved "https://registry.nlark.com/yargs/download/yargs-17.0.1.tgz?cache=0&sync_timestamp=1620086644940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-17.0.1.tgz#6a1ced4ed5ee0b388010ba9fd67af83b9362e0bb" + integrity sha1-ahztTtXuCziAELqf1nr4O5Ni4Ls= + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" + + yn@3.1.1: + version "3.1.1" + resolved "https://registry.npm.taobao.org/yn/download/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A= diff --git a/e2e/yarn.lock b/js/api/yarn.lock similarity index 100% rename from e2e/yarn.lock rename to js/api/yarn.lock diff --git a/js/e2e/README.md b/js/e2e/README.md new file mode 100644 index 0000000000..2b10559405 --- /dev/null +++ b/js/e2e/README.md @@ -0,0 +1,7 @@ +# E2E + +E2E tests for PINT. + +## LICENSE + +GNU-v3 diff --git a/e2e/index.ts b/js/e2e/index.ts similarity index 100% rename from e2e/index.ts rename to js/e2e/index.ts diff --git a/e2e/package.json b/js/e2e/package.json similarity index 100% rename from e2e/package.json rename to js/e2e/package.json diff --git a/js/e2e/src/api.ts b/js/e2e/src/api.ts new file mode 100644 index 0000000000..5018e443f4 --- /dev/null +++ b/js/e2e/src/api.ts @@ -0,0 +1,37 @@ +import { ApiPromise, WsProvider } from "@polkadot/api"; +import { Keyring } from "@polkadot/keyring"; +import { KeyringPair } from "@polkadot/keyring/types"; +import { typesBundle } from "@pint/types"; + +/** + * Tester + */ +export class Api { + public api: ApiPromise; + public pair: KeyringPair; + + /** + * Init API with provided config + */ + static async init( + // PINT websocket port + wsPort: string = "ws://0.0.0.0:9988", + // Testing account + uri: string = "//Alice" + ): Promise { + // init api + const provider = new WsProvider(wsPort); + const api = await ApiPromise.create({ provider, typesBundle: typesBundle }); + + // init keyring + const keyring = new Keyring({ type: "sr25519" }); + const pair = keyring.addFromUri(uri); + + return new Api(api, pair); + } + + constructor(api: ApiPromise, pair: KeyringPair) { + this.api = api; + this.pair = pair; + } +} diff --git a/e2e/src/index.ts b/js/e2e/src/index.ts similarity index 100% rename from e2e/src/index.ts rename to js/e2e/src/index.ts diff --git a/js/e2e/src/pallets/assetIndex.ts b/js/e2e/src/pallets/assetIndex.ts new file mode 100644 index 0000000000..6c6cc8452f --- /dev/null +++ b/js/e2e/src/pallets/assetIndex.ts @@ -0,0 +1,8 @@ +// tests for pallet asset-index +import { Result } from "../result"; +import { Api } from "../api"; +import { Pallet, Call } from "./index"; + +export const addAsset: Call = (api: Api): Result => { + return new Result(null); +}; diff --git a/js/e2e/src/pallets/index.ts b/js/e2e/src/pallets/index.ts new file mode 100644 index 0000000000..f7527bdc84 --- /dev/null +++ b/js/e2e/src/pallets/index.ts @@ -0,0 +1,17 @@ +/* exports */ +import { Result } from "../result"; +import { Api } from "../api"; + +/** + * Call + */ +export type Call = (api: Api, ...args: any[]) => Result; + +/** + * Pallet + */ +export interface Pallet { + [index: string]: Call; +} + +export default {}; diff --git a/js/e2e/src/result.ts b/js/e2e/src/result.ts new file mode 100644 index 0000000000..f8342b7b3c --- /dev/null +++ b/js/e2e/src/result.ts @@ -0,0 +1,25 @@ +// result error + +export class Result { + inner: T | Error; + + constructor(inner: T | Error, reason: string | undefined = undefined) { + this.inner = inner; + if (inner instanceof Error) { + (this.inner as Error).message = String(reason); + } + } + + /** + * resolve inner value or throw Error + * + * @returns {T} + */ + unwrap(): T { + if (this.inner instanceof Error) { + throw this.inner as Error; + } + + return this.inner as T; + } +} diff --git a/js/e2e/src/utils.ts b/js/e2e/src/utils.ts new file mode 100644 index 0000000000..ab4e13cd67 --- /dev/null +++ b/js/e2e/src/utils.ts @@ -0,0 +1 @@ +/* utils */ diff --git a/js/e2e/tsconfig.json b/js/e2e/tsconfig.json new file mode 100644 index 0000000000..8db1eddfc2 --- /dev/null +++ b/js/e2e/tsconfig.json @@ -0,0 +1,19 @@ +{ + "indent": [true, "spaces", 2], + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": ".", + "declaration": true, + "esModuleInterop": true, + "outDir": "lib", + "module": "commonjs", + "moduleResolution": "node", + "noImplicitAny": true, + "resolveJsonModule": true, + "sourceMap": true, + "skipLibCheck": true, + "target": "es6" + }, + "include": ["index.ts", "src/**/*"], + "exclude": ["node_modules"] +} diff --git a/js/e2e/tslint.json b/js/e2e/tslint.json new file mode 100644 index 0000000000..0b5e9615e0 --- /dev/null +++ b/js/e2e/tslint.json @@ -0,0 +1,19 @@ +{ + "extends": "tslint:recommended", + "rules": { + "curly": [true, "ignore-same-line"], + "max-classes-per-file": false, + "max-line-length": { + "options": [120] + }, + "new-parens": true, + "no-arg": true, + "no-bitwise": true, + "no-conditional-assignment": true, + "no-consecutive-blank-lines": false, + "no-console": false + }, + "linterOptions": { + "exclude": [] + } +} diff --git a/js/e2e/yarn.lock b/js/e2e/yarn.lock new file mode 100644 index 0000000000..73b97af6d3 --- /dev/null +++ b/js/e2e/yarn.lock @@ -0,0 +1,815 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@babel/runtime@^7.13.9", "@babel/runtime@^7.14.0": + version "7.14.0" + resolved "https://registry.nlark.com/@babel/runtime/download/@babel/runtime-7.14.0.tgz?cache=0&sync_timestamp=1619727501090&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.14.0.tgz#46794bc20b612c5f75e62dd071e24dfd95f1cbe6" + integrity sha1-RnlLwgthLF915i3QceJN/ZXxy+Y= + dependencies: + regenerator-runtime "^0.13.4" + +"@polkadot/api-derive@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/api-derive/download/@polkadot/api-derive-4.10.1.tgz#391ecde22d2f4de67b3eec3389d3f08b9a0cbc4c" + integrity sha1-OR7N4i0vTeZ7PuwzidPwi5oMvEw= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/api" "4.10.1" + "@polkadot/rpc-core" "4.10.1" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + bn.js "^4.11.9" + +"@polkadot/api@4.10.1", "@polkadot/api@^4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/api/download/@polkadot/api-4.10.1.tgz#6a43c9c4585f3f92cd21d7ae85ae481d50eb3bac" + integrity sha1-akPJxFhfP5LNIdeuha5IHVDrO6w= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/api-derive" "4.10.1" + "@polkadot/keyring" "^6.4.1" + "@polkadot/metadata" "4.10.1" + "@polkadot/rpc-core" "4.10.1" + "@polkadot/rpc-provider" "4.10.1" + "@polkadot/types" "4.10.1" + "@polkadot/types-known" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + +"@polkadot/keyring@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/keyring/download/@polkadot/keyring-6.4.1.tgz#769c5f0613a27e18726b51e6539fa56f161f6160" + integrity sha1-dpxfBhOifhhya1HmU5+lbxYfYWA= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/util" "6.4.1" + "@polkadot/util-crypto" "6.4.1" + +"@polkadot/metadata@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/metadata/download/@polkadot/metadata-4.10.1.tgz#f22b76e1fc575c20e44b8ba96949f474505ad5fb" + integrity sha1-8it24fxXXCDkS4upaUn0dFBa1fs= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.10.1" + "@polkadot/types-known" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + bn.js "^4.11.9" + +"@polkadot/networks@6.4.1", "@polkadot/networks@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/networks/download/@polkadot/networks-6.4.1.tgz#0f933c4af10a2bfe8f072e2c7e8357ef03b2e37e" + integrity sha1-D5M8SvEKK/6PBy4sfoNX7wOy434= + dependencies: + "@babel/runtime" "^7.14.0" + +"@polkadot/rpc-core@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/rpc-core/download/@polkadot/rpc-core-4.10.1.tgz#531cbb481db5ef02a162039a16958509859431f1" + integrity sha1-Uxy7SB217wKhYgOaFpWFCYWUMfE= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.10.1" + "@polkadot/rpc-provider" "4.10.1" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + +"@polkadot/rpc-provider@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/rpc-provider/download/@polkadot/rpc-provider-4.10.1.tgz#822dbe90a2d0afbf67fcfa2c41ffc2c026d85c10" + integrity sha1-gi2+kKLQr79n/PosQf/CwCbYXBA= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-fetch" "^6.4.1" + "@polkadot/x-global" "^6.4.1" + "@polkadot/x-ws" "^6.4.1" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + +"@polkadot/types-known@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/types-known/download/@polkadot/types-known-4.10.1.tgz#3377a6482f116c88f82140e7327c9cdea32b0a1d" + integrity sha1-M3emSC8RbIj4IUDnMnyc3qMrCh0= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "^6.4.1" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + bn.js "^4.11.9" + +"@polkadot/types@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/types/download/@polkadot/types-4.10.1.tgz#603d273ec5ad83cfce9d3eec05bbd198ae9677f0" + integrity sha1-YD0nPsWtg8/OnT7sBbvRmK6Wd/A= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + +"@polkadot/util-crypto@6.4.1", "@polkadot/util-crypto@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/util-crypto/download/@polkadot/util-crypto-6.4.1.tgz#b567d824598bf8f4587364c1d7234bafe805f1c5" + integrity sha1-tWfYJFmL+PRYc2TB1yNLr+gF8cU= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "6.4.1" + "@polkadot/util" "6.4.1" + "@polkadot/wasm-crypto" "^4.0.2" + "@polkadot/x-randomvalues" "6.4.1" + base-x "^3.0.8" + base64-js "^1.5.1" + blakejs "^1.1.0" + bn.js "^4.11.9" + create-hash "^1.2.0" + elliptic "^6.5.4" + hash.js "^1.1.7" + js-sha3 "^0.8.0" + scryptsy "^2.1.0" + tweetnacl "^1.0.3" + xxhashjs "^0.2.2" + +"@polkadot/util@6.4.1", "@polkadot/util@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/util/download/@polkadot/util-6.4.1.tgz#f40fdc91ae49396d7930e37dbd31747769555b7a" + integrity sha1-9A/cka5JOW15MON9vTF0d2lVW3o= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-textdecoder" "6.4.1" + "@polkadot/x-textencoder" "6.4.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + camelcase "^5.3.1" + ip-regex "^4.3.0" + +"@polkadot/wasm-crypto-asmjs@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto-asmjs/download/@polkadot/wasm-crypto-asmjs-4.0.2.tgz#f42c353a64e1243841daf90e4bd54eff01a4e3cf" + integrity sha1-9Cw1OmThJDhB2vkOS9VO/wGk488= + dependencies: + "@babel/runtime" "^7.13.9" + +"@polkadot/wasm-crypto-wasm@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto-wasm/download/@polkadot/wasm-crypto-wasm-4.0.2.tgz#89f9e0a1e4d076784d4a42bea37fc8b06bdd8bb6" + integrity sha1-ifngoeTQdnhNSkK+o3/IsGvdi7Y= + dependencies: + "@babel/runtime" "^7.13.9" + +"@polkadot/wasm-crypto@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto/download/@polkadot/wasm-crypto-4.0.2.tgz#9649057adee8383cc86433d107ba526b718c5a3b" + integrity sha1-lkkFet7oODzIZDPRB7pSa3GMWjs= + dependencies: + "@babel/runtime" "^7.13.9" + "@polkadot/wasm-crypto-asmjs" "^4.0.2" + "@polkadot/wasm-crypto-wasm" "^4.0.2" + +"@polkadot/x-fetch@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-fetch/download/@polkadot/x-fetch-6.4.1.tgz#12b9e6d42e71deceff44c324ba41baed879093c1" + integrity sha1-Ernm1C5x3s7/RMMkukG67YeQk8E= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + "@types/node-fetch" "^2.5.10" + node-fetch "^2.6.1" + +"@polkadot/x-global@6.4.1", "@polkadot/x-global@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-global/download/@polkadot/x-global-6.4.1.tgz#546e019e0c7f72a92a2612cacf90e8797c94709f" + integrity sha1-VG4Bngx/cqkqJhLKz5DoeXyUcJ8= + dependencies: + "@babel/runtime" "^7.14.0" + "@types/node-fetch" "^2.5.10" + node-fetch "^2.6.1" + +"@polkadot/x-randomvalues@6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-randomvalues/download/@polkadot/x-randomvalues-6.4.1.tgz#bb30d309e03ab63196504f53962e47ec7b97fac9" + integrity sha1-uzDTCeA6tjGWUE9Tli5H7HuX+sk= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + +"@polkadot/x-rxjs@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-rxjs/download/@polkadot/x-rxjs-6.4.1.tgz#c6e8cef8dc3f20b4c7468bd6976d843947da1f15" + integrity sha1-xujO+Nw/ILTHRovWl22EOUfaHxU= + dependencies: + "@babel/runtime" "^7.14.0" + rxjs "^6.6.7" + +"@polkadot/x-textdecoder@6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-textdecoder/download/@polkadot/x-textdecoder-6.4.1.tgz#f33b81267d8de313e851cc699b9dfa6e8f109cde" + integrity sha1-8zuBJn2N4xPoUcxpm536bo8QnN4= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + +"@polkadot/x-textencoder@6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-textencoder/download/@polkadot/x-textencoder-6.4.1.tgz#f34bcc1c1a60d723ea8ce84e10a1efbbf6c1371a" + integrity sha1-80vMHBpg1yPqjOhOEKHvu/bBNxo= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + +"@polkadot/x-ws@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-ws/download/@polkadot/x-ws-6.4.1.tgz#e03295907a50f74ec220d9dc9aa6d45370f67554" + integrity sha1-4DKVkHpQ907CINncmqbUU3D2dVQ= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + "@types/websocket" "^1.0.2" + websocket "^1.0.34" + +"@types/bn.js@^4.11.6": + version "4.11.6" + resolved "https://registry.nlark.com/@types/bn.js/download/@types/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c" + integrity sha1-wwbHDZNYquozzU7aCSp0K5UFlnw= + dependencies: + "@types/node" "*" + +"@types/node-fetch@^2.5.10": + version "2.5.10" + resolved "https://registry.nlark.com/@types/node-fetch/download/@types/node-fetch-2.5.10.tgz#9b4d4a0425562f9fcea70b12cb3fcdd946ca8132" + integrity sha1-m01KBCVWL5/OpwsSyz/N2UbKgTI= + dependencies: + "@types/node" "*" + form-data "^3.0.0" + +"@types/node@*", "@types/node@^15.3.1": + version "15.3.1" + resolved "https://registry.nlark.com/@types/node/download/@types/node-15.3.1.tgz?cache=0&sync_timestamp=1621463621315&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-15.3.1.tgz#23a06b87eedb524016616e886b116b8fdcb180af" + integrity sha1-I6Brh+7bUkAWYW6IaxFrj9yxgK8= + +"@types/websocket@^1.0.2": + version "1.0.2" + resolved "https://registry.nlark.com/@types/websocket/download/@types/websocket-1.0.2.tgz?cache=0&sync_timestamp=1621244924715&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fwebsocket%2Fdownload%2F%40types%2Fwebsocket-1.0.2.tgz#d2855c6a312b7da73ed16ba6781815bf30c6187a" + integrity sha1-0oVcajErfac+0WumeBgVvzDGGHo= + dependencies: + "@types/node" "*" + +"@types/yargs-parser@*": + version "20.2.0" + resolved "https://registry.nlark.com/@types/yargs-parser/download/@types/yargs-parser-20.2.0.tgz?cache=0&sync_timestamp=1621243984050&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fyargs-parser%2Fdownload%2F%40types%2Fyargs-parser-20.2.0.tgz#dd3e6699ba3237f0348cd085e4698780204842f9" + integrity sha1-3T5mmboyN/A0jNCF5GmHgCBIQvk= + +"@types/yargs@^16.0.2": + version "16.0.2" + resolved "https://registry.nlark.com/@types/yargs/download/@types/yargs-16.0.2.tgz#b860dfa2964425239bba37ab3178b0acd79b8a61" + integrity sha1-uGDfopZEJSObujerMXiwrNebimE= + dependencies: + "@types/yargs-parser" "*" + +ansi-regex@^5.0.0: + version "5.0.0" + resolved "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz?cache=0&sync_timestamp=1618553044693&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" + integrity sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U= + +ansi-styles@^4.0.0: + version "4.3.0" + resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= + dependencies: + color-convert "^2.0.1" + +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npm.taobao.org/arg/download/arg-4.1.3.tgz?cache=0&sync_timestamp=1605576950209&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Farg%2Fdownload%2Farg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk= + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.npm.taobao.org/asynckit/download/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +base-x@^3.0.8: + version "3.0.8" + resolved "https://registry.npm.taobao.org/base-x/download/base-x-3.0.8.tgz#1e1106c2537f0162e8b52474a557ebb09000018d" + integrity sha1-HhEGwlN/AWLotSR0pVfrsJAAAY0= + dependencies: + safe-buffer "^5.0.1" + +base64-js@^1.5.1: + version "1.5.1" + resolved "https://registry.nlark.com/base64-js/download/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha1-GxtEAWClv3rUC2UPCVljSBkDkwo= + +blakejs@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/blakejs/download/blakejs-1.1.0.tgz#69df92ef953aa88ca51a32df6ab1c54a155fc7a5" + integrity sha1-ad+S75U6qIylGjLfarHFShVfx6U= + +bn.js@^4.11.9: + version "4.12.0" + resolved "https://registry.npm.taobao.org/bn.js/download/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" + integrity sha1-d1s/J477uXGO7HNh9IP7Nvu/6og= + +brorand@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/brorand/download/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= + +buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.nlark.com/buffer-from/download/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + integrity sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8= + +bufferutil@^4.0.1: + version "4.0.3" + resolved "https://registry.npm.taobao.org/bufferutil/download/bufferutil-4.0.3.tgz?cache=0&sync_timestamp=1609618802475&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbufferutil%2Fdownload%2Fbufferutil-4.0.3.tgz#66724b756bed23cd7c28c4d306d7994f9943cc6b" + integrity sha1-ZnJLdWvtI818KMTTBteZT5lDzGs= + dependencies: + node-gyp-build "^4.2.0" + +camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA= + +cipher-base@^1.0.1: + version "1.0.4" + resolved "https://registry.nlark.com/cipher-base/download/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" + integrity sha1-h2Dk7MJy9MNjUy+SbYdKriwTl94= + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.nlark.com/cliui/download/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08= + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.nlark.com/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.nlark.com/combined-stream/download/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha1-w9RaizT9cwYxoRCoolIGgrMdWn8= + dependencies: + delayed-stream "~1.0.0" + +create-hash@^1.2.0: + version "1.2.0" + resolved "https://registry.nlark.com/create-hash/download/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + integrity sha1-iJB4rxGmN1a8+1m9IhmWvjqe8ZY= + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.npm.taobao.org/create-require/download/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha1-wdfo8eX2z8n/ZfnNNS03NIdWwzM= + +cuint@^0.2.2: + version "0.2.2" + resolved "https://registry.nlark.com/cuint/download/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b" + integrity sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs= + +d@1, d@^1.0.1: + version "1.0.1" + resolved "https://registry.npm.taobao.org/d/download/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" + integrity sha1-hpgJU3LVjb7jRv/Qxwk/mfj561o= + dependencies: + es5-ext "^0.10.50" + type "^1.0.1" + +debug@^2.2.0: + version "2.6.9" + resolved "https://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz?cache=0&sync_timestamp=1614330710870&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8= + dependencies: + ms "2.0.0" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.nlark.com/delayed-stream/download/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npm.taobao.org/diff/download/diff-4.0.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdiff%2Fdownload%2Fdiff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha1-YPOuy4nV+uUgwRqhnvwruYKq3n0= + +elliptic@^6.5.4: + version "6.5.4" + resolved "https://registry.nlark.com/elliptic/download/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" + integrity sha1-2jfOvTHnmhNn6UG1ku0fvr1Yq7s= + dependencies: + bn.js "^4.11.9" + brorand "^1.1.0" + hash.js "^1.0.0" + hmac-drbg "^1.0.1" + inherits "^2.0.4" + minimalistic-assert "^1.0.1" + minimalistic-crypto-utils "^1.0.1" + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.nlark.com/emoji-regex/download/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc= + +es5-ext@^0.10.35, es5-ext@^0.10.50: + version "0.10.53" + resolved "https://registry.npm.taobao.org/es5-ext/download/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1" + integrity sha1-k8WjrP2+8nUiCtcmRK0C7hg2jeE= + dependencies: + es6-iterator "~2.0.3" + es6-symbol "~3.1.3" + next-tick "~1.0.0" + +es6-iterator@~2.0.3: + version "2.0.3" + resolved "https://registry.nlark.com/es6-iterator/download/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" + integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c= + dependencies: + d "1" + es5-ext "^0.10.35" + es6-symbol "^3.1.1" + +es6-symbol@^3.1.1, es6-symbol@~3.1.3: + version "3.1.3" + resolved "https://registry.npm.taobao.org/es6-symbol/download/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" + integrity sha1-utXTwbzawoJp9MszHkMceKxwXRg= + dependencies: + d "^1.0.1" + ext "^1.1.2" + +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA= + +eventemitter3@^4.0.7: + version "4.0.7" + resolved "https://registry.npm.taobao.org/eventemitter3/download/eventemitter3-4.0.7.tgz?cache=0&sync_timestamp=1598517819668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feventemitter3%2Fdownload%2Feventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha1-Lem2j2Uo1WRO9cWVJqG0oHMGFp8= + +ext@^1.1.2: + version "1.4.0" + resolved "https://registry.npm.taobao.org/ext/download/ext-1.4.0.tgz#89ae7a07158f79d35517882904324077e4379244" + integrity sha1-ia56BxWPedNVF4gpBDJAd+Q3kkQ= + dependencies: + type "^2.0.0" + +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.nlark.com/form-data/download/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" + integrity sha1-69U3kbeDVqma+aMA1CgsTV65dV8= + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= + +hash-base@^3.0.0: + version "3.1.0" + resolved "https://registry.npm.taobao.org/hash-base/download/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" + integrity sha1-VcOB2eBuHSmXqIO0o/3f5/DTrzM= + dependencies: + inherits "^2.0.4" + readable-stream "^3.6.0" + safe-buffer "^5.2.0" + +hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7: + version "1.1.7" + resolved "https://registry.npm.taobao.org/hash.js/download/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" + integrity sha1-C6vKU46NTuSg+JiNaIZlN6ADz0I= + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.1" + +hmac-drbg@^1.0.1: + version "1.0.1" + resolved "https://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: + version "2.0.4" + resolved "https://registry.nlark.com/inherits/download/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w= + +ip-regex@^4.3.0: + version "4.3.0" + resolved "https://registry.nlark.com/ip-regex/download/ip-regex-4.3.0.tgz?cache=0&sync_timestamp=1618846943469&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fip-regex%2Fdownload%2Fip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" + integrity sha1-aHJ1qw9X+naXj/j03dyKI9WZDbU= + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.nlark.com/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0= + +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.npm.taobao.org/is-typedarray/download/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +js-sha3@^0.8.0: + version "0.8.0" + resolved "https://registry.npm.taobao.org/js-sha3/download/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" + integrity sha1-ubel2nOvrX3t0PjEY5VMveaBiEA= + +make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha1-LrLjfqm2fEiR9oShOUeZr0hM96I= + +md5.js@^1.3.4: + version "1.3.5" + resolved "https://registry.npm.taobao.org/md5.js/download/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" + integrity sha1-tdB7jjIW4+J81yjXL3DR5qNCAF8= + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +mime-db@1.47.0: + version "1.47.0" + resolved "https://registry.npm.taobao.org/mime-db/download/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" + integrity sha1-jLMT5Zll08Bc+/iYkVomevRqM1w= + +mime-types@^2.1.12: + version "2.1.30" + resolved "https://registry.npm.taobao.org/mime-types/download/mime-types-2.1.30.tgz?cache=0&sync_timestamp=1617340140598&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-types%2Fdownload%2Fmime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" + integrity sha1-bnvotMR5gl+F7WMmaV23P5MF1i0= + dependencies: + mime-db "1.47.0" + +minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.nlark.com/minimalistic-assert/download/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha1-LhlN4ERibUoQ5/f7wAznPoPk1cc= + +minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.nlark.com/minimalistic-crypto-utils/download/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&sync_timestamp=1607433899126&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + +next-tick@~1.0.0: + version "1.0.0" + resolved "https://registry.npm.taobao.org/next-tick/download/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" + integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= + +node-fetch@^2.6.1: + version "2.6.1" + resolved "https://registry.nlark.com/node-fetch/download/node-fetch-2.6.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fnode-fetch%2Fdownload%2Fnode-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" + integrity sha1-BFvTI2Mfdu0uK1VXM5RBa2OaAFI= + +node-gyp-build@^4.2.0: + version "4.2.3" + resolved "https://registry.npm.taobao.org/node-gyp-build/download/node-gyp-build-4.2.3.tgz#ce6277f853835f718829efb47db20f3e4d9c4739" + integrity sha1-zmJ3+FODX3GIKe+0fbIPPk2cRzk= + +readable-stream@^3.6.0: + version "3.6.0" + resolved "https://registry.nlark.com/readable-stream/download/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha1-M3u9o63AcGvT4CRCaihtS0sskZg= + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +regenerator-runtime@^0.13.4: + version "0.13.7" + resolved "https://registry.nlark.com/regenerator-runtime/download/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" + integrity sha1-ysLazIoepnX+qrrriugziYrkb1U= + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.nlark.com/require-directory/download/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +ripemd160@^2.0.1: + version "2.0.2" + resolved "https://registry.npm.taobao.org/ripemd160/download/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + integrity sha1-ocGm9iR1FXe6XQeRTLyShQWFiQw= + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +rxjs@^6.6.7: + version "6.6.7" + resolved "https://registry.nlark.com/rxjs/download/rxjs-6.6.7.tgz?cache=0&sync_timestamp=1620786704383&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frxjs%2Fdownload%2Frxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" + integrity sha1-kKwBisq/SRv2UEQjXVhjxNq4BMk= + dependencies: + tslib "^1.9.0" + +safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.nlark.com/safe-buffer/download/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY= + +scryptsy@^2.1.0: + version "2.1.0" + resolved "https://registry.npm.taobao.org/scryptsy/download/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" + integrity sha1-jR6NDAJbWP3SW2+poNyQXuj6p5A= + +sha.js@^2.4.0: + version "2.4.11" + resolved "https://registry.npm.taobao.org/sha.js/download/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + integrity sha1-N6XPC4HsvGlD3hCbopYNGyZYSuc= + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npm.taobao.org/source-map-support/download/source-map-support-0.5.19.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map-support%2Fdownload%2Fsource-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha1-qYti+G3K9PZzmWSMCFKRq56P7WE= + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0: + version "0.6.1" + resolved "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha1-dHIq8y6WFOnCh6jQu95IteLxomM= + +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.2" + resolved "https://registry.nlark.com/string-width/download/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" + integrity sha1-2v1PlVmnWFz7pSnGoKT3NIjr1MU= + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.nlark.com/string_decoder/download/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha1-QvEUWUpGzxqOMLCoT1bHjD7awh4= + dependencies: + safe-buffer "~5.2.0" + +strip-ansi@^6.0.0: + version "6.0.0" + resolved "https://registry.nlark.com/strip-ansi/download/strip-ansi-6.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" + integrity sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI= + dependencies: + ansi-regex "^5.0.0" + +ts-node@^9.1.1: + version "9.1.1" + resolved "https://registry.nlark.com/ts-node/download/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" + integrity sha1-UamkUKPpWUAb2l8ASnLVS5NtN20= + dependencies: + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + source-map-support "^0.5.17" + yn "3.1.1" + +tslib@^1.9.0: + version "1.14.1" + resolved "https://registry.nlark.com/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1618847097275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA= + +tweetnacl@^1.0.3: + version "1.0.3" + resolved "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" + integrity sha1-rAr3FoBFjYpjeNDQ0FCrFAfTVZY= + +type@^1.0.1: + version "1.2.0" + resolved "https://registry.npm.taobao.org/type/download/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" + integrity sha1-hI3XaY2vo+VKbEeedZxLw/GIR6A= + +type@^2.0.0: + version "2.5.0" + resolved "https://registry.npm.taobao.org/type/download/type-2.5.0.tgz#0a2e78c2e77907b252abe5f298c1b01c63f0db3d" + integrity sha1-Ci54wud5B7JSq+XymMGwHGPw2z0= + +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.npm.taobao.org/typedarray-to-buffer/download/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha1-qX7nqf9CaRufeD/xvFES/j/KkIA= + dependencies: + is-typedarray "^1.0.0" + +typescript@^4.2.4: + version "4.2.4" + resolved "https://registry.nlark.com/typescript/download/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961" + integrity sha1-hhC1l0feAo/aiYqK7w4QPxVtCWE= + +utf-8-validate@^5.0.2: + version "5.0.5" + resolved "https://registry.nlark.com/utf-8-validate/download/utf-8-validate-5.0.5.tgz?cache=0&sync_timestamp=1620067993025&other_urls=https%3A%2F%2Fregistry.nlark.com%2Futf-8-validate%2Fdownload%2Futf-8-validate-5.0.5.tgz#dd32c2e82c72002dc9f02eb67ba6761f43456ca1" + integrity sha1-3TLC6CxyAC3J8C62e6Z2H0NFbKE= + dependencies: + node-gyp-build "^4.2.0" + +util-deprecate@^1.0.1: + version "1.0.2" + resolved "https://registry.npm.taobao.org/util-deprecate/download/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +websocket@^1.0.34: + version "1.0.34" + resolved "https://registry.npm.taobao.org/websocket/download/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" + integrity sha1-K9wmAsCL8sgiU7cwZVwO99yrMRE= + dependencies: + bufferutil "^4.0.1" + debug "^2.2.0" + es5-ext "^0.10.50" + typedarray-to-buffer "^3.1.5" + utf-8-validate "^5.0.2" + yaeti "^0.0.6" + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM= + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +xxhashjs@^0.2.2: + version "0.2.2" + resolved "https://registry.nlark.com/xxhashjs/download/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8" + integrity sha1-imJRVnYhocRqWuIE2gJJx/jKqdg= + dependencies: + cuint "^0.2.2" + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.nlark.com/y18n/download/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha1-f0k00PfKjFb5UxSTndzS3ZHOHVU= + +yaeti@^0.0.6: + version "0.0.6" + resolved "https://registry.npm.taobao.org/yaeti/download/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" + integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc= + +yargs-parser@^20.2.2: + version "20.2.7" + resolved "https://registry.nlark.com/yargs-parser/download/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" + integrity sha1-Yd+FwRPt+1p6TjbriqYO9CPLyQo= + +yargs@^17.0.1: + version "17.0.1" + resolved "https://registry.nlark.com/yargs/download/yargs-17.0.1.tgz?cache=0&sync_timestamp=1620086644940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-17.0.1.tgz#6a1ced4ed5ee0b388010ba9fd67af83b9362e0bb" + integrity sha1-ahztTtXuCziAELqf1nr4O5Ni4Ls= + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" + +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npm.taobao.org/yn/download/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A= diff --git a/js/launch/README.md b/js/launch/README.md new file mode 100644 index 0000000000..2b10559405 --- /dev/null +++ b/js/launch/README.md @@ -0,0 +1,7 @@ +# E2E + +E2E tests for PINT. + +## LICENSE + +GNU-v3 diff --git a/js/launch/index.ts b/js/launch/index.ts new file mode 100644 index 0000000000..baaa62f372 --- /dev/null +++ b/js/launch/index.ts @@ -0,0 +1,3 @@ +(() => { + console.log("hello"); +})(); diff --git a/js/launch/package.json b/js/launch/package.json new file mode 100644 index 0000000000..79369195ec --- /dev/null +++ b/js/launch/package.json @@ -0,0 +1,27 @@ +{ + "name": "pint-e2e", + "version": "1.0.0", + "description": "E2E tests for PINT", + "main": "index.js", + "repository": "https://github.com/ChainSafe/PINT", + "author": "ChainSafe", + "license": "GNU-v3", + "private": true, + "devDependencies": { + "@types/node": "^15.3.1", + "@types/yargs": "^16.0.2", + "ts-node": "^9.1.1", + "tslint": "^6.1.3", + "typescript": "^4.2.4" + }, + "dependencies": { + "@pint/types": "^1", + "@polkadot/api": "^4.10.1", + "@polkadot/keyring": "^6.5.1", + "yargs": "^17.0.1" + }, + "scripts": { + "build": "tsc --strict", + "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" + } +} diff --git a/js/launch/src/api.ts b/js/launch/src/api.ts new file mode 100644 index 0000000000..5018e443f4 --- /dev/null +++ b/js/launch/src/api.ts @@ -0,0 +1,37 @@ +import { ApiPromise, WsProvider } from "@polkadot/api"; +import { Keyring } from "@polkadot/keyring"; +import { KeyringPair } from "@polkadot/keyring/types"; +import { typesBundle } from "@pint/types"; + +/** + * Tester + */ +export class Api { + public api: ApiPromise; + public pair: KeyringPair; + + /** + * Init API with provided config + */ + static async init( + // PINT websocket port + wsPort: string = "ws://0.0.0.0:9988", + // Testing account + uri: string = "//Alice" + ): Promise { + // init api + const provider = new WsProvider(wsPort); + const api = await ApiPromise.create({ provider, typesBundle: typesBundle }); + + // init keyring + const keyring = new Keyring({ type: "sr25519" }); + const pair = keyring.addFromUri(uri); + + return new Api(api, pair); + } + + constructor(api: ApiPromise, pair: KeyringPair) { + this.api = api; + this.pair = pair; + } +} diff --git a/js/launch/src/index.ts b/js/launch/src/index.ts new file mode 100644 index 0000000000..c5c02c886d --- /dev/null +++ b/js/launch/src/index.ts @@ -0,0 +1 @@ +/* exports */ diff --git a/js/launch/src/pallets/assetIndex.ts b/js/launch/src/pallets/assetIndex.ts new file mode 100644 index 0000000000..6c6cc8452f --- /dev/null +++ b/js/launch/src/pallets/assetIndex.ts @@ -0,0 +1,8 @@ +// tests for pallet asset-index +import { Result } from "../result"; +import { Api } from "../api"; +import { Pallet, Call } from "./index"; + +export const addAsset: Call = (api: Api): Result => { + return new Result(null); +}; diff --git a/js/launch/src/pallets/index.ts b/js/launch/src/pallets/index.ts new file mode 100644 index 0000000000..f7527bdc84 --- /dev/null +++ b/js/launch/src/pallets/index.ts @@ -0,0 +1,17 @@ +/* exports */ +import { Result } from "../result"; +import { Api } from "../api"; + +/** + * Call + */ +export type Call = (api: Api, ...args: any[]) => Result; + +/** + * Pallet + */ +export interface Pallet { + [index: string]: Call; +} + +export default {}; diff --git a/js/launch/src/result.ts b/js/launch/src/result.ts new file mode 100644 index 0000000000..f8342b7b3c --- /dev/null +++ b/js/launch/src/result.ts @@ -0,0 +1,25 @@ +// result error + +export class Result { + inner: T | Error; + + constructor(inner: T | Error, reason: string | undefined = undefined) { + this.inner = inner; + if (inner instanceof Error) { + (this.inner as Error).message = String(reason); + } + } + + /** + * resolve inner value or throw Error + * + * @returns {T} + */ + unwrap(): T { + if (this.inner instanceof Error) { + throw this.inner as Error; + } + + return this.inner as T; + } +} diff --git a/js/launch/src/utils.ts b/js/launch/src/utils.ts new file mode 100644 index 0000000000..ab4e13cd67 --- /dev/null +++ b/js/launch/src/utils.ts @@ -0,0 +1 @@ +/* utils */ diff --git a/js/launch/tsconfig.json b/js/launch/tsconfig.json new file mode 100644 index 0000000000..8db1eddfc2 --- /dev/null +++ b/js/launch/tsconfig.json @@ -0,0 +1,19 @@ +{ + "indent": [true, "spaces", 2], + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": ".", + "declaration": true, + "esModuleInterop": true, + "outDir": "lib", + "module": "commonjs", + "moduleResolution": "node", + "noImplicitAny": true, + "resolveJsonModule": true, + "sourceMap": true, + "skipLibCheck": true, + "target": "es6" + }, + "include": ["index.ts", "src/**/*"], + "exclude": ["node_modules"] +} diff --git a/js/launch/tslint.json b/js/launch/tslint.json new file mode 100644 index 0000000000..0b5e9615e0 --- /dev/null +++ b/js/launch/tslint.json @@ -0,0 +1,19 @@ +{ + "extends": "tslint:recommended", + "rules": { + "curly": [true, "ignore-same-line"], + "max-classes-per-file": false, + "max-line-length": { + "options": [120] + }, + "new-parens": true, + "no-arg": true, + "no-bitwise": true, + "no-conditional-assignment": true, + "no-consecutive-blank-lines": false, + "no-console": false + }, + "linterOptions": { + "exclude": [] + } +} diff --git a/js/launch/yarn.lock b/js/launch/yarn.lock new file mode 100644 index 0000000000..73b97af6d3 --- /dev/null +++ b/js/launch/yarn.lock @@ -0,0 +1,815 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@babel/runtime@^7.13.9", "@babel/runtime@^7.14.0": + version "7.14.0" + resolved "https://registry.nlark.com/@babel/runtime/download/@babel/runtime-7.14.0.tgz?cache=0&sync_timestamp=1619727501090&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.14.0.tgz#46794bc20b612c5f75e62dd071e24dfd95f1cbe6" + integrity sha1-RnlLwgthLF915i3QceJN/ZXxy+Y= + dependencies: + regenerator-runtime "^0.13.4" + +"@polkadot/api-derive@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/api-derive/download/@polkadot/api-derive-4.10.1.tgz#391ecde22d2f4de67b3eec3389d3f08b9a0cbc4c" + integrity sha1-OR7N4i0vTeZ7PuwzidPwi5oMvEw= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/api" "4.10.1" + "@polkadot/rpc-core" "4.10.1" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + bn.js "^4.11.9" + +"@polkadot/api@4.10.1", "@polkadot/api@^4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/api/download/@polkadot/api-4.10.1.tgz#6a43c9c4585f3f92cd21d7ae85ae481d50eb3bac" + integrity sha1-akPJxFhfP5LNIdeuha5IHVDrO6w= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/api-derive" "4.10.1" + "@polkadot/keyring" "^6.4.1" + "@polkadot/metadata" "4.10.1" + "@polkadot/rpc-core" "4.10.1" + "@polkadot/rpc-provider" "4.10.1" + "@polkadot/types" "4.10.1" + "@polkadot/types-known" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + +"@polkadot/keyring@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/keyring/download/@polkadot/keyring-6.4.1.tgz#769c5f0613a27e18726b51e6539fa56f161f6160" + integrity sha1-dpxfBhOifhhya1HmU5+lbxYfYWA= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/util" "6.4.1" + "@polkadot/util-crypto" "6.4.1" + +"@polkadot/metadata@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/metadata/download/@polkadot/metadata-4.10.1.tgz#f22b76e1fc575c20e44b8ba96949f474505ad5fb" + integrity sha1-8it24fxXXCDkS4upaUn0dFBa1fs= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.10.1" + "@polkadot/types-known" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + bn.js "^4.11.9" + +"@polkadot/networks@6.4.1", "@polkadot/networks@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/networks/download/@polkadot/networks-6.4.1.tgz#0f933c4af10a2bfe8f072e2c7e8357ef03b2e37e" + integrity sha1-D5M8SvEKK/6PBy4sfoNX7wOy434= + dependencies: + "@babel/runtime" "^7.14.0" + +"@polkadot/rpc-core@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/rpc-core/download/@polkadot/rpc-core-4.10.1.tgz#531cbb481db5ef02a162039a16958509859431f1" + integrity sha1-Uxy7SB217wKhYgOaFpWFCYWUMfE= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.10.1" + "@polkadot/rpc-provider" "4.10.1" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + +"@polkadot/rpc-provider@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/rpc-provider/download/@polkadot/rpc-provider-4.10.1.tgz#822dbe90a2d0afbf67fcfa2c41ffc2c026d85c10" + integrity sha1-gi2+kKLQr79n/PosQf/CwCbYXBA= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-fetch" "^6.4.1" + "@polkadot/x-global" "^6.4.1" + "@polkadot/x-ws" "^6.4.1" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + +"@polkadot/types-known@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/types-known/download/@polkadot/types-known-4.10.1.tgz#3377a6482f116c88f82140e7327c9cdea32b0a1d" + integrity sha1-M3emSC8RbIj4IUDnMnyc3qMrCh0= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "^6.4.1" + "@polkadot/types" "4.10.1" + "@polkadot/util" "^6.4.1" + bn.js "^4.11.9" + +"@polkadot/types@4.10.1": + version "4.10.1" + resolved "https://registry.nlark.com/@polkadot/types/download/@polkadot/types-4.10.1.tgz#603d273ec5ad83cfce9d3eec05bbd198ae9677f0" + integrity sha1-YD0nPsWtg8/OnT7sBbvRmK6Wd/A= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.10.1" + "@polkadot/util" "^6.4.1" + "@polkadot/util-crypto" "^6.4.1" + "@polkadot/x-rxjs" "^6.4.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + +"@polkadot/util-crypto@6.4.1", "@polkadot/util-crypto@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/util-crypto/download/@polkadot/util-crypto-6.4.1.tgz#b567d824598bf8f4587364c1d7234bafe805f1c5" + integrity sha1-tWfYJFmL+PRYc2TB1yNLr+gF8cU= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "6.4.1" + "@polkadot/util" "6.4.1" + "@polkadot/wasm-crypto" "^4.0.2" + "@polkadot/x-randomvalues" "6.4.1" + base-x "^3.0.8" + base64-js "^1.5.1" + blakejs "^1.1.0" + bn.js "^4.11.9" + create-hash "^1.2.0" + elliptic "^6.5.4" + hash.js "^1.1.7" + js-sha3 "^0.8.0" + scryptsy "^2.1.0" + tweetnacl "^1.0.3" + xxhashjs "^0.2.2" + +"@polkadot/util@6.4.1", "@polkadot/util@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/util/download/@polkadot/util-6.4.1.tgz#f40fdc91ae49396d7930e37dbd31747769555b7a" + integrity sha1-9A/cka5JOW15MON9vTF0d2lVW3o= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-textdecoder" "6.4.1" + "@polkadot/x-textencoder" "6.4.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + camelcase "^5.3.1" + ip-regex "^4.3.0" + +"@polkadot/wasm-crypto-asmjs@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto-asmjs/download/@polkadot/wasm-crypto-asmjs-4.0.2.tgz#f42c353a64e1243841daf90e4bd54eff01a4e3cf" + integrity sha1-9Cw1OmThJDhB2vkOS9VO/wGk488= + dependencies: + "@babel/runtime" "^7.13.9" + +"@polkadot/wasm-crypto-wasm@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto-wasm/download/@polkadot/wasm-crypto-wasm-4.0.2.tgz#89f9e0a1e4d076784d4a42bea37fc8b06bdd8bb6" + integrity sha1-ifngoeTQdnhNSkK+o3/IsGvdi7Y= + dependencies: + "@babel/runtime" "^7.13.9" + +"@polkadot/wasm-crypto@^4.0.2": + version "4.0.2" + resolved "https://registry.nlark.com/@polkadot/wasm-crypto/download/@polkadot/wasm-crypto-4.0.2.tgz#9649057adee8383cc86433d107ba526b718c5a3b" + integrity sha1-lkkFet7oODzIZDPRB7pSa3GMWjs= + dependencies: + "@babel/runtime" "^7.13.9" + "@polkadot/wasm-crypto-asmjs" "^4.0.2" + "@polkadot/wasm-crypto-wasm" "^4.0.2" + +"@polkadot/x-fetch@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-fetch/download/@polkadot/x-fetch-6.4.1.tgz#12b9e6d42e71deceff44c324ba41baed879093c1" + integrity sha1-Ernm1C5x3s7/RMMkukG67YeQk8E= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + "@types/node-fetch" "^2.5.10" + node-fetch "^2.6.1" + +"@polkadot/x-global@6.4.1", "@polkadot/x-global@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-global/download/@polkadot/x-global-6.4.1.tgz#546e019e0c7f72a92a2612cacf90e8797c94709f" + integrity sha1-VG4Bngx/cqkqJhLKz5DoeXyUcJ8= + dependencies: + "@babel/runtime" "^7.14.0" + "@types/node-fetch" "^2.5.10" + node-fetch "^2.6.1" + +"@polkadot/x-randomvalues@6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-randomvalues/download/@polkadot/x-randomvalues-6.4.1.tgz#bb30d309e03ab63196504f53962e47ec7b97fac9" + integrity sha1-uzDTCeA6tjGWUE9Tli5H7HuX+sk= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + +"@polkadot/x-rxjs@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-rxjs/download/@polkadot/x-rxjs-6.4.1.tgz#c6e8cef8dc3f20b4c7468bd6976d843947da1f15" + integrity sha1-xujO+Nw/ILTHRovWl22EOUfaHxU= + dependencies: + "@babel/runtime" "^7.14.0" + rxjs "^6.6.7" + +"@polkadot/x-textdecoder@6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-textdecoder/download/@polkadot/x-textdecoder-6.4.1.tgz#f33b81267d8de313e851cc699b9dfa6e8f109cde" + integrity sha1-8zuBJn2N4xPoUcxpm536bo8QnN4= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + +"@polkadot/x-textencoder@6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-textencoder/download/@polkadot/x-textencoder-6.4.1.tgz#f34bcc1c1a60d723ea8ce84e10a1efbbf6c1371a" + integrity sha1-80vMHBpg1yPqjOhOEKHvu/bBNxo= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + +"@polkadot/x-ws@^6.4.1": + version "6.4.1" + resolved "https://registry.nlark.com/@polkadot/x-ws/download/@polkadot/x-ws-6.4.1.tgz#e03295907a50f74ec220d9dc9aa6d45370f67554" + integrity sha1-4DKVkHpQ907CINncmqbUU3D2dVQ= + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.4.1" + "@types/websocket" "^1.0.2" + websocket "^1.0.34" + +"@types/bn.js@^4.11.6": + version "4.11.6" + resolved "https://registry.nlark.com/@types/bn.js/download/@types/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c" + integrity sha1-wwbHDZNYquozzU7aCSp0K5UFlnw= + dependencies: + "@types/node" "*" + +"@types/node-fetch@^2.5.10": + version "2.5.10" + resolved "https://registry.nlark.com/@types/node-fetch/download/@types/node-fetch-2.5.10.tgz#9b4d4a0425562f9fcea70b12cb3fcdd946ca8132" + integrity sha1-m01KBCVWL5/OpwsSyz/N2UbKgTI= + dependencies: + "@types/node" "*" + form-data "^3.0.0" + +"@types/node@*", "@types/node@^15.3.1": + version "15.3.1" + resolved "https://registry.nlark.com/@types/node/download/@types/node-15.3.1.tgz?cache=0&sync_timestamp=1621463621315&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-15.3.1.tgz#23a06b87eedb524016616e886b116b8fdcb180af" + integrity sha1-I6Brh+7bUkAWYW6IaxFrj9yxgK8= + +"@types/websocket@^1.0.2": + version "1.0.2" + resolved "https://registry.nlark.com/@types/websocket/download/@types/websocket-1.0.2.tgz?cache=0&sync_timestamp=1621244924715&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fwebsocket%2Fdownload%2F%40types%2Fwebsocket-1.0.2.tgz#d2855c6a312b7da73ed16ba6781815bf30c6187a" + integrity sha1-0oVcajErfac+0WumeBgVvzDGGHo= + dependencies: + "@types/node" "*" + +"@types/yargs-parser@*": + version "20.2.0" + resolved "https://registry.nlark.com/@types/yargs-parser/download/@types/yargs-parser-20.2.0.tgz?cache=0&sync_timestamp=1621243984050&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fyargs-parser%2Fdownload%2F%40types%2Fyargs-parser-20.2.0.tgz#dd3e6699ba3237f0348cd085e4698780204842f9" + integrity sha1-3T5mmboyN/A0jNCF5GmHgCBIQvk= + +"@types/yargs@^16.0.2": + version "16.0.2" + resolved "https://registry.nlark.com/@types/yargs/download/@types/yargs-16.0.2.tgz#b860dfa2964425239bba37ab3178b0acd79b8a61" + integrity sha1-uGDfopZEJSObujerMXiwrNebimE= + dependencies: + "@types/yargs-parser" "*" + +ansi-regex@^5.0.0: + version "5.0.0" + resolved "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz?cache=0&sync_timestamp=1618553044693&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" + integrity sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U= + +ansi-styles@^4.0.0: + version "4.3.0" + resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= + dependencies: + color-convert "^2.0.1" + +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npm.taobao.org/arg/download/arg-4.1.3.tgz?cache=0&sync_timestamp=1605576950209&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Farg%2Fdownload%2Farg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk= + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.npm.taobao.org/asynckit/download/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +base-x@^3.0.8: + version "3.0.8" + resolved "https://registry.npm.taobao.org/base-x/download/base-x-3.0.8.tgz#1e1106c2537f0162e8b52474a557ebb09000018d" + integrity sha1-HhEGwlN/AWLotSR0pVfrsJAAAY0= + dependencies: + safe-buffer "^5.0.1" + +base64-js@^1.5.1: + version "1.5.1" + resolved "https://registry.nlark.com/base64-js/download/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha1-GxtEAWClv3rUC2UPCVljSBkDkwo= + +blakejs@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/blakejs/download/blakejs-1.1.0.tgz#69df92ef953aa88ca51a32df6ab1c54a155fc7a5" + integrity sha1-ad+S75U6qIylGjLfarHFShVfx6U= + +bn.js@^4.11.9: + version "4.12.0" + resolved "https://registry.npm.taobao.org/bn.js/download/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" + integrity sha1-d1s/J477uXGO7HNh9IP7Nvu/6og= + +brorand@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/brorand/download/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= + +buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.nlark.com/buffer-from/download/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + integrity sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8= + +bufferutil@^4.0.1: + version "4.0.3" + resolved "https://registry.npm.taobao.org/bufferutil/download/bufferutil-4.0.3.tgz?cache=0&sync_timestamp=1609618802475&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbufferutil%2Fdownload%2Fbufferutil-4.0.3.tgz#66724b756bed23cd7c28c4d306d7994f9943cc6b" + integrity sha1-ZnJLdWvtI818KMTTBteZT5lDzGs= + dependencies: + node-gyp-build "^4.2.0" + +camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA= + +cipher-base@^1.0.1: + version "1.0.4" + resolved "https://registry.nlark.com/cipher-base/download/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" + integrity sha1-h2Dk7MJy9MNjUy+SbYdKriwTl94= + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.nlark.com/cliui/download/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08= + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.nlark.com/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.nlark.com/combined-stream/download/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha1-w9RaizT9cwYxoRCoolIGgrMdWn8= + dependencies: + delayed-stream "~1.0.0" + +create-hash@^1.2.0: + version "1.2.0" + resolved "https://registry.nlark.com/create-hash/download/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + integrity sha1-iJB4rxGmN1a8+1m9IhmWvjqe8ZY= + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.npm.taobao.org/create-require/download/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha1-wdfo8eX2z8n/ZfnNNS03NIdWwzM= + +cuint@^0.2.2: + version "0.2.2" + resolved "https://registry.nlark.com/cuint/download/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b" + integrity sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs= + +d@1, d@^1.0.1: + version "1.0.1" + resolved "https://registry.npm.taobao.org/d/download/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" + integrity sha1-hpgJU3LVjb7jRv/Qxwk/mfj561o= + dependencies: + es5-ext "^0.10.50" + type "^1.0.1" + +debug@^2.2.0: + version "2.6.9" + resolved "https://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz?cache=0&sync_timestamp=1614330710870&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8= + dependencies: + ms "2.0.0" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.nlark.com/delayed-stream/download/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npm.taobao.org/diff/download/diff-4.0.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdiff%2Fdownload%2Fdiff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha1-YPOuy4nV+uUgwRqhnvwruYKq3n0= + +elliptic@^6.5.4: + version "6.5.4" + resolved "https://registry.nlark.com/elliptic/download/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" + integrity sha1-2jfOvTHnmhNn6UG1ku0fvr1Yq7s= + dependencies: + bn.js "^4.11.9" + brorand "^1.1.0" + hash.js "^1.0.0" + hmac-drbg "^1.0.1" + inherits "^2.0.4" + minimalistic-assert "^1.0.1" + minimalistic-crypto-utils "^1.0.1" + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.nlark.com/emoji-regex/download/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc= + +es5-ext@^0.10.35, es5-ext@^0.10.50: + version "0.10.53" + resolved "https://registry.npm.taobao.org/es5-ext/download/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1" + integrity sha1-k8WjrP2+8nUiCtcmRK0C7hg2jeE= + dependencies: + es6-iterator "~2.0.3" + es6-symbol "~3.1.3" + next-tick "~1.0.0" + +es6-iterator@~2.0.3: + version "2.0.3" + resolved "https://registry.nlark.com/es6-iterator/download/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" + integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c= + dependencies: + d "1" + es5-ext "^0.10.35" + es6-symbol "^3.1.1" + +es6-symbol@^3.1.1, es6-symbol@~3.1.3: + version "3.1.3" + resolved "https://registry.npm.taobao.org/es6-symbol/download/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" + integrity sha1-utXTwbzawoJp9MszHkMceKxwXRg= + dependencies: + d "^1.0.1" + ext "^1.1.2" + +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA= + +eventemitter3@^4.0.7: + version "4.0.7" + resolved "https://registry.npm.taobao.org/eventemitter3/download/eventemitter3-4.0.7.tgz?cache=0&sync_timestamp=1598517819668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feventemitter3%2Fdownload%2Feventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha1-Lem2j2Uo1WRO9cWVJqG0oHMGFp8= + +ext@^1.1.2: + version "1.4.0" + resolved "https://registry.npm.taobao.org/ext/download/ext-1.4.0.tgz#89ae7a07158f79d35517882904324077e4379244" + integrity sha1-ia56BxWPedNVF4gpBDJAd+Q3kkQ= + dependencies: + type "^2.0.0" + +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.nlark.com/form-data/download/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" + integrity sha1-69U3kbeDVqma+aMA1CgsTV65dV8= + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= + +hash-base@^3.0.0: + version "3.1.0" + resolved "https://registry.npm.taobao.org/hash-base/download/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" + integrity sha1-VcOB2eBuHSmXqIO0o/3f5/DTrzM= + dependencies: + inherits "^2.0.4" + readable-stream "^3.6.0" + safe-buffer "^5.2.0" + +hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7: + version "1.1.7" + resolved "https://registry.npm.taobao.org/hash.js/download/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" + integrity sha1-C6vKU46NTuSg+JiNaIZlN6ADz0I= + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.1" + +hmac-drbg@^1.0.1: + version "1.0.1" + resolved "https://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: + version "2.0.4" + resolved "https://registry.nlark.com/inherits/download/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w= + +ip-regex@^4.3.0: + version "4.3.0" + resolved "https://registry.nlark.com/ip-regex/download/ip-regex-4.3.0.tgz?cache=0&sync_timestamp=1618846943469&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fip-regex%2Fdownload%2Fip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" + integrity sha1-aHJ1qw9X+naXj/j03dyKI9WZDbU= + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.nlark.com/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0= + +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.npm.taobao.org/is-typedarray/download/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +js-sha3@^0.8.0: + version "0.8.0" + resolved "https://registry.npm.taobao.org/js-sha3/download/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" + integrity sha1-ubel2nOvrX3t0PjEY5VMveaBiEA= + +make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha1-LrLjfqm2fEiR9oShOUeZr0hM96I= + +md5.js@^1.3.4: + version "1.3.5" + resolved "https://registry.npm.taobao.org/md5.js/download/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" + integrity sha1-tdB7jjIW4+J81yjXL3DR5qNCAF8= + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +mime-db@1.47.0: + version "1.47.0" + resolved "https://registry.npm.taobao.org/mime-db/download/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" + integrity sha1-jLMT5Zll08Bc+/iYkVomevRqM1w= + +mime-types@^2.1.12: + version "2.1.30" + resolved "https://registry.npm.taobao.org/mime-types/download/mime-types-2.1.30.tgz?cache=0&sync_timestamp=1617340140598&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-types%2Fdownload%2Fmime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" + integrity sha1-bnvotMR5gl+F7WMmaV23P5MF1i0= + dependencies: + mime-db "1.47.0" + +minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.nlark.com/minimalistic-assert/download/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha1-LhlN4ERibUoQ5/f7wAznPoPk1cc= + +minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.nlark.com/minimalistic-crypto-utils/download/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&sync_timestamp=1607433899126&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + +next-tick@~1.0.0: + version "1.0.0" + resolved "https://registry.npm.taobao.org/next-tick/download/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" + integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= + +node-fetch@^2.6.1: + version "2.6.1" + resolved "https://registry.nlark.com/node-fetch/download/node-fetch-2.6.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fnode-fetch%2Fdownload%2Fnode-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" + integrity sha1-BFvTI2Mfdu0uK1VXM5RBa2OaAFI= + +node-gyp-build@^4.2.0: + version "4.2.3" + resolved "https://registry.npm.taobao.org/node-gyp-build/download/node-gyp-build-4.2.3.tgz#ce6277f853835f718829efb47db20f3e4d9c4739" + integrity sha1-zmJ3+FODX3GIKe+0fbIPPk2cRzk= + +readable-stream@^3.6.0: + version "3.6.0" + resolved "https://registry.nlark.com/readable-stream/download/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha1-M3u9o63AcGvT4CRCaihtS0sskZg= + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +regenerator-runtime@^0.13.4: + version "0.13.7" + resolved "https://registry.nlark.com/regenerator-runtime/download/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" + integrity sha1-ysLazIoepnX+qrrriugziYrkb1U= + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.nlark.com/require-directory/download/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +ripemd160@^2.0.1: + version "2.0.2" + resolved "https://registry.npm.taobao.org/ripemd160/download/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + integrity sha1-ocGm9iR1FXe6XQeRTLyShQWFiQw= + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +rxjs@^6.6.7: + version "6.6.7" + resolved "https://registry.nlark.com/rxjs/download/rxjs-6.6.7.tgz?cache=0&sync_timestamp=1620786704383&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frxjs%2Fdownload%2Frxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" + integrity sha1-kKwBisq/SRv2UEQjXVhjxNq4BMk= + dependencies: + tslib "^1.9.0" + +safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.nlark.com/safe-buffer/download/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY= + +scryptsy@^2.1.0: + version "2.1.0" + resolved "https://registry.npm.taobao.org/scryptsy/download/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" + integrity sha1-jR6NDAJbWP3SW2+poNyQXuj6p5A= + +sha.js@^2.4.0: + version "2.4.11" + resolved "https://registry.npm.taobao.org/sha.js/download/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + integrity sha1-N6XPC4HsvGlD3hCbopYNGyZYSuc= + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npm.taobao.org/source-map-support/download/source-map-support-0.5.19.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map-support%2Fdownload%2Fsource-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha1-qYti+G3K9PZzmWSMCFKRq56P7WE= + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0: + version "0.6.1" + resolved "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha1-dHIq8y6WFOnCh6jQu95IteLxomM= + +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.2" + resolved "https://registry.nlark.com/string-width/download/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" + integrity sha1-2v1PlVmnWFz7pSnGoKT3NIjr1MU= + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.nlark.com/string_decoder/download/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha1-QvEUWUpGzxqOMLCoT1bHjD7awh4= + dependencies: + safe-buffer "~5.2.0" + +strip-ansi@^6.0.0: + version "6.0.0" + resolved "https://registry.nlark.com/strip-ansi/download/strip-ansi-6.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" + integrity sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI= + dependencies: + ansi-regex "^5.0.0" + +ts-node@^9.1.1: + version "9.1.1" + resolved "https://registry.nlark.com/ts-node/download/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" + integrity sha1-UamkUKPpWUAb2l8ASnLVS5NtN20= + dependencies: + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + source-map-support "^0.5.17" + yn "3.1.1" + +tslib@^1.9.0: + version "1.14.1" + resolved "https://registry.nlark.com/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1618847097275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA= + +tweetnacl@^1.0.3: + version "1.0.3" + resolved "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" + integrity sha1-rAr3FoBFjYpjeNDQ0FCrFAfTVZY= + +type@^1.0.1: + version "1.2.0" + resolved "https://registry.npm.taobao.org/type/download/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" + integrity sha1-hI3XaY2vo+VKbEeedZxLw/GIR6A= + +type@^2.0.0: + version "2.5.0" + resolved "https://registry.npm.taobao.org/type/download/type-2.5.0.tgz#0a2e78c2e77907b252abe5f298c1b01c63f0db3d" + integrity sha1-Ci54wud5B7JSq+XymMGwHGPw2z0= + +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.npm.taobao.org/typedarray-to-buffer/download/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha1-qX7nqf9CaRufeD/xvFES/j/KkIA= + dependencies: + is-typedarray "^1.0.0" + +typescript@^4.2.4: + version "4.2.4" + resolved "https://registry.nlark.com/typescript/download/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961" + integrity sha1-hhC1l0feAo/aiYqK7w4QPxVtCWE= + +utf-8-validate@^5.0.2: + version "5.0.5" + resolved "https://registry.nlark.com/utf-8-validate/download/utf-8-validate-5.0.5.tgz?cache=0&sync_timestamp=1620067993025&other_urls=https%3A%2F%2Fregistry.nlark.com%2Futf-8-validate%2Fdownload%2Futf-8-validate-5.0.5.tgz#dd32c2e82c72002dc9f02eb67ba6761f43456ca1" + integrity sha1-3TLC6CxyAC3J8C62e6Z2H0NFbKE= + dependencies: + node-gyp-build "^4.2.0" + +util-deprecate@^1.0.1: + version "1.0.2" + resolved "https://registry.npm.taobao.org/util-deprecate/download/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +websocket@^1.0.34: + version "1.0.34" + resolved "https://registry.npm.taobao.org/websocket/download/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" + integrity sha1-K9wmAsCL8sgiU7cwZVwO99yrMRE= + dependencies: + bufferutil "^4.0.1" + debug "^2.2.0" + es5-ext "^0.10.50" + typedarray-to-buffer "^3.1.5" + utf-8-validate "^5.0.2" + yaeti "^0.0.6" + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM= + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +xxhashjs@^0.2.2: + version "0.2.2" + resolved "https://registry.nlark.com/xxhashjs/download/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8" + integrity sha1-imJRVnYhocRqWuIE2gJJx/jKqdg= + dependencies: + cuint "^0.2.2" + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.nlark.com/y18n/download/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha1-f0k00PfKjFb5UxSTndzS3ZHOHVU= + +yaeti@^0.0.6: + version "0.0.6" + resolved "https://registry.npm.taobao.org/yaeti/download/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" + integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc= + +yargs-parser@^20.2.2: + version "20.2.7" + resolved "https://registry.nlark.com/yargs-parser/download/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" + integrity sha1-Yd+FwRPt+1p6TjbriqYO9CPLyQo= + +yargs@^17.0.1: + version "17.0.1" + resolved "https://registry.nlark.com/yargs/download/yargs-17.0.1.tgz?cache=0&sync_timestamp=1620086644940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-17.0.1.tgz#6a1ced4ed5ee0b388010ba9fd67af83b9362e0bb" + integrity sha1-ahztTtXuCziAELqf1nr4O5Ni4Ls= + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" + +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npm.taobao.org/yn/download/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A= diff --git a/js/package.json b/js/package.json new file mode 100644 index 0000000000..b6fbbb39dc --- /dev/null +++ b/js/package.json @@ -0,0 +1,4 @@ +{ + "private": true, + "workspaces": ["api", "e2e", "launch", "pint-types-bundle"] +} diff --git a/pint-types-bundle/.gitignore b/js/pint-types-bundle/.gitignore similarity index 100% rename from pint-types-bundle/.gitignore rename to js/pint-types-bundle/.gitignore diff --git a/js/pint-types-bundle/LICENSE b/js/pint-types-bundle/LICENSE new file mode 120000 index 0000000000..aa672e4b87 --- /dev/null +++ b/js/pint-types-bundle/LICENSE @@ -0,0 +1 @@ +/Users/clearloop/code/PINT/LICENSE \ No newline at end of file diff --git a/pint-types-bundle/README.md b/js/pint-types-bundle/README.md similarity index 100% rename from pint-types-bundle/README.md rename to js/pint-types-bundle/README.md diff --git a/pint-types-bundle/index.ts b/js/pint-types-bundle/index.ts similarity index 100% rename from pint-types-bundle/index.ts rename to js/pint-types-bundle/index.ts diff --git a/pint-types-bundle/package.json b/js/pint-types-bundle/package.json similarity index 100% rename from pint-types-bundle/package.json rename to js/pint-types-bundle/package.json diff --git a/pint-types-bundle/tsconfig.json b/js/pint-types-bundle/tsconfig.json similarity index 100% rename from pint-types-bundle/tsconfig.json rename to js/pint-types-bundle/tsconfig.json diff --git a/pint-types-bundle/yarn.lock b/js/pint-types-bundle/yarn.lock similarity index 100% rename from pint-types-bundle/yarn.lock rename to js/pint-types-bundle/yarn.lock diff --git a/yarn.lock b/js/yarn.lock similarity index 96% rename from yarn.lock rename to js/yarn.lock index e554dd9f58..0f882017f2 100644 --- a/yarn.lock +++ b/js/yarn.lock @@ -65,7 +65,7 @@ "@polkadot/keyring@^6.3.1", "@polkadot/keyring@^6.5.1": version "6.5.1" - resolved "https://registry.nlark.com/@polkadot/keyring/download/@polkadot/keyring-6.5.1.tgz?cache=0&sync_timestamp=1622018571337&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Fkeyring%2Fdownload%2F%40polkadot%2Fkeyring-6.5.1.tgz#6ef650514cf7a890bd1e04ad793574ed4354d2ff" + resolved "https://registry.nlark.com/@polkadot/keyring/download/@polkadot/keyring-6.5.1.tgz#6ef650514cf7a890bd1e04ad793574ed4354d2ff" integrity sha1-bvZQUUz3qJC9HgSteTV07UNU0v8= dependencies: "@babel/runtime" "^7.14.0" @@ -74,7 +74,7 @@ "@polkadot/metadata@4.11.2": version "4.11.2" - resolved "https://registry.nlark.com/@polkadot/metadata/download/@polkadot/metadata-4.11.2.tgz#eacf7e1a720a4b32e48e0f295d0fb7e0099d75d2" + resolved "https://registry.nlark.com/@polkadot/metadata/download/@polkadot/metadata-4.11.2.tgz?cache=0&sync_timestamp=1622107239041&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Fmetadata%2Fdownload%2F%40polkadot%2Fmetadata-4.11.2.tgz#eacf7e1a720a4b32e48e0f295d0fb7e0099d75d2" integrity sha1-6s9+GnIKSzLkjg8pXQ+34AmdddI= dependencies: "@babel/runtime" "^7.14.0" @@ -86,7 +86,7 @@ "@polkadot/networks@6.5.1", "@polkadot/networks@^6.5.1": version "6.5.1" - resolved "https://registry.nlark.com/@polkadot/networks/download/@polkadot/networks-6.5.1.tgz?cache=0&sync_timestamp=1622018560012&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Fnetworks%2Fdownload%2F%40polkadot%2Fnetworks-6.5.1.tgz#97c29922a924286919927149f5ba869026d07a53" + resolved "https://registry.nlark.com/@polkadot/networks/download/@polkadot/networks-6.5.1.tgz#97c29922a924286919927149f5ba869026d07a53" integrity sha1-l8KZIqkkKGkZknFJ9bqGkCbQelM= dependencies: "@babel/runtime" "^7.14.0" @@ -144,7 +144,7 @@ "@polkadot/util-crypto@6.5.1", "@polkadot/util-crypto@^6.5.1": version "6.5.1" - resolved "https://registry.nlark.com/@polkadot/util-crypto/download/@polkadot/util-crypto-6.5.1.tgz?cache=0&sync_timestamp=1622018598648&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Futil-crypto%2Fdownload%2F%40polkadot%2Futil-crypto-6.5.1.tgz#d0b63eaa2372665fd2b0610c36444962bc751b68" + resolved "https://registry.nlark.com/@polkadot/util-crypto/download/@polkadot/util-crypto-6.5.1.tgz#d0b63eaa2372665fd2b0610c36444962bc751b68" integrity sha1-0LY+qiNyZl/SsGEMNkRJYrx1G2g= dependencies: "@babel/runtime" "^7.14.0" @@ -212,7 +212,7 @@ "@polkadot/x-global@6.5.1", "@polkadot/x-global@^6.5.1": version "6.5.1" - resolved "https://registry.nlark.com/@polkadot/x-global/download/@polkadot/x-global-6.5.1.tgz?cache=0&sync_timestamp=1622018585800&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Fx-global%2Fdownload%2F%40polkadot%2Fx-global-6.5.1.tgz#cdc42c200cd0182845284d237c3cd55fbf89898d" + resolved "https://registry.nlark.com/@polkadot/x-global/download/@polkadot/x-global-6.5.1.tgz#cdc42c200cd0182845284d237c3cd55fbf89898d" integrity sha1-zcQsIAzQGChFKE0jfDzVX7+JiY0= dependencies: "@babel/runtime" "^7.14.0" @@ -229,7 +229,7 @@ "@polkadot/x-rxjs@^6.5.1": version "6.5.1" - resolved "https://registry.nlark.com/@polkadot/x-rxjs/download/@polkadot/x-rxjs-6.5.1.tgz?cache=0&sync_timestamp=1622018605319&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Fx-rxjs%2Fdownload%2F%40polkadot%2Fx-rxjs-6.5.1.tgz#4a4e3a6743bf15cc086edc57b4ee4d800274c073" + resolved "https://registry.nlark.com/@polkadot/x-rxjs/download/@polkadot/x-rxjs-6.5.1.tgz#4a4e3a6743bf15cc086edc57b4ee4d800274c073" integrity sha1-Sk46Z0O/FcwIbtxXtO5NgAJ0wHM= dependencies: "@babel/runtime" "^7.14.0" @@ -253,7 +253,7 @@ "@polkadot/x-ws@^6.5.1": version "6.5.1" - resolved "https://registry.nlark.com/@polkadot/x-ws/download/@polkadot/x-ws-6.5.1.tgz?cache=0&sync_timestamp=1622018605001&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40polkadot%2Fx-ws%2Fdownload%2F%40polkadot%2Fx-ws-6.5.1.tgz#662076ee835108381e83b7f6b1da3e8c60d27a70" + resolved "https://registry.nlark.com/@polkadot/x-ws/download/@polkadot/x-ws-6.5.1.tgz#662076ee835108381e83b7f6b1da3e8c60d27a70" integrity sha1-ZiB27oNRCDgeg7f2sdo+jGDSenA= dependencies: "@babel/runtime" "^7.14.0" @@ -981,7 +981,7 @@ typedarray-to-buffer@^3.1.5: typescript@^4.2.4: version "4.3.2" - resolved "https://registry.nlark.com/typescript/download/typescript-4.3.2.tgz?cache=0&sync_timestamp=1622050396175&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftypescript%2Fdownload%2Ftypescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805" + resolved "https://registry.nlark.com/typescript/download/typescript-4.3.2.tgz?cache=0&sync_timestamp=1622100951079&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftypescript%2Fdownload%2Ftypescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805" integrity sha1-OZqxiqxFgC1vJJjeUFT8u+cWqAU= utf-8-validate@^5.0.2: diff --git a/package.json b/package.json deleted file mode 100644 index 5fef3b426a..0000000000 --- a/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "private": true, - "workspaces": ["pint-types-bundle", "e2e"] -} diff --git a/pint-types-bundle/LICENSE b/pint-types-bundle/LICENSE deleted file mode 120000 index ea5b60640b..0000000000 --- a/pint-types-bundle/LICENSE +++ /dev/null @@ -1 +0,0 @@ -../LICENSE \ No newline at end of file From 1a51004c974c5fb22542248c8dbea69b6a85e3b0 Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 27 May 2021 21:27:31 +0800 Subject: [PATCH 18/74] feat(js): add polkadot-launch as submodule --- js/.prettierrc | 17 ++++ js/api/index.ts | 1 - js/api/package.json | 48 +++++----- js/api/src/api.ts | 49 +++++----- js/api/src/pallets/assetIndex.ts | 2 +- js/api/src/pallets/index.ts | 2 +- js/api/src/result.ts | 34 +++---- js/e2e/README.md | 3 +- js/e2e/index.ts | 16 +++- js/e2e/package.json | 11 +-- js/e2e/src/api.ts | 37 -------- js/e2e/src/index.ts | 1 - js/e2e/src/pallets/assetIndex.ts | 8 -- js/e2e/src/pallets/index.ts | 17 ---- js/e2e/src/result.ts | 25 ----- js/e2e/src/utils.ts | 1 - js/launch/README.md | 3 +- js/launch/index.ts | 45 ++++++++- js/launch/package.json | 9 +- js/launch/src/api.ts | 37 -------- js/launch/src/index.ts | 1 - js/launch/src/pallets/assetIndex.ts | 8 -- js/launch/src/pallets/index.ts | 17 ---- js/launch/src/result.ts | 25 ----- js/launch/src/utils.ts | 1 - js/package.json | 2 +- js/pint-types-bundle/LICENSE | 1 - js/pint-types-bundle/index.ts | 52 +++++----- js/pint-types-bundle/package.json | 7 +- js/polkadot-launch | 1 + js/yarn.lock | 142 ++++++++++++++++++++++++---- 31 files changed, 304 insertions(+), 319 deletions(-) create mode 100644 js/.prettierrc delete mode 100644 js/api/index.ts delete mode 100644 js/e2e/src/api.ts delete mode 100644 js/e2e/src/index.ts delete mode 100644 js/e2e/src/pallets/assetIndex.ts delete mode 100644 js/e2e/src/pallets/index.ts delete mode 100644 js/e2e/src/result.ts delete mode 100644 js/e2e/src/utils.ts delete mode 100644 js/launch/src/api.ts delete mode 100644 js/launch/src/index.ts delete mode 100644 js/launch/src/pallets/assetIndex.ts delete mode 100644 js/launch/src/pallets/index.ts delete mode 100644 js/launch/src/result.ts delete mode 100644 js/launch/src/utils.ts delete mode 120000 js/pint-types-bundle/LICENSE create mode 160000 js/polkadot-launch diff --git a/js/.prettierrc b/js/.prettierrc new file mode 100644 index 0000000000..c9c98c1fb1 --- /dev/null +++ b/js/.prettierrc @@ -0,0 +1,17 @@ +{ + "tabWidth": 4, + "overrides": [ + { + "files": "*.json", + "options": { + "tabWidth": 2 + } + }, + { + "files": ".prettierrc", + "options": { + "tabWidth": 2 + } + } + ] +} diff --git a/js/api/index.ts b/js/api/index.ts deleted file mode 100644 index c574589b7f..0000000000 --- a/js/api/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { Api } from "./src/index"; diff --git a/js/api/package.json b/js/api/package.json index c235f40908..fe6b549ec0 100644 --- a/js/api/package.json +++ b/js/api/package.json @@ -1,26 +1,26 @@ { - "name": "@pint/api", - "version": "1.0.0", - "description": "E2E tests for PINT", - "main": "index.js", - "repository": "https://github.com/ChainSafe/PINT", - "author": "ChainSafe", - "license": "GNU-v3", - "private": true, - "devDependencies": { - "@types/node": "^15.3.1", - "ts-node": "^9.1.1", - "tslint": "^6.1.3", - "typescript": "^4.2.4" - }, - "dependencies": { - "@pint/types": "^1", - "@polkadot/api": "^4.10.1", - "@polkadot/keyring": "^6.5.1", - "yargs": "^17.0.1" - }, - "scripts": { - "build": "tsc --strict", - "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" - } + "name": "@pint/api", + "version": "1.0.0", + "description": "E2E tests for PINT", + "main": "lib/src/index.js", + "repository": "https://github.com/ChainSafe/PINT", + "author": "ChainSafe", + "license": "GNU-v3", + "private": true, + "devDependencies": { + "@types/node": "^15.3.1", + "ts-node": "^9.1.1", + "tslint": "^6.1.3", + "typescript": "^4.2.4" + }, + "dependencies": { + "@pint/types": "^1", + "@polkadot/api": "^4.10.1", + "@polkadot/keyring": "^6.5.1", + "yargs": "^17.0.1" + }, + "scripts": { + "build": "tsc --strict", + "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" + } } diff --git a/js/api/src/api.ts b/js/api/src/api.ts index 5018e443f4..2c9d4e6465 100644 --- a/js/api/src/api.ts +++ b/js/api/src/api.ts @@ -7,31 +7,34 @@ import { typesBundle } from "@pint/types"; * Tester */ export class Api { - public api: ApiPromise; - public pair: KeyringPair; + public api: ApiPromise; + public pair: KeyringPair; - /** - * Init API with provided config - */ - static async init( - // PINT websocket port - wsPort: string = "ws://0.0.0.0:9988", - // Testing account - uri: string = "//Alice" - ): Promise { - // init api - const provider = new WsProvider(wsPort); - const api = await ApiPromise.create({ provider, typesBundle: typesBundle }); + /** + * Init API with provided config + */ + static async init( + // PINT websocket port + wsPort: string = "ws://0.0.0.0:9988", + // Testing account + uri: string = "//Alice" + ): Promise { + // init api + const provider = new WsProvider(wsPort); + const api = await ApiPromise.create({ + provider, + typesBundle: typesBundle, + }); - // init keyring - const keyring = new Keyring({ type: "sr25519" }); - const pair = keyring.addFromUri(uri); + // init keyring + const keyring = new Keyring({ type: "sr25519" }); + const pair = keyring.addFromUri(uri); - return new Api(api, pair); - } + return new Api(api, pair); + } - constructor(api: ApiPromise, pair: KeyringPair) { - this.api = api; - this.pair = pair; - } + constructor(api: ApiPromise, pair: KeyringPair) { + this.api = api; + this.pair = pair; + } } diff --git a/js/api/src/pallets/assetIndex.ts b/js/api/src/pallets/assetIndex.ts index 6c6cc8452f..a837e1b685 100644 --- a/js/api/src/pallets/assetIndex.ts +++ b/js/api/src/pallets/assetIndex.ts @@ -4,5 +4,5 @@ import { Api } from "../api"; import { Pallet, Call } from "./index"; export const addAsset: Call = (api: Api): Result => { - return new Result(null); + return new Result(null); }; diff --git a/js/api/src/pallets/index.ts b/js/api/src/pallets/index.ts index f7527bdc84..4a49ce43a7 100644 --- a/js/api/src/pallets/index.ts +++ b/js/api/src/pallets/index.ts @@ -11,7 +11,7 @@ export type Call = (api: Api, ...args: any[]) => Result; * Pallet */ export interface Pallet { - [index: string]: Call; + [index: string]: Call; } export default {}; diff --git a/js/api/src/result.ts b/js/api/src/result.ts index f8342b7b3c..6e0408fe56 100644 --- a/js/api/src/result.ts +++ b/js/api/src/result.ts @@ -1,25 +1,25 @@ // result error export class Result { - inner: T | Error; + inner: T | Error; - constructor(inner: T | Error, reason: string | undefined = undefined) { - this.inner = inner; - if (inner instanceof Error) { - (this.inner as Error).message = String(reason); + constructor(inner: T | Error, reason: string | undefined = undefined) { + this.inner = inner; + if (inner instanceof Error) { + (this.inner as Error).message = String(reason); + } } - } - /** - * resolve inner value or throw Error - * - * @returns {T} - */ - unwrap(): T { - if (this.inner instanceof Error) { - throw this.inner as Error; - } + /** + * resolve inner value or throw Error + * + * @returns {T} + */ + unwrap(): T { + if (this.inner instanceof Error) { + throw this.inner as Error; + } - return this.inner as T; - } + return this.inner as T; + } } diff --git a/js/e2e/README.md b/js/e2e/README.md index 2b10559405..826b6b1142 100644 --- a/js/e2e/README.md +++ b/js/e2e/README.md @@ -1,6 +1,7 @@ # E2E -E2E tests for PINT. +E2E tests for PINT + ## LICENSE diff --git a/js/e2e/index.ts b/js/e2e/index.ts index baaa62f372..cd6a62e3fb 100644 --- a/js/e2e/index.ts +++ b/js/e2e/index.ts @@ -1,3 +1,13 @@ -(() => { - console.log("hello"); -})(); +/** + * E2E tests for PINT + */ + +/** + * Testcase + */ +interface Tests { + [fn: string]: (...args: any[]) => Promise; +} + +// Run tests +const run = async (tests: Tests): Promise => {}; diff --git a/js/e2e/package.json b/js/e2e/package.json index 79369195ec..c64c9c2606 100644 --- a/js/e2e/package.json +++ b/js/e2e/package.json @@ -1,5 +1,5 @@ { - "name": "pint-e2e", + "name": "@pint/e2e", "version": "1.0.0", "description": "E2E tests for PINT", "main": "index.js", @@ -9,17 +9,10 @@ "private": true, "devDependencies": { "@types/node": "^15.3.1", - "@types/yargs": "^16.0.2", - "ts-node": "^9.1.1", "tslint": "^6.1.3", "typescript": "^4.2.4" }, - "dependencies": { - "@pint/types": "^1", - "@polkadot/api": "^4.10.1", - "@polkadot/keyring": "^6.5.1", - "yargs": "^17.0.1" - }, + "dependencies": {}, "scripts": { "build": "tsc --strict", "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" diff --git a/js/e2e/src/api.ts b/js/e2e/src/api.ts deleted file mode 100644 index 5018e443f4..0000000000 --- a/js/e2e/src/api.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { ApiPromise, WsProvider } from "@polkadot/api"; -import { Keyring } from "@polkadot/keyring"; -import { KeyringPair } from "@polkadot/keyring/types"; -import { typesBundle } from "@pint/types"; - -/** - * Tester - */ -export class Api { - public api: ApiPromise; - public pair: KeyringPair; - - /** - * Init API with provided config - */ - static async init( - // PINT websocket port - wsPort: string = "ws://0.0.0.0:9988", - // Testing account - uri: string = "//Alice" - ): Promise { - // init api - const provider = new WsProvider(wsPort); - const api = await ApiPromise.create({ provider, typesBundle: typesBundle }); - - // init keyring - const keyring = new Keyring({ type: "sr25519" }); - const pair = keyring.addFromUri(uri); - - return new Api(api, pair); - } - - constructor(api: ApiPromise, pair: KeyringPair) { - this.api = api; - this.pair = pair; - } -} diff --git a/js/e2e/src/index.ts b/js/e2e/src/index.ts deleted file mode 100644 index c5c02c886d..0000000000 --- a/js/e2e/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -/* exports */ diff --git a/js/e2e/src/pallets/assetIndex.ts b/js/e2e/src/pallets/assetIndex.ts deleted file mode 100644 index 6c6cc8452f..0000000000 --- a/js/e2e/src/pallets/assetIndex.ts +++ /dev/null @@ -1,8 +0,0 @@ -// tests for pallet asset-index -import { Result } from "../result"; -import { Api } from "../api"; -import { Pallet, Call } from "./index"; - -export const addAsset: Call = (api: Api): Result => { - return new Result(null); -}; diff --git a/js/e2e/src/pallets/index.ts b/js/e2e/src/pallets/index.ts deleted file mode 100644 index f7527bdc84..0000000000 --- a/js/e2e/src/pallets/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* exports */ -import { Result } from "../result"; -import { Api } from "../api"; - -/** - * Call - */ -export type Call = (api: Api, ...args: any[]) => Result; - -/** - * Pallet - */ -export interface Pallet { - [index: string]: Call; -} - -export default {}; diff --git a/js/e2e/src/result.ts b/js/e2e/src/result.ts deleted file mode 100644 index f8342b7b3c..0000000000 --- a/js/e2e/src/result.ts +++ /dev/null @@ -1,25 +0,0 @@ -// result error - -export class Result { - inner: T | Error; - - constructor(inner: T | Error, reason: string | undefined = undefined) { - this.inner = inner; - if (inner instanceof Error) { - (this.inner as Error).message = String(reason); - } - } - - /** - * resolve inner value or throw Error - * - * @returns {T} - */ - unwrap(): T { - if (this.inner instanceof Error) { - throw this.inner as Error; - } - - return this.inner as T; - } -} diff --git a/js/e2e/src/utils.ts b/js/e2e/src/utils.ts deleted file mode 100644 index ab4e13cd67..0000000000 --- a/js/e2e/src/utils.ts +++ /dev/null @@ -1 +0,0 @@ -/* utils */ diff --git a/js/launch/README.md b/js/launch/README.md index 2b10559405..826b6b1142 100644 --- a/js/launch/README.md +++ b/js/launch/README.md @@ -1,6 +1,7 @@ # E2E -E2E tests for PINT. +E2E tests for PINT + ## LICENSE diff --git a/js/launch/index.ts b/js/launch/index.ts index baaa62f372..d15591b133 100644 --- a/js/launch/index.ts +++ b/js/launch/index.ts @@ -1,3 +1,42 @@ -(() => { - console.log("hello"); -})(); +/** + * pint-launch + */ +import { spawn, spawnSync, execSync } from "child_process"; +import path from "path"; + +/** + * Launch PINT locally or using docker in CI + */ +async function launch(docker: boolean = false) { + if (!docker) { + await local(); + } +} + +/** + * Launch PINT locally + * + * required bins: + * - npm + * - node + */ +async function local() { + // build polkadot-launch + execSync("npm run build", { + cwd: path.resolve(__dirname, "../polkadot-launch"), + stdio: "inherit", + }); + spawnSync( + "node", + [ + path.resolve(__dirname, "../polkadot-launch/dist/index.js"), + path.resolve(__dirname, "../../config.json"), + ], + { + stdio: "inherit", + } + ); +} +// async function docker() {} + +launch(); diff --git a/js/launch/package.json b/js/launch/package.json index 79369195ec..fa9de39e7e 100644 --- a/js/launch/package.json +++ b/js/launch/package.json @@ -1,5 +1,5 @@ { - "name": "pint-e2e", + "name": "@pint/launch", "version": "1.0.0", "description": "E2E tests for PINT", "main": "index.js", @@ -9,16 +9,11 @@ "private": true, "devDependencies": { "@types/node": "^15.3.1", - "@types/yargs": "^16.0.2", - "ts-node": "^9.1.1", "tslint": "^6.1.3", "typescript": "^4.2.4" }, "dependencies": { - "@pint/types": "^1", - "@polkadot/api": "^4.10.1", - "@polkadot/keyring": "^6.5.1", - "yargs": "^17.0.1" + "polkadot-launch": "1.5.0" }, "scripts": { "build": "tsc --strict", diff --git a/js/launch/src/api.ts b/js/launch/src/api.ts deleted file mode 100644 index 5018e443f4..0000000000 --- a/js/launch/src/api.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { ApiPromise, WsProvider } from "@polkadot/api"; -import { Keyring } from "@polkadot/keyring"; -import { KeyringPair } from "@polkadot/keyring/types"; -import { typesBundle } from "@pint/types"; - -/** - * Tester - */ -export class Api { - public api: ApiPromise; - public pair: KeyringPair; - - /** - * Init API with provided config - */ - static async init( - // PINT websocket port - wsPort: string = "ws://0.0.0.0:9988", - // Testing account - uri: string = "//Alice" - ): Promise { - // init api - const provider = new WsProvider(wsPort); - const api = await ApiPromise.create({ provider, typesBundle: typesBundle }); - - // init keyring - const keyring = new Keyring({ type: "sr25519" }); - const pair = keyring.addFromUri(uri); - - return new Api(api, pair); - } - - constructor(api: ApiPromise, pair: KeyringPair) { - this.api = api; - this.pair = pair; - } -} diff --git a/js/launch/src/index.ts b/js/launch/src/index.ts deleted file mode 100644 index c5c02c886d..0000000000 --- a/js/launch/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -/* exports */ diff --git a/js/launch/src/pallets/assetIndex.ts b/js/launch/src/pallets/assetIndex.ts deleted file mode 100644 index 6c6cc8452f..0000000000 --- a/js/launch/src/pallets/assetIndex.ts +++ /dev/null @@ -1,8 +0,0 @@ -// tests for pallet asset-index -import { Result } from "../result"; -import { Api } from "../api"; -import { Pallet, Call } from "./index"; - -export const addAsset: Call = (api: Api): Result => { - return new Result(null); -}; diff --git a/js/launch/src/pallets/index.ts b/js/launch/src/pallets/index.ts deleted file mode 100644 index f7527bdc84..0000000000 --- a/js/launch/src/pallets/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* exports */ -import { Result } from "../result"; -import { Api } from "../api"; - -/** - * Call - */ -export type Call = (api: Api, ...args: any[]) => Result; - -/** - * Pallet - */ -export interface Pallet { - [index: string]: Call; -} - -export default {}; diff --git a/js/launch/src/result.ts b/js/launch/src/result.ts deleted file mode 100644 index f8342b7b3c..0000000000 --- a/js/launch/src/result.ts +++ /dev/null @@ -1,25 +0,0 @@ -// result error - -export class Result { - inner: T | Error; - - constructor(inner: T | Error, reason: string | undefined = undefined) { - this.inner = inner; - if (inner instanceof Error) { - (this.inner as Error).message = String(reason); - } - } - - /** - * resolve inner value or throw Error - * - * @returns {T} - */ - unwrap(): T { - if (this.inner instanceof Error) { - throw this.inner as Error; - } - - return this.inner as T; - } -} diff --git a/js/launch/src/utils.ts b/js/launch/src/utils.ts deleted file mode 100644 index ab4e13cd67..0000000000 --- a/js/launch/src/utils.ts +++ /dev/null @@ -1 +0,0 @@ -/* utils */ diff --git a/js/package.json b/js/package.json index b6fbbb39dc..53d4a50c67 100644 --- a/js/package.json +++ b/js/package.json @@ -1,4 +1,4 @@ { "private": true, - "workspaces": ["api", "e2e", "launch", "pint-types-bundle"] + "workspaces": ["api", "e2e", "launch", "pint-types-bundle", "polkadot-launch"] } diff --git a/js/pint-types-bundle/LICENSE b/js/pint-types-bundle/LICENSE deleted file mode 120000 index aa672e4b87..0000000000 --- a/js/pint-types-bundle/LICENSE +++ /dev/null @@ -1 +0,0 @@ -/Users/clearloop/code/PINT/LICENSE \ No newline at end of file diff --git a/js/pint-types-bundle/index.ts b/js/pint-types-bundle/index.ts index 3d771484fb..0182cb3f8f 100644 --- a/js/pint-types-bundle/index.ts +++ b/js/pint-types-bundle/index.ts @@ -1,35 +1,35 @@ import { - OverrideBundleDefinition, - OverrideBundleType, + OverrideBundleDefinition, + OverrideBundleType, } from "@polkadot/types/types"; export const definitions = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: "MultiAddress", - LookupSource: "MultiAddress", - AssetId: "u32", - AccountIdFor: "AccountId", - Balance: "u128", - BalanceFor: "Balance", - FeedId: "u64", - HashFor: "Hash", - AssetAvailability: { - _enum: { - Liquid: "MultiLocation", - Saft: null, - }, + types: [ + { + // on all versions + minmax: [0, undefined], + types: { + Address: "MultiAddress", + LookupSource: "MultiAddress", + AssetId: "u32", + AccountIdFor: "AccountId", + Balance: "u128", + BalanceFor: "Balance", + FeedId: "u64", + HashFor: "Hash", + AssetAvailability: { + _enum: { + Liquid: "MultiLocation", + Saft: null, + }, + }, + }, }, - }, - }, - ], + ], } as OverrideBundleDefinition; export const typesBundle = { - spec: { - pint: definitions, - }, + spec: { + pint: definitions, + }, } as OverrideBundleType; diff --git a/js/pint-types-bundle/package.json b/js/pint-types-bundle/package.json index 214d25efab..ceaf95da32 100644 --- a/js/pint-types-bundle/package.json +++ b/js/pint-types-bundle/package.json @@ -8,12 +8,7 @@ "scripts": { "build": "tsc" }, - "keywords": [ - "pint", - "types", - "polkadot", - "api" - ], + "keywords": ["pint", "types", "polkadot", "api"], "repository": { "type": "git", "url": "git+https://github.com/ChainSafe/PINT.git" diff --git a/js/polkadot-launch b/js/polkadot-launch new file mode 160000 index 0000000000..f161a73a65 --- /dev/null +++ b/js/polkadot-launch @@ -0,0 +1 @@ +Subproject commit f161a73a659678bafa758bf7cee077961f410b6a diff --git a/js/yarn.lock b/js/yarn.lock index 0f882017f2..a8f5b21e90 100644 --- a/js/yarn.lock +++ b/js/yarn.lock @@ -44,7 +44,7 @@ "@polkadot/x-rxjs" "^6.5.1" bn.js "^4.11.9" -"@polkadot/api@4.11.2", "@polkadot/api@^4.10.1": +"@polkadot/api@4.11.2", "@polkadot/api@^4.10.1", "@polkadot/api@^4.11.1": version "4.11.2" resolved "https://registry.nlark.com/@polkadot/api/download/@polkadot/api-4.11.2.tgz#5d531fbc30f5b0315e329f71052b9abf8c8952a0" integrity sha1-XVMfvDD1sDFeMp9xBSuav4yJUqA= @@ -288,18 +288,6 @@ dependencies: "@types/node" "*" -"@types/yargs-parser@*": - version "20.2.0" - resolved "https://registry.nlark.com/@types/yargs-parser/download/@types/yargs-parser-20.2.0.tgz?cache=0&sync_timestamp=1621243984050&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fyargs-parser%2Fdownload%2F%40types%2Fyargs-parser-20.2.0.tgz#dd3e6699ba3237f0348cd085e4698780204842f9" - integrity sha1-3T5mmboyN/A0jNCF5GmHgCBIQvk= - -"@types/yargs@^16.0.2": - version "16.0.3" - resolved "https://registry.nlark.com/@types/yargs/download/@types/yargs-16.0.3.tgz#4b6d35bb8e680510a7dc2308518a80ee1ef27e01" - integrity sha1-S201u45oBRCn3CMIUYqA7h7yfgE= - dependencies: - "@types/yargs-parser" "*" - ansi-regex@^5.0.0: version "5.0.0" resolved "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz?cache=0&sync_timestamp=1618553044693&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" @@ -393,7 +381,7 @@ builtin-modules@^1.1.1: resolved "https://registry.npm.taobao.org/builtin-modules/download/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" integrity sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8= -camelcase@^5.3.1: +camelcase@^5.0.0, camelcase@^5.3.1: version "5.3.1" resolved "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA= @@ -415,6 +403,15 @@ cipher-base@^1.0.1: inherits "^2.0.1" safe-buffer "^5.0.1" +cliui@^6.0.0: + version "6.0.0" + resolved "https://registry.npm.taobao.org/cliui/download/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" + integrity sha1-UR1wLAxOQcoVbX0OlgIfI+EyJbE= + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^6.2.0" + cliui@^7.0.2: version "7.0.4" resolved "https://registry.nlark.com/cliui/download/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" @@ -501,6 +498,11 @@ debug@^2.2.0: dependencies: ms "2.0.0" +decamelize@^1.2.0: + version "1.2.0" + resolved "https://registry.npm.taobao.org/decamelize/download/decamelize-1.2.0.tgz?cache=0&sync_timestamp=1610348634503&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdecamelize%2Fdownload%2Fdecamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.nlark.com/delayed-stream/download/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" @@ -582,6 +584,19 @@ ext@^1.1.2: dependencies: type "^2.0.0" +filter-console@^0.1.1: + version "0.1.1" + resolved "https://registry.npm.taobao.org/filter-console/download/filter-console-0.1.1.tgz#6242be28982bba7415bcc6db74a79f4a294fa67c" + integrity sha1-YkK+KJgrunQVvMbbdKefSilPpnw= + +find-up@^4.1.0: + version "4.1.0" + resolved "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz?cache=0&sync_timestamp=1597169842138&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" + integrity sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk= + dependencies: + locate-path "^5.0.0" + path-exists "^4.0.0" + form-data@^3.0.0: version "3.0.1" resolved "https://registry.nlark.com/form-data/download/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" @@ -601,7 +616,7 @@ function-bind@^1.1.1: resolved "https://registry.nlark.com/function-bind/download/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0= -get-caller-file@^2.0.5: +get-caller-file@^2.0.1, get-caller-file@^2.0.5: version "2.0.5" resolved "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= @@ -709,6 +724,13 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" +locate-path@^5.0.0: + version "5.0.0" + resolved "https://registry.npm.taobao.org/locate-path/download/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" + integrity sha1-Gvujlq/WdqbUJQTQpno6frn2KqA= + dependencies: + p-locate "^4.1.0" + make-error@^1.1.1: version "1.3.6" resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" @@ -791,6 +813,30 @@ once@^1.3.0: dependencies: wrappy "1" +p-limit@^2.2.0: + version "2.3.0" + resolved "https://registry.npm.taobao.org/p-limit/download/p-limit-2.3.0.tgz?cache=0&sync_timestamp=1606290276843&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-limit%2Fdownload%2Fp-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + integrity sha1-PdM8ZHohT9//2DWTPrCG2g3CHbE= + dependencies: + p-try "^2.0.0" + +p-locate@^4.1.0: + version "4.1.0" + resolved "https://registry.npm.taobao.org/p-locate/download/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" + integrity sha1-o0KLtwiLOmApL2aRkni3wpetTwc= + dependencies: + p-limit "^2.2.0" + +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.npm.taobao.org/p-try/download/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha1-yyhoVA4xPWHeWPr741zpAE1VQOY= + +path-exists@^4.0.0: + version "4.0.0" + resolved "https://registry.npm.taobao.org/path-exists/download/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" + integrity sha1-UTvb4tO5XXdi6METfvoZXGxhtbM= + path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.npm.taobao.org/path-is-absolute/download/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" @@ -801,6 +847,11 @@ path-parse@^1.0.6: resolved "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU= +prettier@2.2.1: + version "2.2.1" + resolved "https://registry.nlark.com/prettier/download/prettier-2.2.1.tgz?cache=0&sync_timestamp=1620594183343&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fprettier%2Fdownload%2Fprettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" + integrity sha1-eVoaeN1S8HPaDNQrIfnJE4GSP/U= + readable-stream@^3.6.0: version "3.6.0" resolved "https://registry.nlark.com/readable-stream/download/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" @@ -820,6 +871,11 @@ require-directory@^2.1.1: resolved "https://registry.nlark.com/require-directory/download/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= +require-main-filename@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/require-main-filename/download/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" + integrity sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs= + resolve@^1.3.2: version "1.20.0" resolved "https://registry.npm.taobao.org/resolve/download/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" @@ -858,6 +914,11 @@ semver@^5.3.0: resolved "https://registry.nlark.com/semver/download/semver-5.7.1.tgz?cache=0&sync_timestamp=1618846864940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fsemver%2Fdownload%2Fsemver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha1-qVT5Ma66UI0we78Gnv8MAclhFvc= +set-blocking@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/set-blocking/download/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= + sha.js@^2.4.0: version "2.4.11" resolved "https://registry.npm.taobao.org/sha.js/download/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" @@ -979,7 +1040,7 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@^4.2.4: +typescript@^4.1.5, typescript@^4.2.4: version "4.3.2" resolved "https://registry.nlark.com/typescript/download/typescript-4.3.2.tgz?cache=0&sync_timestamp=1622100951079&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftypescript%2Fdownload%2Ftypescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805" integrity sha1-OZqxiqxFgC1vJJjeUFT8u+cWqAU= @@ -1008,6 +1069,20 @@ websocket@^1.0.34: utf-8-validate "^5.0.2" yaeti "^0.0.6" +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/which-module/download/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= + +wrap-ansi@^6.2.0: + version "6.2.0" + resolved "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" + integrity sha1-6Tk7oHEC5skaOyIUePAlfNKFblM= + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" @@ -1029,6 +1104,11 @@ xxhashjs@^0.2.2: dependencies: cuint "^0.2.2" +y18n@^4.0.0: + version "4.0.3" + resolved "https://registry.npm.taobao.org/y18n/download/y18n-4.0.3.tgz?cache=0&sync_timestamp=1617822684820&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fy18n%2Fdownload%2Fy18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" + integrity sha1-tfJZyCzW4zaSHv17/Yv1YN6e7t8= + y18n@^5.0.5: version "5.0.8" resolved "https://registry.nlark.com/y18n/download/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" @@ -1039,11 +1119,36 @@ yaeti@^0.0.6: resolved "https://registry.npm.taobao.org/yaeti/download/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc= +yargs-parser@^18.1.2: + version "18.1.3" + resolved "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" + integrity sha1-vmjEl1xrKr9GkjawyHA2L6sJp7A= + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + yargs-parser@^20.2.2: version "20.2.7" resolved "https://registry.nlark.com/yargs-parser/download/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" integrity sha1-Yd+FwRPt+1p6TjbriqYO9CPLyQo= +yargs@^15.4.1: + version "15.4.1" + resolved "https://registry.nlark.com/yargs/download/yargs-15.4.1.tgz?cache=0&sync_timestamp=1620086465147&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" + integrity sha1-DYehbeAa7p2L7Cv7909nhRcw9Pg= + dependencies: + cliui "^6.0.0" + decamelize "^1.2.0" + find-up "^4.1.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^4.2.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^18.1.2" + yargs@^17.0.1: version "17.0.1" resolved "https://registry.nlark.com/yargs/download/yargs-17.0.1.tgz?cache=0&sync_timestamp=1620086644940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-17.0.1.tgz#6a1ced4ed5ee0b388010ba9fd67af83b9362e0bb" @@ -1057,6 +1162,11 @@ yargs@^17.0.1: y18n "^5.0.5" yargs-parser "^20.2.2" +yarn@^1.22.10: + version "1.22.10" + resolved "https://registry.npm.taobao.org/yarn/download/yarn-1.22.10.tgz#c99daa06257c80f8fa2c3f1490724e394c26b18c" + integrity sha1-yZ2qBiV8gPj6LD8UkHJOOUwmsYw= + yn@3.1.1: version "3.1.1" resolved "https://registry.npm.taobao.org/yn/download/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" From 78e1fc7013aeb291d6a5ffea136119489abf83ac Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 27 May 2021 22:41:13 +0800 Subject: [PATCH 19/74] feat(js): package launch --- .circleci/config.yml | 4 +- docker/{e2e.Dockerfile => launch.Dockerfile} | 2 +- js/launch/README.md | 15 ++++++- js/launch/index.ts | 41 ++++++-------------- js/launch/package.json | 1 + js/yarn.lock | 34 ++++++++++++++++ 6 files changed, 63 insertions(+), 34 deletions(-) rename docker/{e2e.Dockerfile => launch.Dockerfile} (92%) diff --git a/.circleci/config.yml b/.circleci/config.yml index d24274f536..4bf1619ae0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -152,8 +152,8 @@ jobs: command: docker load -i /tmp/workspace/image.tar - checkout - run: - name: Build e2e Image - command: docker build -f docker/e2e.Dockerfile -t e2e . + name: Build PINT launch Image + command: docker build -f docker/launch.Dockerfile -t launch . docker-publish-latest: executor: test-executor description: Publish latest Docker Image diff --git a/docker/e2e.Dockerfile b/docker/launch.Dockerfile similarity index 92% rename from docker/e2e.Dockerfile rename to docker/launch.Dockerfile index fe195cef05..6ca43f18de 100644 --- a/docker/e2e.Dockerfile +++ b/docker/launch.Dockerfile @@ -6,6 +6,7 @@ # This Dockerfile builds the environment of e2e tests FROM debian:buster-slim COPY config.json config.json +COPY js/polkadot-launch polkadot-launch COPY --from=chainsafe/pint /usr/local/bin/pint bin/ COPY --from=clearloop/rococo-v1 /polkadot bin/ COPY --from=clearloop/statemint /statemint bin/ @@ -16,7 +17,6 @@ RUN apt-get update -y \ && apt-get -qqy --no-install-recommends install nodejs -y \ && rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb \ && rm -f /var/cache/apt/*.bin \ - && git clone https://github.com/paritytech/polkadot-launch.git \ && cd polkadot-launch \ && npm install \ && npm run build diff --git a/js/launch/README.md b/js/launch/README.md index 826b6b1142..b83364f271 100644 --- a/js/launch/README.md +++ b/js/launch/README.md @@ -1,7 +1,18 @@ -# E2E +# PINT launch -E2E tests for PINT +Launch PINT with polkadot and statemint +```typescript +import { local, docker } from "@pint/launch"; +import { StdioOptions } from "child_process"; + +async main() { + const stdio = "inherit"; + const localPs: ChildProcess = await local(stdio); + const dockerPs: ChildProcess = await local(stdio); +} + +``` ## LICENSE diff --git a/js/launch/index.ts b/js/launch/index.ts index d15591b133..613ea89ad2 100644 --- a/js/launch/index.ts +++ b/js/launch/index.ts @@ -1,42 +1,25 @@ /** * pint-launch */ -import { spawn, spawnSync, execSync } from "child_process"; +import findUp from "find-up"; import path from "path"; +import { fork, ChildProcess, StdioOptions, spawn } from "child_process"; /** - * Launch PINT locally or using docker in CI + * Launch PINT locally */ -async function launch(docker: boolean = false) { - if (!docker) { - await local(); - } +export async function local(stdio?: StdioOptions): Promise { + return fork("js/polkadot-launch", ["config.json"], { + cwd: path.resolve(await findUp("Cargo.toml"), ".."), + stdio, + }); } /** - * Launch PINT locally - * - * required bins: - * - npm - * - node + * Launch PINT via docker (CI) */ -async function local() { - // build polkadot-launch - execSync("npm run build", { - cwd: path.resolve(__dirname, "../polkadot-launch"), - stdio: "inherit", +export async function docker(stdio?: StdioOptions): Promise { + return spawn("docker", ["run", "-it", "launch"], { + stdio, }); - spawnSync( - "node", - [ - path.resolve(__dirname, "../polkadot-launch/dist/index.js"), - path.resolve(__dirname, "../../config.json"), - ], - { - stdio: "inherit", - } - ); } -// async function docker() {} - -launch(); diff --git a/js/launch/package.json b/js/launch/package.json index fa9de39e7e..b13786cc9e 100644 --- a/js/launch/package.json +++ b/js/launch/package.json @@ -13,6 +13,7 @@ "typescript": "^4.2.4" }, "dependencies": { + "find-up": "^5.0.0", "polkadot-launch": "1.5.0" }, "scripts": { diff --git a/js/yarn.lock b/js/yarn.lock index a8f5b21e90..491fed59cd 100644 --- a/js/yarn.lock +++ b/js/yarn.lock @@ -597,6 +597,14 @@ find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.npm.taobao.org/find-up/download/find-up-5.0.0.tgz?cache=0&sync_timestamp=1597169842138&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha1-TJKBnstwg1YeT0okCoa+UZj1Nvw= + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + form-data@^3.0.0: version "3.0.1" resolved "https://registry.nlark.com/form-data/download/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" @@ -731,6 +739,13 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.npm.taobao.org/locate-path/download/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha1-VTIeswn+u8WcSAHZMackUqaB0oY= + dependencies: + p-locate "^5.0.0" + make-error@^1.1.1: version "1.3.6" resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" @@ -820,6 +835,13 @@ p-limit@^2.2.0: dependencies: p-try "^2.0.0" +p-limit@^3.0.2: + version "3.1.0" + resolved "https://registry.npm.taobao.org/p-limit/download/p-limit-3.1.0.tgz?cache=0&sync_timestamp=1606290276843&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-limit%2Fdownload%2Fp-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + integrity sha1-4drMvnjQ0TiMoYxk/qOOPlfjcGs= + dependencies: + yocto-queue "^0.1.0" + p-locate@^4.1.0: version "4.1.0" resolved "https://registry.npm.taobao.org/p-locate/download/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" @@ -827,6 +849,13 @@ p-locate@^4.1.0: dependencies: p-limit "^2.2.0" +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.npm.taobao.org/p-locate/download/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha1-g8gxXGeFAF470CGDlBHJ4RDm2DQ= + dependencies: + p-limit "^3.0.2" + p-try@^2.0.0: version "2.2.0" resolved "https://registry.npm.taobao.org/p-try/download/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" @@ -1171,3 +1200,8 @@ yn@3.1.1: version "3.1.1" resolved "https://registry.npm.taobao.org/yn/download/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" integrity sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A= + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.npm.taobao.org/yocto-queue/download/yocto-queue-0.1.0.tgz?cache=0&sync_timestamp=1606290282107&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyocto-queue%2Fdownload%2Fyocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" + integrity sha1-ApTrPe4FAo0x7hpfosVWpqrxChs= From 174c5196524c6b8b053e3f75edd8f72af83bdcc6 Mon Sep 17 00:00:00 2001 From: clearloop Date: Fri, 28 May 2021 00:02:53 +0800 Subject: [PATCH 20/74] feat(e2e): traverse APIs --- .circleci/config.yml | 3 + js/e2e/README.md | 2 + js/e2e/index.ts | 15 ++-- js/e2e/package.json | 4 +- js/e2e/src/index.ts | 18 ++++ js/pint-types-bundle/LICENSE | 165 +++++++++++++++++++++++++++++++++++ 6 files changed, 201 insertions(+), 6 deletions(-) create mode 100644 js/e2e/src/index.ts create mode 100644 js/pint-types-bundle/LICENSE diff --git a/.circleci/config.yml b/.circleci/config.yml index 4bf1619ae0..12d8ea4f4d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -151,6 +151,9 @@ jobs: name: Load Archived Docker Image command: docker load -i /tmp/workspace/image.tar - checkout + - run: + name: init submodule + comamnd: gitub submodule update --init - run: name: Build PINT launch Image command: docker build -f docker/launch.Dockerfile -t launch . diff --git a/js/e2e/README.md b/js/e2e/README.md index 826b6b1142..dc6780d5fd 100644 --- a/js/e2e/README.md +++ b/js/e2e/README.md @@ -2,6 +2,8 @@ E2E tests for PINT +This package will traverse all APIs provided written in the config + ## LICENSE diff --git a/js/e2e/index.ts b/js/e2e/index.ts index cd6a62e3fb..bf901f90f9 100644 --- a/js/e2e/index.ts +++ b/js/e2e/index.ts @@ -3,11 +3,16 @@ */ /** - * Testcase + * Extrinsic definition */ -interface Tests { - [fn: string]: (...args: any[]) => Promise; +export interface Extrinsic { + pallet: string; + call: string; + args: any[]; + timeout?: undefined | number; } -// Run tests -const run = async (tests: Tests): Promise => {}; +/** + * Traverse all extrinsics + */ +export async function run(exs: Extrinsic[]) {} diff --git a/js/e2e/package.json b/js/e2e/package.json index c64c9c2606..dff904189b 100644 --- a/js/e2e/package.json +++ b/js/e2e/package.json @@ -12,7 +12,9 @@ "tslint": "^6.1.3", "typescript": "^4.2.4" }, - "dependencies": {}, + "dependencies": { + "@pint/launch": "^1" + }, "scripts": { "build": "tsc --strict", "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" diff --git a/js/e2e/src/index.ts b/js/e2e/src/index.ts new file mode 100644 index 0000000000..bf901f90f9 --- /dev/null +++ b/js/e2e/src/index.ts @@ -0,0 +1,18 @@ +/** + * E2E tests for PINT + */ + +/** + * Extrinsic definition + */ +export interface Extrinsic { + pallet: string; + call: string; + args: any[]; + timeout?: undefined | number; +} + +/** + * Traverse all extrinsics + */ +export async function run(exs: Extrinsic[]) {} diff --git a/js/pint-types-bundle/LICENSE b/js/pint-types-bundle/LICENSE new file mode 100644 index 0000000000..0a041280bd --- /dev/null +++ b/js/pint-types-bundle/LICENSE @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. From b5b2c9abbbd835f15b890354407c9fc94e115dfb Mon Sep 17 00:00:00 2001 From: clearloop Date: Fri, 28 May 2021 03:19:30 +0800 Subject: [PATCH 21/74] feat(e2e): remove launch and api --- js/api/README.md | 7 - js/api/package.json | 26 - js/api/src/api.ts | 40 - js/api/src/index.ts | 2 - js/api/src/pallets/assetIndex.ts | 8 - js/api/src/pallets/index.ts | 17 - js/api/src/result.ts | 25 - js/api/src/utils.ts | 1 - js/api/tsconfig.json | 19 - js/api/tslint.json | 19 - js/api/yarn-error.log | 875 ---------------------- js/api/yarn.lock | 815 -------------------- js/e2e/package.json | 5 +- js/e2e/src/config.ts | 22 + js/e2e/src/ext.ts | 23 + js/e2e/src/index.ts | 23 +- js/{launch/index.ts => e2e/src/launch.ts} | 2 +- js/launch/README.md | 19 - js/launch/package.json | 23 - js/launch/tsconfig.json | 19 - js/launch/tslint.json | 19 - js/launch/yarn.lock | 815 -------------------- js/package.json | 2 +- js/yarn.lock | 283 +------ 24 files changed, 68 insertions(+), 3041 deletions(-) delete mode 100644 js/api/README.md delete mode 100644 js/api/package.json delete mode 100644 js/api/src/api.ts delete mode 100644 js/api/src/index.ts delete mode 100644 js/api/src/pallets/assetIndex.ts delete mode 100644 js/api/src/pallets/index.ts delete mode 100644 js/api/src/result.ts delete mode 100644 js/api/src/utils.ts delete mode 100644 js/api/tsconfig.json delete mode 100644 js/api/tslint.json delete mode 100644 js/api/yarn-error.log delete mode 100644 js/api/yarn.lock create mode 100644 js/e2e/src/config.ts create mode 100644 js/e2e/src/ext.ts rename js/{launch/index.ts => e2e/src/launch.ts} (88%) delete mode 100644 js/launch/README.md delete mode 100644 js/launch/package.json delete mode 100644 js/launch/tsconfig.json delete mode 100644 js/launch/tslint.json delete mode 100644 js/launch/yarn.lock diff --git a/js/api/README.md b/js/api/README.md deleted file mode 100644 index 2b10559405..0000000000 --- a/js/api/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# E2E - -E2E tests for PINT. - -## LICENSE - -GNU-v3 diff --git a/js/api/package.json b/js/api/package.json deleted file mode 100644 index fe6b549ec0..0000000000 --- a/js/api/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "@pint/api", - "version": "1.0.0", - "description": "E2E tests for PINT", - "main": "lib/src/index.js", - "repository": "https://github.com/ChainSafe/PINT", - "author": "ChainSafe", - "license": "GNU-v3", - "private": true, - "devDependencies": { - "@types/node": "^15.3.1", - "ts-node": "^9.1.1", - "tslint": "^6.1.3", - "typescript": "^4.2.4" - }, - "dependencies": { - "@pint/types": "^1", - "@polkadot/api": "^4.10.1", - "@polkadot/keyring": "^6.5.1", - "yargs": "^17.0.1" - }, - "scripts": { - "build": "tsc --strict", - "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" - } -} diff --git a/js/api/src/api.ts b/js/api/src/api.ts deleted file mode 100644 index 2c9d4e6465..0000000000 --- a/js/api/src/api.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { ApiPromise, WsProvider } from "@polkadot/api"; -import { Keyring } from "@polkadot/keyring"; -import { KeyringPair } from "@polkadot/keyring/types"; -import { typesBundle } from "@pint/types"; - -/** - * Tester - */ -export class Api { - public api: ApiPromise; - public pair: KeyringPair; - - /** - * Init API with provided config - */ - static async init( - // PINT websocket port - wsPort: string = "ws://0.0.0.0:9988", - // Testing account - uri: string = "//Alice" - ): Promise { - // init api - const provider = new WsProvider(wsPort); - const api = await ApiPromise.create({ - provider, - typesBundle: typesBundle, - }); - - // init keyring - const keyring = new Keyring({ type: "sr25519" }); - const pair = keyring.addFromUri(uri); - - return new Api(api, pair); - } - - constructor(api: ApiPromise, pair: KeyringPair) { - this.api = api; - this.pair = pair; - } -} diff --git a/js/api/src/index.ts b/js/api/src/index.ts deleted file mode 100644 index 367c722dcb..0000000000 --- a/js/api/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -/* exports */ -export { Api } from "./api"; diff --git a/js/api/src/pallets/assetIndex.ts b/js/api/src/pallets/assetIndex.ts deleted file mode 100644 index a837e1b685..0000000000 --- a/js/api/src/pallets/assetIndex.ts +++ /dev/null @@ -1,8 +0,0 @@ -// tests for pallet asset-index -import { Result } from "../result"; -import { Api } from "../api"; -import { Pallet, Call } from "./index"; - -export const addAsset: Call = (api: Api): Result => { - return new Result(null); -}; diff --git a/js/api/src/pallets/index.ts b/js/api/src/pallets/index.ts deleted file mode 100644 index 4a49ce43a7..0000000000 --- a/js/api/src/pallets/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* exports */ -import { Result } from "../result"; -import { Api } from "../api"; - -/** - * Call - */ -export type Call = (api: Api, ...args: any[]) => Result; - -/** - * Pallet - */ -export interface Pallet { - [index: string]: Call; -} - -export default {}; diff --git a/js/api/src/result.ts b/js/api/src/result.ts deleted file mode 100644 index 6e0408fe56..0000000000 --- a/js/api/src/result.ts +++ /dev/null @@ -1,25 +0,0 @@ -// result error - -export class Result { - inner: T | Error; - - constructor(inner: T | Error, reason: string | undefined = undefined) { - this.inner = inner; - if (inner instanceof Error) { - (this.inner as Error).message = String(reason); - } - } - - /** - * resolve inner value or throw Error - * - * @returns {T} - */ - unwrap(): T { - if (this.inner instanceof Error) { - throw this.inner as Error; - } - - return this.inner as T; - } -} diff --git a/js/api/src/utils.ts b/js/api/src/utils.ts deleted file mode 100644 index ab4e13cd67..0000000000 --- a/js/api/src/utils.ts +++ /dev/null @@ -1 +0,0 @@ -/* utils */ diff --git a/js/api/tsconfig.json b/js/api/tsconfig.json deleted file mode 100644 index 8db1eddfc2..0000000000 --- a/js/api/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "indent": [true, "spaces", 2], - "compilerOptions": { - "allowSyntheticDefaultImports": true, - "baseUrl": ".", - "declaration": true, - "esModuleInterop": true, - "outDir": "lib", - "module": "commonjs", - "moduleResolution": "node", - "noImplicitAny": true, - "resolveJsonModule": true, - "sourceMap": true, - "skipLibCheck": true, - "target": "es6" - }, - "include": ["index.ts", "src/**/*"], - "exclude": ["node_modules"] -} diff --git a/js/api/tslint.json b/js/api/tslint.json deleted file mode 100644 index 0b5e9615e0..0000000000 --- a/js/api/tslint.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "tslint:recommended", - "rules": { - "curly": [true, "ignore-same-line"], - "max-classes-per-file": false, - "max-line-length": { - "options": [120] - }, - "new-parens": true, - "no-arg": true, - "no-bitwise": true, - "no-conditional-assignment": true, - "no-consecutive-blank-lines": false, - "no-console": false - }, - "linterOptions": { - "exclude": [] - } -} diff --git a/js/api/yarn-error.log b/js/api/yarn-error.log deleted file mode 100644 index 402b492c06..0000000000 --- a/js/api/yarn-error.log +++ /dev/null @@ -1,875 +0,0 @@ -Arguments: - /opt/homebrew/Cellar/node/15.9.0/bin/node /opt/homebrew/bin/yarn - -PATH: - /Users/clearloop/.rvm/gems/ruby-3.0.0/bin:/Users/clearloop/.rvm/gems/ruby-3.0.0@global/bin:/Users/clearloop/.rvm/rubies/ruby-3.0.0/bin:/opt/homebrew/opt/node@14/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/krb5/sbin:/opt/homebrew/opt/krb5/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/bin:/Users/clearloop/.radicle/bin:/usr/local/share/android-sdk/emulator:/usr/local/share/android-sdk/platform-tools:/usr/local/share/android-sdk/tools/bin:/usr/local/share/android-sdk/tools:/Users/clearloop/.wabt/bin:/Users/clearloop/.wasmer/bin:/Users/clearloop/code/binaryen/bin:/Users/clearloop/Library/go/bin:/Users/clearloop/.config/npm/bin:/usr/local/opt/node@12/bin:/Users/clearloop/.cargo/bin:/usr/local/sbin:/Users/clearloop/.pub-cache/bin:/Users/clearloop/Library/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/opt/homebrew/opt/node@14/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/krb5/sbin:/opt/homebrew/opt/krb5/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/bin:/Users/clearloop/.radicle/bin:/usr/local/share/android-sdk/emulator:/usr/local/share/android-sdk/platform-tools:/usr/local/share/android-sdk/tools/bin:/usr/local/share/android-sdk/tools:/Users/clearloop/.wabt/bin:/Users/clearloop/.wasmer/bin:/Users/clearloop/code/binaryen/bin:/Users/clearloop/Library/go/bin:/Users/clearloop/.config/npm/bin:/usr/local/opt/node@12/bin:/Users/clearloop/.cargo/bin:/usr/local/sbin:/Users/clearloop/.pub-cache/bin:/Users/clearloop/Library/bin:/Users/clearloop/.rvm/gems/ruby-3.0.0/bin:/Users/clearloop/.rvm/gems/ruby-3.0.0@global/bin:/Users/clearloop/.rvm/rubies/ruby-3.0.0/bin:/Users/clearloop/Library/flutter/bin:/opt/flutter/bin:/Users/clearloop/.binaryen/bin:/Users/clearloop/.rvm/bin:/Users/clearloop/Library/flutter/bin:/opt/flutter/bin:/Users/clearloop/.binaryen/bin - -Yarn version: - 1.22.10 - -Node version: - 15.9.0 - -Platform: - darwin arm64 - -Trace: - Error: https://registry.npm.taobao.org/@pint%2ftypes: Not found - at Request.params.callback [as _callback] (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:66988:18) - at Request.self.callback (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:140662:22) - at Request.emit (node:events:378:20) - at Request. (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:141634:10) - at Request.emit (node:events:378:20) - at IncomingMessage. (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:141556:12) - at Object.onceWrapper (node:events:484:28) - at IncomingMessage.emit (node:events:390:22) - at endReadableNT (node:internal/streams/readable:1307:12) - at processTicksAndRejections (node:internal/process/task_queues:81:21) - -npm manifest: - { - "name": "@pint/api", - "version": "1.0.0", - "description": "E2E tests for PINT", - "main": "index.js", - "repository": "https://github.com/ChainSafe/PINT", - "author": "ChainSafe", - "license": "GNU-v3", - "private": true, - "devDependencies": { - "@types/node": "^15.3.1", - "ts-node": "^9.1.1", - "tslint": "^6.1.3", - "typescript": "^4.2.4" - }, - "dependencies": { - "@pint/types": "^1", - "@polkadot/api": "^4.10.1", - "@polkadot/keyring": "^6.5.1", - "yargs": "^17.0.1" - }, - "scripts": { - "build": "tsc --strict", - "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" - } - } - -yarn manifest: - No manifest - -Lockfile: - # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - # yarn lockfile v1 - - - "@babel/runtime@^7.13.9", "@babel/runtime@^7.14.0": - version "7.14.0" - resolved "https://registry.nlark.com/@babel/runtime/download/@babel/runtime-7.14.0.tgz?cache=0&sync_timestamp=1619727501090&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.14.0.tgz#46794bc20b612c5f75e62dd071e24dfd95f1cbe6" - integrity sha1-RnlLwgthLF915i3QceJN/ZXxy+Y= - dependencies: - regenerator-runtime "^0.13.4" - - "@polkadot/api-derive@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/api-derive/download/@polkadot/api-derive-4.10.1.tgz#391ecde22d2f4de67b3eec3389d3f08b9a0cbc4c" - integrity sha1-OR7N4i0vTeZ7PuwzidPwi5oMvEw= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/api" "4.10.1" - "@polkadot/rpc-core" "4.10.1" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - bn.js "^4.11.9" - - "@polkadot/api@4.10.1", "@polkadot/api@^4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/api/download/@polkadot/api-4.10.1.tgz#6a43c9c4585f3f92cd21d7ae85ae481d50eb3bac" - integrity sha1-akPJxFhfP5LNIdeuha5IHVDrO6w= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/api-derive" "4.10.1" - "@polkadot/keyring" "^6.4.1" - "@polkadot/metadata" "4.10.1" - "@polkadot/rpc-core" "4.10.1" - "@polkadot/rpc-provider" "4.10.1" - "@polkadot/types" "4.10.1" - "@polkadot/types-known" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - bn.js "^4.11.9" - eventemitter3 "^4.0.7" - - "@polkadot/keyring@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/keyring/download/@polkadot/keyring-6.4.1.tgz#769c5f0613a27e18726b51e6539fa56f161f6160" - integrity sha1-dpxfBhOifhhya1HmU5+lbxYfYWA= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/util" "6.4.1" - "@polkadot/util-crypto" "6.4.1" - - "@polkadot/metadata@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/metadata/download/@polkadot/metadata-4.10.1.tgz#f22b76e1fc575c20e44b8ba96949f474505ad5fb" - integrity sha1-8it24fxXXCDkS4upaUn0dFBa1fs= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/types" "4.10.1" - "@polkadot/types-known" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - bn.js "^4.11.9" - - "@polkadot/networks@6.4.1", "@polkadot/networks@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/networks/download/@polkadot/networks-6.4.1.tgz#0f933c4af10a2bfe8f072e2c7e8357ef03b2e37e" - integrity sha1-D5M8SvEKK/6PBy4sfoNX7wOy434= - dependencies: - "@babel/runtime" "^7.14.0" - - "@polkadot/rpc-core@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/rpc-core/download/@polkadot/rpc-core-4.10.1.tgz#531cbb481db5ef02a162039a16958509859431f1" - integrity sha1-Uxy7SB217wKhYgOaFpWFCYWUMfE= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/metadata" "4.10.1" - "@polkadot/rpc-provider" "4.10.1" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - - "@polkadot/rpc-provider@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/rpc-provider/download/@polkadot/rpc-provider-4.10.1.tgz#822dbe90a2d0afbf67fcfa2c41ffc2c026d85c10" - integrity sha1-gi2+kKLQr79n/PosQf/CwCbYXBA= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-fetch" "^6.4.1" - "@polkadot/x-global" "^6.4.1" - "@polkadot/x-ws" "^6.4.1" - bn.js "^4.11.9" - eventemitter3 "^4.0.7" - - "@polkadot/types-known@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/types-known/download/@polkadot/types-known-4.10.1.tgz#3377a6482f116c88f82140e7327c9cdea32b0a1d" - integrity sha1-M3emSC8RbIj4IUDnMnyc3qMrCh0= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/networks" "^6.4.1" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - bn.js "^4.11.9" - - "@polkadot/types@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/types/download/@polkadot/types-4.10.1.tgz#603d273ec5ad83cfce9d3eec05bbd198ae9677f0" - integrity sha1-YD0nPsWtg8/OnT7sBbvRmK6Wd/A= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/metadata" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - "@types/bn.js" "^4.11.6" - bn.js "^4.11.9" - - "@polkadot/util-crypto@6.4.1", "@polkadot/util-crypto@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/util-crypto/download/@polkadot/util-crypto-6.4.1.tgz#b567d824598bf8f4587364c1d7234bafe805f1c5" - integrity sha1-tWfYJFmL+PRYc2TB1yNLr+gF8cU= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/networks" "6.4.1" - "@polkadot/util" "6.4.1" - "@polkadot/wasm-crypto" "^4.0.2" - "@polkadot/x-randomvalues" "6.4.1" - base-x "^3.0.8" - base64-js "^1.5.1" - blakejs "^1.1.0" - bn.js "^4.11.9" - create-hash "^1.2.0" - elliptic "^6.5.4" - hash.js "^1.1.7" - js-sha3 "^0.8.0" - scryptsy "^2.1.0" - tweetnacl "^1.0.3" - xxhashjs "^0.2.2" - - "@polkadot/util@6.4.1", "@polkadot/util@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/util/download/@polkadot/util-6.4.1.tgz#f40fdc91ae49396d7930e37dbd31747769555b7a" - integrity sha1-9A/cka5JOW15MON9vTF0d2lVW3o= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-textdecoder" "6.4.1" - "@polkadot/x-textencoder" "6.4.1" - "@types/bn.js" "^4.11.6" - bn.js "^4.11.9" - camelcase "^5.3.1" - ip-regex "^4.3.0" - - "@polkadot/wasm-crypto-asmjs@^4.0.2": - version "4.0.2" - resolved "https://registry.nlark.com/@polkadot/wasm-crypto-asmjs/download/@polkadot/wasm-crypto-asmjs-4.0.2.tgz#f42c353a64e1243841daf90e4bd54eff01a4e3cf" - integrity sha1-9Cw1OmThJDhB2vkOS9VO/wGk488= - dependencies: - "@babel/runtime" "^7.13.9" - - "@polkadot/wasm-crypto-wasm@^4.0.2": - version "4.0.2" - resolved "https://registry.nlark.com/@polkadot/wasm-crypto-wasm/download/@polkadot/wasm-crypto-wasm-4.0.2.tgz#89f9e0a1e4d076784d4a42bea37fc8b06bdd8bb6" - integrity sha1-ifngoeTQdnhNSkK+o3/IsGvdi7Y= - dependencies: - "@babel/runtime" "^7.13.9" - - "@polkadot/wasm-crypto@^4.0.2": - version "4.0.2" - resolved "https://registry.nlark.com/@polkadot/wasm-crypto/download/@polkadot/wasm-crypto-4.0.2.tgz#9649057adee8383cc86433d107ba526b718c5a3b" - integrity sha1-lkkFet7oODzIZDPRB7pSa3GMWjs= - dependencies: - "@babel/runtime" "^7.13.9" - "@polkadot/wasm-crypto-asmjs" "^4.0.2" - "@polkadot/wasm-crypto-wasm" "^4.0.2" - - "@polkadot/x-fetch@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-fetch/download/@polkadot/x-fetch-6.4.1.tgz#12b9e6d42e71deceff44c324ba41baed879093c1" - integrity sha1-Ernm1C5x3s7/RMMkukG67YeQk8E= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - "@types/node-fetch" "^2.5.10" - node-fetch "^2.6.1" - - "@polkadot/x-global@6.4.1", "@polkadot/x-global@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-global/download/@polkadot/x-global-6.4.1.tgz#546e019e0c7f72a92a2612cacf90e8797c94709f" - integrity sha1-VG4Bngx/cqkqJhLKz5DoeXyUcJ8= - dependencies: - "@babel/runtime" "^7.14.0" - "@types/node-fetch" "^2.5.10" - node-fetch "^2.6.1" - - "@polkadot/x-randomvalues@6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-randomvalues/download/@polkadot/x-randomvalues-6.4.1.tgz#bb30d309e03ab63196504f53962e47ec7b97fac9" - integrity sha1-uzDTCeA6tjGWUE9Tli5H7HuX+sk= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - - "@polkadot/x-rxjs@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-rxjs/download/@polkadot/x-rxjs-6.4.1.tgz#c6e8cef8dc3f20b4c7468bd6976d843947da1f15" - integrity sha1-xujO+Nw/ILTHRovWl22EOUfaHxU= - dependencies: - "@babel/runtime" "^7.14.0" - rxjs "^6.6.7" - - "@polkadot/x-textdecoder@6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-textdecoder/download/@polkadot/x-textdecoder-6.4.1.tgz#f33b81267d8de313e851cc699b9dfa6e8f109cde" - integrity sha1-8zuBJn2N4xPoUcxpm536bo8QnN4= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - - "@polkadot/x-textencoder@6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-textencoder/download/@polkadot/x-textencoder-6.4.1.tgz#f34bcc1c1a60d723ea8ce84e10a1efbbf6c1371a" - integrity sha1-80vMHBpg1yPqjOhOEKHvu/bBNxo= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - - "@polkadot/x-ws@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-ws/download/@polkadot/x-ws-6.4.1.tgz#e03295907a50f74ec220d9dc9aa6d45370f67554" - integrity sha1-4DKVkHpQ907CINncmqbUU3D2dVQ= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - "@types/websocket" "^1.0.2" - websocket "^1.0.34" - - "@types/bn.js@^4.11.6": - version "4.11.6" - resolved "https://registry.nlark.com/@types/bn.js/download/@types/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c" - integrity sha1-wwbHDZNYquozzU7aCSp0K5UFlnw= - dependencies: - "@types/node" "*" - - "@types/node-fetch@^2.5.10": - version "2.5.10" - resolved "https://registry.nlark.com/@types/node-fetch/download/@types/node-fetch-2.5.10.tgz#9b4d4a0425562f9fcea70b12cb3fcdd946ca8132" - integrity sha1-m01KBCVWL5/OpwsSyz/N2UbKgTI= - dependencies: - "@types/node" "*" - form-data "^3.0.0" - - "@types/node@*", "@types/node@^15.3.1": - version "15.3.1" - resolved "https://registry.nlark.com/@types/node/download/@types/node-15.3.1.tgz?cache=0&sync_timestamp=1621463621315&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-15.3.1.tgz#23a06b87eedb524016616e886b116b8fdcb180af" - integrity sha1-I6Brh+7bUkAWYW6IaxFrj9yxgK8= - - "@types/websocket@^1.0.2": - version "1.0.2" - resolved "https://registry.nlark.com/@types/websocket/download/@types/websocket-1.0.2.tgz?cache=0&sync_timestamp=1621244924715&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fwebsocket%2Fdownload%2F%40types%2Fwebsocket-1.0.2.tgz#d2855c6a312b7da73ed16ba6781815bf30c6187a" - integrity sha1-0oVcajErfac+0WumeBgVvzDGGHo= - dependencies: - "@types/node" "*" - - "@types/yargs-parser@*": - version "20.2.0" - resolved "https://registry.nlark.com/@types/yargs-parser/download/@types/yargs-parser-20.2.0.tgz?cache=0&sync_timestamp=1621243984050&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fyargs-parser%2Fdownload%2F%40types%2Fyargs-parser-20.2.0.tgz#dd3e6699ba3237f0348cd085e4698780204842f9" - integrity sha1-3T5mmboyN/A0jNCF5GmHgCBIQvk= - - "@types/yargs@^16.0.2": - version "16.0.2" - resolved "https://registry.nlark.com/@types/yargs/download/@types/yargs-16.0.2.tgz#b860dfa2964425239bba37ab3178b0acd79b8a61" - integrity sha1-uGDfopZEJSObujerMXiwrNebimE= - dependencies: - "@types/yargs-parser" "*" - - ansi-regex@^5.0.0: - version "5.0.0" - resolved "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz?cache=0&sync_timestamp=1618553044693&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" - integrity sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U= - - ansi-styles@^4.0.0: - version "4.3.0" - resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= - dependencies: - color-convert "^2.0.1" - - arg@^4.1.0: - version "4.1.3" - resolved "https://registry.npm.taobao.org/arg/download/arg-4.1.3.tgz?cache=0&sync_timestamp=1605576950209&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Farg%2Fdownload%2Farg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" - integrity sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk= - - asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.npm.taobao.org/asynckit/download/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= - - base-x@^3.0.8: - version "3.0.8" - resolved "https://registry.npm.taobao.org/base-x/download/base-x-3.0.8.tgz#1e1106c2537f0162e8b52474a557ebb09000018d" - integrity sha1-HhEGwlN/AWLotSR0pVfrsJAAAY0= - dependencies: - safe-buffer "^5.0.1" - - base64-js@^1.5.1: - version "1.5.1" - resolved "https://registry.nlark.com/base64-js/download/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" - integrity sha1-GxtEAWClv3rUC2UPCVljSBkDkwo= - - blakejs@^1.1.0: - version "1.1.0" - resolved "https://registry.npm.taobao.org/blakejs/download/blakejs-1.1.0.tgz#69df92ef953aa88ca51a32df6ab1c54a155fc7a5" - integrity sha1-ad+S75U6qIylGjLfarHFShVfx6U= - - bn.js@^4.11.9: - version "4.12.0" - resolved "https://registry.npm.taobao.org/bn.js/download/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" - integrity sha1-d1s/J477uXGO7HNh9IP7Nvu/6og= - - brorand@^1.1.0: - version "1.1.0" - resolved "https://registry.npm.taobao.org/brorand/download/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" - integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= - - buffer-from@^1.0.0: - version "1.1.1" - resolved "https://registry.nlark.com/buffer-from/download/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" - integrity sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8= - - bufferutil@^4.0.1: - version "4.0.3" - resolved "https://registry.npm.taobao.org/bufferutil/download/bufferutil-4.0.3.tgz?cache=0&sync_timestamp=1609618802475&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbufferutil%2Fdownload%2Fbufferutil-4.0.3.tgz#66724b756bed23cd7c28c4d306d7994f9943cc6b" - integrity sha1-ZnJLdWvtI818KMTTBteZT5lDzGs= - dependencies: - node-gyp-build "^4.2.0" - - camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA= - - cipher-base@^1.0.1: - version "1.0.4" - resolved "https://registry.nlark.com/cipher-base/download/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" - integrity sha1-h2Dk7MJy9MNjUy+SbYdKriwTl94= - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - - cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.nlark.com/cliui/download/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08= - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - - color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.nlark.com/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= - dependencies: - color-name "~1.1.4" - - color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= - - combined-stream@^1.0.8: - version "1.0.8" - resolved "https://registry.nlark.com/combined-stream/download/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha1-w9RaizT9cwYxoRCoolIGgrMdWn8= - dependencies: - delayed-stream "~1.0.0" - - create-hash@^1.2.0: - version "1.2.0" - resolved "https://registry.nlark.com/create-hash/download/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" - integrity sha1-iJB4rxGmN1a8+1m9IhmWvjqe8ZY= - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - md5.js "^1.3.4" - ripemd160 "^2.0.1" - sha.js "^2.4.0" - - create-require@^1.1.0: - version "1.1.1" - resolved "https://registry.npm.taobao.org/create-require/download/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" - integrity sha1-wdfo8eX2z8n/ZfnNNS03NIdWwzM= - - cuint@^0.2.2: - version "0.2.2" - resolved "https://registry.nlark.com/cuint/download/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b" - integrity sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs= - - d@1, d@^1.0.1: - version "1.0.1" - resolved "https://registry.npm.taobao.org/d/download/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" - integrity sha1-hpgJU3LVjb7jRv/Qxwk/mfj561o= - dependencies: - es5-ext "^0.10.50" - type "^1.0.1" - - debug@^2.2.0: - version "2.6.9" - resolved "https://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz?cache=0&sync_timestamp=1614330710870&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8= - dependencies: - ms "2.0.0" - - delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.nlark.com/delayed-stream/download/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= - - diff@^4.0.1: - version "4.0.2" - resolved "https://registry.npm.taobao.org/diff/download/diff-4.0.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdiff%2Fdownload%2Fdiff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" - integrity sha1-YPOuy4nV+uUgwRqhnvwruYKq3n0= - - elliptic@^6.5.4: - version "6.5.4" - resolved "https://registry.nlark.com/elliptic/download/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" - integrity sha1-2jfOvTHnmhNn6UG1ku0fvr1Yq7s= - dependencies: - bn.js "^4.11.9" - brorand "^1.1.0" - hash.js "^1.0.0" - hmac-drbg "^1.0.1" - inherits "^2.0.4" - minimalistic-assert "^1.0.1" - minimalistic-crypto-utils "^1.0.1" - - emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.nlark.com/emoji-regex/download/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc= - - es5-ext@^0.10.35, es5-ext@^0.10.50: - version "0.10.53" - resolved "https://registry.npm.taobao.org/es5-ext/download/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1" - integrity sha1-k8WjrP2+8nUiCtcmRK0C7hg2jeE= - dependencies: - es6-iterator "~2.0.3" - es6-symbol "~3.1.3" - next-tick "~1.0.0" - - es6-iterator@~2.0.3: - version "2.0.3" - resolved "https://registry.nlark.com/es6-iterator/download/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" - integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c= - dependencies: - d "1" - es5-ext "^0.10.35" - es6-symbol "^3.1.1" - - es6-symbol@^3.1.1, es6-symbol@~3.1.3: - version "3.1.3" - resolved "https://registry.npm.taobao.org/es6-symbol/download/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" - integrity sha1-utXTwbzawoJp9MszHkMceKxwXRg= - dependencies: - d "^1.0.1" - ext "^1.1.2" - - escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA= - - eventemitter3@^4.0.7: - version "4.0.7" - resolved "https://registry.npm.taobao.org/eventemitter3/download/eventemitter3-4.0.7.tgz?cache=0&sync_timestamp=1598517819668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feventemitter3%2Fdownload%2Feventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" - integrity sha1-Lem2j2Uo1WRO9cWVJqG0oHMGFp8= - - ext@^1.1.2: - version "1.4.0" - resolved "https://registry.npm.taobao.org/ext/download/ext-1.4.0.tgz#89ae7a07158f79d35517882904324077e4379244" - integrity sha1-ia56BxWPedNVF4gpBDJAd+Q3kkQ= - dependencies: - type "^2.0.0" - - form-data@^3.0.0: - version "3.0.1" - resolved "https://registry.nlark.com/form-data/download/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" - integrity sha1-69U3kbeDVqma+aMA1CgsTV65dV8= - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - - get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= - - hash-base@^3.0.0: - version "3.1.0" - resolved "https://registry.npm.taobao.org/hash-base/download/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" - integrity sha1-VcOB2eBuHSmXqIO0o/3f5/DTrzM= - dependencies: - inherits "^2.0.4" - readable-stream "^3.6.0" - safe-buffer "^5.2.0" - - hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7: - version "1.1.7" - resolved "https://registry.npm.taobao.org/hash.js/download/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" - integrity sha1-C6vKU46NTuSg+JiNaIZlN6ADz0I= - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.1" - - hmac-drbg@^1.0.1: - version "1.0.1" - resolved "https://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" - integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= - dependencies: - hash.js "^1.0.3" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.1" - - inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: - version "2.0.4" - resolved "https://registry.nlark.com/inherits/download/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w= - - ip-regex@^4.3.0: - version "4.3.0" - resolved "https://registry.nlark.com/ip-regex/download/ip-regex-4.3.0.tgz?cache=0&sync_timestamp=1618846943469&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fip-regex%2Fdownload%2Fip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" - integrity sha1-aHJ1qw9X+naXj/j03dyKI9WZDbU= - - is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.nlark.com/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0= - - is-typedarray@^1.0.0: - version "1.0.0" - resolved "https://registry.npm.taobao.org/is-typedarray/download/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= - - js-sha3@^0.8.0: - version "0.8.0" - resolved "https://registry.npm.taobao.org/js-sha3/download/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" - integrity sha1-ubel2nOvrX3t0PjEY5VMveaBiEA= - - make-error@^1.1.1: - version "1.3.6" - resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" - integrity sha1-LrLjfqm2fEiR9oShOUeZr0hM96I= - - md5.js@^1.3.4: - version "1.3.5" - resolved "https://registry.npm.taobao.org/md5.js/download/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" - integrity sha1-tdB7jjIW4+J81yjXL3DR5qNCAF8= - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - safe-buffer "^5.1.2" - - mime-db@1.47.0: - version "1.47.0" - resolved "https://registry.npm.taobao.org/mime-db/download/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" - integrity sha1-jLMT5Zll08Bc+/iYkVomevRqM1w= - - mime-types@^2.1.12: - version "2.1.30" - resolved "https://registry.npm.taobao.org/mime-types/download/mime-types-2.1.30.tgz?cache=0&sync_timestamp=1617340140598&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-types%2Fdownload%2Fmime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" - integrity sha1-bnvotMR5gl+F7WMmaV23P5MF1i0= - dependencies: - mime-db "1.47.0" - - minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: - version "1.0.1" - resolved "https://registry.nlark.com/minimalistic-assert/download/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" - integrity sha1-LhlN4ERibUoQ5/f7wAznPoPk1cc= - - minimalistic-crypto-utils@^1.0.1: - version "1.0.1" - resolved "https://registry.nlark.com/minimalistic-crypto-utils/download/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" - integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= - - ms@2.0.0: - version "2.0.0" - resolved "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&sync_timestamp=1607433899126&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - - next-tick@~1.0.0: - version "1.0.0" - resolved "https://registry.npm.taobao.org/next-tick/download/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" - integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= - - node-fetch@^2.6.1: - version "2.6.1" - resolved "https://registry.nlark.com/node-fetch/download/node-fetch-2.6.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fnode-fetch%2Fdownload%2Fnode-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" - integrity sha1-BFvTI2Mfdu0uK1VXM5RBa2OaAFI= - - node-gyp-build@^4.2.0: - version "4.2.3" - resolved "https://registry.npm.taobao.org/node-gyp-build/download/node-gyp-build-4.2.3.tgz#ce6277f853835f718829efb47db20f3e4d9c4739" - integrity sha1-zmJ3+FODX3GIKe+0fbIPPk2cRzk= - - readable-stream@^3.6.0: - version "3.6.0" - resolved "https://registry.nlark.com/readable-stream/download/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" - integrity sha1-M3u9o63AcGvT4CRCaihtS0sskZg= - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - - regenerator-runtime@^0.13.4: - version "0.13.7" - resolved "https://registry.nlark.com/regenerator-runtime/download/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" - integrity sha1-ysLazIoepnX+qrrriugziYrkb1U= - - require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.nlark.com/require-directory/download/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - - ripemd160@^2.0.1: - version "2.0.2" - resolved "https://registry.npm.taobao.org/ripemd160/download/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" - integrity sha1-ocGm9iR1FXe6XQeRTLyShQWFiQw= - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - - rxjs@^6.6.7: - version "6.6.7" - resolved "https://registry.nlark.com/rxjs/download/rxjs-6.6.7.tgz?cache=0&sync_timestamp=1620786704383&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frxjs%2Fdownload%2Frxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" - integrity sha1-kKwBisq/SRv2UEQjXVhjxNq4BMk= - dependencies: - tslib "^1.9.0" - - safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: - version "5.2.1" - resolved "https://registry.nlark.com/safe-buffer/download/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY= - - scryptsy@^2.1.0: - version "2.1.0" - resolved "https://registry.npm.taobao.org/scryptsy/download/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" - integrity sha1-jR6NDAJbWP3SW2+poNyQXuj6p5A= - - sha.js@^2.4.0: - version "2.4.11" - resolved "https://registry.npm.taobao.org/sha.js/download/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" - integrity sha1-N6XPC4HsvGlD3hCbopYNGyZYSuc= - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - - source-map-support@^0.5.17: - version "0.5.19" - resolved "https://registry.npm.taobao.org/source-map-support/download/source-map-support-0.5.19.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map-support%2Fdownload%2Fsource-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" - integrity sha1-qYti+G3K9PZzmWSMCFKRq56P7WE= - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - - source-map@^0.6.0: - version "0.6.1" - resolved "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha1-dHIq8y6WFOnCh6jQu95IteLxomM= - - string-width@^4.1.0, string-width@^4.2.0: - version "4.2.2" - resolved "https://registry.nlark.com/string-width/download/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" - integrity sha1-2v1PlVmnWFz7pSnGoKT3NIjr1MU= - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.0" - - string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.nlark.com/string_decoder/download/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" - integrity sha1-QvEUWUpGzxqOMLCoT1bHjD7awh4= - dependencies: - safe-buffer "~5.2.0" - - strip-ansi@^6.0.0: - version "6.0.0" - resolved "https://registry.nlark.com/strip-ansi/download/strip-ansi-6.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" - integrity sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI= - dependencies: - ansi-regex "^5.0.0" - - ts-node@^9.1.1: - version "9.1.1" - resolved "https://registry.nlark.com/ts-node/download/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" - integrity sha1-UamkUKPpWUAb2l8ASnLVS5NtN20= - dependencies: - arg "^4.1.0" - create-require "^1.1.0" - diff "^4.0.1" - make-error "^1.1.1" - source-map-support "^0.5.17" - yn "3.1.1" - - tslib@^1.9.0: - version "1.14.1" - resolved "https://registry.nlark.com/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1618847097275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA= - - tweetnacl@^1.0.3: - version "1.0.3" - resolved "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" - integrity sha1-rAr3FoBFjYpjeNDQ0FCrFAfTVZY= - - type@^1.0.1: - version "1.2.0" - resolved "https://registry.npm.taobao.org/type/download/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" - integrity sha1-hI3XaY2vo+VKbEeedZxLw/GIR6A= - - type@^2.0.0: - version "2.5.0" - resolved "https://registry.npm.taobao.org/type/download/type-2.5.0.tgz#0a2e78c2e77907b252abe5f298c1b01c63f0db3d" - integrity sha1-Ci54wud5B7JSq+XymMGwHGPw2z0= - - typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.npm.taobao.org/typedarray-to-buffer/download/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" - integrity sha1-qX7nqf9CaRufeD/xvFES/j/KkIA= - dependencies: - is-typedarray "^1.0.0" - - typescript@^4.2.4: - version "4.2.4" - resolved "https://registry.nlark.com/typescript/download/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961" - integrity sha1-hhC1l0feAo/aiYqK7w4QPxVtCWE= - - utf-8-validate@^5.0.2: - version "5.0.5" - resolved "https://registry.nlark.com/utf-8-validate/download/utf-8-validate-5.0.5.tgz?cache=0&sync_timestamp=1620067993025&other_urls=https%3A%2F%2Fregistry.nlark.com%2Futf-8-validate%2Fdownload%2Futf-8-validate-5.0.5.tgz#dd32c2e82c72002dc9f02eb67ba6761f43456ca1" - integrity sha1-3TLC6CxyAC3J8C62e6Z2H0NFbKE= - dependencies: - node-gyp-build "^4.2.0" - - util-deprecate@^1.0.1: - version "1.0.2" - resolved "https://registry.npm.taobao.org/util-deprecate/download/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= - - websocket@^1.0.34: - version "1.0.34" - resolved "https://registry.npm.taobao.org/websocket/download/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" - integrity sha1-K9wmAsCL8sgiU7cwZVwO99yrMRE= - dependencies: - bufferutil "^4.0.1" - debug "^2.2.0" - es5-ext "^0.10.50" - typedarray-to-buffer "^3.1.5" - utf-8-validate "^5.0.2" - yaeti "^0.0.6" - - wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM= - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - - xxhashjs@^0.2.2: - version "0.2.2" - resolved "https://registry.nlark.com/xxhashjs/download/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8" - integrity sha1-imJRVnYhocRqWuIE2gJJx/jKqdg= - dependencies: - cuint "^0.2.2" - - y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.nlark.com/y18n/download/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" - integrity sha1-f0k00PfKjFb5UxSTndzS3ZHOHVU= - - yaeti@^0.0.6: - version "0.0.6" - resolved "https://registry.npm.taobao.org/yaeti/download/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" - integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc= - - yargs-parser@^20.2.2: - version "20.2.7" - resolved "https://registry.nlark.com/yargs-parser/download/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" - integrity sha1-Yd+FwRPt+1p6TjbriqYO9CPLyQo= - - yargs@^17.0.1: - version "17.0.1" - resolved "https://registry.nlark.com/yargs/download/yargs-17.0.1.tgz?cache=0&sync_timestamp=1620086644940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-17.0.1.tgz#6a1ced4ed5ee0b388010ba9fd67af83b9362e0bb" - integrity sha1-ahztTtXuCziAELqf1nr4O5Ni4Ls= - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - - yn@3.1.1: - version "3.1.1" - resolved "https://registry.npm.taobao.org/yn/download/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" - integrity sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A= diff --git a/js/api/yarn.lock b/js/api/yarn.lock deleted file mode 100644 index 73b97af6d3..0000000000 --- a/js/api/yarn.lock +++ /dev/null @@ -1,815 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@babel/runtime@^7.13.9", "@babel/runtime@^7.14.0": - version "7.14.0" - resolved "https://registry.nlark.com/@babel/runtime/download/@babel/runtime-7.14.0.tgz?cache=0&sync_timestamp=1619727501090&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.14.0.tgz#46794bc20b612c5f75e62dd071e24dfd95f1cbe6" - integrity sha1-RnlLwgthLF915i3QceJN/ZXxy+Y= - dependencies: - regenerator-runtime "^0.13.4" - -"@polkadot/api-derive@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/api-derive/download/@polkadot/api-derive-4.10.1.tgz#391ecde22d2f4de67b3eec3389d3f08b9a0cbc4c" - integrity sha1-OR7N4i0vTeZ7PuwzidPwi5oMvEw= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/api" "4.10.1" - "@polkadot/rpc-core" "4.10.1" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - bn.js "^4.11.9" - -"@polkadot/api@4.10.1", "@polkadot/api@^4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/api/download/@polkadot/api-4.10.1.tgz#6a43c9c4585f3f92cd21d7ae85ae481d50eb3bac" - integrity sha1-akPJxFhfP5LNIdeuha5IHVDrO6w= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/api-derive" "4.10.1" - "@polkadot/keyring" "^6.4.1" - "@polkadot/metadata" "4.10.1" - "@polkadot/rpc-core" "4.10.1" - "@polkadot/rpc-provider" "4.10.1" - "@polkadot/types" "4.10.1" - "@polkadot/types-known" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - bn.js "^4.11.9" - eventemitter3 "^4.0.7" - -"@polkadot/keyring@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/keyring/download/@polkadot/keyring-6.4.1.tgz#769c5f0613a27e18726b51e6539fa56f161f6160" - integrity sha1-dpxfBhOifhhya1HmU5+lbxYfYWA= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/util" "6.4.1" - "@polkadot/util-crypto" "6.4.1" - -"@polkadot/metadata@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/metadata/download/@polkadot/metadata-4.10.1.tgz#f22b76e1fc575c20e44b8ba96949f474505ad5fb" - integrity sha1-8it24fxXXCDkS4upaUn0dFBa1fs= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/types" "4.10.1" - "@polkadot/types-known" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - bn.js "^4.11.9" - -"@polkadot/networks@6.4.1", "@polkadot/networks@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/networks/download/@polkadot/networks-6.4.1.tgz#0f933c4af10a2bfe8f072e2c7e8357ef03b2e37e" - integrity sha1-D5M8SvEKK/6PBy4sfoNX7wOy434= - dependencies: - "@babel/runtime" "^7.14.0" - -"@polkadot/rpc-core@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/rpc-core/download/@polkadot/rpc-core-4.10.1.tgz#531cbb481db5ef02a162039a16958509859431f1" - integrity sha1-Uxy7SB217wKhYgOaFpWFCYWUMfE= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/metadata" "4.10.1" - "@polkadot/rpc-provider" "4.10.1" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - -"@polkadot/rpc-provider@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/rpc-provider/download/@polkadot/rpc-provider-4.10.1.tgz#822dbe90a2d0afbf67fcfa2c41ffc2c026d85c10" - integrity sha1-gi2+kKLQr79n/PosQf/CwCbYXBA= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-fetch" "^6.4.1" - "@polkadot/x-global" "^6.4.1" - "@polkadot/x-ws" "^6.4.1" - bn.js "^4.11.9" - eventemitter3 "^4.0.7" - -"@polkadot/types-known@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/types-known/download/@polkadot/types-known-4.10.1.tgz#3377a6482f116c88f82140e7327c9cdea32b0a1d" - integrity sha1-M3emSC8RbIj4IUDnMnyc3qMrCh0= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/networks" "^6.4.1" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - bn.js "^4.11.9" - -"@polkadot/types@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/types/download/@polkadot/types-4.10.1.tgz#603d273ec5ad83cfce9d3eec05bbd198ae9677f0" - integrity sha1-YD0nPsWtg8/OnT7sBbvRmK6Wd/A= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/metadata" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - "@types/bn.js" "^4.11.6" - bn.js "^4.11.9" - -"@polkadot/util-crypto@6.4.1", "@polkadot/util-crypto@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/util-crypto/download/@polkadot/util-crypto-6.4.1.tgz#b567d824598bf8f4587364c1d7234bafe805f1c5" - integrity sha1-tWfYJFmL+PRYc2TB1yNLr+gF8cU= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/networks" "6.4.1" - "@polkadot/util" "6.4.1" - "@polkadot/wasm-crypto" "^4.0.2" - "@polkadot/x-randomvalues" "6.4.1" - base-x "^3.0.8" - base64-js "^1.5.1" - blakejs "^1.1.0" - bn.js "^4.11.9" - create-hash "^1.2.0" - elliptic "^6.5.4" - hash.js "^1.1.7" - js-sha3 "^0.8.0" - scryptsy "^2.1.0" - tweetnacl "^1.0.3" - xxhashjs "^0.2.2" - -"@polkadot/util@6.4.1", "@polkadot/util@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/util/download/@polkadot/util-6.4.1.tgz#f40fdc91ae49396d7930e37dbd31747769555b7a" - integrity sha1-9A/cka5JOW15MON9vTF0d2lVW3o= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-textdecoder" "6.4.1" - "@polkadot/x-textencoder" "6.4.1" - "@types/bn.js" "^4.11.6" - bn.js "^4.11.9" - camelcase "^5.3.1" - ip-regex "^4.3.0" - -"@polkadot/wasm-crypto-asmjs@^4.0.2": - version "4.0.2" - resolved "https://registry.nlark.com/@polkadot/wasm-crypto-asmjs/download/@polkadot/wasm-crypto-asmjs-4.0.2.tgz#f42c353a64e1243841daf90e4bd54eff01a4e3cf" - integrity sha1-9Cw1OmThJDhB2vkOS9VO/wGk488= - dependencies: - "@babel/runtime" "^7.13.9" - -"@polkadot/wasm-crypto-wasm@^4.0.2": - version "4.0.2" - resolved "https://registry.nlark.com/@polkadot/wasm-crypto-wasm/download/@polkadot/wasm-crypto-wasm-4.0.2.tgz#89f9e0a1e4d076784d4a42bea37fc8b06bdd8bb6" - integrity sha1-ifngoeTQdnhNSkK+o3/IsGvdi7Y= - dependencies: - "@babel/runtime" "^7.13.9" - -"@polkadot/wasm-crypto@^4.0.2": - version "4.0.2" - resolved "https://registry.nlark.com/@polkadot/wasm-crypto/download/@polkadot/wasm-crypto-4.0.2.tgz#9649057adee8383cc86433d107ba526b718c5a3b" - integrity sha1-lkkFet7oODzIZDPRB7pSa3GMWjs= - dependencies: - "@babel/runtime" "^7.13.9" - "@polkadot/wasm-crypto-asmjs" "^4.0.2" - "@polkadot/wasm-crypto-wasm" "^4.0.2" - -"@polkadot/x-fetch@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-fetch/download/@polkadot/x-fetch-6.4.1.tgz#12b9e6d42e71deceff44c324ba41baed879093c1" - integrity sha1-Ernm1C5x3s7/RMMkukG67YeQk8E= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - "@types/node-fetch" "^2.5.10" - node-fetch "^2.6.1" - -"@polkadot/x-global@6.4.1", "@polkadot/x-global@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-global/download/@polkadot/x-global-6.4.1.tgz#546e019e0c7f72a92a2612cacf90e8797c94709f" - integrity sha1-VG4Bngx/cqkqJhLKz5DoeXyUcJ8= - dependencies: - "@babel/runtime" "^7.14.0" - "@types/node-fetch" "^2.5.10" - node-fetch "^2.6.1" - -"@polkadot/x-randomvalues@6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-randomvalues/download/@polkadot/x-randomvalues-6.4.1.tgz#bb30d309e03ab63196504f53962e47ec7b97fac9" - integrity sha1-uzDTCeA6tjGWUE9Tli5H7HuX+sk= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - -"@polkadot/x-rxjs@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-rxjs/download/@polkadot/x-rxjs-6.4.1.tgz#c6e8cef8dc3f20b4c7468bd6976d843947da1f15" - integrity sha1-xujO+Nw/ILTHRovWl22EOUfaHxU= - dependencies: - "@babel/runtime" "^7.14.0" - rxjs "^6.6.7" - -"@polkadot/x-textdecoder@6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-textdecoder/download/@polkadot/x-textdecoder-6.4.1.tgz#f33b81267d8de313e851cc699b9dfa6e8f109cde" - integrity sha1-8zuBJn2N4xPoUcxpm536bo8QnN4= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - -"@polkadot/x-textencoder@6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-textencoder/download/@polkadot/x-textencoder-6.4.1.tgz#f34bcc1c1a60d723ea8ce84e10a1efbbf6c1371a" - integrity sha1-80vMHBpg1yPqjOhOEKHvu/bBNxo= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - -"@polkadot/x-ws@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-ws/download/@polkadot/x-ws-6.4.1.tgz#e03295907a50f74ec220d9dc9aa6d45370f67554" - integrity sha1-4DKVkHpQ907CINncmqbUU3D2dVQ= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - "@types/websocket" "^1.0.2" - websocket "^1.0.34" - -"@types/bn.js@^4.11.6": - version "4.11.6" - resolved "https://registry.nlark.com/@types/bn.js/download/@types/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c" - integrity sha1-wwbHDZNYquozzU7aCSp0K5UFlnw= - dependencies: - "@types/node" "*" - -"@types/node-fetch@^2.5.10": - version "2.5.10" - resolved "https://registry.nlark.com/@types/node-fetch/download/@types/node-fetch-2.5.10.tgz#9b4d4a0425562f9fcea70b12cb3fcdd946ca8132" - integrity sha1-m01KBCVWL5/OpwsSyz/N2UbKgTI= - dependencies: - "@types/node" "*" - form-data "^3.0.0" - -"@types/node@*", "@types/node@^15.3.1": - version "15.3.1" - resolved "https://registry.nlark.com/@types/node/download/@types/node-15.3.1.tgz?cache=0&sync_timestamp=1621463621315&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-15.3.1.tgz#23a06b87eedb524016616e886b116b8fdcb180af" - integrity sha1-I6Brh+7bUkAWYW6IaxFrj9yxgK8= - -"@types/websocket@^1.0.2": - version "1.0.2" - resolved "https://registry.nlark.com/@types/websocket/download/@types/websocket-1.0.2.tgz?cache=0&sync_timestamp=1621244924715&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fwebsocket%2Fdownload%2F%40types%2Fwebsocket-1.0.2.tgz#d2855c6a312b7da73ed16ba6781815bf30c6187a" - integrity sha1-0oVcajErfac+0WumeBgVvzDGGHo= - dependencies: - "@types/node" "*" - -"@types/yargs-parser@*": - version "20.2.0" - resolved "https://registry.nlark.com/@types/yargs-parser/download/@types/yargs-parser-20.2.0.tgz?cache=0&sync_timestamp=1621243984050&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fyargs-parser%2Fdownload%2F%40types%2Fyargs-parser-20.2.0.tgz#dd3e6699ba3237f0348cd085e4698780204842f9" - integrity sha1-3T5mmboyN/A0jNCF5GmHgCBIQvk= - -"@types/yargs@^16.0.2": - version "16.0.2" - resolved "https://registry.nlark.com/@types/yargs/download/@types/yargs-16.0.2.tgz#b860dfa2964425239bba37ab3178b0acd79b8a61" - integrity sha1-uGDfopZEJSObujerMXiwrNebimE= - dependencies: - "@types/yargs-parser" "*" - -ansi-regex@^5.0.0: - version "5.0.0" - resolved "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz?cache=0&sync_timestamp=1618553044693&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" - integrity sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U= - -ansi-styles@^4.0.0: - version "4.3.0" - resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= - dependencies: - color-convert "^2.0.1" - -arg@^4.1.0: - version "4.1.3" - resolved "https://registry.npm.taobao.org/arg/download/arg-4.1.3.tgz?cache=0&sync_timestamp=1605576950209&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Farg%2Fdownload%2Farg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" - integrity sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk= - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.npm.taobao.org/asynckit/download/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= - -base-x@^3.0.8: - version "3.0.8" - resolved "https://registry.npm.taobao.org/base-x/download/base-x-3.0.8.tgz#1e1106c2537f0162e8b52474a557ebb09000018d" - integrity sha1-HhEGwlN/AWLotSR0pVfrsJAAAY0= - dependencies: - safe-buffer "^5.0.1" - -base64-js@^1.5.1: - version "1.5.1" - resolved "https://registry.nlark.com/base64-js/download/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" - integrity sha1-GxtEAWClv3rUC2UPCVljSBkDkwo= - -blakejs@^1.1.0: - version "1.1.0" - resolved "https://registry.npm.taobao.org/blakejs/download/blakejs-1.1.0.tgz#69df92ef953aa88ca51a32df6ab1c54a155fc7a5" - integrity sha1-ad+S75U6qIylGjLfarHFShVfx6U= - -bn.js@^4.11.9: - version "4.12.0" - resolved "https://registry.npm.taobao.org/bn.js/download/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" - integrity sha1-d1s/J477uXGO7HNh9IP7Nvu/6og= - -brorand@^1.1.0: - version "1.1.0" - resolved "https://registry.npm.taobao.org/brorand/download/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" - integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= - -buffer-from@^1.0.0: - version "1.1.1" - resolved "https://registry.nlark.com/buffer-from/download/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" - integrity sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8= - -bufferutil@^4.0.1: - version "4.0.3" - resolved "https://registry.npm.taobao.org/bufferutil/download/bufferutil-4.0.3.tgz?cache=0&sync_timestamp=1609618802475&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbufferutil%2Fdownload%2Fbufferutil-4.0.3.tgz#66724b756bed23cd7c28c4d306d7994f9943cc6b" - integrity sha1-ZnJLdWvtI818KMTTBteZT5lDzGs= - dependencies: - node-gyp-build "^4.2.0" - -camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA= - -cipher-base@^1.0.1: - version "1.0.4" - resolved "https://registry.nlark.com/cipher-base/download/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" - integrity sha1-h2Dk7MJy9MNjUy+SbYdKriwTl94= - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.nlark.com/cliui/download/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08= - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.nlark.com/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= - -combined-stream@^1.0.8: - version "1.0.8" - resolved "https://registry.nlark.com/combined-stream/download/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha1-w9RaizT9cwYxoRCoolIGgrMdWn8= - dependencies: - delayed-stream "~1.0.0" - -create-hash@^1.2.0: - version "1.2.0" - resolved "https://registry.nlark.com/create-hash/download/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" - integrity sha1-iJB4rxGmN1a8+1m9IhmWvjqe8ZY= - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - md5.js "^1.3.4" - ripemd160 "^2.0.1" - sha.js "^2.4.0" - -create-require@^1.1.0: - version "1.1.1" - resolved "https://registry.npm.taobao.org/create-require/download/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" - integrity sha1-wdfo8eX2z8n/ZfnNNS03NIdWwzM= - -cuint@^0.2.2: - version "0.2.2" - resolved "https://registry.nlark.com/cuint/download/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b" - integrity sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs= - -d@1, d@^1.0.1: - version "1.0.1" - resolved "https://registry.npm.taobao.org/d/download/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" - integrity sha1-hpgJU3LVjb7jRv/Qxwk/mfj561o= - dependencies: - es5-ext "^0.10.50" - type "^1.0.1" - -debug@^2.2.0: - version "2.6.9" - resolved "https://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz?cache=0&sync_timestamp=1614330710870&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8= - dependencies: - ms "2.0.0" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.nlark.com/delayed-stream/download/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= - -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.npm.taobao.org/diff/download/diff-4.0.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdiff%2Fdownload%2Fdiff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" - integrity sha1-YPOuy4nV+uUgwRqhnvwruYKq3n0= - -elliptic@^6.5.4: - version "6.5.4" - resolved "https://registry.nlark.com/elliptic/download/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" - integrity sha1-2jfOvTHnmhNn6UG1ku0fvr1Yq7s= - dependencies: - bn.js "^4.11.9" - brorand "^1.1.0" - hash.js "^1.0.0" - hmac-drbg "^1.0.1" - inherits "^2.0.4" - minimalistic-assert "^1.0.1" - minimalistic-crypto-utils "^1.0.1" - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.nlark.com/emoji-regex/download/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc= - -es5-ext@^0.10.35, es5-ext@^0.10.50: - version "0.10.53" - resolved "https://registry.npm.taobao.org/es5-ext/download/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1" - integrity sha1-k8WjrP2+8nUiCtcmRK0C7hg2jeE= - dependencies: - es6-iterator "~2.0.3" - es6-symbol "~3.1.3" - next-tick "~1.0.0" - -es6-iterator@~2.0.3: - version "2.0.3" - resolved "https://registry.nlark.com/es6-iterator/download/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" - integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c= - dependencies: - d "1" - es5-ext "^0.10.35" - es6-symbol "^3.1.1" - -es6-symbol@^3.1.1, es6-symbol@~3.1.3: - version "3.1.3" - resolved "https://registry.npm.taobao.org/es6-symbol/download/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" - integrity sha1-utXTwbzawoJp9MszHkMceKxwXRg= - dependencies: - d "^1.0.1" - ext "^1.1.2" - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA= - -eventemitter3@^4.0.7: - version "4.0.7" - resolved "https://registry.npm.taobao.org/eventemitter3/download/eventemitter3-4.0.7.tgz?cache=0&sync_timestamp=1598517819668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feventemitter3%2Fdownload%2Feventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" - integrity sha1-Lem2j2Uo1WRO9cWVJqG0oHMGFp8= - -ext@^1.1.2: - version "1.4.0" - resolved "https://registry.npm.taobao.org/ext/download/ext-1.4.0.tgz#89ae7a07158f79d35517882904324077e4379244" - integrity sha1-ia56BxWPedNVF4gpBDJAd+Q3kkQ= - dependencies: - type "^2.0.0" - -form-data@^3.0.0: - version "3.0.1" - resolved "https://registry.nlark.com/form-data/download/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" - integrity sha1-69U3kbeDVqma+aMA1CgsTV65dV8= - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= - -hash-base@^3.0.0: - version "3.1.0" - resolved "https://registry.npm.taobao.org/hash-base/download/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" - integrity sha1-VcOB2eBuHSmXqIO0o/3f5/DTrzM= - dependencies: - inherits "^2.0.4" - readable-stream "^3.6.0" - safe-buffer "^5.2.0" - -hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7: - version "1.1.7" - resolved "https://registry.npm.taobao.org/hash.js/download/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" - integrity sha1-C6vKU46NTuSg+JiNaIZlN6ADz0I= - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.1" - -hmac-drbg@^1.0.1: - version "1.0.1" - resolved "https://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" - integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= - dependencies: - hash.js "^1.0.3" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.1" - -inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: - version "2.0.4" - resolved "https://registry.nlark.com/inherits/download/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w= - -ip-regex@^4.3.0: - version "4.3.0" - resolved "https://registry.nlark.com/ip-regex/download/ip-regex-4.3.0.tgz?cache=0&sync_timestamp=1618846943469&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fip-regex%2Fdownload%2Fip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" - integrity sha1-aHJ1qw9X+naXj/j03dyKI9WZDbU= - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.nlark.com/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0= - -is-typedarray@^1.0.0: - version "1.0.0" - resolved "https://registry.npm.taobao.org/is-typedarray/download/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= - -js-sha3@^0.8.0: - version "0.8.0" - resolved "https://registry.npm.taobao.org/js-sha3/download/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" - integrity sha1-ubel2nOvrX3t0PjEY5VMveaBiEA= - -make-error@^1.1.1: - version "1.3.6" - resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" - integrity sha1-LrLjfqm2fEiR9oShOUeZr0hM96I= - -md5.js@^1.3.4: - version "1.3.5" - resolved "https://registry.npm.taobao.org/md5.js/download/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" - integrity sha1-tdB7jjIW4+J81yjXL3DR5qNCAF8= - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - safe-buffer "^5.1.2" - -mime-db@1.47.0: - version "1.47.0" - resolved "https://registry.npm.taobao.org/mime-db/download/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" - integrity sha1-jLMT5Zll08Bc+/iYkVomevRqM1w= - -mime-types@^2.1.12: - version "2.1.30" - resolved "https://registry.npm.taobao.org/mime-types/download/mime-types-2.1.30.tgz?cache=0&sync_timestamp=1617340140598&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-types%2Fdownload%2Fmime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" - integrity sha1-bnvotMR5gl+F7WMmaV23P5MF1i0= - dependencies: - mime-db "1.47.0" - -minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: - version "1.0.1" - resolved "https://registry.nlark.com/minimalistic-assert/download/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" - integrity sha1-LhlN4ERibUoQ5/f7wAznPoPk1cc= - -minimalistic-crypto-utils@^1.0.1: - version "1.0.1" - resolved "https://registry.nlark.com/minimalistic-crypto-utils/download/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" - integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&sync_timestamp=1607433899126&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - -next-tick@~1.0.0: - version "1.0.0" - resolved "https://registry.npm.taobao.org/next-tick/download/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" - integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= - -node-fetch@^2.6.1: - version "2.6.1" - resolved "https://registry.nlark.com/node-fetch/download/node-fetch-2.6.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fnode-fetch%2Fdownload%2Fnode-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" - integrity sha1-BFvTI2Mfdu0uK1VXM5RBa2OaAFI= - -node-gyp-build@^4.2.0: - version "4.2.3" - resolved "https://registry.npm.taobao.org/node-gyp-build/download/node-gyp-build-4.2.3.tgz#ce6277f853835f718829efb47db20f3e4d9c4739" - integrity sha1-zmJ3+FODX3GIKe+0fbIPPk2cRzk= - -readable-stream@^3.6.0: - version "3.6.0" - resolved "https://registry.nlark.com/readable-stream/download/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" - integrity sha1-M3u9o63AcGvT4CRCaihtS0sskZg= - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - -regenerator-runtime@^0.13.4: - version "0.13.7" - resolved "https://registry.nlark.com/regenerator-runtime/download/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" - integrity sha1-ysLazIoepnX+qrrriugziYrkb1U= - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.nlark.com/require-directory/download/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -ripemd160@^2.0.1: - version "2.0.2" - resolved "https://registry.npm.taobao.org/ripemd160/download/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" - integrity sha1-ocGm9iR1FXe6XQeRTLyShQWFiQw= - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - -rxjs@^6.6.7: - version "6.6.7" - resolved "https://registry.nlark.com/rxjs/download/rxjs-6.6.7.tgz?cache=0&sync_timestamp=1620786704383&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frxjs%2Fdownload%2Frxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" - integrity sha1-kKwBisq/SRv2UEQjXVhjxNq4BMk= - dependencies: - tslib "^1.9.0" - -safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: - version "5.2.1" - resolved "https://registry.nlark.com/safe-buffer/download/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY= - -scryptsy@^2.1.0: - version "2.1.0" - resolved "https://registry.npm.taobao.org/scryptsy/download/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" - integrity sha1-jR6NDAJbWP3SW2+poNyQXuj6p5A= - -sha.js@^2.4.0: - version "2.4.11" - resolved "https://registry.npm.taobao.org/sha.js/download/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" - integrity sha1-N6XPC4HsvGlD3hCbopYNGyZYSuc= - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -source-map-support@^0.5.17: - version "0.5.19" - resolved "https://registry.npm.taobao.org/source-map-support/download/source-map-support-0.5.19.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map-support%2Fdownload%2Fsource-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" - integrity sha1-qYti+G3K9PZzmWSMCFKRq56P7WE= - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map@^0.6.0: - version "0.6.1" - resolved "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha1-dHIq8y6WFOnCh6jQu95IteLxomM= - -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.2" - resolved "https://registry.nlark.com/string-width/download/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" - integrity sha1-2v1PlVmnWFz7pSnGoKT3NIjr1MU= - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.0" - -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.nlark.com/string_decoder/download/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" - integrity sha1-QvEUWUpGzxqOMLCoT1bHjD7awh4= - dependencies: - safe-buffer "~5.2.0" - -strip-ansi@^6.0.0: - version "6.0.0" - resolved "https://registry.nlark.com/strip-ansi/download/strip-ansi-6.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" - integrity sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI= - dependencies: - ansi-regex "^5.0.0" - -ts-node@^9.1.1: - version "9.1.1" - resolved "https://registry.nlark.com/ts-node/download/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" - integrity sha1-UamkUKPpWUAb2l8ASnLVS5NtN20= - dependencies: - arg "^4.1.0" - create-require "^1.1.0" - diff "^4.0.1" - make-error "^1.1.1" - source-map-support "^0.5.17" - yn "3.1.1" - -tslib@^1.9.0: - version "1.14.1" - resolved "https://registry.nlark.com/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1618847097275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA= - -tweetnacl@^1.0.3: - version "1.0.3" - resolved "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" - integrity sha1-rAr3FoBFjYpjeNDQ0FCrFAfTVZY= - -type@^1.0.1: - version "1.2.0" - resolved "https://registry.npm.taobao.org/type/download/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" - integrity sha1-hI3XaY2vo+VKbEeedZxLw/GIR6A= - -type@^2.0.0: - version "2.5.0" - resolved "https://registry.npm.taobao.org/type/download/type-2.5.0.tgz#0a2e78c2e77907b252abe5f298c1b01c63f0db3d" - integrity sha1-Ci54wud5B7JSq+XymMGwHGPw2z0= - -typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.npm.taobao.org/typedarray-to-buffer/download/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" - integrity sha1-qX7nqf9CaRufeD/xvFES/j/KkIA= - dependencies: - is-typedarray "^1.0.0" - -typescript@^4.2.4: - version "4.2.4" - resolved "https://registry.nlark.com/typescript/download/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961" - integrity sha1-hhC1l0feAo/aiYqK7w4QPxVtCWE= - -utf-8-validate@^5.0.2: - version "5.0.5" - resolved "https://registry.nlark.com/utf-8-validate/download/utf-8-validate-5.0.5.tgz?cache=0&sync_timestamp=1620067993025&other_urls=https%3A%2F%2Fregistry.nlark.com%2Futf-8-validate%2Fdownload%2Futf-8-validate-5.0.5.tgz#dd32c2e82c72002dc9f02eb67ba6761f43456ca1" - integrity sha1-3TLC6CxyAC3J8C62e6Z2H0NFbKE= - dependencies: - node-gyp-build "^4.2.0" - -util-deprecate@^1.0.1: - version "1.0.2" - resolved "https://registry.npm.taobao.org/util-deprecate/download/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= - -websocket@^1.0.34: - version "1.0.34" - resolved "https://registry.npm.taobao.org/websocket/download/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" - integrity sha1-K9wmAsCL8sgiU7cwZVwO99yrMRE= - dependencies: - bufferutil "^4.0.1" - debug "^2.2.0" - es5-ext "^0.10.50" - typedarray-to-buffer "^3.1.5" - utf-8-validate "^5.0.2" - yaeti "^0.0.6" - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM= - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -xxhashjs@^0.2.2: - version "0.2.2" - resolved "https://registry.nlark.com/xxhashjs/download/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8" - integrity sha1-imJRVnYhocRqWuIE2gJJx/jKqdg= - dependencies: - cuint "^0.2.2" - -y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.nlark.com/y18n/download/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" - integrity sha1-f0k00PfKjFb5UxSTndzS3ZHOHVU= - -yaeti@^0.0.6: - version "0.0.6" - resolved "https://registry.npm.taobao.org/yaeti/download/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" - integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc= - -yargs-parser@^20.2.2: - version "20.2.7" - resolved "https://registry.nlark.com/yargs-parser/download/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" - integrity sha1-Yd+FwRPt+1p6TjbriqYO9CPLyQo= - -yargs@^17.0.1: - version "17.0.1" - resolved "https://registry.nlark.com/yargs/download/yargs-17.0.1.tgz?cache=0&sync_timestamp=1620086644940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-17.0.1.tgz#6a1ced4ed5ee0b388010ba9fd67af83b9362e0bb" - integrity sha1-ahztTtXuCziAELqf1nr4O5Ni4Ls= - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yn@3.1.1: - version "3.1.1" - resolved "https://registry.npm.taobao.org/yn/download/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" - integrity sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A= diff --git a/js/e2e/package.json b/js/e2e/package.json index dff904189b..dfd22c8b9f 100644 --- a/js/e2e/package.json +++ b/js/e2e/package.json @@ -8,12 +8,15 @@ "license": "GNU-v3", "private": true, "devDependencies": { + "@polkadot/types": "^4.11.2", "@types/node": "^15.3.1", "tslint": "^6.1.3", "typescript": "^4.2.4" }, "dependencies": { - "@pint/launch": "^1" + "@polkadot/api": "^4.11.2", + "@polkadot/keyring": "^6.5.1", + "find-up": "^5.0.0" }, "scripts": { "build": "tsc --strict", diff --git a/js/e2e/src/config.ts b/js/e2e/src/config.ts new file mode 100644 index 0000000000..7a2d9dcdfd --- /dev/null +++ b/js/e2e/src/config.ts @@ -0,0 +1,22 @@ +/** + * Config of E2E tests + */ +import { ApiPromise } from "@polkadot/api"; +import { KeyringPair } from "@polkadot/keyring/types"; + +/** + * Extrinsic definition + */ +export interface Extrinsic { + pallet: string; + call: string; + args: any[]; + block?: number; + timeout?: number; +} + +export interface Config { + api: ApiPromise; + pair: KeyringPair; + exs: Extrinsic[]; +} diff --git a/js/e2e/src/ext.ts b/js/e2e/src/ext.ts new file mode 100644 index 0000000000..428a81eb67 --- /dev/null +++ b/js/e2e/src/ext.ts @@ -0,0 +1,23 @@ +/** + * Runner extensions + */ +import { ISubmittableResult } from "@polkadot/types/types"; + +/** + * Wait for n blocks + */ +export async function waitBlock(block: number) {} + +/** + * Timeout for promise + */ +export async function timeout(fn: Promise, ms?: number): Promise { + return fn; +} + +/** + * Exit process if failed + */ +export async function checkError(sr: ISubmittableResult) { + process.exit(1); +} diff --git a/js/e2e/src/index.ts b/js/e2e/src/index.ts index bf901f90f9..43a21a7f37 100644 --- a/js/e2e/src/index.ts +++ b/js/e2e/src/index.ts @@ -1,18 +1,19 @@ /** * E2E tests for PINT */ - -/** - * Extrinsic definition - */ -export interface Extrinsic { - pallet: string; - call: string; - args: any[]; - timeout?: undefined | number; -} +import { Config, Extrinsic } from "./config"; +import { waitBlock, timeout, checkError } from "./ext"; /** * Traverse all extrinsics */ -export async function run(exs: Extrinsic[]) {} +export async function run(config: Config) { + config.exs.forEach(async (ex: Extrinsic) => { + if (ex.block) await waitBlock.call(config, ex.block); + await timeout( + config.api.tx[ex.pallet] + [ex.call](...ex.args) + .signAndSend(config.pair, checkError) + ); + }); +} diff --git a/js/launch/index.ts b/js/e2e/src/launch.ts similarity index 88% rename from js/launch/index.ts rename to js/e2e/src/launch.ts index 613ea89ad2..68e0c9adf0 100644 --- a/js/launch/index.ts +++ b/js/e2e/src/launch.ts @@ -10,7 +10,7 @@ import { fork, ChildProcess, StdioOptions, spawn } from "child_process"; */ export async function local(stdio?: StdioOptions): Promise { return fork("js/polkadot-launch", ["config.json"], { - cwd: path.resolve(await findUp("Cargo.toml"), ".."), + cwd: path.resolve(String(await findUp("Cargo.toml")), ".."), stdio, }); } diff --git a/js/launch/README.md b/js/launch/README.md deleted file mode 100644 index b83364f271..0000000000 --- a/js/launch/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# PINT launch - -Launch PINT with polkadot and statemint - -```typescript -import { local, docker } from "@pint/launch"; -import { StdioOptions } from "child_process"; - -async main() { - const stdio = "inherit"; - const localPs: ChildProcess = await local(stdio); - const dockerPs: ChildProcess = await local(stdio); -} - -``` - -## LICENSE - -GNU-v3 diff --git a/js/launch/package.json b/js/launch/package.json deleted file mode 100644 index b13786cc9e..0000000000 --- a/js/launch/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "@pint/launch", - "version": "1.0.0", - "description": "E2E tests for PINT", - "main": "index.js", - "repository": "https://github.com/ChainSafe/PINT", - "author": "ChainSafe", - "license": "GNU-v3", - "private": true, - "devDependencies": { - "@types/node": "^15.3.1", - "tslint": "^6.1.3", - "typescript": "^4.2.4" - }, - "dependencies": { - "find-up": "^5.0.0", - "polkadot-launch": "1.5.0" - }, - "scripts": { - "build": "tsc --strict", - "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" - } -} diff --git a/js/launch/tsconfig.json b/js/launch/tsconfig.json deleted file mode 100644 index 8db1eddfc2..0000000000 --- a/js/launch/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "indent": [true, "spaces", 2], - "compilerOptions": { - "allowSyntheticDefaultImports": true, - "baseUrl": ".", - "declaration": true, - "esModuleInterop": true, - "outDir": "lib", - "module": "commonjs", - "moduleResolution": "node", - "noImplicitAny": true, - "resolveJsonModule": true, - "sourceMap": true, - "skipLibCheck": true, - "target": "es6" - }, - "include": ["index.ts", "src/**/*"], - "exclude": ["node_modules"] -} diff --git a/js/launch/tslint.json b/js/launch/tslint.json deleted file mode 100644 index 0b5e9615e0..0000000000 --- a/js/launch/tslint.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "tslint:recommended", - "rules": { - "curly": [true, "ignore-same-line"], - "max-classes-per-file": false, - "max-line-length": { - "options": [120] - }, - "new-parens": true, - "no-arg": true, - "no-bitwise": true, - "no-conditional-assignment": true, - "no-consecutive-blank-lines": false, - "no-console": false - }, - "linterOptions": { - "exclude": [] - } -} diff --git a/js/launch/yarn.lock b/js/launch/yarn.lock deleted file mode 100644 index 73b97af6d3..0000000000 --- a/js/launch/yarn.lock +++ /dev/null @@ -1,815 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@babel/runtime@^7.13.9", "@babel/runtime@^7.14.0": - version "7.14.0" - resolved "https://registry.nlark.com/@babel/runtime/download/@babel/runtime-7.14.0.tgz?cache=0&sync_timestamp=1619727501090&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.14.0.tgz#46794bc20b612c5f75e62dd071e24dfd95f1cbe6" - integrity sha1-RnlLwgthLF915i3QceJN/ZXxy+Y= - dependencies: - regenerator-runtime "^0.13.4" - -"@polkadot/api-derive@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/api-derive/download/@polkadot/api-derive-4.10.1.tgz#391ecde22d2f4de67b3eec3389d3f08b9a0cbc4c" - integrity sha1-OR7N4i0vTeZ7PuwzidPwi5oMvEw= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/api" "4.10.1" - "@polkadot/rpc-core" "4.10.1" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - bn.js "^4.11.9" - -"@polkadot/api@4.10.1", "@polkadot/api@^4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/api/download/@polkadot/api-4.10.1.tgz#6a43c9c4585f3f92cd21d7ae85ae481d50eb3bac" - integrity sha1-akPJxFhfP5LNIdeuha5IHVDrO6w= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/api-derive" "4.10.1" - "@polkadot/keyring" "^6.4.1" - "@polkadot/metadata" "4.10.1" - "@polkadot/rpc-core" "4.10.1" - "@polkadot/rpc-provider" "4.10.1" - "@polkadot/types" "4.10.1" - "@polkadot/types-known" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - bn.js "^4.11.9" - eventemitter3 "^4.0.7" - -"@polkadot/keyring@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/keyring/download/@polkadot/keyring-6.4.1.tgz#769c5f0613a27e18726b51e6539fa56f161f6160" - integrity sha1-dpxfBhOifhhya1HmU5+lbxYfYWA= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/util" "6.4.1" - "@polkadot/util-crypto" "6.4.1" - -"@polkadot/metadata@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/metadata/download/@polkadot/metadata-4.10.1.tgz#f22b76e1fc575c20e44b8ba96949f474505ad5fb" - integrity sha1-8it24fxXXCDkS4upaUn0dFBa1fs= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/types" "4.10.1" - "@polkadot/types-known" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - bn.js "^4.11.9" - -"@polkadot/networks@6.4.1", "@polkadot/networks@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/networks/download/@polkadot/networks-6.4.1.tgz#0f933c4af10a2bfe8f072e2c7e8357ef03b2e37e" - integrity sha1-D5M8SvEKK/6PBy4sfoNX7wOy434= - dependencies: - "@babel/runtime" "^7.14.0" - -"@polkadot/rpc-core@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/rpc-core/download/@polkadot/rpc-core-4.10.1.tgz#531cbb481db5ef02a162039a16958509859431f1" - integrity sha1-Uxy7SB217wKhYgOaFpWFCYWUMfE= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/metadata" "4.10.1" - "@polkadot/rpc-provider" "4.10.1" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - -"@polkadot/rpc-provider@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/rpc-provider/download/@polkadot/rpc-provider-4.10.1.tgz#822dbe90a2d0afbf67fcfa2c41ffc2c026d85c10" - integrity sha1-gi2+kKLQr79n/PosQf/CwCbYXBA= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-fetch" "^6.4.1" - "@polkadot/x-global" "^6.4.1" - "@polkadot/x-ws" "^6.4.1" - bn.js "^4.11.9" - eventemitter3 "^4.0.7" - -"@polkadot/types-known@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/types-known/download/@polkadot/types-known-4.10.1.tgz#3377a6482f116c88f82140e7327c9cdea32b0a1d" - integrity sha1-M3emSC8RbIj4IUDnMnyc3qMrCh0= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/networks" "^6.4.1" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - bn.js "^4.11.9" - -"@polkadot/types@4.10.1": - version "4.10.1" - resolved "https://registry.nlark.com/@polkadot/types/download/@polkadot/types-4.10.1.tgz#603d273ec5ad83cfce9d3eec05bbd198ae9677f0" - integrity sha1-YD0nPsWtg8/OnT7sBbvRmK6Wd/A= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/metadata" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - "@types/bn.js" "^4.11.6" - bn.js "^4.11.9" - -"@polkadot/util-crypto@6.4.1", "@polkadot/util-crypto@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/util-crypto/download/@polkadot/util-crypto-6.4.1.tgz#b567d824598bf8f4587364c1d7234bafe805f1c5" - integrity sha1-tWfYJFmL+PRYc2TB1yNLr+gF8cU= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/networks" "6.4.1" - "@polkadot/util" "6.4.1" - "@polkadot/wasm-crypto" "^4.0.2" - "@polkadot/x-randomvalues" "6.4.1" - base-x "^3.0.8" - base64-js "^1.5.1" - blakejs "^1.1.0" - bn.js "^4.11.9" - create-hash "^1.2.0" - elliptic "^6.5.4" - hash.js "^1.1.7" - js-sha3 "^0.8.0" - scryptsy "^2.1.0" - tweetnacl "^1.0.3" - xxhashjs "^0.2.2" - -"@polkadot/util@6.4.1", "@polkadot/util@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/util/download/@polkadot/util-6.4.1.tgz#f40fdc91ae49396d7930e37dbd31747769555b7a" - integrity sha1-9A/cka5JOW15MON9vTF0d2lVW3o= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-textdecoder" "6.4.1" - "@polkadot/x-textencoder" "6.4.1" - "@types/bn.js" "^4.11.6" - bn.js "^4.11.9" - camelcase "^5.3.1" - ip-regex "^4.3.0" - -"@polkadot/wasm-crypto-asmjs@^4.0.2": - version "4.0.2" - resolved "https://registry.nlark.com/@polkadot/wasm-crypto-asmjs/download/@polkadot/wasm-crypto-asmjs-4.0.2.tgz#f42c353a64e1243841daf90e4bd54eff01a4e3cf" - integrity sha1-9Cw1OmThJDhB2vkOS9VO/wGk488= - dependencies: - "@babel/runtime" "^7.13.9" - -"@polkadot/wasm-crypto-wasm@^4.0.2": - version "4.0.2" - resolved "https://registry.nlark.com/@polkadot/wasm-crypto-wasm/download/@polkadot/wasm-crypto-wasm-4.0.2.tgz#89f9e0a1e4d076784d4a42bea37fc8b06bdd8bb6" - integrity sha1-ifngoeTQdnhNSkK+o3/IsGvdi7Y= - dependencies: - "@babel/runtime" "^7.13.9" - -"@polkadot/wasm-crypto@^4.0.2": - version "4.0.2" - resolved "https://registry.nlark.com/@polkadot/wasm-crypto/download/@polkadot/wasm-crypto-4.0.2.tgz#9649057adee8383cc86433d107ba526b718c5a3b" - integrity sha1-lkkFet7oODzIZDPRB7pSa3GMWjs= - dependencies: - "@babel/runtime" "^7.13.9" - "@polkadot/wasm-crypto-asmjs" "^4.0.2" - "@polkadot/wasm-crypto-wasm" "^4.0.2" - -"@polkadot/x-fetch@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-fetch/download/@polkadot/x-fetch-6.4.1.tgz#12b9e6d42e71deceff44c324ba41baed879093c1" - integrity sha1-Ernm1C5x3s7/RMMkukG67YeQk8E= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - "@types/node-fetch" "^2.5.10" - node-fetch "^2.6.1" - -"@polkadot/x-global@6.4.1", "@polkadot/x-global@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-global/download/@polkadot/x-global-6.4.1.tgz#546e019e0c7f72a92a2612cacf90e8797c94709f" - integrity sha1-VG4Bngx/cqkqJhLKz5DoeXyUcJ8= - dependencies: - "@babel/runtime" "^7.14.0" - "@types/node-fetch" "^2.5.10" - node-fetch "^2.6.1" - -"@polkadot/x-randomvalues@6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-randomvalues/download/@polkadot/x-randomvalues-6.4.1.tgz#bb30d309e03ab63196504f53962e47ec7b97fac9" - integrity sha1-uzDTCeA6tjGWUE9Tli5H7HuX+sk= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - -"@polkadot/x-rxjs@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-rxjs/download/@polkadot/x-rxjs-6.4.1.tgz#c6e8cef8dc3f20b4c7468bd6976d843947da1f15" - integrity sha1-xujO+Nw/ILTHRovWl22EOUfaHxU= - dependencies: - "@babel/runtime" "^7.14.0" - rxjs "^6.6.7" - -"@polkadot/x-textdecoder@6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-textdecoder/download/@polkadot/x-textdecoder-6.4.1.tgz#f33b81267d8de313e851cc699b9dfa6e8f109cde" - integrity sha1-8zuBJn2N4xPoUcxpm536bo8QnN4= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - -"@polkadot/x-textencoder@6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-textencoder/download/@polkadot/x-textencoder-6.4.1.tgz#f34bcc1c1a60d723ea8ce84e10a1efbbf6c1371a" - integrity sha1-80vMHBpg1yPqjOhOEKHvu/bBNxo= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - -"@polkadot/x-ws@^6.4.1": - version "6.4.1" - resolved "https://registry.nlark.com/@polkadot/x-ws/download/@polkadot/x-ws-6.4.1.tgz#e03295907a50f74ec220d9dc9aa6d45370f67554" - integrity sha1-4DKVkHpQ907CINncmqbUU3D2dVQ= - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - "@types/websocket" "^1.0.2" - websocket "^1.0.34" - -"@types/bn.js@^4.11.6": - version "4.11.6" - resolved "https://registry.nlark.com/@types/bn.js/download/@types/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c" - integrity sha1-wwbHDZNYquozzU7aCSp0K5UFlnw= - dependencies: - "@types/node" "*" - -"@types/node-fetch@^2.5.10": - version "2.5.10" - resolved "https://registry.nlark.com/@types/node-fetch/download/@types/node-fetch-2.5.10.tgz#9b4d4a0425562f9fcea70b12cb3fcdd946ca8132" - integrity sha1-m01KBCVWL5/OpwsSyz/N2UbKgTI= - dependencies: - "@types/node" "*" - form-data "^3.0.0" - -"@types/node@*", "@types/node@^15.3.1": - version "15.3.1" - resolved "https://registry.nlark.com/@types/node/download/@types/node-15.3.1.tgz?cache=0&sync_timestamp=1621463621315&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-15.3.1.tgz#23a06b87eedb524016616e886b116b8fdcb180af" - integrity sha1-I6Brh+7bUkAWYW6IaxFrj9yxgK8= - -"@types/websocket@^1.0.2": - version "1.0.2" - resolved "https://registry.nlark.com/@types/websocket/download/@types/websocket-1.0.2.tgz?cache=0&sync_timestamp=1621244924715&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fwebsocket%2Fdownload%2F%40types%2Fwebsocket-1.0.2.tgz#d2855c6a312b7da73ed16ba6781815bf30c6187a" - integrity sha1-0oVcajErfac+0WumeBgVvzDGGHo= - dependencies: - "@types/node" "*" - -"@types/yargs-parser@*": - version "20.2.0" - resolved "https://registry.nlark.com/@types/yargs-parser/download/@types/yargs-parser-20.2.0.tgz?cache=0&sync_timestamp=1621243984050&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fyargs-parser%2Fdownload%2F%40types%2Fyargs-parser-20.2.0.tgz#dd3e6699ba3237f0348cd085e4698780204842f9" - integrity sha1-3T5mmboyN/A0jNCF5GmHgCBIQvk= - -"@types/yargs@^16.0.2": - version "16.0.2" - resolved "https://registry.nlark.com/@types/yargs/download/@types/yargs-16.0.2.tgz#b860dfa2964425239bba37ab3178b0acd79b8a61" - integrity sha1-uGDfopZEJSObujerMXiwrNebimE= - dependencies: - "@types/yargs-parser" "*" - -ansi-regex@^5.0.0: - version "5.0.0" - resolved "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz?cache=0&sync_timestamp=1618553044693&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" - integrity sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U= - -ansi-styles@^4.0.0: - version "4.3.0" - resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= - dependencies: - color-convert "^2.0.1" - -arg@^4.1.0: - version "4.1.3" - resolved "https://registry.npm.taobao.org/arg/download/arg-4.1.3.tgz?cache=0&sync_timestamp=1605576950209&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Farg%2Fdownload%2Farg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" - integrity sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk= - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.npm.taobao.org/asynckit/download/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= - -base-x@^3.0.8: - version "3.0.8" - resolved "https://registry.npm.taobao.org/base-x/download/base-x-3.0.8.tgz#1e1106c2537f0162e8b52474a557ebb09000018d" - integrity sha1-HhEGwlN/AWLotSR0pVfrsJAAAY0= - dependencies: - safe-buffer "^5.0.1" - -base64-js@^1.5.1: - version "1.5.1" - resolved "https://registry.nlark.com/base64-js/download/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" - integrity sha1-GxtEAWClv3rUC2UPCVljSBkDkwo= - -blakejs@^1.1.0: - version "1.1.0" - resolved "https://registry.npm.taobao.org/blakejs/download/blakejs-1.1.0.tgz#69df92ef953aa88ca51a32df6ab1c54a155fc7a5" - integrity sha1-ad+S75U6qIylGjLfarHFShVfx6U= - -bn.js@^4.11.9: - version "4.12.0" - resolved "https://registry.npm.taobao.org/bn.js/download/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" - integrity sha1-d1s/J477uXGO7HNh9IP7Nvu/6og= - -brorand@^1.1.0: - version "1.1.0" - resolved "https://registry.npm.taobao.org/brorand/download/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" - integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= - -buffer-from@^1.0.0: - version "1.1.1" - resolved "https://registry.nlark.com/buffer-from/download/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" - integrity sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8= - -bufferutil@^4.0.1: - version "4.0.3" - resolved "https://registry.npm.taobao.org/bufferutil/download/bufferutil-4.0.3.tgz?cache=0&sync_timestamp=1609618802475&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbufferutil%2Fdownload%2Fbufferutil-4.0.3.tgz#66724b756bed23cd7c28c4d306d7994f9943cc6b" - integrity sha1-ZnJLdWvtI818KMTTBteZT5lDzGs= - dependencies: - node-gyp-build "^4.2.0" - -camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA= - -cipher-base@^1.0.1: - version "1.0.4" - resolved "https://registry.nlark.com/cipher-base/download/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" - integrity sha1-h2Dk7MJy9MNjUy+SbYdKriwTl94= - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.nlark.com/cliui/download/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08= - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.nlark.com/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= - -combined-stream@^1.0.8: - version "1.0.8" - resolved "https://registry.nlark.com/combined-stream/download/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha1-w9RaizT9cwYxoRCoolIGgrMdWn8= - dependencies: - delayed-stream "~1.0.0" - -create-hash@^1.2.0: - version "1.2.0" - resolved "https://registry.nlark.com/create-hash/download/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" - integrity sha1-iJB4rxGmN1a8+1m9IhmWvjqe8ZY= - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - md5.js "^1.3.4" - ripemd160 "^2.0.1" - sha.js "^2.4.0" - -create-require@^1.1.0: - version "1.1.1" - resolved "https://registry.npm.taobao.org/create-require/download/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" - integrity sha1-wdfo8eX2z8n/ZfnNNS03NIdWwzM= - -cuint@^0.2.2: - version "0.2.2" - resolved "https://registry.nlark.com/cuint/download/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b" - integrity sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs= - -d@1, d@^1.0.1: - version "1.0.1" - resolved "https://registry.npm.taobao.org/d/download/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" - integrity sha1-hpgJU3LVjb7jRv/Qxwk/mfj561o= - dependencies: - es5-ext "^0.10.50" - type "^1.0.1" - -debug@^2.2.0: - version "2.6.9" - resolved "https://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz?cache=0&sync_timestamp=1614330710870&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8= - dependencies: - ms "2.0.0" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.nlark.com/delayed-stream/download/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= - -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.npm.taobao.org/diff/download/diff-4.0.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdiff%2Fdownload%2Fdiff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" - integrity sha1-YPOuy4nV+uUgwRqhnvwruYKq3n0= - -elliptic@^6.5.4: - version "6.5.4" - resolved "https://registry.nlark.com/elliptic/download/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" - integrity sha1-2jfOvTHnmhNn6UG1ku0fvr1Yq7s= - dependencies: - bn.js "^4.11.9" - brorand "^1.1.0" - hash.js "^1.0.0" - hmac-drbg "^1.0.1" - inherits "^2.0.4" - minimalistic-assert "^1.0.1" - minimalistic-crypto-utils "^1.0.1" - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.nlark.com/emoji-regex/download/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc= - -es5-ext@^0.10.35, es5-ext@^0.10.50: - version "0.10.53" - resolved "https://registry.npm.taobao.org/es5-ext/download/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1" - integrity sha1-k8WjrP2+8nUiCtcmRK0C7hg2jeE= - dependencies: - es6-iterator "~2.0.3" - es6-symbol "~3.1.3" - next-tick "~1.0.0" - -es6-iterator@~2.0.3: - version "2.0.3" - resolved "https://registry.nlark.com/es6-iterator/download/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" - integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c= - dependencies: - d "1" - es5-ext "^0.10.35" - es6-symbol "^3.1.1" - -es6-symbol@^3.1.1, es6-symbol@~3.1.3: - version "3.1.3" - resolved "https://registry.npm.taobao.org/es6-symbol/download/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" - integrity sha1-utXTwbzawoJp9MszHkMceKxwXRg= - dependencies: - d "^1.0.1" - ext "^1.1.2" - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA= - -eventemitter3@^4.0.7: - version "4.0.7" - resolved "https://registry.npm.taobao.org/eventemitter3/download/eventemitter3-4.0.7.tgz?cache=0&sync_timestamp=1598517819668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feventemitter3%2Fdownload%2Feventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" - integrity sha1-Lem2j2Uo1WRO9cWVJqG0oHMGFp8= - -ext@^1.1.2: - version "1.4.0" - resolved "https://registry.npm.taobao.org/ext/download/ext-1.4.0.tgz#89ae7a07158f79d35517882904324077e4379244" - integrity sha1-ia56BxWPedNVF4gpBDJAd+Q3kkQ= - dependencies: - type "^2.0.0" - -form-data@^3.0.0: - version "3.0.1" - resolved "https://registry.nlark.com/form-data/download/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" - integrity sha1-69U3kbeDVqma+aMA1CgsTV65dV8= - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= - -hash-base@^3.0.0: - version "3.1.0" - resolved "https://registry.npm.taobao.org/hash-base/download/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" - integrity sha1-VcOB2eBuHSmXqIO0o/3f5/DTrzM= - dependencies: - inherits "^2.0.4" - readable-stream "^3.6.0" - safe-buffer "^5.2.0" - -hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7: - version "1.1.7" - resolved "https://registry.npm.taobao.org/hash.js/download/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" - integrity sha1-C6vKU46NTuSg+JiNaIZlN6ADz0I= - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.1" - -hmac-drbg@^1.0.1: - version "1.0.1" - resolved "https://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" - integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= - dependencies: - hash.js "^1.0.3" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.1" - -inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: - version "2.0.4" - resolved "https://registry.nlark.com/inherits/download/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w= - -ip-regex@^4.3.0: - version "4.3.0" - resolved "https://registry.nlark.com/ip-regex/download/ip-regex-4.3.0.tgz?cache=0&sync_timestamp=1618846943469&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fip-regex%2Fdownload%2Fip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" - integrity sha1-aHJ1qw9X+naXj/j03dyKI9WZDbU= - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.nlark.com/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0= - -is-typedarray@^1.0.0: - version "1.0.0" - resolved "https://registry.npm.taobao.org/is-typedarray/download/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= - -js-sha3@^0.8.0: - version "0.8.0" - resolved "https://registry.npm.taobao.org/js-sha3/download/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" - integrity sha1-ubel2nOvrX3t0PjEY5VMveaBiEA= - -make-error@^1.1.1: - version "1.3.6" - resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" - integrity sha1-LrLjfqm2fEiR9oShOUeZr0hM96I= - -md5.js@^1.3.4: - version "1.3.5" - resolved "https://registry.npm.taobao.org/md5.js/download/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" - integrity sha1-tdB7jjIW4+J81yjXL3DR5qNCAF8= - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - safe-buffer "^5.1.2" - -mime-db@1.47.0: - version "1.47.0" - resolved "https://registry.npm.taobao.org/mime-db/download/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" - integrity sha1-jLMT5Zll08Bc+/iYkVomevRqM1w= - -mime-types@^2.1.12: - version "2.1.30" - resolved "https://registry.npm.taobao.org/mime-types/download/mime-types-2.1.30.tgz?cache=0&sync_timestamp=1617340140598&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-types%2Fdownload%2Fmime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" - integrity sha1-bnvotMR5gl+F7WMmaV23P5MF1i0= - dependencies: - mime-db "1.47.0" - -minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: - version "1.0.1" - resolved "https://registry.nlark.com/minimalistic-assert/download/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" - integrity sha1-LhlN4ERibUoQ5/f7wAznPoPk1cc= - -minimalistic-crypto-utils@^1.0.1: - version "1.0.1" - resolved "https://registry.nlark.com/minimalistic-crypto-utils/download/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" - integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&sync_timestamp=1607433899126&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - -next-tick@~1.0.0: - version "1.0.0" - resolved "https://registry.npm.taobao.org/next-tick/download/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" - integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= - -node-fetch@^2.6.1: - version "2.6.1" - resolved "https://registry.nlark.com/node-fetch/download/node-fetch-2.6.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fnode-fetch%2Fdownload%2Fnode-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" - integrity sha1-BFvTI2Mfdu0uK1VXM5RBa2OaAFI= - -node-gyp-build@^4.2.0: - version "4.2.3" - resolved "https://registry.npm.taobao.org/node-gyp-build/download/node-gyp-build-4.2.3.tgz#ce6277f853835f718829efb47db20f3e4d9c4739" - integrity sha1-zmJ3+FODX3GIKe+0fbIPPk2cRzk= - -readable-stream@^3.6.0: - version "3.6.0" - resolved "https://registry.nlark.com/readable-stream/download/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" - integrity sha1-M3u9o63AcGvT4CRCaihtS0sskZg= - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - -regenerator-runtime@^0.13.4: - version "0.13.7" - resolved "https://registry.nlark.com/regenerator-runtime/download/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" - integrity sha1-ysLazIoepnX+qrrriugziYrkb1U= - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.nlark.com/require-directory/download/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -ripemd160@^2.0.1: - version "2.0.2" - resolved "https://registry.npm.taobao.org/ripemd160/download/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" - integrity sha1-ocGm9iR1FXe6XQeRTLyShQWFiQw= - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - -rxjs@^6.6.7: - version "6.6.7" - resolved "https://registry.nlark.com/rxjs/download/rxjs-6.6.7.tgz?cache=0&sync_timestamp=1620786704383&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frxjs%2Fdownload%2Frxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" - integrity sha1-kKwBisq/SRv2UEQjXVhjxNq4BMk= - dependencies: - tslib "^1.9.0" - -safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: - version "5.2.1" - resolved "https://registry.nlark.com/safe-buffer/download/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY= - -scryptsy@^2.1.0: - version "2.1.0" - resolved "https://registry.npm.taobao.org/scryptsy/download/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" - integrity sha1-jR6NDAJbWP3SW2+poNyQXuj6p5A= - -sha.js@^2.4.0: - version "2.4.11" - resolved "https://registry.npm.taobao.org/sha.js/download/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" - integrity sha1-N6XPC4HsvGlD3hCbopYNGyZYSuc= - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -source-map-support@^0.5.17: - version "0.5.19" - resolved "https://registry.npm.taobao.org/source-map-support/download/source-map-support-0.5.19.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map-support%2Fdownload%2Fsource-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" - integrity sha1-qYti+G3K9PZzmWSMCFKRq56P7WE= - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map@^0.6.0: - version "0.6.1" - resolved "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha1-dHIq8y6WFOnCh6jQu95IteLxomM= - -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.2" - resolved "https://registry.nlark.com/string-width/download/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" - integrity sha1-2v1PlVmnWFz7pSnGoKT3NIjr1MU= - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.0" - -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.nlark.com/string_decoder/download/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" - integrity sha1-QvEUWUpGzxqOMLCoT1bHjD7awh4= - dependencies: - safe-buffer "~5.2.0" - -strip-ansi@^6.0.0: - version "6.0.0" - resolved "https://registry.nlark.com/strip-ansi/download/strip-ansi-6.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" - integrity sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI= - dependencies: - ansi-regex "^5.0.0" - -ts-node@^9.1.1: - version "9.1.1" - resolved "https://registry.nlark.com/ts-node/download/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" - integrity sha1-UamkUKPpWUAb2l8ASnLVS5NtN20= - dependencies: - arg "^4.1.0" - create-require "^1.1.0" - diff "^4.0.1" - make-error "^1.1.1" - source-map-support "^0.5.17" - yn "3.1.1" - -tslib@^1.9.0: - version "1.14.1" - resolved "https://registry.nlark.com/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1618847097275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA= - -tweetnacl@^1.0.3: - version "1.0.3" - resolved "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" - integrity sha1-rAr3FoBFjYpjeNDQ0FCrFAfTVZY= - -type@^1.0.1: - version "1.2.0" - resolved "https://registry.npm.taobao.org/type/download/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" - integrity sha1-hI3XaY2vo+VKbEeedZxLw/GIR6A= - -type@^2.0.0: - version "2.5.0" - resolved "https://registry.npm.taobao.org/type/download/type-2.5.0.tgz#0a2e78c2e77907b252abe5f298c1b01c63f0db3d" - integrity sha1-Ci54wud5B7JSq+XymMGwHGPw2z0= - -typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.npm.taobao.org/typedarray-to-buffer/download/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" - integrity sha1-qX7nqf9CaRufeD/xvFES/j/KkIA= - dependencies: - is-typedarray "^1.0.0" - -typescript@^4.2.4: - version "4.2.4" - resolved "https://registry.nlark.com/typescript/download/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961" - integrity sha1-hhC1l0feAo/aiYqK7w4QPxVtCWE= - -utf-8-validate@^5.0.2: - version "5.0.5" - resolved "https://registry.nlark.com/utf-8-validate/download/utf-8-validate-5.0.5.tgz?cache=0&sync_timestamp=1620067993025&other_urls=https%3A%2F%2Fregistry.nlark.com%2Futf-8-validate%2Fdownload%2Futf-8-validate-5.0.5.tgz#dd32c2e82c72002dc9f02eb67ba6761f43456ca1" - integrity sha1-3TLC6CxyAC3J8C62e6Z2H0NFbKE= - dependencies: - node-gyp-build "^4.2.0" - -util-deprecate@^1.0.1: - version "1.0.2" - resolved "https://registry.npm.taobao.org/util-deprecate/download/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= - -websocket@^1.0.34: - version "1.0.34" - resolved "https://registry.npm.taobao.org/websocket/download/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" - integrity sha1-K9wmAsCL8sgiU7cwZVwO99yrMRE= - dependencies: - bufferutil "^4.0.1" - debug "^2.2.0" - es5-ext "^0.10.50" - typedarray-to-buffer "^3.1.5" - utf-8-validate "^5.0.2" - yaeti "^0.0.6" - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM= - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -xxhashjs@^0.2.2: - version "0.2.2" - resolved "https://registry.nlark.com/xxhashjs/download/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8" - integrity sha1-imJRVnYhocRqWuIE2gJJx/jKqdg= - dependencies: - cuint "^0.2.2" - -y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.nlark.com/y18n/download/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" - integrity sha1-f0k00PfKjFb5UxSTndzS3ZHOHVU= - -yaeti@^0.0.6: - version "0.0.6" - resolved "https://registry.npm.taobao.org/yaeti/download/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" - integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc= - -yargs-parser@^20.2.2: - version "20.2.7" - resolved "https://registry.nlark.com/yargs-parser/download/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" - integrity sha1-Yd+FwRPt+1p6TjbriqYO9CPLyQo= - -yargs@^17.0.1: - version "17.0.1" - resolved "https://registry.nlark.com/yargs/download/yargs-17.0.1.tgz?cache=0&sync_timestamp=1620086644940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-17.0.1.tgz#6a1ced4ed5ee0b388010ba9fd67af83b9362e0bb" - integrity sha1-ahztTtXuCziAELqf1nr4O5Ni4Ls= - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yn@3.1.1: - version "3.1.1" - resolved "https://registry.npm.taobao.org/yn/download/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" - integrity sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A= diff --git a/js/package.json b/js/package.json index 53d4a50c67..c82b4ad16e 100644 --- a/js/package.json +++ b/js/package.json @@ -1,4 +1,4 @@ { "private": true, - "workspaces": ["api", "e2e", "launch", "pint-types-bundle", "polkadot-launch"] + "workspaces": ["e2e", "pint-types-bundle"] } diff --git a/js/yarn.lock b/js/yarn.lock index 491fed59cd..0ea9b46024 100644 --- a/js/yarn.lock +++ b/js/yarn.lock @@ -44,7 +44,7 @@ "@polkadot/x-rxjs" "^6.5.1" bn.js "^4.11.9" -"@polkadot/api@4.11.2", "@polkadot/api@^4.10.1", "@polkadot/api@^4.11.1": +"@polkadot/api@4.11.2", "@polkadot/api@^4.11.2": version "4.11.2" resolved "https://registry.nlark.com/@polkadot/api/download/@polkadot/api-4.11.2.tgz#5d531fbc30f5b0315e329f71052b9abf8c8952a0" integrity sha1-XVMfvDD1sDFeMp9xBSuav4yJUqA= @@ -129,7 +129,7 @@ "@polkadot/util" "^6.5.1" bn.js "^4.11.9" -"@polkadot/types@4.11.2", "@polkadot/types@^4.7.2": +"@polkadot/types@4.11.2", "@polkadot/types@^4.11.2", "@polkadot/types@^4.7.2": version "4.11.2" resolved "https://registry.nlark.com/@polkadot/types/download/@polkadot/types-4.11.2.tgz#1067ec8dfd908fb434d29c44064a72409c4d5557" integrity sha1-EGfsjf2Qj7Q00pxEBkpyQJxNVVc= @@ -288,11 +288,6 @@ dependencies: "@types/node" "*" -ansi-regex@^5.0.0: - version "5.0.0" - resolved "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz?cache=0&sync_timestamp=1618553044693&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" - integrity sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U= - ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-3.2.1.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" @@ -300,18 +295,6 @@ ansi-styles@^3.2.1: dependencies: color-convert "^1.9.0" -ansi-styles@^4.0.0: - version "4.3.0" - resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= - dependencies: - color-convert "^2.0.1" - -arg@^4.1.0: - version "4.1.3" - resolved "https://registry.npm.taobao.org/arg/download/arg-4.1.3.tgz?cache=0&sync_timestamp=1605576950209&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Farg%2Fdownload%2Farg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" - integrity sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk= - argparse@^1.0.7: version "1.0.10" resolved "https://registry.nlark.com/argparse/download/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -364,11 +347,6 @@ brorand@^1.1.0: resolved "https://registry.npm.taobao.org/brorand/download/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= -buffer-from@^1.0.0: - version "1.1.1" - resolved "https://registry.nlark.com/buffer-from/download/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" - integrity sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8= - bufferutil@^4.0.1: version "4.0.3" resolved "https://registry.npm.taobao.org/bufferutil/download/bufferutil-4.0.3.tgz?cache=0&sync_timestamp=1609618802475&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbufferutil%2Fdownload%2Fbufferutil-4.0.3.tgz#66724b756bed23cd7c28c4d306d7994f9943cc6b" @@ -381,7 +359,7 @@ builtin-modules@^1.1.1: resolved "https://registry.npm.taobao.org/builtin-modules/download/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" integrity sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8= -camelcase@^5.0.0, camelcase@^5.3.1: +camelcase@^5.3.1: version "5.3.1" resolved "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA= @@ -403,24 +381,6 @@ cipher-base@^1.0.1: inherits "^2.0.1" safe-buffer "^5.0.1" -cliui@^6.0.0: - version "6.0.0" - resolved "https://registry.npm.taobao.org/cliui/download/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" - integrity sha1-UR1wLAxOQcoVbX0OlgIfI+EyJbE= - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^6.2.0" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.nlark.com/cliui/download/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08= - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - color-convert@^1.9.0: version "1.9.3" resolved "https://registry.nlark.com/color-convert/download/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" @@ -428,23 +388,11 @@ color-convert@^1.9.0: dependencies: color-name "1.1.3" -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.nlark.com/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= - dependencies: - color-name "~1.1.4" - color-name@1.1.3: version "1.1.3" resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= - combined-stream@^1.0.8: version "1.0.8" resolved "https://registry.nlark.com/combined-stream/download/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" @@ -473,11 +421,6 @@ create-hash@^1.2.0: ripemd160 "^2.0.1" sha.js "^2.4.0" -create-require@^1.1.0: - version "1.1.1" - resolved "https://registry.npm.taobao.org/create-require/download/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" - integrity sha1-wdfo8eX2z8n/ZfnNNS03NIdWwzM= - cuint@^0.2.2: version "0.2.2" resolved "https://registry.nlark.com/cuint/download/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b" @@ -498,11 +441,6 @@ debug@^2.2.0: dependencies: ms "2.0.0" -decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.npm.taobao.org/decamelize/download/decamelize-1.2.0.tgz?cache=0&sync_timestamp=1610348634503&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdecamelize%2Fdownload%2Fdecamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= - delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.nlark.com/delayed-stream/download/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" @@ -526,11 +464,6 @@ elliptic@^6.5.4: minimalistic-assert "^1.0.1" minimalistic-crypto-utils "^1.0.1" -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.nlark.com/emoji-regex/download/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc= - es5-ext@^0.10.35, es5-ext@^0.10.50: version "0.10.53" resolved "https://registry.npm.taobao.org/es5-ext/download/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1" @@ -557,11 +490,6 @@ es6-symbol@^3.1.1, es6-symbol@~3.1.3: d "^1.0.1" ext "^1.1.2" -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA= - escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.nlark.com/escape-string-regexp/download/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" @@ -584,22 +512,9 @@ ext@^1.1.2: dependencies: type "^2.0.0" -filter-console@^0.1.1: - version "0.1.1" - resolved "https://registry.npm.taobao.org/filter-console/download/filter-console-0.1.1.tgz#6242be28982bba7415bcc6db74a79f4a294fa67c" - integrity sha1-YkK+KJgrunQVvMbbdKefSilPpnw= - -find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz?cache=0&sync_timestamp=1597169842138&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk= - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - find-up@^5.0.0: version "5.0.0" - resolved "https://registry.npm.taobao.org/find-up/download/find-up-5.0.0.tgz?cache=0&sync_timestamp=1597169842138&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + resolved "https://registry.npm.taobao.org/find-up/download/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" integrity sha1-TJKBnstwg1YeT0okCoa+UZj1Nvw= dependencies: locate-path "^6.0.0" @@ -624,11 +539,6 @@ function-bind@^1.1.1: resolved "https://registry.nlark.com/function-bind/download/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0= -get-caller-file@^2.0.1, get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= - glob@^7.1.1: version "7.1.7" resolved "https://registry.nlark.com/glob/download/glob-7.1.7.tgz?cache=0&sync_timestamp=1620337382269&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fglob%2Fdownload%2Fglob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" @@ -704,11 +614,6 @@ is-core-module@^2.2.0: dependencies: has "^1.0.3" -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.nlark.com/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0= - is-typedarray@^1.0.0: version "1.0.0" resolved "https://registry.npm.taobao.org/is-typedarray/download/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" @@ -732,13 +637,6 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.npm.taobao.org/locate-path/download/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha1-Gvujlq/WdqbUJQTQpno6frn2KqA= - dependencies: - p-locate "^4.1.0" - locate-path@^6.0.0: version "6.0.0" resolved "https://registry.npm.taobao.org/locate-path/download/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" @@ -746,11 +644,6 @@ locate-path@^6.0.0: dependencies: p-locate "^5.0.0" -make-error@^1.1.1: - version "1.3.6" - resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" - integrity sha1-LrLjfqm2fEiR9oShOUeZr0hM96I= - md5.js@^1.3.4: version "1.3.5" resolved "https://registry.npm.taobao.org/md5.js/download/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" @@ -828,13 +721,6 @@ once@^1.3.0: dependencies: wrappy "1" -p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.npm.taobao.org/p-limit/download/p-limit-2.3.0.tgz?cache=0&sync_timestamp=1606290276843&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-limit%2Fdownload%2Fp-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha1-PdM8ZHohT9//2DWTPrCG2g3CHbE= - dependencies: - p-try "^2.0.0" - p-limit@^3.0.2: version "3.1.0" resolved "https://registry.npm.taobao.org/p-limit/download/p-limit-3.1.0.tgz?cache=0&sync_timestamp=1606290276843&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-limit%2Fdownload%2Fp-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" @@ -842,13 +728,6 @@ p-limit@^3.0.2: dependencies: yocto-queue "^0.1.0" -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.npm.taobao.org/p-locate/download/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha1-o0KLtwiLOmApL2aRkni3wpetTwc= - dependencies: - p-limit "^2.2.0" - p-locate@^5.0.0: version "5.0.0" resolved "https://registry.npm.taobao.org/p-locate/download/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" @@ -856,11 +735,6 @@ p-locate@^5.0.0: dependencies: p-limit "^3.0.2" -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.npm.taobao.org/p-try/download/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha1-yyhoVA4xPWHeWPr741zpAE1VQOY= - path-exists@^4.0.0: version "4.0.0" resolved "https://registry.npm.taobao.org/path-exists/download/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" @@ -876,11 +750,6 @@ path-parse@^1.0.6: resolved "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU= -prettier@2.2.1: - version "2.2.1" - resolved "https://registry.nlark.com/prettier/download/prettier-2.2.1.tgz?cache=0&sync_timestamp=1620594183343&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fprettier%2Fdownload%2Fprettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" - integrity sha1-eVoaeN1S8HPaDNQrIfnJE4GSP/U= - readable-stream@^3.6.0: version "3.6.0" resolved "https://registry.nlark.com/readable-stream/download/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" @@ -895,16 +764,6 @@ regenerator-runtime@^0.13.4: resolved "https://registry.nlark.com/regenerator-runtime/download/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" integrity sha1-ysLazIoepnX+qrrriugziYrkb1U= -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.nlark.com/require-directory/download/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.npm.taobao.org/require-main-filename/download/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs= - resolve@^1.3.2: version "1.20.0" resolved "https://registry.npm.taobao.org/resolve/download/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" @@ -943,11 +802,6 @@ semver@^5.3.0: resolved "https://registry.nlark.com/semver/download/semver-5.7.1.tgz?cache=0&sync_timestamp=1618846864940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fsemver%2Fdownload%2Fsemver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha1-qVT5Ma66UI0we78Gnv8MAclhFvc= -set-blocking@^2.0.0: - version "2.0.0" - resolved "https://registry.npm.taobao.org/set-blocking/download/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= - sha.js@^2.4.0: version "2.4.11" resolved "https://registry.npm.taobao.org/sha.js/download/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" @@ -956,33 +810,11 @@ sha.js@^2.4.0: inherits "^2.0.1" safe-buffer "^5.0.1" -source-map-support@^0.5.17: - version "0.5.19" - resolved "https://registry.npm.taobao.org/source-map-support/download/source-map-support-0.5.19.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map-support%2Fdownload%2Fsource-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" - integrity sha1-qYti+G3K9PZzmWSMCFKRq56P7WE= - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map@^0.6.0: - version "0.6.1" - resolved "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha1-dHIq8y6WFOnCh6jQu95IteLxomM= - sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.nlark.com/sprintf-js/download/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.2" - resolved "https://registry.nlark.com/string-width/download/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" - integrity sha1-2v1PlVmnWFz7pSnGoKT3NIjr1MU= - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.0" - string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.nlark.com/string_decoder/download/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -990,13 +822,6 @@ string_decoder@^1.1.1: dependencies: safe-buffer "~5.2.0" -strip-ansi@^6.0.0: - version "6.0.0" - resolved "https://registry.nlark.com/strip-ansi/download/strip-ansi-6.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" - integrity sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI= - dependencies: - ansi-regex "^5.0.0" - supports-color@^5.3.0: version "5.5.0" resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-5.5.0.tgz?cache=0&sync_timestamp=1618560959124&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" @@ -1004,18 +829,6 @@ supports-color@^5.3.0: dependencies: has-flag "^3.0.0" -ts-node@^9.1.1: - version "9.1.1" - resolved "https://registry.nlark.com/ts-node/download/ts-node-9.1.1.tgz?cache=0&sync_timestamp=1621798304685&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fts-node%2Fdownload%2Fts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" - integrity sha1-UamkUKPpWUAb2l8ASnLVS5NtN20= - dependencies: - arg "^4.1.0" - create-require "^1.1.0" - diff "^4.0.1" - make-error "^1.1.1" - source-map-support "^0.5.17" - yn "3.1.1" - tslib@^1.13.0, tslib@^1.8.1, tslib@^1.9.0: version "1.14.1" resolved "https://registry.nlark.com/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1618847097275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" @@ -1069,7 +882,7 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@^4.1.5, typescript@^4.2.4: +typescript@^4.2.4: version "4.3.2" resolved "https://registry.nlark.com/typescript/download/typescript-4.3.2.tgz?cache=0&sync_timestamp=1622100951079&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftypescript%2Fdownload%2Ftypescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805" integrity sha1-OZqxiqxFgC1vJJjeUFT8u+cWqAU= @@ -1098,29 +911,6 @@ websocket@^1.0.34: utf-8-validate "^5.0.2" yaeti "^0.0.6" -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.npm.taobao.org/which-module/download/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= - -wrap-ansi@^6.2.0: - version "6.2.0" - resolved "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" - integrity sha1-6Tk7oHEC5skaOyIUePAlfNKFblM= - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM= - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - wrappy@1: version "1.0.2" resolved "https://registry.nlark.com/wrappy/download/wrappy-1.0.2.tgz?cache=0&sync_timestamp=1619133505879&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrappy%2Fdownload%2Fwrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" @@ -1133,74 +923,11 @@ xxhashjs@^0.2.2: dependencies: cuint "^0.2.2" -y18n@^4.0.0: - version "4.0.3" - resolved "https://registry.npm.taobao.org/y18n/download/y18n-4.0.3.tgz?cache=0&sync_timestamp=1617822684820&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fy18n%2Fdownload%2Fy18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" - integrity sha1-tfJZyCzW4zaSHv17/Yv1YN6e7t8= - -y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.nlark.com/y18n/download/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" - integrity sha1-f0k00PfKjFb5UxSTndzS3ZHOHVU= - yaeti@^0.0.6: version "0.0.6" resolved "https://registry.npm.taobao.org/yaeti/download/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc= -yargs-parser@^18.1.2: - version "18.1.3" - resolved "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" - integrity sha1-vmjEl1xrKr9GkjawyHA2L6sJp7A= - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs-parser@^20.2.2: - version "20.2.7" - resolved "https://registry.nlark.com/yargs-parser/download/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" - integrity sha1-Yd+FwRPt+1p6TjbriqYO9CPLyQo= - -yargs@^15.4.1: - version "15.4.1" - resolved "https://registry.nlark.com/yargs/download/yargs-15.4.1.tgz?cache=0&sync_timestamp=1620086465147&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" - integrity sha1-DYehbeAa7p2L7Cv7909nhRcw9Pg= - dependencies: - cliui "^6.0.0" - decamelize "^1.2.0" - find-up "^4.1.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^4.2.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^18.1.2" - -yargs@^17.0.1: - version "17.0.1" - resolved "https://registry.nlark.com/yargs/download/yargs-17.0.1.tgz?cache=0&sync_timestamp=1620086644940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-17.0.1.tgz#6a1ced4ed5ee0b388010ba9fd67af83b9362e0bb" - integrity sha1-ahztTtXuCziAELqf1nr4O5Ni4Ls= - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yarn@^1.22.10: - version "1.22.10" - resolved "https://registry.npm.taobao.org/yarn/download/yarn-1.22.10.tgz#c99daa06257c80f8fa2c3f1490724e394c26b18c" - integrity sha1-yZ2qBiV8gPj6LD8UkHJOOUwmsYw= - -yn@3.1.1: - version "3.1.1" - resolved "https://registry.npm.taobao.org/yn/download/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" - integrity sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A= - yocto-queue@^0.1.0: version "0.1.0" resolved "https://registry.npm.taobao.org/yocto-queue/download/yocto-queue-0.1.0.tgz?cache=0&sync_timestamp=1606290282107&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyocto-queue%2Fdownload%2Fyocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" From 5d1d8da9b51e9eccd5310b0a192515477ba4277a Mon Sep 17 00:00:00 2001 From: clearloop Date: Fri, 28 May 2021 03:25:05 +0800 Subject: [PATCH 22/74] ci(e2e): squash commands in e2e --- .circleci/config.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 12d8ea4f4d..d388b3a0f3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -151,12 +151,11 @@ jobs: name: Load Archived Docker Image command: docker load -i /tmp/workspace/image.tar - checkout - - run: - name: init submodule - comamnd: gitub submodule update --init - run: name: Build PINT launch Image - command: docker build -f docker/launch.Dockerfile -t launch . + command: | + git submodule update --init + docker build -f docker/launch.Dockerfile -t launch . docker-publish-latest: executor: test-executor description: Publish latest Docker Image From 8bbdb1687c1556d1b7f4b232c2ac101164c86d8c Mon Sep 17 00:00:00 2001 From: clearloop Date: Fri, 28 May 2021 16:50:49 +0800 Subject: [PATCH 23/74] feat(e2e): add e2e runner --- js/e2e/src/ext.ts | 23 -------- js/e2e/src/index.ts | 17 +----- js/e2e/src/runner.ts | 123 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+), 38 deletions(-) delete mode 100644 js/e2e/src/ext.ts create mode 100644 js/e2e/src/runner.ts diff --git a/js/e2e/src/ext.ts b/js/e2e/src/ext.ts deleted file mode 100644 index 428a81eb67..0000000000 --- a/js/e2e/src/ext.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Runner extensions - */ -import { ISubmittableResult } from "@polkadot/types/types"; - -/** - * Wait for n blocks - */ -export async function waitBlock(block: number) {} - -/** - * Timeout for promise - */ -export async function timeout(fn: Promise, ms?: number): Promise { - return fn; -} - -/** - * Exit process if failed - */ -export async function checkError(sr: ISubmittableResult) { - process.exit(1); -} diff --git a/js/e2e/src/index.ts b/js/e2e/src/index.ts index 43a21a7f37..e4a145485c 100644 --- a/js/e2e/src/index.ts +++ b/js/e2e/src/index.ts @@ -1,19 +1,6 @@ /** * E2E tests for PINT */ -import { Config, Extrinsic } from "./config"; -import { waitBlock, timeout, checkError } from "./ext"; +import Runner from "./runner"; -/** - * Traverse all extrinsics - */ -export async function run(config: Config) { - config.exs.forEach(async (ex: Extrinsic) => { - if (ex.block) await waitBlock.call(config, ex.block); - await timeout( - config.api.tx[ex.pallet] - [ex.call](...ex.args) - .signAndSend(config.pair, checkError) - ); - }); -} +export default { Runner }; diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts new file mode 100644 index 0000000000..3e54975369 --- /dev/null +++ b/js/e2e/src/runner.ts @@ -0,0 +1,123 @@ +/** + * Runner extensions + */ +import { Config, Extrinsic } from "./config"; +import { ISubmittableResult } from "@polkadot/types/types"; +import { DispatchError, EventRecord } from "@polkadot/types/interfaces/types"; + +/** + * E2E runner + */ +export default class Runner { + private config: Config; + + constructor(config: Config) { + this.config = config; + } + + /** + * Run e2e tests + */ + public run() { + this.config.exs.forEach(async (ex: Extrinsic) => { + console.log(`run extrinsic ${ex.pallet}.${ex.call}...`); + console.log(`\t arguments: ${JSON.stringify(ex.args)}`); + + if (ex.block) await this.waitBlock(ex.block); + await this.timeout( + this.config.api.tx[ex.pallet] + [ex.call](...ex.args) + .signAndSend(this.config.pair, (res) => { + this.checkError(res); + }), + ex.timeout + ).catch((e) => { + throw e; + }); + }); + } + + /** + * Wait for n blocks + * + * The current gap of producing a block is 4s, + * we use 5s here. + * + * @param {number} block + * @returns {Promise} + */ + private async waitBlock(block: number): Promise { + return new Promise((resolve) => setTimeout(resolve, block * 5000)); + } + + /** + * Timeout for promise + * + * @param {Promise} fn + * @param {number} ms + * @returns {Promise} + */ + private async timeout( + fn: Promise, + ms?: number + ): Promise { + if (!ms) { + return fn; + } + + return Promise.race([ + fn, + new Promise((_, reject) => { + setTimeout(() => reject("Extrinsic timeout"), ms); + }), + ]); + } + + /** + * Parse transaction errors + * + * @param {ISubmittableResult} sr + * @returns {Promise} + */ + private async checkError(sr: ISubmittableResult): Promise { + return new Promise((resolve, reject) => { + const status = sr.status; + const events = sr.events; + + const blockHash = status.asInBlock.toHex().toString(); + if (status.isInBlock) { + resolve(blockHash); + + if (events) { + events.forEach((value: EventRecord): void => { + if (value.event.method.indexOf("Failed") > -1) { + reject( + value.phase.toString() + + `: ${value.event.section}.${value.event.method}` + + value.event.data.toString() + + " failed" + ); + } + + if ((value.event.data[0] as DispatchError).isModule) { + reject( + this.config.api.registry.findMetaError( + (value.event + .data[0] as DispatchError).asModule.toU8a() + ) + ); + } + }); + } + } else if (status.isInvalid) { + reject("Invalid Extrinsic"); + } else if (status.isRetracted) { + reject("Extrinsic Retracted"); + } else if (status.isUsurped) { + reject("Extrinsic Usupred"); + } else if (status.isFinalized) { + resolve(`Finalized block hash: ${blockHash}`); + } + }); + } +} From 21f4e80f78f10c5eff8147fefb376f3a76758840 Mon Sep 17 00:00:00 2001 From: clearloop Date: Fri, 28 May 2021 16:54:48 +0800 Subject: [PATCH 24/74] chore(e2e): reinit polkadot-launch --- .gitmodules | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitmodules diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000..4fdc6a499b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "js/polkadot-launch"] + path = js/polkadot-launch + url = https://github.com/paritytech/polkadot-launch.git From 62b1e7e14c4c11e789275571e0d9a103614bd261 Mon Sep 17 00:00:00 2001 From: clearloop Date: Fri, 28 May 2021 19:27:28 +0800 Subject: [PATCH 25/74] feat(e2e): launch pint as child_process --- js/e2e/index.ts | 32 +++++++++------ js/e2e/package.json | 3 ++ js/e2e/src/config.ts | 3 ++ js/e2e/src/index.ts | 4 +- js/e2e/src/launch.ts | 22 ++++++++++ js/e2e/src/runner.ts | 97 +++++++++++++++++++++++++++++++++++++++----- js/yarn.lock | 74 +++++++++++++++++++++++++++++++++ 7 files changed, 211 insertions(+), 24 deletions(-) diff --git a/js/e2e/index.ts b/js/e2e/index.ts index bf901f90f9..0e0635d19d 100644 --- a/js/e2e/index.ts +++ b/js/e2e/index.ts @@ -1,18 +1,24 @@ /** * E2E tests for PINT */ +import { Runner, Extrinsic } from "./src"; +import { ApiPromise } from "@polkadot/api"; -/** - * Extrinsic definition - */ -export interface Extrinsic { - pallet: string; - call: string; - args: any[]; - timeout?: undefined | number; -} +// Tests +const TESTS = (api: ApiPromise): Extrinsic[] => [ + { + pallet: "assetIndex", + call: "addAsset", + args: [ + 42, + 1000000, + api.createType("AssetAvailability" as any), + 1000000, + ], + }, +]; -/** - * Traverse all extrinsics - */ -export async function run(exs: Extrinsic[]) {} +// main +(async () => { + await Runner.run(TESTS); +})(); diff --git a/js/e2e/package.json b/js/e2e/package.json index dfd22c8b9f..6f27f90928 100644 --- a/js/e2e/package.json +++ b/js/e2e/package.json @@ -10,15 +10,18 @@ "devDependencies": { "@polkadot/types": "^4.11.2", "@types/node": "^15.3.1", + "ts-node": "^10.0.0", "tslint": "^6.1.3", "typescript": "^4.2.4" }, "dependencies": { + "@pint/types": "^1.0.0", "@polkadot/api": "^4.11.2", "@polkadot/keyring": "^6.5.1", "find-up": "^5.0.0" }, "scripts": { + "run": "ts-node index.ts", "build": "tsc --strict", "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" } diff --git a/js/e2e/src/config.ts b/js/e2e/src/config.ts index 7a2d9dcdfd..7428f52908 100644 --- a/js/e2e/src/config.ts +++ b/js/e2e/src/config.ts @@ -15,6 +15,9 @@ export interface Extrinsic { timeout?: number; } +/** + * The config of e2e tests + */ export interface Config { api: ApiPromise; pair: KeyringPair; diff --git a/js/e2e/src/index.ts b/js/e2e/src/index.ts index e4a145485c..f927a8fab1 100644 --- a/js/e2e/src/index.ts +++ b/js/e2e/src/index.ts @@ -2,5 +2,7 @@ * E2E tests for PINT */ import Runner from "./runner"; +import { Config, Extrinsic } from "./config"; +import * as Launch from "./launch"; -export default { Runner }; +export { Config, Runner, Launch, Extrinsic }; diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index 68e0c9adf0..2024fb614a 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -1,12 +1,16 @@ /** * pint-launch */ +import fs from "fs"; import findUp from "find-up"; import path from "path"; import { fork, ChildProcess, StdioOptions, spawn } from "child_process"; /** * Launch PINT locally + * + * @param stdio {StdioOptions} + * @returns {Promise} */ export async function local(stdio?: StdioOptions): Promise { return fork("js/polkadot-launch", ["config.json"], { @@ -17,9 +21,27 @@ export async function local(stdio?: StdioOptions): Promise { /** * Launch PINT via docker (CI) + * + * @param stdio {StdioOptions} + * @returns {Promise} */ export async function docker(stdio?: StdioOptions): Promise { return spawn("docker", ["run", "-it", "launch"], { stdio, }); } + +/** + * Launch PINT via local or docker + * + * @param stdio {StdioOptions} + * @returns {Promise} + */ +export async function launch(stdio?: StdioOptions): Promise { + const root = await findUp("Cargo.toml"); + if (fs.existsSync(path.resolve(root, "../bin/pint"))) { + return local(stdio); + } else { + return docker(stdio); + } +} diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 3e54975369..e23767818b 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -1,33 +1,106 @@ /** * Runner extensions */ -import { Config, Extrinsic } from "./config"; import { ISubmittableResult } from "@polkadot/types/types"; import { DispatchError, EventRecord } from "@polkadot/types/interfaces/types"; +import { ApiPromise, WsProvider } from "@polkadot/api"; +import { Keyring } from "@polkadot/keyring"; +import { KeyringPair } from "@polkadot/keyring/types"; +import { typesBundle } from "@pint/types"; +import { Config, Extrinsic } from "./config"; +import { launch } from "./launch"; + +// Extrinsics builder +type Builder = (api: ApiPromise) => Extrinsic[]; + +// Message of launching complete +const LAUNCH_COMPLETE: string = "POLKADOT LAUNCH COMPLETE"; /** * E2E runner */ -export default class Runner { - private config: Config; +export default class Runner implements Config { + public api: ApiPromise; + public pair: KeyringPair; + public exs: Extrinsic[]; + + /** + * run E2E tests + * + * @param {Builder} exs - Extrinsic builder + * @param {string} ws - "ws://0.0.0.0:9988" by default + * @param {string} uri - "//Alice" by default + * @returns {Promise} + */ + static async run( + exs: Builder, + ws: string = "ws://0.0.0.0:9988", + uri: string = "//Alice" + ): Promise { + const ps = await launch("inherit"); + ps.stdout.on("data", async (chunk: string) => { + console.log(`chunk: ${chunk}`); + if (chunk.includes(LAUNCH_COMPLETE)) { + console.log("boot e2e tests..."); + const runner = await Runner.build(exs, ws, uri); + await runner.runTxs(); + } + }); + + // Kill all processes when exiting. + process.on("exit", () => { + ps.send("exit"); + }); + + // Handle ctrl+c to trigger `exit`. + process.on("SIGINT", function () { + ps.send("exit"); + process.exit(2); + }); + } + + /** + * Build runner + * + * @param {string} ws - "ws://0.0.0.0:9988" by default + * @param {string} uri - "//Alice" by default + * @param {Extrinsic[]} exs - extrinsics + * @returns {Promise} + */ + static async build( + exs: Builder, + ws: string = "ws://0.0.0.0:9988", + uri: string = "//Alice" + ): Promise { + const provider = new WsProvider(ws); + const keyring = new Keyring({ type: "sr25519" }); + const pair = keyring.addFromUri(uri); + const api = await ApiPromise.create({ provider, typesBundle }); + + return new Runner({ api, pair, exs: exs(api) }); + } constructor(config: Config) { - this.config = config; + this.api = config.api; + this.pair = config.pair; + this.exs = config.exs; } /** - * Run e2e tests + * Execute transactions + * + * @returns void */ - public run() { - this.config.exs.forEach(async (ex: Extrinsic) => { + public async runTxs(): Promise { + this.exs.forEach(async (ex: Extrinsic) => { console.log(`run extrinsic ${ex.pallet}.${ex.call}...`); console.log(`\t arguments: ${JSON.stringify(ex.args)}`); if (ex.block) await this.waitBlock(ex.block); await this.timeout( - this.config.api.tx[ex.pallet] + this.api.tx[ex.pallet] [ex.call](...ex.args) - .signAndSend(this.config.pair, (res) => { + .signAndSend(this.pair, (res) => { this.checkError(res); }), ex.timeout @@ -35,6 +108,10 @@ export default class Runner { throw e; }); }); + + // exit + console.log("COMPLETE TESTS!"); + process.exit(0); } /** @@ -101,7 +178,7 @@ export default class Runner { if ((value.event.data[0] as DispatchError).isModule) { reject( - this.config.api.registry.findMetaError( + this.api.registry.findMetaError( (value.event .data[0] as DispatchError).asModule.toU8a() ) diff --git a/js/yarn.lock b/js/yarn.lock index 0ea9b46024..a0a7986a67 100644 --- a/js/yarn.lock +++ b/js/yarn.lock @@ -261,6 +261,26 @@ "@types/websocket" "^1.0.2" websocket "^1.0.34" +"@tsconfig/node10@^1.0.7": + version "1.0.7" + resolved "https://registry.nlark.com/@tsconfig/node10/download/@tsconfig/node10-1.0.7.tgz#1eb1de36c73478a2479cc661ef5af1c16d86d606" + integrity sha1-HrHeNsc0eKJHnMZh71rxwW2G1gY= + +"@tsconfig/node12@^1.0.7": + version "1.0.7" + resolved "https://registry.nlark.com/@tsconfig/node12/download/@tsconfig/node12-1.0.7.tgz#677bd9117e8164dc319987dd6ff5fc1ba6fbf18b" + integrity sha1-Z3vZEX6BZNwxmYfdb/X8G6b78Ys= + +"@tsconfig/node14@^1.0.0": + version "1.0.0" + resolved "https://registry.nlark.com/@tsconfig/node14/download/@tsconfig/node14-1.0.0.tgz#5bd046e508b1ee90bc091766758838741fdefd6e" + integrity sha1-W9BG5Qix7pC8CRdmdYg4dB/e/W4= + +"@tsconfig/node16@^1.0.1": + version "1.0.1" + resolved "https://registry.nlark.com/@tsconfig/node16/download/@tsconfig/node16-1.0.1.tgz#a6ca6a9a0ff366af433f42f5f0e124794ff6b8f1" + integrity sha1-pspqmg/zZq9DP0L18OEkeU/2uPE= + "@types/bn.js@^4.11.6": version "4.11.6" resolved "https://registry.nlark.com/@types/bn.js/download/@types/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c" @@ -295,6 +315,11 @@ ansi-styles@^3.2.1: dependencies: color-convert "^1.9.0" +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npm.taobao.org/arg/download/arg-4.1.3.tgz?cache=0&sync_timestamp=1605576950209&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Farg%2Fdownload%2Farg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk= + argparse@^1.0.7: version "1.0.10" resolved "https://registry.nlark.com/argparse/download/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -347,6 +372,11 @@ brorand@^1.1.0: resolved "https://registry.npm.taobao.org/brorand/download/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= +buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.nlark.com/buffer-from/download/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + integrity sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8= + bufferutil@^4.0.1: version "4.0.3" resolved "https://registry.npm.taobao.org/bufferutil/download/bufferutil-4.0.3.tgz?cache=0&sync_timestamp=1609618802475&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbufferutil%2Fdownload%2Fbufferutil-4.0.3.tgz#66724b756bed23cd7c28c4d306d7994f9943cc6b" @@ -421,6 +451,11 @@ create-hash@^1.2.0: ripemd160 "^2.0.1" sha.js "^2.4.0" +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.npm.taobao.org/create-require/download/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha1-wdfo8eX2z8n/ZfnNNS03NIdWwzM= + cuint@^0.2.2: version "0.2.2" resolved "https://registry.nlark.com/cuint/download/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b" @@ -644,6 +679,11 @@ locate-path@^6.0.0: dependencies: p-locate "^5.0.0" +make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.nlark.com/make-error/download/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha1-LrLjfqm2fEiR9oShOUeZr0hM96I= + md5.js@^1.3.4: version "1.3.5" resolved "https://registry.npm.taobao.org/md5.js/download/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" @@ -810,6 +850,19 @@ sha.js@^2.4.0: inherits "^2.0.1" safe-buffer "^5.0.1" +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npm.taobao.org/source-map-support/download/source-map-support-0.5.19.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map-support%2Fdownload%2Fsource-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha1-qYti+G3K9PZzmWSMCFKRq56P7WE= + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0: + version "0.6.1" + resolved "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha1-dHIq8y6WFOnCh6jQu95IteLxomM= + sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.nlark.com/sprintf-js/download/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" @@ -829,6 +882,22 @@ supports-color@^5.3.0: dependencies: has-flag "^3.0.0" +ts-node@^10.0.0: + version "10.0.0" + resolved "https://registry.nlark.com/ts-node/download/ts-node-10.0.0.tgz?cache=0&sync_timestamp=1621798304685&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fts-node%2Fdownload%2Fts-node-10.0.0.tgz#05f10b9a716b0b624129ad44f0ea05dac84ba3be" + integrity sha1-BfELmnFrC2JBKa1E8OoF2shLo74= + dependencies: + "@tsconfig/node10" "^1.0.7" + "@tsconfig/node12" "^1.0.7" + "@tsconfig/node14" "^1.0.0" + "@tsconfig/node16" "^1.0.1" + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + source-map-support "^0.5.17" + yn "3.1.1" + tslib@^1.13.0, tslib@^1.8.1, tslib@^1.9.0: version "1.14.1" resolved "https://registry.nlark.com/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1618847097275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" @@ -928,6 +997,11 @@ yaeti@^0.0.6: resolved "https://registry.npm.taobao.org/yaeti/download/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc= +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npm.taobao.org/yn/download/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A= + yocto-queue@^0.1.0: version "0.1.0" resolved "https://registry.npm.taobao.org/yocto-queue/download/yocto-queue-0.1.0.tgz?cache=0&sync_timestamp=1606290282107&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyocto-queue%2Fdownload%2Fyocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" From f8983ac4b90bff131f235beb3a65dd7983fda022 Mon Sep 17 00:00:00 2001 From: clearloop Date: Fri, 11 Jun 2021 18:50:35 +0800 Subject: [PATCH 26/74] feat(e2e): add kill signal to fork process --- js/e2e/src/launch.ts | 14 +++++++++++--- js/e2e/src/runner.ts | 40 +++++++++++++++++++++------------------- 2 files changed, 32 insertions(+), 22 deletions(-) diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index 2024fb614a..ff43f20af0 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -4,7 +4,13 @@ import fs from "fs"; import findUp from "find-up"; import path from "path"; -import { fork, ChildProcess, StdioOptions, spawn } from "child_process"; +import { + fork, + ChildProcess, + StdioOptions, + spawn, + spawnSync, +} from "child_process"; /** * Launch PINT locally @@ -15,8 +21,10 @@ import { fork, ChildProcess, StdioOptions, spawn } from "child_process"; export async function local(stdio?: StdioOptions): Promise { return fork("js/polkadot-launch", ["config.json"], { cwd: path.resolve(String(await findUp("Cargo.toml")), ".."), + killSignal: "SIGINT", stdio, - }); + } as any); + return null; } /** @@ -39,7 +47,7 @@ export async function docker(stdio?: StdioOptions): Promise { */ export async function launch(stdio?: StdioOptions): Promise { const root = await findUp("Cargo.toml"); - if (fs.existsSync(path.resolve(root, "../bin/pint"))) { + if (fs.existsSync(path.resolve(String(root), "../bin/pint"))) { return local(stdio); } else { return docker(stdio); diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index e23767818b..b5171d766e 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -37,26 +37,28 @@ export default class Runner implements Config { ws: string = "ws://0.0.0.0:9988", uri: string = "//Alice" ): Promise { + console.log("boot e2e tests..."); const ps = await launch("inherit"); - ps.stdout.on("data", async (chunk: string) => { - console.log(`chunk: ${chunk}`); - if (chunk.includes(LAUNCH_COMPLETE)) { - console.log("boot e2e tests..."); - const runner = await Runner.build(exs, ws, uri); - await runner.runTxs(); - } - }); - - // Kill all processes when exiting. - process.on("exit", () => { - ps.send("exit"); - }); - - // Handle ctrl+c to trigger `exit`. - process.on("SIGINT", function () { - ps.send("exit"); - process.exit(2); - }); + // ps.stdout.on("data", async (chunk: string) => { + // console.log(`chunk: ${chunk}`); + // if (chunk.includes(LAUNCH_COMPLETE)) { + // const runner = await Runner.build(exs, ws, uri); + // await runner.runTxs(); + // } + // }); + // + // // Kill all processes when exiting. + // process.on("exit", async () => { + // console.log("exit launch process"); + // ps.send("exit"); + // }); + // + // // Handle ctrl+c to trigger `exit`. + // process.on("SIGINT", async function () { + // console.log("CC launch process"); + // ps.send("exit"); + // process.exit(2); + // }); } /** From c11c7d092175654df2837cee364571859dd9307c Mon Sep 17 00:00:00 2001 From: clearloop Date: Sat, 12 Jun 2021 17:12:11 +0800 Subject: [PATCH 27/74] feat(e2e): complete tests process --- js/e2e/src/launch.ts | 9 +------- js/e2e/src/runner.ts | 52 +++++++++++++++++++++++--------------------- 2 files changed, 28 insertions(+), 33 deletions(-) diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index ff43f20af0..e8b3d36910 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -4,13 +4,7 @@ import fs from "fs"; import findUp from "find-up"; import path from "path"; -import { - fork, - ChildProcess, - StdioOptions, - spawn, - spawnSync, -} from "child_process"; +import { fork, ChildProcess, StdioOptions, spawn } from "child_process"; /** * Launch PINT locally @@ -24,7 +18,6 @@ export async function local(stdio?: StdioOptions): Promise { killSignal: "SIGINT", stdio, } as any); - return null; } /** diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index b5171d766e..e18dbd9436 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -6,7 +6,7 @@ import { DispatchError, EventRecord } from "@polkadot/types/interfaces/types"; import { ApiPromise, WsProvider } from "@polkadot/api"; import { Keyring } from "@polkadot/keyring"; import { KeyringPair } from "@polkadot/keyring/types"; -import { typesBundle } from "@pint/types"; +import { definitions } from "@pint/types"; import { Config, Extrinsic } from "./config"; import { launch } from "./launch"; @@ -34,31 +34,30 @@ export default class Runner implements Config { */ static async run( exs: Builder, - ws: string = "ws://0.0.0.0:9988", + ws: string = "ws://127.0.0.1:9988", uri: string = "//Alice" ): Promise { - console.log("boot e2e tests..."); - const ps = await launch("inherit"); - // ps.stdout.on("data", async (chunk: string) => { - // console.log(`chunk: ${chunk}`); - // if (chunk.includes(LAUNCH_COMPLETE)) { - // const runner = await Runner.build(exs, ws, uri); - // await runner.runTxs(); - // } - // }); - // - // // Kill all processes when exiting. - // process.on("exit", async () => { - // console.log("exit launch process"); - // ps.send("exit"); - // }); - // - // // Handle ctrl+c to trigger `exit`. - // process.on("SIGINT", async function () { - // console.log("CC launch process"); - // ps.send("exit"); - // process.exit(2); - // }); + console.log("bootstrap e2e tests..."); + console.log("establishing ws connections... (around 2 mins)"); + const ps = await launch("pipe"); + ps.stdout.on("data", async (chunk: string) => { + if (chunk.includes(LAUNCH_COMPLETE)) { + console.log("COMPLETE LAUNCH!"); + const runner = await Runner.build(exs, ws, uri); + await runner.runTxs(); + } + }); + + // Kill all processes when exiting. + process.on("exit", async () => { + ps.send("exit"); + }); + + // Handle ctrl+c to trigger `exit`. + process.on("SIGINT", async function () { + ps.send("exit"); + process.exit(2); + }); } /** @@ -77,7 +76,10 @@ export default class Runner implements Config { const provider = new WsProvider(ws); const keyring = new Keyring({ type: "sr25519" }); const pair = keyring.addFromUri(uri); - const api = await ApiPromise.create({ provider, typesBundle }); + const api = await ApiPromise.create({ + provider, + types: definitions.types[0].types, + }); return new Runner({ api, pair, exs: exs(api) }); } From 442f5bffb50a31848a37a0ceac9dc227b81019b4 Mon Sep 17 00:00:00 2001 From: clearloop Date: Sat, 12 Jun 2021 17:49:54 +0800 Subject: [PATCH 28/74] ci(e2e): add e2e scripts --- .circleci/config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index d388b3a0f3..f089548da8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -156,6 +156,15 @@ jobs: command: | git submodule update --init docker build -f docker/launch.Dockerfile -t launch . + - run: + name: Run e2e tests + command: | + curl -sL https://deb.nodesource.com/setup_15.x | bash - \ + && apt-get -qqy --no-install-recommends install nodejs -y \ + && cd js/e2e \ + && npm install \ + && npm run build \ + && npm run run docker-publish-latest: executor: test-executor description: Publish latest Docker Image From 8b7af6835a441f02a8b7c4f418fd2ab88d1a7ca2 Mon Sep 17 00:00:00 2001 From: clearloop Date: Sat, 12 Jun 2021 19:14:46 +0800 Subject: [PATCH 29/74] ci(e2e): prefix sudo command --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f089548da8..38aa86ca3d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -159,8 +159,8 @@ jobs: - run: name: Run e2e tests command: | - curl -sL https://deb.nodesource.com/setup_15.x | bash - \ - && apt-get -qqy --no-install-recommends install nodejs -y \ + sudo curl -sL https://deb.nodesource.com/setup_15.x | bash - \ + && sudo apt-get -qqy --no-install-recommends install nodejs -y \ && cd js/e2e \ && npm install \ && npm run build \ From 65ce0e5daa384dfb88b61b52ae66e45be4232cea Mon Sep 17 00:00:00 2001 From: clearloop Date: Sat, 12 Jun 2021 19:53:35 +0800 Subject: [PATCH 30/74] feat(e2e): update commands and recheck permission --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 38aa86ca3d..2f8ff6d9d5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -159,9 +159,9 @@ jobs: - run: name: Run e2e tests command: | - sudo curl -sL https://deb.nodesource.com/setup_15.x | bash - \ - && sudo apt-get -qqy --no-install-recommends install nodejs -y \ - && cd js/e2e \ + sudo curl -sL https://deb.nodesource.com/setup_15.x | bash - + sudo apt-get -qqy --no-install-recommends install nodejs -y + cd js/e2e \ && npm install \ && npm run build \ && npm run run From cbd53703421a536b75c8d49fdbbd99e5b3095021 Mon Sep 17 00:00:00 2001 From: clearloop Date: Sat, 12 Jun 2021 21:13:15 +0800 Subject: [PATCH 31/74] feat(e2e): use node 16 --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2f8ff6d9d5..fe8a3c8040 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -159,9 +159,9 @@ jobs: - run: name: Run e2e tests command: | - sudo curl -sL https://deb.nodesource.com/setup_15.x | bash - - sudo apt-get -qqy --no-install-recommends install nodejs -y - cd js/e2e \ + sudo curl -sL https://deb.nodesource.com/setup_16.x | bash - \ + && sudo apt-get -qqy --no-install-recommends install nodejs -y \ + && cd js/e2e \ && npm install \ && npm run build \ && npm run run From 0d482d12644c5f7c084b1632e4e5e580086314a7 Mon Sep 17 00:00:00 2001 From: clearloop Date: Sat, 12 Jun 2021 22:35:03 +0800 Subject: [PATCH 32/74] ci(e2e): sudo bash --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fe8a3c8040..dbf82aec62 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -159,7 +159,7 @@ jobs: - run: name: Run e2e tests command: | - sudo curl -sL https://deb.nodesource.com/setup_16.x | bash - \ + sudo curl -sL https://deb.nodesource.com/setup_16.x | sudo bash - \ && sudo apt-get -qqy --no-install-recommends install nodejs -y \ && cd js/e2e \ && npm install \ From c4fe9fae19ccaf66a84caa575821fa69a21c34a5 Mon Sep 17 00:00:00 2001 From: clearloop Date: Sun, 13 Jun 2021 17:01:42 +0800 Subject: [PATCH 33/74] ci(e2e): use yarn --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dbf82aec62..806374bdec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -162,9 +162,9 @@ jobs: sudo curl -sL https://deb.nodesource.com/setup_16.x | sudo bash - \ && sudo apt-get -qqy --no-install-recommends install nodejs -y \ && cd js/e2e \ - && npm install \ - && npm run build \ - && npm run run + && npm install -g yarn \ + && yarn build \ + && yarn run docker-publish-latest: executor: test-executor description: Publish latest Docker Image From 1ad0e7417fa56289e0381a60d2047c401b1897c1 Mon Sep 17 00:00:00 2001 From: clearloop Date: Sun, 13 Jun 2021 17:21:06 +0800 Subject: [PATCH 34/74] ci(e2e): yarn install --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 806374bdec..394b96142d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -163,7 +163,7 @@ jobs: && sudo apt-get -qqy --no-install-recommends install nodejs -y \ && cd js/e2e \ && npm install -g yarn \ - && yarn build \ + && yarn \ && yarn run docker-publish-latest: executor: test-executor From 779035d124f25f7d9a3a81e90b39db2ae43ab9a4 Mon Sep 17 00:00:00 2001 From: clearloop Date: Sun, 13 Jun 2021 19:13:20 +0800 Subject: [PATCH 35/74] ci(e2e): install yarn use apt --- .circleci/config.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 394b96142d..934e9dc762 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -161,10 +161,12 @@ jobs: command: | sudo curl -sL https://deb.nodesource.com/setup_16.x | sudo bash - \ && sudo apt-get -qqy --no-install-recommends install nodejs -y \ + && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null \ + && echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \ + && sudo apt-get update && sudo apt-get install yarn \ && cd js/e2e \ - && npm install -g yarn \ - && yarn \ - && yarn run + && yarn \ + && yarn run docker-publish-latest: executor: test-executor description: Publish latest Docker Image From b3208aea3fd0b0ce2a3616c328b555ea4bfa7d6a Mon Sep 17 00:00:00 2001 From: clearloop Date: Sun, 13 Jun 2021 19:52:37 +0800 Subject: [PATCH 36/74] ci(e2e): remove previous nodejs --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 934e9dc762..474952ce37 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -160,7 +160,8 @@ jobs: name: Run e2e tests command: | sudo curl -sL https://deb.nodesource.com/setup_16.x | sudo bash - \ - && sudo apt-get -qqy --no-install-recommends install nodejs -y \ + && sudo apt-get remove nodejs \ + && sudo apt-get install -y nodejs \ && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null \ && echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \ && sudo apt-get update && sudo apt-get install yarn \ From 06a291c2ff7df8996abcfdf52e4cf5fd20b67cd3 Mon Sep 17 00:00:00 2001 From: clearloop Date: Sun, 13 Jun 2021 20:45:42 +0800 Subject: [PATCH 37/74] ci(e2e): remove node togethor --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 474952ce37..4742e9175a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -160,7 +160,7 @@ jobs: name: Run e2e tests command: | sudo curl -sL https://deb.nodesource.com/setup_16.x | sudo bash - \ - && sudo apt-get remove nodejs \ + && sudo apt-get remove node nodejs \ && sudo apt-get install -y nodejs \ && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null \ && echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \ From 6c74ec1d4468bf952cdfd8d89d45e0e1389cf175 Mon Sep 17 00:00:00 2001 From: clearloop Date: Sun, 13 Jun 2021 22:17:15 +0800 Subject: [PATCH 38/74] ci(e2e): install node with nvm --- .circleci/config.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4742e9175a..baca75f005 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -159,15 +159,13 @@ jobs: - run: name: Run e2e tests command: | - sudo curl -sL https://deb.nodesource.com/setup_16.x | sudo bash - \ - && sudo apt-get remove node nodejs \ - && sudo apt-get install -y nodejs \ - && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null \ - && echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \ - && sudo apt-get update && sudo apt-get install yarn \ - && cd js/e2e \ - && yarn \ - && yarn run + sudo curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | sudo bash \ + && source ~/.bashrc \ + && nvm use 15 \ + && npm install yarn -g \ + && cd js/e2e \ + && yarn \ + && yarn run docker-publish-latest: executor: test-executor description: Publish latest Docker Image From 58662787c7f633d2945105652d708486db57eda5 Mon Sep 17 00:00:00 2001 From: clearloop Date: Sun, 13 Jun 2021 22:57:37 +0800 Subject: [PATCH 39/74] ci(e2e): use nvm install node --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index baca75f005..71ff4eb30d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -161,11 +161,12 @@ jobs: command: | sudo curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | sudo bash \ && source ~/.bashrc \ - && nvm use 15 \ + && nvm install node \ && npm install yarn -g \ && cd js/e2e \ && yarn \ && yarn run + docker-publish-latest: executor: test-executor description: Publish latest Docker Image From f891c501e83d0c39b08da443731b62e103b2b197 Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 00:01:34 +0800 Subject: [PATCH 40/74] ci(e2e): use yarn start --- js/e2e/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/e2e/package.json b/js/e2e/package.json index 6f27f90928..2eb641f165 100644 --- a/js/e2e/package.json +++ b/js/e2e/package.json @@ -21,7 +21,7 @@ "find-up": "^5.0.0" }, "scripts": { - "run": "ts-node index.ts", + "start": "ts-node index.ts", "build": "tsc --strict", "lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" } From 3ee63e6a7daa36000ad998e1f13c6fbdd8933194 Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 00:30:22 +0800 Subject: [PATCH 41/74] ci(e2e): yarn start --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 71ff4eb30d..9649962b31 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -165,7 +165,7 @@ jobs: && npm install yarn -g \ && cd js/e2e \ && yarn \ - && yarn run + && yarn start docker-publish-latest: executor: test-executor From 3c6a307ec0175b68069e4ed03736986adf431721 Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 00:55:52 +0800 Subject: [PATCH 42/74] ci(e2e): use v15.9.0 --- .circleci/config.yml | 2 +- js/e2e/src/runner.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9649962b31..192bdd8adc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -161,7 +161,7 @@ jobs: command: | sudo curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | sudo bash \ && source ~/.bashrc \ - && nvm install node \ + && nvm use v15.9.0 \ && npm install yarn -g \ && cd js/e2e \ && yarn \ diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index e18dbd9436..00f38f2411 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -40,7 +40,7 @@ export default class Runner implements Config { console.log("bootstrap e2e tests..."); console.log("establishing ws connections... (around 2 mins)"); const ps = await launch("pipe"); - ps.stdout.on("data", async (chunk: string) => { + (ps as any).stdout.on("data", async (chunk: string) => { if (chunk.includes(LAUNCH_COMPLETE)) { console.log("COMPLETE LAUNCH!"); const runner = await Runner.build(exs, ws, uri); @@ -54,7 +54,7 @@ export default class Runner implements Config { }); // Handle ctrl+c to trigger `exit`. - process.on("SIGINT", async function () { + process.on("SIGINT", async () => { ps.send("exit"); process.exit(2); }); @@ -78,7 +78,7 @@ export default class Runner implements Config { const pair = keyring.addFromUri(uri); const api = await ApiPromise.create({ provider, - types: definitions.types[0].types, + types: (definitions.types as any)[0].types, }); return new Runner({ api, pair, exs: exs(api) }); From 70e909dd33a0ba4940fe26936b60e695b71dd0ac Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 01:15:06 +0800 Subject: [PATCH 43/74] ci(e2e): install and use 15.9.0 --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 192bdd8adc..e765f0572c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -161,6 +161,7 @@ jobs: command: | sudo curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | sudo bash \ && source ~/.bashrc \ + && nvm install v15.9.0 \ && nvm use v15.9.0 \ && npm install yarn -g \ && cd js/e2e \ From 9c628296927bdd4c309543e7e9604efdb70f09fa Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 02:53:43 +0800 Subject: [PATCH 44/74] ci(e2e): force ps.send --- js/e2e/src/runner.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 00f38f2411..3ff9c9626a 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -50,12 +50,12 @@ export default class Runner implements Config { // Kill all processes when exiting. process.on("exit", async () => { - ps.send("exit"); + (ps as any).send("exit"); }); // Handle ctrl+c to trigger `exit`. process.on("SIGINT", async () => { - ps.send("exit"); + (ps as any).send("exit"); process.exit(2); }); } From 6d05f08369a21a4cf25f19b2fd109673487b00ef Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 03:43:20 +0800 Subject: [PATCH 45/74] ci(e2e): check fork process --- js/e2e/src/launch.ts | 1 + js/e2e/src/runner.ts | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index e8b3d36910..c1c10dc28c 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -29,6 +29,7 @@ export async function local(stdio?: StdioOptions): Promise { export async function docker(stdio?: StdioOptions): Promise { return spawn("docker", ["run", "-it", "launch"], { stdio, + killSignal: "SIGINT", }); } diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 3ff9c9626a..a8ac4f24b1 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -50,12 +50,13 @@ export default class Runner implements Config { // Kill all processes when exiting. process.on("exit", async () => { - (ps as any).send("exit"); + ps.send && ps.send("exit"); + process.exit(2); }); // Handle ctrl+c to trigger `exit`. process.on("SIGINT", async () => { - (ps as any).send("exit"); + ps.send && ps.send("exit"); process.exit(2); }); } From 7be11f1bcb121c58d0ce5bea4896f2905160ea9e Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 04:19:45 +0800 Subject: [PATCH 46/74] ci(e2e): remove signal in SpawnOption --- js/e2e/src/launch.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index c1c10dc28c..e8b3d36910 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -29,7 +29,6 @@ export async function local(stdio?: StdioOptions): Promise { export async function docker(stdio?: StdioOptions): Promise { return spawn("docker", ["run", "-it", "launch"], { stdio, - killSignal: "SIGINT", }); } From 1c7627042dc2178ef12eb234d55afaeaffe87736 Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 12:31:55 +0800 Subject: [PATCH 47/74] ci(e2e): log chunks --- js/e2e/src/runner.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index a8ac4f24b1..8e24f22421 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -41,6 +41,7 @@ export default class Runner implements Config { console.log("establishing ws connections... (around 2 mins)"); const ps = await launch("pipe"); (ps as any).stdout.on("data", async (chunk: string) => { + console.log(chunk); if (chunk.includes(LAUNCH_COMPLETE)) { console.log("COMPLETE LAUNCH!"); const runner = await Runner.build(exs, ws, uri); From 6a0f2064b1f83f8b185712bad71155ad329d6cc9 Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 16:53:28 +0800 Subject: [PATCH 48/74] ci(e2e): use inherit instead of pipe --- js/e2e/src/runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 8e24f22421..3f892b755f 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -39,7 +39,7 @@ export default class Runner implements Config { ): Promise { console.log("bootstrap e2e tests..."); console.log("establishing ws connections... (around 2 mins)"); - const ps = await launch("pipe"); + const ps = await launch("inherit"); (ps as any).stdout.on("data", async (chunk: string) => { console.log(chunk); if (chunk.includes(LAUNCH_COMPLETE)) { From c76bb9f12c01f0891a81d225ac2b8e05f927f0df Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 17:38:12 +0800 Subject: [PATCH 49/74] ci(e2e): prints stderr --- js/e2e/src/runner.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 3f892b755f..4f45662448 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -39,8 +39,8 @@ export default class Runner implements Config { ): Promise { console.log("bootstrap e2e tests..."); console.log("establishing ws connections... (around 2 mins)"); - const ps = await launch("inherit"); - (ps as any).stdout.on("data", async (chunk: string) => { + const ps = await launch("pipe"); + ps.stdout.on("data", async (chunk: string) => { console.log(chunk); if (chunk.includes(LAUNCH_COMPLETE)) { console.log("COMPLETE LAUNCH!"); @@ -49,6 +49,9 @@ export default class Runner implements Config { } }); + // Log errors + ps.stderr.on("data", console.log); + // Kill all processes when exiting. process.on("exit", async () => { ps.send && ps.send("exit"); From b2aa952442cbe675ec03ce4e15316d25030eaa41 Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 18:00:22 +0800 Subject: [PATCH 50/74] ci(e2e): mark stdout to string --- js/e2e/src/runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 4f45662448..d6a7a009ad 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -50,7 +50,7 @@ export default class Runner implements Config { }); // Log errors - ps.stderr.on("data", console.log); + ps.stderr.on("data", (chunk: string) => console.log(chunk)); // Kill all processes when exiting. process.on("exit", async () => { From 91e7e1ae64ac47aa12e1e6f430212e6a729936d9 Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 18:14:58 +0800 Subject: [PATCH 51/74] ci(e2e): buffer to string by hand --- js/e2e/src/runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index d6a7a009ad..7911ac2669 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -50,7 +50,7 @@ export default class Runner implements Config { }); // Log errors - ps.stderr.on("data", (chunk: string) => console.log(chunk)); + ps.stderr.on("data", (chunk: Buffer) => console.log(chunk.toString())); // Kill all processes when exiting. process.on("exit", async () => { From 37b19472a4924145f14f651deab8b6d80fe5ba85 Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 19:58:50 +0800 Subject: [PATCH 52/74] ci(e2e): remove -it in docker arguments --- js/e2e/src/launch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index e8b3d36910..bce300b117 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -27,7 +27,7 @@ export async function local(stdio?: StdioOptions): Promise { * @returns {Promise} */ export async function docker(stdio?: StdioOptions): Promise { - return spawn("docker", ["run", "-it", "launch"], { + return spawn("docker", ["run", "launch"], { stdio, }); } From f7e118ab5e94bf71b0253e6af49fccdc49476e1e Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 20:49:14 +0800 Subject: [PATCH 53/74] ci(e2e): use 0.0.0.0 as host --- js/e2e/src/runner.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 7911ac2669..25ce1dbd6a 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -34,14 +34,14 @@ export default class Runner implements Config { */ static async run( exs: Builder, - ws: string = "ws://127.0.0.1:9988", + ws: string = "ws://0.0.0.0:9988", uri: string = "//Alice" ): Promise { console.log("bootstrap e2e tests..."); console.log("establishing ws connections... (around 2 mins)"); const ps = await launch("pipe"); - ps.stdout.on("data", async (chunk: string) => { - console.log(chunk); + ps.stdout.on("data", async (chunk: Buffer) => { + console.log(chunk.toString()); if (chunk.includes(LAUNCH_COMPLETE)) { console.log("COMPLETE LAUNCH!"); const runner = await Runner.build(exs, ws, uri); From 13904ad31ec2ee02e8e2c14e80ff4d429fa62390 Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 21:26:37 +0800 Subject: [PATCH 54/74] ci(e2e): expose ports --- js/e2e/src/launch.ts | 19 ++++++++++++++++--- js/e2e/src/runner.ts | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index bce300b117..8f193c584f 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -27,9 +27,22 @@ export async function local(stdio?: StdioOptions): Promise { * @returns {Promise} */ export async function docker(stdio?: StdioOptions): Promise { - return spawn("docker", ["run", "launch"], { - stdio, - }); + return spawn( + "docker", + [ + "run", + "launch", + "-p", + "9988:9988", + "-p", + "9966:9966", + "-p", + "9999:9999", + ], + { + stdio, + } + ); } /** diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 25ce1dbd6a..8635ca3227 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -75,7 +75,7 @@ export default class Runner implements Config { */ static async build( exs: Builder, - ws: string = "ws://0.0.0.0:9988", + ws: string = "ws://127.0.0.1:9988", uri: string = "//Alice" ): Promise { const provider = new WsProvider(ws); From 90b02a647e19d5282097a463cbda75b0407a59bf Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 21:52:38 +0800 Subject: [PATCH 55/74] ci(e2e): use 127.0.0.1 as host --- js/e2e/src/runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 8635ca3227..faa8e67cba 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -68,7 +68,7 @@ export default class Runner implements Config { /** * Build runner * - * @param {string} ws - "ws://0.0.0.0:9988" by default + * @param {string} ws - "ws://127.0.0.1:9988" by default * @param {string} uri - "//Alice" by default * @param {Extrinsic[]} exs - extrinsics * @returns {Promise} From 86ebf079996479777f35eb9ad72912a8dbb8e46e Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 22:12:05 +0800 Subject: [PATCH 56/74] ci(e2e): use 127.0.0.1 as host, again --- js/e2e/src/runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index faa8e67cba..925a18a24c 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -34,7 +34,7 @@ export default class Runner implements Config { */ static async run( exs: Builder, - ws: string = "ws://0.0.0.0:9988", + ws: string = "ws://127.0.0.1:9988", uri: string = "//Alice" ): Promise { console.log("bootstrap e2e tests..."); From ec7607117fc7fdc06464e193e0fd8f2e752b7af1 Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 23:07:43 +0800 Subject: [PATCH 57/74] ci(e2e): try set docker ip --- js/e2e/src/launch.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index 8f193c584f..df2732db77 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -38,6 +38,8 @@ export async function docker(stdio?: StdioOptions): Promise { "9966:9966", "-p", "9999:9999", + "--ip", + "0.0.0.0", ], { stdio, From c34969d31288cb499e06a7bdf062b9b78da42ae5 Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 23:36:49 +0800 Subject: [PATCH 58/74] ci(e2e): add debug tail --- js/e2e/src/launch.ts | 7 +++++++ js/e2e/src/runner.ts | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index df2732db77..de7aa54c9e 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -6,6 +6,13 @@ import findUp from "find-up"; import path from "path"; import { fork, ChildProcess, StdioOptions, spawn } from "child_process"; +export async function tail(file: string): Promise { + return spawn("tail", ["-f", file], { + cwd: path.resolve(String(await findUp("Cargo.toml")), ".."), + stdio: "inherit", + }); +} + /** * Launch PINT locally * diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 925a18a24c..c5a90819bd 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -8,7 +8,7 @@ import { Keyring } from "@polkadot/keyring"; import { KeyringPair } from "@polkadot/keyring/types"; import { definitions } from "@pint/types"; import { Config, Extrinsic } from "./config"; -import { launch } from "./launch"; +import { launch, tail } from "./launch"; // Extrinsics builder type Builder = (api: ApiPromise) => Extrinsic[]; @@ -44,6 +44,10 @@ export default class Runner implements Config { console.log(chunk.toString()); if (chunk.includes(LAUNCH_COMPLETE)) { console.log("COMPLETE LAUNCH!"); + // just for debug now + await tail("9988.log"); + + // runner const runner = await Runner.build(exs, ws, uri); await runner.runTxs(); } From 0f6ca615aee6324cfd4aa2d1f7cb43235e3a3f0d Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 14 Jun 2021 23:59:18 +0800 Subject: [PATCH 59/74] ci(git): force replace paritytech// --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e765f0572c..678c72ee21 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,7 +18,10 @@ commands: steps: - run: name: Download Substrate Dependencies - command: sudo apt-get update && sudo apt-get install -y git clang curl libssl-dev + command: | + sudo apt-get update \ + && sudo apt-get install -y git clang curl libssl-dev \ + && git config --global url."paritytech//".insteadOf paritytech/ cargo_audit_setup: description: Install cargo-audit steps: From a33cff21b45b3180b1b27be36dad9d1b31fb3232 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 13:33:41 +0800 Subject: [PATCH 60/74] ci(e2e): listen to 0.0.0.0 in docker --- config.json | 50 +++++++++++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/config.json b/config.json index 21527a932f..ee8ff2d87b 100644 --- a/config.json +++ b/config.json @@ -18,7 +18,8 @@ "wsPort": 9966, "port": 30666 } - ] + ], + "flags": ["--listen-addr", "0.0.0.0"] }, "parachains": [ { @@ -26,34 +27,41 @@ "chain": "pint-dev", "id": "1", "balance": "1000000000000000000000", - "nodes": [{ - "wsPort": 9988, - "port": 31200, - "flags": [ - "-lruntime=debug", - "--", - "--execution=wasm" - ] - }] + "nodes": [ + { + "wsPort": 9988, + "port": 31200, + "flags": [ + "-lruntime=debug", + "--listen-addr", + "0.0.0.0", + "--", + "--execution=wasm" + ] + } + ] }, { "bin": "./bin/statemint", "chain": "statemint-dev", "id": "300", "balance": "1000000000000000000000", - "nodes": [{ - "wsPort": 9999, - "port": 31300, - "flags": [ - "-lruntime=debug", - "--", - "--execution=wasm" - ] - }] + "nodes": [ + { + "wsPort": 9999, + "port": 31300, + "flags": [ + "-lruntime=debug", + "--listen-addr", + "0.0.0.0", + "--", + "--execution=wasm" + ] + } + ] } ], - "simpleParachains": [ - ], + "simpleParachains": [], "hrmpChannels": [ { "sender": 1, From d049bcf362d1987c373ca5e079958a8664928a5e Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 13:46:11 +0800 Subject: [PATCH 61/74] ci(e2e): correct listen-addr --- config.json | 9 +++------ js/e2e/src/launch.ts | 7 ------- js/e2e/src/runner.ts | 6 +----- 3 files changed, 4 insertions(+), 18 deletions(-) diff --git a/config.json b/config.json index ee8ff2d87b..1f9936cdb2 100644 --- a/config.json +++ b/config.json @@ -18,8 +18,7 @@ "wsPort": 9966, "port": 30666 } - ], - "flags": ["--listen-addr", "0.0.0.0"] + ] }, "parachains": [ { @@ -30,11 +29,10 @@ "nodes": [ { "wsPort": 9988, - "port": 31200, "flags": [ "-lruntime=debug", "--listen-addr", - "0.0.0.0", + "/ip4/0.0.0.0/tcp/31200", "--", "--execution=wasm" ] @@ -49,11 +47,10 @@ "nodes": [ { "wsPort": 9999, - "port": 31300, "flags": [ "-lruntime=debug", "--listen-addr", - "0.0.0.0", + "/ip4/0.0.0.0/tcp/31300", "--", "--execution=wasm" ] diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index de7aa54c9e..df2732db77 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -6,13 +6,6 @@ import findUp from "find-up"; import path from "path"; import { fork, ChildProcess, StdioOptions, spawn } from "child_process"; -export async function tail(file: string): Promise { - return spawn("tail", ["-f", file], { - cwd: path.resolve(String(await findUp("Cargo.toml")), ".."), - stdio: "inherit", - }); -} - /** * Launch PINT locally * diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index c5a90819bd..925a18a24c 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -8,7 +8,7 @@ import { Keyring } from "@polkadot/keyring"; import { KeyringPair } from "@polkadot/keyring/types"; import { definitions } from "@pint/types"; import { Config, Extrinsic } from "./config"; -import { launch, tail } from "./launch"; +import { launch } from "./launch"; // Extrinsics builder type Builder = (api: ApiPromise) => Extrinsic[]; @@ -44,10 +44,6 @@ export default class Runner implements Config { console.log(chunk.toString()); if (chunk.includes(LAUNCH_COMPLETE)) { console.log("COMPLETE LAUNCH!"); - // just for debug now - await tail("9988.log"); - - // runner const runner = await Runner.build(exs, ws, uri); await runner.runTxs(); } From 15767dd226132287bd6ad016b05b22902159bc59 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 13:57:07 +0800 Subject: [PATCH 62/74] ci(e2e): ws-external --- config.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.json b/config.json index 1f9936cdb2..7801613df6 100644 --- a/config.json +++ b/config.json @@ -29,10 +29,10 @@ "nodes": [ { "wsPort": 9988, + "port": 31200, "flags": [ "-lruntime=debug", - "--listen-addr", - "/ip4/0.0.0.0/tcp/31200", + "--ws-external", "--", "--execution=wasm" ] @@ -47,10 +47,10 @@ "nodes": [ { "wsPort": 9999, + "port": 31300, "flags": [ "-lruntime=debug", - "--listen-addr", - "/ip4/0.0.0.0/tcp/31300", + "--ws-external", "--", "--execution=wasm" ] From a4d0554751da9bd0fdc569b9e9ab68c174d38d2a Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 14:06:14 +0800 Subject: [PATCH 63/74] ci(e2e): unsafe-ws-external --- config.json | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/config.json b/config.json index 7801613df6..d733b0af90 100644 --- a/config.json +++ b/config.json @@ -32,7 +32,7 @@ "port": 31200, "flags": [ "-lruntime=debug", - "--ws-external", + "--unsafe-ws-external", "--", "--execution=wasm" ] @@ -48,12 +48,7 @@ { "wsPort": 9999, "port": 31300, - "flags": [ - "-lruntime=debug", - "--ws-external", - "--", - "--execution=wasm" - ] + "flags": ["-lruntime=debug", "--", "--execution=wasm"] } ] } From 961cbeb213e5a81acf8770c73434e3509e97f886 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 15:53:24 +0800 Subject: [PATCH 64/74] ci(e2e): fix the fucking docker command --- docker/launch.Dockerfile | 2 -- js/e2e/src/launch.ts | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/launch.Dockerfile b/docker/launch.Dockerfile index 6ca43f18de..b1d0c94800 100644 --- a/docker/launch.Dockerfile +++ b/docker/launch.Dockerfile @@ -20,7 +20,5 @@ RUN apt-get update -y \ && cd polkadot-launch \ && npm install \ && npm run build -EXPOSE 9966 EXPOSE 9988 -EXPOSE 9999 ENTRYPOINT [ "node", "polkadot-launch/dist/index.js", "config.json" ] diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index df2732db77..33403351bd 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -28,10 +28,10 @@ export async function local(stdio?: StdioOptions): Promise { */ export async function docker(stdio?: StdioOptions): Promise { return spawn( - "docker", + "sudo", [ + "docker", "run", - "launch", "-p", "9988:9988", "-p", @@ -40,6 +40,7 @@ export async function docker(stdio?: StdioOptions): Promise { "9999:9999", "--ip", "0.0.0.0", + "launch", ], { stdio, From e2c7b40411da1af36e526c9cfb8200e8148fbd83 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 15:58:58 +0800 Subject: [PATCH 65/74] ci(e2e): exit 0 --- js/e2e/src/runner.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 925a18a24c..00016cdad8 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -41,7 +41,7 @@ export default class Runner implements Config { console.log("establishing ws connections... (around 2 mins)"); const ps = await launch("pipe"); ps.stdout.on("data", async (chunk: Buffer) => { - console.log(chunk.toString()); + process.stdout.write(chunk.toString()); if (chunk.includes(LAUNCH_COMPLETE)) { console.log("COMPLETE LAUNCH!"); const runner = await Runner.build(exs, ws, uri); @@ -55,13 +55,12 @@ export default class Runner implements Config { // Kill all processes when exiting. process.on("exit", async () => { ps.send && ps.send("exit"); - process.exit(2); }); // Handle ctrl+c to trigger `exit`. process.on("SIGINT", async () => { ps.send && ps.send("exit"); - process.exit(2); + process.exit(0); }); } From e2c1356fba3436220f840700425512abc7b87788 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 16:10:49 +0800 Subject: [PATCH 66/74] ci(e2e): kill all subprocesses --- js/e2e/src/runner.ts | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 00016cdad8..6d9896a338 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -9,6 +9,7 @@ import { KeyringPair } from "@polkadot/keyring/types"; import { definitions } from "@pint/types"; import { Config, Extrinsic } from "./config"; import { launch } from "./launch"; +import { ChildProcess } from "child_process"; // Extrinsics builder type Builder = (api: ApiPromise) => Extrinsic[]; @@ -16,6 +17,13 @@ type Builder = (api: ApiPromise) => Extrinsic[]; // Message of launching complete const LAUNCH_COMPLETE: string = "POLKADOT LAUNCH COMPLETE"; +// Kill subprocesses +function killAll(ps: ChildProcess) { + ps.send && ps.send("exit"); + ps.kill("SIGINT"); + process.exit(0); +} + /** * E2E runner */ @@ -45,7 +53,7 @@ export default class Runner implements Config { if (chunk.includes(LAUNCH_COMPLETE)) { console.log("COMPLETE LAUNCH!"); const runner = await Runner.build(exs, ws, uri); - await runner.runTxs(); + await runner.runTxs(ps); } }); @@ -53,15 +61,10 @@ export default class Runner implements Config { ps.stderr.on("data", (chunk: Buffer) => console.log(chunk.toString())); // Kill all processes when exiting. - process.on("exit", async () => { - ps.send && ps.send("exit"); - }); + process.on("exit", () => killAll(ps)); // Handle ctrl+c to trigger `exit`. - process.on("SIGINT", async () => { - ps.send && ps.send("exit"); - process.exit(0); - }); + process.on("SIGINT", () => killAll(ps)); } /** @@ -99,7 +102,7 @@ export default class Runner implements Config { * * @returns void */ - public async runTxs(): Promise { + public async runTxs(ps: ChildProcess): Promise { this.exs.forEach(async (ex: Extrinsic) => { console.log(`run extrinsic ${ex.pallet}.${ex.call}...`); console.log(`\t arguments: ${JSON.stringify(ex.args)}`); @@ -119,6 +122,7 @@ export default class Runner implements Config { // exit console.log("COMPLETE TESTS!"); + ps.send && ps.send("exit"); process.exit(0); } From 3419ec04cc98fb0e7351fd63254cd6d7252ce8c9 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 16:47:34 +0800 Subject: [PATCH 67/74] chore(git): clean cargo.lock --- Cargo.lock | 741 ++++++++++++++++++++++++++--------------------------- 1 file changed, 370 insertions(+), 371 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bb9a2991d8..1b34ab0832 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -340,9 +340,9 @@ dependencies = [ [[package]] name = "async-std-resolver" -version = "0.20.3" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed4e2c3da14d8ad45acb1e3191db7a918e9505b6f155b218e70a7c9a1a48c638" +checksum = "4d613d619c2886fc0f4b5a777eceab405b23de82d73f0fc61ae402fdb9bc6fb2" dependencies = [ "async-std", "async-trait", @@ -364,7 +364,7 @@ version = "0.1.50" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b98e84bbb4cbcdd97da190ba0c58a1bb0de2c1fdf67d159e192ed766aeca722" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -554,7 +554,7 @@ dependencies = [ "lazy_static", "lazycell", "peeking_take_while", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "regex", "rustc-hash", @@ -624,9 +624,9 @@ dependencies = [ [[package]] name = "blake3" -version = "0.3.8" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b64485778c4f16a6a5a9d335e80d449ac6c70cdd6a06d2af18a6f6f775a125b3" +checksum = "e9ff35b701f3914bdb8fad3368d822c766ef2858b2583198e41639b936f09d3f" dependencies = [ "arrayref", "arrayvec 0.5.2", @@ -798,9 +798,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.68" +version = "1.0.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a72c244c1ff497a746a7e1fb3d14bd08420ecda70c8f25c7112f2781652d787" +checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd" dependencies = [ "jobserver", ] @@ -981,9 +981,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.1.4" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed00c67cb5d0a7d64a44f6ad2668db7e7530311dd53ea79bcd4fb022c64911c8" +checksum = "dec1028182c380cc45a2e2c5ec841134f2dfd0f8f5f0a5bcd68004f81b5efdf4" dependencies = [ "libc", ] @@ -1337,7 +1337,7 @@ name = "cumulus-client-network" version = "0.1.0" source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "futures 0.3.15", "futures-timer 3.0.2", "parity-scale-codec", @@ -1531,9 +1531,9 @@ checksum = "3ee2393c4a91429dffb4bedf19f4d6abf27d8a732c8ce4980305d782e5426d57" [[package]] name = "data-encoding-macro" -version = "0.1.11" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3920ab0ba823e4fe0fe4c358f105a7e36643f2155f409b13df03e67965d296f" +checksum = "0a94feec3d2ba66c0b6621bca8bc6f68415b1e5c69af3586fdd0af9fd9f29b17" dependencies = [ "data-encoding", "data-encoding-macro-internal", @@ -1555,7 +1555,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -1576,12 +1576,12 @@ dependencies = [ [[package]] name = "derive_more" -version = "0.99.14" +version = "0.99.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cc7b9cef1e351660e5443924e4f43ab25fbbed3e9a5f052df3677deb4d6b320" +checksum = "f82b1b72f1263f214c0f823371768776c4f5841b942c9883aa8e5ec584fd0ba6" dependencies = [ "convert_case", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -1671,7 +1671,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -1718,7 +1718,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c5f0096a91d210159eceb2ff5e1c4da18388a170e1e3ce948aac9c8fdbbf595" dependencies = [ "heck", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -1738,7 +1738,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "946ee94e3dbf58fdd324f9ce245c7b238d46a66f00e86a020b71996349e46cce" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -1749,7 +1749,7 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e58b112d5099aa0857c5d05f0eacab86406dd8c0f85fe5d320a13256d29ecf4" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -1788,9 +1788,9 @@ checksum = "68b91989ae21441195d7d9b9993a2f9295c7e1a8c96255d8b729accddc124797" [[package]] name = "erased-serde" -version = "0.3.15" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5b36e6f2295f393f44894c6031f67df4d185b984cd54d08f768ce678007efcd" +checksum = "0465971a8cc1fa2455c8465aaa377131e1f1cf4983280f474a13e68793aa770c" dependencies = [ "serde", ] @@ -1874,7 +1874,7 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", "synstructure", @@ -1993,39 +1993,39 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ - "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git)", "linregress", "log", "parity-scale-codec", "paste", - "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] name = "frame-benchmarking" version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "linregress", "log", "parity-scale-codec", "paste", - "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -2079,6 +2079,17 @@ dependencies = [ "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] +[[package]] +name = "frame-metadata" +version = "13.0.0" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" +dependencies = [ + "parity-scale-codec", + "serde", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", +] + [[package]] name = "frame-metadata" version = "13.0.0" @@ -2091,14 +2102,29 @@ dependencies = [ ] [[package]] -name = "frame-metadata" -version = "13.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +name = "frame-support" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ + "bitflags", + "frame-metadata 13.0.0 (git+https://github.com/paritytech/substrate.git)", + "frame-support-procedural 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "impl-trait-for-tuples", + "log", + "once_cell", "parity-scale-codec", + "paste", "serde", + "smallvec 1.6.1", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git)", "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git)", "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] @@ -2127,40 +2153,14 @@ dependencies = [ "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] -[[package]] -name = "frame-support" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" -dependencies = [ - "bitflags", - "frame-metadata 13.0.0 (git+https://github.com/paritytech/substrate.git)", - "frame-support-procedural 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "impl-trait-for-tuples", - "log", - "once_cell", - "parity-scale-codec", - "paste", - "serde", - "smallvec 1.6.1", - "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git)", -] - [[package]] name = "frame-support-procedural" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "Inflector", - "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "proc-macro2 1.0.27", + "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -2168,11 +2168,11 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "Inflector", - "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "proc-macro2 1.0.27", + "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -2180,11 +2180,11 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ - "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -2192,11 +2192,11 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -2204,9 +2204,9 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -2214,9 +2214,9 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -2224,35 +2224,35 @@ dependencies = [ [[package]] name = "frame-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ - "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", "impl-trait-for-tuples", "log", "parity-scale-codec", "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] name = "frame-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "impl-trait-for-tuples", "log", "parity-scale-codec", "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -2450,7 +2450,7 @@ checksum = "a4c40298486cdf52cc00cd6d6987892ba502c7656a16a4192a9992b1ccedd121" dependencies = [ "autocfg", "proc-macro-hack", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -2559,9 +2559,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.3" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753" +checksum = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8" dependencies = [ "cfg-if 1.0.0", "libc", @@ -3035,7 +3035,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d5dacb10c5b3bb92d46ba347505a9041e676bb20ad220101326bffb0c93031ee" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -3205,7 +3205,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99a847f9ec7bb52149b2786a17c9cb260d6effc6b8eeb8c16b343a487a7563a3" dependencies = [ "proc-macro-crate 0.1.5", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -3309,7 +3309,7 @@ checksum = "b0cbaee9ca6440e191545a68c7bf28db0ff918359a904e37a6e7cf7edd132f5a" dependencies = [ "Inflector", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -3502,9 +3502,9 @@ checksum = "3576a87f2ba00f6f106fdfcd16db1d698d648a26ad8e0573cad8537c3c362d2a" [[package]] name = "libc" -version = "0.2.95" +version = "0.2.94" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "789da6d93f1b866ffe175afc5322a4d76c038605a1c3319bb57b06967ca98a36" +checksum = "18794a8ad5b29321f790b55d93dfba91e125cb1a9edbd4f8e3150acc771c1a5e" [[package]] name = "libloading" @@ -4144,9 +4144,9 @@ checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" [[package]] name = "memmap2" -version = "0.2.3" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "723e3ebdcdc5c023db1df315364573789f8857c11b631a2fdfad7c00f5c046b4" +checksum = "397d1a6d6d0563c0f5462bbdae662cf6c784edf5e828e40c7257f85d82bf56dd" dependencies = [ "libc", ] @@ -4212,7 +4212,7 @@ name = "metered-channel" version = "0.1.0" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "futures 0.3.15", "futures-timer 3.0.2", ] @@ -4243,7 +4243,7 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f2b9e8883d58e34b18facd16c4564a77ea50fce028ad3d0ee6753440e37acc8" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -4369,13 +4369,13 @@ dependencies = [ [[package]] name = "multihash-derive" -version = "0.7.2" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "424f6e86263cd5294cbd7f1e95746b95aca0e0d66bff31e5a40d6baa87b4aa99" +checksum = "85ee3c48cb9d9b275ad967a0e96715badc13c6029adb92f34fa17b9ff28fd81f" dependencies = [ - "proc-macro-crate 1.0.0", + "proc-macro-crate 0.1.5", "proc-macro-error", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", "synstructure", @@ -5047,7 +5047,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-election-provider-support", @@ -5192,7 +5192,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", @@ -5248,7 +5248,7 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "proc-macro-crate 1.0.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -5538,7 +5538,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f44c5f94427bd0b5076e8f7e15ca3f60a4d8ac0077e4793884e6fdfd8915344e" dependencies = [ "proc-macro-crate 0.1.5", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -5592,7 +5592,7 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "syn 1.0.72", "synstructure", ] @@ -5787,7 +5787,7 @@ checksum = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55" dependencies = [ "pest", "pest_meta", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -5837,7 +5837,7 @@ version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3be26700300be6d9d23264c73211d8190e755b6b5ca7a1b28230025511b52a5e" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -5848,7 +5848,7 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48c950132583b500556b1efd71d45b319029f2b71518d979fcc208e16b42426f" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -6131,7 +6131,7 @@ version = "0.1.0" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" dependencies = [ "bitvec", - "derive_more 0.99.14", + "derive_more 0.99.13", "futures 0.3.15", "futures-timer 3.0.2", "kvdb", @@ -6401,7 +6401,7 @@ source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf dependencies = [ "async-std", "async-trait", - "derive_more 0.99.14", + "derive_more 0.99.13", "futures 0.3.15", "futures-timer 3.0.2", "lazy_static", @@ -6474,7 +6474,7 @@ name = "polkadot-parachain" version = "0.8.30" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "parity-scale-codec", "parity-util-mem", "polkadot-core-primitives", @@ -6519,7 +6519,7 @@ version = "0.1.0" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" dependencies = [ "assert_matches", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -6682,7 +6682,7 @@ version = "0.8.30" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" dependencies = [ "bitvec", - "derive_more 0.99.14", + "derive_more 0.99.13", "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", @@ -7021,7 +7021,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" dependencies = [ "proc-macro-error-attr", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", "version_check", @@ -7033,7 +7033,7 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "version_check", ] @@ -7061,9 +7061,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.27" +version = "1.0.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0d8caf72986c1a598726adc988bb5984792ef84f5ee5aa50209145ee8077038" +checksum = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec" dependencies = [ "unicode-xid 0.2.2", ] @@ -7118,7 +7118,7 @@ checksum = "169a15f3008ecb5160cba7d37bcd690a7601b6d30cfb87a117d45e59d52af5d4" dependencies = [ "anyhow", "itertools 0.9.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -7135,9 +7135,9 @@ dependencies = [ [[package]] name = "psm" -version = "0.1.13" +version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21ff0279b4a85e576b97e4a21d13e437ebcd56612706cde5d3f0d5c9399490c0" +checksum = "3abf49e5417290756acfd26501536358560c4a5cc4a0934d390939acb3e7083a" dependencies = [ "cc", ] @@ -7191,7 +7191,7 @@ version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", ] [[package]] @@ -7299,7 +7299,7 @@ version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7" dependencies = [ - "getrandom 0.2.3", + "getrandom 0.2.2", ] [[package]] @@ -7346,9 +7346,9 @@ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" [[package]] name = "rayon" -version = "1.5.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90" +checksum = "8b0d8e0819fadc20c74ea8373106ead0600e3a67ef1fe8da56e39b9ae7275674" dependencies = [ "autocfg", "crossbeam-deque 0.8.0", @@ -7358,9 +7358,9 @@ dependencies = [ [[package]] name = "rayon-core" -version = "1.9.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e" +checksum = "9ab346ac5921dc62ffa9f89b7a773907511cdfa5490c572ae9be1be33e8afa4a" dependencies = [ "crossbeam-channel", "crossbeam-deque 0.8.0", @@ -7399,7 +7399,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" dependencies = [ - "getrandom 0.2.3", + "getrandom 0.2.2", "redox_syscall 0.2.8", ] @@ -7409,7 +7409,7 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3bd8f48b2066e9f69ab192797d66da804d1935bf22763204ed3675740cb0f221" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "fs-err", "itertools 0.10.0", "static_init", @@ -7431,7 +7431,7 @@ version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c38e3aecd2b21cb3959637b883bb3714bc7e43f0268b9a29d3743ee3e55cdd2" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -7761,7 +7761,7 @@ version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-trait", - "derive_more 0.99.14", + "derive_more 0.99.13", "either", "futures 0.3.15", "futures-timer 3.0.2", @@ -7850,7 +7850,7 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "proc-macro-crate 1.0.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -7898,7 +7898,7 @@ name = "sc-client-api" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "fnv", "futures 0.3.15", "hash-db", @@ -7975,7 +7975,7 @@ version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-trait", - "derive_more 0.99.14", + "derive_more 0.99.13", "fork-tree", "futures 0.3.15", "futures-timer 3.0.2", @@ -8021,7 +8021,7 @@ name = "sc-consensus-babe-rpc" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "futures 0.3.15", "jsonrpc-core", "jsonrpc-core-client", @@ -8099,7 +8099,7 @@ name = "sc-executor" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "lazy_static", "libsecp256k1", "log", @@ -8129,7 +8129,7 @@ name = "sc-executor-common" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "parity-scale-codec", "parity-wasm 0.41.0", "pwasm-utils", @@ -8180,7 +8180,7 @@ version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-trait", - "derive_more 0.99.14", + "derive_more 0.99.13", "dyn-clone", "finality-grandpa", "fork-tree", @@ -8219,7 +8219,7 @@ name = "sc-finality-grandpa-rpc" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "finality-grandpa", "futures 0.3.15", "jsonrpc-core", @@ -8243,7 +8243,7 @@ name = "sc-finality-grandpa-warp-sync" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "futures 0.3.15", "log", "num-traits", @@ -8283,7 +8283,7 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-trait", - "derive_more 0.99.14", + "derive_more 0.99.13", "futures 0.3.15", "futures-util", "hex", @@ -8328,7 +8328,7 @@ dependencies = [ "bs58", "bytes 1.0.1", "cid", - "derive_more 0.99.14", + "derive_more 0.99.13", "either", "erased-serde", "fnv", @@ -8475,7 +8475,7 @@ name = "sc-rpc-api" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "futures 0.3.15", "jsonrpc-core", "jsonrpc-core-client", @@ -8664,7 +8664,7 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "proc-macro-crate 1.0.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -8674,7 +8674,7 @@ name = "sc-transaction-graph" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "futures 0.3.15", "linked-hash-map", "log", @@ -8773,7 +8773,7 @@ version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aaaae8f38bb311444cfb7f1979af0bc9240d95795f75f9ceddf6a59b79ceffa0" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -8878,7 +8878,7 @@ version = "1.0.126" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "963a7dbc9895aeac7ac90e74f34a5d5261828f79df35cbed41e10189d3804d43" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -9129,45 +9129,45 @@ dependencies = [ [[package]] name = "sp-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "hash-db", "log", "parity-scale-codec", - "sp-api-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-api-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git)", "thiserror", ] [[package]] name = "sp-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "hash-db", "log", "parity-scale-codec", - "sp-api-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-api-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", ] [[package]] name = "sp-api-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "blake2-rfc", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -9175,11 +9175,11 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "blake2-rfc", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -9187,52 +9187,52 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "parity-scale-codec", "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] name = "sp-application-crypto" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "parity-scale-codec", "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-arithmetic" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "serde", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", "static_assertions", ] [[package]] name = "sp-arithmetic" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "serde", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "static_assertions", ] @@ -9371,7 +9371,7 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "base58", "blake2-rfc", @@ -9398,11 +9398,11 @@ dependencies = [ "secrecy", "serde", "sha2 0.9.5", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", "substrate-bip39", "thiserror", "tiny-bip39", @@ -9415,7 +9415,7 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "base58", "blake2-rfc", @@ -9442,11 +9442,11 @@ dependencies = [ "secrecy", "serde", "sha2 0.9.5", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-bip39", "thiserror", "tiny-bip39", @@ -9468,9 +9468,9 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -9478,9 +9478,9 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -9488,23 +9488,23 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -9527,19 +9527,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "parking_lot 0.11.1", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "thiserror", -] - -[[package]] -name = "sp-inherents" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9551,33 +9539,21 @@ dependencies = [ ] [[package]] -name = "sp-io" +name = "sp-inherents" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "futures 0.3.15", - "hash-db", - "libsecp256k1", - "log", "parity-scale-codec", "parking_lot 0.11.1", "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "tracing", - "tracing-core", + "thiserror", ] [[package]] name = "sp-io" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "futures 0.3.15", "hash-db", @@ -9599,6 +9575,30 @@ dependencies = [ "tracing-core", ] +[[package]] +name = "sp-io" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +dependencies = [ + "futures 0.3.15", + "hash-db", + "libsecp256k1", + "log", + "parity-scale-codec", + "parking_lot 0.11.1", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "tracing", + "tracing-core", +] + [[package]] name = "sp-keyring" version = "3.0.0" @@ -9613,40 +9613,40 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "async-trait", - "derive_more 0.99.14", + "derive_more 0.99.13", "futures 0.3.15", "merlin", "parity-scale-codec", "parking_lot 0.11.1", "schnorrkel", - "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-trait", - "derive_more 0.99.14", + "derive_more 0.99.13", "futures 0.3.15", "merlin", "parity-scale-codec", "parking_lot 0.11.1", "schnorrkel", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", + "serde", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-maybe-compressed-blob" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "ruzstd", "zstd", @@ -9655,7 +9655,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "ruzstd", "zstd", @@ -9680,7 +9680,7 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "proc-macro-crate 1.0.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -9698,7 +9698,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "backtrace", ] @@ -9706,7 +9706,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "backtrace", ] @@ -9723,7 +9723,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "either", "hash256-std-hasher", @@ -9734,17 +9734,17 @@ dependencies = [ "paste", "rand 0.7.3", "serde", - "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "either", "hash256-std-hasher", @@ -9755,55 +9755,55 @@ dependencies = [ "paste", "rand 0.7.3", "serde", - "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime-interface-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime-interface-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git)", "static_assertions", ] [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", - "sp-runtime-interface-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "static_assertions", ] [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "Inflector", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -9811,11 +9811,11 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "Inflector", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -9845,27 +9845,27 @@ dependencies = [ [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "parity-scale-codec", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "parity-scale-codec", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "hash-db", "log", @@ -9874,12 +9874,13 @@ dependencies = [ "parking_lot 0.11.1", "rand 0.7.3", "smallvec 1.6.1", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git)", "thiserror", + "tracing", "trie-db", "trie-root", ] @@ -9887,7 +9888,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "hash-db", "log", @@ -9896,13 +9897,12 @@ dependencies = [ "parking_lot 0.11.1", "rand 0.7.3", "smallvec 1.6.1", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git)", - "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", - "tracing", "trie-db", "trie-root", ] @@ -9910,37 +9910,37 @@ dependencies = [ [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", ] [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -9972,11 +9972,16 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ + "erased-serde", "log", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "parking_lot 0.10.2", + "serde", + "serde_json", + "slog", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", "tracing", "tracing-core", "tracing-subscriber", @@ -9985,16 +9990,11 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "erased-serde", "log", "parity-scale-codec", - "parking_lot 0.10.2", - "serde", - "serde_json", - "slog", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", "tracing-core", "tracing-subscriber", @@ -10005,7 +10005,7 @@ name = "sp-transaction-pool" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ - "derive_more 0.99.14", + "derive_more 0.99.13", "futures 0.3.15", "log", "parity-scale-codec", @@ -10019,13 +10019,13 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "hash-db", "memory-db", "parity-scale-codec", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", "trie-db", "trie-root", ] @@ -10033,13 +10033,13 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "hash-db", "memory-db", "parity-scale-codec", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "trie-db", "trie-root", ] @@ -10059,36 +10059,36 @@ dependencies = [ [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "impl-serde", "parity-scale-codec", "serde", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-version-proc-macro", ] [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "impl-serde", "parity-scale-codec", "serde", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", - "sp-version-proc-macro", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-version-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "parity-scale-codec", "proc-macro-crate 1.0.0", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -10096,22 +10096,22 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" +source = "git+https://github.com/paritytech/substrate.git#af14d493bec4d6ecdfd7b309df6c82d5d978469c" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", "wasmi", ] [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git#1cbf0e16832eca5e0733d65279872ce79ddfe9f2" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "wasmi", ] @@ -10153,7 +10153,7 @@ checksum = "f2261c91034a1edc3fc4d1b80e89d82714faede0515c14a75da10cb941546bbf" dependencies = [ "cfg_aliases", "memchr", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -10224,7 +10224,7 @@ checksum = "5ba9cdfda491b814720b6b06e0cac513d922fc407582032e8706e9f137976f90" dependencies = [ "heck", "proc-macro-error", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -10245,7 +10245,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee8bc6b87a5112aeeab1f4a9f7ab634fe6cbefc4850006df31267f4cfb9e3149" dependencies = [ "heck", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -10300,7 +10300,7 @@ version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" dependencies = [ "async-std", - "derive_more 0.99.14", + "derive_more 0.99.13", "futures-util", "hyper 0.13.10", "log", @@ -10398,7 +10398,7 @@ version = "1.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1e8cdbefb79a9a5a65e0db8b47b723ee907b7c7f8496c76a1770b5c310bab82" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "unicode-xid 0.2.2", ] @@ -10409,7 +10409,7 @@ version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", "unicode-xid 0.2.2", @@ -10467,20 +10467,20 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.25" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa6f76457f59514c7eeb4e59d891395fab0b2fd1d40723ae737d64153392e9c6" +checksum = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.25" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a36768c0fbf1bb15eca10defa29526bda730a2376c2ab4393ccfa16fb1a318d" +checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -10866,7 +10866,7 @@ version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c42e6fa53307c8a17e4ccd4dc81cf5ec38db9209f59b222210375b54ee40d1e2" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", ] @@ -10935,9 +10935,9 @@ dependencies = [ [[package]] name = "trie-db" -version = "0.22.5" +version = "0.22.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd81fe0c8bc2b528a51c9d2c31dae4483367a26a723a3c9a4a8120311d7774e3" +checksum = "ec051edf7f0fc9499a2cb0947652cab2148b9d7f61cee7605e312e9f970dacaf" dependencies = [ "hash-db", "hashbrown", @@ -10957,9 +10957,9 @@ dependencies = [ [[package]] name = "trust-dns-proto" -version = "0.20.3" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0d7f5db438199a6e2609debe3f69f808d074e0a2888ee0bccb45fe234d03f4" +checksum = "952a078337565ba39007de99b151770f41039253a31846f0a3d5cd5a4ac8eedf" dependencies = [ "async-trait", "cfg-if 1.0.0", @@ -10981,9 +10981,9 @@ dependencies = [ [[package]] name = "trust-dns-resolver" -version = "0.20.3" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6ad17b608a64bd0735e67bde16b0636f8aa8591f831a25d18443ed00a699770" +checksum = "da9c97f7d103e0f94dbe384a57908833505ae5870126492f166821b7cf685589" dependencies = [ "cfg-if 1.0.0", "futures-util", @@ -11183,19 +11183,18 @@ dependencies = [ [[package]] name = "value-bag" -version = "1.0.0-alpha.7" +version = "1.0.0-alpha.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd320e1520f94261153e96f7534476ad869c14022aee1e59af7c778075d840ae" +checksum = "6b676010e055c99033117c2343b33a40a30b91fecd6c49055ac9cd2d6c305ab1" dependencies = [ "ctor", - "version_check", ] [[package]] name = "vcpkg" -version = "0.2.13" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "025ce40a007e1907e58d5bc1a594def78e5573bb0b1160bc389634e8f12e4faa" +checksum = "cbdbff6266a24120518560b5dc983096efb98462e51d0d68169895b237be3e5d" [[package]] name = "vec_map" @@ -11284,7 +11283,7 @@ dependencies = [ "bumpalo", "lazy_static", "log", - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", "wasm-bindgen-shared", @@ -11318,7 +11317,7 @@ version = "0.2.74" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be2241542ff3d9f241f5e2cb6dd09b37efe786df8851c54957683a49f0987a97" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", "wasm-bindgen-backend", @@ -11890,7 +11889,7 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2c1e130bebaeab2f23886bf9acbaca14b092408c452543c857f66399cd6dab1" dependencies = [ - "proc-macro2 1.0.27", + "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.72", "synstructure", From 354899fe1e2408683cf981fa6ee3489732a41cc3 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 17:54:48 +0800 Subject: [PATCH 68/74] chore(runtime): fix typo in runtime --- runtime/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index fb31ec52eb..7fffd47c03 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -549,7 +549,9 @@ parameter_types! { pub MinimumRedemption: u32 = 0; pub WithdrawalPeriod: ::BlockNumber = 10; pub DOTContributionLimit: Balance = 999; +} +impl pallet_asset_index::Config for Runtime { // Using signed as the admin origin for testing now type AdminOrigin = frame_system::EnsureSigned; type Event = Event; From 35dbddd0225035cf190b22a8ec69bc1dfe8b8f89 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 18:38:50 +0800 Subject: [PATCH 69/74] ci(e2e): handle EPERM --- js/e2e/src/runner.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/js/e2e/src/runner.ts b/js/e2e/src/runner.ts index 6d9896a338..2cfc219644 100644 --- a/js/e2e/src/runner.ts +++ b/js/e2e/src/runner.ts @@ -19,8 +19,16 @@ const LAUNCH_COMPLETE: string = "POLKADOT LAUNCH COMPLETE"; // Kill subprocesses function killAll(ps: ChildProcess) { - ps.send && ps.send("exit"); - ps.kill("SIGINT"); + try { + ps.send && ps.send("exit"); + ps.kill("SIGINT"); + } catch (e) { + if (e.code !== "EPERM") { + process.stdout.write(e); + process.exit(2); + } + } + process.exit(0); } From 700b4f641f5f5910cdab915a7ecfd9c07572331d Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 22:25:12 +0800 Subject: [PATCH 70/74] chore(js): use symlink type for LICNESE --- js/pint-types-bundle/LICENSE | 166 +---------------------------------- 1 file changed, 1 insertion(+), 165 deletions(-) mode change 100644 => 120000 js/pint-types-bundle/LICENSE diff --git a/js/pint-types-bundle/LICENSE b/js/pint-types-bundle/LICENSE deleted file mode 100644 index 0a041280bd..0000000000 --- a/js/pint-types-bundle/LICENSE +++ /dev/null @@ -1,165 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser -General Public License, and the "GNU GPL" refers to version 3 of the GNU -General Public License. - - "The Library" refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. - - A "Combined Work" is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the "Linked -Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: - - a) under this License, provided that you make a good faith effort to - ensure that, in the event an Application does not supply the - function or data, the facility still operates, and performs - whatever part of its purpose remains meaningful, or - - b) under the GNU GPL, with none of the additional permissions of - this License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: - - a) Give prominent notice with each copy of the object code that the - Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license - document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: - - a) Give prominent notice with each copy of the Combined Work that - the Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license - document. - - c) For a Combined Work that displays copyright notices during - execution, include the copyright notice for the Library among - these notices, as well as a reference directing the user to the - copies of the GNU GPL and this license document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this - License, and the Corresponding Application Code in a form - suitable for, and under terms that permit, the user to - recombine or relink the Application with a modified version of - the Linked Version to produce a modified Combined Work, in the - manner specified by section 6 of the GNU GPL for conveying - Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (a) uses at run time - a copy of the Library already present on the user's computer - system, and (b) will operate properly with a modified version - of the Library that is interface-compatible with the Linked - Version. - - e) Provide Installation Information, but only if you would otherwise - be required to provide such information under section 6 of the - GNU GPL, and only to the extent that such information is - necessary to install and execute a modified version of the - Combined Work produced by recombining or relinking the - Application with a modified version of the Linked Version. (If - you use option 4d0, the Installation Information must accompany - the Minimal Corresponding Source and Corresponding Application - Code. If you use option 4d1, you must provide the Installation - Information in the manner specified by section 6 of the GNU GPL - for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based - on the Library, uncombined with any other library facilities, - conveyed under the terms of this License. - - b) Give prominent notice with the combined library that part of it - is a work based on the Library, and explaining where to find the - accompanying uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License "or any later version" -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library. diff --git a/js/pint-types-bundle/LICENSE b/js/pint-types-bundle/LICENSE new file mode 120000 index 0000000000..7a694c9699 --- /dev/null +++ b/js/pint-types-bundle/LICENSE @@ -0,0 +1 @@ +LICENSE \ No newline at end of file From f8a0e47daaf190d4167d9ddc2afea9c21e9c78b9 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 22:36:35 +0800 Subject: [PATCH 71/74] feat(js/e2e): try require polkadot-launch as a dependency --- .gitmodules | 3 --- js/e2e/package.json | 3 ++- js/e2e/src/launch.ts | 2 +- js/polkadot-launch | 1 - 4 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 .gitmodules delete mode 160000 js/polkadot-launch diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 4fdc6a499b..0000000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "js/polkadot-launch"] - path = js/polkadot-launch - url = https://github.com/paritytech/polkadot-launch.git diff --git a/js/e2e/package.json b/js/e2e/package.json index 2eb641f165..789bd5dce8 100644 --- a/js/e2e/package.json +++ b/js/e2e/package.json @@ -18,7 +18,8 @@ "@pint/types": "^1.0.0", "@polkadot/api": "^4.11.2", "@polkadot/keyring": "^6.5.1", - "find-up": "^5.0.0" + "find-up": "^5.0.0", + "polkadot-launch": "https://github.com/paritytech/polkadot-launch.git" }, "scripts": { "start": "ts-node index.ts", diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index 33403351bd..fc50670eb9 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -13,7 +13,7 @@ import { fork, ChildProcess, StdioOptions, spawn } from "child_process"; * @returns {Promise} */ export async function local(stdio?: StdioOptions): Promise { - return fork("js/polkadot-launch", ["config.json"], { + return fork("polkadot-launch", ["config.json"], { cwd: path.resolve(String(await findUp("Cargo.toml")), ".."), killSignal: "SIGINT", stdio, diff --git a/js/polkadot-launch b/js/polkadot-launch deleted file mode 160000 index f161a73a65..0000000000 --- a/js/polkadot-launch +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f161a73a659678bafa758bf7cee077961f410b6a From 610d7958547e25490486ac5181f5775e5ecddd2a Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 15 Jun 2021 23:06:23 +0800 Subject: [PATCH 72/74] ci(e2e): clone polkadot-launch in container --- docker/launch.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/launch.Dockerfile b/docker/launch.Dockerfile index b1d0c94800..8f7c514793 100644 --- a/docker/launch.Dockerfile +++ b/docker/launch.Dockerfile @@ -6,7 +6,6 @@ # This Dockerfile builds the environment of e2e tests FROM debian:buster-slim COPY config.json config.json -COPY js/polkadot-launch polkadot-launch COPY --from=chainsafe/pint /usr/local/bin/pint bin/ COPY --from=clearloop/rococo-v1 /polkadot bin/ COPY --from=clearloop/statemint /statemint bin/ @@ -17,6 +16,7 @@ RUN apt-get update -y \ && apt-get -qqy --no-install-recommends install nodejs -y \ && rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb \ && rm -f /var/cache/apt/*.bin \ + && git clone https://github.com/paritytech/polkadot-launch.git \ && cd polkadot-launch \ && npm install \ && npm run build From ea817b62c0bfc528bd7d92e0e137cab5124d384d Mon Sep 17 00:00:00 2001 From: clearloop Date: Wed, 16 Jun 2021 00:47:09 +0800 Subject: [PATCH 73/74] chore(js): copy license --- docker/launch.Dockerfile | 2 +- js/pint-types-bundle/LICENSE | 166 ++++++++++++++++++++++++++++++++++- 2 files changed, 166 insertions(+), 2 deletions(-) mode change 120000 => 100644 js/pint-types-bundle/LICENSE diff --git a/docker/launch.Dockerfile b/docker/launch.Dockerfile index 8f7c514793..e6b0d81809 100644 --- a/docker/launch.Dockerfile +++ b/docker/launch.Dockerfile @@ -16,7 +16,7 @@ RUN apt-get update -y \ && apt-get -qqy --no-install-recommends install nodejs -y \ && rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb \ && rm -f /var/cache/apt/*.bin \ - && git clone https://github.com/paritytech/polkadot-launch.git \ + && git clone https://github.com/paritytech/polkadot-launch.git --depth=1 \ && cd polkadot-launch \ && npm install \ && npm run build diff --git a/js/pint-types-bundle/LICENSE b/js/pint-types-bundle/LICENSE deleted file mode 120000 index 7a694c9699..0000000000 --- a/js/pint-types-bundle/LICENSE +++ /dev/null @@ -1 +0,0 @@ -LICENSE \ No newline at end of file diff --git a/js/pint-types-bundle/LICENSE b/js/pint-types-bundle/LICENSE new file mode 100644 index 0000000000..0a041280bd --- /dev/null +++ b/js/pint-types-bundle/LICENSE @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. From 6a9cb9828548ee654fa33b3797dfd27ab7a941dc Mon Sep 17 00:00:00 2001 From: clearloop Date: Wed, 16 Jun 2021 13:06:11 +0800 Subject: [PATCH 74/74] Revert "chore(js): copy license" This reverts commit ea817b62c0bfc528bd7d92e0e137cab5124d384d. Revert "ci(e2e): clone polkadot-launch in container" This reverts commit 610d7958547e25490486ac5181f5775e5ecddd2a. Revert "feat(js/e2e): try require polkadot-launch as a dependency" This reverts commit f8a0e47daaf190d4167d9ddc2afea9c21e9c78b9. Revert "chore(js): use symlink type for LICNESE" This reverts commit 700b4f641f5f5910cdab915a7ecfd9c07572331d. --- .gitmodules | 3 +++ docker/launch.Dockerfile | 2 +- js/e2e/package.json | 3 +-- js/e2e/src/launch.ts | 2 +- js/polkadot-launch | 1 + 5 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .gitmodules create mode 160000 js/polkadot-launch diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000..4fdc6a499b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "js/polkadot-launch"] + path = js/polkadot-launch + url = https://github.com/paritytech/polkadot-launch.git diff --git a/docker/launch.Dockerfile b/docker/launch.Dockerfile index e6b0d81809..b1d0c94800 100644 --- a/docker/launch.Dockerfile +++ b/docker/launch.Dockerfile @@ -6,6 +6,7 @@ # This Dockerfile builds the environment of e2e tests FROM debian:buster-slim COPY config.json config.json +COPY js/polkadot-launch polkadot-launch COPY --from=chainsafe/pint /usr/local/bin/pint bin/ COPY --from=clearloop/rococo-v1 /polkadot bin/ COPY --from=clearloop/statemint /statemint bin/ @@ -16,7 +17,6 @@ RUN apt-get update -y \ && apt-get -qqy --no-install-recommends install nodejs -y \ && rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb \ && rm -f /var/cache/apt/*.bin \ - && git clone https://github.com/paritytech/polkadot-launch.git --depth=1 \ && cd polkadot-launch \ && npm install \ && npm run build diff --git a/js/e2e/package.json b/js/e2e/package.json index 789bd5dce8..2eb641f165 100644 --- a/js/e2e/package.json +++ b/js/e2e/package.json @@ -18,8 +18,7 @@ "@pint/types": "^1.0.0", "@polkadot/api": "^4.11.2", "@polkadot/keyring": "^6.5.1", - "find-up": "^5.0.0", - "polkadot-launch": "https://github.com/paritytech/polkadot-launch.git" + "find-up": "^5.0.0" }, "scripts": { "start": "ts-node index.ts", diff --git a/js/e2e/src/launch.ts b/js/e2e/src/launch.ts index fc50670eb9..33403351bd 100644 --- a/js/e2e/src/launch.ts +++ b/js/e2e/src/launch.ts @@ -13,7 +13,7 @@ import { fork, ChildProcess, StdioOptions, spawn } from "child_process"; * @returns {Promise} */ export async function local(stdio?: StdioOptions): Promise { - return fork("polkadot-launch", ["config.json"], { + return fork("js/polkadot-launch", ["config.json"], { cwd: path.resolve(String(await findUp("Cargo.toml")), ".."), killSignal: "SIGINT", stdio, diff --git a/js/polkadot-launch b/js/polkadot-launch new file mode 160000 index 0000000000..f161a73a65 --- /dev/null +++ b/js/polkadot-launch @@ -0,0 +1 @@ +Subproject commit f161a73a659678bafa758bf7cee077961f410b6a