From 4cbc31678e2123a424f8697ef624fb217a2fc132 Mon Sep 17 00:00:00 2001 From: Viki Val Date: Sat, 5 Jun 2021 19:22:11 +0200 Subject: [PATCH 01/40] WIP: latest subsocial --- dashboard/package.json | 3 +- dashboard/src/components/subsocial/api.ts | 29 + .../src/components/subsocial/ipfsConfig.ts | 11 + dashboard/src/components/subsocial/types.ts | 14 + dashboard/src/components/subsocial/utils.ts | 20 + dashboard/src/main.ts | 3 + dashboard/src/utils/account.ts | 7 + dashboard/src/views/Debug.vue | 6 +- dashboard/vue.config.js | 12 +- dashboard/yarn.lock | 756 ++++++++++++++++-- 10 files changed, 774 insertions(+), 87 deletions(-) create mode 100644 dashboard/src/components/subsocial/api.ts create mode 100644 dashboard/src/components/subsocial/ipfsConfig.ts create mode 100644 dashboard/src/components/subsocial/types.ts create mode 100644 dashboard/src/components/subsocial/utils.ts diff --git a/dashboard/package.json b/dashboard/package.json index 9be55f48ae..a29adcc4f4 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -27,9 +27,10 @@ "@polkadot/util": "^6.4.1", "@polkadot/util-crypto": "^6.4.1", "@polkadot/vue-identicon": "^0.76.1", + "@subsocial/api": "^0.5.3", "@textile/hub": "^6.1.2", "@types/file-saver": "^2.0.2", - "@vue-polkadot/vue-api": "^0.0.32", + "@vue-polkadot/vue-api": "^0.0.33", "@vue-polkadot/vue-settings": "^0.0.17", "apollo-boost": "^0.4.9", "axios": "^0.21.1", diff --git a/dashboard/src/components/subsocial/api.ts b/dashboard/src/components/subsocial/api.ts new file mode 100644 index 0000000000..7299a5cc63 --- /dev/null +++ b/dashboard/src/components/subsocial/api.ts @@ -0,0 +1,29 @@ +import { SubsocialIpfsApi } from '@subsocial/api/api/ipfs' +import { SubsocialApi } from '@subsocial/api/api/subsocial' +import { SubsocialSubstrateApi } from '@subsocial/api/api/substrate' +import { Api } from '@subsocial/api/connections/substrateConnect' +import ipfsConfig from './ipfsConfig' + +export let subsocial: SubsocialApi +export let substrate: SubsocialSubstrateApi +export let ipfs: SubsocialIpfsApi + +/** + * Create a new or return existing connection to Subsocial API + * (includes Substrate and IPFS connections). + */ +export const resolveSubsocialApi = async () => { + // Connect to Subsocial's Substrate node: + if (!subsocial) { + const api = await Api.connect(process.env.VUE_APP_SUBSOCIAL_URL) + subsocial = new SubsocialApi({ + substrateApi: api, + ...ipfsConfig + }) + + substrate = subsocial.substrate + ipfs = subsocial.ipfs + } + + return subsocial +} diff --git a/dashboard/src/components/subsocial/ipfsConfig.ts b/dashboard/src/components/subsocial/ipfsConfig.ts new file mode 100644 index 0000000000..251929e2d7 --- /dev/null +++ b/dashboard/src/components/subsocial/ipfsConfig.ts @@ -0,0 +1,11 @@ + +const ipfsReadOnlyNodeUrl = process.env.VUE_APP_IPFS_READ_ONLY_NODE_URL || 'http://localhost:8080' +const port = process.env.VUE_APP_OFFCHAIN_SERVER_PORT || '' + +// Connect to IPFS daemon API server +export const ipfsConfig = { + ipfsNodeUrl: ipfsReadOnlyNodeUrl, + offchainUrl: port +} + +export default ipfsConfig diff --git a/dashboard/src/components/subsocial/types.ts b/dashboard/src/components/subsocial/types.ts new file mode 100644 index 0000000000..bb431d05ac --- /dev/null +++ b/dashboard/src/components/subsocial/types.ts @@ -0,0 +1,14 @@ + +import { CommonData, PostContent } from '@subsocial/types'; +import { Post } from '@subsocial/types/substrate/interfaces' +import { ProfileContent } from '@subsocial/types/offchain' + +export type Optional = T | undefined; + +export type PostType = Optional> + +export type ProfileContentType = ProfileContent + +export type OptionalProfileContent = Optional + +export type ReactionType = 'Upvote' | 'Downvote' diff --git a/dashboard/src/components/subsocial/utils.ts b/dashboard/src/components/subsocial/utils.ts new file mode 100644 index 0000000000..297dc9e7cf --- /dev/null +++ b/dashboard/src/components/subsocial/utils.ts @@ -0,0 +1,20 @@ +import { resolveSubsocialApi } from './api'; +import BN from 'bn.js'; +import { OptionalProfileContent } from './types' +import { formatAccount } from '@/utils/account'; +export const SUBSOCIAL_SS58 = 28; + +export const findCommentsForPost = async (postId: string) => { + const ss = await resolveSubsocialApi(); + const commentIds = await ss.substrate.getReplyIdsByPostId(new BN(postId)) + const commentPromises = commentIds.map(cm => ss.findPublicPost(cm)) + return await Promise.all(commentPromises); +} + +export const findProfile = async (account: string): Promise => { + const ss = await resolveSubsocialApi(); + const profile = await ss.findProfile(account) + return profile?.content +} + +export const subsocialAddress = (accountId: string) => formatAccount(accountId, SUBSOCIAL_SS58) diff --git a/dashboard/src/main.ts b/dashboard/src/main.ts index c6c6b4a268..0f4b45b96c 100644 --- a/dashboard/src/main.ts +++ b/dashboard/src/main.ts @@ -42,6 +42,8 @@ import { useOperators, OperatorType } from 'mingo/core' import { $match, $group, $project } from 'mingo/operators/pipeline' import { $sum, $first, $push } from 'mingo/operators/accumulator' import apolloClient from './subquery'; +import { resolveSubsocialApi } from './components/subsocial/api'; +// import { resolveSubsocialApi } from '@/components/subsocial/api'; // ensure the required operators are preloaded prior to using them. type OperatorMap = Record ; @@ -60,6 +62,7 @@ Vue.filter('shortAddress', shortAddress); (window as any).P = { baseIpfsPrice, cost, getFileSize, supportTx}; (window as any).axios = axios; (window as any).S = { get, set, getMany }; +(window as any).SS = resolveSubsocialApi; // (window as any).migrateCollection = migrateCollection; // (window as any).migrateNFT = migrateNFT; diff --git a/dashboard/src/utils/account.ts b/dashboard/src/utils/account.ts index 98b99e6075..c1578be362 100644 --- a/dashboard/src/utils/account.ts +++ b/dashboard/src/utils/account.ts @@ -3,6 +3,7 @@ import keyring from '@polkadot/ui-keyring'; import { getAddress } from '@/extension' import { decodeAddress, encodeAddress, } from '@polkadot/util-crypto'; import store from '@/store' +import { Prefix } from '@polkadot/util-crypto/address/types'; export const isAccountLocked = (account: KeyringAccount | string): boolean => { const address = typeof account === 'string' ? account : account.address; @@ -45,4 +46,10 @@ export const pubKeyToAddress = (publicKey: string) => { return encodeAddress(publicKey, ss58Format); } +export const formatAccount = (account: KeyringAccount | string, format?: Prefix) => { + const address = accountToAddress(account); + const ss58Format = format ? format : store.getters.getChainProperties?.ss58Format + return encodeAddress(decodeAddress(address), ss58Format); +} + export default passwordRequired diff --git a/dashboard/src/views/Debug.vue b/dashboard/src/views/Debug.vue index 6a50713153..582c4d3781 100644 --- a/dashboard/src/views/Debug.vue +++ b/dashboard/src/views/Debug.vue @@ -49,9 +49,9 @@ export default class Debug extends Vue { public async mounted() { const { api } = Connector.getInstance(); - let stashes: any; - this.subs.push(await api.derive.staking.overview((value: any) => this.stakingOverview = value)); - this.subs.push(await api.derive.staking.stashes((value: any) => stashes = value)); + const stashes: any = []; + // this.subs.push(await api.derive.staking.overview((value: any) => this.stakingOverview = value)); + // this.subs.push(await api.derive.staking.stashes((value: any) => stashes = value)); this.stashIds = stashes.map((accountId: any) => accountId.toString()) this.validators = this.stakingOverview.validators.map((a: any) => a.toString()); this.next = this.stashIds.filter((address: any) => !this.stakingOverview.validators.includes(address as any)) diff --git a/dashboard/vue.config.js b/dashboard/vue.config.js index 1b5274e801..f666d94059 100644 --- a/dashboard/vue.config.js +++ b/dashboard/vue.config.js @@ -36,9 +36,10 @@ module.exports = { .end() .rule('mjs$') .test(/\.mjs$/) + .type('javascript/auto') .include.add(/node_modules/) .end() - .type('javascript/auto') + }, @@ -46,6 +47,15 @@ module.exports = { resolve: { // .mjs needed for https://github.com/graphql/graphql-js/issues/1272 extensions: ['*', '.mjs', '.js', '.vue', '.json'] + }, + module: { + rules: [ // fixes https://github.com/graphql/graphql-js/issues/1272 + { + test: /\.mjs$/, + include: /node_modules/, + type: 'javascript/auto' + } + ] } }, diff --git a/dashboard/yarn.lock b/dashboard/yarn.lock index d7b93fe502..d55287b3a1 100644 --- a/dashboard/yarn.lock +++ b/dashboard/yarn.lock @@ -1055,10 +1055,10 @@ buffer "^5.4.3" seedrandom "^3.0.5" -"@edgeware/node-types@^3.3.4": - version "3.3.4" - resolved "https://registry.yarnpkg.com/@edgeware/node-types/-/node-types-3.3.4.tgz#6666cc636a11dc197813b6f56bc54f9db0a200d4" - integrity sha512-wCud1L4hmVeu2dkBsP3f89lWIwtg87Hh6t1AT6KvFlpR0vGWR1HLAe2ITmB9RhJdWy8NR5rLoCAEzaq4TDcctA== +"@edgeware/node-types@^3.5.1-erup-4": + version "3.5.1-erup-4" + resolved "https://registry.yarnpkg.com/@edgeware/node-types/-/node-types-3.5.1-erup-4.tgz#802ad24359546de58f02c79e88036eaa2ac2f1dc" + integrity sha512-10xPby539QLqsL543HljhBYnm8YvzU6dVWVWk4QkW/PKdPYsZY4MN7zZWRhertKl1HU3CibCgH0hJNWO8IjAsg== "@fortawesome/fontawesome-common-types@^0.2.35": version "0.2.35" @@ -1311,36 +1311,69 @@ "@nodelib/fs.scandir" "2.1.4" fastq "^1.6.0" -"@polkadot/api-derive@4.10.1": - version "4.10.1" - resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-4.10.1.tgz#391ecde22d2f4de67b3eec3389d3f08b9a0cbc4c" - integrity sha512-PAPqQKZw1xdNQguXXRmN4vccOtwvK4ntW+O3n2+jx9NXK9C38k3aCiEucO7I8NlK8oukKHjX6z3Ziimxr2ZcOw== +"@polkadot/api-derive@3.11.1": + version "3.11.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-3.11.1.tgz#3f0d6804ca2ade80da100314d576534490db5727" + integrity sha512-/v/fNSivgucQrDJvwLU17u8iZ0oQipQzgpofCJGQhRv8OaSv/E9g5EXcHJ1ri/Ozevgu5cPmGs96lLkQaPieAw== + dependencies: + "@babel/runtime" "^7.13.8" + "@polkadot/api" "3.11.1" + "@polkadot/rpc-core" "3.11.1" + "@polkadot/types" "3.11.1" + "@polkadot/util" "^5.9.2" + "@polkadot/util-crypto" "^5.9.2" + "@polkadot/x-rxjs" "^5.9.2" + bn.js "^4.11.9" + +"@polkadot/api-derive@4.12.1": + version "4.12.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-4.12.1.tgz#463a9e83757a7a693d6a6fb21d5ada659b2d731b" + integrity sha512-u2o4fVyBHfoD7P6xWLhjqvvdlkDjjb0gs5quxYbiBSpPpc4itNdnvwJESjRl4Yx1PgnstnD9GVg65iMJR0j4QA== dependencies: "@babel/runtime" "^7.14.0" - "@polkadot/api" "4.10.1" - "@polkadot/rpc-core" "4.10.1" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" + "@polkadot/api" "4.12.1" + "@polkadot/rpc-core" "4.12.1" + "@polkadot/types" "4.12.1" + "@polkadot/util" "^6.6.1" + "@polkadot/util-crypto" "^6.6.1" + "@polkadot/x-rxjs" "^6.6.1" bn.js "^4.11.9" -"@polkadot/api@4.10.1", "@polkadot/api@^4.10.1": - version "4.10.1" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-4.10.1.tgz#6a43c9c4585f3f92cd21d7ae85ae481d50eb3bac" - integrity sha512-EYkphr18yW1Uh0hmCtk0Zt8zxRW2SstRmaT7lJuy4ZFNFnQfrkPRNGzSMiwfBWTLcdTDoWx0PhKnJbk5x7BzFA== +"@polkadot/api@3.11.1", "@polkadot/api@~3.11.1": + version "3.11.1" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-3.11.1.tgz#854ee9686942a4be736932d61bf7ddb1242a0966" + integrity sha512-VqEh2n13ESLxnTUKujUfZ3Spct+lTycNgrX+IWD7/f05GsMwhCZLYtt708K8nqGFH2OKDl8xzwuGCvRN/05U1Q== + dependencies: + "@babel/runtime" "^7.13.8" + "@polkadot/api-derive" "3.11.1" + "@polkadot/keyring" "^5.9.2" + "@polkadot/metadata" "3.11.1" + "@polkadot/rpc-core" "3.11.1" + "@polkadot/rpc-provider" "3.11.1" + "@polkadot/types" "3.11.1" + "@polkadot/types-known" "3.11.1" + "@polkadot/util" "^5.9.2" + "@polkadot/util-crypto" "^5.9.2" + "@polkadot/x-rxjs" "^5.9.2" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + +"@polkadot/api@4.12.1", "@polkadot/api@^4.12.1": + version "4.12.1" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-4.12.1.tgz#dbdc35f15b8a51e971754feaa714f685eed6f167" + integrity sha512-YHm/CD32/rgNlm3UIspiMYEqouT1zj0qrMYzUJXQK/xfmrXczCxgJFEgaAfi7oIVWNYfb/vma6xT8Swv7EoRFg== dependencies: "@babel/runtime" "^7.14.0" - "@polkadot/api-derive" "4.10.1" - "@polkadot/keyring" "^6.4.1" - "@polkadot/metadata" "4.10.1" - "@polkadot/rpc-core" "4.10.1" - "@polkadot/rpc-provider" "4.10.1" - "@polkadot/types" "4.10.1" - "@polkadot/types-known" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" + "@polkadot/api-derive" "4.12.1" + "@polkadot/keyring" "^6.6.1" + "@polkadot/metadata" "4.12.1" + "@polkadot/rpc-core" "4.12.1" + "@polkadot/rpc-provider" "4.12.1" + "@polkadot/types" "4.12.1" + "@polkadot/types-known" "4.12.1" + "@polkadot/util" "^6.6.1" + "@polkadot/util-crypto" "^6.6.1" + "@polkadot/x-rxjs" "^6.6.1" bn.js "^4.11.9" eventemitter3 "^4.0.7" @@ -1381,6 +1414,15 @@ "@polkadot/util" "^6.4.1" "@zondax/ledger-polkadot" "^0.13.6" +"@polkadot/keyring@^5.9.2": + version "5.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-5.9.2.tgz#f8011a524767bb8f000bec3e26178fc5feffae5b" + integrity sha512-h9AhrzyUmludbmo0ixRFLEyRJvUc7GTl5koSBrG0uv+9Yn0I/7YRgAKn3zKcUVZyvgoLvzZnBFwekGbdFcl9Yg== + dependencies: + "@babel/runtime" "^7.13.8" + "@polkadot/util" "5.9.2" + "@polkadot/util-crypto" "5.9.2" + "@polkadot/keyring@^6.4.1": version "6.4.1" resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-6.4.1.tgz#769c5f0613a27e18726b51e6539fa56f161f6160" @@ -1390,6 +1432,27 @@ "@polkadot/util" "6.4.1" "@polkadot/util-crypto" "6.4.1" +"@polkadot/keyring@^6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-6.6.1.tgz#66fb4fa3079ef79fe39560ccfa9bfffe28321796" + integrity sha512-nN6sI46Xe8l57NAq8E8WS+Z+rHxmeJhlB5Pfyd2/FjjhsC7Y/IOfG4YKJTGzFIsRj5O07BaKYr2Y+jT3XZfAkQ== + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/util" "6.6.1" + "@polkadot/util-crypto" "6.6.1" + +"@polkadot/metadata@3.11.1": + version "3.11.1" + resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-3.11.1.tgz#c3e9645f6f78c8e02e0da695f3718b9d69f450a8" + integrity sha512-Z3KtOTX2kU+vvbRDiGY+qyPpF/4xTpnUipoNGijIGQ/EWWcgrm8sSgPzZQhHCfgIqM+jq3g9GvPMYeQp2Yy3ng== + dependencies: + "@babel/runtime" "^7.13.8" + "@polkadot/types" "3.11.1" + "@polkadot/types-known" "3.11.1" + "@polkadot/util" "^5.9.2" + "@polkadot/util-crypto" "^5.9.2" + bn.js "^4.11.9" + "@polkadot/metadata@4.10.1": version "4.10.1" resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-4.10.1.tgz#f22b76e1fc575c20e44b8ba96949f474505ad5fb" @@ -1402,7 +1465,19 @@ "@polkadot/util-crypto" "^6.4.1" bn.js "^4.11.9" -"@polkadot/networks@5.9.2": +"@polkadot/metadata@4.12.1": + version "4.12.1" + resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-4.12.1.tgz#2f775181886b91b55c8c283a30a605233d00132f" + integrity sha512-BUitrRMlWmkPSUQFOG7Io6TMKQxbWQxfjSm3baeO5T2AxpaRxRZEaX4KYy9W1sZFWBgVzxdidcBImV/Bz5mBTA== + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.12.1" + "@polkadot/types-known" "4.12.1" + "@polkadot/util" "^6.6.1" + "@polkadot/util-crypto" "^6.6.1" + bn.js "^4.11.9" + +"@polkadot/networks@5.9.2", "@polkadot/networks@^5.9.2": version "5.9.2" resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-5.9.2.tgz#c687525b5886c9418f75240afe22b562ed88e2dd" integrity sha512-JQyXJDJTZKQtn8y3HBHWDhiBfijhpiXjVEhY+fKvFcQ82TaKmzhnipYX0EdBoopZbuxpn/BJy6Y1Y/3y85EC+g== @@ -1416,6 +1491,13 @@ dependencies: "@babel/runtime" "^7.14.0" +"@polkadot/networks@6.6.1", "@polkadot/networks@^6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-6.6.1.tgz#ceeb9c720218414b09cea7949e321c38f76c37ff" + integrity sha512-tvQdtH2m9ZBWCLBRLP+dvfyJ/CBqCU7TkJSNQCg9RaKkwLRQ+Vl4HKNbXai9jAGXDQmxLYIkxu89VRNksQrBRw== + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/networks@^6.2.1": version "6.2.1" resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-6.2.1.tgz#9c4d6d34cc6a4a8cd66a00ed13ec01b898f84cf3" @@ -1423,33 +1505,71 @@ dependencies: "@babel/runtime" "^7.13.10" -"@polkadot/rpc-core@4.10.1": - version "4.10.1" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-4.10.1.tgz#531cbb481db5ef02a162039a16958509859431f1" - integrity sha512-gxUQcZWsr4FcBAxwjis/ndZh9kL6lpfoHvJqOoNfZ6aMXCa345qTENtPuuffDF7x2sswCVmYDHpSHgem2YP+5Q== +"@polkadot/rpc-core@3.11.1": + version "3.11.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-3.11.1.tgz#fc57ac6429fd0322ac8421f434868cd244ede86f" + integrity sha512-8KTEZ/c2/TrsTOrrqxxNbyjO5P/033R/yTDgwqL0gwmF+ApnH3vB65YfKqaxn+rBWOMQS0jQhF6KZdtXvRcuYg== + dependencies: + "@babel/runtime" "^7.13.8" + "@polkadot/metadata" "3.11.1" + "@polkadot/rpc-provider" "3.11.1" + "@polkadot/types" "3.11.1" + "@polkadot/util" "^5.9.2" + "@polkadot/x-rxjs" "^5.9.2" + +"@polkadot/rpc-core@4.12.1": + version "4.12.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-4.12.1.tgz#f58422890b66b91e8055f9b16cc5482a0da189d5" + integrity sha512-vauY3nc7KbR0D7MkFR6Et7mOr3nXaHq88X2nwTV7w7sAJeJujs7fxtVb+8CUYVN9Nu0IPSShV1QYhgTv8TEB1g== dependencies: "@babel/runtime" "^7.14.0" - "@polkadot/metadata" "4.10.1" - "@polkadot/rpc-provider" "4.10.1" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" + "@polkadot/metadata" "4.12.1" + "@polkadot/rpc-provider" "4.12.1" + "@polkadot/types" "4.12.1" + "@polkadot/util" "^6.6.1" + "@polkadot/x-rxjs" "^6.6.1" -"@polkadot/rpc-provider@4.10.1": - version "4.10.1" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-4.10.1.tgz#822dbe90a2d0afbf67fcfa2c41ffc2c026d85c10" - integrity sha512-rH2HP5SArnW1UY2OIhCNcEc1IFZYgTEQqPZZ221WN4Icgeohn8wbE1zB4LjzhAvqQpIsdLa/KBeTFVWLwr1ufw== +"@polkadot/rpc-provider@3.11.1": + version "3.11.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-3.11.1.tgz#d4ee901f464211b3b03607615a6db208ef186213" + integrity sha512-5OKh3rAg8l10M+tGLCoxhEoH9uEtK0ehJfOHUmdtwmwIk5aBFZ/ZTeiDkPM+/l84PCzYmp2uzO+YNsyMWUoVLw== + dependencies: + "@babel/runtime" "^7.13.8" + "@polkadot/types" "3.11.1" + "@polkadot/util" "^5.9.2" + "@polkadot/util-crypto" "^5.9.2" + "@polkadot/x-fetch" "^5.9.2" + "@polkadot/x-global" "^5.9.2" + "@polkadot/x-ws" "^5.9.2" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + +"@polkadot/rpc-provider@4.12.1": + version "4.12.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-4.12.1.tgz#cfe22ac590b042f684ce426ba5f603d91ae2e185" + integrity sha512-WF7bTu06305hHROhqgx4/bPoeG4f7gHH2G2nXpRU/l3TfXaR1WpofsEHjwOsWo2d/F3381tai1tmQ3Rt/2HUwA== dependencies: "@babel/runtime" "^7.14.0" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-fetch" "^6.4.1" - "@polkadot/x-global" "^6.4.1" - "@polkadot/x-ws" "^6.4.1" + "@polkadot/types" "4.12.1" + "@polkadot/util" "^6.6.1" + "@polkadot/util-crypto" "^6.6.1" + "@polkadot/x-fetch" "^6.6.1" + "@polkadot/x-global" "^6.6.1" + "@polkadot/x-ws" "^6.6.1" bn.js "^4.11.9" eventemitter3 "^4.0.7" +"@polkadot/types-known@3.11.1": + version "3.11.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-3.11.1.tgz#f695c9155fa54eeed95cea179bb8cb2398726bd3" + integrity sha512-ImAxyCdqblmlXaMlgvuXZ6wzZgOYgE40FgWaYRJpFXRGJLDwtcJcpVI+7m/ns5dJ3WujboEMOHVR1HPpquw8Jw== + dependencies: + "@babel/runtime" "^7.13.8" + "@polkadot/networks" "^5.9.2" + "@polkadot/types" "3.11.1" + "@polkadot/util" "^5.9.2" + bn.js "^4.11.9" + "@polkadot/types-known@4.10.1": version "4.10.1" resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-4.10.1.tgz#3377a6482f116c88f82140e7327c9cdea32b0a1d" @@ -1461,6 +1581,30 @@ "@polkadot/util" "^6.4.1" bn.js "^4.11.9" +"@polkadot/types-known@4.12.1": + version "4.12.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-4.12.1.tgz#743a03c34b74399f8768b61fb5fced7a16faef33" + integrity sha512-6zU8sA5GYja50qPakK06iwknRs/N18TfMswzmku7Zks2iZnEzCD4Yw1eMgzl3E807ScWoB1KpH1VVqcNLeneSA== + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "^6.6.1" + "@polkadot/types" "4.12.1" + "@polkadot/util" "^6.6.1" + bn.js "^4.11.9" + +"@polkadot/types@3.11.1", "@polkadot/types@~3.11.1": + version "3.11.1" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-3.11.1.tgz#c0188390dfda84d746d57f7818ad622ac6b1de8b" + integrity sha512-+BWsmveYVkLFx/csvPmU+NhNFhf+0srAt2d0f+7y663nitc/sng1AcEDPbrbXHSQVyPdvI20Mh4Escl4aR+TLw== + dependencies: + "@babel/runtime" "^7.13.8" + "@polkadot/metadata" "3.11.1" + "@polkadot/util" "^5.9.2" + "@polkadot/util-crypto" "^5.9.2" + "@polkadot/x-rxjs" "^5.9.2" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + "@polkadot/types@4.10.1", "@polkadot/types@^4.10.1": version "4.10.1" resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-4.10.1.tgz#603d273ec5ad83cfce9d3eec05bbd198ae9677f0" @@ -1474,6 +1618,19 @@ "@types/bn.js" "^4.11.6" bn.js "^4.11.9" +"@polkadot/types@4.12.1": + version "4.12.1" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-4.12.1.tgz#dc9ec69d7c0d77c7edc338180f334ac2bac003d5" + integrity sha512-BYzE9xedfV4mOA9g0Ge4DHI4lameQrrVZg3aaN4GvpZzrox1xAzon7vhZqXfe1452avu/ivaoxxnLHze4tI+hA== + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.12.1" + "@polkadot/util" "^6.6.1" + "@polkadot/util-crypto" "^6.6.1" + "@polkadot/x-rxjs" "^6.6.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + "@polkadot/ui-keyring@^0.76.1": version "0.76.1" resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.76.1.tgz#0c8dc595b28cc80ed822ce8313ec6021a4688b7a" @@ -1507,6 +1664,28 @@ "@babel/runtime" "^7.14.0" color "^3.1.3" +"@polkadot/util-crypto@5.9.2", "@polkadot/util-crypto@^5.9.2": + version "5.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-5.9.2.tgz#3858cfffe7732458b4a2b38ece01eaf52a3746c2" + integrity sha512-d8CW2grI3gWi6d/brmcZQWaMPHqQq5z7VcM74/v8D2KZ+hPYL3B0Jn8zGL1vtgMz2qdpWrZdAe89LBC8BvM9bw== + dependencies: + "@babel/runtime" "^7.13.8" + "@polkadot/networks" "5.9.2" + "@polkadot/util" "5.9.2" + "@polkadot/wasm-crypto" "^3.2.4" + "@polkadot/x-randomvalues" "5.9.2" + base-x "^3.0.8" + base64-js "^1.5.1" + blakejs "^1.1.0" + bn.js "^4.11.9" + create-hash "^1.2.0" + elliptic "^6.5.4" + hash.js "^1.1.7" + js-sha3 "^0.8.0" + scryptsy "^2.1.0" + tweetnacl "^1.0.3" + xxhashjs "^0.2.2" + "@polkadot/util-crypto@6.4.1", "@polkadot/util-crypto@^6.4.1": version "6.4.1" resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-6.4.1.tgz#b567d824598bf8f4587364c1d7234bafe805f1c5" @@ -1529,16 +1708,16 @@ tweetnacl "^1.0.3" xxhashjs "^0.2.2" -"@polkadot/util-crypto@^5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-5.9.2.tgz#3858cfffe7732458b4a2b38ece01eaf52a3746c2" - integrity sha512-d8CW2grI3gWi6d/brmcZQWaMPHqQq5z7VcM74/v8D2KZ+hPYL3B0Jn8zGL1vtgMz2qdpWrZdAe89LBC8BvM9bw== +"@polkadot/util-crypto@6.6.1", "@polkadot/util-crypto@^6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-6.6.1.tgz#5065e3cd18b06b804b0ac151d6b00fe853c96c85" + integrity sha512-aD2Nr2Hb92Ev9w9yY5IRdVBlISRMAI3dokXXTpYIC+GVVH0i5bKA1KtO8eOhzh44/eujc7DUNB5wAXdl8rCCOQ== dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/networks" "5.9.2" - "@polkadot/util" "5.9.2" - "@polkadot/wasm-crypto" "^3.2.4" - "@polkadot/x-randomvalues" "5.9.2" + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "6.6.1" + "@polkadot/util" "6.6.1" + "@polkadot/wasm-crypto" "^4.0.2" + "@polkadot/x-randomvalues" "6.6.1" base-x "^3.0.8" base64-js "^1.5.1" blakejs "^1.1.0" @@ -1577,6 +1756,19 @@ camelcase "^5.3.1" ip-regex "^4.3.0" +"@polkadot/util@6.6.1", "@polkadot/util@^6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-6.6.1.tgz#baa29a958dbf5843dbb0fb02d8e80c23cb803f58" + integrity sha512-KTHO3tTcmeByEwJoTjV8JFSTe3cFl6/2NUg9q3D4PkyrOEhzXJSNJ1exyXDWSDVS/udcq0TOGuR+NgYWoVuZvQ== + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-textdecoder" "6.6.1" + "@polkadot/x-textencoder" "6.6.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + camelcase "^5.3.1" + ip-regex "^4.3.0" + "@polkadot/vue-identicon@^0.76.1": version "0.76.1" resolved "https://registry.yarnpkg.com/@polkadot/vue-identicon/-/vue-identicon-0.76.1.tgz#67bb2c0faa38175c6bc307fcd92d2de834238b7a" @@ -1634,17 +1826,27 @@ "@polkadot/wasm-crypto-asmjs" "^4.0.2" "@polkadot/wasm-crypto-wasm" "^4.0.2" -"@polkadot/x-fetch@^6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-6.4.1.tgz#12b9e6d42e71deceff44c324ba41baed879093c1" - integrity sha512-qHMVmi35lDJqp4BFEa09zfk4t9GidOPOvv1Zd2FwDEIi+sSUh4ZoW74Oqatbi1dN9lKzjhLQMxwV+Yyp5M0x4A== +"@polkadot/x-fetch@^5.9.2": + version "5.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-5.9.2.tgz#0ec2b00bd253b896f7e435dfba34ebac914269e1" + integrity sha512-Nx7GfyOmMdqn5EX+wf6PnIwleQX+aGqzdbYhozNLF54IoNFLHLOs6hCYnBlKbmM1WyukMZMjg2YxyZRQWcHKPQ== + dependencies: + "@babel/runtime" "^7.13.8" + "@polkadot/x-global" "5.9.2" + "@types/node-fetch" "^2.5.8" + node-fetch "^2.6.1" + +"@polkadot/x-fetch@^6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-6.6.1.tgz#208cb7c2e6410bbfc8c15a75e9917a8cbda60956" + integrity sha512-C18/iKYwiCMnNHyxvdyy7xRGaIRJuKmpm6Wxrv4iwBXlNAHVWkbjbuHuXKArg2+aL2hcMzulYobeKkDtu4rDDw== dependencies: "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" + "@polkadot/x-global" "6.6.1" "@types/node-fetch" "^2.5.10" node-fetch "^2.6.1" -"@polkadot/x-global@5.9.2": +"@polkadot/x-global@5.9.2", "@polkadot/x-global@^5.9.2": version "5.9.2" resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-5.9.2.tgz#e223d59536d168c7cbc49fc3a2052cbd71bd7256" integrity sha512-wpY6IAOZMGiJQa8YMm7NeTLi9bwnqqVauR+v7HwyrssnGPuYX8heb6BQLOnnnPh/EK0+M8zNtwRBU48ez0/HOg== @@ -1653,7 +1855,7 @@ "@types/node-fetch" "^2.5.8" node-fetch "^2.6.1" -"@polkadot/x-global@6.4.1", "@polkadot/x-global@^6.4.1": +"@polkadot/x-global@6.4.1": version "6.4.1" resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-6.4.1.tgz#546e019e0c7f72a92a2612cacf90e8797c94709f" integrity sha512-u6y2KWAYw/lEyvFBEj17zyxTZAsXDbYdewF9Wr26dpPIhkx5XqCqAJtzX8/7tOhJEn7C4tRJz2nXpboL3pEStA== @@ -1662,6 +1864,15 @@ "@types/node-fetch" "^2.5.10" node-fetch "^2.6.1" +"@polkadot/x-global@6.6.1", "@polkadot/x-global@^6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-6.6.1.tgz#25539a429f16ad786948f5160f3d3cbe05ec00f3" + integrity sha512-3vM+48JMhzIAKr+AM7AU8Jq1Ok3cKHt8BoLZthrJuWJuzpwS6zWVMj0dpOH7bnk3JxM6D5Nwpwci1yxgyz2teA== + dependencies: + "@babel/runtime" "^7.14.0" + "@types/node-fetch" "^2.5.10" + node-fetch "^2.6.1" + "@polkadot/x-randomvalues@5.9.2": version "5.9.2" resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-5.9.2.tgz#563a76550f94107ce5a37c462ed067dc040626b1" @@ -1678,6 +1889,22 @@ "@babel/runtime" "^7.14.0" "@polkadot/x-global" "6.4.1" +"@polkadot/x-randomvalues@6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-6.6.1.tgz#7fd56f664a4f5a37feab27f9d4570814038778ce" + integrity sha512-CT6fhPVqwxTjhv9cohexIMFgSWdBEIXG8QwY1jMgj0YRKj+4UwnEGRwJksPfOPsV4VU0+tknDeMbhu+eqjid3w== + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.6.1" + +"@polkadot/x-rxjs@^5.9.2": + version "5.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-rxjs/-/x-rxjs-5.9.2.tgz#925b7c3325678b137ca30af6a726b22c5e8f9125" + integrity sha512-cuF4schclspOfAqEPvbcA3aQ9d3TBy2ORZ8YehxD0ZSHWJNhefHDIUDgS5T3NtPhSKgcEmSlI5TfVfgGFxgVMg== + dependencies: + "@babel/runtime" "^7.13.8" + rxjs "^6.6.6" + "@polkadot/x-rxjs@^6.4.1": version "6.4.1" resolved "https://registry.yarnpkg.com/@polkadot/x-rxjs/-/x-rxjs-6.4.1.tgz#c6e8cef8dc3f20b4c7468bd6976d843947da1f15" @@ -1686,6 +1913,14 @@ "@babel/runtime" "^7.14.0" rxjs "^6.6.7" +"@polkadot/x-rxjs@^6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-rxjs/-/x-rxjs-6.6.1.tgz#660d5c1becb74637ff4cec54788e17b11cc5900c" + integrity sha512-SqNrQHgzGgjU6gZnRGUzlCaF/3raeb6eGFTX9FtF5z4YEqtN8qflEs/Av5mok/Qxm1oboqHDZGyNE6b3v5GIvQ== + dependencies: + "@babel/runtime" "^7.14.0" + rxjs "^6.6.7" + "@polkadot/x-textdecoder@5.9.2": version "5.9.2" resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-5.9.2.tgz#2e69922acc426f91adc2629fea362e41c9035f25" @@ -1702,6 +1937,14 @@ "@babel/runtime" "^7.14.0" "@polkadot/x-global" "6.4.1" +"@polkadot/x-textdecoder@6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-6.6.1.tgz#2f005df0e21d3d423395659008a95638e445ea27" + integrity sha512-f6ZjD76RmUqi87ioXE8b1kwy3I7L9pDE/9xAeGyucnYQELUtCvz/4Z8NjYJn05aeq1kHg11Fr0p1dHSArTZHUw== + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.6.1" + "@polkadot/x-textencoder@5.9.2": version "5.9.2" resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-5.9.2.tgz#67362e64bacfe6ff4eec73bf596873a2f9d9f36d" @@ -1718,13 +1961,31 @@ "@babel/runtime" "^7.14.0" "@polkadot/x-global" "6.4.1" -"@polkadot/x-ws@^6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-6.4.1.tgz#e03295907a50f74ec220d9dc9aa6d45370f67554" - integrity sha512-DXEk9BUnxm/XW9xZt0+5EFA1X/TTwZgXr9kFJCACPepLZNrjq4EbbLjIj0n+hre96gOMS1fGKZTQFjUDuoVW0g== +"@polkadot/x-textencoder@6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-6.6.1.tgz#d0678aa001af66561fc1913e76c9704567e3df3d" + integrity sha512-HJt5YpvlHpVHP/8a4+FI2oRRQLK7x/j8RNK/e5vfHE1a3jHcrNm7FbS95KwRlaObPgtFIwR7EIkxXq8PHUl8yA== dependencies: "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" + "@polkadot/x-global" "6.6.1" + +"@polkadot/x-ws@^5.9.2": + version "5.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-5.9.2.tgz#294f226be5ef07363426b8cf2729cba12d9637e5" + integrity sha512-6A/cteC0B3hm64/xG6DNG8qGsHAXJgAy9wjcB38qnoJGYl12hysIFjPeHD+V0W/LOl9payW6kpZzhisLlVOZpQ== + dependencies: + "@babel/runtime" "^7.13.8" + "@polkadot/x-global" "5.9.2" + "@types/websocket" "^1.0.1" + websocket "^1.0.33" + +"@polkadot/x-ws@^6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-6.6.1.tgz#9af80746f130b00b9f1e57354ce4fd2ae212161f" + integrity sha512-KLdDo4wHE3tiKbAoCPswX/a/SjfegvBCsgXhiwVwyvMFqd37Y7/LI9A0P+djlIYpkiPCjQpWDKNLA6r7kBdN8Q== + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/x-global" "6.6.1" "@types/websocket" "^1.0.2" websocket "^1.0.34" @@ -1733,6 +1994,22 @@ resolved "https://registry.yarnpkg.com/@repeaterjs/repeater/-/repeater-3.0.4.tgz#a04d63f4d1bf5540a41b01a921c9a7fddc3bd1ca" integrity sha512-AW8PKd6iX3vAZ0vA43nOUOnbq/X5ihgU+mSXXqunMkeQADGiqw/PY0JNeYtD5sr0PAy51YPgAPbDoeapv9r8WA== +"@sindresorhus/slugify@^1.1.0": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@sindresorhus/slugify/-/slugify-1.1.2.tgz#c2c0129298b8caace2d9156176fe244d0e83156c" + integrity sha512-V9nR/W0Xd9TSGXpZ4iFUcFGhuOJtZX82Fzxj1YISlbSgKvIiNa7eLEZrT0vAraPOt++KHauIVNYgGRgjc13dXA== + dependencies: + "@sindresorhus/transliterate" "^0.1.1" + escape-string-regexp "^4.0.0" + +"@sindresorhus/transliterate@^0.1.1": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@sindresorhus/transliterate/-/transliterate-0.1.2.tgz#ffce368271d153550e87de81486004f2637425af" + integrity sha512-5/kmIOY9FF32nicXH+5yLNTX4NJ4atl7jRgqAJuIn/iyDFXBktOKDxCvyGE/EzmF4ngSUvjXxQUQlQiZ5lfw+w== + dependencies: + escape-string-regexp "^2.0.0" + lodash.deburr "^4.1.0" + "@soda/friendly-errors-webpack-plugin@^1.7.1": version "1.8.0" resolved "https://registry.yarnpkg.com/@soda/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.8.0.tgz#84751d82a93019d5c92c0cf0e45ac59087cd2240" @@ -1748,6 +2025,41 @@ resolved "https://registry.yarnpkg.com/@soda/get-current-script/-/get-current-script-1.0.2.tgz#a53515db25d8038374381b73af20bb4f2e508d87" integrity sha512-T7VNNlYVM1SgQ+VsMYhnDkcGmWhQdL0bDyGm5TlQ3GBXnJscEClUUOKduWTmm2zCnvNLC1hc3JpuXjs/nFOc5w== +"@subsocial/api@^0.5.3": + version "0.5.3" + resolved "https://registry.yarnpkg.com/@subsocial/api/-/api-0.5.3.tgz#acb851be9eb19e8aa5da44f98cd284422f8b4fc8" + integrity sha512-1D0ANa6kFyvWEZFNzP7WOGn60YZDrfcU+2sKuHFRUTpqptabBp8GzfSuy9VR6g6WU8pAq0Pie1DN8W4KPHlWtw== + dependencies: + "@polkadot/api" "~3.11.1" + "@subsocial/types" "0.5.1-sub-2.0.1" + "@subsocial/utils" "^0.4.39" + axios "^0.21.1" + +"@subsocial/types@0.5.1-sub-2.0.1": + version "0.5.1-sub-2.0.1" + resolved "https://registry.yarnpkg.com/@subsocial/types/-/types-0.5.1-sub-2.0.1.tgz#a32fc2c2e5eb94cdde867cd78a94070803fb3aed" + integrity sha512-cw8wcp7tQfhLYICSpQFiFZyVi4KcLtQLG8mektPJ+MyqY+TazpffZPgNNtixbOvxESVBfepMvoYN2lNPa4VCLg== + dependencies: + "@polkadot/types" "~3.11.1" + "@subsocial/utils" "^0.4.39" + cids "^0.7.1" + +"@subsocial/utils@^0.4.39": + version "0.4.39" + resolved "https://registry.yarnpkg.com/@subsocial/utils/-/utils-0.4.39.tgz#0b069a0e55950ffef6ceb002aea1cdec96d5f133" + integrity sha512-pvD5f5r0W8dGVNCmEO2LV4vWY3dvThgABMvzHmtIAXHAo7aixyz5vSc+t0x8kDRVEEAYL09URaL32bVKnAyaxw== + dependencies: + "@sindresorhus/slugify" "^1.1.0" + bn.js "^5.1.1" + chalk "^3.0.0" + dotenv "^8.0.0" + lodash.isempty "^4.4.0" + lodash.truncate "^4.4.2" + loglevel "^1.7.0" + loglevel-plugin-prefix "^0.8.4" + remark "^13.0.0" + strip-markdown "^4.0.0" + "@textile/buckets-grpc@2.6.5": version "2.6.5" resolved "https://registry.yarnpkg.com/@textile/buckets-grpc/-/buckets-grpc-2.6.5.tgz#42ed152c19d65766c1da5046cd1532f6eeb873cb" @@ -2069,6 +2381,13 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad" integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA== +"@types/mdast@^3.0.0": + version "3.0.3" + resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-3.0.3.tgz#2d7d671b1cd1ea3deb306ea75036c2a0407d2deb" + integrity sha512-SXPBMnFVQg1s00dlMCc/jCdvPqdE4mXaMMCeRlxLDmTAEoegHT53xKtkDnzDTOcmMHUfcjyf36/YYZ6SxRdnsw== + dependencies: + "@types/unist" "*" + "@types/mime@^1": version "1.3.2" resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.2.tgz#93e25bf9ee75fe0fd80b594bc4feb0e862111b5a" @@ -2169,6 +2488,11 @@ dependencies: source-map "^0.6.1" +"@types/unist@*", "@types/unist@^2.0.0", "@types/unist@^2.0.2": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.3.tgz#9c088679876f374eb5983f150d4787aa6fb32d7e" + integrity sha512-FvUupuM3rlRsRtCN+fDudtmytGO6iHJuuRKS1Ss0pG5z8oX0diNEw94UEL7hgDbpN94rgaK5R7sWm6RrSkZuAQ== + "@types/webpack-dev-server@^3.11.0": version "3.11.3" resolved "https://registry.yarnpkg.com/@types/webpack-dev-server/-/webpack-dev-server-3.11.3.tgz#237e26d87651cf95490dcd356f568c8c84016177" @@ -2206,7 +2530,7 @@ "@types/webpack-sources" "*" source-map "^0.6.0" -"@types/websocket@^1.0.2": +"@types/websocket@^1.0.1", "@types/websocket@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@types/websocket/-/websocket-1.0.2.tgz#d2855c6a312b7da73ed16ba6781815bf30c6187a" integrity sha512-B5m9aq7cbbD/5/jThEr33nUY8WEfVi6A2YKCTOvw5Ldy7mtsOkqRvGjnzy6g7iMMDsgu7xREuCzqATLDLQVKcQ== @@ -2225,13 +2549,13 @@ resolved "https://registry.yarnpkg.com/@types/zen-observable/-/zen-observable-0.8.2.tgz#808c9fa7e4517274ed555fa158f2de4b4f468e71" integrity sha512-HrCIVMLjE1MOozVoD86622S7aunluLb2PJdPfb3nYiEtohm8mIB/vyv0Fd37AdeMFrTUQXEunw78YloMA3Qilg== -"@vue-polkadot/vue-api@^0.0.32": - version "0.0.32" - resolved "https://registry.yarnpkg.com/@vue-polkadot/vue-api/-/vue-api-0.0.32.tgz#bd855cc1448ea80bdeacc793aaa8ff713731fb92" - integrity sha512-/S4s4yFLDDAGSk206l46k6YYHsnmrBa6UjjABK2GTQ6K2+Bqg8S8iqGEq4dpQuqm54j3n/g4YPMevvV5BfLLGA== +"@vue-polkadot/vue-api@^0.0.33": + version "0.0.33" + resolved "https://registry.yarnpkg.com/@vue-polkadot/vue-api/-/vue-api-0.0.33.tgz#aa3af039c63cfd91dfb1a5effc7852dbecd895b5" + integrity sha512-Z90DX9S1JheYswoApztSLQxobMEU8FKRpm0qMVypWp+eY5+r9tkje4vKz7YASI27Uj9jKg0G7YeQ4uk4qcKRFw== dependencies: - "@edgeware/node-types" "^3.3.4" - "@polkadot/api" "^4.10.1" + "@edgeware/node-types" "^3.5.1-erup-4" + "@polkadot/api" "^4.12.1" "@vue-polkadot/vue-settings@^0.0.17": version "0.0.17" @@ -3225,6 +3549,11 @@ babylon@^6.18.0: resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ== +bail@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/bail/-/bail-1.0.5.tgz#b6fa133404a392cbc1f8c4bf63f5953351e7a776" + integrity sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ== + balanced-match@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" @@ -3575,7 +3904,7 @@ buffer@^4.3.0: ieee754 "^1.1.4" isarray "^1.0.0" -buffer@^5.4.3, buffer@^5.5.0: +buffer@^5.4.3, buffer@^5.5.0, buffer@^5.6.0: version "5.7.1" resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== @@ -3789,6 +4118,14 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.3.0, chalk@^2.4.1, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" +chalk@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" + integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + chalk@^4.0.0, chalk@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" @@ -3797,6 +4134,21 @@ chalk@^4.0.0, chalk@^4.1.0: ansi-styles "^4.1.0" supports-color "^7.1.0" +character-entities-legacy@^1.0.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz#94bc1845dce70a5bb9d2ecc748725661293d8fc1" + integrity sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA== + +character-entities@^1.0.0: + version "1.2.4" + resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-1.2.4.tgz#e12c3939b7eaf4e5b15e7ad4c5e28e1d48c5b16b" + integrity sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw== + +character-reference-invalid@^1.0.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz#083329cda0eae272ab3dbbf37e9a382c13af1560" + integrity sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg== + check-types@^8.0.3: version "8.0.3" resolved "https://registry.yarnpkg.com/check-types/-/check-types-8.0.3.tgz#3356cca19c889544f2d7a95ed49ce508a0ecf552" @@ -3851,6 +4203,17 @@ ci-info@^1.5.0: resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.6.0.tgz#2ca20dbb9ceb32d4524a683303313f0304b1e497" integrity sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A== +cids@^0.7.1: + version "0.7.5" + resolved "https://registry.yarnpkg.com/cids/-/cids-0.7.5.tgz#60a08138a99bfb69b6be4ceb63bfef7a396b28b2" + integrity sha512-zT7mPeghoWAu+ppn8+BS1tQ5qGmbMfB4AregnQjA/qHY3GC1m1ptI9GkWNlgeu38r7CuRdXB47uY2XgAYt6QVA== + dependencies: + buffer "^5.5.0" + class-is "^1.1.0" + multibase "~0.6.0" + multicodec "^1.0.0" + multihashes "~0.4.15" + cids@^1.0.0, cids@^1.1.4: version "1.1.6" resolved "https://registry.yarnpkg.com/cids/-/cids-1.1.6.tgz#ac7aea7dbcabaa64ca242b5d970d596a5c34d006" @@ -4836,7 +5199,7 @@ debug@^3.1.1, debug@^3.2.6: dependencies: ms "^2.1.1" -debug@^4.1.0, debug@^4.1.1, debug@^4.2.0: +debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.2.0: version "4.3.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.1.tgz#f0d229c505e0c6d8c49ac553d1b13dc183f6b2ee" integrity sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== @@ -5116,6 +5479,11 @@ dotenv-expand@^5.1.0: resolved "https://registry.yarnpkg.com/dotenv-expand/-/dotenv-expand-5.1.0.tgz#3fbaf020bfd794884072ea26b1e9791d45a629f0" integrity sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA== +dotenv@^8.0.0: + version "8.6.0" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.6.0.tgz#061af664d19f7f4d8fc6e4ff9b584ce237adcb8b" + integrity sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g== + dotenv@^8.2.0: version "8.2.0" resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a" @@ -5358,6 +5726,16 @@ escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= +escape-string-regexp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" + integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== + +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + eslint-scope@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848" @@ -5583,7 +5961,7 @@ extend-shallow@^3.0.0, extend-shallow@^3.0.2: assign-symbols "^1.0.0" is-extendable "^1.0.1" -extend@~3.0.2: +extend@^3.0.0, extend@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== @@ -6720,6 +7098,19 @@ is-accessor-descriptor@^1.0.0: dependencies: kind-of "^6.0.0" +is-alphabetical@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-1.0.4.tgz#9e7d6b94916be22153745d184c298cbf986a686d" + integrity sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg== + +is-alphanumerical@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz#7eb9a2431f855f6b1ef1a78e326df515696c4dbf" + integrity sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A== + dependencies: + is-alphabetical "^1.0.0" + is-decimal "^1.0.0" + is-arguments@^1.0.4: version "1.1.0" resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.0.tgz#62353031dfbee07ceb34656a6bde59efecae8dd9" @@ -6768,6 +7159,11 @@ is-buffer@^1.1.5: resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== +is-buffer@^2.0.0: + version "2.0.5" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191" + integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== + is-callable@^1.1.4, is-callable@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.3.tgz#8b1e0500b73a1d76c70487636f368e519de8db8e" @@ -6818,6 +7214,11 @@ is-date-object@^1.0.1: resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz#bda736f2cd8fd06d32844e7743bfa7494c3bfd7e" integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== +is-decimal@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.4.tgz#65a3a5958a1c5b63a706e1b333d7cd9f630d3fa5" + integrity sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw== + is-descriptor@^0.1.0: version "0.1.6" resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" @@ -6899,6 +7300,11 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1: dependencies: is-extglob "^2.1.1" +is-hexadecimal@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz#cc35c97588da4bd49a8eedd6bc4082d44dcb23a7" + integrity sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw== + is-ip@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/is-ip/-/is-ip-3.1.0.tgz#2ae5ddfafaf05cb8008a62093cf29734f657c5d8" @@ -6962,6 +7368,11 @@ is-plain-obj@^1.0.0: resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4= +is-plain-obj@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" + integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== + is-plain-obj@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-3.0.0.tgz#af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7" @@ -7427,11 +7838,21 @@ lodash.debounce@^4.0.8: resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= +lodash.deburr@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/lodash.deburr/-/lodash.deburr-4.1.0.tgz#ddb1bbb3ef07458c0177ba07de14422cb033ff9b" + integrity sha1-3bG7s+8HRYwBd7oH3hRCLLAz/5s= + lodash.defaultsdeep@^4.6.1: version "4.6.1" resolved "https://registry.yarnpkg.com/lodash.defaultsdeep/-/lodash.defaultsdeep-4.6.1.tgz#512e9bd721d272d94e3d3a63653fa17516741ca6" integrity sha512-3j8wdDzYuWO3lM3Reg03MuQR957t287Rpcxp1njpEa8oDrikb+FwGdW3n+FELh/A6qib6yPit0j/pv9G/yeAqA== +lodash.isempty@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.isempty/-/lodash.isempty-4.4.0.tgz#6f86cbedd8be4ec987be9aaf33c9684db1b31e7e" + integrity sha1-b4bL7di+TsmHvpqvM8loTbGzHn4= + lodash.isequal@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" @@ -7487,6 +7908,11 @@ lodash.transform@^4.6.0: resolved "https://registry.yarnpkg.com/lodash.transform/-/lodash.transform-4.6.0.tgz#12306422f63324aed8483d3f38332b5f670547a0" integrity sha1-EjBkIvYzJK7YSD0/ODMrX2cFR6A= +lodash.truncate@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" + integrity sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM= + lodash.uniq@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" @@ -7514,11 +7940,21 @@ log-symbols@^2.2.0: dependencies: chalk "^2.0.1" +loglevel-plugin-prefix@^0.8.4: + version "0.8.4" + resolved "https://registry.yarnpkg.com/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.8.4.tgz#2fe0e05f1a820317d98d8c123e634c1bd84ff644" + integrity sha512-WpG9CcFAOjz/FtNht+QJeGpvVl/cdR6P0z6OcXSkr8wFJOsV2GRj2j10JLfjuA4aYkcKCNIEqRGCyTife9R8/g== + loglevel@^1.6.6, loglevel@^1.6.8, loglevel@^1.7.0: version "1.7.1" resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.7.1.tgz#005fde2f5e6e47068f935ff28573e125ef72f197" integrity sha512-Hesni4s5UkWkwCGJMQGAh71PaLUmKFM60dHvq0zi/vDhhrzuk+4GgNbTXJ12YYQJn6ZKBDNIjYcuQGKudvqrIw== +longest-streak@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-2.0.4.tgz#b8599957da5b5dab64dee3fe316fa774597d90e4" + integrity sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg== + loose-envify@^1.0.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" @@ -7725,6 +8161,34 @@ md5.js@^1.3.4: inherits "^2.0.1" safe-buffer "^5.1.2" +mdast-util-from-markdown@^0.8.0: + version "0.8.5" + resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-0.8.5.tgz#d1ef2ca42bc377ecb0463a987910dae89bd9a28c" + integrity sha512-2hkTXtYYnr+NubD/g6KGBS/0mFmBcifAsI0yIWRiRo0PjVs6SSOSOdtzbp6kSGnShDN6G5aWZpKQ2lWRy27mWQ== + dependencies: + "@types/mdast" "^3.0.0" + mdast-util-to-string "^2.0.0" + micromark "~2.11.0" + parse-entities "^2.0.0" + unist-util-stringify-position "^2.0.0" + +mdast-util-to-markdown@^0.6.0: + version "0.6.5" + resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-0.6.5.tgz#b33f67ca820d69e6cc527a93d4039249b504bebe" + integrity sha512-XeV9sDE7ZlOQvs45C9UKMtfTcctcaj/pGwH8YLbMHoMOXNNCn2LsqVQOqrF1+/NU8lKDAqozme9SCXWyo9oAcQ== + dependencies: + "@types/unist" "^2.0.0" + longest-streak "^2.0.0" + mdast-util-to-string "^2.0.0" + parse-entities "^2.0.0" + repeat-string "^1.0.0" + zwitch "^1.0.0" + +mdast-util-to-string@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz#b8cfe6a713e1091cb5b728fc48885a4767f8b97b" + integrity sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w== + mdn-data@2.0.14: version "2.0.14" resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50" @@ -7817,6 +8281,14 @@ microevent.ts@~0.1.1: resolved "https://registry.yarnpkg.com/microevent.ts/-/microevent.ts-0.1.1.tgz#70b09b83f43df5172d0205a63025bce0f7357fa0" integrity sha512-jo1OfR4TaEwd5HOrt5+tAZ9mqT4jmpNAusXtyfNzqVm9uiSYFZlKM1wYL4oU7azZW/PxQW53wM0S6OR1JHNa2g== +micromark@~2.11.0: + version "2.11.4" + resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.4.tgz#d13436138eea826383e822449c9a5c50ee44665a" + integrity sha512-+WoovN/ppKolQOFIAajxi7Lu9kInbPxFuTBVEavFcL8eAfVstoc5MocPmqBeAdBOJV00uaVjegzH4+MA0DN/uA== + dependencies: + debug "^4.0.0" + parse-entities "^2.0.0" + micromatch@^3.1.10, micromatch@^3.1.4: version "3.1.10" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" @@ -8059,6 +8531,14 @@ multiaddr@^8.1.2: uint8arrays "^1.1.0" varint "^5.0.0" +multibase@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/multibase/-/multibase-0.7.0.tgz#1adfc1c50abe05eefeb5091ac0c2728d6b84581b" + integrity sha512-TW8q03O0f6PNFTQDvh3xxH03c8CjGaaYrjkl9UQPG6rz53TQzzxJVCIWVjzcbN/Q5Y53Zd0IBQBMVktVgNx4Fg== + dependencies: + base-x "^3.0.8" + buffer "^5.5.0" + multibase@^3.0.0, multibase@^3.1.0: version "3.1.2" resolved "https://registry.yarnpkg.com/multibase/-/multibase-3.1.2.tgz#59314e1e2c35d018db38e4c20bb79026827f0f2f" @@ -8074,6 +8554,14 @@ multibase@^4.0.1: dependencies: "@multiformats/base-x" "^4.0.1" +multibase@~0.6.0: + version "0.6.1" + resolved "https://registry.yarnpkg.com/multibase/-/multibase-0.6.1.tgz#b76df6298536cc17b9f6a6db53ec88f85f8cc12b" + integrity sha512-pFfAwyTjbbQgNc3G7D48JkJxWtoJoBMaR4xQUOuB8RnCgRqaYmWNFeJTTvrJ2w51bjLq2zTby6Rqj9TQ9elSUw== + dependencies: + base-x "^3.0.8" + buffer "^5.5.0" + multicast-dns-service-types@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz#899f11d9686e5e05cb91b35d5f0e63b773cfc901" @@ -8087,6 +8575,14 @@ multicast-dns@^6.0.1: dns-packet "^1.3.1" thunky "^1.0.2" +multicodec@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/multicodec/-/multicodec-1.0.4.tgz#46ac064657c40380c28367c90304d8ed175a714f" + integrity sha512-NDd7FeS3QamVtbgfvu5h7fd1IlbaC4EQ0/pgU4zqE2vdHCmBGsUa0TiM8/TdSeG6BMPC92OOCf8F1ocE/Wkrrg== + dependencies: + buffer "^5.6.0" + varint "^5.0.0" + multicodec@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/multicodec/-/multicodec-3.0.1.tgz#94e043847ee11fcce92487609ac9010429a95e31" @@ -8113,6 +8609,15 @@ multihashes@^4.0.1: uint8arrays "^2.1.3" varint "^5.0.2" +multihashes@~0.4.15: + version "0.4.21" + resolved "https://registry.yarnpkg.com/multihashes/-/multihashes-0.4.21.tgz#dc02d525579f334a7909ade8a122dabb58ccfcb5" + integrity sha512-uVSvmeCWf36pU2nB4/1kzYZjsXD9vofZKpgudqkceYY5g2aZZXJ5r9lxuzoRLl1OAp28XljXsEJ/X/85ZsKmKw== + dependencies: + buffer "^5.5.0" + multibase "^0.7.0" + varint "^5.0.0" + mz@^2.4.0: version "2.7.0" resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32" @@ -8677,6 +9182,18 @@ parse-asn1@^5.0.0, parse-asn1@^5.1.5: pbkdf2 "^3.0.3" safe-buffer "^5.1.1" +parse-entities@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-2.0.0.tgz#53c6eb5b9314a1f4ec99fa0fdf7ce01ecda0cbe8" + integrity sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ== + dependencies: + character-entities "^1.0.0" + character-entities-legacy "^1.0.0" + character-reference-invalid "^1.0.0" + is-alphanumerical "^1.0.0" + is-decimal "^1.0.0" + is-hexadecimal "^1.0.0" + parse-json@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" @@ -9588,6 +10105,29 @@ relateurl@0.2.x, relateurl@^0.2.7: resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" integrity sha1-VNvzd+UUQKypCkzSdGANP/LYiKk= +remark-parse@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-9.0.0.tgz#4d20a299665880e4f4af5d90b7c7b8a935853640" + integrity sha512-geKatMwSzEXKHuzBNU1z676sGcDcFoChMK38TgdHJNAYfFtsfHDQG7MoJAjs6sgYMqyLduCYWDIWZIxiPeafEw== + dependencies: + mdast-util-from-markdown "^0.8.0" + +remark-stringify@^9.0.0: + version "9.0.1" + resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-9.0.1.tgz#576d06e910548b0a7191a71f27b33f1218862894" + integrity sha512-mWmNg3ZtESvZS8fv5PTvaPckdL4iNlCHTt8/e/8oN08nArHRHjNZMKzA/YW3+p7/lYqIw4nx1XsjCBo/AxNChg== + dependencies: + mdast-util-to-markdown "^0.6.0" + +remark@^13.0.0: + version "13.0.0" + resolved "https://registry.yarnpkg.com/remark/-/remark-13.0.0.tgz#d15d9bf71a402f40287ebe36067b66d54868e425" + integrity sha512-HDz1+IKGtOyWN+QgBiAT0kn+2s6ovOxHyPAFGKVE81VSzJ+mq7RwHFledEvB5F1p4iJvOah/LOKdFuzvRnNLCA== + dependencies: + remark-parse "^9.0.0" + remark-stringify "^9.0.0" + unified "^9.1.0" + remove-trailing-separator@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" @@ -9609,7 +10149,7 @@ repeat-element@^1.1.2: resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.4.tgz#be681520847ab58c7568ac75fbfad28ed42d39e9" integrity sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ== -repeat-string@^1.6.1: +repeat-string@^1.0.0, repeat-string@^1.6.1: version "1.6.1" resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= @@ -9780,7 +10320,7 @@ rw@1: resolved "https://registry.yarnpkg.com/rw/-/rw-1.3.3.tgz#3f862dfa91ab766b14885ef4d01124bfda074fb4" integrity sha1-P4Yt+pGrdmsUiF700BEkv9oHT7Q= -rxjs@6, rxjs@^6.6.7: +rxjs@6, rxjs@^6.6.6, rxjs@^6.6.7: version "6.6.7" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== @@ -10479,6 +11019,11 @@ strip-json-comments@~2.0.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= +strip-markdown@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-markdown/-/strip-markdown-4.0.0.tgz#1f48aeb5ce81b646487d9f8fbdc18f8bf1416ba2" + integrity sha512-jwoS5zwHNFjergQjg4RFzmdS4n5WOd5DXDIwRY0jye9ALYMscLWfwZVBMt4P/va5aRmm7Dlj6O4NjMuaD7609Q== + stylehacks@^4.0.0: version "4.0.3" resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-4.0.3.tgz#6718fcaf4d1e07d8a1318690881e8d96726a71d5" @@ -10759,6 +11304,11 @@ tough-cookie@^2.3.3, tough-cookie@~2.5.0: psl "^1.1.28" punycode "^2.1.1" +trough@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.5.tgz#b8b639cefad7d0bb2abd37d433ff8293efa5f406" + integrity sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA== + try-catch@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/try-catch/-/try-catch-2.0.1.tgz#a35d354187c422f291a0bcfd9eb77e3a4f90c1e5" @@ -10990,6 +11540,18 @@ unicode-property-aliases-ecmascript@^1.0.4: resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz#dd57a99f6207bedff4628abefb94c50db941c8f4" integrity sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg== +unified@^9.1.0: + version "9.2.1" + resolved "https://registry.yarnpkg.com/unified/-/unified-9.2.1.tgz#ae18d5674c114021bfdbdf73865ca60f410215a3" + integrity sha512-juWjuI8Z4xFg8pJbnEZ41b5xjGUWGHqXALmBZ3FC3WX0PIx1CZBIIJ6mXbYMcf6Yw4Fi0rFUTA1cdz/BglbOhA== + dependencies: + bail "^1.0.0" + extend "^3.0.0" + is-buffer "^2.0.0" + is-plain-obj "^2.0.0" + trough "^1.0.0" + vfile "^4.0.0" + union-value@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" @@ -11024,6 +11586,13 @@ unique-slug@^2.0.0: dependencies: imurmurhash "^0.1.4" +unist-util-stringify-position@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz#cce3bfa1cdf85ba7375d1d5b17bdc4cada9bd9da" + integrity sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g== + dependencies: + "@types/unist" "^2.0.2" + universalify@^0.1.0: version "0.1.2" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" @@ -11242,6 +11811,24 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" +vfile-message@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-2.0.4.tgz#5b43b88171d409eae58477d13f23dd41d52c371a" + integrity sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ== + dependencies: + "@types/unist" "^2.0.0" + unist-util-stringify-position "^2.0.0" + +vfile@^4.0.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/vfile/-/vfile-4.2.1.tgz#03f1dce28fc625c625bc6514350fbdb00fa9e624" + integrity sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA== + dependencies: + "@types/unist" "^2.0.0" + is-buffer "^2.0.0" + unist-util-stringify-position "^2.0.0" + vfile-message "^2.0.0" + vm-browserify@^1.0.1: version "1.1.2" resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0" @@ -11605,7 +12192,7 @@ websocket-extensions@>=0.1.1: resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42" integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg== -websocket@^1.0.34: +websocket@^1.0.33, websocket@^1.0.34: version "1.0.34" resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" integrity sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ== @@ -11995,3 +12582,8 @@ zrender@5.0.4: integrity sha512-DJpy0yrHYY5CuH6vhb9IINWbjvBUe/56J8aH86Jb7O8rRPAYZ3M2E469Qf5B3EOIfM3o3aUrO5edRQfLJ+l1Qw== dependencies: tslib "2.0.3" + +zwitch@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/zwitch/-/zwitch-1.0.5.tgz#d11d7381ffed16b742f6af7b3f223d5cd9fe9920" + integrity sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw== From edac4d9813f0137368953e2d6f0d16c4cfb5a41c Mon Sep 17 00:00:00 2001 From: Viki Val Date: Sat, 5 Jun 2021 21:52:23 +0200 Subject: [PATCH 02/40] fixed packages --- dashboard/package.json | 4 +- dashboard/yarn.lock | 321 ++++++++++++++++++----------------------- 2 files changed, 145 insertions(+), 180 deletions(-) diff --git a/dashboard/package.json b/dashboard/package.json index a29adcc4f4..21fbd83e10 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -27,7 +27,9 @@ "@polkadot/util": "^6.4.1", "@polkadot/util-crypto": "^6.4.1", "@polkadot/vue-identicon": "^0.76.1", - "@subsocial/api": "^0.5.3", + "@subsocial/api": "0.5.2", + "@subsocial/types": "0.5.2", + "@subsocial/utils": "^0.4.39", "@textile/hub": "^6.1.2", "@types/file-saver": "^2.0.2", "@vue-polkadot/vue-api": "^0.0.33", diff --git a/dashboard/yarn.lock b/dashboard/yarn.lock index d55287b3a1..8e0ddecde6 100644 --- a/dashboard/yarn.lock +++ b/dashboard/yarn.lock @@ -1311,20 +1311,6 @@ "@nodelib/fs.scandir" "2.1.4" fastq "^1.6.0" -"@polkadot/api-derive@3.11.1": - version "3.11.1" - resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-3.11.1.tgz#3f0d6804ca2ade80da100314d576534490db5727" - integrity sha512-/v/fNSivgucQrDJvwLU17u8iZ0oQipQzgpofCJGQhRv8OaSv/E9g5EXcHJ1ri/Ozevgu5cPmGs96lLkQaPieAw== - dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/api" "3.11.1" - "@polkadot/rpc-core" "3.11.1" - "@polkadot/types" "3.11.1" - "@polkadot/util" "^5.9.2" - "@polkadot/util-crypto" "^5.9.2" - "@polkadot/x-rxjs" "^5.9.2" - bn.js "^4.11.9" - "@polkadot/api-derive@4.12.1": version "4.12.1" resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-4.12.1.tgz#463a9e83757a7a693d6a6fb21d5ada659b2d731b" @@ -1339,24 +1325,19 @@ "@polkadot/x-rxjs" "^6.6.1" bn.js "^4.11.9" -"@polkadot/api@3.11.1", "@polkadot/api@~3.11.1": - version "3.11.1" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-3.11.1.tgz#854ee9686942a4be736932d61bf7ddb1242a0966" - integrity sha512-VqEh2n13ESLxnTUKujUfZ3Spct+lTycNgrX+IWD7/f05GsMwhCZLYtt708K8nqGFH2OKDl8xzwuGCvRN/05U1Q== +"@polkadot/api-derive@4.9.2": + version "4.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-4.9.2.tgz#bbc943a4b14b655035b9d9333fa05cc06d123ee7" + integrity sha512-hSeFr49tTuPAFkloQonGpXqfJJdg+HaKye7p7rduKShw9nO0TbrVm7g8pMKMqyxfhEcH4JtxsegkKCjBm+kM1Q== dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/api-derive" "3.11.1" - "@polkadot/keyring" "^5.9.2" - "@polkadot/metadata" "3.11.1" - "@polkadot/rpc-core" "3.11.1" - "@polkadot/rpc-provider" "3.11.1" - "@polkadot/types" "3.11.1" - "@polkadot/types-known" "3.11.1" - "@polkadot/util" "^5.9.2" - "@polkadot/util-crypto" "^5.9.2" - "@polkadot/x-rxjs" "^5.9.2" + "@babel/runtime" "^7.14.0" + "@polkadot/api" "4.9.2" + "@polkadot/rpc-core" "4.9.2" + "@polkadot/types" "4.9.2" + "@polkadot/util" "^6.3.1" + "@polkadot/util-crypto" "^6.3.1" + "@polkadot/x-rxjs" "^6.3.1" bn.js "^4.11.9" - eventemitter3 "^4.0.7" "@polkadot/api@4.12.1", "@polkadot/api@^4.12.1": version "4.12.1" @@ -1377,6 +1358,25 @@ bn.js "^4.11.9" eventemitter3 "^4.0.7" +"@polkadot/api@4.9.2", "@polkadot/api@~4.9.2": + version "4.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-4.9.2.tgz#2cec0330e812dcfa20741efc1a04822968fca089" + integrity sha512-PdtJc8YYWwaYsco1CrEIl5tMi2/f95AtfjXxGnFbd2aJwriU2qV0rjEm4IWEkzN/A7lMQhktUCDojjECP83TJw== + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/api-derive" "4.9.2" + "@polkadot/keyring" "^6.3.1" + "@polkadot/metadata" "4.9.2" + "@polkadot/rpc-core" "4.9.2" + "@polkadot/rpc-provider" "4.9.2" + "@polkadot/types" "4.9.2" + "@polkadot/types-known" "4.9.2" + "@polkadot/util" "^6.3.1" + "@polkadot/util-crypto" "^6.3.1" + "@polkadot/x-rxjs" "^6.3.1" + bn.js "^4.11.9" + eventemitter3 "^4.0.7" + "@polkadot/extension-dapp@^0.37.2": version "0.37.2" resolved "https://registry.yarnpkg.com/@polkadot/extension-dapp/-/extension-dapp-0.37.2.tgz#b0644bf6bead553b436e2b8c3fb9f603c90d2a60" @@ -1414,14 +1414,14 @@ "@polkadot/util" "^6.4.1" "@zondax/ledger-polkadot" "^0.13.6" -"@polkadot/keyring@^5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-5.9.2.tgz#f8011a524767bb8f000bec3e26178fc5feffae5b" - integrity sha512-h9AhrzyUmludbmo0ixRFLEyRJvUc7GTl5koSBrG0uv+9Yn0I/7YRgAKn3zKcUVZyvgoLvzZnBFwekGbdFcl9Yg== +"@polkadot/keyring@^6.3.1", "@polkadot/keyring@^6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-6.6.1.tgz#66fb4fa3079ef79fe39560ccfa9bfffe28321796" + integrity sha512-nN6sI46Xe8l57NAq8E8WS+Z+rHxmeJhlB5Pfyd2/FjjhsC7Y/IOfG4YKJTGzFIsRj5O07BaKYr2Y+jT3XZfAkQ== dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/util" "5.9.2" - "@polkadot/util-crypto" "5.9.2" + "@babel/runtime" "^7.14.0" + "@polkadot/util" "6.6.1" + "@polkadot/util-crypto" "6.6.1" "@polkadot/keyring@^6.4.1": version "6.4.1" @@ -1432,27 +1432,6 @@ "@polkadot/util" "6.4.1" "@polkadot/util-crypto" "6.4.1" -"@polkadot/keyring@^6.6.1": - version "6.6.1" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-6.6.1.tgz#66fb4fa3079ef79fe39560ccfa9bfffe28321796" - integrity sha512-nN6sI46Xe8l57NAq8E8WS+Z+rHxmeJhlB5Pfyd2/FjjhsC7Y/IOfG4YKJTGzFIsRj5O07BaKYr2Y+jT3XZfAkQ== - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/util" "6.6.1" - "@polkadot/util-crypto" "6.6.1" - -"@polkadot/metadata@3.11.1": - version "3.11.1" - resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-3.11.1.tgz#c3e9645f6f78c8e02e0da695f3718b9d69f450a8" - integrity sha512-Z3KtOTX2kU+vvbRDiGY+qyPpF/4xTpnUipoNGijIGQ/EWWcgrm8sSgPzZQhHCfgIqM+jq3g9GvPMYeQp2Yy3ng== - dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/types" "3.11.1" - "@polkadot/types-known" "3.11.1" - "@polkadot/util" "^5.9.2" - "@polkadot/util-crypto" "^5.9.2" - bn.js "^4.11.9" - "@polkadot/metadata@4.10.1": version "4.10.1" resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-4.10.1.tgz#f22b76e1fc575c20e44b8ba96949f474505ad5fb" @@ -1477,7 +1456,19 @@ "@polkadot/util-crypto" "^6.6.1" bn.js "^4.11.9" -"@polkadot/networks@5.9.2", "@polkadot/networks@^5.9.2": +"@polkadot/metadata@4.9.2": + version "4.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-4.9.2.tgz#4fe69f3a67ade102ff167a62c6a18f5359571967" + integrity sha512-9TPRd4DeSABOAryj0wsH653DoRSfqfyccw/kxl+Z0ls5HpAMMGSlj/tOFZaDNfp2FmyIlBf6EBk7/AWZrEC59A== + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.9.2" + "@polkadot/types-known" "4.9.2" + "@polkadot/util" "^6.3.1" + "@polkadot/util-crypto" "^6.3.1" + bn.js "^4.11.9" + +"@polkadot/networks@5.9.2": version "5.9.2" resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-5.9.2.tgz#c687525b5886c9418f75240afe22b562ed88e2dd" integrity sha512-JQyXJDJTZKQtn8y3HBHWDhiBfijhpiXjVEhY+fKvFcQ82TaKmzhnipYX0EdBoopZbuxpn/BJy6Y1Y/3y85EC+g== @@ -1491,7 +1482,7 @@ dependencies: "@babel/runtime" "^7.14.0" -"@polkadot/networks@6.6.1", "@polkadot/networks@^6.6.1": +"@polkadot/networks@6.6.1", "@polkadot/networks@^6.3.1", "@polkadot/networks@^6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-6.6.1.tgz#ceeb9c720218414b09cea7949e321c38f76c37ff" integrity sha512-tvQdtH2m9ZBWCLBRLP+dvfyJ/CBqCU7TkJSNQCg9RaKkwLRQ+Vl4HKNbXai9jAGXDQmxLYIkxu89VRNksQrBRw== @@ -1505,18 +1496,6 @@ dependencies: "@babel/runtime" "^7.13.10" -"@polkadot/rpc-core@3.11.1": - version "3.11.1" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-3.11.1.tgz#fc57ac6429fd0322ac8421f434868cd244ede86f" - integrity sha512-8KTEZ/c2/TrsTOrrqxxNbyjO5P/033R/yTDgwqL0gwmF+ApnH3vB65YfKqaxn+rBWOMQS0jQhF6KZdtXvRcuYg== - dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/metadata" "3.11.1" - "@polkadot/rpc-provider" "3.11.1" - "@polkadot/types" "3.11.1" - "@polkadot/util" "^5.9.2" - "@polkadot/x-rxjs" "^5.9.2" - "@polkadot/rpc-core@4.12.1": version "4.12.1" resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-4.12.1.tgz#f58422890b66b91e8055f9b16cc5482a0da189d5" @@ -1529,20 +1508,17 @@ "@polkadot/util" "^6.6.1" "@polkadot/x-rxjs" "^6.6.1" -"@polkadot/rpc-provider@3.11.1": - version "3.11.1" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-3.11.1.tgz#d4ee901f464211b3b03607615a6db208ef186213" - integrity sha512-5OKh3rAg8l10M+tGLCoxhEoH9uEtK0ehJfOHUmdtwmwIk5aBFZ/ZTeiDkPM+/l84PCzYmp2uzO+YNsyMWUoVLw== +"@polkadot/rpc-core@4.9.2": + version "4.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-4.9.2.tgz#97a1fa376cf2d54b65971405f0f35d0eacc26e86" + integrity sha512-zE76F1JOz33StkIU/8veloLJJbjcSAcANG7UIlZoHL9H5LY77n+bJ9R4dYiU+TdnXfq6+IKUp8ThNfLCuVAsng== dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/types" "3.11.1" - "@polkadot/util" "^5.9.2" - "@polkadot/util-crypto" "^5.9.2" - "@polkadot/x-fetch" "^5.9.2" - "@polkadot/x-global" "^5.9.2" - "@polkadot/x-ws" "^5.9.2" - bn.js "^4.11.9" - eventemitter3 "^4.0.7" + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.9.2" + "@polkadot/rpc-provider" "4.9.2" + "@polkadot/types" "4.9.2" + "@polkadot/util" "^6.3.1" + "@polkadot/x-rxjs" "^6.3.1" "@polkadot/rpc-provider@4.12.1": version "4.12.1" @@ -1559,16 +1535,20 @@ bn.js "^4.11.9" eventemitter3 "^4.0.7" -"@polkadot/types-known@3.11.1": - version "3.11.1" - resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-3.11.1.tgz#f695c9155fa54eeed95cea179bb8cb2398726bd3" - integrity sha512-ImAxyCdqblmlXaMlgvuXZ6wzZgOYgE40FgWaYRJpFXRGJLDwtcJcpVI+7m/ns5dJ3WujboEMOHVR1HPpquw8Jw== +"@polkadot/rpc-provider@4.9.2": + version "4.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-4.9.2.tgz#6154226b5e97a5d468d0e231a34152b259674340" + integrity sha512-Z+uAgQRlR4LxoPK1yexafwqDGlyEcCt5RFy6qNC1zOAYMaizpoxEQHPoLOa0myKElmgfGutssQ7lD0xJn/uHZA== dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/networks" "^5.9.2" - "@polkadot/types" "3.11.1" - "@polkadot/util" "^5.9.2" + "@babel/runtime" "^7.14.0" + "@polkadot/types" "4.9.2" + "@polkadot/util" "^6.3.1" + "@polkadot/util-crypto" "^6.3.1" + "@polkadot/x-fetch" "^6.3.1" + "@polkadot/x-global" "^6.3.1" + "@polkadot/x-ws" "^6.3.1" bn.js "^4.11.9" + eventemitter3 "^4.0.7" "@polkadot/types-known@4.10.1": version "4.10.1" @@ -1592,17 +1572,15 @@ "@polkadot/util" "^6.6.1" bn.js "^4.11.9" -"@polkadot/types@3.11.1", "@polkadot/types@~3.11.1": - version "3.11.1" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-3.11.1.tgz#c0188390dfda84d746d57f7818ad622ac6b1de8b" - integrity sha512-+BWsmveYVkLFx/csvPmU+NhNFhf+0srAt2d0f+7y663nitc/sng1AcEDPbrbXHSQVyPdvI20Mh4Escl4aR+TLw== +"@polkadot/types-known@4.9.2": + version "4.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-4.9.2.tgz#2399340f5f4517dd9e0a544ee54299d86d6bdba1" + integrity sha512-WewG2PBdgM8Jz9Frf/aI9fy3gWIMnlqvl7TWVxPLqzvsT7L1Cqo211+4NUQIFvqjWnY4hZKZ/0w70tu48Ltx4w== dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/metadata" "3.11.1" - "@polkadot/util" "^5.9.2" - "@polkadot/util-crypto" "^5.9.2" - "@polkadot/x-rxjs" "^5.9.2" - "@types/bn.js" "^4.11.6" + "@babel/runtime" "^7.14.0" + "@polkadot/networks" "^6.3.1" + "@polkadot/types" "4.9.2" + "@polkadot/util" "^6.3.1" bn.js "^4.11.9" "@polkadot/types@4.10.1", "@polkadot/types@^4.10.1": @@ -1631,6 +1609,19 @@ "@types/bn.js" "^4.11.6" bn.js "^4.11.9" +"@polkadot/types@4.9.2", "@polkadot/types@~4.9.2": + version "4.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-4.9.2.tgz#5e76ec04bbc66e92e714f606943c9e14c90357e4" + integrity sha512-xwxtRgoR2yBYs1FtRTFkoeufE+QrAvVU5ZM/iHr/gtvXQ/zFq5sy1tFQrO6KRhkbJM+eF42AqEzZJubZQbocwQ== + dependencies: + "@babel/runtime" "^7.14.0" + "@polkadot/metadata" "4.9.2" + "@polkadot/util" "^6.3.1" + "@polkadot/util-crypto" "^6.3.1" + "@polkadot/x-rxjs" "^6.3.1" + "@types/bn.js" "^4.11.6" + bn.js "^4.11.9" + "@polkadot/ui-keyring@^0.76.1": version "0.76.1" resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.76.1.tgz#0c8dc595b28cc80ed822ce8313ec6021a4688b7a" @@ -1664,28 +1655,6 @@ "@babel/runtime" "^7.14.0" color "^3.1.3" -"@polkadot/util-crypto@5.9.2", "@polkadot/util-crypto@^5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-5.9.2.tgz#3858cfffe7732458b4a2b38ece01eaf52a3746c2" - integrity sha512-d8CW2grI3gWi6d/brmcZQWaMPHqQq5z7VcM74/v8D2KZ+hPYL3B0Jn8zGL1vtgMz2qdpWrZdAe89LBC8BvM9bw== - dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/networks" "5.9.2" - "@polkadot/util" "5.9.2" - "@polkadot/wasm-crypto" "^3.2.4" - "@polkadot/x-randomvalues" "5.9.2" - base-x "^3.0.8" - base64-js "^1.5.1" - blakejs "^1.1.0" - bn.js "^4.11.9" - create-hash "^1.2.0" - elliptic "^6.5.4" - hash.js "^1.1.7" - js-sha3 "^0.8.0" - scryptsy "^2.1.0" - tweetnacl "^1.0.3" - xxhashjs "^0.2.2" - "@polkadot/util-crypto@6.4.1", "@polkadot/util-crypto@^6.4.1": version "6.4.1" resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-6.4.1.tgz#b567d824598bf8f4587364c1d7234bafe805f1c5" @@ -1708,7 +1677,7 @@ tweetnacl "^1.0.3" xxhashjs "^0.2.2" -"@polkadot/util-crypto@6.6.1", "@polkadot/util-crypto@^6.6.1": +"@polkadot/util-crypto@6.6.1", "@polkadot/util-crypto@^6.3.1", "@polkadot/util-crypto@^6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-6.6.1.tgz#5065e3cd18b06b804b0ac151d6b00fe853c96c85" integrity sha512-aD2Nr2Hb92Ev9w9yY5IRdVBlISRMAI3dokXXTpYIC+GVVH0i5bKA1KtO8eOhzh44/eujc7DUNB5wAXdl8rCCOQ== @@ -1730,6 +1699,28 @@ tweetnacl "^1.0.3" xxhashjs "^0.2.2" +"@polkadot/util-crypto@^5.9.2": + version "5.9.2" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-5.9.2.tgz#3858cfffe7732458b4a2b38ece01eaf52a3746c2" + integrity sha512-d8CW2grI3gWi6d/brmcZQWaMPHqQq5z7VcM74/v8D2KZ+hPYL3B0Jn8zGL1vtgMz2qdpWrZdAe89LBC8BvM9bw== + dependencies: + "@babel/runtime" "^7.13.8" + "@polkadot/networks" "5.9.2" + "@polkadot/util" "5.9.2" + "@polkadot/wasm-crypto" "^3.2.4" + "@polkadot/x-randomvalues" "5.9.2" + base-x "^3.0.8" + base64-js "^1.5.1" + blakejs "^1.1.0" + bn.js "^4.11.9" + create-hash "^1.2.0" + elliptic "^6.5.4" + hash.js "^1.1.7" + js-sha3 "^0.8.0" + scryptsy "^2.1.0" + tweetnacl "^1.0.3" + xxhashjs "^0.2.2" + "@polkadot/util@5.9.2", "@polkadot/util@^5.9.2": version "5.9.2" resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-5.9.2.tgz#ad2494e78ca6c3aadd6fb394a6be55020dc9b2a8" @@ -1756,7 +1747,7 @@ camelcase "^5.3.1" ip-regex "^4.3.0" -"@polkadot/util@6.6.1", "@polkadot/util@^6.6.1": +"@polkadot/util@6.6.1", "@polkadot/util@^6.3.1", "@polkadot/util@^6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-6.6.1.tgz#baa29a958dbf5843dbb0fb02d8e80c23cb803f58" integrity sha512-KTHO3tTcmeByEwJoTjV8JFSTe3cFl6/2NUg9q3D4PkyrOEhzXJSNJ1exyXDWSDVS/udcq0TOGuR+NgYWoVuZvQ== @@ -1826,17 +1817,7 @@ "@polkadot/wasm-crypto-asmjs" "^4.0.2" "@polkadot/wasm-crypto-wasm" "^4.0.2" -"@polkadot/x-fetch@^5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-5.9.2.tgz#0ec2b00bd253b896f7e435dfba34ebac914269e1" - integrity sha512-Nx7GfyOmMdqn5EX+wf6PnIwleQX+aGqzdbYhozNLF54IoNFLHLOs6hCYnBlKbmM1WyukMZMjg2YxyZRQWcHKPQ== - dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/x-global" "5.9.2" - "@types/node-fetch" "^2.5.8" - node-fetch "^2.6.1" - -"@polkadot/x-fetch@^6.6.1": +"@polkadot/x-fetch@^6.3.1", "@polkadot/x-fetch@^6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-6.6.1.tgz#208cb7c2e6410bbfc8c15a75e9917a8cbda60956" integrity sha512-C18/iKYwiCMnNHyxvdyy7xRGaIRJuKmpm6Wxrv4iwBXlNAHVWkbjbuHuXKArg2+aL2hcMzulYobeKkDtu4rDDw== @@ -1846,7 +1827,7 @@ "@types/node-fetch" "^2.5.10" node-fetch "^2.6.1" -"@polkadot/x-global@5.9.2", "@polkadot/x-global@^5.9.2": +"@polkadot/x-global@5.9.2": version "5.9.2" resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-5.9.2.tgz#e223d59536d168c7cbc49fc3a2052cbd71bd7256" integrity sha512-wpY6IAOZMGiJQa8YMm7NeTLi9bwnqqVauR+v7HwyrssnGPuYX8heb6BQLOnnnPh/EK0+M8zNtwRBU48ez0/HOg== @@ -1864,7 +1845,7 @@ "@types/node-fetch" "^2.5.10" node-fetch "^2.6.1" -"@polkadot/x-global@6.6.1", "@polkadot/x-global@^6.6.1": +"@polkadot/x-global@6.6.1", "@polkadot/x-global@^6.3.1", "@polkadot/x-global@^6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-6.6.1.tgz#25539a429f16ad786948f5160f3d3cbe05ec00f3" integrity sha512-3vM+48JMhzIAKr+AM7AU8Jq1Ok3cKHt8BoLZthrJuWJuzpwS6zWVMj0dpOH7bnk3JxM6D5Nwpwci1yxgyz2teA== @@ -1897,13 +1878,13 @@ "@babel/runtime" "^7.14.0" "@polkadot/x-global" "6.6.1" -"@polkadot/x-rxjs@^5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-rxjs/-/x-rxjs-5.9.2.tgz#925b7c3325678b137ca30af6a726b22c5e8f9125" - integrity sha512-cuF4schclspOfAqEPvbcA3aQ9d3TBy2ORZ8YehxD0ZSHWJNhefHDIUDgS5T3NtPhSKgcEmSlI5TfVfgGFxgVMg== +"@polkadot/x-rxjs@^6.3.1", "@polkadot/x-rxjs@^6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-rxjs/-/x-rxjs-6.6.1.tgz#660d5c1becb74637ff4cec54788e17b11cc5900c" + integrity sha512-SqNrQHgzGgjU6gZnRGUzlCaF/3raeb6eGFTX9FtF5z4YEqtN8qflEs/Av5mok/Qxm1oboqHDZGyNE6b3v5GIvQ== dependencies: - "@babel/runtime" "^7.13.8" - rxjs "^6.6.6" + "@babel/runtime" "^7.14.0" + rxjs "^6.6.7" "@polkadot/x-rxjs@^6.4.1": version "6.4.1" @@ -1913,14 +1894,6 @@ "@babel/runtime" "^7.14.0" rxjs "^6.6.7" -"@polkadot/x-rxjs@^6.6.1": - version "6.6.1" - resolved "https://registry.yarnpkg.com/@polkadot/x-rxjs/-/x-rxjs-6.6.1.tgz#660d5c1becb74637ff4cec54788e17b11cc5900c" - integrity sha512-SqNrQHgzGgjU6gZnRGUzlCaF/3raeb6eGFTX9FtF5z4YEqtN8qflEs/Av5mok/Qxm1oboqHDZGyNE6b3v5GIvQ== - dependencies: - "@babel/runtime" "^7.14.0" - rxjs "^6.6.7" - "@polkadot/x-textdecoder@5.9.2": version "5.9.2" resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-5.9.2.tgz#2e69922acc426f91adc2629fea362e41c9035f25" @@ -1969,17 +1942,7 @@ "@babel/runtime" "^7.14.0" "@polkadot/x-global" "6.6.1" -"@polkadot/x-ws@^5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-5.9.2.tgz#294f226be5ef07363426b8cf2729cba12d9637e5" - integrity sha512-6A/cteC0B3hm64/xG6DNG8qGsHAXJgAy9wjcB38qnoJGYl12hysIFjPeHD+V0W/LOl9payW6kpZzhisLlVOZpQ== - dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/x-global" "5.9.2" - "@types/websocket" "^1.0.1" - websocket "^1.0.33" - -"@polkadot/x-ws@^6.6.1": +"@polkadot/x-ws@^6.3.1", "@polkadot/x-ws@^6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-6.6.1.tgz#9af80746f130b00b9f1e57354ce4fd2ae212161f" integrity sha512-KLdDo4wHE3tiKbAoCPswX/a/SjfegvBCsgXhiwVwyvMFqd37Y7/LI9A0P+djlIYpkiPCjQpWDKNLA6r7kBdN8Q== @@ -2025,22 +1988,22 @@ resolved "https://registry.yarnpkg.com/@soda/get-current-script/-/get-current-script-1.0.2.tgz#a53515db25d8038374381b73af20bb4f2e508d87" integrity sha512-T7VNNlYVM1SgQ+VsMYhnDkcGmWhQdL0bDyGm5TlQ3GBXnJscEClUUOKduWTmm2zCnvNLC1hc3JpuXjs/nFOc5w== -"@subsocial/api@^0.5.3": - version "0.5.3" - resolved "https://registry.yarnpkg.com/@subsocial/api/-/api-0.5.3.tgz#acb851be9eb19e8aa5da44f98cd284422f8b4fc8" - integrity sha512-1D0ANa6kFyvWEZFNzP7WOGn60YZDrfcU+2sKuHFRUTpqptabBp8GzfSuy9VR6g6WU8pAq0Pie1DN8W4KPHlWtw== +"@subsocial/api@0.5.2": + version "0.5.2" + resolved "https://registry.yarnpkg.com/@subsocial/api/-/api-0.5.2.tgz#895aa2b17aaf7f9f1dc043d14280b9fda5633470" + integrity sha512-Yf6vtpjrhZA/QdJsu2mhNAmc/AbG6V80x8cO6kKPBumKw6piA86/sw5hjufnwAK3HqpSgM9ZjQ77sFrQoybfwA== dependencies: - "@polkadot/api" "~3.11.1" - "@subsocial/types" "0.5.1-sub-2.0.1" + "@polkadot/api" "~4.9.2" + "@subsocial/types" "0.5.2" "@subsocial/utils" "^0.4.39" axios "^0.21.1" -"@subsocial/types@0.5.1-sub-2.0.1": - version "0.5.1-sub-2.0.1" - resolved "https://registry.yarnpkg.com/@subsocial/types/-/types-0.5.1-sub-2.0.1.tgz#a32fc2c2e5eb94cdde867cd78a94070803fb3aed" - integrity sha512-cw8wcp7tQfhLYICSpQFiFZyVi4KcLtQLG8mektPJ+MyqY+TazpffZPgNNtixbOvxESVBfepMvoYN2lNPa4VCLg== +"@subsocial/types@0.5.2": + version "0.5.2" + resolved "https://registry.yarnpkg.com/@subsocial/types/-/types-0.5.2.tgz#f496e4a71951b3035dca125d63a11e62df4704ff" + integrity sha512-zLBRu4Rn+iqKCfUDd0EaKANDHROV6++4Cbr+cLduqwX+3gSBcywK1Fi5kc7K+MT8d0bf7oIQhm/8aIRWajJqLg== dependencies: - "@polkadot/types" "~3.11.1" + "@polkadot/types" "~4.9.2" "@subsocial/utils" "^0.4.39" cids "^0.7.1" @@ -2530,7 +2493,7 @@ "@types/webpack-sources" "*" source-map "^0.6.0" -"@types/websocket@^1.0.1", "@types/websocket@^1.0.2": +"@types/websocket@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@types/websocket/-/websocket-1.0.2.tgz#d2855c6a312b7da73ed16ba6781815bf30c6187a" integrity sha512-B5m9aq7cbbD/5/jThEr33nUY8WEfVi6A2YKCTOvw5Ldy7mtsOkqRvGjnzy6g7iMMDsgu7xREuCzqATLDLQVKcQ== @@ -10320,7 +10283,7 @@ rw@1: resolved "https://registry.yarnpkg.com/rw/-/rw-1.3.3.tgz#3f862dfa91ab766b14885ef4d01124bfda074fb4" integrity sha1-P4Yt+pGrdmsUiF700BEkv9oHT7Q= -rxjs@6, rxjs@^6.6.6, rxjs@^6.6.7: +rxjs@6, rxjs@^6.6.7: version "6.6.7" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== @@ -12192,7 +12155,7 @@ websocket-extensions@>=0.1.1: resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42" integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg== -websocket@^1.0.33, websocket@^1.0.34: +websocket@^1.0.34: version "1.0.34" resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" integrity sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ== From 49f39a054180a1e1f82136251aab7779e18ca6eb Mon Sep 17 00:00:00 2001 From: Viki Val Date: Sat, 5 Jun 2021 22:01:47 +0200 Subject: [PATCH 03/40] Guess What --- dashboard/package.json | 12 +- dashboard/yarn.lock | 345 +++++++---------------------------------- 2 files changed, 66 insertions(+), 291 deletions(-) diff --git a/dashboard/package.json b/dashboard/package.json index 21fbd83e10..7a3683c7b7 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -21,12 +21,12 @@ "@fortawesome/free-solid-svg-icons": "^5.15.3", "@fortawesome/vue-fontawesome": "^2.0.2", "@google/model-viewer": "^1.7.0", - "@polkadot/extension-dapp": "^0.37.2", - "@polkadot/types": "^4.10.1", - "@polkadot/ui-keyring": "^0.76.1", - "@polkadot/util": "^6.4.1", - "@polkadot/util-crypto": "^6.4.1", - "@polkadot/vue-identicon": "^0.76.1", + "@polkadot/extension-dapp": "^0.38.3", + "@polkadot/types": "^4.12.1", + "@polkadot/ui-keyring": "^0.78.1", + "@polkadot/util": "^6.6.1", + "@polkadot/util-crypto": "^6.6.1", + "@polkadot/vue-identicon": "^0.78.1", "@subsocial/api": "0.5.2", "@subsocial/types": "0.5.2", "@subsocial/utils": "^0.4.39", diff --git a/dashboard/yarn.lock b/dashboard/yarn.lock index 8e0ddecde6..598c8b0790 100644 --- a/dashboard/yarn.lock +++ b/dashboard/yarn.lock @@ -974,7 +974,7 @@ core-js "^2.6.5" regenerator-runtime "^0.13.4" -"@babel/runtime@^7.0.0", "@babel/runtime@^7.13.10", "@babel/runtime@^7.13.7", "@babel/runtime@^7.13.8", "@babel/runtime@^7.13.9", "@babel/runtime@^7.3.4", "@babel/runtime@^7.8.4": +"@babel/runtime@^7.0.0", "@babel/runtime@^7.13.10", "@babel/runtime@^7.13.9", "@babel/runtime@^7.3.4", "@babel/runtime@^7.8.4": version "7.13.10" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.13.10.tgz#47d42a57b6095f4468da440388fdbad8bebf0d7d" integrity sha512-4QPkjJq6Ns3V/RgpEahRk+AGfL0eO6RHHtTWoNNr5mO49G6B5+X6d6THgWEAvTrznU5xYpbAlVKRYcsCgh/Akw== @@ -1377,42 +1377,42 @@ bn.js "^4.11.9" eventemitter3 "^4.0.7" -"@polkadot/extension-dapp@^0.37.2": - version "0.37.2" - resolved "https://registry.yarnpkg.com/@polkadot/extension-dapp/-/extension-dapp-0.37.2.tgz#b0644bf6bead553b436e2b8c3fb9f603c90d2a60" - integrity sha512-S7K044Lfnvdhl0q3OA1JJNHz9ehC9M5XyC35WHU9uuk8kjmyxE9E0RvdtJ69V6YrzxAD7mGl2USDYp/QRFJ9Uw== +"@polkadot/extension-dapp@^0.38.3": + version "0.38.3" + resolved "https://registry.yarnpkg.com/@polkadot/extension-dapp/-/extension-dapp-0.38.3.tgz#89078b93a7ed95c8e2c6c04ff929257a8416ec62" + integrity sha512-b9OrATmu+d6KQOXmf9KcOm297/0Q5wGKMrAhGyHlvPh5PqEp6Zaj041j85vKjMciUz3jEMcFAaD4WNDfJ+zB5g== dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/extension-inject" "^0.37.2" - "@polkadot/util" "^5.9.2" - "@polkadot/util-crypto" "^5.9.2" + "@babel/runtime" "^7.14.0" + "@polkadot/extension-inject" "^0.38.3" + "@polkadot/util" "^6.6.1" + "@polkadot/util-crypto" "^6.6.1" -"@polkadot/extension-inject@^0.37.2": - version "0.37.2" - resolved "https://registry.yarnpkg.com/@polkadot/extension-inject/-/extension-inject-0.37.2.tgz#4b890cc98468683ac70b980460259f5b145baaf6" - integrity sha512-bqdFXGwuc1FyONByu9ebzmYiiQgkYEYuucQLwfDCPTQGpAdC6VtRRj5upMY+oaboCWI4WF1TdKPB/FR9bKJpNQ== +"@polkadot/extension-inject@^0.38.3": + version "0.38.3" + resolved "https://registry.yarnpkg.com/@polkadot/extension-inject/-/extension-inject-0.38.3.tgz#245d0df7ee05eeb9722efbec72d2460ac71d7658" + integrity sha512-7/sjH6pIXQ1nRlT/sKp5Ef8FE4scscnRbRCkodZD95p5YNAVUpBrzUkmI6esOQgL0TXt0OPdAtIfGQ6ahsdMPQ== dependencies: - "@babel/runtime" "^7.13.8" + "@babel/runtime" "^7.14.0" -"@polkadot/hw-ledger-transports@6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/hw-ledger-transports/-/hw-ledger-transports-6.4.1.tgz#03c1daf0985fe79793e0296a1e9e21bd87aa1a6e" - integrity sha512-R+KCaPS8SGdo+LgMnNgoTXFeyrx23COEIQRtxVoiXr2MGbRTFAQP6k8nLYgduWl42eZEYWRcAhFq0bfniDOBtw== +"@polkadot/hw-ledger-transports@6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/hw-ledger-transports/-/hw-ledger-transports-6.6.1.tgz#5abbe3cb01ce99eea1f7c5952cb996dd64b75bd5" + integrity sha512-IpV+G8Y7bt0vVy91A2nv2K+izn8fJrDk85bwRGrNuMRifYoRKRGYRqIysLo8Ony4TE1v+kfcR3DmB79MTub0XA== dependencies: "@babel/runtime" "^7.14.0" "@ledgerhq/hw-transport-webusb" "^5.51.1" optionalDependencies: "@ledgerhq/hw-transport-node-hid-singleton" "^5.51.1" -"@polkadot/hw-ledger@^6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/hw-ledger/-/hw-ledger-6.4.1.tgz#260b7f69106b343ed501759c8699f6f30d40ac5f" - integrity sha512-xERGupr4fIxh8TQXjmCTr1WWj/uwzAWEkJ+AtkOXaguPr32VDzafI+d1kBwLAdyr1sXXk52oCMUwsAZWfnNv+g== +"@polkadot/hw-ledger@^6.6.1": + version "6.6.1" + resolved "https://registry.yarnpkg.com/@polkadot/hw-ledger/-/hw-ledger-6.6.1.tgz#bcd7acb2018aec3b330c5280468447e0f14385b9" + integrity sha512-/OCjvBtu4R4exJdeBztxulFRFcdj7TJzm5IOsAluKcUcxxjb5uEnpq6K9w2jZY+8uiT8VQVlByzK84t/0FTMYA== dependencies: "@babel/runtime" "^7.14.0" - "@polkadot/hw-ledger-transports" "6.4.1" - "@polkadot/util" "^6.4.1" - "@zondax/ledger-polkadot" "^0.13.6" + "@polkadot/hw-ledger-transports" "6.6.1" + "@polkadot/util" "^6.6.1" + "@zondax/ledger-polkadot" "^0.14.0" "@polkadot/keyring@^6.3.1", "@polkadot/keyring@^6.6.1": version "6.6.1" @@ -1423,27 +1423,6 @@ "@polkadot/util" "6.6.1" "@polkadot/util-crypto" "6.6.1" -"@polkadot/keyring@^6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-6.4.1.tgz#769c5f0613a27e18726b51e6539fa56f161f6160" - integrity sha512-47QMmGLDgj1ztgn/f2Pjx/RUo49xNv/4MhqDCHce/zQRk5Lb3jRqBhaukerp2hJYt2nVly0AucXc4QWml4fPHg== - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/util" "6.4.1" - "@polkadot/util-crypto" "6.4.1" - -"@polkadot/metadata@4.10.1": - version "4.10.1" - resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-4.10.1.tgz#f22b76e1fc575c20e44b8ba96949f474505ad5fb" - integrity sha512-VXirlXn+ORCJa6BKJrHRDd83jzbyBWOPaiNGNRonhQD5Qu2YMXyPjYiavldww+K17E9BbDMwCDepRpRVXaMjHw== - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/types" "4.10.1" - "@polkadot/types-known" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - bn.js "^4.11.9" - "@polkadot/metadata@4.12.1": version "4.12.1" resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-4.12.1.tgz#2f775181886b91b55c8c283a30a605233d00132f" @@ -1468,20 +1447,6 @@ "@polkadot/util-crypto" "^6.3.1" bn.js "^4.11.9" -"@polkadot/networks@5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-5.9.2.tgz#c687525b5886c9418f75240afe22b562ed88e2dd" - integrity sha512-JQyXJDJTZKQtn8y3HBHWDhiBfijhpiXjVEhY+fKvFcQ82TaKmzhnipYX0EdBoopZbuxpn/BJy6Y1Y/3y85EC+g== - dependencies: - "@babel/runtime" "^7.13.8" - -"@polkadot/networks@6.4.1", "@polkadot/networks@^6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-6.4.1.tgz#0f933c4af10a2bfe8f072e2c7e8357ef03b2e37e" - integrity sha512-YGFeGJf8lIgiAL8U7XzRYZVWDKHhZbll6LSnRynzsox9CCqUa4oWyIBxymnsWBk13jj5KZZN24IsnyVURvBYiA== - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/networks@6.6.1", "@polkadot/networks@^6.3.1", "@polkadot/networks@^6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-6.6.1.tgz#ceeb9c720218414b09cea7949e321c38f76c37ff" @@ -1550,17 +1515,6 @@ bn.js "^4.11.9" eventemitter3 "^4.0.7" -"@polkadot/types-known@4.10.1": - version "4.10.1" - resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-4.10.1.tgz#3377a6482f116c88f82140e7327c9cdea32b0a1d" - integrity sha512-hWjPjCGMotrVJ3gk4RaDhIvng6jc/QPWo8URCaCX7CQpou94KL7TKHSCyeJFyKI1xjHQutUvBE9TAXfAOpQePA== - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/networks" "^6.4.1" - "@polkadot/types" "4.10.1" - "@polkadot/util" "^6.4.1" - bn.js "^4.11.9" - "@polkadot/types-known@4.12.1": version "4.12.1" resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-4.12.1.tgz#743a03c34b74399f8768b61fb5fced7a16faef33" @@ -1583,20 +1537,7 @@ "@polkadot/util" "^6.3.1" bn.js "^4.11.9" -"@polkadot/types@4.10.1", "@polkadot/types@^4.10.1": - version "4.10.1" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-4.10.1.tgz#603d273ec5ad83cfce9d3eec05bbd198ae9677f0" - integrity sha512-ThP7MAwiiTosaYZ4z8XNbcdirXX3KAWPV0z5/f0jd82DtvWpw05N/akRiNP9UmA8PvBrol1S30o110x2Qnb3Rg== - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/metadata" "4.10.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" - "@types/bn.js" "^4.11.6" - bn.js "^4.11.9" - -"@polkadot/types@4.12.1": +"@polkadot/types@4.12.1", "@polkadot/types@^4.12.1": version "4.12.1" resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-4.12.1.tgz#dc9ec69d7c0d77c7edc338180f334ac2bac003d5" integrity sha512-BYzE9xedfV4mOA9g0Ge4DHI4lameQrrVZg3aaN4GvpZzrox1xAzon7vhZqXfe1452avu/ivaoxxnLHze4tI+hA== @@ -1622,61 +1563,39 @@ "@types/bn.js" "^4.11.6" bn.js "^4.11.9" -"@polkadot/ui-keyring@^0.76.1": - version "0.76.1" - resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.76.1.tgz#0c8dc595b28cc80ed822ce8313ec6021a4688b7a" - integrity sha512-09jL4dJtrSCRFnws6dpBHtD4Ft9/Upm8RNKM4RPhdJmhw5//dRyXeli/qf7se2jI0JXI3LwbM0ZmzBQ+TAQ+xg== +"@polkadot/ui-keyring@^0.78.1": + version "0.78.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.78.1.tgz#5b607763fe9c5fe84787cbbceaec6037c7bac2ab" + integrity sha512-CWU+uIirr6V05eK1kisTjyFC4M0WxS7QyS+mWGPP5ule4NMahb9D/19EGn+Do7F7KIFFwcrmKHSkbEOsC2zvtw== dependencies: "@babel/runtime" "^7.14.0" - "@polkadot/hw-ledger" "^6.4.1" - "@polkadot/keyring" "^6.4.1" - "@polkadot/ui-settings" "0.76.1" - "@polkadot/util" "^6.4.1" - "@polkadot/x-rxjs" "^6.4.1" + "@polkadot/hw-ledger" "^6.6.1" + "@polkadot/keyring" "^6.6.1" + "@polkadot/ui-settings" "0.78.1" + "@polkadot/util" "^6.6.1" + "@polkadot/x-rxjs" "^6.6.1" mkdirp "^1.0.4" store "^2.0.12" -"@polkadot/ui-settings@0.76.1": - version "0.76.1" - resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-0.76.1.tgz#693c6de30bbe9ed1b0101c647756be8af8d995d4" - integrity sha512-hKkY6BfoaoHx/jMaFSpJbG3YLk6XQkNm+TRAh7nL/wJ/Jc02Y+UA4+4fTl5mt9sEH8VTOnR2PsLUee9pB2Fm9A== +"@polkadot/ui-settings@0.78.1": + version "0.78.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-0.78.1.tgz#34e5b8400f010a367d64dd7e235989dcd9daba7b" + integrity sha512-OygB2rc7vQYmPWLsyCSEWzgvYDuOraDJmT9qy/YK4XsZabdeaDuyPZ3f4Sgm7ccuEgdEQPa0g4VE7/Lg8QCksw== dependencies: "@babel/runtime" "^7.14.0" - "@polkadot/networks" "^6.4.1" - "@polkadot/util" "^6.4.1" + "@polkadot/networks" "^6.6.1" + "@polkadot/util" "^6.6.1" eventemitter3 "^4.0.7" store "^2.0.12" -"@polkadot/ui-shared@0.76.1": - version "0.76.1" - resolved "https://registry.yarnpkg.com/@polkadot/ui-shared/-/ui-shared-0.76.1.tgz#7edf63c239c83b7950888cea8dd15caf9f64a532" - integrity sha512-xV0hSTg+o9ZNaDNQigUjrtIKmkTABktxqS7GOzsFCMc1QfueMms+wRDiowbg3Zj5qTsPBSEddXwvOm/fdZNPxg== +"@polkadot/ui-shared@0.78.1": + version "0.78.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-shared/-/ui-shared-0.78.1.tgz#4056b84e276c80bf83001b5497e7683168a2afd5" + integrity sha512-zAnLBaQFw5EGa3NLZe5J7gz7aJpF9TTdPm8zJPPr+qdFKOb0b8PgcBUBKYy84AEpVEeT9/GStDDml7IpUVKUzw== dependencies: "@babel/runtime" "^7.14.0" color "^3.1.3" -"@polkadot/util-crypto@6.4.1", "@polkadot/util-crypto@^6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-6.4.1.tgz#b567d824598bf8f4587364c1d7234bafe805f1c5" - integrity sha512-s75fjO1Duq+2N9btj6yw/1+iBssQTtbwkD/LHXNGttrVKdfHxpQoJyud8rJ1hzl+ELAMawat6humPuAVtM0DaA== - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/networks" "6.4.1" - "@polkadot/util" "6.4.1" - "@polkadot/wasm-crypto" "^4.0.2" - "@polkadot/x-randomvalues" "6.4.1" - base-x "^3.0.8" - base64-js "^1.5.1" - blakejs "^1.1.0" - bn.js "^4.11.9" - create-hash "^1.2.0" - elliptic "^6.5.4" - hash.js "^1.1.7" - js-sha3 "^0.8.0" - scryptsy "^2.1.0" - tweetnacl "^1.0.3" - xxhashjs "^0.2.2" - "@polkadot/util-crypto@6.6.1", "@polkadot/util-crypto@^6.3.1", "@polkadot/util-crypto@^6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-6.6.1.tgz#5065e3cd18b06b804b0ac151d6b00fe853c96c85" @@ -1699,54 +1618,6 @@ tweetnacl "^1.0.3" xxhashjs "^0.2.2" -"@polkadot/util-crypto@^5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-5.9.2.tgz#3858cfffe7732458b4a2b38ece01eaf52a3746c2" - integrity sha512-d8CW2grI3gWi6d/brmcZQWaMPHqQq5z7VcM74/v8D2KZ+hPYL3B0Jn8zGL1vtgMz2qdpWrZdAe89LBC8BvM9bw== - dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/networks" "5.9.2" - "@polkadot/util" "5.9.2" - "@polkadot/wasm-crypto" "^3.2.4" - "@polkadot/x-randomvalues" "5.9.2" - base-x "^3.0.8" - base64-js "^1.5.1" - blakejs "^1.1.0" - bn.js "^4.11.9" - create-hash "^1.2.0" - elliptic "^6.5.4" - hash.js "^1.1.7" - js-sha3 "^0.8.0" - scryptsy "^2.1.0" - tweetnacl "^1.0.3" - xxhashjs "^0.2.2" - -"@polkadot/util@5.9.2", "@polkadot/util@^5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-5.9.2.tgz#ad2494e78ca6c3aadd6fb394a6be55020dc9b2a8" - integrity sha512-p225NJusnXeu7i2iAb8HAGWiMOUAnRaIyblIjJ4F89ZFZZ4amyliGxe5gKcyjRgxAJ44WdKyBLl/8L3rNv8hmQ== - dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/x-textdecoder" "5.9.2" - "@polkadot/x-textencoder" "5.9.2" - "@types/bn.js" "^4.11.6" - bn.js "^4.11.9" - camelcase "^5.3.1" - ip-regex "^4.3.0" - -"@polkadot/util@6.4.1", "@polkadot/util@^6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-6.4.1.tgz#f40fdc91ae49396d7930e37dbd31747769555b7a" - integrity sha512-+vnmUFz/HR/BMqG4qxONMcbnwNovShIxmrfJIhAJK4NghZC6pSioj+EtY4itQDA5psgUbur5WEWMFX1Q4TT9Bw== - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-textdecoder" "6.4.1" - "@polkadot/x-textencoder" "6.4.1" - "@types/bn.js" "^4.11.6" - bn.js "^4.11.9" - camelcase "^5.3.1" - ip-regex "^4.3.0" - "@polkadot/util@6.6.1", "@polkadot/util@^6.3.1", "@polkadot/util@^6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-6.6.1.tgz#baa29a958dbf5843dbb0fb02d8e80c23cb803f58" @@ -1760,24 +1631,17 @@ camelcase "^5.3.1" ip-regex "^4.3.0" -"@polkadot/vue-identicon@^0.76.1": - version "0.76.1" - resolved "https://registry.yarnpkg.com/@polkadot/vue-identicon/-/vue-identicon-0.76.1.tgz#67bb2c0faa38175c6bc307fcd92d2de834238b7a" - integrity sha512-RIO4F39PPWMFamtzgcKkRa0rtG60H3WLbUTxG5e/GeNT2SSIp/QAOxRA5JM7uATiGcPm4LuKdoGbSd7EifpXDg== +"@polkadot/vue-identicon@^0.78.1": + version "0.78.1" + resolved "https://registry.yarnpkg.com/@polkadot/vue-identicon/-/vue-identicon-0.78.1.tgz#cf02f4f1aaf917ce1971540f982d58b792d5325b" + integrity sha512-TyHf3KQhhV+S/YQAtXLfa366kKAMgaj75hZ20O782k1lkl+UqKLkmlC9Dv++gI1jX5ijAsDPsKhiIO4loIp/oQ== dependencies: "@babel/runtime" "^7.14.0" - "@polkadot/ui-shared" "0.76.1" - "@polkadot/util" "^6.4.1" - "@polkadot/util-crypto" "^6.4.1" + "@polkadot/ui-shared" "0.78.1" + "@polkadot/util" "^6.6.1" + "@polkadot/util-crypto" "^6.6.1" jdenticon "3.1.0" -"@polkadot/wasm-crypto-asmjs@^3.2.4": - version "3.2.4" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-3.2.4.tgz#837f5b723161b21670d13779eff4c061f7947577" - integrity sha512-fgN26iL+Pbb35OYsDIRHC74Xnwde+A5u3OjEcQ9zJhM391eOTuKsQ2gyC9TLNAKqeYH8pxsa27yjRO71We7FUA== - dependencies: - "@babel/runtime" "^7.13.7" - "@polkadot/wasm-crypto-asmjs@^4.0.2": version "4.0.2" resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-4.0.2.tgz#f42c353a64e1243841daf90e4bd54eff01a4e3cf" @@ -1785,13 +1649,6 @@ dependencies: "@babel/runtime" "^7.13.9" -"@polkadot/wasm-crypto-wasm@^3.2.4": - version "3.2.4" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-3.2.4.tgz#70885e06a813af91d81cf7e8ff826976fa99a38b" - integrity sha512-Q/3IEpoo7vkTzg40GxehRK000A9oBgjbh/uWCNQ8cMqWLYYCfzZy4NIzw8szpxNiSiGfGL0iZlP4ZSx2ZqEe2g== - dependencies: - "@babel/runtime" "^7.13.7" - "@polkadot/wasm-crypto-wasm@^4.0.2": version "4.0.2" resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-4.0.2.tgz#89f9e0a1e4d076784d4a42bea37fc8b06bdd8bb6" @@ -1799,15 +1656,6 @@ dependencies: "@babel/runtime" "^7.13.9" -"@polkadot/wasm-crypto@^3.2.4": - version "3.2.4" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-3.2.4.tgz#c3e23ff728c1d5701215ae15ecdc605e96901989" - integrity sha512-poeRU91zzZza0ZectT63vBiAqh6DsHCyd3Ogx1U6jsYiRa0yuECMWJx1onvnseDW4tIqsC8vZ/9xHXWwhjTAVg== - dependencies: - "@babel/runtime" "^7.13.7" - "@polkadot/wasm-crypto-asmjs" "^3.2.4" - "@polkadot/wasm-crypto-wasm" "^3.2.4" - "@polkadot/wasm-crypto@^4.0.2": version "4.0.2" resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-4.0.2.tgz#9649057adee8383cc86433d107ba526b718c5a3b" @@ -1827,24 +1675,6 @@ "@types/node-fetch" "^2.5.10" node-fetch "^2.6.1" -"@polkadot/x-global@5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-5.9.2.tgz#e223d59536d168c7cbc49fc3a2052cbd71bd7256" - integrity sha512-wpY6IAOZMGiJQa8YMm7NeTLi9bwnqqVauR+v7HwyrssnGPuYX8heb6BQLOnnnPh/EK0+M8zNtwRBU48ez0/HOg== - dependencies: - "@babel/runtime" "^7.13.8" - "@types/node-fetch" "^2.5.8" - node-fetch "^2.6.1" - -"@polkadot/x-global@6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-6.4.1.tgz#546e019e0c7f72a92a2612cacf90e8797c94709f" - integrity sha512-u6y2KWAYw/lEyvFBEj17zyxTZAsXDbYdewF9Wr26dpPIhkx5XqCqAJtzX8/7tOhJEn7C4tRJz2nXpboL3pEStA== - dependencies: - "@babel/runtime" "^7.14.0" - "@types/node-fetch" "^2.5.10" - node-fetch "^2.6.1" - "@polkadot/x-global@6.6.1", "@polkadot/x-global@^6.3.1", "@polkadot/x-global@^6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-6.6.1.tgz#25539a429f16ad786948f5160f3d3cbe05ec00f3" @@ -1854,22 +1684,6 @@ "@types/node-fetch" "^2.5.10" node-fetch "^2.6.1" -"@polkadot/x-randomvalues@5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-5.9.2.tgz#563a76550f94107ce5a37c462ed067dc040626b1" - integrity sha512-Zv+eXSP3oBImMnB82y05Doo0A96WUFsQDbnLHI3jFHioIg848cL0nndB9TgBwPaFkZ2oiwoHEC8yxqNI6/jkzQ== - dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/x-global" "5.9.2" - -"@polkadot/x-randomvalues@6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-6.4.1.tgz#bb30d309e03ab63196504f53962e47ec7b97fac9" - integrity sha512-1hsup7303d3bsW0HJsLroorrhpxf3xte/ZGOlOi6LtntHzzOZibteepQ+Oa7Ksy+nmCANpUcWGemm3Q9kGKW2g== - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - "@polkadot/x-randomvalues@6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-6.6.1.tgz#7fd56f664a4f5a37feab27f9d4570814038778ce" @@ -1886,30 +1700,6 @@ "@babel/runtime" "^7.14.0" rxjs "^6.6.7" -"@polkadot/x-rxjs@^6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/x-rxjs/-/x-rxjs-6.4.1.tgz#c6e8cef8dc3f20b4c7468bd6976d843947da1f15" - integrity sha512-msblJoRdM+Wz8Bn118z1oBDMC1nRTNvFigSRrRFVLaa675ztnMIvoOWzuaAg6G9touEbdmCDN4nKwKj5Rl8udg== - dependencies: - "@babel/runtime" "^7.14.0" - rxjs "^6.6.7" - -"@polkadot/x-textdecoder@5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-5.9.2.tgz#2e69922acc426f91adc2629fea362e41c9035f25" - integrity sha512-MCkgITwGY3tG0UleDkBJEoiKGk/YWYwMM5OR6fNo07RymHRtJ8OLJC+Sej9QD05yz6TIhFaaRRYzmtungIcwTw== - dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/x-global" "5.9.2" - -"@polkadot/x-textdecoder@6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-6.4.1.tgz#f33b81267d8de313e851cc699b9dfa6e8f109cde" - integrity sha512-sE/3QHAYS17qgCHBk2Ajn/FMubYsG+WTsnFW+MaoO6BZKxQuE+Gux/Up6HS/yJdJUfxhdoHUY0DcQCsw0vzU/Q== - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - "@polkadot/x-textdecoder@6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-6.6.1.tgz#2f005df0e21d3d423395659008a95638e445ea27" @@ -1918,22 +1708,6 @@ "@babel/runtime" "^7.14.0" "@polkadot/x-global" "6.6.1" -"@polkadot/x-textencoder@5.9.2": - version "5.9.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-5.9.2.tgz#67362e64bacfe6ff4eec73bf596873a2f9d9f36d" - integrity sha512-IjdLY3xy0nUfps1Bdi0tRxAX7X081YyoiSWExwqUkChdcYGMqMe3T2wqrrt9qBr2IkW8O/tlfYBiZXdII0YCcw== - dependencies: - "@babel/runtime" "^7.13.8" - "@polkadot/x-global" "5.9.2" - -"@polkadot/x-textencoder@6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-6.4.1.tgz#f34bcc1c1a60d723ea8ce84e10a1efbbf6c1371a" - integrity sha512-OeOEt6Mr/jSonzMkTw6haD10YHhwKSty1haIw/5Ahvs6fQe/ix0bZ8ECx/VHVsb98XOEKLm97p0K6n8t0w4n+Q== - dependencies: - "@babel/runtime" "^7.14.0" - "@polkadot/x-global" "6.4.1" - "@polkadot/x-textencoder@6.6.1": version "6.6.1" resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-6.6.1.tgz#d0678aa001af66561fc1913e76c9704567e3df3d" @@ -2366,7 +2140,7 @@ resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.1.tgz#283f669ff76d7b8260df8ab7a4262cc83d988256" integrity sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg== -"@types/node-fetch@^2.5.10", "@types/node-fetch@^2.5.8": +"@types/node-fetch@^2.5.10": version "2.5.10" resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.5.10.tgz#9b4d4a0425562f9fcea70b12cb3fcdd946ca8132" integrity sha512-IpkX0AasN44hgEad0gEF/V6EgR5n69VEqPEgnmoM8GsIGro3PowbWs4tR6IhxUTyPLpOn+fiGG6nrQhcmoCuIQ== @@ -2976,10 +2750,10 @@ resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== -"@zondax/ledger-polkadot@^0.13.6": - version "0.13.6" - resolved "https://registry.yarnpkg.com/@zondax/ledger-polkadot/-/ledger-polkadot-0.13.6.tgz#9c577673ec59604356dbccfc715ded2e0dfc54b0" - integrity sha512-isL+POHw2nrML8FRqrEkWmhJ1quVfpgxQ0578KgIqmwuUpEzYyRHVPJ+wh/gLp0sl9FHs0lVKIfl0CNo8G6oSA== +"@zondax/ledger-polkadot@^0.14.0": + version "0.14.0" + resolved "https://registry.yarnpkg.com/@zondax/ledger-polkadot/-/ledger-polkadot-0.14.0.tgz#e7638d476ae2e2fd50598d01abbe58654915fdd2" + integrity sha512-b31k9NCbQ1SkjYCLsX+vYW8YZFWM/QXl2J3BKVgYhAM0InU09p+AB6Wqz0t27MrK7JD8kTat1YFjb/JFoOHFfQ== dependencies: "@babel/runtime" "^7.13.10" "@ledgerhq/hw-transport" "^5.49.0" @@ -2988,6 +2762,7 @@ bip39 "3.0.3" blakejs "^1.1.0" bs58 "^4.0.1" + hash.js "^1.1.7" "@zxing/text-encoding@0.9.0": version "0.9.0" @@ -3609,9 +3384,9 @@ bindings@^1.3.0, bindings@^1.5.0: dependencies: file-uri-to-path "1.0.0" -"bip32-ed25519@https://github.com/Zondax/bip32-ed25519": +"bip32-ed25519@git+https://github.com/Zondax/bip32-ed25519.git": version "0.0.4" - resolved "https://github.com/Zondax/bip32-ed25519#0949df01b5c93885339bc28116690292088f6134" + resolved "git+https://github.com/Zondax/bip32-ed25519.git#0949df01b5c93885339bc28116690292088f6134" dependencies: bn.js "^5.1.1" elliptic "^6.4.1" From 071513edebaac79d5ffcc56d7a210e688fa8253c Mon Sep 17 00:00:00 2001 From: Viki Val Date: Sun, 6 Jun 2021 10:22:04 +0200 Subject: [PATCH 04/40] 199 back on track --- dashboard/public/index.html | 2 +- .../components/rmrk/Gallery/EmotionList.vue | 2 +- .../components/rmrk/Gallery/GalleryItem.vue | 24 +-- dashboard/src/components/rmrk/utils.ts | 9 ++ .../src/components/subsocial/Comment.vue | 149 ++++++++++++++++++ .../components/subsocial/CommentAdapter.vue | 54 +++++++ .../components/subsocial/CommentWrapper.vue | 44 ++++++ dashboard/src/components/subsocial/Reply.vue | 48 ++++++ dashboard/src/icons.ts | 8 +- dashboard/yarn.lock | 4 +- 10 files changed, 326 insertions(+), 18 deletions(-) create mode 100644 dashboard/src/components/subsocial/Comment.vue create mode 100644 dashboard/src/components/subsocial/CommentAdapter.vue create mode 100644 dashboard/src/components/subsocial/CommentWrapper.vue create mode 100644 dashboard/src/components/subsocial/Reply.vue diff --git a/dashboard/public/index.html b/dashboard/public/index.html index a462e556c0..71875c554c 100644 --- a/dashboard/public/index.html +++ b/dashboard/public/index.html @@ -38,7 +38,7 @@ justify-content: center; width: 100vw; height: 100vh; - background-color: #000; + background-color: #111; color: #fff; z-index: 1001; font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; diff --git a/dashboard/src/components/rmrk/Gallery/EmotionList.vue b/dashboard/src/components/rmrk/Gallery/EmotionList.vue index 4926572ea1..f2c20daec7 100644 --- a/dashboard/src/components/rmrk/Gallery/EmotionList.vue +++ b/dashboard/src/components/rmrk/Gallery/EmotionList.vue @@ -5,7 +5,7 @@ v-for="emoji in emojis" :key="emoji.key" > - + {{ String.fromCodePoint(parseInt(emoji.key, 16)) }} {{ emoji.count }} diff --git a/dashboard/src/components/rmrk/Gallery/GalleryItem.vue b/dashboard/src/components/rmrk/Gallery/GalleryItem.vue index 7b4286e609..95bf89b9f8 100644 --- a/dashboard/src/components/rmrk/Gallery/GalleryItem.vue +++ b/dashboard/src/components/rmrk/Gallery/GalleryItem.vue @@ -50,6 +50,7 @@ +
@@ -113,12 +114,12 @@ import { NFT, NFTMetadata, Emotion, Emote } from '../service/scheme'; import { sanitizeIpfsUrl } from '../utils'; import { emptyObject } from '@/utils/empty'; -import AvailableActions from './AvailableActions.vue'; +// import AvailableActions from './AvailableActions.vue'; import { notificationTypes, showNotification } from '@/utils/notification'; -import Money from '@/components/shared/format/Money.vue'; -import Sharing from '@/components/rmrk/Gallery/Item/Sharing.vue'; -import Facts from '@/components/rmrk/Gallery/Item/Facts.vue'; -import Name from '@/components/rmrk/Gallery/Item/Name.vue'; +// import Money from '@/components/shared/format/Money.vue'; +// import/ Sharing from '@/components/rmrk/Gallery/Item/Sharing.vue'; +// import Facts from '@/components/rmrk/Gallery/Item/Facts.vue'; +// import Name from '@/components/rmrk/Gallery/Item/Name.vue'; import isShareMode from '@/utils/isShareMode'; import nftById from '@/queries/nftById.graphql' @@ -148,15 +149,16 @@ import { get, set } from 'idb-keyval'; }, components: { Auth: () => import('@/components/shared/Auth.vue'), - AvailableActions, - Facts, + AvailableActions: () => import('./AvailableActions.vue'), + Facts: () => import('@/components/rmrk/Gallery/Item/Facts.vue'), // MarkdownItVueLight: MarkdownItVueLight as VueConstructor, - Money, - Name, - Sharing, + Money: () => import('@/components/shared/format/Money.vue'), + Name: () => import('@/components/rmrk/Gallery/Item/Name.vue'), + Sharing: () => import('@/components/rmrk/Gallery/Item/Sharing.vue'), Appreciation: () => import('./Appreciation.vue'), MediaResolver: () => import('../Media/MediaResolver.vue'), - PackSaver: () => import('../Pack/PackSaver.vue') + PackSaver: () => import('../Pack/PackSaver.vue'), + CommentWrapper: () => import('@/components/subsocial/CommentWrapper.vue') } }) export default class GalleryItem extends Vue { diff --git a/dashboard/src/components/rmrk/utils.ts b/dashboard/src/components/rmrk/utils.ts index 67a94de30e..ee3ed81bb9 100644 --- a/dashboard/src/components/rmrk/utils.ts +++ b/dashboard/src/components/rmrk/utils.ts @@ -11,6 +11,7 @@ import { import api from '@/fetch'; import { RmrkType, RmrkWithMetaType, CollectionOrNFT } from './service/RmrkService'; import { NFTMetadata, Collection, PackMetadata, NFT, NFTWithMeta } from './service/scheme'; +import { justHash } from '@/utils/ipfs'; export const SQUARE = '::' export const DEFAULT_IPFS_PROVIDER = 'https://ipfs.io/'; @@ -25,6 +26,14 @@ export const ipfsProviders: Record = { kodadot: 'https://kodadot.mypinata.cloud/', } +export const ipfsHashToUrl = (ipfsHash?: string, provider?: ProviderKeyType) => { + if (justHash(ipfsHash)) { + return `${resolveProvider(provider)}ipfs/${ipfsHash}` + } + + return ipfsHash +} + const resolveProvider = (key: ProviderKeyType = 'kodadot') => ipfsProviders[key] export const zip = (a: T1[], b: T2[], cb?: (el: (T1 | T2)[]) => T3): T3[] | (T1 | T2)[][] => { diff --git a/dashboard/src/components/subsocial/Comment.vue b/dashboard/src/components/subsocial/Comment.vue new file mode 100644 index 0000000000..c55613fa0f --- /dev/null +++ b/dashboard/src/components/subsocial/Comment.vue @@ -0,0 +1,149 @@ + + + + + diff --git a/dashboard/src/components/subsocial/CommentAdapter.vue b/dashboard/src/components/subsocial/CommentAdapter.vue new file mode 100644 index 0000000000..5e0c671476 --- /dev/null +++ b/dashboard/src/components/subsocial/CommentAdapter.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/dashboard/src/components/subsocial/CommentWrapper.vue b/dashboard/src/components/subsocial/CommentWrapper.vue new file mode 100644 index 0000000000..a7a4313d12 --- /dev/null +++ b/dashboard/src/components/subsocial/CommentWrapper.vue @@ -0,0 +1,44 @@ + + + diff --git a/dashboard/src/components/subsocial/Reply.vue b/dashboard/src/components/subsocial/Reply.vue new file mode 100644 index 0000000000..dc62cc04e7 --- /dev/null +++ b/dashboard/src/components/subsocial/Reply.vue @@ -0,0 +1,48 @@ + + + diff --git a/dashboard/src/icons.ts b/dashboard/src/icons.ts index dfa5409b69..5066ffe9f3 100644 --- a/dashboard/src/icons.ts +++ b/dashboard/src/icons.ts @@ -28,11 +28,12 @@ import { faFlask, faCameraRetro, faTag, faShareAlt, faExclamationTriangle, faCalendar, faCalculator, faEnvelope, - faArrowsAlt, faCompressAlt, faCompressArrowsAlt, faAngleLeft, faAngleRight + faArrowsAlt, faCompressAlt, faCompressArrowsAlt, + faAngleLeft, faAngleRight, faReply } from '@fortawesome/free-solid-svg-icons'; // throws error, idk why -import { faCommentDots } from '@fortawesome/free-regular-svg-icons'; +import { faCommentDots, faThumbsUp, faThumbsDown } from '@fortawesome/free-regular-svg-icons'; import { faTwitter, faLine, faTelegram, @@ -84,7 +85,8 @@ library.add( faFacebookMessenger, faDiscord, faLine, faTelegramPlane, faWhatsapp, faPinterest, faMedium, - faAngleLeft, faAngleRight + faAngleLeft, faAngleRight, + faReply, faThumbsUp, faThumbsDown, ); import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; diff --git a/dashboard/yarn.lock b/dashboard/yarn.lock index 23e8f915fb..57065dc261 100644 --- a/dashboard/yarn.lock +++ b/dashboard/yarn.lock @@ -3384,9 +3384,9 @@ bindings@^1.3.0, bindings@^1.5.0: dependencies: file-uri-to-path "1.0.0" -"bip32-ed25519@git+https://github.com/Zondax/bip32-ed25519.git": +"bip32-ed25519@https://github.com/Zondax/bip32-ed25519": version "0.0.4" - resolved "git+https://github.com/Zondax/bip32-ed25519.git#0949df01b5c93885339bc28116690292088f6134" + resolved "https://github.com/Zondax/bip32-ed25519#0949df01b5c93885339bc28116690292088f6134" dependencies: bn.js "^5.1.1" elliptic "^6.4.1" From 07044bd4c90d43ee5c3ab413d50acbbbaaabd80c Mon Sep 17 00:00:00 2001 From: Viki Val Date: Sun, 6 Jun 2021 12:24:03 +0200 Subject: [PATCH 05/40] 199 flexing --- .../components/subsocial/CommentAdapter.vue | 25 +++++++++++++++++-- .../components/subsocial/CommentWrapper.vue | 1 + dashboard/src/components/subsocial/Reply.vue | 2 ++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/dashboard/src/components/subsocial/CommentAdapter.vue b/dashboard/src/components/subsocial/CommentAdapter.vue index 5e0c671476..1531c0b655 100644 --- a/dashboard/src/components/subsocial/CommentAdapter.vue +++ b/dashboard/src/components/subsocial/CommentAdapter.vue @@ -1,7 +1,7 @@ @@ -30,7 +30,28 @@ export default class CommentAdapter extends Vue { } get account() { - return this.comment?.struct.owner.toHuman() + return this.commentStruct?.owner.toHuman() + } + + get spaceId() { + return this.commentStruct?.space_id.toHuman(); + } + + get extension() { + const extension = this.commentStruct?.extension + return (extension?.isComment && extension?.asComment) || (extension as any).Comment + } + + get commentStruct() { + return this.comment?.struct + } + + get upvotes() { + return this.commentStruct?.upvotes_count.toNumber() + } + + get downvotes() { + return this.commentStruct?.downvotes_count.toNumber() } diff --git a/dashboard/src/components/subsocial/CommentWrapper.vue b/dashboard/src/components/subsocial/CommentWrapper.vue index a7a4313d12..5b455629c5 100644 --- a/dashboard/src/components/subsocial/CommentWrapper.vue +++ b/dashboard/src/components/subsocial/CommentWrapper.vue @@ -37,6 +37,7 @@ export default class CommentWrapper extends Vue { const commentIds = await ss.substrate.getReplyIdsByPostId(new BN(this.postId)) const commentPromises = commentIds.map(cm => ss.findPublicPost(cm)) this.comments = await Promise.all(commentPromises) + console.log(this.comments) } } diff --git a/dashboard/src/components/subsocial/Reply.vue b/dashboard/src/components/subsocial/Reply.vue index dc62cc04e7..14d8027003 100644 --- a/dashboard/src/components/subsocial/Reply.vue +++ b/dashboard/src/components/subsocial/Reply.vue @@ -15,11 +15,13 @@ import { resolveSubsocialApi } from './api'; import exec, { execResultValue } from '@/utils/transactionExecutor'; import { notificationTypes, showNotification } from '@/utils/notification'; import { subsocialAddress } from './utils'; +import { Comment, OptionId } from '@subsocial/types/substrate/classes' @Component({}) export default class Reply extends Vue { protected message: string = ''; @Prop({ default: '' }) public postId!: string; + @Prop() public extension!: Comment | null; get accountId() { return this.$store.getters.getAuthAddress; From accdf5484e6ea7bde5e42a973ee5e3b4ad66b235 Mon Sep 17 00:00:00 2001 From: Viki Val Date: Sun, 6 Jun 2021 13:46:10 +0200 Subject: [PATCH 06/40] 199 comments WIP --- .../src/components/subsocial/Comment.vue | 19 +++++-- .../components/subsocial/CommentAdapter.vue | 2 +- dashboard/src/components/subsocial/Reply.vue | 54 +++++++++++++++---- 3 files changed, 60 insertions(+), 15 deletions(-) diff --git a/dashboard/src/components/subsocial/Comment.vue b/dashboard/src/components/subsocial/Comment.vue index c55613fa0f..34dc846899 100644 --- a/dashboard/src/components/subsocial/Comment.vue +++ b/dashboard/src/components/subsocial/Comment.vue @@ -21,8 +21,10 @@
@@ -57,9 +59,12 @@ const components = { export default class Comment extends Vue { @Prop(Boolean) public value!: boolean; @Prop({ default: '' }) public message!: any; - @Prop({ default: '' }) public postId!: string; - @Prop({ default: '' }) + @Prop(String) public postId!: string; + @Prop(String) public account!: string; + @Prop(Number) public upvotes!: number; + @Prop(Number) public downvotes!: number; + public profile: ProfileContentType = emptyObject(); get address() { @@ -143,7 +148,11 @@ export default class Comment extends Vue { diff --git a/dashboard/src/components/subsocial/CommentAdapter.vue b/dashboard/src/components/subsocial/CommentAdapter.vue index 1531c0b655..00e7e141f2 100644 --- a/dashboard/src/components/subsocial/CommentAdapter.vue +++ b/dashboard/src/components/subsocial/CommentAdapter.vue @@ -1,6 +1,6 @@