UNPKG

@witnet/ethers

Version:

Wit/Oracle Ethers Framework package for EVM-compatible projects

22 lines 1.48 kB
import { Witnet } from "@witnet/sdk"; import { JsonRpcProvider } from "ethers"; import { DataPushReport, PriceFeedUpdateConditions, WitOracleArtifact, WitOracleQueryParams, WitOracleQueryStatus } from "./types"; export * from "@witnet/sdk/utils"; export declare const ABIs: any; export declare function fetchWitOracleFramework(provider: JsonRpcProvider): Promise<{ [key: string]: WitOracleArtifact; }>; export declare function getEvmNetworkAddresses(network: string): any; export declare function getEvmNetworkByChainId(chainId: number): string | undefined; export declare function getEvmNetworkSymbol(network: string): string; export declare function getEvmNetworks(): string[]; export declare function isEvmNetworkMainnet(network: string): boolean; export declare function isEvmNetworkSupported(network: string): boolean; export declare function abiDecodeQueryStatus(status: bigint): WitOracleQueryStatus; export declare function abiEncodeDataPushReport(report: DataPushReport): any; export declare function abiEncodeDataPushReportMessage(report: DataPushReport): Witnet.HexString; export declare function abiEncodeDataPushReportDigest(report: DataPushReport): Witnet.HexString; export declare function abiEncodePriceFeedUpdateConditions(conditions: PriceFeedUpdateConditions): any; export declare function abiEncodeWitOracleQueryParams(queryParams: WitOracleQueryParams): any; export declare function abiEncodeRadonAsset(asset: any): any; //# sourceMappingURL=utils.d.ts.map