@biconomy-devx/ethers-lib
Version:
Ethers library adapter to be used by Biconomy SDK
31 lines • 1.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../../../utils");
class EntryPointEthersContract {
constructor(contract) {
this.contract = contract;
}
getAddress() {
return this.contract.address;
}
async getSenderAddress(initCode) {
const resultSet = await this.contract.getSenderAddress(initCode);
return (0, utils_1.toTxResult)(resultSet);
}
getContract() {
return this.contract;
}
async simulateValidation(userOperation) {
const resultSet = await this.contract.simulateValidation(userOperation);
return (0, utils_1.toTxResult)(resultSet);
}
async getUserOpHash(userOperation) {
return this.contract.getUserOpHash(userOperation);
}
async handleOps(userOperations, beneficiary) {
const resultSet = await this.contract.handleOps(userOperations, beneficiary);
return (0, utils_1.toTxResult)(resultSet);
}
}
exports.default = EntryPointEthersContract;
//# sourceMappingURL=EntryPointEthersContract.js.map