2018-09-24 15:55:17 -04:00
|
|
|
import { BigNumber, bigNumberify } from './utils/bignumber';
|
2018-08-02 20:30:44 -04:00
|
|
|
|
|
|
|
const AddressZero = '0x0000000000000000000000000000000000000000';
|
|
|
|
const HashZero = '0x0000000000000000000000000000000000000000000000000000000000000000';
|
|
|
|
|
|
|
|
// NFKD (decomposed)
|
|
|
|
//const EtherSymbol = '\uD835\uDF63';
|
|
|
|
|
|
|
|
// NFKC (composed)
|
|
|
|
const EtherSymbol = '\u039e';
|
|
|
|
|
2018-08-02 21:34:10 -04:00
|
|
|
const NegativeOne: BigNumber = bigNumberify(-1);
|
|
|
|
const Zero: BigNumber = bigNumberify(0);
|
|
|
|
const One: BigNumber = bigNumberify(1);
|
|
|
|
const Two: BigNumber = bigNumberify(2);
|
|
|
|
const WeiPerEther: BigNumber = bigNumberify('1000000000000000000');
|
|
|
|
const MaxUint256: BigNumber = bigNumberify('0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff');
|
2018-08-02 20:30:44 -04:00
|
|
|
|
2018-08-02 21:34:10 -04:00
|
|
|
export {
|
|
|
|
AddressZero,
|
|
|
|
HashZero,
|
2018-08-02 20:30:44 -04:00
|
|
|
|
2018-08-02 21:34:10 -04:00
|
|
|
EtherSymbol,
|
|
|
|
|
|
|
|
NegativeOne,
|
|
|
|
Zero,
|
|
|
|
One,
|
|
|
|
Two,
|
|
|
|
WeiPerEther,
|
|
|
|
MaxUint256
|
2018-08-02 20:30:44 -04:00
|
|
|
};
|