@b3dotfun/sdk 0.0.28-alpha.0 → 0.0.28-alpha.1

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 (87) hide show
  1. package/dist/cjs/anyspend/abis/escrow.d.ts +987 -0
  2. package/dist/cjs/anyspend/abis/escrow.js +1275 -0
  3. package/dist/cjs/anyspend/react/components/AnySpend.js +10 -168
  4. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +2 -2
  5. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.d.ts +10 -0
  6. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.js +263 -0
  7. package/dist/cjs/anyspend/react/components/common/CryptoReceiveSection.d.ts +17 -0
  8. package/dist/cjs/anyspend/react/components/common/CryptoReceiveSection.js +53 -0
  9. package/dist/cjs/anyspend/react/components/common/ErrorSection.d.ts +6 -0
  10. package/dist/cjs/anyspend/react/components/common/ErrorSection.js +12 -0
  11. package/dist/cjs/anyspend/react/components/common/PanelOnramp.d.ts +2 -1
  12. package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +2 -2
  13. package/dist/cjs/anyspend/react/components/common/PaySection.d.ts +20 -0
  14. package/dist/cjs/anyspend/react/components/common/PaySection.js +58 -0
  15. package/dist/cjs/anyspend/react/components/common/TabSection.d.ts +10 -0
  16. package/dist/cjs/anyspend/react/components/common/TabSection.js +18 -0
  17. package/dist/cjs/anyspend/react/components/index.d.ts +2 -0
  18. package/dist/cjs/anyspend/react/components/index.js +5 -1
  19. package/dist/cjs/anyspend/react/hooks/useAnyspendFlow.d.ts +165 -0
  20. package/dist/cjs/anyspend/react/hooks/useAnyspendFlow.js +184 -0
  21. package/dist/cjs/anyspend/react/hooks/useSigMint.d.ts +2 -2
  22. package/dist/cjs/global-account/react/components/B3DynamicModal.js +3 -0
  23. package/dist/cjs/global-account/react/components/custom/Button.d.ts +1 -1
  24. package/dist/cjs/global-account/react/components/ui/button.d.ts +1 -1
  25. package/dist/cjs/global-account/react/components/ui/command.d.ts +2 -2
  26. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +17 -1
  27. package/dist/cjs/shared/constants/chains/b3Chain.d.ts +1 -1
  28. package/dist/cjs/shared/constants/chains/supported.d.ts +3 -3
  29. package/dist/esm/anyspend/abis/escrow.d.ts +987 -0
  30. package/dist/esm/anyspend/abis/escrow.js +1272 -0
  31. package/dist/esm/anyspend/react/components/AnySpend.js +12 -170
  32. package/dist/esm/anyspend/react/components/AnySpendCustom.js +3 -3
  33. package/dist/esm/anyspend/react/components/AnyspendDepositHype.d.ts +10 -0
  34. package/dist/esm/anyspend/react/components/AnyspendDepositHype.js +257 -0
  35. package/dist/esm/anyspend/react/components/common/CryptoReceiveSection.d.ts +17 -0
  36. package/dist/esm/anyspend/react/components/common/CryptoReceiveSection.js +50 -0
  37. package/dist/esm/anyspend/react/components/common/ErrorSection.d.ts +6 -0
  38. package/dist/esm/anyspend/react/components/common/ErrorSection.js +9 -0
  39. package/dist/esm/anyspend/react/components/common/PanelOnramp.d.ts +2 -1
  40. package/dist/esm/anyspend/react/components/common/PanelOnramp.js +2 -2
  41. package/dist/esm/anyspend/react/components/common/PaySection.d.ts +20 -0
  42. package/dist/esm/anyspend/react/components/common/PaySection.js +55 -0
  43. package/dist/esm/anyspend/react/components/common/TabSection.d.ts +10 -0
  44. package/dist/esm/anyspend/react/components/common/TabSection.js +15 -0
  45. package/dist/esm/anyspend/react/components/index.d.ts +2 -0
  46. package/dist/esm/anyspend/react/components/index.js +2 -0
  47. package/dist/esm/anyspend/react/hooks/useAnyspendFlow.d.ts +165 -0
  48. package/dist/esm/anyspend/react/hooks/useAnyspendFlow.js +180 -0
  49. package/dist/esm/anyspend/react/hooks/useSigMint.d.ts +2 -2
  50. package/dist/esm/global-account/react/components/B3DynamicModal.js +3 -0
  51. package/dist/esm/global-account/react/components/custom/Button.d.ts +1 -1
  52. package/dist/esm/global-account/react/components/ui/button.d.ts +1 -1
  53. package/dist/esm/global-account/react/components/ui/command.d.ts +2 -2
  54. package/dist/esm/global-account/react/stores/useModalStore.d.ts +17 -1
  55. package/dist/esm/shared/constants/chains/b3Chain.d.ts +1 -1
  56. package/dist/esm/shared/constants/chains/supported.d.ts +3 -3
  57. package/dist/styles/index.css +1 -1
  58. package/dist/types/anyspend/abis/escrow.d.ts +987 -0
  59. package/dist/types/anyspend/react/components/AnyspendDepositHype.d.ts +10 -0
  60. package/dist/types/anyspend/react/components/common/CryptoReceiveSection.d.ts +17 -0
  61. package/dist/types/anyspend/react/components/common/ErrorSection.d.ts +6 -0
  62. package/dist/types/anyspend/react/components/common/PanelOnramp.d.ts +2 -1
  63. package/dist/types/anyspend/react/components/common/PaySection.d.ts +20 -0
  64. package/dist/types/anyspend/react/components/common/TabSection.d.ts +10 -0
  65. package/dist/types/anyspend/react/components/index.d.ts +2 -0
  66. package/dist/types/anyspend/react/hooks/useAnyspendFlow.d.ts +165 -0
  67. package/dist/types/anyspend/react/hooks/useSigMint.d.ts +2 -2
  68. package/dist/types/global-account/react/components/custom/Button.d.ts +1 -1
  69. package/dist/types/global-account/react/components/ui/button.d.ts +1 -1
  70. package/dist/types/global-account/react/components/ui/command.d.ts +2 -2
  71. package/dist/types/global-account/react/stores/useModalStore.d.ts +17 -1
  72. package/dist/types/shared/constants/chains/b3Chain.d.ts +1 -1
  73. package/dist/types/shared/constants/chains/supported.d.ts +3 -3
  74. package/package.json +1 -1
  75. package/src/anyspend/abis/escrow.ts +1272 -0
  76. package/src/anyspend/react/components/AnySpend.tsx +48 -389
  77. package/src/anyspend/react/components/AnySpendCustom.tsx +2 -10
  78. package/src/anyspend/react/components/AnyspendDepositHype.tsx +525 -0
  79. package/src/anyspend/react/components/common/CryptoReceiveSection.tsx +152 -0
  80. package/src/anyspend/react/components/common/ErrorSection.tsx +21 -0
  81. package/src/anyspend/react/components/common/PanelOnramp.tsx +4 -2
  82. package/src/anyspend/react/components/common/PaySection.tsx +222 -0
  83. package/src/anyspend/react/components/common/TabSection.tsx +58 -0
  84. package/src/anyspend/react/components/index.ts +2 -0
  85. package/src/anyspend/react/hooks/useAnyspendFlow.ts +226 -0
  86. package/src/global-account/react/components/B3DynamicModal.tsx +3 -0
  87. package/src/global-account/react/stores/useModalStore.ts +19 -1
@@ -0,0 +1,1275 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ESCROW_ABI = void 0;
4
+ exports.ESCROW_ABI = [
5
+ {
6
+ inputs: [
7
+ {
8
+ internalType: "address",
9
+ name: "_owner",
10
+ type: "address",
11
+ },
12
+ {
13
+ internalType: "address",
14
+ name: "_bettingService",
15
+ type: "address",
16
+ },
17
+ ],
18
+ stateMutability: "nonpayable",
19
+ type: "constructor",
20
+ },
21
+ {
22
+ inputs: [],
23
+ name: "AccessControlBadConfirmation",
24
+ type: "error",
25
+ },
26
+ {
27
+ inputs: [
28
+ {
29
+ internalType: "address",
30
+ name: "account",
31
+ type: "address",
32
+ },
33
+ {
34
+ internalType: "bytes32",
35
+ name: "neededRole",
36
+ type: "bytes32",
37
+ },
38
+ ],
39
+ name: "AccessControlUnauthorizedAccount",
40
+ type: "error",
41
+ },
42
+ {
43
+ inputs: [],
44
+ name: "EnforcedPause",
45
+ type: "error",
46
+ },
47
+ {
48
+ inputs: [],
49
+ name: "ExpectedPause",
50
+ type: "error",
51
+ },
52
+ {
53
+ inputs: [],
54
+ name: "InsufficientBalance",
55
+ type: "error",
56
+ },
57
+ {
58
+ inputs: [],
59
+ name: "InvalidBetAmount",
60
+ type: "error",
61
+ },
62
+ {
63
+ inputs: [
64
+ {
65
+ internalType: "address",
66
+ name: "owner",
67
+ type: "address",
68
+ },
69
+ ],
70
+ name: "OwnableInvalidOwner",
71
+ type: "error",
72
+ },
73
+ {
74
+ inputs: [
75
+ {
76
+ internalType: "address",
77
+ name: "account",
78
+ type: "address",
79
+ },
80
+ ],
81
+ name: "OwnableUnauthorizedAccount",
82
+ type: "error",
83
+ },
84
+ {
85
+ inputs: [],
86
+ name: "ReentrancyGuardReentrantCall",
87
+ type: "error",
88
+ },
89
+ {
90
+ inputs: [
91
+ {
92
+ internalType: "address",
93
+ name: "token",
94
+ type: "address",
95
+ },
96
+ ],
97
+ name: "SafeERC20FailedOperation",
98
+ type: "error",
99
+ },
100
+ {
101
+ inputs: [],
102
+ name: "UnauthorizedMarket",
103
+ type: "error",
104
+ },
105
+ {
106
+ anonymous: false,
107
+ inputs: [
108
+ {
109
+ indexed: true,
110
+ internalType: "address",
111
+ name: "from",
112
+ type: "address",
113
+ },
114
+ {
115
+ indexed: true,
116
+ internalType: "address",
117
+ name: "to",
118
+ type: "address",
119
+ },
120
+ {
121
+ indexed: true,
122
+ internalType: "address",
123
+ name: "token",
124
+ type: "address",
125
+ },
126
+ {
127
+ indexed: false,
128
+ internalType: "uint256",
129
+ name: "amount",
130
+ type: "uint256",
131
+ },
132
+ {
133
+ indexed: false,
134
+ internalType: "bytes",
135
+ name: "data",
136
+ type: "bytes",
137
+ },
138
+ ],
139
+ name: "BalanceTransferred",
140
+ type: "event",
141
+ },
142
+ {
143
+ anonymous: false,
144
+ inputs: [
145
+ {
146
+ indexed: true,
147
+ internalType: "uint256",
148
+ name: "betId",
149
+ type: "uint256",
150
+ },
151
+ {
152
+ indexed: true,
153
+ internalType: "address",
154
+ name: "user",
155
+ type: "address",
156
+ },
157
+ {
158
+ indexed: true,
159
+ internalType: "address",
160
+ name: "market",
161
+ type: "address",
162
+ },
163
+ {
164
+ indexed: false,
165
+ internalType: "uint256",
166
+ name: "amount",
167
+ type: "uint256",
168
+ },
169
+ ],
170
+ name: "BetSettled",
171
+ type: "event",
172
+ },
173
+ {
174
+ anonymous: false,
175
+ inputs: [
176
+ {
177
+ indexed: true,
178
+ internalType: "address",
179
+ name: "user",
180
+ type: "address",
181
+ },
182
+ {
183
+ indexed: true,
184
+ internalType: "address",
185
+ name: "token",
186
+ type: "address",
187
+ },
188
+ {
189
+ indexed: false,
190
+ internalType: "uint256",
191
+ name: "amount",
192
+ type: "uint256",
193
+ },
194
+ {
195
+ indexed: false,
196
+ internalType: "uint256",
197
+ name: "newBalance",
198
+ type: "uint256",
199
+ },
200
+ ],
201
+ name: "Deposit",
202
+ type: "event",
203
+ },
204
+ {
205
+ anonymous: false,
206
+ inputs: [
207
+ {
208
+ indexed: true,
209
+ internalType: "address",
210
+ name: "user",
211
+ type: "address",
212
+ },
213
+ {
214
+ indexed: true,
215
+ internalType: "address",
216
+ name: "token",
217
+ type: "address",
218
+ },
219
+ {
220
+ indexed: false,
221
+ internalType: "uint256",
222
+ name: "amount",
223
+ type: "uint256",
224
+ },
225
+ ],
226
+ name: "EmergencyWithdrawal",
227
+ type: "event",
228
+ },
229
+ {
230
+ anonymous: false,
231
+ inputs: [
232
+ {
233
+ indexed: true,
234
+ internalType: "address",
235
+ name: "recipient",
236
+ type: "address",
237
+ },
238
+ {
239
+ indexed: true,
240
+ internalType: "address",
241
+ name: "token",
242
+ type: "address",
243
+ },
244
+ {
245
+ indexed: false,
246
+ internalType: "uint256",
247
+ name: "amount",
248
+ type: "uint256",
249
+ },
250
+ {
251
+ indexed: true,
252
+ internalType: "address",
253
+ name: "market",
254
+ type: "address",
255
+ },
256
+ ],
257
+ name: "FeeCollected",
258
+ type: "event",
259
+ },
260
+ {
261
+ anonymous: false,
262
+ inputs: [
263
+ {
264
+ indexed: true,
265
+ internalType: "address",
266
+ name: "market",
267
+ type: "address",
268
+ },
269
+ {
270
+ indexed: false,
271
+ internalType: "bool",
272
+ name: "approved",
273
+ type: "bool",
274
+ },
275
+ ],
276
+ name: "MarketApproved",
277
+ type: "event",
278
+ },
279
+ {
280
+ anonymous: false,
281
+ inputs: [
282
+ {
283
+ indexed: true,
284
+ internalType: "address",
285
+ name: "previousOwner",
286
+ type: "address",
287
+ },
288
+ {
289
+ indexed: true,
290
+ internalType: "address",
291
+ name: "newOwner",
292
+ type: "address",
293
+ },
294
+ ],
295
+ name: "OwnershipTransferred",
296
+ type: "event",
297
+ },
298
+ {
299
+ anonymous: false,
300
+ inputs: [
301
+ {
302
+ indexed: false,
303
+ internalType: "address",
304
+ name: "account",
305
+ type: "address",
306
+ },
307
+ ],
308
+ name: "Paused",
309
+ type: "event",
310
+ },
311
+ {
312
+ anonymous: false,
313
+ inputs: [
314
+ {
315
+ indexed: true,
316
+ internalType: "address",
317
+ name: "user",
318
+ type: "address",
319
+ },
320
+ {
321
+ indexed: true,
322
+ internalType: "address",
323
+ name: "token",
324
+ type: "address",
325
+ },
326
+ {
327
+ indexed: false,
328
+ internalType: "uint256",
329
+ name: "amount",
330
+ type: "uint256",
331
+ },
332
+ {
333
+ indexed: true,
334
+ internalType: "address",
335
+ name: "market",
336
+ type: "address",
337
+ },
338
+ {
339
+ indexed: false,
340
+ internalType: "uint256",
341
+ name: "newBalance",
342
+ type: "uint256",
343
+ },
344
+ ],
345
+ name: "PayoutCredited",
346
+ type: "event",
347
+ },
348
+ {
349
+ anonymous: false,
350
+ inputs: [
351
+ {
352
+ indexed: true,
353
+ internalType: "bytes32",
354
+ name: "role",
355
+ type: "bytes32",
356
+ },
357
+ {
358
+ indexed: true,
359
+ internalType: "bytes32",
360
+ name: "previousAdminRole",
361
+ type: "bytes32",
362
+ },
363
+ {
364
+ indexed: true,
365
+ internalType: "bytes32",
366
+ name: "newAdminRole",
367
+ type: "bytes32",
368
+ },
369
+ ],
370
+ name: "RoleAdminChanged",
371
+ type: "event",
372
+ },
373
+ {
374
+ anonymous: false,
375
+ inputs: [
376
+ {
377
+ indexed: true,
378
+ internalType: "bytes32",
379
+ name: "role",
380
+ type: "bytes32",
381
+ },
382
+ {
383
+ indexed: true,
384
+ internalType: "address",
385
+ name: "account",
386
+ type: "address",
387
+ },
388
+ {
389
+ indexed: true,
390
+ internalType: "address",
391
+ name: "sender",
392
+ type: "address",
393
+ },
394
+ ],
395
+ name: "RoleGranted",
396
+ type: "event",
397
+ },
398
+ {
399
+ anonymous: false,
400
+ inputs: [
401
+ {
402
+ indexed: true,
403
+ internalType: "bytes32",
404
+ name: "role",
405
+ type: "bytes32",
406
+ },
407
+ {
408
+ indexed: true,
409
+ internalType: "address",
410
+ name: "account",
411
+ type: "address",
412
+ },
413
+ {
414
+ indexed: true,
415
+ internalType: "address",
416
+ name: "sender",
417
+ type: "address",
418
+ },
419
+ ],
420
+ name: "RoleRevoked",
421
+ type: "event",
422
+ },
423
+ {
424
+ anonymous: false,
425
+ inputs: [
426
+ {
427
+ indexed: false,
428
+ internalType: "address",
429
+ name: "account",
430
+ type: "address",
431
+ },
432
+ ],
433
+ name: "Unpaused",
434
+ type: "event",
435
+ },
436
+ {
437
+ anonymous: false,
438
+ inputs: [
439
+ {
440
+ indexed: true,
441
+ internalType: "address",
442
+ name: "user",
443
+ type: "address",
444
+ },
445
+ {
446
+ indexed: true,
447
+ internalType: "address",
448
+ name: "token",
449
+ type: "address",
450
+ },
451
+ {
452
+ indexed: false,
453
+ internalType: "uint256",
454
+ name: "amount",
455
+ type: "uint256",
456
+ },
457
+ {
458
+ indexed: false,
459
+ internalType: "uint256",
460
+ name: "remainingBalance",
461
+ type: "uint256",
462
+ },
463
+ ],
464
+ name: "Withdrawal",
465
+ type: "event",
466
+ },
467
+ {
468
+ inputs: [],
469
+ name: "BETTING_SERVICE_ROLE",
470
+ outputs: [
471
+ {
472
+ internalType: "bytes32",
473
+ name: "",
474
+ type: "bytes32",
475
+ },
476
+ ],
477
+ stateMutability: "view",
478
+ type: "function",
479
+ },
480
+ {
481
+ inputs: [],
482
+ name: "DEFAULT_ADMIN_ROLE",
483
+ outputs: [
484
+ {
485
+ internalType: "bytes32",
486
+ name: "",
487
+ type: "bytes32",
488
+ },
489
+ ],
490
+ stateMutability: "view",
491
+ type: "function",
492
+ },
493
+ {
494
+ inputs: [],
495
+ name: "MARKET_ROLE",
496
+ outputs: [
497
+ {
498
+ internalType: "bytes32",
499
+ name: "",
500
+ type: "bytes32",
501
+ },
502
+ ],
503
+ stateMutability: "view",
504
+ type: "function",
505
+ },
506
+ {
507
+ inputs: [
508
+ {
509
+ internalType: "address",
510
+ name: "",
511
+ type: "address",
512
+ },
513
+ ],
514
+ name: "approvedMarkets",
515
+ outputs: [
516
+ {
517
+ internalType: "bool",
518
+ name: "",
519
+ type: "bool",
520
+ },
521
+ ],
522
+ stateMutability: "view",
523
+ type: "function",
524
+ },
525
+ {
526
+ inputs: [
527
+ {
528
+ internalType: "address",
529
+ name: "market",
530
+ type: "address",
531
+ },
532
+ {
533
+ internalType: "bool",
534
+ name: "approved",
535
+ type: "bool",
536
+ },
537
+ ],
538
+ name: "authorizeMarket",
539
+ outputs: [],
540
+ stateMutability: "nonpayable",
541
+ type: "function",
542
+ },
543
+ {
544
+ inputs: [
545
+ {
546
+ internalType: "address",
547
+ name: "",
548
+ type: "address",
549
+ },
550
+ {
551
+ internalType: "address",
552
+ name: "",
553
+ type: "address",
554
+ },
555
+ ],
556
+ name: "availableBalance",
557
+ outputs: [
558
+ {
559
+ internalType: "uint256",
560
+ name: "",
561
+ type: "uint256",
562
+ },
563
+ ],
564
+ stateMutability: "view",
565
+ type: "function",
566
+ },
567
+ {
568
+ inputs: [
569
+ {
570
+ internalType: "address[]",
571
+ name: "users",
572
+ type: "address[]",
573
+ },
574
+ {
575
+ internalType: "uint256[]",
576
+ name: "amounts",
577
+ type: "uint256[]",
578
+ },
579
+ {
580
+ internalType: "address[]",
581
+ name: "markets",
582
+ type: "address[]",
583
+ },
584
+ {
585
+ internalType: "uint256[]",
586
+ name: "outcomes",
587
+ type: "uint256[]",
588
+ },
589
+ {
590
+ internalType: "uint256[]",
591
+ name: "betIds",
592
+ type: "uint256[]",
593
+ },
594
+ ],
595
+ name: "batchRecordBet",
596
+ outputs: [],
597
+ stateMutability: "nonpayable",
598
+ type: "function",
599
+ },
600
+ {
601
+ inputs: [
602
+ {
603
+ internalType: "address",
604
+ name: "user",
605
+ type: "address",
606
+ },
607
+ {
608
+ internalType: "uint256",
609
+ name: "amount",
610
+ type: "uint256",
611
+ },
612
+ ],
613
+ name: "creditPayout",
614
+ outputs: [],
615
+ stateMutability: "nonpayable",
616
+ type: "function",
617
+ },
618
+ {
619
+ inputs: [
620
+ {
621
+ internalType: "address",
622
+ name: "user",
623
+ type: "address",
624
+ },
625
+ {
626
+ internalType: "uint256",
627
+ name: "grossPayout",
628
+ type: "uint256",
629
+ },
630
+ {
631
+ internalType: "uint256",
632
+ name: "feeAmount",
633
+ type: "uint256",
634
+ },
635
+ {
636
+ internalType: "address",
637
+ name: "feeRecipient",
638
+ type: "address",
639
+ },
640
+ ],
641
+ name: "creditPayoutWithFee",
642
+ outputs: [],
643
+ stateMutability: "nonpayable",
644
+ type: "function",
645
+ },
646
+ {
647
+ inputs: [
648
+ {
649
+ internalType: "address",
650
+ name: "user",
651
+ type: "address",
652
+ },
653
+ {
654
+ internalType: "address",
655
+ name: "token",
656
+ type: "address",
657
+ },
658
+ {
659
+ internalType: "uint256",
660
+ name: "amount",
661
+ type: "uint256",
662
+ },
663
+ ],
664
+ name: "depositFor",
665
+ outputs: [],
666
+ stateMutability: "nonpayable",
667
+ type: "function",
668
+ },
669
+ {
670
+ inputs: [
671
+ {
672
+ internalType: "address",
673
+ name: "user",
674
+ type: "address",
675
+ },
676
+ {
677
+ internalType: "address",
678
+ name: "token",
679
+ type: "address",
680
+ },
681
+ {
682
+ internalType: "uint256",
683
+ name: "amount",
684
+ type: "uint256",
685
+ },
686
+ ],
687
+ name: "emergencyWithdraw",
688
+ outputs: [],
689
+ stateMutability: "nonpayable",
690
+ type: "function",
691
+ },
692
+ {
693
+ inputs: [
694
+ {
695
+ internalType: "bytes32",
696
+ name: "role",
697
+ type: "bytes32",
698
+ },
699
+ ],
700
+ name: "getRoleAdmin",
701
+ outputs: [
702
+ {
703
+ internalType: "bytes32",
704
+ name: "",
705
+ type: "bytes32",
706
+ },
707
+ ],
708
+ stateMutability: "view",
709
+ type: "function",
710
+ },
711
+ {
712
+ inputs: [
713
+ {
714
+ internalType: "address",
715
+ name: "token",
716
+ type: "address",
717
+ },
718
+ ],
719
+ name: "getStats",
720
+ outputs: [
721
+ {
722
+ internalType: "uint256",
723
+ name: "deposits",
724
+ type: "uint256",
725
+ },
726
+ {
727
+ internalType: "uint256",
728
+ name: "withdrawals",
729
+ type: "uint256",
730
+ },
731
+ {
732
+ internalType: "uint256",
733
+ name: "betsSettled",
734
+ type: "uint256",
735
+ },
736
+ {
737
+ internalType: "uint256",
738
+ name: "payouts",
739
+ type: "uint256",
740
+ },
741
+ {
742
+ internalType: "uint256",
743
+ name: "feesCollected",
744
+ type: "uint256",
745
+ },
746
+ ],
747
+ stateMutability: "view",
748
+ type: "function",
749
+ },
750
+ {
751
+ inputs: [
752
+ {
753
+ internalType: "address",
754
+ name: "user",
755
+ type: "address",
756
+ },
757
+ {
758
+ internalType: "address",
759
+ name: "token",
760
+ type: "address",
761
+ },
762
+ ],
763
+ name: "getUserBalance",
764
+ outputs: [
765
+ {
766
+ internalType: "uint256",
767
+ name: "available_",
768
+ type: "uint256",
769
+ },
770
+ {
771
+ internalType: "uint256",
772
+ name: "totalPayouts_",
773
+ type: "uint256",
774
+ },
775
+ ],
776
+ stateMutability: "view",
777
+ type: "function",
778
+ },
779
+ {
780
+ inputs: [
781
+ {
782
+ internalType: "address",
783
+ name: "user",
784
+ type: "address",
785
+ },
786
+ {
787
+ internalType: "address",
788
+ name: "market",
789
+ type: "address",
790
+ },
791
+ ],
792
+ name: "getUserMarketBalance",
793
+ outputs: [
794
+ {
795
+ internalType: "uint256",
796
+ name: "balance",
797
+ type: "uint256",
798
+ },
799
+ ],
800
+ stateMutability: "view",
801
+ type: "function",
802
+ },
803
+ {
804
+ inputs: [
805
+ {
806
+ internalType: "bytes32",
807
+ name: "role",
808
+ type: "bytes32",
809
+ },
810
+ {
811
+ internalType: "address",
812
+ name: "account",
813
+ type: "address",
814
+ },
815
+ ],
816
+ name: "grantRole",
817
+ outputs: [],
818
+ stateMutability: "nonpayable",
819
+ type: "function",
820
+ },
821
+ {
822
+ inputs: [
823
+ {
824
+ internalType: "address",
825
+ name: "user",
826
+ type: "address",
827
+ },
828
+ {
829
+ internalType: "address",
830
+ name: "market",
831
+ type: "address",
832
+ },
833
+ {
834
+ internalType: "uint256",
835
+ name: "amount",
836
+ type: "uint256",
837
+ },
838
+ ],
839
+ name: "hasMarketBalance",
840
+ outputs: [
841
+ {
842
+ internalType: "bool",
843
+ name: "hasSufficient",
844
+ type: "bool",
845
+ },
846
+ ],
847
+ stateMutability: "view",
848
+ type: "function",
849
+ },
850
+ {
851
+ inputs: [
852
+ {
853
+ internalType: "bytes32",
854
+ name: "role",
855
+ type: "bytes32",
856
+ },
857
+ {
858
+ internalType: "address",
859
+ name: "account",
860
+ type: "address",
861
+ },
862
+ ],
863
+ name: "hasRole",
864
+ outputs: [
865
+ {
866
+ internalType: "bool",
867
+ name: "",
868
+ type: "bool",
869
+ },
870
+ ],
871
+ stateMutability: "view",
872
+ type: "function",
873
+ },
874
+ {
875
+ inputs: [
876
+ {
877
+ internalType: "address",
878
+ name: "market",
879
+ type: "address",
880
+ },
881
+ ],
882
+ name: "isMarketApproved",
883
+ outputs: [
884
+ {
885
+ internalType: "bool",
886
+ name: "approved",
887
+ type: "bool",
888
+ },
889
+ ],
890
+ stateMutability: "view",
891
+ type: "function",
892
+ },
893
+ {
894
+ inputs: [],
895
+ name: "owner",
896
+ outputs: [
897
+ {
898
+ internalType: "address",
899
+ name: "",
900
+ type: "address",
901
+ },
902
+ ],
903
+ stateMutability: "view",
904
+ type: "function",
905
+ },
906
+ {
907
+ inputs: [],
908
+ name: "pause",
909
+ outputs: [],
910
+ stateMutability: "nonpayable",
911
+ type: "function",
912
+ },
913
+ {
914
+ inputs: [],
915
+ name: "paused",
916
+ outputs: [
917
+ {
918
+ internalType: "bool",
919
+ name: "",
920
+ type: "bool",
921
+ },
922
+ ],
923
+ stateMutability: "view",
924
+ type: "function",
925
+ },
926
+ {
927
+ inputs: [],
928
+ name: "renounceOwnership",
929
+ outputs: [],
930
+ stateMutability: "nonpayable",
931
+ type: "function",
932
+ },
933
+ {
934
+ inputs: [
935
+ {
936
+ internalType: "bytes32",
937
+ name: "role",
938
+ type: "bytes32",
939
+ },
940
+ {
941
+ internalType: "address",
942
+ name: "callerConfirmation",
943
+ type: "address",
944
+ },
945
+ ],
946
+ name: "renounceRole",
947
+ outputs: [],
948
+ stateMutability: "nonpayable",
949
+ type: "function",
950
+ },
951
+ {
952
+ inputs: [
953
+ {
954
+ internalType: "bytes32",
955
+ name: "role",
956
+ type: "bytes32",
957
+ },
958
+ {
959
+ internalType: "address",
960
+ name: "account",
961
+ type: "address",
962
+ },
963
+ ],
964
+ name: "revokeRole",
965
+ outputs: [],
966
+ stateMutability: "nonpayable",
967
+ type: "function",
968
+ },
969
+ {
970
+ inputs: [
971
+ {
972
+ internalType: "address",
973
+ name: "from",
974
+ type: "address",
975
+ },
976
+ {
977
+ internalType: "address",
978
+ name: "token",
979
+ type: "address",
980
+ },
981
+ {
982
+ internalType: "uint256",
983
+ name: "amount",
984
+ type: "uint256",
985
+ },
986
+ {
987
+ internalType: "address",
988
+ name: "to",
989
+ type: "address",
990
+ },
991
+ {
992
+ internalType: "bytes",
993
+ name: "data",
994
+ type: "bytes",
995
+ },
996
+ ],
997
+ name: "spendFor",
998
+ outputs: [],
999
+ stateMutability: "nonpayable",
1000
+ type: "function",
1001
+ },
1002
+ {
1003
+ inputs: [
1004
+ {
1005
+ internalType: "address",
1006
+ name: "token",
1007
+ type: "address",
1008
+ },
1009
+ {
1010
+ internalType: "uint256",
1011
+ name: "amount",
1012
+ type: "uint256",
1013
+ },
1014
+ {
1015
+ internalType: "address",
1016
+ name: "to",
1017
+ type: "address",
1018
+ },
1019
+ ],
1020
+ name: "spendTo",
1021
+ outputs: [],
1022
+ stateMutability: "nonpayable",
1023
+ type: "function",
1024
+ },
1025
+ {
1026
+ inputs: [
1027
+ {
1028
+ internalType: "address",
1029
+ name: "token",
1030
+ type: "address",
1031
+ },
1032
+ {
1033
+ internalType: "uint256",
1034
+ name: "amount",
1035
+ type: "uint256",
1036
+ },
1037
+ {
1038
+ internalType: "address",
1039
+ name: "to",
1040
+ type: "address",
1041
+ },
1042
+ {
1043
+ internalType: "bytes",
1044
+ name: "data",
1045
+ type: "bytes",
1046
+ },
1047
+ ],
1048
+ name: "spendTo",
1049
+ outputs: [],
1050
+ stateMutability: "nonpayable",
1051
+ type: "function",
1052
+ },
1053
+ {
1054
+ inputs: [
1055
+ {
1056
+ internalType: "bytes4",
1057
+ name: "interfaceId",
1058
+ type: "bytes4",
1059
+ },
1060
+ ],
1061
+ name: "supportsInterface",
1062
+ outputs: [
1063
+ {
1064
+ internalType: "bool",
1065
+ name: "",
1066
+ type: "bool",
1067
+ },
1068
+ ],
1069
+ stateMutability: "view",
1070
+ type: "function",
1071
+ },
1072
+ {
1073
+ inputs: [
1074
+ {
1075
+ internalType: "address",
1076
+ name: "",
1077
+ type: "address",
1078
+ },
1079
+ ],
1080
+ name: "totalBetsSettled",
1081
+ outputs: [
1082
+ {
1083
+ internalType: "uint256",
1084
+ name: "",
1085
+ type: "uint256",
1086
+ },
1087
+ ],
1088
+ stateMutability: "view",
1089
+ type: "function",
1090
+ },
1091
+ {
1092
+ inputs: [
1093
+ {
1094
+ internalType: "address",
1095
+ name: "",
1096
+ type: "address",
1097
+ },
1098
+ ],
1099
+ name: "totalDeposits",
1100
+ outputs: [
1101
+ {
1102
+ internalType: "uint256",
1103
+ name: "",
1104
+ type: "uint256",
1105
+ },
1106
+ ],
1107
+ stateMutability: "view",
1108
+ type: "function",
1109
+ },
1110
+ {
1111
+ inputs: [
1112
+ {
1113
+ internalType: "address",
1114
+ name: "",
1115
+ type: "address",
1116
+ },
1117
+ ],
1118
+ name: "totalFeesCollected",
1119
+ outputs: [
1120
+ {
1121
+ internalType: "uint256",
1122
+ name: "",
1123
+ type: "uint256",
1124
+ },
1125
+ ],
1126
+ stateMutability: "view",
1127
+ type: "function",
1128
+ },
1129
+ {
1130
+ inputs: [
1131
+ {
1132
+ internalType: "address",
1133
+ name: "",
1134
+ type: "address",
1135
+ },
1136
+ ],
1137
+ name: "totalPayouts",
1138
+ outputs: [
1139
+ {
1140
+ internalType: "uint256",
1141
+ name: "",
1142
+ type: "uint256",
1143
+ },
1144
+ ],
1145
+ stateMutability: "view",
1146
+ type: "function",
1147
+ },
1148
+ {
1149
+ inputs: [
1150
+ {
1151
+ internalType: "address",
1152
+ name: "",
1153
+ type: "address",
1154
+ },
1155
+ {
1156
+ internalType: "address",
1157
+ name: "",
1158
+ type: "address",
1159
+ },
1160
+ ],
1161
+ name: "totalPayoutsReceived",
1162
+ outputs: [
1163
+ {
1164
+ internalType: "uint256",
1165
+ name: "",
1166
+ type: "uint256",
1167
+ },
1168
+ ],
1169
+ stateMutability: "view",
1170
+ type: "function",
1171
+ },
1172
+ {
1173
+ inputs: [
1174
+ {
1175
+ internalType: "address",
1176
+ name: "",
1177
+ type: "address",
1178
+ },
1179
+ ],
1180
+ name: "totalWithdrawals",
1181
+ outputs: [
1182
+ {
1183
+ internalType: "uint256",
1184
+ name: "",
1185
+ type: "uint256",
1186
+ },
1187
+ ],
1188
+ stateMutability: "view",
1189
+ type: "function",
1190
+ },
1191
+ {
1192
+ inputs: [
1193
+ {
1194
+ internalType: "address",
1195
+ name: "newOwner",
1196
+ type: "address",
1197
+ },
1198
+ ],
1199
+ name: "transferOwnership",
1200
+ outputs: [],
1201
+ stateMutability: "nonpayable",
1202
+ type: "function",
1203
+ },
1204
+ {
1205
+ inputs: [],
1206
+ name: "unpause",
1207
+ outputs: [],
1208
+ stateMutability: "nonpayable",
1209
+ type: "function",
1210
+ },
1211
+ {
1212
+ inputs: [
1213
+ {
1214
+ internalType: "address",
1215
+ name: "token",
1216
+ type: "address",
1217
+ },
1218
+ {
1219
+ internalType: "uint256",
1220
+ name: "amount",
1221
+ type: "uint256",
1222
+ },
1223
+ ],
1224
+ name: "withdraw",
1225
+ outputs: [],
1226
+ stateMutability: "nonpayable",
1227
+ type: "function",
1228
+ },
1229
+ {
1230
+ inputs: [
1231
+ {
1232
+ internalType: "address",
1233
+ name: "user",
1234
+ type: "address",
1235
+ },
1236
+ {
1237
+ internalType: "address",
1238
+ name: "token",
1239
+ type: "address",
1240
+ },
1241
+ {
1242
+ internalType: "uint256",
1243
+ name: "amount",
1244
+ type: "uint256",
1245
+ },
1246
+ ],
1247
+ name: "withdrawFor",
1248
+ outputs: [],
1249
+ stateMutability: "nonpayable",
1250
+ type: "function",
1251
+ },
1252
+ {
1253
+ inputs: [
1254
+ {
1255
+ internalType: "address",
1256
+ name: "token",
1257
+ type: "address",
1258
+ },
1259
+ {
1260
+ internalType: "uint256",
1261
+ name: "amount",
1262
+ type: "uint256",
1263
+ },
1264
+ {
1265
+ internalType: "address",
1266
+ name: "to",
1267
+ type: "address",
1268
+ },
1269
+ ],
1270
+ name: "withdrawTo",
1271
+ outputs: [],
1272
+ stateMutability: "nonpayable",
1273
+ type: "function",
1274
+ },
1275
+ ];