PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/viem/_cjs/zksync/utils/paymaster
Просмотр файла: getGeneralPaymasterInput.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getGeneralPaymasterInput = getGeneralPaymasterInput;
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],
});
}
//# sourceMappingURL=getGeneralPaymasterInput.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!