Skip to content

Commit

Permalink
feat(tm2/sdk/params): initial version
Browse files Browse the repository at this point in the history
Signed-off-by: moul <[email protected]>
  • Loading branch information
moul committed Oct 8, 2024
1 parent 0c0f9f7 commit e31c026
Show file tree
Hide file tree
Showing 54 changed files with 545 additions and 3,600 deletions.
12 changes: 6 additions & 6 deletions tm2/pkg/sdk/auth/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ func NewAccountKeeper(
}
}

// Logger returns a module-specific logger.
func (ak AccountKeeper) Logger(ctx sdk.Context) *slog.Logger {
return ctx.Logger().With("module", fmt.Sprintf("auth"))
}

// NewAccountWithAddress implements AccountKeeper.
func (ak AccountKeeper) NewAccountWithAddress(ctx sdk.Context, addr crypto.Address) std.Account {
acc := ak.proto()
Expand All @@ -53,7 +48,12 @@ func (ak AccountKeeper) NewAccountWithAddress(ctx sdk.Context, addr crypto.Addre
return acc
}

// GetAccount implements AccountKeeper.
// Logger returns a module-specific logger.
func (ak AccountKeeper) Logger(ctx sdk.Context) *slog.Logger {
return ctx.Logger().With("module", ModuleName)

Check warning on line 53 in tm2/pkg/sdk/auth/keeper.go

View check run for this annotation

Codecov / codecov/patch

tm2/pkg/sdk/auth/keeper.go#L52-L53

Added lines #L52 - L53 were not covered by tests
}

// GetAccount returns a specific account in the AccountKeeper.
func (ak AccountKeeper) GetAccount(ctx sdk.Context, addr crypto.Address) std.Account {
stor := ctx.Store(ak.key)
bz := stor.Get(AddressStoreKey(addr))
Expand Down
4 changes: 2 additions & 2 deletions tm2/pkg/sdk/bank/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ type BankKeeperI interface {

var _ BankKeeperI = BankKeeper{}

// BBankKeeper only allows transfers between accounts without the possibility of
// creating coins. It implements the BankKeeper interface.
// BankKeeper only allows transfers between accounts without the possibility of
// creating coins. It implements the BankKeeperI interface.
type BankKeeper struct {
ViewKeeper

Expand Down
26 changes: 0 additions & 26 deletions tm2/pkg/sdk/params/CHANGELOG.md

This file was deleted.

79 changes: 0 additions & 79 deletions tm2/pkg/sdk/params/README.md

This file was deleted.

31 changes: 0 additions & 31 deletions tm2/pkg/sdk/params/autocli.go

This file was deleted.

92 changes: 0 additions & 92 deletions tm2/pkg/sdk/params/client/cli/tx.go

This file was deleted.

43 changes: 0 additions & 43 deletions tm2/pkg/sdk/params/client/cli/tx_test.go

This file was deleted.

9 changes: 0 additions & 9 deletions tm2/pkg/sdk/params/client/proposal_handler.go

This file was deleted.

69 changes: 0 additions & 69 deletions tm2/pkg/sdk/params/client/utils/utils.go

This file was deleted.

Loading

0 comments on commit e31c026

Please sign in to comment.