UNPKG

@witnet/ethers

Version:

Wit/Oracle SDK Framework package for Solidity projects

18 lines 1.26 kB
import { Witnet } from "@witnet/sdk"; import { DataPushReport, WitOracleQueryParams, WitOracleQueryStatus } from "./types"; import { HexString } from "node_modules/ethers/lib.commonjs/utils/data"; export * from "@witnet/sdk/utils"; export declare const ABIs: any; export declare function getEvmNetworkAddresses(network: string): any; export declare function getEvmNetworkByChainId(chainId: number): string | undefined; export declare function isEvmNetworkMainnet(network: string): boolean; export declare function isEvmNetworkSupported(network: string): boolean; export declare function abiDecodeQueryStatus(status: bigint): WitOracleQueryStatus; export declare function abiDecodePriceFeedMappingAlgorithm(algorithm: bigint): string; export declare function abiEncodeDataPushReport(report: DataPushReport): any; export declare function abiEncodeDataPushReportMessage(report: DataPushReport): HexString; export declare function abiEncodeDataPushReportDigest(report: DataPushReport): HexString; export declare function abiEncodeWitOracleQueryParams(queryParams: WitOracleQueryParams): any; export declare function abiEncodeRadonAsset(asset: any): any; export declare function decodeCborBytes(_cborBytes: Witnet.HexString): any; //# sourceMappingURL=utils.d.ts.map