Constructors

Properties

Accessors

Constructors

Properties

config: OracleConfig
defaultAddress: `0x${string}` = zeroAddress

Accessors

  • get build(): {
        commitPrice: ((args) => {
            data: `0x${string}`;
            to: `0x${string}`;
            value: bigint;
        });
    }
  • Returns {
        commitPrice: ((args) => {
            data: `0x${string}`;
            to: `0x${string}`;
            value: bigint;
        });
    }

    • commitPrice: ((args) => {
          data: `0x${string}`;
          to: `0x${string}`;
          value: bigint;
      })
        • (args): {
              data: `0x${string}`;
              to: `0x${string}`;
              value: bigint;
          }
        • Returns {
              data: `0x${string}`;
              to: `0x${string}`;
              value: bigint;
          }

          • data: `0x${string}`
          • to: `0x${string}`
          • value: bigint
  • get read(): {
        oracleCommitmentsLatest: ((args?) => Promise<UpdateDataResponse[]>);
        oracleCommitmentsTimestamp: ((args) => Promise<UpdateDataResponse[]>);
        oracleProviderForFactoryAddress: ((args) => Promise<OracleProviderType>);
    }
  • Returns {
        oracleCommitmentsLatest: ((args?) => Promise<UpdateDataResponse[]>);
        oracleCommitmentsTimestamp: ((args) => Promise<UpdateDataResponse[]>);
        oracleProviderForFactoryAddress: ((args) => Promise<OracleProviderType>);
    }

    • oracleCommitmentsLatest: ((args?) => Promise<UpdateDataResponse[]>)
        • (args?): Promise<UpdateDataResponse[]>
        • Parameters

          • args: OmitBound<{
                chainId: 1424 | 42161 | 60850 | 421614;
                onError?: (() => void);
                onSuccess?: (() => void);
                oracleClients: OracleClients;
                publicClient: {
                    account: undefined;
                    batch?: {
                        multicall?: boolean | {
                            batchSize?: (...) | (...);
                            wait?: (...) | (...);
                        };
                    };
                    cacheTime: number;
                    call: ((parameters) => Promise<CallReturnType>);
                    ccipRead?: false | {
                        request?: ((parameters) => Promise<(...)>);
                    };
                    chain: undefined | Chain;
                    createBlockFilter: (() => Promise<{
                        id: `0x${string}`;
                        request: EIP1193RequestFn<readonly [(...), (...), (...)]>;
                        type: "block";
                    }>);
                    createContractEventFilter: (<const TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>(args) => Promise<CreateContractEventFilterReturnType<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>>);
                    createEventFilter: (<const TAbiEvent, const TAbiEvents, TStrict, TFromBlock, TToBlock, _EventName, _Args>(args?) => Promise<{
                        [K in string | number | symbol]: Filter<(...), (...), (...), (...), (...), (...), (...)>[K]
                    }>);
                    createPendingTransactionFilter: (() => Promise<{
                        id: `0x${string}`;
                        request: EIP1193RequestFn<readonly [(...), (...), (...)]>;
                        type: "transaction";
                    }>);
                    estimateContractGas: (<TChain, const abi, functionName, args>(args) => Promise<bigint>);
                    estimateFeesPerGas: (<TChainOverride, TType>(args?) => Promise<EstimateFeesPerGasReturnType>);
                    estimateGas: ((args) => Promise<bigint>);
                    estimateMaxPriorityFeePerGas: (<TChainOverride>(args?) => Promise<bigint>);
                    extend: (<const client>(fn) => Client<Transport, undefined | Chain, undefined, PublicRpcSchema, {
                        [K in (...) | (...) | (...)]: (...)[(...)]
                    } & PublicActions<Transport, (...) | (...)>>);
                    getBalance: ((args) => Promise<bigint>);
                    getBlobBaseFee: (() => Promise<bigint>);
                    getBlock: (<TIncludeTransactions, TBlockTag>(args?) => Promise<{
                        baseFeePerGas: null | bigint;
                        blobGasUsed: bigint;
                        difficulty: bigint;
                        excessBlobGas: bigint;
                        extraData: `0x${string}`;
                        gasLimit: bigint;
                        gasUsed: bigint;
                        hash: TBlockTag extends "pending"
                            ? null
                            : `0x${(...)}`;
                        logsBloom: TBlockTag extends "pending"
                            ? null
                            : `0x${(...)}`;
                        miner: `0x${string}`;
                        mixHash: `0x${string}`;
                        nonce: TBlockTag extends "pending"
                            ? null
                            : `0x${(...)}`;
                        number: TBlockTag extends "pending"
                            ? null
                            : bigint;
                        parentHash: `0x${string}`;
                        receiptsRoot: `0x${string}`;
                        sealFields: `0x${(...)}`[];
                        sha3Uncles: `0x${string}`;
                        size: bigint;
                        stateRoot: `0x${string}`;
                        timestamp: bigint;
                        totalDifficulty: null | bigint;
                        transactions: TIncludeTransactions extends true
                            ? (...)[]
                            : (...)[];
                        transactionsRoot: `0x${string}`;
                        uncles: `0x${(...)}`[];
                        withdrawals?: (...)[];
                        withdrawalsRoot?: `0x${(...)}`;
                    }>);
                    getBlockNumber: ((args?) => Promise<bigint>);
                    getBlockTransactionCount: ((args?) => Promise<number>);
                    getBytecode: ((args) => Promise<GetBytecodeReturnType>);
                    getChainId: (() => Promise<number>);
                    getContractEvents: (<const abi, eventName, strict, fromBlock, toBlock>(args) => Promise<GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>);
                    getEnsAddress: ((args) => Promise<GetEnsAddressReturnType>);
                    getEnsAvatar: ((args) => Promise<GetEnsAvatarReturnType>);
                    getEnsName: ((args) => Promise<GetEnsNameReturnType>);
                    getEnsResolver: ((args) => Promise<`0x${string}`>);
                    getEnsText: ((args) => Promise<GetEnsTextReturnType>);
                    getFeeHistory: ((args) => Promise<GetFeeHistoryReturnType>);
                    getFilterChanges: (<TFilterType, const TAbi, TEventName, TStrict, TFromBlock, TToBlock>(args) => Promise<GetFilterChangesReturnType<TFilterType, TAbi, TEventName, TStrict, TFromBlock, TToBlock>>);
                    getFilterLogs: (<const TAbi, TEventName, TStrict, TFromBlock, TToBlock>(args) => Promise<GetFilterLogsReturnType<TAbi, TEventName, TStrict, TFromBlock, TToBlock>>);
                    getGasPrice: (() => Promise<bigint>);
                    getLogs: (<const TAbiEvent, const TAbiEvents, TStrict, TFromBlock, TToBlock>(args?) => Promise<GetLogsReturnType<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>>);
                    getProof: ((args) => Promise<GetProofReturnType>);
                    getStorageAt: ((args) => Promise<GetStorageAtReturnType>);
                    getTransaction: (<TBlockTag>(args) => Promise<{
                        accessList?: undefined;
                        blobVersionedHashes?: undefined;
                        blockHash: (...) extends (...)
                            ? (...)
                            : (...);
                        blockNumber: (...) extends (...)
                            ? (...)
                            : (...);
                        chainId?: (...) | (...);
                        from: `0x${(...)}`;
                        gas: bigint;
                        gasPrice: bigint;
                        hash: `0x${(...)}`;
                        input: `0x${(...)}`;
                        maxFeePerBlobGas?: undefined;
                        maxFeePerGas?: undefined;
                        maxPriorityFeePerGas?: undefined;
                        nonce: number;
                        r: `0x${(...)}`;
                        s: `0x${(...)}`;
                        to: (...) | (...);
                        transactionIndex: (...) extends (...)
                            ? (...)
                            : (...);
                        type: "legacy";
                        typeHex: (...) | (...);
                        v: bigint;
                        value: bigint;
                        yParity?: undefined;
                    } | {
                        accessList: AccessList;
                        blobVersionedHashes?: undefined;
                        blockHash: (...) extends (...)
                            ? (...)
                            : (...);
                        blockNumber: (...) extends (...)
                            ? (...)
                            : (...);
                        chainId: number;
                        from: `0x${(...)}`;
                        gas: bigint;
                        gasPrice: bigint;
                        hash: `0x${(...)}`;
                        input: `0x${(...)}`;
                        maxFeePerBlobGas?: undefined;
                        maxFeePerGas?: undefined;
                        maxPriorityFeePerGas?: undefined;
                        nonce: number;
                        r: `0x${(...)}`;
                        s: `0x${(...)}`;
                        to: (...) | (...);
                        transactionIndex: (...) extends (...)
                            ? (...)
                            : (...);
                        type: "eip2930";
                        typeHex: (...) | (...);
                        v: bigint;
                        value: bigint;
                        yParity: number;
                    } | {
                        accessList: AccessList;
                        blobVersionedHashes?: undefined;
                        blockHash: (...) extends (...)
                            ? (...)
                            : (...);
                        blockNumber: (...) extends (...)
                            ? (...)
                            : (...);
                        chainId: number;
                        from: `0x${(...)}`;
                        gas: bigint;
                        gasPrice?: undefined;
                        hash: `0x${(...)}`;
                        input: `0x${(...)}`;
                        maxFeePerBlobGas?: undefined;
                        maxFeePerGas: bigint;
                        maxPriorityFeePerGas: bigint;
                        nonce: number;
                        r: `0x${(...)}`;
                        s: `0x${(...)}`;
                        to: (...) | (...);
                        transactionIndex: (...) extends (...)
                            ? (...)
                            : (...);
                        type: "eip1559";
                        typeHex: (...) | (...);
                        v: bigint;
                        value: bigint;
                        yParity: number;
                    } | {
                        accessList: AccessList;
                        blobVersionedHashes: (...)[];
                        blockHash: (...) extends (...)
                            ? (...)
                            : (...);
                        blockNumber: (...) extends (...)
                            ? (...)
                            : (...);
                        chainId: number;
                        from: `0x${(...)}`;
                        gas: bigint;
                        gasPrice?: undefined;
                        hash: `0x${(...)}`;
                        input: `0x${(...)}`;
                        maxFeePerBlobGas: bigint;
                        maxFeePerGas: bigint;
                        maxPriorityFeePerGas: bigint;
                        nonce: number;
                        r: `0x${(...)}`;
                        s: `0x${(...)}`;
                        to: (...) | (...);
                        transactionIndex: (...) extends (...)
                            ? (...)
                            : (...);
                        type: "eip4844";
                        typeHex: (...) | (...);
                        v: bigint;
                        value: bigint;
                        yParity: number;
                    }>);
                    getTransactionConfirmations: ((args) => Promise<bigint>);
                    getTransactionCount: ((args) => Promise<number>);
                    getTransactionReceipt: ((args) => Promise<TransactionReceipt>);
                    key: string;
                    multicall: (<const contracts, allowFailure>(args) => Promise<MulticallReturnType<contracts, allowFailure>>);
                    name: string;
                    pollingInterval: number;
                    prepareTransactionRequest: (<const TRequest, TChainOverride, TAccountOverride>(args) => Promise<{
                        [K in string | number | symbol]: ((...) & (...))[K]
                    }>);
                    readContract: (<const abi, functionName, args>(args) => Promise<ReadContractReturnType<abi, functionName, args>>);
                    request: EIP1193RequestFn<PublicRpcSchema>;
                    sendRawTransaction: ((args) => Promise<`0x${string}`>);
                    simulateContract: (<const abi, functionName, args, chainOverride, accountOverride>(args) => Promise<SimulateContractReturnType<abi, functionName, args, undefined | Chain, undefined | Account, chainOverride, accountOverride>>);
                    transport: TransportConfig<string, EIP1193RequestFn> & Record<string, any>;
                    type: string;
                    uid: string;
                    uninstallFilter: ((args) => Promise<boolean>);
                    verifyMessage: ((args) => Promise<boolean>);
                    verifyTypedData: ((args) => Promise<boolean>);
                    waitForTransactionReceipt: ((args) => Promise<TransactionReceipt>);
                    watchBlockNumber: ((args) => WatchBlockNumberReturnType);
                    watchBlocks: (<TIncludeTransactions, TBlockTag>(args) => WatchBlocksReturnType);
                    watchContractEvent: (<const TAbi, TEventName, TStrict>(args) => WatchContractEventReturnType);
                    watchEvent: (<const TAbiEvent, const TAbiEvents, TStrict>(args) => WatchEventReturnType);
                    watchPendingTransactions: ((args) => WatchPendingTransactionsReturnType);
                };
                requests: UpdateDataRequest[];
                versionOverride?: bigint;
            }> & OptionalRequests = {}

          Returns Promise<UpdateDataResponse[]>

    • oracleCommitmentsTimestamp: ((args) => Promise<UpdateDataResponse[]>)
        • (args): Promise<UpdateDataResponse[]>
        • Parameters

          • args: OmitBound<{
                chainId: 1424 | 42161 | 60850 | 421614;
                onError?: (() => void);
                onSuccess?: (() => void);
                oracleClients: OracleClients;
                publicClient: {
                    account: undefined;
                    batch?: {
                        multicall?: boolean | {
                            batchSize?: (...) | (...);
                            wait?: (...) | (...);
                        };
                    };
                    cacheTime: number;
                    call: ((parameters) => Promise<CallReturnType>);
                    ccipRead?: false | {
                        request?: ((parameters) => Promise<(...)>);
                    };
                    chain: undefined | Chain;
                    createBlockFilter: (() => Promise<{
                        id: `0x${string}`;
                        request: EIP1193RequestFn<readonly [(...), (...), (...)]>;
                        type: "block";
                    }>);
                    createContractEventFilter: (<const TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>(args) => Promise<CreateContractEventFilterReturnType<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>>);
                    createEventFilter: (<const TAbiEvent, const TAbiEvents, TStrict, TFromBlock, TToBlock, _EventName, _Args>(args?) => Promise<{
                        [K in string | number | symbol]: Filter<(...), (...), (...), (...), (...), (...), (...)>[K]
                    }>);
                    createPendingTransactionFilter: (() => Promise<{
                        id: `0x${string}`;
                        request: EIP1193RequestFn<readonly [(...), (...), (...)]>;
                        type: "transaction";
                    }>);
                    estimateContractGas: (<TChain, const abi, functionName, args>(args) => Promise<bigint>);
                    estimateFeesPerGas: (<TChainOverride, TType>(args?) => Promise<EstimateFeesPerGasReturnType>);
                    estimateGas: ((args) => Promise<bigint>);
                    estimateMaxPriorityFeePerGas: (<TChainOverride>(args?) => Promise<bigint>);
                    extend: (<const client>(fn) => Client<Transport, undefined | Chain, undefined, PublicRpcSchema, {
                        [K in (...) | (...) | (...)]: (...)[(...)]
                    } & PublicActions<Transport, (...) | (...)>>);
                    getBalance: ((args) => Promise<bigint>);
                    getBlobBaseFee: (() => Promise<bigint>);
                    getBlock: (<TIncludeTransactions, TBlockTag>(args?) => Promise<{
                        baseFeePerGas: null | bigint;
                        blobGasUsed: bigint;
                        difficulty: bigint;
                        excessBlobGas: bigint;
                        extraData: `0x${string}`;
                        gasLimit: bigint;
                        gasUsed: bigint;
                        hash: TBlockTag extends "pending"
                            ? null
                            : `0x${(...)}`;
                        logsBloom: TBlockTag extends "pending"
                            ? null
                            : `0x${(...)}`;
                        miner: `0x${string}`;
                        mixHash: `0x${string}`;
                        nonce: TBlockTag extends "pending"
                            ? null
                            : `0x${(...)}`;
                        number: TBlockTag extends "pending"
                            ? null
                            : bigint;
                        parentHash: `0x${string}`;
                        receiptsRoot: `0x${string}`;
                        sealFields: `0x${(...)}`[];
                        sha3Uncles: `0x${string}`;
                        size: bigint;
                        stateRoot: `0x${string}`;
                        timestamp: bigint;
                        totalDifficulty: null | bigint;
                        transactions: TIncludeTransactions extends true
                            ? (...)[]
                            : (...)[];
                        transactionsRoot: `0x${string}`;
                        uncles: `0x${(...)}`[];
                        withdrawals?: (...)[];
                        withdrawalsRoot?: `0x${(...)}`;
                    }>);
                    getBlockNumber: ((args?) => Promise<bigint>);
                    getBlockTransactionCount: ((args?) => Promise<number>);
                    getBytecode: ((args) => Promise<GetBytecodeReturnType>);
                    getChainId: (() => Promise<number>);
                    getContractEvents: (<const abi, eventName, strict, fromBlock, toBlock>(args) => Promise<GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>);
                    getEnsAddress: ((args) => Promise<GetEnsAddressReturnType>);
                    getEnsAvatar: ((args) => Promise<GetEnsAvatarReturnType>);
                    getEnsName: ((args) => Promise<GetEnsNameReturnType>);
                    getEnsResolver: ((args) => Promise<`0x${string}`>);
                    getEnsText: ((args) => Promise<GetEnsTextReturnType>);
                    getFeeHistory: ((args) => Promise<GetFeeHistoryReturnType>);
                    getFilterChanges: (<TFilterType, const TAbi, TEventName, TStrict, TFromBlock, TToBlock>(args) => Promise<GetFilterChangesReturnType<TFilterType, TAbi, TEventName, TStrict, TFromBlock, TToBlock>>);
                    getFilterLogs: (<const TAbi, TEventName, TStrict, TFromBlock, TToBlock>(args) => Promise<GetFilterLogsReturnType<TAbi, TEventName, TStrict, TFromBlock, TToBlock>>);
                    getGasPrice: (() => Promise<bigint>);
                    getLogs: (<const TAbiEvent, const TAbiEvents, TStrict, TFromBlock, TToBlock>(args?) => Promise<GetLogsReturnType<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>>);
                    getProof: ((args) => Promise<GetProofReturnType>);
                    getStorageAt: ((args) => Promise<GetStorageAtReturnType>);
                    getTransaction: (<TBlockTag>(args) => Promise<{
                        accessList?: undefined;
                        blobVersionedHashes?: undefined;
                        blockHash: (...) extends (...)
                            ? (...)
                            : (...);
                        blockNumber: (...) extends (...)
                            ? (...)
                            : (...);
                        chainId?: (...) | (...);
                        from: `0x${(...)}`;
                        gas: bigint;
                        gasPrice: bigint;
                        hash: `0x${(...)}`;
                        input: `0x${(...)}`;
                        maxFeePerBlobGas?: undefined;
                        maxFeePerGas?: undefined;
                        maxPriorityFeePerGas?: undefined;
                        nonce: number;
                        r: `0x${(...)}`;
                        s: `0x${(...)}`;
                        to: (...) | (...);
                        transactionIndex: (...) extends (...)
                            ? (...)
                            : (...);
                        type: "legacy";
                        typeHex: (...) | (...);
                        v: bigint;
                        value: bigint;
                        yParity?: undefined;
                    } | {
                        accessList: AccessList;
                        blobVersionedHashes?: undefined;
                        blockHash: (...) extends (...)
                            ? (...)
                            : (...);
                        blockNumber: (...) extends (...)
                            ? (...)
                            : (...);
                        chainId: number;
                        from: `0x${(...)}`;
                        gas: bigint;
                        gasPrice: bigint;
                        hash: `0x${(...)}`;
                        input: `0x${(...)}`;
                        maxFeePerBlobGas?: undefined;
                        maxFeePerGas?: undefined;
                        maxPriorityFeePerGas?: undefined;
                        nonce: number;
                        r: `0x${(...)}`;
                        s: `0x${(...)}`;
                        to: (...) | (...);
                        transactionIndex: (...) extends (...)
                            ? (...)
                            : (...);
                        type: "eip2930";
                        typeHex: (...) | (...);
                        v: bigint;
                        value: bigint;
                        yParity: number;
                    } | {
                        accessList: AccessList;
                        blobVersionedHashes?: undefined;
                        blockHash: (...) extends (...)
                            ? (...)
                            : (...);
                        blockNumber: (...) extends (...)
                            ? (...)
                            : (...);
                        chainId: number;
                        from: `0x${(...)}`;
                        gas: bigint;
                        gasPrice?: undefined;
                        hash: `0x${(...)}`;
                        input: `0x${(...)}`;
                        maxFeePerBlobGas?: undefined;
                        maxFeePerGas: bigint;
                        maxPriorityFeePerGas: bigint;
                        nonce: number;
                        r: `0x${(...)}`;
                        s: `0x${(...)}`;
                        to: (...) | (...);
                        transactionIndex: (...) extends (...)
                            ? (...)
                            : (...);
                        type: "eip1559";
                        typeHex: (...) | (...);
                        v: bigint;
                        value: bigint;
                        yParity: number;
                    } | {
                        accessList: AccessList;
                        blobVersionedHashes: (...)[];
                        blockHash: (...) extends (...)
                            ? (...)
                            : (...);
                        blockNumber: (...) extends (...)
                            ? (...)
                            : (...);
                        chainId: number;
                        from: `0x${(...)}`;
                        gas: bigint;
                        gasPrice?: undefined;
                        hash: `0x${(...)}`;
                        input: `0x${(...)}`;
                        maxFeePerBlobGas: bigint;
                        maxFeePerGas: bigint;
                        maxPriorityFeePerGas: bigint;
                        nonce: number;
                        r: `0x${(...)}`;
                        s: `0x${(...)}`;
                        to: (...) | (...);
                        transactionIndex: (...) extends (...)
                            ? (...)
                            : (...);
                        type: "eip4844";
                        typeHex: (...) | (...);
                        v: bigint;
                        value: bigint;
                        yParity: number;
                    }>);
                    getTransactionConfirmations: ((args) => Promise<bigint>);
                    getTransactionCount: ((args) => Promise<number>);
                    getTransactionReceipt: ((args) => Promise<TransactionReceipt>);
                    key: string;
                    multicall: (<const contracts, allowFailure>(args) => Promise<MulticallReturnType<contracts, allowFailure>>);
                    name: string;
                    pollingInterval: number;
                    prepareTransactionRequest: (<const TRequest, TChainOverride, TAccountOverride>(args) => Promise<{
                        [K in string | number | symbol]: ((...) & (...))[K]
                    }>);
                    readContract: (<const abi, functionName, args>(args) => Promise<ReadContractReturnType<abi, functionName, args>>);
                    request: EIP1193RequestFn<PublicRpcSchema>;
                    sendRawTransaction: ((args) => Promise<`0x${string}`>);
                    simulateContract: (<const abi, functionName, args, chainOverride, accountOverride>(args) => Promise<SimulateContractReturnType<abi, functionName, args, undefined | Chain, undefined | Account, chainOverride, accountOverride>>);
                    transport: TransportConfig<string, EIP1193RequestFn> & Record<string, any>;
                    type: string;
                    uid: string;
                    uninstallFilter: ((args) => Promise<boolean>);
                    verifyMessage: ((args) => Promise<boolean>);
                    verifyTypedData: ((args) => Promise<boolean>);
                    waitForTransactionReceipt: ((args) => Promise<TransactionReceipt>);
                    watchBlockNumber: ((args) => WatchBlockNumberReturnType);
                    watchBlocks: (<TIncludeTransactions, TBlockTag>(args) => WatchBlocksReturnType);
                    watchContractEvent: (<const TAbi, TEventName, TStrict>(args) => WatchContractEventReturnType);
                    watchEvent: (<const TAbiEvent, const TAbiEvents, TStrict>(args) => WatchEventReturnType);
                    watchPendingTransactions: ((args) => WatchPendingTransactionsReturnType);
                };
                requests: UpdateDataRequest[];
                timestamp: bigint;
                versionOverride?: bigint;
            }> & OptionalRequests

          Returns Promise<UpdateDataResponse[]>

    • oracleProviderForFactoryAddress: ((args) => Promise<OracleProviderType>)
        • (args): Promise<OracleProviderType>
        • Parameters

          • args: OmitBound<{
                chainId: 1424 | 42161 | 60850 | 421614;
                factory: `0x${string}`;
                publicClient: {
                    account: undefined;
                    batch?: {
                        multicall?: boolean | {
                            batchSize?: number;
                            wait?: number;
                        };
                    };
                    cacheTime: number;
                    call: ((parameters) => Promise<CallReturnType>);
                    ccipRead?: false | {
                        request?: ((parameters) => Promise<`0x${(...)}`>);
                    };
                    chain: undefined | Chain;
                    createBlockFilter: (() => Promise<{
                        id: `0x${string}`;
                        request: EIP1193RequestFn<readonly [{
                            Method: ...;
                            Parameters: ...;
                            ReturnType: ...;
                        }, {
                            Method: ...;
                            Parameters: ...;
                            ReturnType: ...;
                        }, {
                            Method: ...;
                            Parameters: ...;
                            ReturnType: ...;
                        }]>;
                        type: "block";
                    }>);
                    createContractEventFilter: (<const TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>(args) => Promise<CreateContractEventFilterReturnType<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>>);
                    createEventFilter: (<const TAbiEvent, const TAbiEvents, TStrict, TFromBlock, TToBlock, _EventName, _Args>(args?) => Promise<{
                        [K in string | number | symbol]: Filter<"event", TAbiEvents, _EventName, _Args, TStrict, TFromBlock, TToBlock>[K]
                    }>);
                    createPendingTransactionFilter: (() => Promise<{
                        id: `0x${string}`;
                        request: EIP1193RequestFn<readonly [{
                            Method: ...;
                            Parameters: ...;
                            ReturnType: ...;
                        }, {
                            Method: ...;
                            Parameters: ...;
                            ReturnType: ...;
                        }, {
                            Method: ...;
                            Parameters: ...;
                            ReturnType: ...;
                        }]>;
                        type: "transaction";
                    }>);
                    estimateContractGas: (<TChain, const abi, functionName, args>(args) => Promise<bigint>);
                    estimateFeesPerGas: (<TChainOverride, TType>(args?) => Promise<EstimateFeesPerGasReturnType>);
                    estimateGas: ((args) => Promise<bigint>);
                    estimateMaxPriorityFeePerGas: (<TChainOverride>(args?) => Promise<bigint>);
                    extend: (<const client>(fn) => Client<Transport, undefined | Chain, undefined, PublicRpcSchema, {
                        [K in string | number | symbol]: client[K]
                    } & PublicActions<Transport, undefined | Chain>>);
                    getBalance: ((args) => Promise<bigint>);
                    getBlobBaseFee: (() => Promise<bigint>);
                    getBlock: (<TIncludeTransactions, TBlockTag>(args?) => Promise<{
                        baseFeePerGas: null | bigint;
                        blobGasUsed: bigint;
                        difficulty: bigint;
                        excessBlobGas: bigint;
                        extraData: `0x${string}`;
                        gasLimit: bigint;
                        gasUsed: bigint;
                        hash: TBlockTag extends "pending"
                            ? null
                            : `0x${string}`;
                        logsBloom: TBlockTag extends "pending"
                            ? null
                            : `0x${string}`;
                        miner: `0x${string}`;
                        mixHash: `0x${string}`;
                        nonce: TBlockTag extends "pending"
                            ? null
                            : `0x${string}`;
                        number: TBlockTag extends "pending"
                            ? null
                            : bigint;
                        parentHash: `0x${string}`;
                        receiptsRoot: `0x${string}`;
                        sealFields: `0x${string}`[];
                        sha3Uncles: `0x${string}`;
                        size: bigint;
                        stateRoot: `0x${string}`;
                        timestamp: bigint;
                        totalDifficulty: null | bigint;
                        transactions: TIncludeTransactions extends true
                            ? ((...) | (...) | (...) | (...))[]
                            : `0x${(...)}`[];
                        transactionsRoot: `0x${string}`;
                        uncles: `0x${string}`[];
                        withdrawals?: Withdrawal[];
                        withdrawalsRoot?: `0x${string}`;
                    }>);
                    getBlockNumber: ((args?) => Promise<bigint>);
                    getBlockTransactionCount: ((args?) => Promise<number>);
                    getBytecode: ((args) => Promise<GetBytecodeReturnType>);
                    getChainId: (() => Promise<number>);
                    getContractEvents: (<const abi, eventName, strict, fromBlock, toBlock>(args) => Promise<GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>);
                    getEnsAddress: ((args) => Promise<GetEnsAddressReturnType>);
                    getEnsAvatar: ((args) => Promise<GetEnsAvatarReturnType>);
                    getEnsName: ((args) => Promise<GetEnsNameReturnType>);
                    getEnsResolver: ((args) => Promise<`0x${string}`>);
                    getEnsText: ((args) => Promise<GetEnsTextReturnType>);
                    getFeeHistory: ((args) => Promise<GetFeeHistoryReturnType>);
                    getFilterChanges: (<TFilterType, const TAbi, TEventName, TStrict, TFromBlock, TToBlock>(args) => Promise<GetFilterChangesReturnType<TFilterType, TAbi, TEventName, TStrict, TFromBlock, TToBlock>>);
                    getFilterLogs: (<const TAbi, TEventName, TStrict, TFromBlock, TToBlock>(args) => Promise<GetFilterLogsReturnType<TAbi, TEventName, TStrict, TFromBlock, TToBlock>>);
                    getGasPrice: (() => Promise<bigint>);
                    getLogs: (<const TAbiEvent, const TAbiEvents, TStrict, TFromBlock, TToBlock>(args?) => Promise<GetLogsReturnType<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>>);
                    getProof: ((args) => Promise<GetProofReturnType>);
                    getStorageAt: ((args) => Promise<GetStorageAtReturnType>);
                    getTransaction: (<TBlockTag>(args) => Promise<{
                        accessList?: undefined;
                        blobVersionedHashes?: undefined;
                        blockHash: ((...) extends (...)
                                ? (...)
                                : (...)) extends true
                            ? null
                            : `0x${(...)}`;
                        blockNumber: ((...) extends (...)
                                ? (...)
                                : (...)) extends true
                            ? null
                            : bigint;
                        chainId?: number;
                        from: `0x${string}`;
                        gas: bigint;
                        gasPrice: bigint;
                        hash: `0x${string}`;
                        input: `0x${string}`;
                        maxFeePerBlobGas?: undefined;
                        maxFeePerGas?: undefined;
                        maxPriorityFeePerGas?: undefined;
                        nonce: number;
                        r: `0x${string}`;
                        s: `0x${string}`;
                        to: null | `0x${(...)}`;
                        transactionIndex: ((...) extends (...)
                                ? (...)
                                : (...)) extends true
                            ? null
                            : number;
                        type: "legacy";
                        typeHex: null | `0x${(...)}`;
                        v: bigint;
                        value: bigint;
                        yParity?: undefined;
                    } | {
                        accessList: AccessList;
                        blobVersionedHashes?: undefined;
                        blockHash: ((...) extends (...)
                                ? (...)
                                : (...)) extends true
                            ? null
                            : `0x${(...)}`;
                        blockNumber: ((...) extends (...)
                                ? (...)
                                : (...)) extends true
                            ? null
                            : bigint;
                        chainId: number;
                        from: `0x${string}`;
                        gas: bigint;
                        gasPrice: bigint;
                        hash: `0x${string}`;
                        input: `0x${string}`;
                        maxFeePerBlobGas?: undefined;
                        maxFeePerGas?: undefined;
                        maxPriorityFeePerGas?: undefined;
                        nonce: number;
                        r: `0x${string}`;
                        s: `0x${string}`;
                        to: null | `0x${(...)}`;
                        transactionIndex: ((...) extends (...)
                                ? (...)
                                : (...)) extends true
                            ? null
                            : number;
                        type: "eip2930";
                        typeHex: null | `0x${(...)}`;
                        v: bigint;
                        value: bigint;
                        yParity: number;
                    } | {
                        accessList: AccessList;
                        blobVersionedHashes?: undefined;
                        blockHash: ((...) extends (...)
                                ? (...)
                                : (...)) extends true
                            ? null
                            : `0x${(...)}`;
                        blockNumber: ((...) extends (...)
                                ? (...)
                                : (...)) extends true
                            ? null
                            : bigint;
                        chainId: number;
                        from: `0x${string}`;
                        gas: bigint;
                        gasPrice?: undefined;
                        hash: `0x${string}`;
                        input: `0x${string}`;
                        maxFeePerBlobGas?: undefined;
                        maxFeePerGas: bigint;
                        maxPriorityFeePerGas: bigint;
                        nonce: number;
                        r: `0x${string}`;
                        s: `0x${string}`;
                        to: null | `0x${(...)}`;
                        transactionIndex: ((...) extends (...)
                                ? (...)
                                : (...)) extends true
                            ? null
                            : number;
                        type: "eip1559";
                        typeHex: null | `0x${(...)}`;
                        v: bigint;
                        value: bigint;
                        yParity: number;
                    } | {
                        accessList: AccessList;
                        blobVersionedHashes: `0x${(...)}`[];
                        blockHash: ((...) extends (...)
                                ? (...)
                                : (...)) extends true
                            ? null
                            : `0x${(...)}`;
                        blockNumber: ((...) extends (...)
                                ? (...)
                                : (...)) extends true
                            ? null
                            : bigint;
                        chainId: number;
                        from: `0x${string}`;
                        gas: bigint;
                        gasPrice?: undefined;
                        hash: `0x${string}`;
                        input: `0x${string}`;
                        maxFeePerBlobGas: bigint;
                        maxFeePerGas: bigint;
                        maxPriorityFeePerGas: bigint;
                        nonce: number;
                        r: `0x${string}`;
                        s: `0x${string}`;
                        to: null | `0x${(...)}`;
                        transactionIndex: ((...) extends (...)
                                ? (...)
                                : (...)) extends true
                            ? null
                            : number;
                        type: "eip4844";
                        typeHex: null | `0x${(...)}`;
                        v: bigint;
                        value: bigint;
                        yParity: number;
                    }>);
                    getTransactionConfirmations: ((args) => Promise<bigint>);
                    getTransactionCount: ((args) => Promise<number>);
                    getTransactionReceipt: ((args) => Promise<TransactionReceipt>);
                    key: string;
                    multicall: (<const contracts, allowFailure>(args) => Promise<MulticallReturnType<contracts, allowFailure>>);
                    name: string;
                    pollingInterval: number;
                    prepareTransactionRequest: (<const TRequest, TChainOverride, TAccountOverride>(args) => Promise<{
                        [K in string | number | symbol]: (UnionRequiredBy<(...), (...)> & ((...) extends (...)
                            ? (...)
                            : (...)))[K]
                    }>);
                    readContract: (<const abi, functionName, args>(args) => Promise<ReadContractReturnType<abi, functionName, args>>);
                    request: EIP1193RequestFn<PublicRpcSchema>;
                    sendRawTransaction: ((args) => Promise<`0x${string}`>);
                    simulateContract: (<const abi, functionName, args, chainOverride, accountOverride>(args) => Promise<SimulateContractReturnType<abi, functionName, args, undefined | Chain, undefined | Account, chainOverride, accountOverride>>);
                    transport: TransportConfig<string, EIP1193RequestFn> & Record<string, any>;
                    type: string;
                    uid: string;
                    uninstallFilter: ((args) => Promise<boolean>);
                    verifyMessage: ((args) => Promise<boolean>);
                    verifyTypedData: ((args) => Promise<boolean>);
                    waitForTransactionReceipt: ((args) => Promise<TransactionReceipt>);
                    watchBlockNumber: ((args) => WatchBlockNumberReturnType);
                    watchBlocks: (<TIncludeTransactions, TBlockTag>(args) => WatchBlocksReturnType);
                    watchContractEvent: (<const TAbi, TEventName, TStrict>(args) => WatchContractEventReturnType);
                    watchEvent: (<const TAbiEvent, const TAbiEvents, TStrict>(args) => WatchEventReturnType);
                    watchPendingTransactions: ((args) => WatchPendingTransactionsReturnType);
                };
            }>

          Returns Promise<OracleProviderType>

  • get write(): {
        commitPrice: ((...args) => Promise<`0x${string}`>);
    }
  • Returns {
        commitPrice: ((...args) => Promise<`0x${string}`>);
    }