34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { BigNumber } from 'bignumber.js'
|
|
import React from 'react'
|
|
import ReactDOM from 'react-dom'
|
|
import * as Sentry from '@sentry/react'
|
|
import { Integrations } from '@sentry/tracing'
|
|
|
|
import Root from 'src/components/Root'
|
|
import loadCurrentSessionFromStorage from 'src/logic/currentSession/store/actions/loadCurrentSessionFromStorage'
|
|
import loadActiveTokens from 'src/logic/tokens/store/actions/loadActiveTokens'
|
|
import loadDefaultSafe from 'src/logic/safe/store/actions/loadDefaultSafe'
|
|
import loadSafesFromStorage from 'src/logic/safe/store/actions/loadSafesFromStorage'
|
|
import { store } from 'src/store'
|
|
import { SENTRY_DSN } from './utils/constants'
|
|
|
|
BigNumber.set({ EXPONENTIAL_AT: [-7, 255] })
|
|
|
|
store.dispatch(loadActiveTokens())
|
|
store.dispatch(loadSafesFromStorage())
|
|
store.dispatch(loadDefaultSafe())
|
|
store.dispatch(loadCurrentSessionFromStorage())
|
|
|
|
Sentry.init({
|
|
dsn: SENTRY_DSN,
|
|
release: `safe-react@${process.env.REACT_APP_APP_VERSION}`,
|
|
integrations: [new Integrations.BrowserTracing()],
|
|
sampleRate: 1,
|
|
})
|
|
|
|
const root = document.getElementById('root')
|
|
|
|
if (root !== null) {
|
|
ReactDOM.render(<Root />, root)
|
|
}
|