Skip to content

Commit

Permalink
feat: deploy catalyst vaults
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed Mar 4, 2024
1 parent 3ca4c8e commit 5d392ff
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
4 changes: 2 additions & 2 deletions evm/script/DeployVaults.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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"))) {
Expand Down
37 changes: 36 additions & 1 deletion evm/script/config/config_vaults.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}

0 comments on commit 5d392ff

Please sign in to comment.