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

Add Sepolia network #23

Merged
merged 2 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "into-the-fathom-swap-sdk",
"version": "1.5.0",
"version": "1.5.1",
"description": "🛠 An SDK for building applications on top of Fathom Swap.",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export type BigintIsh = JSBI | bigint | string

export enum ChainId {
XDC = 50,
AXDC = 51
AXDC = 51,
SEPOLIA = 11155111
}

export enum TradeType {
Expand All @@ -21,7 +22,8 @@ export enum Rounding {

export const FACTORY_ADDRESS: { [key: string]: string } = {
[ChainId.XDC]: '0x9fAb572F75008A42c6aF80b36Ab20C76a38ABc4B',
[ChainId.AXDC]: '0xe011699276055eDAd1E3fd2F98667068f7c8814A'
[ChainId.AXDC]: '0xe011699276055eDAd1E3fd2F98667068f7c8814A',
[ChainId.SEPOLIA]: '0x97989DFf5568F450970d404770f1975056834F93'
}

export const INIT_CODE_HASH = '0xa6d23746864049fd29713adbbf145eeecdddd2f9a91be053c057394dd5d7d9ad'
Expand Down
3 changes: 2 additions & 1 deletion src/entities/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ export function currencyEquals(currencyA: Currency, currencyB: Currency): boolea

export const WETH = {
[ChainId.XDC]: new Token(ChainId.XDC, '0x951857744785E80e2De051c32EE7b25f9c458C42', 18, 'WXDC', 'Wrapped XDC'),
[ChainId.AXDC]: new Token(ChainId.AXDC, '0xE99500AB4A413164DA49Af83B9824749059b46ce', 18, 'WXDC', 'Wrapped XDC')
[ChainId.AXDC]: new Token(ChainId.AXDC, '0xE99500AB4A413164DA49Af83B9824749059b46ce', 18, 'WXDC', 'Wrapped XDC'),
[ChainId.SEPOLIA]: new Token(ChainId.SEPOLIA, '0xD0dF82dE051244f04BfF3A8bB1f62E1cD39eED92', 18, 'WXDC', 'Wrapped XDC')
Alex-Dovgopoly marked this conversation as resolved.
Show resolved Hide resolved
}
Loading
Loading