diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..db9ecd3 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@dilipomi:registry=https://registry.npmjs.org diff --git a/package.json b/package.json index 6feb263..d7f9454 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.5", "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://registry.npmjs.org" }, "keywords": [ "u-exchange", @@ -67,4 +70,4 @@ "test": "test" }, "author": "udotcash" -} +} \ No newline at end of file diff --git a/src/constants.ts b/src/constants.ts index 192d7b9..7ecaaaf 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 = '0x579CeDC1a0E6ccd2F1bE0fCad75A442585AF2b93' -export const INIT_CODE_HASH = '0x3ac79b4de4d113b17d787dcff108b9507d8011331dbc2da2e55d5545d6059ac6' +export const INIT_CODE_HASH = '0xb1a340570aa2a625e87a58a444564a81459845dc0e096ed430ac1d1e89d23ab7' export const MINIMUM_LIQUIDITY = JSBI.BigInt(1000) + // exports for internal consumption export const ZERO = JSBI.BigInt(0) export const ONE = JSBI.BigInt(1) diff --git a/src/entities/currency.ts b/src/entities/currency.ts index ada4fb6..887008d 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, '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" } } }