UNPKG

@cosmos-kit/walletconnect

Version:

cosmos-kit wallet connector using walletconnect

30 lines (29 loc) 768 B
import { StdSignature } from '@cosmjs/amino'; import { ChainRecord, Wallet } from '@cosmos-kit/core'; import { ChainWC } from './chain-wallet'; import { WCClient } from './client'; export interface IChainWC { new (walletInfo: Wallet, chainInfo: ChainRecord): ChainWC; } export interface IWCClient { new (walletInfo: Wallet): WCClient; } export interface WCDirectSignDoc { chainId: string; accountNumber: string; authInfoBytes: string; bodyBytes: string; } export interface WCSignDirectRequest { signerAddress: string; signDoc: WCDirectSignDoc; } export interface WCSignDirectResponse { signature: StdSignature; signed: WCDirectSignDoc; } export interface WCAccount { address: string; algo: string; pubkey: string; }