@molteee/arena-tools 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.
Files changed (94) hide show
  1. package/bin/arena.js +5 -0
  2. package/dist/client.d.ts +52 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +48 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/commands/accept.d.ts +2 -0
  7. package/dist/commands/accept.d.ts.map +1 -0
  8. package/dist/commands/accept.js +41 -0
  9. package/dist/commands/accept.js.map +1 -0
  10. package/dist/commands/auction.d.ts +7 -0
  11. package/dist/commands/auction.d.ts.map +1 -0
  12. package/dist/commands/auction.js +79 -0
  13. package/dist/commands/auction.js.map +1 -0
  14. package/dist/commands/challenge.d.ts +2 -0
  15. package/dist/commands/challenge.d.ts.map +1 -0
  16. package/dist/commands/challenge.js +44 -0
  17. package/dist/commands/challenge.js.map +1 -0
  18. package/dist/commands/claim-timeout.d.ts +2 -0
  19. package/dist/commands/claim-timeout.d.ts.map +1 -0
  20. package/dist/commands/claim-timeout.js +34 -0
  21. package/dist/commands/claim-timeout.js.map +1 -0
  22. package/dist/commands/find-opponents.d.ts +2 -0
  23. package/dist/commands/find-opponents.d.ts.map +1 -0
  24. package/dist/commands/find-opponents.js +50 -0
  25. package/dist/commands/find-opponents.js.map +1 -0
  26. package/dist/commands/get-game.d.ts +2 -0
  27. package/dist/commands/get-game.d.ts.map +1 -0
  28. package/dist/commands/get-game.js +96 -0
  29. package/dist/commands/get-game.js.map +1 -0
  30. package/dist/commands/get-match.d.ts +2 -0
  31. package/dist/commands/get-match.d.ts.map +1 -0
  32. package/dist/commands/get-match.js +37 -0
  33. package/dist/commands/get-match.js.map +1 -0
  34. package/dist/commands/history.d.ts +2 -0
  35. package/dist/commands/history.d.ts.map +1 -0
  36. package/dist/commands/history.js +33 -0
  37. package/dist/commands/history.js.map +1 -0
  38. package/dist/commands/join-tournament.d.ts +2 -0
  39. package/dist/commands/join-tournament.d.ts.map +1 -0
  40. package/dist/commands/join-tournament.js +37 -0
  41. package/dist/commands/join-tournament.js.map +1 -0
  42. package/dist/commands/market-status.d.ts +2 -0
  43. package/dist/commands/market-status.d.ts.map +1 -0
  44. package/dist/commands/market-status.js +39 -0
  45. package/dist/commands/market-status.js.map +1 -0
  46. package/dist/commands/market.d.ts +9 -0
  47. package/dist/commands/market.d.ts.map +1 -0
  48. package/dist/commands/market.js +87 -0
  49. package/dist/commands/market.js.map +1 -0
  50. package/dist/commands/poker.d.ts +9 -0
  51. package/dist/commands/poker.d.ts.map +1 -0
  52. package/dist/commands/poker.js +120 -0
  53. package/dist/commands/poker.js.map +1 -0
  54. package/dist/commands/register.d.ts +5 -0
  55. package/dist/commands/register.d.ts.map +1 -0
  56. package/dist/commands/register.js +39 -0
  57. package/dist/commands/register.js.map +1 -0
  58. package/dist/commands/rps.d.ts +7 -0
  59. package/dist/commands/rps.d.ts.map +1 -0
  60. package/dist/commands/rps.js +135 -0
  61. package/dist/commands/rps.js.map +1 -0
  62. package/dist/commands/status.d.ts +2 -0
  63. package/dist/commands/status.d.ts.map +1 -0
  64. package/dist/commands/status.js +58 -0
  65. package/dist/commands/status.js.map +1 -0
  66. package/dist/commands/tournaments.d.ts +3 -0
  67. package/dist/commands/tournaments.d.ts.map +1 -0
  68. package/dist/commands/tournaments.js +77 -0
  69. package/dist/commands/tournaments.js.map +1 -0
  70. package/dist/config.d.ts +23 -0
  71. package/dist/config.d.ts.map +1 -0
  72. package/dist/config.js +50 -0
  73. package/dist/config.js.map +1 -0
  74. package/dist/contracts.d.ts +764 -0
  75. package/dist/contracts.d.ts.map +1 -0
  76. package/dist/contracts.js +518 -0
  77. package/dist/contracts.js.map +1 -0
  78. package/dist/index.d.ts +3 -0
  79. package/dist/index.d.ts.map +1 -0
  80. package/dist/index.js +245 -0
  81. package/dist/index.js.map +1 -0
  82. package/dist/utils/commit-reveal.d.ts +22 -0
  83. package/dist/utils/commit-reveal.d.ts.map +1 -0
  84. package/dist/utils/commit-reveal.js +56 -0
  85. package/dist/utils/commit-reveal.js.map +1 -0
  86. package/dist/utils/output.d.ts +9 -0
  87. package/dist/utils/output.d.ts.map +1 -0
  88. package/dist/utils/output.js +30 -0
  89. package/dist/utils/output.js.map +1 -0
  90. package/dist/utils/tx.d.ts +14 -0
  91. package/dist/utils/tx.d.ts.map +1 -0
  92. package/dist/utils/tx.js +35 -0
  93. package/dist/utils/tx.js.map +1 -0
  94. package/package.json +34 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2EnB,CAAC;AAGX,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2DZ,CAAC;AAGX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsFb,CAAC;AAGX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6Ef,CAAC;AAGX,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+DjB,CAAC;AAGX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwFtB,CAAC;AAGX,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDlB,CAAC"}
