2022-03-09 02:43:30 +00:00
|
|
|
export type EnvConfig = {
|
|
|
|
domain: string
|
|
|
|
firebaseConfig: FirebaseConfig
|
2022-06-15 03:00:36 +00:00
|
|
|
amplitudeApiKey?: string
|
2022-09-18 08:13:10 +00:00
|
|
|
twitchBotEndpoint?: string
|
2022-09-27 17:02:03 +00:00
|
|
|
sprigEnvironmentId?: string
|
2022-03-09 02:43:30 +00:00
|
|
|
|
2022-06-23 23:46:49 +00:00
|
|
|
// IDs for v2 cloud functions -- find these by deploying a cloud function and
|
|
|
|
// examining the URL, https://[name]-[cloudRunId]-[cloudRunRegion].a.run.app
|
|
|
|
cloudRunId: string
|
|
|
|
cloudRunRegion: string
|
|
|
|
|
2022-03-09 02:43:30 +00:00
|
|
|
// Access controls
|
|
|
|
adminEmails: string[]
|
|
|
|
whitelistEmail?: string // e.g. '@theoremone.co'. If not provided, all emails are whitelisted
|
|
|
|
visibility: 'PRIVATE' | 'PUBLIC'
|
|
|
|
|
|
|
|
// Branding
|
|
|
|
moneyMoniker: string // e.g. 'M$'
|
2022-09-15 15:12:56 +00:00
|
|
|
bettor?: string // e.g. 'bettor' or 'predictor'
|
|
|
|
presentBet?: string // e.g. 'bet' or 'predict'
|
|
|
|
pastBet?: string // e.g. 'bet' or 'prediction'
|
2022-03-09 02:43:30 +00:00
|
|
|
faviconPath?: string // Should be a file in /public
|
|
|
|
navbarLogoPath?: string
|
|
|
|
newQuestionPlaceholders: string[]
|
2022-07-01 18:01:36 +00:00
|
|
|
|
2022-08-22 05:37:26 +00:00
|
|
|
economy?: Economy
|
|
|
|
}
|
|
|
|
|
|
|
|
export type Economy = {
|
|
|
|
FIXED_ANTE?: number
|
|
|
|
|
|
|
|
STARTING_BALANCE?: number
|
|
|
|
SUS_STARTING_BALANCE?: number
|
|
|
|
|
|
|
|
REFERRAL_AMOUNT?: number
|
|
|
|
|
|
|
|
UNIQUE_BETTOR_BONUS_AMOUNT?: number
|
|
|
|
|
|
|
|
BETTING_STREAK_BONUS_AMOUNT?: number
|
|
|
|
BETTING_STREAK_BONUS_MAX?: number
|
|
|
|
BETTING_STREAK_RESET_HOUR?: number
|
2022-08-25 11:51:56 +00:00
|
|
|
FREE_MARKETS_PER_USER_MAX?: number
|
2022-09-30 15:27:42 +00:00
|
|
|
COMMENT_BOUNTY_AMOUNT?: number
|
2022-03-09 02:43:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type FirebaseConfig = {
|
|
|
|
apiKey: string
|
|
|
|
authDomain: string
|
|
|
|
projectId: string
|
2022-07-01 18:01:36 +00:00
|
|
|
region?: string
|
2022-03-09 02:43:30 +00:00
|
|
|
storageBucket: string
|
|
|
|
messagingSenderId: string
|
|
|
|
appId: string
|
|
|
|
measurementId: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export const PROD_CONFIG: EnvConfig = {
|
|
|
|
domain: 'manifold.markets',
|
2022-06-15 03:00:36 +00:00
|
|
|
amplitudeApiKey: '2d6509fd4185ebb8be29709842752a15',
|
2022-09-27 17:02:03 +00:00
|
|
|
sprigEnvironmentId: 'sQcrq9TDqkib',
|
2022-06-15 03:00:36 +00:00
|
|
|
|
2022-03-09 02:43:30 +00:00
|
|
|
firebaseConfig: {
|
|
|
|
apiKey: 'AIzaSyDp3J57vLeAZCzxLD-vcPaGIkAmBoGOSYw',
|
|
|
|
authDomain: 'mantic-markets.firebaseapp.com',
|
|
|
|
projectId: 'mantic-markets',
|
2022-05-23 21:16:56 +00:00
|
|
|
region: 'us-central1',
|
2022-03-09 02:43:30 +00:00
|
|
|
storageBucket: 'mantic-markets.appspot.com',
|
|
|
|
messagingSenderId: '128925704902',
|
|
|
|
appId: '1:128925704902:web:f61f86944d8ffa2a642dc7',
|
|
|
|
measurementId: 'G-SSFK1Q138D',
|
|
|
|
},
|
2022-09-18 08:13:10 +00:00
|
|
|
twitchBotEndpoint: 'https://twitch-bot-nggbo3neva-uc.a.run.app',
|
2022-06-23 23:46:49 +00:00
|
|
|
cloudRunId: 'nggbo3neva',
|
|
|
|
cloudRunRegion: 'uc',
|
2022-03-09 02:43:30 +00:00
|
|
|
adminEmails: [
|
|
|
|
'akrolsmir@gmail.com', // Austin
|
|
|
|
'jahooma@gmail.com', // James
|
|
|
|
'taowell@gmail.com', // Stephen
|
2022-05-18 19:04:06 +00:00
|
|
|
'abc.sinclair@gmail.com', // Sinclair
|
2022-03-09 02:43:30 +00:00
|
|
|
'manticmarkets@gmail.com', // Manifold
|
2022-08-25 13:05:26 +00:00
|
|
|
'iansphilips@gmail.com', // Ian
|
2022-08-25 13:54:50 +00:00
|
|
|
'd4vidchee@gmail.com', // D4vid
|
2022-09-08 16:14:40 +00:00
|
|
|
'federicoruizcassarino@gmail.com', // Fede
|
2022-09-15 03:28:40 +00:00
|
|
|
'ingawei@gmail.com', //Inga
|
2022-03-09 02:43:30 +00:00
|
|
|
],
|
|
|
|
visibility: 'PUBLIC',
|
|
|
|
|
2022-05-20 02:28:38 +00:00
|
|
|
moneyMoniker: 'M$',
|
2022-09-17 20:10:16 +00:00
|
|
|
bettor: 'trader',
|
|
|
|
pastBet: 'trade',
|
|
|
|
presentBet: 'trade',
|
2022-03-09 02:43:30 +00:00
|
|
|
navbarLogoPath: '',
|
|
|
|
faviconPath: '/favicon.ico',
|
|
|
|
newQuestionPlaceholders: [
|
|
|
|
'Will anyone I know get engaged this year?',
|
|
|
|
'Will humans set foot on Mars by the end of 2030?',
|
|
|
|
'Will any cryptocurrency eclipse Bitcoin by market cap this year?',
|
|
|
|
'Will the Democrats win the 2024 presidential election?',
|
|
|
|
],
|
|
|
|
}
|