import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "FeeConfigUpdated" event. */ export type FeeConfigUpdatedEventFilters = Partial<{ target: AbiParameterToPrimitiveType<{ type: "address"; name: "target"; indexed: true; }>; action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action"; indexed: true; }>; }>; /** * Creates an event object for the FeeConfigUpdated event. * @param filters - Optional filters to apply to the event. * @returns The prepared event object. * @extension TOKENS * @example * ```ts * import { getContractEvents } from "thirdweb"; * import { feeConfigUpdatedEvent } from "thirdweb/extensions/tokens"; * * const events = await getContractEvents({ * contract, * events: [ * feeConfigUpdatedEvent({ * target: ..., * action: ..., * }) * ], * }); * ``` */ export function feeConfigUpdatedEvent( filters: FeeConfigUpdatedEventFilters = {}, ) { return prepareEvent({ signature: "event FeeConfigUpdated(address indexed target, bytes4 indexed action, address recipient, uint8 feeType, uint256 value)", filters, }); }