From 0c1e2d814e92dfeccfb4aff8417b1a01600dbb18 Mon Sep 17 00:00:00 2001 From: ivanng-oursky Date: Fri, 15 Jul 2022 12:29:16 +0800 Subject: [PATCH 1/2] react-app: fix error on empty proposer refs #269 --- .../ProposalDetailScreen/ProposalHeader.tsx | 57 +++++++------------ 1 file changed, 22 insertions(+), 35 deletions(-) diff --git a/react-app/src/components/ProposalDetailScreen/ProposalHeader.tsx b/react-app/src/components/ProposalDetailScreen/ProposalHeader.tsx index c9a94848..33d7f86a 100644 --- a/react-app/src/components/ProposalDetailScreen/ProposalHeader.tsx +++ b/react-app/src/components/ProposalDetailScreen/ProposalHeader.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useEffect, useMemo, useState } from "react"; +import React, { useCallback, useMemo } from "react"; import cn from "classnames"; import { isBefore, isWithinInterval } from "date-fns"; import { Link } from "react-router-dom"; @@ -6,7 +6,7 @@ import Paper from "../common/Paper/Paper"; import Badge from "../common/Badge/Badge"; import AppButton from "../common/Buttons/AppButton"; import LocalizedText from "../common/Localized/LocalizedText"; -import { translateAddress, truncateAddress } from "../../utils/address"; +import { truncateAddress } from "../../utils/address"; import UTCDatetime from "../common/DateTime/UTCDatetime"; import { convertBigNumberToLocalizedIntegerString } from "../../utils/number"; import Config from "../../config/Config"; @@ -16,7 +16,6 @@ import { DefaultReactionMap, ReactionType } from "../reactions/ReactionModel"; import ProposalStatusBadge from "../proposals/ProposalStatusBadge"; import { ProposalStatus } from "../../generated/graphql"; import AppRoutes from "../../navigation/AppRoutes"; -import { useQueryClient } from "../../providers/QueryClientProvider"; import { Proposal } from "./ProposalDetailScreenModel"; const CoinDenom = Config.chainInfo.currency.coinDenom; @@ -143,22 +142,6 @@ const ProposalTypeAndProposer: React.FC<{ proposal: Proposal }> = ({ }) => { const { type, proposerAddress, submitTime } = proposal; - const [proposerName, setProposerName] = useState(); - const { desmosQuery } = useQueryClient(); - - useEffect(() => { - desmosQuery - .getProfile(translateAddress(proposerAddress, "desmos")) - .then((res) => { - if (res) { - setProposerName(res.dtag); - } - }) - .catch((err) => { - console.error("failed to fetch desmos profile =", err); - }); - }, [desmosQuery, proposerAddress]); - return (
= ({

- - - {proposerName ?? truncateAddress(proposerAddress)} - - - {truncateAddress(proposerAddress)} - - + + {truncateAddress(proposerAddress)} + + + {truncateAddress(proposerAddress)} + + + ) : ( + - + )}
From 11907f69e4b9a2655eab82ca89cd319793295fcd Mon Sep 17 00:00:00 2001 From: ivanng-oursky Date: Fri, 15 Jul 2022 12:39:05 +0800 Subject: [PATCH 2/2] react-app: remove all desmos related code refs #274 --- react-app/config/config.template.js | 1 - react-app/package.json | 1 - react-app/src/clients/queryClient.ts | 7 - .../components/DummyScreen/DummyScreen.tsx | 28 +- .../PortfolioScreen/PortfolioPanel.tsx | 61 ++-- .../PortfolioScreen/PortfolioScreenAPI.ts | 8 +- .../PortfolioScreen/PortfolioScreenModel.ts | 2 - react-app/src/config/Config.ts | 2 - .../src/providers/QueryClientProvider.tsx | 24 +- react-app/yarn.lock | 260 +----------------- 10 files changed, 33 insertions(+), 361 deletions(-) diff --git a/react-app/config/config.template.js b/react-app/config/config.template.js index 9b27da27..e6c50d77 100644 --- a/react-app/config/config.template.js +++ b/react-app/config/config.template.js @@ -18,7 +18,6 @@ window.appConfig = { coinDecimals: 9, }, }, - desmosRpc: "https://rpc.mainnet.desmos.network", graphql: { endpoint: "http://localhost:8080/graphql", }, diff --git a/react-app/package.json b/react-app/package.json index d52bca28..f56e3865 100644 --- a/react-app/package.json +++ b/react-app/package.json @@ -15,7 +15,6 @@ "@cosmjs/stream": "^0.28.4", "@cosmjs/tendermint-rpc": "^0.28.4", "@cosmjs/utils": "^0.28.4", - "@desmoslabs/desmjs": "2.0.0-beta.4", "@graphql-codegen/introspection": "^2.1.1", "@headlessui/react": "^1.6.1", "@oursky/react-messageformat": "^2.0.2", diff --git a/react-app/src/clients/queryClient.ts b/react-app/src/clients/queryClient.ts index f5ffbf1b..8eb96e1f 100644 --- a/react-app/src/clients/queryClient.ts +++ b/react-app/src/clients/queryClient.ts @@ -21,7 +21,6 @@ import { setupSlashingExtension, } from "@cosmjs/stargate/build/modules"; import { Tendermint34Client } from "@cosmjs/tendermint-rpc"; -import { DesmosClient } from "@desmoslabs/desmjs"; import { ChainInfo } from "../config/Config"; export type ExtendedQueryClient = QueryClient & @@ -51,12 +50,6 @@ export const newQueryClient = async ( ); }; -export const newDesmosQueryClient = async ( - desmosRpc: string -): Promise => { - return DesmosClient.connect(desmosRpc); -}; - export const newStargateClient = async ( chainInfo: ChainInfo ): Promise => { diff --git a/react-app/src/components/DummyScreen/DummyScreen.tsx b/react-app/src/components/DummyScreen/DummyScreen.tsx index 0ee9a320..eacc3e55 100644 --- a/react-app/src/components/DummyScreen/DummyScreen.tsx +++ b/react-app/src/components/DummyScreen/DummyScreen.tsx @@ -1,8 +1,7 @@ -import React, { useCallback, useEffect, useState } from "react"; +import React, { useCallback, useState } from "react"; import cn from "classnames"; import * as Sentry from "@sentry/react"; import { Link } from "react-router-dom"; -import { Profile } from "@desmoslabs/desmjs-types/desmos/profiles/v1beta1/models_profile"; import { useQuery, useLazyQuery } from "@apollo/client"; import AppRoutes from "../../navigation/AppRoutes"; import LocalizedText from "../common/Localized/LocalizedText"; @@ -15,8 +14,6 @@ import { MeQueryQuery, } from "../../generated/graphql"; import { useAuth } from "../../providers/AuthProvider"; -import { useQueryClient } from "../../providers/QueryClientProvider"; -import { ConnectionStatus, useWallet } from "../../providers/WalletProvider"; import * as SectionedTable from "../SectionedTable/SectionedTable"; import AppButton from "../common/Buttons/AppButton"; @@ -74,10 +71,7 @@ const dummyTableItems: SectionedTable.SectionItem[] = [ const DummyScreen: React.FC = () => { const { setLocale } = useLocale(); const auth = useAuth(); - const { desmosQuery } = useQueryClient(); - const wallet = useWallet(); - const [profile, setProfile] = useState(null); const [dummyTableSort, setDummyTableSort] = useState(null); @@ -125,18 +119,6 @@ const DummyScreen: React.FC = () => { Sentry.captureException(new Error("This is my fake error message")); }, []); - useEffect(() => { - // test desmos query client on Oursky portfolio - if (wallet.status === ConnectionStatus.Connected) { - desmosQuery - .getProfile("desmos1ze7n3xsfd7na2saj070v0cx0eu7twng9dxxrlt") - .then((res) => { - setProfile(res); - }) - .catch((err) => console.error("Failed to query desmos profile =", err)); - } - }, [setProfile, wallet, desmosQuery]); - return (
{ Go to Overview Screen
-
-        {JSON.stringify(
-          { dtag: profile?.dtag, pictures: profile?.pictures },
-          null,
-          4
-        )}
-      
+
); }; @@ -133,14 +115,11 @@ const PortfolioPanel: React.FC = ({ "overflow-x-auto" )} > - +

