diff --git a/constants.js b/constants.js index 920372b..d8b711f 100644 --- a/constants.js +++ b/constants.js @@ -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 = { @@ -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: { diff --git a/package.json b/package.json index a29ac60..5848638 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/stkatom-update-valset-weights.js b/stkatom-update-valset-weights.js index f6b8cba..386223a 100644 --- a/stkatom-update-valset-weights.js +++ b/stkatom-update-valset-weights.js @@ -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. }