@grumble-studios/rug-or-rumble 1.0.0 → 2.0.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.
- package/README.md +8 -8
- package/package.json +2 -2
- package/src/{RugOrRumble.d.ts → RugRumble.d.ts} +360 -73
- package/src/{RugOrRumble.js → RugRumble.js} +359 -72
- package/src/index.d.ts +2 -2
- package/src/index.js +2 -2
package/README.md
CHANGED
|
@@ -19,26 +19,26 @@ pnpm add @rug-or-rumble/contracts
|
|
|
19
19
|
```typescript
|
|
20
20
|
import { ABIs } from '@rug-or-rumble/contracts';
|
|
21
21
|
|
|
22
|
-
console.log(ABIs.
|
|
22
|
+
console.log(ABIs.RugRumble); // Access the RugRumble ABI
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
### Import specific contract ABI
|
|
26
26
|
|
|
27
27
|
```typescript
|
|
28
|
-
import {
|
|
28
|
+
import { RugRumbleABI } from '@rug-or-rumble/contracts';
|
|
29
29
|
// or
|
|
30
|
-
import
|
|
30
|
+
import RugRumble from '@rug-or-rumble/contracts/RugRumble';
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
### Use with ethers.js
|
|
34
34
|
|
|
35
35
|
```typescript
|
|
36
36
|
import { ethers } from 'ethers';
|
|
37
|
-
import {
|
|
37
|
+
import { RugRumbleABI } from '@rug-or-rumble/contracts';
|
|
38
38
|
|
|
39
39
|
const contract = new ethers.Contract(
|
|
40
40
|
contractAddress,
|
|
41
|
-
|
|
41
|
+
RugRumbleABI,
|
|
42
42
|
signerOrProvider
|
|
43
43
|
);
|
|
44
44
|
```
|
|
@@ -47,18 +47,18 @@ const contract = new ethers.Contract(
|
|
|
47
47
|
|
|
48
48
|
```typescript
|
|
49
49
|
import { getContract } from 'viem';
|
|
50
|
-
import {
|
|
50
|
+
import { RugRumbleABI } from '@rug-or-rumble/contracts';
|
|
51
51
|
|
|
52
52
|
const contract = getContract({
|
|
53
53
|
address: contractAddress,
|
|
54
|
-
abi:
|
|
54
|
+
abi: RugRumbleABI,
|
|
55
55
|
client: publicClient,
|
|
56
56
|
});
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
## Available Contracts
|
|
60
60
|
|
|
61
|
-
-
|
|
61
|
+
- RugRumble
|
|
62
62
|
|
|
63
63
|
## TypeScript Support
|
|
64
64
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grumble-studios/rug-or-rumble",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Smart contract ABIs and TypeScript types for Rug
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Smart contract ABIs and TypeScript types for Rug Rumble game",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"module": "./src/index.js",
|
|
7
7
|
"types": "./src/index.d.ts",
|
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
// This file is auto-generated. Do not edit manually.
|
|
2
2
|
|
|
3
|
-
export const
|
|
3
|
+
export const RugRumbleABI = [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"stateMutability": "nonpayable",
|
|
7
|
+
"type": "constructor"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"inputs": [
|
|
11
|
+
{
|
|
12
|
+
"internalType": "address",
|
|
13
|
+
"name": "admin",
|
|
14
|
+
"type": "address"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"name": "AlreadyAdmin",
|
|
18
|
+
"type": "error"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"inputs": [],
|
|
22
|
+
"name": "AmountMustBePositive",
|
|
23
|
+
"type": "error"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"inputs": [],
|
|
27
|
+
"name": "CannotDecreaseGameCounter",
|
|
28
|
+
"type": "error"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"inputs": [],
|
|
32
|
+
"name": "CannotRemoveOwner",
|
|
33
|
+
"type": "error"
|
|
34
|
+
},
|
|
4
35
|
{
|
|
5
36
|
"inputs": [],
|
|
6
37
|
"name": "ECDSAInvalidSignature",
|
|
@@ -28,6 +59,11 @@ export const RugOrRumbleABI = [
|
|
|
28
59
|
"name": "ECDSAInvalidSignatureS",
|
|
29
60
|
"type": "error"
|
|
30
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"inputs": [],
|
|
64
|
+
"name": "FeePercentageExceeds100",
|
|
65
|
+
"type": "error"
|
|
66
|
+
},
|
|
31
67
|
{
|
|
32
68
|
"inputs": [
|
|
33
69
|
{
|
|
@@ -61,16 +97,74 @@ export const RugOrRumbleABI = [
|
|
|
61
97
|
"name": "GameNotActive",
|
|
62
98
|
"type": "error"
|
|
63
99
|
},
|
|
100
|
+
{
|
|
101
|
+
"inputs": [
|
|
102
|
+
{
|
|
103
|
+
"internalType": "uint256",
|
|
104
|
+
"name": "requested",
|
|
105
|
+
"type": "uint256"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"internalType": "uint256",
|
|
109
|
+
"name": "available",
|
|
110
|
+
"type": "uint256"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"name": "InsufficientContractBalance",
|
|
114
|
+
"type": "error"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"inputs": [
|
|
118
|
+
{
|
|
119
|
+
"internalType": "uint256",
|
|
120
|
+
"name": "requested",
|
|
121
|
+
"type": "uint256"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"internalType": "uint256",
|
|
125
|
+
"name": "available",
|
|
126
|
+
"type": "uint256"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"name": "InsufficientRewardBudget",
|
|
130
|
+
"type": "error"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"inputs": [],
|
|
134
|
+
"name": "InvalidAdminAddress",
|
|
135
|
+
"type": "error"
|
|
136
|
+
},
|
|
64
137
|
{
|
|
65
138
|
"inputs": [],
|
|
66
139
|
"name": "InvalidInitialization",
|
|
67
140
|
"type": "error"
|
|
68
141
|
},
|
|
142
|
+
{
|
|
143
|
+
"inputs": [],
|
|
144
|
+
"name": "InvalidRecipientAddress",
|
|
145
|
+
"type": "error"
|
|
146
|
+
},
|
|
69
147
|
{
|
|
70
148
|
"inputs": [],
|
|
71
149
|
"name": "InvalidServerSignature",
|
|
72
150
|
"type": "error"
|
|
73
151
|
},
|
|
152
|
+
{
|
|
153
|
+
"inputs": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "address",
|
|
156
|
+
"name": "admin",
|
|
157
|
+
"type": "address"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"name": "NotAnAdmin",
|
|
161
|
+
"type": "error"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"inputs": [],
|
|
165
|
+
"name": "NotAuthorized",
|
|
166
|
+
"type": "error"
|
|
167
|
+
},
|
|
74
168
|
{
|
|
75
169
|
"inputs": [
|
|
76
170
|
{
|
|
@@ -92,6 +186,11 @@ export const RugOrRumbleABI = [
|
|
|
92
186
|
"name": "NotInitializing",
|
|
93
187
|
"type": "error"
|
|
94
188
|
},
|
|
189
|
+
{
|
|
190
|
+
"inputs": [],
|
|
191
|
+
"name": "OnlyAdmins",
|
|
192
|
+
"type": "error"
|
|
193
|
+
},
|
|
95
194
|
{
|
|
96
195
|
"inputs": [
|
|
97
196
|
{
|
|
@@ -130,11 +229,31 @@ export const RugOrRumbleABI = [
|
|
|
130
229
|
"name": "PayoutFailed",
|
|
131
230
|
"type": "error"
|
|
132
231
|
},
|
|
232
|
+
{
|
|
233
|
+
"inputs": [],
|
|
234
|
+
"name": "PayoutZero",
|
|
235
|
+
"type": "error"
|
|
236
|
+
},
|
|
133
237
|
{
|
|
134
238
|
"inputs": [],
|
|
135
239
|
"name": "ReentrancyGuardReentrantCall",
|
|
136
240
|
"type": "error"
|
|
137
241
|
},
|
|
242
|
+
{
|
|
243
|
+
"inputs": [],
|
|
244
|
+
"name": "RewardAllocationExceeds100",
|
|
245
|
+
"type": "error"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"inputs": [],
|
|
249
|
+
"name": "SignatureExpired",
|
|
250
|
+
"type": "error"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"inputs": [],
|
|
254
|
+
"name": "TransferFailed",
|
|
255
|
+
"type": "error"
|
|
256
|
+
},
|
|
138
257
|
{
|
|
139
258
|
"anonymous": false,
|
|
140
259
|
"inputs": [
|
|
@@ -212,6 +331,18 @@ export const RugOrRumbleABI = [
|
|
|
212
331
|
"internalType": "bytes32",
|
|
213
332
|
"name": "gameSeedHash",
|
|
214
333
|
"type": "bytes32"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"indexed": false,
|
|
337
|
+
"internalType": "uint8",
|
|
338
|
+
"name": "algoVersion",
|
|
339
|
+
"type": "uint8"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"indexed": false,
|
|
343
|
+
"internalType": "string",
|
|
344
|
+
"name": "gameConfig",
|
|
345
|
+
"type": "string"
|
|
215
346
|
}
|
|
216
347
|
],
|
|
217
348
|
"name": "GameCreated",
|
|
@@ -228,9 +359,21 @@ export const RugOrRumbleABI = [
|
|
|
228
359
|
},
|
|
229
360
|
{
|
|
230
361
|
"indexed": false,
|
|
231
|
-
"internalType": "enum
|
|
362
|
+
"internalType": "enum RugRumble.GameStatus",
|
|
232
363
|
"name": "status",
|
|
233
364
|
"type": "uint8"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"indexed": false,
|
|
368
|
+
"internalType": "bytes32",
|
|
369
|
+
"name": "gameSeed",
|
|
370
|
+
"type": "bytes32"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"indexed": false,
|
|
374
|
+
"internalType": "string",
|
|
375
|
+
"name": "gameState",
|
|
376
|
+
"type": "string"
|
|
234
377
|
}
|
|
235
378
|
],
|
|
236
379
|
"name": "GameStatusUpdated",
|
|
@@ -308,6 +451,12 @@ export const RugOrRumbleABI = [
|
|
|
308
451
|
"name": "amount",
|
|
309
452
|
"type": "uint256"
|
|
310
453
|
},
|
|
454
|
+
{
|
|
455
|
+
"indexed": false,
|
|
456
|
+
"internalType": "string",
|
|
457
|
+
"name": "rewardType",
|
|
458
|
+
"type": "string"
|
|
459
|
+
},
|
|
311
460
|
{
|
|
312
461
|
"indexed": true,
|
|
313
462
|
"internalType": "address",
|
|
@@ -315,7 +464,26 @@ export const RugOrRumbleABI = [
|
|
|
315
464
|
"type": "address"
|
|
316
465
|
}
|
|
317
466
|
],
|
|
318
|
-
"name": "
|
|
467
|
+
"name": "RewardDistributed",
|
|
468
|
+
"type": "event"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"anonymous": false,
|
|
472
|
+
"inputs": [
|
|
473
|
+
{
|
|
474
|
+
"indexed": false,
|
|
475
|
+
"internalType": "uint256",
|
|
476
|
+
"name": "feePercentageBps",
|
|
477
|
+
"type": "uint256"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"indexed": false,
|
|
481
|
+
"internalType": "uint256",
|
|
482
|
+
"name": "rewardAllocationBps",
|
|
483
|
+
"type": "uint256"
|
|
484
|
+
}
|
|
485
|
+
],
|
|
486
|
+
"name": "RewardParametersUpdated",
|
|
319
487
|
"type": "event"
|
|
320
488
|
},
|
|
321
489
|
{
|
|
@@ -349,9 +517,9 @@ export const RugOrRumbleABI = [
|
|
|
349
517
|
"type": "string"
|
|
350
518
|
},
|
|
351
519
|
{
|
|
352
|
-
"internalType": "
|
|
520
|
+
"internalType": "bytes32",
|
|
353
521
|
"name": "gameSeed",
|
|
354
|
-
"type": "
|
|
522
|
+
"type": "bytes32"
|
|
355
523
|
},
|
|
356
524
|
{
|
|
357
525
|
"internalType": "uint256",
|
|
@@ -382,9 +550,9 @@ export const RugOrRumbleABI = [
|
|
|
382
550
|
"type": "bytes32"
|
|
383
551
|
},
|
|
384
552
|
{
|
|
385
|
-
"internalType": "
|
|
553
|
+
"internalType": "uint8",
|
|
386
554
|
"name": "algoVersion",
|
|
387
|
-
"type": "
|
|
555
|
+
"type": "uint8"
|
|
388
556
|
},
|
|
389
557
|
{
|
|
390
558
|
"internalType": "string",
|
|
@@ -407,6 +575,42 @@ export const RugOrRumbleABI = [
|
|
|
407
575
|
"stateMutability": "payable",
|
|
408
576
|
"type": "function"
|
|
409
577
|
},
|
|
578
|
+
{
|
|
579
|
+
"inputs": [
|
|
580
|
+
{
|
|
581
|
+
"internalType": "uint256",
|
|
582
|
+
"name": "amount",
|
|
583
|
+
"type": "uint256"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"internalType": "address payable",
|
|
587
|
+
"name": "recipient",
|
|
588
|
+
"type": "address"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"internalType": "string",
|
|
592
|
+
"name": "rewardType",
|
|
593
|
+
"type": "string"
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
"name": "distributeReward",
|
|
597
|
+
"outputs": [],
|
|
598
|
+
"stateMutability": "nonpayable",
|
|
599
|
+
"type": "function"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"inputs": [],
|
|
603
|
+
"name": "feePercentageBps",
|
|
604
|
+
"outputs": [
|
|
605
|
+
{
|
|
606
|
+
"internalType": "uint256",
|
|
607
|
+
"name": "",
|
|
608
|
+
"type": "uint256"
|
|
609
|
+
}
|
|
610
|
+
],
|
|
611
|
+
"stateMutability": "view",
|
|
612
|
+
"type": "function"
|
|
613
|
+
},
|
|
410
614
|
{
|
|
411
615
|
"inputs": [],
|
|
412
616
|
"name": "gameCounter",
|
|
@@ -441,15 +645,20 @@ export const RugOrRumbleABI = [
|
|
|
441
645
|
"type": "address"
|
|
442
646
|
},
|
|
443
647
|
{
|
|
444
|
-
"internalType": "
|
|
445
|
-
"name": "
|
|
446
|
-
"type": "
|
|
648
|
+
"internalType": "enum RugRumble.GameStatus",
|
|
649
|
+
"name": "status",
|
|
650
|
+
"type": "uint8"
|
|
447
651
|
},
|
|
448
652
|
{
|
|
449
|
-
"internalType": "
|
|
450
|
-
"name": "
|
|
653
|
+
"internalType": "uint8",
|
|
654
|
+
"name": "algoVersion",
|
|
451
655
|
"type": "uint8"
|
|
452
656
|
},
|
|
657
|
+
{
|
|
658
|
+
"internalType": "uint256",
|
|
659
|
+
"name": "betAmount",
|
|
660
|
+
"type": "uint256"
|
|
661
|
+
},
|
|
453
662
|
{
|
|
454
663
|
"internalType": "uint256",
|
|
455
664
|
"name": "payoutAmount",
|
|
@@ -461,24 +670,22 @@ export const RugOrRumbleABI = [
|
|
|
461
670
|
"type": "bytes32"
|
|
462
671
|
},
|
|
463
672
|
{
|
|
464
|
-
"internalType": "
|
|
673
|
+
"internalType": "bytes32",
|
|
465
674
|
"name": "gameSeed",
|
|
466
|
-
"type": "
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
"type": "string"
|
|
477
|
-
},
|
|
675
|
+
"type": "bytes32"
|
|
676
|
+
}
|
|
677
|
+
],
|
|
678
|
+
"stateMutability": "view",
|
|
679
|
+
"type": "function"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"inputs": [],
|
|
683
|
+
"name": "getAvailableRewardBudget",
|
|
684
|
+
"outputs": [
|
|
478
685
|
{
|
|
479
|
-
"internalType": "
|
|
480
|
-
"name": "
|
|
481
|
-
"type": "
|
|
686
|
+
"internalType": "uint256",
|
|
687
|
+
"name": "",
|
|
688
|
+
"type": "uint256"
|
|
482
689
|
}
|
|
483
690
|
],
|
|
484
691
|
"stateMutability": "view",
|
|
@@ -507,15 +714,20 @@ export const RugOrRumbleABI = [
|
|
|
507
714
|
"type": "address"
|
|
508
715
|
},
|
|
509
716
|
{
|
|
510
|
-
"internalType": "
|
|
511
|
-
"name": "
|
|
512
|
-
"type": "
|
|
717
|
+
"internalType": "enum RugRumble.GameStatus",
|
|
718
|
+
"name": "status",
|
|
719
|
+
"type": "uint8"
|
|
513
720
|
},
|
|
514
721
|
{
|
|
515
|
-
"internalType": "
|
|
516
|
-
"name": "
|
|
722
|
+
"internalType": "uint8",
|
|
723
|
+
"name": "algoVersion",
|
|
517
724
|
"type": "uint8"
|
|
518
725
|
},
|
|
726
|
+
{
|
|
727
|
+
"internalType": "uint256",
|
|
728
|
+
"name": "betAmount",
|
|
729
|
+
"type": "uint256"
|
|
730
|
+
},
|
|
519
731
|
{
|
|
520
732
|
"internalType": "uint256",
|
|
521
733
|
"name": "payoutAmount",
|
|
@@ -527,27 +739,12 @@ export const RugOrRumbleABI = [
|
|
|
527
739
|
"type": "bytes32"
|
|
528
740
|
},
|
|
529
741
|
{
|
|
530
|
-
"internalType": "
|
|
742
|
+
"internalType": "bytes32",
|
|
531
743
|
"name": "gameSeed",
|
|
532
|
-
"type": "
|
|
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"
|
|
744
|
+
"type": "bytes32"
|
|
548
745
|
}
|
|
549
746
|
],
|
|
550
|
-
"internalType": "struct
|
|
747
|
+
"internalType": "struct RugRumble.Game",
|
|
551
748
|
"name": "",
|
|
552
749
|
"type": "tuple"
|
|
553
750
|
}
|
|
@@ -574,6 +771,44 @@ export const RugOrRumbleABI = [
|
|
|
574
771
|
"stateMutability": "view",
|
|
575
772
|
"type": "function"
|
|
576
773
|
},
|
|
774
|
+
{
|
|
775
|
+
"inputs": [],
|
|
776
|
+
"name": "getRewardBudgetInfo",
|
|
777
|
+
"outputs": [
|
|
778
|
+
{
|
|
779
|
+
"internalType": "uint256",
|
|
780
|
+
"name": "volume",
|
|
781
|
+
"type": "uint256"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"internalType": "uint256",
|
|
785
|
+
"name": "accrued",
|
|
786
|
+
"type": "uint256"
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"internalType": "uint256",
|
|
790
|
+
"name": "distributed",
|
|
791
|
+
"type": "uint256"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"internalType": "uint256",
|
|
795
|
+
"name": "available",
|
|
796
|
+
"type": "uint256"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"internalType": "uint256",
|
|
800
|
+
"name": "feeBps",
|
|
801
|
+
"type": "uint256"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"internalType": "uint256",
|
|
805
|
+
"name": "rewardBps",
|
|
806
|
+
"type": "uint256"
|
|
807
|
+
}
|
|
808
|
+
],
|
|
809
|
+
"stateMutability": "view",
|
|
810
|
+
"type": "function"
|
|
811
|
+
},
|
|
577
812
|
{
|
|
578
813
|
"inputs": [
|
|
579
814
|
{
|
|
@@ -619,9 +854,9 @@ export const RugOrRumbleABI = [
|
|
|
619
854
|
"type": "string"
|
|
620
855
|
},
|
|
621
856
|
{
|
|
622
|
-
"internalType": "
|
|
857
|
+
"internalType": "bytes32",
|
|
623
858
|
"name": "gameSeed",
|
|
624
|
-
"type": "
|
|
859
|
+
"type": "bytes32"
|
|
625
860
|
},
|
|
626
861
|
{
|
|
627
862
|
"internalType": "uint256",
|
|
@@ -665,24 +900,6 @@ export const RugOrRumbleABI = [
|
|
|
665
900
|
"stateMutability": "view",
|
|
666
901
|
"type": "function"
|
|
667
902
|
},
|
|
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
903
|
{
|
|
687
904
|
"inputs": [
|
|
688
905
|
{
|
|
@@ -722,6 +939,19 @@ export const RugOrRumbleABI = [
|
|
|
722
939
|
"stateMutability": "nonpayable",
|
|
723
940
|
"type": "function"
|
|
724
941
|
},
|
|
942
|
+
{
|
|
943
|
+
"inputs": [],
|
|
944
|
+
"name": "rewardAllocationBps",
|
|
945
|
+
"outputs": [
|
|
946
|
+
{
|
|
947
|
+
"internalType": "uint256",
|
|
948
|
+
"name": "",
|
|
949
|
+
"type": "uint256"
|
|
950
|
+
}
|
|
951
|
+
],
|
|
952
|
+
"stateMutability": "view",
|
|
953
|
+
"type": "function"
|
|
954
|
+
},
|
|
725
955
|
{
|
|
726
956
|
"inputs": [
|
|
727
957
|
{
|
|
@@ -735,6 +965,45 @@ export const RugOrRumbleABI = [
|
|
|
735
965
|
"stateMutability": "nonpayable",
|
|
736
966
|
"type": "function"
|
|
737
967
|
},
|
|
968
|
+
{
|
|
969
|
+
"inputs": [],
|
|
970
|
+
"name": "totalRewardBudgetAccrued",
|
|
971
|
+
"outputs": [
|
|
972
|
+
{
|
|
973
|
+
"internalType": "uint256",
|
|
974
|
+
"name": "",
|
|
975
|
+
"type": "uint256"
|
|
976
|
+
}
|
|
977
|
+
],
|
|
978
|
+
"stateMutability": "view",
|
|
979
|
+
"type": "function"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"inputs": [],
|
|
983
|
+
"name": "totalRewardsDistributed",
|
|
984
|
+
"outputs": [
|
|
985
|
+
{
|
|
986
|
+
"internalType": "uint256",
|
|
987
|
+
"name": "",
|
|
988
|
+
"type": "uint256"
|
|
989
|
+
}
|
|
990
|
+
],
|
|
991
|
+
"stateMutability": "view",
|
|
992
|
+
"type": "function"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"inputs": [],
|
|
996
|
+
"name": "totalVolume",
|
|
997
|
+
"outputs": [
|
|
998
|
+
{
|
|
999
|
+
"internalType": "uint256",
|
|
1000
|
+
"name": "",
|
|
1001
|
+
"type": "uint256"
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"stateMutability": "view",
|
|
1005
|
+
"type": "function"
|
|
1006
|
+
},
|
|
738
1007
|
{
|
|
739
1008
|
"inputs": [
|
|
740
1009
|
{
|
|
@@ -748,6 +1017,24 @@ export const RugOrRumbleABI = [
|
|
|
748
1017
|
"stateMutability": "nonpayable",
|
|
749
1018
|
"type": "function"
|
|
750
1019
|
},
|
|
1020
|
+
{
|
|
1021
|
+
"inputs": [
|
|
1022
|
+
{
|
|
1023
|
+
"internalType": "uint256",
|
|
1024
|
+
"name": "newFeePercentageBps",
|
|
1025
|
+
"type": "uint256"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"internalType": "uint256",
|
|
1029
|
+
"name": "newRewardAllocationBps",
|
|
1030
|
+
"type": "uint256"
|
|
1031
|
+
}
|
|
1032
|
+
],
|
|
1033
|
+
"name": "updateRewardParameters",
|
|
1034
|
+
"outputs": [],
|
|
1035
|
+
"stateMutability": "nonpayable",
|
|
1036
|
+
"type": "function"
|
|
1037
|
+
},
|
|
751
1038
|
{
|
|
752
1039
|
"inputs": [
|
|
753
1040
|
{
|
|
@@ -772,6 +1059,6 @@ export const RugOrRumbleABI = [
|
|
|
772
1059
|
}
|
|
773
1060
|
] as const;
|
|
774
1061
|
|
|
775
|
-
export type
|
|
1062
|
+
export type RugRumbleABI = typeof RugRumbleABI;
|
|
776
1063
|
|
|
777
|
-
export default
|
|
1064
|
+
export default RugRumbleABI;
|
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
// This file is auto-generated. Do not edit manually.
|
|
2
2
|
|
|
3
|
-
export const
|
|
3
|
+
export const RugRumbleABI = [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"stateMutability": "nonpayable",
|
|
7
|
+
"type": "constructor"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"inputs": [
|
|
11
|
+
{
|
|
12
|
+
"internalType": "address",
|
|
13
|
+
"name": "admin",
|
|
14
|
+
"type": "address"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"name": "AlreadyAdmin",
|
|
18
|
+
"type": "error"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"inputs": [],
|
|
22
|
+
"name": "AmountMustBePositive",
|
|
23
|
+
"type": "error"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"inputs": [],
|
|
27
|
+
"name": "CannotDecreaseGameCounter",
|
|
28
|
+
"type": "error"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"inputs": [],
|
|
32
|
+
"name": "CannotRemoveOwner",
|
|
33
|
+
"type": "error"
|
|
34
|
+
},
|
|
4
35
|
{
|
|
5
36
|
"inputs": [],
|
|
6
37
|
"name": "ECDSAInvalidSignature",
|
|
@@ -28,6 +59,11 @@ export const RugOrRumbleABI = [
|
|
|
28
59
|
"name": "ECDSAInvalidSignatureS",
|
|
29
60
|
"type": "error"
|
|
30
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"inputs": [],
|
|
64
|
+
"name": "FeePercentageExceeds100",
|
|
65
|
+
"type": "error"
|
|
66
|
+
},
|
|
31
67
|
{
|
|
32
68
|
"inputs": [
|
|
33
69
|
{
|
|
@@ -61,16 +97,74 @@ export const RugOrRumbleABI = [
|
|
|
61
97
|
"name": "GameNotActive",
|
|
62
98
|
"type": "error"
|
|
63
99
|
},
|
|
100
|
+
{
|
|
101
|
+
"inputs": [
|
|
102
|
+
{
|
|
103
|
+
"internalType": "uint256",
|
|
104
|
+
"name": "requested",
|
|
105
|
+
"type": "uint256"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"internalType": "uint256",
|
|
109
|
+
"name": "available",
|
|
110
|
+
"type": "uint256"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"name": "InsufficientContractBalance",
|
|
114
|
+
"type": "error"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"inputs": [
|
|
118
|
+
{
|
|
119
|
+
"internalType": "uint256",
|
|
120
|
+
"name": "requested",
|
|
121
|
+
"type": "uint256"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"internalType": "uint256",
|
|
125
|
+
"name": "available",
|
|
126
|
+
"type": "uint256"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"name": "InsufficientRewardBudget",
|
|
130
|
+
"type": "error"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"inputs": [],
|
|
134
|
+
"name": "InvalidAdminAddress",
|
|
135
|
+
"type": "error"
|
|
136
|
+
},
|
|
64
137
|
{
|
|
65
138
|
"inputs": [],
|
|
66
139
|
"name": "InvalidInitialization",
|
|
67
140
|
"type": "error"
|
|
68
141
|
},
|
|
142
|
+
{
|
|
143
|
+
"inputs": [],
|
|
144
|
+
"name": "InvalidRecipientAddress",
|
|
145
|
+
"type": "error"
|
|
146
|
+
},
|
|
69
147
|
{
|
|
70
148
|
"inputs": [],
|
|
71
149
|
"name": "InvalidServerSignature",
|
|
72
150
|
"type": "error"
|
|
73
151
|
},
|
|
152
|
+
{
|
|
153
|
+
"inputs": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "address",
|
|
156
|
+
"name": "admin",
|
|
157
|
+
"type": "address"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"name": "NotAnAdmin",
|
|
161
|
+
"type": "error"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"inputs": [],
|
|
165
|
+
"name": "NotAuthorized",
|
|
166
|
+
"type": "error"
|
|
167
|
+
},
|
|
74
168
|
{
|
|
75
169
|
"inputs": [
|
|
76
170
|
{
|
|
@@ -92,6 +186,11 @@ export const RugOrRumbleABI = [
|
|
|
92
186
|
"name": "NotInitializing",
|
|
93
187
|
"type": "error"
|
|
94
188
|
},
|
|
189
|
+
{
|
|
190
|
+
"inputs": [],
|
|
191
|
+
"name": "OnlyAdmins",
|
|
192
|
+
"type": "error"
|
|
193
|
+
},
|
|
95
194
|
{
|
|
96
195
|
"inputs": [
|
|
97
196
|
{
|
|
@@ -130,11 +229,31 @@ export const RugOrRumbleABI = [
|
|
|
130
229
|
"name": "PayoutFailed",
|
|
131
230
|
"type": "error"
|
|
132
231
|
},
|
|
232
|
+
{
|
|
233
|
+
"inputs": [],
|
|
234
|
+
"name": "PayoutZero",
|
|
235
|
+
"type": "error"
|
|
236
|
+
},
|
|
133
237
|
{
|
|
134
238
|
"inputs": [],
|
|
135
239
|
"name": "ReentrancyGuardReentrantCall",
|
|
136
240
|
"type": "error"
|
|
137
241
|
},
|
|
242
|
+
{
|
|
243
|
+
"inputs": [],
|
|
244
|
+
"name": "RewardAllocationExceeds100",
|
|
245
|
+
"type": "error"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"inputs": [],
|
|
249
|
+
"name": "SignatureExpired",
|
|
250
|
+
"type": "error"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"inputs": [],
|
|
254
|
+
"name": "TransferFailed",
|
|
255
|
+
"type": "error"
|
|
256
|
+
},
|
|
138
257
|
{
|
|
139
258
|
"anonymous": false,
|
|
140
259
|
"inputs": [
|
|
@@ -212,6 +331,18 @@ export const RugOrRumbleABI = [
|
|
|
212
331
|
"internalType": "bytes32",
|
|
213
332
|
"name": "gameSeedHash",
|
|
214
333
|
"type": "bytes32"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"indexed": false,
|
|
337
|
+
"internalType": "uint8",
|
|
338
|
+
"name": "algoVersion",
|
|
339
|
+
"type": "uint8"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"indexed": false,
|
|
343
|
+
"internalType": "string",
|
|
344
|
+
"name": "gameConfig",
|
|
345
|
+
"type": "string"
|
|
215
346
|
}
|
|
216
347
|
],
|
|
217
348
|
"name": "GameCreated",
|
|
@@ -228,9 +359,21 @@ export const RugOrRumbleABI = [
|
|
|
228
359
|
},
|
|
229
360
|
{
|
|
230
361
|
"indexed": false,
|
|
231
|
-
"internalType": "enum
|
|
362
|
+
"internalType": "enum RugRumble.GameStatus",
|
|
232
363
|
"name": "status",
|
|
233
364
|
"type": "uint8"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"indexed": false,
|
|
368
|
+
"internalType": "bytes32",
|
|
369
|
+
"name": "gameSeed",
|
|
370
|
+
"type": "bytes32"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"indexed": false,
|
|
374
|
+
"internalType": "string",
|
|
375
|
+
"name": "gameState",
|
|
376
|
+
"type": "string"
|
|
234
377
|
}
|
|
235
378
|
],
|
|
236
379
|
"name": "GameStatusUpdated",
|
|
@@ -308,6 +451,12 @@ export const RugOrRumbleABI = [
|
|
|
308
451
|
"name": "amount",
|
|
309
452
|
"type": "uint256"
|
|
310
453
|
},
|
|
454
|
+
{
|
|
455
|
+
"indexed": false,
|
|
456
|
+
"internalType": "string",
|
|
457
|
+
"name": "rewardType",
|
|
458
|
+
"type": "string"
|
|
459
|
+
},
|
|
311
460
|
{
|
|
312
461
|
"indexed": true,
|
|
313
462
|
"internalType": "address",
|
|
@@ -315,7 +464,26 @@ export const RugOrRumbleABI = [
|
|
|
315
464
|
"type": "address"
|
|
316
465
|
}
|
|
317
466
|
],
|
|
318
|
-
"name": "
|
|
467
|
+
"name": "RewardDistributed",
|
|
468
|
+
"type": "event"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"anonymous": false,
|
|
472
|
+
"inputs": [
|
|
473
|
+
{
|
|
474
|
+
"indexed": false,
|
|
475
|
+
"internalType": "uint256",
|
|
476
|
+
"name": "feePercentageBps",
|
|
477
|
+
"type": "uint256"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"indexed": false,
|
|
481
|
+
"internalType": "uint256",
|
|
482
|
+
"name": "rewardAllocationBps",
|
|
483
|
+
"type": "uint256"
|
|
484
|
+
}
|
|
485
|
+
],
|
|
486
|
+
"name": "RewardParametersUpdated",
|
|
319
487
|
"type": "event"
|
|
320
488
|
},
|
|
321
489
|
{
|
|
@@ -349,9 +517,9 @@ export const RugOrRumbleABI = [
|
|
|
349
517
|
"type": "string"
|
|
350
518
|
},
|
|
351
519
|
{
|
|
352
|
-
"internalType": "
|
|
520
|
+
"internalType": "bytes32",
|
|
353
521
|
"name": "gameSeed",
|
|
354
|
-
"type": "
|
|
522
|
+
"type": "bytes32"
|
|
355
523
|
},
|
|
356
524
|
{
|
|
357
525
|
"internalType": "uint256",
|
|
@@ -382,9 +550,9 @@ export const RugOrRumbleABI = [
|
|
|
382
550
|
"type": "bytes32"
|
|
383
551
|
},
|
|
384
552
|
{
|
|
385
|
-
"internalType": "
|
|
553
|
+
"internalType": "uint8",
|
|
386
554
|
"name": "algoVersion",
|
|
387
|
-
"type": "
|
|
555
|
+
"type": "uint8"
|
|
388
556
|
},
|
|
389
557
|
{
|
|
390
558
|
"internalType": "string",
|
|
@@ -407,6 +575,42 @@ export const RugOrRumbleABI = [
|
|
|
407
575
|
"stateMutability": "payable",
|
|
408
576
|
"type": "function"
|
|
409
577
|
},
|
|
578
|
+
{
|
|
579
|
+
"inputs": [
|
|
580
|
+
{
|
|
581
|
+
"internalType": "uint256",
|
|
582
|
+
"name": "amount",
|
|
583
|
+
"type": "uint256"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"internalType": "address payable",
|
|
587
|
+
"name": "recipient",
|
|
588
|
+
"type": "address"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"internalType": "string",
|
|
592
|
+
"name": "rewardType",
|
|
593
|
+
"type": "string"
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
"name": "distributeReward",
|
|
597
|
+
"outputs": [],
|
|
598
|
+
"stateMutability": "nonpayable",
|
|
599
|
+
"type": "function"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"inputs": [],
|
|
603
|
+
"name": "feePercentageBps",
|
|
604
|
+
"outputs": [
|
|
605
|
+
{
|
|
606
|
+
"internalType": "uint256",
|
|
607
|
+
"name": "",
|
|
608
|
+
"type": "uint256"
|
|
609
|
+
}
|
|
610
|
+
],
|
|
611
|
+
"stateMutability": "view",
|
|
612
|
+
"type": "function"
|
|
613
|
+
},
|
|
410
614
|
{
|
|
411
615
|
"inputs": [],
|
|
412
616
|
"name": "gameCounter",
|
|
@@ -441,15 +645,20 @@ export const RugOrRumbleABI = [
|
|
|
441
645
|
"type": "address"
|
|
442
646
|
},
|
|
443
647
|
{
|
|
444
|
-
"internalType": "
|
|
445
|
-
"name": "
|
|
446
|
-
"type": "
|
|
648
|
+
"internalType": "enum RugRumble.GameStatus",
|
|
649
|
+
"name": "status",
|
|
650
|
+
"type": "uint8"
|
|
447
651
|
},
|
|
448
652
|
{
|
|
449
|
-
"internalType": "
|
|
450
|
-
"name": "
|
|
653
|
+
"internalType": "uint8",
|
|
654
|
+
"name": "algoVersion",
|
|
451
655
|
"type": "uint8"
|
|
452
656
|
},
|
|
657
|
+
{
|
|
658
|
+
"internalType": "uint256",
|
|
659
|
+
"name": "betAmount",
|
|
660
|
+
"type": "uint256"
|
|
661
|
+
},
|
|
453
662
|
{
|
|
454
663
|
"internalType": "uint256",
|
|
455
664
|
"name": "payoutAmount",
|
|
@@ -461,24 +670,22 @@ export const RugOrRumbleABI = [
|
|
|
461
670
|
"type": "bytes32"
|
|
462
671
|
},
|
|
463
672
|
{
|
|
464
|
-
"internalType": "
|
|
673
|
+
"internalType": "bytes32",
|
|
465
674
|
"name": "gameSeed",
|
|
466
|
-
"type": "
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
"type": "string"
|
|
477
|
-
},
|
|
675
|
+
"type": "bytes32"
|
|
676
|
+
}
|
|
677
|
+
],
|
|
678
|
+
"stateMutability": "view",
|
|
679
|
+
"type": "function"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"inputs": [],
|
|
683
|
+
"name": "getAvailableRewardBudget",
|
|
684
|
+
"outputs": [
|
|
478
685
|
{
|
|
479
|
-
"internalType": "
|
|
480
|
-
"name": "
|
|
481
|
-
"type": "
|
|
686
|
+
"internalType": "uint256",
|
|
687
|
+
"name": "",
|
|
688
|
+
"type": "uint256"
|
|
482
689
|
}
|
|
483
690
|
],
|
|
484
691
|
"stateMutability": "view",
|
|
@@ -507,15 +714,20 @@ export const RugOrRumbleABI = [
|
|
|
507
714
|
"type": "address"
|
|
508
715
|
},
|
|
509
716
|
{
|
|
510
|
-
"internalType": "
|
|
511
|
-
"name": "
|
|
512
|
-
"type": "
|
|
717
|
+
"internalType": "enum RugRumble.GameStatus",
|
|
718
|
+
"name": "status",
|
|
719
|
+
"type": "uint8"
|
|
513
720
|
},
|
|
514
721
|
{
|
|
515
|
-
"internalType": "
|
|
516
|
-
"name": "
|
|
722
|
+
"internalType": "uint8",
|
|
723
|
+
"name": "algoVersion",
|
|
517
724
|
"type": "uint8"
|
|
518
725
|
},
|
|
726
|
+
{
|
|
727
|
+
"internalType": "uint256",
|
|
728
|
+
"name": "betAmount",
|
|
729
|
+
"type": "uint256"
|
|
730
|
+
},
|
|
519
731
|
{
|
|
520
732
|
"internalType": "uint256",
|
|
521
733
|
"name": "payoutAmount",
|
|
@@ -527,27 +739,12 @@ export const RugOrRumbleABI = [
|
|
|
527
739
|
"type": "bytes32"
|
|
528
740
|
},
|
|
529
741
|
{
|
|
530
|
-
"internalType": "
|
|
742
|
+
"internalType": "bytes32",
|
|
531
743
|
"name": "gameSeed",
|
|
532
|
-
"type": "
|
|
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"
|
|
744
|
+
"type": "bytes32"
|
|
548
745
|
}
|
|
549
746
|
],
|
|
550
|
-
"internalType": "struct
|
|
747
|
+
"internalType": "struct RugRumble.Game",
|
|
551
748
|
"name": "",
|
|
552
749
|
"type": "tuple"
|
|
553
750
|
}
|
|
@@ -574,6 +771,44 @@ export const RugOrRumbleABI = [
|
|
|
574
771
|
"stateMutability": "view",
|
|
575
772
|
"type": "function"
|
|
576
773
|
},
|
|
774
|
+
{
|
|
775
|
+
"inputs": [],
|
|
776
|
+
"name": "getRewardBudgetInfo",
|
|
777
|
+
"outputs": [
|
|
778
|
+
{
|
|
779
|
+
"internalType": "uint256",
|
|
780
|
+
"name": "volume",
|
|
781
|
+
"type": "uint256"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"internalType": "uint256",
|
|
785
|
+
"name": "accrued",
|
|
786
|
+
"type": "uint256"
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"internalType": "uint256",
|
|
790
|
+
"name": "distributed",
|
|
791
|
+
"type": "uint256"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"internalType": "uint256",
|
|
795
|
+
"name": "available",
|
|
796
|
+
"type": "uint256"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"internalType": "uint256",
|
|
800
|
+
"name": "feeBps",
|
|
801
|
+
"type": "uint256"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"internalType": "uint256",
|
|
805
|
+
"name": "rewardBps",
|
|
806
|
+
"type": "uint256"
|
|
807
|
+
}
|
|
808
|
+
],
|
|
809
|
+
"stateMutability": "view",
|
|
810
|
+
"type": "function"
|
|
811
|
+
},
|
|
577
812
|
{
|
|
578
813
|
"inputs": [
|
|
579
814
|
{
|
|
@@ -619,9 +854,9 @@ export const RugOrRumbleABI = [
|
|
|
619
854
|
"type": "string"
|
|
620
855
|
},
|
|
621
856
|
{
|
|
622
|
-
"internalType": "
|
|
857
|
+
"internalType": "bytes32",
|
|
623
858
|
"name": "gameSeed",
|
|
624
|
-
"type": "
|
|
859
|
+
"type": "bytes32"
|
|
625
860
|
},
|
|
626
861
|
{
|
|
627
862
|
"internalType": "uint256",
|
|
@@ -665,24 +900,6 @@ export const RugOrRumbleABI = [
|
|
|
665
900
|
"stateMutability": "view",
|
|
666
901
|
"type": "function"
|
|
667
902
|
},
|
|
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
903
|
{
|
|
687
904
|
"inputs": [
|
|
688
905
|
{
|
|
@@ -722,6 +939,19 @@ export const RugOrRumbleABI = [
|
|
|
722
939
|
"stateMutability": "nonpayable",
|
|
723
940
|
"type": "function"
|
|
724
941
|
},
|
|
942
|
+
{
|
|
943
|
+
"inputs": [],
|
|
944
|
+
"name": "rewardAllocationBps",
|
|
945
|
+
"outputs": [
|
|
946
|
+
{
|
|
947
|
+
"internalType": "uint256",
|
|
948
|
+
"name": "",
|
|
949
|
+
"type": "uint256"
|
|
950
|
+
}
|
|
951
|
+
],
|
|
952
|
+
"stateMutability": "view",
|
|
953
|
+
"type": "function"
|
|
954
|
+
},
|
|
725
955
|
{
|
|
726
956
|
"inputs": [
|
|
727
957
|
{
|
|
@@ -735,6 +965,45 @@ export const RugOrRumbleABI = [
|
|
|
735
965
|
"stateMutability": "nonpayable",
|
|
736
966
|
"type": "function"
|
|
737
967
|
},
|
|
968
|
+
{
|
|
969
|
+
"inputs": [],
|
|
970
|
+
"name": "totalRewardBudgetAccrued",
|
|
971
|
+
"outputs": [
|
|
972
|
+
{
|
|
973
|
+
"internalType": "uint256",
|
|
974
|
+
"name": "",
|
|
975
|
+
"type": "uint256"
|
|
976
|
+
}
|
|
977
|
+
],
|
|
978
|
+
"stateMutability": "view",
|
|
979
|
+
"type": "function"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"inputs": [],
|
|
983
|
+
"name": "totalRewardsDistributed",
|
|
984
|
+
"outputs": [
|
|
985
|
+
{
|
|
986
|
+
"internalType": "uint256",
|
|
987
|
+
"name": "",
|
|
988
|
+
"type": "uint256"
|
|
989
|
+
}
|
|
990
|
+
],
|
|
991
|
+
"stateMutability": "view",
|
|
992
|
+
"type": "function"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"inputs": [],
|
|
996
|
+
"name": "totalVolume",
|
|
997
|
+
"outputs": [
|
|
998
|
+
{
|
|
999
|
+
"internalType": "uint256",
|
|
1000
|
+
"name": "",
|
|
1001
|
+
"type": "uint256"
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"stateMutability": "view",
|
|
1005
|
+
"type": "function"
|
|
1006
|
+
},
|
|
738
1007
|
{
|
|
739
1008
|
"inputs": [
|
|
740
1009
|
{
|
|
@@ -748,6 +1017,24 @@ export const RugOrRumbleABI = [
|
|
|
748
1017
|
"stateMutability": "nonpayable",
|
|
749
1018
|
"type": "function"
|
|
750
1019
|
},
|
|
1020
|
+
{
|
|
1021
|
+
"inputs": [
|
|
1022
|
+
{
|
|
1023
|
+
"internalType": "uint256",
|
|
1024
|
+
"name": "newFeePercentageBps",
|
|
1025
|
+
"type": "uint256"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"internalType": "uint256",
|
|
1029
|
+
"name": "newRewardAllocationBps",
|
|
1030
|
+
"type": "uint256"
|
|
1031
|
+
}
|
|
1032
|
+
],
|
|
1033
|
+
"name": "updateRewardParameters",
|
|
1034
|
+
"outputs": [],
|
|
1035
|
+
"stateMutability": "nonpayable",
|
|
1036
|
+
"type": "function"
|
|
1037
|
+
},
|
|
751
1038
|
{
|
|
752
1039
|
"inputs": [
|
|
753
1040
|
{
|
|
@@ -772,4 +1059,4 @@ export const RugOrRumbleABI = [
|
|
|
772
1059
|
}
|
|
773
1060
|
];
|
|
774
1061
|
|
|
775
|
-
export default
|
|
1062
|
+
export default RugRumbleABI;
|
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated. Do not edit manually.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { RugRumbleABI, default as RugRumble } from './RugRumble.js';
|
|
4
4
|
|
|
5
5
|
export const ABIs = {
|
|
6
|
-
|
|
6
|
+
RugRumble: RugRumbleABI,
|
|
7
7
|
} as const;
|
package/src/index.js
CHANGED