UNPKG

@abstract-foundation/agw-client

Version:
25 lines (21 loc) 611 B
import { type Address, type Hex } from 'viem'; export interface CustomPaymasterParameters { from: Address; chainId: number; nonce?: number | undefined; to?: Address | undefined; gas?: bigint | undefined; gasPrice?: bigint | undefined; gasPerPubdata?: bigint | undefined; value?: bigint | undefined; data?: Hex | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; } export interface PaymasterArgs { paymaster: Address; paymasterInput: Hex; } export type CustomPaymasterHandler = ( args: CustomPaymasterParameters, ) => Promise<PaymasterArgs>;