|
|
@@ -13,26 +13,26 @@ import { ArrowPathIcon } from "@heroicons/react/24/outline";
|
|
|
import PythAbi from "@pythnetwork/pyth-sdk-solidity/abis/IPyth.json";
|
|
|
import PythErrorsAbi from "@pythnetwork/pyth-sdk-solidity/abis/PythErrors.json";
|
|
|
import { ChainIcon } from "connectkit";
|
|
|
-import {
|
|
|
- type Dispatch,
|
|
|
- type SetStateAction,
|
|
|
- type ComponentProps,
|
|
|
- type ElementType,
|
|
|
- type SVGAttributes,
|
|
|
- useState,
|
|
|
- useCallback,
|
|
|
- useMemo,
|
|
|
+import type {
|
|
|
+ Dispatch,
|
|
|
+ SetStateAction,
|
|
|
+ ComponentProps,
|
|
|
+ ElementType,
|
|
|
+ SVGAttributes,
|
|
|
} from "react";
|
|
|
+import { useState, useCallback, useMemo } from "react";
|
|
|
import { useSwitchChain, useChainId, useConfig } from "wagmi";
|
|
|
import { readContract } from "wagmi/actions";
|
|
|
|
|
|
import type { Parameter } from "./parameter";
|
|
|
import { ParameterInput } from "./parameter-input";
|
|
|
-import { type EvmApiType, RunButton } from "./run-button";
|
|
|
+import type { EvmApiType } from "./run-button";
|
|
|
+import { RunButton } from "./run-button";
|
|
|
import { getLogger } from "../../browser-logger";
|
|
|
import { getContractAddress } from "../../evm-networks";
|
|
|
import { useIsMounted } from "../../use-is-mounted";
|
|
|
-import { type SupportedLanguage, Code } from "../Code";
|
|
|
+import type { SupportedLanguage } from "../Code";
|
|
|
+import { Code } from "../Code";
|
|
|
import { ErrorTooltip } from "../ErrorTooltip";
|
|
|
import { InlineLink } from "../InlineLink";
|
|
|
import { Markdown } from "../Markdown";
|