From b935611153274ac2306e49134560be9ba87183bc Mon Sep 17 00:00:00 2001 From: sam bacha Date: Sun, 11 Apr 2021 18:07:10 -0700 Subject: [PATCH 1/2] fix(chainId): use MAX_SAFE_CHAIN_ID --- src/common/constants.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/constants.ts b/src/common/constants.ts index e80bb81..d107200 100644 --- a/src/common/constants.ts +++ b/src/common/constants.ts @@ -2,4 +2,5 @@ export class Constants { public static readonly HEX_START = '0x'; public static readonly EMPTY_HEX_STRING = `${Constants.HEX_START}00`; public static readonly ETH_MAX_DECIMALS = 18; + public static readonly MAX_SAFE_CHAIN_ID = 4503599627370476; } From 25284cab6a873c8c4db951a63a53560f16e00240 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Sun, 11 Apr 2021 18:10:08 -0700 Subject: [PATCH 2/2] build(types): jsbi bigint support how many bigint libraries are there? --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1919375..f02033e 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "keywords": [ "ethereum", "blockchain", - "sushiswap" + "sushiswap", + "sdk" ], "dependencies": { "bignumber.js": "^9.0.1", @@ -43,6 +44,8 @@ "eslint-plugin-promise": "^4.3.1", "ethereum-abi-types-generator": "^1.0.10", "jest": "^26.6.3", + "jsbi": "^3.1.1", + "babel-plugin-transform-jsbi-to-bigint": "^1.3.1", "ts-jest": "^26.5.4", "tsdx": "^0.14.1", "tslib": "^1.14.1",