Adapt types imports
This commit is contained in:
@@ -4,7 +4,7 @@ import { getConnectError } from "@/lib/errorHelpers";
|
||||
import { requestJson } from "@/lib/request";
|
||||
import { msgTypeCountsFromJson } from "@/lib/txMsgHelpers";
|
||||
import { cn, toastError } from "@/lib/utils";
|
||||
import { DbNonce, DbTransaction } from "@/types";
|
||||
import { DbNonce, DbTransaction } from "@/types/db";
|
||||
import { WalletInfo } from "@/types/signing";
|
||||
import { toBase64 } from "@cosmjs/encoding";
|
||||
import { StargateClient } from "@cosmjs/stargate";
|
||||
|
||||
@@ -3,7 +3,7 @@ import { getConnectError } from "@/lib/errorHelpers";
|
||||
import { MultisigFromQuery } from "@/lib/graphqlHelpers";
|
||||
import { requestJson } from "@/lib/request";
|
||||
import { toastError } from "@/lib/utils";
|
||||
import { DbNonce } from "@/types";
|
||||
import { DbNonce } from "@/types/db";
|
||||
import { WalletInfo } from "@/types/signing";
|
||||
import { MultisigThresholdPubkey } from "@cosmjs/amino";
|
||||
import { toBase64 } from "@cosmjs/encoding";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DbSignature } from "@/types/db";
|
||||
import { MultisigThresholdPubkey } from "@cosmjs/amino";
|
||||
import { useEffect, useState } from "react";
|
||||
import { DbSignature } from "../../types";
|
||||
import StackableContainer from "../layout/StackableContainer";
|
||||
import CopyAndPaste from "./CopyAndPaste";
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { DbTransactionJsonObj } from "@/types/db";
|
||||
import { MsgTypeUrls } from "@/types/txMsg";
|
||||
import { EncodeObject } from "@cosmjs/proto-signing";
|
||||
import { useChains } from "../../../context/ChainsContext";
|
||||
import { printableCoins } from "../../../lib/displayHelpers";
|
||||
import { DbTransactionJsonObj } from "../../../types";
|
||||
import { MsgTypeUrls } from "../../../types/txMsg";
|
||||
import StackableContainer from "../../layout/StackableContainer";
|
||||
import TxMsgBeginRedelegateDetails from "./TxMsgBeginRedelegateDetails";
|
||||
import TxMsgCreateVestingAccountDetails from "./TxMsgCreateVestingAccountDetails";
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { loadValidators } from "@/context/ChainsContext/helpers";
|
||||
import { toastError, toastSuccess } from "@/lib/utils";
|
||||
import { DbTransactionJsonObj } from "@/types/db";
|
||||
import { MsgTypeUrl, MsgTypeUrls } from "@/types/txMsg";
|
||||
import { EncodeObject } from "@cosmjs/proto-signing";
|
||||
import { Account, calculateFee } from "@cosmjs/stargate";
|
||||
import { assert, sleep } from "@cosmjs/utils";
|
||||
@@ -9,8 +11,6 @@ import { toast } from "sonner";
|
||||
import { useChains } from "../../../context/ChainsContext";
|
||||
import { requestJson } from "../../../lib/request";
|
||||
import { exportMsgToJson, gasOfTx } from "../../../lib/txMsgHelpers";
|
||||
import { DbTransactionJsonObj } from "../../../types";
|
||||
import { MsgTypeUrl, MsgTypeUrls } from "../../../types/txMsg";
|
||||
import Button from "../../inputs/Button";
|
||||
import Input from "../../inputs/Input";
|
||||
import StackableContainer from "../../layout/StackableContainer";
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { toastError, toastSuccess } from "@/lib/utils";
|
||||
import { DbSignature, DbTransactionJsonObj } from "@/types/db";
|
||||
import { LoadingStates, SigningStatus } from "@/types/signing";
|
||||
import { MultisigThresholdPubkey, makeCosmoshubPath } from "@cosmjs/amino";
|
||||
import { createWasmAminoConverters, wasmTypes } from "@cosmjs/cosmwasm-stargate";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DbMultisig, DbNonce, DbSignature, DbTransaction, DbTransactionJsonObj } from "../types";
|
||||
import { DbMultisig, DbNonce, DbSignature, DbTransaction, DbTransactionJsonObj } from "../types/db";
|
||||
import { requestGraphQlJson } from "./request";
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import { DbTransactionJsonObj } from "@/types/db";
|
||||
import { MsgCodecs, MsgTypeUrl, MsgTypeUrls } from "@/types/txMsg";
|
||||
import { EncodeObject } from "@cosmjs/proto-signing";
|
||||
import { DbTransactionJsonObj } from "../types";
|
||||
import { MsgCodecs, MsgTypeUrl, MsgTypeUrls } from "../types/txMsg";
|
||||
|
||||
const gasOfMsg = (msgType: MsgTypeUrl): number => {
|
||||
switch (msgType) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { isChainInfoFilled } from "@/context/ChainsContext/helpers";
|
||||
import { toastError, toastSuccess } from "@/lib/utils";
|
||||
import { DbSignature } from "@/types/db";
|
||||
import { MultisigThresholdPubkey } from "@cosmjs/amino";
|
||||
import { fromBase64 } from "@cosmjs/encoding";
|
||||
import { Account, StargateClient, makeMultisignedTxBytes } from "@cosmjs/stargate";
|
||||
@@ -17,10 +18,9 @@ import Page from "../../../../components/layout/Page";
|
||||
import StackableContainer from "../../../../components/layout/StackableContainer";
|
||||
import { useChains } from "../../../../context/ChainsContext";
|
||||
import { findTransactionByID } from "../../../../lib/graphqlHelpers";
|
||||
import { isAccount, getHostedMultisig } from "../../../../lib/multisigHelpers";
|
||||
import { getHostedMultisig, isAccount } from "../../../../lib/multisigHelpers";
|
||||
import { requestJson } from "../../../../lib/request";
|
||||
import { dbTxFromJson } from "../../../../lib/txMsgHelpers";
|
||||
import { DbSignature } from "../../../../types";
|
||||
|
||||
interface Props {
|
||||
props: {
|
||||
|
||||
Reference in New Issue
Block a user