"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.abi = void 0;
exports.encodeGetNonce = encodeGetNonce;
exports.decodeGetNonce = decodeGetNonce;
exports.encodeVerifyEIP712 = encodeVerifyEIP712;
exports.decodeVerifyEIP712 = decodeVerifyEIP712;
const common_1 = require("@bosonprotocol/common");
const abi_1 = require("@ethersproject/abi");
exports.abi = common_1.abis.BiconomyForwarderABI;
const forwarderInterface = new abi_1.Interface(exports.abi);
function encodeGetNonce(signerAddress, batchId) {
    return forwarderInterface.encodeFunctionData("getNonce", [
        signerAddress,
        batchId
    ]);
}
function decodeGetNonce(result) {
    return forwarderInterface.decodeFunctionResult("getNonce", result);
}
function encodeVerifyEIP712(request, domainSeparator, signature) {
    return forwarderInterface.encodeFunctionData("verifyEIP712", [
        request,
        domainSeparator,
        signature
    ]);
}
function decodeVerifyEIP712(result) {
    return forwarderInterface.decodeFunctionResult("verifyEIP712", result);
}
//# sourceMappingURL=biconomy-interface.js.map