VaultRegistryStorage

Git Source

State Variables

STORAGE_SLOT

bytes32 internal constant STORAGE_SLOT = keccak256("premia.contracts.storage.VaultRegistry");

Functions

layout

function layout() internal pure returns (Layout storage l);

Structs

Layout

struct Layout {
    EnumerableSet.AddressSet vaultAddresses;
    mapping(bytes32 vaultType => bytes) __deprecated_settings;
    mapping(bytes32 vaultType => address) implementations;
    mapping(address vault => IVaultRegistry.Vault) vaults;
    mapping(address vault => IVaultRegistry.TokenPair[] supported) supportedTokenPairs;
    mapping(bytes32 vaultType => EnumerableSet.AddressSet vaults) vaultsByType;
    mapping(address asset => EnumerableSet.AddressSet vaults) vaultsByAsset;
    mapping(address base => mapping(address quote => mapping(address oracleAdapter => EnumerableSet.AddressSet vaults)))
        vaultsByTokenPair;
    mapping(IVaultRegistry.TradeSide tradeSide => EnumerableSet.AddressSet vaults) vaultsByTradeSide;
    mapping(IVaultRegistry.OptionType optionType => EnumerableSet.AddressSet vaults) vaultsByOptionType;
}