2019-07-11 15:46:52 +02:00
|
|
|
const BRIDGE_MODES = {
|
|
|
|
NATIVE_TO_ERC: 'NATIVE_TO_ERC',
|
|
|
|
ERC_TO_ERC: 'ERC_TO_ERC',
|
|
|
|
ERC_TO_NATIVE: 'ERC_TO_NATIVE',
|
2019-09-18 16:45:13 -03:00
|
|
|
NATIVE_TO_ERC_V1: 'NATIVE_TO_ERC_V1',
|
2020-05-18 17:36:52 -03:00
|
|
|
ARBITRARY_MESSAGE: 'ARBITRARY_MESSAGE',
|
|
|
|
AMB_ERC_TO_ERC: 'AMB_ERC_TO_ERC',
|
|
|
|
STAKE_AMB_ERC_TO_ERC: 'STAKE_AMB_ERC_TO_ERC'
|
2019-07-11 15:46:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const ERC_TYPES = {
|
|
|
|
ERC20: 'ERC20',
|
|
|
|
ERC677: 'ERC677'
|
|
|
|
}
|
|
|
|
|
|
|
|
const FEE_MANAGER_MODE = {
|
|
|
|
ONE_DIRECTION: 'ONE_DIRECTION',
|
|
|
|
BOTH_DIRECTIONS: 'BOTH_DIRECTIONS',
|
2020-05-18 17:36:52 -03:00
|
|
|
ONE_DIRECTION_STAKE: 'ONE_DIRECTION_STAKE',
|
2019-07-11 15:46:52 +02:00
|
|
|
UNDEFINED: 'UNDEFINED'
|
|
|
|
}
|
|
|
|
|
2019-11-06 16:49:01 -03:00
|
|
|
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
|
|
|
|
|
2019-09-18 16:45:13 -03:00
|
|
|
module.exports = {
|
|
|
|
BRIDGE_MODES,
|
|
|
|
ERC_TYPES,
|
2019-11-06 16:49:01 -03:00
|
|
|
FEE_MANAGER_MODE,
|
|
|
|
ZERO_ADDRESS
|
2019-09-18 16:45:13 -03:00
|
|
|
}
|