@flayerlabs/gamemode-cli 0.4.1 → 0.4.3

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.
@@ -83,9 +83,14 @@ Check: `curl https://<your-gate>/config` returns JSON with your `chainId` and `s
83
83
 
84
84
  The two origin settings developers most often get backwards:
85
85
 
86
- - Allowed origins (browser CORS and the WebSocket `Origin` check) name where your GAME is served
87
- from the Moongate origin, not the flaunch page. Because the Moongate hostname changes per
88
- upload, use the single-label wildcard: `https://*.games.moongate.com`.
86
+ - Allowed origins (browser CORS and the WebSocket `Origin` check) must name BOTH browser callers:
87
+ your game, served from its Moongate origin, and the flaunch page itself, which calls the gate
88
+ directly `POST /rounds/adopt` comes from the coin page, not from your iframe. Because the
89
+ Moongate hostname changes per upload, use the single-label wildcard for the first:
90
+ `https://*.games.moongate.com,https://flaunch.gg` (plus any preview page origin you test on).
91
+ If your bootstrap follows the single-origin example, split the list:
92
+ `allowedOrigins: required('GAME_ORIGIN').split(',').map((o) => o.trim())`. Missing the page
93
+ origin fails as a CORS preflight error on `/rounds/adopt` the moment a coin page loads.
89
94
  - The sign-in domain names the page the player is looking at — the flaunch site embedding your
90
95
  game — not your game and not your gate.
91
96
 
@@ -93,6 +98,34 @@ Generate the signing key, session secret (32+ characters) and award token (32+ c
93
98
  `openssl rand -hex 32`) fresh per environment. The award token lives on the gate and your game
94
99
  server only; it never reaches a browser or a zip.
95
100
 
101
+ ## Wire the market
102
+
103
+ `joinEconomy()` does not find the market on its own. Hand it the one the embedding page pushes,
104
+ or the game has nothing to draw:
105
+
106
+ ```ts
107
+ const embedded = await connectHost()
108
+ const gameMode = await joinEconomy({
109
+ gateUrl: embedded.context.gateUrl,
110
+ roundId: embedded.context.roundId,
111
+ host: embedded.host,
112
+ platform: { market: embedded.market }, // omit this and economy.market stays `unavailable`
113
+ })
114
+ ```
115
+
116
+ The gate never sends market state, so waiting for it on the live socket waits forever. Subscribe
117
+ to `gameMode.market` for the chart and `marketCapUsd`; a page that pushes nothing leaves the
118
+ status at `unavailable`, which is the cue to draw an empty chart rather than a spinner.
119
+
120
+ Plot `prices[].marketCapUsd` rather than deriving market cap from price. Supply is the platform's
121
+ to know — a launch may carry an override, or count circulating against total — and a game that
122
+ assumes it shows a number contradicting the page around it. Fall back to a price axis when the
123
+ field is absent.
124
+
125
+ When a buy fails, log `result.refuse` and `result.detail` with `result.transactionHash`. `reason`
126
+ is the player's answer and collapses several situations into `try-again`; those three say which
127
+ one, and which side of the bridge it happened on.
128
+
96
129
  ## Wire the ticket handshake
97
130
 
98
131
  Browser, after `joinEconomy()`:
package/dist/scaffold.js CHANGED
@@ -394,8 +394,10 @@ SESSION_SECRET=
394
394
  SIGN_IN_DOMAIN=flaunch.gg
395
395
  # This gate's own public https origin — the exact value you submit as the Gate URL.
396
396
  GATE_ORIGIN=
397
- # Comma-separated origins allowed to call this gate: your game's hosted origin(s) and the pages
398
- # that embed it. One * may span a single DNS label.
397
+ # Comma-separated origins allowed to call this gate: your game's hosted origin(s) and EVERY page
398
+ # that embeds it the coin page calls /rounds/adopt itself, so a missing page origin is a CORS
399
+ # error at launch. Add a staging/preview launch page's origin while you test against one.
400
+ # One * may span a single DNS label.
399
401
  ALLOWED_ORIGINS=https://*.games.moongate.com,https://flaunch.gg
400
402
  `,
401
403
  'railpack.json': `${JSON.stringify({
@@ -1 +1 @@
1
- {"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../src/scaffold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,IAAY;IACzC,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CAAC,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;;;;;;;;;;;;;;CAuBjB;QAEC,eAAe,EAAE,GAAG,IAAI,CAAC,SAAS,CAChC;YACE,OAAO,EAAE,6BAA6B;YACtC,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE;YAC5D,MAAM,EAAE,EAAE,YAAY,EAAE,WAAW,EAAE;SACtC,EACD,IAAI,EACJ,CAAC,CACF,IAAI;QAEL,aAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgCU,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2C9B;QAEC,YAAY,EAAE;;;;;aAKH,IAAI;;;;;;;;;;;;;;;;;;;;;;;CAuBhB;QAEC,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAkCZ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFf;QAEC,eAAe,EAAE,GAAG,IAAI,CAAC,SAAS,CAChC;YACE,eAAe,EAAE;gBACf,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE,UAAU;gBAClB,gBAAgB,EAAE,UAAU;gBAC5B,MAAM,EAAE,IAAI;gBACZ,wBAAwB,EAAE,IAAI;gBAC9B,oBAAoB,EAAE,IAAI;gBAC1B,YAAY,EAAE,IAAI;gBAClB,MAAM,EAAE,IAAI;aACb;YACD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;SACzB,EACD,IAAI,EACJ,CAAC,CACF,IAAI;QAEL,YAAY,EAAE,wBAAwB;KACrC,CAAC;AACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flayerlabs/gamemode-cli",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Create and validate Flaunch Game Modes",
5
5
  "license": "MIT",
6
6
  "author": "Flayer Labs",
package/src/scaffold.ts CHANGED
@@ -427,8 +427,10 @@ SESSION_SECRET=
427
427
  SIGN_IN_DOMAIN=flaunch.gg
428
428
  # This gate's own public https origin — the exact value you submit as the Gate URL.
429
429
  GATE_ORIGIN=
430
- # Comma-separated origins allowed to call this gate: your game's hosted origin(s) and the pages
431
- # that embed it. One * may span a single DNS label.
430
+ # Comma-separated origins allowed to call this gate: your game's hosted origin(s) and EVERY page
431
+ # that embeds it the coin page calls /rounds/adopt itself, so a missing page origin is a CORS
432
+ # error at launch. Add a staging/preview launch page's origin while you test against one.
433
+ # One * may span a single DNS label.
432
434
  ALLOWED_ORIGINS=https://*.games.moongate.com,https://flaunch.gg
433
435
  `,
434
436