x/superfluid: ensure events are emitted and tests added #2194
Labels
C:x/superfluid
Good first issue
T:bug 🐛
Something isn't working
T:story
A story belongs to an epic
T:tests
Background
There are a few issues with how we emit superfluid events.
First, some of them are not being emitted on success:
osmosis/x/superfluid/keeper/msg_server.go
Lines 49 to 55 in 979cbd4
The conditional should be the opposite of what it is now.
Second, there are no tests for any superfluid events so we cannot be confident if the rest function as expected.
Third, there is no documentation about what events are for and which attributes they should contain.
Suggested Design
Follow a similar change in
x/gamm
: #1942To limit the scope and ease the review, I suggest associating each PR with the following tasks:
TypeEvtSetSuperfluidAsset
x/superfluid/internal/events
package that contains core logic for emitting eventstypes
since they might be used by integratorsTypeEvtSetSuperfluidAsset
x/superfluid/internal/events
TypeEvtRemoveSuperfluidAsset
Test
TypeEvtRemoveSuperfluidAsset
x/superfluid/internal/events
TypeEvtSuperfluidDelegate
Test
TypeEvtSuperfluidDelegate
x/superfluid/internal/events
TypeEvtSuperfluidIncreaseDelegation
Test
TypeEvtSuperfluidIncreaseDelegation
x/superfluid/internal/events
TypeEvtSuperfluidUndelegate
Test
TypeEvtSuperfluidUndelegate
x/superfluid/internal/events
TypeEvtSuperfluidUnbondLock
Test
TypeEvtSuperfluidUnbondLock
x/superfluid/internal/events
TypeEvtUnpoolId
Test
TypeEvtUnpoolId
x/superfluid/internal/events
Acceptance Criteria
The text was updated successfully, but these errors were encountered: