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