From 612344a0283311faa55477d3200783a37a4d16b4 Mon Sep 17 00:00:00 2001 From: impelcrypto <92044428+impelcrypto@users.noreply.github.com> Date: Thu, 17 Aug 2023 20:49:00 -0700 Subject: [PATCH] fix: updated Astar Docs links (#905) * fix: links * fix: Acala and Karura endpoints * fix: words for ledgerNotOpened --- src/components/assets/transfer/XcmBridge.vue | 2 +- src/config/wallets.ts | 2 +- src/data/ads.json | 2 +- src/data/featured_dapp.json | 2 +- src/i18n/en-US/index.ts | 2 +- src/links/index.ts | 2 +- .../information/faq/dapp-staking/index.ts | 6 ++-- src/modules/information/faq/transfer/index.ts | 28 +++++++++---------- src/modules/xcm/index.ts | 4 +-- 9 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/components/assets/transfer/XcmBridge.vue b/src/components/assets/transfer/XcmBridge.vue index dfbd1e426..1d272f99d 100644 --- a/src/components/assets/transfer/XcmBridge.vue +++ b/src/components/assets/transfer/XcmBridge.vue @@ -40,7 +40,7 @@ />
diff --git a/src/config/wallets.ts b/src/config/wallets.ts index 47bd5be21..9bb3a21f8 100644 --- a/src/config/wallets.ts +++ b/src/config/wallets.ts @@ -86,7 +86,7 @@ export const supportWalletObj = { name: 'Polkadot.js', source: SupportWallet.PolkadotJs, walletUrl: 'https://polkadot.js.org/extension/', - guideUrl: 'https://docs.astar.network/docs/user-guides/create-wallet/#create-account', + guideUrl: 'https://docs.astar.network/docs/use/user-guides/create-wallet', isSupportBrowserExtension: true, isSupportMobileApp: false, }, diff --git a/src/data/ads.json b/src/data/ads.json index e6328b362..55e96a6b0 100644 --- a/src/data/ads.json +++ b/src/data/ads.json @@ -3,7 +3,7 @@ "img": "https://firebasestorage.googleapis.com/v0/b/astarnetwork-a4924.appspot.com/o/astar-dapps%2F0x1de7c3A07918fb4BE9159703e73D6e0b0736CaBC_rIb1fUz3_400x400%20(1).jpeg?alt=media&token=3832d94b-81bd-4e12-9d8b-96d83896ed3a", "title": "What is dApp Staking", "subtitle": "Learn our unique solution", - "link": "https://docs.astar.network/docs/dapp-staking/" + "link": "https://docs.astar.network/docs/build/dapp-staking/#what-is-dapp-staking" }, { "img": "https://firebasestorage.googleapis.com/v0/b/astarnetwork-a4924.appspot.com/o/astar-dapps%2F0x1de7c3A07918fb4BE9159703e73D6e0b0736CaBC_rIb1fUz3_400x400%20(1).jpeg?alt=media&token=3832d94b-81bd-4e12-9d8b-96d83896ed3a", diff --git a/src/data/featured_dapp.json b/src/data/featured_dapp.json index dceef1d8e..240aff378 100644 --- a/src/data/featured_dapp.json +++ b/src/data/featured_dapp.json @@ -4,7 +4,7 @@ "category": "Developer Incentive", "title": "", "subtitle": "Join the community and know how it works", - "link": "https://docs.astar.network/docs/dapp-staking/" + "link": "https://docs.astar.network/docs/build/dapp-staking/#what-is-dapp-staking" }, { "img": "", diff --git a/src/i18n/en-US/index.ts b/src/i18n/en-US/index.ts index 41c1038ed..c245f6ffb 100644 --- a/src/i18n/en-US/index.ts +++ b/src/i18n/en-US/index.ts @@ -62,7 +62,7 @@ export default { insufficientExistentialDeposit: 'Account balances in {network} network is below than the existential deposit amount', withdrawalNotSupport: "The portal doesn't support withdrawing to {chain} at this moment", - ledgerNotOpened: 'Ledger has not opened Astar App', + ledgerNotOpened: 'Ledger has not opened Astar App. Please open it and refresh this page.', }, toast: { transactionFailed: 'Transaction failed with error: {message}', diff --git a/src/links/index.ts b/src/links/index.ts index f0bb05b4b..caa769bd4 100644 --- a/src/links/index.ts +++ b/src/links/index.ts @@ -4,7 +4,7 @@ export const docsUrl = { topPage: 'https://docs.astar.network', evmDeposit: 'https://docs.astar.network/tutorial/how-to-send-astr-sdn-from-metamask-to-polkadot.js', - troubleShooting: 'https://docs.astar.network/docs/user-guides/troubleshooting', + troubleShooting: 'https://docs.astar.network/docs/use/user-guides/troubleshooting', }; export const socialUrl = { diff --git a/src/modules/information/faq/dapp-staking/index.ts b/src/modules/information/faq/dapp-staking/index.ts index 802238b1d..a7f69c531 100644 --- a/src/modules/information/faq/dapp-staking/index.ts +++ b/src/modules/information/faq/dapp-staking/index.ts @@ -3,14 +3,14 @@ import { Faq } from 'src/modules/information'; export const faqDappStaking: Faq[] = [ { title: 'What is dApp Staking?', - url: 'https://docs.astar.network/docs/dapp-staking', + url: 'https://docs.astar.network/docs/build/dapp-staking', }, { title: 'How can my project get listed?', - url: 'https://docs.astar.network/docs/dapp-staking/for-devs/register-dapp', + url: 'https://docs.astar.network/docs/build/dapp-staking/for-devs/register-dapp', }, { title: 'How can I unstake?', - url: 'https://docs.astar.network/docs/dapp-staking/for-stakers/unbonding', + url: 'https://docs.astar.network/docs/build/dapp-staking/for-stakers/unbonding', }, ]; diff --git a/src/modules/information/faq/transfer/index.ts b/src/modules/information/faq/transfer/index.ts index f84219b3d..9f9f3f8b2 100644 --- a/src/modules/information/faq/transfer/index.ts +++ b/src/modules/information/faq/transfer/index.ts @@ -3,15 +3,15 @@ import { Faq } from 'src/modules/information'; export const faqH160Transfer: Faq[] = [ { title: 'What is Astar Native Account and how do I create it?', - url: 'https://docs.astar.network/docs/user-guides/create-wallet', + url: 'https://docs.astar.network/docs/use/user-guides/create-wallet', }, { title: 'How do I send ASTR to Exchanges?', - url: 'https://docs.astar.network/docs/user-guides/transfer-tokens/#sending-astrsdn-to-central-exchanges-from-astar-network', + url: 'https://docs.astar.network/docs/use/user-guides/transfer-tokens/#sending-astrsdn-to-centralized-exchanges-from-astar-network', }, { title: 'What is the easiest way to bring tokens to Astar from other chains?', - url: 'https://docs.astar.network/docs/user-guides/xc-swap', + url: 'https://docs.astar.network/docs/use/user-guides/xc-swap', }, { title: 'Any video tutorials available for new users?', @@ -22,15 +22,15 @@ export const faqH160Transfer: Faq[] = [ export const faqH160XcmBridge: Faq[] = [ { title: 'How can I find my other chains addresses?', - url: 'https://docs.astar.network/docs/xcm/faq#q-where-can-i-find-other-chains-addresses', + url: 'https://docs.astar.network/docs/learn/xcm/faq/#q-where-can-i-find-other-chains-addresses', }, { title: 'What is the easiest way to bring tokens to Astar from other chains?', - url: 'https://docs.astar.network/docs/user-guides/xc-swap', + url: 'https://docs.astar.network/docs/use/user-guides/xc-swap', }, { title: 'What is Minimum Balance?', - url: 'https://docs.astar.network/docs/user-guides/transfer-tokens#cross-chain-transferxcm', + url: 'https://docs.astar.network/docs/use/user-guides/transfer-tokens/#cross-chain-transfer-xcm', }, { title: 'Any video tutorials available for new users?', @@ -41,14 +41,14 @@ export const faqH160XcmBridge: Faq[] = [ export const faqSs58Transfer: Faq[] = [ { title: 'How can I send ASTR/SDN from Exchanges to Portal?', - url: 'https://docs.astar.network/docs/user-guides/transfer-tokens#sending-astrsdn-to-astar-network-from-central-exchanges', + url: 'https://docs.astar.network/docs/use/user-guides/transfer-tokens/#sending-astrsdn-to-centralized-exchanges-from-astar-network', }, { title: 'What is Minimum Balance?', - url: 'https://docs.astar.network/docs/user-guides/transfer-tokens#cross-chain-transferxcm', + url: 'https://docs.astar.network/docs/use/user-guides/transfer-tokens/#cross-chain-transfer-xcm', }, { - title: 'Any video tutorials available for new users? ', + title: 'Any video tutorials available for new users?', url: 'https://www.youtube.com/c/AstarNetwork', }, ]; @@ -56,22 +56,22 @@ export const faqSs58Transfer: Faq[] = [ export const faqSs58XcmBridge: Faq[] = [ { title: 'What is XCM?', - url: 'https://docs.astar.network/docs/xcm/', + url: 'https://docs.astar.network/docs/learn/xcm/using-xcm/', }, { title: 'How can I find my other chains addresses?', - url: 'https://docs.astar.network/docs/xcm/faq#q-where-can-i-find-other-chains-addresses', + url: 'https://docs.astar.network/docs/learn/xcm/faq/#q-where-can-i-find-other-chains-addresses', }, { title: 'What is the easiest way to bring tokens to Astar from other chains?', - url: 'https://docs.astar.network/docs/user-guides/xc-swap', + url: 'https://docs.astar.network/docs/use/user-guides/xc-swap', }, { title: 'What is Minimum Balance?', - url: 'https://docs.astar.network/docs/user-guides/transfer-tokens#cross-chain-transferxcm', + url: 'https://docs.astar.network/docs/use/user-guides/transfer-tokens/#cross-chain-transfer-xcm', }, { - title: 'Any video tutorials available for new users? ', + title: 'Any video tutorials available for new users?', url: 'https://www.youtube.com/c/AstarNetwork', }, ]; diff --git a/src/modules/xcm/index.ts b/src/modules/xcm/index.ts index 466640530..913a78a46 100644 --- a/src/modules/xcm/index.ts +++ b/src/modules/xcm/index.ts @@ -119,7 +119,7 @@ export let xcmChainObj: XcmChainObj = { relayChain: Chain.KUSAMA, img: require('/src/assets/img/token/kar.png'), parachainId: parachainIds.KARURA, - endpoint: 'wss://karura.api.onfinality.io/public-ws', + endpoint: 'wss://karura-rpc-0.aca-api.network', subscan: 'https://karura.subscan.io', isAstarNativeToken: true, }, @@ -128,7 +128,7 @@ export let xcmChainObj: XcmChainObj = { relayChain: Chain.POLKADOT, img: require('/src/assets/img/token/aca.png'), parachainId: parachainIds.ACALA, - endpoint: 'wss://acala-polkadot.api.onfinality.io/public-ws', + endpoint: 'wss://acala-rpc-0.aca-api.network', chopsticksEndpoint: 'ws://localhost:9946', subscan: 'https://acala.subscan.io', isAstarNativeToken: true,