forked from Uniswap/v2-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix module reference * modernize v2-sdk
- Loading branch information
1 parent
473ffb0
commit 221db31
Showing
31 changed files
with
2,474 additions
and
2,693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,13 @@ | ||
import JSBI from 'jsbi' | ||
|
||
// exports for external consumption | ||
export type BigintIsh = JSBI | bigint | string | ||
|
||
export enum ChainId { | ||
MAINNET = 1, | ||
ROPSTEN = 3, | ||
RINKEBY = 4, | ||
GÖRLI = 5, | ||
KOVAN = 42 | ||
} | ||
|
||
export enum TradeType { | ||
EXACT_INPUT, | ||
EXACT_OUTPUT | ||
} | ||
|
||
export enum Rounding { | ||
ROUND_DOWN, | ||
ROUND_HALF_UP, | ||
ROUND_UP | ||
} | ||
|
||
export const FACTORY_ADDRESS = '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f' | ||
|
||
export const INIT_CODE_HASH = '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' | ||
|
||
export const MINIMUM_LIQUIDITY = JSBI.BigInt(1000) | ||
|
||
// exports for internal consumption | ||
export const ZERO = JSBI.BigInt(0) | ||
export const ONE = JSBI.BigInt(1) | ||
export const TWO = JSBI.BigInt(2) | ||
export const THREE = JSBI.BigInt(3) | ||
export const FIVE = JSBI.BigInt(5) | ||
export const TEN = JSBI.BigInt(10) | ||
export const _100 = JSBI.BigInt(100) | ||
export const _997 = JSBI.BigInt(997) | ||
export const _1000 = JSBI.BigInt(1000) | ||
|
||
export enum SolidityType { | ||
uint8 = 'uint8', | ||
uint256 = 'uint256' | ||
} | ||
|
||
export const SOLIDITY_TYPE_MAXIMA = { | ||
[SolidityType.uint8]: JSBI.BigInt('0xff'), | ||
[SolidityType.uint256]: JSBI.BigInt('0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.