@peeramid-labs/sdk 3.11.0 → 3.11.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 (202) hide show
  1. package/README.md +7 -0
  2. package/cli/abis/IRankifyInstance.js +167 -0
  3. package/cli/abis/IRankifyInstance.js.map +1 -1
  4. package/cli/abis/LibRankify.js +298 -0
  5. package/cli/abis/LibRankify.js.map +1 -0
  6. package/cli/abis/MAODistribution.js +30 -10
  7. package/cli/abis/MAODistribution.js.map +1 -1
  8. package/cli/abis/RankifyDiamondInstance.js +442 -242
  9. package/cli/abis/RankifyDiamondInstance.js.map +1 -1
  10. package/cli/abis/RankifyInstanceGameMastersFacet.js +0 -21
  11. package/cli/abis/RankifyInstanceGameMastersFacet.js.map +1 -1
  12. package/cli/abis/RankifyInstanceMainFacet.js +585 -31
  13. package/cli/abis/RankifyInstanceMainFacet.js.map +1 -1
  14. package/cli/abis/RankifyInstanceRequirementsFacet.js +0 -333
  15. package/cli/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
  16. package/cli/abis/index.js +6 -2
  17. package/cli/abis/index.js.map +1 -1
  18. package/cli/abis/superinterface.js +32 -18
  19. package/cli/abis/superinterface.js.map +1 -1
  20. package/cli/cli/commands/blockchain/index.js +1 -3
  21. package/cli/cli/commands/blockchain/index.js.map +1 -1
  22. package/cli/cli/commands/blockchain/mine.js.map +1 -1
  23. package/cli/cli/commands/distributions/add.js.map +1 -1
  24. package/cli/cli/commands/distributions/list.js.map +1 -1
  25. package/cli/cli/commands/distributions/remove.js.map +1 -1
  26. package/cli/cli/commands/distributions/state.js.map +1 -1
  27. package/cli/cli/commands/fellowship/create.js +9 -2
  28. package/cli/cli/commands/fellowship/create.js.map +1 -1
  29. package/cli/cli/commands/fellowship/eip712.js.map +1 -1
  30. package/cli/cli/commands/fellowship/game/cancel.js.map +1 -1
  31. package/cli/cli/commands/fellowship/game/create.js +15 -22
  32. package/cli/cli/commands/fellowship/game/create.js.map +1 -1
  33. package/cli/cli/commands/fellowship/game/end-turn.js.map +1 -1
  34. package/cli/cli/commands/fellowship/game/join.js +1 -1
  35. package/cli/cli/commands/fellowship/game/join.js.map +1 -1
  36. package/cli/cli/commands/fellowship/game/list.js.map +1 -1
  37. package/cli/cli/commands/fellowship/game/propose.js +1 -1
  38. package/cli/cli/commands/fellowship/game/propose.js.map +1 -1
  39. package/cli/cli/commands/fellowship/game/start.js.map +1 -1
  40. package/cli/cli/commands/fellowship/game/vote.js.map +1 -1
  41. package/cli/cli/commands/fellowship/list.js.map +1 -1
  42. package/cli/cli/commands/fellowship/params.js.map +1 -1
  43. package/cli/cli/commands/getPk.js.map +1 -1
  44. package/cli/cli/commands/instances/list.js.map +1 -1
  45. package/cli/cli/commands/playbook.js +5 -4
  46. package/cli/cli/commands/playbook.js.map +1 -1
  47. package/cli/cli/commands/rankify/games.js.map +1 -1
  48. package/cli/cli/getPk.js +2 -2
  49. package/cli/cli/getPk.js.map +1 -1
  50. package/cli/cli/utils.js +1 -1
  51. package/cli/eds/Distributor.js +1 -1
  52. package/cli/eds/Distributor.js.map +1 -1
  53. package/cli/rankify/GameMaster.js +117 -28
  54. package/cli/rankify/GameMaster.js.map +1 -1
  55. package/cli/rankify/InstanceBase.js +33 -12
  56. package/cli/rankify/InstanceBase.js.map +1 -1
  57. package/cli/rankify/MAODistributor.js +56 -3
  58. package/cli/rankify/MAODistributor.js.map +1 -1
  59. package/cli/rankify/Player.js +40 -1
  60. package/cli/rankify/Player.js.map +1 -1
  61. package/cli/utils/ApiError.js +1 -1
  62. package/cli/utils/ApiError.js.map +1 -1
  63. package/cli/utils/EnvioGraphQLClient.js +9 -9
  64. package/cli/utils/EnvioGraphQLClient.js.map +1 -1
  65. package/cli/utils/blockchain.js +3 -3
  66. package/docs/classes/InstanceBase.md +26 -4
  67. package/docs/classes/InstancePlayer.md +70 -5
  68. package/docs/classes/MAODistributorClient.md +63 -2
  69. package/docs/docs/classes/InstanceBase.md +26 -4
  70. package/docs/docs/classes/InstancePlayer.md +70 -5
  71. package/docs/docs/classes/MAODistributorClient.md +63 -2
  72. package/docs/docs/index.md +13 -8
  73. package/docs/index.md +13 -8
  74. package/lib.commonjs/abis/IRankifyInstance.d.ts +128 -0
  75. package/lib.commonjs/abis/IRankifyInstance.d.ts.map +1 -1
  76. package/lib.commonjs/abis/IRankifyInstance.js +167 -0
  77. package/lib.commonjs/abis/IRankifyInstance.js.map +1 -1
  78. package/lib.commonjs/abis/LibRankify.d.ts +226 -0
  79. package/lib.commonjs/abis/LibRankify.d.ts.map +1 -0
  80. package/lib.commonjs/abis/LibRankify.js +298 -0
  81. package/lib.commonjs/abis/LibRankify.js.map +1 -0
  82. package/lib.commonjs/abis/MAODistribution.d.ts +24 -8
  83. package/lib.commonjs/abis/MAODistribution.d.ts.map +1 -1
  84. package/lib.commonjs/abis/MAODistribution.js +30 -10
  85. package/lib.commonjs/abis/MAODistribution.js.map +1 -1
  86. package/lib.commonjs/abis/RankifyDiamondInstance.d.ts +340 -186
  87. package/lib.commonjs/abis/RankifyDiamondInstance.d.ts.map +1 -1
  88. package/lib.commonjs/abis/RankifyDiamondInstance.js +442 -242
  89. package/lib.commonjs/abis/RankifyDiamondInstance.js.map +1 -1
  90. package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.d.ts +0 -16
  91. package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.d.ts.map +1 -1
  92. package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.js +0 -21
  93. package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.js.map +1 -1
  94. package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts +449 -24
  95. package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
  96. package/lib.commonjs/abis/RankifyInstanceMainFacet.js +585 -31
  97. package/lib.commonjs/abis/RankifyInstanceMainFacet.js.map +1 -1
  98. package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.d.ts +0 -255
  99. package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.d.ts.map +1 -1
  100. package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.js +0 -333
  101. package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
  102. package/lib.commonjs/abis/index.d.ts +1133 -456
  103. package/lib.commonjs/abis/index.d.ts.map +1 -1
  104. package/lib.commonjs/abis/index.js +6 -2
  105. package/lib.commonjs/abis/index.js.map +1 -1
  106. package/lib.commonjs/abis/superinterface.d.ts +1 -1
  107. package/lib.commonjs/abis/superinterface.d.ts.map +1 -1
  108. package/lib.commonjs/abis/superinterface.js +32 -18
  109. package/lib.commonjs/abis/superinterface.js.map +1 -1
  110. package/lib.commonjs/eds/Distributor.d.ts.map +1 -1
  111. package/lib.commonjs/eds/Distributor.js +1 -1
  112. package/lib.commonjs/eds/Distributor.js.map +1 -1
  113. package/lib.commonjs/rankify/GameMaster.d.ts.map +1 -1
  114. package/lib.commonjs/rankify/GameMaster.js +117 -28
  115. package/lib.commonjs/rankify/GameMaster.js.map +1 -1
  116. package/lib.commonjs/rankify/InstanceBase.d.ts +8 -1
  117. package/lib.commonjs/rankify/InstanceBase.d.ts.map +1 -1
  118. package/lib.commonjs/rankify/InstanceBase.js +33 -12
  119. package/lib.commonjs/rankify/InstanceBase.js.map +1 -1
  120. package/lib.commonjs/rankify/MAODistributor.d.ts +69 -1
  121. package/lib.commonjs/rankify/MAODistributor.d.ts.map +1 -1
  122. package/lib.commonjs/rankify/MAODistributor.js +56 -3
  123. package/lib.commonjs/rankify/MAODistributor.js.map +1 -1
  124. package/lib.commonjs/rankify/Player.d.ts +53 -0
  125. package/lib.commonjs/rankify/Player.d.ts.map +1 -1
  126. package/lib.commonjs/rankify/Player.js +40 -1
  127. package/lib.commonjs/rankify/Player.js.map +1 -1
  128. package/lib.commonjs/utils/ApiError.js +1 -1
  129. package/lib.commonjs/utils/ApiError.js.map +1 -1
  130. package/lib.commonjs/utils/EnvioGraphQLClient.d.ts +1 -1
  131. package/lib.commonjs/utils/EnvioGraphQLClient.d.ts.map +1 -1
  132. package/lib.commonjs/utils/EnvioGraphQLClient.js +9 -9
  133. package/lib.commonjs/utils/EnvioGraphQLClient.js.map +1 -1
  134. package/lib.commonjs/utils/blockchain.js +3 -3
  135. package/lib.commonjs/utils/mockUtils.d.ts.map +1 -1
  136. package/lib.commonjs/utils/mockUtils.js +1 -1
  137. package/lib.commonjs/utils/mockUtils.js.map +1 -1
  138. package/lib.esm/abis/IRankifyInstance.d.ts +128 -0
  139. package/lib.esm/abis/IRankifyInstance.d.ts.map +1 -1
  140. package/lib.esm/abis/IRankifyInstance.js +167 -0
  141. package/lib.esm/abis/IRankifyInstance.js.map +1 -1
  142. package/lib.esm/abis/LibRankify.d.ts +226 -0
  143. package/lib.esm/abis/LibRankify.d.ts.map +1 -0
  144. package/lib.esm/abis/LibRankify.js +295 -0
  145. package/lib.esm/abis/LibRankify.js.map +1 -0
  146. package/lib.esm/abis/MAODistribution.d.ts +24 -8
  147. package/lib.esm/abis/MAODistribution.d.ts.map +1 -1
  148. package/lib.esm/abis/MAODistribution.js +30 -10
  149. package/lib.esm/abis/MAODistribution.js.map +1 -1
  150. package/lib.esm/abis/RankifyDiamondInstance.d.ts +340 -186
  151. package/lib.esm/abis/RankifyDiamondInstance.d.ts.map +1 -1
  152. package/lib.esm/abis/RankifyDiamondInstance.js +442 -242
  153. package/lib.esm/abis/RankifyDiamondInstance.js.map +1 -1
  154. package/lib.esm/abis/RankifyInstanceGameMastersFacet.d.ts +0 -16
  155. package/lib.esm/abis/RankifyInstanceGameMastersFacet.d.ts.map +1 -1
  156. package/lib.esm/abis/RankifyInstanceGameMastersFacet.js +0 -21
  157. package/lib.esm/abis/RankifyInstanceGameMastersFacet.js.map +1 -1
  158. package/lib.esm/abis/RankifyInstanceMainFacet.d.ts +449 -24
  159. package/lib.esm/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
  160. package/lib.esm/abis/RankifyInstanceMainFacet.js +585 -31
  161. package/lib.esm/abis/RankifyInstanceMainFacet.js.map +1 -1
  162. package/lib.esm/abis/RankifyInstanceRequirementsFacet.d.ts +0 -255
  163. package/lib.esm/abis/RankifyInstanceRequirementsFacet.d.ts.map +1 -1
  164. package/lib.esm/abis/RankifyInstanceRequirementsFacet.js +0 -333
  165. package/lib.esm/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
  166. package/lib.esm/abis/index.d.ts +1133 -456
  167. package/lib.esm/abis/index.d.ts.map +1 -1
  168. package/lib.esm/abis/index.js +3 -0
  169. package/lib.esm/abis/index.js.map +1 -1
  170. package/lib.esm/abis/superinterface.d.ts +1 -1
  171. package/lib.esm/abis/superinterface.d.ts.map +1 -1
  172. package/lib.esm/abis/superinterface.js +32 -18
  173. package/lib.esm/abis/superinterface.js.map +1 -1
  174. package/lib.esm/eds/Distributor.d.ts.map +1 -1
  175. package/lib.esm/eds/Distributor.js +1 -1
  176. package/lib.esm/eds/Distributor.js.map +1 -1
  177. package/lib.esm/rankify/GameMaster.d.ts.map +1 -1
  178. package/lib.esm/rankify/GameMaster.js +117 -28
  179. package/lib.esm/rankify/GameMaster.js.map +1 -1
  180. package/lib.esm/rankify/InstanceBase.d.ts +8 -1
  181. package/lib.esm/rankify/InstanceBase.d.ts.map +1 -1
  182. package/lib.esm/rankify/InstanceBase.js +33 -12
  183. package/lib.esm/rankify/InstanceBase.js.map +1 -1
  184. package/lib.esm/rankify/MAODistributor.d.ts +69 -1
  185. package/lib.esm/rankify/MAODistributor.d.ts.map +1 -1
  186. package/lib.esm/rankify/MAODistributor.js +56 -3
  187. package/lib.esm/rankify/MAODistributor.js.map +1 -1
  188. package/lib.esm/rankify/Player.d.ts +53 -0
  189. package/lib.esm/rankify/Player.d.ts.map +1 -1
  190. package/lib.esm/rankify/Player.js +40 -1
  191. package/lib.esm/rankify/Player.js.map +1 -1
  192. package/lib.esm/utils/ApiError.js +1 -1
  193. package/lib.esm/utils/ApiError.js.map +1 -1
  194. package/lib.esm/utils/EnvioGraphQLClient.d.ts +1 -1
  195. package/lib.esm/utils/EnvioGraphQLClient.d.ts.map +1 -1
  196. package/lib.esm/utils/EnvioGraphQLClient.js +9 -9
  197. package/lib.esm/utils/EnvioGraphQLClient.js.map +1 -1
  198. package/lib.esm/utils/blockchain.js +3 -3
  199. package/lib.esm/utils/mockUtils.d.ts.map +1 -1
  200. package/lib.esm/utils/mockUtils.js +1 -1
  201. package/lib.esm/utils/mockUtils.js.map +1 -1
  202. package/package.json +2 -2
