From ae991d59b1f549bedc1790b3e7150f9ce5a5c221 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 11 Aug 2020 07:20:51 +0200 Subject: [PATCH] Remove unused pubkeyTypes --- packages/launchpad/src/types.ts | 4 +--- packages/launchpad/types/types.d.ts | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/launchpad/src/types.ts b/packages/launchpad/src/types.ts index e0de1e84..dc799014 100644 --- a/packages/launchpad/src/types.ts +++ b/packages/launchpad/src/types.ts @@ -37,7 +37,7 @@ export interface StdSignature { } export interface PubKey { - // type is one of the strings defined in pubkeyTypes + // type is one of the strings defined in pubkeyType // I don't use a string literal union here as that makes trouble with json test data: // https://github.com/CosmWasm/cosmjs/pull/44#pullrequestreview-353280504 readonly type: string; @@ -54,5 +54,3 @@ export const pubkeyType = { /** @see https://github.com/tendermint/tendermint/blob/v0.33.0/crypto/sr25519/codec.go#L12 */ sr25519: "tendermint/PubKeySr25519" as const, }; - -export const pubkeyTypes: readonly string[] = [pubkeyType.secp256k1, pubkeyType.ed25519, pubkeyType.sr25519]; diff --git a/packages/launchpad/types/types.d.ts b/packages/launchpad/types/types.d.ts index c12484fa..1a513b41 100644 --- a/packages/launchpad/types/types.d.ts +++ b/packages/launchpad/types/types.d.ts @@ -36,4 +36,3 @@ export declare const pubkeyType: { /** @see https://github.com/tendermint/tendermint/blob/v0.33.0/crypto/sr25519/codec.go#L12 */ sr25519: "tendermint/PubKeySr25519"; }; -export declare const pubkeyTypes: readonly string[];