# Enzyme 部署合約閱讀 ## Tree 17 directories, 76 files ### Graph ``` ├── scripts │ ├── config │ │ ├── Mainnet.ts │ │ └── Polygon.ts │ ├── persistent │ │ ├── AddressListRegistry.ts │ │ ├── Dispatcher.ts │ │ └── off-chain │ │ ├── FundValueCalculatorRouter.ts │ │ └── FundValueCalculatorUsdWrapper.ts │ └── release │ ├── core │ │ ├── ComptrollerLib.ts │ │ ├── FundDeployer.ts │ │ ├── PostDeployment.ts │ │ ├── PublishRelease.ts │ │ └── VaultLib.ts │ ├── extensions │ │ ├── ExternalPositionManager.ts │ │ ├── FeeManager.ts │ │ ├── IntegrationManager.ts │ │ ├── PolicyManager.ts │ │ ├── adapters │ │ │ ├── AaveAdapter.ts │ │ │ ├── CompoundAdapter.ts │ │ │ ├── ConvexCurveLpStakingAdapter.ts │ │ │ ├── CurveExchangeAdapter.ts │ │ │ ├── CurveLiquidityAaveAdapter.ts │ │ │ ├── CurveLiquidityAdapter.ts │ │ │ ├── CurveLiquiditySethAdapter.ts │ │ │ ├── CurveLiquidityStethAdapter.ts │ │ │ ├── IdleAdapter.ts │ │ │ ├── OlympusV2Adapter.ts │ │ │ ├── ParaSwapV5Adapter.ts │ │ │ ├── PoolTogetherV4Adapter.ts │ │ │ ├── SynthetixAdapter.ts │ │ │ ├── UniswapV2ExchangeAdapter.ts │ │ │ ├── UniswapV2LiquidityAdapter.ts │ │ │ ├── UniswapV3Adapter.ts │ │ │ ├── YearnVaultV2Adapter.ts │ │ │ └── ZeroExV2Adapter.ts │ │ ├── external-positions │ │ │ ├── CompoundDebtPositionLib.ts │ │ │ ├── CompoundDebtPositionParser.ts │ │ │ ├── ExternalPositionFactory.ts │ │ │ ├── UniswapV3LiquidityPositionLib.ts │ │ │ └── UniswapV3LiquidityPositionParser.ts │ │ ├── fees │ │ │ ├── EntranceRateBurnFee.ts │ │ │ ├── EntranceRateDirectFee.ts │ │ │ ├── ExitRateBurnFee.ts │ │ │ ├── ExitRateDirectFee.ts │ │ │ ├── ManagementFee.ts │ │ │ └── PerformanceFee.ts │ │ └── policies │ │ ├── AllowedAdapterIncomingAssetsPolicy.ts │ │ ├── AllowedAdaptersPolicy.ts │ │ ├── AllowedAssetsForRedemptionPolicy.ts │ │ ├── AllowedDepositRecipientsPolicy.ts │ │ ├── AllowedExternalPositionTypesPolicy.ts │ │ ├── AllowedSharesTransferRecipientsPolicy.ts │ │ ├── CumulativeSlippageTolerancePolicy.ts │ │ ├── MinAssetBalancesPostRedemptionPolicy.ts │ │ ├── MinMaxInvestmentPolicy.ts │ │ ├── OnlyRemoveDustExternalPositionPolicy.ts │ │ └── OnlyUntrackDustOrPricelessAssetsPolicy.ts │ ├── infrastructure │ │ ├── GasRelayPaymasterFactory.ts │ │ ├── GasRelayPaymasterLib.ts │ │ ├── ProtocolFeeReserve.ts │ │ ├── ProtocolFeeTracker.ts │ │ ├── ValueInterpreter.ts │ │ ├── prices │ │ │ ├── AavePriceFeed.ts │ │ │ ├── CompoundPriceFeed.ts │ │ │ ├── ConvexCurveLpStakingWrapperPriceFeed.ts │ │ │ ├── CurvePriceFeed.ts │ │ │ ├── IdlePriceFeed.ts │ │ │ ├── LidoStethPriceFeed.ts │ │ │ ├── PoolTogetherV4PriceFeed.ts │ │ │ ├── RevertingPriceFeed.ts │ │ │ ├── UniswapV2PoolPriceFeed.ts │ │ │ └── YearnVaultV2PriceFeed.ts │ │ └── staking-wrappers │ │ └── ConvexCurveLpStakingWrapperFactory.ts │ ├── off-chain │ │ └── FundValueCalculator.ts │ └── peripheral │ ├── DepositWrapper.ts │ └── UnpermissionedActionsWrapper.ts └── utils ├── config.ts └── helpers.ts ``` ### 計畫 - [x] utils - [x] persistent - [ ] release ## Note 部署順序 helpers Config Dispatcher - AddressListRegistry - FundValueCalculatorRouter - FundValueCalculatorUsdWrapper ### 部署順序(run code) 為什麼部署要順序->依賴項 部署的功能: 1. 傳入部署需要的參數,並且讓合約上鏈 - [x] config - [x] Dispatcher - [x] AddressListRegistry - [x] FundValueCalculatorRouter - [x] FundValueCalculatorUsdWrapper - [x] ExternalPositionFactory - [x] GasRelayPaymasterLib - [x] GasRelayPaymasterFactory - [x] FundDeployer - [x] PolicyManager - [x] ExternalPositionManager - [x] FeeManager - [ ] AavePriceFeed - [ ] CurvePriceFeed - [ ] CompoundPriceFeed - [ ] IdlePriceFeed - [ ] LidoStethPriceFeed - [ ] PoolTogetherV4PriceFeed - [ ] YearnVaultV2PriceFeed - [ ] ValueInterpreter - [ ] IntegrationManager - [ ] ProtocolFeeReserveLib - [ ] ProtocolFeeReserveProxy - [ ] ComptrollerLib - [ ] AaveAdapter - [ ] CompoundAdapter - [ ] ConvexCurveLpStakingWrapperFactory - [ ] ConvexCurveLpStakingAdapter - [ ] CurveExchangeAdapter - [ ] CurveLiquidityAaveAdapter - [ ] CurveLiquidityAdapter - [ ] CurveLiquiditySethAdapter - [ ] CurveLiquidityStethAdapter - [ ] IdleAdapter - [ ] OlympusV2Adapter - [ ] ParaSwapV5Adapter - [ ] PoolTogetherV4Adapter - [ ] SynthetixAdapter - [ ] UniswapV2ExchangeAdapter - [ ] UniswapV2LiquidityAdapter - [ ] UniswapV3Adapter - [ ] YearnVaultV2Adapter - [ ] ZeroExV2Adapter - [ ] CumulativeSlippageTolerancePolicy - [ ] EntranceRateBurnFee - [ ] EntranceRateDirectFee - [ ] ExitRateBurnFee - [ ] ExitRateDirectFee - [ ] ManagementFee - [ ] PerformanceFee - [ ] OnlyRemoveDustExternalPositionPolicy - [ ] OnlyUntrackDustOrPricelessAssetsPolicy - [ ] AllowedAdapterIncomingAssetsPolicy - [ ] AllowedAdaptersPolicy - [ ] AllowedAssetsForRedemptionPolicy - [ ] AllowedDepositRecipientsPolicy - [ ] AllowedExternalPositionTypesPolicy - [ ] AllowedSharesTransferRecipientsPolicy - [ ] MinAssetBalancesPostRedemptionPolicy - [ ] MinMaxInvestmentPolicy - [ ] ProtocolFeeTracker - [ ] CompoundDebtPositionLib - [ ] CompoundDebtPositionParser - [ ] UniswapV3LiquidityPositionLib - [ ] UniswapV3LiquidityPositionParser - [ ] VaultLib - [ ] ConvexCurveLpStakingWrapperPriceFeed - [ ] RevertingPriceFeed - [ ] UniswapV2PoolPriceFeed - [ ] FundValueCalculator - [ ] DepositWrapper - [ ] UnpermissionedActionsWrapper ### 部署用法 #### note 會用到 gsn: - FundDeployer
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up