Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
31dd49b
wip
pileks Jan 8, 2026
a303f5c
wip
pileks Jan 9, 2026
81064fd
implementation of initiation of new optimistic governance proposal
pileks Jan 9, 2026
2e85455
add finalize optimistic proposal ix
pileks Jan 9, 2026
7f458ea
launch_proposal should only be able to challenge an optimistic propos…
pileks Jan 9, 2026
63ed333
minor cleanups
pileks Jan 9, 2026
8606360
tests for optimistic vault transaction proposal initiation
pileks Jan 10, 2026
6702eaf
optimistic proposal finalization tests
pileks Jan 10, 2026
69a4b61
prevent initialization of futarchy proposal when optimistic governanc…
pileks Jan 10, 2026
27962d0
add missing check
pileks Jan 10, 2026
2aa4420
team can't sponsor a challenge to an optimistic governance proposal
pileks Jan 10, 2026
0d55d11
work-in-progress PR comments
pileks Jan 16, 2026
5d012b1
Merge remote-tracking branch 'origin/develop' into pileks/met-5-optim…
pileks Jan 16, 2026
c98ce2e
address review comments
pileks Jan 17, 2026
484e7ad
reintroduce resize_dao crankable instruction with scripts
pileks Jan 17, 2026
62e4d8a
reintroduce resize_dao crankable instruction with scripts (#400)
pileks Jan 17, 2026
a1acfaf
Merge branch 'pileks/met-5-optimistic-governance' of github.com:metaD…
pileks Jan 17, 2026
4731cf6
Merge remote-tracking branch 'origin/develop' into pileks/met-5-optim…
pileks Jan 17, 2026
d05c432
Merge remote-tracking branch 'origin/develop' into pileks/met-5-optim…
pileks Jan 18, 2026
98dfe15
remove duplicate optimistic proposal check
pileks Jan 23, 2026
ea1879c
Merge remote-tracking branch 'origin/develop' into pileks/met-5-optim…
pileks Feb 9, 2026
d31f514
initiate vault spend optimistic proposal won't fail due to reentrancy…
pileks Feb 10, 2026
56cf9eb
increase payer usdc balance to prevent tests from depleting entire ba…
pileks Feb 10, 2026
684fda6
Merge remote-tracking branch 'origin/develop' into pileks/met-5-optim…
pileks Feb 12, 2026
92875b1
prevent udapte_dao during active optimistic proposal
pileks Feb 12, 2026
cf0facc
prevent admin execution of multisig proposals when there is an active…
pileks Feb 17, 2026
3c85ce4
prevent deadlock from optimistic proposal staleness
pileks Feb 18, 2026
846dbee
Merge remote-tracking branch 'origin/develop' into pileks/met-5-optim…
pileks Feb 26, 2026
8717302
ensure squads vault transaction is created by permissionless account
pileks Mar 11, 2026
b067bd2
merge with develop
pileks Mar 12, 2026
4337ae8
additional checks for proper transaction in vault spend optimistic pr…
pileks Mar 14, 2026
9536ada
Merge remote-tracking branch 'origin/develop' into pileks/met-5-optim…
pileks Mar 19, 2026
e05d565
finalize resize dao logic, add scripts for dumping and resizing daos
pileks Mar 20, 2026
a026d83
Merge remote-tracking branch 'origin/develop' into pileks/met-5-optim…
pileks Mar 23, 2026
9bb28ac
initial layout for v2 SDK
pileks Mar 24, 2026
03ca7d4
add more programs to new SDK
pileks Mar 24, 2026
303c9cf
new sdk - performance package v2
pileks Mar 24, 2026
353eed4
new sdk - launchpad v6 program
pileks Mar 24, 2026
038496a
proper exports for all sdk v2 types
pileks Mar 25, 2026
5aeef0e
proper re-exports
pileks Mar 28, 2026
1f41716
add pricemath
pileks Mar 28, 2026
be9e06e
move tests to v2 sdk
pileks Mar 28, 2026
8be31d0
fix minor ts issues
pileks Mar 28, 2026
3ceac1e
add relevant 0.5 clients to sdk v2
pileks Mar 28, 2026
922da4f
add 0.4 clients to sdk v2
pileks Mar 28, 2026
ab72b2f
merge with origin/develop
pileks Apr 6, 2026
57ed79b
Merge branch 'pileks/met-5-optimistic-governance' into pileks/met-49-…
pileks Apr 7, 2026
470bd44
update all new functionality to sdk v2
pileks Apr 7, 2026
e550109
merge with origin/develop
pileks Apr 14, 2026
a85c296
Merge remote-tracking branch 'origin/pileks/met-5-optimistic-governan…
pileks Apr 15, 2026
16a79a0
apply latest program changes to new SDK
pileks Apr 15, 2026
4833ac5
add sdk2 to CI
pileks Apr 16, 2026
25af8ef
enable optimistic governance by default for DAOs initialized with a t…
pileks Apr 16, 2026
5d0bf2f
Merge remote-tracking branch 'origin/pileks/met-5-optimistic-governan…
pileks Apr 16, 2026
aa962ba
reintroduce disabling of optimistic governance on dao initialization …
pileks Apr 17, 2026
c70de22
final cleanup pass
pileks Apr 20, 2026
0ea8edf
update with latest optimistic governance changes
pileks Apr 20, 2026
656352f
update sdk
pileks Apr 20, 2026
a8cf73d
Merge remote-tracking branch 'origin/pileks/met-5-optimistic-governan…
pileks Apr 20, 2026
88f270c
merge with develop
pileks Apr 23, 2026
abeedcd
Merge remote-tracking branch 'origin/develop' into pileks/met-49-rest…
pileks Apr 23, 2026
73509ad
update sdkv2 with changes from old sdk
pileks Apr 23, 2026
53ac376
rename autocrat to futarchy in v0.6 clients
pileks Apr 23, 2026
03f3d76
sdk2 is now main sdk
pileks Apr 24, 2026
4d34c7d
fix up typescript errors in tests
pileks Apr 24, 2026
1b670c8
add v0.3 clients, fix autocomplete behavior for imports
pileks Apr 24, 2026
02014af
update scripts
pileks Apr 24, 2026
71a317b
restore legacy v0.6.0 IDLs and v0.5 simulateSwap helper
pileks Apr 27, 2026
2cd2a14
replace old SDK dir with new one
pileks Apr 28, 2026
22b51b3
update workflow to not include sdk2 anymore
pileks Apr 28, 2026
b790914
redeploy SDK under new name
pileks Apr 29, 2026
01ae38e
remove unused dependencies
pileks Apr 29, 2026
93be94a
update sdk package version
pileks Apr 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
36 changes: 25 additions & 11 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ programs/ # Solana programs (Anchor)
├── mint_governor/ # Delegated minting authority management
└── damm_v2_cpi/ # Meteora AMM CPI wrapper

sdk/ # TypeScript client library
├── src/v0.3/ - v0.7/ # Versioned SDKs (backward compatible)
sdk/ # TypeScript client library (@metadaoproject/programs)
├── src/<program>/ # One module per program (futarchy, launchpad, conditional_vault, ...)
│ ├── v0.X/ # Each program is independently versioned
│ └── index.ts # Re-exports the latest version
└── package.json

tests/ # TypeScript tests (bankrun + mocha)
Expand Down Expand Up @@ -180,7 +182,7 @@ Always append new error variants to the **end** of `#[error_code]` enums. Anchor

### Adding New Instructions
1. Add instruction to Rust program in `programs/[program]/src/instructions/`
2. Update client methods in SDK (`sdk/src/v0.7/`)
2. Update client methods in the corresponding SDK module at the program's current version (e.g. `sdk/src/futarchy/v0.6/`, `sdk/src/launchpad/v0.7/`)
3. Add unit tests in `tests/[program]/unit/`

### Testing with Bankrun
Expand Down Expand Up @@ -249,17 +251,29 @@ When designing instructions that involve Squads CPIs, check whether either patte

## SDK Usage

```typescript
// Import versioned clients
import { FutarchyClient, ConditionalVaultClient } from "@metadaoproject/futarchy/v0.7";
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.

// Key utilities in sdk/src/v0.7/
// - constants.ts: Program IDs, MAINNET_USDC, SQUADS_PROGRAM_ID
// - PDA derivation: getDaoAddr, getProposalAddr, etc.
// - PriceMath.getAmmPrice for price calculations
```typescript
// Top-level imports resolve to the latest version of each program (preferred)
import {
FutarchyClient,
LaunchpadClient,
ConditionalVaultClient,
MAINNET_USDC,
} from "@metadaoproject/programs";

// Or import from a specific program module
import { FutarchyClient } from "@metadaoproject/programs/futarchy";
import { LaunchpadClient } from "@metadaoproject/programs/launchpad";

// Or pin to a specific version (only when reading historical accounts or
// interacting with an older deployed program)
import { FutarchyClient } from "@metadaoproject/programs/futarchy/v0.6";
```

**Important:** Always use SDK v0.7 imports (`@metadaoproject/futarchy/v0.7`) for new code. Do not use older SDK versions (v0.3-v0.6).
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.

**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.

## Key External Dependencies

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"lint:fix": "prettier */*{.js,.ts} \"*/**/*{.js,.ts}\" -w",
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check",
"typecheck": "tsc --noEmit",
"setup-metric-market": "tsx --tsconfig tsconfig.json scripts/setupMetricMarket.ts",
"launch-init": "NODE_OPTIONS=\"--no-deprecation\" tsx --tsconfig tsconfig.json scripts/launchInit.ts",
"launch-start": "NODE_OPTIONS=\"--no-deprecation\" tsx --tsconfig tsconfig.json scripts/launchStart.ts",
Expand All @@ -24,7 +25,7 @@
"dependencies": {
"@coral-xyz/anchor": "=0.29.0",
"@inquirer/prompts": "^7.3.3",
"@metadaoproject/futarchy": "./sdk",
"@metadaoproject/programs": "./sdk",
"@metaplex-foundation/mpl-token-metadata": "^3.2.0",
"@metaplex-foundation/umi": "^0.9.1",
"@metaplex-foundation/umi-bundle-defaults": "^0.9.1",
Expand Down Expand Up @@ -68,7 +69,7 @@
"ts-mocha": "^10.0.0",
"ts-node": "^10.9.2",
"tsx": "^4.7.1",
"typescript": "^4.3.5",
"typescript": "5.9.3",
"typescript-eslint": "^8.43.0"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
Expand Down
3 changes: 2 additions & 1 deletion rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
set -e
anchor build
cd sdk
yarn install
yarn build-local
cd ..
yarn install --force
yarn lint:fix
echo "✅ SDK types synced successfully"
echo "✅ rebuild complete"
4 changes: 3 additions & 1 deletion scripts/setupFutarchyAmm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// @ts-nocheck
// Legacy script
import * as anchor from "@coral-xyz/anchor";
import { AutocratClient, getDaoAddr } from "@metadaoproject/futarchy/v0.6";
import { AutocratClient, getDaoAddr } from "@metadaoproject/programs/v0.6";
import { Keypair, PublicKey } from "@solana/web3.js";
import BN from "bn.js";
import * as token from "@solana/spl-token";
Expand Down
3 changes: 2 additions & 1 deletion scripts/v0.3/crankTwap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as anchor from "@coral-xyz/anchor";
import { AmmClient, AutocratClient } from "@metadaoproject/futarchy/v0.3";
import { AmmClient } from "@metadaoproject/programs/amm/v0.3";
import { AutocratClient } from "@metadaoproject/programs/autocrat/v0.3";
import { PublicKey } from "@solana/web3.js";

const proposal1 = new PublicKey("Dssb1oTTqKjWJTe8QVrStFXxcMZfd7LTSpTRbuHuNdnW");
Expand Down
2 changes: 1 addition & 1 deletion scripts/v0.3/finalizeProposal.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as anchor from "@coral-xyz/anchor";
import { AutocratClient } from "@metadaoproject/futarchy/v0.3";
import { AutocratClient } from "@metadaoproject/programs/autocrat/v0.3";

const { PublicKey } = anchor.web3;

Expand Down
2 changes: 1 addition & 1 deletion scripts/v0.3/initializeDao.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as anchor from "@coral-xyz/anchor";
import { AutocratClient } from "@metadaoproject/futarchy/v0.3";
import { AutocratClient } from "@metadaoproject/programs/autocrat/v0.3";
import {
DEAN_DEVNET,
DEVNET_DARK,
Expand Down
2 changes: 1 addition & 1 deletion scripts/v0.3/initializeProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as anchor from "@coral-xyz/anchor";
import { MEMO_PROGRAM_ID } from "@solana/spl-memo";
import * as token from "@solana/spl-token";
import { LAMPORTS_PER_SOL } from "@solana/web3.js";
import { AutocratClient } from "@metadaoproject/futarchy/v0.3";
import { AutocratClient } from "@metadaoproject/programs/autocrat/v0.3";

const { PublicKey } = anchor.web3;

Expand Down
2 changes: 1 addition & 1 deletion scripts/v0.3/initializeVault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
getVaultAddr,
getVaultFinalizeMintAddr,
getVaultRevertMintAddr,
} from "@metadaoproject/futarchy/v0.3";
} from "@metadaoproject/programs/conditional_vault/v0.3";

const CONDITIONAL_VAULT_PROGRAM_ID = new PublicKey(
"4nCk4qKJSJf8pzJadMnr9LubA6Y7Zw3EacsVqH1TwVXH",
Expand Down
2 changes: 2 additions & 0 deletions scripts/v0.3/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @ts-nocheck
// Legacy script
import * as anchor from "@coral-xyz/anchor";
import * as token from "@solana/spl-token";
const { BN, Program } = anchor;
Expand Down
6 changes: 2 additions & 4 deletions scripts/v0.3/uploadMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { PublicKey } from "@solana/web3.js";
import * as anchor from "@coral-xyz/anchor";
import {
AutocratClient,
ConditionalVaultClient,
} from "@metadaoproject/futarchy/v0.3";
import { ConditionalVaultClient } from "@metadaoproject/programs/conditional_vault/v0.3";
import { AutocratClient } from "@metadaoproject/programs/autocrat/v0.3";

const provider = anchor.AnchorProvider.env();

Expand Down
3 changes: 2 additions & 1 deletion scripts/v0.4/claimAllLaunch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {
PublicKey,
} from "@solana/web3.js";
import * as anchor from "@coral-xyz/anchor";
import { AutocratClient, LaunchpadClient } from "@metadaoproject/futarchy/v0.4";
import { LaunchpadClient } from "@metadaoproject/programs/launchpad/v0.4";
import { AutocratClient } from "@metadaoproject/programs/autocrat/v0.4";
import { homedir } from "os";
import { join } from "path";
import { input } from "@inquirer/prompts";
Expand Down
2 changes: 1 addition & 1 deletion scripts/v0.4/finalizeLaunch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
PublicKey,
} from "@solana/web3.js";
import * as anchor from "@coral-xyz/anchor";
import { LaunchpadClient } from "@metadaoproject/futarchy/v0.4";
import { LaunchpadClient } from "@metadaoproject/programs/launchpad/v0.4";
import { homedir } from "os";
import { join } from "path";
import { input } from "@inquirer/prompts";
Expand Down
2 changes: 1 addition & 1 deletion scripts/v0.4/initializeDao.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as anchor from "@coral-xyz/anchor";
import { Keypair } from "@solana/web3.js";
import { AutocratClient } from "@metadaoproject/futarchy/v0.4";
import { AutocratClient } from "@metadaoproject/programs/autocrat/v0.4";
import * as token from "@solana/spl-token";
import { BN } from "bn.js";

Expand Down
2 changes: 1 addition & 1 deletion scripts/v0.4/initializeLaunch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
getLaunchAddr,
getLaunchSignerAddr,
LaunchpadClient,
} from "@metadaoproject/futarchy/v0.4";
} from "@metadaoproject/programs/launchpad/v0.4";
import { BN } from "bn.js";
import { homedir } from "os";
import { join } from "path";
Expand Down
12 changes: 5 additions & 7 deletions scripts/v0.4/initializeMetricMarket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ import * as token from "@solana/spl-token";
import { PublicKey, Transaction } from "@solana/web3.js";
import * as anchor from "@coral-xyz/anchor";
import {
AmmClient,
ConditionalVault,
ConditionalVaultClient,
getAmmAddr,
getDownAndUpMintAddrs,
getEventAuthorityAddr,
getFailAndPassMintAddrs,
getQuestionAddr,
getVaultAddr,
MAINNET_USDC,
} from "@metadaoproject/futarchy/v0.4";
import { sha256 } from "@metadaoproject/futarchy";
import { Question, Amm } from "@metadaoproject/futarchy/v0.4";
} from "@metadaoproject/programs/conditional_vault/v0.4";
import { sha256 } from "@metadaoproject/programs";
import { Question } from "@metadaoproject/programs/conditional_vault/v0.4";
import { Amm, AmmClient, getAmmAddr } from "@metadaoproject/programs/amm/v0.4";
import { MAINNET_USDC } from "@metadaoproject/programs/";
import { BN } from "bn.js";
import { homedir } from "os";
import { join } from "path";
Expand Down
8 changes: 4 additions & 4 deletions scripts/v0.4/initializeProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { PublicKey } from "@solana/web3.js";
import * as anchor from "@coral-xyz/anchor";
import {
AutocratClient,
AUTOCRAT_PROGRAM_ID,
AutocratIDL,
PriceMath,
} from "@metadaoproject/futarchy/v0.4";
} from "@metadaoproject/programs/autocrat/v0.4";
import { PriceMath } from "@metadaoproject/programs";
import { AUTOCRAT_V0_4_PROGRAM_ID } from "@metadaoproject/programs";

async function main() {
// Initialize clients
Expand Down Expand Up @@ -61,7 +61,7 @@ async function main() {

const autocrat = new anchor.Program(
AutocratIDL,
AUTOCRAT_PROGRAM_ID,
AUTOCRAT_V0_4_PROGRAM_ID,
provider,
);

Expand Down
2 changes: 1 addition & 1 deletion scripts/v0.4/startLaunch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Keypair, PublicKey, Transaction } from "@solana/web3.js";
import * as anchor from "@coral-xyz/anchor";
import { getLaunchAddr, LaunchpadClient } from "@metadaoproject/futarchy/v0.4";
import { LaunchpadClient } from "@metadaoproject/programs/launchpad/v0.4";
import { homedir } from "os";
import { join } from "path";
import fs from "fs";
Expand Down
6 changes: 2 additions & 4 deletions scripts/v0.4/uploadMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { ComputeBudgetProgram, PublicKey, Transaction } from "@solana/web3.js";
import * as anchor from "@coral-xyz/anchor";
import {
AutocratClient,
ConditionalVaultClient,
} from "@metadaoproject/futarchy/v0.4";
import { ConditionalVaultClient } from "@metadaoproject/programs/conditional_vault/v0.4";
import { AutocratClient } from "@metadaoproject/programs/autocrat/v0.4";

const provider = anchor.AnchorProvider.env();
const autocrat: AutocratClient = AutocratClient.createClient({ provider });
Expand Down
6 changes: 2 additions & 4 deletions scripts/v0.5/assignPermissionlessAccount.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import * as anchor from "@coral-xyz/anchor";
import { SystemProgram, Transaction } from "@solana/web3.js";
import {
AutocratClient,
PERMISSIONLESS_ACCOUNT,
} from "@metadaoproject/futarchy/v0.5";
import { PERMISSIONLESS_ACCOUNT } from "@metadaoproject/programs";
import { AutocratClient } from "@metadaoproject/programs/autocrat/v0.5";

async function main() {
const provider = anchor.AnchorProvider.env();
Expand Down
3 changes: 2 additions & 1 deletion scripts/v0.5/claimAllLaunch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {
PublicKey,
} from "@solana/web3.js";
import * as anchor from "@coral-xyz/anchor";
import { AutocratClient, LaunchpadClient } from "@metadaoproject/futarchy/v0.4";
import { LaunchpadClient } from "@metadaoproject/programs/launchpad/v0.4";
import { AutocratClient } from "@metadaoproject/programs/autocrat/v0.4";
import dotenv from "dotenv";

dotenv.config();
Expand Down
10 changes: 3 additions & 7 deletions scripts/v0.5/executeProposal.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import * as anchor from "@coral-xyz/anchor";
import {
AutocratClient,
getDaoAddr,
DEVNET_USDC,
MAINNET_USDC,
SQUADS_PROGRAM_CONFIG_TREASURY,
PERMISSIONLESS_ACCOUNT,
} from "@metadaoproject/futarchy/v0.5";
DEVNET_SQUADS_PROGRAM_CONFIG_TREASURY,
} from "@metadaoproject/programs";
import { AutocratClient } from "@metadaoproject/programs/autocrat/v0.5";
import {
Keypair,
PublicKey,
Expand All @@ -16,7 +13,6 @@ import {
} from "@solana/web3.js";
import BN from "bn.js";
import * as multisig from "@sqds/multisig";
import { DEVNET_SQUADS_PROGRAM_CONFIG_TREASURY } from "../../sdk/src/v0.5/constants.js";
import * as token from "@solana/spl-token";

const EXISTING_TOKEN = new PublicKey(
Expand Down
4 changes: 2 additions & 2 deletions scripts/v0.5/finalizeLaunch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
VersionedTransaction,
} from "@solana/web3.js";
import * as anchor from "@coral-xyz/anchor";
import { LaunchpadClient } from "@metadaoproject/futarchy/v0.5";
import { LaunchpadClient } from "@metadaoproject/programs/launchpad/v0.5";

import dotenv from "dotenv";
import { createLookupTableForTransaction } from "../utils/utils.js";
Expand Down Expand Up @@ -53,7 +53,7 @@ async function sendAndConfirmTransaction(tx: Transaction, label: string) {
const completeLaunchLut = await createLookupTableForTransaction(
tx,
payer,
provider,
provider.connection,
);

console.log("Complete launch lookup table:", completeLaunchLut);
Expand Down
10 changes: 6 additions & 4 deletions scripts/v0.5/initializeDao.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import * as anchor from "@coral-xyz/anchor";
import {
AutocratClient,
getDaoAddr,
DEVNET_USDC,
MAINNET_USDC,
SQUADS_PROGRAM_CONFIG_TREASURY,
} from "@metadaoproject/futarchy/v0.5";
DEVNET_SQUADS_PROGRAM_CONFIG_TREASURY,
} from "@metadaoproject/programs";
import {
AutocratClient,
getDaoAddr,
} from "@metadaoproject/programs/autocrat/v0.5";
import {
Keypair,
PublicKey,
Expand All @@ -15,7 +18,6 @@ import {
} from "@solana/web3.js";
import BN from "bn.js";
import * as multisig from "@sqds/multisig";
import { DEVNET_SQUADS_PROGRAM_CONFIG_TREASURY } from "../../sdk/src/v0.5/constants.js";
import * as token from "@solana/spl-token";

const EXISTING_TOKEN = new PublicKey(
Expand Down
2 changes: 1 addition & 1 deletion scripts/v0.5/initializeLaunch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
getLaunchAddr,
getLaunchSignerAddr,
LaunchpadClient,
} from "@metadaoproject/futarchy/v0.5";
} from "@metadaoproject/programs/launchpad/v0.5";
import { BN } from "bn.js";
import { USDC } from "../consts.js";
import {
Expand Down
12 changes: 7 additions & 5 deletions scripts/v0.5/initializeProposal.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { ConditionalVaultClient } from "@metadaoproject/programs/conditional_vault/v0.4";
import { AmmClient } from "@metadaoproject/programs/amm/v0.5";
import {
AmmClient,
AUTOCRAT_PROGRAM_ID,
AutocratClient,
ConditionalVaultClient,
getProposalAddr,
} from "@metadaoproject/programs/autocrat/v0.5";
import {
AUTOCRAT_V0_5_PROGRAM_ID,
InstructionUtils,
} from "@metadaoproject/futarchy/v0.5";
} from "@metadaoproject/programs";
import {
LAMPORTS_PER_SOL,
Message,
Expand Down Expand Up @@ -134,7 +136,7 @@ async function main() {
console.log("minQuoteLiquidity", minQuoteLiquidity.toString());

const [metaDaoProposal] = getProposalAddr(
AUTOCRAT_PROGRAM_ID,
AUTOCRAT_V0_5_PROGRAM_ID,
SQUADS_PROPOSAL_PDA,
);

Expand Down
Loading
Loading