-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: integrate with v0.52.x (2/n) (#4423)
- Loading branch information
1 parent
eaba5cf
commit 9be0fb6
Showing
28 changed files
with
409 additions
and
420 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
55 changes: 0 additions & 55 deletions
55
ignite/templates/module/create/files/base/testutil/keeper/{{moduleName}}.go.plush
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
ignite/templates/module/create/files/base/x/{{moduleName}}/keeper/genesis.go.plush
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,28 @@ | ||
package keeper | ||
|
||
import ( | ||
"context" | ||
|
||
"<%= modulePath %>/x/<%= moduleName %>/types" | ||
) | ||
|
||
// InitGenesis initializes the module's state from a provided genesis state. | ||
func (k Keeper) InitGenesis(ctx context.Context, genState types.GenesisState) error { | ||
// this line is used by starport scaffolding # genesis/module/init | ||
return k.Params.Set(ctx, genState.Params) | ||
} | ||
|
||
// ExportGenesis returns the module's exported genesis. | ||
func (k Keeper) ExportGenesis(ctx context.Context) (*types.GenesisState, error) { | ||
var err error | ||
|
||
genesis := types.DefaultGenesis() | ||
genesis.Params, err = k.Params.Get(ctx) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
// this line is used by starport scaffolding # genesis/module/export | ||
|
||
return genesis, nil | ||
} |
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.