@dubsdotapp/expo 0.5.3 → 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.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +3 -1
- package/src/hooks/useEnterArcadePool.ts +3 -1
- package/src/types.ts +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -404,7 +404,9 @@ interface BuildArcadeEntryResult {
|
|
|
404
404
|
transaction: string;
|
|
405
405
|
poolId: string;
|
|
406
406
|
amount: string;
|
|
407
|
-
destination
|
|
407
|
+
destination?: string;
|
|
408
|
+
gameId?: string;
|
|
409
|
+
gameAddress?: string;
|
|
408
410
|
}
|
|
409
411
|
interface EnterArcadePoolResult {
|
|
410
412
|
poolId: string;
|
|
@@ -580,6 +582,8 @@ declare class DubsClient {
|
|
|
580
582
|
enterArcadePool(poolId: number, params: {
|
|
581
583
|
walletAddress: string;
|
|
582
584
|
txSignature: string;
|
|
585
|
+
gameId?: string;
|
|
586
|
+
gameAddress?: string;
|
|
583
587
|
}): Promise<ArcadeEntry>;
|
|
584
588
|
startArcadeAttempt(poolId: number, walletAddress: string): Promise<StartAttemptResult>;
|
|
585
589
|
submitArcadeScore(poolId: number, params: {
|
package/dist/index.d.ts
CHANGED
|
@@ -404,7 +404,9 @@ interface BuildArcadeEntryResult {
|
|
|
404
404
|
transaction: string;
|
|
405
405
|
poolId: string;
|
|
406
406
|
amount: string;
|
|
407
|
-
destination
|
|
407
|
+
destination?: string;
|
|
408
|
+
gameId?: string;
|
|
409
|
+
gameAddress?: string;
|
|
408
410
|
}
|
|
409
411
|
interface EnterArcadePoolResult {
|
|
410
412
|
poolId: string;
|
|
@@ -580,6 +582,8 @@ declare class DubsClient {
|
|
|
580
582
|
enterArcadePool(poolId: number, params: {
|
|
581
583
|
walletAddress: string;
|
|
582
584
|
txSignature: string;
|
|
585
|
+
gameId?: string;
|
|
586
|
+
gameAddress?: string;
|
|
583
587
|
}): Promise<ArcadeEntry>;
|
|
584
588
|
startArcadeAttempt(poolId: number, walletAddress: string): Promise<StartAttemptResult>;
|
|
585
589
|
submitArcadeScore(poolId: number, params: {
|
package/dist/index.js
CHANGED
|
@@ -624,7 +624,9 @@ var DubsClient = class {
|
|
|
624
624
|
transaction: res.transaction,
|
|
625
625
|
poolId: res.poolId,
|
|
626
626
|
amount: res.amount,
|
|
627
|
-
destination: res.destination
|
|
627
|
+
destination: res.destination,
|
|
628
|
+
gameId: res.gameId,
|
|
629
|
+
gameAddress: res.gameAddress
|
|
628
630
|
};
|
|
629
631
|
}
|
|
630
632
|
async enterArcadePool(poolId, params) {
|
|
@@ -2784,7 +2786,9 @@ function useEnterArcadePool() {
|
|
|
2784
2786
|
console.log("[useEnterArcadePool] Step 3: Confirming with backend...");
|
|
2785
2787
|
const entry = await client.enterArcadePool(poolId, {
|
|
2786
2788
|
walletAddress,
|
|
2787
|
-
txSignature: signature
|
|
2789
|
+
txSignature: signature,
|
|
2790
|
+
gameId: buildResult.gameId,
|
|
2791
|
+
gameAddress: buildResult.gameAddress
|
|
2788
2792
|
});
|
|
2789
2793
|
console.log("[useEnterArcadePool] Step 3 done. Entry recorded.");
|
|
2790
2794
|
const result = {
|