@unilogin/sdk
Version:
SDK is a JS library, that communicates with relayer. SDK allows managing contract, by creating basic contract-calling messages.
15 lines (12 loc) • 362 B
text/typescript
import {ApplicationWallet} from '@unilogin/commons';
import {utils} from 'ethers';
export class AbstractWallet implements ApplicationWallet {
constructor(
public readonly contractAddress: string,
public readonly name: string,
public readonly privateKey: string,
) { }
get publicKey() {
return utils.computeAddress(this.privateKey);
}
}