launchpad: Rename SignResponse -> AminoSignResponse

This commit is contained in:
willclarktech 2020-10-21 14:30:08 +02:00
parent fbc661c054
commit e9de27d7ee
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
5 changed files with 8 additions and 8 deletions

View File

@ -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";

View File

@ -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<SignResponse> {
public async signAmino(signerAddress: string, signDoc: StdSignDoc): Promise<AminoSignResponse> {
if (signerAddress !== this.address) {
throw new Error(`Address ${signerAddress} not found in wallet`);
}

View File

@ -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<SignResponse>;
readonly signAmino: (signerAddress: string, signDoc: StdSignDoc) => Promise<AminoSignResponse>;
}

View File

@ -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";

View File

@ -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<readonly AccountData[]>;
signAmino(signerAddress: string, signDoc: StdSignDoc): Promise<SignResponse>;
signAmino(signerAddress: string, signDoc: StdSignDoc): Promise<AminoSignResponse>;
/**
* Generates an encrypted serialization of this wallet.
*