diff --git a/.yarn/patches/@joystream-js-npm-1.2.0-a8795e7496.patch b/.yarn/patches/@joystream-js-npm-1.2.0-a8795e7496.patch deleted file mode 100644 index 58f0d02318..0000000000 --- a/.yarn/patches/@joystream-js-npm-1.2.0-a8795e7496.patch +++ /dev/null @@ -1,353 +0,0 @@ -diff --git a/lib/cjs/content/channelPayouts.js b/lib/cjs/content/channelPayouts.js -index 55a4eea2057cf121e06552fcfd3a5b8beff289f9..fd022a311431c1f1c21783ec415b8fb087dbebfc 100644 ---- a/lib/cjs/content/channelPayouts.js -+++ b/lib/cjs/content/channelPayouts.js -@@ -23,13 +23,13 @@ exports.hashFunc = util_crypto_1.blake2AsU8a; - */ - function channelPayoutProof(context, pathOrUrl, channelId) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { -- const serializedHeader = yield serializedPayloadHeader(context, pathOrUrl); -+ const serializedHeader = yield serializedPayloadHeader((0, utils_1.readBytesFromFile)(context, pathOrUrl)); - const header = metadata_protobuf_1.ChannelPayoutsMetadata.Header.decode(serializedHeader); - const channelPayoutProofOffset = header.channelPayoutByteOffsets.find((o) => o.channelId === channelId); - if (!channelPayoutProofOffset) { - throw new Error(`No payout Proof exists for channel id ${channelId}`); - } -- return channelPayoutProofAtByteOffset(context, pathOrUrl, Number(channelPayoutProofOffset.byteOffset)); -+ return channelPayoutProofAtByteOffset((0, utils_1.readBytesFromFile)(context, pathOrUrl), Number(channelPayoutProofOffset.byteOffset)); - }); - } - exports.channelPayoutProof = channelPayoutProof; -@@ -84,16 +84,15 @@ function lengthOfVarintEncodedMessageSize(protobufMessageLength) { - * so we arbitrary read `n` bytes from the payload based on the assumption that the size of the header CAN BE - * encoded in `n` bytes. For reference, if serialized message is over 4 TB then its size information can be - * encoded in just 6 bytes -- * @param context "PATH" | "URL" -- * @param pathOrUrl path to protobuf serialized payload file -+ * @param read getter which returns the requested sequence of bytes - * @param messageOffset byte offset of message in serialized payload - * @returns length of serialized message in number of bytes - */ --function lengthOfProtobufMessage(context, pathOrUrl, messageOffset) { -+function lengthOfProtobufMessage(read, messageOffset) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - // TODO: improve the implementation by reading size info byte by byte - // TODO: and checking most significant bit (msb) of each byte. -- const arbitraryBytes = yield (0, utils_1.readBytesFromFile)(context, pathOrUrl, messageOffset, messageOffset + 10); -+ const arbitraryBytes = yield read(messageOffset, messageOffset + 10); - const lengthOfMessage = protobufjs_1.Reader.create(arbitraryBytes).uint32(); - return lengthOfMessage; - }); -@@ -115,32 +114,30 @@ function lengthOfHeader(numberOfChannels) { - } - /** - * Get serialized payload header from a local file. -- * @param context "PATH" | "URL" -- * @param pathOrUrl path to protobuf serialized payload file -+ * @param read getter which returns the requested sequence of bytes - * @return bytes of payload header - **/ --function serializedPayloadHeader(context, pathOrUrl) { -+function serializedPayloadHeader(read) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - // skip the first byte which is the Tag(key) of `Header` message -- const lengthOfSerializedHeader = yield lengthOfProtobufMessage(context, pathOrUrl, 1); -+ const lengthOfSerializedHeader = yield lengthOfProtobufMessage(read, 1); - const lengthOfVarintEncodedHeaderSize = lengthOfVarintEncodedMessageSize(lengthOfSerializedHeader); -- const serializedHeader = yield (0, utils_1.readBytesFromFile)(context, pathOrUrl, 1 + lengthOfVarintEncodedHeaderSize, lengthOfVarintEncodedHeaderSize + lengthOfSerializedHeader); -+ const serializedHeader = yield read(1 + lengthOfVarintEncodedHeaderSize, lengthOfVarintEncodedHeaderSize + lengthOfSerializedHeader); - return serializedHeader; - }); - } - exports.serializedPayloadHeader = serializedPayloadHeader; - /** - * Get channel payout Proof from local serialized payload file. -- * @param context "PATH" | "URL" -- * @param pathOrUrl path to protobuf serialized payload file -+ * @param read getter which returns the requested sequence of bytes - * @param byteOffset byte offset of channel payout Proof in serialized payload - * @return channel payout Proof - **/ --function channelPayoutProofAtByteOffset(context, pathOrUrl, byteOffset) { -+function channelPayoutProofAtByteOffset(read, byteOffset) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { -- const lengthOfSerializedProof = yield lengthOfProtobufMessage(context, pathOrUrl, byteOffset); -+ const lengthOfSerializedProof = yield lengthOfProtobufMessage(read, byteOffset); - const lengthOfVarintEncodedProofSize = lengthOfVarintEncodedMessageSize(lengthOfSerializedProof); -- const serializedPayoutProof = yield (0, utils_1.readBytesFromFile)(context, pathOrUrl, byteOffset + lengthOfVarintEncodedProofSize, byteOffset + lengthOfSerializedProof + 1); -+ const serializedPayoutProof = yield read(byteOffset + lengthOfVarintEncodedProofSize, byteOffset + lengthOfSerializedProof + 1); - const proof = metadata_protobuf_1.ChannelPayoutsMetadata.Body.ChannelPayoutProof.decode(serializedPayoutProof); - return proof; - }); -@@ -148,18 +145,18 @@ function channelPayoutProofAtByteOffset(context, pathOrUrl, byteOffset) { - exports.channelPayoutProofAtByteOffset = channelPayoutProofAtByteOffset; - /** - * Generate merkle root from the serialized payload -- * @param context "PATH" | "URL" -- * @param pathOrUrl path to protobuf serialized payload file -+ * @param read getter which returns the requested sequence of bytes - * @returns merkle root of the cashout vector - */ --function generateCommitmentFromPayloadFile(context, pathOrUrl) { -+function generateCommitmentFromPayloadFile(read) { -+ var _a; - return tslib_1.__awaiter(this, void 0, void 0, function* () { -- const serializedHeader = yield serializedPayloadHeader(context, pathOrUrl); -+ const serializedHeader = yield serializedPayloadHeader(read); - const header = metadata_protobuf_1.ChannelPayoutsMetadata.Header.decode(serializedHeader); - // Any payout Proof can be used to generate the merkle root, - // here first Proof from channel payouts payload is used -- const ProofByteOffset = header.channelPayoutByteOffsets.shift().byteOffset.toNumber(); -- const proof = yield channelPayoutProofAtByteOffset(context, pathOrUrl, ProofByteOffset); -+ const ProofByteOffset = Number((_a = header.channelPayoutByteOffsets.shift()) === null || _a === void 0 ? void 0 : _a.byteOffset); -+ const proof = yield channelPayoutProofAtByteOffset(read, ProofByteOffset); - return verifyChannelPayoutProof(proof); - }); - } -diff --git a/lib/cjs/utils/InputOutput.js b/lib/cjs/utils/InputOutput.js -index 410f2d79b6bf54e59a65b049a90881bec9d9ce99..98876f85e78f2cd7a1ab593cba80c62442a70ff6 100644 ---- a/lib/cjs/utils/InputOutput.js -+++ b/lib/cjs/utils/InputOutput.js -@@ -10,12 +10,10 @@ const fs_1 = tslib_1.__importDefault(require("fs")); - * provided path. Both `start` and `end` are inclusive - * @param context path to the file - * @param pathOrUrl -- * @param start starting index of the range -- * @param end ending index of the range -- * @returns byte sequence -+ * @returns ReadBytes - */ --function readBytesFromFile(context, pathOrUrl, start, end) { -- return tslib_1.__awaiter(this, void 0, void 0, function* () { -+function readBytesFromFile(context, pathOrUrl) { -+ return (start, end) => tslib_1.__awaiter(this, void 0, void 0, function* () { - try { - if (context === 'PATH') { - return new Promise((resolve) => { -diff --git a/lib/content/channelPayouts.d.ts b/lib/content/channelPayouts.d.ts -index bb13b86dd2e999a197505a17f4a692b909ee99af..608ff257a43b026b1ddaac7d99740c757c862617 100644 ---- a/lib/content/channelPayouts.d.ts -+++ b/lib/content/channelPayouts.d.ts -@@ -3,7 +3,7 @@ import { PalletCommonMerkleTreeProofElementRecord as ProofElement, PalletContent - import { blake2AsU8a } from '@polkadot/util-crypto'; - import { ChannelPayoutProof } from '../../typings/ChannelPayoutsPayload.schema'; - import { ChannelPayoutsVector } from '../../typings/ChannelPayoutsVector.schema'; --import { ReadFileContext } from '../utils'; -+import { ReadBytes, ReadFileContext } from '../utils'; - export declare const hashFunc: typeof blake2AsU8a; - /** - * Get Payout Proof for given channel from -@@ -27,26 +27,23 @@ export declare function prepareClaimChannelRewardExtrinsicArgs(payoutProof: Chan - }; - /** - * Get serialized payload header from a local file. -- * @param context "PATH" | "URL" -- * @param pathOrUrl path to protobuf serialized payload file -+ * @param read getter which returns the requested sequence of bytes - * @return bytes of payload header - **/ --export declare function serializedPayloadHeader(context: ReadFileContext, pathOrUrl: string): Promise; -+export declare function serializedPayloadHeader(read: ReadBytes): Promise; - /** - * Get channel payout Proof from local serialized payload file. -- * @param context "PATH" | "URL" -- * @param pathOrUrl path to protobuf serialized payload file -+ * @param read getter which returns the requested sequence of bytes - * @param byteOffset byte offset of channel payout Proof in serialized payload - * @return channel payout Proof - **/ --export declare function channelPayoutProofAtByteOffset(context: ReadFileContext, pathOrUrl: string, byteOffset: number): Promise; -+export declare function channelPayoutProofAtByteOffset(read: ReadBytes, byteOffset: number): Promise; - /** - * Generate merkle root from the serialized payload -- * @param context "PATH" | "URL" -- * @param pathOrUrl path to protobuf serialized payload file -+ * @param read getter which returns the requested sequence of bytes - * @returns merkle root of the cashout vector - */ --export declare function generateCommitmentFromPayloadFile(context: ReadFileContext, pathOrUrl: string): Promise; -+export declare function generateCommitmentFromPayloadFile(read: ReadBytes): Promise; - /** - * Generate merkle root from branch of a channel payout proof - * @param proof channel payout proof record -diff --git a/lib/mjs/content/channelPayouts.js b/lib/mjs/content/channelPayouts.js -index 4fae497208574a7f304efd7e91b54f0c09c02258..c066fc7a4a4633bc38fcc51bb810ed6d0ebaeb3a 100644 ---- a/lib/mjs/content/channelPayouts.js -+++ b/lib/mjs/content/channelPayouts.js -@@ -18,13 +18,13 @@ export const hashFunc = blake2AsU8a; - * @returns payout proof record for given channel Id - */ - export async function channelPayoutProof(context, pathOrUrl, channelId) { -- const serializedHeader = await serializedPayloadHeader(context, pathOrUrl); -+ const serializedHeader = await serializedPayloadHeader(readBytesFromFile(context, pathOrUrl)); - const header = ChannelPayoutsMetadata.Header.decode(serializedHeader); - const channelPayoutProofOffset = header.channelPayoutByteOffsets.find((o) => o.channelId === channelId); - if (!channelPayoutProofOffset) { - throw new Error(`No payout Proof exists for channel id ${channelId}`); - } -- return channelPayoutProofAtByteOffset(context, pathOrUrl, Number(channelPayoutProofOffset.byteOffset)); -+ return channelPayoutProofAtByteOffset(readBytesFromFile(context, pathOrUrl), Number(channelPayoutProofOffset.byteOffset)); - } - /** - * Get Payout Proof for given channel from -@@ -76,15 +76,14 @@ function lengthOfVarintEncodedMessageSize(protobufMessageLength) { - * so we arbitrary read `n` bytes from the payload based on the assumption that the size of the header CAN BE - * encoded in `n` bytes. For reference, if serialized message is over 4 TB then its size information can be - * encoded in just 6 bytes -- * @param context "PATH" | "URL" -- * @param pathOrUrl path to protobuf serialized payload file -+ * @param read getter which returns the requested sequence of bytes - * @param messageOffset byte offset of message in serialized payload - * @returns length of serialized message in number of bytes - */ --async function lengthOfProtobufMessage(context, pathOrUrl, messageOffset) { -+async function lengthOfProtobufMessage(read, messageOffset) { - // TODO: improve the implementation by reading size info byte by byte - // TODO: and checking most significant bit (msb) of each byte. -- const arbitraryBytes = await readBytesFromFile(context, pathOrUrl, messageOffset, messageOffset + 10); -+ const arbitraryBytes = await read(messageOffset, messageOffset + 10); - const lengthOfMessage = Reader.create(arbitraryBytes).uint32(); - return lengthOfMessage; - } -@@ -105,44 +104,41 @@ function lengthOfHeader(numberOfChannels) { - } - /** - * Get serialized payload header from a local file. -- * @param context "PATH" | "URL" -- * @param pathOrUrl path to protobuf serialized payload file -+ * @param read getter which returns the requested sequence of bytes - * @return bytes of payload header - **/ --export async function serializedPayloadHeader(context, pathOrUrl) { -+export async function serializedPayloadHeader(read) { - // skip the first byte which is the Tag(key) of `Header` message -- const lengthOfSerializedHeader = await lengthOfProtobufMessage(context, pathOrUrl, 1); -+ const lengthOfSerializedHeader = await lengthOfProtobufMessage(read, 1); - const lengthOfVarintEncodedHeaderSize = lengthOfVarintEncodedMessageSize(lengthOfSerializedHeader); -- const serializedHeader = await readBytesFromFile(context, pathOrUrl, 1 + lengthOfVarintEncodedHeaderSize, lengthOfVarintEncodedHeaderSize + lengthOfSerializedHeader); -+ const serializedHeader = await read(1 + lengthOfVarintEncodedHeaderSize, lengthOfVarintEncodedHeaderSize + lengthOfSerializedHeader); - return serializedHeader; - } - /** - * Get channel payout Proof from local serialized payload file. -- * @param context "PATH" | "URL" -- * @param pathOrUrl path to protobuf serialized payload file -+ * @param read getter which returns the requested sequence of bytes - * @param byteOffset byte offset of channel payout Proof in serialized payload - * @return channel payout Proof - **/ --export async function channelPayoutProofAtByteOffset(context, pathOrUrl, byteOffset) { -- const lengthOfSerializedProof = await lengthOfProtobufMessage(context, pathOrUrl, byteOffset); -+export async function channelPayoutProofAtByteOffset(read, byteOffset) { -+ const lengthOfSerializedProof = await lengthOfProtobufMessage(read, byteOffset); - const lengthOfVarintEncodedProofSize = lengthOfVarintEncodedMessageSize(lengthOfSerializedProof); -- const serializedPayoutProof = await readBytesFromFile(context, pathOrUrl, byteOffset + lengthOfVarintEncodedProofSize, byteOffset + lengthOfSerializedProof + 1); -+ const serializedPayoutProof = await read(byteOffset + lengthOfVarintEncodedProofSize, byteOffset + lengthOfSerializedProof + 1); - const proof = ChannelPayoutsMetadata.Body.ChannelPayoutProof.decode(serializedPayoutProof); - return proof; - } - /** - * Generate merkle root from the serialized payload -- * @param context "PATH" | "URL" -- * @param pathOrUrl path to protobuf serialized payload file -+ * @param read getter which returns the requested sequence of bytes - * @returns merkle root of the cashout vector - */ --export async function generateCommitmentFromPayloadFile(context, pathOrUrl) { -- const serializedHeader = await serializedPayloadHeader(context, pathOrUrl); -+export async function generateCommitmentFromPayloadFile(read) { -+ const serializedHeader = await serializedPayloadHeader(read); - const header = ChannelPayoutsMetadata.Header.decode(serializedHeader); - // Any payout Proof can be used to generate the merkle root, - // here first Proof from channel payouts payload is used -- const ProofByteOffset = header.channelPayoutByteOffsets.shift().byteOffset.toNumber(); -- const proof = await channelPayoutProofAtByteOffset(context, pathOrUrl, ProofByteOffset); -+ const ProofByteOffset = Number(header.channelPayoutByteOffsets.shift()?.byteOffset); -+ const proof = await channelPayoutProofAtByteOffset(read, ProofByteOffset); - return verifyChannelPayoutProof(proof); - } - /** -diff --git a/lib/mjs/utils/InputOutput.js b/lib/mjs/utils/InputOutput.js -index 20f374c98624aec760d7b4d79e9655b19cfe8701..0283a136d0f959626361edd849c1ad65c6a7d595 100644 ---- a/lib/mjs/utils/InputOutput.js -+++ b/lib/mjs/utils/InputOutput.js -@@ -6,31 +6,31 @@ import fs from 'fs'; - * provided path. Both `start` and `end` are inclusive - * @param context path to the file - * @param pathOrUrl -- * @param start starting index of the range -- * @param end ending index of the range -- * @returns byte sequence -+ * @returns ReadBytes - */ --export async function readBytesFromFile(context, pathOrUrl, start, end) { -- try { -- if (context === 'PATH') { -- return new Promise((resolve) => { -- const a = fs.createReadStream(pathOrUrl, { start, end }).on('data', (data) => { -- resolve(data); -- a.close(); -+export function readBytesFromFile(context, pathOrUrl) { -+ return async (start, end) => { -+ try { -+ if (context === 'PATH') { -+ return new Promise((resolve) => { -+ const a = fs.createReadStream(pathOrUrl, { start, end }).on('data', (data) => { -+ resolve(data); -+ a.close(); -+ }); - }); -+ } -+ const response = await axios.get(pathOrUrl, { -+ responseType: 'arraybuffer', -+ headers: { -+ range: `bytes=${start}-${end}`, -+ }, - }); -+ return new Uint8Array(response.data); - } -- const response = await axios.get(pathOrUrl, { -- responseType: 'arraybuffer', -- headers: { -- range: `bytes=${start}-${end}`, -- }, -- }); -- return new Uint8Array(response.data); -- } -- catch (error) { -- throw new Error(`Failed to read input stream`); -- } -+ catch (error) { -+ throw new Error(`Failed to read input stream`); -+ } -+ }; - } - export async function getInputJson(inputPath, schema) { - let content, jsonObj; -diff --git a/lib/utils/InputOutput.d.ts b/lib/utils/InputOutput.d.ts -index e91c7f13c817460906dc364980a1e33725b0c457..317e4f68aa8b88fb752e9556c25294d09fa56d07 100644 ---- a/lib/utils/InputOutput.d.ts -+++ b/lib/utils/InputOutput.d.ts -@@ -1,13 +1,18 @@ - export declare type ReadFileContext = 'PATH' | 'URL'; -+/** -+ * Read sequence of bytes from arbitrary source. Both `start` and `end` are inclusive -+ * @param start starting indexj -+ * @param end ending index of the range -+ * @returns byte sequence -+ */ -+export declare type ReadBytes = (start: number, end: number) => Promise; - /** - * Read sequence of bytes from the file or remote host - * provided path. Both `start` and `end` are inclusive - * @param context path to the file - * @param pathOrUrl -- * @param start starting index of the range -- * @param end ending index of the range -- * @returns byte sequence -+ * @returns ReadBytes - */ --export declare function readBytesFromFile(context: ReadFileContext, pathOrUrl: string, start: number, end: number): Promise; -+export declare function readBytesFromFile(context: ReadFileContext, pathOrUrl: string): ReadBytes; - export declare function getInputJson(inputPath: string, schema?: unknown): Promise; - export declare function validateInput(input: unknown, schema: unknown): Promise; diff --git a/CHANGELOG.md b/CHANGELOG.md index 4baf478d49..128e5f66b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [3.4.0] - 2024-03-19 + +### Fixed +- Validator APR not showing. + +### Added +- Github member links. + +### Changed +- JOY token banner copy. + ## [3.3.1] - 2024-03-14 ### Added @@ -152,7 +163,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.9.0] - 2023-11-03 ### Added -- Linkedin to membership social profile +- Linkedin to membership social profile. ### Fixed - Proposal history blocks styles. @@ -357,7 +368,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.1.1] - 2022-12-02 -[unreleased]: https://github.com/Joystream/pioneer/compare/v3.3.0...HEAD +[unreleased]: https://github.com/Joystream/pioneer/compare/v3.4.0...HEAD +[3.4.0]: https://github.com/Joystream/pioneer/compare/v3.3.1...v3.4.0 [3.3.1]: https://github.com/Joystream/pioneer/compare/v3.3.0...v3.3.1 [3.3.0]: https://github.com/Joystream/pioneer/compare/v3.2.0...v3.3.0 [3.2.0]: https://github.com/Joystream/pioneer/compare/v3.1.0...v3.2.0 diff --git a/package.json b/package.json index 0fb5e2eb6c..7a1ef87d39 100644 --- a/package.json +++ b/package.json @@ -34,20 +34,20 @@ "@babel/parser": "~7.21.0", "@babel/traverse": "~7.21.0", "@babel/types": "~7.21.0", - "@polkadot/api": "8.9.1", - "@polkadot/api-contract": "8.9.1", - "@polkadot/api-derive": "8.9.1", - "@polkadot/hw-ledger": "9.5.1", - "@polkadot/keyring": "9.5.1", - "@polkadot/networks": "9.5.1", - "@polkadot/rpc-core": "8.9.1", - "@polkadot/rpc-provider": "8.9.1", - "@polkadot/types": "8.9.1", - "@polkadot/types-known": "8.9.1", - "@polkadot/util": "9.5.1", - "@polkadot/util-crypto": "9.5.1", - "bn.js": "^4.11.9", - "@joystream/js@1.2.0": "patch:@joystream/js@npm%3A1.2.0#./.yarn/patches/@joystream-js-npm-1.2.0-a8795e7496.patch" + "@joystream/types": "4.3.0", + "@polkadot/api": "10.1.4", + "@polkadot/api-contract": "10.1.4", + "@polkadot/api-derive": "10.1.4", + "@polkadot/hw-ledger": "11.1.1", + "@polkadot/keyring": "11.1.1", + "@polkadot/networks": "11.1.1", + "@polkadot/rpc-core": "10.1.4", + "@polkadot/rpc-provider": "10.1.4", + "@polkadot/types": "10.1.4", + "@polkadot/types-known": "10.1.4", + "@polkadot/util": "11.1.1", + "@polkadot/util-crypto": "11.1.1", + "bn.js": "^4.11.9" }, "engines": { "node": ">=18", diff --git a/packages/ui/.storybook/preview.tsx b/packages/ui/.storybook/preview.tsx index 8ba958bc6b..a315b869d7 100644 --- a/packages/ui/.storybook/preview.tsx +++ b/packages/ui/.storybook/preview.tsx @@ -7,6 +7,7 @@ import { createGlobalStyle } from 'styled-components' import { GlobalModals } from '../src/app/GlobalModals' import { GlobalStyle } from '../src/app/providers/GlobalStyle' +import { ResponsiveProvider } from '../src/common/providers/responsive/provider' import { OnBoardingProvider } from '../src/common/providers/onboarding/provider' import { NotificationsHolder } from '../src/common/components/page/SideNotification' import { TransactionStatus } from '../src/common/components/TransactionStatus/TransactionStatus' @@ -53,16 +54,18 @@ const RHFDecorator: Decorator = (Story) => { ) } -const ModalDecorator: Decorator = (Story) => ( +const Providers: Decorator = (Story) => ( - - - - - + + + + + + + @@ -85,7 +88,7 @@ const KeyringDecorator: Decorator = (Story) => { } export const decorators = [ - ModalDecorator, + Providers, stylesWrapperDecorator, i18nextDecorator, RHFDecorator, diff --git a/packages/ui/package.json b/packages/ui/package.json index 73c7ba0519..1b8a27bb6e 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@joystream/pioneer", - "version": "3.3.1", + "version": "3.4.0", "license": "GPL-3.0-only", "scripts": { "build": "node --max_old_space_size=4096 ./build.js", @@ -26,22 +26,22 @@ "dependencies": { "@apollo/client": "3.5.7", "@hcaptcha/react-hcaptcha": "^1.4.4", - "@joystream/js": "1.2.0", + "@joystream/js": "1.10.0", "@joystream/markdown-editor": "^0.1.0", - "@joystream/metadata-protobuf": "^2.10.0", - "@joystream/types": "4.2.0", + "@joystream/metadata-protobuf": "2.15.0", + "@joystream/types": "4.3.0", "@nivo/bar": "^0.79.1", "@nivo/core": "^0.79.0", "@noble/hashes": "^1.1.5", "@oneidentity/zstd-js": "^1.0.3", - "@polkadot/api": "8.9.1", - "@polkadot/extension-dapp": "0.44.2-4", - "@polkadot/keyring": "9.5.1", - "@polkadot/react-identicon": "2.5.1", - "@polkadot/types": "8.9.1", - "@polkadot/ui-keyring": "2.5.1", - "@polkadot/util": "9.5.1", - "@polkadot/util-crypto": "9.5.1", + "@polkadot/api": "10.1.4", + "@polkadot/extension-dapp": "0.45.3", + "@polkadot/keyring": "11.1.1", + "@polkadot/react-identicon": "3.1.1", + "@polkadot/types": "10.1.4", + "@polkadot/ui-keyring": "3.1.1", + "@polkadot/util": "11.1.1", + "@polkadot/util-crypto": "11.1.1", "@popperjs/core": "^2.10.2", "@types/jest": "^27.0.2", "@types/react": "^17.0.27", @@ -84,7 +84,7 @@ "react-router-dom": "^5.3.0", "react-transition-group": "^4.4.2", "remark-gfm": "^3.0.1", - "rxjs": "^7.5.5", + "rxjs": "7.8.1", "stream-browserify": "^3.0.0", "styled-components": "^5.3.1", "subscriptions-transport-ws": "^0.11.0", @@ -127,6 +127,7 @@ "babel-loader": "^8.2.2", "babel-plugin-import-graphql": "^2.8.1", "babel-plugin-styled-components": "^2.1.3", + "buffer": "^6.0.3", "chalk": "^4.1.2", "clean-webpack-plugin": "^4.0.0", "cross-env": "^7.0.3", diff --git a/packages/ui/src/app/App.stories.tsx b/packages/ui/src/app/App.stories.tsx index 4d7cc51067..1bcf6afc05 100644 --- a/packages/ui/src/app/App.stories.tsx +++ b/packages/ui/src/app/App.stories.tsx @@ -123,8 +123,6 @@ export default { : { query: { members: { membershipPrice: joy(20) }, - council: { stage: { stage: { isIdle: true }, changedAt: 123 } }, - referendum: { stage: {} }, staking: { validators: { entries: Object.entries(validators).map(([address, { commission }]) => [ diff --git a/packages/ui/src/app/pages/Election/BlacklistedAccounts/BlacklistedAccounts.stories.tsx b/packages/ui/src/app/pages/Election/BlacklistedAccounts/BlacklistedAccounts.stories.tsx index 9ddb8c56a5..e60cf96e65 100644 --- a/packages/ui/src/app/pages/Election/BlacklistedAccounts/BlacklistedAccounts.stories.tsx +++ b/packages/ui/src/app/pages/Election/BlacklistedAccounts/BlacklistedAccounts.stories.tsx @@ -23,9 +23,6 @@ export default { accounts: { list: allAccounts }, chain: { query: { - council: { - stage: { stage: { isIdle: true }, changedAt: 123 }, - }, referendum: { accountsOptedOut: { keys: Array.from({ length: 23 }).map( diff --git a/packages/ui/src/app/pages/Profile/components/BannerSection.tsx b/packages/ui/src/app/pages/Profile/components/BannerSection.tsx index a8d594936f..3cee9d3684 100644 --- a/packages/ui/src/app/pages/Profile/components/BannerSection.tsx +++ b/packages/ui/src/app/pages/Profile/components/BannerSection.tsx @@ -1,9 +1,10 @@ import React from 'react' import styled from 'styled-components' +import { CurrencyName } from '@/app/constants/currency' import { CloseButton } from '@/common/components/buttons' -import { LinkButtonLinkStyles } from '@/common/components/buttons/LinkButtons' import { Arrow, QuestionIcon } from '@/common/components/icons' +import { Link } from '@/common/components/Link' import { RowGapBlock } from '@/common/components/page/PageContent' import { DefaultTooltip } from '@/common/components/Tooltip' import { TextInlineMedium, TextMedium } from '@/common/components/typography/Text' @@ -21,26 +22,20 @@ export const BannerSection = ({ setShouldDismissBanner }: Props) => { - What is Joy Token? + What is the {CurrencyName.integerValue} Token? setShouldDismissBanner(true)} /> - JOY token is a native crypto asset of Joystream blockchain. It is used for platform governance, purchasing NFTs, - trading creator tokens, and covering blockchain processing fees. They are listed on  - - MEXC - -  exchange under "JOYSTREAM" ticker. + The {CurrencyName.integerValue} token is the native crypto asset of the Joystream blockchain. It is used for + platform governance, purchasing NFTs, trading creator tokens, and covering the blockchain processing fees.{' '} + + This token is listed on several exchanges. + - Learn how to earn JOY's + Learn how to earn {CurrencyName.integerValue}s{' '} + ) @@ -71,8 +66,6 @@ const TextLink = styled.a` const BannerTooltip = styled(DefaultTooltip)` margin-top: 1px; ` -const CustomLinkStyle = styled(LinkButtonLinkStyles)` - display: inline-flex; - // margin-left: 2px; - // margin-right: 2px; +const StyledLink = styled(Link)` + font-family: inherit; ` diff --git a/packages/ui/src/app/pages/Proposals/ProposalPreview.stories.tsx b/packages/ui/src/app/pages/Proposals/ProposalPreview.stories.tsx index 03308ccbeb..b94aa4b0df 100644 --- a/packages/ui/src/app/pages/Proposals/ProposalPreview.stories.tsx +++ b/packages/ui/src/app/pages/Proposals/ProposalPreview.stories.tsx @@ -132,7 +132,6 @@ export default { council: { budget: joy(1000), councilorReward: joy(1), - stage: { stage: { isIdle: true }, changedAt: 123 }, }, referendum: { stage: {} }, }, diff --git a/packages/ui/src/common/components/icons/socials/Github.tsx b/packages/ui/src/common/components/icons/socials/Github.tsx new file mode 100644 index 0000000000..e1da754c90 --- /dev/null +++ b/packages/ui/src/common/components/icons/socials/Github.tsx @@ -0,0 +1,9 @@ +import React from 'react' + +export const GithubIcon = ({ className }: { className?: string }) => { + return ( + + + + ) +} diff --git a/packages/ui/src/common/components/icons/socials/index.ts b/packages/ui/src/common/components/icons/socials/index.ts index 8f8eb1c93d..688d0102d1 100644 --- a/packages/ui/src/common/components/icons/socials/index.ts +++ b/packages/ui/src/common/components/icons/socials/index.ts @@ -10,3 +10,4 @@ export * from './Youtube' export * from './Wechat' export * from './Whatsapp' export * from './Linkedin' +export * from './Github' diff --git a/packages/ui/src/council/hooks/useElectionStage.ts b/packages/ui/src/council/hooks/useElectionStage.ts index 38c4e7ff35..6325decf6c 100644 --- a/packages/ui/src/council/hooks/useElectionStage.ts +++ b/packages/ui/src/council/hooks/useElectionStage.ts @@ -26,9 +26,9 @@ export const useElectionStage = (): UseElectionStage => { export const electionStageObservable = (api: Api) => { const councilObservable = api.query.council.stage().pipe( concatMap(({ stage: councilStage, changedAt }): Observable => { - if (councilStage.isIdle) { + if (councilStage.isIdle.valueOf()) { return of({ stage: 'inactive', changedAt }) - } else if (councilStage.isAnnouncing) { + } else if (councilStage.isAnnouncing.valueOf()) { return of({ stage: 'announcing', changedAt }) } return EMPTY @@ -36,9 +36,9 @@ export const electionStageObservable = (api: Api) => { ) const referendumObservable = api.query.referendum.stage().pipe( concatMap((referendumStage): Observable => { - if (referendumStage.isVoting) { + if (referendumStage.isVoting.valueOf()) { return of({ stage: 'voting', changedAt: referendumStage.asVoting.started }) - } else if (referendumStage.isRevealing) { + } else if (referendumStage.isRevealing.valueOf()) { return of({ stage: 'revealing', changedAt: referendumStage.asRevealing.started }) } return EMPTY diff --git a/packages/ui/src/memberships/components/MemberListFilters/MemberListFilters.tsx b/packages/ui/src/memberships/components/MemberListFilters/MemberListFilters.tsx index 9574ba1013..8b0f49c747 100644 --- a/packages/ui/src/memberships/components/MemberListFilters/MemberListFilters.tsx +++ b/packages/ui/src/memberships/components/MemberListFilters/MemberListFilters.tsx @@ -102,6 +102,7 @@ const searchFilterOptions: MemberSearchFilter[] = [ 'Whatsapp', 'Youtube', 'Linkedin', + 'Github', ] export interface MemberListFiltersProps { diff --git a/packages/ui/src/memberships/components/SocialMediaSelector.tsx b/packages/ui/src/memberships/components/SocialMediaSelector.tsx index e4649990df..c52eaf9e4c 100644 --- a/packages/ui/src/memberships/components/SocialMediaSelector.tsx +++ b/packages/ui/src/memberships/components/SocialMediaSelector.tsx @@ -9,8 +9,7 @@ import { MemberFormFields } from '@/memberships/modals/BuyMembershipModal/BuyMem import { SocialMediaInput, SocialMediaSelectorList } from './SocialMediaSelector/SocialMediaSelector' -// TODO Partial after upgrading @joystream/metadata-protobuf -const socialToPlaceholder: Partial> = { +const socialToPlaceholder: Record = { HYPERLINK: 'Enter URL', WECHAT: 'Enter Username', IRC: 'Enter Username', @@ -23,6 +22,7 @@ const socialToPlaceholder: Partial> = { TWITTER: 'Enter Username', EMAIL: 'Enter Email', LINKEDIN: 'Enter Username', + GITHUB: 'Enter Username', } interface Props { diff --git a/packages/ui/src/memberships/components/SocialMediaSelector/SocialMediaSelector.tsx b/packages/ui/src/memberships/components/SocialMediaSelector/SocialMediaSelector.tsx index 5c365b77c1..0c91977b48 100644 --- a/packages/ui/src/memberships/components/SocialMediaSelector/SocialMediaSelector.tsx +++ b/packages/ui/src/memberships/components/SocialMediaSelector/SocialMediaSelector.tsx @@ -10,8 +10,7 @@ import { MemberFormFields } from '@/memberships/modals/BuyMembershipModal/BuyMem import { socialTitle } from '../SocialMediaTile/SocialMediaTile' -// TODO Partial after upgrading @joystream/metadata-protobuf -const socialToPlaceholder: Partial> = { +const socialToPlaceholder: Record = { HYPERLINK: 'Enter URL', WECHAT: 'Enter Username', IRC: 'Enter Username', @@ -24,6 +23,7 @@ const socialToPlaceholder: Partial> = { TWITTER: 'Enter Username', EMAIL: 'Enter Email', LINKEDIN: 'Enter Username', + GITHUB: 'Enter Username', } interface Props { diff --git a/packages/ui/src/memberships/components/SocialMediaTile/SocialMediaTile.tsx b/packages/ui/src/memberships/components/SocialMediaTile/SocialMediaTile.tsx index 7811c08744..48507daec7 100644 --- a/packages/ui/src/memberships/components/SocialMediaTile/SocialMediaTile.tsx +++ b/packages/ui/src/memberships/components/SocialMediaTile/SocialMediaTile.tsx @@ -15,16 +15,16 @@ import { YoutubeIcon, TelegramIcon, LinkedinIcon, + GithubIcon, } from '@/common/components/icons/socials' import { RowGapBlock } from '@/common/components/page/PageContent' import { TextMedium } from '@/common/components/typography' import { BorderRad, Colors } from '@/common/constants' import { capitalizeFirstLetter } from '@/common/helpers' -// TODO remove 'GITHUB' and Partial after upgrading @joystream/metadata-protobuf -export type Socials = keyof typeof MembershipMetadata.ExternalResource.ResourceType | 'GITHUB' +export type Socials = keyof typeof MembershipMetadata.ExternalResource.ResourceType -export const socialToIcon: Partial> = { +export const socialToIcon: Record = { EMAIL: , TWITTER: , TELEGRAM: , @@ -37,6 +37,7 @@ export const socialToIcon: Partial> = { WHATSAPP: , HYPERLINK: , LINKEDIN: , + GITHUB: , } export const socialMediaList = Object.keys(socialToIcon) as (keyof typeof socialToIcon)[] diff --git a/packages/ui/src/mocks/data/proposals.ts b/packages/ui/src/mocks/data/proposals.ts index efe2cb2999..f65ecb7c1b 100644 --- a/packages/ui/src/mocks/data/proposals.ts +++ b/packages/ui/src/mocks/data/proposals.ts @@ -245,7 +245,6 @@ export const proposalsPagesChain = ( budget: councilBudget, councilorReward, nextRewardPayments, - stage: { stage: { isIdle: true }, changedAt: 123 }, }, referendum: { stage: {} }, diff --git a/packages/ui/src/mocks/helpers/transactions.ts b/packages/ui/src/mocks/helpers/transactions.ts index 94283dfcb4..6bdedee9c7 100644 --- a/packages/ui/src/mocks/helpers/transactions.ts +++ b/packages/ui/src/mocks/helpers/transactions.ts @@ -27,7 +27,7 @@ export const fromTxMock = ( const event = failure ? createErrorEvents(failure) : createSuccessEvents(eventData, moduleName, eventName) const txResult = stubTransactionResult(event) - const paymentInfo = () => of({ partialFee: createType('BalanceOf', joy(fee)) }) + const paymentInfo = () => of({ partialFee: createType('BalanceOf', new BN(joy(fee))) }) return (...args: any[]) => { onCall?.(...args) diff --git a/packages/ui/src/mocks/providers/api.tsx b/packages/ui/src/mocks/providers/api.tsx index b433f3e025..b07e185aa6 100644 --- a/packages/ui/src/mocks/providers/api.tsx +++ b/packages/ui/src/mocks/providers/api.tsx @@ -46,6 +46,8 @@ export const MockApiProvider: FC = ({ children, chain }) => { const defaultQuery = { session: { validators: [] }, staking: { activeEra: {} }, + council: { stage: { stage: { isIdle: true, isAnnouncing: false }, changedAt: 123 } }, + referendum: { stage: { isVoting: false, isRevealing: false } }, } const rpcChain = { getBlockHash: createType('BlockHash', BLOCK_HASH), diff --git a/packages/ui/src/validators/providers/useValidatorsQueries.ts b/packages/ui/src/validators/providers/useValidatorsQueries.ts index 16f8055d59..f2bc11ab25 100644 --- a/packages/ui/src/validators/providers/useValidatorsQueries.ts +++ b/packages/ui/src/validators/providers/useValidatorsQueries.ts @@ -1,5 +1,3 @@ -import { Vec } from '@polkadot/types' -import { AccountId } from '@polkadot/types/interfaces' import { PalletStakingExposure } from '@polkadot/types/lookup' import BN from 'bn.js' import { useMemo } from 'react' @@ -11,7 +9,7 @@ import { keepFirst } from './utils' type ActiveEra = { index: number; startedOn: number } -type ActiveValidators = Vec +type ActiveValidators = string[] type Stakers = Map> @@ -35,7 +33,10 @@ export const useValidatorsQueries = (): CommonValidatorsQueries | undefined => { return useMemo(() => { if (!api) return - const activeValidators$ = api.query.session.validators().pipe(keepFirst()) + const activeValidators$ = api.query.session.validators().pipe( + map((activeAccounts) => activeAccounts.map((account) => account.toString())), + keepFirst() + ) const activeEra$ = api.query.staking.activeEra().pipe( map((activeEra) => ({ diff --git a/packages/ui/src/validators/providers/utils.ts b/packages/ui/src/validators/providers/utils.ts index 00c4349b5f..1fcd44e6ad 100644 --- a/packages/ui/src/validators/providers/utils.ts +++ b/packages/ui/src/validators/providers/utils.ts @@ -1,5 +1,3 @@ -import { Vec } from '@polkadot/types' -import { AccountId } from '@polkadot/types/interfaces' import { map, Observable, of, OperatorFunction, ReplaySubject, share, switchMap } from 'rxjs' import { Api } from '@/api' @@ -32,11 +30,6 @@ export const getValidatorsFilters = ({ ] } -export const filterValidatorsByIsActive = (validators: ValidatorWithDetails[], isActive: boolean) => - map((activeValidators: Vec) => - validators.filter(({ stashAccount }) => activeValidators.includes(stashAccount) === isActive) - ) - export const getValidatorSortingFns = ( key: ValidatorDetailsOrder['key'] ): [ diff --git a/packages/ui/test/_mocks/proposals/SerializedChannelPayouts.bin b/packages/ui/test/_mocks/proposals/SerializedChannelPayouts.bin new file mode 100644 index 0000000000..c78b30e999 Binary files /dev/null and b/packages/ui/test/_mocks/proposals/SerializedChannelPayouts.bin differ diff --git a/packages/ui/test/accounts/modal/TransferModal.test.tsx b/packages/ui/test/accounts/modal/TransferModal.test.tsx index 90f0adae16..d0225aa681 100644 --- a/packages/ui/test/accounts/modal/TransferModal.test.tsx +++ b/packages/ui/test/accounts/modal/TransferModal.test.tsx @@ -171,7 +171,7 @@ describe('UI: TransferModal', () => { stubTransactionSuccess(transfer, 'balances', 'Transfer', [ createType('AccountId', alice.address), createType('AccountId', bob.address), - createType('Balance', 50), + createType('u128', 50), ]) }) diff --git a/packages/ui/test/common/utils/crypto.test.ts b/packages/ui/test/common/utils/crypto.test.ts index 51b5ebff9f..f385b22f6a 100644 --- a/packages/ui/test/common/utils/crypto.test.ts +++ b/packages/ui/test/common/utils/crypto.test.ts @@ -1,19 +1,75 @@ +import { readFileSync } from 'fs' + import { generateJsonPayloadFromPayoutsVector, generateSerializedPayload } from '@joystream/js/content' +import { blake3 } from '@noble/hashes/blake3' +import { createTestKeyring } from '@polkadot/keyring' +import { encode as encodeHash, toB58String } from 'multihashes' import { merkleRootFromBinary, hashFile } from '@/common/utils/crypto' +import { accountsMap } from '../../../dev/node-mocks/data/addresses' import ChannelPayoutsVector from '../../_mocks/proposals/ChannelPayoutsVector.json' describe('Utils: Crypto', () => { + const expectSerializedPayload = new Uint8Array(readFileSync('test/_mocks/proposals/SerializedChannelPayouts.bin')) + const [commitment, channelPayouts] = generateJsonPayloadFromPayoutsVector(ChannelPayoutsVector) - const serializedPayload = generateSerializedPayload(channelPayouts) - const file = new Blob([serializedPayload]) + const generatedSerializedPayload = generateSerializedPayload(channelPayouts) + + const fileFromExpectedPayload = new Blob([expectSerializedPayload]) + const fileFromGeneratedPayload = new Blob([generatedSerializedPayload]) it('Merkle root from binary file', async () => { - expect(await merkleRootFromBinary(file)).toBe(commitment) + expect(await merkleRootFromBinary(fileFromGeneratedPayload)).toBe(commitment) + + // const expectedCommitment = '0xbefab4c53ab253d6d5b160ee75856304d67442f8bcd84dc7cbedd0ed613d750f' + // expect(await merkleRootFromBinary(fileFromExpectedPayload)).toBe(expectedCommitment) + // expect(commitment).toBe(expectedCommitment) + }) + + it.skip('serializedPayload', () => { + // TODO generatedSerializedPayload should be a Uint8Array, ATM it is a Buffer (despite what the type says). + expect(new Uint8Array(generatedSerializedPayload)).toStrictEqual(expectSerializedPayload) }) it('File hash', async () => { - expect(await hashFile(file)).toBe('gW22Sg9hMpHzog1XGwPAM7pz4As1NHDKuRoQvUpDybR6W5') + expect(await hashFile(new Blob(['foo']))).toBe('gVwzhfDKQjym61HfkEEQr1tZtNH6Lwk52eziQLVdmRriit') + expect(await hashFile(fileFromExpectedPayload)).toBe('gW22Sg9hMpHzog1XGwPAM7pz4As1NHDKuRoQvUpDybR6W5') + // expect(await hashFile(fileFromGeneratedPayload)).toBe('gW22Sg9hMpHzog1XGwPAM7pz4As1NHDKuRoQvUpDybR6W5') + }) + + it('Blake3', () => { + const digest = blake3(new Uint8Array([1, 2, 3])) + const hashBytes = encodeHash(digest, 'blake3') + const hashB58 = toB58String(hashBytes) + + expect(digest).toStrictEqual( + new Uint8Array([ + 177, 119, 236, 27, 242, 109, 251, 59, 112, 16, 212, 115, 230, 212, 71, 19, 178, 155, 118, 91, 153, 198, 230, 14, + 203, 250, 231, 66, 222, 73, 101, 67, + ]) + ) + expect(hashBytes).toStrictEqual( + new Uint8Array([ + 30, 32, 177, 119, 236, 27, 242, 109, 251, 59, 112, 16, 212, 115, 230, 212, 71, 19, 178, 155, 118, 91, 153, 198, + 230, 14, 203, 250, 231, 66, 222, 73, 101, 67, + ]) + ) + expect(hashB58).toBe('gW9cRVpYEEwRnkdZR5ibFPDssBHBNJDHYo6rJNrhTeanjt') + }) + + it('Polkadot signature', () => { + const keyring = createTestKeyring() + const keyPair = keyring.getPair(accountsMap.alice) + const generated = keyPair.sign('foo') + + const saved = new Uint8Array([ + 228, 174, 209, 168, 36, 177, 251, 242, 79, 54, 75, 4, 153, 141, 83, 227, 251, 209, 111, 18, 19, 199, 137, 164, 83, + 103, 37, 156, 69, 162, 89, 7, 14, 50, 26, 238, 70, 213, 74, 240, 242, 48, 219, 100, 74, 179, 203, 228, 204, 197, + 44, 55, 235, 22, 173, 128, 88, 188, 161, 46, 19, 213, 73, 129, + ]) + + expect(keyPair.verify('foo', generated, keyPair.publicKey)).toBe(true) + expect(keyPair.verify('bar', saved, keyPair.publicKey)).toBe(true) }) }) diff --git a/packages/ui/test/council/model/calculateCommitment.test.ts b/packages/ui/test/council/model/calculateCommitment.test.ts new file mode 100644 index 0000000000..ef3640f0a0 --- /dev/null +++ b/packages/ui/test/council/model/calculateCommitment.test.ts @@ -0,0 +1,41 @@ +import { blake2AsHex } from '@polkadot/util-crypto' + +import { createType } from '@/common/model/createType' +import { calculateCommitment } from '@/council/model/calculateCommitment' + +import { accountsMap } from '../../../dev/node-mocks/data/addresses' + +const TEST_SALT = '0x16dfff7ba21922067a0c114de774424abcd5d60fc58658a35341c9181b09e94a' +const ACCOUNT = accountsMap.alice +const OPTION = '0' +const CYCLE = 1 + +describe('Model: calculateCommitment', () => { + // These are the commitment and payload expected for: ALICE_ADDRESS, '0', TEST_SALT, 1 + const expectedCommitment = '0x3db26e2bd023ccf2d1167fd42d48cc76b1c1e5c1de9003f61e63ec6a337b91a2' + + const expectedPayload = new Uint8Array([ + 212, 53, 147, 199, 21, 253, 211, 28, 97, 20, 26, 189, 4, 169, 159, 214, 130, 44, 133, 88, 133, 76, 205, 227, 154, + 86, 132, 231, 165, 109, 162, 125, 0, 0, 0, 0, 0, 0, 0, 0, 128, 22, 223, 255, 123, 162, 25, 34, 6, 122, 12, 17, 77, + 231, 116, 66, 74, 188, 213, 214, 15, 197, 134, 88, 163, 83, 65, 201, 24, 27, 9, 233, 74, 1, 0, 0, 0, 0, 0, 0, 0, + ]) + + it('calculateCommitment', () => { + expect(calculateCommitment(accountsMap.alice, '0', TEST_SALT, 1)).toBe(expectedCommitment) + }) + + it('payload', () => { + const accountPayload = createType('AccountId', ACCOUNT).toU8a() + const optionPayload = createType('MemberId', Number.parseInt(OPTION)).toU8a() + const saltPayload = createType('Bytes', TEST_SALT).toU8a() + const cyclePayload = createType('u64', CYCLE).toU8a() + + const payload = Buffer.concat([accountPayload, optionPayload, saltPayload, cyclePayload]) + expect(new Uint8Array(payload)).toStrictEqual(expectedPayload) + }) + + // Verify that if given the correct payload blake2AsHex returned the correct commitment + it('blake2AsHex', () => { + expect(blake2AsHex(Buffer.from(expectedPayload))).toBe(expectedCommitment) + }) +}) diff --git a/packages/ui/test/setup.ts b/packages/ui/test/setup.ts index 8a534bf102..67531fb32e 100644 --- a/packages/ui/test/setup.ts +++ b/packages/ui/test/setup.ts @@ -4,6 +4,7 @@ import { BN_THOUSAND } from '@polkadot/util' import '@testing-library/jest-dom' import { configure, screen } from '@testing-library/react' import BN from 'bn.js' +import { Buffer } from 'buffer/' import { UseTransactionFee } from '@/accounts/hooks/useTransactionFee' import { UseAccounts } from '@/accounts/providers/accounts/provider' @@ -179,3 +180,7 @@ expect.extend({ // multihases requires both TextEncoder and TextDecoder but is having trouble with resoving them global.TextEncoder = TextEncoder global.TextDecoder = TextDecoder as any + +const glob: any = global + +glob.Buffer = Buffer diff --git a/yarn.lock b/yarn.lock index f68a25c27d..315c4639a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1914,7 +1914,7 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.10.2, @babel/runtime@npm:^7.12.0, @babel/runtime@npm:^7.12.1, @babel/runtime@npm:^7.12.13, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.14.5, @babel/runtime@npm:^7.14.6, @babel/runtime@npm:^7.15.4, @babel/runtime@npm:^7.17.8, @babel/runtime@npm:^7.17.9, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.18.6, @babel/runtime@npm:^7.5.5, @babel/runtime@npm:^7.7.6, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.8.7, @babel/runtime@npm:^7.9.2": +"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.10.2, @babel/runtime@npm:^7.12.0, @babel/runtime@npm:^7.12.1, @babel/runtime@npm:^7.12.13, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.14.5, @babel/runtime@npm:^7.14.6, @babel/runtime@npm:^7.15.4, @babel/runtime@npm:^7.17.8, @babel/runtime@npm:^7.17.9, @babel/runtime@npm:^7.5.5, @babel/runtime@npm:^7.7.6, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.8.7, @babel/runtime@npm:^7.9.2": version: 7.22.3 resolution: "@babel/runtime@npm:7.22.3" dependencies: @@ -4788,37 +4788,20 @@ __metadata: languageName: node linkType: hard -"@joystream/js@npm:1.2.0": - version: 1.2.0 - resolution: "@joystream/js@npm:1.2.0" - dependencies: - "@joystream/metadata-protobuf": ^2.6.0 - "@joystream/types": ~0.20.5 - "@polkadot/util-crypto": 9.5.1 - axios: ^1.2.1 - buffer: ^6.0.3 - lodash: ^4.17.21 - long: ^5.2.1 - merkletreejs: ^0.3.9 - protobufjs: ^6.11.3 - checksum: d0762fc60c4f4ffe0a6804140fd2516b5b04beccd028f75cd16ba9e7c44658263f4fe6dc85ddf237c83f14445ed0b6d8d2f5c7b4f4efb457fd18a877376ed4a3 - languageName: node - linkType: hard - -"@joystream/js@patch:@joystream/js@npm%3A1.2.0#./.yarn/patches/@joystream-js-npm-1.2.0-a8795e7496.patch::locator=pioneer%40workspace%3A.": - version: 1.2.0 - resolution: "@joystream/js@patch:@joystream/js@npm%3A1.2.0#./.yarn/patches/@joystream-js-npm-1.2.0-a8795e7496.patch::version=1.2.0&hash=089693&locator=pioneer%40workspace%3A." +"@joystream/js@npm:1.10.0": + version: 1.10.0 + resolution: "@joystream/js@npm:1.10.0" dependencies: - "@joystream/metadata-protobuf": ^2.6.0 - "@joystream/types": ~0.20.5 - "@polkadot/util-crypto": 9.5.1 + "@joystream/metadata-protobuf": ^2.15.0 + "@joystream/types": ^4.0.0 + "@polkadot/util-crypto": 11.1.1 axios: ^1.2.1 buffer: ^6.0.3 lodash: ^4.17.21 long: ^5.2.1 merkletreejs: ^0.3.9 protobufjs: ^6.11.3 - checksum: fabefdd3923443920e868ff0240df5337bc298e2e0f361dbb662a218dc1a16f6d11de48f1a352c45ec309686fee00d93ed898967f30a2ce6c6834808c66a5c96 + checksum: 87c995817e5aa08d89e0c39e47eed9a750ec75239007b9a2413d1f0dfdc83531e8d91e330d1d43464a78e9e556b5d51864944ccc70755e966f952f30343e2df8 languageName: node linkType: hard @@ -4860,25 +4843,9 @@ __metadata: languageName: unknown linkType: soft -"@joystream/metadata-protobuf@npm:^2.10.0": - version: 2.10.0 - resolution: "@joystream/metadata-protobuf@npm:2.10.0" - dependencies: - "@types/iso-3166-2": ^1.0.0 - "@types/long": ^4.0.1 - google-protobuf: ^3.14.0 - i18n-iso-countries: ^6.8.0 - iso-3166-2: ^1.0.0 - iso-639-1: ^2.1.9 - long: ^4.0.0 - protobufjs: ^6.11.2 - checksum: 4b56f02d6863d6f1e1cd91075606666224338066c078e77cb2b3bac090dc535a740279711106778c666befa8abc8b08b3f11bedf9b5e8c96f14d92887c8cc3ed - languageName: node - linkType: hard - -"@joystream/metadata-protobuf@npm:^2.6.0": - version: 2.6.0 - resolution: "@joystream/metadata-protobuf@npm:2.6.0" +"@joystream/metadata-protobuf@npm:2.15.0, @joystream/metadata-protobuf@npm:^2.15.0": + version: 2.15.0 + resolution: "@joystream/metadata-protobuf@npm:2.15.0" dependencies: "@types/iso-3166-2": ^1.0.0 "@types/long": ^4.0.1 @@ -4888,7 +4855,7 @@ __metadata: iso-639-1: ^2.1.9 long: ^4.0.0 protobufjs: ^6.11.2 - checksum: 96410a3da39765342b191997b8e0c047b94bb6061be5f1e9b1db736582e741d37ea5e9f307ac094797d92cba07ee09db94dc50a25919fdd09d1a7f92accefde9 + checksum: 0aa7dc0ca63affe6be0b650a96107fad6359b26ba5ce8facf7f818ded282a1eaac6d82d56199fdbb9b1b88ee9dac6e86d10c8e820e3e91cd28909de2eabbbb88 languageName: node linkType: hard @@ -4908,23 +4875,23 @@ __metadata: "@graphql-codegen/typescript-react-apollo": ^3.1.4 "@hcaptcha/react-hcaptcha": ^1.4.4 "@jest/types": ^27.2.5 - "@joystream/js": 1.2.0 + "@joystream/js": 1.10.0 "@joystream/markdown-editor": ^0.1.0 - "@joystream/metadata-protobuf": ^2.10.0 - "@joystream/types": 4.2.0 + "@joystream/metadata-protobuf": 2.15.0 + "@joystream/types": 4.3.0 "@miragejs/graphql": ^0.1.13 "@nivo/bar": ^0.79.1 "@nivo/core": ^0.79.0 "@noble/hashes": ^1.1.5 "@oneidentity/zstd-js": ^1.0.3 - "@polkadot/api": 8.9.1 - "@polkadot/extension-dapp": 0.44.2-4 - "@polkadot/keyring": 9.5.1 - "@polkadot/react-identicon": 2.5.1 - "@polkadot/types": 8.9.1 - "@polkadot/ui-keyring": 2.5.1 - "@polkadot/util": 9.5.1 - "@polkadot/util-crypto": 9.5.1 + "@polkadot/api": 10.1.4 + "@polkadot/extension-dapp": 0.45.3 + "@polkadot/keyring": 11.1.1 + "@polkadot/react-identicon": 3.1.1 + "@polkadot/types": 10.1.4 + "@polkadot/ui-keyring": 3.1.1 + "@polkadot/util": 11.1.1 + "@polkadot/util-crypto": 11.1.1 "@popperjs/core": ^2.10.2 "@storybook/addon-essentials": ^7.0.18 "@storybook/addon-interactions": ^7.0.22 @@ -4959,6 +4926,7 @@ __metadata: babel-loader: ^8.2.2 babel-plugin-import-graphql: ^2.8.1 babel-plugin-styled-components: ^2.1.3 + buffer: ^6.0.3 chalk: ^4.1.2 chart.js: ^4.4.1 clean-webpack-plugin: ^4.0.0 @@ -5010,7 +4978,7 @@ __metadata: react-router-dom: ^5.3.0 react-transition-group: ^4.4.2 remark-gfm: ^3.0.1 - rxjs: ^7.5.5 + rxjs: 7.8.1 storybook: ^7.0.18 stream-browserify: ^3.0.0 styled-components: ^5.3.1 @@ -5029,50 +4997,18 @@ __metadata: languageName: unknown linkType: soft -"@joystream/types@npm:4.2.0": - version: 4.2.0 - resolution: "@joystream/types@npm:4.2.0" - dependencies: - "@polkadot/api": 8.9.1 - "@polkadot/keyring": 9.5.1 - "@polkadot/types": 8.9.1 - "@types/lodash": ^4.14.157 - "@types/vfile": ^4.0.0 - lodash: ^4.17.15 - moment: ^2.24.0 - checksum: 5724bc37c595f9ecbad6d5ebb451aeebc8bdb44a32ea27c06da2298d9946cfe09ad1e427e2199174c00403207b4ea4e50af693fea7a856457821c58ce999f8a5 - languageName: node - linkType: hard - -"@joystream/types@npm:^2.0.0": - version: 2.2.0 - resolution: "@joystream/types@npm:2.2.0" - dependencies: - "@polkadot/api": 8.9.1 - "@polkadot/keyring": 9.5.1 - "@polkadot/types": 8.9.1 - "@types/lodash": ^4.14.157 - "@types/vfile": ^4.0.0 - ajv: ^6.11.0 - lodash: ^4.17.15 - moment: ^2.24.0 - checksum: f2713ceeecb6afa6761fda15334971390bacd40297407fced606b2d92b18dcd0c22f641912d9cc78af049884a8a16d854d729ef642b36f47fc9d1a11054d615c - languageName: node - linkType: hard - -"@joystream/types@npm:~0.20.5": - version: 0.20.5 - resolution: "@joystream/types@npm:0.20.5" +"@joystream/types@npm:4.3.0": + version: 4.3.0 + resolution: "@joystream/types@npm:4.3.0" dependencies: - "@polkadot/api": 8.9.1 - "@polkadot/keyring": 9.5.1 - "@polkadot/types": 8.9.1 + "@polkadot/api": 10.1.4 + "@polkadot/keyring": 11.1.1 + "@polkadot/types": 10.1.4 "@types/lodash": ^4.14.157 "@types/vfile": ^4.0.0 - ajv: ^6.11.0 lodash: ^4.17.15 moment: ^2.24.0 - checksum: a3e310f358d7aa6d51a39d639f6ceec5052959abd38bc3ef34339a3c411ea91647d4fe50d09361d2aecd7d254da5d90b774e44dc67656cf1a5cd72aa89b0ba7b + checksum: f79cf15b189fdedf301799797ea635f5a547fdf193fb04fcc3e444af510a498bc17af7b0f1485bcbd1bb72dcc19e52387b41ea736c216222da7107adc1c9a07b languageName: node linkType: hard @@ -5498,10 +5434,10 @@ __metadata: languageName: node linkType: hard -"@noble/hashes@npm:1.1.1": - version: 1.1.1 - resolution: "@noble/hashes@npm:1.1.1" - checksum: 3bd98d7a6dcc01c5e72478975073e12c79639636f4eb5710b665dd8ac462fcdff5b235d0c3b113ac83e7e56c43eee5ccba3759f9262964edc123bd1713dd2180 +"@noble/hashes@npm:1.3.0": + version: 1.3.0 + resolution: "@noble/hashes@npm:1.3.0" + checksum: d7ddb6d7c60f1ce1f87facbbef5b724cdea536fc9e7f59ae96e0fc9de96c8f1a2ae2bdedbce10f7dcc621338dfef8533daa73c873f2b5c87fa1a4e05a95c2e2e languageName: node linkType: hard @@ -5512,10 +5448,10 @@ __metadata: languageName: node linkType: hard -"@noble/secp256k1@npm:1.6.0": - version: 1.6.0 - resolution: "@noble/secp256k1@npm:1.6.0" - checksum: e99df3b776515e6a8b3193870e69ff3a7d22c6a4733245dceb9d1d229d5b0859bd478b7213f31d556ba3745647ec07262d0f9df845d79204b7ce4ae1648b27c7 +"@noble/secp256k1@npm:1.7.1": + version: 1.7.1 + resolution: "@noble/secp256k1@npm:1.7.1" + checksum: d2301f1f7690368d8409a3152450458f27e54df47e3f917292de3de82c298770890c2de7c967d237eff9c95b70af485389a9695f73eb05a43e2bd562d18b18cb languageName: node linkType: hard @@ -6306,149 +6242,148 @@ __metadata: languageName: node linkType: hard -"@polkadot/api-augment@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/api-augment@npm:8.9.1" +"@polkadot/api-augment@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/api-augment@npm:10.1.4" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/api-base": 8.9.1 - "@polkadot/rpc-augment": 8.9.1 - "@polkadot/types": 8.9.1 - "@polkadot/types-augment": 8.9.1 - "@polkadot/types-codec": 8.9.1 - "@polkadot/util": ^9.5.1 - checksum: 80d801472c04400790e1be6830aefd7f05e20c63970b2f8f788086b10748b0999ac7fd4aa6384a9acd0f9aa05380a7050fed3dc5910990322296d9916159df88 + "@polkadot/api-base": 10.1.4 + "@polkadot/rpc-augment": 10.1.4 + "@polkadot/types": 10.1.4 + "@polkadot/types-augment": 10.1.4 + "@polkadot/types-codec": 10.1.4 + "@polkadot/util": ^11.1.1 + tslib: ^2.5.0 + checksum: a3c5a1dcfbc9589f21031830f5594ccb7a354224af6aeed060d83f8172938a2f984e0cdbd0fd341c20131db436fedb6db73f70a228cf583b4fe22e298fa75e8a languageName: node linkType: hard -"@polkadot/api-base@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/api-base@npm:8.9.1" +"@polkadot/api-base@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/api-base@npm:10.1.4" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/rpc-core": 8.9.1 - "@polkadot/types": 8.9.1 - "@polkadot/util": ^9.5.1 - rxjs: ^7.5.5 - checksum: 62f39cb9880a7d1a89a8d5a62915b3595b601a4bb3281df84fbe363025b39618bed3d80e7f4b2da803c1936c1e3e777d17cfb3369a98949f65f12adf51d0f8f5 + "@polkadot/rpc-core": 10.1.4 + "@polkadot/types": 10.1.4 + "@polkadot/util": ^11.1.1 + rxjs: ^7.8.0 + tslib: ^2.5.0 + checksum: 6b2775fd893a9ce296b9d75cc7de57638824f436a14c4d228e73976c62b55c21446a3a04f4e03687ecf46fe4fe6194abd09d30c5258fc3ebba4f120bdeaf3f4c languageName: node linkType: hard -"@polkadot/api-derive@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/api-derive@npm:8.9.1" +"@polkadot/api-derive@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/api-derive@npm:10.1.4" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/api": 8.9.1 - "@polkadot/api-augment": 8.9.1 - "@polkadot/api-base": 8.9.1 - "@polkadot/rpc-core": 8.9.1 - "@polkadot/types": 8.9.1 - "@polkadot/types-codec": 8.9.1 - "@polkadot/util": ^9.5.1 - "@polkadot/util-crypto": ^9.5.1 - rxjs: ^7.5.5 - checksum: 4af64d6f7226e27f6b3b9683cf7278ee7f852034d0c08f2bb060d24cbe642429c60638e73e64c2bb9a39eab906ce3138a96185cba10962e138df71fa7986b851 - languageName: node - linkType: hard - -"@polkadot/api@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/api@npm:8.9.1" - dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/api-augment": 8.9.1 - "@polkadot/api-base": 8.9.1 - "@polkadot/api-derive": 8.9.1 - "@polkadot/keyring": ^9.5.1 - "@polkadot/rpc-augment": 8.9.1 - "@polkadot/rpc-core": 8.9.1 - "@polkadot/rpc-provider": 8.9.1 - "@polkadot/types": 8.9.1 - "@polkadot/types-augment": 8.9.1 - "@polkadot/types-codec": 8.9.1 - "@polkadot/types-create": 8.9.1 - "@polkadot/types-known": 8.9.1 - "@polkadot/util": ^9.5.1 - "@polkadot/util-crypto": ^9.5.1 - eventemitter3: ^4.0.7 - rxjs: ^7.5.5 - checksum: 792a918cf8bafa1f8a84df04bf23cc3ebb8c66c4e4b4e712d6c06f7355e7327c67a585404419f40be498274b73ccdb344dfbb5ee01e437c72cda18e9ff942bc6 + "@polkadot/api": 10.1.4 + "@polkadot/api-augment": 10.1.4 + "@polkadot/api-base": 10.1.4 + "@polkadot/rpc-core": 10.1.4 + "@polkadot/types": 10.1.4 + "@polkadot/types-codec": 10.1.4 + "@polkadot/util": ^11.1.1 + "@polkadot/util-crypto": ^11.1.1 + rxjs: ^7.8.0 + tslib: ^2.5.0 + checksum: a41361318826d895c876a35c5c123c3516a16b9ae46373c955c037c9206a212ca866839215fb3456bf357b614ca9f690c3e24f5832ed0226ec78060cb833e1f9 + languageName: node + linkType: hard + +"@polkadot/api@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/api@npm:10.1.4" + dependencies: + "@polkadot/api-augment": 10.1.4 + "@polkadot/api-base": 10.1.4 + "@polkadot/api-derive": 10.1.4 + "@polkadot/keyring": ^11.1.1 + "@polkadot/rpc-augment": 10.1.4 + "@polkadot/rpc-core": 10.1.4 + "@polkadot/rpc-provider": 10.1.4 + "@polkadot/types": 10.1.4 + "@polkadot/types-augment": 10.1.4 + "@polkadot/types-codec": 10.1.4 + "@polkadot/types-create": 10.1.4 + "@polkadot/types-known": 10.1.4 + "@polkadot/util": ^11.1.1 + "@polkadot/util-crypto": ^11.1.1 + eventemitter3: ^5.0.0 + rxjs: ^7.8.0 + tslib: ^2.5.0 + checksum: ef120d4c2aa7c115d26c0b232734485304a57c2532990d6161f906dc39bd36be55ad9c616c1292d8df704bcc95f9c804634fb896af6225c6d928743fe7440208 languageName: node linkType: hard -"@polkadot/extension-dapp@npm:0.44.2-4": - version: 0.44.2-4 - resolution: "@polkadot/extension-dapp@npm:0.44.2-4" +"@polkadot/extension-dapp@npm:0.45.3": + version: 0.45.3 + resolution: "@polkadot/extension-dapp@npm:0.45.3" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/extension-inject": ^0.44.2-4 - "@polkadot/util": ^9.5.1 - "@polkadot/util-crypto": ^9.5.1 + "@polkadot/extension-inject": ^0.45.3 + "@polkadot/util": ^11.1.1 + "@polkadot/util-crypto": ^11.1.1 + tslib: ^2.5.0 peerDependencies: "@polkadot/api": "*" "@polkadot/util": "*" "@polkadot/util-crypto": "*" - checksum: e63ca2c28315713e829a13648e37dae78740e61d4727820ebefcaa5eb0d99bdb92ad47062b31cbc73140eb831092064ef31aafb7cc552b4c587e1e81b10e2510 + checksum: 5dd0ac41fadd784598cca9553c0fd9df3fcbdd5216dbe60c2e8739ef75d03c74d74b4b6bf0c2baa7f77939738f7ad778fb35d023dc0f893d2d77662624c17279 languageName: node linkType: hard -"@polkadot/extension-inject@npm:^0.44.2-4": - version: 0.44.2-4 - resolution: "@polkadot/extension-inject@npm:0.44.2-4" +"@polkadot/extension-inject@npm:^0.45.3": + version: 0.45.5 + resolution: "@polkadot/extension-inject@npm:0.45.5" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/rpc-provider": ^8.9.1 - "@polkadot/types": ^8.9.1 - "@polkadot/util": ^9.5.1 - "@polkadot/util-crypto": ^9.5.1 - "@polkadot/x-global": ^9.5.1 + "@polkadot/rpc-provider": ^10.2.2 + "@polkadot/types": ^10.2.2 + "@polkadot/util": ^11.1.3 + "@polkadot/util-crypto": ^11.1.3 + "@polkadot/x-global": ^11.1.3 + tslib: ^2.5.0 peerDependencies: "@polkadot/api": "*" - checksum: ead98c65facee83fe032d1ecd6d41776ae1bb4d127caf07967700b1cdfbbc619dd7ee50c185ebf0aa0351c22d8557451e159cbd27b82c0bed60038e62e3ace42 + checksum: 9e42beea7485c46064fd7f2ecc625bfbd6dd5ac5a495c9d64270c791eed7a9282d9bec90da85226c9e546689fb3edf0b8ff1eee581b04a455a31a29ae37a5f28 languageName: node linkType: hard -"@polkadot/keyring@npm:9.5.1": - version: 9.5.1 - resolution: "@polkadot/keyring@npm:9.5.1" +"@polkadot/keyring@npm:11.1.1": + version: 11.1.1 + resolution: "@polkadot/keyring@npm:11.1.1" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/util": 9.5.1 - "@polkadot/util-crypto": 9.5.1 + "@polkadot/util": 11.1.1 + "@polkadot/util-crypto": 11.1.1 + tslib: ^2.5.0 peerDependencies: - "@polkadot/util": 9.5.1 - "@polkadot/util-crypto": 9.5.1 - checksum: 9fefeb4ea558a1f927200f24da166f3f536768b2e435e66302d72f44f106e0186b458a63c5b3f4a30d0674f4f9a431a84a15cd5e0be4cf3398dae025eb0cb089 + "@polkadot/util": 11.1.1 + "@polkadot/util-crypto": 11.1.1 + checksum: 7236edeb86250062ffc498cffd0ffe2d408b306ce01aca47035c69d4f98ecf9f3844e72736dded4eebaf2e50eb273e80916a680e61458123375808b9b7a6435b languageName: node linkType: hard -"@polkadot/networks@npm:9.5.1": - version: 9.5.1 - resolution: "@polkadot/networks@npm:9.5.1" +"@polkadot/networks@npm:11.1.1": + version: 11.1.1 + resolution: "@polkadot/networks@npm:11.1.1" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/util": 9.5.1 - "@substrate/ss58-registry": ^1.22.0 - checksum: 3c9733088f647a7ad4d05e539b4b2d2dc482c40d764b18a4992efa1bfd34a0146df33324a1ea556ef0fda58440424e33038698fd13b7c82da4d9fa16820ea4d7 + "@polkadot/util": 11.1.1 + "@substrate/ss58-registry": ^1.39.0 + tslib: ^2.5.0 + checksum: 503a3a3048e977f7b650d93814303e78b2d978f44bfcb7a1db00fab7977085da4d7ad9025e76fa4599f7d2c60b1f09cd40f0213d3ad9fd0c48a0e721fcc52c6d languageName: node linkType: hard -"@polkadot/react-identicon@npm:2.5.1": - version: 2.5.1 - resolution: "@polkadot/react-identicon@npm:2.5.1" - dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/keyring": ^9.5.1 - "@polkadot/ui-settings": 2.5.1 - "@polkadot/ui-shared": 2.5.1 - "@polkadot/util": ^9.5.1 - "@polkadot/util-crypto": ^9.5.1 - color: ^3.2.1 +"@polkadot/react-identicon@npm:3.1.1": + version: 3.1.1 + resolution: "@polkadot/react-identicon@npm:3.1.1" + dependencies: + "@polkadot/keyring": ^11.1.1 + "@polkadot/ui-settings": 3.1.1 + "@polkadot/ui-shared": 3.1.1 + "@polkadot/util": ^11.1.1 + "@polkadot/util-crypto": ^11.1.1 ethereum-blockies-base64: ^1.0.2 - jdenticon: 3.1.1 + jdenticon: 3.2.0 react-copy-to-clipboard: ^5.1.0 - styled-components: ^5.3.5 + styled-components: ^5.3.9 + tslib: ^2.5.0 peerDependencies: "@polkadot/keyring": "*" "@polkadot/util": "*" @@ -6457,374 +6392,386 @@ __metadata: react-dom: "*" react-is: "*" styled-components: "*" - checksum: eb138381591991fb511461543fe8abbeebf6e61235a671a123864e511fcfc8553a3eb115f1d47cc6605879f1ae5c4620b94f6ec1a9cc124535ecea73623d2979 - languageName: node - linkType: hard - -"@polkadot/rpc-augment@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/rpc-augment@npm:8.9.1" - dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/rpc-core": 8.9.1 - "@polkadot/types": 8.9.1 - "@polkadot/types-codec": 8.9.1 - "@polkadot/util": ^9.5.1 - checksum: 9be31079223ef69e61b28689ba74ae5b110195dc53ffdb9a4bf33c0419b46372cda158362232a211e6834cb3ffa35c5fd783f8c4b8b20fcb33a77e3d10ee528e + checksum: 89ea6decc89165ec939845ff4f0e38031017fcdebd8adbc1c498da9f52a200f210de538e4adfcc23ea58a22698709c87e6d6719221d5f82bcf98c62b9826d614 languageName: node linkType: hard -"@polkadot/rpc-core@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/rpc-core@npm:8.9.1" +"@polkadot/rpc-augment@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/rpc-augment@npm:10.1.4" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/rpc-augment": 8.9.1 - "@polkadot/rpc-provider": 8.9.1 - "@polkadot/types": 8.9.1 - "@polkadot/util": ^9.5.1 - rxjs: ^7.5.5 - checksum: 9546d017a46336142eb8447375f7fb51e66f7eb1284becd3d02c764a8d27705b2a258258b4ef87f885a66946da05552d51cc94961899f7509c4d607362abfa42 + "@polkadot/rpc-core": 10.1.4 + "@polkadot/types": 10.1.4 + "@polkadot/types-codec": 10.1.4 + "@polkadot/util": ^11.1.1 + tslib: ^2.5.0 + checksum: 0e96d90c6c96f3ee1a5c57f037203738ccf754b47c25486d3977dd09bf803f9528de63800f08b24da67185956bc3ce6b08d37da377a7b47ea9736359f59f0b97 languageName: node linkType: hard -"@polkadot/rpc-provider@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/rpc-provider@npm:8.9.1" +"@polkadot/rpc-core@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/rpc-core@npm:10.1.4" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/keyring": ^9.5.1 - "@polkadot/types": 8.9.1 - "@polkadot/types-support": 8.9.1 - "@polkadot/util": ^9.5.1 - "@polkadot/util-crypto": ^9.5.1 - "@polkadot/x-fetch": ^9.5.1 - "@polkadot/x-global": ^9.5.1 - "@polkadot/x-ws": ^9.5.1 - "@substrate/connect": 0.7.6 - eventemitter3: ^4.0.7 - mock-socket: ^9.1.5 - nock: ^13.2.6 - checksum: 8d6283757453772b2f0e7d8fea4411beb322e9af583ccbd9e07289bd9eed60aaa3d59ef5def3493807d3e157c562f076982eb0179c4b82f8ec2800e0adab9691 + "@polkadot/rpc-augment": 10.1.4 + "@polkadot/rpc-provider": 10.1.4 + "@polkadot/types": 10.1.4 + "@polkadot/util": ^11.1.1 + rxjs: ^7.8.0 + tslib: ^2.5.0 + checksum: 2f17b8932049f18cd3444cd8c9ccb4c0c41571055402bebe774e903f6a67903ac88477a34cd2ec6571ada3e2be0db4a68ec951549d1d74d2fc7c51ae11dc9b3f + languageName: node + linkType: hard + +"@polkadot/rpc-provider@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/rpc-provider@npm:10.1.4" + dependencies: + "@polkadot/keyring": ^11.1.1 + "@polkadot/types": 10.1.4 + "@polkadot/types-support": 10.1.4 + "@polkadot/util": ^11.1.1 + "@polkadot/util-crypto": ^11.1.1 + "@polkadot/x-fetch": ^11.1.1 + "@polkadot/x-global": ^11.1.1 + "@polkadot/x-ws": ^11.1.1 + "@substrate/connect": 0.7.21 + eventemitter3: ^5.0.0 + mock-socket: ^9.2.1 + nock: ^13.3.0 + tslib: ^2.5.0 + dependenciesMeta: + "@substrate/connect": + optional: true + checksum: 7f0ef000e76bbcd42b1438d2a1da6283106c56f3b8b180997a5003cedd4024ee2037c3b7a5140d5fa7927bfba090ce26940b287adf4874184ba5ad5d8a22293c languageName: node linkType: hard -"@polkadot/types-augment@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/types-augment@npm:8.9.1" +"@polkadot/types-augment@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/types-augment@npm:10.1.4" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/types": 8.9.1 - "@polkadot/types-codec": 8.9.1 - "@polkadot/util": ^9.5.1 - checksum: b7de393ab161caf6c6854d36923bdc641edba0e3516c8c942862c1182a69cfd8d9caa82f2ca47e24c87b80083050a865dd653423f0aee3cf92d743f657c56a33 + "@polkadot/types": 10.1.4 + "@polkadot/types-codec": 10.1.4 + "@polkadot/util": ^11.1.1 + tslib: ^2.5.0 + checksum: 7ec56b4fe78e7a94faf9063240c2385f557b60aaf98d1842cbd44bb1943481aa48c9ca66185372c5a7087b3b26c6685f443606092517ad9147748371f0cdeb77 languageName: node linkType: hard -"@polkadot/types-codec@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/types-codec@npm:8.9.1" +"@polkadot/types-codec@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/types-codec@npm:10.1.4" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/util": ^9.5.1 - checksum: 9c66b053d740e3fddd512029bc11190d64b8c92c4077a87f05006a4176cf94484197173db8e8576f349e8dd26d36901f778b1b456f2a1360dc5b74c1948f23e6 + "@polkadot/util": ^11.1.1 + "@polkadot/x-bigint": ^11.1.1 + tslib: ^2.5.0 + checksum: 4b8bef53674c4c544a26ecd022d2a0b40697e9494aaf53ad92a0ba1123d67e25b724ba9494b83b781846ba235829d89bb093b1e4938522bcb50294c3527c58f4 languageName: node linkType: hard -"@polkadot/types-create@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/types-create@npm:8.9.1" +"@polkadot/types-create@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/types-create@npm:10.1.4" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/types-codec": 8.9.1 - "@polkadot/util": ^9.5.1 - checksum: 313cce46eca73caaa626980cbd23c01df90cb8266e616bc5d5fad9a59069a390a6f7fc227038203cc97a96a5635a24b32fa5c5e6e64a8053c7203fea1b3eb069 + "@polkadot/types-codec": 10.1.4 + "@polkadot/util": ^11.1.1 + tslib: ^2.5.0 + checksum: 0e56995a1cacc6ad053ad37b7e1a6a5616b28e6dfe98235575b2493a340b9e7ca9c91013d7f4e39d724572e74e776111b147ddc410f5aa90b74ce7ed523e07f3 languageName: node linkType: hard -"@polkadot/types-known@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/types-known@npm:8.9.1" +"@polkadot/types-known@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/types-known@npm:10.1.4" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/networks": ^9.5.1 - "@polkadot/types": 8.9.1 - "@polkadot/types-codec": 8.9.1 - "@polkadot/types-create": 8.9.1 - "@polkadot/util": ^9.5.1 - checksum: 636434237b14ad8ba76d1536c3086f282285da7a85f5db9fe43cd4dea0ccca469ce023118244b0bb57befd6fe1789f6529f42810df3c7b5cd94d6e4192158b9a + "@polkadot/networks": ^11.1.1 + "@polkadot/types": 10.1.4 + "@polkadot/types-codec": 10.1.4 + "@polkadot/types-create": 10.1.4 + "@polkadot/util": ^11.1.1 + tslib: ^2.5.0 + checksum: c967f28b32d6e8a4319ee26962119860cfa045ce07ce749a3e7bbab072a62ca8b2807f7deed47fa74ef214a4e99413f62265f60378bd2f3888d96dc482475ed5 languageName: node linkType: hard -"@polkadot/types-support@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/types-support@npm:8.9.1" +"@polkadot/types-support@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/types-support@npm:10.1.4" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/util": ^9.5.1 - checksum: 12142354c04771ed6494a825941eb74c28a13e0fa8fc5ae0af918859effff10ec29ac927fd83f6555e514c3ae853da2b05ef867538651774912b98a47b256cde + "@polkadot/util": ^11.1.1 + tslib: ^2.5.0 + checksum: 79dedb8f791e29c54940ce100ab7c47834fbc025aaef667f0e368b799e81e38787ca4c4a762357449e3d1834c8d9cc99cdc95f42775c8e9013e076f6103a8e50 languageName: node linkType: hard -"@polkadot/types@npm:8.9.1": - version: 8.9.1 - resolution: "@polkadot/types@npm:8.9.1" +"@polkadot/types@npm:10.1.4": + version: 10.1.4 + resolution: "@polkadot/types@npm:10.1.4" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/keyring": ^9.5.1 - "@polkadot/types-augment": 8.9.1 - "@polkadot/types-codec": 8.9.1 - "@polkadot/types-create": 8.9.1 - "@polkadot/util": ^9.5.1 - "@polkadot/util-crypto": ^9.5.1 - rxjs: ^7.5.5 - checksum: e991818b7c2aa357265c921772d6f839683b551c780036cac2514392f9c102793fc82a5149ed824147daf24df3c4abecf57168097f65fe906b0a6220455b70de + "@polkadot/keyring": ^11.1.1 + "@polkadot/types-augment": 10.1.4 + "@polkadot/types-codec": 10.1.4 + "@polkadot/types-create": 10.1.4 + "@polkadot/util": ^11.1.1 + "@polkadot/util-crypto": ^11.1.1 + rxjs: ^7.8.0 + tslib: ^2.5.0 + checksum: 9eb277345dfc95724a3477cfea77917d964bece79d2696557b46533d1d1a4fc1d6ddac2254ab2e298d442a8f25d1b828fe5c28557c8be4fef88e80af45d809ce languageName: node linkType: hard -"@polkadot/ui-keyring@npm:2.5.1": - version: 2.5.1 - resolution: "@polkadot/ui-keyring@npm:2.5.1" - dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/keyring": ^9.5.1 - "@polkadot/ui-settings": 2.5.1 - "@polkadot/util": ^9.5.1 - "@polkadot/util-crypto": ^9.5.1 - mkdirp: ^1.0.4 - rxjs: ^7.5.5 +"@polkadot/ui-keyring@npm:3.1.1": + version: 3.1.1 + resolution: "@polkadot/ui-keyring@npm:3.1.1" + dependencies: + "@polkadot/keyring": ^11.1.1 + "@polkadot/ui-settings": 3.1.1 + "@polkadot/util": ^11.1.1 + "@polkadot/util-crypto": ^11.1.1 + mkdirp: ^2.1.5 + rxjs: ^7.8.0 store: ^2.0.12 + tslib: ^2.5.0 peerDependencies: "@polkadot/keyring": "*" "@polkadot/ui-settings": "*" "@polkadot/util": "*" - checksum: 076158a040bf6ca2ec6c086b49f1b8f64a81ae2bd542cc6772a8f55e6d5545e88ab07780bb08e2c0833f8a9360ff900bf91c8d1151c34bde5b8f3b6da08dc3c6 + checksum: 6b37a0ff22d5400cf360ce73e12f0412342f2d112fb1ff9660983afa445cbbb9bc1ab6c6d65658cbf776048bfd3bceae36cb1de0df3f427e6715946e85e37e0b languageName: node linkType: hard -"@polkadot/ui-settings@npm:2.5.1": - version: 2.5.1 - resolution: "@polkadot/ui-settings@npm:2.5.1" +"@polkadot/ui-settings@npm:3.1.1": + version: 3.1.1 + resolution: "@polkadot/ui-settings@npm:3.1.1" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/networks": ^9.5.1 - "@polkadot/util": ^9.5.1 + "@polkadot/networks": ^11.1.1 + "@polkadot/util": ^11.1.1 eventemitter3: ^4.0.7 store: ^2.0.12 + tslib: ^2.5.0 peerDependencies: "@polkadot/networks": "*" "@polkadot/util": "*" - checksum: 40456988e5b96f83675d4c30f11c142f196205807cfed23d8d0ea4ebabac000afaa4fea12445358586434e0e9736b8d832766a68811a259ab7900e98a3389164 + checksum: 3e982aff725aac3b2402ee417b0db45f8f01c1abdbc16ab7b7d9eec8c4d00315fa58f76eceb54f16c05d2c680cf1c5417b98cbf26af9d9f956342d1fde9da07d languageName: node linkType: hard -"@polkadot/ui-shared@npm:2.5.1": - version: 2.5.1 - resolution: "@polkadot/ui-shared@npm:2.5.1" +"@polkadot/ui-shared@npm:3.1.1": + version: 3.1.1 + resolution: "@polkadot/ui-shared@npm:3.1.1" dependencies: - "@babel/runtime": ^7.18.3 - color: ^3.2.1 + colord: ^2.9.3 + tslib: ^2.5.0 peerDependencies: "@polkadot/util": "*" "@polkadot/util-crypto": "*" - checksum: aff92fed2b4613dd936389a903a8e9383e3df9a4576af6cd15ab3bc1d789308b3dbece68d3263c9d1de7ded93a46e4a914bf06b9120b3354ea7360f3ccd30958 + checksum: d1b456bf1b0123dbe23ffe69adc36db86d205f14ca8d21871e4732cb21f96ebe59938b046b0480ba5574ed554a598bee683a51f4f63999e3fae22e0297a26383 languageName: node linkType: hard -"@polkadot/util-crypto@npm:9.5.1": - version: 9.5.1 - resolution: "@polkadot/util-crypto@npm:9.5.1" - dependencies: - "@babel/runtime": ^7.18.3 - "@noble/hashes": 1.1.1 - "@noble/secp256k1": 1.6.0 - "@polkadot/networks": 9.5.1 - "@polkadot/util": 9.5.1 - "@polkadot/wasm-crypto": ^6.1.1 - "@polkadot/x-bigint": 9.5.1 - "@polkadot/x-randomvalues": 9.5.1 +"@polkadot/util-crypto@npm:11.1.1": + version: 11.1.1 + resolution: "@polkadot/util-crypto@npm:11.1.1" + dependencies: + "@noble/hashes": 1.3.0 + "@noble/secp256k1": 1.7.1 + "@polkadot/networks": 11.1.1 + "@polkadot/util": 11.1.1 + "@polkadot/wasm-crypto": ^7.0.3 + "@polkadot/x-bigint": 11.1.1 + "@polkadot/x-randomvalues": 11.1.1 "@scure/base": 1.1.1 - ed2curve: ^0.3.0 + tslib: ^2.5.0 tweetnacl: ^1.0.3 peerDependencies: - "@polkadot/util": 9.5.1 - checksum: 9b3d6dad22bd012a9f6d36927ff3dbd7d71b362bbd270267a33f4c5b2067c691d0062a63a4fc7d5bdedbf19d16caf1805177c8a5aa8fe41919472c5ac820c2db + "@polkadot/util": 11.1.1 + checksum: bb89ecfcaf90c5238c21f924557991c962f36411cd1e88408e65cdda8ce0b04b6a5ec1fcd9e9e560d4cc11adcea4c4992924b59a151b8ef43b38126a4533c94a languageName: node linkType: hard -"@polkadot/util@npm:9.5.1": - version: 9.5.1 - resolution: "@polkadot/util@npm:9.5.1" +"@polkadot/util@npm:11.1.1": + version: 11.1.1 + resolution: "@polkadot/util@npm:11.1.1" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/x-bigint": 9.5.1 - "@polkadot/x-global": 9.5.1 - "@polkadot/x-textdecoder": 9.5.1 - "@polkadot/x-textencoder": 9.5.1 - "@types/bn.js": ^5.1.0 + "@polkadot/x-bigint": 11.1.1 + "@polkadot/x-global": 11.1.1 + "@polkadot/x-textdecoder": 11.1.1 + "@polkadot/x-textencoder": 11.1.1 + "@types/bn.js": ^5.1.1 bn.js: ^5.2.1 - ip-regex: ^4.3.0 - checksum: 57529b2e03f4dc47d4038dea9b29e3b7c9e4c3cd612ed4fa7cfbe20492f46a2744884773b56ad57a74a4a852bd2116af37983745a75d48bf455720a5cc7aea43 + tslib: ^2.5.0 + checksum: fd9e999c971425efc4278c98aa73d802022282b05e0d65e53361933c09956e19b3db6515ff82561853af6a65d61e9674a8a58d1286c764d96d9e623766ec5f4d languageName: node linkType: hard -"@polkadot/wasm-bridge@npm:6.2.3": - version: 6.2.3 - resolution: "@polkadot/wasm-bridge@npm:6.2.3" +"@polkadot/wasm-bridge@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-bridge@npm:7.3.2" dependencies: - "@babel/runtime": ^7.18.6 + "@polkadot/wasm-util": 7.3.2 + tslib: ^2.6.2 peerDependencies: "@polkadot/util": "*" "@polkadot/x-randomvalues": "*" - checksum: 878fddf29280569c33d3097b322cf0749f7f034e5200a239d80cd877f09f49c40db8a3e67b3b83eedc93362ad67a1eaa82b672c8f725fa3865a902abfbec3fc6 + checksum: 8c68b78cbd62347ebdf3fa66f2ffd1f7e883df71d770f5099ff652b083a79f1d7e9e7826a6acd8e986e9da0b07c0170a3f77b6a35726c6b24d856e3f8d08d201 languageName: node linkType: hard -"@polkadot/wasm-crypto-asmjs@npm:6.2.3": - version: 6.2.3 - resolution: "@polkadot/wasm-crypto-asmjs@npm:6.2.3" +"@polkadot/wasm-crypto-asmjs@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-crypto-asmjs@npm:7.3.2" dependencies: - "@babel/runtime": ^7.18.6 + tslib: ^2.6.2 peerDependencies: "@polkadot/util": "*" - checksum: 6d51ddedf7b25913d54203f172f28dd093d25b5130a75d3d99433257b7533c827056ba99f9d56a530a00febcd5a3d8be5a8ef26d8948f57ddbb8a0456bf819fa + checksum: 669ea001565301f9b1a8feecb0e301c854fc318e5605316b57be7e83d717e7ee8ac460001cd44b18075a3d028c32c4a605c0e0e2e95ae00865282321b009ed26 languageName: node linkType: hard -"@polkadot/wasm-crypto-init@npm:6.2.3": - version: 6.2.3 - resolution: "@polkadot/wasm-crypto-init@npm:6.2.3" +"@polkadot/wasm-crypto-init@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-crypto-init@npm:7.3.2" dependencies: - "@babel/runtime": ^7.18.6 - "@polkadot/wasm-bridge": 6.2.3 - "@polkadot/wasm-crypto-asmjs": 6.2.3 - "@polkadot/wasm-crypto-wasm": 6.2.3 + "@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 peerDependencies: "@polkadot/util": "*" "@polkadot/x-randomvalues": "*" - checksum: 21049298513d1e6008f367be271b6343159aecfc35fce68282dd55a27881b57822151da077b0886555cf30abd2889a038a4ede05d05f8cb0cda31f2afc445af4 + checksum: af7bc62bba16f1fbbfd76601ecf18ed8f4dfc685807e2e89ef8e8d02f824d1a1ed1635e9c2448c6c12a9a183192b18943f9ce077d6b7781c4d43cdb5c45c9161 languageName: node linkType: hard -"@polkadot/wasm-crypto-wasm@npm:6.2.3": - version: 6.2.3 - resolution: "@polkadot/wasm-crypto-wasm@npm:6.2.3" +"@polkadot/wasm-crypto-wasm@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-crypto-wasm@npm:7.3.2" dependencies: - "@babel/runtime": ^7.18.6 - "@polkadot/wasm-util": 6.2.3 + "@polkadot/wasm-util": 7.3.2 + tslib: ^2.6.2 peerDependencies: "@polkadot/util": "*" - checksum: 67ccbf19c374f98770180c43cd8ce14304174fbd1ef78afba2268023f897e264de36d7e579f680e1e4a8874692c4418d4f4fa4d6e17ffde91fb219a10712e8a1 + checksum: e112ea3d4f8858a95fdaad47341b422db3db3256b7e7d709d1c3e0bc4c4bbdf81028eaa556b688078b32ff15be33af093b903c680f54eb1552072afede621a6a languageName: node linkType: hard -"@polkadot/wasm-crypto@npm:^6.1.1": - version: 6.2.3 - resolution: "@polkadot/wasm-crypto@npm:6.2.3" +"@polkadot/wasm-crypto@npm:^7.0.3": + version: 7.3.2 + resolution: "@polkadot/wasm-crypto@npm:7.3.2" dependencies: - "@babel/runtime": ^7.18.6 - "@polkadot/wasm-bridge": 6.2.3 - "@polkadot/wasm-crypto-asmjs": 6.2.3 - "@polkadot/wasm-crypto-init": 6.2.3 - "@polkadot/wasm-crypto-wasm": 6.2.3 - "@polkadot/wasm-util": 6.2.3 + "@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 peerDependencies: "@polkadot/util": "*" "@polkadot/x-randomvalues": "*" - checksum: f7f119f3bb8fc0223058bb4929f1da32bb517d83b058c1349a934266a07925a47da092c147dc38965d0f2e45c267675199bcbfe0e745ee287f672014c9615af4 + checksum: 574006cdcc3e76af28cc79102726a79fdcd765ca5b45cbc4807d70917d82131b59f50b5cc07bd165b2863ed131b8764fef74b00c68ba5ec30a21c04c72061f8f languageName: node linkType: hard -"@polkadot/wasm-util@npm:6.2.3": - version: 6.2.3 - resolution: "@polkadot/wasm-util@npm:6.2.3" +"@polkadot/wasm-util@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-util@npm:7.3.2" dependencies: - "@babel/runtime": ^7.18.6 + tslib: ^2.6.2 peerDependencies: "@polkadot/util": "*" - checksum: 41ca92114eb8fa373da8c6620394d4eac083f95f54804e507662728759e235a825de9817c444d1ce9a9f57fa7ef42cc002db0542c7875288a702274865682ee3 + checksum: 44bd445043714aac6d184ce02d62fbdb97a117fd4d8bdbf3f2c1d14f6911a7d87ed6bb4682035eb757524ade995f7f4f8aaa07c8a194f761884ded25a6b383a9 languageName: node linkType: hard -"@polkadot/x-bigint@npm:9.5.1": - version: 9.5.1 - resolution: "@polkadot/x-bigint@npm:9.5.1" +"@polkadot/x-bigint@npm:11.1.1": + version: 11.1.1 + resolution: "@polkadot/x-bigint@npm:11.1.1" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/x-global": 9.5.1 - checksum: 0031935e55424eb348e9d01eab0b61632535f30a89121451a20e397c6012609b59b3b7b62f329669a01a1a204f02916c46538542eff042381f7ffb0aad2edb8f + "@polkadot/x-global": 11.1.1 + tslib: ^2.5.0 + checksum: 23132e64e627c3cdb8c08bcc5ee49887256f651138c4f7eb967c4eb7d73e1a77ab7b9eaa352247a281e96919fbb61cccaca6f0487d9127ad8fc8dc131f1e2a13 languageName: node linkType: hard -"@polkadot/x-fetch@npm:^9.5.1": - version: 9.7.2 - resolution: "@polkadot/x-fetch@npm:9.7.2" +"@polkadot/x-bigint@npm:^11.1.1": + version: 11.1.3 + resolution: "@polkadot/x-bigint@npm:11.1.3" dependencies: - "@babel/runtime": ^7.18.6 - "@polkadot/x-global": 9.7.2 - "@types/node-fetch": ^2.6.2 - node-fetch: ^2.6.7 - checksum: b0739abf8e8dbc0e2126e6d7d651bfebfe6972388422182c38cdff712fcd1993d86c6c1434a45e327e6456fb0b451f295a6df2c1331a571d4616aedf53b6b20a + "@polkadot/x-global": 11.1.3 + tslib: ^2.5.0 + checksum: e7d72b8bb1fafb0db8cfc66e5a8fff4559d0c6f6d60f29ed554ea6c278c0438cf0f1d1a87556e364d86675c821658b791df75b3072dcdea40c6cb0049d462833 + languageName: node + linkType: hard + +"@polkadot/x-fetch@npm:^11.1.1": + version: 11.1.3 + resolution: "@polkadot/x-fetch@npm:11.1.3" + dependencies: + "@polkadot/x-global": 11.1.3 + node-fetch: ^3.3.1 + tslib: ^2.5.0 + checksum: b0a5d28c6197b063fbb956d0a4aa7eabe89fc3be2ceeeaff8b85a657d957245180847127de2c332d1db3be7a3f0d59b0f0efdc71cb7bf50e526561e7b261f7c9 languageName: node linkType: hard -"@polkadot/x-global@npm:9.5.1": - version: 9.5.1 - resolution: "@polkadot/x-global@npm:9.5.1" +"@polkadot/x-global@npm:11.1.1": + version: 11.1.1 + resolution: "@polkadot/x-global@npm:11.1.1" dependencies: - "@babel/runtime": ^7.18.3 - checksum: 330748b70fe76ba5f3850d0fbf1698c9b3db483aecb832fc70e8f899bc4eb9fd8f802d7773aa549f0da7324dc153951d81b1357e11ca6e4144685646bafff217 + tslib: ^2.5.0 + checksum: e682618a060dc70c4194d24d12fa162635ff2a38bc472a8aa8e4a010acb51c00a18b827b6e4310cd53678cd5be0c28f25ab3ba7beda1d772fdb6b39c7345c539 languageName: node linkType: hard -"@polkadot/x-global@npm:9.7.2, @polkadot/x-global@npm:^9.5.1": - version: 9.7.2 - resolution: "@polkadot/x-global@npm:9.7.2" +"@polkadot/x-global@npm:11.1.3, @polkadot/x-global@npm:^11.1.1, @polkadot/x-global@npm:^11.1.3": + version: 11.1.3 + resolution: "@polkadot/x-global@npm:11.1.3" dependencies: - "@babel/runtime": ^7.18.6 - checksum: 1c64fd3ba0d81707887bb0fcb55da1ee5977ebf4bf247bc078e1d96e7a12d2bed089fafa8776b8c219772049521cf49f45d378f37fed82aaafe44b0b5aad41ac + tslib: ^2.5.0 + checksum: 997b843e519168e9b845f5e67129aef2673761f9398fe51015f717eb65cb9aa393836cc9d8ed70668b84a0e1a0a73f8cd6810beb638fed9c8a8b5c7ebeee8ab3 languageName: node linkType: hard -"@polkadot/x-randomvalues@npm:9.5.1": - version: 9.5.1 - resolution: "@polkadot/x-randomvalues@npm:9.5.1" +"@polkadot/x-randomvalues@npm:11.1.1": + version: 11.1.1 + resolution: "@polkadot/x-randomvalues@npm:11.1.1" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/x-global": 9.5.1 - checksum: e31f4721b06552144f305862a2efb64ee2e8b2efe4d47c70084f74e182091518a5947920fcc0d5d46b41449906aa51bed4415a4f8e813db20c4096a4b7e4166e + "@polkadot/x-global": 11.1.1 + tslib: ^2.5.0 + checksum: f4457444dc67a0f066369b5b39e976bb3b3eb7077625c467e8f0b9b8d7caed6eca9efe11fc7cc1644f4b719b7312055e2fe8c6bc649a03f8f280f35853659795 languageName: node linkType: hard -"@polkadot/x-textdecoder@npm:9.5.1": - version: 9.5.1 - resolution: "@polkadot/x-textdecoder@npm:9.5.1" +"@polkadot/x-textdecoder@npm:11.1.1": + version: 11.1.1 + resolution: "@polkadot/x-textdecoder@npm:11.1.1" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/x-global": 9.5.1 - checksum: 300635ee12de2668b3689b4ba38a33846585bcfc532410f81d70e4c53f5b94780344b9cc74f304c62e7d2293df229982172bf4228023ed2f9500c940898ae0cc + "@polkadot/x-global": 11.1.1 + tslib: ^2.5.0 + checksum: fc54e2053b9bd2d06c9318334543509176f2144fc0ea1104ee018a06f02220231d61399f9bfe7580387dfb0460ed7c1d22357dc38ea628fe7a6ffce037583c93 languageName: node linkType: hard -"@polkadot/x-textencoder@npm:9.5.1": - version: 9.5.1 - resolution: "@polkadot/x-textencoder@npm:9.5.1" +"@polkadot/x-textencoder@npm:11.1.1": + version: 11.1.1 + resolution: "@polkadot/x-textencoder@npm:11.1.1" dependencies: - "@babel/runtime": ^7.18.3 - "@polkadot/x-global": 9.5.1 - checksum: c3f29d9d057b1ce75c8afe33d6aa11750a940685c9ac14669dd640da78b0316e82c7a832a4c1f6314e09715446dcefcc8740ed66d9bb4aa56bcdb5a7cc23dae5 + "@polkadot/x-global": 11.1.1 + tslib: ^2.5.0 + checksum: 791550f3e9fe875ffac9e14db33876f98ac90e0ebdf51aa4b0b397cc0fbd54d3d4050aec99becdaa5291537caa11f93b1f12a4183f33a33ad952409cbf9bf135 languageName: node linkType: hard -"@polkadot/x-ws@npm:^9.5.1": - version: 9.7.2 - resolution: "@polkadot/x-ws@npm:9.7.2" +"@polkadot/x-ws@npm:^11.1.1": + version: 11.1.3 + resolution: "@polkadot/x-ws@npm:11.1.3" dependencies: - "@babel/runtime": ^7.18.6 - "@polkadot/x-global": 9.7.2 - "@types/websocket": ^1.0.5 - websocket: ^1.0.34 - checksum: 0eebb36f601d00f1275abb4085507fd6cea220c3eeed4172102405ea60b1c2e85c4a35536516c49bb95b9f285924fd5489ead9c1a2438d4dd6a8bf8c22e4cfec + "@polkadot/x-global": 11.1.3 + tslib: ^2.5.0 + ws: ^8.13.0 + checksum: 17a5f7b732ad1da519e998a5ef4f183530dd66bcc41090e2666ddd9ca3f2c3f4ed3169da50e03fe4b3700b58019a4bbf5bcc0ba61fa6c041f8425d42d284060f languageName: node linkType: hard @@ -9158,39 +9105,28 @@ __metadata: languageName: node linkType: hard -"@substrate/connect-extension-protocol@npm:^1.0.0": - version: 1.0.0 - resolution: "@substrate/connect-extension-protocol@npm:1.0.0" - checksum: a6f16f1b986eb3d517a8db909d780febc1f5094a2956c1d3f9332ee60e0c08f32f67f4f500c9522bacd166d63a5023738f90c28059768077bf26535dc5a82013 +"@substrate/connect-extension-protocol@npm:^1.0.1": + version: 1.0.1 + resolution: "@substrate/connect-extension-protocol@npm:1.0.1" + checksum: 116dee587e81e832e14c25038bd849438c9493c6089aa6c1bf1760780d463880d44d362ed983d57ac3695368ac46f3c9df3dbaed92f36de89626c9735cecd1e4 languageName: node linkType: hard -"@substrate/connect@npm:0.7.6": - version: 0.7.6 - resolution: "@substrate/connect@npm:0.7.6" +"@substrate/connect@npm:0.7.21": + version: 0.7.21 + resolution: "@substrate/connect@npm:0.7.21" dependencies: - "@substrate/connect-extension-protocol": ^1.0.0 - "@substrate/smoldot-light": 0.6.19 + "@substrate/connect-extension-protocol": ^1.0.1 eventemitter3: ^4.0.7 - checksum: 51f34d385e91d4c84acb47b4bf9f824cbbc8546829a74aa27ad7a0d9e2128152879ba5400a029297d4ca8600ef381f4f72c1ffe82a16331221896cad85773407 + smoldot: 1.0.0 + checksum: 63fd91ed42ed5e36158c7fb9df916fad31f3ee19f93eddd16bd7ebea934c1aecac1cbc1c01ddffcb9623b618b52fe2ece5bbba959626ee129eafaaa199b78389 languageName: node linkType: hard -"@substrate/smoldot-light@npm:0.6.19": - version: 0.6.19 - resolution: "@substrate/smoldot-light@npm:0.6.19" - dependencies: - buffer: ^6.0.1 - pako: ^2.0.4 - websocket: ^1.0.32 - checksum: 5d276c44d1782826fd1bbe3c517c70cdf3d0dc558c34615dcc4480b407fccf90b8a9d33c6058aefc50cdb47349fc65595312b4f6fd9f199d93a7b562f20759f6 - languageName: node - linkType: hard - -"@substrate/ss58-registry@npm:^1.22.0": - version: 1.23.0 - resolution: "@substrate/ss58-registry@npm:1.23.0" - checksum: 6544c713f4200c32ed8cdc3dfe6296bbc5f6f32c27f05c725004eab10f2c0e17f56a44631c35ab58612b5e143de98321aa599b3bdc8c2a9ff6fc41e6e9b8c26b +"@substrate/ss58-registry@npm:^1.39.0": + version: 1.46.0 + resolution: "@substrate/ss58-registry@npm:1.46.0" + checksum: 10e9bfd8d509abf78759d3e62cc41de515fc832dc2eab503071dda4cf0fb71c9d52247d0c32f93af6f8c4463add50d7f7f3483b52cbf43de621ac255226efb5f languageName: node linkType: hard @@ -9467,6 +9403,15 @@ __metadata: languageName: node linkType: hard +"@types/bn.js@npm:^5.1.1": + version: 5.1.5 + resolution: "@types/bn.js@npm:5.1.5" + dependencies: + "@types/node": "*" + checksum: c87b28c4af74545624f8a3dae5294b16aa190c222626e8d4b2e327b33b1a3f1eeb43e7a24d914a9774bca43d8cd6e1cb0325c1f4b3a244af6693a024e1d918e6 + languageName: node + linkType: hard + "@types/body-parser@npm:*, @types/body-parser@npm:1.19.2": version: 1.19.2 resolution: "@types/body-parser@npm:1.19.2" @@ -10009,16 +9954,6 @@ __metadata: languageName: node linkType: hard -"@types/node-fetch@npm:^2.6.2": - version: 2.6.2 - resolution: "@types/node-fetch@npm:2.6.2" - dependencies: - "@types/node": "*" - form-data: ^3.0.0 - checksum: 6f73b1470000d303d25a6fb92875ea837a216656cb7474f66cdd67bb014aa81a5a11e7ac9c21fe19bee9ecb2ef87c1962bceeaec31386119d1ac86e4c30ad7a6 - languageName: node - linkType: hard - "@types/node@npm:*": version: 17.0.15 resolution: "@types/node@npm:17.0.15" @@ -10378,15 +10313,6 @@ __metadata: languageName: node linkType: hard -"@types/websocket@npm:^1.0.5": - version: 1.0.5 - resolution: "@types/websocket@npm:1.0.5" - dependencies: - "@types/node": "*" - checksum: 41c7a620f877a0165ff36e713455d888b7f5df9c51e71b5d0f47994f98cf22ccd339b8c6cfdc6bb417e950d40f405693974d393bd916971490553cc5e9e67a9d - languageName: node - linkType: hard - "@types/ws@npm:^8.0.0": version: 8.2.2 resolution: "@types/ws@npm:8.2.2" @@ -11596,7 +11522,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^6.1.0, ajv@npm:^6.10.0, ajv@npm:^6.11.0, ajv@npm:^6.12.4, ajv@npm:^6.12.5": +"ajv@npm:^6.1.0, ajv@npm:^6.10.0, ajv@npm:^6.12.4, ajv@npm:^6.12.5": version: 6.12.6 resolution: "ajv@npm:6.12.6" dependencies: @@ -13309,7 +13235,7 @@ __metadata: languageName: node linkType: hard -"buffer@npm:^6.0.1, buffer@npm:^6.0.3": +"buffer@npm:^6.0.3": version: 6.0.3 resolution: "buffer@npm:6.0.3" dependencies: @@ -13326,16 +13252,6 @@ __metadata: languageName: node linkType: hard -"bufferutil@npm:^4.0.1": - version: 4.0.5 - resolution: "bufferutil@npm:4.0.5" - dependencies: - node-gyp: latest - node-gyp-build: ^4.3.0 - checksum: 37d5bef7cb38d29f9377b8891ff8a57f53ae6057313d77a8aa2a7417df37a72f16987100796cb2f1e1862f3eb80057705f3c052615ec076a0dcc7aa6c83b68c9 - languageName: node - linkType: hard - "builtins@npm:^5.0.0": version: 5.0.1 resolution: "builtins@npm:5.0.1" @@ -14329,7 +14245,7 @@ __metadata: languageName: node linkType: hard -"color@npm:^3.0.0, color@npm:^3.2.1": +"color@npm:^3.0.0": version: 3.2.1 resolution: "color@npm:3.2.1" dependencies: @@ -14339,6 +14255,13 @@ __metadata: languageName: node linkType: hard +"colord@npm:^2.9.3": + version: 2.9.3 + resolution: "colord@npm:2.9.3" + checksum: 95d909bfbcfd8d5605cbb5af56f2d1ce2b323990258fd7c0d2eb0e6d3bb177254d7fb8213758db56bb4ede708964f78c6b992b326615f81a18a6aaf11d64c650 + languageName: node + linkType: hard + "colorette@npm:^2.0.10, colorette@npm:^2.0.14, colorette@npm:^2.0.16": version: 2.0.16 resolution: "colorette@npm:2.0.16" @@ -15440,13 +15363,10 @@ __metadata: languageName: node linkType: hard -"d@npm:1, d@npm:^1.0.1": - version: 1.0.1 - resolution: "d@npm:1.0.1" - dependencies: - es5-ext: ^0.10.50 - type: ^1.0.1 - checksum: 49ca0639c7b822db670de93d4fbce44b4aa072cd848c76292c9978a8cd0fff1028763020ff4b0f147bd77bfe29b4c7f82e0f71ade76b2a06100543cdfd948d19 +"data-uri-to-buffer@npm:^4.0.0": + version: 4.0.1 + resolution: "data-uri-to-buffer@npm:4.0.1" + checksum: 0d0790b67ffec5302f204c2ccca4494f70b4e2d940fea3d36b09f0bb2b8539c2e86690429eb1f1dc4bcc9e4df0644193073e63d9ee48ac9fce79ec1506e4aa4c languageName: node linkType: hard @@ -16489,15 +16409,6 @@ __metadata: languageName: node linkType: hard -"ed2curve@npm:^0.3.0": - version: 0.3.0 - resolution: "ed2curve@npm:0.3.0" - dependencies: - tweetnacl: 1.x.x - checksum: 6dfbe2310aa5a47372c9dd2fd920be140c8d52aea5793d716a3e3865d2ceaeaf639a7653e5492dfe3b4910eaf65c09a1d5132580afe2fdca18a75ebb428a52f2 - languageName: node - linkType: hard - "editorconfig@npm:^1.0.3": version: 1.0.4 resolution: "editorconfig@npm:1.0.4" @@ -16880,17 +16791,6 @@ __metadata: languageName: node linkType: hard -"es5-ext@npm:^0.10.35, es5-ext@npm:^0.10.50": - version: 0.10.53 - resolution: "es5-ext@npm:0.10.53" - dependencies: - es6-iterator: ~2.0.3 - es6-symbol: ~3.1.3 - next-tick: ~1.0.0 - checksum: 24ec22369260cf98605cb2f51eae9d7df5dc621bc5d3b311f6f5c3d0fcdb7bafae888270f3083ee6e9af27350a5ea49f1fe2dd6406a9017247ca40f091f529b2 - languageName: node - linkType: hard - "es6-error@npm:^4.0.1": version: 4.1.1 resolution: "es6-error@npm:4.1.1" @@ -16898,17 +16798,6 @@ __metadata: languageName: node linkType: hard -"es6-iterator@npm:~2.0.3": - version: 2.0.3 - resolution: "es6-iterator@npm:2.0.3" - dependencies: - d: 1 - es5-ext: ^0.10.35 - es6-symbol: ^3.1.1 - checksum: 6e48b1c2d962c21dee604b3d9f0bc3889f11ed5a8b33689155a2065d20e3107e2a69cc63a71bd125aeee3a589182f8bbcb5c8a05b6a8f38fa4205671b6d09697 - languageName: node - linkType: hard - "es6-object-assign@npm:^1.1.0": version: 1.1.0 resolution: "es6-object-assign@npm:1.1.0" @@ -16916,16 +16805,6 @@ __metadata: languageName: node linkType: hard -"es6-symbol@npm:^3.1.1, es6-symbol@npm:~3.1.3": - version: 3.1.3 - resolution: "es6-symbol@npm:3.1.3" - dependencies: - d: ^1.0.1 - ext: ^1.1.2 - checksum: cd49722c2a70f011eb02143ef1c8c70658d2660dead6641e160b94619f408b9cf66425515787ffe338affdf0285ad54f4eae30ea5bd510e33f8659ec53bcaa70 - languageName: node - linkType: hard - "esbuild-plugin-alias@npm:^0.2.1": version: 0.2.1 resolution: "esbuild-plugin-alias@npm:0.2.1" @@ -17525,6 +17404,13 @@ __metadata: languageName: node linkType: hard +"eventemitter3@npm:^5.0.0": + version: 5.0.1 + resolution: "eventemitter3@npm:5.0.1" + checksum: 543d6c858ab699303c3c32e0f0f47fc64d360bf73c3daf0ac0b5079710e340d6fe9f15487f94e66c629f5f82cd1a8678d692f3dbb6f6fcd1190e1b97fcad36f8 + languageName: node + linkType: hard + "events@npm:^3.2.0, events@npm:^3.3.0": version: 3.3.0 resolution: "events@npm:3.3.0" @@ -17780,15 +17666,6 @@ __metadata: languageName: node linkType: hard -"ext@npm:^1.1.2": - version: 1.6.0 - resolution: "ext@npm:1.6.0" - dependencies: - type: ^2.5.0 - checksum: ca3ef4619e838f441a92238a98b77ac873da2175ace746c64303ffe2c3208e79a3acf3bf7004e40b720f3c2a83bf0143e6dd4a7cdfae6e73f54a3bfc7a14b5c2 - languageName: node - linkType: hard - "extend-shallow@npm:^2.0.1": version: 2.0.1 resolution: "extend-shallow@npm:2.0.1" @@ -18093,6 +17970,16 @@ __metadata: languageName: node linkType: hard +"fetch-blob@npm:^3.1.2, fetch-blob@npm:^3.1.4": + version: 3.2.0 + resolution: "fetch-blob@npm:3.2.0" + dependencies: + node-domexception: ^1.0.0 + web-streams-polyfill: ^3.0.3 + checksum: f19bc28a2a0b9626e69fd7cf3a05798706db7f6c7548da657cbf5026a570945f5eeaedff52007ea35c8bcd3d237c58a20bf1543bc568ab2422411d762dd3d5bf + languageName: node + linkType: hard + "fetch-retry@npm:^5.0.2": version: 5.0.6 resolution: "fetch-retry@npm:5.0.6" @@ -18537,6 +18424,15 @@ __metadata: languageName: node linkType: hard +"formdata-polyfill@npm:^4.0.10": + version: 4.0.10 + resolution: "formdata-polyfill@npm:4.0.10" + dependencies: + fetch-blob: ^3.1.2 + checksum: 82a34df292afadd82b43d4a740ce387bc08541e0a534358425193017bf9fb3567875dc5f69564984b1da979979b70703aa73dee715a17b6c229752ae736dd9db + languageName: node + linkType: hard + "forwarded@npm:0.2.0": version: 0.2.0 resolution: "forwarded@npm:0.2.0" @@ -20703,7 +20599,7 @@ __metadata: languageName: node linkType: hard -"ip-regex@npm:^4.0.0, ip-regex@npm:^4.1.0, ip-regex@npm:^4.3.0": +"ip-regex@npm:^4.0.0, ip-regex@npm:^4.1.0": version: 4.3.0 resolution: "ip-regex@npm:4.3.0" checksum: 7ff904b891221b1847f3fdf3dbb3e6a8660dc39bc283f79eb7ed88f5338e1a3d1104b779bc83759159be266249c59c2160e779ee39446d79d4ed0890dfd06f08 @@ -21825,14 +21721,14 @@ __metadata: languageName: node linkType: hard -"jdenticon@npm:3.1.1": - version: 3.1.1 - resolution: "jdenticon@npm:3.1.1" +"jdenticon@npm:3.2.0": + version: 3.2.0 + resolution: "jdenticon@npm:3.2.0" dependencies: canvas-renderer: ~2.2.0 bin: jdenticon: bin/jdenticon.js - checksum: 1c0c64a5740a70a8b9a11db53252c092e07543a122570132c0b824f3344c50ee705b0aada03cbeaeaab9e297c8aea5354a018e21a2780e7b9d7250d9d03ae2e8 + checksum: cdc0651532f38e02c8e6661f0185735dcd29b7cd17677c69be31916ed38d81ded8bc749deb79925ad8aaf68da0b7a49f0835879c70a7dea042caa6c47faaebee languageName: node linkType: hard @@ -26164,6 +26060,15 @@ __metadata: languageName: node linkType: hard +"mkdirp@npm:^2.1.5": + version: 2.1.6 + resolution: "mkdirp@npm:2.1.6" + bin: + mkdirp: dist/cjs/src/bin.js + checksum: 8a1d09ffac585e55f41c54f445051f5bc33a7de99b952bb04c576cafdf1a67bb4bae8cb93736f7da6838771fbf75bc630430a3a59e1252047d2278690bd150ee + languageName: node + linkType: hard + "mlly@npm:^1.2.0, mlly@npm:^1.5.0": version: 1.5.0 resolution: "mlly@npm:1.5.0" @@ -26186,10 +26091,10 @@ __metadata: languageName: node linkType: hard -"mock-socket@npm:^9.1.5": - version: 9.1.5 - resolution: "mock-socket@npm:9.1.5" - checksum: a01586bc2850eb5809eda6de0c7ab19255c1e0eb217a805f86ba662bb4aab00b919032d67e7c826c6c12bcfb2fbe19cecbacf0ab6184936487edc4ba37d3ba53 +"mock-socket@npm:^9.2.1": + version: 9.3.1 + resolution: "mock-socket@npm:9.3.1" + checksum: cb2dde4fc5dde280dd5ccb78eaaa223382ee16437f46b86558017655584ad08c22e733bde2dd5cc86927def506b6caeb0147e3167b9a62d70d5cf19d44103853 languageName: node linkType: hard @@ -26393,13 +26298,6 @@ __metadata: languageName: node linkType: hard -"next-tick@npm:~1.0.0": - version: 1.0.0 - resolution: "next-tick@npm:1.0.0" - checksum: 83fcb3d4f8d9380210b1c2b8a610463602d80283f0c0c8571c1688e1ad6cbf3a16b345f5bb7212617d4898bedcfa10dff327dc09ec20a112a5bf43a0271375fb - languageName: node - linkType: hard - "nexus-prisma@npm:^2.0.1": version: 2.0.1 resolution: "nexus-prisma@npm:2.0.1" @@ -26466,15 +26364,14 @@ __metadata: languageName: node linkType: hard -"nock@npm:^13.2.6": - version: 13.2.8 - resolution: "nock@npm:13.2.8" +"nock@npm:^13.3.0": + version: 13.5.4 + resolution: "nock@npm:13.5.4" dependencies: debug: ^4.1.0 json-stringify-safe: ^5.0.1 - lodash: ^4.17.21 propagate: ^2.0.0 - checksum: 656f696d3c1b6267b8ec366f5cc464306d2aa308ce9b41414e9992eea5b0b71e475a582945b936e16263961c3a0f9e1c388a3a36da53c1e300398a7826550f96 + checksum: d31f924e34c87ae985edfb7b5a56e8a4dcfc3a072334ceb6d686326581f93090b3e23492663a64ce61b8df4f365b113231d926bc300bcfe9e5eb309c3e4b8628 languageName: node linkType: hard @@ -26521,7 +26418,7 @@ __metadata: languageName: node linkType: hard -"node-domexception@npm:1.0.0": +"node-domexception@npm:1.0.0, node-domexception@npm:^1.0.0": version: 1.0.0 resolution: "node-domexception@npm:1.0.0" checksum: ee1d37dd2a4eb26a8a92cd6b64dfc29caec72bff5e1ed9aba80c294f57a31ba4895a60fd48347cf17dd6e766da0ae87d75657dfd1f384ebfa60462c2283f5c7f @@ -26609,6 +26506,17 @@ __metadata: languageName: node linkType: hard +"node-fetch@npm:^3.3.1": + version: 3.3.2 + resolution: "node-fetch@npm:3.3.2" + dependencies: + data-uri-to-buffer: ^4.0.0 + fetch-blob: ^3.1.4 + formdata-polyfill: ^4.0.10 + checksum: 06a04095a2ddf05b0830a0d5302699704d59bda3102894ea64c7b9d4c865ecdff2d90fd042df7f5bc40337266961cb6183dcc808ea4f3000d024f422b462da92 + languageName: node + linkType: hard + "node-forge@npm:^0.10.0": version: 0.10.0 resolution: "node-forge@npm:0.10.0" @@ -26634,17 +26542,6 @@ __metadata: languageName: node linkType: hard -"node-gyp-build@npm:^4.3.0": - version: 4.3.0 - resolution: "node-gyp-build@npm:4.3.0" - bin: - node-gyp-build: bin.js - node-gyp-build-optional: optional.js - node-gyp-build-test: build-test.js - checksum: 1ecab16d9f275174d516e223f60f65ebe07540347d5c04a6a7d6921060b7f2e3af4f19463d9d1dcedc452e275c2ae71354a99405e55ebd5b655bb2f38025c728 - languageName: node - linkType: hard - "node-gyp@npm:^9.0.0": version: 9.3.1 resolution: "node-gyp@npm:9.3.1" @@ -31010,6 +30907,15 @@ __metadata: languageName: node linkType: hard +"rxjs@npm:7.8.1, rxjs@npm:^7.8.0": + version: 7.8.1 + resolution: "rxjs@npm:7.8.1" + dependencies: + tslib: ^2.1.0 + checksum: de4b53db1063e618ec2eca0f7965d9137cabe98cf6be9272efe6c86b47c17b987383df8574861bcced18ebd590764125a901d5506082be84a8b8e364bf05f119 + languageName: node + linkType: hard + "rxjs@npm:^6.3.3, rxjs@npm:^6.6.3": version: 6.6.7 resolution: "rxjs@npm:6.6.7" @@ -31938,6 +31844,16 @@ __metadata: languageName: node linkType: hard +"smoldot@npm:1.0.0": + version: 1.0.0 + resolution: "smoldot@npm:1.0.0" + dependencies: + pako: ^2.0.4 + ws: ^8.8.1 + checksum: 507126c07a6512ea7d19fb2041cc0f78b8031a3f76471b491f19db81e61dbe7ebbd633c23951e9f8e7c3aeee3fc4c0b508dee5b925bfb7d6640ce0853ce6e3ef + languageName: node + linkType: hard + "snake-case@npm:^3.0.4": version: 3.0.4 resolution: "snake-case@npm:3.0.4" @@ -32799,9 +32715,9 @@ __metadata: languageName: node linkType: hard -"styled-components@npm:^5.3.5": - version: 5.3.5 - resolution: "styled-components@npm:5.3.5" +"styled-components@npm:^5.3.9": + version: 5.3.11 + resolution: "styled-components@npm:5.3.11" dependencies: "@babel/helper-module-imports": ^7.0.0 "@babel/traverse": ^7.4.5 @@ -32817,7 +32733,7 @@ __metadata: react: ">= 16.8.0" react-dom: ">= 16.8.0" react-is: ">= 16.8.0" - checksum: 05a664dfe423c2906959a0f3f47f9b1ad630e493eb2e06deea0dc0906af33ba5ca17277b98948a6c9642e73894d6533391aebf45576489f5afe920c974e9f8eb + checksum: 10edd4dae3b0231ec02d86bdd09c88e894eedfa7e9d4f8e562b09fb69c67a27d586cbcf35c785002d59b3bf11e6c0940b0efce40d13ae9ed148b26b1dc8f3284 languageName: node linkType: hard @@ -33961,7 +33877,7 @@ __metadata: languageName: node linkType: hard -"tweetnacl@npm:1.x.x, tweetnacl@npm:^1.0.3": +"tweetnacl@npm:^1.0.3": version: 1.0.3 resolution: "tweetnacl@npm:1.0.3" checksum: e4a57cac188f0c53f24c7a33279e223618a2bfb5fea426231991652a13247bea06b081fd745d71291fcae0f4428d29beba1b984b1f1ce6f66b06a6d1ab90645c @@ -34080,20 +33996,6 @@ __metadata: languageName: node linkType: hard -"type@npm:^1.0.1": - version: 1.2.0 - resolution: "type@npm:1.2.0" - checksum: dae8c64f82c648b985caf321e9dd6e8b7f4f2e2d4f846fc6fd2c8e9dc7769382d8a52369ddbaccd59aeeceb0df7f52fb339c465be5f2e543e81e810e413451ee - languageName: node - linkType: hard - -"type@npm:^2.5.0": - version: 2.5.0 - resolution: "type@npm:2.5.0" - checksum: 0fe1bb4e8ba298b2b245fdc6bca6178887e29e2134d231e468366615b3adffd651d464eb51d8b15f8cfd168577c282a17e19bf80f036a60d4df16308a83a93c4 - languageName: node - linkType: hard - "typed-array-buffer@npm:^1.0.0": version: 1.0.0 resolution: "typed-array-buffer@npm:1.0.0" @@ -34887,16 +34789,6 @@ __metadata: languageName: node linkType: hard -"utf-8-validate@npm:^5.0.2": - version: 5.0.7 - resolution: "utf-8-validate@npm:5.0.7" - dependencies: - node-gyp: latest - node-gyp-build: ^4.3.0 - checksum: 588d272b359bf555a0c4c2ffe97286edc73126de132f63f4f0c80110bd06b67d3ce44d2b3d24feea6da13ced50c04d774ba4d25fe28576371cd714cd013bd3b7 - languageName: node - linkType: hard - "utf8@npm:3.0.0": version: 3.0.0 resolution: "utf8@npm:3.0.0" @@ -35273,6 +35165,13 @@ __metadata: languageName: node linkType: hard +"web-streams-polyfill@npm:^3.0.3": + version: 3.3.3 + resolution: "web-streams-polyfill@npm:3.3.3" + checksum: 21ab5ea08a730a2ef8023736afe16713b4f2023ec1c7085c16c8e293ee17ed085dff63a0ad8722da30c99c4ccbd4ccd1b2e79c861829f7ef2963d7de7004c2cb + languageName: node + linkType: hard + "web-streams-polyfill@npm:^3.2.0": version: 3.2.0 resolution: "web-streams-polyfill@npm:3.2.0" @@ -35555,20 +35454,6 @@ __metadata: languageName: node linkType: hard -"websocket@npm:^1.0.32, websocket@npm:^1.0.34": - version: 1.0.34 - resolution: "websocket@npm:1.0.34" - dependencies: - bufferutil: ^4.0.1 - debug: ^2.2.0 - es5-ext: ^0.10.50 - typedarray-to-buffer: ^3.1.5 - utf-8-validate: ^5.0.2 - yaeti: ^0.0.6 - checksum: 8a0ce6d79cc1334bb6ea0d607f0092f3d32700b4dd19e4d5540f2a85f3b50e1f8110da0e4716737056584dde70bbebcb40bbd94bbb437d7468c71abfbfa077d8 - languageName: node - linkType: hard - "whatwg-encoding@npm:^1.0.5": version: 1.0.5 resolution: "whatwg-encoding@npm:1.0.5" @@ -35958,6 +35843,21 @@ __metadata: languageName: node linkType: hard +"ws@npm:^8.13.0, ws@npm:^8.8.1": + version: 8.16.0 + resolution: "ws@npm:8.16.0" + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ">=5.0.2" + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + checksum: feb3eecd2bae82fa8a8beef800290ce437d8b8063bdc69712725f21aef77c49cb2ff45c6e5e7fce622248f9c7abaee506bae0a9064067ffd6935460c7357321b + languageName: node + linkType: hard + "ws@npm:^8.3.0": version: 8.5.0 resolution: "ws@npm:8.5.0" @@ -36060,13 +35960,6 @@ __metadata: languageName: node linkType: hard -"yaeti@npm:^0.0.6": - version: 0.0.6 - resolution: "yaeti@npm:0.0.6" - checksum: 6db12c152f7c363b80071086a3ebf5032e03332604eeda988872be50d6c8469e1f13316175544fa320f72edad696c2d83843ad0ff370659045c1a68bcecfcfea - languageName: node - linkType: hard - "yallist@npm:^3.0.2": version: 3.1.1 resolution: "yallist@npm:3.1.1"