-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathurls.ts
More file actions
148 lines (125 loc) · 5.98 KB
/
Copy pathurls.ts
File metadata and controls
148 lines (125 loc) · 5.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
import { TransactionHistorySchemaRevision } from '@/types/TransactionHistory';
import {
EvmChainId,
EvmChainIdMap,
MiddlewareChainMap,
SupportedMiddlewareChain,
} from './chains';
type Url = `http${'s' | ''}://${string}`;
export const BACKEND_URL: Url = `https://localhost:${process.env.NODE_ENV === 'production' ? 8765 : 8000}/api`;
export const BACKEND_URL_V2: Url = `https://localhost:${process.env.NODE_ENV === 'production' ? 8765 : 8000}/api/v2`;
// pearl site
export const PEARL_URL: Url = 'https://www.pearl.you';
export const FAQ_URL: Url = `${PEARL_URL}#FAQ`;
export const DOWNLOAD_URL: Url = `${PEARL_URL}#update`;
// to be moved to pearl site
export const TERMS_AND_CONDITIONS_URL: Url = 'https://olas.network/pearl-terms';
// thegraph
export const REWARDS_HISTORY_SUBGRAPH_URLS_BY_EVM_CHAIN: Record<
EvmChainId,
Url
> = {
[EvmChainIdMap.Gnosis]: 'https://staking-gnosis.subgraph.autonolas.tech',
[EvmChainIdMap.Base]: 'https://staking-base.subgraph.autonolas.tech',
[EvmChainIdMap.Mode]: 'https://staking-mode.subgraph.autonolas.tech',
[EvmChainIdMap.Optimism]: 'https://staking-optimism.subgraph.autonolas.tech',
[EvmChainIdMap.Polygon]: 'https://staking-polygon.subgraph.autonolas.tech',
};
// pearl-transactions subgraph URLs, one entry per shipped network (Mode is
// deprecated). Left undefined until each chain's deployment URL is plugged in;
// an undefined/absent entry surfaces the "not available on this network yet"
// state instead of fetching.
export const TRANSACTION_HISTORY_SUBGRAPH_URLS_BY_EVM_CHAIN: Partial<
Record<EvmChainId, Url>
> = {
[EvmChainIdMap.Gnosis]:
'https://transactions-gnosis.subgraph.autonolas.tech/',
[EvmChainIdMap.Polygon]: undefined,
[EvmChainIdMap.Optimism]:
'https://transactions-optimism.subgraph.autonolas.tech/',
[EvmChainIdMap.Base]: 'https://transactions-base.subgraph.autonolas.tech/',
};
// Which pearl-transactions schema each chain's deployment serves (see
// TransactionHistorySchemaRevision). Gnosis/Optimism proxies pin subgraph
// v0.0.6 (v1); Base pins v0.0.7 (v2) — its indexers no longer serve v0.0.6.
// When a chain's proxy migrates to v0.0.7, flip its entry here; absent
// entries default to v1.
export const TRANSACTION_HISTORY_SUBGRAPH_SCHEMA_BY_EVM_CHAIN: Partial<
Record<EvmChainId, TransactionHistorySchemaRevision>
> = {
[EvmChainIdMap.Base]: 'v2',
};
export const getTransactionHistorySchemaRevision = (
chainId: EvmChainId,
): TransactionHistorySchemaRevision =>
TRANSACTION_HISTORY_SUBGRAPH_SCHEMA_BY_EVM_CHAIN[chainId] ?? 'v1';
// telegram
export const SUPPORT_URL: Url = 'https://t.me/olaschat';
// github
export const GITHUB_API_LATEST_RELEASE: Url =
'https://api.github.com/repos/valory-xyz/olas-operate-app/releases/latest';
export const GITHUB_API_RELEASES: Url =
'https://github.com/valory-xyz/olas-operate-app/releases';
// ipfs
export const IPFS_GATEWAY_URL: Url = 'https://gateway.autonolas.tech/ipfs/';
// others
export const COINGECKO_URL: string = 'https://www.coingecko.com';
export const COINGECKO_DEMO_API_URL: string =
'https://support.coingecko.com/hc/en-us/articles/21880397454233-User-Guide-How-to-sign-up-for-CoinGecko-Demo-API-and-generate-an-API-key';
export const GEMINI_API_URL: string = 'https://aistudio.google.com/app/apikey';
export const OPEN_AI_API_URL: string =
'https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key';
export const X_ACCOUNT_API_TOKENS_GUIDE_URL: Url =
'https://github.com/dvilelaf/meme-ooorr/blob/main/docs/twitter_dev_account.md';
export const X_DEVELOPER_CONSOLE_URL: Url = 'https://console.x.ai/';
export const WEB3AUTH_URL: Url = 'https://web3auth.io';
export const WEB3AUTH_TERMS_AND_CONDITIONS_URL: Url = `${WEB3AUTH_URL}/docs/legal/terms-and-conditions`;
export const SAFE_URL: Url = 'https://safe.global/';
export const PEARL_LICENSE: Url =
'https://github.com/valory-xyz/olas-operate-app/blob/main/LICENSE';
// explorers @note DO NOT END WITH `/`
const GNOSIS_EXPLORER_URL: Url = 'https://gnosisscan.io';
const BASE_EXPLORER_URL: Url = 'https://basescan.org';
const MODE_EXPLORER_URL: Url = 'https://explorer.mode.network';
const OPTIMISM_EXPLORER_URL: Url = 'https://optimistic.etherscan.io';
const POLYGON_EXPLORER_URL: Url = 'https://polygonscan.com';
export const EXPLORER_URL_BY_MIDDLEWARE_CHAIN: Record<
SupportedMiddlewareChain,
Url
> = {
[MiddlewareChainMap.GNOSIS]: GNOSIS_EXPLORER_URL,
[MiddlewareChainMap.BASE]: BASE_EXPLORER_URL,
[MiddlewareChainMap.MODE]: MODE_EXPLORER_URL,
[MiddlewareChainMap.OPTIMISM]: OPTIMISM_EXPLORER_URL,
[MiddlewareChainMap.POLYGON]: POLYGON_EXPLORER_URL,
};
export const BLOCKSCOUT_URL_BY_MIDDLEWARE_CHAIN: Record<
SupportedMiddlewareChain,
Url
> = {
[MiddlewareChainMap.GNOSIS]: 'https://gnosis.blockscout.com',
[MiddlewareChainMap.BASE]: 'https://base.blockscout.com',
[MiddlewareChainMap.MODE]: 'https://explorer.mode.network',
[MiddlewareChainMap.OPTIMISM]: 'https://optimism.blockscout.com',
[MiddlewareChainMap.POLYGON]: 'https://polygon.blockscout.com',
};
// on-ramp
export const ON_RAMP_GATEWAY_URL = `https://proxy.transak.${process.env.NODE_ENV === 'production' ? '' : 'staging.'}autonolas.tech/`;
// pearl-api url
export const PEARL_API_URL = 'https://pearl-api.olas.network';
// web3auth
const WEB3AUTH_GATEWAY_URL = `${PEARL_API_URL}/web3auth`;
export const WEB3AUTH_LOGIN_URL = `${WEB3AUTH_GATEWAY_URL}/login`;
export const WEB3AUTH_SWAP_OWNER_URL = `${WEB3AUTH_GATEWAY_URL}/swap-owner-session`;
// support API
export const SUPPORT_API_URL = `${PEARL_API_URL}/api/zendesk`;
// geo eligibility
export const GEO_ELIGIBILITY_API_URL = `${PEARL_API_URL}/api/geo/agent-eligibility`;
export const GEO_ELIGIBILITY_DOCS_URL =
'https://docs.polymarket.com/polymarket-learn/FAQ/geoblocking#close-only-countries';
export const POLYMARKET_DEPOSIT_WALLET_MIGRATION_URL: Url =
'https://docs.polymarket.com/trading/deposit-wallet-migration';
// Predict website
export const PREDICT_WEBSITE_URL = 'https://predict.olas.network';
// Govern app
export const GOVERN_APP_URL = 'https://govern.olas.network';