Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
2 changes: 1 addition & 1 deletion apps/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"analyze": "ANALYZE=true next build"
},
"dependencies": {
"@curvefi/api": "2.66.30",
"@curvefi/api": "2.67.0",
"@curvefi/llamalend-api": "^1.0.21",
"@ethersproject/abi": "^5.8.0",
"@hookform/error-message": "^2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion apps/main/src/dex/lib/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export async function getNetworks() {

const liteNetworks = Object.values(resp).reduce(
(prev, { chainId, ...config }) => {
const isUpgraded = chainId == Chain.Sonic // sonic is upgraded from lite to full
const isUpgraded = [Chain.Sonic, Chain.Hyperliquid].includes(chainId) // networks upgraded from lite to full
prev[chainId] = {
...getBaseNetworksConfig<NetworkEnum>(Number(chainId), config),
...DEFAULT_NETWORK_CONFIG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const hyperliquid = defineChain({
testnet: false,
nativeCurrency: { name: 'Hype', symbol: 'HYPE', decimals: 18 },
rpcUrls: { default: { http: ['https://rpc.hyperliquid.xyz/evm'] } },
blockExplorers: { default: { name: 'Purrsec', url: 'https://purrsec.com/' } },
blockExplorers: { default: { name: 'Hyperscan', url: 'https://www.hyperscan.com/' } },
})

export const tac = defineChain({
Expand Down
1 change: 1 addition & 0 deletions packages/curve-ui-kit/src/utils/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export enum Chain {
XLayer = 196,
Mantle = 5000,
Sonic = 146,
Hyperliquid = 999,
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/prices-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curvefi/prices-api",
"version": "1.1.6",
"version": "1.1.7",
"license": "MIT",
"type": "module",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/prices-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const chains = [
'polygon',
'fraxtal',
'sonic',
'hyperliquid',
] as const

export type Chain = (typeof chains)[number]
Expand Down
7 changes: 7 additions & 0 deletions packages/ui/src/utils/utilsNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ export const NETWORK_BASE_CONFIG = {
nativeCurrencySymbol: 'S',
explorerUrl: 'https://sonicscan.org/',
},
[Chain.Hyperliquid]: {
id: 'hyperliquid',
chainId: Chain.Hyperliquid,
rpcUrl: `https://rpc.hyperliquid.xyz/evm`,
nativeCurrencySymbol: 'HYPE',
explorerUrl: 'https://www.hyperscan.com/',
},
} satisfies { [key in Chain]: { chainId: key; [_: string]: any } }

export type BaseConfig<TId = string> = {
Expand Down
26 changes: 19 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1709,19 +1709,19 @@ __metadata:
languageName: node
linkType: hard

"@curvefi/api@npm:2.66.30":
version: 2.66.30
resolution: "@curvefi/api@npm:2.66.30"
"@curvefi/api@npm:2.67.0":
version: 2.67.0
resolution: "@curvefi/api@npm:2.67.0"
dependencies:
"@curvefi/ethcall": "npm:^6.0.13"
"@curvefi/ethcall": "npm:^6.0.14"
bignumber.js: "npm:^9.3.0"
ethers: "npm:^6.14.1"
memoizee: "npm:^0.4.17"
checksum: 10c0/bad98fb876986308b2505d13d7658352e8333628fb9de502f609f3cf41565ca5a9813a62d4eeb164fa0cf4a55f1f9d7551864da3f2bb87599ea9d22f801bc8ab
checksum: 10c0/1f40108aedd1c0d6e9bf1f8352b9418a3d0b86fa331936694934986ab649fad69b159bc2a0ea14c7bf79596e2607190d8a6f89a0b158485b9d67f0743296d66f
languageName: node
linkType: hard

"@curvefi/ethcall@npm:6.0.13, @curvefi/ethcall@npm:^6.0.13":
"@curvefi/ethcall@npm:6.0.13":
version: 6.0.13
resolution: "@curvefi/ethcall@npm:6.0.13"
dependencies:
Expand All @@ -1733,6 +1733,18 @@ __metadata:
languageName: node
linkType: hard

"@curvefi/ethcall@npm:^6.0.14":
version: 6.0.14
resolution: "@curvefi/ethcall@npm:6.0.14"
dependencies:
"@types/node": "npm:^22.12.0"
abi-coder: "npm:^5.0.0"
peerDependencies:
ethers: ^6.0.0
checksum: 10c0/a29ca908e4c2c769607374d73c1d926f1b17696901e82352d5834cfcbaa8b5d5a6df4c7925996fd0decba3324bc0fce348d4bf56dec688215f9d67b8aafdf898
languageName: node
linkType: hard

"@curvefi/llamalend-api@npm:^1.0.21":
version: 1.0.21
resolution: "@curvefi/llamalend-api@npm:1.0.21"
Expand Down Expand Up @@ -14987,7 +14999,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "main@workspace:apps/main"
dependencies:
"@curvefi/api": "npm:2.66.30"
"@curvefi/api": "npm:2.67.0"
"@curvefi/llamalend-api": "npm:^1.0.21"
"@ethersproject/abi": "npm:^5.8.0"
"@hookform/error-message": "npm:^2.0.1"
Expand Down