Skip to content

tradersguild/futarchy-daodotfun

 
 

Repository files navigation

Futarchy

License BSLv1.1

Programs for market-driven governance.

Scripts

The scripts folder contains a few scripts that you can use to interact with the Meta-DAO. Today, the only way to create proposals is via script. You can do this by modifying the initializeProposal.ts script and replacing its pubkey, accounts, and data with the SVM instruction that you want to use in your proposal.

Then, run anchor run propose --provider.cluster CLUSTER, where CLUSTER is replaced with either devnet, mainnet, or (recommended) an RPC URL.

Initialize Proposal

The initialize proposal script initializes conditional vaults, which also attempts to upload metadata for conditional tokens. If a previous attempt to call this script failed part way through and off-chain metadata has already been uploaded, you can use this metadata and bypass another attempt to upload off-chain metadata.

Simply prepend the script with the following environment variable structure: [PASS|FAIL]_[TOKEN]_METADATA_URI. For example, to override pass and fail META metadata uploads, include PASS_META_METADATA_URI and FAIL_META_METADATA_URI.

The actual script invocation might look something like this:

PASS_META_METADATA_URI=\"<P_URI>\" FAIL_META_METADATA_URI=\"<F_URI>\" anchor run propose

where P_URI and F_URI are replaced with their respective values.

Deployments

program tag
autocrat v0.4
amm v0.4
conditional_vault v0.4
autocrat v0.3
amm v0.3
conditional_vault v0.3
autocrat_v0 v0.2
autocrat_migrator v0.2
conditional_vault v0.2
autocrat_v0 v0.1
autocrat_migrator v0.1
autocrat_v0 v0
conditional_vault v0

All programs are immutable and verifiable, and have been verified with the OtterSec API.

The META token mint is METADDFL6wWMWEoKTFJwcThTbUmtarRJZjRpzUvkxhr.

Run Instructions

The run instructions are located in the Run Instructions document.

About

Programs for market-driven governance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 82.5%
  • Rust 16.7%
  • Other 0.8%