Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sdk v1 #1869

Merged
merged 5 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/account/AccountButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Menu, Popover, Transition } from "@headlessui/react";
import { getWallets } from "@talismn/connect-wallets";
import { isRpcSdk, ZTG } from "@zeitgeistpm/sdk-next";
import { isRpcSdk, ZTG } from "@zeitgeistpm/sdk";
import Avatar from "components/ui/Avatar";
import Modal from "components/ui/Modal";
import Decimal from "decimal.js";
Expand Down
2 changes: 1 addition & 1 deletion components/account/AccountModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { LogOut } from "react-feather";
import AccountSelect, { AccountOption } from "./AccountSelect";
import { useWallet } from "lib/state/wallet";
import { useZtgBalance } from "lib/hooks/queries/useZtgBalance";
import { ZTG } from "@zeitgeistpm/sdk-next";
import { ZTG } from "@zeitgeistpm/sdk";
import { useChainConstants } from "lib/hooks/queries/useChainConstants";

const AccountModalContent: FC = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Dialog } from "@headlessui/react";
import { ScalarAssetId, CategoricalAssetId } from "@zeitgeistpm/sdk-next";
import { ScalarAssetId, CategoricalAssetId } from "@zeitgeistpm/sdk";
import TradeForm from "components/trade-form";
import Modal from "components/ui/Modal";
import SecondaryButton from "components/ui/SecondaryButton";
Expand Down
2 changes: 1 addition & 1 deletion components/assets/AssetActionButtons/DisputeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
isRpcSdk,
Market,
MarketOutcomeAssetId,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import CategoricalDisputeBox from "components/outcomes/CategoricalDisputeBox";
import ScalarDisputeBox from "components/outcomes/ScalarDisputeBox";
import Modal from "components/ui/Modal";
Expand Down
2 changes: 1 addition & 1 deletion components/assets/AssetActionButtons/PoolShareButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
getIndexOf,
isRpcSdk,
parseAssetId,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import { useChainConstants } from "lib/hooks/queries/useChainConstants";
import { useBalance } from "lib/hooks/queries/useBalance";
import { useWallet } from "lib/state/wallet";
Expand Down
2 changes: 1 addition & 1 deletion components/assets/AssetActionButtons/RedeemButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Market,
MarketId,
parseAssetId,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import SecondaryButton from "components/ui/SecondaryButton";
import Decimal from "decimal.js";
import { ZTG } from "lib/constants";
Expand Down
2 changes: 1 addition & 1 deletion components/assets/AssetActionButtons/ReportButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
isRpcSdk,
Market,
ScalarAssetId,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import ScalarReportBox from "components/outcomes/ScalarReportBox";
import Modal from "components/ui/Modal";
import SecondaryButton from "components/ui/SecondaryButton";
Expand Down
2 changes: 1 addition & 1 deletion components/assets/AssetActionButtons/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CategoricalAssetId, ScalarAssetId } from "@zeitgeistpm/sdk-next";
import { CategoricalAssetId, ScalarAssetId } from "@zeitgeistpm/sdk";
import { useMarket } from "lib/hooks/queries/useMarket";
import { useMarketStage } from "lib/hooks/queries/useMarketStage";
import { useWallet } from "lib/state/wallet";
Expand Down
11 changes: 9 additions & 2 deletions components/create/editor/Publishing.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { Dialog } from "@headlessui/react";
import { useQuery } from "@tanstack/react-query";
import { PollingTimeout, poll } from "@zeitgeistpm/avatara-util";
import { IOZtgAssetId, ZTG, isFullSdk } from "@zeitgeistpm/sdk-next";
import {
IOForeignAssetId,
IOZtgAssetId,
ZTG,
isFullSdk,
} from "@zeitgeistpm/sdk";
import { StorageError } from "@zeitgeistpm/web3.storage";
import Modal from "components/ui/Modal";
import TransactionButton from "components/ui/TransactionButton";
Expand Down Expand Up @@ -166,7 +171,9 @@ export const Publishing = ({ editor }: PublishingProps) => {

const result = await sdk.model.markets.create(
params,
feeDetails?.assetId,
IOForeignAssetId.is(feeDetails?.assetId)
? feeDetails?.assetId
: undefined,
);
const marketId = result.saturate().unwrap().market.marketId;

Expand Down
2 changes: 1 addition & 1 deletion components/front-page/LatestTrades.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Table, { TableColumn, TableData } from "components/ui/Table";
import Link from "next/link";
import { formatNumberLocalized } from "lib/util";
import { useLatestTrades } from "lib/hooks/queries/useLatestTrades";
import { ZTG } from "@zeitgeistpm/sdk-next";
import { ZTG } from "@zeitgeistpm/sdk";
import moment from "moment";
import Avatar from "components/ui/Avatar";

Expand Down
2 changes: 1 addition & 1 deletion components/liquidity/ExitPoolForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
isRpcSdk,
parseAssetId,
ZTG,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import FormTransactionButton from "components/ui/FormTransactionButton";
import Input from "components/ui/Input";
import Decimal from "decimal.js";
Expand Down
2 changes: 1 addition & 1 deletion components/liquidity/JoinPoolForm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useQueryClient } from "@tanstack/react-query";
import { isRpcSdk, ZTG } from "@zeitgeistpm/sdk-next";
import { isRpcSdk, ZTG } from "@zeitgeistpm/sdk";
import FormTransactionButton from "components/ui/FormTransactionButton";
import Input from "components/ui/Input";
import Decimal from "decimal.js";
Expand Down
2 changes: 1 addition & 1 deletion components/liquidity/LiquidityModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
getIndexOf,
IOMarketOutcomeAssetId,
parseAssetId,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import Decimal from "decimal.js";
import { useAccountAssetBalances } from "lib/hooks/queries/useAccountAssetBalances";
import { useAccountPoolAssetBalances } from "lib/hooks/queries/useAccountPoolAssetBalances";
Expand Down
2 changes: 1 addition & 1 deletion components/liquidity/MarketLiquiditySection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FullMarketFragment } from "@zeitgeistpm/indexer";
import { parseAssetId } from "@zeitgeistpm/sdk-next";
import { parseAssetId } from "@zeitgeistpm/sdk";
import LiquidityModal from "components/liquidity/LiquidityModal";
import PoolTable from "components/liquidity/PoolTable";
import BuySellFullSetsButton from "components/markets/BuySellFullSetsButton";
Expand Down
2 changes: 1 addition & 1 deletion components/liquidity/PoolTable.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IOBaseAssetId, parseAssetId, ZTG } from "@zeitgeistpm/sdk-next";
import { IOBaseAssetId, parseAssetId, ZTG } from "@zeitgeistpm/sdk";
import Table, { TableColumn, TableData } from "components/ui/Table";
import Decimal from "decimal.js";
import { useAccountPoolAssetBalances } from "lib/hooks/queries/useAccountPoolAssetBalances";
Expand Down
2 changes: 1 addition & 1 deletion components/markets/BuyFullSetForm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isRpcSdk, parseAssetId } from "@zeitgeistpm/sdk-next";
import { isRpcSdk, parseAssetId } from "@zeitgeistpm/sdk";
import Input from "components/ui/Input";
import TransactionButton from "components/ui/TransactionButton";
import Decimal from "decimal.js";
Expand Down
2 changes: 1 addition & 1 deletion components/markets/DisputeResult.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FullMarketFragment } from "@zeitgeistpm/indexer";
import { ScalarRangeType } from "@zeitgeistpm/sdk-next";
import { ScalarRangeType } from "@zeitgeistpm/sdk";
import { TwitterBird } from "components/markets/TradeResult";
import {
MarketCategoricalOutcome,
Expand Down
2 changes: 1 addition & 1 deletion components/markets/MarketAssetDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
CategoricalAssetId,
MarketOutcomeAssetId,
ScalarAssetId,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import AssetActionButtons from "components/assets/AssetActionButtons";
import Table, { TableColumn, TableData } from "components/ui/Table";
import Decimal from "decimal.js";
Expand Down
2 changes: 1 addition & 1 deletion components/markets/MarketChart.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MarketStatus, parseAssetId } from "@zeitgeistpm/sdk-next";
import { MarketStatus, parseAssetId } from "@zeitgeistpm/sdk";
import TimeFilters, { filters, TimeFilter } from "components/ui/TimeFilters";
import TimeSeriesChart, { ChartSeries } from "components/ui/TimeSeriesChart";
import { useAssetMetadata } from "lib/hooks/queries/useAssetMetadata";
Expand Down
2 changes: 1 addition & 1 deletion components/markets/MarketContextActionOutcomeSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Listbox, Transition } from "@headlessui/react";
import { FullMarketFragment } from "@zeitgeistpm/indexer";
import { MarketOutcomeAssetId, getIndexOf } from "@zeitgeistpm/sdk-next";
import { MarketOutcomeAssetId, getIndexOf } from "@zeitgeistpm/sdk";
import Input from "components/ui/Input";
import TruncatedText from "components/ui/TruncatedText";
import Fuse from "fuse.js";
Expand Down
7 changes: 4 additions & 3 deletions components/markets/MarketHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
MarketStatus,
ScalarRangeType,
parseAssetId,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import Avatar from "components/ui/Avatar";
import Skeleton from "components/ui/Skeleton";
import Decimal from "decimal.js";
Expand All @@ -19,7 +19,7 @@ import { hasDatePassed } from "lib/util/hasDatePassed";
import { FC, PropsWithChildren, useState } from "react";
import { MarketTimer } from "./MarketTimer";
import { MarketTimerSkeleton } from "./MarketTimer";
import { MarketDispute, OutcomeReport } from "@zeitgeistpm/sdk/dist/types";
import { OutcomeReport } from "@zeitgeistpm/indexer";
import {
MarketEventHistory,
useMarketEventHistory,
Expand All @@ -40,6 +40,7 @@ import {
import { useMarketsStats } from "lib/hooks/queries/useMarketsStats";
import { MarketPromotionCallout } from "./PromotionCallout";
import { PromotedMarket } from "lib/cms/get-promoted-markets";
import { MarketDispute } from "lib/types/markets";

export const UserIdentity: FC<
PropsWithChildren<{ user: string; className?: string }>
Expand Down Expand Up @@ -159,7 +160,7 @@ const MarketHistory: FC<
}).format(marketHistory?.end?.timestamp);
const getOutcome = (outcome: OutcomeReport) => {
if (marketType.scalar === null) {
return categories[outcome["categorical"]]?.name;
return categories[outcome.categorical!]?.name;
} else {
return formatScalarOutcome(outcome["scalar"], scalarType);
}
Expand Down
2 changes: 1 addition & 1 deletion components/markets/MarketTimer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isInfinite, MarketStage } from "@zeitgeistpm/sdk-next";
import { isInfinite, MarketStage } from "@zeitgeistpm/sdk";
import { clamp } from "lodash-es";
import Skeleton from "components/ui/Skeleton";
import moment from "moment";
Expand Down
2 changes: 1 addition & 1 deletion components/markets/MarketsList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ScalarRangeType } from "@zeitgeistpm/sdk-next";
import { ScalarRangeType } from "@zeitgeistpm/sdk";
import React, { useEffect, useState } from "react";
import Decimal from "decimal.js";
import { useInView } from "react-intersection-observer";
Expand Down
2 changes: 1 addition & 1 deletion components/markets/PoolDeployer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
isRpcSdk,
parseAssetId,
swapFeeFromFloat,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import TransactionButton from "components/ui/TransactionButton";
import Decimal from "decimal.js";
import { ZTG } from "lib/constants";
Expand Down
2 changes: 1 addition & 1 deletion components/markets/PromotionCallout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Dialog } from "@headlessui/react";
import { IndexerContext, Market } from "@zeitgeistpm/sdk-next";
import { IndexerContext, Market } from "@zeitgeistpm/sdk";
import Modal from "components/ui/Modal";
import { PromotedMarket } from "lib/cms/get-promoted-markets";
import { MarketPageIndexedData } from "lib/gql/markets";
Expand Down
2 changes: 1 addition & 1 deletion components/markets/ReportResult.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FullMarketFragment } from "@zeitgeistpm/indexer";
import { ScalarRangeType } from "@zeitgeistpm/sdk-next";
import { ScalarRangeType } from "@zeitgeistpm/sdk";
import { TwitterBird } from "components/markets/TradeResult";
import {
MarketCategoricalOutcome,
Expand Down
2 changes: 1 addition & 1 deletion components/markets/ScalarPriceRange.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ScalarRangeType } from "@zeitgeistpm/sdk/dist/types";
import type { ScalarRangeType } from "@zeitgeistpm/sdk";
import { formatNumberCompact } from "lib/util/format-compact";
import { useMemo } from "react";
import { useResizeDetector } from "react-resize-detector";
Expand Down
2 changes: 1 addition & 1 deletion components/markets/SellFullSetForm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isRpcSdk } from "@zeitgeistpm/sdk-next";
import { isRpcSdk } from "@zeitgeistpm/sdk";
import Input from "components/ui/Input";
import TransactionButton from "components/ui/TransactionButton";
import Decimal from "decimal.js";
Expand Down
2 changes: 1 addition & 1 deletion components/markets/SimilarMarketsSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { FullMarketFragment } from "@zeitgeistpm/indexer";
import { ScalarRangeType } from "@zeitgeistpm/sdk-next";
import { ScalarRangeType } from "@zeitgeistpm/sdk";
import MarketCard from "components/markets/market-card";
import Decimal from "decimal.js";
import { ZTG } from "lib/constants";
Expand Down
4 changes: 2 additions & 2 deletions components/markets/market-card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ScalarRangeType } from "@zeitgeistpm/sdk/dist/types";
import type { ScalarRangeType } from "@zeitgeistpm/sdk";
import Skeleton from "components/ui/Skeleton";
import { motion } from "framer-motion";
import Decimal from "decimal.js";
Expand All @@ -15,7 +15,7 @@ import {
IOBaseAssetId,
IOForeignAssetId,
parseAssetId,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import { lookupAssetImagePath } from "lib/constants/foreign-asset";
import Image from "next/image";
import MarketImage from "components/ui/MarketImage";
Expand Down
2 changes: 1 addition & 1 deletion components/meta/MarketMeta.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IndexerContext, Market } from "@zeitgeistpm/sdk-next";
import { IndexerContext, Market } from "@zeitgeistpm/sdk";
import { MarketPageIndexedData } from "lib/gql/markets";
import { OgHead } from "./OgHead";

