Removing modules flag feature
This commit is contained in:
parent
678c3de726
commit
78618b5a26
|
@ -1,14 +1,12 @@
|
||||||
// @flow
|
// @flow
|
||||||
import {
|
import {
|
||||||
TX_SERVICE_HOST,
|
TX_SERVICE_HOST,
|
||||||
ENABLED_TX_SERVICE_MODULES,
|
|
||||||
ENABLED_TX_SERVICE_REMOVAL_SENDER,
|
ENABLED_TX_SERVICE_REMOVAL_SENDER,
|
||||||
SIGNATURES_VIA_METAMASK,
|
SIGNATURES_VIA_METAMASK,
|
||||||
} from '~/config/names'
|
} from '~/config/names'
|
||||||
|
|
||||||
const devConfig = {
|
const devConfig = {
|
||||||
[TX_SERVICE_HOST]: 'http://localhost:8000/api/v1/',
|
[TX_SERVICE_HOST]: 'http://localhost:8000/api/v1/',
|
||||||
[ENABLED_TX_SERVICE_MODULES]: false,
|
|
||||||
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
|
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
|
||||||
[SIGNATURES_VIA_METAMASK]: false,
|
[SIGNATURES_VIA_METAMASK]: false,
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
import { ensureOnce } from '~/utils/singleton'
|
import { ensureOnce } from '~/utils/singleton'
|
||||||
import {
|
import {
|
||||||
TX_SERVICE_HOST,
|
TX_SERVICE_HOST,
|
||||||
ENABLED_TX_SERVICE_MODULES,
|
|
||||||
ENABLED_TX_SERVICE_REMOVAL_SENDER,
|
ENABLED_TX_SERVICE_REMOVAL_SENDER,
|
||||||
SIGNATURES_VIA_METAMASK,
|
SIGNATURES_VIA_METAMASK,
|
||||||
} from '~/config/names'
|
} from '~/config/names'
|
||||||
|
@ -32,12 +31,6 @@ export const getTxServiceHost = () => {
|
||||||
|
|
||||||
export const getTxServiceUriFrom = (safeAddress: string) => `safes/${safeAddress}/transactions/`
|
export const getTxServiceUriFrom = (safeAddress: string) => `safes/${safeAddress}/transactions/`
|
||||||
|
|
||||||
export const allowedModulesInTxHistoryService = () => {
|
|
||||||
const config = getConfig()
|
|
||||||
|
|
||||||
return config[ENABLED_TX_SERVICE_MODULES]
|
|
||||||
}
|
|
||||||
|
|
||||||
export const allowedRemoveSenderInTxHistoryService = () => {
|
export const allowedRemoveSenderInTxHistoryService = () => {
|
||||||
const config = getConfig()
|
const config = getConfig()
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
export const TX_SERVICE_HOST = 'tsh'
|
export const TX_SERVICE_HOST = 'tsh'
|
||||||
export const ENABLED_TX_SERVICE_MODULES = 'tsm'
|
|
||||||
export const ENABLED_TX_SERVICE_REMOVAL_SENDER = 'trs'
|
export const ENABLED_TX_SERVICE_REMOVAL_SENDER = 'trs'
|
||||||
export const SIGNATURES_VIA_METAMASK = 'svm'
|
export const SIGNATURES_VIA_METAMASK = 'svm'
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
// @flow
|
// @flow
|
||||||
import {
|
import {
|
||||||
TX_SERVICE_HOST,
|
TX_SERVICE_HOST,
|
||||||
ENABLED_TX_SERVICE_MODULES,
|
|
||||||
ENABLED_TX_SERVICE_REMOVAL_SENDER,
|
ENABLED_TX_SERVICE_REMOVAL_SENDER,
|
||||||
SIGNATURES_VIA_METAMASK,
|
SIGNATURES_VIA_METAMASK,
|
||||||
} from '~/config/names'
|
} from '~/config/names'
|
||||||
|
|
||||||
const prodConfig = {
|
const prodConfig = {
|
||||||
[TX_SERVICE_HOST]: 'https://safe-transaction-history.dev.gnosisdev.com/api/v1/',
|
[TX_SERVICE_HOST]: 'https://safe-transaction-history.dev.gnosisdev.com/api/v1/',
|
||||||
[ENABLED_TX_SERVICE_MODULES]: false,
|
|
||||||
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
|
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
|
||||||
[SIGNATURES_VIA_METAMASK]: false,
|
[SIGNATURES_VIA_METAMASK]: false,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
// @flow
|
// @flow
|
||||||
import {
|
import {
|
||||||
TX_SERVICE_HOST,
|
TX_SERVICE_HOST,
|
||||||
ENABLED_TX_SERVICE_MODULES,
|
|
||||||
ENABLED_TX_SERVICE_REMOVAL_SENDER,
|
ENABLED_TX_SERVICE_REMOVAL_SENDER,
|
||||||
SIGNATURES_VIA_METAMASK,
|
SIGNATURES_VIA_METAMASK,
|
||||||
} from '~/config/names'
|
} from '~/config/names'
|
||||||
|
|
||||||
const testConfig = {
|
const testConfig = {
|
||||||
[TX_SERVICE_HOST]: 'http://localhost:8000/api/v1/',
|
[TX_SERVICE_HOST]: 'http://localhost:8000/api/v1/',
|
||||||
[ENABLED_TX_SERVICE_MODULES]: false,
|
|
||||||
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
|
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
|
||||||
[SIGNATURES_VIA_METAMASK]: false,
|
[SIGNATURES_VIA_METAMASK]: false,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue