Skip to content

Commit

Permalink
Merge branch 'develop' into tooling-wallet/rebrand-home-update-coin
Browse files Browse the repository at this point in the history
  • Loading branch information
evavirseda committed Aug 13, 2024
2 parents 93c566c + fc4678f commit 52ebe6d
Show file tree
Hide file tree
Showing 556 changed files with 1,506 additions and 1,563 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
outputs:
isWallet: ${{ (steps.turbo.outputs.packages && contains(fromJson(steps.turbo.outputs.packages), 'iota-wallet')) }}
isExplorer: ${{ (steps.turbo.outputs.packages && contains(fromJson(steps.turbo.outputs.packages), 'iota-explorer')) }}
isTypescriptSDK: ${{ (steps.turbo.outputs.packages && contains(fromJson(steps.turbo.outputs.packages), '@iota/iota.js')) }}
isTypescriptSDK: ${{ (steps.turbo.outputs.packages && contains(fromJson(steps.turbo.outputs.packages), '@iota/iota-sdk')) }}
isGraphQlTransport: ${{ (steps.turbo.outputs.packages && contains(fromJson(steps.turbo.outputs.packages), '@iota/graphql-transport')) }}
isRust: ${{ steps.diff.outputs.isRust }}
steps:
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Run TS SDK e2e tests
if: ${{ needs.diff.outputs.isTypescriptSDK == 'true' || needs.diff.outputs.isRust == 'true'}}
run: pnpm dlx concurrently --kill-others --success command-1 "$E2E_RUN_LOCAL_NET_CMD" 'pnpm --filter @iota/iota.js test:e2e'
run: pnpm dlx concurrently --kill-others --success command-1 "$E2E_RUN_LOCAL_NET_CMD" 'pnpm --filter @iota/iota-sdk test:e2e'

