|
| 1 | +// SPDX-License-Identifier: UNLICENSED |
| 2 | +pragma solidity ^0.8.23; |
| 3 | + |
| 4 | +import {Bytecode} from "@gearbox-protocol/permissionless/contracts/interfaces/Types.sol"; |
| 5 | +import {UploadBytecode} from "@gearbox-protocol/permissionless/script/UploadBytecode.sol"; |
| 6 | + |
| 7 | +import {BoundedPriceFeed} from "../../contracts/oracles/BoundedPriceFeed.sol"; |
| 8 | +import {CompositePriceFeed} from "../../contracts/oracles/CompositePriceFeed.sol"; |
| 9 | +import {ZeroPriceFeed} from "../../contracts/oracles/ZeroPriceFeed.sol"; |
| 10 | +import {BPTStablePriceFeed} from "../../contracts/oracles/balancer/BPTStablePriceFeed.sol"; |
| 11 | +import {BPTWeightedPriceFeed} from "../../contracts/oracles/balancer/BPTWeightedPriceFeed.sol"; |
| 12 | +import {CurveCryptoLPPriceFeed} from "../../contracts/oracles/curve/CurveCryptoLPPriceFeed.sol"; |
| 13 | +import {CurveStableLPPriceFeed} from "../../contracts/oracles/curve/CurveStableLPPriceFeed.sol"; |
| 14 | +import {CurveTWAPPriceFeed} from "../../contracts/oracles/curve/CurveTWAPPriceFeed.sol"; |
| 15 | +import {CurveUSDPriceFeed} from "../../contracts/oracles/curve/CurveUSDPriceFeed.sol"; |
| 16 | +import {ERC4626PriceFeed} from "../../contracts/oracles/erc4626/ERC4626PriceFeed.sol"; |
| 17 | +import {KodiakIslandPriceFeed} from "../../contracts/oracles/kodiak/KodiakIslandPriceFeed.sol"; |
| 18 | +import {WstETHPriceFeed} from "../../contracts/oracles/lido/WstETHPriceFeed.sol"; |
| 19 | +import {MellowLRTPriceFeed} from "../../contracts/oracles/mellow/MellowLRTPriceFeed.sol"; |
| 20 | +import {PendleTWAPPTPriceFeed} from "../../contracts/oracles/pendle/PendleTWAPPTPriceFeed.sol"; |
| 21 | +import {YearnPriceFeed} from "../../contracts/oracles/yearn/YearnPriceFeed.sol"; |
| 22 | + |
| 23 | +contract Upload_2025_10_21_Oracles is UploadBytecode { |
| 24 | + function _getContracts() internal pure override returns (Bytecode[] memory bytecodes) { |
| 25 | + bytecodes = new Bytecode[](15); |
| 26 | + bytecodes[0].contractType = "PRICE_FEED::BOUNDED"; |
| 27 | + bytecodes[0].version = 3_11; |
| 28 | + bytecodes[0].initCode = type(BoundedPriceFeed).creationCode; |
| 29 | + bytecodes[0].source = |
| 30 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/BoundedPriceFeed.sol"; |
| 31 | + |
| 32 | + bytecodes[1].contractType = "PRICE_FEED::COMPOSITE"; |
| 33 | + bytecodes[1].version = 3_11; |
| 34 | + bytecodes[1].initCode = type(CompositePriceFeed).creationCode; |
| 35 | + bytecodes[1].source = |
| 36 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/CompositePriceFeed.sol"; |
| 37 | + |
| 38 | + bytecodes[2].contractType = "PRICE_FEED::ZERO"; |
| 39 | + bytecodes[2].version = 3_11; |
| 40 | + bytecodes[2].initCode = type(ZeroPriceFeed).creationCode; |
| 41 | + bytecodes[2].source = |
| 42 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/ZeroPriceFeed.sol"; |
| 43 | + |
| 44 | + bytecodes[3].contractType = "PRICE_FEED::BALANCER_STABLE"; |
| 45 | + bytecodes[3].version = 3_11; |
| 46 | + bytecodes[3].initCode = type(BPTStablePriceFeed).creationCode; |
| 47 | + bytecodes[3].source = |
| 48 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/balancer/BPTStablePriceFeed.sol"; |
| 49 | + |
| 50 | + bytecodes[4].contractType = "PRICE_FEED::BALANCER_WEIGHTED"; |
| 51 | + bytecodes[4].version = 3_11; |
| 52 | + bytecodes[4].initCode = type(BPTWeightedPriceFeed).creationCode; |
| 53 | + bytecodes[4].source = |
| 54 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/balancer/BPTWeightedPriceFeed.sol"; |
| 55 | + |
| 56 | + bytecodes[5].contractType = "PRICE_FEED::CURVE_CRYPTO"; |
| 57 | + bytecodes[5].version = 3_11; |
| 58 | + bytecodes[5].initCode = type(CurveCryptoLPPriceFeed).creationCode; |
| 59 | + bytecodes[5].source = |
| 60 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/curve/CurveCryptoLPPriceFeed.sol"; |
| 61 | + |
| 62 | + bytecodes[6].contractType = "PRICE_FEED::CURVE_STABLE"; |
| 63 | + bytecodes[6].version = 3_11; |
| 64 | + bytecodes[6].initCode = type(CurveStableLPPriceFeed).creationCode; |
| 65 | + bytecodes[6].source = |
| 66 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/curve/CurveStableLPPriceFeed.sol"; |
| 67 | + |
| 68 | + bytecodes[7].contractType = "PRICE_FEED::CURVE_TWAP"; |
| 69 | + bytecodes[7].version = 3_11; |
| 70 | + bytecodes[7].initCode = type(CurveTWAPPriceFeed).creationCode; |
| 71 | + bytecodes[7].source = |
| 72 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/curve/CurveTWAPPriceFeed.sol"; |
| 73 | + |
| 74 | + bytecodes[8].contractType = "PRICE_FEED::CURVE_USD"; |
| 75 | + bytecodes[8].version = 3_11; |
| 76 | + bytecodes[8].initCode = type(CurveUSDPriceFeed).creationCode; |
| 77 | + bytecodes[8].source = |
| 78 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/curve/CurveUSDPriceFeed.sol"; |
| 79 | + |
| 80 | + bytecodes[9].contractType = "PRICE_FEED::ERC4626"; |
| 81 | + bytecodes[9].version = 3_11; |
| 82 | + bytecodes[9].initCode = type(ERC4626PriceFeed).creationCode; |
| 83 | + bytecodes[9].source = |
| 84 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/erc4626/ERC4626PriceFeed.sol"; |
| 85 | + |
| 86 | + bytecodes[10].contractType = "PRICE_FEED::KODIAK_ISLAND"; |
| 87 | + bytecodes[10].version = 3_11; |
| 88 | + bytecodes[10].initCode = type(KodiakIslandPriceFeed).creationCode; |
| 89 | + bytecodes[10].source = |
| 90 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/kodiak/KodiakIslandPriceFeed.sol"; |
| 91 | + |
| 92 | + bytecodes[11].contractType = "PRICE_FEED::WSTETH"; |
| 93 | + bytecodes[11].version = 3_11; |
| 94 | + bytecodes[11].initCode = type(WstETHPriceFeed).creationCode; |
| 95 | + bytecodes[11].source = |
| 96 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/lido/WstETHPriceFeed.sol"; |
| 97 | + |
| 98 | + bytecodes[12].contractType = "PRICE_FEED::MELLOW_LRT"; |
| 99 | + bytecodes[12].version = 3_11; |
| 100 | + bytecodes[12].initCode = type(MellowLRTPriceFeed).creationCode; |
| 101 | + bytecodes[12].source = |
| 102 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/mellow/MellowLRTPriceFeed.sol"; |
| 103 | + |
| 104 | + bytecodes[13].contractType = "PRICE_FEED::PENDLE_PT_TWAP"; |
| 105 | + bytecodes[13].version = 3_11; |
| 106 | + bytecodes[13].initCode = type(PendleTWAPPTPriceFeed).creationCode; |
| 107 | + bytecodes[13].source = |
| 108 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/pendle/PendleTWAPPTPriceFeed.sol"; |
| 109 | + |
| 110 | + bytecodes[14].contractType = "PRICE_FEED::YEARN"; |
| 111 | + bytecodes[14].version = 3_11; |
| 112 | + bytecodes[14].initCode = type(YearnPriceFeed).creationCode; |
| 113 | + bytecodes[14].source = |
| 114 | + "https://github.com/Gearbox-protocol/oracles-v3/blob/64a386a25d24ad5984926a3f624c93c7c32c92c9/contracts/oracles/yearn/YearnPriceFeed.sol"; |
| 115 | + } |
| 116 | +} |
0 commit comments