@@ -2,33 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RankifyInstanceMainFacetAbi = void 0;
4
4
  exports.RankifyInstanceMainFacetAbi = [
5
- {
6
- "inputs": [],
7
- "name": "ECDSAInvalidSignature",
8
- "type": "error"
9
- },
10
- {
11
- "inputs": [
12
- {
13
- "internalType": "uint256",
14
- "name": "length",
15
- "type": "uint256"
16
- }
17
- ],
18
- "name": "ECDSAInvalidSignatureLength",
19
- "type": "error"
20
- },
21
- {
22
- "inputs": [
23
- {
24
- "internalType": "bytes32",
25
- "name": "s",
26
- "type": "bytes32"
27
- }
28
- ],
29
- "name": "ECDSAInvalidSignatureS",
30
- "type": "error"
31
- },
32
5
  {
33
6
  "inputs": [
34
7
  {
@@ -213,6 +186,173 @@ exports.RankifyInstanceMainFacetAbi = [
213
186
  "name": "RegistrationOpen",
214
187
  "type": "event"
215
188
  },
189
+ {
190
+ "anonymous": false,
191
+ "inputs": [
192
+ {
193
+ "indexed": true,
194
+ "internalType": "uint256",
195
+ "name": "gameId",
196
+ "type": "uint256"
197
+ },
198
+ {
199
+ "components": [
200
+ {
201
+ "components": [
202
+ {
203
+ "internalType": "uint256",
204
+ "name": "have",
205
+ "type": "uint256"
206
+ },
207
+ {
208
+ "internalType": "uint256",
209
+ "name": "lock",
210
+ "type": "uint256"
211
+ },
212
+ {
213
+ "internalType": "uint256",
214
+ "name": "burn",
215
+ "type": "uint256"
216
+ },
217
+ {
218
+ "internalType": "uint256",
219
+ "name": "pay",
220
+ "type": "uint256"
221
+ },
222
+ {
223
+ "internalType": "uint256",
224
+ "name": "bet",
225
+ "type": "uint256"
226
+ }
227
+ ],
228
+ "internalType": "struct LibCoinVending.NumericCondition",
229
+ "name": "ethValues",
230
+ "type": "tuple"
231
+ },
232
+ {
233
+ "components": [
234
+ {
235
+ "internalType": "address",
236
+ "name": "contractAddress",
237
+ "type": "address"
238
+ },
239
+ {
240
+ "internalType": "uint256",
241
+ "name": "contractId",
242
+ "type": "uint256"
243
+ },
244
+ {
245
+ "internalType": "enum LibCoinVending.ContractTypes",
246
+ "name": "contractType",
247
+ "type": "uint8"
248
+ },
249
+ {
250
+ "components": [
251
+ {
252
+ "components": [
253
+ {
254
+ "internalType": "bytes",
255
+ "name": "data",
256
+ "type": "bytes"
257
+ },
258
+ {
259
+ "internalType": "uint256",
260
+ "name": "amount",
261
+ "type": "uint256"
262
+ }
263
+ ],
264
+ "internalType": "struct LibCoinVending.TransactionProperties",
265
+ "name": "have",
266
+ "type": "tuple"
267
+ },
268
+ {
269
+ "components": [
270
+ {
271
+ "internalType": "bytes",
272
+ "name": "data",
273
+ "type": "bytes"
274
+ },
275
+ {
276
+ "internalType": "uint256",
277
+ "name": "amount",
278
+ "type": "uint256"
279
+ }
280
+ ],
281
+ "internalType": "struct LibCoinVending.TransactionProperties",
282
+ "name": "lock",
283
+ "type": "tuple"
284
+ },
285
+ {
286
+ "components": [
287
+ {
288
+ "internalType": "bytes",
289
+ "name": "data",
290
+ "type": "bytes"
291
+ },
292
+ {
293
+ "internalType": "uint256",
294
+ "name": "amount",
295
+ "type": "uint256"
296
+ }
297
+ ],
298
+ "internalType": "struct LibCoinVending.TransactionProperties",
299
+ "name": "burn",
300
+ "type": "tuple"
301
+ },
302
+ {
303
+ "components": [
304
+ {
305
+ "internalType": "bytes",
306
+ "name": "data",
307
+ "type": "bytes"
308
+ },
309
+ {
310
+ "internalType": "uint256",
311
+ "name": "amount",
312
+ "type": "uint256"
313
+ }
314
+ ],
315
+ "internalType": "struct LibCoinVending.TransactionProperties",
316
+ "name": "pay",
317
+ "type": "tuple"
318
+ },
319
+ {
320
+ "components": [
321
+ {
322
+ "internalType": "bytes",
323
+ "name": "data",
324
+ "type": "bytes"
325
+ },
326
+ {
327
+ "internalType": "uint256",
328
+ "name": "amount",
329
+ "type": "uint256"
330
+ }
331
+ ],
332
+ "internalType": "struct LibCoinVending.TransactionProperties",
333
+ "name": "bet",
334
+ "type": "tuple"
335
+ }
336
+ ],
337
+ "internalType": "struct LibCoinVending.ContractCondition",
338
+ "name": "contractRequirement",
339
+ "type": "tuple"
340
+ }
341
+ ],
342
+ "internalType": "struct LibCoinVending.configSmartRequirement[]",
343
+ "name": "contracts",
344
+ "type": "tuple[]"
345
+ }
346
+ ],
347
+ "indexed": false,
348
+ "internalType": "struct LibCoinVending.ConfigPosition",
349
+ "name": "config",
350
+ "type": "tuple"
351
+ }
352
+ ],
353
+ "name": "RequirementsConfigured",
354
+ "type": "event"
355
+ },
216
356
  {
217
357
  "anonymous": false,
218
358
  "inputs": [
@@ -353,13 +493,237 @@ exports.RankifyInstanceMainFacetAbi = [
353
493
  "internalType": "struct IRankifyInstance.NewGameParamsInput",
354
494
  "name": "params",
355
495
  "type": "tuple"
496
+ },
497
+ {
498
+ "components": [
499
+ {
500
+ "components": [
501
+ {
502
+ "internalType": "uint256",
503
+ "name": "have",
504
+ "type": "uint256"
505
+ },
506
+ {
507
+ "internalType": "uint256",
508
+ "name": "lock",
509
+ "type": "uint256"
510
+ },
511
+ {
512
+ "internalType": "uint256",
513
+ "name": "burn",
514
+ "type": "uint256"
515
+ },
516
+ {
517
+ "internalType": "uint256",
518
+ "name": "pay",
519
+ "type": "uint256"
520
+ },
521
+ {
522
+ "internalType": "uint256",
523
+ "name": "bet",
524
+ "type": "uint256"
525
+ }
526
+ ],
527
+ "internalType": "struct LibCoinVending.NumericCondition",
528
+ "name": "ethValues",
529
+ "type": "tuple"
530
+ },
531
+ {
532
+ "components": [
533
+ {
534
+ "internalType": "address",
535
+ "name": "contractAddress",
536
+ "type": "address"
537
+ },
538
+ {
539
+ "internalType": "uint256",
540
+ "name": "contractId",
541
+ "type": "uint256"
542
+ },
543
+ {
544
+ "internalType": "enum LibCoinVending.ContractTypes",
545
+ "name": "contractType",
546
+ "type": "uint8"
547
+ },
548
+ {
549
+ "components": [
550
+ {
551
+ "components": [
552
+ {
553
+ "internalType": "bytes",
554
+ "name": "data",
555
+ "type": "bytes"
556
+ },
557
+ {
558
+ "internalType": "uint256",
559
+ "name": "amount",
560
+ "type": "uint256"
561
+ }
562
+ ],
563
+ "internalType": "struct LibCoinVending.TransactionProperties",
564
+ "name": "have",
565
+ "type": "tuple"
566
+ },
567
+ {
568
+ "components": [
569
+ {
570
+ "internalType": "bytes",
571
+ "name": "data",
572
+ "type": "bytes"
573
+ },
574
+ {
575
+ "internalType": "uint256",
576
+ "name": "amount",
577
+ "type": "uint256"
578
+ }
579
+ ],
580
+ "internalType": "struct LibCoinVending.TransactionProperties",
581
+ "name": "lock",
582
+ "type": "tuple"
583
+ },
584
+ {
585
+ "components": [
586
+ {
587
+ "internalType": "bytes",
588
+ "name": "data",
589
+ "type": "bytes"
590
+ },
591
+ {
592
+ "internalType": "uint256",
593
+ "name": "amount",
594
+ "type": "uint256"
595
+ }
596
+ ],
597
+ "internalType": "struct LibCoinVending.TransactionProperties",
598
+ "name": "burn",
599
+ "type": "tuple"
600
+ },
601
+ {
602
+ "components": [
603
+ {
604
+ "internalType": "bytes",
605
+ "name": "data",
606
+ "type": "bytes"
607
+ },
608
+ {
609
+ "internalType": "uint256",
610
+ "name": "amount",
611
+ "type": "uint256"
612
+ }
613
+ ],
614
+ "internalType": "struct LibCoinVending.TransactionProperties",
615
+ "name": "pay",
616
+ "type": "tuple"
617
+ },
618
+ {
619
+ "components": [
620
+ {
621
+ "internalType": "bytes",
622
+ "name": "data",
623
+ "type": "bytes"
624
+ },
625
+ {
626
+ "internalType": "uint256",
627
+ "name": "amount",
628
+ "type": "uint256"
629
+ }
630
+ ],
631
+ "internalType": "struct LibCoinVending.TransactionProperties",
632
+ "name": "bet",
633
+ "type": "tuple"
634
+ }
635
+ ],
636
+ "internalType": "struct LibCoinVending.ContractCondition",
637
+ "name": "contractRequirement",
638
+ "type": "tuple"
639
+ }
640
+ ],
641
+ "internalType": "struct LibCoinVending.configSmartRequirement[]",
642
+ "name": "contracts",
643
+ "type": "tuple[]"
644
+ }
645
+ ],
646
+ "internalType": "struct LibCoinVending.ConfigPosition",
647
+ "name": "requirements",
648
+ "type": "tuple"
356
649
  }
357
650
  ],
358
- "name": "createGame",
651
+ "name": "createAndOpenGame",
359
652
  "outputs": [],
360
653
  "stateMutability": "nonpayable",
361
654
  "type": "function"
362
655
  },
656
+ {
657
+ "inputs": [
658
+ {
659
+ "components": [
660
+ {
661
+ "internalType": "uint256",
662
+ "name": "gameRank",
663
+ "type": "uint256"
664
+ },
665
+ {
666
+ "internalType": "uint256",
667
+ "name": "minPlayerCnt",
668
+ "type": "uint256"
669
+ },
670
+ {
671
+ "internalType": "uint256",
672
+ "name": "maxPlayerCnt",
673
+ "type": "uint256"
674
+ },
675
+ {
676
+ "internalType": "uint96",
677
+ "name": "nTurns",
678
+ "type": "uint96"
679
+ },
680
+ {
681
+ "internalType": "uint256",
682
+ "name": "voteCredits",
683
+ "type": "uint256"
684
+ },
685
+ {
686
+ "internalType": "address",
687
+ "name": "gameMaster",
688
+ "type": "address"
689
+ },
690
+ {
691
+ "internalType": "uint128",
692
+ "name": "minGameTime",
693
+ "type": "uint128"
694
+ },
695
+ {
696
+ "internalType": "uint128",
697
+ "name": "timePerTurn",
698
+ "type": "uint128"
699
+ },
700
+ {
701
+ "internalType": "uint128",
702
+ "name": "timeToJoin",
703
+ "type": "uint128"
704
+ },
705
+ {
706
+ "internalType": "string",
707
+ "name": "metadata",
708
+ "type": "string"
709
+ }
710
+ ],
711
+ "internalType": "struct IRankifyInstance.NewGameParamsInput",
712
+ "name": "params",
713
+ "type": "tuple"
714
+ }
715
+ ],
716
+ "name": "createGame",
717
+ "outputs": [
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "",
721
+ "type": "uint256"
722
+ }
723
+ ],
724
+ "stateMutability": "nonpayable",
725
+ "type": "function"
726
+ },
363
727
  {
364
728
  "inputs": [
365
729
  {
@@ -606,12 +970,12 @@ exports.RankifyInstanceMainFacetAbi = [
606
970
  "type": "address"
607
971
  }
608
972
  ],
609
- "name": "getPlayersGame",
973
+ "name": "getPlayersGames",
610
974
  "outputs": [
611
975
  {
612
- "internalType": "uint256",
976
+ "internalType": "uint256[]",
613
977
  "name": "",
614
- "type": "uint256"
978
+ "type": "uint256[]"
615
979
  }
616
980
  ],
617
981
  "stateMutability": "view",
@@ -765,6 +1129,30 @@ exports.RankifyInstanceMainFacetAbi = [
765
1129
  "stateMutability": "view",
766
1130
  "type": "function"
767
1131
  },
1132
+ {
1133
+ "inputs": [
1134
+ {
1135
+ "internalType": "uint256",
1136
+ "name": "gameId",
1137
+ "type": "uint256"
1138
+ },
1139
+ {
1140
+ "internalType": "address",
1141
+ "name": "player",
1142
+ "type": "address"
1143
+ }
1144
+ ],
1145
+ "name": "isPlayerInGame",
1146
+ "outputs": [
1147
+ {
1148
+ "internalType": "bool",
1149
+ "name": "",
1150
+ "type": "bool"
1151
+ }
1152
+ ],
1153
+ "stateMutability": "view",
1154
+ "type": "function"
1155
+ },
768
1156
  {
769
1157
  "inputs": [
770
1158
  {
@@ -979,6 +1367,172 @@ exports.RankifyInstanceMainFacetAbi = [
979
1367
  "stateMutability": "nonpayable",
980
1368
  "type": "function"
981
1369
  },
1370
+ {
1371
+ "inputs": [
1372
+ {
1373
+ "internalType": "uint256",
1374
+ "name": "gameId",
1375
+ "type": "uint256"
1376
+ },
1377
+ {
1378
+ "components": [
1379
+ {
1380
+ "components": [
1381
+ {
1382
+ "internalType": "uint256",
1383
+ "name": "have",
1384
+ "type": "uint256"
1385
+ },
1386
+ {
1387
+ "internalType": "uint256",
1388
+ "name": "lock",
1389
+ "type": "uint256"
1390
+ },
1391
+ {
1392
+ "internalType": "uint256",
1393
+ "name": "burn",
1394
+ "type": "uint256"
1395
+ },
1396
+ {
1397
+ "internalType": "uint256",
1398
+ "name": "pay",
1399
+ "type": "uint256"
1400
+ },
1401
+ {
1402
+ "internalType": "uint256",
1403
+ "name": "bet",
1404
+ "type": "uint256"
1405
+ }
1406
+ ],
1407
+ "internalType": "struct LibCoinVending.NumericCondition",
1408
+ "name": "ethValues",
1409
+ "type": "tuple"
1410
+ },
1411
+ {
1412
+ "components": [
1413
+ {
1414
+ "internalType": "address",
1415
+ "name": "contractAddress",
1416
+ "type": "address"
1417
+ },
1418
+ {
1419
+ "internalType": "uint256",
1420
+ "name": "contractId",
1421
+ "type": "uint256"
1422
+ },
1423
+ {
1424
+ "internalType": "enum LibCoinVending.ContractTypes",
1425
+ "name": "contractType",
1426
+ "type": "uint8"
1427
+ },
1428
+ {
1429
+ "components": [
1430
+ {
1431
+ "components": [
1432
+ {
1433
+ "internalType": "bytes",
1434
+ "name": "data",
1435
+ "type": "bytes"
1436
+ },
1437
+ {
1438
+ "internalType": "uint256",
1439
+ "name": "amount",
1440
+ "type": "uint256"
1441
+ }
1442
+ ],
1443
+ "internalType": "struct LibCoinVending.TransactionProperties",
1444
+ "name": "have",
1445
+ "type": "tuple"
1446
+ },
1447
+ {
1448
+ "components": [
1449
+ {
1450
+ "internalType": "bytes",
1451
+ "name": "data",
1452
+ "type": "bytes"
1453
+ },
1454
+ {
1455
+ "internalType": "uint256",
1456
+ "name": "amount",
1457
+ "type": "uint256"
1458
+ }
1459
+ ],
1460
+ "internalType": "struct LibCoinVending.TransactionProperties",
1461
+ "name": "lock",
1462
+ "type": "tuple"
1463
+ },
1464
+ {
1465
+ "components": [
1466
+ {
1467
+ "internalType": "bytes",
1468
+ "name": "data",
1469
+ "type": "bytes"
1470
+ },
1471
+ {
1472
+ "internalType": "uint256",
1473
+ "name": "amount",
1474
+ "type": "uint256"
1475
+ }
1476
+ ],
1477
+ "internalType": "struct LibCoinVending.TransactionProperties",
1478
+ "name": "burn",
1479
+ "type": "tuple"
1480
+ },
1481
+ {
1482
+ "components": [
1483
+ {
1484
+ "internalType": "bytes",
1485
+ "name": "data",
1486
+ "type": "bytes"
1487
+ },
1488
+ {
1489
+ "internalType": "uint256",
1490
+ "name": "amount",
1491
+ "type": "uint256"
1492
+ }
1493
+ ],
1494
+ "internalType": "struct LibCoinVending.TransactionProperties",
1495
+ "name": "pay",
1496
+ "type": "tuple"
1497
+ },
1498
+ {
1499
+ "components": [
1500
+ {
1501
+ "internalType": "bytes",
1502
+ "name": "data",
1503
+ "type": "bytes"
1504
+ },
1505
+ {
1506
+ "internalType": "uint256",
1507
+ "name": "amount",
1508
+ "type": "uint256"
1509
+ }
1510
+ ],
1511
+ "internalType": "struct LibCoinVending.TransactionProperties",
1512
+ "name": "bet",
1513
+ "type": "tuple"
1514
+ }
1515
+ ],
1516
+ "internalType": "struct LibCoinVending.ContractCondition",
1517
+ "name": "contractRequirement",
1518
+ "type": "tuple"
1519
+ }
1520
+ ],
1521
+ "internalType": "struct LibCoinVending.configSmartRequirement[]",
1522
+ "name": "contracts",
1523
+ "type": "tuple[]"
1524
+ }
1525
+ ],
1526
+ "internalType": "struct LibCoinVending.ConfigPosition",
1527
+ "name": "config",
1528
+ "type": "tuple"
1529
+ }
1530
+ ],
1531
+ "name": "setJoinRequirements",
1532
+ "outputs": [],
1533
+ "stateMutability": "nonpayable",
1534
+ "type": "function"
1535
+ },
982
1536
  {
983
1537
  "inputs": [
984
1538
  {