Skip to content

Commit

Permalink
add currencyIcons to constants
Browse files Browse the repository at this point in the history
  • Loading branch information
dmosites committed Dec 4, 2023
1 parent 1268884 commit 0b3c03c
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 10 deletions.
2 changes: 1 addition & 1 deletion source/balances/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@openzeppelin/contracts": "^4.8.3"
},
"devDependencies": {
"@airswap/constants": "4.1.5",
"@airswap/constants": "4.1.6",
"@airswap/utils": "4.1.7",
"prompt-confirm": "^2.0.4"
},
Expand Down
2 changes: 1 addition & 1 deletion source/pool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@openzeppelin/contracts": "^4.8.3"
},
"devDependencies": {
"@airswap/constants": "4.1.5",
"@airswap/constants": "4.1.6",
"@airswap/metadata": "4.1.9",
"@airswap/types": "4.1.1",
"@airswap/utils": "4.1.7",
Expand Down
2 changes: 1 addition & 1 deletion source/registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"access": "public"
},
"devDependencies": {
"@airswap/constants": "4.1.5",
"@airswap/constants": "4.1.6",
"@airswap/utils": "4.1.7",
"prompt-confirm": "^2.0.4"
}
Expand Down
2 changes: 1 addition & 1 deletion source/swap-erc20/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@openzeppelin/contracts": "^4.8.3"
},
"devDependencies": {
"@airswap/constants": "4.1.5",
"@airswap/constants": "4.1.6",
"@airswap/staking": "4.0.4",
"@airswap/types": "4.1.1",
"@airswap/utils": "4.1.7",
Expand Down
2 changes: 1 addition & 1 deletion source/swap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@openzeppelin/contracts": "^4.8.3"
},
"devDependencies": {
"@airswap/constants": "4.1.5",
"@airswap/constants": "4.1.6",
"@airswap/types": "4.1.1",
"@airswap/utils": "4.1.7",
"@nomicfoundation/hardhat-network-helpers": "^1.0.7"
Expand Down
2 changes: 1 addition & 1 deletion source/wrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@openzeppelin/contracts": "^4.8.3"
},
"devDependencies": {
"@airswap/constants": "4.1.5",
"@airswap/constants": "4.1.6",
"@airswap/utils": "4.1.7",
"@airswap/types": "4.1.1",
"@uniswap/v2-periphery": "^1.1.0-beta.0",
Expand Down
22 changes: 22 additions & 0 deletions tools/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,28 @@ export const chainCurrencies: Record<number, string> = {
[ChainIds.SEPOLIA]: 'SepoliaETH',
}

export const currencyIcons: Record<number, number> = {
[ChainIds.MAINNET]: ChainIds.MAINNET,
[ChainIds.GOERLI]: ChainIds.MAINNET,
[ChainIds.RSK]: ChainIds.RSK,
[ChainIds.RSKTESTNET]: ChainIds.RSK,
[ChainIds.TELOS]: ChainIds.TELOS,
[ChainIds.TELOSTESTNET]: ChainIds.TELOS,
[ChainIds.BSC]: ChainIds.BSC,
[ChainIds.BSCTESTNET]: ChainIds.BSC,
[ChainIds.POLYGON]: ChainIds.POLYGON,
[ChainIds.BASE]: ChainIds.MAINNET,
[ChainIds.ARBITRUM]: ChainIds.MAINNET,
[ChainIds.FUJI]: ChainIds.AVALANCHE,
[ChainIds.AVALANCHE]: ChainIds.AVALANCHE,
[ChainIds.LINEAGOERLI]: ChainIds.MAINNET,
[ChainIds.LINEA]: ChainIds.MAINNET,
[ChainIds.MUMBAI]: ChainIds.POLYGON,
[ChainIds.BASEGOERLI]: ChainIds.MAINNET,
[ChainIds.ARBITRUMGOERLI]: ChainIds.MAINNET,
[ChainIds.SEPOLIA]: ChainIds.MAINNET,
}

export const apiUrls: Record<number, string> = {
[ChainIds.MAINNET]: 'https://mainnet.infura.io/v3',
[ChainIds.GOERLI]: 'https://goerli.infura.io/v3',
Expand Down
2 changes: 1 addition & 1 deletion tools/constants/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airswap/constants",
"version": "4.1.5",
"version": "4.1.6",
"description": "AirSwap: Constants for Developers",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion tools/libraries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"dependencies": {
"@airswap/balances": "4.0.3",
"@airswap/constants": "4.1.5",
"@airswap/constants": "4.1.6",
"@airswap/jsonrpc-client-websocket": "0.0.1",
"@airswap/registry": "4.1.2",
"@airswap/pool": "4.1.3",
Expand Down
2 changes: 1 addition & 1 deletion tools/metadata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"test": "TS_NODE_COMPILER_OPTIONS='{\"strict\":false}' yarn mocha -r ts-node/esm test/*.ts"
},
"dependencies": {
"@airswap/constants": "4.1.5",
"@airswap/constants": "4.1.6",
"@airswap/types": "4.1.1",
"@airswap/wrapper": "4.1.4",
"@openzeppelin/contracts": "^4.8.3",
Expand Down
2 changes: 1 addition & 1 deletion tools/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"test:ci": "yarn test"
},
"dependencies": {
"@airswap/constants": "4.1.5",
"@airswap/constants": "4.1.6",
"@airswap/types": "4.1.1",
"@metamask/eth-sig-util": "^5.0.2",
"bignumber.js": "^9.0.1",
Expand Down

0 comments on commit 0b3c03c

Please sign in to comment.