zksync-sso
Version:
ZKsync Smart Sign On SDK
15 lines (12 loc) • 552 B
text/typescript
import type { Address } from "viem";
import { getGeneralPaymasterInput } from "viem/zksync";
import type { CustomPaymasterHandler, CustomPaymasterHandlerResponse, CustomPaymasterParameters } from "../index.js";
export function createGeneralPaymaster(paymaster: Address): CustomPaymasterHandler {
/* eslint-disable @typescript-eslint/no-unused-vars */
return async (_: CustomPaymasterParameters): CustomPaymasterHandlerResponse => {
return {
paymaster,
paymasterInput: getGeneralPaymasterInput({ innerInput: "0x" }),
};
};
}