Skip to content

Commit

Permalink
add osmosis
Browse files Browse the repository at this point in the history
  • Loading branch information
puneet2019 committed Nov 16, 2023
1 parent 717cd85 commit ad9cd37
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
51 changes: 51 additions & 0 deletions constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,48 @@ export const pstakeHostValsetConfigs = {
max: 0.2,
weight: 0.1
}
},
osmosis: {
filename: "data_osmosis.json",
valconsPrefix: "osmovalcons",
denyListVals: [
// {name: "", valAddr: ""},
],
commission: {
min: 0.05,
max: 0.1,
weight: 0.25
},
uptime: {
min: 0.95,
max: 1,
weight: 0.15,
lastNDays: 30, //should be 90
blocksWindow: 10000,
},
gov: {
lastNDays: 180,
min: 0.6,
max: 1,
weight: 0.4,
maxTxPage: 1,
},
votingPower: {
min: 0.0005,
max: 0.05,
weight: 0.1
},
blocksMissed: {
min: 0,
max: 9500,
},
timeInActiveSet: {
lastNDays: 180,
},
slashingEvents: {
lastNDays: 180,
max: 0
}
}
}
export const chainInfos = {
Expand All @@ -90,6 +132,15 @@ export const chainInfos = {
gasPrice: GasPrice.fromString("0.005uatom"),
pstakeConfig: pstakeHostValsetConfigs.cosmos
},
osmosis: {
rpc: "https://r-sub_osmosis--atnqqmfffe9qgz02sjhwcnk35nu4vil6.gw.notionalapi.com:443",
// rpc: "https://rpc.osmosis-1.audit.one:443",
chainID: "osmosis-4",
prefix: "osmo",
feeDenom: "uosmo",
gasPrice: GasPrice.fromString("0.005uosmo"),
pstakeConfig: pstakeHostValsetConfigs.osmosis
},

// TESTNETS
persistenceTestnet: {
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"scripts": {
"update-stkatom-valset-weights": "FN='GET_DATA' HOST_CHAIN='cosmos' NODE_OPTIONS='--experimental-specifier-resolution=node' node stkatom-update-valset-weights.js",
"tx-update-stkatom-valset-weights": "FN='DO_TX' HOST_CHAIN='cosmos' NODE_OPTIONS='--experimental-specifier-resolution=node' node stkatom-update-valset-weights.js",
"update-stkosmosis-valset-weights": "FN='GET_DATA' HOST_CHAIN='osmosis' NODE_OPTIONS='--experimental-specifier-resolution=node' node stkatom-update-valset-weights.js",
"tx-update-stkosmosis-valset-weights": "FN='DO_TX' HOST_CHAIN='osmosis' NODE_OPTIONS='--experimental-specifier-resolution=node' node stkatom-update-valset-weights.js",
"print-test": "node print-test.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
2 changes: 2 additions & 0 deletions stkatom-update-valset-weights.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,8 @@ async function UpdateValsetWeights() {
return await Fn(chainInfos.persistenceTestnet, chainInfos.cosmosTestnet, addresses.liquidStakeIBCTestnet, LIQUIDSTAKEIBC_ADMIN_TESTNET)
} else if (HOST_CHAIN === HOST_CHAINS.cosmos) {
return await Fn(chainInfos.persistence, chainInfos.cosmos, addresses.liquidStakeIBC, LIQUIDSTAKEIBC_ADMIN)
} else if (HOST_CHAIN === HOST_CHAINS.osmosis) {
return await Fn(chainInfos.persistence, chainInfos.osmosis, addresses.liquidStakeIBC, LIQUIDSTAKEIBC_ADMIN)
}
// add more chain running on tm v34.
}
Expand Down

0 comments on commit ad9cd37

Please sign in to comment.