@whetstone-research/doppler-sdk 1.0.31 → 1.0.32

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 CHANGED
@@ -100,6 +100,30 @@ For runnable Solana flows, configure `examples/.env` and run with `pnpm tsx`, fo
100
100
  - [examples/solana-prediction-market.ts](./examples/solana-prediction-market.ts)
101
101
  - [examples/solana-swap.ts](./examples/solana-swap.ts)
102
102
 
103
+ Resolve managed swap cosigning before constructing a launch:
104
+
105
+ ```typescript
106
+ const cosignerGate = await dopplerLaunchHookV1.resolveManagedCosignerGate(rpc, {
107
+ programId: deployment.dopplerLaunchHookV1Program,
108
+ expiresAt,
109
+ });
110
+
111
+ const launch = await createLaunch({ ...input, cosignerGate });
112
+ ```
113
+
114
+ The resolver verifies the hook's singleton config and selects its first active
115
+ Doppler-managed signer. `createLaunch` then pins that signer in the launch's
116
+ immutable remaining-account commitment without performing an RPC read. Launch
117
+ creators do not provide or register a cosigner key through this high-level
118
+ flow. Low-level hook payload and remaining-account helpers accept a cosigner
119
+ only to reconstruct an already-authorized launch commitment.
120
+
121
+ Cosigning through Doppler launch hook v1 is a Doppler-managed service.
122
+ Integrators that require their own cosigner must deploy and use a separate hook
123
+ program approved by the protocol. Passing a different cosigner to low-level
124
+ payload or remaining-account helpers does not authorize or register that key
125
+ with the Doppler-managed hook.
126
+
103
127
  ## Creating Auctions
104
128
 
105
129
  ### Static Auction (Fixed Price Range)