2022-06-07 21:08:56 +00:00
|
|
|
export type V2CloudFunction =
|
|
|
|
| 'placebet'
|
|
|
|
| 'sellbet'
|
|
|
|
| 'sellshares'
|
|
|
|
| 'createmarket'
|
2022-06-22 16:35:50 +00:00
|
|
|
| 'creategroup'
|
2022-06-06 19:46:06 +00:00
|
|
|
|
2022-03-09 02:43:30 +00:00
|
|
|
export type EnvConfig = {
|
|
|
|
domain: string
|
|
|
|
firebaseConfig: FirebaseConfig
|
2022-06-06 19:46:06 +00:00
|
|
|
functionEndpoints: Record<V2CloudFunction, string>
|
2022-06-15 03:00:36 +00:00
|
|
|
amplitudeApiKey?: 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$'
|
|
|
|
faviconPath?: string // Should be a file in /public
|
|
|
|
navbarLogoPath?: string
|
|
|
|
newQuestionPlaceholders: string[]
|
|
|
|
}
|
|
|
|
|
|
|
|
type FirebaseConfig = {
|
|
|
|
apiKey: string
|
|
|
|
authDomain: string
|
|
|
|
projectId: string
|
2022-05-23 21:16:56 +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-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-06-06 19:46:06 +00:00
|
|
|
functionEndpoints: {
|
|
|
|
placebet: 'https://placebet-nggbo3neva-uc.a.run.app',
|
2022-06-07 20:54:58 +00:00
|
|
|
sellshares: 'https://sellshares-nggbo3neva-uc.a.run.app',
|
2022-06-07 21:08:56 +00:00
|
|
|
sellbet: 'https://sellbet-nggbo3neva-uc.a.run.app',
|
2022-06-06 19:46:06 +00:00
|
|
|
createmarket: 'https://createmarket-nggbo3neva-uc.a.run.app',
|
2022-06-22 16:35:50 +00:00
|
|
|
creategroup: 'https://creategroup-nggbo3neva-uc.a.run.app',
|
2022-06-06 19:46:06 +00:00
|
|
|
},
|
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
|
|
|
|
],
|
|
|
|
visibility: 'PUBLIC',
|
|
|
|
|
2022-05-20 02:28:38 +00:00
|
|
|
moneyMoniker: 'M$',
|
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?',
|
|
|
|
],
|
|
|
|
}
|