@peeramid-labs/sdk 3.11.1 → 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 +116 -27
  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 +116 -27
  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 +116 -27
  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
@@ -1,31 +1,4 @@
1
1
  export const RankifyInstanceMainFacetAbi = [
2
- {
3
- "inputs": [],
4
- "name": "ECDSAInvalidSignature",
5
- "type": "error"
6
- },
7
- {
8
- "inputs": [
9
- {
10
- "internalType": "uint256",
11
- "name": "length",
12
- "type": "uint256"
13
- }
14
- ],
15
- "name": "ECDSAInvalidSignatureLength",
16
- "type": "error"
17
- },
18
- {
19
- "inputs": [
20
- {
21
- "internalType": "bytes32",
22
- "name": "s",
23
- "type": "bytes32"
24
- }
25
- ],
26
- "name": "ECDSAInvalidSignatureS",
27
- "type": "error"
28
- },
29
2
  {
30
3
  "inputs": [
31
4
  {
@@ -210,6 +183,173 @@ export const RankifyInstanceMainFacetAbi = [
210
183
  "name": "RegistrationOpen",
211
184
  "type": "event"
212
185
  },
186
+ {
187
+ "anonymous": false,
188
+ "inputs": [
189
+ {
190
+ "indexed": true,
191
+ "internalType": "uint256",
192
+ "name": "gameId",
193
+ "type": "uint256"
194
+ },
195
+ {
196
+ "components": [
197
+ {
198
+ "components": [
199
+ {
200
+ "internalType": "uint256",
201
+ "name": "have",
202
+ "type": "uint256"
203
+ },
204
+ {
205
+ "internalType": "uint256",
206
+ "name": "lock",
207
+ "type": "uint256"
208
+ },
209
+ {
210
+ "internalType": "uint256",
211
+ "name": "burn",
212
+ "type": "uint256"
213
+ },
214
+ {
215
+ "internalType": "uint256",
216
+ "name": "pay",
217
+ "type": "uint256"
218
+ },
219
+ {
220
+ "internalType": "uint256",
221
+ "name": "bet",
222
+ "type": "uint256"
223
+ }
224
+ ],
225
+ "internalType": "struct LibCoinVending.NumericCondition",
226
+ "name": "ethValues",
227
+ "type": "tuple"
228
+ },
229
+ {
230
+ "components": [
231
+ {
232
+ "internalType": "address",
233
+ "name": "contractAddress",
234
+ "type": "address"
235
+ },
236
+ {
237
+ "internalType": "uint256",
238
+ "name": "contractId",
239
+ "type": "uint256"
240
+ },
241
+ {
242
+ "internalType": "enum LibCoinVending.ContractTypes",
243
+ "name": "contractType",
244
+ "type": "uint8"
245
+ },
246
+ {
247
+ "components": [
248
+ {
249
+ "components": [
250
+ {
251
+ "internalType": "bytes",
252
+ "name": "data",
253
+ "type": "bytes"
254
+ },
255
+ {
256
+ "internalType": "uint256",
257
+ "name": "amount",
258
+ "type": "uint256"
259
+ }
260
+ ],
261
+ "internalType": "struct LibCoinVending.TransactionProperties",
262
+ "name": "have",
263
+ "type": "tuple"
264
+ },
265
+ {
266
+ "components": [
267
+ {
268
+ "internalType": "bytes",
269
+ "name": "data",
270
+ "type": "bytes"
271
+ },
272
+ {
273
+ "internalType": "uint256",
274
+ "name": "amount",
275
+ "type": "uint256"
276
+ }
277
+ ],
278
+ "internalType": "struct LibCoinVending.TransactionProperties",
279
+ "name": "lock",
280
+ "type": "tuple"
281
+ },
282
+ {
283
+ "components": [
284
+ {
285
+ "internalType": "bytes",
286
+ "name": "data",
287
+ "type": "bytes"
288
+ },
289
+ {
290
+ "internalType": "uint256",
291
+ "name": "amount",
292
+ "type": "uint256"
293
+ }
294
+ ],
295
+ "internalType": "struct LibCoinVending.TransactionProperties",
296
+ "name": "burn",
297
+ "type": "tuple"
298
+ },
299
+ {
300
+ "components": [
301
+ {
302
+ "internalType": "bytes",
303
+ "name": "data",
304
+ "type": "bytes"
305
+ },
306
+ {
307
+ "internalType": "uint256",
308
+ "name": "amount",
309
+ "type": "uint256"
310
+ }
311
+ ],
312
+ "internalType": "struct LibCoinVending.TransactionProperties",
313
+ "name": "pay",
314
+ "type": "tuple"
315
+ },
316
+ {
317
+ "components": [
318
+ {
319
+ "internalType": "bytes",
320
+ "name": "data",
321
+ "type": "bytes"
322
+ },
323
+ {
324
+ "internalType": "uint256",
325
+ "name": "amount",
326
+ "type": "uint256"
327
+ }
328
+ ],
329
+ "internalType": "struct LibCoinVending.TransactionProperties",
330
+ "name": "bet",
331
+ "type": "tuple"
332
+ }
333
+ ],
334
+ "internalType": "struct LibCoinVending.ContractCondition",
335
+ "name": "contractRequirement",
336
+ "type": "tuple"
337
+ }
338
+ ],
339
+ "internalType": "struct LibCoinVending.configSmartRequirement[]",
340
+ "name": "contracts",
341
+ "type": "tuple[]"
342
+ }
343
+ ],
344
+ "indexed": false,
345
+ "internalType": "struct LibCoinVending.ConfigPosition",
346
+ "name": "config",
347
+ "type": "tuple"
348
+ }
349
+ ],
350
+ "name": "RequirementsConfigured",
351
+ "type": "event"
352
+ },
213
353
  {
214
354
  "anonymous": false,
215
355
  "inputs": [
@@ -350,13 +490,237 @@ export const RankifyInstanceMainFacetAbi = [
350
490
  "internalType": "struct IRankifyInstance.NewGameParamsInput",
351
491
  "name": "params",
352
492
  "type": "tuple"
493
+ },
494
+ {
495
+ "components": [
496
+ {
497
+ "components": [
498
+ {
499
+ "internalType": "uint256",
500
+ "name": "have",
501
+ "type": "uint256"
502
+ },
503
+ {
504
+ "internalType": "uint256",
505
+ "name": "lock",
506
+ "type": "uint256"
507
+ },
508
+ {
509
+ "internalType": "uint256",
510
+ "name": "burn",
511
+ "type": "uint256"
512
+ },
513
+ {
514
+ "internalType": "uint256",
515
+ "name": "pay",
516
+ "type": "uint256"
517
+ },
518
+ {
519
+ "internalType": "uint256",
520
+ "name": "bet",
521
+ "type": "uint256"
522
+ }
523
+ ],
524
+ "internalType": "struct LibCoinVending.NumericCondition",
525
+ "name": "ethValues",
526
+ "type": "tuple"
527
+ },
528
+ {
529
+ "components": [
530
+ {
531
+ "internalType": "address",
532
+ "name": "contractAddress",
533
+ "type": "address"
534
+ },
535
+ {
536
+ "internalType": "uint256",
537
+ "name": "contractId",
538
+ "type": "uint256"
539
+ },
540
+ {
541
+ "internalType": "enum LibCoinVending.ContractTypes",
542
+ "name": "contractType",
543
+ "type": "uint8"
544
+ },
545
+ {
546
+ "components": [
547
+ {
548
+ "components": [
549
+ {
550
+ "internalType": "bytes",
551
+ "name": "data",
552
+ "type": "bytes"
553
+ },
554
+ {
555
+ "internalType": "uint256",
556
+ "name": "amount",
557
+ "type": "uint256"
558
+ }
559
+ ],
560
+ "internalType": "struct LibCoinVending.TransactionProperties",
561
+ "name": "have",
562
+ "type": "tuple"
563
+ },
564
+ {
565
+ "components": [
566
+ {
567
+ "internalType": "bytes",
568
+ "name": "data",
569
+ "type": "bytes"
570
+ },
571
+ {
572
+ "internalType": "uint256",
573
+ "name": "amount",
574
+ "type": "uint256"
575
+ }
576
+ ],
577
+ "internalType": "struct LibCoinVending.TransactionProperties",
578
+ "name": "lock",
579
+ "type": "tuple"
580
+ },
581
+ {
582
+ "components": [
583
+ {
584
+ "internalType": "bytes",
585
+ "name": "data",
586
+ "type": "bytes"
587
+ },
588
+ {
589
+ "internalType": "uint256",
590
+ "name": "amount",
591
+ "type": "uint256"
592
+ }
593
+ ],
594
+ "internalType": "struct LibCoinVending.TransactionProperties",
595
+ "name": "burn",
596
+ "type": "tuple"
597
+ },
598
+ {
599
+ "components": [
600
+ {
601
+ "internalType": "bytes",
602
+ "name": "data",
603
+ "type": "bytes"
604
+ },
605
+ {
606
+ "internalType": "uint256",
607
+ "name": "amount",
608
+ "type": "uint256"
609
+ }
610
+ ],
611
+ "internalType": "struct LibCoinVending.TransactionProperties",
612
+ "name": "pay",
613
+ "type": "tuple"
614
+ },
615
+ {
616
+ "components": [
617
+ {
618
+ "internalType": "bytes",
619
+ "name": "data",
620
+ "type": "bytes"
621
+ },
622
+ {
623
+ "internalType": "uint256",
624
+ "name": "amount",
625
+ "type": "uint256"
626
+ }
627
+ ],
628
+ "internalType": "struct LibCoinVending.TransactionProperties",
629
+ "name": "bet",
630
+ "type": "tuple"
631
+ }
632
+ ],
633
+ "internalType": "struct LibCoinVending.ContractCondition",
634
+ "name": "contractRequirement",
635
+ "type": "tuple"
636
+ }
637
+ ],
638
+ "internalType": "struct LibCoinVending.configSmartRequirement[]",
639
+ "name": "contracts",
640
+ "type": "tuple[]"
641
+ }
642
+ ],
643
+ "internalType": "struct LibCoinVending.ConfigPosition",
644
+ "name": "requirements",
645
+ "type": "tuple"
353
646
  }
354
647
  ],
355
- "name": "createGame",
648
+ "name": "createAndOpenGame",
356
649
  "outputs": [],
357
650
  "stateMutability": "nonpayable",
358
651
  "type": "function"
359
652
  },
653
+ {
654
+ "inputs": [
655
+ {
656
+ "components": [
657
+ {
658
+ "internalType": "uint256",
659
+ "name": "gameRank",
660
+ "type": "uint256"
661
+ },
662
+ {
663
+ "internalType": "uint256",
664
+ "name": "minPlayerCnt",
665
+ "type": "uint256"
666
+ },
667
+ {
668
+ "internalType": "uint256",
669
+ "name": "maxPlayerCnt",
670
+ "type": "uint256"
671
+ },
672
+ {
673
+ "internalType": "uint96",
674
+ "name": "nTurns",
675
+ "type": "uint96"
676
+ },
677
+ {
678
+ "internalType": "uint256",
679
+ "name": "voteCredits",
680
+ "type": "uint256"
681
+ },
682
+ {
683
+ "internalType": "address",
684
+ "name": "gameMaster",
685
+ "type": "address"
686
+ },
687
+ {
688
+ "internalType": "uint128",
689
+ "name": "minGameTime",
690
+ "type": "uint128"
691
+ },
692
+ {
693
+ "internalType": "uint128",
694
+ "name": "timePerTurn",
695
+ "type": "uint128"
696
+ },
697
+ {
698
+ "internalType": "uint128",
699
+ "name": "timeToJoin",
700
+ "type": "uint128"
701
+ },
702
+ {
703
+ "internalType": "string",
704
+ "name": "metadata",
705
+ "type": "string"
706
+ }
707
+ ],
708
+ "internalType": "struct IRankifyInstance.NewGameParamsInput",
709
+ "name": "params",
710
+ "type": "tuple"
711
+ }
712
+ ],
713
+ "name": "createGame",
714
+ "outputs": [
715
+ {
716
+ "internalType": "uint256",
717
+ "name": "",
718
+ "type": "uint256"
719
+ }
720
+ ],
721
+ "stateMutability": "nonpayable",
722
+ "type": "function"
723
+ },
360
724
  {
361
725
  "inputs": [
362
726
  {
@@ -603,12 +967,12 @@ export const RankifyInstanceMainFacetAbi = [
603
967
  "type": "address"
604
968
  }
605
969
  ],
606
- "name": "getPlayersGame",
970
+ "name": "getPlayersGames",
607
971
  "outputs": [
608
972
  {
609
- "internalType": "uint256",
973
+ "internalType": "uint256[]",
610
974
  "name": "",
611
- "type": "uint256"
975
+ "type": "uint256[]"
612
976
  }
613
977
  ],
614
978
  "stateMutability": "view",
@@ -762,6 +1126,30 @@ export const RankifyInstanceMainFacetAbi = [
762
1126
  "stateMutability": "view",
763
1127
  "type": "function"
764
1128
  },
1129
+ {
1130
+ "inputs": [
1131
+ {
1132
+ "internalType": "uint256",
1133
+ "name": "gameId",
1134
+ "type": "uint256"
1135
+ },
1136
+ {
1137
+ "internalType": "address",
1138
+ "name": "player",
1139
+ "type": "address"
1140
+ }
1141
+ ],
1142
+ "name": "isPlayerInGame",
1143
+ "outputs": [
1144
+ {
1145
+ "internalType": "bool",
1146
+ "name": "",
1147
+ "type": "bool"
1148
+ }
1149
+ ],
1150
+ "stateMutability": "view",
1151
+ "type": "function"
1152
+ },
765
1153
  {
766
1154
  "inputs": [
767
1155
  {
@@ -976,6 +1364,172 @@ export const RankifyInstanceMainFacetAbi = [
976
1364
  "stateMutability": "nonpayable",
977
1365
  "type": "function"
978
1366
  },
1367
+ {
1368
+ "inputs": [
1369
+ {
1370
+ "internalType": "uint256",
1371
+ "name": "gameId",
1372
+ "type": "uint256"
1373
+ },
1374
+ {
1375
+ "components": [
1376
+ {
1377
+ "components": [
1378
+ {
1379
+ "internalType": "uint256",
1380
+ "name": "have",
1381
+ "type": "uint256"
1382
+ },
1383
+ {
1384
+ "internalType": "uint256",
1385
+ "name": "lock",
1386
+ "type": "uint256"
1387
+ },
1388
+ {
1389
+ "internalType": "uint256",
1390
+ "name": "burn",
1391
+ "type": "uint256"
1392
+ },
1393
+ {
1394
+ "internalType": "uint256",
1395
+ "name": "pay",
1396
+ "type": "uint256"
1397
+ },
1398
+ {
1399
+ "internalType": "uint256",
1400
+ "name": "bet",
1401
+ "type": "uint256"
1402
+ }
1403
+ ],
1404
+ "internalType": "struct LibCoinVending.NumericCondition",
1405
+ "name": "ethValues",
1406
+ "type": "tuple"
1407
+ },
1408
+ {
1409
+ "components": [
1410
+ {
1411
+ "internalType": "address",
1412
+ "name": "contractAddress",
1413
+ "type": "address"
1414
+ },
1415
+ {
1416
+ "internalType": "uint256",
1417
+ "name": "contractId",
1418
+ "type": "uint256"
1419
+ },
1420
+ {
1421
+ "internalType": "enum LibCoinVending.ContractTypes",
1422
+ "name": "contractType",
1423
+ "type": "uint8"
1424
+ },
1425
+ {
1426
+ "components": [
1427
+ {
1428
+ "components": [
1429
+ {
1430
+ "internalType": "bytes",
1431
+ "name": "data",
1432
+ "type": "bytes"
1433
+ },
1434
+ {
1435
+ "internalType": "uint256",
1436
+ "name": "amount",
1437
+ "type": "uint256"
1438
+ }
1439
+ ],
1440
+ "internalType": "struct LibCoinVending.TransactionProperties",
1441
+ "name": "have",
1442
+ "type": "tuple"
1443
+ },
1444
+ {
1445
+ "components": [
1446
+ {
1447
+ "internalType": "bytes",
1448
+ "name": "data",
1449
+ "type": "bytes"
1450
+ },
1451
+ {
1452
+ "internalType": "uint256",
1453
+ "name": "amount",
1454
+ "type": "uint256"
1455
+ }
1456
+ ],
1457
+ "internalType": "struct LibCoinVending.TransactionProperties",
1458
+ "name": "lock",
1459
+ "type": "tuple"
1460
+ },
1461
+ {
1462
+ "components": [
1463
+ {
1464
+ "internalType": "bytes",
1465
+ "name": "data",
1466
+ "type": "bytes"
1467
+ },
1468
+ {
1469
+ "internalType": "uint256",
1470
+ "name": "amount",
1471
+ "type": "uint256"
1472
+ }
1473
+ ],
1474
+ "internalType": "struct LibCoinVending.TransactionProperties",
1475
+ "name": "burn",
1476
+ "type": "tuple"
1477
+ },
1478
+ {
1479
+ "components": [
1480
+ {
1481
+ "internalType": "bytes",
1482
+ "name": "data",
1483
+ "type": "bytes"
1484
+ },
1485
+ {
1486
+ "internalType": "uint256",
1487
+ "name": "amount",
1488
+ "type": "uint256"
1489
+ }
1490
+ ],
1491
+ "internalType": "struct LibCoinVending.TransactionProperties",
1492
+ "name": "pay",
1493
+ "type": "tuple"
1494
+ },
1495
+ {
1496
+ "components": [
1497
+ {
1498
+ "internalType": "bytes",
1499
+ "name": "data",
1500
+ "type": "bytes"
1501
+ },
1502
+ {
1503
+ "internalType": "uint256",
1504
+ "name": "amount",
1505
+ "type": "uint256"
1506
+ }
1507
+ ],
1508
+ "internalType": "struct LibCoinVending.TransactionProperties",
1509
+ "name": "bet",
1510
+ "type": "tuple"
1511
+ }
1512
+ ],
1513
+ "internalType": "struct LibCoinVending.ContractCondition",
1514
+ "name": "contractRequirement",
1515
+ "type": "tuple"
1516
+ }
1517
+ ],
1518
+ "internalType": "struct LibCoinVending.configSmartRequirement[]",
1519
+ "name": "contracts",
1520
+ "type": "tuple[]"
1521
+ }
1522
+ ],
1523
+ "internalType": "struct LibCoinVending.ConfigPosition",
1524
+ "name": "config",
1525
+ "type": "tuple"
1526
+ }
1527
+ ],
1528
+ "name": "setJoinRequirements",
1529
+ "outputs": [],
1530
+ "stateMutability": "nonpayable",
1531
+ "type": "function"
1532
+ },
979
1533
  {
980
1534
  "inputs": [
981
1535
  {