- name: Run RPC/GraphQL compatibility e2e tests
if: ${{ needs.diff.outputs.isGraphQlTransport == 'true' || needs.diff.outputs.isRust == 'true'}}
Expand Down
2 changes: 1 addition & 1 deletion apps/apps-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "eslint --max-warnings=0 \"{src,apps,libs,test}/**/*.ts\""
},
"dependencies": {
"@iota/iota.js": "workspace:*",
"@iota/iota-sdk": "workspace:*",
"@nestjs/cache-manager": "^2.2.2",
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.2.2",
Expand Down
2 changes: 1 addition & 1 deletion apps/apps-backend/src/features/features.mock.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { getDefaultNetwork, Network } from '@iota/iota.js/client';
import { getDefaultNetwork, Network } from '@iota/iota-sdk/client';

const walletDapps = [
{
Expand Down
2 changes: 1 addition & 1 deletion apps/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@growthbook/growthbook-react": "^1.0.0",
"@hookform/resolvers": "^3.1.1",
"@iota/dapp-kit": "workspace:*",
"@iota/iota.js": "workspace:*",
"@iota/iota-sdk": "workspace:*",
"@iota/kiosk": "workspace:*",
"@sentry/react": "^7.59.2",
"@tanstack/react-query": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/api/SentryHttpTransport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { IotaHTTPTransport } from '@iota/iota.js/client';
import { IotaHTTPTransport } from '@iota/iota-sdk/client';
import * as Sentry from '@sentry/react';

const IGNORED_METHODS = ['iotax_resolveNameServiceNames', 'iotax_resolveNameServiceAddresses'];
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/constants/recognizedPackages.constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { IOTA_FRAMEWORK_ADDRESS, IOTA_SYSTEM_ADDRESS } from '@iota/iota.js/utils';
import { IOTA_FRAMEWORK_ADDRESS, IOTA_SYSTEM_ADDRESS } from '@iota/iota-sdk/utils';

export const DEFAULT_RECOGNIZED_PACKAGES = [IOTA_FRAMEWORK_ADDRESS, IOTA_SYSTEM_ADDRESS];
2 changes: 1 addition & 1 deletion apps/core/src/hooks/stake/useGetDelegatedStake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

import { useIotaClient } from '@iota/dapp-kit';
import type { DelegatedStake } from '@iota/iota.js/client';
import type { DelegatedStake } from '@iota/iota-sdk/client';
import { useQuery, type UseQueryOptions } from '@tanstack/react-query';

type UseGetDelegatedStakesOptions = {
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useAppsBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { getAppsBackend } from '@iota/iota.js/client';
import { getAppsBackend } from '@iota/iota-sdk/client';
import { useCallback } from 'react';

export function useAppsBackend() {
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { useIotaClientQuery } from '@iota/dapp-kit';
import { IOTA_TYPE_ARG } from '@iota/iota.js/utils';
import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils';

const DEFAULT_REFETCH_INTERVAL = 1000;
const DEFAULT_STALE_TIME = 5000;
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useExtendedTransactionSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import { useTransactionSummary } from './';
import { useCurrentAccount, useIotaClient } from '@iota/dapp-kit';
import { IotaTransactionBlockResponse } from '@iota/iota.js/client';
import { IotaTransactionBlockResponse } from '@iota/iota-sdk/client';
import { useQuery } from '@tanstack/react-query';

export function useExtendedTransactionSummary(
Expand Down
4 changes: 2 additions & 2 deletions apps/core/src/hooks/useFormatCoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// SPDX-License-Identifier: Apache-2.0

import { useIotaClient } from '@iota/dapp-kit';
import { CoinMetadata } from '@iota/iota.js/client';
import { IOTA_TYPE_ARG } from '@iota/iota.js/utils';
import { CoinMetadata } from '@iota/iota-sdk/client';
import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils';
import { useQuery, type UseQueryResult } from '@tanstack/react-query';
import BigNumber from 'bignumber.js';
import { useMemo } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useGetAllCoins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

import { useIotaClient } from '@iota/dapp-kit';
import type { CoinStruct, PaginatedCoins } from '@iota/iota.js/client';
import type { CoinStruct, PaginatedCoins } from '@iota/iota-sdk/client';
import { useQuery } from '@tanstack/react-query';

const MAX_COINS_PER_REQUEST = 100;
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useGetAllTimelockedObjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { useIotaClient } from '@iota/dapp-kit';
import { IotaObjectData, type IotaObjectDataFilter } from '@iota/iota.js/client';
import { IotaObjectData, type IotaObjectDataFilter } from '@iota/iota-sdk/client';
import { useQuery } from '@tanstack/react-query';
import { TIMELOCK_TYPE } from '../constants';

Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useGetCoins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

import { useIotaClient } from '@iota/dapp-kit';
import { PaginatedCoins } from '@iota/iota.js/client';
import { PaginatedCoins } from '@iota/iota-sdk/client';
import { useInfiniteQuery } from '@tanstack/react-query';

const MAX_COINS_PER_REQUEST = 10;
Expand Down
4 changes: 2 additions & 2 deletions apps/core/src/hooks/useGetDynamicFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// SPDX-License-Identifier: Apache-2.0

import { useIotaClient } from '@iota/dapp-kit';
import { DynamicFieldPage } from '@iota/iota.js/client';
import { normalizeIotaAddress } from '@iota/iota.js/utils';
import { DynamicFieldPage } from '@iota/iota-sdk/client';
import { normalizeIotaAddress } from '@iota/iota-sdk/utils';
import { useInfiniteQuery } from '@tanstack/react-query';

const MAX_PAGE_SIZE = 10;
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useGetKioskContents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import { useIotaClientContext } from '@iota/dapp-kit';
import { KIOSK_ITEM, KioskClient, KioskItem, KioskOwnerCap } from '@iota/kiosk';
import { IotaClient } from '@iota/iota.js/client';
import { IotaClient } from '@iota/iota-sdk/client';
import { useQuery } from '@tanstack/react-query';

import { getKioskIdFromOwnerCap, ORIGINBYTE_KIOSK_OWNER_TOKEN } from '../utils/kiosk';
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useGetObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

import { useIotaClient } from '@iota/dapp-kit';
import { normalizeIotaAddress } from '@iota/iota.js/utils';
import { normalizeIotaAddress } from '@iota/iota-sdk/utils';
import { useQuery } from '@tanstack/react-query';

const defaultOptions = {
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useGetOwnedObjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

import { useIotaClient } from '@iota/dapp-kit';
import { PaginatedObjectsResponse, type IotaObjectDataFilter } from '@iota/iota.js/client';
import { PaginatedObjectsResponse, type IotaObjectDataFilter } from '@iota/iota-sdk/client';
import { useInfiniteQuery } from '@tanstack/react-query';

const MAX_OBJECTS_PER_REQ = 6;
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useGetTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

import { useIotaClient } from '@iota/dapp-kit';
import { type IotaTransactionBlockResponse } from '@iota/iota.js/client';
import { type IotaTransactionBlockResponse } from '@iota/iota-sdk/client';
import { type UseQueryResult, useQuery } from '@tanstack/react-query';

export function useGetTransaction(
Expand Down
4 changes: 2 additions & 2 deletions apps/core/src/hooks/useGetTransferAmount.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Mysten Labs, Inc.
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0
import { IotaTransactionBlockResponse } from '@iota/iota.js/client';
import { IOTA_TYPE_ARG } from '@iota/iota.js/utils';
import { IotaTransactionBlockResponse } from '@iota/iota-sdk/client';
import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils';
import { useMemo } from 'react';

import { getTotalGasUsed } from '../utils/transaction';
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useGetValidatorsEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0
import { useIotaClient } from '@iota/dapp-kit';
import { IotaEvent, type EventId } from '@iota/iota.js/client';
import { IotaEvent, type EventId } from '@iota/iota-sdk/client';
import { useQuery } from '@tanstack/react-query';

type GetValidatorsEvent = {
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useMultiGetObjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

import { useIotaClient } from '@iota/dapp-kit';
import { IotaObjectDataOptions, IotaObjectResponse } from '@iota/iota.js/client';
import { IotaObjectDataOptions, IotaObjectResponse } from '@iota/iota-sdk/client';
import { useQuery, UseQueryOptions } from '@tanstack/react-query';

import { chunkArray } from '../utils/chunkArray';
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useQueryTransactionsByAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

import { useIotaClient } from '@iota/dapp-kit';
import { type IotaTransactionBlockResponse } from '@iota/iota.js/client';
import { type IotaTransactionBlockResponse } from '@iota/iota-sdk/client';
import { useQuery } from '@tanstack/react-query';

export function useQueryTransactionsByAddress(address?: string | null) {
Expand Down
4 changes: 2 additions & 2 deletions apps/core/src/hooks/useSortedCoinsByCategories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { type CoinBalance } from '@iota/iota.js/client';
import { IOTA_TYPE_ARG } from '@iota/iota.js/utils';
import { type CoinBalance } from '@iota/iota-sdk/client';
import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils';
import { useMemo } from 'react';
import { DEFAULT_RECOGNIZED_PACKAGES } from '../constants';

Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/useTransactionSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import {
DryRunTransactionBlockResponse,
type IotaTransactionBlockResponse,
} from '@iota/iota.js/client';
} from '@iota/iota-sdk/client';
import { useMemo } from 'react';

import { getBalanceChangeSummary } from '../utils/transaction/getBalanceChangeSummary';
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/utils/filterAndSortTokenBalances.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { type CoinBalance } from '@iota/iota.js/client';
import { type CoinBalance } from '@iota/iota-sdk/client';
import { getCoinSymbol } from '../hooks';

/**
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/utils/getOwnerDisplay.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { formatAddress, isValidIotaAddress } from '@iota/iota.js/utils';
import { formatAddress, isValidIotaAddress } from '@iota/iota-sdk/utils';

export function getOwnerDisplay(
owner?: string,
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/utils/getRefGasPrice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { IotaValidatorSummary } from '@iota/iota.js/client';
import { IotaValidatorSummary } from '@iota/iota-sdk/client';

import { calculateStakeShare } from './calculateStakeShare';

Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/utils/hasDisplayData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { IotaObjectResponse } from '@iota/iota.js/client';
import { IotaObjectResponse } from '@iota/iota-sdk/client';

export const hasDisplayData = (obj: IotaObjectResponse) => !!obj.data?.display?.data;
2 changes: 1 addition & 1 deletion apps/core/src/utils/isAssetTransferable.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { IotaObjectData } from '@iota/iota.js/client';
import { IotaObjectData } from '@iota/iota-sdk/client';

export const isAssetTransferable = (obj: IotaObjectData | null | undefined): boolean =>
!!obj && obj.content?.dataType === 'moveObject' && obj.content.hasPublicTransfer;
2 changes: 1 addition & 1 deletion apps/core/src/utils/kiosk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

import { KIOSK_OWNER_CAP } from '@iota/kiosk';
import { IotaObjectData, IotaObjectResponse, NetworkId, getNetwork } from '@iota/iota.js/client';
import { IotaObjectData, IotaObjectResponse, NetworkId, getNetwork } from '@iota/iota-sdk/client';

export const ORIGINBYTE_KIOSK_MODULE =
'0x95a441d389b07437d00dd07e0b6f05f513d7659b13fd7c5d3923c7d9d847199b::ob_kiosk';
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/utils/parseObjectDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { IotaObjectChangeWithDisplay } from '..';
import { IotaObjectChange } from '@iota/iota.js/client';
import { IotaObjectChange } from '@iota/iota-sdk/client';

type ObjectChangeWithObjectType = Extract<
IotaObjectChange | IotaObjectChangeWithDisplay,
Expand Down
4 changes: 2 additions & 2 deletions apps/core/src/utils/stake/createStakeTransaction.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { TransactionBlock } from '@iota/iota.js/transactions';
import { IOTA_SYSTEM_STATE_OBJECT_ID } from '@iota/iota.js/utils';
import { TransactionBlock } from '@iota/iota-sdk/transactions';
import { IOTA_SYSTEM_STATE_OBJECT_ID } from '@iota/iota-sdk/utils';

export function createStakeTransaction(amount: bigint, validator: string) {
const tx = new TransactionBlock();
Expand Down
4 changes: 2 additions & 2 deletions apps/core/src/utils/stake/createUnstakeTransaction.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { TransactionBlock } from '@iota/iota.js/transactions';
import { IOTA_SYSTEM_STATE_OBJECT_ID } from '@iota/iota.js/utils';
import { TransactionBlock } from '@iota/iota-sdk/transactions';
import { IOTA_SYSTEM_STATE_OBJECT_ID } from '@iota/iota-sdk/utils';

export function createUnstakeTransaction(stakedIotaId: string) {
const tx = new TransactionBlock();
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/utils/stake/formatDelegatedStake.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { DelegatedStake, StakeObject } from '@iota/iota.js/client';
import { DelegatedStake, StakeObject } from '@iota/iota-sdk/client';

export type ExtendedDelegatedStake = StakeObject & {
validatorAddress: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { type IotaClient } from '@iota/iota.js/client';
import { type IotaClient } from '@iota/iota-sdk/client';
import * as Yup from 'yup';
import { createIotaAddressValidation } from '../validation';
import { ValidationError } from 'yup';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { type CoinStruct } from '@iota/iota.js/client';
import { TransactionBlock } from '@iota/iota.js/transactions';
import { IOTA_TYPE_ARG } from '@iota/iota.js/utils';
import { type CoinStruct } from '@iota/iota-sdk/client';
import { TransactionBlock } from '@iota/iota-sdk/transactions';
import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils';
import { parseAmount } from '../parseAmount';

interface Options {
Expand Down
4 changes: 2 additions & 2 deletions apps/core/src/utils/transaction/getBalanceChangeSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
type DryRunTransactionBlockResponse,
type ObjectOwner,
type IotaTransactionBlockResponse,
} from '@iota/iota.js/client';
import { normalizeIotaObjectId, parseStructTag } from '@iota/iota.js/utils';
} from '@iota/iota-sdk/client';
import { normalizeIotaObjectId, parseStructTag } from '@iota/iota-sdk/utils';

export type BalanceChange = {
coinType: string;
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/utils/transaction/getGasSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
IotaGasData,
IotaTransactionBlockResponse,
TransactionEffects,
} from '@iota/iota.js/client';
} from '@iota/iota-sdk/client';

type Optional<T> = {
[K in keyof T]?: T[K];
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/utils/transaction/getLabel.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Mysten Labs, Inc.
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0
import { IotaTransactionBlockResponse } from '@iota/iota.js/client';
import { IotaTransactionBlockResponse } from '@iota/iota-sdk/client';

// todo: add more logic for deriving transaction label
export const getLabel = (transaction: IotaTransactionBlockResponse, currentAddress?: string) => {
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/utils/transaction/getObjectChangeSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
IotaObjectChangePublished,
IotaObjectChangeTransferred,
IotaObjectChangeWrapped,
} from '@iota/iota.js/client';
} from '@iota/iota-sdk/client';

import { groupByOwner } from './groupByOwner';
import { IotaObjectChangeTypes } from './types';
Expand Down
Loading

0 comments on commit 52ebe6d

Please sign in to comment.