Skip to content

Commit ca6bac3

Browse files
committed
update
1 parent 8f005df commit ca6bac3

3 files changed

Lines changed: 49 additions & 2 deletions

File tree

packages/solv/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @gabrielhicks/solv
22

3+
## 5.6.38
4+
5+
### Better Jag Snaps, DZ update, MEV commission
6+
7+
do it all in solv4.config.json
8+
39
## 5.6.37
410

511
### Better Jag Snaps, DZ update, MEV commission

packages/solv/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gabrielhicks/solv",
3-
"version": "5.6.37",
3+
"version": "5.6.38",
44
"description": "Solana Validator CLI SOLV",
55
"main": "dist/index.js",
66
"type": "module",

packages/solv/src/cli/update/index.ts

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export type UpdateOptions = {
7979
service: boolean
8080
jagsnap: boolean
8181
dz: boolean
82+
configOnce: boolean
8283
}
8384

8485
export const updateCommands = (config: DefaultConfigType) => {
@@ -130,6 +131,7 @@ export const updateCommands = (config: DefaultConfigType) => {
130131
.option('-f, --firewall', 'Update Firewall', false)
131132
.option('--migrate-config', 'Migrate Solv Config', false)
132133
.option('--config', 'Update Solv Config Default Solana Version', false)
134+
.option('--configOnce', 'Update Solv Config ONCE', false)
133135
.option('--auto', 'Auto Update', false)
134136
.option('--mod', 'Modified Versions', false)
135137
.option('--startup', 'Start up Script', false)
@@ -205,12 +207,51 @@ export const updateCommands = (config: DefaultConfigType) => {
205207
JAG_SNAPSHOTS: false,
206208
JAG_REGION: '',
207209
CHRONY_LOCATION: '',
208-
MEV_COMMISSION: 1000,
210+
MEV_COMMISSION: 0,
209211
}
210212

211213
await updateDefaultConfig(newConfigBody)
212214
// --- End of Temporarily!!
213215
}
216+
if (options.configOnce) {
217+
await updateDefaultConfig({
218+
TESTNET_SOLANA_VERSION: VERSION_TESTNET,
219+
MAINNET_SOLANA_VERSION: VERSION_MAINNET,
220+
MOD: false,
221+
XDP: false,
222+
ZERO_COPY: false,
223+
JAG_SNAPSHOTS: false,
224+
JAG_REGION: '',
225+
CHRONY_LOCATION: '',
226+
MEV_COMMISSION: 0,
227+
})
228+
if (isJito) {
229+
const jitoVersion = isTestnet
230+
? VERSION_JITO_TESTNET
231+
: VERSION_JITO_MAINNET
232+
await updateJitoSolvConfig({
233+
version: jitoVersion,
234+
tag: `v${jitoVersion}`,
235+
commissionBps: config.MEV_COMMISSION,
236+
})
237+
}
238+
if (isBam) {
239+
const bamVersion = isTestnet
240+
? VERSION_BAM_TESTNET
241+
: VERSION_BAM_MAINNET
242+
await updateJitoSolvConfig({
243+
version: bamVersion,
244+
tag: `v${bamVersion}`,
245+
commissionBps: config.MEV_COMMISSION,
246+
})
247+
}
248+
console.log(
249+
chalk.green(
250+
'✔️ Updated Solv Config Default Solana Version\n\n You can now run `solv i` to install the latest version',
251+
),
252+
)
253+
return
254+
}
214255
if (options.config) {
215256
await updateDefaultConfig({
216257
TESTNET_SOLANA_VERSION: VERSION_TESTNET,

0 commit comments

Comments
 (0)