UNPKG

@unilogin/sdk

Version:

SDK is a JS library, that communicates with relayer. SDK allows managing contract, by creating basic contract-calling messages.

33 lines 2.07 kB
import { ApplicationWallet, ExecutionOptions, Message, SdkExecutionOptions, Procedure, GasMode } from '@unilogin/commons'; import { BigNumber } from 'ethers/utils'; import { OnBalanceChange } from '../../core/observers/BalanceObserver'; import { AbstractWallet } from './AbstractWallet'; import { BackupCodesWithExecution } from './BackupCodesWithExecution'; import UniLoginSdk from '../sdk'; import { Execution } from '../../core/services/ExecutionFactory'; export declare class DeployedWallet extends AbstractWallet { readonly sdk: UniLoginSdk; constructor(contractAddress: string, name: string, privateKey: string, sdk: UniLoginSdk); get asApplicationWallet(): ApplicationWallet; addKey(publicKey: string, executionOptions: ExecutionOptions): Promise<Execution>; addKeys(publicKeys: string[], executionOptions: ExecutionOptions): Promise<Execution>; removeKey(key: string, executionOptions: ExecutionOptions): Promise<Execution>; removeCurrentKey(executionOptions: ExecutionOptions): Promise<Execution>; denyRequests(): Promise<void>; setRequiredSignatures(requiredSignatures: number, executionOptions: ExecutionOptions): Promise<Execution>; execute(message: Partial<Message>): Promise<Execution>; keyExist(key: string): Promise<boolean>; getNonce(): Promise<number>; getConnectedDevices(): Promise<any>; getKeys(): Promise<any>; getRequiredSignatures(): Promise<BigNumber>; getGasModes(): Promise<GasMode[]>; selfExecute(method: string, args: any[], executionOptions: SdkExecutionOptions): Promise<Execution>; generateBackupCodes(executionOptions: ExecutionOptions): Promise<BackupCodesWithExecution>; signMessage(bytes: Uint8Array): Promise<string>; subscribeAuthorisations(callback: Function): Promise<() => void>; readonly authorizations: import("reactive-properties").Property<never[]>; subscribeToBalances(callback: OnBalanceChange): Promise<() => void>; subscribeDisconnected(onDisconnected: Procedure): Promise<() => void>; } //# sourceMappingURL=DeployedWallet.d.ts.map