Skip to content

Commit

Permalink
add monad testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
IDIDOS committed Feb 20, 2025
1 parent 77e1f39 commit 86e19ef
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"ngx-cookie-service": "^16.0.0",
"querystring-es3": "^0.2.1",
"rpc-websockets": "7.9.0",
"rubic-sdk": "5.52.7",
"rubic-sdk": "5.52.8",
"rxjs": "7.8.1",
"ts-cacheable": "^1.0.5",
"viem": "^1.21.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ const onChainBlacklist: Record<SupportedOnChainNetworks, OnChainTradeType[]> = {
[BLOCKCHAIN_NAME.MORPH]: [],
[BLOCKCHAIN_NAME.FRAXTAL]: [],
[BLOCKCHAIN_NAME.BERACHAIN]: [],
[BLOCKCHAIN_NAME.SONEIUM]: []
[BLOCKCHAIN_NAME.SONEIUM]: [],
[BLOCKCHAIN_NAME.MONAD_TESTNET]: []
};

export const onChainBlacklistProviders: OnChainTradeType[] = [
Expand Down
3 changes: 2 additions & 1 deletion src/app/shared/constants/blockchain/blockchain-color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,6 @@ export const blockchainColor: Record<BlockchainName, string> = {
[BLOCKCHAIN_NAME.MORPH]: '#14a800',
[BLOCKCHAIN_NAME.FRAXTAL]: '#FFFFFF',
[BLOCKCHAIN_NAME.BERACHAIN]: '#FFFFFF',
[BLOCKCHAIN_NAME.SONEIUM]: '#131315'
[BLOCKCHAIN_NAME.SONEIUM]: '#131315',
[BLOCKCHAIN_NAME.MONAD_TESTNET]: '#FFFFFF'
};
3 changes: 2 additions & 1 deletion src/app/shared/constants/blockchain/blockchain-icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,6 @@ export const blockchainIcon: Record<BlockchainName, string> = {
[BLOCKCHAIN_NAME.MORPH]: `${basePath}morph.svg`,
[BLOCKCHAIN_NAME.FRAXTAL]: `${basePath}fraxtal.svg`,
[BLOCKCHAIN_NAME.BERACHAIN]: `${basePath}berachain.svg`,
[BLOCKCHAIN_NAME.SONEIUM]: `${basePath}soneium.svg`
[BLOCKCHAIN_NAME.SONEIUM]: `${basePath}soneium.svg`,
[BLOCKCHAIN_NAME.MONAD_TESTNET]: `${basePath}monad-testnet.svg`
};
3 changes: 2 additions & 1 deletion src/app/shared/constants/blockchain/blockchain-label.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,6 @@ export const blockchainLabel: Record<BlockchainName, string> = {
[BLOCKCHAIN_NAME.MORPH]: 'Morph',
[BLOCKCHAIN_NAME.FRAXTAL]: 'Fraxtal',
[BLOCKCHAIN_NAME.BERACHAIN]: 'Berachain',
[BLOCKCHAIN_NAME.SONEIUM]: 'Soneium'
[BLOCKCHAIN_NAME.SONEIUM]: 'Soneium',
[BLOCKCHAIN_NAME.MONAD_TESTNET]: 'Monad'
};
8 changes: 8 additions & 0 deletions src/app/shared/constants/blockchain/blockchain-scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1226,5 +1226,13 @@ export const blockchainScanner: Record<BlockchainName, ScannerObject> = {
[ADDRESS_TYPE.TOKEN]: 'token/',
[ADDRESS_TYPE.TRANSACTION]: 'tx/',
[ADDRESS_TYPE.BLOCK]: 'block/'
},
[BLOCKCHAIN_NAME.MONAD_TESTNET]: {
baseUrl: 'https://testnet.monadexplorer.com/',
nativeCoinUrl: '',
[ADDRESS_TYPE.WALLET]: 'address/',
[ADDRESS_TYPE.TOKEN]: 'token/',
[ADDRESS_TYPE.TRANSACTION]: 'tx/',
[ADDRESS_TYPE.BLOCK]: 'block/'
}
};
3 changes: 2 additions & 1 deletion src/app/shared/constants/blockchain/rpc-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,5 +365,6 @@ export const rpcList: Record<EvmBlockchainName, string[]> &
'https://1868.rpc.thirdweb.com/',
'https://rpc.soneium.org/',
'https://soneium.drpc.org'
]
],
[BLOCKCHAIN_NAME.MONAD_TESTNET]: ['https://testnet-rpc.monad.xyz']
};
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13141,10 +13141,10 @@ istanbul-reports@^3.0.2, istanbul-reports@^3.0.5:
html-escaper "^2.0.0"
istanbul-lib-report "^3.0.0"

iziswap-sdk@1.5.1:
version "1.5.1"
resolved "https://registry.yarnpkg.com/iziswap-sdk/-/iziswap-sdk-1.5.1.tgz#2d05e0f564500651258dc2a35dd38606864e61d1"
integrity sha512-79a3u3f7aDedAGXIv2qNfL7vLS6TBtJjl94N/vQZL2TCXtiK4o9NvMhhd4gGscwjSyUVZwhlx26/M8G/kERf3Q==
iziswap-sdk@3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/iziswap-sdk/-/iziswap-sdk-3.0.1.tgz#a9ecdbaa005aab6710099e2df19794373bded119"
integrity sha512-q8pLN8kY82/kCx9Ht7c1SaiQ/A/Gp/cH35nj+gsI/3oDKQ0kTmftRr/1D51OHrsDlm5kiuAOMKYpaGWJwRHhKQ==
dependencies:
bignumber.js "^9.0.2"
http "^0.0.1-security"
Expand Down Expand Up @@ -17366,10 +17366,10 @@ rpc-websockets@^9.0.2:
bufferutil "^4.0.1"
utf-8-validate "^5.0.2"

rubic-sdk@5.52.7:
version "5.52.7"
resolved "https://registry.yarnpkg.com/rubic-sdk/-/rubic-sdk-5.52.7.tgz#bfeb1c1f496f6a6edd492661c5ee140f4bd1ff7a"
integrity sha512-mGSSdjnU/3J8in/HJW6RwtBP4l25LSr4nyiv4fYSY1Gqin87iE/s7JKXk9b69WwHRgF0T/SZgFkAb0Vy++n+AQ==
rubic-sdk@5.52.8:
version "5.52.8"
resolved "https://registry.yarnpkg.com/rubic-sdk/-/rubic-sdk-5.52.8.tgz#f5269766d6905d10f76aa9d9e20608fff3f77893"
integrity sha512-8ioj1LRuEtC0keA+0sna91fBdsBkztxgDkF1K+Lmzf01XsrW2X9Xpik9qwwdVIBd/eiZgKNds9arlUoi++IKAQ==
dependencies:
"@1inch/limit-order-protocol-utils" "3.0.1"
"@arbitrum/sdk" "^3.1.3"
Expand Down Expand Up @@ -17402,7 +17402,7 @@ rubic-sdk@5.52.7:
ethers "^5.6.8"
graphql-request "^6.1.0"
grpc-web "^1.4.2"
iziswap-sdk "1.5.1"
iziswap-sdk "3.0.1"
lodash.clonedeep "^4.5.0"
rpc-websockets "7.9.0"
rxjs "7.8.1"
Expand Down

0 comments on commit 86e19ef

Please # to comment.