Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sdk update #2

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@dilipomi:registry=https://registry.npmjs.org
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -67,4 +70,4 @@
"test": "test"
},
"author": "udotcash"
}
}
5 changes: 3 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion src/entities/currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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"
}
}
}
Expand Down