Interface IVault

Hierarchy

  • BaseContract
    • IVault

Properties

[internal]: any
fallback: null | WrappedFallback
filters: {
    Approval: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Approval(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Borrow: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Borrow(bytes32,address,address,address,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    BorrowLiquidated: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    BorrowLiquidated(bytes32,address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Deposit: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Deposit(address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    ManagementFeePaid: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    ManagementFeePaid(address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    PerformanceFeePaid: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    PerformanceFeePaid(address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    RepayBorrow: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    RepayBorrow(bytes32,address,address,address,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Swap: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Swap(address,address,address,address,uint256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Trade: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Trade(address,address,uint256,bool,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Transfer: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Transfer(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    UpdateQuotes: TypedContractEvent<[], [], OutputObject>;
    UpdateQuotes(): TypedContractEvent<[], [], OutputObject>;
    Withdraw: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Withdraw(address,address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
}

Type declaration

  • Approval: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Approval(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Borrow: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Borrow(bytes32,address,address,address,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • BorrowLiquidated: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • BorrowLiquidated(bytes32,address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Deposit: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Deposit(address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • ManagementFeePaid: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • ManagementFeePaid(address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • PerformanceFeePaid: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • PerformanceFeePaid(address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • RepayBorrow: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • RepayBorrow(bytes32,address,address,address,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Swap: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Swap(address,address,address,address,uint256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Trade: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Trade(address,address,uint256,bool,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Transfer: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Transfer(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • UpdateQuotes: TypedContractEvent<[], [], OutputObject>
  • UpdateQuotes(): TypedContractEvent<[], [], OutputObject>
  • Withdraw: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Withdraw(address,address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
getQuote: TypedContractMethod<[poolKey: PoolKeyStruct, size: BigNumberish, isBuy: boolean, taker: AddressLike], [bigint], "view">
interface: IVaultInterface
runner: null | ContractRunner
target: string | Addressable
trade: TypedContractMethod<[poolKey: PoolKeyStruct, size: BigNumberish, isBuy: boolean, premiumLimit: BigNumberish, referrer: AddressLike], [void], "nonpayable">
updateSettings: TypedContractMethod<[settings: BytesLike], [void], "nonpayable">

Methods

  • Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<IVault>

  • Parameters

    • addressOrName: AddressLike

    Returns IVault

  • Parameters

    • Optional runner: null | ContractRunner

    Returns BaseContract

  • Returns Promise<IVault>

  • Returns null | ContractTransactionResponse

  • Parameters

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

    Returns Promise<boolean>

  • Returns Promise<string>

  • Returns Promise<null | string>

  • Parameters

    • key: "Approval"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "Borrow"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "BorrowLiquidated"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "Deposit"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "ManagementFeePaid"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "PerformanceFeePaid"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "RepayBorrow"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "Swap"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "Trade"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "Transfer"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "UpdateQuotes"

    Returns TypedContractEvent<[], [], OutputObject>

  • Parameters

    • key: "Withdraw"

    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: "getQuote"

    Returns TypedContractMethod<[poolKey: PoolKeyStruct, size: BigNumberish, isBuy: boolean, taker: AddressLike], [bigint], "view">

  • Parameters

    • nameOrSignature: "trade"

    Returns TypedContractMethod<[poolKey: PoolKeyStruct, size: BigNumberish, isBuy: boolean, premiumLimit: BigNumberish, referrer: AddressLike], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "updateSettings"

    Returns TypedContractMethod<[settings: BytesLike], [void], "nonpayable">

  • 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[]>

  • Parameters

    • event: ContractEventName
    • Optional listener: Listener

    Returns Promise<IVault>

  • Type Parameters

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

    Parameters

    • event: TCEvent
    • listener: TypedListener<TCEvent>

    Returns Promise<IVault>

  • Type Parameters

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

    Parameters

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

    Returns Promise<IVault>

  • Type Parameters

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

    Parameters

    • event: TCEvent
    • listener: TypedListener<TCEvent>

    Returns Promise<IVault>

  • Type Parameters

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

    Parameters

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

    Returns Promise<IVault>

  • 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>[]>

  • Parameters

    • hash: string

    Returns Promise<EventLog[]>

  • Type Parameters

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

    Parameters

    • Optional event: TCEvent

    Returns Promise<IVault>

  • Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<IVault>

  • Returns Promise<IVault>

Generated using TypeDoc