From 486bab8e6e5852d6a68b69a5ef014d3cf4797281 Mon Sep 17 00:00:00 2001 From: joepetrowski Date: Fri, 14 Jan 2022 11:15:48 +0100 Subject: [PATCH 1/2] try upgrade --- package.json | 10 +- src/util/construction.ts | 6 +- src/util/nodeInteraction.ts | 4 +- src/util/types.ts | 5 +- yarn.lock | 748 +++++++++++++++++------------------- 5 files changed, 376 insertions(+), 397 deletions(-) diff --git a/package.json b/package.json index 2f8d90c..c2e013b 100644 --- a/package.json +++ b/package.json @@ -12,18 +12,18 @@ "lint": "tsc --noEmit && eslint . --ext ts" }, "dependencies": { - "@polkadot/api": "6.7.2", - "@polkadot/util-crypto": "7.8.2", - "@substrate/txwrapper-polkadot": "1.2.20", + "@polkadot/api": "7.3.1", + "@polkadot/util-crypto": "8.3.1", + "@substrate/txwrapper-polkadot": "1.4.0", "axios": "^0.24.0", "node-fetch": "^3.1.0", "ts-node": "^10.4.0", - "typescript": "^4.4.4" + "typescript": "^4.5.4" }, "devDependencies": { "readline": "^1.3.0" }, "resolutions": { - "@polkadot/api": "6.7.2" + "@polkadot/api": "7.3.1" } } diff --git a/src/util/construction.ts b/src/util/construction.ts index 11bba8a..3ffd9a1 100644 --- a/src/util/construction.ts +++ b/src/util/construction.ts @@ -2,7 +2,7 @@ import { TypeRegistry } from '@polkadot/types'; import { construct, getRegistry } from '@substrate/txwrapper-polkadot'; import { getChainData, getSenderData, submitTransaction } from './nodeInteraction' -import { AddressData, ChainData, TxConstruction } from './types' +import { AddressData, ChainData, Metadata, TxConstruction } from './types' import { promptUser } from './signing'; /* Types */ @@ -15,7 +15,7 @@ interface BaseTxInfo { blockNumber: number; eraPeriod: number; genesisHash: string; - metadataRpc: string; + metadataRpc: Metadata; nonce: number; specVersion: number; transactionVersion: number; @@ -23,7 +23,7 @@ interface BaseTxInfo { } interface OptionsWithMeta { - metadataRpc: string; + metadataRpc: Metadata; registry: TypeRegistry; } diff --git a/src/util/nodeInteraction.ts b/src/util/nodeInteraction.ts index ad162d5..fe433f0 100644 --- a/src/util/nodeInteraction.ts +++ b/src/util/nodeInteraction.ts @@ -1,4 +1,4 @@ -import { AddressData, ChainData, ChainName, SpecName } from './types' +import { AddressData, ChainData, ChainName, Metadata, SpecName } from './types' import axios from 'axios'; /* Types */ @@ -16,7 +16,7 @@ interface ArtifactsResponse { specName: SpecName; specVersion: string; txVersion: string; - metadata: string; + metadata: Metadata; } // Response from `/balance` endpoint on sidecar. diff --git a/src/util/types.ts b/src/util/types.ts index 57e3b33..d341fac 100644 --- a/src/util/types.ts +++ b/src/util/types.ts @@ -4,6 +4,7 @@ import { TypeRegistry } from '@polkadot/types'; export type ChainName = 'Polkadot' | 'Polkadot CC1' | 'Kusama' | 'Westend'; export type SpecName = 'polkadot' | 'kusama' | 'westend'; export type Curve = 'sr25519' | 'ed25519' | 'ecdsa'; +export type Metadata = `0x$string` | `0x${string}`; // Information about the chain that we need to construct a transaction. export interface ChainData { @@ -14,7 +15,7 @@ export interface ChainData { specName: SpecName; specVersion: number; transactionVersion: number; - metadataRpc: string; + metadataRpc: Metadata; } // Information about the sender's address. @@ -29,7 +30,7 @@ export interface AddressData { export interface TxConstruction { unsigned: UnsignedTransaction; registry: TypeRegistry; - metadata: string; + metadata: Metadata; } // The type registry is somewhat mysterious to me. We just need this a lot. diff --git a/yarn.lock b/yarn.lock index c422c42..066cb42 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@babel/runtime@^7.15.3", "@babel/runtime@^7.16.0": - version "7.16.3" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.16.3.tgz#b86f0db02a04187a3c17caa77de69840165d42d5" - integrity sha512-WBwekcqacdY2e9AF/Q7WLFUWmdJGJTkbjqTjoMDgXkVZ3ZRUvOPsLb5KdwISoQVsbP+DQzVZW4Zhci0DvpbNTQ== +"@babel/runtime@^7.16.3", "@babel/runtime@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.16.7.tgz#03ff99f64106588c9c403c6ecb8c3bafbbdff1fa" + integrity sha512-9E9FJowqAsytyOY6LG+1KuueckRL+aQW+mKvXRXnuFGyRAyepJPmEo9vgMfXUA6O9u3IeEdv9MAkppFcaQwogQ== dependencies: regenerator-runtime "^0.13.4" @@ -21,229 +21,333 @@ dependencies: "@cspotcode/source-map-consumer" "0.8.0" -"@polkadot/api-derive@6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-6.7.2.tgz#8dcf4272d12aaaa6366fba945a35d480819bb0f7" - integrity sha512-iDwE4ekSKNlenHqjDrKHZVdTS+rrrkuFTST0X0gcvirVTHgqqrGkaKzfQT83wHccVNOV07R+OoklMb2FjinXUg== - dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/api" "6.7.2" - "@polkadot/rpc-core" "6.7.2" - "@polkadot/types" "6.7.2" - "@polkadot/util" "^7.8.2" - "@polkadot/util-crypto" "^7.8.2" - rxjs "^7.4.0" - -"@polkadot/api@6.7.2", "@polkadot/api@^6.7.1": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-6.7.2.tgz#4793b890db4b16644f8e45fbd46072b1fc456312" - integrity sha512-cdb9BePu8ew9IdSuoAXcqQqm0p1zcc22vL2hg0Hfk55lXHRF9hQELxxtB6ek11SKVCRnf+3PNcc0LddaTWIC6A== - dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/api-derive" "6.7.2" - "@polkadot/keyring" "^7.8.2" - "@polkadot/rpc-core" "6.7.2" - "@polkadot/rpc-provider" "6.7.2" - "@polkadot/types" "6.7.2" - "@polkadot/types-known" "6.7.2" - "@polkadot/util" "^7.8.2" - "@polkadot/util-crypto" "^7.8.2" +"@noble/hashes@0.5.7": + version "0.5.7" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-0.5.7.tgz#8605d84b34daf43d15c344fae54f0a1d5d5a4632" + integrity sha512-R9PPYv7TqoYi+enikzZvwRQesGTxR0+jwqzZJGL0uNcf2NFL+lt/uvCCewtXXmr6jWBxiMuNjBfJwKv9UJaCng== + +"@noble/secp256k1@1.3.4": + version "1.3.4" + resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.3.4.tgz#158ded712d09237c0d3428be60dc01ce8ebab9fb" + integrity sha512-ZVRouDO5mbdCiDg4zCd3ZZABduRtpy4tCnB33Gh9upHe9tRzpiqbRSN1VTjrj/2g8u2c6MBi0YLNnNQpBYOiWg== + +"@polkadot/api-augment@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-7.3.1.tgz#cf57eb39cf0ab1ec80f255766ee33537ac38fce4" + integrity sha512-RdNAYB+sXVY4hTnpd29JnuukcFt4IJDyIhafvHblFhjYsPBRE/qYcXpvGGbiqVsvrAg3oj0bxtY9/TXaP0qS1Q== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/api-base" "7.3.1" + "@polkadot/rpc-augment" "7.3.1" + "@polkadot/types" "7.3.1" + "@polkadot/types-augment" "7.3.1" + "@polkadot/types-codec" "7.3.1" + "@polkadot/util" "^8.3.1" + +"@polkadot/api-base@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-7.3.1.tgz#4ee3fc3d6a9ab94b140c342d86aa9d416c9e4af9" + integrity sha512-y04stWekxy48YD04nbEUyksMMvJhOlZtVh1UMJbdhhS1eJf5iFgNtBooa1uF2wCGi/5i1BDGUK42mLReFi6ECw== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/rpc-core" "7.3.1" + "@polkadot/types" "7.3.1" + "@polkadot/util" "^8.3.1" + rxjs "^7.5.1" + +"@polkadot/api-derive@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-7.3.1.tgz#40e1d1aec3b2e0765e654d202f88181c8e978d34" + integrity sha512-+AorRBpalaoQIPIoNx1NCSl0MsndlUyeLDhs5+6q0+xjmH0rDoVjGveE7r7ZfJo+eDVAkkXYU/HKvf4p8TIvRQ== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/api" "7.3.1" + "@polkadot/api-augment" "7.3.1" + "@polkadot/api-base" "7.3.1" + "@polkadot/rpc-core" "7.3.1" + "@polkadot/types" "7.3.1" + "@polkadot/types-codec" "7.3.1" + "@polkadot/util" "^8.3.1" + "@polkadot/util-crypto" "^8.3.1" + rxjs "^7.5.1" + +"@polkadot/api@7.3.1", "@polkadot/api@^7.2.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-7.3.1.tgz#61f4b525933284917bcd8edd840bcad986e9c555" + integrity sha512-kHDwuoYCAmyqP3j4eZvoV++EzRY0YVc/nvvfnoL+Hv5FyFraecm9zw638YecXdZvM2m30Ym4cP+Uh+bzEY+WXg== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/api-augment" "7.3.1" + "@polkadot/api-base" "7.3.1" + "@polkadot/api-derive" "7.3.1" + "@polkadot/keyring" "^8.3.1" + "@polkadot/rpc-augment" "7.3.1" + "@polkadot/rpc-core" "7.3.1" + "@polkadot/rpc-provider" "7.3.1" + "@polkadot/types" "7.3.1" + "@polkadot/types-augment" "7.3.1" + "@polkadot/types-codec" "7.3.1" + "@polkadot/types-create" "7.3.1" + "@polkadot/types-known" "7.3.1" + "@polkadot/util" "^8.3.1" + "@polkadot/util-crypto" "^8.3.1" eventemitter3 "^4.0.7" - rxjs "^7.4.0" - -"@polkadot/keyring@^7.8.2": - version "7.8.2" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-7.8.2.tgz#c4d1a3c6cb9b07a659558f4869d92e00f6420208" - integrity sha512-QmSXkaUxXEt4Yx5RVUmPO8LGscuEOGjrH7tolQS9ASdxZjeCwIXl7+CTHGPUhGhJDMAJE/gvG2V2E9Al8N0tvQ== - dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/util" "7.8.2" - "@polkadot/util-crypto" "7.8.2" - -"@polkadot/networks@7.8.2", "@polkadot/networks@^7.8.2": - version "7.8.2" - resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-7.8.2.tgz#24bc6f946069395c08a24da65c848f7158fb7abf" - integrity sha512-E/Bm4QUAfyBUCv0Bq9ldRVNG+trLHoOAv6ttzWKw/UHoa2cDe2UP9qTUnxtXWAmyIYWvLeoMHgStj+pWbLL8SA== - dependencies: - "@babel/runtime" "^7.16.0" - -"@polkadot/rpc-core@6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-6.7.2.tgz#36ec3da5383d3d19b1bb010d197689132ae9ecd2" - integrity sha512-VLFovyCSj4vTBxOzF6BFKRKEoqTcG+fF/qoT3z0MbqSmGNvdH1TeHizJah3TCMnszWHZrX5W+ZIDbSaSFPqXsw== - dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/rpc-provider" "6.7.2" - "@polkadot/types" "6.7.2" - "@polkadot/util" "^7.8.2" - rxjs "^7.4.0" - -"@polkadot/rpc-provider@6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-6.7.2.tgz#25dd87490b9b433d79837a5f2f4f385e4c34b104" - integrity sha512-iwmd6qtWilVwMq3bfi6TYfnbNPKWLbB1vVerbc2Wx27aKNygvUPqqUN5Ek5ZGyKk53BFZafACsCmCN7Wy4Qeew== - dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/types" "6.7.2" - "@polkadot/util" "^7.8.2" - "@polkadot/util-crypto" "^7.8.2" - "@polkadot/x-fetch" "^7.8.2" - "@polkadot/x-global" "^7.8.2" - "@polkadot/x-ws" "^7.8.2" + rxjs "^7.5.1" + +"@polkadot/keyring@^8.3.1": + version "8.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-8.3.1.tgz#ed8e96f6c57d990c274e2f722830faa40c4ddc13" + integrity sha512-kK33MrF8dnhRrWmix84Y9cJA0xKt+wQAtC7f2KHHggR8KUrZnidM+d+hZAkuGLa84wDqwxX4kZD68OZ9BXE6uQ== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/util" "8.3.1" + "@polkadot/util-crypto" "8.3.1" + +"@polkadot/networks@8.3.1", "@polkadot/networks@^8.3.1": + version "8.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-8.3.1.tgz#b53342094374edb6477d868c794c089cbe667079" + integrity sha512-MG3ryZovtlg3lALeOWQMPEVr+Akr54aYjUMgfrarxpB4Bckw51URfCi/FhrKZRH+VkK1imKJBMDSSEhoA3Rbow== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/util" "8.3.1" + +"@polkadot/rpc-augment@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-7.3.1.tgz#f6f306604352e32bcfdfe8843ecfc4393def3b34" + integrity sha512-af+WaMM4Lai6xUK1t8QvymMkOsJ1OpPzMgblqwmIAH0EePgfRit3srKV7pan7AWHePAhjByzXhF3Sn8LWUNRqA== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/rpc-core" "7.3.1" + "@polkadot/types" "7.3.1" + "@polkadot/types-codec" "7.3.1" + "@polkadot/util" "^8.3.1" + +"@polkadot/rpc-core@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-7.3.1.tgz#2881e183e4f86206d435aa093537902a2df6e27b" + integrity sha512-/qi3GfaRM4JVONRYVleTU2CmXlbdzqWxZg1DhgGcbMPLTfPOHjXRJ+uCqwFpXZKygs8SnDoODY+5vSX1KtLnpg== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/rpc-augment" "7.3.1" + "@polkadot/rpc-provider" "7.3.1" + "@polkadot/types" "7.3.1" + "@polkadot/util" "^8.3.1" + rxjs "^7.5.1" + +"@polkadot/rpc-provider@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-7.3.1.tgz#ba51c717eefb6104c608e5c1546073c634f0bf1d" + integrity sha512-7zIPhLFOEVk3g420732RMP75yZoJqEs4PNbhrS8RO5HIKwdjJolpnKPLMQ/es/zEYGCitU/vQV6NE7pufsqxkA== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/keyring" "^8.3.1" + "@polkadot/types" "7.3.1" + "@polkadot/types-support" "7.3.1" + "@polkadot/util" "^8.3.1" + "@polkadot/util-crypto" "^8.3.1" + "@polkadot/x-fetch" "^8.3.1" + "@polkadot/x-global" "^8.3.1" + "@polkadot/x-ws" "^8.3.1" eventemitter3 "^4.0.7" - -"@polkadot/types-known@6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-6.7.2.tgz#1a8aab00f01dcc5b1e3b3edc9389d10a5766fa6f" - integrity sha512-UPEyXatpAt9p5N/CqwJiXVgo2uGu9SwlNk30kt6emw4AKKcvytocxFn3+QtqoggIbxovlf/FQMp1sT8oecLF9g== - dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/networks" "^7.8.2" - "@polkadot/types" "6.7.2" - "@polkadot/util" "^7.8.2" - -"@polkadot/types@6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-6.7.2.tgz#79ef404e5f8f948cff6bb61b46ae6b8c5020b9e8" - integrity sha512-5FD9snZhrEJmwg6tAIPKTBkavz8Fw6yfUn+OOiEmGHDyz9fP9PxUsEqgsPzXdTaptjvhjb9wKOxK43uF+xU5iQ== - dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/util" "^7.8.2" - "@polkadot/util-crypto" "^7.8.2" - rxjs "^7.4.0" - -"@polkadot/util-crypto@7.8.2", "@polkadot/util-crypto@^7.8.2": - version "7.8.2" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-7.8.2.tgz#8fdf177793b00eced2d132ce03b0a9c0b0d1441b" - integrity sha512-wmWRRQuYmf3j4DJMPG2+J2BCS0uyO9yXuYlPdZ31enehTNDPl7Uke9sCUAdlAIwIfz60i4SIh8wyFPKMMwthqQ== - dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/networks" "7.8.2" - "@polkadot/util" "7.8.2" - "@polkadot/wasm-crypto" "^4.2.1" - "@polkadot/x-randomvalues" "7.8.2" - base-x "^3.0.9" - base64-js "^1.5.1" - blakejs "^1.1.1" - bn.js "^4.12.0" - create-hash "^1.2.0" + mock-socket "^9.0.8" + nock "^13.2.1" + +"@polkadot/types-augment@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-7.3.1.tgz#816f6557c20fde70eb072fcc372e66898d7418f6" + integrity sha512-qYW05PntTP61U9Sbrx/kPeWqF06cJ29TUA/8CWzE0VLnVkLLqqgsahjv3VSX3sEQ9Lx943AeJjxZISQZxKFumg== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/types" "7.3.1" + "@polkadot/types-codec" "7.3.1" + "@polkadot/util" "^8.3.1" + +"@polkadot/types-codec@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-7.3.1.tgz#607f29b4fca5fcd512255f539831b13a01e390f9" + integrity sha512-vgd1kT7LkklIMMt4Je8CLH2wDID3lDcDy3YBfIjxRjSFSSvDO0wuT+VpqpVFha9zfDcWVCyairo71QrzLvuNqw== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/util" "^8.3.1" + +"@polkadot/types-create@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-7.3.1.tgz#02096122d728ce1c5707859b04e359f0aa5feca0" + integrity sha512-nwJq2cGZAiLphHGqBVzX0Q3/j9m0ClksSpg29BTUyD0PGvV+TLEYOA9uz0emGzqGUvwks87mA7tyXMMXoiUpAg== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/types-codec" "7.3.1" + "@polkadot/util" "^8.3.1" + +"@polkadot/types-known@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-7.3.1.tgz#092b81f988ef649c527cae02f42be1645ec7b1e0" + integrity sha512-6NJwrW0S6bL9T1X3TVG6IHctJLQXClo/pY3kmkPQZpXMSZStWliDeaJCCBtTj0MF6o5LQrCiCfUcMaetwi5Yaw== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/networks" "^8.3.1" + "@polkadot/types" "7.3.1" + "@polkadot/types-codec" "7.3.1" + "@polkadot/types-create" "7.3.1" + "@polkadot/util" "^8.3.1" + +"@polkadot/types-support@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-7.3.1.tgz#8b4805ec816989578781ec052337f122dd190925" + integrity sha512-xx+t1rkyEZbQ3Q+oQvPd6br6cDBmGhRjDpc6V/smUUe72yFXzLWqNWsSUR56tJGb8ITbRZPOTPFiYE+1PTH0Jg== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/util" "^8.3.1" + +"@polkadot/types@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-7.3.1.tgz#84debb4204bb8939899bfe583b7304ef8822d21f" + integrity sha512-ysCOxj1QP/ZpLkMJei9/LgI6cC/tOO6p0MUhBI0xDIZDSUISzIyopzkoHkOKpkrRSHY4zMN2D/UveYq3quIKAQ== + dependencies: + "@babel/runtime" "^7.16.7" + "@polkadot/keyring" "^8.3.1" + "@polkadot/types-augment" "7.3.1" + "@polkadot/types-codec" "7.3.1" + "@polkadot/types-create" "7.3.1" + "@polkadot/util" "^8.3.1" + "@polkadot/util-crypto" "^8.3.1" + rxjs "^7.5.1" + +"@polkadot/util-crypto@8.3.1", "@polkadot/util-crypto@^8.3.1": + version "8.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-8.3.1.tgz#ad1b3731d56a2efc92e514d950244b5a12cedb32" + integrity sha512-srEHwMwRSfuLxh/J4PRHWVVbROapo3LNkYgKvpbIxf1Ef2rZT/vfzlNtxUHdFwcEioOoo9elxCnV5zVJDZ1whw== + dependencies: + "@babel/runtime" "^7.16.7" + "@noble/hashes" "0.5.7" + "@noble/secp256k1" "1.3.4" + "@polkadot/networks" "8.3.1" + "@polkadot/util" "8.3.1" + "@polkadot/wasm-crypto" "^4.5.1" + "@polkadot/x-bigint" "8.3.1" + "@polkadot/x-randomvalues" "8.3.1" ed2curve "^0.3.0" - elliptic "^6.5.4" - hash.js "^1.1.7" - js-sha3 "^0.8.0" - scryptsy "^2.1.0" + micro-base "^0.10.2" tweetnacl "^1.0.3" - xxhashjs "^0.2.2" -"@polkadot/util@7.8.2", "@polkadot/util@^7.8.2": - version "7.8.2" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-7.8.2.tgz#7d42e4981fdec6f032f29602400b966ddababf03" - integrity sha512-7JxRdSjw+7EUmCEIju34VLgeICNmfnOPby6lTzac0ODO2IH3NfE42YRGjRelRm+cNEmL272jojfU+o2Q7ePTww== +"@polkadot/util@8.3.1", "@polkadot/util@^8.3.1": + version "8.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-8.3.1.tgz#64be69a6758c86aaa4ee136b8a59d94788b943d9" + integrity sha512-0jkxqDKBd9Tl7DeIrazNOsvo4rVlWIfxU+Xn021rBLjKZwfWICRuEcywpZ8D3AS9ZpUxymb8VAAu77wkCG2j4Q== dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/x-textdecoder" "7.8.2" - "@polkadot/x-textencoder" "7.8.2" + "@babel/runtime" "^7.16.7" + "@polkadot/x-bigint" "8.3.1" + "@polkadot/x-global" "8.3.1" + "@polkadot/x-textdecoder" "8.3.1" + "@polkadot/x-textencoder" "8.3.1" "@types/bn.js" "^4.11.6" bn.js "^4.12.0" - camelcase "^6.2.0" ip-regex "^4.3.0" -"@polkadot/wasm-crypto-asmjs@^4.2.1": - version "4.2.1" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-4.2.1.tgz#6b7eae1c011709f8042dfd30872a5fc5e9e021c0" - integrity sha512-ON9EBpTNDCI3QRUmuQJIegYoAcwvxDaNNA7uwKTaEEStu8LjCIbQxbt4WbOBYWI0PoUpl4iIluXdT3XZ3V3jXA== +"@polkadot/wasm-crypto-asmjs@^4.5.1": + version "4.5.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-4.5.1.tgz#e1025a49e106db11d1187caf65f56c960ea2ad2b" + integrity sha512-DOdRiWhxVvmqTvp+E9z1j+Yr0zDOGsDvqnT/eNw0Dl1FVUOImsEa7FKns/urASmcxCVEE1jtUWSnij29jrORMQ== + dependencies: + "@babel/runtime" "^7.16.3" + +"@polkadot/wasm-crypto-wasm@^4.5.1": + version "4.5.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-4.5.1.tgz#063a58ff7ddd939b7886a6a238109a8d2c416e46" + integrity sha512-hPwke85HxpgG/RAlwdCE8u5w7bThvWg399mlB+XjogXMxOUWBZSgq2XYbgzROUXx27inK9nStF4Pnc4zJnqs9A== dependencies: - "@babel/runtime" "^7.15.3" + "@babel/runtime" "^7.16.3" -"@polkadot/wasm-crypto-wasm@^4.2.1": - version "4.2.1" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-4.2.1.tgz#2a86f9b405e7195c3f523798c6ce4afffd19737e" - integrity sha512-Rs2CKiR4D+2hKzmKBfPNYxcd2E8NfLWia0av4fgicjT9YsWIWOGQUi9AtSOfazPOR9FrjxKJy+chQxAkcfKMnQ== +"@polkadot/wasm-crypto@^4.5.1": + version "4.5.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-4.5.1.tgz#e1ac6d846a0ad8e991cec128994524183ef6e8fd" + integrity sha512-Cr21ais3Kq3aedIHZ3J1tjgeD/+K8FCiwEawr0oRywNBSJR8wyuZMePs4swR/6xm8wbBkpqoBVHz/UQHqqQJmA== dependencies: - "@babel/runtime" "^7.15.3" + "@babel/runtime" "^7.16.3" + "@polkadot/wasm-crypto-asmjs" "^4.5.1" + "@polkadot/wasm-crypto-wasm" "^4.5.1" -"@polkadot/wasm-crypto@^4.2.1": - version "4.2.1" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-4.2.1.tgz#4d09402f5ac71a90962fb58cbe4b1707772a4fb6" - integrity sha512-C/A/QnemOilRTLnM0LfhPY2N/x3ZFd1ihm9sXYyuh98CxtekSVYI9h4IJ5Jrgz5imSUHgvt9oJLqJ5GbWQV/Zg== +"@polkadot/x-bigint@8.3.1": + version "8.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-bigint/-/x-bigint-8.3.1.tgz#c010199c9d77739e1e4a95dd235d57cc0f74d07a" + integrity sha512-amHrXrLzuYb8aHQNjJMcokwh0K2hBc74oShR4c+CCDBy3/EEVpiJrCFehWXStTu9T5qoCX6JLlSBjdpZ1i9tzA== dependencies: - "@babel/runtime" "^7.15.3" - "@polkadot/wasm-crypto-asmjs" "^4.2.1" - "@polkadot/wasm-crypto-wasm" "^4.2.1" + "@babel/runtime" "^7.16.7" + "@polkadot/x-global" "8.3.1" -"@polkadot/x-fetch@^7.8.2": - version "7.8.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-7.8.2.tgz#50912bc547a3063215843aa335770bbf9b974d09" - integrity sha512-CC9mQy9TW0WYmWRs7GNOzqvhIE05DBWP5tnDjjgZLcb1vB2wY4pUV5XQAK/gymbfsajWxEc/+89afwJ9PmhjQw== +"@polkadot/x-fetch@^8.3.1": + version "8.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-8.3.1.tgz#233eb94cff947f4c986297532b3dadaa36ce1976" + integrity sha512-tWE9BLR+aVPdZM7QGudlS4VBoXQRS2W9EMlCOOuGTOHHg/Ks2acI6g5r511YBfJhhviJ/8posqryY3EuHU+zNA== dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/x-global" "7.8.2" + "@babel/runtime" "^7.16.7" + "@polkadot/x-global" "8.3.1" "@types/node-fetch" "^2.5.12" node-fetch "^2.6.6" -"@polkadot/x-global@7.8.2", "@polkadot/x-global@^7.8.2": - version "7.8.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-7.8.2.tgz#bc15bfd46e78b8a97622e07824f1e75566f3cb3a" - integrity sha512-olULRitxWv1tsSDgLdiVBbyzaU+OJbw8aTdmUMj9ZiIJstBzbNT/vsTWkX6JuMSLb9hw6ElaDXJ7zaffHY5siw== +"@polkadot/x-global@8.3.1", "@polkadot/x-global@^8.3.1": + version "8.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-8.3.1.tgz#e8a93dcb594a2cffed30a2fe1df90995a2aab985" + integrity sha512-bqqbF484jLqe4naPn7rtQJKgWRFtmg0UWIQ5U8qxh4IKZMPAfbMgVtv8+haH8Xf6pjurfSIOIjowySvc8UArVQ== dependencies: - "@babel/runtime" "^7.16.0" + "@babel/runtime" "^7.16.7" -"@polkadot/x-randomvalues@7.8.2": - version "7.8.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-7.8.2.tgz#b24f261882f87bfa9c45f509d009aaf26037d1d8" - integrity sha512-e/Jc9oCP+IIDWy5u+jk1Cz8ulI3os1VlSaQGsNPA8U56PGLJr+PeI4EnXzjIVgdKuwOhV7C/TTyu7fnGsIGTrA== +"@polkadot/x-randomvalues@8.3.1": + version "8.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-8.3.1.tgz#a40ea594dad11566b9c0be9753fdad0f803888dd" + integrity sha512-qIni71DMX1bNHuFqQ6C5dbGMB/E3QzmEUjYfvZv/Q8US5REQTVZuniMwtxM4LH4hrhQbRoNH6QyBxxvcwiTy4Q== dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/x-global" "7.8.2" + "@babel/runtime" "^7.16.7" + "@polkadot/x-global" "8.3.1" -"@polkadot/x-textdecoder@7.8.2": - version "7.8.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-7.8.2.tgz#b58fcaf5f4ea6dbe52117086053a022f63f5a79c" - integrity sha512-Ggp/lUjG6+w75lpbUjWFAxH262gu9hfMu89qd9VOUoPX6CbNT5mUPKaVDtofjmKcQzfW1zZRPjlePzv+JVoTVg== +"@polkadot/x-textdecoder@8.3.1": + version "8.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-8.3.1.tgz#33bb3591d665f9bb97b2ee1c476ea7f5b164a7bb" + integrity sha512-xXg9Py9Xu1pOa7eBVxR1THzAtr6NiyVjWjwU13m9K6v+SyLrmwd+PkamBFtOiPPSLuMKtNe7nNZCF8BT+EQefQ== dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/x-global" "7.8.2" + "@babel/runtime" "^7.16.7" + "@polkadot/x-global" "8.3.1" -"@polkadot/x-textencoder@7.8.2": - version "7.8.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-7.8.2.tgz#5cb52fd93a1cbc0fd2dae2ebba4cb2953750c266" - integrity sha512-GtgqGlXYEQqwO6Nl9ZX08KF1Bc3WIId8ADDNTHqLgXaQLqQykwdqQZUKPSnjhQFf8kJX6+kOSxzmv8P5oMTJcg== +"@polkadot/x-textencoder@8.3.1": + version "8.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-8.3.1.tgz#ad5eb021f851d3a64b443802f99f8d77db1629a1" + integrity sha512-ceItZCo9nl1jia0eB2RJ5i746SROcETkIzhtHG3ricm9d48FDtTPD59CKRkvyIYRAh92on7x/R7hNfcLvrObxQ== dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/x-global" "7.8.2" + "@babel/runtime" "^7.16.7" + "@polkadot/x-global" "8.3.1" -"@polkadot/x-ws@^7.8.2": - version "7.8.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-7.8.2.tgz#8a9dce26603b70c5e6cd8f4edd500959315311ce" - integrity sha512-ZnE82YTm96UY5Kt9mWFp5pEtBZRLw02w5EucZ5bCdBVGCIjU0wvfaHgyHRn0XlNCNvsExPanDiT3G+p+UX/NmQ== +"@polkadot/x-ws@^8.3.1": + version "8.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-8.3.1.tgz#53fd622a21ebb4cd1080209848e39b70e1f58f31" + integrity sha512-lbkWqnMDuQ4xTkRDNP989dowT+VdCfjLIFaHlB8x7x9wRR5D1Gzp3VG2hq44bxaKEOvyj2V39trHIg1PW94yqw== dependencies: - "@babel/runtime" "^7.16.0" - "@polkadot/x-global" "7.8.2" + "@babel/runtime" "^7.16.7" + "@polkadot/x-global" "8.3.1" "@types/websocket" "^1.0.4" websocket "^1.0.34" -"@substrate/txwrapper-core@^1.2.20": - version "1.2.20" - resolved "https://registry.yarnpkg.com/@substrate/txwrapper-core/-/txwrapper-core-1.2.20.tgz#fe590580ef6d4fcf501071999713a1209d66fd9b" - integrity sha512-OxEVTfv4Liy0LR/DR79RlEX1g9MDYdAgcdrGTfDFROygfAeSQpzK9i+HkKhWPM+jsi55PgHieVP6BRs/ByTU2w== +"@substrate/txwrapper-core@^1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@substrate/txwrapper-core/-/txwrapper-core-1.4.0.tgz#3be4290d0f030bcdfa2f71e1d6a81795d92ad30f" + integrity sha512-a8mjao0cQwPp4QL8p352NP2/lPTzrQdwye4IXAHVAy4pKvlGqU2c1TYvH3rDrKTydWZdjh1uLZSiWxUyq9VHbQ== dependencies: - "@polkadot/api" "^6.7.1" + "@polkadot/api" "^7.2.1" memoizee "0.4.15" -"@substrate/txwrapper-polkadot@1.2.20": - version "1.2.20" - resolved "https://registry.yarnpkg.com/@substrate/txwrapper-polkadot/-/txwrapper-polkadot-1.2.20.tgz#4019fa363270592cc8cdc0f6a8a0e143850d1f77" - integrity sha512-6W0+fAxpvb/MR9eyX70nnABbYrWLMAUb3JCXQ5b28NRSPZuJD+ky4mLeZifsdz4fb2xCLe9zXzRVJGONHSIMRQ== +"@substrate/txwrapper-polkadot@1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@substrate/txwrapper-polkadot/-/txwrapper-polkadot-1.4.0.tgz#66b0084b2ba089a71908e05359ef9995404f6b2e" + integrity sha512-JHBWET8HxdyJfMnX0TRf96huwQBQ8cO+MObYMJvUxuRqFQzWNPa0dczYlODq50IJX5vJ5OuV/GjY5u8lfdSrrQ== dependencies: - "@substrate/txwrapper-core" "^1.2.20" - "@substrate/txwrapper-substrate" "^1.2.20" + "@substrate/txwrapper-core" "^1.4.0" + "@substrate/txwrapper-substrate" "^1.4.0" -"@substrate/txwrapper-substrate@^1.2.20": - version "1.2.20" - resolved "https://registry.yarnpkg.com/@substrate/txwrapper-substrate/-/txwrapper-substrate-1.2.20.tgz#d27bb4c4fa40e261dd78b9eeaa08b7740af6e9ed" - integrity sha512-KbBT4aFTb478OJzyAnlWYIpf9g52U5jcfG/BcPyM8alW8YwRSUKBK9wj1ONKgDi+TvHesb1CRv9agHD0vwX1oQ== +"@substrate/txwrapper-substrate@^1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@substrate/txwrapper-substrate/-/txwrapper-substrate-1.4.0.tgz#2e1923baa7309d293787bfa9717d54834922a518" + integrity sha512-WIcs9Oq+5khBQ1+07LfF4TBNTWSAU8tt0tIVN5xHRAWlh0oBS3aWR1p7DCUHc8IZppxoa3F7lSV93VWhcxnvfw== dependencies: - "@substrate/txwrapper-core" "^1.2.20" + "@substrate/txwrapper-core" "^1.4.0" "@tsconfig/node10@^1.0.7": version "1.0.8" @@ -281,9 +385,9 @@ form-data "^3.0.0" "@types/node@*": - version "16.11.7" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.7.tgz#36820945061326978c42a01e56b61cd223dfdc42" - integrity sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw== + version "17.0.8" + resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.8.tgz#50d680c8a8a78fe30abe6906453b21ad8ab0ad7b" + integrity sha512-YofkM6fGv4gDJq78g4j0mMuGMkZVxZDgtU0JRdx6FgiJDG+0fY0GKVolOV8WqVmEhLCXkQRjwDdKyPxJp/uucg== "@types/websocket@^1.0.4": version "1.0.4" @@ -298,9 +402,9 @@ acorn-walk@^8.1.1: integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== acorn@^8.4.1: - version "8.5.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.5.0.tgz#4512ccb99b3698c752591e9bb4472e38ad43cee2" - integrity sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q== + version "8.7.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.0.tgz#90951fde0f8f09df93549481e5fc141445b791cf" + integrity sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ== arg@^4.1.0: version "4.1.3" @@ -319,53 +423,18 @@ axios@^0.24.0: dependencies: follow-redirects "^1.14.4" -base-x@^3.0.9: - version "3.0.9" - resolved "https://registry.yarnpkg.com/base-x/-/base-x-3.0.9.tgz#6349aaabb58526332de9f60995e548a53fe21320" - integrity sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ== - dependencies: - safe-buffer "^5.0.1" - -base64-js@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" - integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== - -blakejs@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.1.1.tgz#bf313053978b2cd4c444a48795710be05c785702" - integrity sha512-bLG6PHOCZJKNshTjGRBvET0vTciwQE6zFKOKKXPDJfwFBd4Ac0yBfPZqcGvGJap50l7ktvlpFqc2jGVaUgbJgg== - -bn.js@^4.11.9, bn.js@^4.12.0: +bn.js@^4.12.0: version "4.12.0" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== -brorand@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" - integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= - bufferutil@^4.0.1: - version "4.0.5" - resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.5.tgz#da9ea8166911cc276bf677b8aed2d02d31f59028" - integrity sha512-HTm14iMQKK2FjFLRTM5lAVcyaUzOnqbPtesFIvREgXpJHdQm8bWS+GkQgIkfaBYRHuCnea7w8UVNfwiAQhlr9A== + version "4.0.6" + resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.6.tgz#ebd6c67c7922a0e902f053e5d8be5ec850e48433" + integrity sha512-jduaYOYtnio4aIAyc6UbvPCVcgq7nYpVnucyxr6eCYg/Woad9Hf/oxxBRDnGGjPfjUm6j5O/uBWhIu4iLebFaw== dependencies: node-gyp-build "^4.3.0" -camelcase@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809" - integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== - -cipher-base@^1.0.1: - version "1.0.4" - 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" - safe-buffer "^5.0.1" - combined-stream@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" @@ -373,27 +442,11 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" -create-hash@^1.2.0: - version "1.2.0" - 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" - inherits "^2.0.1" - md5.js "^1.3.4" - ripemd160 "^2.0.1" - sha.js "^2.4.0" - create-require@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== -cuint@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/cuint/-/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b" - integrity sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs= - d@1, d@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" @@ -414,6 +467,13 @@ debug@^2.2.0: dependencies: ms "2.0.0" +debug@^4.1.0: + version "4.3.3" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664" + integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q== + dependencies: + ms "2.1.2" + delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" @@ -431,19 +491,6 @@ ed2curve@^0.3.0: dependencies: tweetnacl "1.x.x" -elliptic@^6.5.4: - version "6.5.4" - 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" - 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" - es5-ext@^0.10.35, es5-ext@^0.10.46, es5-ext@^0.10.50, es5-ext@^0.10.53, es5-ext@~0.10.14, es5-ext@~0.10.2, es5-ext@~0.10.46: version "0.10.53" resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1" @@ -528,37 +575,6 @@ formdata-polyfill@^4.0.10: dependencies: fetch-blob "^3.1.2" -hash-base@^3.0.0: - version "3.1.0" - 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" - readable-stream "^3.6.0" - safe-buffer "^5.2.0" - -hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7: - version "1.1.7" - resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" - integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA== - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.1" - -hmac-drbg@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" - integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= - dependencies: - hash.js "^1.0.3" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.1" - -inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - ip-regex@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" @@ -574,10 +590,15 @@ is-typedarray@^1.0.0: resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= -js-sha3@^0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" - integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== +json-stringify-safe@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= + +lodash.set@^4.3.2: + version "4.3.2" + resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23" + integrity sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM= lru-queue@^0.1.0: version "0.1.0" @@ -591,15 +612,6 @@ make-error@^1.1.1: 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.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" - integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg== - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - safe-buffer "^5.1.2" - memoizee@0.4.15: version "0.4.15" resolved "https://registry.yarnpkg.com/memoizee/-/memoizee-0.4.15.tgz#e6f3d2da863f318d02225391829a6c5956555b72" @@ -614,6 +626,11 @@ memoizee@0.4.15: next-tick "^1.1.0" timers-ext "^0.1.7" +micro-base@^0.10.2: + version "0.10.2" + resolved "https://registry.yarnpkg.com/micro-base/-/micro-base-0.10.2.tgz#f6f9f0bd949ce511883e5a99f9147d80ddc32f5a" + integrity sha512-lqqJrT7lfJtDmmiQ4zRLZuIJBk96t0RAc5pCrrWpL9zDeH5i/SUL85mku9HqzTI/OCZ8EQ3aicbMW+eK5Nyu5w== + mime-db@1.51.0: version "1.51.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.51.0.tgz#d9ff62451859b18342d960850dc3cfb77e63fb0c" @@ -626,21 +643,21 @@ mime-types@^2.1.12: dependencies: mime-db "1.51.0" -minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: - version "1.0.1" - 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.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" - integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= +mock-socket@^9.0.8: + version "9.1.0" + resolved "https://registry.yarnpkg.com/mock-socket/-/mock-socket-9.1.0.tgz#583f5984aa5759909c1b0f43676c669060722596" + integrity sha512-zNsH8h0D7buVMDZ2X1GyFYso9A1X1Co/TDfFs0AIKhSLkJeh381HYESNl/mL6BzmQpNOxZVnNhEDS1OWBrS+cQ== ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= +ms@2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + next-tick@1, next-tick@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" @@ -651,6 +668,16 @@ next-tick@~1.0.0: resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= +nock@^13.2.1: + version "13.2.2" + resolved "https://registry.yarnpkg.com/nock/-/nock-13.2.2.tgz#29a6942250278209c2b3e7a38310f703581b21fa" + integrity sha512-PcBHuvl9i6zfaJ50A7LS55oU+nFLv8htXIhffJO+FxyfibdZ4jEvd9kTuvkrJireBFIGMZ+oUIRpMK5gU9h//g== + dependencies: + debug "^4.1.0" + json-stringify-safe "^5.0.1" + lodash.set "^4.3.2" + propagate "^2.0.0" + node-fetch@^2.6.6: version "2.6.6" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.6.tgz#1751a7c01834e8e1697758732e9efb6eeadfaf89" @@ -672,14 +699,10 @@ node-gyp-build@^4.3.0: resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.3.0.tgz#9f256b03e5826150be39c764bf51e993946d71a3" integrity sha512-iWjXZvmboq0ja1pUGULQBexmxq8CV4xBhX7VDOTbL7ZR4FOowwY/VOtRxBN/yKxmdGoIp4j5ysNT4u3S2pDQ3Q== -readable-stream@^3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" - integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" +propagate@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/propagate/-/propagate-2.0.1.tgz#40cdedab18085c792334e64f0ac17256d38f9a45" + integrity sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag== readline@^1.3.0: version "1.3.0" @@ -691,45 +714,12 @@ regenerator-runtime@^0.13.4: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52" integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA== -ripemd160@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" - integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA== - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - -rxjs@^7.4.0: - version "7.4.0" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.4.0.tgz#a12a44d7eebf016f5ff2441b87f28c9a51cebc68" - integrity sha512-7SQDi7xeTMCJpqViXh8gL/lebcwlp3d831F05+9B44A4B0WfsEwUQHR64gsH1kvJ+Ep/J9K2+n1hVl1CsGN23w== - dependencies: - tslib "~2.1.0" - -safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -scryptsy@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/scryptsy/-/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" - integrity sha512-1CdSqHQowJBnMAFyPEBRfqag/YP9OF394FV+4YREIJX4ljD7OxvQRDayyoyyCk+senRjSkP6VnUNQmVQqB6g7w== - -sha.js@^2.4.0: - version "2.4.11" - resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" - integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ== +rxjs@^7.5.1: + version "7.5.2" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.2.tgz#11e4a3a1dfad85dbf7fb6e33cbba17668497490b" + integrity sha512-PwDt186XaL3QN5qXj/H9DGyHhP3/RYYgZZwqBv9Tv8rsAaiwFH1IsJJlcgD37J7UW5a6O67qX0KWKS3/pu0m4w== dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -string_decoder@^1.1.1: - version "1.3.0" - 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" + tslib "^2.1.0" timers-ext@^0.1.7: version "0.1.7" @@ -762,10 +752,10 @@ ts-node@^10.4.0: make-error "^1.1.1" yn "3.1.1" -tslib@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a" - integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A== +tslib@^2.1.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" + integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== tweetnacl@1.x.x, tweetnacl@^1.0.3: version "1.0.3" @@ -789,23 +779,18 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@^4.4.4: - version "4.4.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c" - integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA== +typescript@^4.5.4: + version "4.5.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8" + integrity sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg== utf-8-validate@^5.0.2: - 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== + version "5.0.8" + resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.8.tgz#4a735a61661dbb1c59a0868c397d2fe263f14e58" + integrity sha512-k4dW/Qja1BYDl2qD4tOMB9PFVha/UJtxTc1cXYOe3WwA/2m0Yn4qB7wLMpJyLJ/7DR0XnTut3HsCSzDT4ZvKgA== dependencies: node-gyp-build "^4.3.0" -util-deprecate@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= - web-streams-polyfill@^3.0.3: version "3.2.0" resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.2.0.tgz#a6b74026b38e4885869fb5c589e90b95ccfc7965" @@ -836,13 +821,6 @@ whatwg-url@^5.0.0: tr46 "~0.0.3" webidl-conversions "^3.0.0" -xxhashjs@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/xxhashjs/-/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8" - integrity sha512-AkTuIuVTET12tpsVIQo+ZU6f/qDmKuRUcjaqR+OIvm+aCBsZ95i7UVY5WJ9TMsSaZ0DA2WxoZ4acu0sPH+OKAw== - dependencies: - cuint "^0.2.2" - yaeti@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/yaeti/-/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" From f50941a3da08110151c6f079f8a0291edb292a6b Mon Sep 17 00:00:00 2001 From: joepetrowski Date: Fri, 14 Jan 2022 11:42:32 +0100 Subject: [PATCH 2/2] rename value to transferValue --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1a6600d..5c0fb85 100644 --- a/src/index.ts +++ b/src/index.ts @@ -42,7 +42,7 @@ async function main(): Promise { if (method == 'transfer'){ const inputs: TransferInputs = { recipientAddress: { id: transaction.args.recipientAddress.id }, - transferValue: transaction.args.value, + transferValue: transaction.args.transferValue, ...baseInputs } await doBalancesTransfer(inputs);