Skip to content

Finish Subscriptions to Flare rename and fix runtime defects#2

Open
rawritude wants to merge 1 commit into
reflector-network:masterfrom
rawritude:pr-flare
Open

Finish Subscriptions to Flare rename and fix runtime defects#2
rawritude wants to merge 1 commit into
reflector-network:masterfrom
rawritude:pr-flare

Conversation

@rawritude

Copy link
Copy Markdown

Completes the public Subscriptions → Flare rename (the /flare route, /subscription redirect and nav label already exist) and fixes narrow runtime defects. Client, contract and webhook identifiers stay subscription.

Verified against @reflector/subscription-client@0.5.3 and confirmed on Mainnet (owner-signed create + cancel).

Rename (copy only)

  • public product renamed to the Flare oracle across the Flare pages and the DAO blueprint
  • add a /subscription/add/flare/add redirect

Runtime fixes

  • supply both callTimeout and the client's misspelled callTiemout key (the site was silently running at the 30s default instead of 600s)
  • set the create-form deposit default and minimum to 30 XRF (creation burns 20 and retains 10)
  • show the remaining balance via fromStroops instead of raw stroops
  • normalize and de-duplicate stored u64 subscription ids
  • validate the webhook URL and the threshold/heartbeat ranges before opening the wallet
  • guard against a second create/cancel submit while one is pending
  • show a load error with retry instead of an infinite spinner
  • fix the misspelled tesntet network key

Tests: node --test tests/flare-runtime.test.cjs

Rename the public product to the Flare oracle across the Flare pages and the DAO
blueprint; the client, contract and webhook identifiers stay "subscription".

Runtime fixes verified against @reflector/subscription-client 0.5.3 and confirmed
on Mainnet:
- supply both callTimeout and the client's misspelled callTiemout key (the site was
  silently running at the 30s default instead of 600s)
- set the create-form deposit default and minimum to 30 XRF (creation burns 20 and
  retains 10)
- display the remaining balance via fromStroops instead of raw stroops
- normalize and de-duplicate stored u64 subscription ids
- validate the webhook URL and the threshold/heartbeat ranges before opening the wallet
- guard against a second create or cancel submit while one is pending
- show a load error with retry instead of an infinite spinner
- fix the misspelled "tesntet" network key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant