Skip to content

Commit

Permalink
Merge pull request #215 from metaproph3t/deploy-programs
Browse files Browse the repository at this point in the history
Deploy programs to mainnet
  • Loading branch information
metaproph3t authored May 17, 2024
2 parents 7995e86 + eaabc1e commit 466a0f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Futarchy Monorepo
# Futarchy

![License BSLv1.1](https://img.shields.io/badge/License-BSLv1.1-lightgray.svg)

Monorepo that houses programs helpful for futarchy. A description of these programs
and what they do can be found at [docs.themetadao.org](https://docs.themetadao.org).
Programs for market-driven governance.

## Scripts

Expand Down Expand Up @@ -33,9 +32,9 @@ where `P_URI` and `F_URI` are replaced with their respective values.

| program | tag | program ID |
| ----------------- | ---- | -------------------------------------------- |
| autocrat | v1.0 | 5scUH1qY87Awh5D8bQkbP2uv9BaXJXiMgrqRBw1K2vVv |
| amm | v1.0 | CsN1N8qaMJUwoGFWt3xV4u246n2cuZy9AWLws78e3a1K |
| conditional_vault | v1.0 | F3RzPAtBQvUAAdDHD8AsPKFhDB1H38SULNKTW39dYrw8 |
| autocrat | v0.3 | autoQP9RmUNkzzKRXsMkWicDVZ3h29vvyMDcAYjCxxg |
| amm | v0.3 | AMM5G2nxuKUwCLRYTW7qqEwuoqCtNSjtbipwEmm2g8bH |
| conditional_vault | v0.3 | VAU1T7S5UuEHmMvXtXMVmpEoQtZ2ya7eRb7gcN47wDp |
| autocrat_v0 | v0.2 | metaRK9dUBnrAdZN6uUDKvxBVKW5pyCbPVmLtUZwtBp |
| autocrat_migrator | v0.2 | MigRDW6uxyNMDBD8fX2njCRyJC4YZk2Rx9pDUZiAESt |
| conditional_vault | v0.2 | vAuLTQjV5AZx5f3UgE75wcnkxnQowWxThn1hGjfCVwP |
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-verifiable PROGRAM_NAME:
solana-verify build --library-name {{ PROGRAM_NAME }} -b ellipsislabs/solana:1.16.10

deploy PROGRAM_NAME CLUSTER:
solana program deploy -u {{ CLUSTER }} --program-id ./target/deploy/{{ PROGRAM_NAME }}-keypair.json ./target/deploy/{{ PROGRAM_NAME }}.so --with-compute-unit-price 5 --max-sign-attempts 15 && PROGRAM_ID=$(solana-keygen pubkey ./target/deploy/{{ PROGRAM_NAME }}-keypair.json) && anchor idl init --filepath ./target/idl/{{ PROGRAM_NAME }}.json $PROGRAM_ID --provider.cluster {{ CLUSTER }}
solana program deploy --use-rpc -u {{ CLUSTER }} --program-id ./target/deploy/{{ PROGRAM_NAME }}-keypair.json ./target/deploy/{{ PROGRAM_NAME }}.so --with-compute-unit-price 5 --max-sign-attempts 15 && PROGRAM_ID=$(solana-keygen pubkey ./target/deploy/{{ PROGRAM_NAME }}-keypair.json) && anchor idl init --filepath ./target/idl/{{ PROGRAM_NAME }}.json $PROGRAM_ID --provider.cluster {{ CLUSTER }}

upgrade PROGRAM_NAME PROGRAM_ID CLUSTER:
anchor upgrade ./target/deploy/{{ PROGRAM_NAME }}.so -p {{ PROGRAM_ID }} --provider.cluster {{ CLUSTER }}
Expand Down

0 comments on commit 466a0f3

Please sign in to comment.