2019-07-11 16:46:52 +03:00
|
|
|
const BRIDGE_MODES = {
|
|
|
|
NATIVE_TO_ERC: 'NATIVE_TO_ERC',
|
|
|
|
ERC_TO_ERC: 'ERC_TO_ERC',
|
|
|
|
ERC_TO_NATIVE: 'ERC_TO_NATIVE',
|
2019-07-17 17:49:29 +03:00
|
|
|
NATIVE_TO_ERC_V1: 'NATIVE_TO_ERC_V1',
|
|
|
|
ARBITRARY_MESSAGE: 'ARBITRARY_MESSAGE'
|
2019-07-11 16:46:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
const ERC_TYPES = {
|
|
|
|
ERC20: 'ERC20',
|
|
|
|
ERC677: 'ERC677'
|
|
|
|
}
|
|
|
|
|
|
|
|
const FEE_MANAGER_MODE = {
|
|
|
|
ONE_DIRECTION: 'ONE_DIRECTION',
|
|
|
|
BOTH_DIRECTIONS: 'BOTH_DIRECTIONS',
|
|
|
|
UNDEFINED: 'UNDEFINED'
|
|
|
|
}
|
|
|
|
|
2019-07-25 18:36:10 +03:00
|
|
|
const GAS_PRICE_OPTIONS = {
|
|
|
|
UNDEFINED: '00',
|
|
|
|
GAS_PRICE: '01',
|
|
|
|
SPEED: '02'
|
|
|
|
}
|
|
|
|
|
|
|
|
const ORACLE_GAS_PRICE_SPEEDS = {
|
|
|
|
SLOW: 'slow',
|
|
|
|
STANDARD: 'standard',
|
|
|
|
FAST: 'fast',
|
|
|
|
INSTANT: 'instant'
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
BRIDGE_MODES,
|
|
|
|
ERC_TYPES,
|
|
|
|
FEE_MANAGER_MODE,
|
|
|
|
GAS_PRICE_OPTIONS,
|
|
|
|
ORACLE_GAS_PRICE_SPEEDS
|
|
|
|
}
|