Interface IOracleAdapter

Hierarchy

  • BaseContract
    • IOracleAdapter

Properties

[internal]: any
describePricingPath: TypedContractMethod<[token: AddressLike], [[bigint, string[][], bigint[]] & {
    adapterType: bigint;
    decimals: bigint[];
    path: string[][];
}], "view">
fallback: null | WrappedFallback
filters: {}

Type declaration

    getPrice: TypedContractMethod<[tokenIn: AddressLike, tokenOut: AddressLike], [bigint], "view">
    getPriceAt: TypedContractMethod<[tokenIn: AddressLike, tokenOut: AddressLike, target: BigNumberish], [bigint], "view">
    interface: IOracleAdapterInterface
    isPairSupported: TypedContractMethod<[tokenA: AddressLike, tokenB: AddressLike], [[boolean, boolean] & {
        hasPath: boolean;
        isCached: boolean;
    }], "view">
    runner: null | ContractRunner
    target: string | Addressable
    upsertPair: TypedContractMethod<[tokenA: AddressLike, tokenB: AddressLike], [void], "nonpayable">

    Methods

    • Parameters

      • event: ContractEventName
      • listener: Listener

      Returns Promise<IOracleAdapter>

    • Parameters

      • addressOrName: AddressLike

      Returns IOracleAdapter

    • Parameters

      • Optional runner: null | ContractRunner

      Returns BaseContract

    • Returns null | ContractTransactionResponse

    • Parameters

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

      Returns Promise<boolean>

    • Returns Promise<string>

    • Returns Promise<null | string>

    • Parameters

      • key: string | EventFragment

      Returns ContractEvent<any[]>

    • Type Parameters

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

      Parameters

      • key: string | FunctionFragment

      Returns T

    • Parameters

      • nameOrSignature: "describePricingPath"

      Returns TypedContractMethod<[token: AddressLike], [[bigint, string[][], bigint[]] & {
          adapterType: bigint;
          decimals: bigint[];
          path: string[][];
      }], "view">

    • Parameters

      • nameOrSignature: "getPrice"

      Returns TypedContractMethod<[tokenIn: AddressLike, tokenOut: AddressLike], [bigint], "view">

    • Parameters

      • nameOrSignature: "getPriceAt"

      Returns TypedContractMethod<[tokenIn: AddressLike, tokenOut: AddressLike, target: BigNumberish], [bigint], "view">

    • Parameters

      • nameOrSignature: "isPairSupported"

      Returns TypedContractMethod<[tokenA: AddressLike, tokenB: AddressLike], [[boolean, boolean] & {
          hasPath: boolean;
          isCached: boolean;
      }], "view">

    • Parameters

      • nameOrSignature: "upsertPair"

      Returns TypedContractMethod<[tokenA: AddressLike, tokenB: AddressLike], [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<IOracleAdapter>

    • Type Parameters

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

      Parameters

      • event: TCEvent
      • listener: TypedListener<TCEvent>

      Returns Promise<IOracleAdapter>

    • Type Parameters

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

      Parameters

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

      Returns Promise<IOracleAdapter>

    • Type Parameters

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

      Parameters

      • event: TCEvent
      • listener: TypedListener<TCEvent>

      Returns Promise<IOracleAdapter>

    • Type Parameters

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

      Parameters

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

      Returns Promise<IOracleAdapter>

    • 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<IOracleAdapter>

    • Parameters

      • event: ContractEventName
      • listener: Listener

      Returns Promise<IOracleAdapter>

    • Returns Promise<IOracleAdapter>

    Generated using TypeDoc