@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.
- package/README.md +7 -0
- package/cli/abis/IRankifyInstance.js +167 -0
- package/cli/abis/IRankifyInstance.js.map +1 -1
- package/cli/abis/LibRankify.js +298 -0
- package/cli/abis/LibRankify.js.map +1 -0
- package/cli/abis/MAODistribution.js +30 -10
- package/cli/abis/MAODistribution.js.map +1 -1
- package/cli/abis/RankifyDiamondInstance.js +442 -242
- package/cli/abis/RankifyDiamondInstance.js.map +1 -1
- package/cli/abis/RankifyInstanceGameMastersFacet.js +0 -21
- package/cli/abis/RankifyInstanceGameMastersFacet.js.map +1 -1
- package/cli/abis/RankifyInstanceMainFacet.js +585 -31
- package/cli/abis/RankifyInstanceMainFacet.js.map +1 -1
- package/cli/abis/RankifyInstanceRequirementsFacet.js +0 -333
- package/cli/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
- package/cli/abis/index.js +6 -2
- package/cli/abis/index.js.map +1 -1
- package/cli/abis/superinterface.js +32 -18
- package/cli/abis/superinterface.js.map +1 -1
- package/cli/cli/commands/blockchain/index.js +1 -3
- package/cli/cli/commands/blockchain/index.js.map +1 -1
- package/cli/cli/commands/blockchain/mine.js.map +1 -1
- package/cli/cli/commands/distributions/add.js.map +1 -1
- package/cli/cli/commands/distributions/list.js.map +1 -1
- package/cli/cli/commands/distributions/remove.js.map +1 -1
- package/cli/cli/commands/distributions/state.js.map +1 -1
- package/cli/cli/commands/fellowship/create.js +9 -2
- package/cli/cli/commands/fellowship/create.js.map +1 -1
- package/cli/cli/commands/fellowship/eip712.js.map +1 -1
- package/cli/cli/commands/fellowship/game/cancel.js.map +1 -1
- package/cli/cli/commands/fellowship/game/create.js +15 -22
- package/cli/cli/commands/fellowship/game/create.js.map +1 -1
- package/cli/cli/commands/fellowship/game/end-turn.js.map +1 -1
- package/cli/cli/commands/fellowship/game/join.js +1 -1
- package/cli/cli/commands/fellowship/game/join.js.map +1 -1
- package/cli/cli/commands/fellowship/game/list.js.map +1 -1
- package/cli/cli/commands/fellowship/game/propose.js +1 -1
- package/cli/cli/commands/fellowship/game/propose.js.map +1 -1
- package/cli/cli/commands/fellowship/game/start.js.map +1 -1
- package/cli/cli/commands/fellowship/game/vote.js.map +1 -1
- package/cli/cli/commands/fellowship/list.js.map +1 -1
- package/cli/cli/commands/fellowship/params.js.map +1 -1
- package/cli/cli/commands/getPk.js.map +1 -1
- package/cli/cli/commands/instances/list.js.map +1 -1
- package/cli/cli/commands/playbook.js +5 -4
- package/cli/cli/commands/playbook.js.map +1 -1
- package/cli/cli/commands/rankify/games.js.map +1 -1
- package/cli/cli/getPk.js +2 -2
- package/cli/cli/getPk.js.map +1 -1
- package/cli/cli/utils.js +1 -1
- package/cli/eds/Distributor.js +1 -1
- package/cli/eds/Distributor.js.map +1 -1
- package/cli/rankify/GameMaster.js +116 -27
- package/cli/rankify/GameMaster.js.map +1 -1
- package/cli/rankify/InstanceBase.js +33 -12
- package/cli/rankify/InstanceBase.js.map +1 -1
- package/cli/rankify/MAODistributor.js +56 -3
- package/cli/rankify/MAODistributor.js.map +1 -1
- package/cli/rankify/Player.js +40 -1
- package/cli/rankify/Player.js.map +1 -1
- package/cli/utils/ApiError.js +1 -1
- package/cli/utils/ApiError.js.map +1 -1
- package/cli/utils/EnvioGraphQLClient.js +9 -9
- package/cli/utils/EnvioGraphQLClient.js.map +1 -1
- package/cli/utils/blockchain.js +3 -3
- package/docs/classes/InstanceBase.md +26 -4
- package/docs/classes/InstancePlayer.md +70 -5
- package/docs/classes/MAODistributorClient.md +63 -2
- package/docs/docs/classes/InstanceBase.md +26 -4
- package/docs/docs/classes/InstancePlayer.md +70 -5
- package/docs/docs/classes/MAODistributorClient.md +63 -2
- package/docs/docs/index.md +13 -8
- package/docs/index.md +13 -8
- package/lib.commonjs/abis/IRankifyInstance.d.ts +128 -0
- package/lib.commonjs/abis/IRankifyInstance.d.ts.map +1 -1
- package/lib.commonjs/abis/IRankifyInstance.js +167 -0
- package/lib.commonjs/abis/IRankifyInstance.js.map +1 -1
- package/lib.commonjs/abis/LibRankify.d.ts +226 -0
- package/lib.commonjs/abis/LibRankify.d.ts.map +1 -0
- package/lib.commonjs/abis/LibRankify.js +298 -0
- package/lib.commonjs/abis/LibRankify.js.map +1 -0
- package/lib.commonjs/abis/MAODistribution.d.ts +24 -8
- package/lib.commonjs/abis/MAODistribution.d.ts.map +1 -1
- package/lib.commonjs/abis/MAODistribution.js +30 -10
- package/lib.commonjs/abis/MAODistribution.js.map +1 -1
- package/lib.commonjs/abis/RankifyDiamondInstance.d.ts +340 -186
- package/lib.commonjs/abis/RankifyDiamondInstance.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyDiamondInstance.js +442 -242
- package/lib.commonjs/abis/RankifyDiamondInstance.js.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.d.ts +0 -16
- package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.js +0 -21
- package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.js.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts +449 -24
- package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceMainFacet.js +585 -31
- package/lib.commonjs/abis/RankifyInstanceMainFacet.js.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.d.ts +0 -255
- package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.js +0 -333
- package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
- package/lib.commonjs/abis/index.d.ts +1133 -456
- package/lib.commonjs/abis/index.d.ts.map +1 -1
- package/lib.commonjs/abis/index.js +6 -2
- package/lib.commonjs/abis/index.js.map +1 -1
- package/lib.commonjs/abis/superinterface.d.ts +1 -1
- package/lib.commonjs/abis/superinterface.d.ts.map +1 -1
- package/lib.commonjs/abis/superinterface.js +32 -18
- package/lib.commonjs/abis/superinterface.js.map +1 -1
- package/lib.commonjs/eds/Distributor.d.ts.map +1 -1
- package/lib.commonjs/eds/Distributor.js +1 -1
- package/lib.commonjs/eds/Distributor.js.map +1 -1
- package/lib.commonjs/rankify/GameMaster.d.ts.map +1 -1
- package/lib.commonjs/rankify/GameMaster.js +116 -27
- package/lib.commonjs/rankify/GameMaster.js.map +1 -1
- package/lib.commonjs/rankify/InstanceBase.d.ts +8 -1
- package/lib.commonjs/rankify/InstanceBase.d.ts.map +1 -1
- package/lib.commonjs/rankify/InstanceBase.js +33 -12
- package/lib.commonjs/rankify/InstanceBase.js.map +1 -1
- package/lib.commonjs/rankify/MAODistributor.d.ts +69 -1
- package/lib.commonjs/rankify/MAODistributor.d.ts.map +1 -1
- package/lib.commonjs/rankify/MAODistributor.js +56 -3
- package/lib.commonjs/rankify/MAODistributor.js.map +1 -1
- package/lib.commonjs/rankify/Player.d.ts +53 -0
- package/lib.commonjs/rankify/Player.d.ts.map +1 -1
- package/lib.commonjs/rankify/Player.js +40 -1
- package/lib.commonjs/rankify/Player.js.map +1 -1
- package/lib.commonjs/utils/ApiError.js +1 -1
- package/lib.commonjs/utils/ApiError.js.map +1 -1
- package/lib.commonjs/utils/EnvioGraphQLClient.d.ts +1 -1
- package/lib.commonjs/utils/EnvioGraphQLClient.d.ts.map +1 -1
- package/lib.commonjs/utils/EnvioGraphQLClient.js +9 -9
- package/lib.commonjs/utils/EnvioGraphQLClient.js.map +1 -1
- package/lib.commonjs/utils/blockchain.js +3 -3
- package/lib.commonjs/utils/mockUtils.d.ts.map +1 -1
- package/lib.commonjs/utils/mockUtils.js +1 -1
- package/lib.commonjs/utils/mockUtils.js.map +1 -1
- package/lib.esm/abis/IRankifyInstance.d.ts +128 -0
- package/lib.esm/abis/IRankifyInstance.d.ts.map +1 -1
- package/lib.esm/abis/IRankifyInstance.js +167 -0
- package/lib.esm/abis/IRankifyInstance.js.map +1 -1
- package/lib.esm/abis/LibRankify.d.ts +226 -0
- package/lib.esm/abis/LibRankify.d.ts.map +1 -0
- package/lib.esm/abis/LibRankify.js +295 -0
- package/lib.esm/abis/LibRankify.js.map +1 -0
- package/lib.esm/abis/MAODistribution.d.ts +24 -8
- package/lib.esm/abis/MAODistribution.d.ts.map +1 -1
- package/lib.esm/abis/MAODistribution.js +30 -10
- package/lib.esm/abis/MAODistribution.js.map +1 -1
- package/lib.esm/abis/RankifyDiamondInstance.d.ts +340 -186
- package/lib.esm/abis/RankifyDiamondInstance.d.ts.map +1 -1
- package/lib.esm/abis/RankifyDiamondInstance.js +442 -242
- package/lib.esm/abis/RankifyDiamondInstance.js.map +1 -1
- package/lib.esm/abis/RankifyInstanceGameMastersFacet.d.ts +0 -16
- package/lib.esm/abis/RankifyInstanceGameMastersFacet.d.ts.map +1 -1
- package/lib.esm/abis/RankifyInstanceGameMastersFacet.js +0 -21
- package/lib.esm/abis/RankifyInstanceGameMastersFacet.js.map +1 -1
- package/lib.esm/abis/RankifyInstanceMainFacet.d.ts +449 -24
- package/lib.esm/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
- package/lib.esm/abis/RankifyInstanceMainFacet.js +585 -31
- package/lib.esm/abis/RankifyInstanceMainFacet.js.map +1 -1
- package/lib.esm/abis/RankifyInstanceRequirementsFacet.d.ts +0 -255
- package/lib.esm/abis/RankifyInstanceRequirementsFacet.d.ts.map +1 -1
- package/lib.esm/abis/RankifyInstanceRequirementsFacet.js +0 -333
- package/lib.esm/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
- package/lib.esm/abis/index.d.ts +1133 -456
- package/lib.esm/abis/index.d.ts.map +1 -1
- package/lib.esm/abis/index.js +3 -0
- package/lib.esm/abis/index.js.map +1 -1
- package/lib.esm/abis/superinterface.d.ts +1 -1
- package/lib.esm/abis/superinterface.d.ts.map +1 -1
- package/lib.esm/abis/superinterface.js +32 -18
- package/lib.esm/abis/superinterface.js.map +1 -1
- package/lib.esm/eds/Distributor.d.ts.map +1 -1
- package/lib.esm/eds/Distributor.js +1 -1
- package/lib.esm/eds/Distributor.js.map +1 -1
- package/lib.esm/rankify/GameMaster.d.ts.map +1 -1
- package/lib.esm/rankify/GameMaster.js +116 -27
- package/lib.esm/rankify/GameMaster.js.map +1 -1
- package/lib.esm/rankify/InstanceBase.d.ts +8 -1
- package/lib.esm/rankify/InstanceBase.d.ts.map +1 -1
- package/lib.esm/rankify/InstanceBase.js +33 -12
- package/lib.esm/rankify/InstanceBase.js.map +1 -1
- package/lib.esm/rankify/MAODistributor.d.ts +69 -1
- package/lib.esm/rankify/MAODistributor.d.ts.map +1 -1
- package/lib.esm/rankify/MAODistributor.js +56 -3
- package/lib.esm/rankify/MAODistributor.js.map +1 -1
- package/lib.esm/rankify/Player.d.ts +53 -0
- package/lib.esm/rankify/Player.d.ts.map +1 -1
- package/lib.esm/rankify/Player.js +40 -1
- package/lib.esm/rankify/Player.js.map +1 -1
- package/lib.esm/utils/ApiError.js +1 -1
- package/lib.esm/utils/ApiError.js.map +1 -1
- package/lib.esm/utils/EnvioGraphQLClient.d.ts +1 -1
- package/lib.esm/utils/EnvioGraphQLClient.d.ts.map +1 -1
- package/lib.esm/utils/EnvioGraphQLClient.js +9 -9
- package/lib.esm/utils/EnvioGraphQLClient.js.map +1 -1
- package/lib.esm/utils/blockchain.js +3 -3
- package/lib.esm/utils/mockUtils.d.ts.map +1 -1
- package/lib.esm/utils/mockUtils.js +1 -1
- package/lib.esm/utils/mockUtils.js.map +1 -1
- 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": "
|
|
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": "
|
|
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
|
{
|