├── .gitignore ├── LICENSE ├── README.md ├── contracts ├── AToken.sol ├── BToken.sol ├── Carousel │ ├── Carousel.sol │ └── CarouselFactory.sol ├── ChainlinkTrigger.sol ├── ChainlinkTriggerFactory.sol ├── Controllers │ └── ControllerPeggedAssetV2.sol ├── CustomERC1155 │ ├── ERC1155.sol │ └── ERC1155Supply.sol ├── FixedPriceAggregator.sol ├── MockChainlinkOracle.sol ├── SemiFungibleVault.sol ├── TimeLock.sol ├── VaultFactoryV2.sol ├── VaultV2.sol ├── abstract │ └── BaseTrigger.sol ├── interfaces │ ├── IBaseTrigger.sol │ ├── ICarousel.sol │ ├── IChainlinkTrigger.sol │ ├── IChainlinkTriggerFactory.sol │ ├── IControllerPeggedAssetV2.sol │ ├── ICostModel.sol │ ├── IDripDecayModel.sol │ ├── IERC20.sol │ ├── IManager.sol │ ├── ISemiFungibleVault.sol │ ├── ISet.sol │ ├── ITrigger.sol │ ├── IUMATrigger.sol │ ├── IUMATriggerFactory.sol │ ├── IVaultFactoryV2.sol │ ├── IVaultV2.sol │ ├── IWETH.sol │ └── OptimisticOracleV2Interface.sol ├── libraries │ ├── CarouselCreator.sol │ └── VaultV2Creator.sol ├── structs │ ├── Configs.sol │ ├── StateEnums.sol │ └── Triggers.sol ├── tokens │ ├── ERC1155.sol │ ├── ERC20.sol │ ├── ERC721.sol │ ├── WETH.sol │ └── Y2K.sol ├── uma-protocol │ └── packages │ │ └── core │ │ └── contracts │ │ └── oracle │ │ └── interfaces │ │ └── FinderInterface.sol └── utils │ ├── Bytes32AddressLib.sol │ ├── CREATE3.sol │ ├── FixedPointMathLib.sol │ ├── ReentrancyGuard.sol │ ├── SSTORE2.sol │ ├── SafeCastLib.sol │ └── SafeTransferLib.sol ├── hardhat.config.js ├── package.json └── test ├── abi └── abiCodes.js ├── integrationCarouselTest.js ├── integrationTest.js ├── triggerTest.js └── utils └── utils.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/README.md -------------------------------------------------------------------------------- /contracts/AToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/AToken.sol -------------------------------------------------------------------------------- /contracts/BToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/BToken.sol -------------------------------------------------------------------------------- /contracts/Carousel/Carousel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/Carousel/Carousel.sol -------------------------------------------------------------------------------- /contracts/Carousel/CarouselFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/Carousel/CarouselFactory.sol -------------------------------------------------------------------------------- /contracts/ChainlinkTrigger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/ChainlinkTrigger.sol -------------------------------------------------------------------------------- /contracts/ChainlinkTriggerFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/ChainlinkTriggerFactory.sol -------------------------------------------------------------------------------- /contracts/Controllers/ControllerPeggedAssetV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/Controllers/ControllerPeggedAssetV2.sol -------------------------------------------------------------------------------- /contracts/CustomERC1155/ERC1155.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/CustomERC1155/ERC1155.sol -------------------------------------------------------------------------------- /contracts/CustomERC1155/ERC1155Supply.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/CustomERC1155/ERC1155Supply.sol -------------------------------------------------------------------------------- /contracts/FixedPriceAggregator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/FixedPriceAggregator.sol -------------------------------------------------------------------------------- /contracts/MockChainlinkOracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/MockChainlinkOracle.sol -------------------------------------------------------------------------------- /contracts/SemiFungibleVault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/SemiFungibleVault.sol -------------------------------------------------------------------------------- /contracts/TimeLock.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/TimeLock.sol -------------------------------------------------------------------------------- /contracts/VaultFactoryV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/VaultFactoryV2.sol -------------------------------------------------------------------------------- /contracts/VaultV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/VaultV2.sol -------------------------------------------------------------------------------- /contracts/abstract/BaseTrigger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/abstract/BaseTrigger.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBaseTrigger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/IBaseTrigger.sol -------------------------------------------------------------------------------- /contracts/interfaces/ICarousel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/ICarousel.sol -------------------------------------------------------------------------------- /contracts/interfaces/IChainlinkTrigger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/IChainlinkTrigger.sol -------------------------------------------------------------------------------- /contracts/interfaces/IChainlinkTriggerFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/IChainlinkTriggerFactory.sol -------------------------------------------------------------------------------- /contracts/interfaces/IControllerPeggedAssetV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/IControllerPeggedAssetV2.sol -------------------------------------------------------------------------------- /contracts/interfaces/ICostModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/ICostModel.sol -------------------------------------------------------------------------------- /contracts/interfaces/IDripDecayModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/IDripDecayModel.sol -------------------------------------------------------------------------------- /contracts/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/IERC20.sol -------------------------------------------------------------------------------- /contracts/interfaces/IManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/IManager.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISemiFungibleVault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/ISemiFungibleVault.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISet.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/ISet.sol -------------------------------------------------------------------------------- /contracts/interfaces/ITrigger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/ITrigger.sol -------------------------------------------------------------------------------- /contracts/interfaces/IUMATrigger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/IUMATrigger.sol -------------------------------------------------------------------------------- /contracts/interfaces/IUMATriggerFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/IUMATriggerFactory.sol -------------------------------------------------------------------------------- /contracts/interfaces/IVaultFactoryV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/IVaultFactoryV2.sol -------------------------------------------------------------------------------- /contracts/interfaces/IVaultV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/IVaultV2.sol -------------------------------------------------------------------------------- /contracts/interfaces/IWETH.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/IWETH.sol -------------------------------------------------------------------------------- /contracts/interfaces/OptimisticOracleV2Interface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/interfaces/OptimisticOracleV2Interface.sol -------------------------------------------------------------------------------- /contracts/libraries/CarouselCreator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/libraries/CarouselCreator.sol -------------------------------------------------------------------------------- /contracts/libraries/VaultV2Creator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/libraries/VaultV2Creator.sol -------------------------------------------------------------------------------- /contracts/structs/Configs.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/structs/Configs.sol -------------------------------------------------------------------------------- /contracts/structs/StateEnums.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/structs/StateEnums.sol -------------------------------------------------------------------------------- /contracts/structs/Triggers.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/structs/Triggers.sol -------------------------------------------------------------------------------- /contracts/tokens/ERC1155.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/tokens/ERC1155.sol -------------------------------------------------------------------------------- /contracts/tokens/ERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/tokens/ERC20.sol -------------------------------------------------------------------------------- /contracts/tokens/ERC721.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/tokens/ERC721.sol -------------------------------------------------------------------------------- /contracts/tokens/WETH.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/tokens/WETH.sol -------------------------------------------------------------------------------- /contracts/tokens/Y2K.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/tokens/Y2K.sol -------------------------------------------------------------------------------- /contracts/uma-protocol/packages/core/contracts/oracle/interfaces/FinderInterface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/uma-protocol/packages/core/contracts/oracle/interfaces/FinderInterface.sol -------------------------------------------------------------------------------- /contracts/utils/Bytes32AddressLib.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/utils/Bytes32AddressLib.sol -------------------------------------------------------------------------------- /contracts/utils/CREATE3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/utils/CREATE3.sol -------------------------------------------------------------------------------- /contracts/utils/FixedPointMathLib.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/utils/FixedPointMathLib.sol -------------------------------------------------------------------------------- /contracts/utils/ReentrancyGuard.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/utils/ReentrancyGuard.sol -------------------------------------------------------------------------------- /contracts/utils/SSTORE2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/utils/SSTORE2.sol -------------------------------------------------------------------------------- /contracts/utils/SafeCastLib.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/utils/SafeCastLib.sol -------------------------------------------------------------------------------- /contracts/utils/SafeTransferLib.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/contracts/utils/SafeTransferLib.sol -------------------------------------------------------------------------------- /hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/hardhat.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/package.json -------------------------------------------------------------------------------- /test/abi/abiCodes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/test/abi/abiCodes.js -------------------------------------------------------------------------------- /test/integrationCarouselTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/test/integrationCarouselTest.js -------------------------------------------------------------------------------- /test/integrationTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/test/integrationTest.js -------------------------------------------------------------------------------- /test/triggerTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/test/triggerTest.js -------------------------------------------------------------------------------- /test/utils/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/999bits/cozy_trigger/HEAD/test/utils/utils.js --------------------------------------------------------------------------------