@triadxyz/poseidons-protocol 0.1.8 → 0.2.0
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/dist/game/chest.js
CHANGED
|
@@ -39,7 +39,7 @@ class Chest {
|
|
|
39
39
|
getChest(id) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
const chestPDA = (0, pda_1.getChestPDA)(id);
|
|
42
|
-
const chest = yield this.program.account.chest.fetch(chestPDA);
|
|
42
|
+
const chest = yield this.program.account.chest.fetch(chestPDA, this.rpcOptions.commitment);
|
|
43
43
|
return (0, helpers_1.formatChest)(chest, chestPDA);
|
|
44
44
|
});
|
|
45
45
|
}
|
package/dist/index.js
CHANGED
|
@@ -90,7 +90,7 @@ class PoseidonsProtocolClient {
|
|
|
90
90
|
getUser(authority) {
|
|
91
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
92
|
const userPDA = (0, pda_1.getUserPDA)(authority);
|
|
93
|
-
const user = yield this.program.account.user.fetch(userPDA);
|
|
93
|
+
const user = yield this.program.account.user.fetch(userPDA, this.rpcOptions.commitment);
|
|
94
94
|
return (0, helpers_1.formatUser)(user, userPDA);
|
|
95
95
|
});
|
|
96
96
|
}
|
|
@@ -965,6 +965,10 @@
|
|
|
965
965
|
"name": "chest",
|
|
966
966
|
"type": "pubkey"
|
|
967
967
|
},
|
|
968
|
+
{
|
|
969
|
+
"name": "chest_id",
|
|
970
|
+
"type": "u64"
|
|
971
|
+
},
|
|
968
972
|
{
|
|
969
973
|
"name": "coins",
|
|
970
974
|
"type": "u64"
|
|
@@ -1076,6 +1080,10 @@
|
|
|
1076
1080
|
"name": "authority",
|
|
1077
1081
|
"type": "pubkey"
|
|
1078
1082
|
},
|
|
1083
|
+
{
|
|
1084
|
+
"name": "chest_id",
|
|
1085
|
+
"type": "u64"
|
|
1086
|
+
},
|
|
1079
1087
|
{
|
|
1080
1088
|
"name": "price",
|
|
1081
1089
|
"type": "u64"
|
|
@@ -1177,6 +1185,10 @@
|
|
|
1177
1185
|
"name": "last_user",
|
|
1178
1186
|
"type": "pubkey"
|
|
1179
1187
|
},
|
|
1188
|
+
{
|
|
1189
|
+
"name": "chest_id",
|
|
1190
|
+
"type": "u64"
|
|
1191
|
+
},
|
|
1180
1192
|
{
|
|
1181
1193
|
"name": "amount",
|
|
1182
1194
|
"type": "u64"
|
|
@@ -1256,6 +1256,10 @@ export type PoseidonsProtocol = {
|
|
|
1256
1256
|
name: 'chest';
|
|
1257
1257
|
type: 'pubkey';
|
|
1258
1258
|
},
|
|
1259
|
+
{
|
|
1260
|
+
name: 'chestId';
|
|
1261
|
+
type: 'u64';
|
|
1262
|
+
},
|
|
1259
1263
|
{
|
|
1260
1264
|
name: 'coins';
|
|
1261
1265
|
type: 'u64';
|
|
@@ -1367,6 +1371,10 @@ export type PoseidonsProtocol = {
|
|
|
1367
1371
|
name: 'authority';
|
|
1368
1372
|
type: 'pubkey';
|
|
1369
1373
|
},
|
|
1374
|
+
{
|
|
1375
|
+
name: 'chestId';
|
|
1376
|
+
type: 'u64';
|
|
1377
|
+
},
|
|
1370
1378
|
{
|
|
1371
1379
|
name: 'price';
|
|
1372
1380
|
type: 'u64';
|
|
@@ -1468,6 +1476,10 @@ export type PoseidonsProtocol = {
|
|
|
1468
1476
|
name: 'lastUser';
|
|
1469
1477
|
type: 'pubkey';
|
|
1470
1478
|
},
|
|
1479
|
+
{
|
|
1480
|
+
name: 'chestId';
|
|
1481
|
+
type: 'u64';
|
|
1482
|
+
},
|
|
1471
1483
|
{
|
|
1472
1484
|
name: 'amount';
|
|
1473
1485
|
type: 'u64';
|