-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simulator: add gamm and tokenfactory messages (#2091)
* initial push * Update simulation/types/account.go Co-authored-by: Dev Ojha <[email protected]> * lint * switch to RandomGenesisState * no need for balance * Update x/tokenfactory/simulation/sim_msgs.go Co-authored-by: Dev Ojha <[email protected]> * Fix merge conflict * Update x/gamm/simulation/sim_msgs.go Co-authored-by: Dev Ojha <[email protected]> * switch to univ2 verbiage * Update x/gamm/simulation/sim_msgs.go Co-authored-by: Dev Ojha <[email protected]> * address Dev comment * Fix merge conflict * name fix 2 * spelling * add mint token factory denom * update path from v7 to v10 * cap join pool to total pool liquidity * remove test logs * check if wallet has enough for pool creation fee * Reduce token factory complexity * Fix compilation issue * Fix second error * Some more updates * Fix lint * Move kludge to helper, fix lint * Fix build * Add log fix discussed in call Co-authored-by: Dev Ojha <[email protected]> Co-authored-by: Dev Ojha <[email protected]>
- Loading branch information
1 parent
8fe3fa7
commit 17ebcc8
Showing
12 changed files
with
324 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package osmoutils | ||
|
||
import "github.com/cosmos/cosmos-sdk/store" | ||
|
||
func GatherAllKeysFromStore(storeObj store.KVStore) []string { | ||
iterator := storeObj.Iterator(nil, nil) | ||
defer iterator.Close() | ||
|
||
keys := []string{} | ||
for ; iterator.Valid(); iterator.Next() { | ||
keys = append(keys, string(iterator.Key())) | ||
} | ||
return keys | ||
} |
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
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.