From 139a7c211b12ac4079b6605bb84a32b524823ac8 Mon Sep 17 00:00:00 2001 From: dung5ire Date: Wed, 21 Aug 2024 14:40:25 +0700 Subject: [PATCH 1/3] chore: remove unused deps in integration tests Signed-off-by: dung5ire --- integration-test-suite/package.json | 7 +- .../tests/esg.pallet.test.ts | 8 +- integration-test-suite/tests/evmFee.test.ts | 2 +- integration-test-suite/yarn.lock | 1770 ++++++++--------- 4 files changed, 871 insertions(+), 916 deletions(-) diff --git a/integration-test-suite/package.json b/integration-test-suite/package.json index 2cde127c..5ddcf69f 100644 --- a/integration-test-suite/package.json +++ b/integration-test-suite/package.json @@ -12,13 +12,10 @@ "ts-check": "npx tsc --noEmit" }, "dependencies": { - "@polkadot/api": "^10.4.1", + "@polkadot/api": "^12.3.1", "@types/chai": "^4.3.0", "@types/mocha": "^9.1.0", - "@polkadot/util": "^12.2.1", - "@polkadot/util-crypto": "^12.2.1", - "@polkadot/keyring": "12.3.2", - "@polkadot/api-contract": "^10.4.1", + "@polkadot/api-contract": "^12.3.1", "chai": "^4.3.7", "ecpair": "^1.0.0", "ethers": "^5.5.4", diff --git a/integration-test-suite/tests/esg.pallet.test.ts b/integration-test-suite/tests/esg.pallet.test.ts index f3a6acf6..cfc944b0 100644 --- a/integration-test-suite/tests/esg.pallet.test.ts +++ b/integration-test-suite/tests/esg.pallet.test.ts @@ -142,7 +142,7 @@ async function registerOracleFailedCallerNotRootOrSudoOracle( bob: KeyringPair, const data = JSON.stringify(result.events); const dataStr = JSON.parse(data); const filteredErrorData = dataStr.filter((item: any) => item.event.index === "0x0001"); - expect(filteredErrorData[0].event.data[0].module.error).to.equal("0x06000000"); + expect(filteredErrorData[0].event.data[0].module.error).to.equal("0x08000000"); console.log(`Error found: ${filteredErrorData[0].event.data[0].module.error}`); } @@ -171,7 +171,7 @@ async function registerOracleFailedOracleRegisteredAlready( alice: KeyringPair, const data = JSON.stringify(result.events); const dataStr = JSON.parse(data) const filteredErrorData = dataStr.filter((item: any) => item.event.index === "0x1300"); - expect(filteredErrorData[0].event.data[0].err.module.error).to.equal("0x05000000"); + expect(filteredErrorData[0].event.data[0].err.module.error).to.equal("0x07000000"); console.log(`Error found: ${filteredErrorData[0].event.data[0].err.module.error}`); } @@ -275,7 +275,7 @@ async function insertEsgScoresCallerNotAnOracle( console.log(data); const dataStr = JSON.parse(data); const filteredErrorData = dataStr.filter((item: any) => item.event.index === "0x0001"); - expect(filteredErrorData[0].event.data[0].module.error).to.equal("0x04000000"); + expect(filteredErrorData[0].event.data[0].module.error).to.equal("0x06000000"); console.log(`Error found: ${filteredErrorData[0].event.data[0].module.error}`); } @@ -425,7 +425,7 @@ async function registerOracleFailedOracleRegisteredAlreadyForNonSudo( alice: Key const data = JSON.stringify(result.events); const dataStr = JSON.parse(data) const filteredErrorData = dataStr.filter((item: any) => item.event.index === "0x1300"); - expect(filteredErrorData[0].event.data[0].err.module.error).to.equal("0x05000000"); + expect(filteredErrorData[0].event.data[0].err.module.error).to.equal("0x07000000"); console.log(`Error found: ${filteredErrorData[0].event.data[0].err.module.error}`); } diff --git a/integration-test-suite/tests/evmFee.test.ts b/integration-test-suite/tests/evmFee.test.ts index 4d83bb4b..5c5c98b9 100644 --- a/integration-test-suite/tests/evmFee.test.ts +++ b/integration-test-suite/tests/evmFee.test.ts @@ -37,7 +37,7 @@ describe("EVM related Fee using web3js/ethersjs", function () { const gasPrice = await web3.eth.getGasPrice(); // we configure in runtime - expect(BigInt(gasPrice)).to.eq(250000000000n); + expect(BigInt(gasPrice)).to.eq(50000000000n); }); it("Fee History should return error on non-existent blocks", async function () { diff --git a/integration-test-suite/yarn.lock b/integration-test-suite/yarn.lock index 52352760..9a221652 100644 --- a/integration-test-suite/yarn.lock +++ b/integration-test-suite/yarn.lock @@ -4,7 +4,7 @@ "@cspotcode/source-map-support@^0.8.0": version "0.8.1" - resolved "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz" + resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== dependencies: "@jridgewell/trace-mapping" "0.3.9" @@ -19,7 +19,7 @@ "@ethereumjs/rlp@^4.0.1": version "4.0.1" - resolved "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz" + resolved "https://registry.yarnpkg.com/@ethereumjs/rlp/-/rlp-4.0.1.tgz#626fabfd9081baab3d0a3074b0c7ecaf674aaa41" integrity sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw== "@ethereumjs/tx@3.5.2": @@ -41,7 +41,7 @@ "@ethersproject/abi@5.7.0", "@ethersproject/abi@^5.6.3", "@ethersproject/abi@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.7.0.tgz#b3f3e045bbbeed1af3947335c247ad625a44e449" integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA== dependencies: "@ethersproject/address" "^5.7.0" @@ -56,7 +56,7 @@ "@ethersproject/abstract-provider@5.7.0", "@ethersproject/abstract-provider@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz#b0a8550f88b6bf9d51f90e4795d48294630cb9ef" integrity sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw== dependencies: "@ethersproject/bignumber" "^5.7.0" @@ -69,7 +69,7 @@ "@ethersproject/abstract-signer@5.7.0", "@ethersproject/abstract-signer@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz#13f4f32117868452191a4649723cb086d2b596b2" integrity sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ== dependencies: "@ethersproject/abstract-provider" "^5.7.0" @@ -80,7 +80,7 @@ "@ethersproject/address@5.7.0", "@ethersproject/address@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/address/-/address-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.7.0.tgz#19b56c4d74a3b0a46bfdbb6cfcc0a153fc697f37" integrity sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA== dependencies: "@ethersproject/bignumber" "^5.7.0" @@ -91,14 +91,14 @@ "@ethersproject/base64@5.7.0", "@ethersproject/base64@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.7.0.tgz#ac4ee92aa36c1628173e221d0d01f53692059e1c" integrity sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ== dependencies: "@ethersproject/bytes" "^5.7.0" "@ethersproject/basex@5.7.0", "@ethersproject/basex@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/basex/-/basex-5.7.0.tgz#97034dc7e8938a8ca943ab20f8a5e492ece4020b" integrity sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw== dependencies: "@ethersproject/bytes" "^5.7.0" @@ -106,7 +106,7 @@ "@ethersproject/bignumber@5.7.0", "@ethersproject/bignumber@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.7.0.tgz#e2f03837f268ba655ffba03a57853e18a18dc9c2" integrity sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw== dependencies: "@ethersproject/bytes" "^5.7.0" @@ -115,21 +115,21 @@ "@ethersproject/bytes@5.7.0", "@ethersproject/bytes@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.7.0.tgz#a00f6ea8d7e7534d6d87f47188af1148d71f155d" integrity sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A== dependencies: "@ethersproject/logger" "^5.7.0" "@ethersproject/constants@5.7.0", "@ethersproject/constants@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.7.0.tgz#df80a9705a7e08984161f09014ea012d1c75295e" integrity sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA== dependencies: "@ethersproject/bignumber" "^5.7.0" "@ethersproject/contracts@5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.7.0.tgz#c305e775abd07e48aa590e1a877ed5c316f8bd1e" integrity sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg== dependencies: "@ethersproject/abi" "^5.7.0" @@ -145,7 +145,7 @@ "@ethersproject/hash@5.7.0", "@ethersproject/hash@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.7.0.tgz#eb7aca84a588508369562e16e514b539ba5240a7" integrity sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g== dependencies: "@ethersproject/abstract-signer" "^5.7.0" @@ -160,7 +160,7 @@ "@ethersproject/hdnode@5.7.0", "@ethersproject/hdnode@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/hdnode/-/hdnode-5.7.0.tgz#e627ddc6b466bc77aebf1a6b9e47405ca5aef9cf" integrity sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg== dependencies: "@ethersproject/abstract-signer" "^5.7.0" @@ -178,7 +178,7 @@ "@ethersproject/json-wallets@5.7.0", "@ethersproject/json-wallets@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz#5e3355287b548c32b368d91014919ebebddd5360" integrity sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g== dependencies: "@ethersproject/abstract-signer" "^5.7.0" @@ -197,7 +197,7 @@ "@ethersproject/keccak256@5.7.0", "@ethersproject/keccak256@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/keccak256/-/keccak256-5.7.0.tgz#3186350c6e1cd6aba7940384ec7d6d9db01f335a" integrity sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg== dependencies: "@ethersproject/bytes" "^5.7.0" @@ -205,19 +205,19 @@ "@ethersproject/logger@5.7.0", "@ethersproject/logger@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.7.0.tgz#6ce9ae168e74fecf287be17062b590852c311892" integrity sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig== "@ethersproject/networks@5.7.1", "@ethersproject/networks@^5.7.0": version "5.7.1" - resolved "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.7.1.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.7.1.tgz#118e1a981d757d45ccea6bb58d9fd3d9db14ead6" integrity sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ== dependencies: "@ethersproject/logger" "^5.7.0" "@ethersproject/pbkdf2@5.7.0", "@ethersproject/pbkdf2@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz#d2267d0a1f6e123f3771007338c47cccd83d3102" integrity sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw== dependencies: "@ethersproject/bytes" "^5.7.0" @@ -225,14 +225,14 @@ "@ethersproject/properties@5.7.0", "@ethersproject/properties@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/properties/-/properties-5.7.0.tgz#a6e12cb0439b878aaf470f1902a176033067ed30" integrity sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw== dependencies: "@ethersproject/logger" "^5.7.0" "@ethersproject/providers@5.7.2": version "5.7.2" - resolved "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.7.2.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.7.2.tgz#f8b1a4f275d7ce58cf0a2eec222269a08beb18cb" integrity sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg== dependencies: "@ethersproject/abstract-provider" "^5.7.0" @@ -258,7 +258,7 @@ "@ethersproject/random@5.7.0", "@ethersproject/random@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/random/-/random-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/random/-/random-5.7.0.tgz#af19dcbc2484aae078bb03656ec05df66253280c" integrity sha512-19WjScqRA8IIeWclFme75VMXSBvi4e6InrUNuaR4s5pTF2qNhcGdCUwdxUVGtDDqC00sDLCO93jPQoDUH4HVmQ== dependencies: "@ethersproject/bytes" "^5.7.0" @@ -266,7 +266,7 @@ "@ethersproject/rlp@5.7.0", "@ethersproject/rlp@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/rlp/-/rlp-5.7.0.tgz#de39e4d5918b9d74d46de93af80b7685a9c21304" integrity sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w== dependencies: "@ethersproject/bytes" "^5.7.0" @@ -274,7 +274,7 @@ "@ethersproject/sha2@5.7.0", "@ethersproject/sha2@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/sha2/-/sha2-5.7.0.tgz#9a5f7a7824ef784f7f7680984e593a800480c9fb" integrity sha512-gKlH42riwb3KYp0reLsFTokByAKoJdgFCwI+CCiX/k+Jm2mbNs6oOaCjYQSlI1+XBVejwH2KrmCbMAT/GnRDQw== dependencies: "@ethersproject/bytes" "^5.7.0" @@ -283,7 +283,7 @@ "@ethersproject/signing-key@5.7.0", "@ethersproject/signing-key@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/signing-key/-/signing-key-5.7.0.tgz#06b2df39411b00bc57c7c09b01d1e41cf1b16ab3" integrity sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q== dependencies: "@ethersproject/bytes" "^5.7.0" @@ -295,7 +295,7 @@ "@ethersproject/solidity@5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/solidity/-/solidity-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/solidity/-/solidity-5.7.0.tgz#5e9c911d8a2acce2a5ebb48a5e2e0af20b631cb8" integrity sha512-HmabMd2Dt/raavyaGukF4XxizWKhKQ24DoLtdNbBmNKUOPqwjsKQSdV9GQtj9CBEea9DlzETlVER1gYeXXBGaA== dependencies: "@ethersproject/bignumber" "^5.7.0" @@ -307,7 +307,7 @@ "@ethersproject/strings@5.7.0", "@ethersproject/strings@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.7.0.tgz#54c9d2a7c57ae8f1205c88a9d3a56471e14d5ed2" integrity sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg== dependencies: "@ethersproject/bytes" "^5.7.0" @@ -316,7 +316,7 @@ "@ethersproject/transactions@5.7.0", "@ethersproject/transactions@^5.6.2", "@ethersproject/transactions@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.7.0.tgz#91318fc24063e057885a6af13fdb703e1f993d3b" integrity sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ== dependencies: "@ethersproject/address" "^5.7.0" @@ -331,7 +331,7 @@ "@ethersproject/units@5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/units/-/units-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.7.0.tgz#637b563d7e14f42deeee39245275d477aae1d8b1" integrity sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg== dependencies: "@ethersproject/bignumber" "^5.7.0" @@ -340,7 +340,7 @@ "@ethersproject/wallet@5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/wallet/-/wallet-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/wallet/-/wallet-5.7.0.tgz#4e5d0790d96fe21d61d38fb40324e6c7ef350b2d" integrity sha512-MhmXlJXEJFBFVKrDLB4ZdDzxcBxQ3rLyCkhNqVu3CDYvR97E+8r01UgrI+TI99Le+aYm/in/0vp86guJuM7FCA== dependencies: "@ethersproject/abstract-provider" "^5.7.0" @@ -361,7 +361,7 @@ "@ethersproject/web@5.7.1", "@ethersproject/web@^5.7.0": version "5.7.1" - resolved "https://registry.npmjs.org/@ethersproject/web/-/web-5.7.1.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.7.1.tgz#de1f285b373149bee5928f4eb7bcb87ee5fbb4ae" integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w== dependencies: "@ethersproject/base64" "^5.7.0" @@ -372,7 +372,7 @@ "@ethersproject/wordlists@5.7.0", "@ethersproject/wordlists@^5.7.0": version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.7.0.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/wordlists/-/wordlists-5.7.0.tgz#8fb2c07185d68c3e09eb3bfd6e779ba2774627f5" integrity sha512-S2TFNJNfHWVHNE6cNDjbVlZ6MgE17MIxMbMg2zv3wn+3XSJGosL1m9ZVv3GXCf/2ymSsQ+hRI5IzoMJTG6aoVA== dependencies: "@ethersproject/bytes" "^5.7.0" @@ -382,510 +382,496 @@ "@ethersproject/strings" "^5.7.0" "@jridgewell/resolve-uri@^3.0.3": - version "3.1.1" - resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz" - integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== + version "3.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== "@jridgewell/sourcemap-codec@^1.4.10": - version "1.4.15" - resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz" - integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== + version "1.5.0" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" + integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== "@jridgewell/trace-mapping@0.3.9": version "0.3.9" - resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== dependencies: "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" -"@noble/curves@1.0.0", "@noble/curves@~1.0.0": - version "1.0.0" - resolved "https://registry.npmjs.org/@noble/curves/-/curves-1.0.0.tgz" - integrity sha512-2upgEu0iLiDVDZkNLeFV2+ht0BAVgQnEmCk6JsOch9Rp8xfkMCbvbAZlA2pBHQc73dbl+vFOXfqkf4uemdn0bw== +"@noble/curves@1.4.2", "@noble/curves@~1.4.0": + version "1.4.2" + resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.4.2.tgz#40309198c76ed71bc6dbf7ba24e81ceb4d0d1fe9" + integrity sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw== dependencies: - "@noble/hashes" "1.3.0" + "@noble/hashes" "1.4.0" -"@noble/curves@1.1.0": - version "1.1.0" - resolved "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz" - integrity sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA== +"@noble/curves@^1.3.0": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.5.0.tgz#7a9b9b507065d516e6dce275a1e31db8d2a100dd" + integrity sha512-J5EKamIHnKPyClwVrzmaf5wSdQXgdHcPZIZLu3bwnbeCx8/7NPK5q2ZBWF+5FvYGByjiQQsJYX6jfgB2wDPn3A== dependencies: - "@noble/hashes" "1.3.1" + "@noble/hashes" "1.4.0" -"@noble/curves@1.3.0", "@noble/curves@~1.3.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.3.0.tgz#01be46da4fd195822dab821e72f71bf4aeec635e" - integrity sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA== +"@noble/hashes@1.4.0", "@noble/hashes@^1.3.1", "@noble/hashes@^1.3.3", "@noble/hashes@^1.4.0", "@noble/hashes@~1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" + integrity sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg== + +"@polkadot-api/json-rpc-provider-proxy@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@polkadot-api/json-rpc-provider-proxy/-/json-rpc-provider-proxy-0.1.0.tgz#6e191f28e7d0fbbe8b540fc51d12a0adaeba297e" + integrity sha512-8GSFE5+EF73MCuLQm8tjrbCqlgclcHBSRaswvXziJ0ZW7iw3UEMsKkkKvELayWyBuOPa2T5i1nj6gFOeIsqvrg== + +"@polkadot-api/json-rpc-provider@0.0.1", "@polkadot-api/json-rpc-provider@^0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@polkadot-api/json-rpc-provider/-/json-rpc-provider-0.0.1.tgz#333645d40ccd9bccfd1f32503f17e4e63e76e297" + integrity sha512-/SMC/l7foRjpykLTUTacIH05H3mr9ip8b5xxfwXlVezXrNVLp3Cv0GX6uItkKd+ZjzVPf3PFrDF2B2/HLSNESA== + +"@polkadot-api/metadata-builders@0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@polkadot-api/metadata-builders/-/metadata-builders-0.3.2.tgz#007f158c9e0546cf79ba440befc0c753ab1a6629" + integrity sha512-TKpfoT6vTb+513KDzMBTfCb/ORdgRnsS3TDFpOhAhZ08ikvK+hjHMt5plPiAX/OWkm1Wc9I3+K6W0hX5Ab7MVg== dependencies: - "@noble/hashes" "1.3.3" + "@polkadot-api/substrate-bindings" "0.6.0" + "@polkadot-api/utils" "0.1.0" -"@noble/hashes@1.3.0", "@noble/hashes@~1.3.0": - version "1.3.0" - resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz" - integrity sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg== +"@polkadot-api/observable-client@^0.3.0": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@polkadot-api/observable-client/-/observable-client-0.3.2.tgz#fd91efee350595a6e0ecfd3f294cc80de86c0cf7" + integrity sha512-HGgqWgEutVyOBXoGOPp4+IAq6CNdK/3MfQJmhCJb8YaJiaK4W6aRGrdQuQSTPHfERHCARt9BrOmEvTXAT257Ug== + dependencies: + "@polkadot-api/metadata-builders" "0.3.2" + "@polkadot-api/substrate-bindings" "0.6.0" + "@polkadot-api/utils" "0.1.0" -"@noble/hashes@1.3.1": - version "1.3.1" - resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz" - integrity sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA== +"@polkadot-api/substrate-bindings@0.6.0": + version "0.6.0" + resolved "https://registry.yarnpkg.com/@polkadot-api/substrate-bindings/-/substrate-bindings-0.6.0.tgz#889b0c3ba19dc95282286506bf6e370a43ce119a" + integrity sha512-lGuhE74NA1/PqdN7fKFdE5C1gNYX357j1tWzdlPXI0kQ7h3kN0zfxNOpPUN7dIrPcOFZ6C0tRRVrBylXkI6xPw== + dependencies: + "@noble/hashes" "^1.3.1" + "@polkadot-api/utils" "0.1.0" + "@scure/base" "^1.1.1" + scale-ts "^1.6.0" -"@noble/hashes@1.3.3", "@noble/hashes@~1.3.2": - version "1.3.3" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.3.tgz#39908da56a4adc270147bb07968bf3b16cfe1699" - integrity sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA== - -"@polkadot/api-augment@10.9.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-10.9.1.tgz" - integrity sha512-kRZZvCFVcN4hAH4dJ+Qzfdy27/4EEq3oLDf3ihj0LTVrAezSWcKPGE3EVFy+Mn6Lo4SUc7RVyoKvIUhSk2l4Dg== - dependencies: - "@polkadot/api-base" "10.9.1" - "@polkadot/rpc-augment" "10.9.1" - "@polkadot/types" "10.9.1" - "@polkadot/types-augment" "10.9.1" - "@polkadot/types-codec" "10.9.1" - "@polkadot/util" "^12.3.1" - tslib "^2.5.3" - -"@polkadot/api-base@10.9.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/api-base/-/api-base-10.9.1.tgz" - integrity sha512-Q3m2KzlceMK2kX8bhnUZWk3RT6emmijeeFZZQgCePpEcrSeNjnqG4qjuTPgkveaOkUT8MAoDc5Avuzcc2jlW9g== - dependencies: - "@polkadot/rpc-core" "10.9.1" - "@polkadot/types" "10.9.1" - "@polkadot/util" "^12.3.1" +"@polkadot-api/substrate-client@^0.1.2": + version "0.1.4" + resolved "https://registry.yarnpkg.com/@polkadot-api/substrate-client/-/substrate-client-0.1.4.tgz#7a808e5cb85ecb9fa2b3a43945090a6c807430ce" + integrity sha512-MljrPobN0ZWTpn++da9vOvt+Ex+NlqTlr/XT7zi9sqPtDJiQcYl+d29hFAgpaeTqbeQKZwz3WDE9xcEfLE8c5A== + dependencies: + "@polkadot-api/json-rpc-provider" "0.0.1" + "@polkadot-api/utils" "0.1.0" + +"@polkadot-api/utils@0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@polkadot-api/utils/-/utils-0.1.0.tgz#d36937cdc465c2ea302f3278cf53157340ab33a0" + integrity sha512-MXzWZeuGxKizPx2Xf/47wx9sr/uxKw39bVJUptTJdsaQn/TGq+z310mHzf1RCGvC1diHM8f593KrnDgc9oNbJA== + +"@polkadot/api-augment@12.4.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-12.4.1.tgz#ab516c214f1c2324d7b5a226107e631f0bcca6cf" + integrity sha512-VK1v+v+jSN2Uj2+0ZvF3S2keOzOxI/f3vpfx9UBo65/jAvLEnCGrKpml4nT8RwYJx2QBW8yfF9nRKnl9hd8fYQ== + dependencies: + "@polkadot/api-base" "12.4.1" + "@polkadot/rpc-augment" "12.4.1" + "@polkadot/types" "12.4.1" + "@polkadot/types-augment" "12.4.1" + "@polkadot/types-codec" "12.4.1" + "@polkadot/util" "^13.0.2" + tslib "^2.6.3" + +"@polkadot/api-base@12.4.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-12.4.1.tgz#4b1c94124c46829f8ade66ccf8a8591579fc7c93" + integrity sha512-FE0GA9NGaAfBB6V8Mf5E6ZyHbccuEyIDQv+qP64hzOhn01nYheTkjzDSXpjk7SyQXAvBJ8/ADefCXGunnAZUsg== + dependencies: + "@polkadot/rpc-core" "12.4.1" + "@polkadot/types" "12.4.1" + "@polkadot/util" "^13.0.2" rxjs "^7.8.1" - tslib "^2.5.3" - -"@polkadot/api-contract@^10.4.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/api-contract/-/api-contract-10.9.1.tgz" - integrity sha512-BJjFYSFtsUlClC3mgvPNQ5h/7LZd5gVfexwl+mDgLd/6SN4dUBQjIXhlIL5a1cGYjq3EROuu7t0agG2DIaiZMQ== - dependencies: - "@polkadot/api" "10.9.1" - "@polkadot/api-augment" "10.9.1" - "@polkadot/types" "10.9.1" - "@polkadot/types-codec" "10.9.1" - "@polkadot/types-create" "10.9.1" - "@polkadot/util" "^12.3.1" - "@polkadot/util-crypto" "^12.3.1" + tslib "^2.6.3" + +"@polkadot/api-contract@^12.3.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-12.4.1.tgz#6b88752cf1097ac8720cc7c4fd23424ae971aa8d" + integrity sha512-7BGKhbz7T47050yRp/Wqh3DkXe1340HyQZ0U+eeZqaYAlw+aGL3yhVTi2ym5YW/3l1M6RBbD/UGq653/zET5kg== + dependencies: + "@polkadot/api" "12.4.1" + "@polkadot/api-augment" "12.4.1" + "@polkadot/types" "12.4.1" + "@polkadot/types-codec" "12.4.1" + "@polkadot/types-create" "12.4.1" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" rxjs "^7.8.1" - tslib "^2.5.3" - -"@polkadot/api-derive@10.9.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-10.9.1.tgz" - integrity sha512-mRud1UZCFIc4Z63qAoGSIHh/foyUYADfy1RQYCmPpeFKfIdCIrHpd7xFdJXTOMYOS0BwlM6u4qli/ZT4XigezQ== - dependencies: - "@polkadot/api" "10.9.1" - "@polkadot/api-augment" "10.9.1" - "@polkadot/api-base" "10.9.1" - "@polkadot/rpc-core" "10.9.1" - "@polkadot/types" "10.9.1" - "@polkadot/types-codec" "10.9.1" - "@polkadot/util" "^12.3.1" - "@polkadot/util-crypto" "^12.3.1" + tslib "^2.6.3" + +"@polkadot/api-derive@12.4.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-12.4.1.tgz#e3ccb527f8dece13a3e3f4cdbe8b5de4493df17a" + integrity sha512-D0PpfjXTeK3w60FKdD0iELiu93nEuCQfUNOEH+FZEJX9ek72TOOFKpl2X+A5SJktOk1Ia3jHFvt6zrdxnL5lcA== + dependencies: + "@polkadot/api" "12.4.1" + "@polkadot/api-augment" "12.4.1" + "@polkadot/api-base" "12.4.1" + "@polkadot/rpc-core" "12.4.1" + "@polkadot/types" "12.4.1" + "@polkadot/types-codec" "12.4.1" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" rxjs "^7.8.1" - tslib "^2.5.3" - -"@polkadot/api@10.9.1", "@polkadot/api@^10.4.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/api/-/api-10.9.1.tgz" - integrity sha512-ND/2UqZBWvtt4PfV03OStTKg0mxmPk4UpMAgJKutdgsz/wP9CYJ1KbjwFgPNekL9JnzbKQsWyQNPVrcw7kQk8A== - dependencies: - "@polkadot/api-augment" "10.9.1" - "@polkadot/api-base" "10.9.1" - "@polkadot/api-derive" "10.9.1" - "@polkadot/keyring" "^12.3.1" - "@polkadot/rpc-augment" "10.9.1" - "@polkadot/rpc-core" "10.9.1" - "@polkadot/rpc-provider" "10.9.1" - "@polkadot/types" "10.9.1" - "@polkadot/types-augment" "10.9.1" - "@polkadot/types-codec" "10.9.1" - "@polkadot/types-create" "10.9.1" - "@polkadot/types-known" "10.9.1" - "@polkadot/util" "^12.3.1" - "@polkadot/util-crypto" "^12.3.1" + tslib "^2.6.3" + +"@polkadot/api@12.4.1", "@polkadot/api@^12.3.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-12.4.1.tgz#282292052284a2e14f2115cd0ea58729218094a0" + integrity sha512-+7CT6svgWG/tEkNc9X7pwL1CMTxfgzskdFl6ufzdeoeJdxtLkRYet3+o1MDnv5isDtgpxNkYTQTZK9j0NymwJg== + dependencies: + "@polkadot/api-augment" "12.4.1" + "@polkadot/api-base" "12.4.1" + "@polkadot/api-derive" "12.4.1" + "@polkadot/keyring" "^13.0.2" + "@polkadot/rpc-augment" "12.4.1" + "@polkadot/rpc-core" "12.4.1" + "@polkadot/rpc-provider" "12.4.1" + "@polkadot/types" "12.4.1" + "@polkadot/types-augment" "12.4.1" + "@polkadot/types-codec" "12.4.1" + "@polkadot/types-create" "12.4.1" + "@polkadot/types-known" "12.4.1" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" eventemitter3 "^5.0.1" rxjs "^7.8.1" - tslib "^2.5.3" - -"@polkadot/keyring@12.3.2", "@polkadot/keyring@^12.3.1": - version "12.3.2" - resolved "https://registry.npmjs.org/@polkadot/keyring/-/keyring-12.3.2.tgz" - integrity sha512-NTdtDeI0DP9l/45hXynNABeP5VB8piw5YR+CbUxK2e36xpJWVXwbcOepzslg5ghE9rs8UKJb30Z/HqTU4sBY0Q== - dependencies: - "@polkadot/util" "12.3.2" - "@polkadot/util-crypto" "12.3.2" - tslib "^2.5.3" - -"@polkadot/networks@12.3.2", "@polkadot/networks@^12.3.1": - version "12.3.2" - resolved "https://registry.npmjs.org/@polkadot/networks/-/networks-12.3.2.tgz" - integrity sha512-uCkyybKoeEm1daKr0uT/9oNDHDDzCy2/ZdVl346hQqfdR1Ct3BaxMjxqvdmb5N8aCw0cBWSfgsxAYtw8ESmllQ== - dependencies: - "@polkadot/util" "12.3.2" - "@substrate/ss58-registry" "^1.40.0" - tslib "^2.5.3" - -"@polkadot/rpc-augment@10.9.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-10.9.1.tgz" - integrity sha512-MaLHkNlyqN20ZRYr6uNd1BZr1OsrnX9qLAmsl0mcrri1vPGRH6VHjfFH1RBLkikpWD82v17g0l2hLwdV1ZHMcw== - dependencies: - "@polkadot/rpc-core" "10.9.1" - "@polkadot/types" "10.9.1" - "@polkadot/types-codec" "10.9.1" - "@polkadot/util" "^12.3.1" - tslib "^2.5.3" - -"@polkadot/rpc-core@10.9.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-10.9.1.tgz" - integrity sha512-ZtA8B8SfXSAwVkBlCcKRHw0eSM7ec/sbiNOM5GasXPeRujUgT7lOwSH2GbUZSqe9RfRDMp6DvO9c2JoGc3LLWw== - dependencies: - "@polkadot/rpc-augment" "10.9.1" - "@polkadot/rpc-provider" "10.9.1" - "@polkadot/types" "10.9.1" - "@polkadot/util" "^12.3.1" + tslib "^2.6.3" + +"@polkadot/keyring@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-13.0.2.tgz#05a655eb06c965ae5ee5f181d25916797ea50849" + integrity sha512-NeLbhyKDT5W8LI9seWTZGePxNTOVpDhv2018HSrEDwJq9Ie0C4TZhUf3KNERCkSveuThXjfQJMs+1CF33ZXPWw== + dependencies: + "@polkadot/util" "13.0.2" + "@polkadot/util-crypto" "13.0.2" + tslib "^2.6.2" + +"@polkadot/networks@13.0.2", "@polkadot/networks@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-13.0.2.tgz#0f8fc896b8fb2141212b6448739f4a00bc72b29c" + integrity sha512-ABAL+vug/gIwkdFEzeh87JoJd0YKrxSYg/HjUrZ+Zis2ucxQEKpvtCpJ34ku+YrjacBfVqIAkkwd3ZdIPGq9aQ== + dependencies: + "@polkadot/util" "13.0.2" + "@substrate/ss58-registry" "^1.46.0" + tslib "^2.6.2" + +"@polkadot/rpc-augment@12.4.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-12.4.1.tgz#a602cb91c96b742399945c71613cfa4655e71b2e" + integrity sha512-iwk8lqXZ566BtiviIipwx/wPU05GT/bN/AN1pE4bZsrvnAWswCQXViNmC6178ZBT0dGMM67VgRFqeO/WLYRWxw== + dependencies: + "@polkadot/rpc-core" "12.4.1" + "@polkadot/types" "12.4.1" + "@polkadot/types-codec" "12.4.1" + "@polkadot/util" "^13.0.2" + tslib "^2.6.3" + +"@polkadot/rpc-core@12.4.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-12.4.1.tgz#b1bec47f9d7404389b074c5658de5dce3173adbe" + integrity sha512-RJWzp6HSNjKjmpSm7qiLKgeRypuYpJ27QWhcX7ujc8yLXwwf69TlwuqlJjkedE0DASY41VWA6JDuilKqwBMMGw== + dependencies: + "@polkadot/rpc-augment" "12.4.1" + "@polkadot/rpc-provider" "12.4.1" + "@polkadot/types" "12.4.1" + "@polkadot/util" "^13.0.2" rxjs "^7.8.1" - tslib "^2.5.3" - -"@polkadot/rpc-provider@10.9.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-10.9.1.tgz" - integrity sha512-4QzT2QzD+320+eT6b79sGAA85Tt3Bb8fQvse4r5Mom2iiBd2SO81vOhxSAOaIe4GUsw25VzFJmsbe7+OObItdg== - dependencies: - "@polkadot/keyring" "^12.3.1" - "@polkadot/types" "10.9.1" - "@polkadot/types-support" "10.9.1" - "@polkadot/util" "^12.3.1" - "@polkadot/util-crypto" "^12.3.1" - "@polkadot/x-fetch" "^12.3.1" - "@polkadot/x-global" "^12.3.1" - "@polkadot/x-ws" "^12.3.1" + tslib "^2.6.3" + +"@polkadot/rpc-provider@12.4.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-12.4.1.tgz#1b2556df619dc211ed9b251035db02f61e0b5da8" + integrity sha512-10sGlSHGSy4ip7FRu8bnnAkQeqPh3b2azVUqrL0RN9yAr7b5iFfQ5GGbcz9EJasGoEid4Erc0knZ9iFraFapiw== + dependencies: + "@polkadot/keyring" "^13.0.2" + "@polkadot/types" "12.4.1" + "@polkadot/types-support" "12.4.1" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" + "@polkadot/x-fetch" "^13.0.2" + "@polkadot/x-global" "^13.0.2" + "@polkadot/x-ws" "^13.0.2" eventemitter3 "^5.0.1" - mock-socket "^9.2.1" - nock "^13.3.1" - tslib "^2.5.3" + mock-socket "^9.3.1" + nock "^13.5.4" + tslib "^2.6.3" optionalDependencies: - "@substrate/connect" "0.7.26" - -"@polkadot/types-augment@10.9.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-10.9.1.tgz" - integrity sha512-OY9/jTMFRFqYdkUnfcGwqMLC64A0Q25bjvCuVQCVjsPFKE3wl0Kt5rNT01eV2UmLXrR6fY0xWbR2w80bLA7CIQ== - dependencies: - "@polkadot/types" "10.9.1" - "@polkadot/types-codec" "10.9.1" - "@polkadot/util" "^12.3.1" - tslib "^2.5.3" - -"@polkadot/types-codec@10.9.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-10.9.1.tgz" - integrity sha512-mJ5OegKGraY1FLvEa8FopRCr3pQrhDkcn5RNOjmgJQozENVeRaxhk0NwxYz7IojFvSDnKnc6lNQfKaaSe5pLHg== - dependencies: - "@polkadot/util" "^12.3.1" - "@polkadot/x-bigint" "^12.3.1" - tslib "^2.5.3" - -"@polkadot/types-create@10.9.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/types-create/-/types-create-10.9.1.tgz" - integrity sha512-OVz50MGTTuiuVnRP/zAx4CTuLioc0hsiwNwqN2lNhmIJGtnQ4Vy/7mQRsIWehiYz6g0Vzzm5B3qWkTXO1NSN5w== - dependencies: - "@polkadot/types-codec" "10.9.1" - "@polkadot/util" "^12.3.1" - tslib "^2.5.3" - -"@polkadot/types-known@10.9.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/types-known/-/types-known-10.9.1.tgz" - integrity sha512-zCMVWc4pJtkbMFPu72bD4IhvV/gkHXPX3C5uu92WdmCfnn0vEIEsMKWlVXVVvQQZKAqvs/awpqIfrUtEViOGEA== - dependencies: - "@polkadot/networks" "^12.3.1" - "@polkadot/types" "10.9.1" - "@polkadot/types-codec" "10.9.1" - "@polkadot/types-create" "10.9.1" - "@polkadot/util" "^12.3.1" - tslib "^2.5.3" - -"@polkadot/types-support@10.9.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/types-support/-/types-support-10.9.1.tgz" - integrity sha512-XsieuLDsszvMZQlleacQBfx07i/JkwQV/UxH9q8Hz7Okmaz9pEVEW1h3ka2/cPuC7a4l32JhaORBUYshBZNdJg== - dependencies: - "@polkadot/util" "^12.3.1" - tslib "^2.5.3" - -"@polkadot/types@10.9.1": - version "10.9.1" - resolved "https://registry.npmjs.org/@polkadot/types/-/types-10.9.1.tgz" - integrity sha512-AG33i2ZGGfq7u+5rkAdGrXAQHHl844/Yv+junH5ZzX69xiCoWO1bH/yzDUNBdpki2GlACWvF9nLYh3F2tVF93w== - dependencies: - "@polkadot/keyring" "^12.3.1" - "@polkadot/types-augment" "10.9.1" - "@polkadot/types-codec" "10.9.1" - "@polkadot/types-create" "10.9.1" - "@polkadot/util" "^12.3.1" - "@polkadot/util-crypto" "^12.3.1" + "@substrate/connect" "0.8.11" + +"@polkadot/types-augment@12.4.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-12.4.1.tgz#704fda1bedaee3379448e6676179adfa470d8a07" + integrity sha512-+IPFIIm43uznsjaWI9uThYotEpGek02p2iZ4whwpQCKuWZrsLhkzNW5gepK6/KSWK5HBWTDOzmmfVLctd7zhvg== + dependencies: + "@polkadot/types" "12.4.1" + "@polkadot/types-codec" "12.4.1" + "@polkadot/util" "^13.0.2" + tslib "^2.6.3" + +"@polkadot/types-codec@12.4.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-12.4.1.tgz#82c5c4516d7e680627c668ba71b76c37cfed1443" + integrity sha512-bk2hYUA/I/T7oUq2US6ZonSDxhqKgvjyUJgM596AnRM+zn4hh/IFJcZZ5zUzS5uKB/qaGi4zPI9Le5LwOAwJAQ== + dependencies: + "@polkadot/util" "^13.0.2" + "@polkadot/x-bigint" "^13.0.2" + tslib "^2.6.3" + +"@polkadot/types-create@12.4.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-12.4.1.tgz#0937301b39dba4bb0202c1d6e546cb17444d61b6" + integrity sha512-Ki9pn5Bp+Tuv+wwhi2lg/0WuBR7kRndjveSzfOmKmqqmMQfRjOB7IIoxENzxNMj/4+cc1w0b3q+DfAKZ0gY6Vg== + dependencies: + "@polkadot/types-codec" "12.4.1" + "@polkadot/util" "^13.0.2" + tslib "^2.6.3" + +"@polkadot/types-known@12.4.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-12.4.1.tgz#790deee9d4798bd2e7f0b91d0e502f203b232beb" + integrity sha512-Gc5L+SlFXVqDSDLIewblA+EkRXDDh38ebRiC9YEX6CF7vnq6y4YNnnecxISyDO2r9XHNzX91pc5xDKfynKuB9A== + dependencies: + "@polkadot/networks" "^13.0.2" + "@polkadot/types" "12.4.1" + "@polkadot/types-codec" "12.4.1" + "@polkadot/types-create" "12.4.1" + "@polkadot/util" "^13.0.2" + tslib "^2.6.3" + +"@polkadot/types-support@12.4.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-12.4.1.tgz#d2d712373d49288f4a8b71b3e0cbfcbb800fbe84" + integrity sha512-D3lazXG44ThYwbL0mlu3acFQVDv4cUUI/ZhhzyB94v1pX1dwUI8zsxIQ+TwVeG0e+J8L89pNQUmAd5eyBgV16g== + dependencies: + "@polkadot/util" "^13.0.2" + tslib "^2.6.3" + +"@polkadot/types@12.4.1": + version "12.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-12.4.1.tgz#202d0efca208f12f1ceb547ee0a0dbc14351b05c" + integrity sha512-TD2jI2APiVSNdGx+K5uyYH4nChACY8sDuXS4VgXlLgnXt/TJSnbMEMT+0O+VAXjF+6IKWQX3zATxuyzNMW90Hw== + dependencies: + "@polkadot/keyring" "^13.0.2" + "@polkadot/types-augment" "12.4.1" + "@polkadot/types-codec" "12.4.1" + "@polkadot/types-create" "12.4.1" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" rxjs "^7.8.1" - tslib "^2.5.3" - -"@polkadot/util-crypto@12.3.2", "@polkadot/util-crypto@^12.2.1", "@polkadot/util-crypto@^12.3.1": - version "12.3.2" - resolved "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-12.3.2.tgz" - integrity sha512-pTpx+YxolY0BDT4RcGmgeKbHHD/dI6Ll9xRsqmVdIjpcVVY20uDNTyXs81ZNtfKgyod1y9JQkfNv2Dz9iEpTkQ== - dependencies: - "@noble/curves" "1.1.0" - "@noble/hashes" "1.3.1" - "@polkadot/networks" "12.3.2" - "@polkadot/util" "12.3.2" - "@polkadot/wasm-crypto" "^7.2.1" - "@polkadot/wasm-util" "^7.2.1" - "@polkadot/x-bigint" "12.3.2" - "@polkadot/x-randomvalues" "12.3.2" - "@scure/base" "1.1.1" - tslib "^2.5.3" - -"@polkadot/util@12.3.2", "@polkadot/util@^12.3.1": - version "12.3.2" - resolved "https://registry.npmjs.org/@polkadot/util/-/util-12.3.2.tgz" - integrity sha512-y/JShcGyOamCUiSIg++XZuLHt1ktSKBaSH2K5Nw5NXlgP0+7am+GZzqPB8fQ4qhYLruEOv+YRiz0GC1Zr9S+wg== - dependencies: - "@polkadot/x-bigint" "12.3.2" - "@polkadot/x-global" "12.3.2" - "@polkadot/x-textdecoder" "12.3.2" - "@polkadot/x-textencoder" "12.3.2" - "@types/bn.js" "^5.1.1" - bn.js "^5.2.1" - tslib "^2.5.3" - -"@polkadot/util@^12.2.1": - version "12.2.1" - resolved "https://registry.npmjs.org/@polkadot/util/-/util-12.2.1.tgz" - integrity sha512-MQmPx9aCX4GTpDY/USUQywXRyaDbaibg4V1+c/CoRTsoDu+XHNM8G3lpabdNAYKZrtxg+3/1bTS0ojm6ANSQRw== - dependencies: - "@polkadot/x-bigint" "12.2.1" - "@polkadot/x-global" "12.2.1" - "@polkadot/x-textdecoder" "12.2.1" - "@polkadot/x-textencoder" "12.2.1" - "@types/bn.js" "^5.1.1" + tslib "^2.6.3" + +"@polkadot/util-crypto@13.0.2", "@polkadot/util-crypto@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-13.0.2.tgz#fee602bcb39e9424300410f4144f170ee2a29292" + integrity sha512-woUsJJ6zd/caL7U+D30a5oM/+WK9iNI00Y8aNUHSj6Zq/KPzK9uqDBaLGWwlgrejoMQkxxiU2X0f2LzP15AtQg== + dependencies: + "@noble/curves" "^1.3.0" + "@noble/hashes" "^1.3.3" + "@polkadot/networks" "13.0.2" + "@polkadot/util" "13.0.2" + "@polkadot/wasm-crypto" "^7.3.2" + "@polkadot/wasm-util" "^7.3.2" + "@polkadot/x-bigint" "13.0.2" + "@polkadot/x-randomvalues" "13.0.2" + "@scure/base" "^1.1.5" + tslib "^2.6.2" + +"@polkadot/util@13.0.2", "@polkadot/util@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-13.0.2.tgz#f0a2572d74730fda8dfd690b60d53c131a688f3b" + integrity sha512-/6bS9sfhJLhs8QuqWaR1eRapzfDdGC5XAQZEPL9NN5sTTA7HxWos8rVleai0UERm8QUMabjZ9rK9KpzbXl7ojg== + dependencies: + "@polkadot/x-bigint" "13.0.2" + "@polkadot/x-global" "13.0.2" + "@polkadot/x-textdecoder" "13.0.2" + "@polkadot/x-textencoder" "13.0.2" + "@types/bn.js" "^5.1.5" bn.js "^5.2.1" - tslib "^2.5.0" - -"@polkadot/wasm-bridge@7.2.1": - version "7.2.1" - resolved "https://registry.npmjs.org/@polkadot/wasm-bridge/-/wasm-bridge-7.2.1.tgz" - integrity sha512-uV/LHREDBGBbHrrv7HTki+Klw0PYZzFomagFWII4lp6Toj/VCvRh5WMzooVC+g/XsBGosAwrvBhoModabyHx+A== - dependencies: - "@polkadot/wasm-util" "7.2.1" - tslib "^2.5.0" - -"@polkadot/wasm-crypto-asmjs@7.2.1": - version "7.2.1" - resolved "https://registry.npmjs.org/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-7.2.1.tgz" - integrity sha512-z/d21bmxyVfkzGsKef/FWswKX02x5lK97f4NPBZ9XBeiFkmzlXhdSnu58/+b1sKsRAGdW/Rn/rTNRDhW0GqCAg== - dependencies: - tslib "^2.5.0" - -"@polkadot/wasm-crypto-init@7.2.1": - version "7.2.1" - resolved "https://registry.npmjs.org/@polkadot/wasm-crypto-init/-/wasm-crypto-init-7.2.1.tgz" - integrity sha512-GcEXtwN9LcSf32V9zSaYjHImFw16hCyo2Xzg4GLLDPPeaAAfbFr2oQMgwyDbvBrBjLKHVHjsPZyGhXae831amw== - dependencies: - "@polkadot/wasm-bridge" "7.2.1" - "@polkadot/wasm-crypto-asmjs" "7.2.1" - "@polkadot/wasm-crypto-wasm" "7.2.1" - "@polkadot/wasm-util" "7.2.1" - tslib "^2.5.0" - -"@polkadot/wasm-crypto-wasm@7.2.1": - version "7.2.1" - resolved "https://registry.npmjs.org/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-7.2.1.tgz" - integrity sha512-DqyXE4rSD0CVlLIw88B58+HHNyrvm+JAnYyuEDYZwCvzUWOCNos/DDg9wi/K39VAIsCCKDmwKqkkfIofuOj/lA== - dependencies: - "@polkadot/wasm-util" "7.2.1" - tslib "^2.5.0" - -"@polkadot/wasm-crypto@^7.2.1": - version "7.2.1" - resolved "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-7.2.1.tgz" - integrity sha512-SA2+33S9TAwGhniKgztVN6pxUKpGfN4Tre/eUZGUfpgRkT92wIUT2GpGWQE+fCCqGQgADrNiBcwt6XwdPqMQ4Q== - dependencies: - "@polkadot/wasm-bridge" "7.2.1" - "@polkadot/wasm-crypto-asmjs" "7.2.1" - "@polkadot/wasm-crypto-init" "7.2.1" - "@polkadot/wasm-crypto-wasm" "7.2.1" - "@polkadot/wasm-util" "7.2.1" - tslib "^2.5.0" - -"@polkadot/wasm-util@7.2.1", "@polkadot/wasm-util@^7.2.1": - version "7.2.1" - resolved "https://registry.npmjs.org/@polkadot/wasm-util/-/wasm-util-7.2.1.tgz" - integrity sha512-FBSn/3aYJzhN0sYAYhHB8y9JL8mVgxLy4M1kUXYbyo+8GLRQEN5rns8Vcb8TAlIzBWgVTOOptYBvxo0oj0h7Og== - dependencies: - tslib "^2.5.0" - -"@polkadot/x-bigint@12.2.1": - version "12.2.1" - resolved "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-12.2.1.tgz" - integrity sha512-3cZLsV8kU1MFOTcyloeg61CF+qdBkbZxWZJkSjh4AGlPXy+2tKwwoBPExxfCWXK61+Lo/q3/U1+lln8DSBCI2A== - dependencies: - "@polkadot/x-global" "12.2.1" - tslib "^2.5.0" - -"@polkadot/x-bigint@12.3.2", "@polkadot/x-bigint@^12.3.1": - version "12.3.2" - resolved "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-12.3.2.tgz" - integrity sha512-JLqLgfGXe/x+hZJETd5ZqfpVsbwyMsH5Nn1Q20ineMMjXN/ig+kVR8Mc15LXBMuw4g7LldFW6UUrotWnuMI8Yw== - dependencies: - "@polkadot/x-global" "12.3.2" - tslib "^2.5.3" - -"@polkadot/x-fetch@^12.3.1": - version "12.3.2" - resolved "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-12.3.2.tgz" - integrity sha512-3IEuZ5S+RI/t33NsdPLIIa5COfDCfpUW2sbaByEczn75aD1jLqJZSEDwiBniJ2osyNd4uUxBf6e5jw7LAZeZJg== - dependencies: - "@polkadot/x-global" "12.3.2" - node-fetch "^3.3.1" - tslib "^2.5.3" - -"@polkadot/x-global@12.2.1": - version "12.2.1" - resolved "https://registry.npmjs.org/@polkadot/x-global/-/x-global-12.2.1.tgz" - integrity sha512-JNMziAZjvfzMrXASuBPCvSzEqlhsgw0x95SOBtqJWsxmbCMAiZbYAC51vI1B9Z9wiKuzPtSh9Sk7YHsUOGCrIQ== - dependencies: - tslib "^2.5.0" - -"@polkadot/x-global@12.3.2", "@polkadot/x-global@^12.3.1": - version "12.3.2" - resolved "https://registry.npmjs.org/@polkadot/x-global/-/x-global-12.3.2.tgz" - integrity sha512-yVZq6oIegjlyh5rUZiTklgu+fL+W/DG1ypEa02683tUCB3avV5cA3PAHKptMSlb6FpweHu37lKKrqfAWrraDxg== - dependencies: - tslib "^2.5.3" - -"@polkadot/x-randomvalues@12.3.2": - version "12.3.2" - resolved "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-12.3.2.tgz" - integrity sha512-ywjIs8CWpvOGmq+3cGCNPOHxAjPHdBUiXyDccftx5BRVdmtbt36gK/V84bKr6Xs73FGu0jprUAOSRRsLZX/3dg== - dependencies: - "@polkadot/x-global" "12.3.2" - tslib "^2.5.3" - -"@polkadot/x-textdecoder@12.2.1": - version "12.2.1" - resolved "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-12.2.1.tgz" - integrity sha512-5nQCIwyaGS0fXU2cbtMOSjFo0yTw1Z94m/UC+Gu5lm3ZU+kK4DpKFxhfLQORWAbvQkn12chRj3LI5Gm944hcrQ== - dependencies: - "@polkadot/x-global" "12.2.1" - tslib "^2.5.0" - -"@polkadot/x-textdecoder@12.3.2": - version "12.3.2" - resolved "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-12.3.2.tgz" - integrity sha512-lY5bfA5xArJRWEJlYOlQQMJeTjWD8s0yMhchirVgf5xj8Id9vPGeUoneH+VFDEwgXxrqBvDFJ4smN4T/r6a/fg== - dependencies: - "@polkadot/x-global" "12.3.2" - tslib "^2.5.3" - -"@polkadot/x-textencoder@12.2.1": - version "12.2.1" - resolved "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-12.2.1.tgz" - integrity sha512-Ou6OXypRsJloK5a7Kn7re3ImqcL26h22fVw1cNv4fsTgkRFUdJDgPux2TpCZ3N+cyrfGVv42xKYFbdKMQCczjg== - dependencies: - "@polkadot/x-global" "12.2.1" - tslib "^2.5.0" - -"@polkadot/x-textencoder@12.3.2": - version "12.3.2" - resolved "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-12.3.2.tgz" - integrity sha512-iP3qEBiHzBckQ9zeY7ZHRWuu7mCEg5SMpOugs6UODRk8sx6KHzGQYlghBbWLit0uppPDVE0ifEwZ2n73djJHWQ== - dependencies: - "@polkadot/x-global" "12.3.2" - tslib "^2.5.3" + tslib "^2.6.2" + +"@polkadot/wasm-bridge@7.3.2": + version "7.3.2" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-bridge/-/wasm-bridge-7.3.2.tgz#e1b01906b19e06cbca3d94f10f5666f2ae0baadc" + integrity sha512-AJEXChcf/nKXd5Q/YLEV5dXQMle3UNT7jcXYmIffZAo/KI394a+/24PaISyQjoNC0fkzS1Q8T5pnGGHmXiVz2g== + dependencies: + "@polkadot/wasm-util" "7.3.2" + tslib "^2.6.2" + +"@polkadot/wasm-crypto-asmjs@7.3.2": + version "7.3.2" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-7.3.2.tgz#c6d41bc4b48b5359d57a24ca3066d239f2d70a34" + integrity sha512-QP5eiUqUFur/2UoF2KKKYJcesc71fXhQFLT3D4ZjG28Mfk2ZPI0QNRUfpcxVQmIUpV5USHg4geCBNuCYsMm20Q== + dependencies: + tslib "^2.6.2" + +"@polkadot/wasm-crypto-init@7.3.2": + version "7.3.2" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-init/-/wasm-crypto-init-7.3.2.tgz#7e1fe79ba978fb0a4a0f74a92d976299d38bc4b8" + integrity sha512-FPq73zGmvZtnuJaFV44brze3Lkrki3b4PebxCy9Fplw8nTmisKo9Xxtfew08r0njyYh+uiJRAxPCXadkC9sc8g== + dependencies: + "@polkadot/wasm-bridge" "7.3.2" + "@polkadot/wasm-crypto-asmjs" "7.3.2" + "@polkadot/wasm-crypto-wasm" "7.3.2" + "@polkadot/wasm-util" "7.3.2" + tslib "^2.6.2" + +"@polkadot/wasm-crypto-wasm@7.3.2": + version "7.3.2" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-7.3.2.tgz#44e08ed5cf6499ce4a3aa7247071a5d01f6a74f4" + integrity sha512-15wd0EMv9IXs5Abp1ZKpKKAVyZPhATIAHfKsyoWCEFDLSOA0/K0QGOxzrAlsrdUkiKZOq7uzSIgIDgW8okx2Mw== + dependencies: + "@polkadot/wasm-util" "7.3.2" + tslib "^2.6.2" + +"@polkadot/wasm-crypto@^7.3.2": + version "7.3.2" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-7.3.2.tgz#61bbcd9e591500705c8c591e6aff7654bdc8afc9" + integrity sha512-+neIDLSJ6jjVXsjyZ5oLSv16oIpwp+PxFqTUaZdZDoA2EyFRQB8pP7+qLsMNk+WJuhuJ4qXil/7XiOnZYZ+wxw== + dependencies: + "@polkadot/wasm-bridge" "7.3.2" + "@polkadot/wasm-crypto-asmjs" "7.3.2" + "@polkadot/wasm-crypto-init" "7.3.2" + "@polkadot/wasm-crypto-wasm" "7.3.2" + "@polkadot/wasm-util" "7.3.2" + tslib "^2.6.2" + +"@polkadot/wasm-util@7.3.2", "@polkadot/wasm-util@^7.3.2": + version "7.3.2" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-util/-/wasm-util-7.3.2.tgz#4fe6370d2b029679b41a5c02cd7ebf42f9b28de1" + integrity sha512-bmD+Dxo1lTZyZNxbyPE380wd82QsX+43mgCm40boyKrRppXEyQmWT98v/Poc7chLuskYb6X8IQ6lvvK2bGR4Tg== + dependencies: + tslib "^2.6.2" + +"@polkadot/x-bigint@13.0.2", "@polkadot/x-bigint@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-bigint/-/x-bigint-13.0.2.tgz#25adca9ce0c5ed691f9bced283f44f7e7d824300" + integrity sha512-h2jKT/UaxiEal8LhQeH6+GCjO7GwEqVAD2SNYteCOXff6yNttqAZYJuHZsndbVjVNwqRNf8D5q/zZkD0HUd6xQ== + dependencies: + "@polkadot/x-global" "13.0.2" + tslib "^2.6.2" + +"@polkadot/x-fetch@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-13.0.2.tgz#841d901fae36cbc4157297324ca0d73fbe4d200e" + integrity sha512-B/gf9iriUr6za/Ui7zIFBfHz7UBZ68rJEIteWHx1UHRCZPcLqv+hgpev6xIGrkfFljI0/lI7IwtN2qy6HYzFBg== + dependencies: + "@polkadot/x-global" "13.0.2" + node-fetch "^3.3.2" + tslib "^2.6.2" + +"@polkadot/x-global@13.0.2", "@polkadot/x-global@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-13.0.2.tgz#77afc4fbd4cfac8ba78cf120836f30ecc7322a74" + integrity sha512-OoNIXLB5y8vIKpk4R+XmpDPhipNXWSUvEwUnpQT7NAxNLmzgMq1FhbrwBWWPRNHPrQonp7mqxV/X+v5lv1HW/g== + dependencies: + tslib "^2.6.2" + +"@polkadot/x-randomvalues@13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-13.0.2.tgz#78ae28b345895cc816ffcad0b336c31cadfcf928" + integrity sha512-SGj+L0H/7TWZtSmtkWlixO4DFzXDdluI0UscN2h285os2Ns8PnmBbue+iJ8PVSzpY1BOxd66gvkkpboPz+jXFQ== + dependencies: + "@polkadot/x-global" "13.0.2" + tslib "^2.6.2" + +"@polkadot/x-textdecoder@13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-13.0.2.tgz#662a6855af8e7a5af17f86890e59ab44f829243a" + integrity sha512-mauglOkTJxLGmLwLc3J5Jlq/W+SHP53eiy3F8/8JxxfnXrZKgWoQXGpvXYPjFnMZj0MzDSy/6GjyGWnDCgdQFA== + dependencies: + "@polkadot/x-global" "13.0.2" + tslib "^2.6.2" + +"@polkadot/x-textencoder@13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-13.0.2.tgz#5e178e0f759df50592e6870346c8db2a445af957" + integrity sha512-Lq08H2OnVXj97uaOwg7tcmRS7a4VJYkHEeWO4FyEMOk6P6lU6W8OVNjjxG0se9PCEgmyZPUDbJI//1ynzP4cXw== + dependencies: + "@polkadot/x-global" "13.0.2" + tslib "^2.6.2" + +"@polkadot/x-ws@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-13.0.2.tgz#d0392a87adcba851a44fc6f7f56792e529228f3e" + integrity sha512-nC5e2eY5D5ZR5teQOB7ib+dWLbmNws86cTz3BjKCalSMBBIn6i3V9ElgABpierBmnSJe9D94EyrH1BxdVfDxUg== + dependencies: + "@polkadot/x-global" "13.0.2" + tslib "^2.6.2" + ws "^8.16.0" + +"@scure/base@^1.1.1", "@scure/base@^1.1.5", "@scure/base@~1.1.6": + version "1.1.7" + resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.7.tgz#fe973311a5c6267846aa131bc72e96c5d40d2b30" + integrity sha512-PPNYBslrLNNUQ/Yad37MHYsNQtK67EhWb6WtSvNLLPo7SdVZgkUjD6Dg+5On7zNwmskf8OX7I7Nx5oN+MIWE0g== -"@polkadot/x-ws@^12.3.1": - version "12.3.2" - resolved "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-12.3.2.tgz" - integrity sha512-yM9Z64pLNlHpJE43+Xtr+iUXmYpFFY5u5hrke2PJt13O48H8f9Vb9cRaIh94appLyICoS0aekGhDkGH+MCspBA== +"@scure/bip32@1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.4.0.tgz#4e1f1e196abedcef395b33b9674a042524e20d67" + integrity sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg== dependencies: - "@polkadot/x-global" "12.3.2" - tslib "^2.5.3" - ws "^8.13.0" - -"@scure/base@1.1.1", "@scure/base@~1.1.0": - version "1.1.1" - resolved "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz" - integrity sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA== + "@noble/curves" "~1.4.0" + "@noble/hashes" "~1.4.0" + "@scure/base" "~1.1.6" -"@scure/base@~1.1.4": - version "1.1.6" - resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.6.tgz#8ce5d304b436e4c84f896e0550c83e4d88cb917d" - integrity sha512-ok9AWwhcgYuGG3Zfhyqg+zwl+Wn5uE+dwC0NV/2qQkx4dABbb/bx96vWu8NSj+BNjjSjno+JRYRjle1jV08k3g== - -"@scure/bip32@1.3.0": +"@scure/bip39@1.3.0": version "1.3.0" - resolved "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz" - integrity sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q== - dependencies: - "@noble/curves" "~1.0.0" - "@noble/hashes" "~1.3.0" - "@scure/base" "~1.1.0" - -"@scure/bip32@1.3.3": - version "1.3.3" - resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.3.3.tgz#a9624991dc8767087c57999a5d79488f48eae6c8" - integrity sha512-LJaN3HwRbfQK0X1xFSi0Q9amqOgzQnnDngIt+ZlsBC3Bm7/nE7K0kwshZHyaru79yIVRv/e1mQAjZyuZG6jOFQ== + resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.3.0.tgz#0f258c16823ddd00739461ac31398b4e7d6a18c3" + integrity sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ== dependencies: - "@noble/curves" "~1.3.0" - "@noble/hashes" "~1.3.2" - "@scure/base" "~1.1.4" - -"@scure/bip39@1.2.0": - version "1.2.0" - resolved "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz" - integrity sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg== - dependencies: - "@noble/hashes" "~1.3.0" - "@scure/base" "~1.1.0" - -"@scure/bip39@1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.2.2.tgz#f3426813f4ced11a47489cbcf7294aa963966527" - integrity sha512-HYf9TUXG80beW+hGAt3TRM8wU6pQoYur9iNypTROm42dorCGmLnFe3eWjz3gOq6G62H2WRh0FCzAR1PI+29zIA== - dependencies: - "@noble/hashes" "~1.3.2" - "@scure/base" "~1.1.4" + "@noble/hashes" "~1.4.0" + "@scure/base" "~1.1.6" "@sindresorhus/is@^4.0.0", "@sindresorhus/is@^4.6.0": version "4.6.0" resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-4.6.0.tgz#3c7c9c46e678feefe7a2e5bb609d3dbd665ffb3f" integrity sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw== -"@substrate/connect-extension-protocol@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@substrate/connect-extension-protocol/-/connect-extension-protocol-1.0.1.tgz" - integrity sha512-161JhCC1csjH3GE5mPLEd7HbWtwNSPJBg3p1Ksz9SFlTzj/bgEwudiRN2y5i0MoLGCIJRYKyKGMxVnd29PzNjg== +"@substrate/connect-extension-protocol@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@substrate/connect-extension-protocol/-/connect-extension-protocol-2.0.0.tgz#badaa6e6b5f7c7d56987d778f4944ddb83cd9ea7" + integrity sha512-nKu8pDrE3LNCEgJjZe1iGXzaD6OSIDD4Xzz/yo4KO9mQ6LBvf49BVrt4qxBFGL6++NneLiWUZGoh+VSd4PyVIg== -"@substrate/connect@0.7.26": - version "0.7.26" - resolved "https://registry.npmjs.org/@substrate/connect/-/connect-0.7.26.tgz" - integrity sha512-uuGSiroGuKWj1+38n1kY5HReer5iL9bRwPCzuoLtqAOmI1fGI0hsSI2LlNQMAbfRgr7VRHXOk5MTuQf5ulsFRw== +"@substrate/connect-known-chains@^1.1.5": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@substrate/connect-known-chains/-/connect-known-chains-1.3.0.tgz#bc8dc2437e46b3701b64526c90e1de720a1605d8" + integrity sha512-BHcWdhOsnHtoWuS4LpFpH3MbLAhm1amq4hvl5ctI47KNZcZJcEPAF4zmeaTMuvj+UJ7LEFooy46Mn7zok47MwA== + +"@substrate/connect@0.8.11": + version "0.8.11" + resolved "https://registry.yarnpkg.com/@substrate/connect/-/connect-0.8.11.tgz#983ec69a05231636e217b573b8130a6b942af69f" + integrity sha512-ofLs1PAO9AtDdPbdyTYj217Pe+lBfTLltdHDs3ds8no0BseoLeAGxpz1mHfi7zB4IxI3YyAiLjH6U8cw4pj4Nw== dependencies: - "@substrate/connect-extension-protocol" "^1.0.1" - eventemitter3 "^4.0.7" - smoldot "1.0.4" + "@substrate/connect-extension-protocol" "^2.0.0" + "@substrate/connect-known-chains" "^1.1.5" + "@substrate/light-client-extension-helpers" "^1.0.0" + smoldot "2.0.26" + +"@substrate/light-client-extension-helpers@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@substrate/light-client-extension-helpers/-/light-client-extension-helpers-1.0.0.tgz#7b60368c57e06e5cf798c6557422d12e6d81f1ff" + integrity sha512-TdKlni1mBBZptOaeVrKnusMg/UBpWUORNDv5fdCaJklP4RJiFOzBCrzC+CyVI5kQzsXBisZ+2pXm+rIjS38kHg== + dependencies: + "@polkadot-api/json-rpc-provider" "^0.0.1" + "@polkadot-api/json-rpc-provider-proxy" "^0.1.0" + "@polkadot-api/observable-client" "^0.3.0" + "@polkadot-api/substrate-client" "^0.1.2" + "@substrate/connect-extension-protocol" "^2.0.0" + "@substrate/connect-known-chains" "^1.1.5" + rxjs "^7.8.1" -"@substrate/ss58-registry@^1.40.0": - version "1.40.0" - resolved "https://registry.npmjs.org/@substrate/ss58-registry/-/ss58-registry-1.40.0.tgz" - integrity sha512-QuU2nBql3J4KCnOWtWDw4n1K4JU0T79j54ZZvm/9nhsX6AIar13FyhsaBfs6QkJ2ixTQAnd7TocJIoJRWbqMZA== +"@substrate/ss58-registry@^1.46.0": + version "1.49.0" + resolved "https://registry.yarnpkg.com/@substrate/ss58-registry/-/ss58-registry-1.49.0.tgz#ed9507316d13f49b2bccb65f08ec97180f71fc39" + integrity sha512-leW6Ix4LD7XgvxT7+aobPWSw+WvPcN2Rxof1rmd0mNC5t2n99k1N7UNEvz7YEFSOUeHWmKIY7F5q8KeIqYoHfA== "@szmarczak/http-timer@^4.0.5": version "4.0.6" @@ -903,35 +889,35 @@ "@trufflesuite/bigint-buffer@1.1.10": version "1.1.10" - resolved "https://registry.npmjs.org/@trufflesuite/bigint-buffer/-/bigint-buffer-1.1.10.tgz" + resolved "https://registry.yarnpkg.com/@trufflesuite/bigint-buffer/-/bigint-buffer-1.1.10.tgz#a1d9ca22d3cad1a138b78baaf15543637a3e1692" integrity sha512-pYIQC5EcMmID74t26GCC67946mgTJFiLXOT/BYozgrd4UEY2JHEGLhWi9cMiQCt5BSqFEvKkCHNnoj82SRjiEw== dependencies: node-gyp-build "4.4.0" "@tsconfig/node10@^1.0.7": - version "1.0.9" - resolved "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz" - integrity sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA== + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2" + integrity sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw== "@tsconfig/node12@^1.0.7": version "1.0.11" - resolved "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz" + resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.11.tgz#ee3def1f27d9ed66dac6e46a295cffb0152e058d" integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== "@tsconfig/node14@^1.0.0": version "1.0.3" - resolved "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz" + resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.3.tgz#e4386316284f00b98435bf40f72f75a09dabf6c1" integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== "@tsconfig/node16@^1.0.2": version "1.0.4" - resolved "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== -"@types/bn.js@^5.1.0", "@types/bn.js@^5.1.1": - version "5.1.1" - resolved "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz" - integrity sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g== +"@types/bn.js@^5.1.0", "@types/bn.js@^5.1.1", "@types/bn.js@^5.1.5": + version "5.1.5" + resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-5.1.5.tgz#2e0dacdcce2c0f16b905d20ff87aedbc6f7b4bf0" + integrity sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A== dependencies: "@types/node" "*" @@ -946,9 +932,9 @@ "@types/responselike" "^1.0.0" "@types/chai@^4.3.0": - version "4.3.5" - resolved "https://registry.npmjs.org/@types/chai/-/chai-4.3.5.tgz" - integrity sha512-mEo1sAde+UCE6b2hxn332f1g1E8WfYRu6p5SvTKr2ZKC1f7gFJXk4h5PyGP9Dt6gCaG8y8XhwnXWC6Iy2cmBng== + version "4.3.17" + resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.17.tgz#9195f9d242f2ac3b429908864b6b871a8f73f489" + integrity sha512-zmZ21EWzR71B4Sscphjief5djsLre50M6lI622OSySTmn9DB3j+C3kWroHfBQWXbOBwbgg/M8CG/hUxDLIloow== "@types/http-cache-semantics@*": version "4.0.4" @@ -964,18 +950,20 @@ "@types/lru-cache@5.1.1": version "5.1.1" - resolved "https://registry.npmjs.org/@types/lru-cache/-/lru-cache-5.1.1.tgz" + resolved "https://registry.yarnpkg.com/@types/lru-cache/-/lru-cache-5.1.1.tgz#c48c2e27b65d2a153b19bfc1a317e30872e01eef" integrity sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw== "@types/mocha@^9.1.0": version "9.1.1" - resolved "https://registry.npmjs.org/@types/mocha/-/mocha-9.1.1.tgz" + resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-9.1.1.tgz#e7c4f1001eefa4b8afbd1eee27a237fee3bf29c4" integrity sha512-Z61JK7DKDtdKTWwLeElSEBcWGRLY8g95ic5FoQqI9CMx0ns/Ghep3B4DfcEimiKMvtamNVULVNKEsiwV3aQmXw== "@types/node@*": - version "20.2.5" - resolved "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz" - integrity sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ== + version "22.4.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.4.2.tgz#55fefb1c3dba2ecd7eb76738c6b80da75760523f" + integrity sha512-nAvM3Ey230/XzxtyDcJ+VjvlzpzoHwLsF7JaDRfoI0ytO0mVheerNmM45CtA0yOILXwXXxOrcUWH3wltX+7PSw== + dependencies: + undici-types "~6.19.2" "@types/node@^12.12.6": version "12.20.55" @@ -983,9 +971,9 @@ integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ== "@types/pbkdf2@^3.0.0": - version "3.1.0" - resolved "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.0.tgz" - integrity sha512-Cf63Rv7jCQ0LaL8tNXmEyqTHuIJxRdlS5vMh1mj5voN4+QFhVZnlZruezqpWYDiJ8UTzhP0VmeLXCmBk66YrMQ== + version "3.1.2" + resolved "https://registry.yarnpkg.com/@types/pbkdf2/-/pbkdf2-3.1.2.tgz#2dc43808e9985a2c69ff02e2d2027bd4fe33e8dc" + integrity sha512-uRwJqmiXmh9++aSu1VNEn3iIxWOhd8AHXNSdlaLfdAAdSTY9jYVeGWnzejM3dvrkbqE3/hyQkQQ29IFATEGlew== dependencies: "@types/node" "*" @@ -997,15 +985,15 @@ "@types/node" "*" "@types/secp256k1@^4.0.1": - version "4.0.3" - resolved "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.3.tgz" - integrity sha512-Da66lEIFeIz9ltsdMZcpQvmrmmoqrfju8pm1BH8WbYjZSwUgCwXLb9C+9XYogwBITnbsSaMdVPb2ekf7TV+03w== + version "4.0.6" + resolved "https://registry.yarnpkg.com/@types/secp256k1/-/secp256k1-4.0.6.tgz#d60ba2349a51c2cbc5e816dcd831a42029d376bf" + integrity sha512-hHxJU6PAEUn0TP4S/ZOzuTUvJWuZ6eIKeNKb5RBpODvSl6hp1Wrw4s7ATY50rklRCScUDpHzVA/DQdSjJ3UoYQ== dependencies: "@types/node" "*" "@types/seedrandom@3.0.1": version "3.0.1" - resolved "https://registry.npmjs.org/@types/seedrandom/-/seedrandom-3.0.1.tgz" + resolved "https://registry.yarnpkg.com/@types/seedrandom/-/seedrandom-3.0.1.tgz#1254750a4fec4aff2ebec088ccd0bb02e91fedb4" integrity sha512-giB9gzDeiCeloIXDgzFBCgjj1k4WxcDrZtGl6h1IqmUPlxF+Nx8Ve+96QCyDZ/HseB/uvDsKbpib9hU5cU53pw== abortcontroller-polyfill@^1.7.5: @@ -1015,7 +1003,7 @@ abortcontroller-polyfill@^1.7.5: abstract-leveldown@^7.2.0: version "7.2.0" - resolved "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-7.2.0.tgz" + resolved "https://registry.yarnpkg.com/abstract-leveldown/-/abstract-leveldown-7.2.0.tgz#08d19d4e26fb5be426f7a57004851b39e1795a2e" integrity sha512-DnhQwcFEaYsvYDnACLZhMmCWd3rkOeEvglpa4q5i/5Jlm3UIsWaxVzuXvDLFCSCWRO3yy2/+V/G7FusFgejnfQ== dependencies: buffer "^6.0.3" @@ -1034,18 +1022,20 @@ accepts@~1.3.8: negotiator "0.6.3" acorn-walk@^8.1.1: - version "8.2.0" - resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz" - integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== + version "8.3.3" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.3.tgz#9caeac29eefaa0c41e3d4c65137de4d6f34df43e" + integrity sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw== + dependencies: + acorn "^8.11.0" -acorn@^8.4.1: - version "8.8.2" - resolved "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz" - integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== +acorn@^8.11.0, acorn@^8.4.1: + version "8.12.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248" + integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== aes-js@3.0.0: version "3.0.0" - resolved "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz" + resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-3.0.0.tgz#e21df10ad6c2053295bcbb8dab40b09dbea87e4d" integrity sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw== ajv@^6.12.3: @@ -1060,24 +1050,24 @@ ajv@^6.12.3: ansi-colors@4.1.1: version "4.1.1" - resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== ansi-regex@^5.0.1: version "5.0.1" - resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== ansi-styles@^4.0.0, ansi-styles@^4.1.0: version "4.3.0" - resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== dependencies: color-convert "^2.0.1" anymatch@~3.1.2: version "3.1.3" - resolved "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== dependencies: normalize-path "^3.0.0" @@ -1085,12 +1075,12 @@ anymatch@~3.1.2: arg@^4.1.0: version "4.1.3" - resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz" + resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== argparse@^2.0.1: version "2.0.1" - resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== array-flatten@1.1.1: @@ -1112,7 +1102,7 @@ assert-plus@1.0.0, assert-plus@^1.0.0: assertion-error@^1.1.0: version "1.1.0" - resolved "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz" + resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== async-limiter@~1.0.0: @@ -1125,10 +1115,12 @@ asynckit@^0.4.0: resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== -available-typed-arrays@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz" - integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw== +available-typed-arrays@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz#a5cc375d6a03c2efc87a553f3e0b1522def14846" + integrity sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ== + dependencies: + possible-typed-array-names "^1.0.0" aws-sign2@~0.7.0: version "0.7.0" @@ -1136,25 +1128,25 @@ aws-sign2@~0.7.0: integrity sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA== aws4@^1.8.0: - version "1.12.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.12.0.tgz#ce1c9d143389679e253b314241ea9aa5cec980d3" - integrity sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg== + version "1.13.1" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.13.1.tgz#bb5f8b8a20739f6ae1caeaf7eea2c7913df8048e" + integrity sha512-u5w79Rd7SU4JaIlA/zFqG+gOiuq25q5VLyZ8E+ijJeILuTxVzZgp2CaGw/UTw6pXYN9XMO9yiqj/nEHmhTG5CA== balanced-match@^1.0.0: version "1.0.2" - resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== base-x@^3.0.2, base-x@^3.0.8: - version "3.0.9" - resolved "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz" - integrity sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ== + version "3.0.10" + resolved "https://registry.yarnpkg.com/base-x/-/base-x-3.0.10.tgz#62de58653f8762b5d6f8d9fe30fa75f7b2585a75" + integrity sha512-7d0s06rR9rYaIWHkpfLIFICM/tkSVdoPC9qYAQRpxn9DdKNWNsKC0uk++akckyLq16Tx2WIinnZ6WRriAt6njQ== dependencies: safe-buffer "^5.0.1" base64-js@^1.3.1: version "1.5.1" - resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== bcrypt-pbkdf@^1.0.0: @@ -1166,7 +1158,7 @@ bcrypt-pbkdf@^1.0.0: bech32@1.1.4: version "1.1.4" - resolved "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz" + resolved "https://registry.yarnpkg.com/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9" integrity sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ== bignumber.js@^9.0.0: @@ -1175,20 +1167,20 @@ bignumber.js@^9.0.0: integrity sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug== binary-extensions@^2.0.0: - version "2.2.0" - resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz" - integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== + version "2.3.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" + integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== bindings@^1.3.0: version "1.5.0" - resolved "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz" + resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== dependencies: file-uri-to-path "1.0.0" bl@^4.1.0: version "4.1.0" - resolved "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz" + resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== dependencies: buffer "^5.5.0" @@ -1197,7 +1189,7 @@ bl@^4.1.0: blakejs@^1.1.0: version "1.2.1" - resolved "https://registry.npmjs.org/blakejs/-/blakejs-1.2.1.tgz" + resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.2.1.tgz#5057e4206eadb4a97f7c0b6e197a505042fc3814" integrity sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ== bluebird@^3.5.0: @@ -1207,17 +1199,17 @@ bluebird@^3.5.0: bn.js@4.11.6: version "4.11.6" - resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.6.tgz#53344adb14617a13f6e8dd2ce28905d1c0ba3215" integrity sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA== bn.js@^4.11.6, bn.js@^4.11.8, bn.js@^4.11.9: version "4.12.0" - resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== bn.js@^5.1.2, bn.js@^5.2.0, bn.js@^5.2.1: version "5.2.1" - resolved "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70" integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== body-parser@1.20.2, body-parser@^1.16.0: @@ -1240,7 +1232,7 @@ body-parser@1.20.2, body-parser@^1.16.0: brace-expansion@^1.1.7: version "1.1.11" - resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== dependencies: balanced-match "^1.0.0" @@ -1248,31 +1240,31 @@ brace-expansion@^1.1.7: brace-expansion@^2.0.1: version "2.0.1" - resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== dependencies: balanced-match "^1.0.0" braces@~3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + version "3.0.3" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" + integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== dependencies: - fill-range "^7.0.1" + fill-range "^7.1.1" brorand@^1.1.0: version "1.1.0" - resolved "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz" + resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" integrity sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w== browser-stdout@1.3.1: version "1.3.1" - resolved "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz" + resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== browserify-aes@^1.2.0: version "1.2.0" - resolved "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz" + resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" integrity sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA== dependencies: buffer-xor "^1.0.3" @@ -1284,14 +1276,14 @@ browserify-aes@^1.2.0: bs58@^4.0.0: version "4.0.1" - resolved "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz" + resolved "https://registry.yarnpkg.com/bs58/-/bs58-4.0.1.tgz#be161e76c354f6f788ae4071f63f34e8c4f0a42a" integrity sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw== dependencies: base-x "^3.0.2" bs58check@<3.0.0, bs58check@^2.1.2: version "2.1.2" - resolved "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz" + resolved "https://registry.yarnpkg.com/bs58check/-/bs58check-2.1.2.tgz#53b018291228d82a5aa08e7d796fdafda54aebfc" integrity sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA== dependencies: bs58 "^4.0.0" @@ -1305,12 +1297,12 @@ buffer-to-arraybuffer@^0.0.5: buffer-xor@^1.0.3: version "1.0.3" - resolved "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz" + resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" integrity sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ== buffer@^5.0.5, buffer@^5.5.0, buffer@^5.6.0: version "5.7.1" - resolved "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== dependencies: base64-js "^1.3.1" @@ -1318,7 +1310,7 @@ buffer@^5.0.5, buffer@^5.5.0, buffer@^5.6.0: buffer@^6.0.3: version "6.0.3" - resolved "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6" integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== dependencies: base64-js "^1.3.1" @@ -1326,7 +1318,7 @@ buffer@^6.0.3: bufferutil@4.0.5: version "4.0.5" - resolved "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.5.tgz" + resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.5.tgz#da9ea8166911cc276bf677b8aed2d02d31f59028" integrity sha512-HTm14iMQKK2FjFLRTM5lAVcyaUzOnqbPtesFIvREgXpJHdQm8bWS+GkQgIkfaBYRHuCnea7w8UVNfwiAQhlr9A== dependencies: node-gyp-build "^4.3.0" @@ -1366,15 +1358,7 @@ cacheable-request@^7.0.2: normalize-url "^6.0.1" responselike "^2.0.0" -call-bind@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz" - integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== - dependencies: - function-bind "^1.1.1" - get-intrinsic "^1.0.2" - -call-bind@^1.0.7: +call-bind@^1.0.2, call-bind@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== @@ -1387,7 +1371,7 @@ call-bind@^1.0.7: camelcase@^6.0.0: version "6.3.0" - resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caseless@~0.12.0: @@ -1396,16 +1380,14 @@ caseless@~0.12.0: integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== catering@^2.0.0, catering@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/catering/-/catering-2.1.0.tgz" - integrity sha512-M5imwzQn6y+ODBfgi+cfgZv2hIUI6oYU/0f35Mdb1ujGeqeoI5tOnl9Q13DTH7LW+7er+NYq8stNOKZD/Z3U/A== - dependencies: - queue-tick "^1.0.0" + version "2.1.1" + resolved "https://registry.yarnpkg.com/catering/-/catering-2.1.1.tgz#66acba06ed5ee28d5286133982a927de9a04b510" + integrity sha512-K7Qy8O9p76sL3/3m7/zLKbRkyOlSZAgzEaLhyj2mXS8PsCud2Eo4hAb8aLtZqHh0QGqLcb9dlJSu6lHRVENm1w== chai@^4.3.7: - version "4.4.1" - resolved "https://registry.yarnpkg.com/chai/-/chai-4.4.1.tgz#3603fa6eba35425b0f2ac91a009fe924106e50d1" - integrity sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g== + version "4.5.0" + resolved "https://registry.yarnpkg.com/chai/-/chai-4.5.0.tgz#707e49923afdd9b13a8b0b47d33d732d13812fd8" + integrity sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw== dependencies: assertion-error "^1.1.0" check-error "^1.0.3" @@ -1413,11 +1395,11 @@ chai@^4.3.7: get-func-name "^2.0.2" loupe "^2.3.6" pathval "^1.1.1" - type-detect "^4.0.8" + type-detect "^4.1.0" chalk@^4.1.0: version "4.1.2" - resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== dependencies: ansi-styles "^4.1.0" @@ -1432,7 +1414,7 @@ check-error@^1.0.3: chokidar@3.5.3: version "3.5.3" - resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== dependencies: anymatch "~3.1.2" @@ -1463,7 +1445,7 @@ cids@^0.7.1: cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: version "1.0.4" - resolved "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q== dependencies: inherits "^2.0.1" @@ -1476,19 +1458,19 @@ class-is@^1.1.0: cli-cursor@^3.1.0: version "3.1.0" - resolved "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== dependencies: restore-cursor "^3.1.0" cli-spinners@^2.5.0: - version "2.9.0" - resolved "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.0.tgz" - integrity sha512-4/aL9X3Wh0yiMQlE+eeRhWP6vclO3QRtw1JHKIT0FFUs5FjpFmESqtMvYZ0+lbzBw900b95mS0hohy+qn2VK/g== + version "2.9.2" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.9.2.tgz#1773a8f4b9c4d6ac31563df53b3fc1d79462fe41" + integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg== cliui@^7.0.2: version "7.0.4" - resolved "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== dependencies: string-width "^4.2.0" @@ -1504,19 +1486,19 @@ clone-response@^1.0.2: clone@^1.0.2: version "1.0.4" - resolved "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz" + resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== color-convert@^2.0.1: version "2.0.1" - resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== dependencies: color-name "~1.1.4" color-name@~1.1.4: version "1.1.4" - resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== combined-stream@^1.0.6, combined-stream@~1.0.6: @@ -1528,7 +1510,7 @@ combined-stream@^1.0.6, combined-stream@~1.0.6: concat-map@0.0.1: version "0.0.1" - resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== content-disposition@0.5.4: @@ -1582,7 +1564,7 @@ crc-32@^1.2.0: create-hash@^1.1.0, create-hash@^1.1.2, create-hash@^1.2.0: version "1.2.0" - resolved "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz" + resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg== dependencies: cipher-base "^1.0.1" @@ -1593,7 +1575,7 @@ create-hash@^1.1.0, create-hash@^1.1.2, create-hash@^1.2.0: create-hmac@^1.1.4, create-hmac@^1.1.7: version "1.1.7" - resolved "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz" + resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg== dependencies: cipher-base "^1.0.3" @@ -1605,7 +1587,7 @@ create-hmac@^1.1.4, create-hmac@^1.1.7: create-require@^1.1.0: version "1.1.1" - resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz" + resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== cross-fetch@^4.0.0: @@ -1632,7 +1614,7 @@ dashdash@^1.12.0: data-uri-to-buffer@^4.0.0: version "4.0.1" - resolved "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz" + resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz#d8feb2b2881e6a4f58c2e08acfd0e2834e26222e" integrity sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A== debug@2.6.9, debug@^2.2.0: @@ -1642,16 +1624,23 @@ debug@2.6.9, debug@^2.2.0: dependencies: ms "2.0.0" -debug@4.3.4, debug@^4.1.0: +debug@4.3.4: version "4.3.4" - resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== dependencies: ms "2.1.2" +debug@^4.1.0: + version "4.3.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.6.tgz#2ab2c38fbaffebf8aa95fdfe6d88438c7a13c52b" + integrity sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg== + dependencies: + ms "2.1.2" + decamelize@^4.0.0: version "4.0.0" - resolved "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== decode-uri-component@^0.2.0: @@ -1674,15 +1663,15 @@ decompress-response@^6.0.0: mimic-response "^3.1.0" deep-eql@^4.1.3: - version "4.1.3" - resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-4.1.3.tgz#7c7775513092f7df98d8df9996dd085eb668cc6d" - integrity sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw== + version "4.1.4" + resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-4.1.4.tgz#d0d3912865911bb8fac5afb4e3acfa6a28dc72b7" + integrity sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg== dependencies: type-detect "^4.0.0" defaults@^1.0.3: version "1.0.4" - resolved "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz" + resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a" integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== dependencies: clone "^1.0.2" @@ -1718,12 +1707,12 @@ destroy@1.2.0: diff@5.0.0: version "5.0.0" - resolved "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz" + resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== diff@^4.0.1: version "4.0.2" - resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" + resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== dom-walk@^0.1.0: @@ -1741,7 +1730,7 @@ ecc-jsbn@~0.1.1: ecpair@^1.0.0: version "1.0.1" - resolved "https://registry.npmjs.org/ecpair/-/ecpair-1.0.1.tgz" + resolved "https://registry.yarnpkg.com/ecpair/-/ecpair-1.0.1.tgz#26380cbd7a5666d75b18f3b51d7bc9908129046a" integrity sha512-5qPa0GVZJI1FAMS+4GZBWXS/bzY7/p2ehuGuHPqvsRWe2yXDc4Bgvf89BMJz87pqcW7+ogGQkLZfwflMr/RPgQ== dependencies: randombytes "^2.0.1" @@ -1754,9 +1743,9 @@ ee-first@1.1.1: resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== -elliptic@6.5.4, elliptic@^6.4.0, elliptic@^6.5.2, elliptic@^6.5.4: +elliptic@6.5.4: version "6.5.4" - resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== dependencies: bn.js "^4.11.9" @@ -1767,14 +1756,27 @@ elliptic@6.5.4, elliptic@^6.4.0, elliptic@^6.5.2, elliptic@^6.5.4: minimalistic-assert "^1.0.1" minimalistic-crypto-utils "^1.0.1" +elliptic@^6.4.0, elliptic@^6.5.2, elliptic@^6.5.4: + version "6.5.7" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.7.tgz#8ec4da2cb2939926a1b9a73619d768207e647c8b" + integrity sha512-ESVCtTwiA+XhY3wyh24QqRGBoP3rEdDUl3EDUUo9tft074fi19IrdpH7hLCMMP3CIj7jb3W96rn8lt/BqIlt5Q== + 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" + emittery@0.10.0: version "0.10.0" - resolved "https://registry.npmjs.org/emittery/-/emittery-0.10.0.tgz" + resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.10.0.tgz#bb373c660a9d421bb44706ec4967ed50c02a8026" integrity sha512-AGvFfs+d0JKCJQ4o01ASQLGPmSCxgfU9RFXvzPvZdjKK8oscynksuJhWrSTSw7j7Ep/sZct5b5ZhYCi8S/t0HQ== emoji-regex@^8.0.0: version "8.0.0" - resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== encodeurl@~1.0.2: @@ -1801,7 +1803,7 @@ es-errors@^1.3.0: resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== -es5-ext@^0.10.35, es5-ext@^0.10.50, es5-ext@^0.10.62, es5-ext@^0.10.64, es5-ext@~0.10.14: +es5-ext@^0.10.35, es5-ext@^0.10.62, es5-ext@^0.10.63, es5-ext@^0.10.64, es5-ext@~0.10.14: version "0.10.64" resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.64.tgz#12e4ffb48f1ba2ea777f1fcdd1918ef73ea21714" integrity sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg== @@ -1834,9 +1836,9 @@ es6-symbol@^3.1.1, es6-symbol@^3.1.3: ext "^1.7.0" escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + version "3.1.2" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" + integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== escape-html@~1.0.3: version "1.0.3" @@ -1845,7 +1847,7 @@ escape-html@~1.0.3: escape-string-regexp@4.0.0: version "4.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== esniff@^2.0.1: @@ -1893,15 +1895,15 @@ eth-lib@^0.1.26: xhr-request-promise "^0.1.2" ethereum-bloom-filters@^1.0.6: - version "1.0.10" - resolved "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.10.tgz" - integrity sha512-rxJ5OFN3RwjQxDcFP2Z5+Q9ho4eIdEmSc2ht0fCu8Se9nbXjZ7/031uXoUYJ87KHCOdVeiUuwSnoS7hmYAGVHA== + version "1.2.0" + resolved "https://registry.yarnpkg.com/ethereum-bloom-filters/-/ethereum-bloom-filters-1.2.0.tgz#8294f074c1a6cbd32c39d2cc77ce86ff14797dab" + integrity sha512-28hyiE7HVsWubqhpVLVmZXFd4ITeHi+BUu05o9isf0GUpMtzBUi+8/gFrGaGYzvGAJQmJ3JKj77Mk9G98T84rA== dependencies: - js-sha3 "^0.8.0" + "@noble/hashes" "^1.4.0" ethereum-cryptography@^0.1.3: version "0.1.3" - resolved "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz" + resolved "https://registry.yarnpkg.com/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz#8d6143cfc3d74bf79bbd8edecdf29e4ae20dd191" integrity sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ== dependencies: "@types/pbkdf2" "^3.0.0" @@ -1920,29 +1922,19 @@ ethereum-cryptography@^0.1.3: secp256k1 "^4.0.1" setimmediate "^1.0.5" -ethereum-cryptography@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz" - integrity sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg== - dependencies: - "@noble/curves" "1.0.0" - "@noble/hashes" "1.3.0" - "@scure/bip32" "1.3.0" - "@scure/bip39" "1.2.0" - -ethereum-cryptography@^2.1.2: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ethereum-cryptography/-/ethereum-cryptography-2.1.3.tgz#1352270ed3b339fe25af5ceeadcf1b9c8e30768a" - integrity sha512-BlwbIL7/P45W8FGW2r7LGuvoEZ+7PWsniMvQ4p5s2xCyw9tmaDlpfsN9HjAucbF+t/qpVHwZUisgfK24TCW8aA== +ethereum-cryptography@^2.0.0, ethereum-cryptography@^2.1.2: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz#58f2810f8e020aecb97de8c8c76147600b0b8ccf" + integrity sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg== dependencies: - "@noble/curves" "1.3.0" - "@noble/hashes" "1.3.3" - "@scure/bip32" "1.3.3" - "@scure/bip39" "1.2.2" + "@noble/curves" "1.4.2" + "@noble/hashes" "1.4.0" + "@scure/bip32" "1.4.0" + "@scure/bip39" "1.3.0" ethereumjs-util@^7.1.0, ethereumjs-util@^7.1.5: version "7.1.5" - resolved "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz" + resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz#9ecf04861e4fbbeed7465ece5f23317ad1129181" integrity sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg== dependencies: "@types/bn.js" "^5.1.0" @@ -1953,7 +1945,7 @@ ethereumjs-util@^7.1.0, ethereumjs-util@^7.1.5: ethers@^5.5.4: version "5.7.2" - resolved "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz" + resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.2.tgz#3a7deeabbb8c030d4126b24f84e525466145872e" integrity sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg== dependencies: "@ethersproject/abi" "5.7.0" @@ -1989,7 +1981,7 @@ ethers@^5.5.4: ethjs-unit@0.1.6: version "0.1.6" - resolved "https://registry.npmjs.org/ethjs-unit/-/ethjs-unit-0.1.6.tgz" + resolved "https://registry.yarnpkg.com/ethjs-unit/-/ethjs-unit-0.1.6.tgz#c665921e476e87bce2a9d588a6fe0405b2c41699" integrity sha512-/Sn9Y0oKl0uqQuvgFk/zQgR7aw1g36qX/jzSQ5lSwlO0GigPymk4eGQfeNTD03w1dPOqfz8V77Cy43jH56pagw== dependencies: bn.js "4.11.6" @@ -2008,28 +2000,23 @@ eventemitter3@4.0.4: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.4.tgz#b5463ace635a083d018bdc7c917b4c5f10a85384" integrity sha512-rlaVLnVxtxvoyLsQQFBx53YmXHDxRIzzTLbdfxqi4yocpSjAxXwkU0cScM5JgSKMqEhrZpnvQ2D9gjylR0AimQ== -eventemitter3@^4.0.7: - version "4.0.7" - resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz" - integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== - eventemitter3@^5.0.1: version "5.0.1" - resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== evp_bytestokey@^1.0.3: version "1.0.3" - resolved "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz" + resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" integrity sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA== dependencies: md5.js "^1.3.4" safe-buffer "^5.1.1" express@^4.14.0: - version "4.19.1" - resolved "https://registry.yarnpkg.com/express/-/express-4.19.1.tgz#4700635795e911600a45596138cf5b0320e78256" - integrity sha512-K4w1/Bp7y8iSiVObmCrtq8Cs79XjJc/RU2YYkZQ7wpUu5ZyZ7MtPHkqoMz4pf+mgXfNvo2qft8D9OnrH2ABk9w== + version "4.19.2" + resolved "https://registry.yarnpkg.com/express/-/express-4.19.2.tgz#e25437827a3aa7f2a827bc8171bbbb664a356465" + integrity sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q== dependencies: accepts "~1.3.8" array-flatten "1.1.1" @@ -2097,7 +2084,7 @@ fast-json-stable-stringify@^2.0.0: fetch-blob@^3.1.2, fetch-blob@^3.1.4: version "3.2.0" - resolved "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz" + resolved "https://registry.yarnpkg.com/fetch-blob/-/fetch-blob-3.2.0.tgz#f09b8d4bbd45adc6f0c20b7e787e793e309dcce9" integrity sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ== dependencies: node-domexception "^1.0.0" @@ -2105,13 +2092,13 @@ fetch-blob@^3.1.2, fetch-blob@^3.1.4: file-uri-to-path@1.0.0: version "1.0.0" - resolved "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz" + resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== +fill-range@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" + integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg== dependencies: to-regex-range "^5.0.1" @@ -2130,7 +2117,7 @@ finalhandler@1.2.0: find-up@5.0.0: version "5.0.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== dependencies: locate-path "^6.0.0" @@ -2138,12 +2125,12 @@ find-up@5.0.0: flat@^5.0.2: version "5.0.2" - resolved "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz" + resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== for-each@^0.3.3: version "0.3.3" - resolved "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz" + resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw== dependencies: is-callable "^1.1.3" @@ -2169,7 +2156,7 @@ form-data@~2.3.2: formdata-polyfill@^4.0.10: version "4.0.10" - resolved "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz" + resolved "https://registry.yarnpkg.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423" integrity sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g== dependencies: fetch-blob "^3.1.2" @@ -2202,7 +2189,7 @@ fs-minipass@^1.2.7: fs.realpath@^1.0.0: version "1.0.0" - resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== fsevents@~2.3.2: @@ -2210,11 +2197,6 @@ fsevents@~2.3.2: resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== -function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" - integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== - function-bind@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" @@ -2222,7 +2204,7 @@ function-bind@^1.1.2: ganache@7.4.1: version "7.4.1" - resolved "https://registry.npmjs.org/ganache/-/ganache-7.4.1.tgz" + resolved "https://registry.yarnpkg.com/ganache/-/ganache-7.4.1.tgz#5f109619067baf25dec15f92a8d919e5bfeedb4d" integrity sha512-yLlfsHQpJmXRD/Ryd7JcHTzL9q0cE+BDu3fmMFmJ/0Nl8GYBDfZrtyzm/8nSRWiXoWR98ER/c3PZrhR9KDySeA== dependencies: "@trufflesuite/bigint-buffer" "1.1.10" @@ -2239,7 +2221,7 @@ ganache@7.4.1: get-caller-file@^2.0.5: version "2.0.5" - resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== get-func-name@^2.0.1, get-func-name@^2.0.2: @@ -2247,17 +2229,7 @@ get-func-name@^2.0.1, get-func-name@^2.0.2: resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.2.tgz#0d7cf20cd13fda808669ffa88f4ffc7a3943fc41" integrity sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ== -get-intrinsic@^1.0.2, get-intrinsic@^1.1.3: - version "1.2.1" - resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz" - integrity sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw== - dependencies: - function-bind "^1.1.1" - has "^1.0.3" - has-proto "^1.0.1" - has-symbols "^1.0.3" - -get-intrinsic@^1.2.4: +get-intrinsic@^1.1.3, get-intrinsic@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== @@ -2289,14 +2261,14 @@ getpass@^0.1.1: glob-parent@~5.1.2: version "5.1.2" - resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== dependencies: is-glob "^4.0.1" glob@7.2.0: version "7.2.0" - resolved "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== dependencies: fs.realpath "^1.0.0" @@ -2316,7 +2288,7 @@ global@~4.4.0: gopd@^1.0.1: version "1.0.1" - resolved "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== dependencies: get-intrinsic "^1.1.3" @@ -2377,7 +2349,7 @@ har-validator@~5.1.3: has-flag@^4.0.0: version "4.0.0" - resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== has-property-descriptors@^1.0.2: @@ -2388,32 +2360,25 @@ has-property-descriptors@^1.0.2: es-define-property "^1.0.0" has-proto@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz" - integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" + integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== -has-symbols@^1.0.2, has-symbols@^1.0.3: +has-symbols@^1.0.3: version "1.0.3" - resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== -has-tostringtag@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz" - integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== - dependencies: - has-symbols "^1.0.2" - -has@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/has/-/has-1.0.3.tgz" - integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== +has-tostringtag@^1.0.0, has-tostringtag@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" + integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== dependencies: - function-bind "^1.1.1" + has-symbols "^1.0.3" hash-base@^3.0.0: version "3.1.0" - resolved "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz" + resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" integrity sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA== dependencies: inherits "^2.0.4" @@ -2422,7 +2387,7 @@ hash-base@^3.0.0: hash.js@1.1.7, hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7: version "1.1.7" - resolved "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz" + resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA== dependencies: inherits "^2.0.3" @@ -2437,12 +2402,12 @@ hasown@^2.0.0: he@1.2.0: version "1.2.0" - resolved "https://registry.npmjs.org/he/-/he-1.2.0.tgz" + resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== hmac-drbg@^1.0.1: version "1.0.1" - resolved "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz" + resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" integrity sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg== dependencies: hash.js "^1.0.3" @@ -2511,12 +2476,12 @@ idna-uts46-hx@^2.3.1: ieee754@^1.1.13, ieee754@^1.2.1: version "1.2.1" - resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== inflight@^1.0.4: version "1.0.6" - resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== dependencies: once "^1.3.0" @@ -2524,7 +2489,7 @@ inflight@^1.0.4: inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: version "2.0.4" - resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== ipaddr.js@1.9.1: @@ -2534,7 +2499,7 @@ ipaddr.js@1.9.1: is-arguments@^1.0.4: version "1.1.1" - resolved "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz" + resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b" integrity sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA== dependencies: call-bind "^1.0.2" @@ -2542,29 +2507,29 @@ is-arguments@^1.0.4: is-binary-path@~2.1.0: version "2.1.0" - resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== dependencies: binary-extensions "^2.0.0" is-buffer@^2.0.5: version "2.0.5" - resolved "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191" integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== is-callable@^1.1.3: version "1.2.7" - resolved "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== is-extglob@^2.1.1: version "2.1.1" - resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== is-fullwidth-code-point@^3.0.0: version "3.0.0" - resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== is-function@^1.0.1: @@ -2574,48 +2539,44 @@ is-function@^1.0.1: is-generator-function@^1.0.7: version "1.0.10" - resolved "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz" + resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.0.10.tgz#f1558baf1ac17e0deea7c0415c438351ff2b3c72" integrity sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A== dependencies: has-tostringtag "^1.0.0" is-glob@^4.0.1, is-glob@~4.0.1: version "4.0.3" - resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== dependencies: is-extglob "^2.1.1" is-hex-prefixed@1.0.0: version "1.0.0" - resolved "https://registry.npmjs.org/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz" + resolved "https://registry.yarnpkg.com/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz#7d8d37e6ad77e5d127148913c573e082d777f554" integrity sha512-WvtOiug1VFrE9v1Cydwm+FnXd3+w9GaeVUss5W4v/SLy3UW00vP+6iNF2SdnfiBoLy4bTqVdkftNGTUeOFVsbA== is-interactive@^1.0.0: version "1.0.0" - resolved "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz" + resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== is-number@^7.0.0: version "7.0.0" - resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== is-plain-obj@^2.1.0: version "2.1.0" - resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== -is-typed-array@^1.1.10, is-typed-array@^1.1.3: - version "1.1.10" - resolved "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz" - integrity sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A== +is-typed-array@^1.1.3: + version "1.1.13" + resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.13.tgz#d6c5ca56df62334959322d7d7dd1cca50debe229" + integrity sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw== dependencies: - available-typed-arrays "^1.0.5" - call-bind "^1.0.2" - for-each "^0.3.3" - gopd "^1.0.1" - has-tostringtag "^1.0.0" + which-typed-array "^1.1.14" is-typedarray@^1.0.0, is-typedarray@~1.0.0: version "1.0.0" @@ -2624,7 +2585,7 @@ is-typedarray@^1.0.0, is-typedarray@~1.0.0: is-unicode-supported@^0.1.0: version "0.1.0" - resolved "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz" + resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== isstream@~0.1.2: @@ -2632,9 +2593,9 @@ isstream@~0.1.2: resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== -js-sha3@0.8.0, js-sha3@^0.8.0: +js-sha3@0.8.0: version "0.8.0" - resolved "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz" + resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== js-sha3@^0.5.7: @@ -2644,7 +2605,7 @@ js-sha3@^0.5.7: js-yaml@4.1.0: version "4.1.0" - resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== dependencies: argparse "^2.0.1" @@ -2671,7 +2632,7 @@ json-schema@0.4.0: json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: version "5.0.1" - resolved "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== jsonfile@^4.0.0: @@ -2693,16 +2654,16 @@ jsprim@^1.2.2: keccak@3.0.1: version "3.0.1" - resolved "https://registry.npmjs.org/keccak/-/keccak-3.0.1.tgz" + resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.1.tgz#ae30a0e94dbe43414f741375cff6d64c8bea0bff" integrity sha512-epq90L9jlFWCW7+pQa6JOnKn2Xgl2mtI664seYR6MHskvI9agt7AnDqmAlp9TqU4/caMYbA08Hi5DMZAl5zdkA== dependencies: node-addon-api "^2.0.0" node-gyp-build "^4.2.0" keccak@^3.0.0: - version "3.0.3" - resolved "https://registry.npmjs.org/keccak/-/keccak-3.0.3.tgz" - integrity sha512-JZrLIAJWuZxKbCilMpNz5Vj7Vtb4scDG3dMXLOsbzBmQGyjwE61BbW7bJkfKKCShXiQZt3T6sBgALRtmd+nZaQ== + version "3.0.4" + resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.4.tgz#edc09b89e633c0549da444432ecf062ffadee86d" + integrity sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q== dependencies: node-addon-api "^2.0.0" node-gyp-build "^4.2.0" @@ -2717,19 +2678,19 @@ keyv@^4.0.0: level-concat-iterator@^3.0.0: version "3.1.0" - resolved "https://registry.npmjs.org/level-concat-iterator/-/level-concat-iterator-3.1.0.tgz" + resolved "https://registry.yarnpkg.com/level-concat-iterator/-/level-concat-iterator-3.1.0.tgz#5235b1f744bc34847ed65a50548aa88d22e881cf" integrity sha512-BWRCMHBxbIqPxJ8vHOvKUsaO0v1sLYZtjN3K2iZJsRBYtp+ONsY6Jfi6hy9K3+zolgQRryhIn2NRZjZnWJ9NmQ== dependencies: catering "^2.1.0" level-supports@^2.0.1: version "2.1.0" - resolved "https://registry.npmjs.org/level-supports/-/level-supports-2.1.0.tgz" + resolved "https://registry.yarnpkg.com/level-supports/-/level-supports-2.1.0.tgz#9af908d853597ecd592293b2fad124375be79c5f" integrity sha512-E486g1NCjW5cF78KGPrMDRBYzPuueMZ6VBXHT6gC7A8UYWGiM14fGgp+s/L1oFfDWSPV/+SFkYCmZ0SiESkRKA== leveldown@6.1.0: version "6.1.0" - resolved "https://registry.npmjs.org/leveldown/-/leveldown-6.1.0.tgz" + resolved "https://registry.yarnpkg.com/leveldown/-/leveldown-6.1.0.tgz#7ab1297706f70c657d1a72b31b40323aa612b9ee" integrity sha512-8C7oJDT44JXxh04aSSsfcMI8YiaGRhOFI9/pMEL7nWJLVsWajDPTRxsSHTM2WcTVY5nXM+SuRHzPPi0GbnDX+w== dependencies: abstract-leveldown "^7.2.0" @@ -2738,19 +2699,14 @@ leveldown@6.1.0: locate-path@^6.0.0: version "6.0.0" - resolved "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== dependencies: p-locate "^5.0.0" -lodash@^4.17.21: - version "4.17.21" - resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== - log-symbols@4.1.0, log-symbols@^4.1.0: version "4.1.0" - resolved "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== dependencies: chalk "^4.1.0" @@ -2775,12 +2731,12 @@ lowercase-keys@^3.0.0: make-error@^1.1.1: version "1.3.6" - resolved "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== md5.js@^1.3.4: version "1.3.5" - resolved "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz" + resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg== dependencies: hash-base "^3.0.0" @@ -2826,7 +2782,7 @@ mime@1.6.0: mimic-fn@^2.1.0: version "2.1.0" - resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== mimic-response@^1.0.0: @@ -2848,24 +2804,24 @@ min-document@^2.19.0: minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" - resolved "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== minimalistic-crypto-utils@^1.0.1: version "1.0.1" - resolved "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz" + resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg== minimatch@5.0.1: version "5.0.1" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.0.1.tgz#fb9022f7528125187c92bd9e9b6366be1cf3415b" integrity sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g== dependencies: brace-expansion "^2.0.1" minimatch@^3.0.4: version "3.1.2" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== dependencies: brace-expansion "^1.1.7" @@ -2911,7 +2867,7 @@ mkdirp@^0.5.5: mocha-steps@^1.3.0: version "1.3.0" - resolved "https://registry.npmjs.org/mocha-steps/-/mocha-steps-1.3.0.tgz" + resolved "https://registry.yarnpkg.com/mocha-steps/-/mocha-steps-1.3.0.tgz#2449231ec45ec56810f65502cb22e2571862957f" integrity sha512-KZvpMJTqzLZw3mOb+EEuYi4YZS41C9iTnb7skVFRxHjUd1OYbl64tCMSmpdIRM9LnwIrSOaRfPtNpF5msgv6Eg== mocha@10.2.0: @@ -2946,10 +2902,10 @@ mock-fs@^4.1.0: resolved "https://registry.yarnpkg.com/mock-fs/-/mock-fs-4.14.0.tgz#ce5124d2c601421255985e6e94da80a7357b1b18" integrity sha512-qYvlv/exQ4+svI3UOvPUpLDF0OMX5euvUH0Ny4N5QyRyhNdgAgUrVH3iUINSzEPLvx0kbo/Bp28GJKIqvE7URw== -mock-socket@^9.2.1: - version "9.2.1" - resolved "https://registry.npmjs.org/mock-socket/-/mock-socket-9.2.1.tgz" - integrity sha512-aw9F9T9G2zpGipLLhSNh6ZpgUyUl4frcVmRN08uE1NWPWg43Wx6+sGPDbQ7E5iFZZDJW5b5bypMeAEHqTbIFag== +mock-socket@^9.3.1: + version "9.3.1" + resolved "https://registry.yarnpkg.com/mock-socket/-/mock-socket-9.3.1.tgz#24fb00c2f573c84812aa4a24181bb025de80cc8e" + integrity sha512-qxBgB7Qa2sEQgHFjj0dSigq7fX4k6Saisd5Nelwp2q8mlbAFh5dHV9JTTlF8viYJLSSWgMCZFUom8PJcMNBoJw== ms@2.0.0: version "2.0.0" @@ -2958,12 +2914,12 @@ ms@2.0.0: ms@2.1.2: version "2.1.2" - resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== ms@2.1.3: version "2.1.3" - resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== multibase@^0.7.0: @@ -3007,9 +2963,9 @@ multihashes@^0.4.15, multihashes@~0.4.15: varint "^5.0.0" nan@^2.13.2: - version "2.17.0" - resolved "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz" - integrity sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ== + version "2.20.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.20.0.tgz#08c5ea813dd54ed16e5bd6505bf42af4f7838ca3" + integrity sha512-bk3gXBZDGILuuo/6sKtr0DQmSThYHLtNCdSdXk9YkxD/jK6X2vmCyyXBBxyqZ4XcnzTyYEAThfX3DCEnLf6igw== nano-json-stream-parser@^0.1.2: version "0.1.2" @@ -3018,12 +2974,12 @@ nano-json-stream-parser@^0.1.2: nanoid@3.3.3: version "3.3.3" - resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.3.tgz#fd8e8b7aa761fe807dba2d1b98fb7241bb724a25" integrity sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w== napi-macros@~2.0.0: version "2.0.0" - resolved "https://registry.npmjs.org/napi-macros/-/napi-macros-2.0.0.tgz" + resolved "https://registry.yarnpkg.com/napi-macros/-/napi-macros-2.0.0.tgz#2b6bae421e7b96eb687aa6c77a7858640670001b" integrity sha512-A0xLykHtARfueITVDernsAWdtIMbOJgKgcluwENp3AlsKN/PloyO10HtmoqnFAQAcxPkgZN7wdfPfEd0zNGxbg== negotiator@0.6.3: @@ -3036,24 +2992,23 @@ next-tick@^1.1.0: resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ== -nock@^13.3.1: - version "13.3.1" - resolved "https://registry.npmjs.org/nock/-/nock-13.3.1.tgz" - integrity sha512-vHnopocZuI93p2ccivFyGuUfzjq2fxNyNurp7816mlT5V5HF4SzXu8lvLrVzBbNqzs+ODooZ6OksuSUNM7Njkw== +nock@^13.5.4: + version "13.5.5" + resolved "https://registry.yarnpkg.com/nock/-/nock-13.5.5.tgz#cd1caaca281d42be17d51946367a3d53a6af3e78" + integrity sha512-XKYnqUrCwXC8DGG1xX4YH5yNIrlh9c065uaMZZHUoeUUINTOyt+x/G+ezYk0Ft6ExSREVIs+qBJDK503viTfFA== dependencies: debug "^4.1.0" json-stringify-safe "^5.0.1" - lodash "^4.17.21" propagate "^2.0.0" node-addon-api@^2.0.0: version "2.0.2" - resolved "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz" + resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-2.0.2.tgz#432cfa82962ce494b132e9d72a15b29f71ff5d32" integrity sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA== node-domexception@^1.0.0: version "1.0.0" - resolved "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz" + resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== node-fetch@^2.6.12: @@ -3063,10 +3018,10 @@ node-fetch@^2.6.12: dependencies: whatwg-url "^5.0.0" -node-fetch@^3.3.1: - version "3.3.1" - resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.1.tgz" - integrity sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow== +node-fetch@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.3.2.tgz#d1e889bacdf733b4ff3b2b243eb7a12866a0b78b" + integrity sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA== dependencies: data-uri-to-buffer "^4.0.0" fetch-blob "^3.1.4" @@ -3074,17 +3029,17 @@ node-fetch@^3.3.1: node-gyp-build@4.4.0: version "4.4.0" - resolved "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.4.0.tgz" + resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.4.0.tgz#42e99687ce87ddeaf3a10b99dc06abc11021f3f4" integrity sha512-amJnQCcgtRVw9SvoebO3BKGESClrfXGCUTX9hSn1OuGQTQBOZmVd0Z0OlecpuRksKvbsUqALE8jls/ErClAPuQ== node-gyp-build@^4.2.0, node-gyp-build@^4.3.0: - version "4.6.0" - resolved "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz" - integrity sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ== + version "4.8.1" + resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.1.tgz#976d3ad905e71b76086f4f0b0d3637fe79b6cda5" + integrity sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw== normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" - resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== normalize-url@^6.0.1: @@ -3094,7 +3049,7 @@ normalize-url@^6.0.1: number-to-bn@1.7.0: version "1.7.0" - resolved "https://registry.npmjs.org/number-to-bn/-/number-to-bn-1.7.0.tgz" + resolved "https://registry.yarnpkg.com/number-to-bn/-/number-to-bn-1.7.0.tgz#bb3623592f7e5f9e0030b1977bd41a0c53fe1ea0" integrity sha512-wsJ9gfSz1/s4ZsJN01lyonwuxA1tml6X1yBDnfpMglypcBRFZZkus26EdPSlqS5GJfYddVZa22p3VNb3z5m5Ig== dependencies: bn.js "4.11.6" @@ -3111,9 +3066,9 @@ object-assign@^4, object-assign@^4.1.0, object-assign@^4.1.1: integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== object-inspect@^1.13.1: - version "1.13.1" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" - integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== + version "1.13.2" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.2.tgz#dea0088467fb991e67af4058147a24824a3043ff" + integrity sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g== oboe@2.1.5: version "2.1.5" @@ -3131,21 +3086,21 @@ on-finished@2.4.1: once@^1.3.0, once@^1.3.1, once@^1.4.0: version "1.4.0" - resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== dependencies: wrappy "1" onetime@^5.1.0: version "5.1.2" - resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== dependencies: mimic-fn "^2.1.0" ora@5: version "5.4.1" - resolved "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz" + resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== dependencies: bl "^4.1.0" @@ -3170,23 +3125,18 @@ p-cancelable@^3.0.0: p-limit@^3.0.2: version "3.1.0" - resolved "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== dependencies: yocto-queue "^0.1.0" p-locate@^5.0.0: version "5.0.0" - resolved "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== dependencies: p-limit "^3.0.2" -pako@^2.0.4: - version "2.1.0" - resolved "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz" - integrity sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug== - parse-headers@^2.0.0: version "2.0.5" resolved "https://registry.yarnpkg.com/parse-headers/-/parse-headers-2.0.5.tgz#069793f9356a54008571eb7f9761153e6c770da9" @@ -3199,12 +3149,12 @@ parseurl@~1.3.3: path-exists@^4.0.0: version "4.0.0" - resolved "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== path-is-absolute@^1.0.0: version "1.0.1" - resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== path-to-regexp@0.1.7: @@ -3214,12 +3164,12 @@ path-to-regexp@0.1.7: pathval@^1.1.1: version "1.1.1" - resolved "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz" + resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d" integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ== pbkdf2@^3.0.17: version "3.1.2" - resolved "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.2.tgz#dd822aa0887580e52f1a039dc3eda108efae3075" integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA== dependencies: create-hash "^1.1.2" @@ -3235,9 +3185,14 @@ performance-now@^2.1.0: picomatch@^2.0.4, picomatch@^2.2.1: version "2.3.1" - resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== +possible-typed-array-names@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f" + integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q== + process@^0.11.10: version "0.11.10" resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" @@ -3245,7 +3200,7 @@ process@^0.11.10: propagate@^2.0.0: version "2.0.1" - resolved "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/propagate/-/propagate-2.0.1.tgz#40cdedab18085c792334e64f0ac17256d38f9a45" integrity sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag== proxy-addr@~2.0.7: @@ -3302,14 +3257,9 @@ query-string@^5.0.1: queue-microtask@^1.2.3: version "1.2.3" - resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== -queue-tick@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.0.tgz" - integrity sha512-ULWhjjE8BmiICGn3G8+1L9wFpERNxkf8ysxkAer4+TFdRefDaXOCV5m92aMB9FtBVmn/8sETXLXY6BfW7hyaWQ== - quick-lru@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932" @@ -3317,7 +3267,7 @@ quick-lru@^5.1.1: randombytes@^2.0.1, randombytes@^2.1.0: version "2.1.0" - resolved "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== dependencies: safe-buffer "^5.1.0" @@ -3339,7 +3289,7 @@ raw-body@2.5.2: readable-stream@^3.4.0, readable-stream@^3.6.0: version "3.6.2" - resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== dependencies: inherits "^2.0.3" @@ -3348,7 +3298,7 @@ readable-stream@^3.4.0, readable-stream@^3.6.0: readdirp@~3.6.0: version "3.6.0" - resolved "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== dependencies: picomatch "^2.2.1" @@ -3381,7 +3331,7 @@ request@^2.79.0: require-directory@^2.1.1: version "2.1.1" - resolved "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== resolve-alpn@^1.0.0, resolve-alpn@^1.2.0: @@ -3398,7 +3348,7 @@ responselike@^2.0.0: restore-cursor@^3.1.0: version "3.1.0" - resolved "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== dependencies: onetime "^5.1.0" @@ -3406,7 +3356,7 @@ restore-cursor@^3.1.0: ripemd160@^2.0.0, ripemd160@^2.0.1: version "2.0.2" - resolved "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA== dependencies: hash-base "^3.0.0" @@ -3414,21 +3364,21 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: rlp@^2.2.4: version "2.2.7" - resolved "https://registry.npmjs.org/rlp/-/rlp-2.2.7.tgz" + resolved "https://registry.yarnpkg.com/rlp/-/rlp-2.2.7.tgz#33f31c4afac81124ac4b283e2bd4d9720b30beaf" integrity sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ== dependencies: bn.js "^5.2.0" rxjs@^7.8.1: version "7.8.1" - resolved "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== dependencies: tslib "^2.1.0" safe-buffer@5.2.1, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@^5.2.1, safe-buffer@~5.2.0: version "5.2.1" - resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== safe-buffer@~5.1.0: @@ -3441,14 +3391,19 @@ safe-buffer@~5.1.0: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== +scale-ts@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/scale-ts/-/scale-ts-1.6.0.tgz#e9641093c5a9e50f964ddb1607139034e3e932e9" + integrity sha512-Ja5VCjNZR8TGKhUumy9clVVxcDpM+YFjAnkMuwQy68Hixio3VRRvWdE3g8T/yC+HXA0ZDQl2TGyUmtmbcVl40Q== + scrypt-js@3.0.1, scrypt-js@^3.0.0, scrypt-js@^3.0.1: version "3.0.1" - resolved "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz" + resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== secp256k1@4.0.2: version "4.0.2" - resolved "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.2.tgz" + resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-4.0.2.tgz#15dd57d0f0b9fdb54ac1fa1694f40e5e9a54f4a1" integrity sha512-UDar4sKvWAksIlfX3xIaQReADn+WFnHvbVujpcbr+9Sf/69odMwy2MUsz5CKLQgX9nsIyrjuxL2imVyoNHa3fg== dependencies: elliptic "^6.5.2" @@ -3457,7 +3412,7 @@ secp256k1@4.0.2: secp256k1@^4.0.1: version "4.0.3" - resolved "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.3.tgz" + resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-4.0.3.tgz#c4559ecd1b8d3c1827ed2d1b94190d69ce267303" integrity sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA== dependencies: elliptic "^6.5.4" @@ -3485,7 +3440,7 @@ send@0.18.0: serialize-javascript@6.0.0: version "6.0.0" - resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8" integrity sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag== dependencies: randombytes "^2.1.0" @@ -3525,7 +3480,7 @@ set-function-length@^1.2.1: setimmediate@^1.0.5: version "1.0.5" - resolved "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" integrity sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA== setprototypeof@1.2.0: @@ -3535,7 +3490,7 @@ setprototypeof@1.2.0: sha.js@^2.4.0, sha.js@^2.4.8: version "2.4.11" - resolved "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz" + resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ== dependencies: inherits "^2.0.1" @@ -3553,7 +3508,7 @@ side-channel@^1.0.4: signal-exit@^3.0.2: version "3.0.7" - resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== simple-concat@^1.0.0: @@ -3570,12 +3525,11 @@ simple-get@^2.7.0: once "^1.3.1" simple-concat "^1.0.0" -smoldot@1.0.4: - version "1.0.4" - resolved "https://registry.npmjs.org/smoldot/-/smoldot-1.0.4.tgz" - integrity sha512-N3TazI1C4GGrseFH/piWyZCCCRJTRx2QhDfrUKRT4SzILlW5m8ayZ3QTKICcz1C/536T9cbHHJyP7afxI6Mi1A== +smoldot@2.0.26: + version "2.0.26" + resolved "https://registry.yarnpkg.com/smoldot/-/smoldot-2.0.26.tgz#0e64c7fcd26240fbe4c8d6b6e4b9a9aca77e00f6" + integrity sha512-F+qYmH4z2s2FK+CxGj8moYcd1ekSIKH8ywkdqlOz88Dat35iB1DIYL11aILN46YSGMzQW/lbJNS307zBSDN5Ig== dependencies: - pako "^2.0.4" ws "^8.8.1" sshpk@^1.7.0: @@ -3605,7 +3559,7 @@ strict-uri-encode@^1.0.0: string-width@^4.1.0, string-width@^4.2.0: version "4.2.3" - resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== dependencies: emoji-regex "^8.0.0" @@ -3614,40 +3568,40 @@ string-width@^4.1.0, string-width@^4.2.0: string_decoder@^1.1.1: version "1.3.0" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== dependencies: safe-buffer "~5.2.0" strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" - resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== dependencies: ansi-regex "^5.0.1" strip-hex-prefix@1.0.0: version "1.0.0" - resolved "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz" + resolved "https://registry.yarnpkg.com/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz#0c5f155fef1151373377de9dbb588da05500e36f" integrity sha512-q8d4ue7JGEiVcypji1bALTos+0pWtyGlivAWyPuTkHzuTCJqrK9sWxYQZUq6Nq3cuyv3bm734IhHvHtGGURU6A== dependencies: is-hex-prefixed "1.0.0" strip-json-comments@3.1.1: version "3.1.1" - resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== supports-color@8.1.1: version "8.1.1" - resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== dependencies: has-flag "^4.0.0" supports-color@^7.1.0: version "7.2.0" - resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== dependencies: has-flag "^4.0.0" @@ -3689,7 +3643,7 @@ timed-out@^4.0.1: tiny-secp256k1@^1.1.6: version "1.1.6" - resolved "https://registry.npmjs.org/tiny-secp256k1/-/tiny-secp256k1-1.1.6.tgz" + resolved "https://registry.yarnpkg.com/tiny-secp256k1/-/tiny-secp256k1-1.1.6.tgz#7e224d2bee8ab8283f284e40e6b4acb74ffe047c" integrity sha512-FmqJZGduTyvsr2cF3375fqGHUovSwDi/QytexX1Se4BPuPZpTE5Ftp5fg+EFSuEf3lhZqgCRjEG3ydUQ/aNiwA== dependencies: bindings "^1.3.0" @@ -3700,7 +3654,7 @@ tiny-secp256k1@^1.1.6: to-regex-range@^5.0.1: version "5.0.1" - resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== dependencies: is-number "^7.0.0" @@ -3720,12 +3674,12 @@ tough-cookie@~2.5.0: tr46@~0.0.3: version "0.0.3" - resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== ts-node@10.8.0: version "10.8.0" - resolved "https://registry.npmjs.org/ts-node/-/ts-node-10.8.0.tgz" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.8.0.tgz#3ceb5ac3e67ae8025c1950626aafbdecb55d82ce" integrity sha512-/fNd5Qh+zTt8Vt1KbYZjRHCE9sI5i7nqfD/dzBBRDeVXZXS6kToW6R7tTU6Nd4XavFs0mAVCg29Q//ML7WsZYA== dependencies: "@cspotcode/source-map-support" "^0.8.0" @@ -3742,10 +3696,10 @@ ts-node@10.8.0: v8-compile-cache-lib "^3.0.1" yn "3.1.1" -tslib@^2.1.0, tslib@^2.5.0, tslib@^2.5.3: - version "2.5.3" - resolved "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz" - integrity sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w== +tslib@^2.1.0, tslib@^2.6.2, tslib@^2.6.3: + version "2.6.3" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.3.tgz#0438f810ad7a9edcde7a241c3d80db693c8cbfe0" + integrity sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ== tunnel-agent@^0.6.0: version "0.6.0" @@ -3759,10 +3713,10 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0: resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" integrity sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA== -type-detect@^4.0.0, type-detect@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" - integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== +type-detect@^4.0.0, type-detect@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.1.0.tgz#deb2453e8f08dcae7ae98c626b13dddb0155906c" + integrity sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw== type-is@~1.6.18: version "1.6.18" @@ -3773,9 +3727,9 @@ type-is@~1.6.18: mime-types "~2.1.24" type@^2.7.2: - version "2.7.2" - resolved "https://registry.yarnpkg.com/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0" - integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== + version "2.7.3" + resolved "https://registry.yarnpkg.com/type/-/type-2.7.3.tgz#436981652129285cc3ba94f392886c2637ea0486" + integrity sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ== typedarray-to-buffer@^3.1.5: version "3.1.5" @@ -3786,7 +3740,7 @@ typedarray-to-buffer@^3.1.5: typeforce@^1.11.3: version "1.18.0" - resolved "https://registry.npmjs.org/typeforce/-/typeforce-1.18.0.tgz" + resolved "https://registry.yarnpkg.com/typeforce/-/typeforce-1.18.0.tgz#d7416a2c5845e085034d70fcc5b6cc4a90edbfdc" integrity sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g== typescript@4.5.4: @@ -3799,6 +3753,11 @@ ultron@~1.1.0: resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.1.tgz#9fe1536a10a664a65266a1e3ccf85fd36302bc9c" integrity sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og== +undici-types@~6.19.2: + version "6.19.8" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" + integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== + universalify@^0.1.0: version "0.1.2" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" @@ -3823,7 +3782,7 @@ url-set-query@^1.0.0: utf-8-validate@5.0.7: version "5.0.7" - resolved "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.7.tgz" + resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.7.tgz#c15a19a6af1f7ad9ec7ddc425747ca28c3644922" integrity sha512-vLt1O5Pp+flcArHGIyKEQq883nBt8nN8tVBcoL0qUXj2XT1n7p70yGIq2VK98I5FdZ1YHc0wk/koOnHjnXWk1Q== dependencies: node-gyp-build "^4.3.0" @@ -3837,17 +3796,17 @@ utf-8-validate@^5.0.2: utf8@3.0.0: version "3.0.0" - resolved "https://registry.npmjs.org/utf8/-/utf8-3.0.0.tgz" + resolved "https://registry.yarnpkg.com/utf8/-/utf8-3.0.0.tgz#f052eed1364d696e769ef058b183df88c87f69d1" integrity sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ== util-deprecate@^1.0.1: version "1.0.2" - resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== util@^0.12.5: version "0.12.5" - resolved "https://registry.npmjs.org/util/-/util-0.12.5.tgz" + resolved "https://registry.yarnpkg.com/util/-/util-0.12.5.tgz#5f17a6059b73db61a875668781a1c2b136bd6fbc" integrity sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA== dependencies: inherits "^2.0.3" @@ -3873,7 +3832,7 @@ uuid@^9.0.0: v8-compile-cache-lib@^3.0.1: version "3.0.1" - resolved "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz" + resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== varint@^5.0.0: @@ -3897,15 +3856,15 @@ verror@1.10.0: wcwidth@^1.0.1: version "1.0.1" - resolved "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz" + resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== dependencies: defaults "^1.0.3" web-streams-polyfill@^3.0.3: - version "3.2.1" - resolved "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz" - integrity sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q== + version "3.3.3" + resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz#2073b91a2fdb1fbfbd401e7de0ac9f8214cecb4b" + integrity sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw== web3-bzz@1.10.4: version "1.10.4" @@ -4126,7 +4085,7 @@ web3-utils@1.10.4: web3-utils@1.7.4: version "1.7.4" - resolved "https://registry.npmjs.org/web3-utils/-/web3-utils-1.7.4.tgz" + resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.7.4.tgz#eb6fa3706b058602747228234453811bbee017f5" integrity sha512-acBdm6Evd0TEZRnChM/MCvGsMwYKmSh7OaUfNf5OKG0CIeGWD/6gqLOWIwmwSnre/2WrA1nKGId5uW2e5EfluA== dependencies: bn.js "^5.2.1" @@ -4152,56 +4111,55 @@ web3@^1.9.0: webidl-conversions@^3.0.0: version "3.0.1" - resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== websocket@^1.0.32: - version "1.0.34" - resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" - integrity sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ== + version "1.0.35" + resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.35.tgz#374197207d7d4cc4c36cbf8a1bb886ee52a07885" + integrity sha512-/REy6amwPZl44DDzvRCkaI1q1bIiQB0mEFQLUrhz3z2EK91cp3n72rAjUlrTP0zV22HJIUOVHQGPxhFRjxjt+Q== dependencies: bufferutil "^4.0.1" debug "^2.2.0" - es5-ext "^0.10.50" + es5-ext "^0.10.63" typedarray-to-buffer "^3.1.5" utf-8-validate "^5.0.2" yaeti "^0.0.6" whatwg-url@^5.0.0: version "5.0.0" - resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== dependencies: tr46 "~0.0.3" webidl-conversions "^3.0.0" -which-typed-array@^1.1.2: - version "1.1.9" - resolved "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz" - integrity sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA== +which-typed-array@^1.1.14, which-typed-array@^1.1.2: + version "1.1.15" + resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.15.tgz#264859e9b11a649b388bfaaf4f767df1f779b38d" + integrity sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA== dependencies: - available-typed-arrays "^1.0.5" - call-bind "^1.0.2" + available-typed-arrays "^1.0.7" + call-bind "^1.0.7" for-each "^0.3.3" gopd "^1.0.1" - has-tostringtag "^1.0.0" - is-typed-array "^1.1.10" + has-tostringtag "^1.0.2" wif@^2.0.1: version "2.0.6" - resolved "https://registry.npmjs.org/wif/-/wif-2.0.6.tgz" + resolved "https://registry.yarnpkg.com/wif/-/wif-2.0.6.tgz#08d3f52056c66679299726fade0d432ae74b4704" integrity sha512-HIanZn1zmduSF+BQhkE+YXIbEiH0xPr1012QbFEGB0xsKqJii0/SqJjyn8dFv6y36kOznMgMB+LGcbZTJ1xACQ== dependencies: bs58check "<3.0.0" workerpool@6.2.1: version "6.2.1" - resolved "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz" + resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343" integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw== wrap-ansi@^7.0.0: version "7.0.0" - resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== dependencies: ansi-styles "^4.0.0" @@ -4210,12 +4168,12 @@ wrap-ansi@^7.0.0: wrappy@1: version "1.0.2" - resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== ws@7.4.6: version "7.4.6" - resolved "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c" integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A== ws@^3.0.0: @@ -4227,10 +4185,10 @@ ws@^3.0.0: safe-buffer "~5.1.0" ultron "~1.1.0" -ws@^8.13.0, ws@^8.8.1: - version "8.13.0" - resolved "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz" - integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA== +ws@^8.16.0, ws@^8.8.1: + version "8.18.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc" + integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw== xhr-request-promise@^0.1.2: version "0.1.3" @@ -4264,12 +4222,12 @@ xhr@^2.0.4, xhr@^2.3.3: xtend@^4.0.0: version "4.0.2" - resolved "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== y18n@^5.0.5: version "5.0.8" - resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== yaeti@^0.0.6: @@ -4284,17 +4242,17 @@ yallist@^3.0.0, yallist@^3.1.1: yargs-parser@20.2.4: version "20.2.4" - resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== yargs-parser@^20.2.2: version "20.2.9" - resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== yargs-unparser@2.0.0: version "2.0.0" - resolved "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz" + resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA== dependencies: camelcase "^6.0.0" @@ -4304,7 +4262,7 @@ yargs-unparser@2.0.0: yargs@16.2.0: version "16.2.0" - resolved "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== dependencies: cliui "^7.0.2" @@ -4317,10 +4275,10 @@ yargs@16.2.0: yn@3.1.1: version "3.1.1" - resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz" + resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== yocto-queue@^0.1.0: version "0.1.0" - resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" + resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== From 187cd3257df94b241604952ac83ea0302e15b76d Mon Sep 17 00:00:00 2001 From: dung5ire Date: Wed, 21 Aug 2024 14:53:02 +0700 Subject: [PATCH 2/3] chore:format code Signed-off-by: dung5ire --- integration-test-suite/package.json | 15 +- .../tests/esg.pallet.test.ts | 322 +++++++++++------- .../tests/evmBalance.test.ts | 41 +-- integration-test-suite/tests/evmBlock.test.ts | 14 +- .../tests/evmContract.test.ts | 18 +- integration-test-suite/tests/evmFee.test.ts | 29 +- integration-test-suite/tests/evmGas.test.ts | 37 +- integration-test-suite/tests/evmNonce.test.ts | 21 +- integration-test-suite/tests/evmPool.test.ts | 26 +- .../tests/evmRpcConstants.test.ts | 8 +- .../tests/evmSubscription.test.ts | 21 +- integration-test-suite/tests/inkV3.test.ts | 30 +- integration-test-suite/tests/inkV4.test.ts | 23 +- .../tests/nativeTransfer.test.ts | 88 +++-- .../tests/nativeTransferNegative.test.ts | 87 +++-- .../tests/negativeRewardDistribution.test.ts | 36 +- .../tests/nominator.test.ts | 222 +++++++----- .../tests/rewardDistribution.test.ts | 127 ++++--- integration-test-suite/tests/startup.test.ts | 29 +- .../tests/validator.test.ts | 231 ++++++++----- integration-test-suite/utils/constants.ts | 11 +- integration-test-suite/utils/setup.ts | 145 ++++---- integration-test-suite/utils/util.ts | 48 ++- integration-test-suite/yarn.lock | 290 +--------------- 24 files changed, 959 insertions(+), 960 deletions(-) diff --git a/integration-test-suite/package.json b/integration-test-suite/package.json index 5ddcf69f..30996ae0 100644 --- a/integration-test-suite/package.json +++ b/integration-test-suite/package.json @@ -6,29 +6,28 @@ "author": "5irechain", "license": "MIT", "scripts": { - "lint": "eslint . --ext .ts", "test": "mocha 'tests/**/*.test.ts' --exit", "format": "prettier -w '**/*.ts'", "ts-check": "npx tsc --noEmit" }, "dependencies": { "@polkadot/api": "^12.3.1", + "@polkadot/api-contract": "^12.3.1", "@types/chai": "^4.3.0", "@types/mocha": "^9.1.0", - "@polkadot/api-contract": "^12.3.1", "chai": "^4.3.7", - "ecpair": "^1.0.0", "ethers": "^5.5.4", - "ganache": "7.4.1", "mocha": "10.2.0", - "ora": "5", + "mocha-steps": "^1.3.0", "ts-node": "10.8.0", "typescript": "4.5.4", - "web3-utils": "1.7.4", - "web3":"^1.9.0", - "mocha-steps": "^1.3.0" + "web3": "^1.9.0", + "web3-utils": "1.7.4" }, "lint-staged": { "**/*": "prettier --write --ignore-unknown" + }, + "devDependencies": { + "prettier": "^3.3.3" } } diff --git a/integration-test-suite/tests/esg.pallet.test.ts b/integration-test-suite/tests/esg.pallet.test.ts index cfc944b0..4b22a425 100644 --- a/integration-test-suite/tests/esg.pallet.test.ts +++ b/integration-test-suite/tests/esg.pallet.test.ts @@ -1,9 +1,14 @@ import { expect } from "chai"; -import { BLOCK_TIME, alith, baltathar, charleth, dorothy } from "../utils/constants"; +import { + BLOCK_TIME, + alith, + baltathar, + charleth, + dorothy, +} from "../utils/constants"; import { killNodes, polkadotApi as api, spawnNodes } from "../utils/util"; import { KeyringPair } from "@polkadot/keyring/types"; -import {sudoTx, waitForEvent, sleep} from "../utils/setup"; - +import { sudoTx, waitForEvent, sleep } from "../utils/setup"; // This script contains the integration test for the ESG pallet. // ESG pallet is the pallet in 5ire-chain which is responsible to add the esg score and related transactions. @@ -17,7 +22,6 @@ describe("ESG Pallet Integration tests", function () { // Should init it("Should test ESG Pallet", async () => { - // we upload esg score for charleth const esgData = [ { @@ -38,15 +42,20 @@ describe("ESG Pallet Integration tests", function () { await insertEsgScores(baltathar, charleth, jsonData); // wrong json - const esgDataStringWrong = "[{account:\"5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y\"score:\"43\",},]"; + const esgDataStringWrong = + '[{account:"5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y"score:"43",},]'; - await insertEsgScoresFailInvalidJson(baltathar, charleth, JSON.stringify(esgDataStringWrong)); + await insertEsgScoresFailInvalidJson( + baltathar, + charleth, + JSON.stringify(esgDataStringWrong), + ); await insertEsgScoresCallerNotAnOracle(charleth, jsonData); await deRegisterOracle(alith, baltathar); - await registerOracleFailedCallerNotRootOrSudoOracle( baltathar, charleth ); + await registerOracleFailedCallerNotRootOrSudoOracle(baltathar, charleth); await deRegisterOracleForOracleNotExist(alith, charleth); @@ -54,7 +63,10 @@ describe("ESG Pallet Integration tests", function () { await registerNonSudoOracle(alith, baltathar); - await registerOracleFailedOracleRegisteredAlreadyForNonSudo(alith, baltathar); + await registerOracleFailedOracleRegisteredAlreadyForNonSudo( + alith, + baltathar, + ); // Insert ESG Scores by non-sudo user which we inserted in 2nd last step. await insertEsgScores(baltathar, charleth, jsonData); @@ -63,10 +75,8 @@ describe("ESG Pallet Integration tests", function () { after(async () => { await killNodes(); }); - }); - // Register the Bob account as oracle in ESG pallet from ALICE(sudo account). async function registerOracle(alice: KeyringPair, bob: KeyringPair) { console.log(`\n Registering Oracle from sudo account Success `); @@ -79,7 +89,7 @@ async function registerOracle(alice: KeyringPair, bob: KeyringPair) { console.log(`Oracle Registration is ${result.status}`); if (result.status.isInBlock) { console.log( - `Oracle Registration at blockHash ${result.status.asInBlock}` + `Oracle Registration at blockHash ${result.status.asInBlock}`, ); console.log(`Waiting for finalization... (can take a minute)`); } else if (result.status.isFinalized) { @@ -100,21 +110,27 @@ async function registerOracle(alice: KeyringPair, bob: KeyringPair) { async function registerOracleBySudoOracle(bob: KeyringPair, dave: KeyringPair) { console.log(`\n Registering Oracle by the sudo oracle success `); - const transaction = await api.tx.esgScore.registerAnOracle(dave.address, true); + const transaction = await api.tx.esgScore.registerAnOracle( + dave.address, + true, + ); - const unsub = await transaction - .signAndSend(bob, { tip: 200, nonce: -1 }, (result) => { + const unsub = await transaction.signAndSend( + bob, + { tip: 200, nonce: -1 }, + (result) => { console.log(`Oracle Registration is ${result.status}`); if (result.status.isInBlock) { console.log( - `Oracle Registration at blockHash ${result.status.asInBlock}` + `Oracle Registration at blockHash ${result.status.asInBlock}`, ); console.log(`Waiting for finalization... (can take a minute)`); } else if (result.status.isFinalized) { const data = JSON.stringify(result.events); console.log(data); } - }); + }, + ); await waitForEvent(api, "esgScore", "NewOracleRegistered"); const oracleAccounts = await api.query.esgScore.sudoOraclesStore(); @@ -125,58 +141,80 @@ async function registerOracleBySudoOracle(bob: KeyringPair, dave: KeyringPair) { } // Register the Bob account as oracle in ESG pallet failed for non-sudo account. -async function registerOracleFailedCallerNotRootOrSudoOracle( bob: KeyringPair, charlie: KeyringPair) { +async function registerOracleFailedCallerNotRootOrSudoOracle( + bob: KeyringPair, + charlie: KeyringPair, +) { console.log(`\n Registering Oracle fail due to CallerNotRootOrSudoOracle`); - const transaction = await api.tx.esgScore.registerAnOracle(charlie.address, true); + const transaction = await api.tx.esgScore.registerAnOracle( + charlie.address, + true, + ); - const unsub = await transaction - .signAndSend(bob, { tip: 200, nonce: -1 }, (result) => { + const unsub = await transaction.signAndSend( + bob, + { tip: 200, nonce: -1 }, + (result) => { console.log(`Oracle Registration is ${result.status}`); if (result.status.isInBlock) { console.log( - `Oracle Registration at blockHash ${result.status.asInBlock}` + `Oracle Registration at blockHash ${result.status.asInBlock}`, ); console.log(`Waiting for finalization... (can take a minute)`); } else if (result.status.isFinalized) { const data = JSON.stringify(result.events); const dataStr = JSON.parse(data); - const filteredErrorData = dataStr.filter((item: any) => item.event.index === "0x0001"); - expect(filteredErrorData[0].event.data[0].module.error).to.equal("0x08000000"); - console.log(`Error found: ${filteredErrorData[0].event.data[0].module.error}`); - + const filteredErrorData = dataStr.filter( + (item: any) => item.event.index === "0x0001", + ); + expect(filteredErrorData[0].event.data[0].module.error).to.equal( + "0x08000000", + ); + console.log( + `Error found: ${filteredErrorData[0].event.data[0].module.error}`, + ); } - }); + }, + ); await sleep(12000); return true; } // Register the Bob account as oracle in ESG pallet failed for already registered account. -async function registerOracleFailedOracleRegisteredAlready( alice: KeyringPair, bob: KeyringPair) { +async function registerOracleFailedOracleRegisteredAlready( + alice: KeyringPair, + bob: KeyringPair, +) { console.log(`\n Registering Oracle fail due to OracleRegisteredAlready`); const transaction = await api.tx.esgScore.registerAnOracle(bob.address, true); const unsub = await api.tx.sudo - .sudo(transaction.method.toHex()) - .signAndSend(alice, { tip: 200, nonce: -1 }, (result) => { + .sudo(transaction.method.toHex()) + .signAndSend(alice, { tip: 200, nonce: -1 }, (result) => { console.log(`Oracle Registration is ${result.status}`); if (result.status.isInBlock) { console.log( - `Oracle Registration at blockHash ${result.status.asInBlock}` + `Oracle Registration at blockHash ${result.status.asInBlock}`, ); console.log(`Waiting for finalization... (can take a minute)`); } else if (result.status.isFinalized) { const data = JSON.stringify(result.events); - const dataStr = JSON.parse(data) - const filteredErrorData = dataStr.filter((item: any) => item.event.index === "0x1300"); - expect(filteredErrorData[0].event.data[0].err.module.error).to.equal("0x07000000"); - console.log(`Error found: ${filteredErrorData[0].event.data[0].err.module.error}`); - + const dataStr = JSON.parse(data); + const filteredErrorData = dataStr.filter( + (item: any) => item.event.index === "0x1300", + ); + expect(filteredErrorData[0].event.data[0].err.module.error).to.equal( + "0x07000000", + ); + console.log( + `Error found: ${filteredErrorData[0].event.data[0].err.module.error}`, + ); } }); - await sleep(12000); + await sleep(12000); return true; } @@ -185,7 +223,7 @@ async function registerOracleFailedOracleRegisteredAlready( alice: KeyringPair, async function insertEsgScores( bob: KeyringPair, user: KeyringPair, - jsonData: string + jsonData: string, ) { console.log(`\n Inserting ESG Score of the user.`); @@ -198,14 +236,14 @@ async function insertEsgScores( console.log(`Insertion of ESG score is ${result.status}`); if (result.status.isInBlock) { console.log( - `Insertion of ESG score at blockHash ${result.status.asInBlock}` + `Insertion of ESG score at blockHash ${result.status.asInBlock}`, ); console.log(`Waiting for finalization... (can take a minute)`); } else if (result.status.isFinalized) { const data = JSON.stringify(result.events); console.log(data); } - } + }, ); await waitForEvent(api, "esgScore", "ESGStored"); @@ -220,7 +258,7 @@ async function insertEsgScores( async function insertEsgScoresFailInvalidJson( bob: KeyringPair, user: KeyringPair, - jsonData: string + jsonData: string, ) { console.log(`\n Inserting ESG Score of the user fail due to Invalid JSON.`); @@ -233,18 +271,24 @@ async function insertEsgScoresFailInvalidJson( console.log(`Insertion of ESG score is ${result.status}`); if (result.status.isInBlock) { console.log( - `Insertion of ESG score at blockHash ${result.status.asInBlock}` + `Insertion of ESG score at blockHash ${result.status.asInBlock}`, ); console.log(`Waiting for finalization... (can take a minute)`); } else if (result.status.isFinalized) { const data = JSON.stringify(result.events); console.log(data); const dataStr = JSON.parse(data); - const filteredErrorData = dataStr.filter((item: any) => item.event.index === "0x0001"); - expect(filteredErrorData[0].event.data[0].module.error).to.equal("0x02000000"); - console.log(`Error found: ${filteredErrorData[0].event.data[0].module.error}`); + const filteredErrorData = dataStr.filter( + (item: any) => item.event.index === "0x0001", + ); + expect(filteredErrorData[0].event.data[0].module.error).to.equal( + "0x02000000", + ); + console.log( + `Error found: ${filteredErrorData[0].event.data[0].module.error}`, + ); } - } + }, ); await sleep(12000); @@ -254,9 +298,11 @@ async function insertEsgScoresFailInvalidJson( // Insert the ESG scores of the User by non oracle account(Charlie) we added above. async function insertEsgScoresCallerNotAnOracle( charlie: KeyringPair, - jsonData: string + jsonData: string, ) { - console.log(`\n Inserting ESG Score fail of the user due to CallerNotAnOracle.`); + console.log( + `\n Inserting ESG Score fail of the user due to CallerNotAnOracle.`, + ); const transaction = await api.tx.esgScore.upsertEsgScores(jsonData); @@ -267,19 +313,24 @@ async function insertEsgScoresCallerNotAnOracle( console.log(`Insertion of ESG score is ${result.status}`); if (result.status.isInBlock) { console.log( - `Insertion of ESG score at blockHash ${result.status.asInBlock}` + `Insertion of ESG score at blockHash ${result.status.asInBlock}`, ); console.log(`Waiting for finalization... (can take a minute)`); } else if (result.status.isFinalized) { const data = JSON.stringify(result.events); console.log(data); const dataStr = JSON.parse(data); - const filteredErrorData = dataStr.filter((item: any) => item.event.index === "0x0001"); - expect(filteredErrorData[0].event.data[0].module.error).to.equal("0x06000000"); - console.log(`Error found: ${filteredErrorData[0].event.data[0].module.error}`); - + const filteredErrorData = dataStr.filter( + (item: any) => item.event.index === "0x0001", + ); + expect(filteredErrorData[0].event.data[0].module.error).to.equal( + "0x06000000", + ); + console.log( + `Error found: ${filteredErrorData[0].event.data[0].module.error}`, + ); } - } + }, ); await sleep(12000); @@ -293,13 +344,10 @@ async function deRegisterOracle(alice: KeyringPair, bob: KeyringPair) { const existingOracleAccounts = await api.query.esgScore.sudoOraclesStore(); expect(existingOracleAccounts.toString().includes(bob.address.toString())); console.log( - `Account verified in the oracle storage: ${existingOracleAccounts}` + `Account verified in the oracle storage: ${existingOracleAccounts}`, ); - const transaction = api.tx.esgScore.deregisterAnOracle( - bob.address, - true - ); + const transaction = api.tx.esgScore.deregisterAnOracle(bob.address, true); await sudoTx(api, transaction); @@ -312,67 +360,83 @@ async function deRegisterOracle(alice: KeyringPair, bob: KeyringPair) { } // De-Register the Charlie(not a oracle) account as oracle in ESG pallet from ALICE(sudo account). -async function deRegisterOracleForOracleNotExist(alice: KeyringPair, charlie: KeyringPair) { +async function deRegisterOracleForOracleNotExist( + alice: KeyringPair, + charlie: KeyringPair, +) { console.log(`\nDe-Registering Oracle fail due to OracleNotExist`); - const transaction = api.tx.esgScore.deregisterAnOracle( - charlie.address, - true - ); + const transaction = api.tx.esgScore.deregisterAnOracle(charlie.address, true); + + const unsub = await api.tx.sudo + .sudo(transaction.method.toHex()) + .signAndSend(alice, { tip: 200, nonce: -1 }, (result) => { + console.log( + `Oracle De-Registration for OracleNotExist is ${result.status}`, + ); + if (result.status.isInBlock) { + console.log( + `Oracle Registration at blockHash ${result.status.asInBlock}`, + ); + console.log(`Waiting for finalization... (can take a minute)`); + } else if (result.status.isFinalized) { + const data = JSON.stringify(result.events); + console.log(data); + const dataStr = JSON.parse(data); + const filteredErrorData = dataStr.filter( + (item: any) => item.event.index === "0x1300", + ); + expect(filteredErrorData[0].event.data[0].err.module.error).to.equal( + "0x03000000", + ); + console.log( + `Error found: ${filteredErrorData[0].event.data[0].err.module.error}`, + ); + } + }); - const unsub = await api.tx.sudo - .sudo(transaction.method.toHex()) - .signAndSend(alice, { tip: 200, nonce: -1 }, (result) => { - console.log(`Oracle De-Registration for OracleNotExist is ${result.status}`); - if (result.status.isInBlock) { - console.log( - `Oracle Registration at blockHash ${result.status.asInBlock}` - ); - console.log(`Waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - const data = JSON.stringify(result.events); - console.log(data); - const dataStr = JSON.parse(data); - const filteredErrorData = dataStr.filter((item: any) => item.event.index === "0x1300"); - expect(filteredErrorData[0].event.data[0].err.module.error).to.equal("0x03000000"); - console.log(`Error found: ${filteredErrorData[0].event.data[0].err.module.error}`); - } - }); - - await sleep(12000); + await sleep(12000); return true; } // De-Register the charlie account as oracle in ESG pallet from charlie(non sudo account). -async function deRegisterOracleFromBadOrigin(bob: KeyringPair, charlie: KeyringPair) { +async function deRegisterOracleFromBadOrigin( + bob: KeyringPair, + charlie: KeyringPair, +) { console.log(`\nDe-Registering Oracle fail due to FromBadOrigin`); + const transaction = api.tx.esgScore.deregisterAnOracle(charlie.address, true); - const transaction = api.tx.esgScore.deregisterAnOracle( - charlie.address, - true + const unsub = await transaction.signAndSend( + bob, + { tip: 200, nonce: -1 }, + (result) => { + console.log( + `Oracle De-Registration for FromBadOrigin is ${result.status}`, + ); + if (result.status.isInBlock) { + console.log( + `Oracle Registration at blockHash ${result.status.asInBlock}`, + ); + console.log(`Waiting for finalization... (can take a minute)`); + } else if (result.status.isFinalized) { + const data = JSON.stringify(result.events); + console.log(data); + const dataStr = JSON.parse(data); + const filteredErrorData = dataStr.filter( + (item: any) => item.event.index === "0x0001", + ); + expect(filteredErrorData[0].event.data[0].badOrigin === null); + console.log( + `Error found: ${filteredErrorData[0].event.data[0].badOrigin}`, + ); + } + }, ); - const unsub = await transaction - .signAndSend(bob, { tip: 200, nonce: -1 }, (result) => { - console.log(`Oracle De-Registration for FromBadOrigin is ${result.status}`); - if (result.status.isInBlock) { - console.log( - `Oracle Registration at blockHash ${result.status.asInBlock}` - ); - console.log(`Waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - const data = JSON.stringify(result.events); - console.log(data); - const dataStr = JSON.parse(data) - const filteredErrorData = dataStr.filter((item: any) => item.event.index === "0x0001"); - expect(filteredErrorData[0].event.data[0].badOrigin === null); - console.log(`Error found: ${filteredErrorData[0].event.data[0].badOrigin}`); - } - }); - - await sleep(12000); + await sleep(12000); return true; } @@ -381,7 +445,10 @@ async function deRegisterOracleFromBadOrigin(bob: KeyringPair, charlie: KeyringP async function registerNonSudoOracle(alice: KeyringPair, bob: KeyringPair) { console.log(`\n Registering non-sudo Oracle from sudo account Success `); - const transaction = await api.tx.esgScore.registerAnOracle(bob.address, false); + const transaction = await api.tx.esgScore.registerAnOracle( + bob.address, + false, + ); const unsub = await api.tx.sudo .sudo(transaction.method.toHex()) @@ -389,7 +456,7 @@ async function registerNonSudoOracle(alice: KeyringPair, bob: KeyringPair) { console.log(`Oracle Registration is ${result.status}`); if (result.status.isInBlock) { console.log( - `Oracle Registration at blockHash ${result.status.asInBlock}` + `Oracle Registration at blockHash ${result.status.asInBlock}`, ); console.log(`Waiting for finalization... (can take a minute)`); } else if (result.status.isFinalized) { @@ -407,30 +474,43 @@ async function registerNonSudoOracle(alice: KeyringPair, bob: KeyringPair) { } // Register the Bob account as oracle in ESG pallet failed for already registered account. -async function registerOracleFailedOracleRegisteredAlreadyForNonSudo( alice: KeyringPair, bob: KeyringPair) { - console.log(`\n Registering Oracle fail due to OracleRegisteredAlready for non-sudo oracle`); +async function registerOracleFailedOracleRegisteredAlreadyForNonSudo( + alice: KeyringPair, + bob: KeyringPair, +) { + console.log( + `\n Registering Oracle fail due to OracleRegisteredAlready for non-sudo oracle`, + ); - const transaction = await api.tx.esgScore.registerAnOracle(bob.address, false); + const transaction = await api.tx.esgScore.registerAnOracle( + bob.address, + false, + ); const unsub = await api.tx.sudo - .sudo(transaction.method.toHex()) - .signAndSend(alice, { tip: 200, nonce: -1 }, (result) => { + .sudo(transaction.method.toHex()) + .signAndSend(alice, { tip: 200, nonce: -1 }, (result) => { console.log(`Oracle Registration is ${result.status}`); if (result.status.isInBlock) { console.log( - `Oracle Registration at blockHash ${result.status.asInBlock}` + `Oracle Registration at blockHash ${result.status.asInBlock}`, ); console.log(`Waiting for finalization... (can take a minute)`); } else if (result.status.isFinalized) { const data = JSON.stringify(result.events); - const dataStr = JSON.parse(data) - const filteredErrorData = dataStr.filter((item: any) => item.event.index === "0x1300"); - expect(filteredErrorData[0].event.data[0].err.module.error).to.equal("0x07000000"); - console.log(`Error found: ${filteredErrorData[0].event.data[0].err.module.error}`); - + const dataStr = JSON.parse(data); + const filteredErrorData = dataStr.filter( + (item: any) => item.event.index === "0x1300", + ); + expect(filteredErrorData[0].event.data[0].err.module.error).to.equal( + "0x07000000", + ); + console.log( + `Error found: ${filteredErrorData[0].event.data[0].err.module.error}`, + ); } }); - await sleep(12000); + await sleep(12000); return true; -} \ No newline at end of file +} diff --git a/integration-test-suite/tests/evmBalance.test.ts b/integration-test-suite/tests/evmBalance.test.ts index 92dbd0c6..7ecc9fa9 100644 --- a/integration-test-suite/tests/evmBalance.test.ts +++ b/integration-test-suite/tests/evmBalance.test.ts @@ -1,7 +1,7 @@ import Web3 from "web3"; import { BLOCK_TIME, - EXISTENTIAL_DEPOSIT, + EXISTENTIAL_DEPOSIT, GENESIS_ACCOUNT_BALANCE, SECONDS, GENESIS_ACCOUNTS, @@ -38,7 +38,7 @@ describe("EVM related Balance using web3js/ethersjs", function () { maxAttempts: 5, onTimeout: false, }, - }) + }), ); await sleep(20 * SECONDS); }); @@ -46,18 +46,17 @@ describe("EVM related Balance using web3js/ethersjs", function () { await killNodeForTestEVM(); }); step("genesis balance is setup correctly", async function () { - for(let address of GENESIS_ACCOUNTS){ - expect(await web3.eth.getBalance(address)).to.equal(GENESIS_ACCOUNT_BALANCE); + for (let address of GENESIS_ACCOUNTS) { + expect(await web3.eth.getBalance(address)).to.equal( + GENESIS_ACCOUNT_BALANCE, + ); console.log(address + " has expected balance"); - }; + } }); step("balance to be updated after transfer", async function () { this.timeout(40000); - const nonce = await web3.eth.getTransactionCount( - alith.address, - "latest" - ); + const nonce = await web3.eth.getTransactionCount(alith.address, "latest"); const INITIAL_ALICE_BALANCE = await web3.eth.getBalance(alith.address); console.log(INITIAL_ALICE_BALANCE); const gasPrice = await web3.eth.getGasPrice(); @@ -70,7 +69,7 @@ describe("EVM related Balance using web3js/ethersjs", function () { gas: 21000, nonce, }, - ALITH_PRIVATE_KEY + ALITH_PRIVATE_KEY, ); const rep = await customRequest(web3, "eth_sendRawTransaction", [ tx.rawTransaction, @@ -91,15 +90,12 @@ describe("EVM related Balance using web3js/ethersjs", function () { // expectedAliceBalance // ); expect(await web3.eth.getBalance(TEST_ACCOUNT)).to.equal( - expectedTestBalance + expectedTestBalance, ); }); step("gas price too low", async function () { - const nonce = await web3.eth.getTransactionCount( - alith.address, - "latest" - ); + const nonce = await web3.eth.getTransactionCount(alith.address, "latest"); let gasPrice = await web3.eth.getGasPrice(); const tx = await web3.eth.accounts.signTransaction( @@ -111,21 +107,18 @@ describe("EVM related Balance using web3js/ethersjs", function () { gas: "0x100000", nonce: nonce, }, - ALITH_PRIVATE_KEY + ALITH_PRIVATE_KEY, ); let result = await customRequest(web3, "eth_sendRawTransaction", [ tx.rawTransaction, ]); expect(result?.error?.message).to.be.equal( - "gas price less than block base fee" + "gas price less than block base fee", ); }); step("balance insufficient", async function () { - const nonce = await web3.eth.getTransactionCount( - alith.address, - "latest" - ); + const nonce = await web3.eth.getTransactionCount(alith.address, "latest"); let gasPrice = await web3.eth.getGasPrice(); let testAccountBalance = await web3.eth.getBalance(TEST_ACCOUNT); const tx = await web3.eth.accounts.signTransaction( @@ -137,13 +130,13 @@ describe("EVM related Balance using web3js/ethersjs", function () { gas: "0x100000", nonce: nonce, }, - TEST_ACCOUNT_PRIVATE_KEY + TEST_ACCOUNT_PRIVATE_KEY, ); let result = await customRequest(web3, "eth_sendRawTransaction", [ tx.rawTransaction, ]); expect(result?.error?.message).to.be.equal( - "insufficient funds for gas * price + value" + "insufficient funds for gas * price + value", ); }); -}); \ No newline at end of file +}); diff --git a/integration-test-suite/tests/evmBlock.test.ts b/integration-test-suite/tests/evmBlock.test.ts index 4a133ad9..c5eaa01a 100644 --- a/integration-test-suite/tests/evmBlock.test.ts +++ b/integration-test-suite/tests/evmBlock.test.ts @@ -1,7 +1,4 @@ -import { - spawnNodeForTestEVM, - killNodeForTestEVM, -} from "../utils/util"; +import { spawnNodeForTestEVM, killNodeForTestEVM } from "../utils/util"; import { BLOCK_TIME, ETH_BLOCK_GAS_LIMIT, SECONDS } from "../utils/constants"; import { expect } from "chai"; import { step } from "mocha-steps"; @@ -12,7 +9,7 @@ describe("EVM related Block using web3js/ethersjs", function () { before(async () => { await spawnNodeForTestEVM(); - // Create instance web3 + // Create instance web3 web3 = new Web3( new Web3.providers.WebsocketProvider("ws://127.0.0.1:9944", { reconnect: { @@ -21,9 +18,8 @@ describe("EVM related Block using web3js/ethersjs", function () { maxAttempts: 5, onTimeout: false, }, - }) + }), ); - }); after(async () => { @@ -57,7 +53,7 @@ describe("EVM related Block using web3js/ethersjs", function () { const block = await web3.eth.getBlock(0); expect(block.uncles).to.be.a("array").empty; expect(block.sha3Uncles).to.equal( - "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", ); }); @@ -70,7 +66,7 @@ describe("EVM related Block using web3js/ethersjs", function () { transactionsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", }); - } + }, ); step("get block by hash", async function () { const latest_block = await web3.eth.getBlock("latest"); diff --git a/integration-test-suite/tests/evmContract.test.ts b/integration-test-suite/tests/evmContract.test.ts index feea064f..b35d494b 100644 --- a/integration-test-suite/tests/evmContract.test.ts +++ b/integration-test-suite/tests/evmContract.test.ts @@ -34,7 +34,7 @@ describe("EVM related Contract using web3js/ethersjs", function () { maxAttempts: 5, onTimeout: false, }, - }) + }), ); await sleep(20 * SECONDS); }); @@ -62,7 +62,7 @@ describe("EVM related Contract using web3js/ethersjs", function () { gasPrice, gas, }, - ALITH_PRIVATE_KEY + ALITH_PRIVATE_KEY, ); let receipt = await customRequest(web3, "eth_sendRawTransaction", [ @@ -82,7 +82,7 @@ describe("EVM related Contract using web3js/ethersjs", function () { step("call sign transaction the method", async function () { const contract = new web3.eth.Contract(ERC20_ABI, contractAddress, { - from: alith.address + from: alith.address, }); let amountTransfer = web3.utils.toWei("1", "ether"); const data = contract.methods @@ -93,10 +93,9 @@ describe("EVM related Contract using web3js/ethersjs", function () { { to: contractAddress, data, - gas:1000000, - + gas: 1000000, }, - ALITH_PRIVATE_KEY + ALITH_PRIVATE_KEY, ); await customRequest(web3, "eth_sendRawTransaction", [ signedTx.rawTransaction, @@ -104,19 +103,18 @@ describe("EVM related Contract using web3js/ethersjs", function () { await sleep(4 * SECONDS); expect(await contract.methods.balanceOf(TEST_ACCOUNT).call()).to.eq( - amountTransfer + amountTransfer, ); - }); step("call query the method", async function () { const contract = new web3.eth.Contract(ERC20_ABI, contractAddress, { - from: alith.address + from: alith.address, }); let expectedTotalSupply = BigInt(2 ** 256) - BigInt(1); expect(await contract.methods.totalSupply().call()).to.eq( - expectedTotalSupply.toString() + expectedTotalSupply.toString(), ); }); }); diff --git a/integration-test-suite/tests/evmFee.test.ts b/integration-test-suite/tests/evmFee.test.ts index 5c5c98b9..f47400fe 100644 --- a/integration-test-suite/tests/evmFee.test.ts +++ b/integration-test-suite/tests/evmFee.test.ts @@ -10,7 +10,6 @@ import { sleep } from "../utils/setup"; import { expect } from "chai"; let web3: Web3; - describe("EVM related Fee using web3js/ethersjs", function () { this.timeout(100 * BLOCK_TIME); before(async () => { @@ -24,7 +23,7 @@ describe("EVM related Fee using web3js/ethersjs", function () { maxAttempts: 5, onTimeout: false, }, - }) + }), ); await sleep(20 * SECONDS); }); @@ -36,18 +35,22 @@ describe("EVM related Fee using web3js/ethersjs", function () { this.timeout(20000); const gasPrice = await web3.eth.getGasPrice(); - // we configure in runtime + // we configure in runtime expect(BigInt(gasPrice)).to.eq(50000000000n); }); it("Fee History should return error on non-existent blocks", async function () { - this.timeout(100000); - let result = customRequest(web3, "eth_feeHistory", ["0x0", "0x7", []]) - .then(() => { - return Promise.reject({ - message: "Execution succeeded but should have failed", - }); - }) - .catch((err) => expect(err.message).to.equal("Error getting header at BlockId::Number(1)")); - }); -}); \ No newline at end of file + this.timeout(100000); + let result = customRequest(web3, "eth_feeHistory", ["0x0", "0x7", []]) + .then(() => { + return Promise.reject({ + message: "Execution succeeded but should have failed", + }); + }) + .catch((err) => + expect(err.message).to.equal( + "Error getting header at BlockId::Number(1)", + ), + ); + }); +}); diff --git a/integration-test-suite/tests/evmGas.test.ts b/integration-test-suite/tests/evmGas.test.ts index d2c4d4dd..b9261631 100644 --- a/integration-test-suite/tests/evmGas.test.ts +++ b/integration-test-suite/tests/evmGas.test.ts @@ -38,7 +38,7 @@ describe("EVM related Gas using web3js/ethersjs", function () { maxAttempts: 5, onTimeout: false, }, - }) + }), ); await sleep(3 * SECONDS); }); @@ -58,7 +58,7 @@ describe("EVM related Gas using web3js/ethersjs", function () { it("estimate gas for contract call", async function () { const erc20Contract = new web3.eth.Contract( ERC20_ABI, - TEST_CONTRACT_ADDRESS + TEST_CONTRACT_ADDRESS, ); let amount = web3.utils.toWei(TRANSFER_VALUE, "ether"); @@ -99,7 +99,7 @@ describe("EVM related Gas using web3js/ethersjs", function () { gas: ETH_BLOCK_GAS_LIMIT - 1, gasPrice, }, - GENESIS_ACCOUNT_0_PRIVATE_KEY + GENESIS_ACCOUNT_0_PRIVATE_KEY, ); const createReceipt = await customRequest(web3, "eth_sendRawTransaction", [ tx.rawTransaction, @@ -125,7 +125,7 @@ describe("EVM related Gas using web3js/ethersjs", function () { gas: ETH_BLOCK_GAS_LIMIT, gasPrice, }, - GENESIS_ACCOUNT_0_PRIVATE_KEY + GENESIS_ACCOUNT_0_PRIVATE_KEY, ); const createReceipt = await customRequest(web3, "eth_sendRawTransaction", [ tx.rawTransaction, @@ -151,16 +151,17 @@ describe("EVM related Gas using web3js/ethersjs", function () { gas: ETH_BLOCK_GAS_LIMIT + 1, gasPrice, }, - GENESIS_ACCOUNT_0_PRIVATE_KEY + GENESIS_ACCOUNT_0_PRIVATE_KEY, ); const createReceipt = await customRequest(web3, "eth_sendRawTransaction", [ tx.rawTransaction, ]); - expect((createReceipt as any).error.message).to.equal("exceeds block gas limit"); + expect((createReceipt as any).error.message).to.equal( + "exceeds block gas limit", + ); }); - + it("EVM related Invalid opcode Estimate Gas using web3js/ethersjs", async function () { - const tx = await web3.eth.accounts.signTransaction( { from: GENESIS_ACCOUNTS[0], @@ -168,19 +169,21 @@ describe("EVM related Gas using web3js/ethersjs", function () { value: "0x00", gas: "0x100000", }, - GENESIS_ACCOUNT_0_PRIVATE_KEY + GENESIS_ACCOUNT_0_PRIVATE_KEY, ); - const txHash = await customRequest(web3, "eth_sendRawTransaction", [tx.rawTransaction]); + const txHash = await customRequest(web3, "eth_sendRawTransaction", [ + tx.rawTransaction, + ]); await sleep(3000); - contractAddess = (await web3.eth.getTransactionReceipt(txHash.result)).contractAddress; + contractAddess = (await web3.eth.getTransactionReceipt(txHash.result)) + .contractAddress; expect(contractAddess).to.not.null; let estimate = await web3.eth.estimateGas({ - from: GENESIS_ACCOUNTS[0], - to: contractAddess, - data: "0x28b5e32b", // selector for the contract's `call` method - }); - expect(estimate).to.equal(85699); + from: GENESIS_ACCOUNTS[0], + to: contractAddess, + data: "0x28b5e32b", // selector for the contract's `call` method + }); + expect(estimate).to.equal(85699); }); - }); diff --git a/integration-test-suite/tests/evmNonce.test.ts b/integration-test-suite/tests/evmNonce.test.ts index caf349f0..d415173f 100644 --- a/integration-test-suite/tests/evmNonce.test.ts +++ b/integration-test-suite/tests/evmNonce.test.ts @@ -23,7 +23,6 @@ const TEST_ACCOUNT_PRIVATE_KEY = const TRANFER_VALUE = "1"; // 1 5IRE must be higher than ExistentialDeposit //const GAS_PRICE = "0x3B9ACA00"; // 1000000000 - describe("EVM related Nonce using web3js/ethersjs", function () { this.timeout(100 * BLOCK_TIME); before(async () => { @@ -37,7 +36,7 @@ describe("EVM related Nonce using web3js/ethersjs", function () { maxAttempts: 5, onTimeout: false, }, - }) + }), ); await sleep(3 * SECONDS); }); @@ -48,9 +47,9 @@ describe("EVM related Nonce using web3js/ethersjs", function () { step("get nonce", async function () { this.timeout(20000); - expect( - await web3.eth.getTransactionCount(alith.address, "latest") - ).to.eq(0); + expect(await web3.eth.getTransactionCount(alith.address, "latest")).to.eq( + 0, + ); const gasPrice = await web3.eth.getGasPrice(); const tx = await web3.eth.accounts.signTransaction( { @@ -60,15 +59,15 @@ describe("EVM related Nonce using web3js/ethersjs", function () { gasPrice: web3.utils.toHex(gasPrice), gas: "0x100000", }, - ALITH_PRIVATE_KEY + ALITH_PRIVATE_KEY, ); const rep = await customRequest(web3, "eth_sendRawTransaction", [ tx.rawTransaction, ]); await sleep(3 * SECONDS); - expect( - await web3.eth.getTransactionCount(alith.address, "latest") - ).to.eq(1); + expect(await web3.eth.getTransactionCount(alith.address, "latest")).to.eq( + 1, + ); }); step("stalled nonce", async function () { @@ -82,11 +81,11 @@ describe("EVM related Nonce using web3js/ethersjs", function () { gas: "0x100000", nonce: 0, }, - ALITH_PRIVATE_KEY + ALITH_PRIVATE_KEY, ); let result = await customRequest(web3, "eth_sendRawTransaction", [ tx.rawTransaction, ]); expect(result?.error?.message).to.be.equal("nonce too low"); }); -}); \ No newline at end of file +}); diff --git a/integration-test-suite/tests/evmPool.test.ts b/integration-test-suite/tests/evmPool.test.ts index 8d062353..8590d960 100644 --- a/integration-test-suite/tests/evmPool.test.ts +++ b/integration-test-suite/tests/evmPool.test.ts @@ -34,7 +34,7 @@ describe("EVM related Pool using web3js/ethersjs", function () { maxAttempts: 5, onTimeout: false, }, - }) + }), ); const erc20Contract = new web3.eth.Contract(ERC20_ABI); @@ -55,10 +55,10 @@ describe("EVM related Pool using web3js/ethersjs", function () { gasPrice, gas, }, - GENESIS_ACCOUNT_0_PRIVATE_KEY + GENESIS_ACCOUNT_0_PRIVATE_KEY, ); const receipt = await web3.eth.sendSignedTransaction( - txSign.rawTransaction as string + txSign.rawTransaction as string, ); await sleep(1 * SECONDS); contractAddress = receipt.contractAddress || ""; @@ -88,8 +88,8 @@ describe("EVM related Pool using web3js/ethersjs", function () { // we intentionally set gas too low gas: 2000, }, - GENESIS_ACCOUNT_0_PRIVATE_KEY - ) + GENESIS_ACCOUNT_0_PRIVATE_KEY, + ), ).to.throw; }); @@ -103,7 +103,7 @@ describe("EVM related Pool using web3js/ethersjs", function () { 21000, web3.utils.toHex(gasPrice), nonce, - GENESIS_ACCOUNT_0_PRIVATE_KEY + GENESIS_ACCOUNT_0_PRIVATE_KEY, ); await web3.eth.sendSignedTransaction(tx.rawTransaction as string); let result = await customRequest(web3, "eth_sendRawTransaction", [ @@ -115,7 +115,7 @@ describe("EVM related Pool using web3js/ethersjs", function () { it("EVM RPC pool error - exceeds block gas limit", async function () { const nonce = await web3.eth.getTransactionCount( GENESIS_ACCOUNTS[0], - "latest" + "latest", ); let gasPriceTx = web3.utils.toWei("15", "gwei"); let tx = await createRawTransferLegacy( @@ -125,7 +125,7 @@ describe("EVM related Pool using web3js/ethersjs", function () { 10_000_000_000, web3.utils.toHex(gasPriceTx), nonce, - GENESIS_ACCOUNT_0_PRIVATE_KEY + GENESIS_ACCOUNT_0_PRIVATE_KEY, ); let result = await customRequest(web3, "eth_sendRawTransaction", [ @@ -137,7 +137,7 @@ describe("EVM related Pool using web3js/ethersjs", function () { it("EVM RPC pool error - max priority fee per gas higher than max fee per gas", async function () { const nonce = await web3.eth.getTransactionCount( GENESIS_ACCOUNTS[0], - "latest" + "latest", ); // Throw: maxFeePerGas cannot be less than maxPriorityFeePerGas @@ -150,8 +150,8 @@ describe("EVM related Pool using web3js/ethersjs", function () { 100_000_000_000, 200_000_000_000, nonce, - GENESIS_ACCOUNT_0_PRIVATE_KEY - ) + GENESIS_ACCOUNT_0_PRIVATE_KEY, + ), ).Throw; }); }); @@ -163,7 +163,7 @@ async function createRawTransferLegacy( gas: number, gasPrice: string, nonce: number, - privateKey: string + privateKey: string, ): Promise { return new Promise((resolve, reject) => { const transaction = { @@ -190,7 +190,7 @@ async function createRawTransferEIP1559( maxFeePerGas: number, maxPriorityFeePerGas: number, nonce: number, - privateKey: string + privateKey: string, ): Promise { return new Promise((resolve, reject) => { const transaction = { diff --git a/integration-test-suite/tests/evmRpcConstants.test.ts b/integration-test-suite/tests/evmRpcConstants.test.ts index cc8d0d3b..1d61f1c5 100644 --- a/integration-test-suite/tests/evmRpcConstants.test.ts +++ b/integration-test-suite/tests/evmRpcConstants.test.ts @@ -1,9 +1,6 @@ import Web3 from "web3"; import { BLOCK_TIME, CHAIN_ID, SECONDS } from "../utils/constants"; -import { - killNodeForTestEVM, - spawnNodeForTestEVM, -} from "../utils/util"; +import { killNodeForTestEVM, spawnNodeForTestEVM } from "../utils/util"; import { sleep } from "../utils/setup"; import { expect } from "chai"; @@ -23,7 +20,7 @@ describe("EVM related RPC Constants using web3js/ethersjs", function () { maxAttempts: 5, onTimeout: false, }, - }) + }), ); await sleep(40 * SECONDS); }); @@ -42,5 +39,4 @@ describe("EVM related RPC Constants using web3js/ethersjs", function () { it("should have no account", async function () { expect(await web3.eth.getAccounts()).to.eql([]); }); - }); diff --git a/integration-test-suite/tests/evmSubscription.test.ts b/integration-test-suite/tests/evmSubscription.test.ts index 6f507c1f..5c9294b8 100644 --- a/integration-test-suite/tests/evmSubscription.test.ts +++ b/integration-test-suite/tests/evmSubscription.test.ts @@ -1,7 +1,12 @@ import { expect } from "chai"; import { step } from "mocha-steps"; import Web3 from "web3"; -import { ALITH_PRIVATE_KEY, BLOCK_TIME, SECONDS, alith } from "../utils/constants"; +import { + ALITH_PRIVATE_KEY, + BLOCK_TIME, + SECONDS, + alith, +} from "../utils/constants"; import { customRequest, killNodeForTestEVM, @@ -14,8 +19,6 @@ let web3: Web3; const ERC20_ABI = require("./contracts/MyToken.json").abi; const ERC20_BYTECODES = require("./contracts/MyToken.json").bytecode; - - async function sendTransaction(web3: Web3) { const erc20Contract = new web3.eth.Contract(ERC20_ABI); @@ -35,7 +38,7 @@ async function sendTransaction(web3: Web3) { gasPrice, gas, }, - ALITH_PRIVATE_KEY + ALITH_PRIVATE_KEY, ); await customRequest(web3, "eth_sendRawTransaction", [tx.rawTransaction]); return tx; @@ -57,7 +60,7 @@ describe("EVM related Subscription using web3js/ethersjs", function () { maxAttempts: 5, onTimeout: false, }, - }) + }), ); await sleep(40 * SECONDS); }); @@ -74,7 +77,7 @@ describe("EVM related Subscription using web3js/ethersjs", function () { step("should subscribe", async function () { subscription = web3.eth.subscribe( "newBlockHeaders", - function (error, result) {} + function (error, result) {}, ); let connected = false; @@ -95,7 +98,7 @@ describe("EVM related Subscription using web3js/ethersjs", function () { step("should get newHeads stream", async function (done) { subscription = web3.eth.subscribe( "newBlockHeaders", - function (error, result) {} + function (error, result) {}, ); let data = null; let dataResolve: any = null; @@ -114,7 +117,7 @@ describe("EVM related Subscription using web3js/ethersjs", function () { step("should get newPendingTransactions stream", async function (done) { subscription = web3.eth.subscribe( "pendingTransactions", - function (error, result) {} + function (error, result) {}, ); await new Promise((resolve) => { @@ -177,4 +180,4 @@ describe("EVM related Subscription using web3js/ethersjs", function () { }); done(); }).timeout(20000); -}); \ No newline at end of file +}); diff --git a/integration-test-suite/tests/inkV3.test.ts b/integration-test-suite/tests/inkV3.test.ts index cb1cbe8b..8ce4733c 100644 --- a/integration-test-suite/tests/inkV3.test.ts +++ b/integration-test-suite/tests/inkV3.test.ts @@ -60,7 +60,7 @@ const deployContract = async () => { tokenSupply, tokenName, tokenSymbol, - tokenDecimal + tokenDecimal, ); let address: string; @@ -80,7 +80,7 @@ const deployContract = async () => { console.log(`error occurred ${dispatchError}`); reject(dispatchError); } - } + }, ); }); @@ -96,11 +96,11 @@ const deployContract = async () => { const executeContract = async () => { const refTime = polkadotApi.registry.createType( "Compact", - BigInt(10000000000) + BigInt(10000000000), ); const proofSize = polkadotApi.registry.createType( "Compact", - BigInt(10000000000) + BigInt(10000000000), ); const gasLimitForCallAndQuery = polkadotApi.registry.createType( @@ -108,14 +108,14 @@ const executeContract = async () => { { refTime: refTime, proofSize: proofSize, - } + }, ); const storageDepositLimitForCallAndQuery = null; const contract = new ContractPromise( polkadotApi, contractAbi, - contractAddress + contractAddress, ); const res1 = await contract.query["psp22::balanceOf"]( alith.publicKey, @@ -124,7 +124,7 @@ const executeContract = async () => { gasLimit: gasLimitForCallAndQuery, storageDepositLimit: storageDepositLimitForCallAndQuery, }, - baltathar.publicKey + baltathar.publicKey, ); expect(res1.output?.eq(0)).true; @@ -138,7 +138,7 @@ const executeContract = async () => { }, baltathar.publicKey, 400, - [] + [], ); console.log(`trying to execute transaction`); @@ -149,24 +149,24 @@ const executeContract = async () => { console.log(`execute contract transfer transaction is ${result.status}`); if (result.status.isInBlock) { console.log( - `execute contract transfer transaction included at blockHash ${result.status.asInBlock}` + `execute contract transfer transaction included at blockHash ${result.status.asInBlock}`, ); console.log( - `execute contract transfer transaction waiting for finalization... (can take a minute)` + `execute contract transfer transaction waiting for finalization... (can take a minute)`, ); } else if (result.status.isFinalized) { console.log( - `execute contract transfer transaction events are ${result.events.length}` + `execute contract transfer transaction events are ${result.events.length}`, ); console.log( - `execute contract transfer transaction finalized at blockHash ${result.status.asFinalized}` + `execute contract transfer transaction finalized at blockHash ${result.status.asFinalized}`, ); result.events.forEach(({ event: { data, method, section }, phase }) => { console.log("\t", phase.toString(), `: ${section}.${method}`); }); unsub(); } - } + }, ); // await waitForEvent(polkadotApi, "contracts", "ExtrinsicSuccess"); await waitNfinalizedBlocks(polkadotApi, 4, 60000); @@ -178,11 +178,11 @@ const executeContract = async () => { gasLimit: gasLimitForCallAndQuery, storageDepositLimit: storageDepositLimitForCallAndQuery, }, - baltathar.publicKey + baltathar.publicKey, ); // Expect Bobs balance to have increased // @ts-ignore expect(res2.output?.toHuman() > res1.output?.toHuman()).true; expect(res2.output?.eq(TOKEN_AMT)).true; -}; \ No newline at end of file +}; diff --git a/integration-test-suite/tests/inkV4.test.ts b/integration-test-suite/tests/inkV4.test.ts index ff81edf2..cc458c00 100644 --- a/integration-test-suite/tests/inkV4.test.ts +++ b/integration-test-suite/tests/inkV4.test.ts @@ -17,7 +17,6 @@ describe("Wasm test with new ink! version 4", function () { it("Should deploy/interact/query a counter wasm contract to 5ire chain", async () => { console.log("Beginning deploying counter wasm contract"); - const gasLimit = polkadotApi.registry.createType("WeightV2", { refTime: 5908108255, proofSize: BigInt(131072), @@ -35,7 +34,7 @@ describe("Wasm test with new ink! version 4", function () { contractFileString, wasm, gasLimit, - storageDepositLimit + storageDepositLimit, ); console.log("Address:", contractAddress); await waitForEvent(polkadotApi, "contracts", "Instantiated"); @@ -47,7 +46,7 @@ describe("Wasm test with new ink! version 4", function () { contractFileString, contractAddress, gasLimit, - storageDepositLimit + storageDepositLimit, ); // Before trigger inc function // count should be 0 @@ -64,7 +63,7 @@ describe("Wasm test with new ink! version 4", function () { contractFileString, contractAddress, gasLimit, - storageDepositLimit + storageDepositLimit, ); // wait for contract called event @@ -77,7 +76,7 @@ describe("Wasm test with new ink! version 4", function () { contractFileString, contractAddress, gasLimit, - storageDepositLimit + storageDepositLimit, ); // After trigger inc function // count should be 1 @@ -97,7 +96,7 @@ const deployContract = async ( contractFile: string, contractWasm: string, gasLimit: WeightV2, - storageDepositLimit: any + storageDepositLimit: any, ) => { // convert contract json file into usable contract ABI //let contractAbi = new Abi(contractFile, api?.registry?.getChainProperties()); @@ -108,7 +107,7 @@ const deployContract = async ( const tx = code.tx.new( { gasLimit: gasLimit, storageDepositLimit: storageDepositLimit }, - initValue + initValue, ); let address: string; @@ -129,7 +128,7 @@ const deployContract = async ( } expect(address).not.null; - } + }, ); }); @@ -142,7 +141,7 @@ const incTransaction = async ( contractFile: string, contractAddress: string, gasLimit: WeightV2, - storageDepositLimit: any + storageDepositLimit: any, ) => { console.log("Begin triggering inc transaction smart contract"); // convert contract json file into usable contract ABI @@ -162,7 +161,7 @@ const incTransaction = async ( if (result.status.isInBlock || result.status.isFinalized) { console.log("Block finalized"); } - } + }, ); }; @@ -172,7 +171,7 @@ const queryTransaction = async ( contractFile: string, contractAddress: string, gasLimit: WeightV2, - storageDepositLimit: any + storageDepositLimit: any, ) => { console.log("Begin querying smart contract"); @@ -190,4 +189,4 @@ const queryTransaction = async ( let value = output?.toHuman(); return value; -}; \ No newline at end of file +}; diff --git a/integration-test-suite/tests/nativeTransfer.test.ts b/integration-test-suite/tests/nativeTransfer.test.ts index 676fe7a4..8b6ea736 100644 --- a/integration-test-suite/tests/nativeTransfer.test.ts +++ b/integration-test-suite/tests/nativeTransfer.test.ts @@ -1,11 +1,14 @@ -import { expect } from 'chai'; -import { BLOCK_TIME, alith, baltathar } from '../utils/constants'; -import {killNodes, polkadotApi as api, polkadotApi, spawnNodes} from "../utils/util"; -import {waitForEvent} from "../utils/setup"; +import { expect } from "chai"; +import { BLOCK_TIME, alith, baltathar } from "../utils/constants"; +import { + killNodes, + polkadotApi as api, + polkadotApi, + spawnNodes, +} from "../utils/util"; +import { waitForEvent } from "../utils/setup"; - - -describe('Native token tests', function () { +describe("Native token tests", function () { this.timeout(300 * BLOCK_TIME); // 4 session. this.slow(40 * BLOCK_TIME); @@ -15,52 +18,69 @@ describe('Native token tests', function () { }); // Should transfer native token - it('Should transfer native tokens', async () => { - - + it("Should transfer native tokens", async () => { // Retrieve the account balance & nonce for Alice // @ts-ignore - const { nonce: aliceInitialNonce, data: aliceInitialBalance } = await polkadotApi.query.system.account(alith.address); + const { nonce: aliceInitialNonce, data: aliceInitialBalance } = + await polkadotApi.query.system.account(alith.address); // Retrieve the account balance & nonce for Bob // @ts-ignore - const { nonce: bobInitialNonce, data: bobInitialBalance } = await polkadotApi.query.system.account(baltathar.address); + const { nonce: bobInitialNonce, data: bobInitialBalance } = + await polkadotApi.query.system.account(baltathar.address); // assert that alice initial balance is same as bob initial balance - expect(aliceInitialBalance.free.toBigInt() == bobInitialBalance.free.toBigInt()).true; + expect( + aliceInitialBalance.free.toBigInt() == bobInitialBalance.free.toBigInt(), + ).true; // Create a extrinsic, transferring 12345 units to Bob - const amount = polkadotApi.createType('Balance', '900000000000000000000'); - const transaction = polkadotApi.tx.balances.transfer(baltathar.address, amount); + const amount = polkadotApi.createType("Balance", "900000000000000000000"); + const transaction = polkadotApi.tx.balances.transfer( + baltathar.address, + amount, + ); - const transfer = new Promise<{ block: string, address: string }>(async (resolve, reject) => { - const unsub = await transaction.signAndSend(alith, {tip: 200, nonce: -1}, (result) => { - console.log(`transfer is ${result.status}`); - if (result.status.isInBlock) { - console.log(`transfer included at blockHash ${result.status.asInBlock}`); - console.log(`Waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - console.log( `events are ${result.events}`) - console.log(`Transfer finalized at blockHash ${result.status.asFinalized}`); - unsub(); - } - }); - }); + const transfer = new Promise<{ block: string; address: string }>( + async (resolve, reject) => { + const unsub = await transaction.signAndSend( + alith, + { tip: 200, nonce: -1 }, + (result) => { + console.log(`transfer is ${result.status}`); + if (result.status.isInBlock) { + console.log( + `transfer included at blockHash ${result.status.asInBlock}`, + ); + console.log(`Waiting for finalization... (can take a minute)`); + } else if (result.status.isFinalized) { + console.log(`events are ${result.events}`); + console.log( + `Transfer finalized at blockHash ${result.status.asFinalized}`, + ); + unsub(); + } + }, + ); + }, + ); - await waitForEvent(api, 'balances', 'Transfer'); + await waitForEvent(api, "balances", "Transfer"); // @ts-ignore - const { nonce: aliceNonce, data: aliceBalance } = await polkadotApi.query.system.account(alith.address); + const { nonce: aliceNonce, data: aliceBalance } = + await polkadotApi.query.system.account(alith.address); // Retrieve the account balance & nonce for Bob // @ts-ignore - const { nonce: bobNonce, data: bobBalance } = await polkadotApi.query.system.account(baltathar.address); - expect(aliceInitialBalance.free.toBigInt() > aliceBalance.free.toBigInt()).true; + const { nonce: bobNonce, data: bobBalance } = + await polkadotApi.query.system.account(baltathar.address); + expect(aliceInitialBalance.free.toBigInt() > aliceBalance.free.toBigInt()) + .true; expect(bobInitialBalance.free.toBigInt() < bobBalance.free.toBigInt()).true; expect(bobBalance.free.toBigInt() > aliceBalance.free.toBigInt()).true; }); - after(async () => { await killNodes(); }); -}); \ No newline at end of file +}); diff --git a/integration-test-suite/tests/nativeTransferNegative.test.ts b/integration-test-suite/tests/nativeTransferNegative.test.ts index 699639ca..7ab87d17 100644 --- a/integration-test-suite/tests/nativeTransferNegative.test.ts +++ b/integration-test-suite/tests/nativeTransferNegative.test.ts @@ -1,9 +1,13 @@ -import { expect } from 'chai'; -import { BLOCK_TIME, alith, baltathar } from '../utils/constants'; -import {killNodes, polkadotApi as api, polkadotApi, spawnNodes} from "../utils/util"; +import { expect } from "chai"; +import { BLOCK_TIME, alith, baltathar } from "../utils/constants"; +import { + killNodes, + polkadotApi as api, + polkadotApi, + spawnNodes, +} from "../utils/util"; - -describe('Negative Native token tests', function () { +describe("Negative Native token tests", function () { this.timeout(300 * BLOCK_TIME); // 4 session. this.slow(40 * BLOCK_TIME); @@ -12,47 +16,64 @@ describe('Negative Native token tests', function () { await spawnNodes(); }); - it('Insufficient Balance while transferring native token', async () => { - - + it("Insufficient Balance while transferring native token", async () => { // Retrieve the account balance & nonce for Alice // @ts-ignore - const { nonce: aliceInitialNonce, data: aliceInitialBalance } = await polkadotApi.query.system.account(alith.address); + const { nonce: aliceInitialNonce, data: aliceInitialBalance } = + await polkadotApi.query.system.account(alith.address); // Retrieve the account balance & nonce for Bob // @ts-ignore - const { nonce: bobInitialNonce, data: bobInitialBalance } = await polkadotApi.query.system.account(baltathar.address); + const { nonce: bobInitialNonce, data: bobInitialBalance } = + await polkadotApi.query.system.account(baltathar.address); // assert that alice initial balance is same as bob initial balance - console.log("Alice Initial Balance:", aliceInitialBalance.free.toBigInt() ); + console.log("Alice Initial Balance:", aliceInitialBalance.free.toBigInt()); console.log("Bob's Initial Balance:", bobInitialBalance.free.toBigInt()); //expect(aliceInitialBalance.free.toBigInt() == bobInitialBalance.free.toBigInt()).true; // Create a extrinsic, transferring 12345 units to Bob - const amount = polkadotApi.createType('Balance', '90000000000000000000000000000'); - const transaction = polkadotApi.tx.balances.transfer(baltathar.address, amount); + const amount = polkadotApi.createType( + "Balance", + "90000000000000000000000000000", + ); + const transaction = polkadotApi.tx.balances.transfer( + baltathar.address, + amount, + ); const transfer = new Promise<{ block: string }>(async (resolve, reject) => { - const unsub = await transaction.signAndSend(alith, {tip: 200, nonce: -1}, (result) => { - console.log(`transfer is ${result.status}`); - if (result.status.isInBlock) { - console.log(`transfer included at blockHash ${result.status.asInBlock}`); - console.log(`Waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - console.log( `events are ${result.events}`) - console.log(`Transfer finalized at blockHash ${result.status.asFinalized}`); + const unsub = await transaction.signAndSend( + alith, + { tip: 200, nonce: -1 }, + (result) => { + console.log(`transfer is ${result.status}`); + if (result.status.isInBlock) { + console.log( + `transfer included at blockHash ${result.status.asInBlock}`, + ); + console.log(`Waiting for finalization... (can take a minute)`); + } else if (result.status.isFinalized) { + console.log(`events are ${result.events}`); + console.log( + `Transfer finalized at blockHash ${result.status.asFinalized}`, + ); - const data = JSON.stringify(result.events); - const dataStr = JSON.parse(data); + const data = JSON.stringify(result.events); + const dataStr = JSON.parse(data); - const filteredData = dataStr.filter((item: any) => item.event.index === "0x0001"); - //expect(filteredData[0].event.data[0].module.index == 6).true; //EVM - expect(filteredData[0].event.data[0].arithmetic == 'Underflow').true; //Insufficient Balance, index 5 + const filteredData = dataStr.filter( + (item: any) => item.event.index === "0x0001", + ); + //expect(filteredData[0].event.data[0].module.index == 6).true; //EVM + expect(filteredData[0].event.data[0].arithmetic == "Underflow") + .true; //Insufficient Balance, index 5 - unsub(); - resolve({ - block: result.status.asFinalized.toString(), - }); - } - }); + unsub(); + resolve({ + block: result.status.asFinalized.toString(), + }); + } + }, + ); }); return transfer; @@ -61,4 +82,4 @@ describe('Negative Native token tests', function () { after(async () => { await killNodes(); }); -}); \ No newline at end of file +}); diff --git a/integration-test-suite/tests/negativeRewardDistribution.test.ts b/integration-test-suite/tests/negativeRewardDistribution.test.ts index 60b50207..7d137877 100644 --- a/integration-test-suite/tests/negativeRewardDistribution.test.ts +++ b/integration-test-suite/tests/negativeRewardDistribution.test.ts @@ -10,7 +10,6 @@ import { Keyring } from "@polkadot/api"; import { KeyringPair } from "@polkadot/keyring/types"; import { waitForEvent, waitNfinalizedBlocks } from "../utils/setup"; - // We should test within 5 eras ( 200 blocks) describe("Negative Reward Distribution tests", function () { @@ -21,15 +20,13 @@ describe("Negative Reward Distribution tests", function () { }); it("Negative test Reward Distribution with NoSuchValidator ", async () => { - // wait to new era await waitNfinalizedBlocks(polkadotApi, 45, 1000); - // Payout fail with invalid validator + // Payout fail with invalid validator await payoutInValidValidator(baltathar); - - await waitNfinalizedBlocks(polkadotApi, 2, 1000); + await waitNfinalizedBlocks(polkadotApi, 2, 1000); }); it("Negative test Reward Distribution with Already Claimed ", async () => { @@ -51,7 +48,6 @@ describe("Negative Reward Distribution tests", function () { }); }); - // Payout Transaction // alice : stash account // alice_stash : controller account @@ -68,19 +64,19 @@ async function payoutSuccess(alith: KeyringPair) { console.log(`Payout transaction is ${result.status}`); if (result.status.isInBlock) { console.log( - `Payout Transaction included at blockHash ${result.status.asInBlock}` + `Payout Transaction included at blockHash ${result.status.asInBlock}`, ); console.log(`Waiting for finalization... (can take a minute)`); } else if (result.status.isFinalized) { unsub(); resolve({}); } - } + }, ); }); } -// Alice is is not validator +// Alice is is not validator async function payoutInValidValidator(baltathar: KeyringPair) { console.log(`\n Payout InValid Validator`); const payout = await api.tx.reward.getRewards(baltathar.address); @@ -93,7 +89,7 @@ async function payoutInValidValidator(baltathar: KeyringPair) { console.log(`Payout transaction is ${result.status}`); if (result.status.isInBlock) { console.log( - `Payout Transaction included at blockHash ${result.status.asInBlock}` + `Payout Transaction included at blockHash ${result.status.asInBlock}`, ); console.log(`Waiting for finalization... (can take a minute)`); } else if (result.status.isFinalized) { @@ -101,24 +97,22 @@ async function payoutInValidValidator(baltathar: KeyringPair) { const dataStr = JSON.parse(data); if (result.dispatchError) { const filteredData = dataStr.filter( - (item: any) => item.event.index === "0x0001" + (item: any) => item.event.index === "0x0001", ); expect(filteredData[0].event.data[0].module.error).to.equal( - "0x00000000" + "0x00000000", ); // NoSuchValidator } unsub(); resolve({}); } - } + }, ); }); } -async function payoutAlreadyClaimed( - alith: KeyringPair, -) { +async function payoutAlreadyClaimed(alith: KeyringPair) { console.log(`\n Payout fail due to AlreadyClaimed`); const payout = await api.tx.reward.getRewards(alith.address); @@ -130,7 +124,7 @@ async function payoutAlreadyClaimed( console.log(`Payout transaction is ${result.status}`); if (result.status.isInBlock) { console.log( - `Payout Transaction included at blockHash ${result.status.asInBlock}` + `Payout Transaction included at blockHash ${result.status.asInBlock}`, ); console.log(`Waiting for finalization... (can take a minute)`); } else if (result.status.isFinalized) { @@ -138,18 +132,18 @@ async function payoutAlreadyClaimed( const dataStr = JSON.parse(data); if (result.dispatchError) { const filteredData = dataStr.filter( - (item: any) => item.event.index === "0x0001" + (item: any) => item.event.index === "0x0001", ); expect(filteredData[0].event.data[0].module.error).to.equal( - "0x00000000" + "0x00000000", ); // AlreadyClaimed } unsub(); resolve({}); } - } + }, ); }); -} \ No newline at end of file +} diff --git a/integration-test-suite/tests/nominator.test.ts b/integration-test-suite/tests/nominator.test.ts index c514fd65..1d12c21a 100644 --- a/integration-test-suite/tests/nominator.test.ts +++ b/integration-test-suite/tests/nominator.test.ts @@ -1,11 +1,10 @@ -import { expect } from 'chai'; -import { BLOCK_TIME, alith, charleth } from '../utils/constants'; -import {killNodes, polkadotApi, spawnNodes} from "../utils/util"; -import {Keyring} from "@polkadot/api"; -import {sleep, waitForEvent, waitNfinalizedBlocks} from "../utils/setup"; +import { expect } from "chai"; +import { BLOCK_TIME, alith, charleth } from "../utils/constants"; +import { killNodes, polkadotApi, spawnNodes } from "../utils/util"; +import { Keyring } from "@polkadot/api"; +import { sleep, waitForEvent, waitNfinalizedBlocks } from "../utils/setup"; - -describe('Nominator tests', function () { +describe("Nominator tests", function () { this.timeout(300 * BLOCK_TIME); // 4 session. this.slow(40 * BLOCK_TIME); @@ -15,104 +14,167 @@ describe('Nominator tests', function () { }); // Should stake to become a nominator - it('Should stake to become a nominator', async () => { - - - const initialValidatorsNominated = await polkadotApi.query.staking.nominators(charleth.address); - console.log(JSON.stringify(initialValidatorsNominated.toHuman())) + it("Should stake to become a nominator", async () => { + const initialValidatorsNominated = + await polkadotApi.query.staking.nominators(charleth.address); + console.log(JSON.stringify(initialValidatorsNominated.toHuman())); // @ts-ignore expect(initialValidatorsNominated.toHuman() == null).true; - const controller = polkadotApi.registry.createType("PalletStakingRewardDestination", "Staked"); + const controller = polkadotApi.registry.createType( + "PalletStakingRewardDestination", + "Staked", + ); - const amount = polkadotApi.createType('Balance', '900000000000000000000'); + const amount = polkadotApi.createType("Balance", "900000000000000000000"); let bondValidator = polkadotApi.tx.staking.bond(amount, controller); - const bondValidatorTransaction = new Promise<{ block: string, address: string }>(async (resolve, reject) => { - const unsub = await bondValidator.signAndSend(charleth, {tip: 200, nonce: -1}, (result) => { - console.log(`bond nominator transaction is ${result.status}`); - if (result.status.isInBlock) { - console.log(`bond nominator transaction included at blockHash ${result.status.asInBlock}`); - console.log(`bond nominator transaction waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - console.log( `bond nominator transaction events are ${result.events}`) - console.log(`bond nominator transaction finalized at blockHash ${result.status.asFinalized}`); - unsub(); - } - }); + const bondValidatorTransaction = new Promise<{ + block: string; + address: string; + }>(async (resolve, reject) => { + const unsub = await bondValidator.signAndSend( + charleth, + { tip: 200, nonce: -1 }, + (result) => { + console.log(`bond nominator transaction is ${result.status}`); + if (result.status.isInBlock) { + console.log( + `bond nominator transaction included at blockHash ${result.status.asInBlock}`, + ); + console.log( + `bond nominator transaction waiting for finalization... (can take a minute)`, + ); + } else if (result.status.isFinalized) { + console.log( + `bond nominator transaction events are ${result.events}`, + ); + console.log( + `bond nominator transaction finalized at blockHash ${result.status.asFinalized}`, + ); + unsub(); + } + }, + ); }); - await waitForEvent(polkadotApi, 'staking', 'Bonded'); + await waitForEvent(polkadotApi, "staking", "Bonded"); //const nominatedAddress = polkadotApi.registry.createType("MultiAddress", alith.address); - const prefs = polkadotApi.registry.createType("Vec", [alith.address]); + const prefs = polkadotApi.registry.createType("Vec", [ + alith.address, + ]); let nominateValidator = polkadotApi.tx.staking.nominate(prefs); - const nominateValidatorTransaction = new Promise<{ block: string, address: string }>(async (resolve, reject) => { - const unsub = await nominateValidator.signAndSend(charleth, {tip: 200, nonce: -1}, (result) => { - console.log(`nominate validator transaction is ${result.status}`); - if (result.status.isInBlock) { - console.log(`nominate validator transaction included at blockHash ${result.status.asInBlock}`); - console.log(`nominate validator transaction waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - console.log( `nominate validator transaction events are ${result.events}`) - console.log(`nominate validator transaction finalized at blockHash ${result.status.asFinalized}`); - unsub(); - } - }); + const nominateValidatorTransaction = new Promise<{ + block: string; + address: string; + }>(async (resolve, reject) => { + const unsub = await nominateValidator.signAndSend( + charleth, + { tip: 200, nonce: -1 }, + (result) => { + console.log(`nominate validator transaction is ${result.status}`); + if (result.status.isInBlock) { + console.log( + `nominate validator transaction included at blockHash ${result.status.asInBlock}`, + ); + console.log( + `nominate validator transaction waiting for finalization... (can take a minute)`, + ); + } else if (result.status.isFinalized) { + console.log( + `nominate validator transaction events are ${result.events}`, + ); + console.log( + `nominate validator transaction finalized at blockHash ${result.status.asFinalized}`, + ); + unsub(); + } + }, + ); }); // wait 2 eras to become active nominator await waitNfinalizedBlocks(polkadotApi, 100, 1000); - const validatorsNominated = await polkadotApi.query.staking.nominators(charleth.address); - console.log(JSON.stringify(validatorsNominated.toHuman())) + const validatorsNominated = await polkadotApi.query.staking.nominators( + charleth.address, + ); + console.log(JSON.stringify(validatorsNominated.toHuman())); // @ts-ignore - expect(validatorsNominated.toHuman().targets[0] == alith.address).true + expect(validatorsNominated.toHuman().targets[0] == alith.address).true; }); - it('Should unbond funds from a nominator', async () => { - - const amount = polkadotApi.createType('Balance', '200000000000000000000'); + it("Should unbond funds from a nominator", async () => { + const amount = polkadotApi.createType("Balance", "200000000000000000000"); let unbondValidator = polkadotApi.tx.staking.unbond(amount); - const unbondValidatorTransaction = new Promise<{ block: string, address: string }>(async (resolve, reject) => { - const unsub = await unbondValidator.signAndSend(charleth, {tip: 200, nonce: -1}, (result) => { - console.log(`unbond nominator transaction is ${result.status}`); - if (result.status.isInBlock) { - console.log(`unbond nominator transaction included at blockHash ${result.status.asInBlock}`); - console.log(`unbond nominator transaction waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - console.log( `unbond nominator transaction events are ${result.events}`) - console.log(`unbond nominator transaction finalized at blockHash ${result.status.asFinalized}`); - unsub(); - } - }); + const unbondValidatorTransaction = new Promise<{ + block: string; + address: string; + }>(async (resolve, reject) => { + const unsub = await unbondValidator.signAndSend( + charleth, + { tip: 200, nonce: -1 }, + (result) => { + console.log(`unbond nominator transaction is ${result.status}`); + if (result.status.isInBlock) { + console.log( + `unbond nominator transaction included at blockHash ${result.status.asInBlock}`, + ); + console.log( + `unbond nominator transaction waiting for finalization... (can take a minute)`, + ); + } else if (result.status.isFinalized) { + console.log( + `unbond nominator transaction events are ${result.events}`, + ); + console.log( + `unbond nominator transaction finalized at blockHash ${result.status.asFinalized}`, + ); + unsub(); + } + }, + ); }); - await waitForEvent(polkadotApi, 'staking', 'Unbonded'); + await waitForEvent(polkadotApi, "staking", "Unbonded"); }); - it('Should chill a nominator', async () => { - + it("Should chill a nominator", async () => { let call = polkadotApi.tx.staking.chill(); - const callTransaction = new Promise<{ block: string, address: string }>(async (resolve, reject) => { - const unsub = await call.signAndSend(charleth, {tip: 200, nonce: -1}, (result) => { - console.log(`chill transaction is ${result.status}`); - if (result.status.isInBlock) { - console.log(`chill transaction included at blockHash ${result.status.asInBlock}`); - console.log(`chill transaction waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - console.log( `chill transaction events are ${result.events}`) - console.log(`chill transaction finalized at blockHash ${result.status.asFinalized}`); - unsub(); - } - }); - }); - await waitForEvent(polkadotApi, 'staking', 'Chilled'); - - const validatorsNominated = await polkadotApi.query.staking.nominators(charleth.address); - console.log(JSON.stringify(validatorsNominated.toHuman())) + const callTransaction = new Promise<{ block: string; address: string }>( + async (resolve, reject) => { + const unsub = await call.signAndSend( + charleth, + { tip: 200, nonce: -1 }, + (result) => { + console.log(`chill transaction is ${result.status}`); + if (result.status.isInBlock) { + console.log( + `chill transaction included at blockHash ${result.status.asInBlock}`, + ); + console.log( + `chill transaction waiting for finalization... (can take a minute)`, + ); + } else if (result.status.isFinalized) { + console.log(`chill transaction events are ${result.events}`); + console.log( + `chill transaction finalized at blockHash ${result.status.asFinalized}`, + ); + unsub(); + } + }, + ); + }, + ); + await waitForEvent(polkadotApi, "staking", "Chilled"); + + const validatorsNominated = await polkadotApi.query.staking.nominators( + charleth.address, + ); + console.log(JSON.stringify(validatorsNominated.toHuman())); // @ts-ignore - expect(validatorsNominated.toHuman() == null).true + expect(validatorsNominated.toHuman() == null).true; }); after(async () => { await killNodes(); }); -}); \ No newline at end of file +}); diff --git a/integration-test-suite/tests/rewardDistribution.test.ts b/integration-test-suite/tests/rewardDistribution.test.ts index 44d9fff8..3d076432 100644 --- a/integration-test-suite/tests/rewardDistribution.test.ts +++ b/integration-test-suite/tests/rewardDistribution.test.ts @@ -19,55 +19,81 @@ describe("Reward Distribution tests", function () { await spawnNodes(); const rewardAccount = await getRewardAccount(); rewardAddress = rewardAccount.toString(); - await transfer(alith, rewardAddress ) - + await transfer(alith, rewardAddress); }); it("Should test Reward Distribution with Reliability score ", async () => { const reliabilityZero = await getReliabilityScore(alith); - console.log("Reliability Score in Era 0 without Esg Score:", reliabilityZero); + console.log( + "Reliability Score in Era 0 without Esg Score:", + reliabilityZero, + ); await waitNfinalizedBlocks(polkadotApi, 45, 1000); const eraZeroValidatorsReward = await getErasValidatorReward(alith.address); - console.log("Validator Reward in Era 0 without Esg Score:", eraZeroValidatorsReward.toHuman()); + console.log( + "Validator Reward in Era 0 without Esg Score:", + eraZeroValidatorsReward.toHuman(), + ); const reliabilityOne = await getReliabilityScore(alith); - console.log("Reliability Score in Era 1 without Esg Score:", reliabilityOne); + console.log( + "Reliability Score in Era 1 without Esg Score:", + reliabilityOne, + ); await waitNfinalizedBlocks(polkadotApi, 45, 1000); const eraOneValidatorsReward = await getErasValidatorReward(alith.address); - console.log("Validator Reward in Era 1 without Esg Score:", eraOneValidatorsReward.toHuman()); + console.log( + "Validator Reward in Era 1 without Esg Score:", + eraOneValidatorsReward.toHuman(), + ); expect( BigInt(eraOneValidatorsReward?.toString()) > - BigInt(eraZeroValidatorsReward?.toString()) + BigInt(eraZeroValidatorsReward?.toString()), ).true; const reliabilityTwo = await getReliabilityScore(alith); - console.log("Reliability Score in Era 2 without Esg Score:", reliabilityTwo); + console.log( + "Reliability Score in Era 2 without Esg Score:", + reliabilityTwo, + ); await waitNfinalizedBlocks(polkadotApi, 45, 1000); const eraTwoValidatorsReward = await getErasValidatorReward(alith.address); - console.log("Validator Reward in Era 2 without Esg Score:{}", eraTwoValidatorsReward.toHuman()); + console.log( + "Validator Reward in Era 2 without Esg Score:{}", + eraTwoValidatorsReward.toHuman(), + ); expect( BigInt(eraTwoValidatorsReward?.toString()) > - BigInt(eraOneValidatorsReward?.toString()) + BigInt(eraOneValidatorsReward?.toString()), ).true; await waitNfinalizedBlocks(polkadotApi, 2, 1000); // @ts-ignore - const {data: rewardBalanceBeforeClaimByValidator} = await api.query.system.account(rewardAddress); - expect(rewardBalanceBeforeClaimByValidator.free.toBigInt()).to.equal(BigInt("1000000000000000000000")); + const { data: rewardBalanceBeforeClaimByValidator } = + await api.query.system.account(rewardAddress); + expect(rewardBalanceBeforeClaimByValidator.free.toBigInt()).to.equal( + BigInt("1000000000000000000000"), + ); await getReward(alith, alith.address); await waitNfinalizedBlocks(polkadotApi, 45, 1000); - const eraThreeValidatorsReward = await getErasValidatorReward(alith.address); - console.log("Validator Reward in Era 3 without Esg Score:{}", eraThreeValidatorsReward.toHuman()); + const eraThreeValidatorsReward = await getErasValidatorReward( + alith.address, + ); + console.log( + "Validator Reward in Era 3 without Esg Score:{}", + eraThreeValidatorsReward.toHuman(), + ); // @ts-ignore - const {data: rewardBalanceAfterClaimByValidator} = await api.query.system.account(rewardAddress); - expect(rewardBalanceAfterClaimByValidator.free.toBigInt()).to.equal(BigInt("688000000000000000000")); - - + const { data: rewardBalanceAfterClaimByValidator } = + await api.query.system.account(rewardAddress); + expect(rewardBalanceAfterClaimByValidator.free.toBigInt()).to.equal( + BigInt("688000000000000000000"), + ); }); after(async () => { @@ -83,7 +109,6 @@ describe("Reward Distribution tests with Reliability score and sustainability sc }); it("Should test Reward Distribution with Reliability score and sustainability score ", async () => { - const esgData = [ { account: alith.address, @@ -96,10 +121,16 @@ describe("Reward Distribution tests with Reliability score and sustainability sc await insertEsgScores(alith, jsonData); const reliabilityZero = await getReliabilityScore(alith); - console.log("Reliability Score in Era 0 within Esg Score:", reliabilityZero); + console.log( + "Reliability Score in Era 0 within Esg Score:", + reliabilityZero, + ); await waitNfinalizedBlocks(polkadotApi, 45, 1000); const eraZeroValidatorsReward = await getErasValidatorReward(alith.address); - console.log("Validator Reward in Era 0 within Esg Score:", eraZeroValidatorsReward.toHuman()); + console.log( + "Validator Reward in Era 0 within Esg Score:", + eraZeroValidatorsReward.toHuman(), + ); const reliabilityOne = await getReliabilityScore(alith); console.log("Reliability Score in Era 1 within Esg Score:", reliabilityOne); @@ -107,22 +138,28 @@ describe("Reward Distribution tests with Reliability score and sustainability sc await waitNfinalizedBlocks(polkadotApi, 45, 1000); const eraOneValidatorsReward = await getErasValidatorReward(alith.address); - console.log("Validator Reward in Era 1 within Esg Score:", eraOneValidatorsReward.toHuman()); + console.log( + "Validator Reward in Era 1 within Esg Score:", + eraOneValidatorsReward.toHuman(), + ); expect( BigInt(eraOneValidatorsReward?.toString()) > - BigInt(eraZeroValidatorsReward?.toString()) + BigInt(eraZeroValidatorsReward?.toString()), ).true; const reliabilityTwo = await getReliabilityScore(alith); console.log("Reliability Score in Era 2 within Esg Score:", reliabilityTwo); await waitNfinalizedBlocks(polkadotApi, 45, 1000); const eraTwoValidatorsReward = await getErasValidatorReward(alith.address); - console.log("Validator Reward in Era 2 within Esg Score:", eraTwoValidatorsReward.toHuman()); + console.log( + "Validator Reward in Era 2 within Esg Score:", + eraTwoValidatorsReward.toHuman(), + ); expect( BigInt(eraTwoValidatorsReward?.toString()) > - BigInt(eraOneValidatorsReward?.toString()) + BigInt(eraOneValidatorsReward?.toString()), ).true; await waitNfinalizedBlocks(polkadotApi, 2, 1000); @@ -133,10 +170,9 @@ describe("Reward Distribution tests with Reliability score and sustainability sc }); }); - async function getReliabilityScore(alith: KeyringPair) { const reliabilityScores = await api.query.imOnline.reliabilityScoresMap( - alith.address + alith.address, ); return reliabilityScores; } @@ -157,11 +193,7 @@ async function getCurrentEra() { return currentEra; } - -export async function insertEsgScores( - alith: KeyringPair, - jsonData: string -) { +export async function insertEsgScores(alith: KeyringPair, jsonData: string) { console.log(`\n Inserting ESG Score of the user.`); const transaction = await api.tx.esgScore.upsertEsgScores(jsonData); @@ -174,7 +206,7 @@ export async function insertEsgScores( } else if (result.status.isFinalized) { const data = JSON.stringify(result.events); } - } + }, ); await waitForEvent(api, "esgScore", "ESGStored"); @@ -182,14 +214,12 @@ export async function insertEsgScores( console.log(`ESG Score verified in storage: ${score}`); } -export async function registerOracle( - alith: KeyringPair -) { +export async function registerOracle(alith: KeyringPair) { console.log(`\n: Registering Oracle`); const transaction = await api.tx.esgScore.registerAnOracle( alith.address, - true + true, ); const unsub = await api.tx.sudo @@ -206,14 +236,13 @@ export async function registerOracle( console.log(`Account verified in the oracle storage: ${oracleAccounts}`); } - -export async function transfer( - alith: KeyringPair, - rewardAccount: string, -) { +export async function transfer(alith: KeyringPair, rewardAccount: string) { console.log(`\n Transfering coin to reward account.`); // Transfer 100 5ire to reward Account - const transaction = polkadotApi.tx.balances.transfer(rewardAccount, "1000000000000000000000"); + const transaction = polkadotApi.tx.balances.transfer( + rewardAccount, + "1000000000000000000000", + ); const unsub = await transaction.signAndSend( alith, @@ -223,17 +252,13 @@ export async function transfer( } else if (result.status.isFinalized) { const data = JSON.stringify(result.events); } - } + }, ); await waitForEvent(api, "balances", "Transfer"); - } -export async function getReward( - alith: KeyringPair, - validator: string, -) { +export async function getReward(alith: KeyringPair, validator: string) { console.log(`\n Transfering coin to reward account.`); // Transfer 100 5ire to reward Account const transaction = polkadotApi.tx.reward.getRewards(validator); @@ -246,10 +271,8 @@ export async function getReward( } else if (result.status.isFinalized) { const data = JSON.stringify(result.events); } - } + }, ); await waitForEvent(api, "reward", "Rewarded"); - } - diff --git a/integration-test-suite/tests/startup.test.ts b/integration-test-suite/tests/startup.test.ts index ffa22497..df213af7 100644 --- a/integration-test-suite/tests/startup.test.ts +++ b/integration-test-suite/tests/startup.test.ts @@ -1,17 +1,17 @@ -import { expect } from 'chai'; -import { BLOCK_TIME } from '../utils/constants'; -import {killNodes, polkadotApi, spawnNodes} from "../utils/util"; +import { expect } from "chai"; +import { BLOCK_TIME } from "../utils/constants"; +import { killNodes, polkadotApi, spawnNodes } from "../utils/util"; -describe('Setup for test', function () { +describe("Setup for test", function () { this.timeout(300 * BLOCK_TIME); before(async () => { - await spawnNodes() + await spawnNodes(); }); // This test checks if 5irechain node starts up properly // and - it('should startup node', async () => { + it("should startup node", async () => { console.log("Beginning first test"); // Gets the current ethereum block @@ -22,12 +22,12 @@ describe('Setup for test', function () { }); // This test is for block production - it('tests block production', async () => { + it("tests block production", async () => { await testBlockProduction(); }); // This test is for block finalization - it('tests block finalization', async () => { + it("tests block finalization", async () => { await testBlockFinalization(); }); @@ -36,7 +36,6 @@ describe('Setup for test', function () { }); }); - async function testBlockProduction() { let previousBlockHash: `0x${string}` | null = null; @@ -45,7 +44,9 @@ async function testBlockProduction() { const blockNumber = header.number.toNumber(); const blockHash = header.hash.toHex(); - console.log(`New block produced - Block Number: ${blockNumber}, Block Hash: ${blockHash}`); + console.log( + `New block produced - Block Number: ${blockNumber}, Block Hash: ${blockHash}`, + ); expect(blockHash).not.null; expect(blockHash).not.undefined; @@ -57,7 +58,7 @@ async function testBlockProduction() { await new Promise((resolve) => setTimeout(resolve, 60000)); } catch (error) { - console.error('Error:', error); + console.error("Error:", error); } } @@ -74,7 +75,9 @@ async function testBlockFinalization() { const blockNumber = header.number.toNumber(); const blockHash = header.hash.toHex(); - console.log(`Block finalized - Block Number: ${blockNumber}, Block Hash: ${blockHash}`); + console.log( + `Block finalized - Block Number: ${blockNumber}, Block Hash: ${blockHash}`, + ); expect(blockHash).not.null; expect(blockHash).not.undefined; @@ -86,6 +89,6 @@ async function testBlockFinalization() { await new Promise((resolve) => setTimeout(resolve, 60000)); } catch (error) { - console.error('Error:', error); + console.error("Error:", error); } } diff --git a/integration-test-suite/tests/validator.test.ts b/integration-test-suite/tests/validator.test.ts index d1fbccc8..ee28eba4 100644 --- a/integration-test-suite/tests/validator.test.ts +++ b/integration-test-suite/tests/validator.test.ts @@ -1,11 +1,20 @@ -import { expect } from 'chai'; -import { BLOCK_TIME, alith, baltathar } from '../utils/constants'; -import {killNodes, polkadotApi as api, polkadotApi, spawnNodes} from "../utils/util"; -import {sleep, waitForEvent, waitForTheNextSession, waitNfinalizedBlocks} from "../utils/setup"; -import {WeightV2} from "@polkadot/types/interfaces"; - - -describe('Validator tests', function () { +import { expect } from "chai"; +import { BLOCK_TIME, alith, baltathar } from "../utils/constants"; +import { + killNodes, + polkadotApi as api, + polkadotApi, + spawnNodes, +} from "../utils/util"; +import { + sleep, + waitForEvent, + waitForTheNextSession, + waitNfinalizedBlocks, +} from "../utils/setup"; +import { WeightV2 } from "@polkadot/types/interfaces"; + +describe("Validator tests", function () { this.timeout(300 * BLOCK_TIME); // 4 session. this.slow(40 * BLOCK_TIME); @@ -15,9 +24,7 @@ describe('Validator tests', function () { }); // Should stake to become a validator - it('Should stake to become a validator', async () => { - - + it("Should stake to become a validator", async () => { const initialValidators = await polkadotApi.query.session.validators(); // @ts-ignore expect(initialValidators.length == 1).true; @@ -27,76 +34,126 @@ describe('Validator tests', function () { callIndex: forceNewEra.callIndex, args: forceNewEra.args, }); - await forceNewEraAlwaysCall.signAndSend(alith, {tip: 200, nonce: -1}); + await forceNewEraAlwaysCall.signAndSend(alith, { tip: 200, nonce: -1 }); - let increaseValidatorCount = polkadotApi.tx.staking.increaseValidatorCount(2); + let increaseValidatorCount = + polkadotApi.tx.staking.increaseValidatorCount(2); const increaseValidatorCountCall = polkadotApi.tx.sudo.sudo({ callIndex: increaseValidatorCount.callIndex, args: increaseValidatorCount.args, }); - await increaseValidatorCountCall.signAndSend(alith, {tip: 200, nonce: -1}); + await increaseValidatorCountCall.signAndSend(alith, { + tip: 200, + nonce: -1, + }); - let currentKey = await polkadotApi.rpc.author.rotateKeys(); + let currentKey = await polkadotApi.rpc.author.rotateKeys(); console.log(`current key for validator is ${currentKey}`); - const controller = polkadotApi.registry.createType("PalletStakingRewardDestination", "Staked"); + const controller = polkadotApi.registry.createType( + "PalletStakingRewardDestination", + "Staked", + ); - const amount = polkadotApi.createType('Balance', '900000000000000000000'); + const amount = polkadotApi.createType("Balance", "900000000000000000000"); let bondValidator = polkadotApi.tx.staking.bond(amount, controller); - const bondValidatorTransaction = new Promise<{ block: string, address: string }>(async (resolve, reject) => { - const unsub = await bondValidator.signAndSend(baltathar, {tip: 200, nonce: -1}, (result) => { - console.log(`bond validator transaction is ${result.status}`); - if (result.status.isInBlock) { - console.log(`bond validator transaction included at blockHash ${result.status.asInBlock}`); - console.log(`bond validator transaction waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - console.log( `bond validator transaction events are ${result.events}`) - console.log(`bond validator transaction finalized at blockHash ${result.status.asFinalized}`); - unsub(); - } - }); + const bondValidatorTransaction = new Promise<{ + block: string; + address: string; + }>(async (resolve, reject) => { + const unsub = await bondValidator.signAndSend( + baltathar, + { tip: 200, nonce: -1 }, + (result) => { + console.log(`bond validator transaction is ${result.status}`); + if (result.status.isInBlock) { + console.log( + `bond validator transaction included at blockHash ${result.status.asInBlock}`, + ); + console.log( + `bond validator transaction waiting for finalization... (can take a minute)`, + ); + } else if (result.status.isFinalized) { + console.log( + `bond validator transaction events are ${result.events}`, + ); + console.log( + `bond validator transaction finalized at blockHash ${result.status.asFinalized}`, + ); + unsub(); + } + }, + ); }); - await waitForEvent(polkadotApi, 'staking', 'Bonded'); - + await waitForEvent(polkadotApi, "staking", "Bonded"); - const prefs = polkadotApi.registry.createType("PalletStakingValidatorPrefs", { - commission: 100_000_000, - blocked: false - }); + const prefs = polkadotApi.registry.createType( + "PalletStakingValidatorPrefs", + { + commission: 100_000_000, + blocked: false, + }, + ); let validateValidator = polkadotApi.tx.staking.validate(prefs); - const validateValidatorTransaction = new Promise<{ block: string, address: string }>(async (resolve, reject) => { - const unsub = await validateValidator.signAndSend(baltathar, {tip: 200, nonce: -1}, (result) => { - console.log(`validate validator transaction is ${result.status}`); - if (result.status.isInBlock) { - console.log(`validate validator transaction included at blockHash ${result.status.asInBlock}`); - console.log(`validate validator transaction waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - console.log( `validate validator transaction events are ${result.events}`) - console.log(`validate validator transaction finalized at blockHash ${result.status.asFinalized}`); - unsub(); - } - }); + const validateValidatorTransaction = new Promise<{ + block: string; + address: string; + }>(async (resolve, reject) => { + const unsub = await validateValidator.signAndSend( + baltathar, + { tip: 200, nonce: -1 }, + (result) => { + console.log(`validate validator transaction is ${result.status}`); + if (result.status.isInBlock) { + console.log( + `validate validator transaction included at blockHash ${result.status.asInBlock}`, + ); + console.log( + `validate validator transaction waiting for finalization... (can take a minute)`, + ); + } else if (result.status.isFinalized) { + console.log( + `validate validator transaction events are ${result.events}`, + ); + console.log( + `validate validator transaction finalized at blockHash ${result.status.asFinalized}`, + ); + unsub(); + } + }, + ); }); - await waitForEvent(polkadotApi, 'staking', 'ValidatorPrefsSet'); - + await waitForEvent(polkadotApi, "staking", "ValidatorPrefsSet"); let setKeys = polkadotApi.tx.session.setKeys(currentKey, currentKey); - const setKeysTransaction = new Promise<{ block: string, address: string }>(async (resolve, reject) => { - const unsub = await setKeys.signAndSend(baltathar, {tip: 200, nonce: -1}, (result) => { - console.log(`set keys transaction is ${result.status}`); - if (result.status.isInBlock) { - console.log(`set keys transaction included at blockHash ${result.status.asInBlock}`); - console.log(`set keys transaction waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - console.log( `set keys transaction events are ${result.events}`) - console.log(`set keys transaction finalized at blockHash ${result.status.asFinalized}`); - unsub(); - } - }); - }); - - // wait 2 eras + const setKeysTransaction = new Promise<{ block: string; address: string }>( + async (resolve, reject) => { + const unsub = await setKeys.signAndSend( + baltathar, + { tip: 200, nonce: -1 }, + (result) => { + console.log(`set keys transaction is ${result.status}`); + if (result.status.isInBlock) { + console.log( + `set keys transaction included at blockHash ${result.status.asInBlock}`, + ); + console.log( + `set keys transaction waiting for finalization... (can take a minute)`, + ); + } else if (result.status.isFinalized) { + console.log(`set keys transaction events are ${result.events}`); + console.log( + `set keys transaction finalized at blockHash ${result.status.asFinalized}`, + ); + unsub(); + } + }, + ); + }, + ); + + // wait 2 eras await waitNfinalizedBlocks(polkadotApi, 100, 1000); const validators = await polkadotApi.query.session.validators(); @@ -110,27 +167,37 @@ describe('Validator tests', function () { expect(validators.toHuman()[0] == baltathar.address).true; }); - it('Should chill a validator', async () => { - + it("Should chill a validator", async () => { let call = polkadotApi.tx.staking.chill(); - const callTransaction = new Promise<{ block: string, address: string }>(async (resolve, reject) => { - const unsub = await call.signAndSend(baltathar, {tip: 200, nonce: -1}, (result) => { - console.log(`chill transaction is ${result.status}`); - if (result.status.isInBlock) { - console.log(`chill transaction included at blockHash ${result.status.asInBlock}`); - console.log(`chill transaction waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - console.log( `chill transaction events are ${result.events}`) - console.log(`chill transaction finalized at blockHash ${result.status.asFinalized}`); - unsub(); - } - }); - }); - await waitForEvent(polkadotApi, 'staking', 'Chilled'); - + const callTransaction = new Promise<{ block: string; address: string }>( + async (resolve, reject) => { + const unsub = await call.signAndSend( + baltathar, + { tip: 200, nonce: -1 }, + (result) => { + console.log(`chill transaction is ${result.status}`); + if (result.status.isInBlock) { + console.log( + `chill transaction included at blockHash ${result.status.asInBlock}`, + ); + console.log( + `chill transaction waiting for finalization... (can take a minute)`, + ); + } else if (result.status.isFinalized) { + console.log(`chill transaction events are ${result.events}`); + console.log( + `chill transaction finalized at blockHash ${result.status.asFinalized}`, + ); + unsub(); + } + }, + ); + }, + ); + await waitForEvent(polkadotApi, "staking", "Chilled"); }); after(async () => { await killNodes(); }); -}); \ No newline at end of file +}); diff --git a/integration-test-suite/utils/constants.ts b/integration-test-suite/utils/constants.ts index e35b3c59..9e5c4a65 100644 --- a/integration-test-suite/utils/constants.ts +++ b/integration-test-suite/utils/constants.ts @@ -59,14 +59,17 @@ export const DOROTHY_ADDRESS: `0x${string}` = export const DOROTHY_PRIVATE_KEY: `0x${string}` = "0x39539ab1876910bbf3a223d84a29e28f1cb4e2e456503e7e91ed39b2e7223d68"; -// Default testing address , no balance +// Default testing address , no balance export const GERALD_ADDRESS: `0x${string}` = "0x6Be02d1d3665660d22FF9624b7BE0551ee1Ac91b"; export const GERALD_PRIVATE_KEY: `0x${string}` = "0x99b3c12287537e38c90a9219d4cb074a89a16e9cdb20bf85728ebd97c343e342"; export const alith: KeyringPair = keyringEth.addFromUri(ALITH_PRIVATE_KEY); -export const baltathar: KeyringPair = keyringEth.addFromUri(BALTATHAR_PRIVATE_KEY); -export const charleth: KeyringPair = keyringEth.addFromUri(CHARLETH_PRIVATE_KEY); +export const baltathar: KeyringPair = keyringEth.addFromUri( + BALTATHAR_PRIVATE_KEY, +); +export const charleth: KeyringPair = + keyringEth.addFromUri(CHARLETH_PRIVATE_KEY); export const dorothy: KeyringPair = keyringEth.addFromUri(DOROTHY_PRIVATE_KEY); -export const gerald: KeyringPair = keyringEth.addFromUri(GERALD_PRIVATE_KEY); \ No newline at end of file +export const gerald: KeyringPair = keyringEth.addFromUri(GERALD_PRIVATE_KEY); diff --git a/integration-test-suite/utils/setup.ts b/integration-test-suite/utils/setup.ts index 47a65823..d08b5032 100644 --- a/integration-test-suite/utils/setup.ts +++ b/integration-test-suite/utils/setup.ts @@ -1,14 +1,14 @@ -import type { Codec } from '@polkadot/types-codec/types'; -import { ApiPromise, Keyring } from '@polkadot/api'; -import { SubmittableExtrinsic } from '@polkadot/api/types'; -import child from 'child_process'; -import {mnemonicGenerate} from "@polkadot/util-crypto"; -import {WeightV2} from "@polkadot/types/interfaces"; -import {DetectCodec} from "@polkadot/types/types/detect"; -import { alith } from './constants'; +import type { Codec } from "@polkadot/types-codec/types"; +import { ApiPromise, Keyring } from "@polkadot/api"; +import { SubmittableExtrinsic } from "@polkadot/api/types"; +import child from "child_process"; +import { mnemonicGenerate } from "@polkadot/util-crypto"; +import { WeightV2 } from "@polkadot/types/interfaces"; +import { DetectCodec } from "@polkadot/types/types/detect"; +import { alith } from "./constants"; -export const endpoint = 'ws://127.0.0.1:9944'; -export const ALICE = '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY'; +export const endpoint = "ws://127.0.0.1:9944"; +export const ALICE = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"; export async function sleep(ms: number) { return new Promise((resolve) => setTimeout(resolve, ms)); @@ -40,7 +40,7 @@ export const listenOneBlock = async function (api: ApiPromise) { export const waitNfinalizedBlocks = async function ( api: ApiPromise, n: number, - timeout: number + timeout: number, ) { return new Promise(async (resolve, _reject) => { let count = 0; @@ -66,7 +66,7 @@ export async function fastForward( n: number, { delayBetweenBlocks }: { delayBetweenBlocks?: number } = { delayBetweenBlocks: 5, - } + }, ): Promise { for (let i = 0; i < n; i++) { const createEmpty = true; @@ -85,7 +85,7 @@ export async function fastForwardTo( blockNumber: number, { delayBetweenBlocks }: { delayBetweenBlocks?: number } = { delayBetweenBlocks: 0, - } + }, ): Promise { const currentBlockNumber = await api.rpc.chain.getHeader(); const diff = blockNumber - currentBlockNumber.number.toNumber(); @@ -99,9 +99,15 @@ export async function fastForwardTo( */ export const printValidators = async function (api: ApiPromise) { const [accountNonce, now, validators] = await Promise.all([ - api.query.system.account(ALICE).then((account) => api.registry.createType(`number`, account.toU8a())), + api.query.system + .account(ALICE) + .then((account) => api.registry.createType(`number`, account.toU8a())), api.query.timestamp.now(), - api.query.session.validators().then((account) => api.registry.createType(`Vec
`, account.toU8a())), + api.query.session + .validators() + .then((account) => + api.registry.createType(`Vec
`, account.toU8a()), + ), ]); console.log(`accountNonce(${ALICE}) ${accountNonce}`); @@ -109,19 +115,19 @@ export const printValidators = async function (api: ApiPromise) { if (validators && validators.length > 0) { const validatorBalances = await Promise.all( - validators.map((authorityId) => api.query.system.account(authorityId)) + validators.map((authorityId) => api.query.system.account(authorityId)), ); console.log( - 'validators', + "validators", validators.map((authorityId, index) => { const balance = validatorBalances[index].toJSON(); ({ address: authorityId.toString(), - balance: balance?["data"]?["free"]:0:0, - nonce: balance?["nonce"]:0, - }) - }) + balance: balance ? (["data"] ? ["free"] : 0) : 0, + nonce: balance ? ["nonce"] : 0, + }); + }), ); } }; @@ -145,29 +151,29 @@ const __NODE_STATE: { type StartOption = { tmp: boolean; printLogs: boolean; - chain?: 'dev' | 'local'; + chain?: "dev" | "local"; }; const defaultOptions: StartOption = { tmp: true, printLogs: false, - chain: 'local', + chain: "local", }; /** * Start 5ire chain node with different authorities and ports */ export function start5ireChainNode( - authority: 'alice' | 'bob' | 'charlie' | 'dave' | 'eve' | 'ferdie', - options: StartOption = defaultOptions + authority: "alice" | "bob" | "charlie" | "dave" | "eve" | "ferdie", + options: StartOption = defaultOptions, ): child.ChildProcess { - options.chain ??= 'local'; + options.chain ??= "local"; if (__NODE_STATE[authority].isRunning) { return __NODE_STATE[authority].process!; } const gitRoot = child - .execSync('git rev-parse --show-toplevel') + .execSync("git rev-parse --show-toplevel") .toString() .trim(); const nodePath = `${gitRoot}/target/release/firechain-node`; @@ -183,51 +189,51 @@ export function start5ireChainNode( nodePath, [ `--${authority}`, - options.printLogs ? '-linfo' : '-lerror', + options.printLogs ? "-linfo" : "-lerror", `--chain`, `qa-dev`, `--base-path`, `${gitRoot}/tmp/fire/${authority}`, `--rpc-port=${ports[authority].ws}`, `--port=${ports[authority].p2p}`, - ...(authority == 'alice' + ...(authority == "alice" ? [ - '--node-key', - '0000000000000000000000000000000000000000000000000000000000000001', - ] + "--node-key", + "0000000000000000000000000000000000000000000000000000000000000001", + ] : [ - '--bootnodes', - `/ip4/127.0.0.1/tcp/${ports['alice'].p2p}/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp`, - ]), + "--bootnodes", + `/ip4/127.0.0.1/tcp/${ports["alice"].p2p}/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp`, + ]), // only print logs from the alice node - ...(authority === 'alice' + ...(authority === "alice" ? [ - '-lruntime::offchain=debug', - '--rpc-cors', - 'all', - '--rpc-methods=unsafe', - '--unsafe-rpc-external', - ] + "-lruntime::offchain=debug", + "--rpc-cors", + "all", + "--rpc-methods=unsafe", + "--unsafe-rpc-external", + ] : []), ], { cwd: gitRoot, - } + }, ); __NODE_STATE[authority].isRunning = true; __NODE_STATE[authority].process = proc; if (options.printLogs) { - proc.stdout.on('data', (data) => { + proc.stdout.on("data", (data) => { console.log(`${authority}: ${data}`); }); - proc.stderr.on('data', (data) => { + proc.stderr.on("data", (data) => { console.error(`${authority}: ${data}`); }); } - proc.on('close', (code) => { + proc.on("close", (code) => { __NODE_STATE[authority].isRunning = false; __NODE_STATE[authority].process = null; console.log(`${authority} node exited with code ${code}`); @@ -239,7 +245,7 @@ export function start5ireChainNode( * Waits until a new session is started. */ export async function waitForTheNextSession(api: ApiPromise): Promise { - return waitForEvent(api, 'session', 'NewSession'); + return waitForEvent(api, "session", "NewSession"); } /** @@ -249,14 +255,17 @@ export async function waitForEvent( api: ApiPromise, pallet: string, eventVariant: string, - dataQuery?: { key: string } + dataQuery?: { key: string }, ): Promise { return new Promise(async (resolve, _rej) => { while (true) { // Subscribe to system events via storage const events = await api.query.system.events(); const eventsJson = events.toJSON(); - const eventsValue = api.registry.createType("Vec", events.toU8a()); + const eventsValue = api.registry.createType( + "Vec", + events.toU8a(), + ); // Loop through the Vec for (var event of eventsValue) { //console.log("Checking event: ", event); @@ -297,41 +306,41 @@ export async function waitForEvent( export async function sudoTx( api: ApiPromise, - call: SubmittableExtrinsic<'promise'> + call: SubmittableExtrinsic<"promise">, ): Promise { const unsub = await api.tx.sudo - .sudo(call.method.toHex()) - .signAndSend(alith, {tip: 2000, nonce: -1}, (result ) => { - if (result.status.isInBlock) { - console.log(`Sudo transaction included at blockHash ${result.status.asInBlock}`); - console.log(`Waiting for finalization... (can take a minute)`); - } else if (result.status.isFinalized) { - // @ts-ignore - const data = JSON.stringify(result.events); - console.log(data); - unsub(); - } - }); + .sudo(call.method.toHex()) + .signAndSend(alith, { tip: 2000, nonce: -1 }, (result) => { + if (result.status.isInBlock) { + console.log( + `Sudo transaction included at blockHash ${result.status.asInBlock}`, + ); + console.log(`Waiting for finalization... (can take a minute)`); + } else if (result.status.isFinalized) { + // @ts-ignore + const data = JSON.stringify(result.events); + console.log(data); + unsub(); + } + }); } export async function uncheckedSudoTx( weight: DetectCodec, api: ApiPromise, - call: SubmittableExtrinsic<'promise'> + call: SubmittableExtrinsic<"promise">, ): Promise { - const keyring = new Keyring({ type: 'sr25519' }); - const alice = keyring.addFromUri('//Alice'); + const keyring = new Keyring({ type: "sr25519" }); + const alice = keyring.addFromUri("//Alice"); return new Promise(async (resolve, _reject) => { const unsub = await api.tx.sudo .sudoUncheckedWeight(call, weight) - .signAndSend(alice, {tip: 2000, nonce: -1}, ({ status }) => { + .signAndSend(alice, { tip: 2000, nonce: -1 }, ({ status }) => { if (status.isFinalized) { unsub(); resolve(); } - }); }); } - diff --git a/integration-test-suite/utils/util.ts b/integration-test-suite/utils/util.ts index f0e581a8..8919f9f9 100644 --- a/integration-test-suite/utils/util.ts +++ b/integration-test-suite/utils/util.ts @@ -38,14 +38,13 @@ export async function killNodes() { await sleep(2 * SECONDS); } - export const spawnNodeForTestEVM = async () => { await removeTmp(); aliceNode = start5ireChainNode("alice", { tmp: true, printLogs: false }); console.log("started alice node"); polkadotApi = await ApiPromise.create(); - + return true; }; @@ -55,7 +54,6 @@ export async function killNodeForTestEVM() { await sleep(2 * SECONDS); } - export async function removeTmp() { // delete the tmp directory if it exists. const gitRoot = execSync("git rev-parse --show-toplevel").toString().trim(); @@ -74,34 +72,30 @@ export async function removeTmp() { } else { console.log(`tmp directory doesn't exists anymore ${tmpDir}`); } - } export async function customRequest(web3: Web3, method: string, params: any[]) { - return new Promise((resolve, reject) => { - (web3.currentProvider as any).send( - { - jsonrpc: "2.0", - id: 1, - method, - params, - }, - (error: Error | null, result?: JsonRpcResponse) => { - if (error) { - reject( - `Failed to send custom request (${method} (${params.join(",")})): ${ - error.message || error.toString() - }` - ); - } - else if (result === undefined) { + return new Promise((resolve, reject) => { + (web3.currentProvider as any).send( + { + jsonrpc: "2.0", + id: 1, + method, + params, + }, + (error: Error | null, result?: JsonRpcResponse) => { + if (error) { + reject( + `Failed to send custom request (${method} (${params.join(",")})): ${ + error.message || error.toString() + }`, + ); + } else if (result === undefined) { reject(new Error("Result is undefined")); - } - else { + } else { resolve(result); } - - } - ); - }); + }, + ); + }); } diff --git a/integration-test-suite/yarn.lock b/integration-test-suite/yarn.lock index 9a221652..bd0f9b56 100644 --- a/integration-test-suite/yarn.lock +++ b/integration-test-suite/yarn.lock @@ -887,13 +887,6 @@ dependencies: defer-to-connect "^2.0.1" -"@trufflesuite/bigint-buffer@1.1.10": - version "1.1.10" - resolved "https://registry.yarnpkg.com/@trufflesuite/bigint-buffer/-/bigint-buffer-1.1.10.tgz#a1d9ca22d3cad1a138b78baaf15543637a3e1692" - integrity sha512-pYIQC5EcMmID74t26GCC67946mgTJFiLXOT/BYozgrd4UEY2JHEGLhWi9cMiQCt5BSqFEvKkCHNnoj82SRjiEw== - dependencies: - node-gyp-build "4.4.0" - "@tsconfig/node10@^1.0.7": version "1.0.11" resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2" @@ -948,11 +941,6 @@ dependencies: "@types/node" "*" -"@types/lru-cache@5.1.1": - version "5.1.1" - resolved "https://registry.yarnpkg.com/@types/lru-cache/-/lru-cache-5.1.1.tgz#c48c2e27b65d2a153b19bfc1a317e30872e01eef" - integrity sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw== - "@types/mocha@^9.1.0": version "9.1.1" resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-9.1.1.tgz#e7c4f1001eefa4b8afbd1eee27a237fee3bf29c4" @@ -991,28 +979,11 @@ dependencies: "@types/node" "*" -"@types/seedrandom@3.0.1": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@types/seedrandom/-/seedrandom-3.0.1.tgz#1254750a4fec4aff2ebec088ccd0bb02e91fedb4" - integrity sha512-giB9gzDeiCeloIXDgzFBCgjj1k4WxcDrZtGl6h1IqmUPlxF+Nx8Ve+96QCyDZ/HseB/uvDsKbpib9hU5cU53pw== - abortcontroller-polyfill@^1.7.5: version "1.7.5" resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz#6738495f4e901fbb57b6c0611d0c75f76c485bed" integrity sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ== -abstract-leveldown@^7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/abstract-leveldown/-/abstract-leveldown-7.2.0.tgz#08d19d4e26fb5be426f7a57004851b39e1795a2e" - integrity sha512-DnhQwcFEaYsvYDnACLZhMmCWd3rkOeEvglpa4q5i/5Jlm3UIsWaxVzuXvDLFCSCWRO3yy2/+V/G7FusFgejnfQ== - dependencies: - buffer "^6.0.3" - catering "^2.0.0" - is-buffer "^2.0.5" - level-concat-iterator "^3.0.0" - level-supports "^2.0.1" - queue-microtask "^1.2.3" - accepts@~1.3.8: version "1.3.8" resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" @@ -1171,22 +1142,6 @@ binary-extensions@^2.0.0: resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== -bindings@^1.3.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" - integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== - dependencies: - file-uri-to-path "1.0.0" - -bl@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" - integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== - dependencies: - buffer "^5.5.0" - inherits "^2.0.4" - readable-stream "^3.4.0" - blakejs@^1.1.0: version "1.2.1" resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.2.1.tgz#5057e4206eadb4a97f7c0b6e197a505042fc3814" @@ -1202,7 +1157,7 @@ bn.js@4.11.6: resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.6.tgz#53344adb14617a13f6e8dd2ce28905d1c0ba3215" integrity sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA== -bn.js@^4.11.6, bn.js@^4.11.8, bn.js@^4.11.9: +bn.js@^4.11.6, bn.js@^4.11.9: version "4.12.0" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== @@ -1281,7 +1236,7 @@ bs58@^4.0.0: dependencies: base-x "^3.0.2" -bs58check@<3.0.0, bs58check@^2.1.2: +bs58check@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/bs58check/-/bs58check-2.1.2.tgz#53b018291228d82a5aa08e7d796fdafda54aebfc" integrity sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA== @@ -1308,21 +1263,6 @@ buffer@^5.0.5, buffer@^5.5.0, buffer@^5.6.0: base64-js "^1.3.1" ieee754 "^1.1.13" -buffer@^6.0.3: - version "6.0.3" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6" - integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== - dependencies: - base64-js "^1.3.1" - ieee754 "^1.2.1" - -bufferutil@4.0.5: - version "4.0.5" - resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.5.tgz#da9ea8166911cc276bf677b8aed2d02d31f59028" - integrity sha512-HTm14iMQKK2FjFLRTM5lAVcyaUzOnqbPtesFIvREgXpJHdQm8bWS+GkQgIkfaBYRHuCnea7w8UVNfwiAQhlr9A== - dependencies: - node-gyp-build "^4.3.0" - bufferutil@^4.0.1: version "4.0.8" resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.8.tgz#1de6a71092d65d7766c4d8a522b261a6e787e8ea" @@ -1379,11 +1319,6 @@ caseless@~0.12.0: resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== -catering@^2.0.0, catering@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/catering/-/catering-2.1.1.tgz#66acba06ed5ee28d5286133982a927de9a04b510" - integrity sha512-K7Qy8O9p76sL3/3m7/zLKbRkyOlSZAgzEaLhyj2mXS8PsCud2Eo4hAb8aLtZqHh0QGqLcb9dlJSu6lHRVENm1w== - chai@^4.3.7: version "4.5.0" resolved "https://registry.yarnpkg.com/chai/-/chai-4.5.0.tgz#707e49923afdd9b13a8b0b47d33d732d13812fd8" @@ -1456,18 +1391,6 @@ class-is@^1.1.0: resolved "https://registry.yarnpkg.com/class-is/-/class-is-1.1.0.tgz#9d3c0fba0440d211d843cec3dedfa48055005825" integrity sha512-rhjH9AG1fvabIDoGRVH587413LPjTZgmDF9fOFCbFJQV4yuocX1mHxxvXI4g3cGwbVY9wAYIoKlg1N79frJKQw== -cli-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" - integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== - dependencies: - restore-cursor "^3.1.0" - -cli-spinners@^2.5.0: - version "2.9.2" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.9.2.tgz#1773a8f4b9c4d6ac31563df53b3fc1d79462fe41" - integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg== - cliui@^7.0.2: version "7.0.4" resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" @@ -1484,11 +1407,6 @@ clone-response@^1.0.2: dependencies: mimic-response "^1.0.0" -clone@^1.0.2: - version "1.0.4" - resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" - integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== - color-convert@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" @@ -1669,13 +1587,6 @@ deep-eql@^4.1.3: dependencies: type-detect "^4.0.0" -defaults@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a" - integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== - dependencies: - clone "^1.0.2" - defer-to-connect@^2.0.0, defer-to-connect@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587" @@ -1728,16 +1639,6 @@ ecc-jsbn@~0.1.1: jsbn "~0.1.0" safer-buffer "^2.1.0" -ecpair@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/ecpair/-/ecpair-1.0.1.tgz#26380cbd7a5666d75b18f3b51d7bc9908129046a" - integrity sha512-5qPa0GVZJI1FAMS+4GZBWXS/bzY7/p2ehuGuHPqvsRWe2yXDc4Bgvf89BMJz87pqcW7+ogGQkLZfwflMr/RPgQ== - dependencies: - randombytes "^2.0.1" - tiny-secp256k1 "^1.1.6" - typeforce "^1.11.3" - wif "^2.0.1" - ee-first@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" @@ -1756,7 +1657,7 @@ elliptic@6.5.4: minimalistic-assert "^1.0.1" minimalistic-crypto-utils "^1.0.1" -elliptic@^6.4.0, elliptic@^6.5.2, elliptic@^6.5.4: +elliptic@^6.4.0, elliptic@^6.5.4: version "6.5.7" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.7.tgz#8ec4da2cb2939926a1b9a73619d768207e647c8b" integrity sha512-ESVCtTwiA+XhY3wyh24QqRGBoP3rEdDUl3EDUUo9tft074fi19IrdpH7hLCMMP3CIj7jb3W96rn8lt/BqIlt5Q== @@ -1769,11 +1670,6 @@ elliptic@^6.4.0, elliptic@^6.5.2, elliptic@^6.5.4: minimalistic-assert "^1.0.1" minimalistic-crypto-utils "^1.0.1" -emittery@0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.10.0.tgz#bb373c660a9d421bb44706ec4967ed50c02a8026" - integrity sha512-AGvFfs+d0JKCJQ4o01ASQLGPmSCxgfU9RFXvzPvZdjKK8oscynksuJhWrSTSw7j7Ep/sZct5b5ZhYCi8S/t0HQ== - emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" @@ -2090,11 +1986,6 @@ fetch-blob@^3.1.2, fetch-blob@^3.1.4: node-domexception "^1.0.0" web-streams-polyfill "^3.0.3" -file-uri-to-path@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" - integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== - fill-range@^7.1.1: version "7.1.1" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" @@ -2202,23 +2093,6 @@ function-bind@^1.1.2: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== -ganache@7.4.1: - version "7.4.1" - resolved "https://registry.yarnpkg.com/ganache/-/ganache-7.4.1.tgz#5f109619067baf25dec15f92a8d919e5bfeedb4d" - integrity sha512-yLlfsHQpJmXRD/Ryd7JcHTzL9q0cE+BDu3fmMFmJ/0Nl8GYBDfZrtyzm/8nSRWiXoWR98ER/c3PZrhR9KDySeA== - dependencies: - "@trufflesuite/bigint-buffer" "1.1.10" - "@types/bn.js" "^5.1.0" - "@types/lru-cache" "5.1.1" - "@types/seedrandom" "3.0.1" - emittery "0.10.0" - keccak "3.0.1" - leveldown "6.1.0" - secp256k1 "4.0.2" - optionalDependencies: - bufferutil "4.0.5" - utf-8-validate "5.0.7" - get-caller-file@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" @@ -2474,7 +2348,7 @@ idna-uts46-hx@^2.3.1: dependencies: punycode "2.1.0" -ieee754@^1.1.13, ieee754@^1.2.1: +ieee754@^1.1.13: version "1.2.1" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== @@ -2512,11 +2386,6 @@ is-binary-path@~2.1.0: dependencies: binary-extensions "^2.0.0" -is-buffer@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191" - integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== - is-callable@^1.1.3: version "1.2.7" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" @@ -2556,11 +2425,6 @@ is-hex-prefixed@1.0.0: resolved "https://registry.yarnpkg.com/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz#7d8d37e6ad77e5d127148913c573e082d777f554" integrity sha512-WvtOiug1VFrE9v1Cydwm+FnXd3+w9GaeVUss5W4v/SLy3UW00vP+6iNF2SdnfiBoLy4bTqVdkftNGTUeOFVsbA== -is-interactive@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" - integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== - is-number@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" @@ -2652,14 +2516,6 @@ jsprim@^1.2.2: json-schema "0.4.0" verror "1.10.0" -keccak@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.1.tgz#ae30a0e94dbe43414f741375cff6d64c8bea0bff" - integrity sha512-epq90L9jlFWCW7+pQa6JOnKn2Xgl2mtI664seYR6MHskvI9agt7AnDqmAlp9TqU4/caMYbA08Hi5DMZAl5zdkA== - dependencies: - node-addon-api "^2.0.0" - node-gyp-build "^4.2.0" - keccak@^3.0.0: version "3.0.4" resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.4.tgz#edc09b89e633c0549da444432ecf062ffadee86d" @@ -2676,27 +2532,6 @@ keyv@^4.0.0: dependencies: json-buffer "3.0.1" -level-concat-iterator@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/level-concat-iterator/-/level-concat-iterator-3.1.0.tgz#5235b1f744bc34847ed65a50548aa88d22e881cf" - integrity sha512-BWRCMHBxbIqPxJ8vHOvKUsaO0v1sLYZtjN3K2iZJsRBYtp+ONsY6Jfi6hy9K3+zolgQRryhIn2NRZjZnWJ9NmQ== - dependencies: - catering "^2.1.0" - -level-supports@^2.0.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/level-supports/-/level-supports-2.1.0.tgz#9af908d853597ecd592293b2fad124375be79c5f" - integrity sha512-E486g1NCjW5cF78KGPrMDRBYzPuueMZ6VBXHT6gC7A8UYWGiM14fGgp+s/L1oFfDWSPV/+SFkYCmZ0SiESkRKA== - -leveldown@6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/leveldown/-/leveldown-6.1.0.tgz#7ab1297706f70c657d1a72b31b40323aa612b9ee" - integrity sha512-8C7oJDT44JXxh04aSSsfcMI8YiaGRhOFI9/pMEL7nWJLVsWajDPTRxsSHTM2WcTVY5nXM+SuRHzPPi0GbnDX+w== - dependencies: - abstract-leveldown "^7.2.0" - napi-macros "~2.0.0" - node-gyp-build "^4.3.0" - locate-path@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" @@ -2704,7 +2539,7 @@ locate-path@^6.0.0: dependencies: p-locate "^5.0.0" -log-symbols@4.1.0, log-symbols@^4.1.0: +log-symbols@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== @@ -2780,11 +2615,6 @@ mime@1.6.0: resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== -mimic-fn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" - integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== - mimic-response@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" @@ -2962,11 +2792,6 @@ multihashes@^0.4.15, multihashes@~0.4.15: multibase "^0.7.0" varint "^5.0.0" -nan@^2.13.2: - version "2.20.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.20.0.tgz#08c5ea813dd54ed16e5bd6505bf42af4f7838ca3" - integrity sha512-bk3gXBZDGILuuo/6sKtr0DQmSThYHLtNCdSdXk9YkxD/jK6X2vmCyyXBBxyqZ4XcnzTyYEAThfX3DCEnLf6igw== - nano-json-stream-parser@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/nano-json-stream-parser/-/nano-json-stream-parser-0.1.2.tgz#0cc8f6d0e2b622b479c40d499c46d64b755c6f5f" @@ -2977,11 +2802,6 @@ nanoid@3.3.3: resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.3.tgz#fd8e8b7aa761fe807dba2d1b98fb7241bb724a25" integrity sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w== -napi-macros@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/napi-macros/-/napi-macros-2.0.0.tgz#2b6bae421e7b96eb687aa6c77a7858640670001b" - integrity sha512-A0xLykHtARfueITVDernsAWdtIMbOJgKgcluwENp3AlsKN/PloyO10HtmoqnFAQAcxPkgZN7wdfPfEd0zNGxbg== - negotiator@0.6.3: version "0.6.3" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" @@ -3027,11 +2847,6 @@ node-fetch@^3.3.2: fetch-blob "^3.1.4" formdata-polyfill "^4.0.10" -node-gyp-build@4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.4.0.tgz#42e99687ce87ddeaf3a10b99dc06abc11021f3f4" - integrity sha512-amJnQCcgtRVw9SvoebO3BKGESClrfXGCUTX9hSn1OuGQTQBOZmVd0Z0OlecpuRksKvbsUqALE8jls/ErClAPuQ== - node-gyp-build@^4.2.0, node-gyp-build@^4.3.0: version "4.8.1" resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.1.tgz#976d3ad905e71b76086f4f0b0d3637fe79b6cda5" @@ -3091,28 +2906,6 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" -onetime@^5.1.0: - version "5.1.2" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" - integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== - dependencies: - mimic-fn "^2.1.0" - -ora@5: - version "5.4.1" - resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" - integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== - dependencies: - bl "^4.1.0" - chalk "^4.1.0" - cli-cursor "^3.1.0" - cli-spinners "^2.5.0" - is-interactive "^1.0.0" - is-unicode-supported "^0.1.0" - log-symbols "^4.1.0" - strip-ansi "^6.0.0" - wcwidth "^1.0.1" - p-cancelable@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-2.1.1.tgz#aab7fbd416582fa32a3db49859c122487c5ed2cf" @@ -3193,6 +2986,11 @@ possible-typed-array-names@^1.0.0: resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f" integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q== +prettier@^3.3.3: + version "3.3.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105" + integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew== + process@^0.11.10: version "0.11.10" resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" @@ -3255,17 +3053,12 @@ query-string@^5.0.1: object-assign "^4.1.0" strict-uri-encode "^1.0.0" -queue-microtask@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" - integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== - quick-lru@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932" integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== -randombytes@^2.0.1, randombytes@^2.1.0: +randombytes@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== @@ -3287,7 +3080,7 @@ raw-body@2.5.2: iconv-lite "0.4.24" unpipe "1.0.0" -readable-stream@^3.4.0, readable-stream@^3.6.0: +readable-stream@^3.6.0: version "3.6.2" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== @@ -3346,14 +3139,6 @@ responselike@^2.0.0: dependencies: lowercase-keys "^2.0.0" -restore-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" - integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== - dependencies: - onetime "^5.1.0" - signal-exit "^3.0.2" - ripemd160@^2.0.0, ripemd160@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" @@ -3401,15 +3186,6 @@ scrypt-js@3.0.1, scrypt-js@^3.0.0, scrypt-js@^3.0.1: resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== -secp256k1@4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-4.0.2.tgz#15dd57d0f0b9fdb54ac1fa1694f40e5e9a54f4a1" - integrity sha512-UDar4sKvWAksIlfX3xIaQReADn+WFnHvbVujpcbr+9Sf/69odMwy2MUsz5CKLQgX9nsIyrjuxL2imVyoNHa3fg== - dependencies: - elliptic "^6.5.2" - node-addon-api "^2.0.0" - node-gyp-build "^4.2.0" - secp256k1@^4.0.1: version "4.0.3" resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-4.0.3.tgz#c4559ecd1b8d3c1827ed2d1b94190d69ce267303" @@ -3506,11 +3282,6 @@ side-channel@^1.0.4: get-intrinsic "^1.2.4" object-inspect "^1.13.1" -signal-exit@^3.0.2: - version "3.0.7" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" - integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== - simple-concat@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.1.tgz#f46976082ba35c2263f1c8ab5edfe26c41c9552f" @@ -3641,17 +3412,6 @@ timed-out@^4.0.1: resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" integrity sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA== -tiny-secp256k1@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/tiny-secp256k1/-/tiny-secp256k1-1.1.6.tgz#7e224d2bee8ab8283f284e40e6b4acb74ffe047c" - integrity sha512-FmqJZGduTyvsr2cF3375fqGHUovSwDi/QytexX1Se4BPuPZpTE5Ftp5fg+EFSuEf3lhZqgCRjEG3ydUQ/aNiwA== - dependencies: - bindings "^1.3.0" - bn.js "^4.11.8" - create-hmac "^1.1.7" - elliptic "^6.4.0" - nan "^2.13.2" - to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" @@ -3738,11 +3498,6 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typeforce@^1.11.3: - version "1.18.0" - resolved "https://registry.yarnpkg.com/typeforce/-/typeforce-1.18.0.tgz#d7416a2c5845e085034d70fcc5b6cc4a90edbfdc" - integrity sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g== - typescript@4.5.4: version "4.5.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8" @@ -3780,13 +3535,6 @@ url-set-query@^1.0.0: resolved "https://registry.yarnpkg.com/url-set-query/-/url-set-query-1.0.0.tgz#016e8cfd7c20ee05cafe7795e892bd0702faa339" integrity sha512-3AChu4NiXquPfeckE5R5cGdiHCMWJx1dwCWOmWIL4KHAziJNOFIYJlpGFeKDvwLPHovZRCxK3cYlwzqI9Vp+Gg== -utf-8-validate@5.0.7: - version "5.0.7" - resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.7.tgz#c15a19a6af1f7ad9ec7ddc425747ca28c3644922" - integrity sha512-vLt1O5Pp+flcArHGIyKEQq883nBt8nN8tVBcoL0qUXj2XT1n7p70yGIq2VK98I5FdZ1YHc0wk/koOnHjnXWk1Q== - dependencies: - node-gyp-build "^4.3.0" - utf-8-validate@^5.0.2: version "5.0.10" resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.10.tgz#d7d10ea39318171ca982718b6b96a8d2442571a2" @@ -3854,13 +3602,6 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -wcwidth@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" - integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== - dependencies: - defaults "^1.0.3" - web-streams-polyfill@^3.0.3: version "3.3.3" resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz#2073b91a2fdb1fbfbd401e7de0ac9f8214cecb4b" @@ -4145,13 +3886,6 @@ which-typed-array@^1.1.14, which-typed-array@^1.1.2: gopd "^1.0.1" has-tostringtag "^1.0.2" -wif@^2.0.1: - version "2.0.6" - resolved "https://registry.yarnpkg.com/wif/-/wif-2.0.6.tgz#08d3f52056c66679299726fade0d432ae74b4704" - integrity sha512-HIanZn1zmduSF+BQhkE+YXIbEiH0xPr1012QbFEGB0xsKqJii0/SqJjyn8dFv6y36kOznMgMB+LGcbZTJ1xACQ== - dependencies: - bs58check "<3.0.0" - workerpool@6.2.1: version "6.2.1" resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343" From 10352b7ef36b606029605f2378edd63180b140f8 Mon Sep 17 00:00:00 2001 From: dung5ire Date: Wed, 21 Aug 2024 15:05:07 +0700 Subject: [PATCH 3/3] chore: remove unused lib Signed-off-by: dung5ire --- integration-test-suite/tests/evmBlock.test.ts | 2 +- integration-test-suite/tests/evmContract.test.ts | 2 +- integration-test-suite/tests/evmGas.test.ts | 1 - integration-test-suite/tests/evmNonce.test.ts | 1 - integration-test-suite/tests/inkV3.test.ts | 3 +-- .../tests/nativeTransferNegative.test.ts | 7 +------ .../tests/negativeRewardDistribution.test.ts | 1 - integration-test-suite/tests/nominator.test.ts | 3 +-- .../tests/rewardDistribution.test.ts | 1 - integration-test-suite/tests/validator.test.ts | 15 ++------------- integration-test-suite/utils/setup.ts | 4 +--- 11 files changed, 8 insertions(+), 32 deletions(-) diff --git a/integration-test-suite/tests/evmBlock.test.ts b/integration-test-suite/tests/evmBlock.test.ts index c5eaa01a..95766156 100644 --- a/integration-test-suite/tests/evmBlock.test.ts +++ b/integration-test-suite/tests/evmBlock.test.ts @@ -1,5 +1,5 @@ import { spawnNodeForTestEVM, killNodeForTestEVM } from "../utils/util"; -import { BLOCK_TIME, ETH_BLOCK_GAS_LIMIT, SECONDS } from "../utils/constants"; +import { BLOCK_TIME, ETH_BLOCK_GAS_LIMIT } from "../utils/constants"; import { expect } from "chai"; import { step } from "mocha-steps"; import Web3 from "web3"; diff --git a/integration-test-suite/tests/evmContract.test.ts b/integration-test-suite/tests/evmContract.test.ts index b35d494b..2ecb94eb 100644 --- a/integration-test-suite/tests/evmContract.test.ts +++ b/integration-test-suite/tests/evmContract.test.ts @@ -10,7 +10,7 @@ import { killNodeForTestEVM, spawnNodeForTestEVM, } from "../utils/util"; -import { sleep, waitForEvent } from "../utils/setup"; +import { sleep } from "../utils/setup"; import { expect } from "chai"; import { step } from "mocha-steps"; diff --git a/integration-test-suite/tests/evmGas.test.ts b/integration-test-suite/tests/evmGas.test.ts index b9261631..3a518def 100644 --- a/integration-test-suite/tests/evmGas.test.ts +++ b/integration-test-suite/tests/evmGas.test.ts @@ -17,7 +17,6 @@ import { import { sleep } from "../utils/setup"; import { expect } from "chai"; -import { step } from "mocha-steps"; let web3: Web3; const TRANSFER_VALUE = "1"; diff --git a/integration-test-suite/tests/evmNonce.test.ts b/integration-test-suite/tests/evmNonce.test.ts index d415173f..f86b9be4 100644 --- a/integration-test-suite/tests/evmNonce.test.ts +++ b/integration-test-suite/tests/evmNonce.test.ts @@ -8,7 +8,6 @@ import { import { customRequest, killNodeForTestEVM, - polkadotApi, spawnNodeForTestEVM, } from "../utils/util"; import { sleep } from "../utils/setup"; diff --git a/integration-test-suite/tests/inkV3.test.ts b/integration-test-suite/tests/inkV3.test.ts index 8ce4733c..b3067b69 100644 --- a/integration-test-suite/tests/inkV3.test.ts +++ b/integration-test-suite/tests/inkV3.test.ts @@ -4,8 +4,7 @@ import { killNodes, polkadotApi, spawnNodes } from "../utils/util"; import { CodePromise, Abi, ContractPromise } from "@polkadot/api-contract"; import abiFile from "./contracts/psp22_token.json"; import { WeightV2 } from "@polkadot/types/interfaces"; -import { sleep, waitForEvent, waitNfinalizedBlocks } from "../utils/setup"; -import { BigNumber } from "ethers"; +import { waitForEvent, waitNfinalizedBlocks } from "../utils/setup"; let contractAddress: string; let contractAbi: Abi; diff --git a/integration-test-suite/tests/nativeTransferNegative.test.ts b/integration-test-suite/tests/nativeTransferNegative.test.ts index 7ab87d17..00e018cb 100644 --- a/integration-test-suite/tests/nativeTransferNegative.test.ts +++ b/integration-test-suite/tests/nativeTransferNegative.test.ts @@ -1,11 +1,6 @@ import { expect } from "chai"; import { BLOCK_TIME, alith, baltathar } from "../utils/constants"; -import { - killNodes, - polkadotApi as api, - polkadotApi, - spawnNodes, -} from "../utils/util"; +import { killNodes, polkadotApi, spawnNodes } from "../utils/util"; describe("Negative Native token tests", function () { this.timeout(300 * BLOCK_TIME); diff --git a/integration-test-suite/tests/negativeRewardDistribution.test.ts b/integration-test-suite/tests/negativeRewardDistribution.test.ts index 7d137877..11ac21ac 100644 --- a/integration-test-suite/tests/negativeRewardDistribution.test.ts +++ b/integration-test-suite/tests/negativeRewardDistribution.test.ts @@ -6,7 +6,6 @@ import { spawnNodes, polkadotApi, } from "../utils/util"; -import { Keyring } from "@polkadot/api"; import { KeyringPair } from "@polkadot/keyring/types"; import { waitForEvent, waitNfinalizedBlocks } from "../utils/setup"; diff --git a/integration-test-suite/tests/nominator.test.ts b/integration-test-suite/tests/nominator.test.ts index 1d12c21a..fe15267f 100644 --- a/integration-test-suite/tests/nominator.test.ts +++ b/integration-test-suite/tests/nominator.test.ts @@ -1,8 +1,7 @@ import { expect } from "chai"; import { BLOCK_TIME, alith, charleth } from "../utils/constants"; import { killNodes, polkadotApi, spawnNodes } from "../utils/util"; -import { Keyring } from "@polkadot/api"; -import { sleep, waitForEvent, waitNfinalizedBlocks } from "../utils/setup"; +import { waitForEvent, waitNfinalizedBlocks } from "../utils/setup"; describe("Nominator tests", function () { this.timeout(300 * BLOCK_TIME); diff --git a/integration-test-suite/tests/rewardDistribution.test.ts b/integration-test-suite/tests/rewardDistribution.test.ts index 3d076432..62382deb 100644 --- a/integration-test-suite/tests/rewardDistribution.test.ts +++ b/integration-test-suite/tests/rewardDistribution.test.ts @@ -6,7 +6,6 @@ import { spawnNodes, polkadotApi, } from "../utils/util"; -import { Keyring } from "@polkadot/api"; import { KeyringPair } from "@polkadot/keyring/types"; import { waitForEvent, waitNfinalizedBlocks } from "../utils/setup"; diff --git a/integration-test-suite/tests/validator.test.ts b/integration-test-suite/tests/validator.test.ts index ee28eba4..45fa53c0 100644 --- a/integration-test-suite/tests/validator.test.ts +++ b/integration-test-suite/tests/validator.test.ts @@ -1,18 +1,7 @@ import { expect } from "chai"; import { BLOCK_TIME, alith, baltathar } from "../utils/constants"; -import { - killNodes, - polkadotApi as api, - polkadotApi, - spawnNodes, -} from "../utils/util"; -import { - sleep, - waitForEvent, - waitForTheNextSession, - waitNfinalizedBlocks, -} from "../utils/setup"; -import { WeightV2 } from "@polkadot/types/interfaces"; +import { killNodes, polkadotApi, spawnNodes } from "../utils/util"; +import { waitForEvent, waitNfinalizedBlocks } from "../utils/setup"; describe("Validator tests", function () { this.timeout(300 * BLOCK_TIME); diff --git a/integration-test-suite/utils/setup.ts b/integration-test-suite/utils/setup.ts index d08b5032..8dabc613 100644 --- a/integration-test-suite/utils/setup.ts +++ b/integration-test-suite/utils/setup.ts @@ -1,9 +1,7 @@ -import type { Codec } from "@polkadot/types-codec/types"; import { ApiPromise, Keyring } from "@polkadot/api"; import { SubmittableExtrinsic } from "@polkadot/api/types"; import child from "child_process"; -import { mnemonicGenerate } from "@polkadot/util-crypto"; -import { WeightV2 } from "@polkadot/types/interfaces"; + import { DetectCodec } from "@polkadot/types/types/detect"; import { alith } from "./constants";