-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Handling of tainted transactions - Extended DepositChannelDetails with owner field - Added extrinsic to mark transaction as tainted - Handling deposit and save details for a refund if tx is tainted * tests: Added tests - Added tests to verify that tainted transactions can get detected for all possible swap types - Added tests to check that txs marked by other brokers are getting ignored * chore: Extended LpRegistration trait + Added to Ingress/Egress config * feat: Getting LP refund address * feature: ensure by lp and broker + added more tests * refactor: Don't error if tx is tainted * refactor: Using DoubleMap instead of Map * refactor: Using BadOrigin + Added unit test * refactor: Inline code + Add Deposit Witness to struct * refactor: Extended lp deposit with refund address - Taking refund address if we open a deposit channel as lp - Extended ChannelAction to take an optional refund address - Removed all dependencies regarding the LpRegistration trait (added last commit) - Refactored tests, benchmarks, etc * feature: Added benchmark * chore: Changes to benchmark * chore: generated mock weights * chore: Added POC for BTC swap rejecting. * chore: only allow mark transactions for BTC * feature: expire tainted transaction * test: refactored tests * chore: Extended RejectCall with DepositWitness * Revert "chore: Extended RejectCall with DepositWitness" This reverts commit 67873ff. * chore: added draft for eth refund implementation * chore: Removed unused events * chore: Ensure only by broker * chore: removed broker from tainted tx struct * chore: Only clone owner * chore: Moved tx tainted check * feature: Added migration for DepositChannelLookup * refactor: Changed data structure + fixed migrations * chore: Handle LP refund address as requirement * chore: Made clippy happy 🙂 * chore: don't manipulate storage in place in iteration 🙅♂️ * test: Added migration test 🧪 * chore: changed pallet storage version 📀 * chore: bumped pallet storage version (again) * chore: using ScheduledTxForReject for refunding * refactor: Changed accounting of expired transactions * refactor: using translate for migration * refactor: using append, refactored test * feature: Added handling of boost channels * feature: Marking txs when prewitness and reject when we process the depo * feat: pre-witnessed rejection handling * chore: Fixed logic + added tests * tests: Refactor/Rearranged tests * chore: Using SECONDS_PER_BLOCK instead of static block seconds * chore: Addressed comments * chore: Fixed clippy in CI * chore: update comments * fix: don't allow report overwrite * chore: Renamed event * feat: improvements: - mark boosted transactions as boosted instead of using channel status - allow pallet config instead of relying on chain - add event for tx reports - only allow reporting of unseen transactions - add doc comments - renaming of types/events - remove unused error * chore: removed not needed RefundParameters, added test * refactor: Rejecting - Changed trait - Refactor AllBatch build - LogOrPanic if reject failed and safe details * chore: fix compiler errors * chore: subtract fees * fix: using deposit address * fix: addressed problems - Introduced NoChangeTransfer ApiCall - Fire event when tx was broadcasted - Handle on_broadcast_ready with no-op * chore: small improvements - Removed not needed derives - Clippy * wip: change depositDetails for btc to utxo * Revert "wip: change depositDetails for btc to utxo" This reverts commit 55de221. * refactor: added current status of tx_id refactor * tests: Moved screening feature tests to own file and test against btc * refactor: - Fire event if we can not reject tx - Split amount and fees in trait - Fix UTXO construct * chore: rearranged imports * refactors: - use Utxo and remove BtcDepositDetails - use saturating_sub for egress fee subtraction - use ChainAccount instead of ForeignChainAddress in RejectCall - simplify definitions of RejectCall using default method --------- Co-authored-by: Daniel <daniel@chainflip.io> Co-authored-by: Maxim Shishmarev <maxim@chainflip.io>
- Loading branch information
1 parent
d905b17
commit e7b8336
Showing
28 changed files
with
949 additions
and
676 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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.