From 5d392ff679bd4b333183b97a7d909d9aef48e1d0 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 4 Mar 2024 13:48:23 +0100 Subject: [PATCH] feat: deploy catalyst vaults --- evm/script/DeployVaults.s.sol | 4 +-- evm/script/config/config_vaults.json | 37 +++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/evm/script/DeployVaults.s.sol b/evm/script/DeployVaults.s.sol index adc25fbd..eb7e57c2 100644 --- a/evm/script/DeployVaults.s.sol +++ b/evm/script/DeployVaults.s.sol @@ -54,7 +54,7 @@ contract DeployVaults is MultiChainDeployer { pathToVaultConfig = string.concat(pathRoot, "/script/config/config_vaults.json"); config_vault = vm.readFile(pathToVaultConfig); - string memory pathToChainConfig = string.concat(pathRoot, "/lib/catalyst-channels-list/src/config/chains.json"); + string memory pathToChainConfig = string.concat(pathRoot, "/lib/catalyst-channel-lists/src/config/chains.json"); config_chain = vm.readFile(pathToChainConfig); string memory pathToInterfaceConfig = string.concat(pathRoot, "/script/config/config_interfaces.json"); @@ -102,7 +102,7 @@ contract DeployVaults is MultiChainDeployer { } address CCI = vm.parseJsonAddress(config_vault, string.concat(".", pool, ".", chain_name, ".cci")); string memory cci_version = vm.parseJsonString(config_vault, string.concat(".", pool, ".cci_version")); - if (CCI == address(0)) CCI = vm.parseJsonAddress(config_interface, string.concat(".", chain_name, ".", cci_version, ".interface")); + if (CCI == address(0)) CCI = vm.parseJsonAddress(config_interface, string.concat(".", cci_version, ".", chain_name, ".interface")); uint256[] memory weights = vm.parseJsonUintArray(config_vault, string.concat(".", pool, ".", chain_name, ".weights")); uint64 amp = 10**18; if (vm.keyExists(config_vault, string.concat(".", pool, ".amplification"))) { diff --git a/evm/script/config/config_vaults.json b/evm/script/config/config_vaults.json index 077404aa..ba96a923 100644 --- a/evm/script/config/config_vaults.json +++ b/evm/script/config/config_vaults.json @@ -1,3 +1,38 @@ { - + "WormholeSepoliaOptimismArbitrum": { + "cci_version": "Wormhole", + "sepolia": { + "cci": "0x169e7e77e463ffe86b30afd1605a09a632bea5b0", + "address": "0xbd529ff730dae029fa85b38d98d6046721215fa4", + "weights": [ + 1 + ], + "fee": 500000000000000, + "tokens": { + "WGAS": 10000000000000000 + } + }, + "optimismsepolia": { + "cci": "0x2603e874d589373a0c4766808b93e3d4b63164c8", + "address": "0xbd529ff730dae029fa85b38d98d6046721215fa4", + "weights": [ + 1 + ], + "fee": 500000000000000, + "tokens": { + "WGAS": 10000000000000000 + } + }, + "arbitrumsepolia": { + "cci": "0xf779d8e1b07f1e3df141a81c4f1f7d65c0a38611", + "address": "0xbd529ff730dae029fa85b38d98d6046721215fa4", + "weights": [ + 1 + ], + "fee": 500000000000000, + "tokens": { + "WGAS": 10000000000000000 + } + } + } } \ No newline at end of file