@whetstone-research/doppler-sdk 1.0.30 → 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 +24 -0
- package/dist/evm/index.cjs +764 -402
- package/dist/evm/index.cjs.map +1 -1
- package/dist/evm/index.d.cts +1803 -382
- package/dist/evm/index.d.ts +1803 -382
- package/dist/evm/index.js +760 -404
- package/dist/evm/index.js.map +1 -1
- package/dist/solana/index.cjs +208 -135
- package/dist/solana/index.cjs.map +1 -1
- package/dist/solana/index.d.cts +150 -114
- package/dist/solana/index.d.ts +150 -114
- package/dist/solana/index.js +217 -145
- package/dist/solana/index.js.map +1 -1
- package/package.json +4 -1
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)
|