From 8ac983fb285f958bced9577e50003c84453f8c44 Mon Sep 17 00:00:00 2001 From: Marko Date: Mon, 12 Apr 2021 08:17:02 +0000 Subject: [PATCH] remove unneeded exported files (#9097) Co-authored-by: Marko Baricevic --- x/authz/exported/keeper.go | 24 ------------------------ x/staking/exported/exported.go | 1 - 2 files changed, 25 deletions(-) delete mode 100644 x/authz/exported/keeper.go delete mode 100644 x/staking/exported/exported.go diff --git a/x/authz/exported/keeper.go b/x/authz/exported/keeper.go deleted file mode 100644 index 0efffca81c..0000000000 --- a/x/authz/exported/keeper.go +++ /dev/null @@ -1,24 +0,0 @@ -package exported - -import ( - "time" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -type Keeper interface { - // DispatchActions executes the provided messages via authorization grants from the message signer to the grantee - DispatchActions(ctx sdk.Context, grantee sdk.AccAddress, msgs []sdk.ServiceMsg) sdk.Result - - // Grants the provided authorization to the grantee on the granter's account with the provided expiration time - // If there is an existing authorization grant for the same sdk.Msg type, this grant overwrites that. - Grant(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, authorization Authorization, expiration time.Time) error - - // Revokes any authorization for the provided message type granted to the grantee by the granter. - Revoke(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, msgType string) - - // Returns any Authorization (or nil), with the expiration time, - // granted to the grantee by the granter for the provided msg type. - // If the Authorization is expired already, it will revoke the authorization and return nil - GetOrRevokeAuthorization(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, msgType string) (cap Authorization, expiration time.Time) -} diff --git a/x/staking/exported/exported.go b/x/staking/exported/exported.go deleted file mode 100644 index eabd8aa3dd..0000000000 --- a/x/staking/exported/exported.go +++ /dev/null @@ -1 +0,0 @@ -package exported