You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Remove old SDK (`@metadaoproject/futarchy`) and replace with `@metadaoproject/programs`
- Move all tests and scripts to new SDK
- Upgrade typescript to latest
- Add a typecheck utility script to root
The SDK is published as `@metadaoproject/programs` and is organized **per program**, with each program independently versioned. There is no single SDK-wide version anymore — futarchy is at v0.6, launchpad is at v0.7, conditional_vault is at v0.4, etc.
255
255
256
-
// Key utilities in sdk/src/v0.7/
257
-
// - constants.ts: Program IDs, MAINNET_USDC, SQUADS_PROGRAM_ID
258
-
// - PDA derivation: getDaoAddr, getProposalAddr, etc.
259
-
// - PriceMath.getAmmPrice for price calculations
256
+
```typescript
257
+
// Top-level imports resolve to the latest version of each program (preferred)
**Important:** Always use SDK v0.7 imports (`@metadaoproject/futarchy/v0.7`) for new code. Do not use older SDK versions (v0.3-v0.6).
274
+
Each program module exports a `Client` class (constructed via `Client.createClient({ provider })`), PDA helpers, and generated Anchor types. Shared utilities (`constants.ts`, top-level `pda.ts`, `AmmMath`) are exported from the package root.
275
+
276
+
**Important:** Always use top-level or per-program imports for new code. Only reach for a versioned subpath (e.g. `@metadaoproject/programs/futarchy/v0.6`) when you specifically need an older program version. See `sdk/README.md` for the full layout.
0 commit comments