@flayerlabs/gamemode-cli 0.5.6 → 0.7.0
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.
|
@@ -58,4 +58,4 @@ Check replay, reconnect, hidden-data leaks, late actions, duplicate actions, ove
|
|
|
58
58
|
|
|
59
59
|
## Ship
|
|
60
60
|
|
|
61
|
-
Build with `@flayerlabs/gamemode-client` 0.
|
|
61
|
+
Build with `@flayerlabs/gamemode-client` 0.7.0 or later, deploy the scaffolded gate (`src/gate.ts`), and upload the zip at the developer dashboard, `https://flaunch.gg/game-mode/dashboard`: one gate per chain (Base Sepolia 84532 required for testing; Base 8453 and Robinhood 4663 production), tick "supports practice mode" when the build runs on `createMockRoom`, mark it mobile-friendly if it is, and run the Base Sepolia test launch. Bundling rules and the full ship checklist are steps 7–8 of `$port-game-mode`; a game with its own multiplayer server follows `$run-a-game-server`.
|
|
@@ -56,6 +56,8 @@ const app = createGameServerGate({
|
|
|
56
56
|
chainId: 84532,
|
|
57
57
|
contracts: {
|
|
58
58
|
positionManager: '0x4E7cB1e6800a7B297B38BddcecAF9Ca5b6616FDC',
|
|
59
|
+
// The legacy stack's version 1 calculator. The paired stack's v2 calculator (0.7.0) is
|
|
60
|
+
// 0x8a36826253882c8b505D6D78a71B780Ac9c98eA9 on Base Sepolia.
|
|
59
61
|
spendGatedCalculator: '0x8cbbE6b4cFA5Ccf68399Dbf1429d91A21097ebA5',
|
|
60
62
|
},
|
|
61
63
|
signer: SIGNER_ADDRESS, // the address of your gate's signing key
|
|
@@ -76,7 +78,10 @@ const app = createGameServerGate({
|
|
|
76
78
|
The addresses above are Base Sepolia (chain 84532), read back from the chain, and `v1_2` is that
|
|
77
79
|
stack's generation. A Base mainnet (8453) gate announces `chainId: 8453`, `flaunchVariant: 'v1_3'`
|
|
78
80
|
and the V1_3 PositionManager and spend-gated calculator deployed there — read them back from the
|
|
79
|
-
chain, never copy the Sepolia pair. One gate process serves one chain
|
|
81
|
+
chain, never copy the Sepolia pair. One gate process serves one chain and one calculator, and
|
|
82
|
+
adopts coins on any PositionManager wired to that calculator; `contracts.positionManager` is the
|
|
83
|
+
primary manager, and `/config` announces `positionManagerPolicy: 'wired-to-calculator'` (0.6.0) so
|
|
84
|
+
launch tooling knows other wired managers are accepted. `signer` is what a
|
|
80
85
|
launch writes into its pool as the trusted signer — announce an address you do not hold and every
|
|
81
86
|
coin launched through your game is unplayable. `walletCap` must cover a flawless round
|
|
82
87
|
(`maxPointsPerPlayer` times the wei value of a point) or boot refuses.
|
|
@@ -171,7 +176,7 @@ Upload the zip in the developer dashboard at `https://flaunch.gg/game-mode/dashb
|
|
|
171
176
|
your gate origin as a network — one gate per chain: Base Sepolia (84532) is required for testing,
|
|
172
177
|
Base (8453) and Robinhood (4663) are production — and fill in the game server addresses. The
|
|
173
178
|
dashboard live-probes `/health` at submission, so deploy the gate first; it refuses builds below
|
|
174
|
-
`@flayerlabs/gamemode-client` 0.
|
|
179
|
+
`@flayerlabs/gamemode-client` 0.7.0 and gates whose `/config` `gateVersion` is below 0.7.0. Mark
|
|
175
180
|
the game mobile-friendly if it is, and run the Base Sepolia test launch from the dashboard. Localhost
|
|
176
181
|
cannot rehearse the deployed CSP: after hosting, open the deployed game and confirm every declared
|
|
177
182
|
origin connects and an undeclared one is blocked. Then launch a fresh test coin through the room
|