diff --git a/zetaclient/authz/authz_signer.go b/zetaclient/authz/authz_signer.go deleted file mode 100644 index 5f1221f9a9..0000000000 --- a/zetaclient/authz/authz_signer.go +++ /dev/null @@ -1,40 +0,0 @@ -package authz - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/zeta-chain/zetacore/pkg/authz" - crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" -) - -type Signer struct { - KeyType authz.KeyType - GranterAddress string - GranteeAddress sdk.AccAddress -} - -func (a Signer) String() string { - return a.KeyType.String() + " " + a.GranterAddress + " " + a.GranteeAddress.String() -} - -var signers map[string]Signer - -func init() { - signersList := make(map[string]Signer) - for _, tx := range crosschaintypes.GetAllAuthzZetaclientTxTypes() { - signersList[tx] = Signer{KeyType: authz.ZetaClientGranteeKey} - } - signers = signersList -} - -func SetupAuthZSignerList(granter string, grantee sdk.AccAddress) { - for k, v := range signers { - v.GranterAddress = granter - v.GranteeAddress = grantee - signers[k] = v - } -} - -func GetSigner(msgURL string) Signer { - return signers[msgURL] -} diff --git a/zetaclient/authz/authz_signer_test.go b/zetaclient/authz/authz_signer_test.go deleted file mode 100644 index 00a25722c4..0000000000 --- a/zetaclient/authz/authz_signer_test.go +++ /dev/null @@ -1 +0,0 @@ -package authz_test