Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mode mainnet deploy #103

Merged
merged 8 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/bots/pyth-updater/src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { linea, neon, zkevm } from '@ionicprotocol/chains';
import { linea, mode, neon, zkevm } from '@ionicprotocol/chains';

import { pythConfig as lineaPythConfig } from './linea';
import { pythConfig as modePythConfig } from './mode';
import { pythConfig as neonPythConfig } from './neon';
import { pythConfig as zkevmPythConfig } from './zkevm';

export const chainIdToConfig = {
[neon.chainId]: neonPythConfig,
[linea.chainId]: lineaPythConfig,
[zkevm.chainId]: zkevmPythConfig,
[mode.chainId]: modePythConfig,
};
4 changes: 4 additions & 0 deletions packages/bots/pyth-updater/src/config/mode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { PythAssetConfig } from "../types";

Check failure on line 1 in packages/bots/pyth-updater/src/config/mode.ts

View workflow job for this annotation

GitHub Actions / lint-bots

Replace `"../types"` with `'../types'`

// TODO
export const pythConfig: PythAssetConfig[] = [];
147 changes: 146 additions & 1 deletion packages/chains/deployments/mode.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,150 @@
{
"name": "mode",
"chainId": "34443",
"contracts": {}
"contracts": {
"AddressesProvider": {
"address": "0xb0033576a9E444Dd801d5B69e1b63DBC459A6115"
},
"AddressesProvider_Implementation": {
"address": "0x8D5B096c99B26d07c7F8D8a8f25BE97427687F73"
},
"AddressesProvider_Proxy": {
"address": "0xb0033576a9E444Dd801d5B69e1b63DBC459A6115"
},
"AuthoritiesRegistry": {
"address": "0xC3cEc17c135d3C5d6BadC284AFF08f396447DaaC"
},
"AuthoritiesRegistry_Implementation": {
"address": "0x5d74800e977bFc8E14Eca28C9405BacbD091738E"
},
"AuthoritiesRegistry_Proxy": {
"address": "0xC3cEc17c135d3C5d6BadC284AFF08f396447DaaC"
},
"CErc20Delegate": {
"address": "0xb3788b3C421348E43beEa88551acC16d2f6a6332"
},
"CErc20PluginDelegate": {
"address": "0x726C7BC0c532aE239fb0ea8522E1F982C0AFF1D5"
},
"CErc20PluginRewardsDelegate": {
"address": "0x798Ee06Eb08151fadf5fFD07B7931B79985884D1"
},
"CErc20RewardsDelegate": {
"address": "0x6352b5231de62be60c7ADB8250b08CA9CCF7a9A5"
},
"CTokenFirstExtension": {
"address": "0x8C58ECb9C0050824177f4e1Cd71C335421d4aeA2"
},
"Comptroller": {
"address": "0x8b2B6a9dC8Cd73309Cef8d64920831d4C73F43a7"
},
"ComptrollerFirstExtension": {
"address": "0xE1A3006be645a80F206311d9f18C866c204bA02f"
},
"DefaultProxyAdmin": {
"address": "0x985a323A1CccA8Cd5fb8935590EE33FbcFE849d0"
},
"FeeDistributor": {
"address": "0x8ea3fc79D9E463464C5159578d38870b770f6E57"
},
"FeeDistributor_Implementation": {
"address": "0x9a0aF901CAE82f309F1047e1026F66A08C6FCEEC"
},
"FeeDistributor_Proxy": {
"address": "0x8ea3fc79D9E463464C5159578d38870b770f6E57"
},
"FixedNativePriceOracle": {
"address": "0x1D7669b6BDfdb83066dd7C0aDa4B630b25cBc28a"
},
"IonicFlywheelLensRouter": {
"address": "0xa6BA5F1164dc66F9C5bDCE33A6d2fC70bE8Da108"
},
"IonicLiquidator_Implementation": {
"address": "0x48bf6bd4B3d8b4E75863B5340b977E888BacE19a"
},
"JumpRateModel": {
"address": "0x21a455cEd9C79BC523D4E340c2B97521F4217817"
},
"LeveredPositionFactory": {
"address": "0x9B506A03bBFf2a842866b10BC6732da72640cd45"
},
"LeveredPositionFactoryFirstExtension": {
"address": "0x4e20eB2AF6bE30660323cB25204e071116737FEA"
},
"LeveredPositionFactorySecondExtension": {
"address": "0x2Afb71C0fe11A2315eba9A501a48700B83C19E33"
},
"LeveredPositionsLens": {
"address": "0x1DD45c9fB4C8CcB678781982774F006F24b8EaC1"
},
"LeveredPositionsLens_Implementation": {
"address": "0xD9a5677594694819F69D0907C3094EAb480F3a28"
},
"LeveredPositionsLens_Proxy": {
"address": "0x1DD45c9fB4C8CcB678781982774F006F24b8EaC1"
},
"LiquidatorsRegistry": {
"address": "0xc71B968C6C23e2723Bae32957D815C9bE3ca1b34"
},
"LiquidatorsRegistryExtension": {
"address": "0xdd7F712Af76074993F05C0d544331792997Bd39b"
},
"LiquidatorsRegistrySecondExtension": {
"address": "0x45A4a3eBb986083597Ac3B34ee2d7dcC3Be8c5C1"
},
"LooplessFlywheelBooster": {
"address": "0x1D89E5ba287E67AC0046D2218Be5fE1382cE47b4"
},
"MasterPriceOracle": {
"address": "0x2BAF3A2B667A5027a83101d218A9e8B73577F117"
},
"MasterPriceOracle_Implementation": {
"address": "0x4e7676B20B86Beea9c197bE756361680FaE3C9AE"
},
"MasterPriceOracle_Proxy": {
"address": "0x2BAF3A2B667A5027a83101d218A9e8B73577F117"
},
"OptimizedVaultsRegistry": {
"address": "0xA90f1c28F8Bc9C92113e54d0b7d007647Ee216a4"
},
"OptimizedVaultsRegistry_Implementation": {
"address": "0x2DDF3DdFE856D1A4E5DBcb324194E2a622AeD83C"
},
"OptimizedVaultsRegistry_Proxy": {
"address": "0xA90f1c28F8Bc9C92113e54d0b7d007647Ee216a4"
},
"PoolDirectory": {
"address": "0x39C353Cf9041CcF467A04d0e78B63d961E81458a"
},
"PoolDirectory_Implementation": {
"address": "0x20808c1A73737016bBBF8Acc6959A30446eA1D2d"
},
"PoolDirectory_Proxy": {
"address": "0x39C353Cf9041CcF467A04d0e78B63d961E81458a"
},
"PoolLens": {
"address": "0x431C87E08e2636733a945D742d25Ba77577ED480"
},
"PoolLensSecondary": {
"address": "0x7Ea7BB80F3bBEE9b52e6Ed3775bA06C9C80D4154"
},
"PythPriceOracle": {
"address": "0x52Ee6E740C1785412e51A381B0d87fb1692a7b23"
},
"PythPriceOracle_Implementation": {
"address": "0x13fD2701C3017bCc375Ad14Dd8433c6d7a441794"
},
"PythPriceOracle_Proxy": {
"address": "0x52Ee6E740C1785412e51A381B0d87fb1692a7b23"
},
"SimplePriceOracle": {
"address": "0x5f0369AA93f36cA6a8B5ed7aAc47bf9e76086D03"
},
"SimplePriceOracle_Implementation": {
"address": "0xcD4D7c8e2bA627684a9B18F7fe88239341D3ba5c"
},
"SimplePriceOracle_Proxy": {
"address": "0x5f0369AA93f36cA6a8B5ed7aAc47bf9e76086D03"
}
}
}
2 changes: 2 additions & 0 deletions packages/sdk/chainDeploy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@
import { deploy as deploy56, deployConfig as deployConfig56 } from "./mainnets/bsc";
import { deploy as deploy1, deployConfig as deployConfig1 } from "./mainnets/ethereum";
import { deploy as deploy59144, deployConfig as deployConfig59144 } from "./mainnets/linea";
import { deploy as deploy34443, deployConfig as deployConfig34443 } from "./mainnets/mode";
import { deploy as deploy245022934, deployConfig as deployConfig245022934 } from "./mainnets/neon";
import { deploy as deploy137, deployConfig as deployConfig137 } from "./mainnets/polygon";
import { deploy as deploy1101, deployConfig as deployConfig1101 } from "./mainnets/zkevm";
import { deploy as deploy97, deployConfig as deployConfig97 } from "./testnets/chapel";

export const chainDeployConfig: Record<number, { config: ChainDeployConfig; deployFunc: any }> = {

Check warning on line 13 in packages/sdk/chainDeploy/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

Unexpected any. Specify a different type
// mainnets
1: { config: deployConfig1, deployFunc: deploy1 },
56: { config: deployConfig56, deployFunc: deploy56 },
137: { config: deployConfig137, deployFunc: deploy137 },
42161: { config: deployConfig42161, deployFunc: deploy42161 },
34443: { config: deployConfig34443, deployFunc: deploy34443 },
// testnets
97: { config: deployConfig97, deployFunc: deploy97 },
245022934: { config: deployConfig245022934, deployFunc: deploy245022934 },
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/deployments/mode/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
34443
Loading
Loading