- {portfolio.profile?.dtag ?? truncateAddress(portfolio.address)} + {truncateAddress(portfolio.address)}

| null; chainInfo: ChainInfo; - desmosRpc: string; graphql: { endpoint: string; }; @@ -66,7 +65,6 @@ const defaultConfig: IConfig = { coinDecimals: 9, }, }, - desmosRpc: "https://rpc.mainnet.desmos.network", graphql: { endpoint: "http://localhost:8080/graphql", }, diff --git a/react-app/src/providers/QueryClientProvider.tsx b/react-app/src/providers/QueryClientProvider.tsx index 9b312ad8..0c7ee6fd 100644 --- a/react-app/src/providers/QueryClientProvider.tsx +++ b/react-app/src/providers/QueryClientProvider.tsx @@ -1,11 +1,9 @@ import React, { useEffect, useMemo, useState } from "react"; -import { DesmosClient } from "@desmoslabs/desmjs"; import { StargateClient } from "@cosmjs/stargate"; import Config from "../config/Config"; import { ExtendedQueryClient, newQueryClient, - newDesmosQueryClient, newStargateClient, } from "../clients/queryClient"; @@ -15,7 +13,6 @@ interface QueryClientProviderProps { interface QueryClientProviderContextValue { query: ExtendedQueryClient; - desmosQuery: DesmosClient; stargateQuery: StargateClient; } @@ -26,13 +23,10 @@ const QueryClientContext = React.createContext( const QueryClientProvider: React.FC = (props) => { const { children } = props; const chainInfo = Config.chainInfo; - const desmosRpc = Config.desmosRpc; const [queryClient, setQueryClient] = useState( null ); - const [desmosQueryClient, setDesmosQueryClient] = - useState(null); const [stargateClient, setStargateClient] = useState( null ); @@ -40,10 +34,9 @@ const QueryClientProvider: React.FC = (props) => { const value = useMemo( (): QueryClientProviderContextValue => ({ query: queryClient!, - desmosQuery: desmosQueryClient!, stargateQuery: stargateClient!, }), - [queryClient, desmosQueryClient, stargateClient] + [queryClient, stargateClient] ); useEffect(() => { @@ -56,16 +49,6 @@ const QueryClientProvider: React.FC = (props) => { }); }, [chainInfo]); - useEffect(() => { - newDesmosQueryClient(desmosRpc) - .then((client) => { - setDesmosQueryClient(client); - }) - .catch((err) => { - console.log("Error creating desmos query client", err); - }); - }, [desmosRpc]); - useEffect(() => { newStargateClient(chainInfo) .then((client) => { @@ -78,10 +61,7 @@ const QueryClientProvider: React.FC = (props) => { return ( - {queryClient != null && - desmosQueryClient != null && - stargateClient != null && - children} + {queryClient != null && stargateClient != null && children} ); }; diff --git a/react-app/yarn.lock b/react-app/yarn.lock index 3c807055..7bb7e517 100644 --- a/react-app/yarn.lock +++ b/react-app/yarn.lock @@ -897,16 +897,6 @@ "@noble/hashes" "^1.0.0" protobufjs "^6.8.8" -"@cosmjs/amino@0.28.4", "@cosmjs/amino@^0.28.1": - version "0.28.4" - resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.28.4.tgz#9315f6876dba80148cf715ced44d1dc7a9b68b94" - integrity sha512-b8y5gFC0eGrH0IoYSNtDmTdsTgeQ1KFZ5YVOeIiKmzF91MeiciYO/MNqc027kctacZ+UbnVWGEUGyRBPi9ta/g== - dependencies: - "@cosmjs/crypto" "0.28.4" - "@cosmjs/encoding" "0.28.4" - "@cosmjs/math" "0.28.4" - "@cosmjs/utils" "0.28.4" - "@cosmjs/amino@0.28.7", "@cosmjs/amino@^0.28.4": version "0.28.7" resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.28.7.tgz#1dbfd6b426b4676280aacc1902ff3c732bafd148" @@ -917,29 +907,6 @@ "@cosmjs/math" "0.28.7" "@cosmjs/utils" "0.28.7" -"@cosmjs/amino@^0.25.4", "@cosmjs/amino@^0.25.6": - version "0.25.6" - resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.25.6.tgz#cdf9632253bfab7b1d2ef967124953d7bf16351f" - integrity sha512-9dXN2W7LHjDtJUGNsQ9ok0DfxeN3ca/TXnxCR3Ikh/5YqBqxI8Gel1J9PQO9L6EheYyh045Wff4bsMaLjyEeqQ== - dependencies: - "@cosmjs/crypto" "^0.25.6" - "@cosmjs/encoding" "^0.25.6" - "@cosmjs/math" "^0.25.6" - "@cosmjs/utils" "^0.25.6" - -"@cosmjs/crypto@0.28.4", "@cosmjs/crypto@^0.28.1": - version "0.28.4" - resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.28.4.tgz#b2f1ccb9edee7d357ed1dcd92bdb61f6a1ca06d3" - integrity sha512-JRxNLlED3DDh9d04A0RcRw3mYkoobN7q7wafUFy3vI1TjoyWx33v0gqqaYE6/hoo9ghUrJSVOfzVihl8fZajJA== - dependencies: - "@cosmjs/encoding" "0.28.4" - "@cosmjs/math" "0.28.4" - "@cosmjs/utils" "0.28.4" - "@noble/hashes" "^1" - bn.js "^5.2.0" - elliptic "^6.5.3" - libsodium-wrappers "^0.7.6" - "@cosmjs/crypto@0.28.7", "@cosmjs/crypto@^0.28.4": version "0.28.7" resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.28.7.tgz#546dd66234c9a10a67f7b490291283694fbdd8be" @@ -953,31 +920,6 @@ elliptic "^6.5.3" libsodium-wrappers "^0.7.6" -"@cosmjs/crypto@^0.25.6": - version "0.25.6" - resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.25.6.tgz#695d2d0d2195bdbdd5825d415385646244900bbb" - integrity sha512-ec+YcQLrg2ibcxtNrh4FqQnG9kG9IE/Aik2NH6+OXQdFU/qFuBTxSFcKDgzzBOChwlkXwydllM9Jjbp+dgIzRw== - dependencies: - "@cosmjs/encoding" "^0.25.6" - "@cosmjs/math" "^0.25.6" - "@cosmjs/utils" "^0.25.6" - bip39 "^3.0.2" - bn.js "^4.11.8" - elliptic "^6.5.3" - js-sha3 "^0.8.0" - libsodium-wrappers "^0.7.6" - ripemd160 "^2.0.2" - sha.js "^2.4.11" - -"@cosmjs/encoding@0.28.4", "@cosmjs/encoding@^0.28.1": - version "0.28.4" - resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.28.4.tgz#ea39eb4c27ebf7b35e62e9898adae189b86d0da7" - integrity sha512-N6Qnjs4dd8KwjW5m9t3L+rWYYGW2wyS+iLtJJ9DD8DiTTxpW9h7/AmUVO/dsRe5H2tV8/DzH/B9pFfpsgro22A== - dependencies: - base64-js "^1.3.0" - bech32 "^1.1.4" - readonly-date "^1.0.0" - "@cosmjs/encoding@0.28.7", "@cosmjs/encoding@^0.28.4": version "0.28.7" resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.28.7.tgz#7f04a782a558d5116ba61a5441a485be95684b79" @@ -987,23 +929,6 @@ bech32 "^1.1.4" readonly-date "^1.0.0" -"@cosmjs/encoding@^0.25.6": - version "0.25.6" - resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.25.6.tgz#da741a33eaf063a6d3611d7d68db5ca3938e0ef5" - integrity sha512-0imUOB8XkUstI216uznPaX1hqgvLQ2Xso3zJj5IV5oJuNlsfDj9nt/iQxXWbJuettc6gvrFfpf+Vw2vBZSZ75g== - dependencies: - base64-js "^1.3.0" - bech32 "^1.1.4" - readonly-date "^1.0.0" - -"@cosmjs/json-rpc@0.28.4": - version "0.28.4" - resolved "https://registry.yarnpkg.com/@cosmjs/json-rpc/-/json-rpc-0.28.4.tgz#19bc38b895bbb74122832a22aea5b25087143636" - integrity sha512-An8ZQi9OKbnS8ew/MyHhF90zQpXBF8RTj2wdvIH+Hr8yA6QjynY8hxRpUwYUt3Skc5NeUnTZNuWCzlluHnoxVg== - dependencies: - "@cosmjs/stream" "0.28.4" - xstream "^11.14.0" - "@cosmjs/json-rpc@0.28.7": version "0.28.7" resolved "https://registry.yarnpkg.com/@cosmjs/json-rpc/-/json-rpc-0.28.7.tgz#30b42a0e40e3573ecc702b93a5567485db6319cd" @@ -1012,13 +937,6 @@ "@cosmjs/stream" "0.28.7" xstream "^11.14.0" -"@cosmjs/math@0.28.4", "@cosmjs/math@^0.28.1": - version "0.28.4" - resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.28.4.tgz#ddc35b69fa1ffeaf5928f70d4c2faf9284627d84" - integrity sha512-wsWjbxFXvk46Dsx8jQ5vsBZOIQuiUIyaaZbUvxsgIhAMpuuBnV5O/drK87+B+4cL+umTelFqTbWnkqueVCIFxQ== - dependencies: - bn.js "^5.2.0" - "@cosmjs/math@0.28.7", "@cosmjs/math@^0.28.4": version "0.28.7" resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.28.7.tgz#6db91f7dddb364f9d2584817b5fa1bf6b06380c1" @@ -1026,27 +944,6 @@ dependencies: bn.js "^5.2.0" -"@cosmjs/math@^0.25.6": - version "0.25.6" - resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.25.6.tgz#25c7b106aaded889a5b80784693caa9e654b0c28" - integrity sha512-Fmyc9FJ8KMU34n7rdapMJrT/8rx5WhMw2F7WLBu7AVLcBh0yWsXIcMSJCoPHTOnMIiABjXsnrrwEaLrOOBfu6A== - dependencies: - bn.js "^4.11.8" - -"@cosmjs/proto-signing@0.28.4", "@cosmjs/proto-signing@^0.28.1": - version "0.28.4" - resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.28.4.tgz#7007651042bd05b3eee7e1c8562417bbed630198" - integrity sha512-4vgCLK9gOsdWzD78V5XbAsupSSyntPEzokWYhgRQNwgVTcKX1kg0eKZqUvF5ua5iL9x6MevfH/sgwPyiYleMBw== - dependencies: - "@cosmjs/amino" "0.28.4" - "@cosmjs/crypto" "0.28.4" - "@cosmjs/encoding" "0.28.4" - "@cosmjs/math" "0.28.4" - "@cosmjs/utils" "0.28.4" - cosmjs-types "^0.4.0" - long "^4.0.0" - protobufjs "~6.10.2" - "@cosmjs/proto-signing@0.28.7", "@cosmjs/proto-signing@^0.28.4": version "0.28.7" resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.28.7.tgz#f2d09c45ff9174182b878c26075a7e642cd6aa33" @@ -1060,25 +957,6 @@ cosmjs-types "^0.4.0" long "^4.0.0" -"@cosmjs/proto-signing@^0.25.4": - version "0.25.6" - resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.25.6.tgz#d9fc57b8e0a46cda97e192bd0435157b24949ff8" - integrity sha512-JpQ+Vnv9s6i3x8f3Jo0lJZ3VMnj3R5sMgX+8ti1LtB7qEYRR85qbDrEG9hDGIKqJJabvrAuCHnO6hYi0vJEJHA== - dependencies: - "@cosmjs/amino" "^0.25.6" - long "^4.0.0" - protobufjs "~6.10.2" - -"@cosmjs/socket@0.28.4": - version "0.28.4" - resolved "https://registry.yarnpkg.com/@cosmjs/socket/-/socket-0.28.4.tgz#f2c337bee18c631739ba6c2357fe564dbf17df45" - integrity sha512-jAEL3Ri+s8XuBM3mqgO4yvmeQu+R+704V37lGROC1B6kAbGxWRyOWrMdOOiFJzCZ35sSMB7L+xKjpE8ug0vJjg== - dependencies: - "@cosmjs/stream" "0.28.4" - isomorphic-ws "^4.0.1" - ws "^7" - xstream "^11.14.0" - "@cosmjs/socket@0.28.7": version "0.28.7" resolved "https://registry.yarnpkg.com/@cosmjs/socket/-/socket-0.28.7.tgz#adfc8f23ea91323697e2b07df1f180c9c6832287" @@ -1089,24 +967,6 @@ ws "^7" xstream "^11.14.0" -"@cosmjs/stargate@^0.28.1": - version "0.28.4" - resolved "https://registry.yarnpkg.com/@cosmjs/stargate/-/stargate-0.28.4.tgz#a5acbaa3451f7c853739064f799dec21097a06df" - integrity sha512-tdwudilP5iLNwDm4TOMBjWuL5YehLPqGlC5/7hjJM/kVHyzLFo4Lzt0dVEwr5YegH+RsRXH/VtFLQz+NYlCobw== - dependencies: - "@confio/ics23" "^0.6.8" - "@cosmjs/amino" "0.28.4" - "@cosmjs/encoding" "0.28.4" - "@cosmjs/math" "0.28.4" - "@cosmjs/proto-signing" "0.28.4" - "@cosmjs/stream" "0.28.4" - "@cosmjs/tendermint-rpc" "0.28.4" - "@cosmjs/utils" "0.28.4" - cosmjs-types "^0.4.0" - long "^4.0.0" - protobufjs "~6.10.2" - xstream "^11.14.0" - "@cosmjs/stargate@^0.28.4": version "0.28.7" resolved "https://registry.yarnpkg.com/@cosmjs/stargate/-/stargate-0.28.7.tgz#63711ca77e21dc6600f3d5b014d8e1a81baefd2d" @@ -1125,13 +985,6 @@ protobufjs "~6.11.3" xstream "^11.14.0" -"@cosmjs/stream@0.28.4": - version "0.28.4" - resolved "https://registry.yarnpkg.com/@cosmjs/stream/-/stream-0.28.4.tgz#88a294c2404107327f8e293b952db047ab182179" - integrity sha512-BDwDdFOrOgRx/Wm5nknb9YCV9HHIUcsOxykTDZqdArCUsn4QJBq79QIjp919G05Z8UemkoHwiUCUNB2BfoKmFw== - dependencies: - xstream "^11.14.0" - "@cosmjs/stream@0.28.7", "@cosmjs/stream@^0.28.4": version "0.28.7" resolved "https://registry.yarnpkg.com/@cosmjs/stream/-/stream-0.28.7.tgz#a088044aa9fe37f962adc6790c4e80a6c1c525cc" @@ -1139,22 +992,6 @@ dependencies: xstream "^11.14.0" -"@cosmjs/tendermint-rpc@0.28.4", "@cosmjs/tendermint-rpc@^0.28.1": - version "0.28.4" - resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.28.4.tgz#78835fdc8126baa3122c8b2b396c1d7d290c7167" - integrity sha512-iz6p4UW2QUZNh55WeJy9wHbMdqM8COo0AJdrGU4Ikb/xU0/H6b0dFPoEK+i6ngR0cSizh+hpTMzh3AA7ySUKlA== - dependencies: - "@cosmjs/crypto" "0.28.4" - "@cosmjs/encoding" "0.28.4" - "@cosmjs/json-rpc" "0.28.4" - "@cosmjs/math" "0.28.4" - "@cosmjs/socket" "0.28.4" - "@cosmjs/stream" "0.28.4" - "@cosmjs/utils" "0.28.4" - axios "^0.21.2" - readonly-date "^1.0.0" - xstream "^11.14.0" - "@cosmjs/tendermint-rpc@0.28.7", "@cosmjs/tendermint-rpc@^0.28.4": version "0.28.7" resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.28.7.tgz#1e3c6f0f670560753abbdb1986b243325089a534" @@ -1171,47 +1008,11 @@ readonly-date "^1.0.0" xstream "^11.14.0" -"@cosmjs/utils@0.28.4", "@cosmjs/utils@^0.28.1": - version "0.28.4" - resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.28.4.tgz#ecbc72458cdaffa6eeef572bc691502b3151330f" - integrity sha512-lb3TU6833arPoPZF8HTeG9V418CpurvqH5Aa/ls0I0wYdPDEMO6622+PQNQhQ8Vw8Az2MXoSyc8jsqrgawT84Q== - "@cosmjs/utils@0.28.7", "@cosmjs/utils@^0.28.4": version "0.28.7" resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.28.7.tgz#d0ac60da967975ac741482a4af5664ff3a0566c2" integrity sha512-0ya5mRaDY956n87dKjx6wfqgH/uEfrZyMswIhcEPqQPegwp4FDd6cwJtSdv/d5S7fgvoEs2UABvUFNzCT5C0hg== -"@cosmjs/utils@^0.25.6": - version "0.25.6" - resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.25.6.tgz#934d9a967180baa66163847616a74358732227ca" - integrity sha512-ofOYiuxVKNo238vCPPlaDzqPXy2AQ/5/nashBo5rvPZJkxt9LciGfUEQWPCOb1BIJDNx2Dzu0z4XCf/dwzl0Dg== - -"@desmoslabs/desmjs-types@2.0.0-beta.4": - version "2.0.0-beta.4" - resolved "https://registry.yarnpkg.com/@desmoslabs/desmjs-types/-/desmjs-types-2.0.0-beta.4.tgz#76fd3add78315827450513a42fa802ac92f17a3e" - integrity sha512-gBdVuUmyqAcirxdKzVXHtmQBS3QfzHglNYTeN0zgT/lH9AFnrpOMrbB8Z0hKiyUzkeJusTZo7pkX92gQ7n0vUA== - dependencies: - long "^4.0.0" - protobufjs "^6.11.2" - -"@desmoslabs/desmjs@2.0.0-beta.4": - version "2.0.0-beta.4" - resolved "https://registry.yarnpkg.com/@desmoslabs/desmjs/-/desmjs-2.0.0-beta.4.tgz#f75df633cd9dd7d06d35eab81bc4b402486c6898" - integrity sha512-Ywrb/fQt8fWKm3Xfcx5n9m1Xf/N+IzSIkvZgZ31v/79D5xX/4zN1cQkZO91eariKEsp70mUeB73vKeoXZs+ejw== - dependencies: - "@cosmjs/amino" "^0.28.1" - "@cosmjs/crypto" "^0.28.1" - "@cosmjs/encoding" "^0.28.1" - "@cosmjs/math" "^0.28.1" - "@cosmjs/proto-signing" "^0.28.1" - "@cosmjs/stargate" "^0.28.1" - "@cosmjs/tendermint-rpc" "^0.28.1" - "@cosmjs/utils" "^0.28.1" - "@desmoslabs/desmjs-types" "2.0.0-beta.4" - cosmjs-types "^0.4.1" - cosmos-wallet "^1.1.0" - long "^4.0.0" - "@endemolshinegroup/cosmiconfig-typescript-loader@3.0.2": version "3.0.2" resolved "https://registry.npmjs.org/@endemolshinegroup/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-3.0.2.tgz" @@ -2462,21 +2263,11 @@ resolved "https://registry.npmjs.org/@types/node/-/node-17.0.29.tgz" integrity sha512-tx5jMmMFwx7wBwq/V7OohKDVb/JwJU5qCVkeLMh1//xycAJ/ESuw9aJ9SEtlCZDYi2pBfe4JkisSoAtbOsBNAA== -"@types/node@11.11.6": - version "11.11.6" - resolved "https://registry.yarnpkg.com/@types/node/-/node-11.11.6.tgz#df929d1bb2eee5afdda598a41930fe50b43eaa6a" - integrity sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ== - "@types/node@>=13.7.0": version "17.0.35" resolved "https://registry.npmjs.org/@types/node/-/node-17.0.35.tgz" integrity sha512-vu1SrqBjbbZ3J6vwY17jBs8Sr/BKA+/a/WtjRG+whKg1iuLFOosq872EXS0eXWILdO36DHQQeku/ZcL6hz2fpg== -"@types/node@^13.7.0": - version "13.13.52" - resolved "https://registry.yarnpkg.com/@types/node/-/node-13.13.52.tgz#03c13be70b9031baaed79481c0c0cfb0045e53f7" - integrity sha512-s3nugnZumCC//n4moGGe6tkNMyYEdaDBitVjwPxXmR5lnMG5dHePinH2EdxkG3Rh1ghFHHixAG4NJhpJW1rthQ== - "@types/node@^16.7.13": version "16.11.31" resolved "https://registry.npmjs.org/@types/node/-/node-16.11.31.tgz" @@ -3363,16 +3154,6 @@ binary-extensions@^2.0.0: resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== -bip39@^3.0.2: - version "3.0.4" - resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.0.4.tgz#5b11fed966840b5e1b8539f0f54ab6392969b2a0" - integrity sha512-YZKQlb752TrUWqHWj7XAwCSjYEgGAk+/Aas3V7NyjQeZYsztO8JnQUaCWhcnL4T+jL8nvB8typ2jRPzTlgugNw== - dependencies: - "@types/node" "11.11.6" - create-hash "^1.1.0" - pbkdf2 "^3.0.9" - randombytes "^2.0.1" - bl@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" @@ -3387,7 +3168,7 @@ bn.js@4.11.8: resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" integrity sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA== -bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.8, bn.js@^4.11.9: +bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.9: version "4.12.0" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== @@ -4027,7 +3808,7 @@ cosmiconfig@7.0.1, cosmiconfig@^7.0.0, cosmiconfig@^7.0.1: path-type "^4.0.0" yaml "^1.10.0" -cosmjs-types@^0.4.0, cosmjs-types@^0.4.1: +cosmjs-types@^0.4.0: version "0.4.1" resolved "https://registry.yarnpkg.com/cosmjs-types/-/cosmjs-types-0.4.1.tgz#3b2a53ba60d33159dd075596ce8267cfa7027063" integrity sha512-I7E/cHkIgoJzMNQdFF0YVqPlaTqrqKHrskuSTIqlEyxfB5Lf3WKCajSXVK2yHOfOFfSux/RxEdpMzw/eO4DIog== @@ -4043,14 +3824,6 @@ cosmjs-types@^0.5.0: long "^4.0.0" protobufjs "~6.11.2" -cosmos-wallet@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/cosmos-wallet/-/cosmos-wallet-1.2.0.tgz#1243066fe933cf5482de1aec0b96169cebe867c6" - integrity sha512-lMEpNhjN6FHU6c8l/lYi1hWU/74bOlTmo3pz0mwVpCHjNSe5u7sZCO7j0dndd3oV0tM8tj/u3eJa4NgZxG9a0Q== - dependencies: - "@cosmjs/amino" "^0.25.4" - "@cosmjs/proto-signing" "^0.25.4" - create-ecdh@^4.0.0: version "4.0.4" resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.4.tgz#d6e7f4bffa66736085a0762fd3a632684dabcc4e" @@ -6791,7 +6564,7 @@ jju@~1.4.0: resolved "https://registry.yarnpkg.com/jju/-/jju-1.4.0.tgz#a3abe2718af241a2b2904f84a625970f389ae32a" integrity sha1-o6vicYryQaKykE+EpiWXDzia4yo= -js-sha3@0.8.0, js-sha3@^0.8.0: +js-sha3@0.8.0: version "0.8.0" resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== @@ -8489,7 +8262,7 @@ path-type@^4.0.0: resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-1.0.1.tgz#d98454a9c3753d5790860f16f68867b9e46be1fd" integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== -pbkdf2@^3.0.3, pbkdf2@^3.0.9: +pbkdf2@^3.0.3: version "3.1.2" resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.2.tgz#dd822aa0887580e52f1a039dc3eda108efae3075" integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA== @@ -8680,7 +8453,7 @@ property-information@^6.0.0: resolved "https://registry.yarnpkg.com/property-information/-/property-information-6.1.1.tgz#5ca85510a3019726cb9afed4197b7b8ac5926a22" integrity sha512-hrzC564QIl0r0vy4l6MvRLhafmUowhO/O3KgVSoXIbbA2Sz4j8HGpJc6T2cubRVwMwpdiG/vKGfhT4IixmKN9w== -protobufjs@^6.11.2, protobufjs@^6.8.8, protobufjs@~6.11.3: +protobufjs@^6.8.8, protobufjs@~6.11.3: version "6.11.3" resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.11.3.tgz#637a527205a35caa4f3e2a9a4a13ddffe0e7af74" integrity sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg== @@ -8699,25 +8472,6 @@ protobufjs@^6.11.2, protobufjs@^6.8.8, protobufjs@~6.11.3: "@types/node" ">=13.7.0" long "^4.0.0" -protobufjs@~6.10.2: - version "6.10.3" - resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.10.3.tgz#11ed1dd02acbfcb330becf1611461d4b407f9eef" - integrity sha512-yvAslS0hNdBhlSKckI4R1l7wunVilX66uvrjzE4MimiAt7/qw1nLpMhZrn/ObuUTM/c3Xnfl01LYMdcSJe6dwg== - dependencies: - "@protobufjs/aspromise" "^1.1.2" - "@protobufjs/base64" "^1.1.2" - "@protobufjs/codegen" "^2.0.4" - "@protobufjs/eventemitter" "^1.1.0" - "@protobufjs/fetch" "^1.1.0" - "@protobufjs/float" "^1.0.2" - "@protobufjs/inquire" "^1.1.0" - "@protobufjs/path" "^1.1.2" - "@protobufjs/pool" "^1.1.0" - "@protobufjs/utf8" "^1.1.0" - "@types/long" "^4.0.1" - "@types/node" "^13.7.0" - long "^4.0.0" - protobufjs@~6.11.2: version "6.11.2" resolved "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.2.tgz" @@ -9379,7 +9133,7 @@ rimraf@^3.0.0, rimraf@^3.0.2: dependencies: glob "^7.1.3" -ripemd160@^2.0.0, ripemd160@^2.0.1, ripemd160@^2.0.2: +ripemd160@^2.0.0, ripemd160@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA== @@ -9513,7 +9267,7 @@ setimmediate@^1.0.5: resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" integrity sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU= -sha.js@^2.4.0, sha.js@^2.4.11, sha.js@^2.4.8: +sha.js@^2.4.0, sha.js@^2.4.8: version "2.4.11" resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==