Coder Social home page Coder Social logo

futarchy's Introduction

Futarchy Monorepo

License BSLv1.1

Monorepo that houses programs helpful for futarchy. A description of these programs and what they do can be found at docs.themetadao.org.

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 program ID
autocrat_v0 v0.2 metaRK9dUBnrAdZN6uUDKvxBVKW5pyCbPVmLtUZwtBp
autocrat_migrator v0.2 MigRDW6uxyNMDBD8fX2njCRyJC4YZk2Rx9pDUZiAESt
conditional_vault v0.2 vAuLTQjV5AZx5f3UgE75wcnkxnQowWxThn1hGjfCVwP
autocrat_v0 v0.1 metaX99LHn3A7Gr7VAcCfXhpfocvpMpqQ3eyp3PGUUq
autocrat_migrator v0.1 migkwAXrXFN34voCYQUhFQBXZJjHrWnpEXbSGTqZdB3
autocrat_v0 v0 meta3cxKzFBmWYgCVozmvCQAS3y9b3fGxrG9HkHL7Wi
conditional_vault v0 vaU1tVLj8RFk7mNj1BxqgAsMKKaL8UvEUHvU3tdbZPe

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.

futarchy's People

Contributors

metaproph3t avatar dodecahedr0x avatar github-actions[bot] avatar asktree avatar jshiohaha avatar henry-e avatar r-k-h avatar lagzda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.