-
Notifications
You must be signed in to change notification settings - Fork 30
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
Introduction USDC pool migrated from BOB token #79
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
bdb4c4a
Initial version of migration
akolotov c55fc6a
Tests for impacted pool functionality
akolotov 5e10516
switched to the newest version of forge-std
akolotov 8a92f7c
More efficient way to denominate
akolotov 384ac22
Removed comments, CI tests should pass
akolotov 36a6ee4
Check for withdrawal with swap to native
akolotov 9ae9bc4
First part of checks for DD
akolotov f96bbee
finalised checks
akolotov 582d898
linting fix
akolotov 6a004c1
simplified check for token amount
akolotov 8e9cb1b
prepare for merge to develop
akolotov 27efe11
small fix
akolotov 7e19379
Merge remote-tracking branch 'origin/develop' into migration/bob-to-usdc
akolotov 61e65c0
rollback foundry 1.0.0 since it is unavailable
akolotov c588a5d
remove unnecessary interface
akolotov 119e080
remove unnecessary import
akolotov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity 0.8.15; | ||
|
||
import "./ZkBobPool.sol"; | ||
import "./ZkBobTokenSellerMixin.sol"; | ||
import "./ZkBobUSDCPermitMixin.sol"; | ||
|
||
/** | ||
* @title ZkBobPoolUSDCMigrated | ||
* Shielded transactions pool for USDC tokens supporting USDC transfer authorizations | ||
* It is intended to be deployed as implemenation of the pool for BOB tokens that is | ||
* why it supports the same nomination | ||
*/ | ||
contract ZkBobPoolUSDCMigrated is ZkBobPool, ZkBobTokenSellerMixin, ZkBobUSDCPermitMixin { | ||
constructor( | ||
uint256 __pool_id, | ||
address _token, | ||
ITransferVerifier _transfer_verifier, | ||
ITreeVerifier _tree_verifier, | ||
IBatchDepositVerifier _batch_deposit_verifier, | ||
address _direct_deposit_queue | ||
) | ||
ZkBobPool( | ||
__pool_id, | ||
_token, | ||
_transfer_verifier, | ||
_tree_verifier, | ||
_batch_deposit_verifier, | ||
_direct_deposit_queue, | ||
1, // Make sure that TOKEN_NUMERATOR is set in 1000 in ZkBobPool and ZkBobDirectDepositQueue | ||
1_000_000_000 | ||
) | ||
{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Let's set version to nightly here, to keep it in one place? Or maybe it's even better to put it in the CI variables?
https://docs.github.com/en/actions/learn-github-actions/variables
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.
Yes, I added it to the repository variables