Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
feat: Contract subscriptions filters (#2653)
Browse files Browse the repository at this point in the history
* feat: add event filters to contract subscriptions

* undo early access warning
  • Loading branch information
arcoraven authored Jun 18, 2024
1 parent 2ff4852 commit 8d243b0
Show file tree
Hide file tree
Showing 5 changed files with 519 additions and 92 deletions.
10 changes: 7 additions & 3 deletions src/@3rdweb-sdk/react/hooks/useEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1259,9 +1259,9 @@ export interface EngineContractSubscription {
webhook?: EngineWebhook;
createdAt: Date;
processEventLogs: boolean;
filterEvents?: string[];
filterEvents: string[];
processTransactionReceipts: boolean;
filterFunctions?: string[];
filterFunctions: string[];

// Dummy field for the table.
lastIndexedBlock: string;
Expand Down Expand Up @@ -1289,7 +1289,11 @@ export function useEngineContractSubscription(instance: string) {
export interface AddContractSubscriptionInput {
chain: string;
contractAddress: string;
webhookUrl?: string;
webhookUrl: string;
processEventLogs: boolean;
filterEvents: string[];
processTransactionReceipts: boolean;
filterFunctions: string[];
}

export function useEngineAddContractSubscription(instance: string) {
Expand Down
Loading

0 comments on commit 8d243b0

Please sign in to comment.