@dubsdotapp/expo 0.5.2 → 0.5.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/dist/index.mjs CHANGED
@@ -540,7 +540,9 @@ var DubsClient = class {
540
540
  transaction: res.transaction,
541
541
  poolId: res.poolId,
542
542
  amount: res.amount,
543
- destination: res.destination
543
+ destination: res.destination,
544
+ gameId: res.gameId,
545
+ gameAddress: res.gameAddress
544
546
  };
545
547
  }
546
548
  async enterArcadePool(poolId, params) {
@@ -578,6 +580,13 @@ var DubsClient = class {
578
580
  );
579
581
  return res.leaderboard;
580
582
  }
583
+ async getArcadeResults(poolId) {
584
+ const res = await this.request(
585
+ "GET",
586
+ `/arcade/pools/${poolId}/results`
587
+ );
588
+ return res.results;
589
+ }
581
590
  async getArcadeEntry(poolId, walletAddress) {
582
591
  const res = await this.request(
583
592
  "GET",
@@ -2713,7 +2722,9 @@ function useEnterArcadePool() {
2713
2722
  console.log("[useEnterArcadePool] Step 3: Confirming with backend...");
2714
2723
  const entry = await client.enterArcadePool(poolId, {
2715
2724
  walletAddress,
2716
- txSignature: signature
2725
+ txSignature: signature,
2726
+ gameId: buildResult.gameId,
2727
+ gameAddress: buildResult.gameAddress
2717
2728
  });
2718
2729
  console.log("[useEnterArcadePool] Step 3 done. Entry recorded.");
2719
2730
  const result = {