-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.d.ts
103 lines (88 loc) · 3.98 KB
/
env.d.ts
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
// 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
SOCKET_API_KEY: string
SENTRY_DSN?: string
ENVIRONMENT: string
DEFAULT_INVITATION_CODE_DEV: string
DEFAULT_KEYSTORE_PASSWORD_DEV: string
NFT_CDN_URL: string
LEGENDS_NFT_ADDRESS: 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']
/**
* Possible log level descriptors, may be string, lower or upper case, or number.
* There are 6 levels: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent'.
* This disables all logging below the given level, so that after a
* log.setLevel("warn") call log.warn("something") or log.error("something")
* will output messages, but log.info("something") will not.
*/
export const BROWSER_EXTENSION_DEFAULT_LOG_LEVEL_PROD: log.LogLevelDesc
/** See `BROWSER_EXTENSION_DEFAULT_LOG_LEVEL_PROD` */
export const BROWSER_EXTENSION_DEFAULT_LOG_LEVEL_DEV: log.LogLevelDesc
/**
* 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
/**
* 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
/**
* Unlimited-use invitation code for the app, for easy access during development
*/
export const DEFAULT_INVITATION_CODE_DEV: EnvTypes['DEFAULT_INVITATION_CODE_DEV']
/**
* 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
/**
* 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 SOCKET_API_KEY: EnvTypes['SOCKET_API_KEY']
/**
* The address of the Legends NFT contract (same on PROD and STAGING)
*/
export const LEGENDS_NFT_ADDRESS: EnvTypes['LEGENDS_NFT_ADDRESS']
}