MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getStatus

Function getStatus

src/lib/secureAdRewardState.js:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12export default {
13 async getStatus() {
14 try {
15 const raw = await execSystem("getRewardStatus");
16 if (!raw) return null;
17 return typeof raw === "string" ? JSON.parse(raw) : raw;
18 } catch (error) {
19 console.warn("Failed to load secure rewarded ad status.", error);
20 return null;
21 }
22 },
23 async redeem(offerId) {
24 try {
25 const raw = await execSystem("redeemReward", [offerId]);

Callers

nothing calls this directly

Calls 1

execSystemFunction · 0.85

Tested by

no test coverage detected