Expand Down
2 changes: 1 addition & 1 deletion components/outcomes/CategoricalDisputeBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Market,
MarketOutcomeAssetId,
parseAssetId,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import TransactionButton from "components/ui/TransactionButton";
import { useChainConstants } from "lib/hooks/queries/useChainConstants";
import {
Expand Down
2 changes: 1 addition & 1 deletion components/outcomes/CategoricalReportBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
isRpcSdk,
Market,
parseAssetId,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import MarketContextActionOutcomeSelector from "components/markets/MarketContextActionOutcomeSelector";
import TransactionButton from "components/ui/TransactionButton";
import TruncatedText from "components/ui/TruncatedText";
Expand Down
2 changes: 1 addition & 1 deletion components/outcomes/ScalarDisputeBox.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IndexerContext, isRpcSdk, Market } from "@zeitgeistpm/sdk-next";
import { IndexerContext, isRpcSdk, Market } from "@zeitgeistpm/sdk";
import TransactionButton from "components/ui/TransactionButton";
import Decimal from "decimal.js";
import { ZTG } from "lib/constants";
Expand Down
2 changes: 1 addition & 1 deletion components/outcomes/ScalarReportBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
ScalarRangeType,
getScalarBounds,
isRpcSdk,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import Input from "components/ui/Input";
import TransactionButton from "components/ui/TransactionButton";
import { DateTimeInput } from "components/ui/inputs";
Expand Down
2 changes: 1 addition & 1 deletion components/portfolio/Breakdown.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Skeleton from "components/ui/Skeleton";
import { ZTG } from "@zeitgeistpm/sdk-next";
import { ZTG } from "@zeitgeistpm/sdk";
import Decimal from "decimal.js";
import { PorfolioBreakdown } from "lib/hooks/queries/usePortfolioPositions";
import { formatNumberLocalized } from "lib/util";
Expand Down
2 changes: 1 addition & 1 deletion components/portfolio/CurrenciesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Image from "next/image";
import { lookupAssetImagePath } from "lib/constants/foreign-asset";
import { ChainName, CHAIN_IMAGES } from "lib/constants/chains";
import TransferButton from "./TransferButton";
import { AssetId } from "@zeitgeistpm/sdk-next";
import { AssetId } from "@zeitgeistpm/sdk";
import { convertDecimals } from "lib/util/convert-decimals";

