File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
packages/service-utils/src/cf-worker Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @thirdweb-dev/service-utils " : patch
3
+ ---
4
+
5
+ Add pay to usageEventSchema
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ const usageEventSchema = z.object({
24
24
"connectWallet" ,
25
25
"checkout" ,
26
26
"engine" ,
27
+ "pay" ,
27
28
] ) ,
28
29
action : z . string ( ) ,
29
30
@@ -65,6 +66,10 @@ const usageEventSchema = z.object({
65
66
msSinceQueue : z . number ( ) . nonnegative ( ) . optional ( ) ,
66
67
msSinceSend : z . number ( ) . nonnegative ( ) . optional ( ) ,
67
68
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 ( ) ,
68
73
} ) ;
69
74
export type UsageEvent = z . infer < typeof usageEventSchema > ;
70
75
You can’t perform that action at this time.
0 commit comments