@unilogin/sdk
Version:
SDK is a JS library, that communicates with relayer. SDK allows managing contract, by creating basic contract-calling messages.
20 lines • 693 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var ethers_1 = require("ethers");
var AbstractWallet = /** @class */ (function () {
function AbstractWallet(contractAddress, name, privateKey) {
this.contractAddress = contractAddress;
this.name = name;
this.privateKey = privateKey;
}
Object.defineProperty(AbstractWallet.prototype, "publicKey", {
get: function () {
return ethers_1.utils.computeAddress(this.privateKey);
},
enumerable: true,
configurable: true
});
return AbstractWallet;
}());
exports.AbstractWallet = AbstractWallet;
//# sourceMappingURL=AbstractWallet.js.map
;