@@ -0,0 +1,518 @@
1
+ // ─── AgentRegistry ABI ──────────────────────────────────────────────────────
2
+ export const agentRegistryAbi = [
3
+ {
4
+ name: "register",
5
+ type: "function",
6
+ stateMutability: "nonpayable",
7
+ inputs: [
8
+ { name: "_gameTypes", type: "uint8[]" },
9
+ { name: "_minWager", type: "uint256" },
10
+ { name: "_maxWager", type: "uint256" },
11
+ ],
12
+ outputs: [],
13
+ },
14
+ {
15
+ name: "updateStatus",
16
+ type: "function",
17
+ stateMutability: "nonpayable",
18
+ inputs: [{ name: "_isOpen", type: "bool" }],
19
+ outputs: [],
20
+ },
21
+ {
22
+ name: "getAgent",
23
+ type: "function",
24
+ stateMutability: "view",
25
+ inputs: [{ name: "_agent", type: "address" }],
26
+ outputs: [
27
+ {
28
+ name: "",
29
+ type: "tuple",
30
+ components: [
31
+ { name: "wallet", type: "address" },
32
+ { name: "gameTypes", type: "uint8[]" },
33
+ { name: "minWager", type: "uint256" },
34
+ { name: "maxWager", type: "uint256" },
35
+ { name: "isOpen", type: "bool" },
36
+ { name: "exists", type: "bool" },
37
+ ],
38
+ },
39
+ ],
40
+ },
41
+ {
42
+ name: "getOpenAgents",
43
+ type: "function",
44
+ stateMutability: "view",
45
+ inputs: [{ name: "_gameType", type: "uint8" }],
46
+ outputs: [{ name: "", type: "address[]" }],
47
+ },
48
+ {
49
+ name: "elo",
50
+ type: "function",
51
+ stateMutability: "view",
52
+ inputs: [
53
+ { name: "", type: "address" },
54
+ { name: "", type: "uint8" },
55
+ ],
56
+ outputs: [{ name: "", type: "uint256" }],
57
+ },
58
+ {
59
+ name: "getMatchHistory",
60
+ type: "function",
61
+ stateMutability: "view",
62
+ inputs: [{ name: "_agent", type: "address" }],
63
+ outputs: [
64
+ {
65
+ name: "",
66
+ type: "tuple[]",
67
+ components: [
68
+ { name: "opponent", type: "address" },
69
+ { name: "gameType", type: "uint8" },
70
+ { name: "won", type: "bool" },
71
+ { name: "wager", type: "uint256" },
72
+ { name: "timestamp", type: "uint256" },
73
+ ],
74
+ },
75
+ ],
76
+ },
77
+ ];
78
+ // ─── Escrow ABI ──────────────────────────────────────────────────────────────
79
+ export const escrowAbi = [
80
+ {
81
+ name: "createMatch",
82
+ type: "function",
83
+ stateMutability: "payable",
84
+ inputs: [
85
+ { name: "_opponent", type: "address" },
86
+ { name: "_gameContract", type: "address" },
87
+ ],
88
+ outputs: [{ name: "matchId", type: "uint256" }],
89
+ },
90
+ {
91
+ name: "acceptMatch",
92
+ type: "function",
93
+ stateMutability: "payable",
94
+ inputs: [{ name: "_matchId", type: "uint256" }],
95
+ outputs: [],
96
+ },
97
+ {
98
+ name: "cancelMatch",
99
+ type: "function",
100
+ stateMutability: "nonpayable",
101
+ inputs: [{ name: "_matchId", type: "uint256" }],
102
+ outputs: [],
103
+ },
104
+ {
105
+ name: "getMatch",
106
+ type: "function",
107
+ stateMutability: "view",
108
+ inputs: [{ name: "_matchId", type: "uint256" }],
109
+ outputs: [
110
+ {
111
+ name: "",
112
+ type: "tuple",
113
+ components: [
114
+ { name: "player1", type: "address" },
115
+ { name: "player2", type: "address" },
116
+ { name: "wager", type: "uint256" },
117
+ { name: "gameContract", type: "address" },
118
+ { name: "status", type: "uint8" },
119
+ { name: "createdAt", type: "uint256" },
120
+ ],
121
+ },
122
+ ],
123
+ },
124
+ {
125
+ name: "winners",
126
+ type: "function",
127
+ stateMutability: "view",
128
+ inputs: [{ name: "", type: "uint256" }],
129
+ outputs: [{ name: "", type: "address" }],
130
+ },
131
+ {
132
+ name: "nextMatchId",
133
+ type: "function",
134
+ stateMutability: "view",
135
+ inputs: [],
136
+ outputs: [{ name: "", type: "uint256" }],
137
+ },
138
+ ];
139
+ // ─── RPSGame ABI ─────────────────────────────────────────────────────────────
140
+ export const rpsGameAbi = [
141
+ {
142
+ name: "createGame",
143
+ type: "function",
144
+ stateMutability: "nonpayable",
145
+ inputs: [
146
+ { name: "_escrowMatchId", type: "uint256" },
147
+ { name: "_totalRounds", type: "uint256" },
148
+ ],
149
+ outputs: [{ name: "gameId", type: "uint256" }],
150
+ },
151
+ {
152
+ name: "commit",
153
+ type: "function",
154
+ stateMutability: "nonpayable",
155
+ inputs: [
156
+ { name: "_gameId", type: "uint256" },
157
+ { name: "_hash", type: "bytes32" },
158
+ ],
159
+ outputs: [],
160
+ },
161
+ {
162
+ name: "reveal",
163
+ type: "function",
164
+ stateMutability: "nonpayable",
165
+ inputs: [
166
+ { name: "_gameId", type: "uint256" },
167
+ { name: "_move", type: "uint8" },
168
+ { name: "_salt", type: "bytes32" },
169
+ ],
170
+ outputs: [],
171
+ },
172
+ {
173
+ name: "claimTimeout",
174
+ type: "function",
175
+ stateMutability: "nonpayable",
176
+ inputs: [{ name: "_gameId", type: "uint256" }],
177
+ outputs: [],
178
+ },
179
+ {
180
+ name: "getGame",
181
+ type: "function",
182
+ stateMutability: "view",
183
+ inputs: [{ name: "_gameId", type: "uint256" }],
184
+ outputs: [
185
+ {
186
+ name: "",
187
+ type: "tuple",
188
+ components: [
189
+ { name: "escrowMatchId", type: "uint256" },
190
+ { name: "player1", type: "address" },
191
+ { name: "player2", type: "address" },
192
+ { name: "totalRounds", type: "uint256" },
193
+ { name: "currentRound", type: "uint256" },
194
+ { name: "p1Score", type: "uint256" },
195
+ { name: "p2Score", type: "uint256" },
196
+ { name: "phase", type: "uint8" },
197
+ { name: "phaseDeadline", type: "uint256" },
198
+ { name: "settled", type: "bool" },
199
+ ],
200
+ },
201
+ ],
202
+ },
203
+ {
204
+ name: "getRound",
205
+ type: "function",
206
+ stateMutability: "view",
207
+ inputs: [
208
+ { name: "_gameId", type: "uint256" },
209
+ { name: "_round", type: "uint256" },
210
+ ],
211
+ outputs: [
212
+ {
213
+ name: "",
214
+ type: "tuple",
215
+ components: [
216
+ { name: "p1Commit", type: "bytes32" },
217
+ { name: "p2Commit", type: "bytes32" },
218
+ { name: "p1Move", type: "uint8" },
219
+ { name: "p2Move", type: "uint8" },
220
+ { name: "p1Revealed", type: "bool" },
221
+ { name: "p2Revealed", type: "bool" },
222
+ ],
223
+ },
224
+ ],
225
+ },
226
+ ];
227
+ // ─── PokerGame ABI ───────────────────────────────────────────────────────────
228
+ export const pokerGameAbi = [
229
+ {
230
+ name: "createGame",
231
+ type: "function",
232
+ stateMutability: "nonpayable",
233
+ inputs: [{ name: "_escrowMatchId", type: "uint256" }],
234
+ outputs: [{ name: "gameId", type: "uint256" }],
235
+ },
236
+ {
237
+ name: "commitHand",
238
+ type: "function",
239
+ stateMutability: "nonpayable",
240
+ inputs: [
241
+ { name: "_gameId", type: "uint256" },
242
+ { name: "_hash", type: "bytes32" },
243
+ ],
244
+ outputs: [],
245
+ },
246
+ {
247
+ name: "takeAction",
248
+ type: "function",
249
+ stateMutability: "payable",
250
+ inputs: [
251
+ { name: "_gameId", type: "uint256" },
252
+ { name: "_action", type: "uint8" },
253
+ ],
254
+ outputs: [],
255
+ },
256
+ {
257
+ name: "revealHand",
258
+ type: "function",
259
+ stateMutability: "nonpayable",
260
+ inputs: [
261
+ { name: "_gameId", type: "uint256" },
262
+ { name: "_handValue", type: "uint8" },
263
+ { name: "_salt", type: "bytes32" },
264
+ ],
265
+ outputs: [],
266
+ },
267
+ {
268
+ name: "claimTimeout",
269
+ type: "function",
270
+ stateMutability: "nonpayable",
271
+ inputs: [{ name: "_gameId", type: "uint256" }],
272
+ outputs: [],
273
+ },
274
+ {
275
+ name: "getGame",
276
+ type: "function",
277
+ stateMutability: "view",
278
+ inputs: [{ name: "_gameId", type: "uint256" }],
279
+ outputs: [
280
+ {
281
+ name: "",
282
+ type: "tuple",
283
+ components: [
284
+ { name: "escrowMatchId", type: "uint256" },
285
+ { name: "player1", type: "address" },
286
+ { name: "player2", type: "address" },
287
+ { name: "pot", type: "uint256" },
288
+ { name: "currentBet", type: "uint256" },
289
+ { name: "currentTurn", type: "address" },
290
+ { name: "phase", type: "uint8" },
291
+ { name: "phaseDeadline", type: "uint256" },
292
+ { name: "settled", type: "bool" },
293
+ { name: "p1HandValue", type: "uint8" },
294
+ { name: "p2HandValue", type: "uint8" },
295
+ { name: "p1Committed", type: "bool" },
296
+ { name: "p2Committed", type: "bool" },
297
+ { name: "p1Revealed", type: "bool" },
298
+ { name: "p2Revealed", type: "bool" },
299
+ { name: "p1ExtraBets", type: "uint256" },
300
+ { name: "p2ExtraBets", type: "uint256" },
301
+ ],
302
+ },
303
+ ],
304
+ },
305
+ ];
306
+ // ─── AuctionGame ABI ─────────────────────────────────────────────────────────
307
+ export const auctionGameAbi = [
308
+ {
309
+ name: "createGame",
310
+ type: "function",
311
+ stateMutability: "nonpayable",
312
+ inputs: [{ name: "_escrowMatchId", type: "uint256" }],
313
+ outputs: [{ name: "gameId", type: "uint256" }],
314
+ },
315
+ {
316
+ name: "commitBid",
317
+ type: "function",
318
+ stateMutability: "nonpayable",
319
+ inputs: [
320
+ { name: "_gameId", type: "uint256" },
321
+ { name: "_hash", type: "bytes32" },
322
+ ],
323
+ outputs: [],
324
+ },
325
+ {
326
+ name: "revealBid",
327
+ type: "function",
328
+ stateMutability: "nonpayable",
329
+ inputs: [
330
+ { name: "_gameId", type: "uint256" },
331
+ { name: "_bid", type: "uint256" },
332
+ { name: "_salt", type: "bytes32" },
333
+ ],
334
+ outputs: [],
335
+ },
336
+ {
337
+ name: "claimTimeout",
338
+ type: "function",
339
+ stateMutability: "nonpayable",
340
+ inputs: [{ name: "_gameId", type: "uint256" }],
341
+ outputs: [],
342
+ },
343
+ {
344
+ name: "getGame",
345
+ type: "function",
346
+ stateMutability: "view",
347
+ inputs: [{ name: "_gameId", type: "uint256" }],
348
+ outputs: [
349
+ {
350
+ name: "",
351
+ type: "tuple",
352
+ components: [
353
+ { name: "escrowMatchId", type: "uint256" },
354
+ { name: "player1", type: "address" },
355
+ { name: "player2", type: "address" },
356
+ { name: "prize", type: "uint256" },
357
+ { name: "p1Bid", type: "uint256" },
358
+ { name: "p2Bid", type: "uint256" },
359
+ { name: "p1Committed", type: "bool" },
360
+ { name: "p2Committed", type: "bool" },
361
+ { name: "p1Revealed", type: "bool" },
362
+ { name: "p2Revealed", type: "bool" },
363
+ { name: "phase", type: "uint8" },
364
+ { name: "phaseDeadline", type: "uint256" },
365
+ { name: "settled", type: "bool" },
366
+ ],
367
+ },
368
+ ],
369
+ },
370
+ ];
371
+ // ─── PredictionMarket ABI ────────────────────────────────────────────────────
372
+ export const predictionMarketAbi = [
373
+ {
374
+ name: "createMarket",
375
+ type: "function",
376
+ stateMutability: "payable",
377
+ inputs: [{ name: "_matchId", type: "uint256" }],
378
+ outputs: [],
379
+ },
380
+ {
381
+ name: "buyYES",
382
+ type: "function",
383
+ stateMutability: "payable",
384
+ inputs: [{ name: "_marketId", type: "uint256" }],
385
+ outputs: [],
386
+ },
387
+ {
388
+ name: "buyNO",
389
+ type: "function",
390
+ stateMutability: "payable",
391
+ inputs: [{ name: "_marketId", type: "uint256" }],
392
+ outputs: [],
393
+ },
394
+ {
395
+ name: "resolve",
396
+ type: "function",
397
+ stateMutability: "nonpayable",
398
+ inputs: [{ name: "_marketId", type: "uint256" }],
399
+ outputs: [],
400
+ },
401
+ {
402
+ name: "redeem",
403
+ type: "function",
404
+ stateMutability: "nonpayable",
405
+ inputs: [{ name: "_marketId", type: "uint256" }],
406
+ outputs: [],
407
+ },
408
+ {
409
+ name: "getMarket",
410
+ type: "function",
411
+ stateMutability: "view",
412
+ inputs: [{ name: "_marketId", type: "uint256" }],
413
+ outputs: [
414
+ {
415
+ name: "",
416
+ type: "tuple",
417
+ components: [
418
+ { name: "matchId", type: "uint256" },
419
+ { name: "reserveYES", type: "uint256" },
420
+ { name: "reserveNO", type: "uint256" },
421
+ { name: "seedLiquidity", type: "uint256" },
422
+ { name: "player1", type: "address" },
423
+ { name: "player2", type: "address" },
424
+ { name: "resolved", type: "bool" },
425
+ { name: "winner", type: "address" },
426
+ ],
427
+ },
428
+ ],
429
+ },
430
+ {
431
+ name: "getPrice",
432
+ type: "function",
433
+ stateMutability: "view",
434
+ inputs: [{ name: "_marketId", type: "uint256" }],
435
+ outputs: [
436
+ { name: "yesPrice", type: "uint256" },
437
+ { name: "noPrice", type: "uint256" },
438
+ ],
439
+ },
440
+ {
441
+ name: "getUserBalances",
442
+ type: "function",
443
+ stateMutability: "view",
444
+ inputs: [
445
+ { name: "_marketId", type: "uint256" },
446
+ { name: "_user", type: "address" },
447
+ ],
448
+ outputs: [
449
+ { name: "yes", type: "uint256" },
450
+ { name: "no", type: "uint256" },
451
+ ],
452
+ },
453
+ {
454
+ name: "nextMarketId",
455
+ type: "function",
456
+ stateMutability: "view",
457
+ inputs: [],
458
+ outputs: [{ name: "", type: "uint256" }],
459
+ },
460
+ ];
461
+ // ─── TournamentV2 ABI ────────────────────────────────────────────────────────
462
+ export const tournamentV2Abi = [
463
+ {
464
+ name: "register",
465
+ type: "function",
466
+ stateMutability: "payable",
467
+ inputs: [{ name: "_tournamentId", type: "uint256" }],
468
+ outputs: [],
469
+ },
470
+ {
471
+ name: "getTournament",
472
+ type: "function",
473
+ stateMutability: "view",
474
+ inputs: [{ name: "_tournamentId", type: "uint256" }],
475
+ outputs: [
476
+ {
477
+ name: "",
478
+ type: "tuple",
479
+ components: [
480
+ { name: "format", type: "uint8" },
481
+ { name: "entryFee", type: "uint256" },
482
+ { name: "baseWager", type: "uint256" },
483
+ { name: "maxPlayers", type: "uint256" },
484
+ { name: "playerCount", type: "uint256" },
485
+ { name: "prizePool", type: "uint256" },
486
+ { name: "status", type: "uint8" },
487
+ { name: "creator", type: "address" },
488
+ { name: "winner", type: "address" },
489
+ ],
490
+ },
491
+ ],
492
+ },
493
+ {
494
+ name: "getParticipants",
495
+ type: "function",
496
+ stateMutability: "view",
497
+ inputs: [{ name: "_tournamentId", type: "uint256" }],
498
+ outputs: [{ name: "", type: "address[]" }],
499
+ },
500
+ {
501
+ name: "nextTournamentId",
502
+ type: "function",
503
+ stateMutability: "view",
504
+ inputs: [],
505
+ outputs: [{ name: "", type: "uint256" }],
506
+ },
507
+ {
508
+ name: "isRegistered",
509
+ type: "function",
510
+ stateMutability: "view",
511
+ inputs: [
512
+ { name: "", type: "uint256" },
513
+ { name: "", type: "address" },
514
+ ],
515
+ outputs: [{ name: "", type: "bool" }],
516
+ },
517
+ ];
518
+ //# sourceMappingURL=contracts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":"AAMA,+EAA+E;AAC/E,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;YACvC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;YACtC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;SACvC;QACD,OAAO,EAAE,EAAE;KACZ;IACD;QACE,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAC3C,OAAO,EAAE,EAAE;KACZ;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,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AAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACpD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;KAC3C;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAC7B,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC9B;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;KACtC;CACO,CAAC"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}