@grumble-studios/rug-or-rumble 2.0.3 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/RugRumble.d.ts +101 -16
- package/src/RugRumble.js +101 -16
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/RugRumble.d.ts
CHANGED
|
@@ -165,22 +165,6 @@ export const RugRumbleABI = [
|
|
|
165
165
|
"name": "NotAuthorized",
|
|
166
166
|
"type": "error"
|
|
167
167
|
},
|
|
168
|
-
{
|
|
169
|
-
"inputs": [
|
|
170
|
-
{
|
|
171
|
-
"internalType": "uint256",
|
|
172
|
-
"name": "onChainGameId",
|
|
173
|
-
"type": "uint256"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"internalType": "address",
|
|
177
|
-
"name": "caller",
|
|
178
|
-
"type": "address"
|
|
179
|
-
}
|
|
180
|
-
],
|
|
181
|
-
"name": "NotGamePlayer",
|
|
182
|
-
"type": "error"
|
|
183
|
-
},
|
|
184
168
|
{
|
|
185
169
|
"inputs": [],
|
|
186
170
|
"name": "NotInitializing",
|
|
@@ -249,6 +233,22 @@ export const RugRumbleABI = [
|
|
|
249
233
|
"name": "SignatureExpired",
|
|
250
234
|
"type": "error"
|
|
251
235
|
},
|
|
236
|
+
{
|
|
237
|
+
"inputs": [
|
|
238
|
+
{
|
|
239
|
+
"internalType": "uint256",
|
|
240
|
+
"name": "requested",
|
|
241
|
+
"type": "uint256"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"internalType": "uint256",
|
|
245
|
+
"name": "distributed",
|
|
246
|
+
"type": "uint256"
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"name": "TotalRewardBudgetBelowDistributed",
|
|
250
|
+
"type": "error"
|
|
251
|
+
},
|
|
252
252
|
{
|
|
253
253
|
"inputs": [],
|
|
254
254
|
"name": "TransferFailed",
|
|
@@ -436,6 +436,37 @@ export const RugRumbleABI = [
|
|
|
436
436
|
"name": "PayoutSent",
|
|
437
437
|
"type": "event"
|
|
438
438
|
},
|
|
439
|
+
{
|
|
440
|
+
"anonymous": false,
|
|
441
|
+
"inputs": [
|
|
442
|
+
{
|
|
443
|
+
"indexed": true,
|
|
444
|
+
"internalType": "address",
|
|
445
|
+
"name": "player",
|
|
446
|
+
"type": "address"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"indexed": false,
|
|
450
|
+
"internalType": "string",
|
|
451
|
+
"name": "purchaseId",
|
|
452
|
+
"type": "string"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"indexed": false,
|
|
456
|
+
"internalType": "uint256",
|
|
457
|
+
"name": "amount",
|
|
458
|
+
"type": "uint256"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"indexed": false,
|
|
462
|
+
"internalType": "string",
|
|
463
|
+
"name": "metadata",
|
|
464
|
+
"type": "string"
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
"name": "Purchase",
|
|
468
|
+
"type": "event"
|
|
469
|
+
},
|
|
439
470
|
{
|
|
440
471
|
"anonymous": false,
|
|
441
472
|
"inputs": [
|
|
@@ -486,6 +517,19 @@ export const RugRumbleABI = [
|
|
|
486
517
|
"name": "RewardParametersUpdated",
|
|
487
518
|
"type": "event"
|
|
488
519
|
},
|
|
520
|
+
{
|
|
521
|
+
"anonymous": false,
|
|
522
|
+
"inputs": [
|
|
523
|
+
{
|
|
524
|
+
"indexed": false,
|
|
525
|
+
"internalType": "uint256",
|
|
526
|
+
"name": "newTotalRewardBudget",
|
|
527
|
+
"type": "uint256"
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
"name": "TotalRewardBudgetSet",
|
|
531
|
+
"type": "event"
|
|
532
|
+
},
|
|
489
533
|
{
|
|
490
534
|
"inputs": [
|
|
491
535
|
{
|
|
@@ -919,6 +963,34 @@ export const RugRumbleABI = [
|
|
|
919
963
|
"stateMutability": "view",
|
|
920
964
|
"type": "function"
|
|
921
965
|
},
|
|
966
|
+
{
|
|
967
|
+
"inputs": [
|
|
968
|
+
{
|
|
969
|
+
"internalType": "string",
|
|
970
|
+
"name": "purchaseId",
|
|
971
|
+
"type": "string"
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"internalType": "string",
|
|
975
|
+
"name": "metadata",
|
|
976
|
+
"type": "string"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"internalType": "uint256",
|
|
980
|
+
"name": "deadline",
|
|
981
|
+
"type": "uint256"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"internalType": "bytes",
|
|
985
|
+
"name": "serverSignature",
|
|
986
|
+
"type": "bytes"
|
|
987
|
+
}
|
|
988
|
+
],
|
|
989
|
+
"name": "purchase",
|
|
990
|
+
"outputs": [],
|
|
991
|
+
"stateMutability": "payable",
|
|
992
|
+
"type": "function"
|
|
993
|
+
},
|
|
922
994
|
{
|
|
923
995
|
"inputs": [
|
|
924
996
|
{
|
|
@@ -965,6 +1037,19 @@ export const RugRumbleABI = [
|
|
|
965
1037
|
"stateMutability": "nonpayable",
|
|
966
1038
|
"type": "function"
|
|
967
1039
|
},
|
|
1040
|
+
{
|
|
1041
|
+
"inputs": [
|
|
1042
|
+
{
|
|
1043
|
+
"internalType": "uint256",
|
|
1044
|
+
"name": "newTotalRewardBudget",
|
|
1045
|
+
"type": "uint256"
|
|
1046
|
+
}
|
|
1047
|
+
],
|
|
1048
|
+
"name": "setTotalRewardBudget",
|
|
1049
|
+
"outputs": [],
|
|
1050
|
+
"stateMutability": "nonpayable",
|
|
1051
|
+
"type": "function"
|
|
1052
|
+
},
|
|
968
1053
|
{
|
|
969
1054
|
"inputs": [],
|
|
970
1055
|
"name": "totalRewardBudgetAccrued",
|
package/src/RugRumble.js
CHANGED
|
@@ -165,22 +165,6 @@ export const RugRumbleABI = [
|
|
|
165
165
|
"name": "NotAuthorized",
|
|
166
166
|
"type": "error"
|
|
167
167
|
},
|
|
168
|
-
{
|
|
169
|
-
"inputs": [
|
|
170
|
-
{
|
|
171
|
-
"internalType": "uint256",
|
|
172
|
-
"name": "onChainGameId",
|
|
173
|
-
"type": "uint256"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"internalType": "address",
|
|
177
|
-
"name": "caller",
|
|
178
|
-
"type": "address"
|
|
179
|
-
}
|
|
180
|
-
],
|
|
181
|
-
"name": "NotGamePlayer",
|
|
182
|
-
"type": "error"
|
|
183
|
-
},
|
|
184
168
|
{
|
|
185
169
|
"inputs": [],
|
|
186
170
|
"name": "NotInitializing",
|
|
@@ -249,6 +233,22 @@ export const RugRumbleABI = [
|
|
|
249
233
|
"name": "SignatureExpired",
|
|
250
234
|
"type": "error"
|
|
251
235
|
},
|
|
236
|
+
{
|
|
237
|
+
"inputs": [
|
|
238
|
+
{
|
|
239
|
+
"internalType": "uint256",
|
|
240
|
+
"name": "requested",
|
|
241
|
+
"type": "uint256"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"internalType": "uint256",
|
|
245
|
+
"name": "distributed",
|
|
246
|
+
"type": "uint256"
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"name": "TotalRewardBudgetBelowDistributed",
|
|
250
|
+
"type": "error"
|
|
251
|
+
},
|
|
252
252
|
{
|
|
253
253
|
"inputs": [],
|
|
254
254
|
"name": "TransferFailed",
|
|
@@ -436,6 +436,37 @@ export const RugRumbleABI = [
|
|
|
436
436
|
"name": "PayoutSent",
|
|
437
437
|
"type": "event"
|
|
438
438
|
},
|
|
439
|
+
{
|
|
440
|
+
"anonymous": false,
|
|
441
|
+
"inputs": [
|
|
442
|
+
{
|
|
443
|
+
"indexed": true,
|
|
444
|
+
"internalType": "address",
|
|
445
|
+
"name": "player",
|
|
446
|
+
"type": "address"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"indexed": false,
|
|
450
|
+
"internalType": "string",
|
|
451
|
+
"name": "purchaseId",
|
|
452
|
+
"type": "string"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"indexed": false,
|
|
456
|
+
"internalType": "uint256",
|
|
457
|
+
"name": "amount",
|
|
458
|
+
"type": "uint256"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"indexed": false,
|
|
462
|
+
"internalType": "string",
|
|
463
|
+
"name": "metadata",
|
|
464
|
+
"type": "string"
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
"name": "Purchase",
|
|
468
|
+
"type": "event"
|
|
469
|
+
},
|
|
439
470
|
{
|
|
440
471
|
"anonymous": false,
|
|
441
472
|
"inputs": [
|
|
@@ -486,6 +517,19 @@ export const RugRumbleABI = [
|
|
|
486
517
|
"name": "RewardParametersUpdated",
|
|
487
518
|
"type": "event"
|
|
488
519
|
},
|
|
520
|
+
{
|
|
521
|
+
"anonymous": false,
|
|
522
|
+
"inputs": [
|
|
523
|
+
{
|
|
524
|
+
"indexed": false,
|
|
525
|
+
"internalType": "uint256",
|
|
526
|
+
"name": "newTotalRewardBudget",
|
|
527
|
+
"type": "uint256"
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
"name": "TotalRewardBudgetSet",
|
|
531
|
+
"type": "event"
|
|
532
|
+
},
|
|
489
533
|
{
|
|
490
534
|
"inputs": [
|
|
491
535
|
{
|
|
@@ -919,6 +963,34 @@ export const RugRumbleABI = [
|
|
|
919
963
|
"stateMutability": "view",
|
|
920
964
|
"type": "function"
|
|
921
965
|
},
|
|
966
|
+
{
|
|
967
|
+
"inputs": [
|
|
968
|
+
{
|
|
969
|
+
"internalType": "string",
|
|
970
|
+
"name": "purchaseId",
|
|
971
|
+
"type": "string"
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"internalType": "string",
|
|
975
|
+
"name": "metadata",
|
|
976
|
+
"type": "string"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"internalType": "uint256",
|
|
980
|
+
"name": "deadline",
|
|
981
|
+
"type": "uint256"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"internalType": "bytes",
|
|
985
|
+
"name": "serverSignature",
|
|
986
|
+
"type": "bytes"
|
|
987
|
+
}
|
|
988
|
+
],
|
|
989
|
+
"name": "purchase",
|
|
990
|
+
"outputs": [],
|
|
991
|
+
"stateMutability": "payable",
|
|
992
|
+
"type": "function"
|
|
993
|
+
},
|
|
922
994
|
{
|
|
923
995
|
"inputs": [
|
|
924
996
|
{
|
|
@@ -965,6 +1037,19 @@ export const RugRumbleABI = [
|
|
|
965
1037
|
"stateMutability": "nonpayable",
|
|
966
1038
|
"type": "function"
|
|
967
1039
|
},
|
|
1040
|
+
{
|
|
1041
|
+
"inputs": [
|
|
1042
|
+
{
|
|
1043
|
+
"internalType": "uint256",
|
|
1044
|
+
"name": "newTotalRewardBudget",
|
|
1045
|
+
"type": "uint256"
|
|
1046
|
+
}
|
|
1047
|
+
],
|
|
1048
|
+
"name": "setTotalRewardBudget",
|
|
1049
|
+
"outputs": [],
|
|
1050
|
+
"stateMutability": "nonpayable",
|
|
1051
|
+
"type": "function"
|
|
1052
|
+
},
|
|
968
1053
|
{
|
|
969
1054
|
"inputs": [],
|
|
970
1055
|
"name": "totalRewardBudgetAccrued",
|
package/src/index.js
CHANGED