@unilogin/sdk
Version:
SDK is a JS library, that communicates with relayer. SDK allows managing contract, by creating basic contract-calling messages.
18 lines • 1.01 kB
TypeScript
import { providers, Contract } from 'ethers';
import { IWalletContractServiceStrategy } from './WalletContractService';
import { RelayerRequest } from '@unilogin/commons';
export declare class GnosisSafeService implements IWalletContractServiceStrategy {
private provider;
private contract?;
constructor(provider: providers.Provider);
getContractInstance(walletAddress: string): Contract;
lastNonce(walletAddress: string): Promise<number>;
keyExist(walletAddress: string, key: string): any;
requiredSignatures(walletAddress: string): any;
signMessage(privateKey: string, message: Uint8Array, walletAddress?: string): string;
getOwners(walletAddress: string): Promise<string[]>;
encodeFunction(method: string, args?: any[], walletAddress?: string): Promise<string>;
getEventNameFor(event: string): "AddedOwner" | "RemovedOwner";
signRelayerRequest(privateKey: string, relayerRequest: RelayerRequest): RelayerRequest;
}
//# sourceMappingURL=GnosisSafeService.d.ts.map