Skip to content

Commit a7e56c8

Browse files
authored
Merge pull request #211 from metaproph3t/upgrade-programs
Upgrade programs to v0.3
2 parents 4d64b18 + 7451620 commit a7e56c8

40 files changed

Lines changed: 53 additions & 47 deletions

Anchor.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ seeds = false
55
skip-lint = false
66

77
[programs.localnet]
8-
amm = "CsN1N8qaMJUwoGFWt3xV4u246n2cuZy9AWLws78e3a1K"
8+
amm = "AMM5G2nxuKUwCLRYTW7qqEwuoqCtNSjtbipwEmm2g8bH"
99
autocrat_migrator = "MigRDW6uxyNMDBD8fX2njCRyJC4YZk2Rx9pDUZiAESt"
10-
autocrat = "5scUH1qY87Awh5D8bQkbP2uv9BaXJXiMgrqRBw1K2vVv"
11-
conditional_vault = "F3RzPAtBQvUAAdDHD8AsPKFhDB1H38SULNKTW39dYrw8"
10+
autocrat = "autoQP9RmUNkzzKRXsMkWicDVZ3h29vvyMDcAYjCxxg"
11+
conditional_vault = "VAU1T7S5UuEHmMvXtXMVmpEoQtZ2ya7eRb7gcN47wDp"
1212

1313
[registry]
1414
url = "https://api.apr.dev"

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-verifiable PROGRAM_NAME:
99
solana-verify build --library-name {{ PROGRAM_NAME }} -b ellipsislabs/solana:1.16.10
1010

1111
deploy PROGRAM_NAME CLUSTER:
12-
solana program deploy -u {{ CLUSTER }} --program-id ./target/deploy/{{ PROGRAM_NAME }}-keypair.json ./target/deploy/{{ PROGRAM_NAME }}.so --final && 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 }}
12+
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 }}
1313

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"arweave": "^1.14.4",
2020
"solana-bankrun": "^0.3.0",
2121
"spl-token-bankrun": "0.2.5",
22-
"@metadaoproject/futarchy-ts": "4.1.0"
22+
"@metadaoproject/futarchy": "0.3.0-alpha.0"
2323
},
2424
"devDependencies": {
2525
"@mercurial-finance/dynamic-amm-sdk": "^0.4.19",

programs/amm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "amm"
3-
version = "1.0.0"
3+
version = "0.3.0"
44
description = "Created with Anchor"
55
edition = "2021"
66

programs/amm/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ use solana_security_txt::security_txt;
66
#[cfg(not(feature = "no-entrypoint"))]
77
security_txt! {
88
name: "amm",
9-
project_url: "https://themetadao.org",
9+
project_url: "https://metadao.fi",
1010
contacts: "email:metaproph3t@protonmail.com",
1111
policy: "The market will decide whether we pay a bug bounty.",
1212
source_code: "https://github.com/metaDAOproject/futarchy",
13-
source_release: "v1",
14-
auditors: "None",
13+
source_release: "v0.3",
14+
auditors: "Neodyme",
1515
acknowledgements: "DCF = (CF1 / (1 + r)^1) + (CF2 / (1 + r)^2) + ... (CFn / (1 + r)^n)"
1616
}
1717

@@ -22,7 +22,7 @@ pub mod state;
2222
use crate::instructions::*;
2323
use crate::state::*;
2424

25-
declare_id!("CsN1N8qaMJUwoGFWt3xV4u246n2cuZy9AWLws78e3a1K");
25+
declare_id!("AMM5G2nxuKUwCLRYTW7qqEwuoqCtNSjtbipwEmm2g8bH");
2626

2727
#[program]
2828
pub mod amm {

programs/autocrat/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "autocrat"
3-
version = "1.0.0"
3+
version = "0.3.0"
44
description = "SVM-based program for running futarchy"
55
edition = "2021"
66

programs/autocrat/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ use std::borrow::Borrow;
4949
#[cfg(not(feature = "no-entrypoint"))]
5050
security_txt! {
5151
name: "autocrat",
52-
project_url: "https://themetadao.org",
52+
project_url: "https://metadao.fi",
5353
contacts: "email:metaproph3t@protonmail.com",
5454
policy: "The market will decide whether we pay a bug bounty.",
5555
source_code: "https://github.com/metaDAOproject/futarchy",
56-
source_release: "v1",
57-
auditors: "None",
56+
source_release: "v0.3",
57+
auditors: "Neodyme",
5858
acknowledgements: "DCF = (CF1 / (1 + r)^1) + (CF2 / (1 + r)^2) + ... (CFn / (1 + r)^n)"
5959
}
6060

61-
declare_id!("5scUH1qY87Awh5D8bQkbP2uv9BaXJXiMgrqRBw1K2vVv");
61+
declare_id!("autoQP9RmUNkzzKRXsMkWicDVZ3h29vvyMDcAYjCxxg");
6262

6363
pub const SLOTS_PER_10_SECS: u64 = 25;
6464
pub const THREE_DAYS_IN_SLOTS: u64 = 3 * 24 * 60 * 6 * SLOTS_PER_10_SECS;

programs/conditional_vault/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "conditional_vault"
3-
version = "1.0.0"
3+
version = "0.3.0"
44
description = "SVM-based program for minting conditional tokens"
55
edition = "2021"
66

programs/conditional_vault/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ use solana_security_txt::security_txt;
2323
#[cfg(not(feature = "no-entrypoint"))]
2424
security_txt! {
2525
name: "conditional_vault",
26-
project_url: "https://themetadao.org",
26+
project_url: "https://metadao.fi",
2727
contacts: "email:metaproph3t@protonmail.com",
2828
policy: "The market will decide whether we pay a bug bounty.",
2929
source_code: "https://github.com/metaDAOproject/futarchy",
30-
source_release: "v1",
31-
auditors: "None",
30+
source_release: "v0.3",
31+
auditors: "Neodyme",
3232
acknowledgements: "DCF = (CF1 / (1 + r)^1) + (CF2 / (1 + r)^2) + ... (CFn / (1 + r)^n)"
3333
}
3434

35-
declare_id!("F3RzPAtBQvUAAdDHD8AsPKFhDB1H38SULNKTW39dYrw8");
35+
declare_id!("VAU1T7S5UuEHmMvXtXMVmpEoQtZ2ya7eRb7gcN47wDp");
3636

3737
#[program]
3838
pub mod conditional_vault {

0 commit comments

Comments
 (0)