Skip to content
Merged
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
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aperture-lens",
"version": "2.0.2",
"name": "@aperture_finance/aperture-lens",
"version": "3.0.0-alpha0",
"description": "Contains ephemeral lens contracts that can be called without deployment and their interfaces in various Web3 libraries.",
"author": "Aperture Finance <engineering@aperture.finance>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -48,15 +48,15 @@
},
"dependencies": {
"@aperture_finance/uni-v3-lib": "^3.0.3",
"@openzeppelin/contracts": "^5.0.2",
"@openzeppelin/contracts": "^5.4.0",
"ethers": "5.7.2",
"viem": "^2.8.4",
"zod": "^3.23.8"
},
"devDependencies": {
"@ethersproject/abi": "5.7.0",
"@ethersproject/providers": "5.7.2",
"@nomicfoundation/hardhat-foundry": "^1.1.2",
"@nomicfoundation/hardhat-foundry": "^1.2.0",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@pancakeswap/v3-sdk": "^3.8.0",
"@typechain/ethers-v5": "^11.1.2",
Expand All @@ -66,8 +66,8 @@
"@types/node": "^20.11.30",
"@uniswap/v3-sdk": "^3.11.0",
"chai": "^4.4.1",
"dotenv": "^16.4.5",
"hardhat": "^2.22.6",
"dotenv": "^17.2.2",
"hardhat": "^2.26.3",
"mocha": "^10.4.0",
"prettier": "^3.2.5",
"prettier-plugin-solidity": "^1.3.1",
Expand Down
4 changes: 4 additions & 0 deletions src/viem/amm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const AutomatedMarketMakerEnum = z.enum([
'UNISWAP_V3',
'PANCAKESWAP_V3',
'SLIPSTREAM',
'UNISWAP_V4',
]);
export type AutomatedMarketMakerEnum = z.infer<typeof AutomatedMarketMakerEnum>;

Expand All @@ -17,5 +18,8 @@ export function ammToSolidityDexEnum(amm: AutomatedMarketMakerEnum): number {
if (amm === AutomatedMarketMakerEnum.enum.SLIPSTREAM) {
return 2;
}
if (amm === AutomatedMarketMakerEnum.enum.UNISWAP_V4) {
return 3;
}
throw new Error(`Unexpected AMM: ${amm}`);
}
Loading
Loading