Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cleanup] Minor PR #708 FOllowup #728

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
241 changes: 0 additions & 241 deletions x/tokenomics/keeper/settle_session_accounting.go

This file was deleted.

8 changes: 4 additions & 4 deletions x/tokenomics/keeper/token_logic_modules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func TestProcessTokenLogicModules_HandleAppGoingIntoDebt(t *testing.T) {
require.NoError(t, err)
}

func TestSettleSessionAccounting_ValidAccounting(t *testing.T) {
func TestProcessTokenLogicModules_ValidAccounting(t *testing.T) {
// Create a service that can be registered in the application and used in the claims
service := &sharedtypes.Service{
Id: "svc1",
Expand Down Expand Up @@ -184,7 +184,7 @@ func TestSettleSessionAccounting_ValidAccounting(t *testing.T) {
require.EqualValues(t, supplierModuleStartBalance, supplierModuleEndBalance)
}

func TestSettleSessionAccounting_AppStakeTooLow(t *testing.T) {
func TestProcessTokenLogicModules_AppStakeTooLow(t *testing.T) {
// Create a service that can be registered in the application and used in the claims
service := &sharedtypes.Service{
Id: "svc1",
Expand Down Expand Up @@ -330,7 +330,7 @@ func TestProcessTokenLogicModules_AppNotFound(t *testing.T) {
require.ErrorIs(t, err, tokenomicstypes.ErrTokenomicsApplicationNotFound)
}

func TestSettleSessionAccounting_ServiceNotFound(t *testing.T) {
func TestProcessTokenLogicModules_ServiceNotFound(t *testing.T) {
keeper, ctx, appAddr, supplierAddr, service := testkeeper.TokenomicsKeeperWithActorAddrs(t)

numRelays := uint64(42)
Expand All @@ -350,7 +350,7 @@ func TestSettleSessionAccounting_ServiceNotFound(t *testing.T) {
}

// Execute test function
err := keeper.SettleSessionAccounting(ctx, &claim)
err := keeper.ProcessTokenLogicModules(ctx, &claim)

require.Error(t, err)
require.ErrorIs(t, err, tokenomicstypes.ErrTokenomicsServiceNotFound)
Expand Down
Loading