-
Notifications
You must be signed in to change notification settings - Fork 1k
Arbitrary Bridge pool fee token types #1795
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
Merged
Merged
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
9ec1833
Add Eth whitelist storage keys
sug0 ed2afb2
Add Eth whitelist key tests
sug0 6ca25fd
Add non-usable tokens for Ethereum bridge protocol bookkeeping
sug0 5208f3d
Add a VP for NUT transfers
sug0 9c14b65
Test NUT VP
sug0 4901296
Trigger the NUT native VP
sug0 9b6df79
Update ethbridge-rs to v0.19.0
sug0 b932890
Add transfer to Ethereum kinds (ERC20 or NUT)
sug0 8297842
Mint NUTs upon receiving non-whitelisted assets or exceeding token caps
sug0 82320aa
Add helper fn to whitelist tokens in tests
sug0 1a70c4f
Fix unit tests requiring token whitelist checks
sug0 339e18a
Fix refunding and burning of NUTs
sug0 d115bb0
Rework DAI minting unit tests to account for NUTs
sug0 d26e983
Test burning NUTs
sug0 8de897d
Check NUT escrow in Bridge pool VP
sug0 a839866
Test NUTs in the Bridge pool
sug0 180c986
Add NUT cmdline flag for Bridge pool transfers
sug0 7732e24
Update ethbridge-rs to v0.20.0
sug0 92bb87f
Remove whitelist Ethereum events from the ledger
sug0 a1213c7
Add whitelisted ERC20 tokens to the genesis file
sug0 4777038
Update ethbridge-rs to v0.21.0
sug0 cde9503
Move ethbridge-rs deps to the workspace
sug0 20044d0
Add changelog entry for the Ethereum token whitelist
sug0 2ae23fb
Add helper methods to EthAssetMint
sug0 f1be3f9
Use EthAssetMint helper methods
sug0 6ef086f
Refactor redeem_native_token to use update::amount
sug0 f1bd957
Vet Ethereum bridge config of the native token
sug0 69037fb
Harden Bridge pool VP against wNAM NUT transfers
sug0 a26de50
Update wNAM supplies when acting on Ethereum events
sug0 c67a656
Allow null pre-balances during Bridge pool escrow checks
sug0 d3a4906
Flow control of NAM transferred to Ethereum
sug0 99fe477
Replace ERC20 supply RPC query with atomic read of all flow control data
sug0 2861e46
Refactor get_erc20_flow_control to use EthBridgeQueries
sug0 14556d7
Add test_wnam_doesnt_mint_nuts() unit test
sug0 7efe3c2
Fix test_wrapped_nam_not_burned() unit test
sug0 a714fb3
Fix test_redeem_native_token() unit test
sug0 0655085
Test that wrapped NAM is never minted
sug0 7a53732
Fix test_act_on_changes_storage_for_transfers_to_eth() unit test
sug0 c0b0ed5
Refactor Bridge pool tests to allow modifying pending transfer
sug0 d704d86
Add `asset` field to Balance
sug0 d90a5ea
New Bridge pool VP unit tests for wrapped NAM
sug0 75cf448
Fix wNAM edge cases in Bridge pool VP unit tests
sug0 fd1bf4d
Add invalidate_wnam_over_cap_tx() unit test
sug0 161cf43
Add changelog for #1781
sug0 b30a877
Update ethbridge-rs to v0.22.0
sug0 1a63f01
Fix compilation errors to support new `ethbridge-rs`
sug0 91b2fef
Test pending transfers and events have the same ABI encoding
sug0 5678ee7
Changelog for #1789
sug0 28dad92
Move `check_balance_changes` to Bridge pool VP module
sug0 e102aff
Add token addr field to Bridge pool gas fees
sug0 b30fbeb
Fix compilation errors from prev commit
sug0 1850b07
Check correct gas fee token in Bridge pool transfers
sug0 bbff3cc
Validate different gas fee tokens in Bridge pool VP
sug0 fdf00a8
Fix test_minting_wnam() unit test
sug0 7ec76d9
Add misc Bridge pool VP tests
sug0 5c8a030
Fix bug in `determine_escrow_checks` and document corner cases
sug0 bad6a7c
Arbitrary gas fees in Ethereum events `init_balances`
sug0 8745546
Test paying Bridge pool gas fees in ERC20 tokens
sug0 9c3fbcc
Update CLI args for Bridge pool transfers
sug0 4091b55
Standardize Bridge pool transfer CLI args
sug0 5342193
Make Bridge pool gas payer CLI arg optional
sug0 ce21ebd
Fix docstring
sug0 ba741a5
Add `DenominatedAmount::is_zero`
sug0 27f07c8
Fix the denomination of Bridge pool gas fees
sug0 968f1a6
Changelog for #1795
sug0 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 hidden or 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,2 @@ | ||
| - Implement Ethereum token whitelist. | ||
| ([\#1290](https://github.com/anoma/namada/issues/1290)) |
This file contains hidden or 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,2 @@ | ||
| - Control the flow of NAM over the Ethereum bridge | ||
| ([\#1781](https://github.com/anoma/namada/pull/1781)) |
This file contains hidden or 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,2 @@ | ||
| - Update ethbridge-rs to v0.22.0 | ||
| ([\#1789](https://github.com/anoma/namada/pull/1789)) |
This file contains hidden or 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,2 @@ | ||
| - Allow Bridge pool transfer fees to be paid in arbitrary token types (except | ||
| NUTs) ([\#1795](https://github.com/anoma/namada/pull/1795)) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.