Skip to content

Commit c58b9eb

Browse files
authored
add ppv2 and mint gov to deployable programs (#444)
1 parent 8e4fa02 commit c58b9eb

3 files changed

Lines changed: 84 additions & 9 deletions

File tree

.github/workflows/deploy-programs.yaml

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ on:
88
required: true
99
type: choice
1010
options:
11-
- all
1211
- conditional_vault_v4
1312
- futarchy_v6
1413
- launchpad_v6
1514
- price_based_performance_package_v6
1615
- launchpad_v7
1716
- bid_wall
1817
- liquidation
18+
- mint_governor
19+
- performance_package_v2
1920
priority-fee:
2021
description: "Priority fee in microlamports"
2122
required: true
@@ -24,7 +25,7 @@ on:
2425

2526
jobs:
2627
conditional-vault-v4:
27-
if: inputs.program == 'conditional_vault_v4' || inputs.program == 'all'
28+
if: inputs.program == 'conditional_vault_v4'
2829
uses: ./.github/workflows/reusable-build.yaml
2930
with:
3031
program: "conditional_vault"
@@ -43,7 +44,7 @@ jobs:
4344
MAINNET_MULTISIG_VAULT: ${{ secrets.MAINNET_MULTISIG_VAULT }}
4445

4546
liquidation:
46-
if: inputs.program == 'liquidation' || inputs.program == 'all'
47+
if: inputs.program == 'liquidation'
4748
uses: ./.github/workflows/reusable-build.yaml
4849
with:
4950
program: "liquidation"
@@ -62,7 +63,7 @@ jobs:
6263
MAINNET_MULTISIG_VAULT: ${{ secrets.MAINNET_MULTISIG_VAULT }}
6364

6465
futarchy-v6:
65-
if: inputs.program == 'futarchy_v6' || inputs.program == 'all'
66+
if: inputs.program == 'futarchy_v6'
6667
uses: ./.github/workflows/reusable-build.yaml
6768
with:
6869
program: "futarchy"
@@ -81,7 +82,7 @@ jobs:
8182
MAINNET_MULTISIG_VAULT: ${{ secrets.MAINNET_MULTISIG_VAULT }}
8283

8384
launchpad-v6:
84-
if: inputs.program == 'launchpad_v6' || inputs.program == 'all'
85+
if: inputs.program == 'launchpad_v6'
8586
uses: ./.github/workflows/reusable-build.yaml
8687
with:
8788
program: "launchpad"
@@ -100,7 +101,7 @@ jobs:
100101
MAINNET_MULTISIG_VAULT: ${{ secrets.MAINNET_MULTISIG_VAULT }}
101102

102103
price-based-performance-package-v6:
103-
if: inputs.program == 'price_based_performance_package_v6' || inputs.program == 'all'
104+
if: inputs.program == 'price_based_performance_package_v6'
104105
uses: ./.github/workflows/reusable-build.yaml
105106
with:
106107
program: "price_based_performance_package"
@@ -119,7 +120,7 @@ jobs:
119120
MAINNET_MULTISIG_VAULT: ${{ secrets.MAINNET_MULTISIG_VAULT }}
120121

121122
launchpad-v7:
122-
if: inputs.program == 'launchpad_v7' || inputs.program == 'all'
123+
if: inputs.program == 'launchpad_v7'
123124
uses: ./.github/workflows/reusable-build.yaml
124125
with:
125126
program: "launchpad_v7"
@@ -138,7 +139,7 @@ jobs:
138139
MAINNET_MULTISIG_VAULT: ${{ secrets.MAINNET_MULTISIG_VAULT }}
139140

140141
bid-wall:
141-
if: inputs.program == 'bid_wall' || inputs.program == 'all'
142+
if: inputs.program == 'bid_wall'
142143
uses: ./.github/workflows/reusable-build.yaml
143144
with:
144145
program: "bid_wall"
@@ -150,6 +151,44 @@ jobs:
150151
use-squads: true
151152
features: "production"
152153
priority-fee: ${{ inputs.priority-fee }}
154+
secrets:
155+
MAINNET_SOLANA_DEPLOY_URL: ${{ secrets.MAINNET_SOLANA_DEPLOY_URL }}
156+
MAINNET_DEPLOYER_KEYPAIR: ${{ secrets.MAINNET_DEPLOYER_KEYPAIR }}
157+
MAINNET_MULTISIG: ${{ secrets.MAINNET_MULTISIG }}
158+
MAINNET_MULTISIG_VAULT: ${{ secrets.MAINNET_MULTISIG_VAULT }}
159+
160+
mint-governor:
161+
if: inputs.program == 'mint_governor'
162+
uses: ./.github/workflows/reusable-build.yaml
163+
with:
164+
program: "mint_governor"
165+
override-program-id: "gvnr27cVeyW3AVf3acL7VCJ5WjGAphytnsgcK1feHyH"
166+
network: "mainnet"
167+
deploy: true
168+
upload_idl: true
169+
verify: true
170+
use-squads: true
171+
features: "production"
172+
priority-fee: ${{ inputs.priority-fee }}
173+
secrets:
174+
MAINNET_SOLANA_DEPLOY_URL: ${{ secrets.MAINNET_SOLANA_DEPLOY_URL }}
175+
MAINNET_DEPLOYER_KEYPAIR: ${{ secrets.MAINNET_DEPLOYER_KEYPAIR }}
176+
MAINNET_MULTISIG: ${{ secrets.MAINNET_MULTISIG }}
177+
MAINNET_MULTISIG_VAULT: ${{ secrets.MAINNET_MULTISIG_VAULT }}
178+
179+
performance-package-v2:
180+
if: inputs.program == 'performance_package_v2'
181+
uses: ./.github/workflows/reusable-build.yaml
182+
with:
183+
program: "performance_package_v2"
184+
override-program-id: "pPV2pfrxnmstSb9j7kEeCLny5BGj6SNwCWGd6xbGGzz"
185+
network: "mainnet"
186+
deploy: true
187+
upload_idl: true
188+
verify: true
189+
use-squads: true
190+
features: "production"
191+
priority-fee: ${{ inputs.priority-fee }}
153192
secrets:
154193
MAINNET_SOLANA_DEPLOY_URL: ${{ secrets.MAINNET_SOLANA_DEPLOY_URL }}
155194
MAINNET_DEPLOYER_KEYPAIR: ${{ secrets.MAINNET_DEPLOYER_KEYPAIR }}

.github/workflows/generate-verifiable-builds.yaml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,38 @@ jobs:
128128
uses: EndBug/add-and-commit@v9.1.4
129129
with:
130130
default_author: github_actions
131-
message: 'Update liquidation verifiable build'
131+
message: 'Update liquidation verifiable build'
132+
generate-verifiable-mint-governor:
133+
runs-on: ubuntu-22.04
134+
steps:
135+
- uses: actions/checkout@v4
136+
- uses: metadaoproject/anchor-verifiable-build@v0.4
137+
with:
138+
program: mint_governor
139+
anchor-version: '0.29.0'
140+
solana-cli-version: '1.17.31'
141+
features: 'production'
142+
- run: 'git pull --rebase'
143+
- run: cp target/deploy/mint_governor.so ./verifiable-builds
144+
- name: Commit verifiable build back to mainline
145+
uses: EndBug/add-and-commit@v9.1.4
146+
with:
147+
default_author: github_actions
148+
message: 'Update mint_governor verifiable build'
149+
generate-verifiable-performance-package-v2:
150+
runs-on: ubuntu-22.04
151+
steps:
152+
- uses: actions/checkout@v4
153+
- uses: metadaoproject/anchor-verifiable-build@v0.4
154+
with:
155+
program: performance_package_v2
156+
anchor-version: '0.29.0'
157+
solana-cli-version: '1.17.31'
158+
features: 'production'
159+
- run: 'git pull --rebase'
160+
- run: cp target/deploy/performance_package_v2.so ./verifiable-builds
161+
- name: Commit verifiable build back to mainline
162+
uses: EndBug/add-and-commit@v9.1.4
163+
with:
164+
default_author: github_actions
165+
message: 'Update performance_package_v2 verifiable build'

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Programs for unruggable capital formation and market-driven governance.
1010
| ----------------- | ---- | -------------------------------------------- |
1111
| launchpad | v0.7.0 | moontUzsdepotRGe5xsfip7vLPTJnVuafqdUWexVnPM |
1212
| bid_wall | v0.7.0 | WALL8ucBuUyL46QYxwYJjidaFYhdvxUFrgvBxPshERx |
13+
| mint_governor | v0.7.0 | gvnr27cVeyW3AVf3acL7VCJ5WjGAphytnsgcK1feHyH |
14+
| performance_package_v2 | v0.7.0 | pPV2pfrxnmstSb9j7kEeCLny5BGj6SNwCWGd6xbGGzz |
1315
| liquidation | v0.1.0 | LiQnowFbFQdYyZhF4pUbpsrZCjxRTQ1upKJxZ2VXjde |
1416
| futarchy | v0.6.0 | FUTARELBfJfQ8RDGhg1wdhddq1odMAJUePHFuBYfUxKq |
1517
| launchpad | v0.6.0 | MooNyh4CBUYEKyXVnjGYQ8mEiJDpGvJMdvrZx1iGeHV |

0 commit comments

Comments
 (0)