solotto 1.1.3 → 1.1.4
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 +1 -1
- package/package.json +1 -1
- package/solotto.js +1 -1
package/README.md
CHANGED
|
@@ -312,7 +312,7 @@ const result = await lottery.Boost(authority, lotteryId, booster, 1.0, "Good luc
|
|
|
312
312
|
|
|
313
313
|
#### GetBoosters
|
|
314
314
|
|
|
315
|
-
Retrieves boost history by scanning on-chain program logs for boost transactions. Filters out errored and non-finalized transactions
|
|
315
|
+
Retrieves boost history by scanning on-chain program logs for boost transactions. Filters out errored and non-finalized transactions. Can filter by authority, lottery ID, or both, and optionally group results by booster wallet address.
|
|
316
316
|
|
|
317
317
|
```js
|
|
318
318
|
// Get all boosters for a specific lottery
|
package/package.json
CHANGED
package/solotto.js
CHANGED
|
@@ -746,7 +746,7 @@ class Lottery extends EventEmitter {
|
|
|
746
746
|
// Apply filters with safety checks
|
|
747
747
|
const matchesAuthority = authority ? (item.authority && authority.publicKey.toString() === item.authority) : true;
|
|
748
748
|
const matchesLotteryId = lotteryId ? (item.lotteryId !== undefined && lotteryId.toString() === item.lotteryId.toString()) : true;
|
|
749
|
-
if(matchesAuthority && matchesLotteryId
|
|
749
|
+
if(matchesAuthority && matchesLotteryId){
|
|
750
750
|
item.time = init.blockTime;
|
|
751
751
|
item.signature = init.signature;
|
|
752
752
|
result.push(item);
|