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
feat(smart-contarcts): add support for swap and purchase when a discount hook is activated #13456
Changes from all commits
fe59b0c
a8bcf54
fd3206f
e2d9219
ebdd21c
501952b
0925e2b
87111a7
5ce6b47
3383990
106a2fc
5c7685a
07f21f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,14 +20,14 @@ | |
"@nomiclabs/hardhat-ethers": "2.2.3", | ||
"@nomiclabs/hardhat-waffle": "2.0.6", | ||
"@uniswap/permit2-sdk": "1.2.0", | ||
"@uniswap/sdk-core": "4.0.9", | ||
"@uniswap/smart-order-router": "3.19.2", | ||
"@uniswap/v3-sdk": "3.10.2", | ||
"@uniswap/sdk-core": "4.2.0", | ||
"@uniswap/smart-order-router": "3.25.0", | ||
"@unlock-protocol/contracts": "workspace:^", | ||
"@unlock-protocol/networks": "workspace:^", | ||
"@unlock-protocol/tsconfig": "workspace:^", | ||
"@unlock-protocol/types": "workspace:^", | ||
"ethers": "6.10.0", | ||
"ethersv5": "npm:ethers@^5.7.2", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added because the alphe router needs it! |
||
"hardhat": "2.20.1", | ||
"typescript": "5.3.3", | ||
"zksync-ethers": "6.1.0" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,7 @@ export const sepolia: NetworkConfig = { | |
networkName: 'sepolia', | ||
studioName: 'unlock-protocol-sepolia', | ||
}, | ||
swapPurchaser: '0x580A4a5a9612371e3832c4559026B9Ee3b23Cc11', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deplpyed on Sepolia but can't test because we're getting 404 on
|
||
tokens: [ | ||
{ | ||
address: '0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed as this was not used. This seems to help remove errors!