UNPKG

@ledgerhq/coin-celo

Version:
16 lines 1.24 kB
import type { CeloTx, RLPEncodedTx, LegacyEncodedTx } from "../types"; import { EvmSignature, EvmAddress } from "@ledgerhq/coin-evm/types/signer"; import { LoadConfig, ResolutionConfig } from "@ledgerhq/hw-app-eth/lib/services/types"; import { EIP712Message } from "@ledgerhq/types-live"; export interface CeloSigner { getAddress: (path: string, boolDisplay?: boolean, boolChaincode?: boolean, chainId?: string) => Promise<EvmAddress>; signTransaction: (path: string, rawTxHex: string, resolution?: any) => Promise<EvmSignature>; signPersonalMessage: (path: string, messageHex: string) => Promise<EvmSignature>; signEIP712Message(path: string, jsonMessage: EIP712Message, fullImplem?: boolean): Promise<EvmSignature>; setLoadConfig: (config: LoadConfig) => void; clearSignTransaction: (path: string, rawTxHex: string, resolutionConfig: ResolutionConfig, throwOnError: boolean) => Promise<EvmSignature>; signEIP712HashedMessage: (path: string, domainSeparatorHex: string, hashStructMessageHex: string) => Promise<EvmSignature>; verifyTokenInfo(to: string, chainId: number): Promise<void>; rlpEncodedTxForLedger(txParams: CeloTx): Promise<RLPEncodedTx | LegacyEncodedTx>; } //# sourceMappingURL=signer.d.ts.map