-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sequencer)!: implement bridge unlock action and derestrict trans…
…fers (#1034) ## Summary Implements bridge accounts' `BridgeUnlock` action and allows bridge accounts to transfer assets like normal. ## Background We need a `BridgeUnlock` action to help with tracking/proving that withdraws for rollup specific events happened. This PR implements the ground work for that by adding a new action with a `memo:bytes` field that is currently unused. We also decided that it's unnecessary to have restrictions on the bridge account in terms of normal transfers in/out of the account. The bridge account is already a privileged actor and having the restrictions on transfer would make normal account maintenance (like gas funding) messy. ## Changes - implement `BridgeUnlockAction` for transferring out a bridge's bridged asset - derestricted the transfer function to let bridge account also act like normal accounts ## Testing unit tests ## Breaking Changelist - one new action is added: `BridgeUnlock` - bridge account now can transfer assets in/out like normal sequencer accounts ## Related Issues closes #983
- Loading branch information
Showing
14 changed files
with
574 additions
and
94 deletions.
There are no files selected for viewing
35 changes: 34 additions & 1 deletion
35
crates/astria-core/src/generated/astria.protocol.transactions.v1alpha1.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
61 changes: 31 additions & 30 deletions
61
...cer__app__tests_breaking_changes__app_execute_transaction_with_every_action_snapshot.snap
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 |
---|---|---|
@@ -1,38 +1,39 @@ | ||
--- | ||
source: crates/astria-sequencer/src/app/tests_breaking_changes.rs | ||
assertion_line: 274 | ||
expression: app.app_hash.as_bytes() | ||
--- | ||
[ | ||
191, | ||
74, | ||
54, | ||
30, | ||
232, | ||
210, | ||
6, | ||
194, | ||
12, | ||
154, | ||
179, | ||
5, | ||
152, | ||
196, | ||
250, | ||
125, | ||
255, | ||
173, | ||
93, | ||
58, | ||
245, | ||
0, | ||
43, | ||
100, | ||
173, | ||
142, | ||
245, | ||
56, | ||
145, | ||
105, | ||
40, | ||
101, | ||
30, | ||
224, | ||
10, | ||
195, | ||
119, | ||
124, | ||
207, | ||
182, | ||
132, | ||
175, | ||
9, | ||
191, | ||
70, | ||
2, | ||
181, | ||
214, | ||
161, | ||
226, | ||
13, | ||
171, | ||
20, | ||
255 | ||
104, | ||
213, | ||
200, | ||
146, | ||
180, | ||
192, | ||
229, | ||
97 | ||
] |
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
Oops, something went wrong.