From e9de27d7ee592da01bb3231c10ca2f7e0517cb26 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 21 Oct 2020 14:30:08 +0200 Subject: [PATCH] launchpad: Rename SignResponse -> AminoSignResponse --- packages/launchpad/src/index.ts | 2 +- packages/launchpad/src/secp256k1hdwallet.ts | 4 ++-- packages/launchpad/src/signer.ts | 4 ++-- packages/launchpad/types/index.d.ts | 2 +- packages/launchpad/types/secp256k1hdwallet.d.ts | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/launchpad/src/index.ts b/packages/launchpad/src/index.ts index fb3cd0a8..2b264517 100644 --- a/packages/launchpad/src/index.ts +++ b/packages/launchpad/src/index.ts @@ -111,7 +111,7 @@ export { } from "./pubkey"; export { findSequenceForSignedTx } from "./sequence"; export { encodeSecp256k1Signature, decodeSignature } from "./signature"; -export { AccountData, Algo, OfflineSigner, SignResponse } from "./signer"; +export { AccountData, Algo, AminoSignResponse, OfflineSigner } from "./signer"; export { CosmosFeeTable, SigningCosmosClient } from "./signingcosmosclient"; export { isStdTx, isWrappedStdTx, makeStdTx, CosmosSdkTx, StdTx, WrappedStdTx, WrappedTx } from "./tx"; export { pubkeyType, PubKey, StdFee, StdSignature } from "./types"; diff --git a/packages/launchpad/src/secp256k1hdwallet.ts b/packages/launchpad/src/secp256k1hdwallet.ts index 1758b08e..2f4d94ca 100644 --- a/packages/launchpad/src/secp256k1hdwallet.ts +++ b/packages/launchpad/src/secp256k1hdwallet.ts @@ -16,7 +16,7 @@ import { assert, isNonNullObject } from "@cosmjs/utils"; import { rawSecp256k1PubkeyToAddress } from "./address"; import { serializeSignDoc, StdSignDoc } from "./encoding"; import { encodeSecp256k1Signature } from "./signature"; -import { AccountData, OfflineSigner, SignResponse } from "./signer"; +import { AccountData, AminoSignResponse, OfflineSigner } from "./signer"; import { decrypt, encrypt, @@ -259,7 +259,7 @@ export class Secp256k1HdWallet implements OfflineSigner { ]; } - public async signAmino(signerAddress: string, signDoc: StdSignDoc): Promise { + public async signAmino(signerAddress: string, signDoc: StdSignDoc): Promise { if (signerAddress !== this.address) { throw new Error(`Address ${signerAddress} not found in wallet`); } diff --git a/packages/launchpad/src/signer.ts b/packages/launchpad/src/signer.ts index c5d88261..57b9829c 100644 --- a/packages/launchpad/src/signer.ts +++ b/packages/launchpad/src/signer.ts @@ -10,7 +10,7 @@ export interface AccountData { readonly pubkey: Uint8Array; } -export interface SignResponse { +export interface AminoSignResponse { /** * The sign doc that was signed. * This may be different from the input signDoc when the signer modifies it as part of the signing process. @@ -34,5 +34,5 @@ export interface OfflineSigner { * @param signerAddress The address of the account that should sign the transaction * @param signDoc The content that should be signed */ - readonly signAmino: (signerAddress: string, signDoc: StdSignDoc) => Promise; + readonly signAmino: (signerAddress: string, signDoc: StdSignDoc) => Promise; } diff --git a/packages/launchpad/types/index.d.ts b/packages/launchpad/types/index.d.ts index 6580a9a2..8b312aae 100644 --- a/packages/launchpad/types/index.d.ts +++ b/packages/launchpad/types/index.d.ts @@ -109,7 +109,7 @@ export { } from "./pubkey"; export { findSequenceForSignedTx } from "./sequence"; export { encodeSecp256k1Signature, decodeSignature } from "./signature"; -export { AccountData, Algo, OfflineSigner, SignResponse } from "./signer"; +export { AccountData, Algo, AminoSignResponse, OfflineSigner } from "./signer"; export { CosmosFeeTable, SigningCosmosClient } from "./signingcosmosclient"; export { isStdTx, isWrappedStdTx, makeStdTx, CosmosSdkTx, StdTx, WrappedStdTx, WrappedTx } from "./tx"; export { pubkeyType, PubKey, StdFee, StdSignature } from "./types"; diff --git a/packages/launchpad/types/secp256k1hdwallet.d.ts b/packages/launchpad/types/secp256k1hdwallet.d.ts index a638708f..9a3be009 100644 --- a/packages/launchpad/types/secp256k1hdwallet.d.ts +++ b/packages/launchpad/types/secp256k1hdwallet.d.ts @@ -1,6 +1,6 @@ import { HdPath } from "@cosmjs/crypto"; import { StdSignDoc } from "./encoding"; -import { AccountData, OfflineSigner, SignResponse } from "./signer"; +import { AccountData, AminoSignResponse, OfflineSigner } from "./signer"; import { EncryptionConfiguration, KdfConfiguration } from "./wallet"; /** * This interface describes a JSON object holding the encrypted wallet and the meta data. @@ -70,7 +70,7 @@ export declare class Secp256k1HdWallet implements OfflineSigner { get mnemonic(): string; private get address(); getAccounts(): Promise; - signAmino(signerAddress: string, signDoc: StdSignDoc): Promise; + signAmino(signerAddress: string, signDoc: StdSignDoc): Promise; /** * Generates an encrypted serialization of this wallet. *