-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests(leverage): add simple emergency group integration test
- Loading branch information
1 parent
5f8575a
commit d653b50
Showing
5 changed files
with
79 additions
and
16 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package mocks | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/umee-network/umee/v5/tests/accs" | ||
ugov "github.com/umee-network/umee/v5/x/ugov" | ||
) | ||
|
||
var _ ugov.WithEmergencyGroup = simpleEmergencyGroup{} | ||
|
||
var SimpleEmergencyGroupAddr = accs.GenerateAddr("ugov emergency group") | ||
|
||
type simpleEmergencyGroup struct { | ||
Addr sdk.AccAddress | ||
} | ||
|
||
func (s simpleEmergencyGroup) EmergencyGroup() sdk.AccAddress { | ||
return s.Addr | ||
} | ||
|
||
func NewSimpleEmergencyGroup() ugov.WithEmergencyGroup { | ||
return simpleEmergencyGroup{Addr: SimpleEmergencyGroupAddr} | ||
} |