@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.
- 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 +117 -28
- 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 +117 -28
- 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 +117 -28
- 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,24 +1,4 @@
|
|
|
1
1
|
export declare const RankifyInstanceMainFacetAbi: readonly [{
|
|
2
|
-
readonly inputs: readonly [];
|
|
3
|
-
readonly name: "ECDSAInvalidSignature";
|
|
4
|
-
readonly type: "error";
|
|
5
|
-
}, {
|
|
6
|
-
readonly inputs: readonly [{
|
|
7
|
-
readonly internalType: "uint256";
|
|
8
|
-
readonly name: "length";
|
|
9
|
-
readonly type: "uint256";
|
|
10
|
-
}];
|
|
11
|
-
readonly name: "ECDSAInvalidSignatureLength";
|
|
12
|
-
readonly type: "error";
|
|
13
|
-
}, {
|
|
14
|
-
readonly inputs: readonly [{
|
|
15
|
-
readonly internalType: "bytes32";
|
|
16
|
-
readonly name: "s";
|
|
17
|
-
readonly type: "bytes32";
|
|
18
|
-
}];
|
|
19
|
-
readonly name: "ECDSAInvalidSignatureS";
|
|
20
|
-
readonly type: "error";
|
|
21
|
-
}, {
|
|
22
2
|
readonly inputs: readonly [{
|
|
23
3
|
readonly internalType: "uint256";
|
|
24
4
|
readonly name: "a";
|
|
@@ -161,6 +141,134 @@ export declare const RankifyInstanceMainFacetAbi: readonly [{
|
|
|
161
141
|
}];
|
|
162
142
|
readonly name: "RegistrationOpen";
|
|
163
143
|
readonly type: "event";
|
|
144
|
+
}, {
|
|
145
|
+
readonly anonymous: false;
|
|
146
|
+
readonly inputs: readonly [{
|
|
147
|
+
readonly indexed: true;
|
|
148
|
+
readonly internalType: "uint256";
|
|
149
|
+
readonly name: "gameId";
|
|
150
|
+
readonly type: "uint256";
|
|
151
|
+
}, {
|
|
152
|
+
readonly components: readonly [{
|
|
153
|
+
readonly components: readonly [{
|
|
154
|
+
readonly internalType: "uint256";
|
|
155
|
+
readonly name: "have";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
}, {
|
|
158
|
+
readonly internalType: "uint256";
|
|
159
|
+
readonly name: "lock";
|
|
160
|
+
readonly type: "uint256";
|
|
161
|
+
}, {
|
|
162
|
+
readonly internalType: "uint256";
|
|
163
|
+
readonly name: "burn";
|
|
164
|
+
readonly type: "uint256";
|
|
165
|
+
}, {
|
|
166
|
+
readonly internalType: "uint256";
|
|
167
|
+
readonly name: "pay";
|
|
168
|
+
readonly type: "uint256";
|
|
169
|
+
}, {
|
|
170
|
+
readonly internalType: "uint256";
|
|
171
|
+
readonly name: "bet";
|
|
172
|
+
readonly type: "uint256";
|
|
173
|
+
}];
|
|
174
|
+
readonly internalType: "struct LibCoinVending.NumericCondition";
|
|
175
|
+
readonly name: "ethValues";
|
|
176
|
+
readonly type: "tuple";
|
|
177
|
+
}, {
|
|
178
|
+
readonly components: readonly [{
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly name: "contractAddress";
|
|
181
|
+
readonly type: "address";
|
|
182
|
+
}, {
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
readonly name: "contractId";
|
|
185
|
+
readonly type: "uint256";
|
|
186
|
+
}, {
|
|
187
|
+
readonly internalType: "enum LibCoinVending.ContractTypes";
|
|
188
|
+
readonly name: "contractType";
|
|
189
|
+
readonly type: "uint8";
|
|
190
|
+
}, {
|
|
191
|
+
readonly components: readonly [{
|
|
192
|
+
readonly components: readonly [{
|
|
193
|
+
readonly internalType: "bytes";
|
|
194
|
+
readonly name: "data";
|
|
195
|
+
readonly type: "bytes";
|
|
196
|
+
}, {
|
|
197
|
+
readonly internalType: "uint256";
|
|
198
|
+
readonly name: "amount";
|
|
199
|
+
readonly type: "uint256";
|
|
200
|
+
}];
|
|
201
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
202
|
+
readonly name: "have";
|
|
203
|
+
readonly type: "tuple";
|
|
204
|
+
}, {
|
|
205
|
+
readonly components: readonly [{
|
|
206
|
+
readonly internalType: "bytes";
|
|
207
|
+
readonly name: "data";
|
|
208
|
+
readonly type: "bytes";
|
|
209
|
+
}, {
|
|
210
|
+
readonly internalType: "uint256";
|
|
211
|
+
readonly name: "amount";
|
|
212
|
+
readonly type: "uint256";
|
|
213
|
+
}];
|
|
214
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
215
|
+
readonly name: "lock";
|
|
216
|
+
readonly type: "tuple";
|
|
217
|
+
}, {
|
|
218
|
+
readonly components: readonly [{
|
|
219
|
+
readonly internalType: "bytes";
|
|
220
|
+
readonly name: "data";
|
|
221
|
+
readonly type: "bytes";
|
|
222
|
+
}, {
|
|
223
|
+
readonly internalType: "uint256";
|
|
224
|
+
readonly name: "amount";
|
|
225
|
+
readonly type: "uint256";
|
|
226
|
+
}];
|
|
227
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
228
|
+
readonly name: "burn";
|
|
229
|
+
readonly type: "tuple";
|
|
230
|
+
}, {
|
|
231
|
+
readonly components: readonly [{
|
|
232
|
+
readonly internalType: "bytes";
|
|
233
|
+
readonly name: "data";
|
|
234
|
+
readonly type: "bytes";
|
|
235
|
+
}, {
|
|
236
|
+
readonly internalType: "uint256";
|
|
237
|
+
readonly name: "amount";
|
|
238
|
+
readonly type: "uint256";
|
|
239
|
+
}];
|
|
240
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
241
|
+
readonly name: "pay";
|
|
242
|
+
readonly type: "tuple";
|
|
243
|
+
}, {
|
|
244
|
+
readonly components: readonly [{
|
|
245
|
+
readonly internalType: "bytes";
|
|
246
|
+
readonly name: "data";
|
|
247
|
+
readonly type: "bytes";
|
|
248
|
+
}, {
|
|
249
|
+
readonly internalType: "uint256";
|
|
250
|
+
readonly name: "amount";
|
|
251
|
+
readonly type: "uint256";
|
|
252
|
+
}];
|
|
253
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
254
|
+
readonly name: "bet";
|
|
255
|
+
readonly type: "tuple";
|
|
256
|
+
}];
|
|
257
|
+
readonly internalType: "struct LibCoinVending.ContractCondition";
|
|
258
|
+
readonly name: "contractRequirement";
|
|
259
|
+
readonly type: "tuple";
|
|
260
|
+
}];
|
|
261
|
+
readonly internalType: "struct LibCoinVending.configSmartRequirement[]";
|
|
262
|
+
readonly name: "contracts";
|
|
263
|
+
readonly type: "tuple[]";
|
|
264
|
+
}];
|
|
265
|
+
readonly indexed: false;
|
|
266
|
+
readonly internalType: "struct LibCoinVending.ConfigPosition";
|
|
267
|
+
readonly name: "config";
|
|
268
|
+
readonly type: "tuple";
|
|
269
|
+
}];
|
|
270
|
+
readonly name: "RequirementsConfigured";
|
|
271
|
+
readonly type: "event";
|
|
164
272
|
}, {
|
|
165
273
|
readonly anonymous: false;
|
|
166
274
|
readonly inputs: readonly [{
|
|
@@ -270,11 +378,183 @@ export declare const RankifyInstanceMainFacetAbi: readonly [{
|
|
|
270
378
|
readonly internalType: "struct IRankifyInstance.NewGameParamsInput";
|
|
271
379
|
readonly name: "params";
|
|
272
380
|
readonly type: "tuple";
|
|
381
|
+
}, {
|
|
382
|
+
readonly components: readonly [{
|
|
383
|
+
readonly components: readonly [{
|
|
384
|
+
readonly internalType: "uint256";
|
|
385
|
+
readonly name: "have";
|
|
386
|
+
readonly type: "uint256";
|
|
387
|
+
}, {
|
|
388
|
+
readonly internalType: "uint256";
|
|
389
|
+
readonly name: "lock";
|
|
390
|
+
readonly type: "uint256";
|
|
391
|
+
}, {
|
|
392
|
+
readonly internalType: "uint256";
|
|
393
|
+
readonly name: "burn";
|
|
394
|
+
readonly type: "uint256";
|
|
395
|
+
}, {
|
|
396
|
+
readonly internalType: "uint256";
|
|
397
|
+
readonly name: "pay";
|
|
398
|
+
readonly type: "uint256";
|
|
399
|
+
}, {
|
|
400
|
+
readonly internalType: "uint256";
|
|
401
|
+
readonly name: "bet";
|
|
402
|
+
readonly type: "uint256";
|
|
403
|
+
}];
|
|
404
|
+
readonly internalType: "struct LibCoinVending.NumericCondition";
|
|
405
|
+
readonly name: "ethValues";
|
|
406
|
+
readonly type: "tuple";
|
|
407
|
+
}, {
|
|
408
|
+
readonly components: readonly [{
|
|
409
|
+
readonly internalType: "address";
|
|
410
|
+
readonly name: "contractAddress";
|
|
411
|
+
readonly type: "address";
|
|
412
|
+
}, {
|
|
413
|
+
readonly internalType: "uint256";
|
|
414
|
+
readonly name: "contractId";
|
|
415
|
+
readonly type: "uint256";
|
|
416
|
+
}, {
|
|
417
|
+
readonly internalType: "enum LibCoinVending.ContractTypes";
|
|
418
|
+
readonly name: "contractType";
|
|
419
|
+
readonly type: "uint8";
|
|
420
|
+
}, {
|
|
421
|
+
readonly components: readonly [{
|
|
422
|
+
readonly components: readonly [{
|
|
423
|
+
readonly internalType: "bytes";
|
|
424
|
+
readonly name: "data";
|
|
425
|
+
readonly type: "bytes";
|
|
426
|
+
}, {
|
|
427
|
+
readonly internalType: "uint256";
|
|
428
|
+
readonly name: "amount";
|
|
429
|
+
readonly type: "uint256";
|
|
430
|
+
}];
|
|
431
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
432
|
+
readonly name: "have";
|
|
433
|
+
readonly type: "tuple";
|
|
434
|
+
}, {
|
|
435
|
+
readonly components: readonly [{
|
|
436
|
+
readonly internalType: "bytes";
|
|
437
|
+
readonly name: "data";
|
|
438
|
+
readonly type: "bytes";
|
|
439
|
+
}, {
|
|
440
|
+
readonly internalType: "uint256";
|
|
441
|
+
readonly name: "amount";
|
|
442
|
+
readonly type: "uint256";
|
|
443
|
+
}];
|
|
444
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
445
|
+
readonly name: "lock";
|
|
446
|
+
readonly type: "tuple";
|
|
447
|
+
}, {
|
|
448
|
+
readonly components: readonly [{
|
|
449
|
+
readonly internalType: "bytes";
|
|
450
|
+
readonly name: "data";
|
|
451
|
+
readonly type: "bytes";
|
|
452
|
+
}, {
|
|
453
|
+
readonly internalType: "uint256";
|
|
454
|
+
readonly name: "amount";
|
|
455
|
+
readonly type: "uint256";
|
|
456
|
+
}];
|
|
457
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
458
|
+
readonly name: "burn";
|
|
459
|
+
readonly type: "tuple";
|
|
460
|
+
}, {
|
|
461
|
+
readonly components: readonly [{
|
|
462
|
+
readonly internalType: "bytes";
|
|
463
|
+
readonly name: "data";
|
|
464
|
+
readonly type: "bytes";
|
|
465
|
+
}, {
|
|
466
|
+
readonly internalType: "uint256";
|
|
467
|
+
readonly name: "amount";
|
|
468
|
+
readonly type: "uint256";
|
|
469
|
+
}];
|
|
470
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
471
|
+
readonly name: "pay";
|
|
472
|
+
readonly type: "tuple";
|
|
473
|
+
}, {
|
|
474
|
+
readonly components: readonly [{
|
|
475
|
+
readonly internalType: "bytes";
|
|
476
|
+
readonly name: "data";
|
|
477
|
+
readonly type: "bytes";
|
|
478
|
+
}, {
|
|
479
|
+
readonly internalType: "uint256";
|
|
480
|
+
readonly name: "amount";
|
|
481
|
+
readonly type: "uint256";
|
|
482
|
+
}];
|
|
483
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
484
|
+
readonly name: "bet";
|
|
485
|
+
readonly type: "tuple";
|
|
486
|
+
}];
|
|
487
|
+
readonly internalType: "struct LibCoinVending.ContractCondition";
|
|
488
|
+
readonly name: "contractRequirement";
|
|
489
|
+
readonly type: "tuple";
|
|
490
|
+
}];
|
|
491
|
+
readonly internalType: "struct LibCoinVending.configSmartRequirement[]";
|
|
492
|
+
readonly name: "contracts";
|
|
493
|
+
readonly type: "tuple[]";
|
|
494
|
+
}];
|
|
495
|
+
readonly internalType: "struct LibCoinVending.ConfigPosition";
|
|
496
|
+
readonly name: "requirements";
|
|
497
|
+
readonly type: "tuple";
|
|
273
498
|
}];
|
|
274
|
-
readonly name: "
|
|
499
|
+
readonly name: "createAndOpenGame";
|
|
275
500
|
readonly outputs: readonly [];
|
|
276
501
|
readonly stateMutability: "nonpayable";
|
|
277
502
|
readonly type: "function";
|
|
503
|
+
}, {
|
|
504
|
+
readonly inputs: readonly [{
|
|
505
|
+
readonly components: readonly [{
|
|
506
|
+
readonly internalType: "uint256";
|
|
507
|
+
readonly name: "gameRank";
|
|
508
|
+
readonly type: "uint256";
|
|
509
|
+
}, {
|
|
510
|
+
readonly internalType: "uint256";
|
|
511
|
+
readonly name: "minPlayerCnt";
|
|
512
|
+
readonly type: "uint256";
|
|
513
|
+
}, {
|
|
514
|
+
readonly internalType: "uint256";
|
|
515
|
+
readonly name: "maxPlayerCnt";
|
|
516
|
+
readonly type: "uint256";
|
|
517
|
+
}, {
|
|
518
|
+
readonly internalType: "uint96";
|
|
519
|
+
readonly name: "nTurns";
|
|
520
|
+
readonly type: "uint96";
|
|
521
|
+
}, {
|
|
522
|
+
readonly internalType: "uint256";
|
|
523
|
+
readonly name: "voteCredits";
|
|
524
|
+
readonly type: "uint256";
|
|
525
|
+
}, {
|
|
526
|
+
readonly internalType: "address";
|
|
527
|
+
readonly name: "gameMaster";
|
|
528
|
+
readonly type: "address";
|
|
529
|
+
}, {
|
|
530
|
+
readonly internalType: "uint128";
|
|
531
|
+
readonly name: "minGameTime";
|
|
532
|
+
readonly type: "uint128";
|
|
533
|
+
}, {
|
|
534
|
+
readonly internalType: "uint128";
|
|
535
|
+
readonly name: "timePerTurn";
|
|
536
|
+
readonly type: "uint128";
|
|
537
|
+
}, {
|
|
538
|
+
readonly internalType: "uint128";
|
|
539
|
+
readonly name: "timeToJoin";
|
|
540
|
+
readonly type: "uint128";
|
|
541
|
+
}, {
|
|
542
|
+
readonly internalType: "string";
|
|
543
|
+
readonly name: "metadata";
|
|
544
|
+
readonly type: "string";
|
|
545
|
+
}];
|
|
546
|
+
readonly internalType: "struct IRankifyInstance.NewGameParamsInput";
|
|
547
|
+
readonly name: "params";
|
|
548
|
+
readonly type: "tuple";
|
|
549
|
+
}];
|
|
550
|
+
readonly name: "createGame";
|
|
551
|
+
readonly outputs: readonly [{
|
|
552
|
+
readonly internalType: "uint256";
|
|
553
|
+
readonly name: "";
|
|
554
|
+
readonly type: "uint256";
|
|
555
|
+
}];
|
|
556
|
+
readonly stateMutability: "nonpayable";
|
|
557
|
+
readonly type: "function";
|
|
278
558
|
}, {
|
|
279
559
|
readonly inputs: readonly [{
|
|
280
560
|
readonly internalType: "uint128";
|
|
@@ -461,11 +741,11 @@ export declare const RankifyInstanceMainFacetAbi: readonly [{
|
|
|
461
741
|
readonly name: "player";
|
|
462
742
|
readonly type: "address";
|
|
463
743
|
}];
|
|
464
|
-
readonly name: "
|
|
744
|
+
readonly name: "getPlayersGames";
|
|
465
745
|
readonly outputs: readonly [{
|
|
466
|
-
readonly internalType: "uint256";
|
|
746
|
+
readonly internalType: "uint256[]";
|
|
467
747
|
readonly name: "";
|
|
468
|
-
readonly type: "uint256";
|
|
748
|
+
readonly type: "uint256[]";
|
|
469
749
|
}];
|
|
470
750
|
readonly stateMutability: "view";
|
|
471
751
|
readonly type: "function";
|
|
@@ -579,6 +859,24 @@ export declare const RankifyInstanceMainFacetAbi: readonly [{
|
|
|
579
859
|
}];
|
|
580
860
|
readonly stateMutability: "view";
|
|
581
861
|
readonly type: "function";
|
|
862
|
+
}, {
|
|
863
|
+
readonly inputs: readonly [{
|
|
864
|
+
readonly internalType: "uint256";
|
|
865
|
+
readonly name: "gameId";
|
|
866
|
+
readonly type: "uint256";
|
|
867
|
+
}, {
|
|
868
|
+
readonly internalType: "address";
|
|
869
|
+
readonly name: "player";
|
|
870
|
+
readonly type: "address";
|
|
871
|
+
}];
|
|
872
|
+
readonly name: "isPlayerInGame";
|
|
873
|
+
readonly outputs: readonly [{
|
|
874
|
+
readonly internalType: "bool";
|
|
875
|
+
readonly name: "";
|
|
876
|
+
readonly type: "bool";
|
|
877
|
+
}];
|
|
878
|
+
readonly stateMutability: "view";
|
|
879
|
+
readonly type: "function";
|
|
582
880
|
}, {
|
|
583
881
|
readonly inputs: readonly [{
|
|
584
882
|
readonly internalType: "uint256";
|
|
@@ -743,6 +1041,133 @@ export declare const RankifyInstanceMainFacetAbi: readonly [{
|
|
|
743
1041
|
readonly outputs: readonly [];
|
|
744
1042
|
readonly stateMutability: "nonpayable";
|
|
745
1043
|
readonly type: "function";
|
|
1044
|
+
}, {
|
|
1045
|
+
readonly inputs: readonly [{
|
|
1046
|
+
readonly internalType: "uint256";
|
|
1047
|
+
readonly name: "gameId";
|
|
1048
|
+
readonly type: "uint256";
|
|
1049
|
+
}, {
|
|
1050
|
+
readonly components: readonly [{
|
|
1051
|
+
readonly components: readonly [{
|
|
1052
|
+
readonly internalType: "uint256";
|
|
1053
|
+
readonly name: "have";
|
|
1054
|
+
readonly type: "uint256";
|
|
1055
|
+
}, {
|
|
1056
|
+
readonly internalType: "uint256";
|
|
1057
|
+
readonly name: "lock";
|
|
1058
|
+
readonly type: "uint256";
|
|
1059
|
+
}, {
|
|
1060
|
+
readonly internalType: "uint256";
|
|
1061
|
+
readonly name: "burn";
|
|
1062
|
+
readonly type: "uint256";
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly internalType: "uint256";
|
|
1065
|
+
readonly name: "pay";
|
|
1066
|
+
readonly type: "uint256";
|
|
1067
|
+
}, {
|
|
1068
|
+
readonly internalType: "uint256";
|
|
1069
|
+
readonly name: "bet";
|
|
1070
|
+
readonly type: "uint256";
|
|
1071
|
+
}];
|
|
1072
|
+
readonly internalType: "struct LibCoinVending.NumericCondition";
|
|
1073
|
+
readonly name: "ethValues";
|
|
1074
|
+
readonly type: "tuple";
|
|
1075
|
+
}, {
|
|
1076
|
+
readonly components: readonly [{
|
|
1077
|
+
readonly internalType: "address";
|
|
1078
|
+
readonly name: "contractAddress";
|
|
1079
|
+
readonly type: "address";
|
|
1080
|
+
}, {
|
|
1081
|
+
readonly internalType: "uint256";
|
|
1082
|
+
readonly name: "contractId";
|
|
1083
|
+
readonly type: "uint256";
|
|
1084
|
+
}, {
|
|
1085
|
+
readonly internalType: "enum LibCoinVending.ContractTypes";
|
|
1086
|
+
readonly name: "contractType";
|
|
1087
|
+
readonly type: "uint8";
|
|
1088
|
+
}, {
|
|
1089
|
+
readonly components: readonly [{
|
|
1090
|
+
readonly components: readonly [{
|
|
1091
|
+
readonly internalType: "bytes";
|
|
1092
|
+
readonly name: "data";
|
|
1093
|
+
readonly type: "bytes";
|
|
1094
|
+
}, {
|
|
1095
|
+
readonly internalType: "uint256";
|
|
1096
|
+
readonly name: "amount";
|
|
1097
|
+
readonly type: "uint256";
|
|
1098
|
+
}];
|
|
1099
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
1100
|
+
readonly name: "have";
|
|
1101
|
+
readonly type: "tuple";
|
|
1102
|
+
}, {
|
|
1103
|
+
readonly components: readonly [{
|
|
1104
|
+
readonly internalType: "bytes";
|
|
1105
|
+
readonly name: "data";
|
|
1106
|
+
readonly type: "bytes";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly internalType: "uint256";
|
|
1109
|
+
readonly name: "amount";
|
|
1110
|
+
readonly type: "uint256";
|
|
1111
|
+
}];
|
|
1112
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
1113
|
+
readonly name: "lock";
|
|
1114
|
+
readonly type: "tuple";
|
|
1115
|
+
}, {
|
|
1116
|
+
readonly components: readonly [{
|
|
1117
|
+
readonly internalType: "bytes";
|
|
1118
|
+
readonly name: "data";
|
|
1119
|
+
readonly type: "bytes";
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly internalType: "uint256";
|
|
1122
|
+
readonly name: "amount";
|
|
1123
|
+
readonly type: "uint256";
|
|
1124
|
+
}];
|
|
1125
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
1126
|
+
readonly name: "burn";
|
|
1127
|
+
readonly type: "tuple";
|
|
1128
|
+
}, {
|
|
1129
|
+
readonly components: readonly [{
|
|
1130
|
+
readonly internalType: "bytes";
|
|
1131
|
+
readonly name: "data";
|
|
1132
|
+
readonly type: "bytes";
|
|
1133
|
+
}, {
|
|
1134
|
+
readonly internalType: "uint256";
|
|
1135
|
+
readonly name: "amount";
|
|
1136
|
+
readonly type: "uint256";
|
|
1137
|
+
}];
|
|
1138
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
1139
|
+
readonly name: "pay";
|
|
1140
|
+
readonly type: "tuple";
|
|
1141
|
+
}, {
|
|
1142
|
+
readonly components: readonly [{
|
|
1143
|
+
readonly internalType: "bytes";
|
|
1144
|
+
readonly name: "data";
|
|
1145
|
+
readonly type: "bytes";
|
|
1146
|
+
}, {
|
|
1147
|
+
readonly internalType: "uint256";
|
|
1148
|
+
readonly name: "amount";
|
|
1149
|
+
readonly type: "uint256";
|
|
1150
|
+
}];
|
|
1151
|
+
readonly internalType: "struct LibCoinVending.TransactionProperties";
|
|
1152
|
+
readonly name: "bet";
|
|
1153
|
+
readonly type: "tuple";
|
|
1154
|
+
}];
|
|
1155
|
+
readonly internalType: "struct LibCoinVending.ContractCondition";
|
|
1156
|
+
readonly name: "contractRequirement";
|
|
1157
|
+
readonly type: "tuple";
|
|
1158
|
+
}];
|
|
1159
|
+
readonly internalType: "struct LibCoinVending.configSmartRequirement[]";
|
|
1160
|
+
readonly name: "contracts";
|
|
1161
|
+
readonly type: "tuple[]";
|
|
1162
|
+
}];
|
|
1163
|
+
readonly internalType: "struct LibCoinVending.ConfigPosition";
|
|
1164
|
+
readonly name: "config";
|
|
1165
|
+
readonly type: "tuple";
|
|
1166
|
+
}];
|
|
1167
|
+
readonly name: "setJoinRequirements";
|
|
1168
|
+
readonly outputs: readonly [];
|
|
1169
|
+
readonly stateMutability: "nonpayable";
|
|
1170
|
+
readonly type: "function";
|
|
746
1171
|
}, {
|
|
747
1172
|
readonly inputs: readonly [{
|
|
748
1173
|
readonly internalType: "uint256";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RankifyInstanceMainFacet.d.ts","sourceRoot":"","sources":["../../../src/abis/RankifyInstanceMainFacet.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"RankifyInstanceMainFacet.d.ts","sourceRoot":"","sources":["../../../src/abis/RankifyInstanceMainFacet.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8gD9B,CAAC;AACX,eAAe,2BAA2B,CAAC"}
|