@playthecut/agent 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,784 @@
1
+ import { z } from "zod";
2
+ export declare const contestSettingsSchema: z.ZodOptional<z.ZodObject<{
3
+ contestType: z.ZodOptional<z.ZodString>;
4
+ chainId: z.ZodOptional<z.ZodNumber>;
5
+ paymentTokenAddress: z.ZodOptional<z.ZodString>;
6
+ paymentTokenSymbol: z.ZodOptional<z.ZodString>;
7
+ operator: z.ZodOptional<z.ZodString>;
8
+ expiryTimestamp: z.ZodOptional<z.ZodNumber>;
9
+ primaryDeposit: z.ZodOptional<z.ZodNumber>;
10
+ referralNetworkBps: z.ZodOptional<z.ZodNumber>;
11
+ oracleFeeBps: z.ZodOptional<z.ZodNumber>;
12
+ referralGroupId: z.ZodOptional<z.ZodString>;
13
+ primaryDepositSecondarySubsidyBps: z.ZodOptional<z.ZodNumber>;
14
+ primaryEntryInvestmentShareBps: z.ZodOptional<z.ZodNumber>;
15
+ positionBonusShareBps: z.ZodOptional<z.ZodNumber>;
16
+ targetPrimaryShareBps: z.ZodOptional<z.ZodNumber>;
17
+ maxCrossSubsidyBps: z.ZodOptional<z.ZodNumber>;
18
+ maxPlayers: z.ZodOptional<z.ZodNumber>;
19
+ scoringType: z.ZodOptional<z.ZodEnum<["STABLEFORD", "STROKE_PLAY"]>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ contestType?: string | undefined;
22
+ chainId?: number | undefined;
23
+ paymentTokenAddress?: string | undefined;
24
+ paymentTokenSymbol?: string | undefined;
25
+ operator?: string | undefined;
26
+ expiryTimestamp?: number | undefined;
27
+ primaryDeposit?: number | undefined;
28
+ referralNetworkBps?: number | undefined;
29
+ oracleFeeBps?: number | undefined;
30
+ referralGroupId?: string | undefined;
31
+ primaryDepositSecondarySubsidyBps?: number | undefined;
32
+ primaryEntryInvestmentShareBps?: number | undefined;
33
+ positionBonusShareBps?: number | undefined;
34
+ targetPrimaryShareBps?: number | undefined;
35
+ maxCrossSubsidyBps?: number | undefined;
36
+ maxPlayers?: number | undefined;
37
+ scoringType?: "STABLEFORD" | "STROKE_PLAY" | undefined;
38
+ }, {
39
+ contestType?: string | undefined;
40
+ chainId?: number | undefined;
41
+ paymentTokenAddress?: string | undefined;
42
+ paymentTokenSymbol?: string | undefined;
43
+ operator?: string | undefined;
44
+ expiryTimestamp?: number | undefined;
45
+ primaryDeposit?: number | undefined;
46
+ referralNetworkBps?: number | undefined;
47
+ oracleFeeBps?: number | undefined;
48
+ referralGroupId?: string | undefined;
49
+ primaryDepositSecondarySubsidyBps?: number | undefined;
50
+ primaryEntryInvestmentShareBps?: number | undefined;
51
+ positionBonusShareBps?: number | undefined;
52
+ targetPrimaryShareBps?: number | undefined;
53
+ maxCrossSubsidyBps?: number | undefined;
54
+ maxPlayers?: number | undefined;
55
+ scoringType?: "STABLEFORD" | "STROKE_PLAY" | undefined;
56
+ }>>;
57
+ export declare const userOpSchema: z.ZodObject<{
58
+ sender: z.ZodEffects<z.ZodString, `0x${string}`, string>;
59
+ nonce: z.ZodString;
60
+ callData: z.ZodString;
61
+ callGasLimit: z.ZodString;
62
+ verificationGasLimit: z.ZodString;
63
+ preVerificationGas: z.ZodString;
64
+ maxFeePerGas: z.ZodString;
65
+ maxPriorityFeePerGas: z.ZodString;
66
+ paymaster: z.ZodOptional<z.ZodString>;
67
+ paymasterData: z.ZodOptional<z.ZodString>;
68
+ paymasterVerificationGasLimit: z.ZodOptional<z.ZodString>;
69
+ paymasterPostOpGasLimit: z.ZodOptional<z.ZodString>;
70
+ factory: z.ZodOptional<z.ZodString>;
71
+ factoryData: z.ZodOptional<z.ZodString>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ sender: `0x${string}`;
74
+ nonce: string;
75
+ callData: string;
76
+ callGasLimit: string;
77
+ verificationGasLimit: string;
78
+ preVerificationGas: string;
79
+ maxFeePerGas: string;
80
+ maxPriorityFeePerGas: string;
81
+ paymaster?: string | undefined;
82
+ paymasterData?: string | undefined;
83
+ paymasterVerificationGasLimit?: string | undefined;
84
+ paymasterPostOpGasLimit?: string | undefined;
85
+ factory?: string | undefined;
86
+ factoryData?: string | undefined;
87
+ }, {
88
+ sender: string;
89
+ nonce: string;
90
+ callData: string;
91
+ callGasLimit: string;
92
+ verificationGasLimit: string;
93
+ preVerificationGas: string;
94
+ maxFeePerGas: string;
95
+ maxPriorityFeePerGas: string;
96
+ paymaster?: string | undefined;
97
+ paymasterData?: string | undefined;
98
+ paymasterVerificationGasLimit?: string | undefined;
99
+ paymasterPostOpGasLimit?: string | undefined;
100
+ factory?: string | undefined;
101
+ factoryData?: string | undefined;
102
+ }>;
103
+ export declare const playActionSchema: z.ZodObject<{
104
+ chainId: z.ZodNumber;
105
+ action: z.ZodEnum<["lineupUpsert", "join", "leave"]>;
106
+ smartWallet: z.ZodString;
107
+ contestId: z.ZodString;
108
+ lineupId: z.ZodDefault<z.ZodString>;
109
+ candidates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
110
+ prediction: z.ZodOptional<z.ZodUnknown>;
111
+ userOpSignature: z.ZodOptional<z.ZodString>;
112
+ userOp: z.ZodOptional<z.ZodObject<{
113
+ sender: z.ZodEffects<z.ZodString, `0x${string}`, string>;
114
+ nonce: z.ZodString;
115
+ callData: z.ZodString;
116
+ callGasLimit: z.ZodString;
117
+ verificationGasLimit: z.ZodString;
118
+ preVerificationGas: z.ZodString;
119
+ maxFeePerGas: z.ZodString;
120
+ maxPriorityFeePerGas: z.ZodString;
121
+ paymaster: z.ZodOptional<z.ZodString>;
122
+ paymasterData: z.ZodOptional<z.ZodString>;
123
+ paymasterVerificationGasLimit: z.ZodOptional<z.ZodString>;
124
+ paymasterPostOpGasLimit: z.ZodOptional<z.ZodString>;
125
+ factory: z.ZodOptional<z.ZodString>;
126
+ factoryData: z.ZodOptional<z.ZodString>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ sender: `0x${string}`;
129
+ nonce: string;
130
+ callData: string;
131
+ callGasLimit: string;
132
+ verificationGasLimit: string;
133
+ preVerificationGas: string;
134
+ maxFeePerGas: string;
135
+ maxPriorityFeePerGas: string;
136
+ paymaster?: string | undefined;
137
+ paymasterData?: string | undefined;
138
+ paymasterVerificationGasLimit?: string | undefined;
139
+ paymasterPostOpGasLimit?: string | undefined;
140
+ factory?: string | undefined;
141
+ factoryData?: string | undefined;
142
+ }, {
143
+ sender: string;
144
+ nonce: string;
145
+ callData: string;
146
+ callGasLimit: string;
147
+ verificationGasLimit: string;
148
+ preVerificationGas: string;
149
+ maxFeePerGas: string;
150
+ maxPriorityFeePerGas: string;
151
+ paymaster?: string | undefined;
152
+ paymasterData?: string | undefined;
153
+ paymasterVerificationGasLimit?: string | undefined;
154
+ paymasterPostOpGasLimit?: string | undefined;
155
+ factory?: string | undefined;
156
+ factoryData?: string | undefined;
157
+ }>>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ chainId: number;
160
+ action: "join" | "lineupUpsert" | "leave";
161
+ smartWallet: string;
162
+ contestId: string;
163
+ lineupId: string;
164
+ candidates?: string[] | undefined;
165
+ prediction?: unknown;
166
+ userOpSignature?: string | undefined;
167
+ userOp?: {
168
+ sender: `0x${string}`;
169
+ nonce: string;
170
+ callData: string;
171
+ callGasLimit: string;
172
+ verificationGasLimit: string;
173
+ preVerificationGas: string;
174
+ maxFeePerGas: string;
175
+ maxPriorityFeePerGas: string;
176
+ paymaster?: string | undefined;
177
+ paymasterData?: string | undefined;
178
+ paymasterVerificationGasLimit?: string | undefined;
179
+ paymasterPostOpGasLimit?: string | undefined;
180
+ factory?: string | undefined;
181
+ factoryData?: string | undefined;
182
+ } | undefined;
183
+ }, {
184
+ chainId: number;
185
+ action: "join" | "lineupUpsert" | "leave";
186
+ smartWallet: string;
187
+ contestId: string;
188
+ lineupId?: string | undefined;
189
+ candidates?: string[] | undefined;
190
+ prediction?: unknown;
191
+ userOpSignature?: string | undefined;
192
+ userOp?: {
193
+ sender: string;
194
+ nonce: string;
195
+ callData: string;
196
+ callGasLimit: string;
197
+ verificationGasLimit: string;
198
+ preVerificationGas: string;
199
+ maxFeePerGas: string;
200
+ maxPriorityFeePerGas: string;
201
+ paymaster?: string | undefined;
202
+ paymasterData?: string | undefined;
203
+ paymasterVerificationGasLimit?: string | undefined;
204
+ paymasterPostOpGasLimit?: string | undefined;
205
+ factory?: string | undefined;
206
+ factoryData?: string | undefined;
207
+ } | undefined;
208
+ }>;
209
+ export declare const createContestActionSchema: z.ZodObject<{
210
+ chainId: z.ZodNumber;
211
+ action: z.ZodLiteral<"createContest">;
212
+ smartWallet: z.ZodString;
213
+ name: z.ZodString;
214
+ description: z.ZodOptional<z.ZodString>;
215
+ eventId: z.ZodString;
216
+ userGroupId: z.ZodOptional<z.ZodString>;
217
+ endDate: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
218
+ settings: z.ZodOptional<z.ZodObject<{
219
+ contestType: z.ZodOptional<z.ZodString>;
220
+ chainId: z.ZodOptional<z.ZodNumber>;
221
+ paymentTokenAddress: z.ZodOptional<z.ZodString>;
222
+ paymentTokenSymbol: z.ZodOptional<z.ZodString>;
223
+ operator: z.ZodOptional<z.ZodString>;
224
+ expiryTimestamp: z.ZodOptional<z.ZodNumber>;
225
+ primaryDeposit: z.ZodOptional<z.ZodNumber>;
226
+ referralNetworkBps: z.ZodOptional<z.ZodNumber>;
227
+ oracleFeeBps: z.ZodOptional<z.ZodNumber>;
228
+ referralGroupId: z.ZodOptional<z.ZodString>;
229
+ primaryDepositSecondarySubsidyBps: z.ZodOptional<z.ZodNumber>;
230
+ primaryEntryInvestmentShareBps: z.ZodOptional<z.ZodNumber>;
231
+ positionBonusShareBps: z.ZodOptional<z.ZodNumber>;
232
+ targetPrimaryShareBps: z.ZodOptional<z.ZodNumber>;
233
+ maxCrossSubsidyBps: z.ZodOptional<z.ZodNumber>;
234
+ maxPlayers: z.ZodOptional<z.ZodNumber>;
235
+ scoringType: z.ZodOptional<z.ZodEnum<["STABLEFORD", "STROKE_PLAY"]>>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ contestType?: string | undefined;
238
+ chainId?: number | undefined;
239
+ paymentTokenAddress?: string | undefined;
240
+ paymentTokenSymbol?: string | undefined;
241
+ operator?: string | undefined;
242
+ expiryTimestamp?: number | undefined;
243
+ primaryDeposit?: number | undefined;
244
+ referralNetworkBps?: number | undefined;
245
+ oracleFeeBps?: number | undefined;
246
+ referralGroupId?: string | undefined;
247
+ primaryDepositSecondarySubsidyBps?: number | undefined;
248
+ primaryEntryInvestmentShareBps?: number | undefined;
249
+ positionBonusShareBps?: number | undefined;
250
+ targetPrimaryShareBps?: number | undefined;
251
+ maxCrossSubsidyBps?: number | undefined;
252
+ maxPlayers?: number | undefined;
253
+ scoringType?: "STABLEFORD" | "STROKE_PLAY" | undefined;
254
+ }, {
255
+ contestType?: string | undefined;
256
+ chainId?: number | undefined;
257
+ paymentTokenAddress?: string | undefined;
258
+ paymentTokenSymbol?: string | undefined;
259
+ operator?: string | undefined;
260
+ expiryTimestamp?: number | undefined;
261
+ primaryDeposit?: number | undefined;
262
+ referralNetworkBps?: number | undefined;
263
+ oracleFeeBps?: number | undefined;
264
+ referralGroupId?: string | undefined;
265
+ primaryDepositSecondarySubsidyBps?: number | undefined;
266
+ primaryEntryInvestmentShareBps?: number | undefined;
267
+ positionBonusShareBps?: number | undefined;
268
+ targetPrimaryShareBps?: number | undefined;
269
+ maxCrossSubsidyBps?: number | undefined;
270
+ maxPlayers?: number | undefined;
271
+ scoringType?: "STABLEFORD" | "STROKE_PLAY" | undefined;
272
+ }>>;
273
+ notifyLeagueMembers: z.ZodOptional<z.ZodBoolean>;
274
+ userOpSignature: z.ZodOptional<z.ZodString>;
275
+ userOp: z.ZodOptional<z.ZodObject<{
276
+ sender: z.ZodEffects<z.ZodString, `0x${string}`, string>;
277
+ nonce: z.ZodString;
278
+ callData: z.ZodString;
279
+ callGasLimit: z.ZodString;
280
+ verificationGasLimit: z.ZodString;
281
+ preVerificationGas: z.ZodString;
282
+ maxFeePerGas: z.ZodString;
283
+ maxPriorityFeePerGas: z.ZodString;
284
+ paymaster: z.ZodOptional<z.ZodString>;
285
+ paymasterData: z.ZodOptional<z.ZodString>;
286
+ paymasterVerificationGasLimit: z.ZodOptional<z.ZodString>;
287
+ paymasterPostOpGasLimit: z.ZodOptional<z.ZodString>;
288
+ factory: z.ZodOptional<z.ZodString>;
289
+ factoryData: z.ZodOptional<z.ZodString>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ sender: `0x${string}`;
292
+ nonce: string;
293
+ callData: string;
294
+ callGasLimit: string;
295
+ verificationGasLimit: string;
296
+ preVerificationGas: string;
297
+ maxFeePerGas: string;
298
+ maxPriorityFeePerGas: string;
299
+ paymaster?: string | undefined;
300
+ paymasterData?: string | undefined;
301
+ paymasterVerificationGasLimit?: string | undefined;
302
+ paymasterPostOpGasLimit?: string | undefined;
303
+ factory?: string | undefined;
304
+ factoryData?: string | undefined;
305
+ }, {
306
+ sender: string;
307
+ nonce: string;
308
+ callData: string;
309
+ callGasLimit: string;
310
+ verificationGasLimit: string;
311
+ preVerificationGas: string;
312
+ maxFeePerGas: string;
313
+ maxPriorityFeePerGas: string;
314
+ paymaster?: string | undefined;
315
+ paymasterData?: string | undefined;
316
+ paymasterVerificationGasLimit?: string | undefined;
317
+ paymasterPostOpGasLimit?: string | undefined;
318
+ factory?: string | undefined;
319
+ factoryData?: string | undefined;
320
+ }>>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ chainId: number;
323
+ action: "createContest";
324
+ smartWallet: string;
325
+ name: string;
326
+ eventId: string;
327
+ endDate: string | number;
328
+ userOpSignature?: string | undefined;
329
+ userOp?: {
330
+ sender: `0x${string}`;
331
+ nonce: string;
332
+ callData: string;
333
+ callGasLimit: string;
334
+ verificationGasLimit: string;
335
+ preVerificationGas: string;
336
+ maxFeePerGas: string;
337
+ maxPriorityFeePerGas: string;
338
+ paymaster?: string | undefined;
339
+ paymasterData?: string | undefined;
340
+ paymasterVerificationGasLimit?: string | undefined;
341
+ paymasterPostOpGasLimit?: string | undefined;
342
+ factory?: string | undefined;
343
+ factoryData?: string | undefined;
344
+ } | undefined;
345
+ description?: string | undefined;
346
+ userGroupId?: string | undefined;
347
+ settings?: {
348
+ contestType?: string | undefined;
349
+ chainId?: number | undefined;
350
+ paymentTokenAddress?: string | undefined;
351
+ paymentTokenSymbol?: string | undefined;
352
+ operator?: string | undefined;
353
+ expiryTimestamp?: number | undefined;
354
+ primaryDeposit?: number | undefined;
355
+ referralNetworkBps?: number | undefined;
356
+ oracleFeeBps?: number | undefined;
357
+ referralGroupId?: string | undefined;
358
+ primaryDepositSecondarySubsidyBps?: number | undefined;
359
+ primaryEntryInvestmentShareBps?: number | undefined;
360
+ positionBonusShareBps?: number | undefined;
361
+ targetPrimaryShareBps?: number | undefined;
362
+ maxCrossSubsidyBps?: number | undefined;
363
+ maxPlayers?: number | undefined;
364
+ scoringType?: "STABLEFORD" | "STROKE_PLAY" | undefined;
365
+ } | undefined;
366
+ notifyLeagueMembers?: boolean | undefined;
367
+ }, {
368
+ chainId: number;
369
+ action: "createContest";
370
+ smartWallet: string;
371
+ name: string;
372
+ eventId: string;
373
+ endDate: string | number;
374
+ userOpSignature?: string | undefined;
375
+ userOp?: {
376
+ sender: string;
377
+ nonce: string;
378
+ callData: string;
379
+ callGasLimit: string;
380
+ verificationGasLimit: string;
381
+ preVerificationGas: string;
382
+ maxFeePerGas: string;
383
+ maxPriorityFeePerGas: string;
384
+ paymaster?: string | undefined;
385
+ paymasterData?: string | undefined;
386
+ paymasterVerificationGasLimit?: string | undefined;
387
+ paymasterPostOpGasLimit?: string | undefined;
388
+ factory?: string | undefined;
389
+ factoryData?: string | undefined;
390
+ } | undefined;
391
+ description?: string | undefined;
392
+ userGroupId?: string | undefined;
393
+ settings?: {
394
+ contestType?: string | undefined;
395
+ chainId?: number | undefined;
396
+ paymentTokenAddress?: string | undefined;
397
+ paymentTokenSymbol?: string | undefined;
398
+ operator?: string | undefined;
399
+ expiryTimestamp?: number | undefined;
400
+ primaryDeposit?: number | undefined;
401
+ referralNetworkBps?: number | undefined;
402
+ oracleFeeBps?: number | undefined;
403
+ referralGroupId?: string | undefined;
404
+ primaryDepositSecondarySubsidyBps?: number | undefined;
405
+ primaryEntryInvestmentShareBps?: number | undefined;
406
+ positionBonusShareBps?: number | undefined;
407
+ targetPrimaryShareBps?: number | undefined;
408
+ maxCrossSubsidyBps?: number | undefined;
409
+ maxPlayers?: number | undefined;
410
+ scoringType?: "STABLEFORD" | "STROKE_PLAY" | undefined;
411
+ } | undefined;
412
+ notifyLeagueMembers?: boolean | undefined;
413
+ }>;
414
+ export declare const actionSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
415
+ chainId: z.ZodNumber;
416
+ action: z.ZodEnum<["lineupUpsert", "join", "leave"]>;
417
+ smartWallet: z.ZodString;
418
+ contestId: z.ZodString;
419
+ lineupId: z.ZodDefault<z.ZodString>;
420
+ candidates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
421
+ prediction: z.ZodOptional<z.ZodUnknown>;
422
+ userOpSignature: z.ZodOptional<z.ZodString>;
423
+ userOp: z.ZodOptional<z.ZodObject<{
424
+ sender: z.ZodEffects<z.ZodString, `0x${string}`, string>;
425
+ nonce: z.ZodString;
426
+ callData: z.ZodString;
427
+ callGasLimit: z.ZodString;
428
+ verificationGasLimit: z.ZodString;
429
+ preVerificationGas: z.ZodString;
430
+ maxFeePerGas: z.ZodString;
431
+ maxPriorityFeePerGas: z.ZodString;
432
+ paymaster: z.ZodOptional<z.ZodString>;
433
+ paymasterData: z.ZodOptional<z.ZodString>;
434
+ paymasterVerificationGasLimit: z.ZodOptional<z.ZodString>;
435
+ paymasterPostOpGasLimit: z.ZodOptional<z.ZodString>;
436
+ factory: z.ZodOptional<z.ZodString>;
437
+ factoryData: z.ZodOptional<z.ZodString>;
438
+ }, "strip", z.ZodTypeAny, {
439
+ sender: `0x${string}`;
440
+ nonce: string;
441
+ callData: string;
442
+ callGasLimit: string;
443
+ verificationGasLimit: string;
444
+ preVerificationGas: string;
445
+ maxFeePerGas: string;
446
+ maxPriorityFeePerGas: string;
447
+ paymaster?: string | undefined;
448
+ paymasterData?: string | undefined;
449
+ paymasterVerificationGasLimit?: string | undefined;
450
+ paymasterPostOpGasLimit?: string | undefined;
451
+ factory?: string | undefined;
452
+ factoryData?: string | undefined;
453
+ }, {
454
+ sender: string;
455
+ nonce: string;
456
+ callData: string;
457
+ callGasLimit: string;
458
+ verificationGasLimit: string;
459
+ preVerificationGas: string;
460
+ maxFeePerGas: string;
461
+ maxPriorityFeePerGas: string;
462
+ paymaster?: string | undefined;
463
+ paymasterData?: string | undefined;
464
+ paymasterVerificationGasLimit?: string | undefined;
465
+ paymasterPostOpGasLimit?: string | undefined;
466
+ factory?: string | undefined;
467
+ factoryData?: string | undefined;
468
+ }>>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ chainId: number;
471
+ action: "join" | "lineupUpsert" | "leave";
472
+ smartWallet: string;
473
+ contestId: string;
474
+ lineupId: string;
475
+ candidates?: string[] | undefined;
476
+ prediction?: unknown;
477
+ userOpSignature?: string | undefined;
478
+ userOp?: {
479
+ sender: `0x${string}`;
480
+ nonce: string;
481
+ callData: string;
482
+ callGasLimit: string;
483
+ verificationGasLimit: string;
484
+ preVerificationGas: string;
485
+ maxFeePerGas: string;
486
+ maxPriorityFeePerGas: string;
487
+ paymaster?: string | undefined;
488
+ paymasterData?: string | undefined;
489
+ paymasterVerificationGasLimit?: string | undefined;
490
+ paymasterPostOpGasLimit?: string | undefined;
491
+ factory?: string | undefined;
492
+ factoryData?: string | undefined;
493
+ } | undefined;
494
+ }, {
495
+ chainId: number;
496
+ action: "join" | "lineupUpsert" | "leave";
497
+ smartWallet: string;
498
+ contestId: string;
499
+ lineupId?: string | undefined;
500
+ candidates?: string[] | undefined;
501
+ prediction?: unknown;
502
+ userOpSignature?: string | undefined;
503
+ userOp?: {
504
+ sender: string;
505
+ nonce: string;
506
+ callData: string;
507
+ callGasLimit: string;
508
+ verificationGasLimit: string;
509
+ preVerificationGas: string;
510
+ maxFeePerGas: string;
511
+ maxPriorityFeePerGas: string;
512
+ paymaster?: string | undefined;
513
+ paymasterData?: string | undefined;
514
+ paymasterVerificationGasLimit?: string | undefined;
515
+ paymasterPostOpGasLimit?: string | undefined;
516
+ factory?: string | undefined;
517
+ factoryData?: string | undefined;
518
+ } | undefined;
519
+ }>, z.ZodObject<{
520
+ chainId: z.ZodNumber;
521
+ action: z.ZodLiteral<"createContest">;
522
+ smartWallet: z.ZodString;
523
+ name: z.ZodString;
524
+ description: z.ZodOptional<z.ZodString>;
525
+ eventId: z.ZodString;
526
+ userGroupId: z.ZodOptional<z.ZodString>;
527
+ endDate: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
528
+ settings: z.ZodOptional<z.ZodObject<{
529
+ contestType: z.ZodOptional<z.ZodString>;
530
+ chainId: z.ZodOptional<z.ZodNumber>;
531
+ paymentTokenAddress: z.ZodOptional<z.ZodString>;
532
+ paymentTokenSymbol: z.ZodOptional<z.ZodString>;
533
+ operator: z.ZodOptional<z.ZodString>;
534
+ expiryTimestamp: z.ZodOptional<z.ZodNumber>;
535
+ primaryDeposit: z.ZodOptional<z.ZodNumber>;
536
+ referralNetworkBps: z.ZodOptional<z.ZodNumber>;
537
+ oracleFeeBps: z.ZodOptional<z.ZodNumber>;
538
+ referralGroupId: z.ZodOptional<z.ZodString>;
539
+ primaryDepositSecondarySubsidyBps: z.ZodOptional<z.ZodNumber>;
540
+ primaryEntryInvestmentShareBps: z.ZodOptional<z.ZodNumber>;
541
+ positionBonusShareBps: z.ZodOptional<z.ZodNumber>;
542
+ targetPrimaryShareBps: z.ZodOptional<z.ZodNumber>;
543
+ maxCrossSubsidyBps: z.ZodOptional<z.ZodNumber>;
544
+ maxPlayers: z.ZodOptional<z.ZodNumber>;
545
+ scoringType: z.ZodOptional<z.ZodEnum<["STABLEFORD", "STROKE_PLAY"]>>;
546
+ }, "strip", z.ZodTypeAny, {
547
+ contestType?: string | undefined;
548
+ chainId?: number | undefined;
549
+ paymentTokenAddress?: string | undefined;
550
+ paymentTokenSymbol?: string | undefined;
551
+ operator?: string | undefined;
552
+ expiryTimestamp?: number | undefined;
553
+ primaryDeposit?: number | undefined;
554
+ referralNetworkBps?: number | undefined;
555
+ oracleFeeBps?: number | undefined;
556
+ referralGroupId?: string | undefined;
557
+ primaryDepositSecondarySubsidyBps?: number | undefined;
558
+ primaryEntryInvestmentShareBps?: number | undefined;
559
+ positionBonusShareBps?: number | undefined;
560
+ targetPrimaryShareBps?: number | undefined;
561
+ maxCrossSubsidyBps?: number | undefined;
562
+ maxPlayers?: number | undefined;
563
+ scoringType?: "STABLEFORD" | "STROKE_PLAY" | undefined;
564
+ }, {
565
+ contestType?: string | undefined;
566
+ chainId?: number | undefined;
567
+ paymentTokenAddress?: string | undefined;
568
+ paymentTokenSymbol?: string | undefined;
569
+ operator?: string | undefined;
570
+ expiryTimestamp?: number | undefined;
571
+ primaryDeposit?: number | undefined;
572
+ referralNetworkBps?: number | undefined;
573
+ oracleFeeBps?: number | undefined;
574
+ referralGroupId?: string | undefined;
575
+ primaryDepositSecondarySubsidyBps?: number | undefined;
576
+ primaryEntryInvestmentShareBps?: number | undefined;
577
+ positionBonusShareBps?: number | undefined;
578
+ targetPrimaryShareBps?: number | undefined;
579
+ maxCrossSubsidyBps?: number | undefined;
580
+ maxPlayers?: number | undefined;
581
+ scoringType?: "STABLEFORD" | "STROKE_PLAY" | undefined;
582
+ }>>;
583
+ notifyLeagueMembers: z.ZodOptional<z.ZodBoolean>;
584
+ userOpSignature: z.ZodOptional<z.ZodString>;
585
+ userOp: z.ZodOptional<z.ZodObject<{
586
+ sender: z.ZodEffects<z.ZodString, `0x${string}`, string>;
587
+ nonce: z.ZodString;
588
+ callData: z.ZodString;
589
+ callGasLimit: z.ZodString;
590
+ verificationGasLimit: z.ZodString;
591
+ preVerificationGas: z.ZodString;
592
+ maxFeePerGas: z.ZodString;
593
+ maxPriorityFeePerGas: z.ZodString;
594
+ paymaster: z.ZodOptional<z.ZodString>;
595
+ paymasterData: z.ZodOptional<z.ZodString>;
596
+ paymasterVerificationGasLimit: z.ZodOptional<z.ZodString>;
597
+ paymasterPostOpGasLimit: z.ZodOptional<z.ZodString>;
598
+ factory: z.ZodOptional<z.ZodString>;
599
+ factoryData: z.ZodOptional<z.ZodString>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ sender: `0x${string}`;
602
+ nonce: string;
603
+ callData: string;
604
+ callGasLimit: string;
605
+ verificationGasLimit: string;
606
+ preVerificationGas: string;
607
+ maxFeePerGas: string;
608
+ maxPriorityFeePerGas: string;
609
+ paymaster?: string | undefined;
610
+ paymasterData?: string | undefined;
611
+ paymasterVerificationGasLimit?: string | undefined;
612
+ paymasterPostOpGasLimit?: string | undefined;
613
+ factory?: string | undefined;
614
+ factoryData?: string | undefined;
615
+ }, {
616
+ sender: string;
617
+ nonce: string;
618
+ callData: string;
619
+ callGasLimit: string;
620
+ verificationGasLimit: string;
621
+ preVerificationGas: string;
622
+ maxFeePerGas: string;
623
+ maxPriorityFeePerGas: string;
624
+ paymaster?: string | undefined;
625
+ paymasterData?: string | undefined;
626
+ paymasterVerificationGasLimit?: string | undefined;
627
+ paymasterPostOpGasLimit?: string | undefined;
628
+ factory?: string | undefined;
629
+ factoryData?: string | undefined;
630
+ }>>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ chainId: number;
633
+ action: "createContest";
634
+ smartWallet: string;
635
+ name: string;
636
+ eventId: string;
637
+ endDate: string | number;
638
+ userOpSignature?: string | undefined;
639
+ userOp?: {
640
+ sender: `0x${string}`;
641
+ nonce: string;
642
+ callData: string;
643
+ callGasLimit: string;
644
+ verificationGasLimit: string;
645
+ preVerificationGas: string;
646
+ maxFeePerGas: string;
647
+ maxPriorityFeePerGas: string;
648
+ paymaster?: string | undefined;
649
+ paymasterData?: string | undefined;
650
+ paymasterVerificationGasLimit?: string | undefined;
651
+ paymasterPostOpGasLimit?: string | undefined;
652
+ factory?: string | undefined;
653
+ factoryData?: string | undefined;
654
+ } | undefined;
655
+ description?: string | undefined;
656
+ userGroupId?: string | undefined;
657
+ settings?: {
658
+ contestType?: string | undefined;
659
+ chainId?: number | undefined;
660
+ paymentTokenAddress?: string | undefined;
661
+ paymentTokenSymbol?: string | undefined;
662
+ operator?: string | undefined;
663
+ expiryTimestamp?: number | undefined;
664
+ primaryDeposit?: number | undefined;
665
+ referralNetworkBps?: number | undefined;
666
+ oracleFeeBps?: number | undefined;
667
+ referralGroupId?: string | undefined;
668
+ primaryDepositSecondarySubsidyBps?: number | undefined;
669
+ primaryEntryInvestmentShareBps?: number | undefined;
670
+ positionBonusShareBps?: number | undefined;
671
+ targetPrimaryShareBps?: number | undefined;
672
+ maxCrossSubsidyBps?: number | undefined;
673
+ maxPlayers?: number | undefined;
674
+ scoringType?: "STABLEFORD" | "STROKE_PLAY" | undefined;
675
+ } | undefined;
676
+ notifyLeagueMembers?: boolean | undefined;
677
+ }, {
678
+ chainId: number;
679
+ action: "createContest";
680
+ smartWallet: string;
681
+ name: string;
682
+ eventId: string;
683
+ endDate: string | number;
684
+ userOpSignature?: string | undefined;
685
+ userOp?: {
686
+ sender: string;
687
+ nonce: string;
688
+ callData: string;
689
+ callGasLimit: string;
690
+ verificationGasLimit: string;
691
+ preVerificationGas: string;
692
+ maxFeePerGas: string;
693
+ maxPriorityFeePerGas: string;
694
+ paymaster?: string | undefined;
695
+ paymasterData?: string | undefined;
696
+ paymasterVerificationGasLimit?: string | undefined;
697
+ paymasterPostOpGasLimit?: string | undefined;
698
+ factory?: string | undefined;
699
+ factoryData?: string | undefined;
700
+ } | undefined;
701
+ description?: string | undefined;
702
+ userGroupId?: string | undefined;
703
+ settings?: {
704
+ contestType?: string | undefined;
705
+ chainId?: number | undefined;
706
+ paymentTokenAddress?: string | undefined;
707
+ paymentTokenSymbol?: string | undefined;
708
+ operator?: string | undefined;
709
+ expiryTimestamp?: number | undefined;
710
+ primaryDeposit?: number | undefined;
711
+ referralNetworkBps?: number | undefined;
712
+ oracleFeeBps?: number | undefined;
713
+ referralGroupId?: string | undefined;
714
+ primaryDepositSecondarySubsidyBps?: number | undefined;
715
+ primaryEntryInvestmentShareBps?: number | undefined;
716
+ positionBonusShareBps?: number | undefined;
717
+ targetPrimaryShareBps?: number | undefined;
718
+ maxCrossSubsidyBps?: number | undefined;
719
+ maxPlayers?: number | undefined;
720
+ scoringType?: "STABLEFORD" | "STROKE_PLAY" | undefined;
721
+ } | undefined;
722
+ notifyLeagueMembers?: boolean | undefined;
723
+ }>]>;
724
+ export declare const registerSchema: z.ZodObject<{
725
+ email: z.ZodString;
726
+ name: z.ZodOptional<z.ZodString>;
727
+ referralCode: z.ZodOptional<z.ZodString>;
728
+ }, "strip", z.ZodTypeAny, {
729
+ email: string;
730
+ name?: string | undefined;
731
+ referralCode?: string | undefined;
732
+ }, {
733
+ email: string;
734
+ name?: string | undefined;
735
+ referralCode?: string | undefined;
736
+ }>;
737
+ export type UserOpBody = z.infer<typeof userOpSchema>;
738
+ export type PlayActionBody = z.infer<typeof playActionSchema>;
739
+ export type CreateContestActionBody = z.infer<typeof createContestActionSchema>;
740
+ export type ActionBody = z.infer<typeof actionSchema>;
741
+ export type RegisterBody = z.infer<typeof registerSchema>;
742
+ export type BotCandidate = {
743
+ eventParticipantId: string;
744
+ participantId: string;
745
+ displayName: string;
746
+ sortKeys: Record<string, number | string>;
747
+ metadata: unknown;
748
+ };
749
+ export type BotContest = {
750
+ contestId: string;
751
+ name: string;
752
+ eventId: string;
753
+ sportId: string;
754
+ chainId: number;
755
+ status: string;
756
+ address: string | null;
757
+ userGroupId: string | null;
758
+ userGroupName: string | null;
759
+ primaryDeposit: number | null;
760
+ endTime: string;
761
+ candidates: BotCandidate[];
762
+ };
763
+ export type RegisteredAgent = {
764
+ userId: string;
765
+ email: string;
766
+ userType: string;
767
+ name: string;
768
+ referralCode: string;
769
+ smartWallet: string;
770
+ created: boolean;
771
+ };
772
+ export type LineupResult = {
773
+ ok: true;
774
+ lineupId: string;
775
+ };
776
+ export type ContestCreated = {
777
+ ok: true;
778
+ contestId: string;
779
+ address: string;
780
+ };
781
+ export type ContestList = {
782
+ contests: BotContest[];
783
+ };
784
+ //# sourceMappingURL=contract.d.ts.map