Interface IVaultRegistry

Hierarchy

  • BaseContract
    • IVaultRegistry

Properties

[internal]: any

@_ignore:

addSupportedTokenPairs: TypedContractMethod<[vault: AddressLike, tokenPairs: TokenPairStruct[]], [void], "nonpayable">
addVault: TypedContractMethod<[vault: AddressLike, asset: AddressLike, vaultType: BytesLike, side: BigNumberish, optionType: BigNumberish], [void], "nonpayable">
fallback: null | WrappedFallback

The fallback or receive function if any.

filters: {
    SupportedTokenPairAdded: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SupportedTokenPairAdded(address,address,address,address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SupportedTokenPairRemoved: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SupportedTokenPairRemoved(address,address,address,address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    VaultAdded: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    VaultAdded(address,address,bytes32,uint8,uint8): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    VaultImplementationSet: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    VaultImplementationSet(bytes32,address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    VaultRemoved: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    VaultRemoved(address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    VaultUpdated: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    VaultUpdated(address,address,bytes32,uint8,uint8): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
}

Type declaration

  • SupportedTokenPairAdded: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • SupportedTokenPairAdded(address,address,address,address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • SupportedTokenPairRemoved: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • SupportedTokenPairRemoved(address,address,address,address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • VaultAdded: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • VaultAdded(address,address,bytes32,uint8,uint8): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • VaultImplementationSet: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • VaultImplementationSet(bytes32,address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • VaultRemoved: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • VaultRemoved(address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • VaultUpdated: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • VaultUpdated(address,address,bytes32,uint8,uint8): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
getImplementation: TypedContractMethod<[vaultType: BytesLike], [string], "view">
getNumberOfVaults: TypedContractMethod<[], [bigint], "view">
getSupportedTokenPairs: TypedContractMethod<[vault: AddressLike], [TokenPairStructOutput[]], "view">
getVault: TypedContractMethod<[vault: AddressLike], [VaultStructOutput], "view">
getVaults: TypedContractMethod<[], [VaultStructOutput[]], "view">
getVaultsByAsset: TypedContractMethod<[asset: AddressLike], [VaultStructOutput[]], "view">
getVaultsByFilter: TypedContractMethod<[assets: AddressLike[], side: BigNumberish, optionType: BigNumberish], [VaultStructOutput[]], "view">
getVaultsByOptionType: TypedContractMethod<[optionType: BigNumberish], [VaultStructOutput[]], "view">
getVaultsByTokenPair: TypedContractMethod<[tokenPair: TokenPairStruct], [VaultStructOutput[]], "view">
getVaultsByTradeSide: TypedContractMethod<[side: BigNumberish], [VaultStructOutput[]], "view">
getVaultsByType: TypedContractMethod<[vaultType: BytesLike], [VaultStructOutput[]], "view">
interface: IVaultRegistryInterface
isVault: TypedContractMethod<[vault: AddressLike], [boolean], "view">
removeSupportedTokenPairs: TypedContractMethod<[vault: AddressLike, tokenPairsToRemove: TokenPairStruct[]], [void], "nonpayable">
removeVault: TypedContractMethod<[vault: AddressLike], [void], "nonpayable">
runner: null | ContractRunner

The connected runner. This is generally a [[Provider]] or a [[Signer]], which dictates what operations are supported.

For example, a Contract connected to a [[Provider]] may only execute read-only operations.

setImplementation: TypedContractMethod<[vaultType: BytesLike, implementation: AddressLike], [void], "nonpayable">
target: string | Addressable

The target to connect to.

This can be an address, ENS name or any [[Addressable]], such as another contract. To get the resovled address, use the getAddress method.

updateVault: TypedContractMethod<[vault: AddressLike, asset: AddressLike, vaultType: BytesLike, side: BigNumberish, optionType: BigNumberish], [void], "nonpayable">

Methods

  • Alias for [on].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<IVaultRegistry>

  • Return a new Contract instance with the same ABI and runner, but a different %%target%%.

    Parameters

    • target: string | Addressable

    Returns BaseContract

  • Parameters

    • Optional runner: null | ContractRunner

    Returns IVaultRegistry

  • Return the transaction used to deploy this contract.

    This is only available if this instance was returned from a [[ContractFactory]].

    Returns null | ContractTransactionResponse

  • Emit an %%event%% calling all listeners with %%args%%.

    Resolves to true if any listeners were called.

    Parameters

    • event: ContractEventName
    • Rest ...args: any[]

    Returns Promise<boolean>

  • Return the resolved address of this Contract.

    Returns Promise<string>

  • Return the deployed bytecode or null if no bytecode is found.

    Returns Promise<null | string>

  • Parameters

    • key: "SupportedTokenPairAdded"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "SupportedTokenPairRemoved"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "VaultAdded"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "VaultImplementationSet"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "VaultRemoved"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "VaultUpdated"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Type Parameters

    • T extends ContractMethod<any[], any, any, T> = ContractMethod<any[], any, any>

    Parameters

    • key: string | FunctionFragment

    Returns T

  • Parameters

    • nameOrSignature: "addSupportedTokenPairs"

    Returns TypedContractMethod<[vault: AddressLike, tokenPairs: TokenPairStruct[]], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "addVault"

    Returns TypedContractMethod<[vault: AddressLike, asset: AddressLike, vaultType: BytesLike, side: BigNumberish, optionType: BigNumberish], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "getImplementation"

    Returns TypedContractMethod<[vaultType: BytesLike], [string], "view">

  • Parameters

    • nameOrSignature: "getNumberOfVaults"

    Returns TypedContractMethod<[], [bigint], "view">

  • Parameters

    • nameOrSignature: "getSupportedTokenPairs"

    Returns TypedContractMethod<[vault: AddressLike], [TokenPairStructOutput[]], "view">

  • Parameters

    • nameOrSignature: "getVault"

    Returns TypedContractMethod<[vault: AddressLike], [VaultStructOutput], "view">

  • Parameters

    • nameOrSignature: "getVaults"

    Returns TypedContractMethod<[], [VaultStructOutput[]], "view">

  • Parameters

    • nameOrSignature: "getVaultsByAsset"

    Returns TypedContractMethod<[asset: AddressLike], [VaultStructOutput[]], "view">

  • Parameters

    • nameOrSignature: "getVaultsByFilter"

    Returns TypedContractMethod<[assets: AddressLike[], side: BigNumberish, optionType: BigNumberish], [VaultStructOutput[]], "view">

  • Parameters

    • nameOrSignature: "getVaultsByOptionType"

    Returns TypedContractMethod<[optionType: BigNumberish], [VaultStructOutput[]], "view">

  • Parameters

    • nameOrSignature: "getVaultsByTokenPair"

    Returns TypedContractMethod<[tokenPair: TokenPairStruct], [VaultStructOutput[]], "view">

  • Parameters

    • nameOrSignature: "getVaultsByTradeSide"

    Returns TypedContractMethod<[side: BigNumberish], [VaultStructOutput[]], "view">

  • Parameters

    • nameOrSignature: "getVaultsByType"

    Returns TypedContractMethod<[vaultType: BytesLike], [VaultStructOutput[]], "view">

  • Parameters

    • nameOrSignature: "isVault"

    Returns TypedContractMethod<[vault: AddressLike], [boolean], "view">

  • Parameters

    • nameOrSignature: "removeSupportedTokenPairs"

    Returns TypedContractMethod<[vault: AddressLike, tokenPairsToRemove: TokenPairStruct[]], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "removeVault"

    Returns TypedContractMethod<[vault: AddressLike], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "setImplementation"

    Returns TypedContractMethod<[vaultType: BytesLike, implementation: AddressLike], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "updateVault"

    Returns TypedContractMethod<[vault: AddressLike, asset: AddressLike, vaultType: BytesLike, side: BigNumberish, optionType: BigNumberish], [void], "nonpayable">

  • Resolves to the number of listeners of %%event%% or the total number of listeners if unspecified.

    Parameters

    • Optional event: ContractEventName

    Returns Promise<number>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • event: TCEvent

    Returns Promise<TypedListener<TCEvent>[]>

  • Parameters

    • Optional eventName: string

    Returns Promise<Listener[]>

  • Remove the %%listener%% from the listeners for %%event%% or remove all listeners if unspecified.

    Parameters

    • event: ContractEventName
    • Optional listener: Listener

    Returns Promise<IVaultRegistry>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • event: TCEvent
    • listener: TypedListener<TCEvent>

    Returns Promise<IVaultRegistry>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • filter: TypedDeferredTopicFilter<TCEvent>
    • listener: TypedListener<TCEvent>

    Returns Promise<IVaultRegistry>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • event: TCEvent
    • listener: TypedListener<TCEvent>

    Returns Promise<IVaultRegistry>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • filter: TypedDeferredTopicFilter<TCEvent>
    • listener: TypedListener<TCEvent>

    Returns Promise<IVaultRegistry>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • event: TCEvent
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TypedEventLog<TCEvent>[]>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • filter: TypedDeferredTopicFilter<TCEvent>
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TypedEventLog<TCEvent>[]>

  • @_ignore:

    Parameters

    • hash: string

    Returns Promise<EventLog[]>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • Optional event: TCEvent

    Returns Promise<IVaultRegistry>

  • Alias for [off].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<IVaultRegistry>

  • Returns Promise<IVaultRegistry>

Generated using TypeDoc