2020-05-24 17:23:56 +02:00
|
|
|
export const mempoolFeeColors = [
|
2020-05-30 05:20:29 +02:00
|
|
|
'557d00',
|
|
|
|
'5d7d01',
|
|
|
|
'637d02',
|
|
|
|
'6d7d04',
|
|
|
|
'757d05',
|
|
|
|
'7d7d06',
|
|
|
|
'867d08',
|
|
|
|
'8c7d09',
|
|
|
|
'957d0b',
|
|
|
|
'9b7d0c',
|
|
|
|
'a67d0e',
|
|
|
|
'aa7d0f',
|
|
|
|
'b27d10',
|
|
|
|
'bb7d11',
|
|
|
|
'bf7d12',
|
|
|
|
'bf7815',
|
|
|
|
'bf7319',
|
|
|
|
'be6c1e',
|
|
|
|
'be6820',
|
|
|
|
'bd6125',
|
|
|
|
'bd5c28',
|
|
|
|
'bc552d',
|
2020-05-30 04:56:38 +02:00
|
|
|
'bc4f30',
|
2020-05-30 05:20:29 +02:00
|
|
|
'bc4a34',
|
|
|
|
'bb4339',
|
|
|
|
'bb3d3c',
|
|
|
|
'bb373f',
|
|
|
|
'ba3243',
|
|
|
|
'b92b48',
|
2020-05-30 04:56:38 +02:00
|
|
|
'b9254b',
|
2020-05-24 17:23:56 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
export const feeLevels = [1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100, 125, 150, 175, 200,
|
|
|
|
250, 300, 350, 400, 500, 600, 700, 800, 900, 1000, 1200, 1400, 1600, 1800, 2000];
|
2020-05-30 16:18:53 +02:00
|
|
|
|
2020-06-22 17:10:49 +02:00
|
|
|
interface Env {
|
|
|
|
TESTNET_ENABLED: boolean;
|
|
|
|
LIQUID_ENABLED: boolean;
|
2020-07-03 18:45:19 +02:00
|
|
|
BISQ_ENABLED: boolean;
|
2020-07-25 16:21:53 +02:00
|
|
|
BISQ_SEPARATE_BACKEND: boolean;
|
2020-10-07 18:30:45 +02:00
|
|
|
SPONSORS_ENABLED: boolean;
|
2020-06-22 17:10:49 +02:00
|
|
|
ELCTRS_ITEMS_PER_PAGE: number;
|
|
|
|
KEEP_BLOCKS_AMOUNT: number;
|
2020-07-03 18:45:19 +02:00
|
|
|
}
|
2020-06-22 17:10:49 +02:00
|
|
|
|
|
|
|
const defaultEnv: Env = {
|
|
|
|
'TESTNET_ENABLED': false,
|
|
|
|
'LIQUID_ENABLED': false,
|
2020-07-03 18:45:19 +02:00
|
|
|
'BISQ_ENABLED': false,
|
2020-07-25 16:21:53 +02:00
|
|
|
'BISQ_SEPARATE_BACKEND': false,
|
2020-10-07 18:30:45 +02:00
|
|
|
'SPONSORS_ENABLED': false,
|
2020-06-22 17:10:49 +02:00
|
|
|
'ELCTRS_ITEMS_PER_PAGE': 25,
|
|
|
|
'KEEP_BLOCKS_AMOUNT': 8
|
|
|
|
};
|
|
|
|
|
|
|
|
const browserWindow = window || {};
|
|
|
|
// @ts-ignore
|
|
|
|
const browserWindowEnv = browserWindow.__env || {};
|
|
|
|
export const env: Env = Object.assign(defaultEnv, browserWindowEnv);
|