Skip to content

Commit e024d78

Browse files
authored
Add pay to usageEventSchema (#2465)
1 parent a2002d1 commit e024d78

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/odd-fireants-shake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/service-utils": patch
3+
---
4+
5+
Add pay to usageEventSchema

packages/service-utils/src/cf-worker/usage.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const usageEventSchema = z.object({
2424
"connectWallet",
2525
"checkout",
2626
"engine",
27+
"pay",
2728
]),
2829
action: z.string(),
2930

@@ -65,6 +66,10 @@ const usageEventSchema = z.object({
6566
msSinceQueue: z.number().nonnegative().optional(),
6667
msSinceSend: z.number().nonnegative().optional(),
6768
msTotalDuration: z.number().nonnegative().optional(),
69+
swapId: z.string().optional(),
70+
tokenAddress: z.string().optional(),
71+
amountWei: z.string().optional(),
72+
amountUSDCents: z.number().nonnegative().optional(),
6873
});
6974
export type UsageEvent = z.infer<typeof usageEventSchema>;
7075

0 commit comments

Comments
 (0)