Interface IChainlinkAdapter

Hierarchy

  • BaseContract
    • IChainlinkAdapter

Properties

[internal]: any

@_ignore:

batchRegisterFeedMappings: TypedContractMethod<[args: FeedMappingArgsStruct[]], [void], "nonpayable">
describePricingPath: TypedContractMethod<[token: AddressLike], [[bigint, string[][], bigint[]] & {
    adapterType: bigint;
    decimals: bigint[];
    path: string[][];
}], "view">
fallback: null | WrappedFallback

The fallback or receive function if any.

feed: TypedContractMethod<[token: AddressLike, denomination: AddressLike], [string], "view">
filters: {
    FeedMappingsRegistered: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    FeedMappingsRegistered(tuple[]): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    PriceUpdate: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    PriceUpdate(address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    UpdatedPathForPair: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    UpdatedPathForPair(address,address,uint8): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
}

Type declaration

  • FeedMappingsRegistered: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • FeedMappingsRegistered(tuple[]): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • PriceUpdate: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • PriceUpdate(address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • UpdatedPathForPair: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • UpdatedPathForPair(address,address,uint8): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
getPrice: TypedContractMethod<[tokenIn: AddressLike, tokenOut: AddressLike], [bigint], "view">
getPriceAt: TypedContractMethod<[tokenIn: AddressLike, tokenOut: AddressLike, target: BigNumberish], [bigint], "view">
interface: IChainlinkAdapterInterface
isPairSupported: TypedContractMethod<[tokenA: AddressLike, tokenB: AddressLike], [[boolean, boolean] & {
    hasPath: boolean;
    isCached: boolean;
}], "view">
pricingPath: TypedContractMethod<[tokenA: AddressLike, tokenB: AddressLike], [bigint], "view">
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.

setTokenPriceAt: TypedContractMethod<[token: AddressLike, denomination: AddressLike, timestamp: BigNumberish, price: BigNumberish], [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.

upsertPair: TypedContractMethod<[tokenA: AddressLike, tokenB: AddressLike], [void], "nonpayable">

Methods

  • Alias for [on].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<IChainlinkAdapter>

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

  • 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: "FeedMappingsRegistered"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "PriceUpdate"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "UpdatedPathForPair"

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

    Returns TypedContractMethod<[args: FeedMappingArgsStruct[]], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "describePricingPath"

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

  • Parameters

    • nameOrSignature: "feed"

    Returns TypedContractMethod<[token: AddressLike, denomination: AddressLike], [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: "pricingPath"

    Returns TypedContractMethod<[tokenA: AddressLike, tokenB: AddressLike], [bigint], "view">

  • Parameters

    • nameOrSignature: "setTokenPriceAt"

    Returns TypedContractMethod<[token: AddressLike, denomination: AddressLike, timestamp: BigNumberish, price: BigNumberish], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "upsertPair"

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

  • Type Parameters

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

    Parameters

    • event: TCEvent
    • listener: TypedListener<TCEvent>

    Returns Promise<IChainlinkAdapter>

  • Type Parameters

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

    Parameters

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

    Returns Promise<IChainlinkAdapter>

  • Type Parameters

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

    Parameters

    • event: TCEvent
    • listener: TypedListener<TCEvent>

    Returns Promise<IChainlinkAdapter>

  • Type Parameters

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

    Parameters

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

    Returns Promise<IChainlinkAdapter>

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

  • Alias for [off].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<IChainlinkAdapter>

  • Returns Promise<IChainlinkAdapter>

Generated using TypeDoc