0g-chain/x/swap/keeper
Nick DeLuca 911f9f59d6
Hook Regression Test + Deposit Refactor (#967)
* add regression test for hooks; refactor deposit to commit pool and
shares in one place with commit after validation checks; panic on pool
and share set methods if the record is invalid

* use correct hook ordering; add regression test for order - fails if
hooks are not called before or after share record set
2021-07-15 17:29:11 -05:00
..
deposit_test.go Squash merge swap-acceptance branch (#956) 2021-07-13 12:38:15 +01:00
deposit.go Hook Regression Test + Deposit Refactor (#967) 2021-07-15 17:29:11 -05:00
hooks_test.go Hook Regression Test + Deposit Refactor (#967) 2021-07-15 17:29:11 -05:00
hooks.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
integration_test.go Squash merge swap-acceptance branch (#956) 2021-07-13 12:38:15 +01:00
invariant_test.go Hook Regression Test + Deposit Refactor (#967) 2021-07-15 17:29:11 -05:00
keeper_test.go Hook Regression Test + Deposit Refactor (#967) 2021-07-15 17:29:11 -05:00
keeper.go Hook Regression Test + Deposit Refactor (#967) 2021-07-15 17:29:11 -05:00
querier_test.go Swap Genesis State (#960) 2021-07-15 09:42:30 -05:00
querier.go Squash merge swap-acceptance branch (#956) 2021-07-13 12:38:15 +01:00
swap_test.go Hook Regression Test + Deposit Refactor (#967) 2021-07-15 17:29:11 -05:00
swap.go Swap Genesis State (#960) 2021-07-15 09:42:30 -05:00
withdraw_test.go Hook Regression Test + Deposit Refactor (#967) 2021-07-15 17:29:11 -05:00
withdraw.go Hook Regression Test + Deposit Refactor (#967) 2021-07-15 17:29:11 -05:00