const columns: TableColumn[] = [
Expand Down
2 changes: 1 addition & 1 deletion components/portfolio/DepositButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Dialog } from "@headlessui/react";
import { ZTG } from "@zeitgeistpm/sdk-next";
import { ZTG } from "@zeitgeistpm/sdk";
import FormTransactionButton from "components/ui/FormTransactionButton";
import Modal from "components/ui/Modal";
import SecondaryButton from "components/ui/SecondaryButton";
Expand Down
2 changes: 1 addition & 1 deletion components/portfolio/MarketPositions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
IOPoolShareAssetId,
Market,
ZTG,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import DisputeButton from "components/assets/AssetActionButtons/DisputeButton";
import RedeemButton from "components/assets/AssetActionButtons/RedeemButton";
import ReportButton from "components/assets/AssetActionButtons/ReportButton";
Expand Down
7 changes: 1 addition & 6 deletions components/portfolio/TransferButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ import React, { useMemo, useState } from "react";
import { Controller, useForm } from "react-hook-form";
import type { ApiPromise } from "@polkadot/api";
import { encodeAddress } from "@polkadot/keyring";
import {
AssetId,
IOForeignAssetId,
ZTG,
isRpcSdk,
} from "@zeitgeistpm/sdk-next";
import { AssetId, IOForeignAssetId, ZTG, isRpcSdk } from "@zeitgeistpm/sdk";
import AddressInput, { AddressOption } from "components/ui/AddressInput";
import AssetInput from "components/ui/AssetInput";
import { AssetOption } from "components/ui/AssetSelect";
Expand Down
2 changes: 1 addition & 1 deletion components/portfolio/WithdrawButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Dialog } from "@headlessui/react";
import type { ApiPromise } from "@polkadot/api";
import { isRpcSdk } from "@zeitgeistpm/sdk-next";
import { isRpcSdk } from "@zeitgeistpm/sdk";
import FormTransactionButton from "components/ui/FormTransactionButton";
import Modal from "components/ui/Modal";
import SecondaryButton from "components/ui/SecondaryButton";
Expand Down
2 changes: 1 addition & 1 deletion components/settings/AccountSettingsForm.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { useForm } from "react-hook-form";
import { isRpcSdk } from "@zeitgeistpm/sdk-next";
import { isRpcSdk } from "@zeitgeistpm/sdk";
import FormTransactionButton from "components/ui/FormTransactionButton";
import { identityRootKey } from "lib/hooks/queries/useIdentity";
import { useExtrinsic } from "lib/hooks/useExtrinsic";
Expand Down
2 changes: 1 addition & 1 deletion components/settings/OtherSettingsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useEffect } from "react";
import { Controller, useForm } from "react-hook-form";
import AddressInput, { AddressOption } from "components/ui/AddressInput";
import FormTransactionButton from "components/ui/FormTransactionButton";
import { isRpcSdk } from "@zeitgeistpm/sdk-next";
import { isRpcSdk } from "@zeitgeistpm/sdk";
import { useSdkv2 } from "lib/hooks/useSdkv2";
import { useWallet } from "lib/state/wallet";
import { isValidPolkadotAddress } from "lib/util";
Expand Down
2 changes: 1 addition & 1 deletion components/trade-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
MarketOutcomeAssetId,
ZTG,
getMarketIdOf,
} from "@zeitgeistpm/sdk-next";
} from "@zeitgeistpm/sdk";
import MarketContextActionOutcomeSelector from "components/markets/MarketContextActionOutcomeSelector";
import TradeResult from "components/markets/TradeResult";
import Input from "components/ui/Input";
Expand Down
Loading