-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
# 🤖 Linear Closes GIT-72 ## Description Base `shared` package with events structure and removed samples ## Checklist before requesting a review - [X] I have conducted a self-review of my code. - [X] I have conducted a QA. - [X] If it is a core feature, I have included comprehensive tests.
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export type { AnyProtocolEvent, Address } from "./internal.js"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export type { Address } from "viem"; | ||
export * from "./types/index.js"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Address } from "../../internal.js"; | ||
|
||
/** | ||
* This type is used to represent a Allo events. | ||
*/ | ||
export type AlloEvent = "PoolCreated"; | ||
|
||
/** | ||
* This type maps Allo events to their respective parameters. | ||
*/ | ||
export type AlloEventParams<T extends AlloEvent> = T extends "PoolCreated" | ||
? PoolCreatedParams | ||
: never; | ||
|
||
// ============================================================================= | ||
// =============================== Event Parameters ============================ | ||
// ============================================================================= | ||
export type PoolCreatedParams = { | ||
contractAddress: Address; | ||
}; |