Skip to content

Commit

Permalink
Merge pull request #1863 from mesg-foundation:cleanup/expected-keeper
Browse files Browse the repository at this point in the history
Remove not used expected keeper
  • Loading branch information
antho1404 authored Jun 3, 2020
2 parents e62618f + d5c5091 commit b53e1ce
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 66 deletions.
16 changes: 0 additions & 16 deletions x/execution/internal/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,13 @@ package types

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/bank"
"github.com/cosmos/cosmos-sdk/x/params"
"github.com/mesg-foundation/engine/hash"
instancepb "github.com/mesg-foundation/engine/instance"
processpb "github.com/mesg-foundation/engine/process"
runnerpb "github.com/mesg-foundation/engine/runner"
servicepb "github.com/mesg-foundation/engine/service"
)

// ParamSubspace defines the expected Subspace interfacace
type ParamSubspace interface {
WithKeyTable(table params.KeyTable) params.Subspace
Get(ctx sdk.Context, key []byte, ptr interface{})
GetParamSet(ctx sdk.Context, ps params.ParamSet)
SetParamSet(ctx sdk.Context, ps params.ParamSet)
}

// BankKeeper module interface.
type BankKeeper interface {
SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
InputOutputCoins(ctx sdk.Context, inputs []bank.Input, outputs []bank.Output) error
}

// ServiceKeeper module interface.
type ServiceKeeper interface {
Get(ctx sdk.Context, hash hash.Hash) (*servicepb.Service, error)
Expand Down
9 changes: 0 additions & 9 deletions x/instance/internal/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,10 @@ package types

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/params"
"github.com/mesg-foundation/engine/hash"
servicepb "github.com/mesg-foundation/engine/service"
)

// ParamSubspace defines the expected Subspace interfacace
type ParamSubspace interface {
WithKeyTable(table params.KeyTable) params.Subspace
Get(ctx sdk.Context, key []byte, ptr interface{})
GetParamSet(ctx sdk.Context, ps params.ParamSet)
SetParamSet(ctx sdk.Context, ps params.ParamSet)
}

// ServiceKeeper module interface.
type ServiceKeeper interface {
Get(ctx sdk.Context, hash hash.Hash) (*servicepb.Service, error)
Expand Down
9 changes: 0 additions & 9 deletions x/ownership/internal/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,8 @@ package types

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/params"
)

// ParamSubspace defines the expected Subspace interfacace
type ParamSubspace interface {
WithKeyTable(table params.KeyTable) params.Subspace
Get(ctx sdk.Context, key []byte, ptr interface{})
GetParamSet(ctx sdk.Context, ps params.ParamSet)
SetParamSet(ctx sdk.Context, ps params.ParamSet)
}

// BankKeeper module interface.
type BankKeeper interface {
SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
Expand Down
14 changes: 0 additions & 14 deletions x/process/internal/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,11 @@ package types

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/params"
"github.com/mesg-foundation/engine/hash"
instancepb "github.com/mesg-foundation/engine/instance"
ownershippb "github.com/mesg-foundation/engine/ownership"
)

// ParamSubspace defines the expected Subspace interfacace
type ParamSubspace interface {
WithKeyTable(table params.KeyTable) params.Subspace
Get(ctx sdk.Context, key []byte, ptr interface{})
GetParamSet(ctx sdk.Context, ps params.ParamSet)
SetParamSet(ctx sdk.Context, ps params.ParamSet)
}

// InstanceKeeper module interface.
type InstanceKeeper interface {
Get(ctx sdk.Context, instanceHash hash.Hash) (*instancepb.Instance, error)
Expand All @@ -26,8 +17,3 @@ type OwnershipKeeper interface {
Delete(ctx sdk.Context, owner sdk.AccAddress, resourceHash hash.Hash) error
Set(ctx sdk.Context, owner sdk.AccAddress, resourceHash hash.Hash, resource ownershippb.Ownership_Resource, resourceAddress sdk.AccAddress) (*ownershippb.Ownership, error)
}

// BankKeeper module interface.
type BankKeeper interface {
SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
}
9 changes: 0 additions & 9 deletions x/runner/internal/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,11 @@ package types

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/params"
"github.com/mesg-foundation/engine/hash"
"github.com/mesg-foundation/engine/instance"
ownershippb "github.com/mesg-foundation/engine/ownership"
)

// ParamSubspace defines the expected Subspace interfacace
type ParamSubspace interface {
WithKeyTable(table params.KeyTable) params.Subspace
Get(ctx sdk.Context, key []byte, ptr interface{})
GetParamSet(ctx sdk.Context, ps params.ParamSet)
SetParamSet(ctx sdk.Context, ps params.ParamSet)
}

// InstanceKeeper module interface.
type InstanceKeeper interface {
FetchOrCreate(ctx sdk.Context, serviceHash hash.Hash, envHash hash.Hash) (*instance.Instance, error)
Expand Down
9 changes: 0 additions & 9 deletions x/service/internal/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,10 @@ package types

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/params"
"github.com/mesg-foundation/engine/hash"
ownershippb "github.com/mesg-foundation/engine/ownership"
)

// ParamSubspace defines the expected Subspace interfacace
type ParamSubspace interface {
WithKeyTable(table params.KeyTable) params.Subspace
Get(ctx sdk.Context, key []byte, ptr interface{})
GetParamSet(ctx sdk.Context, ps params.ParamSet)
SetParamSet(ctx sdk.Context, ps params.ParamSet)
}

// OwnershipKeeper module interface.
type OwnershipKeeper interface {
Set(ctx sdk.Context, owner sdk.AccAddress, resourceHash hash.Hash, resource ownershippb.Ownership_Resource, resourceAddress sdk.AccAddress) (*ownershippb.Ownership, error)
Expand Down

0 comments on commit b53e1ce

Please sign in to comment.