-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathenv.d.ts
More file actions
131 lines (112 loc) · 4.74 KB
/
Copy pathenv.d.ts
File metadata and controls
131 lines (112 loc) · 4.74 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
// Define the environment variables types here, so that the ts imports don't complain
// {@link https://github.com/goatandsheep/react-native-dotenv/issues/52#issuecomment-673218479|
declare module '@env' {
// eslint-disable-next-line global-require
const log = require('loglevel')
export type EnvTypes = {
RELAYER_URL: string
VELCRO_URL: string
BUNGEE_API_KEY: string
LI_FI_API_KEY: string
UNISWAP_API_KEY: string
SENTRY_DSN?: string
ENVIRONMENT: string
DEFAULT_KEYSTORE_PASSWORD_DEV: string
NFT_CDN_URL: string
LEGENDS_NFT_ADDRESS: string
SENTRY_DSN_LEGENDS?: string
SENTRY_DSN_BROWSER_EXTENSION?: string
WEBVIEW_DEV_HOST?: string
WALLETCONNECT_PROJECT_ID: string
}
/**
* The Ambire relayer for all EVM chains. Responsible for managing on-chain
* Identities (called "Ambire accounts") and relaying gasless transactions
* to the Ethereum network. It is not intended to be blockchain-agnostic,
* and it is Ethereum-specific.
*/
export const RELAYER_URL: EnvTypes['RELAYER_URL']
/**
* Alternative to Zapper, developed by Ambire. Serves the same purpose.
*/
export const VELCRO_URL: EnvTypes['VELCRO_URL']
/**
* Sentry is application monitoring and error tracking app used by the mobile app.
*/
export const SENTRY_DSN: EnvTypes['SENTRY_DSN'] | undefined
/**
* The URL for the Ambire NFT proxy service, responsible for resolving NFT images from the passed parameters.
* Takes in RPC url, contract address and token Id so we can use the complete proxy URL as source for image components.
*/
export const NFT_CDN_URL: EnvTypes['NFT_CDN_URL']
/**
* This value can be used to control the state of the controller logs.
* If set to "true", the logs will be displayed only for the controller which is updated.
* Due to the high volume of logs causing memory leak on FF, it is recommended to use this only for debugging purposes.
*/
export const BROWSER_EXTENSION_LOG_UPDATED_CONTROLLER_STATE_ONLY: string
/**
* Whether the logs should be stored in an array and managed by the extension.
* This improves performance, but makes it harder to debug.
* When false, the logs are printed directly to the console.
*/
export const BROWSER_EXTENSION_MEMORY_INTENSIVE_LOGS: string
/**
* This value can be used to control the unique ID of an extension, when it is
* loaded during development. In prod, the ID is generated in Chrome Web Store
* and can't be changed (could be retrieved from Chrome Web Store).
* In DEV, it is generated based on a key.pem using the following method:
* {@link https://stackoverflow.com/a/46739698/1333836}
*/
export const BROWSER_EXTENSION_PUBLIC_KEY: string
export const ENVIRONMENT: string
/**
* Auto-Fill Keystore Password during development
*/
export const DEFAULT_KEYSTORE_PASSWORD_DEV: EnvTypes['DEFAULT_KEYSTORE_PASSWORD_DEV']
/**
* Are we running the E2E tests?
* The accepted value is 'true'.
* Note that we don't have a dedicated testing environment (APP_ENV).
* E2E tests can be run against both DEV and PROD environments.
*/
export const IS_TESTING: string
/**
* Bungee API. It allows developers to easily transfer
* liquidity across chains, access aggregated liquidity and information from
* hundreds of on-chain and off-chain decentralized exchange networks, bridges,
* across multiple blockchains. Access is restricted and requires an API key.
*/
export const BUNGEE_API_KEY: EnvTypes['BUNGEE_API_KEY']
/**
* Socket API is part of the Bungee API. It allows developers to easily transfer
* liquidity across chains, access aggregated liquidity and information from
* hundreds of on-chain and off-chain decentralized exchange networks, bridges,
* across multiple blockchains. Access is restricted and requires an API key.
*/
export const LI_FI_API_KEY: EnvTypes['LI_FI_API_KEY']
/**
* Uniswap Trading API key. Required by the Uniswap router.
*/
export const UNISWAP_API_KEY: EnvTypes['UNISWAP_API_KEY']
/**
* The address of the Legends NFT contract (same on PROD and STAGING)
*/
export const LEGENDS_NFT_ADDRESS: EnvTypes['LEGENDS_NFT_ADDRESS']
/**
* Sentry is application monitoring and error tracking app
*/
export const SENTRY_DSN_LEGENDS: EnvTypes['SENTRY_DSN_LEGENDS']
/**
* Sentry is application monitoring and error tracking app
*/
export const SENTRY_DSN_BROWSER_EXTENSION: EnvTypes['SENTRY_DSN_BROWSER_EXTENSION']
/**
* LAN IP of the dev machine for the WebView webpack-dev-server (Android physical device).
*/
export const WEBVIEW_DEV_HOST: EnvTypes['WEBVIEW_DEV_HOST']
/**
* WalletConnect Project ID for v2 connections.
*/
export const WALLETCONNECT_PROJECT_ID: EnvTypes['WALLETCONNECT_PROJECT_ID']
}