UNPKG

opstack-kit-chains

Version:
17 lines 807 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getGeneralPaymasterInput = void 0; const encodeFunctionData_js_1 = require("../../../utils/abi/encodeFunctionData.js"); const toHex_js_1 = require("../../../utils/encoding/toHex.js"); const abis_js_1 = require("../../constants/abis.js"); function getGeneralPaymasterInput(parameters) { const { innerInput } = parameters; const innerInputHex = typeof innerInput === 'string' ? innerInput : (0, toHex_js_1.bytesToHex)(innerInput); return (0, encodeFunctionData_js_1.encodeFunctionData)({ abi: abis_js_1.paymasterAbi, functionName: 'general', args: [innerInputHex], }); } exports.getGeneralPaymasterInput = getGeneralPaymasterInput; //# sourceMappingURL=getGeneralPaymasterInput.js.map