diff --git a/.changeset/seven-falcons-return.md b/.changeset/seven-falcons-return.md deleted file mode 100644 index 10df0e1b94d..00000000000 --- a/.changeset/seven-falcons-return.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@iota/bcs': minor -'@iota/create-dapp': minor -'@iota/dapp-kit': minor -'@iota/graphql-transport': minor -'@iota/kiosk': minor -'@iota/ledgerjs-hw-app-iota': minor -'@iota/iota-sdk': minor -'@iota/wallet-standard': minor ---- - -Changes for compatibility with the node, simplification of exposed APIs and general improvements. diff --git a/.github/workflows/release_docker.yml b/.github/workflows/release_docker.yml index 5102bcdc25e..b3d723d801b 100644 --- a/.github/workflows/release_docker.yml +++ b/.github/workflows/release_docker.yml @@ -55,10 +55,10 @@ jobs: type=raw,value={{sha}},enable=${{ github.event_name == 'workflow_dispatch' }} type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }} type=raw,value={{tag}},enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+-alpha.*\d*,group=0,value=alphanet,enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+-beta.*\d*,group=0,value=devnet,enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+-rc.*\d*,group=0,value=testnet,enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+$,group=0,value=mainnet,enable=${{ github.event_name == 'release' }} + type=raw,value=alphanet,enable=${{ github.event_name == 'release' && contains(github.ref, '-alpha') }} + type=raw,value=devnet,enable=${{ github.event_name == 'release' && contains(github.ref, '-beta') }} + type=raw,value=testnet,enable=${{ github.event_name == 'release' && contains(github.ref, '-rc') }} + type=raw,value=mainnet,enable=${{ github.event_name == 'release' && !contains(github.ref, '-alpha') && !contains(github.ref, '-beta') && !contains(github.ref, '-rc') }} - name: Login to Docker Registry uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # pin@v3 @@ -114,10 +114,10 @@ jobs: type=raw,value={{sha}},enable=${{ github.event_name == 'workflow_dispatch' }} type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }} type=raw,value={{tag}},enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+-alpha.*\d*,group=0,value=alphanet,enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+-beta.*\d*,group=0,value=devnet,enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+-rc.*\d*,group=0,value=testnet,enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+$,group=0,value=mainnet,enable=${{ github.event_name == 'release' }} + type=raw,value=alphanet,enable=${{ github.event_name == 'release' && contains(github.ref, '-alpha') }} + type=raw,value=devnet,enable=${{ github.event_name == 'release' && contains(github.ref, '-beta') }} + type=raw,value=testnet,enable=${{ github.event_name == 'release' && contains(github.ref, '-rc') }} + type=raw,value=mainnet,enable=${{ github.event_name == 'release' && !contains(github.ref, '-alpha') && !contains(github.ref, '-beta') && !contains(github.ref, '-rc') }} - name: Login to Docker Registry uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # pin@v3 @@ -173,10 +173,10 @@ jobs: type=raw,value={{sha}},enable=${{ github.event_name == 'workflow_dispatch' }} type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }} type=raw,value={{tag}},enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+-alpha.*\d*,group=0,value=alphanet,enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+-beta.*\d*,group=0,value=devnet,enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+-rc.*\d*,group=0,value=testnet,enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+$,group=0,value=mainnet,enable=${{ github.event_name == 'release' }} + type=raw,value=alphanet,enable=${{ github.event_name == 'release' && contains(github.ref, '-alpha') }} + type=raw,value=devnet,enable=${{ github.event_name == 'release' && contains(github.ref, '-beta') }} + type=raw,value=testnet,enable=${{ github.event_name == 'release' && contains(github.ref, '-rc') }} + type=raw,value=mainnet,enable=${{ github.event_name == 'release' && !contains(github.ref, '-alpha') && !contains(github.ref, '-beta') && !contains(github.ref, '-rc') }} - name: Login to Docker Registry uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # pin@v3 @@ -232,10 +232,10 @@ jobs: type=raw,value={{sha}},enable=${{ github.event_name == 'workflow_dispatch' }} type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }} type=raw,value={{tag}},enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+-alpha.*\d*,group=0,value=alphanet,enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+-beta.*\d*,group=0,value=devnet,enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+-rc.*\d*,group=0,value=testnet,enable=${{ github.event_name == 'release' }} - type=match,pattern=v\d+\.\d+\.\d+$,group=0,value=mainnet,enable=${{ github.event_name == 'release' }} + type=raw,value=alphanet,enable=${{ github.event_name == 'release' && contains(github.ref, '-alpha') }} + type=raw,value=devnet,enable=${{ github.event_name == 'release' && contains(github.ref, '-beta') }} + type=raw,value=testnet,enable=${{ github.event_name == 'release' && contains(github.ref, '-rc') }} + type=raw,value=mainnet,enable=${{ github.event_name == 'release' && !contains(github.ref, '-alpha') && !contains(github.ref, '-beta') && !contains(github.ref, '-rc') }} - name: Login to Docker Registry uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # pin@v3 diff --git a/apps/wallet-dashboard/app/(protected)/assets/[objectId]/page.tsx b/apps/wallet-dashboard/app/(protected)/assets/[objectId]/page.tsx new file mode 100644 index 00000000000..37ba367c08c --- /dev/null +++ b/apps/wallet-dashboard/app/(protected)/assets/[objectId]/page.tsx @@ -0,0 +1,45 @@ +// Copyright (c) 2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + +'use client'; + +import React, { useCallback } from 'react'; +import { useParams } from 'next/navigation'; +import { AssetCard, Button, RouteLink, SendAssetPopup } from '@/components'; +import { isAssetTransferable, useGetObject } from '@iota/core'; +import { usePopups } from '@/hooks'; +import { useCurrentAccount } from '@iota/dapp-kit'; +import { ASSETS_ROUTE } from '@/lib/constants/routes.constants'; + +const VisualAssetDetailPage = () => { + const params = useParams(); + const objectId = params.objectId as string; + const { data: asset } = useGetObject(objectId); + const activeAccount = useCurrentAccount(); + + const { openPopup, closePopup } = usePopups(); + + const showSendAssetPopup = useCallback(() => { + if (asset?.data) { + openPopup(); + } + }, [asset, openPopup, closePopup]); + + const assetIsTransferable = asset?.data ? isAssetTransferable(asset?.data) : false; + + return ( +
+ + {asset?.data ? ( + + ) : ( +
Asset not found
+ )} + {assetIsTransferable && activeAccount ? ( + + ) : null} +
+ ); +}; + +export default VisualAssetDetailPage; diff --git a/apps/wallet-dashboard/app/(protected)/assets/everything-else/page.tsx b/apps/wallet-dashboard/app/(protected)/assets/everything-else/page.tsx deleted file mode 100644 index 4ac8510bc4c..00000000000 --- a/apps/wallet-dashboard/app/(protected)/assets/everything-else/page.tsx +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2024 IOTA Stiftung -// SPDX-License-Identifier: Apache-2.0 - -'use client'; - -import React from 'react'; -import { IotaObjectData, getNetwork } from '@iota/iota-sdk/client'; -import { VirtualList } from '@/components/index'; -import { hasDisplayData, useGetOwnedObjects } from '@iota/core'; -import { useCurrentAccount, useIotaClientContext } from '@iota/dapp-kit'; - -function EverythingElsePage(): JSX.Element { - const account = useCurrentAccount(); - const { data, fetchNextPage, hasNextPage, isFetchingNextPage } = useGetOwnedObjects( - account?.address, - ); - - const { network } = useIotaClientContext(); - const { explorer } = getNetwork(network); - - const nonVisualAssets = - data?.pages - .flatMap((page) => page.data) - .filter((asset) => asset.data && asset.data.objectId && !hasDisplayData(asset)) - .map((response) => response.data!) ?? []; - - const virtualItem = (asset: IotaObjectData): JSX.Element => ( - - {asset.objectId} - - ); - - return ( -
-

EVERYTHING ELSE

-
- 30} - render={virtualItem} - /> -
-
- ); -} - -export default EverythingElsePage; diff --git a/apps/wallet-dashboard/app/(protected)/assets/layout.tsx b/apps/wallet-dashboard/app/(protected)/assets/layout.tsx deleted file mode 100644 index b579dfae131..00000000000 --- a/apps/wallet-dashboard/app/(protected)/assets/layout.tsx +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2024 IOTA Stiftung -// SPDX-License-Identifier: Apache-2.0 -'use client'; - -import { RouteLink } from '@/components/index'; -import { ASSETS_ROUTE } from '@/lib/constants/routes.constants'; -import React, { type PropsWithChildren } from 'react'; - -function AssetsLayout({ children }: PropsWithChildren): JSX.Element { - const routes = [ - { title: 'Visual Assets', path: ASSETS_ROUTE.path + '/visual-assets' }, - { title: 'Everything Else', path: ASSETS_ROUTE.path + '/everything-else' }, - ]; - - return ( - <> -
- {routes.map((route) => { - return ; - })} -
-
{children}
- - ); -} - -export default AssetsLayout; diff --git a/apps/wallet-dashboard/app/(protected)/assets/page.tsx b/apps/wallet-dashboard/app/(protected)/assets/page.tsx index df3cde7fea7..1f1f4d085f3 100644 --- a/apps/wallet-dashboard/app/(protected)/assets/page.tsx +++ b/apps/wallet-dashboard/app/(protected)/assets/page.tsx @@ -1,12 +1,97 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -function AssetsDashboardPage(): JSX.Element { +'use client'; + +import { AssetCard, VirtualList } from '@/components'; +import { ASSETS_ROUTE } from '@/lib/constants/routes.constants'; +import { Panel, Title, Chip } from '@iota/apps-ui-kit'; +import { hasDisplayData, useGetOwnedObjects } from '@iota/core'; +import { useCurrentAccount } from '@iota/dapp-kit'; +import { IotaObjectData } from '@iota/iota-sdk/client'; +import { useState } from 'react'; +import { AssetCategory } from '@/lib/enums'; +import Link from 'next/link'; + +const ASSET_CATEGORIES: { label: string; value: AssetCategory }[] = [ + { + label: 'Visual', + value: AssetCategory.Visual, + }, + { + label: 'Other', + value: AssetCategory.Other, + }, +]; + +export default function AssetsDashboardPage(): React.JSX.Element { + const [selectedCategory, setSelectedCategory] = useState(AssetCategory.Visual); + + const account = useCurrentAccount(); + const { + data: ownedObjects, + fetchNextPage, + hasNextPage, + isFetchingNextPage, + } = useGetOwnedObjects(account?.address); + + const [visual, nonVisual] = (() => { + const visual: IotaObjectData[] = []; + const nonVisual: IotaObjectData[] = []; + + ownedObjects?.pages + .flatMap((page) => page.data) + .filter((asset) => asset.data && asset.data.objectId) + .forEach((asset) => { + if (asset.data) { + if (hasDisplayData(asset)) { + visual.push(asset.data); + } else { + nonVisual.push(asset.data); + } + } + }); + + return [visual, nonVisual]; + })(); + + const categoryToAsset: Record = { + [AssetCategory.Visual]: visual, + [AssetCategory.Other]: nonVisual, + }; + + const assetList = categoryToAsset[selectedCategory]; + return ( -
-

ASSETS

-
+ + + <div className="px-lg"> + <div className="flex flex-row items-center justify-start gap-xs py-xs"> + {ASSET_CATEGORIES.map((tab) => ( + <Chip + key={tab.label} + label={tab.label} + onClick={() => setSelectedCategory(tab.value)} + selected={selectedCategory === tab.value} + /> + ))} + </div> + + <div className="max-h-[600px] overflow-auto py-sm"> + <VirtualList + items={assetList} + hasNextPage={hasNextPage} + isFetchingNextPage={isFetchingNextPage} + fetchNextPage={fetchNextPage} + estimateSize={() => 180} + render={(asset) => ( + <Link href={ASSETS_ROUTE.path + `/${asset.objectId}`}> + <AssetCard asset={asset} /> + </Link> + )} + /> + </div> + </div> + </Panel> ); } - -export default AssetsDashboardPage; diff --git a/apps/wallet-dashboard/app/(protected)/assets/visual-assets/page.tsx b/apps/wallet-dashboard/app/(protected)/assets/visual-assets/page.tsx deleted file mode 100644 index 2819bb4bfd3..00000000000 --- a/apps/wallet-dashboard/app/(protected)/assets/visual-assets/page.tsx +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2024 IOTA Stiftung -// SPDX-License-Identifier: Apache-2.0 - -'use client'; - -import React from 'react'; -import { IotaObjectData } from '@iota/iota-sdk/client'; -import { AssetCard, VirtualList } from '@/components/index'; -import { useCurrentAccount } from '@iota/dapp-kit'; -import { hasDisplayData, useGetOwnedObjects } from '@iota/core'; -import { useRouter } from 'next/navigation'; -import { ASSETS_ROUTE } from '@/lib/constants/routes.constants'; - -function VisualAssetsPage(): JSX.Element { - const account = useCurrentAccount(); - const router = useRouter(); - const { - data: ownedObjects, - fetchNextPage, - hasNextPage, - isFetchingNextPage, - } = useGetOwnedObjects(account?.address); - - const visualAssets = - ownedObjects?.pages - .flatMap((page) => page.data) - .filter((asset) => asset.data && asset.data.objectId && hasDisplayData(asset)) - .map((response) => response.data!) ?? []; - - const virtualItem = (asset: IotaObjectData): JSX.Element => <AssetCard asset={asset} />; - - const handleClick = (objectId: string) => { - router.push(ASSETS_ROUTE.path + `/visual-assets/${objectId}`); - }; - - return ( - <div className="flex h-full w-full flex-col items-center justify-center space-y-4"> - <h1>VISUAL ASSETS</h1> - <div className="flex w-1/2"> - <VirtualList - items={visualAssets} - hasNextPage={hasNextPage} - isFetchingNextPage={isFetchingNextPage} - fetchNextPage={fetchNextPage} - estimateSize={() => 180} - render={virtualItem} - onClick={(asset) => handleClick(asset.objectId)} - /> - </div> - </div> - ); -} - -export default VisualAssetsPage; diff --git a/apps/wallet-dashboard/app/(protected)/layout.tsx b/apps/wallet-dashboard/app/(protected)/layout.tsx index 85a5b70b169..c566410af67 100644 --- a/apps/wallet-dashboard/app/(protected)/layout.tsx +++ b/apps/wallet-dashboard/app/(protected)/layout.tsx @@ -27,11 +27,11 @@ function DashboardLayout({ children }: PropsWithChildren): JSX.Element { <Sidebar /> </div> - <div className="container relative min-h-screen"> + <div className="container relative flex min-h-screen flex-col"> <div className="sticky top-0"> <TopNav /> </div> - <div>{children}</div> + <div className="flex-1 py-md--rs">{children}</div> </div> <div className="fixed bottom-5 right-5"> diff --git a/apps/wallet-dashboard/components/VirtualList.tsx b/apps/wallet-dashboard/components/VirtualList.tsx index e73e507371a..7ca2d37187b 100644 --- a/apps/wallet-dashboard/components/VirtualList.tsx +++ b/apps/wallet-dashboard/components/VirtualList.tsx @@ -61,7 +61,7 @@ function VirtualList<T>({ ]); return ( - <div className="relative h-[50vh] w-full overflow-auto" ref={containerRef}> + <div className="relative h-full w-full" ref={containerRef}> <div style={{ height: `${virtualizer.getTotalSize()}px`, diff --git a/apps/wallet-dashboard/lib/enums/assetCategory.enum.ts b/apps/wallet-dashboard/lib/enums/assetCategory.enum.ts new file mode 100644 index 00000000000..bab9839ceaa --- /dev/null +++ b/apps/wallet-dashboard/lib/enums/assetCategory.enum.ts @@ -0,0 +1,7 @@ +// Copyright (c) 2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + +export enum AssetCategory { + Visual = 'Visual', + Other = 'Other', +} diff --git a/apps/wallet-dashboard/lib/enums/index.ts b/apps/wallet-dashboard/lib/enums/index.ts index a9ebb8b34ad..87f3b0e2f22 100644 --- a/apps/wallet-dashboard/lib/enums/index.ts +++ b/apps/wallet-dashboard/lib/enums/index.ts @@ -2,3 +2,4 @@ // SPDX-License-Identifier: Apache-2.0 export * from './protectedRouteTitle.enum'; +export * from './assetCategory.enum'; diff --git a/apps/wallet-dashboard/lib/utils/assets.ts b/apps/wallet-dashboard/lib/utils/assets.ts new file mode 100644 index 00000000000..29c7ecfd051 --- /dev/null +++ b/apps/wallet-dashboard/lib/utils/assets.ts @@ -0,0 +1,17 @@ +// Copyright (c) 2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + +import { hasDisplayData } from '@iota/core'; +import { PaginatedObjectsResponse } from '@iota/iota-sdk/client'; + +export function filterAssetList(pages: PaginatedObjectsResponse[], shouldBeVisual: boolean) { + return ( + pages + .flatMap((page) => page.data) + .filter( + (asset) => + asset.data && asset.data.objectId && hasDisplayData(asset) === shouldBeVisual, + ) + .map((response) => response.data!) ?? [] + ); +} diff --git a/apps/wallet-dashboard/next.config.mjs b/apps/wallet-dashboard/next.config.mjs index 2727f8fcd80..a7417e613fd 100644 --- a/apps/wallet-dashboard/next.config.mjs +++ b/apps/wallet-dashboard/next.config.mjs @@ -7,7 +7,7 @@ const nextConfig = { return [ { source: '/dashboard', - destination: '/dashboard/home', + destination: '/home', permanent: true, }, ]; diff --git a/apps/wallet/package.json b/apps/wallet/package.json index 2ba379d932c..e07146dcca0 100644 --- a/apps/wallet/package.json +++ b/apps/wallet/package.json @@ -106,7 +106,7 @@ "@ledgerhq/hw-transport-webhid": "^6.27.15", "@ledgerhq/hw-transport-webusb": "^6.27.13", "@ledgerhq/logs": "^6.12.0", - "@metamask/browser-passworder": "^5.0.1", + "@metamask/browser-passworder": "4.1.0", "@noble/hashes": "^1.4.0", "@radix-ui/react-checkbox": "^1.0.4", "@radix-ui/react-collapsible": "^1.0.3", diff --git a/apps/wallet/src/ui/app/staking/delegation-detail/DelegationDetailCard.tsx b/apps/wallet/src/ui/app/staking/delegation-detail/DelegationDetailCard.tsx index d71ae4ae384..058c322baab 100644 --- a/apps/wallet/src/ui/app/staking/delegation-detail/DelegationDetailCard.tsx +++ b/apps/wallet/src/ui/app/staking/delegation-detail/DelegationDetailCard.tsx @@ -192,7 +192,7 @@ export function DelegationDetailCard({ validatorAddress, stakedId }: DelegationD </div> </Panel> </div> - <div className="my-3.75 flex w-full gap-2.5"> + <div className="flex w-full gap-2.5"> {Boolean(totalStake) && delegationId && ( <Button type={ButtonType.Secondary} diff --git a/apps/wallet/src/ui/app/staking/stake/StakeForm.tsx b/apps/wallet/src/ui/app/staking/stake/StakeForm.tsx index b3a1a043213..be49fc823e5 100644 --- a/apps/wallet/src/ui/app/staking/stake/StakeForm.tsx +++ b/apps/wallet/src/ui/app/staking/stake/StakeForm.tsx @@ -44,22 +44,20 @@ function StakeForm({ validatorAddress, coinBalance, coinType, epoch }: StakeFrom transaction ?? new Transaction(), ); - const gasSummary = useMemo(() => { - if (!txDryRunResponse) return null; - return getGasSummary(txDryRunResponse); - }, [txDryRunResponse]); + const gasSummary = txDryRunResponse ? getGasSummary(txDryRunResponse) : undefined; const stakeAllTransaction = useMemo(() => { return createStakeTransaction(coinBalance, validatorAddress); - }, [coinBalance, validatorAddress, decimals]); + }, [coinBalance, validatorAddress]); const { data: stakeAllTransactionDryRun } = useTransactionDryRun( activeAddress ?? undefined, - stakeAllTransaction ?? new Transaction(), + stakeAllTransaction, ); const gasBudget = BigInt(stakeAllTransactionDryRun?.input.gasData.budget ?? 0); + // do not remove: gasBudget field is used in the validation schema apps/wallet/src/ui/app/staking/stake/utils/validation.ts useEffect(() => { setFieldValue('gasBudget', gasBudget); }, [gasBudget]); diff --git a/apps/wallet/src/ui/app/staking/stake/StakingCard.tsx b/apps/wallet/src/ui/app/staking/stake/StakingCard.tsx index 4e368f8c723..fb57a73e846 100644 --- a/apps/wallet/src/ui/app/staking/stake/StakingCard.tsx +++ b/apps/wallet/src/ui/app/staking/stake/StakingCard.tsx @@ -78,7 +78,7 @@ function StakingCard() { return getDelegationDataByStakeId(allDelegation, stakeIotaIdParams); }, [allDelegation, stakeIotaIdParams]); - const coinSymbol = useMemo(() => (coinType && Coin.getCoinSymbol(coinType)) || '', [coinType]); + const coinSymbol = (coinType && Coin.getCoinSymbol(coinType)) || ''; const iotaEarned = (stakeData as Extract<StakeObject, { estimatedReward: string }>)?.estimatedReward || '0'; @@ -94,33 +94,69 @@ function StakingCard() { ); const queryClient = useQueryClient(); - const delegationId = useMemo(() => { - if (!stakeData || stakeData.status === 'Pending') return null; - return stakeData.stakedIotaId; - }, [stakeData]); + const delegationId = + stakeData?.status === 'Unstaked' || stakeData?.status === 'Active' + ? stakeData?.stakedIotaId + : undefined; const navigate = useNavigate(); const signer = useSigner(activeAccount); - const { mutateAsync: stakeTokenMutateAsync } = useMutation({ - mutationFn: async ({ - tokenTypeArg, - amount, - validatorAddress, - }: { - tokenTypeArg: string; - amount: bigint; - validatorAddress: string; - }) => { - if (!validatorAddress || !amount || !tokenTypeArg || !signer) { - throw new Error('Failed, missing required field'); - } + const { mutateAsync: stakeTokenMutateAsync, isPending: isStakeTokenTransactionPending } = + useMutation({ + mutationFn: async ({ + tokenTypeArg, + amount, + validatorAddress, + }: { + tokenTypeArg: string; + amount: bigint; + validatorAddress: string; + }) => { + if (!validatorAddress || !amount || !tokenTypeArg || !signer) { + throw new Error('Failed, missing required field'); + } - // const sentryTransaction = Sentry.startTransaction({ - // name: 'stake', - // }); - try { - const transactionBlock = createStakeTransaction(amount, validatorAddress); + // const sentryTransaction = Sentry.startTransaction({ + // name: 'stake', + // }); + try { + const transactionBlock = createStakeTransaction(amount, validatorAddress); + const tx = await signer.signAndExecuteTransaction({ + transactionBlock, + options: { + showInput: true, + showEffects: true, + showEvents: true, + }, + }); + await signer.client.waitForTransaction({ + digest: tx.digest, + }); + return tx; + } finally { + // sentryTransaction.finish(); + } + }, + onSuccess: (_, { amount, validatorAddress }) => { + ampli.stakedIota({ + stakedAmount: Number(amount / NANOS_PER_IOTA), + validatorAddress: validatorAddress, + }); + }, + }); + + const { mutateAsync: unStakeTokenMutateAsync, isPending: isUnstakeTokenTransactionPending } = + useMutation({ + mutationFn: async ({ stakedIotaId }: { stakedIotaId: string }) => { + if (!stakedIotaId || !signer) { + throw new Error('Failed, missing required field.'); + } + + // const sentryTransaction = Sentry.startTransaction({ + // name: 'stake', + // }); + const transactionBlock = createUnstakeTransaction(stakedIotaId); const tx = await signer.signAndExecuteTransaction({ transactionBlock, options: { @@ -133,50 +169,16 @@ function StakingCard() { digest: tx.digest, }); return tx; - } finally { - // sentryTransaction.finish(); - } - }, - onSuccess: (_, { amount, validatorAddress }) => { - ampli.stakedIota({ - stakedAmount: Number(amount / NANOS_PER_IOTA), - validatorAddress: validatorAddress, - }); - }, - }); - - const { mutateAsync: unStakeTokenMutateAsync } = useMutation({ - mutationFn: async ({ stakedIotaId }: { stakedIotaId: string }) => { - if (!stakedIotaId || !signer) { - throw new Error('Failed, missing required field.'); - } - - // const sentryTransaction = Sentry.startTransaction({ - // name: 'stake', - // }); - const transactionBlock = createUnstakeTransaction(stakedIotaId); - const tx = await signer.signAndExecuteTransaction({ - transactionBlock, - options: { - showInput: true, - showEffects: true, - showEvents: true, - }, - }); - await signer.client.waitForTransaction({ - digest: tx.digest, - }); - return tx; - // finally { - // sentryTransaction.finish(); - // } - }, - onSuccess: () => { - ampli.unstakedIota({ - validatorAddress: validatorAddress!, - }); - }, - }); + // finally { + // sentryTransaction.finish(); + // } + }, + onSuccess: () => { + ampli.unstakedIota({ + validatorAddress: validatorAddress!, + }); + }, + }); const onSubmit = useCallback( async ({ amount }: FormValues, { resetForm }: FormikHelpers<FormValues>) => { @@ -184,7 +186,6 @@ function StakingCard() { return; } try { - const bigIntAmount = parseAmount(amount, coinDecimals); let response; let txDigest; if (unstake) { @@ -198,6 +199,7 @@ function StakingCard() { txDigest = response.digest; } else { + const bigIntAmount = parseAmount(amount, coinDecimals); response = await stakeTokenMutateAsync({ amount: bigIntAmount, tokenTypeArg: coinType, @@ -260,7 +262,15 @@ function StakingCard() { } return ( <div className="flex h-full w-full flex-grow flex-col flex-nowrap"> - <Loading loading={isPending || validatorsIsPending || loadingIotaBalances}> + <Loading + loading={ + isPending || + validatorsIsPending || + loadingIotaBalances || + isStakeTokenTransactionPending || + isUnstakeTokenTransactionPending + } + > <Formik initialValues={INITIAL_VALUES} validationSchema={validationSchema} diff --git a/apps/wallet/src/ui/app/staking/validators/ValidatorsCard.tsx b/apps/wallet/src/ui/app/staking/validators/ValidatorsCard.tsx index 30b1760c521..d86c202cb97 100644 --- a/apps/wallet/src/ui/app/staking/validators/ValidatorsCard.tsx +++ b/apps/wallet/src/ui/app/staking/validators/ValidatorsCard.tsx @@ -123,7 +123,7 @@ validator to start earning rewards again." /> </div> ) : null} - <div className="gap-2"> + <div className="w-full gap-2"> {system && delegations ?.filter(({ inactiveValidator }) => inactiveValidator) @@ -137,7 +137,7 @@ validator to start earning rewards again." ))} </div> - <div className="gap-2"> + <div className="w-full gap-2"> {system && delegations ?.filter(({ inactiveValidator }) => !inactiveValidator) diff --git a/docs/content/about-iota/iota-wallet/how-to/integrate-ledger.mdx b/docs/content/about-iota/iota-wallet/how-to/integrate-ledger.mdx index f467ecddd1a..3048c03c5d8 100644 --- a/docs/content/about-iota/iota-wallet/how-to/integrate-ledger.mdx +++ b/docs/content/about-iota/iota-wallet/how-to/integrate-ledger.mdx @@ -15,15 +15,15 @@ Before connecting your Ledger device to IOTA Wallet, ensure the following: - Set up your Ledger device and update it to the latest firmware. - Install [Ledger Live](https://www.ledger.com/ledger-live) and confirm that your device can connect successfully. -## Install the IOTA App on Your Ledger Device +## Install the IOTA Rebased App on Your Ledger Device -To use IOTA Wallet with Ledger, install the IOTA app on your device through Ledger Live. +To use IOTA Wallet with Ledger, install the IOTA Rebased app on your device through Ledger Live. 1. Unlock your Ledger device. 2. Open Ledger Live and navigate to **My Ledger** in the left panel. 3. Press both buttons on the device to approve the secure connection. -4. In the App Catalog, search for **IOTA**. -5. Click **Install** to download the IOTA app to your device. +4. In the App Catalog, search for **IOTA Rebased**. +5. Click **Install** to download the IOTA Rebased app to your device. 6. Your device will show the installation progress. ## Import Accounts from Your Ledger Device @@ -31,7 +31,7 @@ To use IOTA Wallet with Ledger, install the IOTA app on your device through Ledg To import accounts from your Ledger into IOTA Wallet: 1. Unlock your Ledger device. -2. Open the `IOTA` app on your Ledger and press both buttons to start it. +2. Open the `IOTA Rebased` app on your Ledger and press both buttons to start it. 3. Close Ledger Live if it is still running. 4. Open [IOTA Wallet](https://chromewebstore.google.com/detail/iota-wallet-rc/nlmllpflpelpannpijhhnbhekpbpejch) and enter your password. 5. Go to `Accounts` by clicking on the address at the top of the `Home` section. @@ -119,7 +119,7 @@ To send digital assets from your Ledger account: To stake IOTA using a Ledger account, you need to enable blind signing on your device. -1. Unlock your Ledger device and open the IOTA app. +1. Unlock your Ledger device and open the IOTA Rebased app. 2. Enable Blind Signing by scrolling to `Blind signing` and pressing both buttons to activate it. 3. Open IOTA Wallet and select the Ledger account you want to stake from. 4. Click `Start Staking`. diff --git a/docs/content/references/.gitignore b/docs/content/references/.gitignore index 866593b1360..2b640da345a 100644 --- a/docs/content/references/.gitignore +++ b/docs/content/references/.gitignore @@ -1,2 +1,3 @@ iota-api/iota-graphql/* framework/** +ts-sdk/api/** diff --git a/docs/content/sidebars/references.js b/docs/content/sidebars/references.js index 7b7470bc2df..142c82dc1a0 100644 --- a/docs/content/sidebars/references.js +++ b/docs/content/sidebars/references.js @@ -2,6 +2,7 @@ // Modifications Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 +import typedocSidebar from '../references/ts-sdk/api/typedoc-sidebar.cjs'; const references = [ { type: 'doc', @@ -188,6 +189,16 @@ const references = [ ], }, 'references/ts-sdk/bcs', + { + type: 'category', + label: 'API', + link:{ + type: 'doc', + id: 'references/ts-sdk/api/index', + }, + items: typedocSidebar, + }, + ], }, ], diff --git a/docs/site/docusaurus.config.js b/docs/site/docusaurus.config.js index 6fda7b48006..d6d98913a8a 100644 --- a/docs/site/docusaurus.config.js +++ b/docs/site/docusaurus.config.js @@ -76,6 +76,38 @@ const config = { }; }, path.resolve(__dirname, `./src/plugins/descriptions`), + [ + 'docusaurus-plugin-typedoc', + // Options + { + tsconfig: '../../sdk/typescript/tsconfig.json', + entryPoints: [ + "../../sdk/typescript/src/bcs", + "../../sdk/typescript/src/client", + "../../sdk/typescript/src/cryptography", + "../../sdk/typescript/src/faucet", + "../../sdk/typescript/src/graphql", + "../../sdk/typescript/src/keypairs/ed25519", + "../../sdk/typescript/src/keypairs/secp256k1", + "../../sdk/typescript/src/keypairs/secp256k1", + "../../sdk/typescript/src/multisig", + "../../sdk/typescript/src/transactions", + "../../sdk/typescript/src/utils", + "../../sdk/typescript/src/verify" + ], + plugin: ["typedoc-plugin-markdown"], + out: "../../docs/content/references/ts-sdk/api/", + githubPages: false, + readme: "none", + hideGenerator: true, + sort: ["source-order"], + excludeInternal: true, + excludePrivate: true, + disableSources: true, + hideBreadcrumbs: true, + intentionallyNotExported: [], + }, + ], ], presets: [ [ @@ -93,7 +125,9 @@ const config = { }) { return defaultSidebarItemsGenerator({ ...args, - isCategoryIndex() { + isCategoryIndex(doc) { + if(doc.fileName === 'index' && doc.directories.includes('ts-sdk')) + return true; // No doc will be automatically picked as category index return false; }, diff --git a/docs/site/package.json b/docs/site/package.json index c9f9b15d4d2..c522fcd8d3e 100644 --- a/docs/site/package.json +++ b/docs/site/package.json @@ -69,7 +69,10 @@ "@docusaurus/types": "3.5.2", "@metamask/providers": "^10.2.1", "@types/react": "^18.3.3", + "docusaurus-plugin-typedoc": "^1.0.5", "remark-code-import": "^1.2.0", + "typedoc": "^0.26.10", + "typedoc-plugin-markdown": "^4.2.9", "typescript": "^5.5.3" }, "resolutions": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7d52f3a4f21..13aeddf218c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -709,8 +709,8 @@ importers: specifier: ^6.12.0 version: 6.12.0 '@metamask/browser-passworder': - specifier: ^5.0.1 - version: 5.0.1 + specifier: 4.1.0 + version: 4.1.0 '@noble/hashes': specifier: ^1.4.0 version: 1.5.0 @@ -1437,9 +1437,18 @@ importers: '@types/react': specifier: ^18.3.3 version: 18.3.9 + docusaurus-plugin-typedoc: + specifier: ^1.0.5 + version: 1.0.5(typedoc-plugin-markdown@4.2.10(typedoc@0.26.11(typescript@5.6.2))) remark-code-import: specifier: ^1.2.0 version: 1.2.0 + typedoc: + specifier: ^0.26.10 + version: 0.26.11(typescript@5.6.2) + typedoc-plugin-markdown: + specifier: ^4.2.9 + version: 4.2.10(typedoc@0.26.11(typescript@5.6.2)) typescript: specifier: ^5.5.3 version: 5.6.2 @@ -4000,9 +4009,6 @@ packages: resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@ethereumjs/common@3.2.0': - resolution: {integrity: sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==} - '@ethereumjs/rlp@4.0.1': resolution: {integrity: sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==} engines: {node: '>=14'} @@ -4013,14 +4019,6 @@ packages: engines: {node: '>=18'} hasBin: true - '@ethereumjs/tx@4.2.0': - resolution: {integrity: sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==} - engines: {node: '>=14'} - - '@ethereumjs/util@8.1.0': - resolution: {integrity: sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==} - engines: {node: '>=14'} - '@fal-works/esbuild-plugin-global-externals@2.1.2': resolution: {integrity: sha512-cEee/Z+I12mZcFJshKcCqC8tuX5hG3s+d+9nZ3LabqKF1vKdF41B92pJVCBggjAGORAeOzyyDDKrZwIkLffeOQ==} @@ -4629,9 +4627,9 @@ packages: '@types/react': '>=16' react: '>=16' - '@metamask/browser-passworder@5.0.1': - resolution: {integrity: sha512-H7H6N6TKjTbefFLWQKGNsJzXLWnMH/p5AJ/vCM3BrZAmRz8Y4b8B5+xx02cCY4r7IxpE969I/b8IeyJp16WKxw==} - engines: {node: ^16.20 || ^18.16 || >=20} + '@metamask/browser-passworder@4.1.0': + resolution: {integrity: sha512-FBvah1mPte5HudQdkgqAh2+Zc75T9kYxey+dCtHIj9gKohkHDcIA1bTOPLk0bBH+6PnOzYNPG8devvH04GOmPA==} + engines: {node: '>=14.0.0'} '@metamask/object-multiplex@1.3.0': resolution: {integrity: sha512-czcQeVYdSNtabd+NcYQnrM69MciiJyd1qvKH8WM2Id3C0ZiUUX5Xa/MK+/VUk633DBhVOwdNzAKIQ33lGyA+eQ==} @@ -4648,14 +4646,6 @@ packages: resolution: {integrity: sha512-ihb3B0T/wJm1eUuArYP4lCTSEoZsClHhuWyfo/kMX3m/odpqNcPfsz5O2A3NT7dXCAgWPGDQGPqygCpgeniKMw==} engines: {node: '>=12.0.0'} - '@metamask/superstruct@3.1.0': - resolution: {integrity: sha512-N08M56HdOgBfRKkrgCMZvQppkZGcArEop3kixNEtVbJKm6P9Cfg0YkI6X0s1g78sNrj2fWUwvJADdZuzJgFttA==} - engines: {node: '>=16.0.0'} - - '@metamask/utils@9.3.0': - resolution: {integrity: sha512-w8CVbdkDrVXFJbfBSlDfafDR6BAkpDmv1bC1UJVCoVny5tW2RKAdn9i68Xf7asYT4TnUhl/hN4zfUiKQq9II4g==} - engines: {node: '>=16.0.0'} - '@microsoft/api-extractor-model@7.28.13': resolution: {integrity: sha512-39v/JyldX4MS9uzHcdfmjjfS6cYGAoXV+io8B5a338pkHiSt+gy2eXQ0Q7cGFJ7quSa1VqqlMdlPrB6sLR/cAw==} @@ -6337,6 +6327,21 @@ packages: '@servie/events@1.0.0': resolution: {integrity: sha512-sBSO19KzdrJCM3gdx6eIxV8M9Gxfgg6iDQmH5TIAGaUu+X9VDdsINXJOnoiZ1Kx3TrHdH4bt5UVglkjsEGBcvw==} + '@shikijs/core@1.22.2': + resolution: {integrity: sha512-bvIQcd8BEeR1yFvOYv6HDiyta2FFVePbzeowf5pPS1avczrPK+cjmaxxh0nx5QzbON7+Sv0sQfQVciO7bN72sg==} + + '@shikijs/engine-javascript@1.22.2': + resolution: {integrity: sha512-iOvql09ql6m+3d1vtvP8fLCVCK7BQD1pJFmHIECsujB0V32BJ0Ab6hxk1ewVSMFA58FI0pR2Had9BKZdyQrxTw==} + + '@shikijs/engine-oniguruma@1.22.2': + resolution: {integrity: sha512-GIZPAGzQOy56mGvWMoZRPggn0dTlBf1gutV5TdceLCZlFNqWmuc7u+CzD0Gd9vQUTgLbrt0KLzz6FNprqYAxlA==} + + '@shikijs/types@1.22.2': + resolution: {integrity: sha512-NCWDa6LGZqTuzjsGfXOBWfjS/fDIbDdmVDug+7ykVe1IKT4c1gakrvlfFYp5NhAXH/lyqLM8wsAPo5wNy73Feg==} + + '@shikijs/vscode-textmate@9.3.0': + resolution: {integrity: sha512-jn7/7ky30idSkd/O5yDBfAnVt+JJpepofP/POZ1iMOxK59cOfqIgg/Dj0eFsjOTMw+4ycJN0uhZH/Eb0bs/EUA==} + '@sideway/address@4.1.5': resolution: {integrity: sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==} @@ -9585,6 +9590,11 @@ packages: resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} engines: {node: '>=6.0.0'} + docusaurus-plugin-typedoc@1.0.5: + resolution: {integrity: sha512-mv8LBJYilGOOPLqaIM3vbYc34m4qwOCpb4WfP24DOPFNj2uiTerw8sg9MGvN6Jx2+J8rq9/WMnjcyz3UMqoIIQ==} + peerDependencies: + typedoc-plugin-markdown: '>=4.0.0' + docusaurus-theme-search-typesense@0.20.0-0: resolution: {integrity: sha512-MW6fLJsZYfKKDRXC6pTe77OMhyQBishJO/L1M14hZymavKW2IyYFy+Mczp8TXL9QqvkLsW7Ja7YtnWXjmt5sCw==} engines: {node: '>=18'} @@ -10871,6 +10881,9 @@ packages: hast-util-to-estree@3.1.0: resolution: {integrity: sha512-lfX5g6hqVh9kjS/B9E2gSkvHH4SZNiQFiqWS0x9fENzEl+8W12RqdRxX6d/Cwxi30tPQs3bIO+aolQJNp1bIyw==} + hast-util-to-html@9.0.3: + resolution: {integrity: sha512-M17uBDzMJ9RPCqLMO92gNNUDuBSq10a25SDBI08iCCxmorf4Yy6sYHK57n9WAbRAAaU+DuR4W6GN9K4DFZesYg==} + hast-util-to-jsx-runtime@2.3.0: resolution: {integrity: sha512-H/y0+IWPdsLLS738P8tDnrQ8Z+dj12zQQ6WC11TIM21C8WFVoIxcqWXf2H3hiTVZjF1AWqoimGwrTWecWrnmRQ==} @@ -11945,6 +11958,9 @@ packages: resolution: {integrity: sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + linkify-it@5.0.0: + resolution: {integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==} + lint-staged@15.2.10: resolution: {integrity: sha512-5dY5t743e1byO19P9I4b3x8HJwalIznL5E1FWYnU6OWw33KxNBSLAc6Cy7F2PsFEO8FKnLwjwm5hx7aMF0jzZg==} engines: {node: '>=18.12.0'} @@ -12098,6 +12114,9 @@ packages: peerDependencies: react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 + lunr@2.3.9: + resolution: {integrity: sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==} + luxon@3.4.4: resolution: {integrity: sha512-zobTr7akeGHnv7eBOXcRgMeCP6+uyYsczwmeRCauvpvaAltgNyTbLH/+VaEAPUeWBT+1GuNmz4wC/6jtQzbbVA==} engines: {node: '>=12'} @@ -12159,6 +12178,10 @@ packages: resolution: {integrity: sha512-o5vL7aDWatOTX8LzaS1WMoaoxIiLRQJuIKKe2wAw6IeULDHaqbiqiggmx+pKvZDb1Sj+pE46Sn1T7lCqfFtg1Q==} engines: {node: '>=16'} + markdown-it@14.1.0: + resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==} + hasBin: true + markdown-table@3.0.3: resolution: {integrity: sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==} @@ -12249,6 +12272,9 @@ packages: mdn-data@2.0.30: resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==} + mdurl@2.0.0: + resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==} + media-query-parser@2.0.2: resolution: {integrity: sha512-1N4qp+jE0pL5Xv4uEcwVUhIkwdUO3S/9gML90nqKA7v7FcOS5vUtatfzok9S9U1EJU8dHWlcv95WLnKmmxZI9w==} @@ -12297,9 +12323,6 @@ packages: resolution: {integrity: sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==} engines: {node: '>= 0.6'} - micro-ftch@0.3.1: - resolution: {integrity: sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==} - micromark-core-commonmark@1.1.0: resolution: {integrity: sha512-BgHO1aRbolh2hcrzL2d1La37V0Aoz73ymF8rAcKnohLy93titmv62E0gP8Hrx9PKcKrqCZ1BbLGbP3bEhoXYlw==} @@ -12901,6 +12924,9 @@ packages: resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} engines: {node: '>=18'} + oniguruma-to-js@0.4.3: + resolution: {integrity: sha512-X0jWUcAlxORhOqqBREgPMgnshB7ZGYszBNspP+tS9hPD3l13CdaXcHbgImoHUHlrvGx/7AvFEkTRhAGYh+jzjQ==} + open@7.4.2: resolution: {integrity: sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==} engines: {node: '>=8'} @@ -13257,10 +13283,6 @@ packages: resolution: {integrity: sha512-OBatVyC/N7SCW/FaDHrSd+vn0o5cS855TOmYi4OkdWUMSJCET/xip//ch8xGUvtr3i44X9LVyWwQlRMTN3pwSA==} engines: {node: '>=10'} - pony-cause@2.1.11: - resolution: {integrity: sha512-M7LhCsdNbNgiLYiP4WjsfLUuFmCfnjdF6jKe2R9NKl4WFN+HZPGHJZ9lnLP7f9ZnKe3U9nuWD0szirmj+migUg==} - engines: {node: '>=12.0.0'} - popsicle-content-encoding@1.0.0: resolution: {integrity: sha512-4Df+vTfM8wCCJVTzPujiI6eOl3SiWQkcZg0AMrOkD1enMXsF3glIkFUZGvour1Sj7jOWCsNSEhBxpbbhclHhzw==} peerDependencies: @@ -13905,6 +13927,10 @@ packages: pumpify@1.5.1: resolution: {integrity: sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==} + punycode.js@2.3.1: + resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==} + engines: {node: '>=6'} + punycode@1.4.1: resolution: {integrity: sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==} @@ -14371,6 +14397,9 @@ packages: regenerator-transform@0.15.2: resolution: {integrity: sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==} + regex@4.4.0: + resolution: {integrity: sha512-uCUSuobNVeqUupowbdZub6ggI5/JZkYyJdDogddJr60L764oxC2pMZov1fQ3wM9bdyzUILDG+Sqx6NAKAz9rKQ==} + regexp.prototype.flags@1.5.2: resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} engines: {node: '>= 0.4'} @@ -14818,6 +14847,9 @@ packages: shellwords@0.1.1: resolution: {integrity: sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==} + shiki@1.22.2: + resolution: {integrity: sha512-3IZau0NdGKXhH2bBlUk4w1IHNxPh6A5B2sUpyY+8utLu2j/h1QpFkAaUA1bAMxOWWGtTWcAh531vnS4NJKS/lA==} + side-channel@1.0.6: resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} engines: {node: '>= 0.4'} @@ -15701,6 +15733,19 @@ packages: typedarray@0.0.6: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} + typedoc-plugin-markdown@4.2.10: + resolution: {integrity: sha512-PLX3pc1/7z13UJm4TDE9vo9jWGcClFUErXXtd5LdnoLjV6mynPpqZLU992DwMGFSRqJFZeKbVyqlNNeNHnk2tQ==} + engines: {node: '>= 18'} + peerDependencies: + typedoc: 0.26.x + + typedoc@0.26.11: + resolution: {integrity: sha512-sFEgRRtrcDl2FxVP58Ze++ZK2UQAEvtvvH8rRlig1Ja3o7dDaMHmaBfvJmdGnNEFaLTpQsN8dpvZaTqJSu/Ugw==} + engines: {node: '>= 18'} + hasBin: true + peerDependencies: + typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x + typescript-eslint@7.18.0: resolution: {integrity: sha512-PonBkP603E3tt05lDkbOMyaxJjvKqQrXsnow72sVeOFINDE/qNmnnd+f9b4N+U7W6MXnnYyrhtmF2t08QWwUbA==} engines: {node: ^18.18.0 || >=20.0.0} @@ -15773,6 +15818,9 @@ packages: resolution: {integrity: sha512-k24RCVWlEcjkdOxYmVJgeD/0a1TiSpqLg+ZalVGV9lsnr4yqu0w7tX/x2xX6G4zpkgQnRf89lxuZ1wsbjXM8lw==} hasBin: true + uc.micro@2.1.0: + resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==} + ufo@1.5.4: resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} @@ -19834,28 +19882,10 @@ snapshots: '@eslint/js@8.57.1': {} - '@ethereumjs/common@3.2.0': - dependencies: - '@ethereumjs/util': 8.1.0 - crc-32: 1.2.2 - '@ethereumjs/rlp@4.0.1': {} '@ethereumjs/rlp@5.0.2': {} - '@ethereumjs/tx@4.2.0': - dependencies: - '@ethereumjs/common': 3.2.0 - '@ethereumjs/rlp': 4.0.1 - '@ethereumjs/util': 8.1.0 - ethereum-cryptography: 2.2.1 - - '@ethereumjs/util@8.1.0': - dependencies: - '@ethereumjs/rlp': 4.0.1 - ethereum-cryptography: 2.2.1 - micro-ftch: 0.3.1 - '@fal-works/esbuild-plugin-global-externals@2.1.2': {} '@floating-ui/core@1.6.8': @@ -20916,11 +20946,7 @@ snapshots: '@types/react': 18.3.9 react: 18.3.1 - '@metamask/browser-passworder@5.0.1': - dependencies: - '@metamask/utils': 9.3.0 - transitivePeerDependencies: - - supports-color + '@metamask/browser-passworder@4.1.0': {} '@metamask/object-multiplex@1.3.0': dependencies: @@ -20947,22 +20973,6 @@ snapshots: '@metamask/safe-event-emitter@3.1.1': {} - '@metamask/superstruct@3.1.0': {} - - '@metamask/utils@9.3.0': - dependencies: - '@ethereumjs/tx': 4.2.0 - '@metamask/superstruct': 3.1.0 - '@noble/hashes': 1.5.0 - '@scure/base': 1.1.9 - '@types/debug': 4.1.12 - debug: 4.3.7(supports-color@8.1.1) - pony-cause: 2.1.11 - semver: 7.6.3 - uuid: 9.0.1 - transitivePeerDependencies: - - supports-color - '@microsoft/api-extractor-model@7.28.13(@types/node@20.16.9)': dependencies: '@microsoft/tsdoc': 0.14.2 @@ -22866,6 +22876,33 @@ snapshots: '@servie/events@1.0.0': {} + '@shikijs/core@1.22.2': + dependencies: + '@shikijs/engine-javascript': 1.22.2 + '@shikijs/engine-oniguruma': 1.22.2 + '@shikijs/types': 1.22.2 + '@shikijs/vscode-textmate': 9.3.0 + '@types/hast': 3.0.4 + hast-util-to-html: 9.0.3 + + '@shikijs/engine-javascript@1.22.2': + dependencies: + '@shikijs/types': 1.22.2 + '@shikijs/vscode-textmate': 9.3.0 + oniguruma-to-js: 0.4.3 + + '@shikijs/engine-oniguruma@1.22.2': + dependencies: + '@shikijs/types': 1.22.2 + '@shikijs/vscode-textmate': 9.3.0 + + '@shikijs/types@1.22.2': + dependencies: + '@shikijs/vscode-textmate': 9.3.0 + '@types/hast': 3.0.4 + + '@shikijs/vscode-textmate@9.3.0': {} + '@sideway/address@4.1.5': dependencies: '@hapi/hoek': 9.3.0 @@ -27135,6 +27172,10 @@ snapshots: dependencies: esutils: 2.0.3 + docusaurus-plugin-typedoc@1.0.5(typedoc-plugin-markdown@4.2.10(typedoc@0.26.11(typescript@5.6.2))): + dependencies: + typedoc-plugin-markdown: 4.2.10(typedoc@0.26.11(typescript@5.6.2)) + docusaurus-theme-search-typesense@0.20.0-0(@algolia/client-search@4.24.0)(@babel/runtime@7.25.6)(@docusaurus/core@3.5.2(@docusaurus/types@3.5.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@mdx-js/react@3.0.1(@types/react@18.3.9)(react@18.3.1))(eslint@8.57.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.2)(vue-template-compiler@2.7.16))(@docusaurus/theme-common@3.5.2(@docusaurus/plugin-content-docs@3.5.2(@mdx-js/react@3.0.1(@types/react@18.3.9)(react@18.3.1))(eslint@8.57.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.2)(vue-template-compiler@2.7.16))(@docusaurus/types@3.5.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.2))(@docusaurus/types@3.5.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.9)(algoliasearch@4.24.0)(eslint@8.57.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.2)(vue-template-compiler@2.7.16): dependencies: '@docusaurus/core': 3.5.2(@docusaurus/types@3.5.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@mdx-js/react@3.0.1(@types/react@18.3.9)(react@18.3.1))(eslint@8.57.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.2)(vue-template-compiler@2.7.16) @@ -28918,6 +28959,20 @@ snapshots: transitivePeerDependencies: - supports-color + hast-util-to-html@9.0.3: + dependencies: + '@types/hast': 3.0.4 + '@types/unist': 3.0.3 + ccount: 2.0.1 + comma-separated-tokens: 2.0.3 + hast-util-whitespace: 3.0.0 + html-void-elements: 3.0.0 + mdast-util-to-hast: 13.2.0 + property-information: 6.5.0 + space-separated-tokens: 2.0.2 + stringify-entities: 4.0.4 + zwitch: 2.0.4 + hast-util-to-jsx-runtime@2.3.0: dependencies: '@types/estree': 1.0.6 @@ -30249,6 +30304,10 @@ snapshots: lines-and-columns@2.0.4: {} + linkify-it@5.0.0: + dependencies: + uc.micro: 2.1.0 + lint-staged@15.2.10: dependencies: chalk: 5.3.0 @@ -30419,6 +30478,8 @@ snapshots: dependencies: react: 18.3.1 + lunr@2.3.9: {} + luxon@3.4.4: {} lz-string@1.5.0: {} @@ -30474,6 +30535,15 @@ snapshots: markdown-extensions@2.0.0: {} + markdown-it@14.1.0: + dependencies: + argparse: 2.0.1 + entities: 4.5.0 + linkify-it: 5.0.0 + mdurl: 2.0.0 + punycode.js: 2.3.1 + uc.micro: 2.1.0 + markdown-table@3.0.3: {} markdown-to-jsx@7.5.0(react@18.3.1): @@ -30713,6 +30783,8 @@ snapshots: mdn-data@2.0.30: {} + mdurl@2.0.0: {} + media-query-parser@2.0.2: dependencies: '@babel/runtime': 7.25.6 @@ -30781,8 +30853,6 @@ snapshots: methods@1.1.2: {} - micro-ftch@0.3.1: {} - micromark-core-commonmark@1.1.0: dependencies: decode-named-character-reference: 1.0.2 @@ -31624,6 +31694,10 @@ snapshots: dependencies: mimic-function: 5.0.1 + oniguruma-to-js@0.4.3: + dependencies: + regex: 4.4.0 + open@7.4.2: dependencies: is-docker: 2.2.1 @@ -31987,8 +32061,6 @@ snapshots: dependencies: '@babel/runtime': 7.25.6 - pony-cause@2.1.11: {} - popsicle-content-encoding@1.0.0(servie@4.3.3): dependencies: servie: 4.3.3 @@ -32627,6 +32699,8 @@ snapshots: inherits: 2.0.4 pump: 2.0.1 + punycode.js@2.3.1: {} + punycode@1.4.1: {} punycode@2.3.1: {} @@ -33167,6 +33241,8 @@ snapshots: dependencies: '@babel/runtime': 7.25.6 + regex@4.4.0: {} + regexp.prototype.flags@1.5.2: dependencies: call-bind: 1.0.7 @@ -33741,6 +33817,15 @@ snapshots: shellwords@0.1.1: {} + shiki@1.22.2: + dependencies: + '@shikijs/core': 1.22.2 + '@shikijs/engine-javascript': 1.22.2 + '@shikijs/engine-oniguruma': 1.22.2 + '@shikijs/types': 1.22.2 + '@shikijs/vscode-textmate': 9.3.0 + '@types/hast': 3.0.4 + side-channel@1.0.6: dependencies: call-bind: 1.0.7 @@ -34808,6 +34893,19 @@ snapshots: typedarray@0.0.6: {} + typedoc-plugin-markdown@4.2.10(typedoc@0.26.11(typescript@5.6.2)): + dependencies: + typedoc: 0.26.11(typescript@5.6.2) + + typedoc@0.26.11(typescript@5.6.2): + dependencies: + lunr: 2.3.9 + markdown-it: 14.1.0 + minimatch: 9.0.5 + shiki: 1.22.2 + typescript: 5.6.2 + yaml: 2.5.1 + typescript-eslint@7.18.0(eslint@8.57.1)(typescript@5.6.2): dependencies: '@typescript-eslint/eslint-plugin': 7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.6.2))(eslint@8.57.1)(typescript@5.6.2) @@ -34879,6 +34977,8 @@ snapshots: ua-parser-js@1.0.39: {} + uc.micro@2.1.0: {} + ufo@1.5.4: {} uglify-js@3.19.3: diff --git a/sdk/.env.defaults b/sdk/.env.defaults index a6d40f7a431..4b1dd6b6ee6 100644 --- a/sdk/.env.defaults +++ b/sdk/.env.defaults @@ -8,13 +8,7 @@ IOTA_NETWORKS = ' "name": "Mainnet", "url": "https://fullnode.mainnet.iota.org:443", "chain": "iota:mainnet", - "explorer": "https://explorer.iota.org", - "kiosk": { - "royaltyRulePackageId": "0x434b5bd8f6a7b05fede0ff46c6e511d71ea326ed38056e3bcd681d2d7c2a7879", - "kioskLockRulePackageId": "0x434b5bd8f6a7b05fede0ff46c6e511d71ea326ed38056e3bcd681d2d7c2a7879", - "floorPriceRulePackageId": "0x34cc6762780f4f6f153c924c0680cfe2a1fb4601e7d33cc28a92297b62de1e0e", - "personalKioskRulePackageId": "0x0cb4bcc0560340eb1a1b929cabe56b33fc6449820ec8c1980d69bb98b649b802" - } + "explorer": "https://explorer.iota.org" }, "testnet": { "id": "testnet", @@ -22,13 +16,7 @@ IOTA_NETWORKS = ' "url": "https://fullnode.testnet.iota.org:443", "explorer": "https://explorer.iota.org", "chain": "iota:testnet", - "faucet": "https://faucet.testnet.iota.org/gas", - "kiosk": { - "royaltyRulePackageId": "bd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585", - "kioskLockRulePackageId": "bd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585", - "floorPriceRulePackageId": "0x06f6bdd3f2e2e759d8a4b9c252f379f7a05e72dfe4c0b9311cdac27b8eb791b1", - "personalKioskRulePackageId": "0x06f6bdd3f2e2e759d8a4b9c252f379f7a05e72dfe4c0b9311cdac27b8eb791b1" - } + "faucet": "https://faucet.testnet.iota.org/gas" }, "devnet": { "id": "devnet", diff --git a/sdk/bcs/CHANGELOG.md b/sdk/bcs/CHANGELOG.md index 2f5f153e5c5..51a1114cc6e 100644 --- a/sdk/bcs/CHANGELOG.md +++ b/sdk/bcs/CHANGELOG.md @@ -1,5 +1,12 @@ # @iota/bcs +## 0.2.0 + +### Minor Changes + +- 6eabd18: Changes for compatibility with the node, simplification of exposed APIs and general + improvements. + ## 0.1.0 ### Minor Changes diff --git a/sdk/bcs/package.json b/sdk/bcs/package.json index d95622e3db1..4169398b067 100644 --- a/sdk/bcs/package.json +++ b/sdk/bcs/package.json @@ -1,6 +1,6 @@ { "name": "@iota/bcs", - "version": "0.1.0", + "version": "0.2.0", "description": "BCS - Canonical Binary Serialization implementation for JavaScript", "license": "Apache-2.0", "author": "IOTA Foundation <info@iota.org>", diff --git a/sdk/create-dapp/CHANGELOG.md b/sdk/create-dapp/CHANGELOG.md index 58d330710a6..5af9cd4f1a6 100644 --- a/sdk/create-dapp/CHANGELOG.md +++ b/sdk/create-dapp/CHANGELOG.md @@ -1,5 +1,18 @@ # @iota/create-dapp +## 0.2.0 + +### Minor Changes + +- 6eabd18: Changes for compatibility with the node, simplification of exposed APIs and general + improvements. + +### Patch Changes + +- Updated dependencies [6eabd18] + - @iota/dapp-kit@0.3.0 + - @iota/iota-sdk@0.3.0 + ## 0.1.0 ### Minor Changes diff --git a/sdk/create-dapp/package.json b/sdk/create-dapp/package.json index 47fd160a3b3..4ee9291df38 100644 --- a/sdk/create-dapp/package.json +++ b/sdk/create-dapp/package.json @@ -2,7 +2,7 @@ "name": "@iota/create-dapp", "author": "IOTA Foundation <info@iota.org>", "description": "A CLI for creating new IOTA dApps", - "version": "0.1.0", + "version": "0.2.0", "license": "Apache-2.0", "files": [ "CHANGELOG.md", diff --git a/sdk/dapp-kit/CHANGELOG.md b/sdk/dapp-kit/CHANGELOG.md index ac5b6bf9444..f99b9def2b9 100644 --- a/sdk/dapp-kit/CHANGELOG.md +++ b/sdk/dapp-kit/CHANGELOG.md @@ -1,5 +1,18 @@ # @iota/dapp-kit +## 0.3.0 + +### Minor Changes + +- 6eabd18: Changes for compatibility with the node, simplification of exposed APIs and general + improvements. + +### Patch Changes + +- Updated dependencies [6eabd18] + - @iota/iota-sdk@0.3.0 + - @iota/wallet-standard@0.2.0 + ## 0.2.0 ### Minor Changes diff --git a/sdk/dapp-kit/package.json b/sdk/dapp-kit/package.json index 499856d556c..c7e9c4b9fca 100644 --- a/sdk/dapp-kit/package.json +++ b/sdk/dapp-kit/package.json @@ -2,7 +2,7 @@ "name": "@iota/dapp-kit", "author": "IOTA Foundation <info@iota.org>", "description": "A collection of React hooks and components for interacting with the IOTA blockchain and wallets.", - "version": "0.2.0", + "version": "0.3.0", "license": "Apache-2.0", "files": [ "CHANGELOG.md", diff --git a/sdk/graphql-transport/CHANGELOG.md b/sdk/graphql-transport/CHANGELOG.md index b226398a788..fa23bf567b0 100644 --- a/sdk/graphql-transport/CHANGELOG.md +++ b/sdk/graphql-transport/CHANGELOG.md @@ -1,5 +1,18 @@ # @iota/graphql-transport +## 0.2.0 + +### Minor Changes + +- 6eabd18: Changes for compatibility with the node, simplification of exposed APIs and general + improvements. + +### Patch Changes + +- Updated dependencies [6eabd18] + - @iota/bcs@0.2.0 + - @iota/iota-sdk@0.3.0 + ## 0.1.2 ### Patch Changes diff --git a/sdk/graphql-transport/package.json b/sdk/graphql-transport/package.json index 8cc2dcf651f..75120ca0ec1 100644 --- a/sdk/graphql-transport/package.json +++ b/sdk/graphql-transport/package.json @@ -1,6 +1,6 @@ { "name": "@iota/graphql-transport", - "version": "0.1.2", + "version": "0.2.0", "description": "A GraphQL transport to allow IotaClient to work with RPC 2.0", "license": "Apache-2.0", "author": "IOTA Foundation <info@iota.org>", diff --git a/sdk/kiosk/CHANGELOG.md b/sdk/kiosk/CHANGELOG.md index e4b040ff501..ebfbfea159f 100644 --- a/sdk/kiosk/CHANGELOG.md +++ b/sdk/kiosk/CHANGELOG.md @@ -1,5 +1,17 @@ # @iota/kiosk +## 0.2.0 + +### Minor Changes + +- 6eabd18: Changes for compatibility with the node, simplification of exposed APIs and general + improvements. + +### Patch Changes + +- Updated dependencies [6eabd18] + - @iota/iota-sdk@0.3.0 + ## 0.1.2 ### Patch Changes diff --git a/sdk/kiosk/package.json b/sdk/kiosk/package.json index d1c39f30b59..969e1d98aec 100644 --- a/sdk/kiosk/package.json +++ b/sdk/kiosk/package.json @@ -2,7 +2,7 @@ "name": "@iota/kiosk", "author": "IOTA Foundation <info@iota.org>", "description": "IOTA Kiosk library", - "version": "0.1.2", + "version": "0.2.0", "license": "Apache-2.0", "type": "commonjs", "main": "./dist/cjs/index.js", diff --git a/sdk/ledgerjs-hw-app-iota/CHANGELOG.md b/sdk/ledgerjs-hw-app-iota/CHANGELOG.md index 1c81ec32630..81fc59d79bb 100644 --- a/sdk/ledgerjs-hw-app-iota/CHANGELOG.md +++ b/sdk/ledgerjs-hw-app-iota/CHANGELOG.md @@ -1,5 +1,12 @@ # @iota/ledgerjs-hw-app-iota +## 0.2.0 + +### Minor Changes + +- 6eabd18: Changes for compatibility with the node, simplification of exposed APIs and general + improvements. + ## 0.1.1 ### Patch Changes diff --git a/sdk/ledgerjs-hw-app-iota/package.json b/sdk/ledgerjs-hw-app-iota/package.json index 7287f13b396..10610b374ab 100644 --- a/sdk/ledgerjs-hw-app-iota/package.json +++ b/sdk/ledgerjs-hw-app-iota/package.json @@ -1,6 +1,6 @@ { "name": "@iota/ledgerjs-hw-app-iota", - "version": "0.1.1", + "version": "0.2.0", "description": "Ledger Hardware Wallet IOTA Application API", "keywords": [ "Ledger", diff --git a/sdk/typescript/CHANGELOG.md b/sdk/typescript/CHANGELOG.md index a1fea9a98bc..c5e68a517fe 100644 --- a/sdk/typescript/CHANGELOG.md +++ b/sdk/typescript/CHANGELOG.md @@ -1,5 +1,17 @@ # @iota/iota-sdk +## 0.3.0 + +### Minor Changes + +- 6eabd18: Changes for compatibility with the node, simplification of exposed APIs and general + improvements. + +### Patch Changes + +- Updated dependencies [6eabd18] + - @iota/bcs@0.2.0 + ## 0.2.0 ### Minor Changes diff --git a/sdk/typescript/package.json b/sdk/typescript/package.json index 369f083c220..3d8528e80e8 100644 --- a/sdk/typescript/package.json +++ b/sdk/typescript/package.json @@ -2,7 +2,7 @@ "name": "@iota/iota-sdk", "author": "IOTA Foundation <info@iota.org>", "description": "IOTA TypeScript API", - "version": "0.2.0", + "version": "0.3.0", "license": "Apache-2.0", "sideEffects": false, "files": [ diff --git a/sdk/typescript/src/version.ts b/sdk/typescript/src/version.ts index a5643d51d77..14265587716 100644 --- a/sdk/typescript/src/version.ts +++ b/sdk/typescript/src/version.ts @@ -4,5 +4,5 @@ // This file is generated by genversion.mjs. Do not edit it directly. -export const PACKAGE_VERSION = '0.2.0'; +export const PACKAGE_VERSION = '0.3.0'; export const TARGETED_RPC_VERSION = '0.6.0-alpha'; diff --git a/sdk/wallet-standard/CHANGELOG.md b/sdk/wallet-standard/CHANGELOG.md index 70db366ddfa..6285b7e5bc9 100644 --- a/sdk/wallet-standard/CHANGELOG.md +++ b/sdk/wallet-standard/CHANGELOG.md @@ -1,5 +1,17 @@ # @iota/wallet-standard +## 0.2.0 + +### Minor Changes + +- 6eabd18: Changes for compatibility with the node, simplification of exposed APIs and general + improvements. + +### Patch Changes + +- Updated dependencies [6eabd18] + - @iota/iota-sdk@0.3.0 + ## 0.1.3 ### Patch Changes diff --git a/sdk/wallet-standard/package.json b/sdk/wallet-standard/package.json index 6dabceff8bb..21b6e34f195 100644 --- a/sdk/wallet-standard/package.json +++ b/sdk/wallet-standard/package.json @@ -1,6 +1,6 @@ { "name": "@iota/wallet-standard", - "version": "0.1.3", + "version": "0.2.0", "description": "A suite of standard utilities for implementing wallets based on the Wallet Standard.", "license": "Apache-2.0", "author": "IOTA Foundation <info@iota.org>", diff --git a/turbo.json b/turbo.json index f73103f2c7e..0035645487c 100644 --- a/turbo.json +++ b/turbo.json @@ -28,6 +28,19 @@ "!.next/cache/**", "pkg/**" ] + }, + "build:rc": { + "dependsOn": [ + "^build" + ], + "outputs": [ + "build/**", + "dist/**", + "storybook-static/**", + ".next/**", + "!.next/cache/**", + "pkg/**" + ] } }, "globalEnv": [