From 7733484a62d6b79fa4007430bc4c95bd7c73013f Mon Sep 17 00:00:00 2001 From: dilipomi Date: Sat, 18 Dec 2021 16:30:49 +0530 Subject: [PATCH 1/9] factory addrs updated --- src/constants.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 192d7b9..dccba92 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -28,12 +28,13 @@ export enum Rounding { ROUND_UP } -export const FACTORY_ADDRESS = '0x16c8b707B84a95ebaBC7895861993a328432A4D4' +export const FACTORY_ADDRESS = '0x0E020621D59366683954b9dc655a5b9c643A536E' -export const INIT_CODE_HASH = '0x3ac79b4de4d113b17d787dcff108b9507d8011331dbc2da2e55d5545d6059ac6' +export const INIT_CODE_HASH = '0x5d73ddda0fd52eb172d4b3b6cc5777d956bbb560b9d8e42da175d25a4183370a' export const MINIMUM_LIQUIDITY = JSBI.BigInt(1000) + // exports for internal consumption export const ZERO = JSBI.BigInt(0) export const ONE = JSBI.BigInt(1) From abd7a68cc82e69f130820a1d29fc4a13469a75ea Mon Sep 17 00:00:00 2001 From: Dilip Gondhali Date: Sun, 19 Dec 2021 10:29:02 +0530 Subject: [PATCH 2/9] Create .npmrc --- .npmrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..6ddc020 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@dilipomi:registry=https://npm.pkg.github.com From befd8a55743f9e0a53da825b671f063e53832079 Mon Sep 17 00:00:00 2001 From: dilipomi Date: Sun, 19 Dec 2021 10:31:31 +0530 Subject: [PATCH 3/9] Factory addrs added --- package.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 6feb263..819a049 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "@udotcash/u-exchange-sdk", + "name": "@dilipomi/u-exchange-sdk", "license": "MIT", - "version": "1.0.4", + "version": "1.1.2", "description": "🛠 An SDK for building applications on top of U.EXCHANGE.", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -10,7 +10,10 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/antron3000/u-exchange-sdk.git" + "url": "git+https://github.com/dilipomi/u-exchange-sdk.git" + }, + "publishConfig": { + "registry": "https://npm.pkg.github.com/dilipomi" }, "keywords": [ "u-exchange", @@ -67,4 +70,4 @@ "test": "test" }, "author": "udotcash" -} +} \ No newline at end of file From 0c3e175fd2b68d0ba2d93b9a2251b74a65fa6883 Mon Sep 17 00:00:00 2001 From: dilipomi Date: Sun, 19 Dec 2021 10:48:28 +0530 Subject: [PATCH 4/9] package updated --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 819a049..c786866 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@dilipomi/u-exchange-sdk", "license": "MIT", - "version": "1.1.2", + "version": "1.1.3", "description": "🛠 An SDK for building applications on top of U.EXCHANGE.", "main": "dist/index.js", "typings": "dist/index.d.ts", From 8ac7d93a8725538fc512b2c9116f8b43308a7869 Mon Sep 17 00:00:00 2001 From: dilipomi Date: Sun, 19 Dec 2021 10:56:37 +0530 Subject: [PATCH 5/9] npm --- .npmrc | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.npmrc b/.npmrc index 6ddc020..db9ecd3 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -@dilipomi:registry=https://npm.pkg.github.com +@dilipomi:registry=https://registry.npmjs.org diff --git a/package.json b/package.json index c786866..585a99d 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "url": "git+https://github.com/dilipomi/u-exchange-sdk.git" }, "publishConfig": { - "registry": "https://npm.pkg.github.com/dilipomi" + "registry": "https://registry.npmjs.org" }, "keywords": [ "u-exchange", From 959a98b7b11422dba72df15ea53bcbe09d433752 Mon Sep 17 00:00:00 2001 From: dilipomi Date: Sun, 19 Dec 2021 10:57:18 +0530 Subject: [PATCH 6/9] version updated --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 585a99d..f2ddc39 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@dilipomi/u-exchange-sdk", "license": "MIT", - "version": "1.1.3", + "version": "1.1.4", "description": "🛠 An SDK for building applications on top of U.EXCHANGE.", "main": "dist/index.js", "typings": "dist/index.d.ts", From 45f9a3d4916ed73f848c954b8ebdb863b81cf4ae Mon Sep 17 00:00:00 2001 From: dilipomi Date: Mon, 20 Dec 2021 10:16:24 +0530 Subject: [PATCH 7/9] version updated --- package.json | 2 +- src/constants.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f2ddc39..d7f9454 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@dilipomi/u-exchange-sdk", "license": "MIT", - "version": "1.1.4", + "version": "1.1.5", "description": "🛠 An SDK for building applications on top of U.EXCHANGE.", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/constants.ts b/src/constants.ts index dccba92..7ecaaaf 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -28,9 +28,9 @@ export enum Rounding { ROUND_UP } -export const FACTORY_ADDRESS = '0x0E020621D59366683954b9dc655a5b9c643A536E' +export const FACTORY_ADDRESS = '0x579CeDC1a0E6ccd2F1bE0fCad75A442585AF2b93' -export const INIT_CODE_HASH = '0x5d73ddda0fd52eb172d4b3b6cc5777d956bbb560b9d8e42da175d25a4183370a' +export const INIT_CODE_HASH = '0xb1a340570aa2a625e87a58a444564a81459845dc0e096ed430ac1d1e89d23ab7' export const MINIMUM_LIQUIDITY = JSBI.BigInt(1000) From d263afef1eaf5ec7d80a00ee3f9d4d200e319664 Mon Sep 17 00:00:00 2001 From: dilipomi Date: Wed, 22 Dec 2021 17:39:06 +0530 Subject: [PATCH 8/9] bnb to xdai changed --- src/entities/currency.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/entities/currency.ts b/src/entities/currency.ts index ada4fb6..5c2252d 100644 --- a/src/entities/currency.ts +++ b/src/entities/currency.ts @@ -16,8 +16,8 @@ export class Currency { /** * The only instance of the base class `Currency`. */ - public static ETHER: Currency = new Currency(18, 'BNB', 'BNB') - + // public static ETHER: Currency = new Currency(18, 'BNB', 'BNB') + public static ETHER: Currency = new Currency(18, 'xDAI', 'xDAI') /** * Constructs an instance of the base class `Currency`. The only instance of the base class `Currency` is `Currency.ETHER`. @@ -53,6 +53,10 @@ export class Currency { if(cId==31){ ETHER.name = "Smart Bitcoin" ETHER.symbol = "tRBTC" + } + if(cId==100){ + ETHER.name = "xDAI" + ETHER.symbol = "xDAI" } } } From c0ef454f9a8631799ea2fc508d2181c97b7ed121 Mon Sep 17 00:00:00 2001 From: dilipomi Date: Thu, 23 Dec 2021 11:05:20 +0530 Subject: [PATCH 9/9] xdai added --- src/entities/currency.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entities/currency.ts b/src/entities/currency.ts index 5c2252d..887008d 100644 --- a/src/entities/currency.ts +++ b/src/entities/currency.ts @@ -16,7 +16,7 @@ export class Currency { /** * The only instance of the base class `Currency`. */ - // public static ETHER: Currency = new Currency(18, 'BNB', 'BNB') + public static ETHER: Currency = new Currency(18, 'xDAI', 'xDAI') /**