-
Notifications
You must be signed in to change notification settings - Fork 9
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
add depost & withdraw functions #14
Closed
Closed
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
94144ef
chore: forge init
hieronx 9dd1751
forge install: forge-std
hieronx 2037b88
Setup connector contract
hieronx 6f1b342
forge install: monorepo
hieronx c455f5b
Add nomad dependency
hieronx 4daba72
forge install: openzeppelin-contracts-upgradeable
hieronx 7a3bbc2
Add config, deploy script
hieronx ce93bb5
Changes
hieronx df45a2f
Remove dep
hieronx 2887e02
forge install: openzeppelin-contracts-upgradeable
hieronx 927c5da
Fix compilation
hieronx efda62e
Make basic routing work
hieronx cbaf4e3
Set up token factory
hieronx f72cedf
Set up more methods and tests
hieronx 10830a0
Merge branch 'main' of https://github.com/centrifuge/connectors into …
hieronx 2af145a
Fix message parsing
hieronx 950a1cf
Start working on adding tranches
hieronx d86ec5b
Fix adding tranches
hieronx e5dfd5c
Support updating members, add more tests
hieronx 8b7a487
Remove comments
hieronx 6a470d8
Add update token price
hieronx 9fc9840
Work on new message encoding and decoding tests
hieronx 32f3da0
Set up XCM router and token name + symbol for tranches
hieronx 2421246
Fix adding tranche compilation
hieronx 7609584
add more encoding/decoding tests for Messages
ilinzweilin cf78ecb
merge with recent main changes
ilinzweilin 41a0237
resolve conflict in gitmodules
ilinzweilin 9d105c4
resolve comflicts in Messages tests
ilinzweilin ee54775
increase fuzz run count
ilinzweilin b0358a5
sign commit
ilinzweilin 6f06bed
sign commit
ilinzweilin a347e22
add depost & withdraw functions
ilinzweilin 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ src = 'src' | |
out = 'out' | ||
libs = ['lib'] | ||
|
||
fuzz-runs = 1000 | ||
solc_version = "0.7.6" |
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
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.
Maybe I'm thinking about this wrong, but I don't think we need separate messages. I think we just need a single
Transfer
message, with argumentspool_id
,tranche_id
,destination_domain
, anddestination_address
.E.g, a user call
deposit
on domain A, to initiate a transfer. This burns the tokens and sends aTransfer
message to theCentrifuge
domain (since all transfers go through centrifuge chain). If this goes to domain B, then on domain B theTransfer
message is received and this mints the tokens here. So thedeposit
method would be public and calls the router to send the message, thewithdraw
method is not public and can only be called by the router to mint the tokens on the destination chain.