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

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grumble-studios/rug-or-rumble",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Smart contract ABIs and TypeScript types for Rug Rumble game",
5
5
  "main": "./src/index.js",
6
6
  "module": "./src/index.js",
@@ -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",
@@ -436,6 +420,37 @@ export const RugRumbleABI = [
436
420
  "name": "PayoutSent",
437
421
  "type": "event"
438
422
  },
423
+ {
424
+ "anonymous": false,
425
+ "inputs": [
426
+ {
427
+ "indexed": true,
428
+ "internalType": "address",
429
+ "name": "player",
430
+ "type": "address"
431
+ },
432
+ {
433
+ "indexed": false,
434
+ "internalType": "string",
435
+ "name": "purchaseId",
436
+ "type": "string"
437
+ },
438
+ {
439
+ "indexed": false,
440
+ "internalType": "uint256",
441
+ "name": "amount",
442
+ "type": "uint256"
443
+ },
444
+ {
445
+ "indexed": false,
446
+ "internalType": "string",
447
+ "name": "metadata",
448
+ "type": "string"
449
+ }
450
+ ],
451
+ "name": "Purchase",
452
+ "type": "event"
453
+ },
439
454
  {
440
455
  "anonymous": false,
441
456
  "inputs": [
@@ -919,6 +934,34 @@ export const RugRumbleABI = [
919
934
  "stateMutability": "view",
920
935
  "type": "function"
921
936
  },
937
+ {
938
+ "inputs": [
939
+ {
940
+ "internalType": "string",
941
+ "name": "purchaseId",
942
+ "type": "string"
943
+ },
944
+ {
945
+ "internalType": "string",
946
+ "name": "metadata",
947
+ "type": "string"
948
+ },
949
+ {
950
+ "internalType": "uint256",
951
+ "name": "deadline",
952
+ "type": "uint256"
953
+ },
954
+ {
955
+ "internalType": "bytes",
956
+ "name": "serverSignature",
957
+ "type": "bytes"
958
+ }
959
+ ],
960
+ "name": "purchase",
961
+ "outputs": [],
962
+ "stateMutability": "payable",
963
+ "type": "function"
964
+ },
922
965
  {
923
966
  "inputs": [
924
967
  {
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",
@@ -436,6 +420,37 @@ export const RugRumbleABI = [
436
420
  "name": "PayoutSent",
437
421
  "type": "event"
438
422
  },
423
+ {
424
+ "anonymous": false,
425
+ "inputs": [
426
+ {
427
+ "indexed": true,
428
+ "internalType": "address",
429
+ "name": "player",
430
+ "type": "address"
431
+ },
432
+ {
433
+ "indexed": false,
434
+ "internalType": "string",
435
+ "name": "purchaseId",
436
+ "type": "string"
437
+ },
438
+ {
439
+ "indexed": false,
440
+ "internalType": "uint256",
441
+ "name": "amount",
442
+ "type": "uint256"
443
+ },
444
+ {
445
+ "indexed": false,
446
+ "internalType": "string",
447
+ "name": "metadata",
448
+ "type": "string"
449
+ }
450
+ ],
451
+ "name": "Purchase",
452
+ "type": "event"
453
+ },
439
454
  {
440
455
  "anonymous": false,
441
456
  "inputs": [
@@ -919,6 +934,34 @@ export const RugRumbleABI = [
919
934
  "stateMutability": "view",
920
935
  "type": "function"
921
936
  },
937
+ {
938
+ "inputs": [
939
+ {
940
+ "internalType": "string",
941
+ "name": "purchaseId",
942
+ "type": "string"
943
+ },
944
+ {
945
+ "internalType": "string",
946
+ "name": "metadata",
947
+ "type": "string"
948
+ },
949
+ {
950
+ "internalType": "uint256",
951
+ "name": "deadline",
952
+ "type": "uint256"
953
+ },
954
+ {
955
+ "internalType": "bytes",
956
+ "name": "serverSignature",
957
+ "type": "bytes"
958
+ }
959
+ ],
960
+ "name": "purchase",
961
+ "outputs": [],
962
+ "stateMutability": "payable",
963
+ "type": "function"
964
+ },
922
965
  {
923
966
  "inputs": [
924
967
  {