@grumble-studios/rug-or-rumble 2.0.0 → 2.0.2

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.
@@ -1,777 +0,0 @@
1
- // This file is auto-generated. Do not edit manually.
2
-
3
- export const RugOrRumbleABI = [
4
- {
5
- "inputs": [],
6
- "name": "ECDSAInvalidSignature",
7
- "type": "error"
8
- },
9
- {
10
- "inputs": [
11
- {
12
- "internalType": "uint256",
13
- "name": "length",
14
- "type": "uint256"
15
- }
16
- ],
17
- "name": "ECDSAInvalidSignatureLength",
18
- "type": "error"
19
- },
20
- {
21
- "inputs": [
22
- {
23
- "internalType": "bytes32",
24
- "name": "s",
25
- "type": "bytes32"
26
- }
27
- ],
28
- "name": "ECDSAInvalidSignatureS",
29
- "type": "error"
30
- },
31
- {
32
- "inputs": [
33
- {
34
- "internalType": "string",
35
- "name": "preliminaryGameId",
36
- "type": "string"
37
- }
38
- ],
39
- "name": "GameAlreadyExists",
40
- "type": "error"
41
- },
42
- {
43
- "inputs": [
44
- {
45
- "internalType": "uint256",
46
- "name": "onChainGameId",
47
- "type": "uint256"
48
- }
49
- ],
50
- "name": "GameDoesNotExist",
51
- "type": "error"
52
- },
53
- {
54
- "inputs": [
55
- {
56
- "internalType": "uint256",
57
- "name": "onChainGameId",
58
- "type": "uint256"
59
- }
60
- ],
61
- "name": "GameNotActive",
62
- "type": "error"
63
- },
64
- {
65
- "inputs": [],
66
- "name": "InvalidInitialization",
67
- "type": "error"
68
- },
69
- {
70
- "inputs": [],
71
- "name": "InvalidServerSignature",
72
- "type": "error"
73
- },
74
- {
75
- "inputs": [
76
- {
77
- "internalType": "uint256",
78
- "name": "onChainGameId",
79
- "type": "uint256"
80
- },
81
- {
82
- "internalType": "address",
83
- "name": "caller",
84
- "type": "address"
85
- }
86
- ],
87
- "name": "NotGamePlayer",
88
- "type": "error"
89
- },
90
- {
91
- "inputs": [],
92
- "name": "NotInitializing",
93
- "type": "error"
94
- },
95
- {
96
- "inputs": [
97
- {
98
- "internalType": "address",
99
- "name": "owner",
100
- "type": "address"
101
- }
102
- ],
103
- "name": "OwnableInvalidOwner",
104
- "type": "error"
105
- },
106
- {
107
- "inputs": [
108
- {
109
- "internalType": "address",
110
- "name": "account",
111
- "type": "address"
112
- }
113
- ],
114
- "name": "OwnableUnauthorizedAccount",
115
- "type": "error"
116
- },
117
- {
118
- "inputs": [
119
- {
120
- "internalType": "uint256",
121
- "name": "onChainGameId",
122
- "type": "uint256"
123
- },
124
- {
125
- "internalType": "uint256",
126
- "name": "amount",
127
- "type": "uint256"
128
- }
129
- ],
130
- "name": "PayoutFailed",
131
- "type": "error"
132
- },
133
- {
134
- "inputs": [],
135
- "name": "ReentrancyGuardReentrantCall",
136
- "type": "error"
137
- },
138
- {
139
- "anonymous": false,
140
- "inputs": [
141
- {
142
- "indexed": true,
143
- "internalType": "address",
144
- "name": "newAdmin",
145
- "type": "address"
146
- }
147
- ],
148
- "name": "AdminAdded",
149
- "type": "event"
150
- },
151
- {
152
- "anonymous": false,
153
- "inputs": [
154
- {
155
- "indexed": true,
156
- "internalType": "address",
157
- "name": "removedAdmin",
158
- "type": "address"
159
- }
160
- ],
161
- "name": "AdminRemoved",
162
- "type": "event"
163
- },
164
- {
165
- "anonymous": false,
166
- "inputs": [
167
- {
168
- "indexed": true,
169
- "internalType": "address",
170
- "name": "sender",
171
- "type": "address"
172
- },
173
- {
174
- "indexed": false,
175
- "internalType": "uint256",
176
- "name": "amount",
177
- "type": "uint256"
178
- }
179
- ],
180
- "name": "DepositReceived",
181
- "type": "event"
182
- },
183
- {
184
- "anonymous": false,
185
- "inputs": [
186
- {
187
- "indexed": false,
188
- "internalType": "string",
189
- "name": "preliminaryGameId",
190
- "type": "string"
191
- },
192
- {
193
- "indexed": true,
194
- "internalType": "uint256",
195
- "name": "onChainGameId",
196
- "type": "uint256"
197
- },
198
- {
199
- "indexed": true,
200
- "internalType": "address",
201
- "name": "player",
202
- "type": "address"
203
- },
204
- {
205
- "indexed": false,
206
- "internalType": "uint256",
207
- "name": "betAmount",
208
- "type": "uint256"
209
- },
210
- {
211
- "indexed": false,
212
- "internalType": "bytes32",
213
- "name": "gameSeedHash",
214
- "type": "bytes32"
215
- }
216
- ],
217
- "name": "GameCreated",
218
- "type": "event"
219
- },
220
- {
221
- "anonymous": false,
222
- "inputs": [
223
- {
224
- "indexed": true,
225
- "internalType": "uint256",
226
- "name": "onChainGameId",
227
- "type": "uint256"
228
- },
229
- {
230
- "indexed": false,
231
- "internalType": "enum RugOrRumble.GameStatus",
232
- "name": "status",
233
- "type": "uint8"
234
- }
235
- ],
236
- "name": "GameStatusUpdated",
237
- "type": "event"
238
- },
239
- {
240
- "anonymous": false,
241
- "inputs": [
242
- {
243
- "indexed": false,
244
- "internalType": "uint64",
245
- "name": "version",
246
- "type": "uint64"
247
- }
248
- ],
249
- "name": "Initialized",
250
- "type": "event"
251
- },
252
- {
253
- "anonymous": false,
254
- "inputs": [
255
- {
256
- "indexed": true,
257
- "internalType": "address",
258
- "name": "previousOwner",
259
- "type": "address"
260
- },
261
- {
262
- "indexed": true,
263
- "internalType": "address",
264
- "name": "newOwner",
265
- "type": "address"
266
- }
267
- ],
268
- "name": "OwnershipTransferred",
269
- "type": "event"
270
- },
271
- {
272
- "anonymous": false,
273
- "inputs": [
274
- {
275
- "indexed": true,
276
- "internalType": "uint256",
277
- "name": "onChainGameId",
278
- "type": "uint256"
279
- },
280
- {
281
- "indexed": false,
282
- "internalType": "uint256",
283
- "name": "amount",
284
- "type": "uint256"
285
- },
286
- {
287
- "indexed": true,
288
- "internalType": "address",
289
- "name": "recipient",
290
- "type": "address"
291
- }
292
- ],
293
- "name": "PayoutSent",
294
- "type": "event"
295
- },
296
- {
297
- "anonymous": false,
298
- "inputs": [
299
- {
300
- "indexed": true,
301
- "internalType": "address",
302
- "name": "recipient",
303
- "type": "address"
304
- },
305
- {
306
- "indexed": false,
307
- "internalType": "uint256",
308
- "name": "amount",
309
- "type": "uint256"
310
- },
311
- {
312
- "indexed": true,
313
- "internalType": "address",
314
- "name": "admin",
315
- "type": "address"
316
- }
317
- ],
318
- "name": "ReferralPaid",
319
- "type": "event"
320
- },
321
- {
322
- "inputs": [
323
- {
324
- "internalType": "address",
325
- "name": "newAdmin",
326
- "type": "address"
327
- }
328
- ],
329
- "name": "addAdmin",
330
- "outputs": [],
331
- "stateMutability": "nonpayable",
332
- "type": "function"
333
- },
334
- {
335
- "inputs": [
336
- {
337
- "internalType": "uint256",
338
- "name": "onChainGameId",
339
- "type": "uint256"
340
- },
341
- {
342
- "internalType": "uint256",
343
- "name": "payoutAmount",
344
- "type": "uint256"
345
- },
346
- {
347
- "internalType": "string",
348
- "name": "gameState",
349
- "type": "string"
350
- },
351
- {
352
- "internalType": "string",
353
- "name": "gameSeed",
354
- "type": "string"
355
- },
356
- {
357
- "internalType": "uint256",
358
- "name": "deadline",
359
- "type": "uint256"
360
- },
361
- {
362
- "internalType": "bytes",
363
- "name": "serverSignature",
364
- "type": "bytes"
365
- }
366
- ],
367
- "name": "cashOut",
368
- "outputs": [],
369
- "stateMutability": "nonpayable",
370
- "type": "function"
371
- },
372
- {
373
- "inputs": [
374
- {
375
- "internalType": "string",
376
- "name": "preliminaryGameId",
377
- "type": "string"
378
- },
379
- {
380
- "internalType": "bytes32",
381
- "name": "gameSeedHash",
382
- "type": "bytes32"
383
- },
384
- {
385
- "internalType": "string",
386
- "name": "algoVersion",
387
- "type": "string"
388
- },
389
- {
390
- "internalType": "string",
391
- "name": "gameConfig",
392
- "type": "string"
393
- },
394
- {
395
- "internalType": "uint256",
396
- "name": "deadline",
397
- "type": "uint256"
398
- },
399
- {
400
- "internalType": "bytes",
401
- "name": "serverSignature",
402
- "type": "bytes"
403
- }
404
- ],
405
- "name": "createGame",
406
- "outputs": [],
407
- "stateMutability": "payable",
408
- "type": "function"
409
- },
410
- {
411
- "inputs": [],
412
- "name": "gameCounter",
413
- "outputs": [
414
- {
415
- "internalType": "uint256",
416
- "name": "",
417
- "type": "uint256"
418
- }
419
- ],
420
- "stateMutability": "view",
421
- "type": "function"
422
- },
423
- {
424
- "inputs": [
425
- {
426
- "internalType": "uint256",
427
- "name": "",
428
- "type": "uint256"
429
- }
430
- ],
431
- "name": "games",
432
- "outputs": [
433
- {
434
- "internalType": "uint256",
435
- "name": "createdAt",
436
- "type": "uint256"
437
- },
438
- {
439
- "internalType": "address",
440
- "name": "player",
441
- "type": "address"
442
- },
443
- {
444
- "internalType": "uint256",
445
- "name": "betAmount",
446
- "type": "uint256"
447
- },
448
- {
449
- "internalType": "enum RugOrRumble.GameStatus",
450
- "name": "status",
451
- "type": "uint8"
452
- },
453
- {
454
- "internalType": "uint256",
455
- "name": "payoutAmount",
456
- "type": "uint256"
457
- },
458
- {
459
- "internalType": "bytes32",
460
- "name": "gameSeedHash",
461
- "type": "bytes32"
462
- },
463
- {
464
- "internalType": "string",
465
- "name": "gameSeed",
466
- "type": "string"
467
- },
468
- {
469
- "internalType": "string",
470
- "name": "algoVersion",
471
- "type": "string"
472
- },
473
- {
474
- "internalType": "string",
475
- "name": "gameConfig",
476
- "type": "string"
477
- },
478
- {
479
- "internalType": "string",
480
- "name": "gameState",
481
- "type": "string"
482
- }
483
- ],
484
- "stateMutability": "view",
485
- "type": "function"
486
- },
487
- {
488
- "inputs": [
489
- {
490
- "internalType": "uint256",
491
- "name": "onChainGameId",
492
- "type": "uint256"
493
- }
494
- ],
495
- "name": "getGameDetails",
496
- "outputs": [
497
- {
498
- "components": [
499
- {
500
- "internalType": "uint256",
501
- "name": "createdAt",
502
- "type": "uint256"
503
- },
504
- {
505
- "internalType": "address",
506
- "name": "player",
507
- "type": "address"
508
- },
509
- {
510
- "internalType": "uint256",
511
- "name": "betAmount",
512
- "type": "uint256"
513
- },
514
- {
515
- "internalType": "enum RugOrRumble.GameStatus",
516
- "name": "status",
517
- "type": "uint8"
518
- },
519
- {
520
- "internalType": "uint256",
521
- "name": "payoutAmount",
522
- "type": "uint256"
523
- },
524
- {
525
- "internalType": "bytes32",
526
- "name": "gameSeedHash",
527
- "type": "bytes32"
528
- },
529
- {
530
- "internalType": "string",
531
- "name": "gameSeed",
532
- "type": "string"
533
- },
534
- {
535
- "internalType": "string",
536
- "name": "algoVersion",
537
- "type": "string"
538
- },
539
- {
540
- "internalType": "string",
541
- "name": "gameConfig",
542
- "type": "string"
543
- },
544
- {
545
- "internalType": "string",
546
- "name": "gameState",
547
- "type": "string"
548
- }
549
- ],
550
- "internalType": "struct RugOrRumble.Game",
551
- "name": "",
552
- "type": "tuple"
553
- }
554
- ],
555
- "stateMutability": "view",
556
- "type": "function"
557
- },
558
- {
559
- "inputs": [
560
- {
561
- "internalType": "string",
562
- "name": "preliminaryGameId",
563
- "type": "string"
564
- }
565
- ],
566
- "name": "getOnChainGameId",
567
- "outputs": [
568
- {
569
- "internalType": "uint256",
570
- "name": "",
571
- "type": "uint256"
572
- }
573
- ],
574
- "stateMutability": "view",
575
- "type": "function"
576
- },
577
- {
578
- "inputs": [
579
- {
580
- "internalType": "string",
581
- "name": "_messagePrefix",
582
- "type": "string"
583
- }
584
- ],
585
- "name": "initialize",
586
- "outputs": [],
587
- "stateMutability": "nonpayable",
588
- "type": "function"
589
- },
590
- {
591
- "inputs": [
592
- {
593
- "internalType": "address",
594
- "name": "",
595
- "type": "address"
596
- }
597
- ],
598
- "name": "isAdmin",
599
- "outputs": [
600
- {
601
- "internalType": "bool",
602
- "name": "",
603
- "type": "bool"
604
- }
605
- ],
606
- "stateMutability": "view",
607
- "type": "function"
608
- },
609
- {
610
- "inputs": [
611
- {
612
- "internalType": "uint256",
613
- "name": "onChainGameId",
614
- "type": "uint256"
615
- },
616
- {
617
- "internalType": "string",
618
- "name": "gameState",
619
- "type": "string"
620
- },
621
- {
622
- "internalType": "string",
623
- "name": "gameSeed",
624
- "type": "string"
625
- },
626
- {
627
- "internalType": "uint256",
628
- "name": "deadline",
629
- "type": "uint256"
630
- },
631
- {
632
- "internalType": "bytes",
633
- "name": "serverSignature",
634
- "type": "bytes"
635
- }
636
- ],
637
- "name": "markGameAsLost",
638
- "outputs": [],
639
- "stateMutability": "nonpayable",
640
- "type": "function"
641
- },
642
- {
643
- "inputs": [],
644
- "name": "messagePrefix",
645
- "outputs": [
646
- {
647
- "internalType": "string",
648
- "name": "",
649
- "type": "string"
650
- }
651
- ],
652
- "stateMutability": "view",
653
- "type": "function"
654
- },
655
- {
656
- "inputs": [],
657
- "name": "owner",
658
- "outputs": [
659
- {
660
- "internalType": "address",
661
- "name": "",
662
- "type": "address"
663
- }
664
- ],
665
- "stateMutability": "view",
666
- "type": "function"
667
- },
668
- {
669
- "inputs": [
670
- {
671
- "internalType": "uint256",
672
- "name": "amount",
673
- "type": "uint256"
674
- },
675
- {
676
- "internalType": "address payable",
677
- "name": "recipient",
678
- "type": "address"
679
- }
680
- ],
681
- "name": "payReferral",
682
- "outputs": [],
683
- "stateMutability": "nonpayable",
684
- "type": "function"
685
- },
686
- {
687
- "inputs": [
688
- {
689
- "internalType": "string",
690
- "name": "",
691
- "type": "string"
692
- }
693
- ],
694
- "name": "preliminaryToOnChainId",
695
- "outputs": [
696
- {
697
- "internalType": "uint256",
698
- "name": "",
699
- "type": "uint256"
700
- }
701
- ],
702
- "stateMutability": "view",
703
- "type": "function"
704
- },
705
- {
706
- "inputs": [
707
- {
708
- "internalType": "address",
709
- "name": "adminToRemove",
710
- "type": "address"
711
- }
712
- ],
713
- "name": "removeAdmin",
714
- "outputs": [],
715
- "stateMutability": "nonpayable",
716
- "type": "function"
717
- },
718
- {
719
- "inputs": [],
720
- "name": "renounceOwnership",
721
- "outputs": [],
722
- "stateMutability": "nonpayable",
723
- "type": "function"
724
- },
725
- {
726
- "inputs": [
727
- {
728
- "internalType": "uint256",
729
- "name": "newCounter",
730
- "type": "uint256"
731
- }
732
- ],
733
- "name": "setGameCounter",
734
- "outputs": [],
735
- "stateMutability": "nonpayable",
736
- "type": "function"
737
- },
738
- {
739
- "inputs": [
740
- {
741
- "internalType": "address",
742
- "name": "newOwner",
743
- "type": "address"
744
- }
745
- ],
746
- "name": "transferOwnership",
747
- "outputs": [],
748
- "stateMutability": "nonpayable",
749
- "type": "function"
750
- },
751
- {
752
- "inputs": [
753
- {
754
- "internalType": "uint256",
755
- "name": "amount",
756
- "type": "uint256"
757
- },
758
- {
759
- "internalType": "address payable",
760
- "name": "recipient",
761
- "type": "address"
762
- }
763
- ],
764
- "name": "withdrawFunds",
765
- "outputs": [],
766
- "stateMutability": "nonpayable",
767
- "type": "function"
768
- },
769
- {
770
- "stateMutability": "payable",
771
- "type": "receive"
772
- }
773
- ] as const;
774
-
775
- export type RugOrRumbleABI = typeof RugOrRumbleABI;
776
-
777
- export default RugOrRumbleABI;