UNPKG

@chorus-one/signer-cactus-cosmos

Version:

Cactus signer for the Chorus One SDK, used for signing Cosmos transactions

30 lines (25 loc) 688 B
// NOTE: CactusLink cosmos extension doesn't have typescript intefrace exposed. // This is the best effort "loose" type representation of the CactusLink cosmos extension. export interface Key { name: string algo: string pubKey: string address: string bech32Address: string ethereumAddress: string isNanoLedger: boolean } export interface SignAminoResponse { signature: { signature: string pub_key: { type: string value: string } } signed: any } export interface CactusLinkCosmos { getKey(chainId: string): Promise<Key> signAmino(chainId: string, signer: string, signDoc: any): Promise<SignAminoResponse> }