@stage5/lumine 0.2.76 → 0.2.79
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 +4 -0
- package/lib/admin.js +404 -87
- package/lib/commands.js +24 -4
- package/lib/constants.js +13 -4
- package/lib/rewards.js +46 -13
- package/lib/sdk.js +10 -2
- package/package.json +1 -1
- package/sdk/BUILD_SDK_INDEX.md +17 -11
- package/sdk/LUMINE_ADMIN.md +81 -21
package/README.md
CHANGED
|
@@ -167,6 +167,10 @@ rewards.getStatus '{}' --build <id>` is read-only and works without
|
|
|
167
167
|
`--allow-write` (the endpoint accepts only the `rewards:claim` scope, which is
|
|
168
168
|
minted for it as a deliberate exception to the read-only rule, but only the
|
|
169
169
|
status operation is sent).
|
|
170
|
+
`rewards.getReceipt '{"challengeId":"..."}'` is also read-only: it checks
|
|
171
|
+
the exact receipt after an interrupted claim, including earlier days or
|
|
172
|
+
approved versions, without awarding again. It requires the current published
|
|
173
|
+
runtime grant and returns canonical balances with the receipt status.
|
|
170
174
|
`rewards.start '{"ruleId":"..."}'` and
|
|
171
175
|
`rewards.claim '{"challengeId":"...","answers":[1,2]}'` mutate real XP/Coins
|
|
172
176
|
state and require `--allow-write`. Every rewards call first reads the
|