Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
halaprix committed Nov 12, 2024
1 parent 4a71674 commit dc7acd1
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 8 deletions.
4 changes: 4 additions & 0 deletions packages/deploy-configurations/configs/arbitrum.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1082,5 +1082,9 @@ export const config: SystemConfig = {
name: 'AdaptiveCurveIrm',
address: '0x0000000000000000000000000000000000000000',
},
Wrapper: {
name: 'Wrapper',
address: ADDRESS_ZERO,
},
},
}
4 changes: 4 additions & 0 deletions packages/deploy-configurations/configs/base.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1603,5 +1603,9 @@ export const config: SystemConfig = {
name: 'AdaptiveCurveIrm',
address: '0x46415998764C29aB2a25CbeA6254146D50D22687',
},
Wrapper: {
name: 'Wrapper',
address: ADDRESS_ZERO,
},
},
}
4 changes: 4 additions & 0 deletions packages/deploy-configurations/configs/goerli.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1259,5 +1259,9 @@ export const config: SystemConfig = {
name: 'AdaptiveCurveIrm',
address: '0xC71F367DABb23E85E5FC6FdaD1a28F2240326b87',
},
Wrapper: {
name: 'Wrapper',
address: ADDRESS_ZERO,
},
},
}
4 changes: 4 additions & 0 deletions packages/deploy-configurations/configs/hardhat.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1467,5 +1467,9 @@ export const config: SystemConfig = {
name: 'AdaptiveCurveIrm',
address: ADDRESS_ZERO,
},
Wrapper: {
name: 'Wrapper',
address: ADDRESS_ZERO,
},
},
}
4 changes: 4 additions & 0 deletions packages/deploy-configurations/configs/local.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1420,5 +1420,9 @@ export const config: SystemConfig = {
name: 'AdaptiveCurveIrm',
address: ADDRESS_ZERO,
},
Wrapper: {
name: 'Wrapper',
address: ADDRESS_ZERO,
},
},
}
4 changes: 4 additions & 0 deletions packages/deploy-configurations/configs/optimism.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1305,5 +1305,9 @@ export const config: SystemConfig = {
name: 'AdaptiveCurveIrm',
address: ADDRESS_ZERO,
},
Wrapper: {
name: 'Wrapper',
address: ADDRESS_ZERO,
},
},
}
4 changes: 4 additions & 0 deletions packages/deploy-configurations/configs/sepolia.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1263,5 +1263,9 @@ export const config: SystemConfig = {
name: 'AdaptiveCurveIrm',
address: ADDRESS_ZERO,
},
Wrapper: {
name: 'Wrapper',
address: ADDRESS_ZERO,
},
},
}
4 changes: 4 additions & 0 deletions packages/deploy-configurations/configs/tenderly.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1469,5 +1469,9 @@ export const config: SystemConfig = {
name: 'AdaptiveCurveIrm',
address: ADDRESS_ZERO,
},
Wrapper: {
name: 'Wrapper',
address: ADDRESS_ZERO,
},
},
}
4 changes: 4 additions & 0 deletions packages/deploy-configurations/configs/test.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1526,5 +1526,9 @@ export const config: SystemConfig = {
name: 'AdaptiveCurveIrm',
address: ADDRESS_ZERO,
},
Wrapper: {
name: 'Wrapper',
address: ADDRESS_ZERO,
},
},
}
8 changes: 8 additions & 0 deletions packages/deploy-configurations/configs/test/arbitrum.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ export const config: SystemConfig = {
name: 'MORPHO',
address: ADDRESS_ZERO,
},
MORPHO_LEGACY: {
name: 'MORPHO_LEGACY',
address: ADDRESS_ZERO,
},
OSETH: {
name: 'OSETH',
address: ADDRESS_ZERO,
Expand Down Expand Up @@ -930,5 +934,9 @@ export const config: SystemConfig = {
name: 'AdaptiveCurveIrm',
address: ADDRESS_ZERO,
},
Wrapper: {
name: 'Wrapper',
address: ADDRESS_ZERO,
},
},
}
4 changes: 4 additions & 0 deletions packages/deploy-configurations/configs/test/mainnet.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1334,5 +1334,9 @@ export const config: SystemConfig = {
name: 'AdaptiveCurveIrm',
address: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
},
Wrapper: {
name: 'Wrapper',
address: ADDRESS_ZERO,
},
},
}
4 changes: 4 additions & 0 deletions packages/deploy-configurations/configs/test/optimism.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1229,5 +1229,9 @@ export const config: SystemConfig = {
name: 'AdaptiveCurveIrm',
address: ADDRESS_ZERO,
},
Wrapper: {
name: 'Wrapper',
address: ADDRESS_ZERO,
},
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Automation } from './automation'
import { Common } from './common'
import { Core, CoreMainnetOnly, USwapContract } from './core'
import { MakerProtocol, MakerProtocolJoins, MakerProtocolPips } from './maker-protocol'
import { MorphoBlueProtocol, Wrapper } from './morpho-blue'
import { MorphoBlueProtocol } from './morpho-blue'
import { SparkProtocol } from './spark-protocol'
import { TestContractNames } from './test'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
MakerProtocolJoinContracts,
MakerProtocolPipContracts,
} from './maker-protocol'
import { MorphoBlueProtocolContracts, OptionalBlueProtocolContracts } from './morpho-blue'
import { MorphoBlueProtocolContracts } from './morpho-blue'
import { OptionalSparkProtocolContracts } from './spark-protocol'
import { TestContracts } from './test'

Expand All @@ -41,6 +41,6 @@ export type SystemConfig = {
spark: OptionalSparkProtocolContracts
automation: AutomationContracts
ajna: AjnaProtocolContracts
morphoblue: MorphoBlueProtocolContracts & OptionalBlueProtocolContracts
morphoblue: MorphoBlueProtocolContracts
test?: TestContracts
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { ConfigEntry } from './config-entries'

export type MorphoBlueProtocol = 'MorphoBlue' | 'AdaptiveCurveIrm'
export type Wrapper = 'Wrapper'
export type MorphoBlueProtocol = 'MorphoBlue' | 'AdaptiveCurveIrm' | 'Wrapper'

export type MorphoBlueProtocolContracts = Record<MorphoBlueProtocol, ConfigEntry>

export type OptionalBlueProtocolContracts = Partial<Record<Wrapper, ConfigEntry>>
export type MorphoBlueProtocolContracts = Record<MorphoBlueProtocol, ConfigEntry>

0 comments on commit dc7acd1

Please sign in to comment.