Class IVaultRegistry__factory

Hierarchy

  • IVaultRegistry__factory

Constructors

Properties

Methods

Constructors

Properties

abi: readonly [{
    anonymous: false;
    inputs: readonly [{
        indexed: true;
        internalType: "address";
        name: "vault";
        type: "address";
    }, {
        indexed: true;
        internalType: "address";
        name: "base";
        type: "address";
    }, {
        indexed: true;
        internalType: "address";
        name: "quote";
        type: "address";
    }, {
        indexed: false;
        internalType: "address";
        name: "oracleAdapter";
        type: "address";
    }];
    name: "SupportedTokenPairAdded";
    type: "event";
}, {
    anonymous: false;
    inputs: readonly [{
        indexed: true;
        internalType: "address";
        name: "vault";
        type: "address";
    }, {
        indexed: true;
        internalType: "address";
        name: "base";
        type: "address";
    }, {
        indexed: true;
        internalType: "address";
        name: "quote";
        type: "address";
    }, {
        indexed: false;
        internalType: "address";
        name: "oracleAdapter";
        type: "address";
    }];
    name: "SupportedTokenPairRemoved";
    type: "event";
}, {
    anonymous: false;
    inputs: readonly [{
        indexed: true;
        internalType: "address";
        name: "vault";
        type: "address";
    }, {
        indexed: true;
        internalType: "address";
        name: "asset";
        type: "address";
    }, {
        indexed: false;
        internalType: "bytes32";
        name: "vaultType";
        type: "bytes32";
    }, {
        indexed: false;
        internalType: "enum IVaultRegistry.TradeSide";
        name: "side";
        type: "uint8";
    }, {
        indexed: false;
        internalType: "enum IVaultRegistry.OptionType";
        name: "optionType";
        type: "uint8";
    }];
    name: "VaultAdded";
    type: "event";
}, {
    anonymous: false;
    inputs: readonly [{
        indexed: true;
        internalType: "address";
        name: "vault";
        type: "address";
    }];
    name: "VaultRemoved";
    type: "event";
}, {
    anonymous: false;
    inputs: readonly [{
        indexed: true;
        internalType: "address";
        name: "vault";
        type: "address";
    }, {
        indexed: true;
        internalType: "address";
        name: "asset";
        type: "address";
    }, {
        indexed: false;
        internalType: "bytes32";
        name: "vaultType";
        type: "bytes32";
    }, {
        indexed: false;
        internalType: "enum IVaultRegistry.TradeSide";
        name: "side";
        type: "uint8";
    }, {
        indexed: false;
        internalType: "enum IVaultRegistry.OptionType";
        name: "optionType";
        type: "uint8";
    }];
    name: "VaultUpdated";
    type: "event";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "vault";
        type: "address";
    }, {
        components: readonly [{
            internalType: "address";
            name: "base";
            type: "address";
        }, {
            internalType: "address";
            name: "quote";
            type: "address";
        }, {
            internalType: "address";
            name: "oracleAdapter";
            type: "address";
        }];
        internalType: "struct IVaultRegistry.TokenPair[]";
        name: "tokenPairs";
        type: "tuple[]";
    }];
    name: "addSupportedTokenPairs";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "vault";
        type: "address";
    }, {
        internalType: "address";
        name: "asset";
        type: "address";
    }, {
        internalType: "bytes32";
        name: "vaultType";
        type: "bytes32";
    }, {
        internalType: "enum IVaultRegistry.TradeSide";
        name: "side";
        type: "uint8";
    }, {
        internalType: "enum IVaultRegistry.OptionType";
        name: "optionType";
        type: "uint8";
    }];
    name: "addVault";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "bytes32";
        name: "vaultType";
        type: "bytes32";
    }];
    name: "getImplementation";
    outputs: readonly [{
        internalType: "address";
        name: "";
        type: "address";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [];
    name: "getNumberOfVaults";
    outputs: readonly [{
        internalType: "uint256";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "bytes32";
        name: "vaultType";
        type: "bytes32";
    }];
    name: "getSettings";
    outputs: readonly [{
        internalType: "bytes";
        name: "";
        type: "bytes";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "vault";
        type: "address";
    }];
    name: "getSupportedTokenPairs";
    outputs: readonly [{
        components: readonly [{
            internalType: "address";
            name: "base";
            type: "address";
        }, {
            internalType: "address";
            name: "quote";
            type: "address";
        }, {
            internalType: "address";
            name: "oracleAdapter";
            type: "address";
        }];
        internalType: "struct IVaultRegistry.TokenPair[]";
        name: "";
        type: "tuple[]";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "vault";
        type: "address";
    }];
    name: "getVault";
    outputs: readonly [{
        components: readonly [{
            internalType: "address";
            name: "vault";
            type: "address";
        }, {
            internalType: "address";
            name: "asset";
            type: "address";
        }, {
            internalType: "bytes32";
            name: "vaultType";
            type: "bytes32";
        }, {
            internalType: "enum IVaultRegistry.TradeSide";
            name: "side";
            type: "uint8";
        }, {
            internalType: "enum IVaultRegistry.OptionType";
            name: "optionType";
            type: "uint8";
        }];
        internalType: "struct IVaultRegistry.Vault";
        name: "";
        type: "tuple";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [];
    name: "getVaults";
    outputs: readonly [{
        components: readonly [{
            internalType: "address";
            name: "vault";
            type: "address";
        }, {
            internalType: "address";
            name: "asset";
            type: "address";
        }, {
            internalType: "bytes32";
            name: "vaultType";
            type: "bytes32";
        }, {
            internalType: "enum IVaultRegistry.TradeSide";
            name: "side";
            type: "uint8";
        }, {
            internalType: "enum IVaultRegistry.OptionType";
            name: "optionType";
            type: "uint8";
        }];
        internalType: "struct IVaultRegistry.Vault[]";
        name: "";
        type: "tuple[]";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "asset";
        type: "address";
    }];
    name: "getVaultsByAsset";
    outputs: readonly [{
        components: readonly [{
            internalType: "address";
            name: "vault";
            type: "address";
        }, {
            internalType: "address";
            name: "asset";
            type: "address";
        }, {
            internalType: "bytes32";
            name: "vaultType";
            type: "bytes32";
        }, {
            internalType: "enum IVaultRegistry.TradeSide";
            name: "side";
            type: "uint8";
        }, {
            internalType: "enum IVaultRegistry.OptionType";
            name: "optionType";
            type: "uint8";
        }];
        internalType: "struct IVaultRegistry.Vault[]";
        name: "";
        type: "tuple[]";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address[]";
        name: "assets";
        type: "address[]";
    }, {
        internalType: "enum IVaultRegistry.TradeSide";
        name: "side";
        type: "uint8";
    }, {
        internalType: "enum IVaultRegistry.OptionType";
        name: "optionType";
        type: "uint8";
    }];
    name: "getVaultsByFilter";
    outputs: readonly [{
        components: readonly [{
            internalType: "address";
            name: "vault";
            type: "address";
        }, {
            internalType: "address";
            name: "asset";
            type: "address";
        }, {
            internalType: "bytes32";
            name: "vaultType";
            type: "bytes32";
        }, {
            internalType: "enum IVaultRegistry.TradeSide";
            name: "side";
            type: "uint8";
        }, {
            internalType: "enum IVaultRegistry.OptionType";
            name: "optionType";
            type: "uint8";
        }];
        internalType: "struct IVaultRegistry.Vault[]";
        name: "";
        type: "tuple[]";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "enum IVaultRegistry.OptionType";
        name: "optionType";
        type: "uint8";
    }];
    name: "getVaultsByOptionType";
    outputs: readonly [{
        components: readonly [{
            internalType: "address";
            name: "vault";
            type: "address";
        }, {
            internalType: "address";
            name: "asset";
            type: "address";
        }, {
            internalType: "bytes32";
            name: "vaultType";
            type: "bytes32";
        }, {
            internalType: "enum IVaultRegistry.TradeSide";
            name: "side";
            type: "uint8";
        }, {
            internalType: "enum IVaultRegistry.OptionType";
            name: "optionType";
            type: "uint8";
        }];
        internalType: "struct IVaultRegistry.Vault[]";
        name: "";
        type: "tuple[]";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        components: readonly [{
            internalType: "address";
            name: "base";
            type: "address";
        }, {
            internalType: "address";
            name: "quote";
            type: "address";
        }, {
            internalType: "address";
            name: "oracleAdapter";
            type: "address";
        }];
        internalType: "struct IVaultRegistry.TokenPair";
        name: "tokenPair";
        type: "tuple";
    }];
    name: "getVaultsByTokenPair";
    outputs: readonly [{
        components: readonly [{
            internalType: "address";
            name: "vault";
            type: "address";
        }, {
            internalType: "address";
            name: "asset";
            type: "address";
        }, {
            internalType: "bytes32";
            name: "vaultType";
            type: "bytes32";
        }, {
            internalType: "enum IVaultRegistry.TradeSide";
            name: "side";
            type: "uint8";
        }, {
            internalType: "enum IVaultRegistry.OptionType";
            name: "optionType";
            type: "uint8";
        }];
        internalType: "struct IVaultRegistry.Vault[]";
        name: "";
        type: "tuple[]";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "enum IVaultRegistry.TradeSide";
        name: "side";
        type: "uint8";
    }];
    name: "getVaultsByTradeSide";
    outputs: readonly [{
        components: readonly [{
            internalType: "address";
            name: "vault";
            type: "address";
        }, {
            internalType: "address";
            name: "asset";
            type: "address";
        }, {
            internalType: "bytes32";
            name: "vaultType";
            type: "bytes32";
        }, {
            internalType: "enum IVaultRegistry.TradeSide";
            name: "side";
            type: "uint8";
        }, {
            internalType: "enum IVaultRegistry.OptionType";
            name: "optionType";
            type: "uint8";
        }];
        internalType: "struct IVaultRegistry.Vault[]";
        name: "";
        type: "tuple[]";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "bytes32";
        name: "vaultType";
        type: "bytes32";
    }];
    name: "getVaultsByType";
    outputs: readonly [{
        components: readonly [{
            internalType: "address";
            name: "vault";
            type: "address";
        }, {
            internalType: "address";
            name: "asset";
            type: "address";
        }, {
            internalType: "bytes32";
            name: "vaultType";
            type: "bytes32";
        }, {
            internalType: "enum IVaultRegistry.TradeSide";
            name: "side";
            type: "uint8";
        }, {
            internalType: "enum IVaultRegistry.OptionType";
            name: "optionType";
            type: "uint8";
        }];
        internalType: "struct IVaultRegistry.Vault[]";
        name: "";
        type: "tuple[]";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "vault";
        type: "address";
    }];
    name: "isVault";
    outputs: readonly [{
        internalType: "bool";
        name: "";
        type: "bool";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "vault";
        type: "address";
    }, {
        components: readonly [{
            internalType: "address";
            name: "base";
            type: "address";
        }, {
            internalType: "address";
            name: "quote";
            type: "address";
        }, {
            internalType: "address";
            name: "oracleAdapter";
            type: "address";
        }];
        internalType: "struct IVaultRegistry.TokenPair[]";
        name: "tokenPairsToRemove";
        type: "tuple[]";
    }];
    name: "removeSupportedTokenPairs";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "vault";
        type: "address";
    }];
    name: "removeVault";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "bytes32";
        name: "vaultType";
        type: "bytes32";
    }, {
        internalType: "address";
        name: "implementation";
        type: "address";
    }];
    name: "setImplementation";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "bytes32";
        name: "vaultType";
        type: "bytes32";
    }, {
        internalType: "bytes";
        name: "updatedSettings";
        type: "bytes";
    }];
    name: "updateSettings";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "vault";
        type: "address";
    }, {
        internalType: "address";
        name: "asset";
        type: "address";
    }, {
        internalType: "bytes32";
        name: "vaultType";
        type: "bytes32";
    }, {
        internalType: "enum IVaultRegistry.TradeSide";
        name: "side";
        type: "uint8";
    }, {
        internalType: "enum IVaultRegistry.OptionType";
        name: "optionType";
        type: "uint8";
    }];
    name: "updateVault";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}] = _abi

Methods

  • Parameters

    • address: string
    • Optional runner: null | ContractRunner

    Returns IVaultRegistry

  • Returns IVaultRegistryInterface

Generated using TypeDoc