|
1 | 1 | import 'package:catalyst_cardano_serialization/catalyst_cardano_serialization.dart'; |
| 2 | +import 'package:catalyst_voices/dependency/dependencies.dart'; |
| 3 | +import 'package:catalyst_voices_models/catalyst_voices_models.dart'; |
2 | 4 |
|
3 | 5 | abstract class VoicesConstants { |
| 6 | + static const _docs = 'https://docs.projectcatalyst.io'; |
| 7 | + static const _catalystApp = '$_docs/catalyst-tools/catalyst-app'; |
| 8 | + |
4 | 9 | /// External urls |
5 | | - static const supportedWalletsUrl = |
6 | | - 'https://docs.projectcatalyst.io/current-fund/voter-registration/supported-wallets'; |
7 | | - static const tosUrl = |
8 | | - 'https://docs.projectcatalyst.io/current-fund/fund-basics/project-catalyst-terms-and-conditions'; |
| 10 | + static const supportedWalletsUrl = '$_docs/current-fund/voter-registration/supported-wallets'; |
| 11 | + static const tosUrl = '$_docs/current-fund/fund-basics/project-catalyst-terms-and-conditions'; |
9 | 12 | static const privacyPolicyUrl = |
10 | | - 'https://docs.projectcatalyst.io/current-fund/fund-basics/project-catalyst-terms-and-conditions/catalyst-fc-privacy-policy'; |
| 13 | + '$_docs/current-fund/fund-basics/project-catalyst-terms-and-conditions/catalyst-fc-privacy-policy'; |
11 | 14 | static const supportUrl = 'https://catalystiog.zendesk.com/hc/en-us/requests/new'; |
12 | | - static const docsUrl = 'https://docs.projectcatalyst.io/'; |
13 | | - static const beforeSubmissionUrl = |
14 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/app-timeline#before-submission'; |
15 | | - static const afterSubmissionUrl = |
16 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/stay-involved'; |
17 | | - static const becomeReviewerUrl = 'https://reviews.projectcatalyst.io/'; |
18 | | - static const votingRegistrationUrl = |
19 | | - 'https://docs.projectcatalyst.io/current-fund/voter-registration'; |
| 15 | + static const docsUrl = '$_docs/'; |
| 16 | + static const beforeSubmissionUrl = '$_catalystApp/app-timeline#before-submission'; |
| 17 | + static const afterSubmissionUrl = '$_catalystApp/stay-involved'; |
| 18 | + static const votingRegistrationUrl = '$_docs/current-fund/voter-registration'; |
20 | 19 | static const walletTroubleshootingUrl = |
21 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/getting-started#wallet-connect-troubleshooting'; |
22 | | - static const mobileExperienceUrl = |
23 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/mobile-experience'; |
24 | | - static const catalystKnowledgeBaseUrl = |
25 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app'; |
| 20 | + '$_catalystApp/getting-started#wallet-connect-troubleshooting'; |
| 21 | + static const mobileExperienceUrl = '$_catalystApp/mobile-experience'; |
| 22 | + static const catalystKnowledgeBaseUrl = _catalystApp; |
26 | 23 | static const proposalPublishingDocsUrl = |
27 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/create-and-submit-proposals-in-workspace#proposal-publishing'; |
28 | | - static const getStartedUrl = |
29 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/getting-started'; |
30 | | - static const setupBaseProfileUrl = |
31 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/getting-started#setup-base-profile'; |
32 | | - static const createCatalystKeychainUrl = |
33 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/getting-started#create-catalyst-keychain'; |
| 24 | + '$_catalystApp/create-and-submit-proposals-in-workspace#proposal-publishing'; |
| 25 | + static const getStartedUrl = '$_catalystApp/getting-started'; |
| 26 | + static const setupBaseProfileUrl = '$_catalystApp/getting-started#setup-base-profile'; |
| 27 | + static const createCatalystKeychainUrl = '$_catalystApp/getting-started#create-catalyst-keychain'; |
34 | 28 | static const officiallySupportedWalletsUrl = |
35 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/getting-started#officially-supported-wallets'; |
36 | | - static const linkCardanoWalletUrl = |
37 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/getting-started#link-cardano-wallet-and-roles'; |
38 | | - static const selectRolesUrl = |
39 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/getting-started#select-roles'; |
| 29 | + '$_catalystApp/getting-started#officially-supported-wallets'; |
| 30 | + static const linkCardanoWalletUrl = '$_catalystApp/getting-started#link-cardano-wallet-and-roles'; |
| 31 | + static const selectRolesUrl = '$_catalystApp/getting-started#select-roles'; |
40 | 32 | static const submitRegistrationTransactionUrl = |
41 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/getting-started#submit-registration-transaction'; |
42 | | - static const restoreKeychainUrl = |
43 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/restore-keychain'; |
44 | | - static const myAccountUrl = |
45 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/my-account'; |
| 33 | + '$_catalystApp/getting-started#submit-registration-transaction'; |
| 34 | + static const restoreKeychainUrl = '$_catalystApp/restore-keychain'; |
| 35 | + static const myAccountUrl = '$_catalystApp/my-account'; |
46 | 36 | static const insertNewImageDocsUrl = |
47 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/create-and-submit-proposals-in-workspace/using-images'; |
| 37 | + '$_catalystApp/create-and-submit-proposals-in-workspace/using-images'; |
48 | 38 | static const joinNewsletterUrl = 'https://mpc.projectcatalyst.io/newsletter-signup'; |
49 | | - static const unlockAccountUrl = |
50 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/my-account#lock-unlock-account'; |
51 | | - static const confirmSeedPhraseUrl = |
52 | | - 'https://docs.projectcatalyst.io/catalyst-tools/catalyst-app/getting-started#confirm-seed-phrase'; |
| 39 | + static const unlockAccountUrl = '$_catalystApp/my-account#lock-unlock-account'; |
| 40 | + static const confirmSeedPhraseUrl = '$_catalystApp/getting-started#confirm-seed-phrase'; |
| 41 | + |
| 42 | + static String becomeReviewerUrl() { |
| 43 | + return Dependencies.instance.get<AppEnvironment>().type.reviews.toString(); |
| 44 | + } |
53 | 45 |
|
54 | 46 | static String cardanoScanStakeAddressUrl(ShelleyAddress stakeAddress) { |
55 | 47 | switch (stakeAddress.network) { |
|
0 commit comments