From efe952fdf29add4d30599ac8753e24f04eda71a3 Mon Sep 17 00:00:00 2001 From: fmtabbara Date: Wed, 20 Mar 2024 15:48:17 +0000 Subject: [PATCH] explorer package updates --- explorer/.env.dev | 4 +- explorer/src/pages/Delegations/index.tsx | 5 +- explorer/src/pages/Mixnodes/index.tsx | 6 ++ .../packages/validator-client/package.json | 4 +- yarn.lock | 66 +++++++++---------- 5 files changed, 46 insertions(+), 39 deletions(-) diff --git a/explorer/.env.dev b/explorer/.env.dev index 013d526f82..3cc86ae00c 100644 --- a/explorer/.env.dev +++ b/explorer/.env.dev @@ -1,11 +1,9 @@ # When running the explorer API locally #EXPLORER_API_URL=http://localhost:8000/v1 -# EXPLORER_API_URL=https://sandbox-explorer.nymtech.net/api/v1 -EXPLORER_API_URL=https://explorer.nymtech.net/api/v1 +EXPLORER_API_URL=https://sandbox-explorer.nymtech.net/api/v1 NYM_API_URL=https://sandbox-nym-api1.nymtech.net VALIDATOR_URL=https://rpc.sandbox.nymtech.net BIG_DIPPER_URL=https://sandbox-blocks.nymtech.net CURRENCY_DENOM=unym CURRENCY_STAKING_DENOM=unyx -NYM_MIXNET_CONTRACT=n17srjznxl9dvzdkpwpw24gg668wc73val88a6m5ajg6ankwvz9wtst0cznr diff --git a/explorer/src/pages/Delegations/index.tsx b/explorer/src/pages/Delegations/index.tsx index 3305b542df..6aabec5f51 100644 --- a/explorer/src/pages/Delegations/index.tsx +++ b/explorer/src/pages/Delegations/index.tsx @@ -12,6 +12,7 @@ import { PendingEvent, useDelegationsContext, } from '@src/context/delegations'; +import { urls } from '@src/utils'; const mapToDelegationsRow = (delegation: DelegationWithRewards, index: number) => ({ identity: delegation.identityKey, @@ -80,7 +81,9 @@ const DelegationsPage = () => { setConfirmationModalProps({ status: 'success', message: 'Undelegation successful', - transactions: [{ url: `${tx.transactionHash}`, hash: tx.transactionHash }], + transactions: [ + { url: `${urls('MAINNET').blockExplorer}/transaction/${tx.transactionHash}`, hash: tx.transactionHash }, + ], }); } } catch (error) { diff --git a/explorer/src/pages/Mixnodes/index.tsx b/explorer/src/pages/Mixnodes/index.tsx index 5e5caf9d2f..79a88f7053 100644 --- a/explorer/src/pages/Mixnodes/index.tsx +++ b/explorer/src/pages/Mixnodes/index.tsx @@ -414,6 +414,12 @@ export const PageMixnodes: FCWithChildren = () => { navigate('/delegations'); } }} + sx={{ + width: { + xs: '90%', + sm: 600, + }, + }} /> )} diff --git a/sdk/typescript/packages/validator-client/package.json b/sdk/typescript/packages/validator-client/package.json index 4a9ff69810..2b91e92a5e 100644 --- a/sdk/typescript/packages/validator-client/package.json +++ b/sdk/typescript/packages/validator-client/package.json @@ -27,12 +27,12 @@ "tsc": "tsc --noEmit" }, "devDependencies": { - "@cosmjs/cosmwasm-stargate": "0.29.5", + "@cosmjs/cosmwasm-stargate": "^0.29.5", "@cosmjs/crypto": "^0.29.5", "@cosmjs/math": "^0.29.5", "@cosmjs/proto-signing": "^0.29.5", "@cosmjs/stargate": "^0.29.5", - "@cosmjs/tendermint-rpc": "0.29.5", + "@cosmjs/tendermint-rpc": "^0.29.5", "@favware/rollup-type-bundler": "^2.0.0", "@nymproject/types": "^1.0.0", "@rollup/plugin-commonjs": "^24.0.1", diff --git a/yarn.lock b/yarn.lock index 7a0aa40538..8cf3d3c6ee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1402,23 +1402,6 @@ "@cosmjs/utils" "^0.25.6" pako "^2.0.2" -"@cosmjs/cosmwasm-stargate@0.29.5": - version "0.29.5" - resolved "https://registry.yarnpkg.com/@cosmjs/cosmwasm-stargate/-/cosmwasm-stargate-0.29.5.tgz#3f257da682658833e0f4eb9e8ff758e4d927663a" - integrity sha512-TNdSvm2tEE3XMCuxHxquzls56t40hC8qnLeYJWHsY2ECZmRK3KrnpRReEr7N7bLtODToK7X/riYrV0JaYxjrYA== - dependencies: - "@cosmjs/amino" "^0.29.5" - "@cosmjs/crypto" "^0.29.5" - "@cosmjs/encoding" "^0.29.5" - "@cosmjs/math" "^0.29.5" - "@cosmjs/proto-signing" "^0.29.5" - "@cosmjs/stargate" "^0.29.5" - "@cosmjs/tendermint-rpc" "^0.29.5" - "@cosmjs/utils" "^0.29.5" - cosmjs-types "^0.5.2" - long "^4.0.0" - pako "^2.0.2" - "@cosmjs/cosmwasm-stargate@^0.25.5": version "0.25.6" resolved "https://registry.yarnpkg.com/@cosmjs/cosmwasm-stargate/-/cosmwasm-stargate-0.25.6.tgz#26a788213833aaffc4bc1a87df650741e0b8fd63" @@ -1437,6 +1420,23 @@ pako "^2.0.2" protobufjs "~6.10.2" +"@cosmjs/cosmwasm-stargate@^0.29.5": + version "0.29.5" + resolved "https://registry.yarnpkg.com/@cosmjs/cosmwasm-stargate/-/cosmwasm-stargate-0.29.5.tgz#3f257da682658833e0f4eb9e8ff758e4d927663a" + integrity sha512-TNdSvm2tEE3XMCuxHxquzls56t40hC8qnLeYJWHsY2ECZmRK3KrnpRReEr7N7bLtODToK7X/riYrV0JaYxjrYA== + dependencies: + "@cosmjs/amino" "^0.29.5" + "@cosmjs/crypto" "^0.29.5" + "@cosmjs/encoding" "^0.29.5" + "@cosmjs/math" "^0.29.5" + "@cosmjs/proto-signing" "^0.29.5" + "@cosmjs/stargate" "^0.29.5" + "@cosmjs/tendermint-rpc" "^0.29.5" + "@cosmjs/utils" "^0.29.5" + cosmjs-types "^0.5.2" + long "^4.0.0" + pako "^2.0.2" + "@cosmjs/cosmwasm-stargate@^0.32.0": version "0.32.1" resolved "https://registry.yarnpkg.com/@cosmjs/cosmwasm-stargate/-/cosmwasm-stargate-0.32.1.tgz#2210007320c3f68a73e8cf8b9344a9dc6d4729b7" @@ -1820,22 +1820,6 @@ dependencies: xstream "^11.14.0" -"@cosmjs/tendermint-rpc@0.29.5", "@cosmjs/tendermint-rpc@^0.29.5": - version "0.29.5" - resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.29.5.tgz#f205c10464212bdf843f91bb2e4a093b618cb5c2" - integrity sha512-ar80twieuAxsy0x2za/aO3kBr2DFPAXDmk2ikDbmkda+qqfXgl35l9CVAAjKRqd9d+cRvbQyb5M4wy6XQpEV6w== - dependencies: - "@cosmjs/crypto" "^0.29.5" - "@cosmjs/encoding" "^0.29.5" - "@cosmjs/json-rpc" "^0.29.5" - "@cosmjs/math" "^0.29.5" - "@cosmjs/socket" "^0.29.5" - "@cosmjs/stream" "^0.29.5" - "@cosmjs/utils" "^0.29.5" - axios "^0.21.2" - readonly-date "^1.0.0" - xstream "^11.14.0" - "@cosmjs/tendermint-rpc@^0.25.6": version "0.25.6" resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.25.6.tgz#8198a08b0d0e1d6580618f3f22db83366329c9c3" @@ -1851,6 +1835,22 @@ readonly-date "^1.0.0" xstream "^11.14.0" +"@cosmjs/tendermint-rpc@^0.29.5": + version "0.29.5" + resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.29.5.tgz#f205c10464212bdf843f91bb2e4a093b618cb5c2" + integrity sha512-ar80twieuAxsy0x2za/aO3kBr2DFPAXDmk2ikDbmkda+qqfXgl35l9CVAAjKRqd9d+cRvbQyb5M4wy6XQpEV6w== + dependencies: + "@cosmjs/crypto" "^0.29.5" + "@cosmjs/encoding" "^0.29.5" + "@cosmjs/json-rpc" "^0.29.5" + "@cosmjs/math" "^0.29.5" + "@cosmjs/socket" "^0.29.5" + "@cosmjs/stream" "^0.29.5" + "@cosmjs/utils" "^0.29.5" + axios "^0.21.2" + readonly-date "^1.0.0" + xstream "^11.14.0" + "@cosmjs/tendermint-rpc@^0.32.0", "@cosmjs/tendermint-rpc@^0.32.1": version "0.32.1" resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.32.1.tgz#f7f8929619648fb0520047c6d930dc65588345d2"