From aca9c9ae81368fe8bbddc6660950eea216c58a75 Mon Sep 17 00:00:00 2001 From: cpl121 Date: Thu, 18 Jul 2024 18:40:19 +0200 Subject: [PATCH 01/68] feat(wallet-dashboard): fetch supply increase timelocked portfolio --- apps/core/src/constants/index.ts | 1 + apps/core/src/constants/packages.constants.ts | 5 +++ apps/core/src/hooks/index.ts | 1 + .../core/src/hooks/useGetTimelockedObjects.ts | 36 +++++++++++++++++++ .../lib/constants/vesting.constants.ts | 3 ++ 5 files changed, 46 insertions(+) create mode 100644 apps/core/src/constants/packages.constants.ts create mode 100644 apps/core/src/hooks/useGetTimelockedObjects.ts diff --git a/apps/core/src/constants/index.ts b/apps/core/src/constants/index.ts index 50a180aa574..719fddeb388 100644 --- a/apps/core/src/constants/index.ts +++ b/apps/core/src/constants/index.ts @@ -4,3 +4,4 @@ export * from './staking.constants'; export * from './recognizedPackages.constants'; export * from './coins.constants'; +export * from './packages.constants'; diff --git a/apps/core/src/constants/packages.constants.ts b/apps/core/src/constants/packages.constants.ts new file mode 100644 index 00000000000..a1b6caa943f --- /dev/null +++ b/apps/core/src/constants/packages.constants.ts @@ -0,0 +1,5 @@ +// Copyright (c) 2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + +export const TIMELOCK_PACKAGE_ID = + '0xa9ed4baf8210bda422feaf348dd5dd730618bf736372871bfcf4d755e942dd61'; // TODO: modify with real package https://github.com/iotaledger/iota/issues/1219 diff --git a/apps/core/src/hooks/index.ts b/apps/core/src/hooks/index.ts index 646721aa723..92aff722afb 100644 --- a/apps/core/src/hooks/index.ts +++ b/apps/core/src/hooks/index.ts @@ -34,5 +34,6 @@ export * from './useExtendedTransactionSummary'; export * from './useSortedCoinsByCategories'; export * from './useGetNFTMeta'; export * from './useIotaAddressValidation'; +export * from './useGetTimelockedObjects'; export * from './stake'; diff --git a/apps/core/src/hooks/useGetTimelockedObjects.ts b/apps/core/src/hooks/useGetTimelockedObjects.ts new file mode 100644 index 00000000000..16719e816b2 --- /dev/null +++ b/apps/core/src/hooks/useGetTimelockedObjects.ts @@ -0,0 +1,36 @@ +// Copyright (c) 2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + +import { useIotaClient } from '@iota/dapp-kit'; +import { PaginatedObjectsResponse, type IotaObjectDataFilter } from '@iota/iota.js/client'; +import { useInfiniteQuery } from '@tanstack/react-query'; +import { TIMELOCK_PACKAGE_ID } from '../constants'; + +const MAX_OBJECTS_PER_REQ = 6; + +export function useGetTimelockedObjects(address: string, maxObjectRequests = MAX_OBJECTS_PER_REQ) { + const client = useIotaClient(); + const filter: IotaObjectDataFilter = { + Package: TIMELOCK_PACKAGE_ID, + }; + return useInfiniteQuery({ + initialPageParam: null, + queryKey: ['get-timelocked-objects', address, filter, maxObjectRequests], + queryFn: ({ pageParam }) => + client.getOwnedObjects({ + owner: address, + filter, + options: { + showType: true, + showContent: true, + showDisplay: true, + }, + limit: maxObjectRequests, + cursor: pageParam as string | null, + }), + + staleTime: 10 * 1000, + enabled: !!address, + getNextPageParam: ({ hasNextPage, nextCursor }) => (hasNextPage ? nextCursor : null), + }); +} diff --git a/apps/wallet-dashboard/lib/constants/vesting.constants.ts b/apps/wallet-dashboard/lib/constants/vesting.constants.ts index 976f74f8356..dd6459e9434 100644 --- a/apps/wallet-dashboard/lib/constants/vesting.constants.ts +++ b/apps/wallet-dashboard/lib/constants/vesting.constants.ts @@ -18,6 +18,9 @@ export const SUPPLY_INCREASE_INVESTOR_VESTING_DURATION = 4; // Years export const SUPPLY_INCREASE_VESTING_LABEL = '000000000000000000000000000000000000000000000000000000000000107a::stardust_upgrade_label::STARDUST_UPGRADE_LABEL'; +export const TESTING_SUPPLY_INCREASE_VESTING_LABEL = + 'a9ed4baf8210bda422feaf348dd5dd730618bf736372871bfcf4d755e942dd61::stardust_upgrade_label::STARDUST_UPGRADE_LABEL'; + export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ { id: { From 82cd25c0a2c0aca1613fb2c640bab04d23798579 Mon Sep 17 00:00:00 2001 From: cpl121 Date: Fri, 19 Jul 2024 14:45:14 +0200 Subject: [PATCH 02/68] feat(wallet-dashboard): add new route to vesting --- .../wallet-dashboard/app/dashboard/layout.tsx | 1 + .../app/dashboard/vesting/page.tsx | 51 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 apps/wallet-dashboard/app/dashboard/vesting/page.tsx diff --git a/apps/wallet-dashboard/app/dashboard/layout.tsx b/apps/wallet-dashboard/app/dashboard/layout.tsx index 6234343c32f..7cd36c639ce 100644 --- a/apps/wallet-dashboard/app/dashboard/layout.tsx +++ b/apps/wallet-dashboard/app/dashboard/layout.tsx @@ -14,6 +14,7 @@ function DashboardLayout({ children }: PropsWithChildren): JSX.Element { { title: 'Apps', path: '/dashboard/apps' }, { title: 'Activity', path: '/dashboard/activity' }, { title: 'Migrations', path: '/dashboard/migrations' }, + { title: 'Vesting', path: '/dashboard/vesting' }, ]; // TODO: check if the wallet is connected and if not redirect to the welcome screen diff --git a/apps/wallet-dashboard/app/dashboard/vesting/page.tsx b/apps/wallet-dashboard/app/dashboard/vesting/page.tsx new file mode 100644 index 00000000000..f18c1701b34 --- /dev/null +++ b/apps/wallet-dashboard/app/dashboard/vesting/page.tsx @@ -0,0 +1,51 @@ +// Copyright (c) 2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + +'use client'; + +import { getVestingOverview, mapTimelockObjects } from '@/lib/utils'; +import { useGetAllTimelockedObjects } from '@iota/core'; +import { useCurrentAccount } from '@iota/dapp-kit'; + +function VestingDashboardPage(): JSX.Element { + const account = useCurrentAccount(); + const { data: timelockedObjects } = useGetAllTimelockedObjects(account?.address || ''); + const timelockedMapped = mapTimelockObjects(timelockedObjects || []); + const vestingSchedule = getVestingOverview(timelockedMapped); + + return ( +
+

VESTING

+
+
+ Total Vested + {vestingSchedule.totalVested} +
+
+ Total Locked + {vestingSchedule.totalLocked} +
+
+ Total Unlocked + {vestingSchedule.totalUnlocked} +
+
+ Total Staked + {vestingSchedule.totalStaked} +
+
+
+
+ Available Claiming + {vestingSchedule.availableClaiming} +
+
+ Available Staking + {vestingSchedule.availableStaking} +
+
+
+ ); +} + +export default VestingDashboardPage; From e7206c8d261e8b0972c5f7a1653a500603b5498b Mon Sep 17 00:00:00 2001 From: cpl121 Date: Fri, 19 Jul 2024 14:46:01 +0200 Subject: [PATCH 03/68] feat(wallet-dashboard): update request timelocked objets to get all --- apps/core/src/hooks/index.ts | 2 +- .../src/hooks/useGetAllTimelockedObjects.ts | 51 +++++++++++++++++++ .../core/src/hooks/useGetTimelockedObjects.ts | 36 ------------- 3 files changed, 52 insertions(+), 37 deletions(-) create mode 100644 apps/core/src/hooks/useGetAllTimelockedObjects.ts delete mode 100644 apps/core/src/hooks/useGetTimelockedObjects.ts diff --git a/apps/core/src/hooks/index.ts b/apps/core/src/hooks/index.ts index 92aff722afb..141953eecb0 100644 --- a/apps/core/src/hooks/index.ts +++ b/apps/core/src/hooks/index.ts @@ -34,6 +34,6 @@ export * from './useExtendedTransactionSummary'; export * from './useSortedCoinsByCategories'; export * from './useGetNFTMeta'; export * from './useIotaAddressValidation'; -export * from './useGetTimelockedObjects'; +export * from './useGetAllTimelockedObjects'; export * from './stake'; diff --git a/apps/core/src/hooks/useGetAllTimelockedObjects.ts b/apps/core/src/hooks/useGetAllTimelockedObjects.ts new file mode 100644 index 00000000000..f0a3cc1a623 --- /dev/null +++ b/apps/core/src/hooks/useGetAllTimelockedObjects.ts @@ -0,0 +1,51 @@ +// Copyright (c) 2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + +import { useIotaClient } from '@iota/dapp-kit'; +import { IotaObjectData, type IotaObjectDataFilter } from '@iota/iota.js/client'; +import { useQuery } from '@tanstack/react-query'; +import { TIMELOCK_PACKAGE_ID } from '../constants'; + +const MAX_OBJECTS_PER_REQ = 10; + +export function useGetAllTimelockedObjects(address: string) { + const client = useIotaClient(); + const filter: IotaObjectDataFilter = { + Package: TIMELOCK_PACKAGE_ID, + }; + return useQuery({ + queryKey: ['get-all-timelocked-objects', address, filter], + queryFn: async () => { + let cursor: string | undefined | null = null; + const allData: IotaObjectData[] = []; + // keep fetching until cursor is null or undefined + do { + const { data: objectResponse, nextCursor } = await client.getOwnedObjects({ + owner: address, + filter, + options: { + showType: true, + showContent: true, + showDisplay: true, + }, + limit: MAX_OBJECTS_PER_REQ, + cursor, + }); + if (!objectResponse || !objectResponse.length) { + break; + } + + const mappedData = objectResponse + .map((response) => response?.data) + .filter((obj): obj is IotaObjectData => obj !== null && obj !== undefined); + + allData.push(...mappedData); + cursor = nextCursor; + } while (cursor); + + return allData; + }, + staleTime: 10 * 1000, + enabled: !!address, + }); +} diff --git a/apps/core/src/hooks/useGetTimelockedObjects.ts b/apps/core/src/hooks/useGetTimelockedObjects.ts deleted file mode 100644 index 16719e816b2..00000000000 --- a/apps/core/src/hooks/useGetTimelockedObjects.ts +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2024 IOTA Stiftung -// SPDX-License-Identifier: Apache-2.0 - -import { useIotaClient } from '@iota/dapp-kit'; -import { PaginatedObjectsResponse, type IotaObjectDataFilter } from '@iota/iota.js/client'; -import { useInfiniteQuery } from '@tanstack/react-query'; -import { TIMELOCK_PACKAGE_ID } from '../constants'; - -const MAX_OBJECTS_PER_REQ = 6; - -export function useGetTimelockedObjects(address: string, maxObjectRequests = MAX_OBJECTS_PER_REQ) { - const client = useIotaClient(); - const filter: IotaObjectDataFilter = { - Package: TIMELOCK_PACKAGE_ID, - }; - return useInfiniteQuery({ - initialPageParam: null, - queryKey: ['get-timelocked-objects', address, filter, maxObjectRequests], - queryFn: ({ pageParam }) => - client.getOwnedObjects({ - owner: address, - filter, - options: { - showType: true, - showContent: true, - showDisplay: true, - }, - limit: maxObjectRequests, - cursor: pageParam as string | null, - }), - - staleTime: 10 * 1000, - enabled: !!address, - getNextPageParam: ({ hasNextPage, nextCursor }) => (hasNextPage ? nextCursor : null), - }); -} From 230fc1974a4412f63057e0bb9020b9441896b485 Mon Sep 17 00:00:00 2001 From: cpl121 Date: Fri, 19 Jul 2024 14:47:11 +0200 Subject: [PATCH 04/68] feat(wallet-dashboard): improve the way to get timelock objects --- .../lib/constants/vesting.constants.ts | 410 ++++++++---------- .../lib/interfaces/vesting.interface.ts | 8 +- apps/wallet-dashboard/lib/utils/timelock.ts | 7 +- .../lib/utils/vesting/vesting.ts | 27 ++ 4 files changed, 206 insertions(+), 246 deletions(-) diff --git a/apps/wallet-dashboard/lib/constants/vesting.constants.ts b/apps/wallet-dashboard/lib/constants/vesting.constants.ts index dd6459e9434..4b86d459506 100644 --- a/apps/wallet-dashboard/lib/constants/vesting.constants.ts +++ b/apps/wallet-dashboard/lib/constants/vesting.constants.ts @@ -24,9 +24,7 @@ export const TESTING_SUPPLY_INCREASE_VESTING_LABEL = export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ { id: { - id: { - bytes: '0xfe755ca67e3a0714f97ec3c49cfc6f3ecdab2673d96b5840294d3a5db376c999', - }, + id: '0xfe755ca67e3a0714f97ec3c49cfc6f3ecdab2673d96b5840294d3a5db376c99', }, locked: { value: 1000, @@ -36,9 +34,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x682d14613231dd1dde39397977cdfafb6b6263b5683b6782348c597c104b834c', - }, + id: '0x682d14613231dd1dde39397977cdfafb6b6263b5683b6782348c597c104b834', }, locked: { value: 1000, @@ -48,9 +44,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x93f2bf2d044e45e1a85c010c22357892d1625436b8c95b26dcdb6f3093190643', - }, + id: '0x93f2bf2d044e45e1a85c010c22357892d1625436b8c95b26dcdb6f309319064', }, locked: { value: 1000, @@ -60,9 +54,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x44fa510ba216cd555ecd6b99d1ebd612f82e2bf421091c973bca49b064dc72bb', - }, + id: '0x44fa510ba216cd555ecd6b99d1ebd612f82e2bf421091c973bca49b064dc72b', }, locked: { value: 1000, @@ -72,9 +64,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0xacd861b6dc5d108af03655a2175545ac6d432c526bcbe294b90e722fa36b459b', - }, + id: '0xacd861b6dc5d108af03655a2175545ac6d432c526bcbe294b90e722fa36b459', }, locked: { value: 1000, @@ -84,9 +74,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x8f9eeb5953c77d53dcff3057619af7a29be1d9ce67bf66c86ad5309379d17e50', - }, + id: '0x8f9eeb5953c77d53dcff3057619af7a29be1d9ce67bf66c86ad5309379d17e5', }, locked: { value: 1000, @@ -96,9 +84,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x70b1063c1104760afc06df5217bebdf02f937e1aff51211fc0472e677ba8c745', - }, + id: '0x70b1063c1104760afc06df5217bebdf02f937e1aff51211fc0472e677ba8c74', }, locked: { value: 1000, @@ -108,9 +94,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0xb0aa6f655d08f630c15a2cfb4e3e13e307ce9d96c52c1e91c65a71a204819bd5', - }, + id: '0xb0aa6f655d08f630c15a2cfb4e3e13e307ce9d96c52c1e91c65a71a204819bd', }, locked: { value: 1000, @@ -120,9 +104,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x65224b9a3b9eadc55be4cb6efa363f283b924607496d60c02deef2aa6bf9e22d', - }, + id: '0x65224b9a3b9eadc55be4cb6efa363f283b924607496d60c02deef2aa6bf9e22', }, locked: { value: 1000, @@ -132,9 +114,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x68f9a2af0ebd0bcd9e3cc836ac7103670a9602e8dca8fd28e7b2b5a693898f28', - }, + id: '0x68f9a2af0ebd0bcd9e3cc836ac7103670a9602e8dca8fd28e7b2b5a693898f2', }, locked: { value: 1000, @@ -144,9 +124,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x637e6b758efdb8d49ee96397ca909d579bb77b79f8b64e7e7f1af13ad4f7ce4c', - }, + id: '0x637e6b758efdb8d49ee96397ca909d579bb77b79f8b64e7e7f1af13ad4f7ce4', }, locked: { value: 1000, @@ -156,9 +134,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0xbd0f349c21b67faec992b6c9a1b9b6343b4ff1f2ad5f33b0b4cd0fc31be2b311', - }, + id: '0xbd0f349c21b67faec992b6c9a1b9b6343b4ff1f2ad5f33b0b4cd0fc31be2b31', }, locked: { value: 1000, @@ -168,9 +144,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0xfb8c3539b22e4086bd03417027e70515e6fb6d18f366876ad5ad0d8da3bde0f7', - }, + id: '0xfb8c3539b22e4086bd03417027e70515e6fb6d18f366876ad5ad0d8da3bde0f', }, locked: { value: 1000, @@ -180,9 +154,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0xbfb7c1a941885cc55a191e579c7c6d5dc345d6b5b9cfa439f724a343d3540320', - }, + id: '0xbfb7c1a941885cc55a191e579c7c6d5dc345d6b5b9cfa439f724a343d354032', }, locked: { value: 1000, @@ -192,9 +164,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x8935a904f90e23f6f453cb0c85a03859e07f1c9e5a5d1644b2fbe7005d8e1580', - }, + id: '0x8935a904f90e23f6f453cb0c85a03859e07f1c9e5a5d1644b2fbe7005d8e158', }, locked: { value: 1000, @@ -204,9 +174,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x73be6f8df4b73b83f8ccf909d61aabb56c56c56aa597d2806eccf3ab4fac66b7', - }, + id: '0x73be6f8df4b73b83f8ccf909d61aabb56c56c56aa597d2806eccf3ab4fac66b', }, locked: { value: 1000, @@ -216,9 +184,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x20075cc2ebd5fa6e069829e58e55e6e010ad115e8cbc48d7a3d98d079ce649a5', - }, + id: '0x20075cc2ebd5fa6e069829e58e55e6e010ad115e8cbc48d7a3d98d079ce649a', }, locked: { value: 1000, @@ -228,9 +194,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0xce03433d496cb231ead90a661fe08b924eb9b0cfb43dd560ea02a8060f6afd0e', - }, + id: '0xce03433d496cb231ead90a661fe08b924eb9b0cfb43dd560ea02a8060f6afd0', }, locked: { value: 1000, @@ -240,9 +204,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0xf111b8705ba276f8c6b76bdf72a4a46889cb8207cc5a80d3df0f40d9576116a3', - }, + id: '0xf111b8705ba276f8c6b76bdf72a4a46889cb8207cc5a80d3df0f40d9576116a', }, locked: { value: 1000, @@ -252,9 +214,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0xbc27940fb9c6f96ae9e2c11ad151446e30de5281172e48aac7f600d1da92c109', - }, + id: '0xbc27940fb9c6f96ae9e2c11ad151446e30de5281172e48aac7f600d1da92c10', }, locked: { value: 1000, @@ -264,9 +224,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x016fae8797d3d12a26e215ec1815ee8adce70bb93149b4d55eb06a81c476ff9e', - }, + id: '0x016fae8797d3d12a26e215ec1815ee8adce70bb93149b4d55eb06a81c476ff9', }, locked: { value: 1000, @@ -276,9 +234,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x06f1e354ff551d76da8dc890eab728a65319defb3608991b4c70a1a2b30e8f1b', - }, + id: '0x06f1e354ff551d76da8dc890eab728a65319defb3608991b4c70a1a2b30e8f1', }, locked: { value: 1000, @@ -288,9 +244,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0xc4cf3ea32480aab7d78784c6f00b9210ce0ffaabbcbb8cddd846073e7455386c', - }, + id: '0xc4cf3ea32480aab7d78784c6f00b9210ce0ffaabbcbb8cddd846073e7455386', }, locked: { value: 1000, @@ -300,9 +254,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x6dc10a8008855549b8d92e7704c799253a953d9835af001970426414fdd3ba70', - }, + id: '0x6dc10a8008855549b8d92e7704c799253a953d9835af001970426414fdd3ba7', }, locked: { value: 1000, @@ -312,9 +264,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0xa5f7a66c575db3f74c5fe7043c28f7231a2127aec4dc2de88f5b9d3cf0205115', - }, + id: '0xa5f7a66c575db3f74c5fe7043c28f7231a2127aec4dc2de88f5b9d3cf020511', }, locked: { value: 1000, @@ -324,9 +274,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0xde0a4c2e0f16541983302c596339815ffa4d4743509e8115bc06fcf7f71ea8fc', - }, + id: '0xde0a4c2e0f16541983302c596339815ffa4d4743509e8115bc06fcf7f71ea8f', }, locked: { value: 1000, @@ -336,9 +284,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0xccc5d23ab69789b934b9bf7f5006e43eef45c2d7a251e3eec8b7dd24bc20a079', - }, + id: '0xccc5d23ab69789b934b9bf7f5006e43eef45c2d7a251e3eec8b7dd24bc20a07', }, locked: { value: 1000, @@ -348,9 +294,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x503dc8844b0cd6e74e735433751328e8283569e81b4602aaa6941ce3fe826bbc', - }, + id: '0x503dc8844b0cd6e74e735433751328e8283569e81b4602aaa6941ce3fe826bb', }, locked: { value: 1000, @@ -360,9 +304,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x0fac98b5ac955644dffa0700933aababe438fae6fc58b8a4bd1f740c8aba9415', - }, + id: '0x0fac98b5ac955644dffa0700933aababe438fae6fc58b8a4bd1f740c8aba941', }, locked: { value: 1000, @@ -372,9 +314,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x756483e3c7dd3491ea405f682df6c5dc1e4a59d8b5c9725b0d194815a25ea95a', - }, + id: '0x756483e3c7dd3491ea405f682df6c5dc1e4a59d8b5c9725b0d194815a25ea95', }, locked: { value: 1000, @@ -384,9 +324,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x72c4318876f51bed94c2228b395d18f5dce5f243039c7e3d8fad690dfe918fcf', - }, + id: '0x72c4318876f51bed94c2228b395d18f5dce5f243039c7e3d8fad690dfe918fc', }, locked: { value: 1000, @@ -396,9 +334,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x37f68fd72af05b4c923268b64a0baa7511f27bc4cbd90641e444e7116f026042', - }, + id: '0x37f68fd72af05b4c923268b64a0baa7511f27bc4cbd90641e444e7116f02604', }, locked: { value: 1000, @@ -408,9 +344,7 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ }, { id: { - id: { - bytes: '0x97bedf66e48392a0b9baf8a8280e72fcce9b32ff980832edfe1a90a14ce90479', - }, + id: '0x97bedf66e48392a0b9baf8a8280e72fcce9b32ff980832edfe1a90a14ce9047', }, locked: { value: 1000, @@ -422,12 +356,12 @@ export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = [ { - id: { id: { bytes: '0x1d981f9fde96c2e509de1c925a95b78b2a3cb910d9b384ca4dbeb1bd14aa1cf2' } }, + id: { id: '0x1d981f9fde96c2e509de1c925a95b78b2a3cb910d9b384ca4dbeb1bd14aa1cf2' }, stakedIota: { id: { - id: { bytes: '0x2a1df8ec18ef82da39f8af22ae1b8656037706df377ad4af0fc2036f50373f1d' }, + id: '0x2a1df8ec18ef82da39f8af22ae1b8656037706df377ad4af0fc2036f50373f1d', }, - poolId: { bytes: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c' }, + poolId: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -435,12 +369,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x72b7bafbe81584599b8c8d1e58758fd6f34e4a4e65fe22899cf4485063826aee' } }, + id: { id: '0x72b7bafbe81584599b8c8d1e58758fd6f34e4a4e65fe22899cf4485063826aee' }, stakedIota: { id: { - id: { bytes: '0x75e69abfc76ad38944e747f36ecf0dfd0933f80134187c7a67952f0011623b21' }, + id: '0x75e69abfc76ad38944e747f36ecf0dfd0933f80134187c7a67952f0011623b21', }, - poolId: { bytes: '0xddd255ac76d01579d2d873cc0b0548ad58a11c18ac41c75c03aa0339890ef6ac' }, + poolId: '0xddd255ac76d01579d2d873cc0b0548ad58a11c18ac41c75c03aa0339890ef6ac', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -448,12 +382,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xe438122ed11983492bfcabdd78b52d0739124802f8667fefcbdea4d0e1f6ff55' } }, + id: { id: '0xe438122ed11983492bfcabdd78b52d0739124802f8667fefcbdea4d0e1f6ff55' }, stakedIota: { id: { - id: { bytes: '0x6c9abc5d279d79f1693f09fa220300ef8483bcbdcca410e3d533e4892d7a60f9' }, + id: '0x6c9abc5d279d79f1693f09fa220300ef8483bcbdcca410e3d533e4892d7a60f9', }, - poolId: { bytes: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531' }, + poolId: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -461,12 +395,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x6f1f54bda98e0d82cdb90045fee0bb32bae8672f19e4c7797cb28409898c9a3f' } }, + id: { id: '0x6f1f54bda98e0d82cdb90045fee0bb32bae8672f19e4c7797cb28409898c9a3f' }, stakedIota: { id: { - id: { bytes: '0x40d2fcada5c4b87854b458115d678d87317bf14b28abce0ae94be2063a5c9c0f' }, + id: '0x40d2fcada5c4b87854b458115d678d87317bf14b28abce0ae94be2063a5c9c0f', }, - poolId: { bytes: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c' }, + poolId: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -474,12 +408,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xfb476568cd1e6563874a2a325677be253a3dfe46872c9ce89eb8af3ea731dea6' } }, + id: { id: '0xfb476568cd1e6563874a2a325677be253a3dfe46872c9ce89eb8af3ea731dea6' }, stakedIota: { id: { - id: { bytes: '0xfa414fb4078c7424f353a0206a0d18a07a21ff5ccc99e81fd15cf201fd0a65d4' }, + id: '0xfa414fb4078c7424f353a0206a0d18a07a21ff5ccc99e81fd15cf201fd0a65d4', }, - poolId: { bytes: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531' }, + poolId: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -487,12 +421,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x323760b2fea142c255ec9fb7c75a2380adb1c41cd65ca704e7076564f9db990c' } }, + id: { id: '0x323760b2fea142c255ec9fb7c75a2380adb1c41cd65ca704e7076564f9db990c' }, stakedIota: { id: { - id: { bytes: '0x67564a23c8a07f02755c8f23d3d97ed23de5f1af1b702e23e0fe6d5b68592334' }, + id: '0x67564a23c8a07f02755c8f23d3d97ed23de5f1af1b702e23e0fe6d5b68592334', }, - poolId: { bytes: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531' }, + poolId: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -500,12 +434,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xc556e3e84b39f730d6fd7ea152d2f947526b45c989a03633e5a79186fe52a3a0' } }, + id: { id: '0xc556e3e84b39f730d6fd7ea152d2f947526b45c989a03633e5a79186fe52a3a0' }, stakedIota: { id: { - id: { bytes: '0xd2f93f458c41ace2099f877f97233fc84f04eafbfb5a48b39ef15896bf34dcdb' }, + id: '0xd2f93f458c41ace2099f877f97233fc84f04eafbfb5a48b39ef15896bf34dcdb', }, - poolId: { bytes: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531' }, + poolId: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -513,12 +447,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x2b771bd4c3b0f36a261ff1249d8bf70858e5c53ca3182c8088ea53e0e62d9ba3' } }, + id: { id: '0x2b771bd4c3b0f36a261ff1249d8bf70858e5c53ca3182c8088ea53e0e62d9ba3' }, stakedIota: { id: { - id: { bytes: '0x38847bb6e80fc93d2a1924e65f37aa7f39c2b66c9cd0465cba4f8f7a2aa69cf4' }, + id: '0x38847bb6e80fc93d2a1924e65f37aa7f39c2b66c9cd0465cba4f8f7a2aa69cf4', }, - poolId: { bytes: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c' }, + poolId: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -526,12 +460,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x97d108f7ead86885654018931854c75314d82ee25d1bd3e25e169bd9ef848965' } }, + id: { id: '0x97d108f7ead86885654018931854c75314d82ee25d1bd3e25e169bd9ef848965' }, stakedIota: { id: { - id: { bytes: '0xe9c230f1046e3460d38ff70c46aa7e4b812d797e81d91e6048966dd457516908' }, + id: '0xe9c230f1046e3460d38ff70c46aa7e4b812d797e81d91e6048966dd457516908', }, - poolId: { bytes: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c' }, + poolId: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -539,12 +473,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x72793b91fea132f81df2065cd78e597a0b426da1b75b737689529fbaa7ae5e02' } }, + id: { id: '0x72793b91fea132f81df2065cd78e597a0b426da1b75b737689529fbaa7ae5e02' }, stakedIota: { id: { - id: { bytes: '0x584049fcd0854e2d9ae7f5442ddcd7a6774941cea32f446baa42ed471c0c9b5e' }, + id: '0x584049fcd0854e2d9ae7f5442ddcd7a6774941cea32f446baa42ed471c0c9b5e', }, - poolId: { bytes: '0xddd255ac76d01579d2d873cc0b0548ad58a11c18ac41c75c03aa0339890ef6ac' }, + poolId: '0xddd255ac76d01579d2d873cc0b0548ad58a11c18ac41c75c03aa0339890ef6ac', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -552,12 +486,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xc7a986cbdaf4d7b6f5167b2706f3f2d692846fee010f55f46540987a81a5a0d9' } }, + id: { id: '0xc7a986cbdaf4d7b6f5167b2706f3f2d692846fee010f55f46540987a81a5a0d9' }, stakedIota: { id: { - id: { bytes: '0x0fce2e04c142b904eddd7b644161335387e0c76398add8d4b75af8b973eb06c1' }, + id: '0x0fce2e04c142b904eddd7b644161335387e0c76398add8d4b75af8b973eb06c1', }, - poolId: { bytes: '0xae37229d0e5779022b31b0ab9c539b02eb9c05659b2d59b3d7ce9c667ae1f3b1' }, + poolId: '0xae37229d0e5779022b31b0ab9c539b02eb9c05659b2d59b3d7ce9c667ae1f3b1', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -565,12 +499,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xac1a96522df60536fd5bb6e0ad9452870b623262cedb01bc28eedd5322d849d2' } }, + id: { id: '0xac1a96522df60536fd5bb6e0ad9452870b623262cedb01bc28eedd5322d849d2' }, stakedIota: { id: { - id: { bytes: '0x8b3145f22980a2d506aa4d179657ca3acf2196509b4982d06d6c6a1cc033d47c' }, + id: '0x8b3145f22980a2d506aa4d179657ca3acf2196509b4982d06d6c6a1cc033d47c', }, - poolId: { bytes: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531' }, + poolId: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -578,12 +512,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x69adfd0c384f62e1d56b4658521b84c3343418187fb3b53fd8836ec20c294477' } }, + id: { id: '0x69adfd0c384f62e1d56b4658521b84c3343418187fb3b53fd8836ec20c294477' }, stakedIota: { id: { - id: { bytes: '0x687a70de2a11071592da1e1c7e65530407577974a253fbb291ab694fa1862556' }, + id: '0x687a70de2a11071592da1e1c7e65530407577974a253fbb291ab694fa1862556', }, - poolId: { bytes: '0xddd255ac76d01579d2d873cc0b0548ad58a11c18ac41c75c03aa0339890ef6ac' }, + poolId: '0xddd255ac76d01579d2d873cc0b0548ad58a11c18ac41c75c03aa0339890ef6ac', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -591,12 +525,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x2a60bbc881f361455155158dd28bbf70bf532f775d9e397e98629c338b254354' } }, + id: { id: '0x2a60bbc881f361455155158dd28bbf70bf532f775d9e397e98629c338b254354' }, stakedIota: { id: { - id: { bytes: '0xcb5b7b159752b1854c368d2f178f92e579a27c64a882669ca8ffddb921d5934e' }, + id: '0xcb5b7b159752b1854c368d2f178f92e579a27c64a882669ca8ffddb921d5934e', }, - poolId: { bytes: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c' }, + poolId: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -604,12 +538,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x50468640fc1c7623bd380ed93e6e6e7a0578c26dd0d78a8a0894c5cfd3718162' } }, + id: { id: '0x50468640fc1c7623bd380ed93e6e6e7a0578c26dd0d78a8a0894c5cfd3718162' }, stakedIota: { id: { - id: { bytes: '0x9d44592883927293bd177924cca351bc7c6c075a834d44711bb5f85cebd47cb9' }, + id: '0x9d44592883927293bd177924cca351bc7c6c075a834d44711bb5f85cebd47cb9', }, - poolId: { bytes: '0xddd255ac76d01579d2d873cc0b0548ad58a11c18ac41c75c03aa0339890ef6ac' }, + poolId: '0xddd255ac76d01579d2d873cc0b0548ad58a11c18ac41c75c03aa0339890ef6ac', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -617,12 +551,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xb220dfabba1985b2d3f4ef4899561b12c3d921aab8607cce87e02a7bfaa7c7ca' } }, + id: { id: '0xb220dfabba1985b2d3f4ef4899561b12c3d921aab8607cce87e02a7bfaa7c7ca' }, stakedIota: { id: { - id: { bytes: '0x72b8c7e5695e86b043b4f66202687fe7d1a11a0118bc795133f2af2f5229b4c7' }, + id: '0x72b8c7e5695e86b043b4f66202687fe7d1a11a0118bc795133f2af2f5229b4c7', }, - poolId: { bytes: '0xddd255ac76d01579d2d873cc0b0548ad58a11c18ac41c75c03aa0339890ef6ac' }, + poolId: '0xddd255ac76d01579d2d873cc0b0548ad58a11c18ac41c75c03aa0339890ef6ac', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -630,12 +564,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x303fc97a8b1c20fed2c0732b8ad6290725dcb668a2224f3e79cbbe28c7c1cde6' } }, + id: { id: '0x303fc97a8b1c20fed2c0732b8ad6290725dcb668a2224f3e79cbbe28c7c1cde6' }, stakedIota: { id: { - id: { bytes: '0x7bbd702f91697c81e05a17c6c6cca7160032627e1ca3af2736fd826f42196ff7' }, + id: '0x7bbd702f91697c81e05a17c6c6cca7160032627e1ca3af2736fd826f42196ff7', }, - poolId: { bytes: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c' }, + poolId: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -643,12 +577,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x81c7661212e17f6acd3620a4f4191b350a350b6fdabdefdd7f0940b962f5e6e3' } }, + id: { id: '0x81c7661212e17f6acd3620a4f4191b350a350b6fdabdefdd7f0940b962f5e6e3' }, stakedIota: { id: { - id: { bytes: '0xaf4544a2086985b0c29fee18df4f2fe616370824ef6d62c2965615c74f53fbee' }, + id: '0xaf4544a2086985b0c29fee18df4f2fe616370824ef6d62c2965615c74f53fbee', }, - poolId: { bytes: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c' }, + poolId: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -656,12 +590,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x4a20ce4aec17d1ec33fcb305195422b0ef4dd1410c267f79e0cb80c4f9232fe0' } }, + id: { id: '0x4a20ce4aec17d1ec33fcb305195422b0ef4dd1410c267f79e0cb80c4f9232fe0' }, stakedIota: { id: { - id: { bytes: '0x511517082f68c3604ef87f40bd98e3b1e37a54b7d4918c380a5c62e9e6f8c601' }, + id: '0x511517082f68c3604ef87f40bd98e3b1e37a54b7d4918c380a5c62e9e6f8c601', }, - poolId: { bytes: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c' }, + poolId: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -669,12 +603,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x4b6ee8ee6dcc2eeeea0861ce658c4e4e684c80dba901442ed5ef69addd8a45d6' } }, + id: { id: '0x4b6ee8ee6dcc2eeeea0861ce658c4e4e684c80dba901442ed5ef69addd8a45d6' }, stakedIota: { id: { - id: { bytes: '0x081a7840adef1fcba660166b380182083af6fe009f84821fb75f8105a2a60aa4' }, + id: '0x081a7840adef1fcba660166b380182083af6fe009f84821fb75f8105a2a60aa4', }, - poolId: { bytes: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c' }, + poolId: '0xea1a6f7ff4c03ce2a56687716d9c6e373286d2dca12cc0a4a86c2b943173553c', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -682,12 +616,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x429b75bcad49db078fcbb9d23e64b2596429c3657f48c84e12e66ea4c8c0e3a7' } }, + id: { id: '0x429b75bcad49db078fcbb9d23e64b2596429c3657f48c84e12e66ea4c8c0e3a7' }, stakedIota: { id: { - id: { bytes: '0x0cc8c2143be582d836c062e0b4ed54c478361e9454c33588daf04e948c24bc14' }, + id: '0x0cc8c2143be582d836c062e0b4ed54c478361e9454c33588daf04e948c24bc14', }, - poolId: { bytes: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531' }, + poolId: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -695,12 +629,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xab5d982443f648472dd8a2d06fb760067267b2d8c08a4d7c6e7464eb58dac832' } }, + id: { id: '0xab5d982443f648472dd8a2d06fb760067267b2d8c08a4d7c6e7464eb58dac832' }, stakedIota: { id: { - id: { bytes: '0xa42903e420c9dac333be82300fcbc62edddcaa88da0ffa05b3a0351a01235571' }, + id: '0xa42903e420c9dac333be82300fcbc62edddcaa88da0ffa05b3a0351a01235571', }, - poolId: { bytes: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531' }, + poolId: '0xb6930369f558843ff3f4d49edfef0e80d526efba150d0772b35d3990df5b4531', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -708,12 +642,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xd2cfd53537bff38e4ce90db46cbd15fa76f766a1c2cdc5aa2a075ae0e3ed2b8b' } }, + id: { id: '0xd2cfd53537bff38e4ce90db46cbd15fa76f766a1c2cdc5aa2a075ae0e3ed2b8b' }, stakedIota: { id: { - id: { bytes: '0x5aff0e4a0dcc530ac5f6e74fa347ac618c8d4a72f0de9194ea3b967a67604189' }, + id: '0x5aff0e4a0dcc530ac5f6e74fa347ac618c8d4a72f0de9194ea3b967a67604189', }, - poolId: { bytes: '0xae37229d0e5779022b31b0ab9c539b02eb9c05659b2d59b3d7ce9c667ae1f3b1' }, + poolId: '0xae37229d0e5779022b31b0ab9c539b02eb9c05659b2d59b3d7ce9c667ae1f3b1', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -721,12 +655,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x3be9dcf0bc43471220a4529c206191b213244ac2f0e16ac40df41cca3ce98122' } }, + id: { id: '0x3be9dcf0bc43471220a4529c206191b213244ac2f0e16ac40df41cca3ce98122' }, stakedIota: { id: { - id: { bytes: '0x33f5d6b77caa9dcef34bd6ed9b4f0510f225485e6bb54f992877fa85fd984cbd' }, + id: '0x33f5d6b77caa9dcef34bd6ed9b4f0510f225485e6bb54f992877fa85fd984cbd', }, - poolId: { bytes: '0xddd255ac76d01579d2d873cc0b0548ad58a11c18ac41c75c03aa0339890ef6ac' }, + poolId: '0xddd255ac76d01579d2d873cc0b0548ad58a11c18ac41c75c03aa0339890ef6ac', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -734,12 +668,12 @@ export const MOCKED_VESTING_TIMELOCKED_STAKED_OBJECTS: TimelockedStakedIota[] = label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x27838c3896b664b7dcc71a98f1dfda1fbbcb1383d60118da1d7fb938ebe4b8f1' } }, + id: { id: '0x27838c3896b664b7dcc71a98f1dfda1fbbcb1383d60118da1d7fb938ebe4b8f1' }, stakedIota: { id: { - id: { bytes: '0x305a9dd458d67124ffc61c8be38cd59c7d417b03184f1c23ba19b17e0d2d76d2' }, + id: '0x305a9dd458d67124ffc61c8be38cd59c7d417b03184f1c23ba19b17e0d2d76d2', }, - poolId: { bytes: '0xae37229d0e5779022b31b0ab9c539b02eb9c05659b2d59b3d7ce9c667ae1f3b1' }, + poolId: '0xae37229d0e5779022b31b0ab9c539b02eb9c05659b2d59b3d7ce9c667ae1f3b1', stakeActivationEpoch: 5555, principal: { value: 1000 }, }, @@ -753,18 +687,18 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( | TimelockedStakedIota )[] = [ { - id: { id: { bytes: '0x286b2c0317cc9dcfb8cc571c5f6b92c2f69b4d9666580b454291b0946fc3b37b' } }, + id: { id: '0x286b2c0317cc9dcfb8cc571c5f6b92c2f69b4d9666580b454291b0946fc3b37b' }, locked: { value: 589 }, expirationTimestampMs: 1703368800000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xe574e0d2abb35b96f8b3918f5a1fdb66e71733fd7c02dee71abdd5427e9b3431' } }, + id: { id: '0xe574e0d2abb35b96f8b3918f5a1fdb66e71733fd7c02dee71abdd5427e9b3431' }, stakedIota: { id: { - id: { bytes: '0xb417430c07e03845e58fdde3f187acda86aea1e59c2c1dabd0d1d676b4845a75' }, + id: '0xb417430c07e03845e58fdde3f187acda86aea1e59c2c1dabd0d1d676b4845a75', }, - poolId: { bytes: '0x2a0abc81a99e44e3dc9ec656f56cc99e1fdbd76137dd882116ab7281298df6fc' }, + poolId: '0x2a0abc81a99e44e3dc9ec656f56cc99e1fdbd76137dd882116ab7281298df6fc', stakeActivationEpoch: 5555, principal: { value: 411 }, }, @@ -772,30 +706,30 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x38bf384d2dc4b9a5c2584432db3787d3e911231f7115a3b31fa9fd5652220e76' } }, + id: { id: '0x38bf384d2dc4b9a5c2584432db3787d3e911231f7115a3b31fa9fd5652220e76' }, locked: { value: 1000 }, expirationTimestampMs: 1704578400000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xa4c61f4c58fc899a058916bbbd0e9215b1a88c04c360ca92db50ab313974f6b6' } }, + id: { id: '0xa4c61f4c58fc899a058916bbbd0e9215b1a88c04c360ca92db50ab313974f6b6' }, locked: { value: 1000 }, expirationTimestampMs: 1705788000000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x972452318c6bcf35b6a73757866c66af64e6b0284a3cac676ec70ad7c2c6cabe' } }, + id: { id: '0x972452318c6bcf35b6a73757866c66af64e6b0284a3cac676ec70ad7c2c6cabe' }, locked: { value: 144 }, expirationTimestampMs: 1706997600000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x55fb53235e7f7dea2239f4d5e69c8fc85f35e25fac6b76500f51f2a3ea181532' } }, + id: { id: '0x55fb53235e7f7dea2239f4d5e69c8fc85f35e25fac6b76500f51f2a3ea181532' }, stakedIota: { id: { - id: { bytes: '0x7050c4d8a28eb65043c802f603e8c3c5b9af4ad5d061b78c68c914e8b2dfc01e' }, + id: '0x7050c4d8a28eb65043c802f603e8c3c5b9af4ad5d061b78c68c914e8b2dfc01e', }, - poolId: { bytes: '0x2a0abc81a99e44e3dc9ec656f56cc99e1fdbd76137dd882116ab7281298df6fc' }, + poolId: '0x2a0abc81a99e44e3dc9ec656f56cc99e1fdbd76137dd882116ab7281298df6fc', stakeActivationEpoch: 5555, principal: { value: 856 }, }, @@ -803,18 +737,18 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x8be689ee351c1f455e12ea67fe21caf3989a8b029dfe79fa5bf0e47d2eac0f6a' } }, + id: { id: '0x8be689ee351c1f455e12ea67fe21caf3989a8b029dfe79fa5bf0e47d2eac0f6a' }, locked: { value: 7 }, expirationTimestampMs: 1708207200000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x09d4bdbd96e33f5c1e1666302483a967d3d4307048c7620512bcdafbc09f6abc' } }, + id: { id: '0x09d4bdbd96e33f5c1e1666302483a967d3d4307048c7620512bcdafbc09f6abc' }, stakedIota: { id: { - id: { bytes: '0x6eec46a3cae99c4398df87cf3e6ebeb3893e4932e6a5dfa69cfdfe7d842258a0' }, + id: '0x6eec46a3cae99c4398df87cf3e6ebeb3893e4932e6a5dfa69cfdfe7d842258a0', }, - poolId: { bytes: '0x7f61357fa975841cacaa9a5776ea84a8ec8d7d5a7daa0dc7fa8a7c236482af1d' }, + poolId: '0x7f61357fa975841cacaa9a5776ea84a8ec8d7d5a7daa0dc7fa8a7c236482af1d', stakeActivationEpoch: 5555, principal: { value: 993 }, }, @@ -822,30 +756,30 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xd77236288ee66f6e8d677a974efe7a0b0b5c7e6d1154da7601d9a95560186965' } }, + id: { id: '0xd77236288ee66f6e8d677a974efe7a0b0b5c7e6d1154da7601d9a95560186965' }, locked: { value: 1000 }, expirationTimestampMs: 1709416800000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x99fb87d3a7b37bbe08d2634347ecebf11583e840e6a35c58d440b5ff3ab3c7c1' } }, + id: { id: '0x99fb87d3a7b37bbe08d2634347ecebf11583e840e6a35c58d440b5ff3ab3c7c1' }, locked: { value: 1000 }, expirationTimestampMs: 1710626400000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xcc26159c849a70969fc4b8aa4b3f7caabd8fcad107e6523ddfac6df27edea921' } }, + id: { id: '0xcc26159c849a70969fc4b8aa4b3f7caabd8fcad107e6523ddfac6df27edea921' }, locked: { value: 494 }, expirationTimestampMs: 1711836000000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x4722f43ca6088455583c59051d1831f8ba9749c0ae0fc4e476e7a3362c9db928' } }, + id: { id: '0x4722f43ca6088455583c59051d1831f8ba9749c0ae0fc4e476e7a3362c9db928' }, stakedIota: { id: { - id: { bytes: '0xdfd86394269a34a4418fcf2095994fb2952bdc59c483e9f7e43f1dc638d28ae7' }, + id: '0xdfd86394269a34a4418fcf2095994fb2952bdc59c483e9f7e43f1dc638d28ae7', }, - poolId: { bytes: '0x7f61357fa975841cacaa9a5776ea84a8ec8d7d5a7daa0dc7fa8a7c236482af1d' }, + poolId: '0x7f61357fa975841cacaa9a5776ea84a8ec8d7d5a7daa0dc7fa8a7c236482af1d', stakeActivationEpoch: 5555, principal: { value: 506 }, }, @@ -853,30 +787,30 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x479517cc209dc504575993ae9a1691e0a73301d98d63100ea8e5c253c4f79525' } }, + id: { id: '0x479517cc209dc504575993ae9a1691e0a73301d98d63100ea8e5c253c4f79525' }, locked: { value: 1000 }, expirationTimestampMs: 1713045600000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x16f4cd14e15efc95a35c9bd5e8da118fbc144aa77f1c63387e2ea438736af3fe' } }, + id: { id: '0x16f4cd14e15efc95a35c9bd5e8da118fbc144aa77f1c63387e2ea438736af3fe' }, locked: { value: 1000 }, expirationTimestampMs: 1714255200000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xa0924d0c92513ece94b3aa1e827e76d713c8625c1e6c8f0011be6ecfa3df3e76' } }, + id: { id: '0xa0924d0c92513ece94b3aa1e827e76d713c8625c1e6c8f0011be6ecfa3df3e76' }, locked: { value: 711 }, expirationTimestampMs: 1715464800000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x8670f828d3b82be680edee8f8cf9823ca9485e54f8728487d0aa0d367f389ab1' } }, + id: { id: '0x8670f828d3b82be680edee8f8cf9823ca9485e54f8728487d0aa0d367f389ab1' }, stakedIota: { id: { - id: { bytes: '0xff806527381322c9d016230b9d75f5638346aab72e1f5e291b3eb5499122934c' }, + id: '0xff806527381322c9d016230b9d75f5638346aab72e1f5e291b3eb5499122934c', }, - poolId: { bytes: '0x7f61357fa975841cacaa9a5776ea84a8ec8d7d5a7daa0dc7fa8a7c236482af1d' }, + poolId: '0x7f61357fa975841cacaa9a5776ea84a8ec8d7d5a7daa0dc7fa8a7c236482af1d', stakeActivationEpoch: 5555, principal: { value: 289 }, }, @@ -884,18 +818,18 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x46e385d485df4581ae373c1ce623b4f513bf0c35ee2cc9d10f8410a3b4ee2cb6' } }, + id: { id: '0x46e385d485df4581ae373c1ce623b4f513bf0c35ee2cc9d10f8410a3b4ee2cb6' }, locked: { value: 130 }, expirationTimestampMs: 1716674400000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x197ac9f7b5d0acd93159083ec755916ce3e5ade5cbedf7a49107c8603808069f' } }, + id: { id: '0x197ac9f7b5d0acd93159083ec755916ce3e5ade5cbedf7a49107c8603808069f' }, stakedIota: { id: { - id: { bytes: '0x69d6a5af46a3bf0bce5a97d6a5c5a120293afe2031df08b787c1e0c89eef54e3' }, + id: '0x69d6a5af46a3bf0bce5a97d6a5c5a120293afe2031df08b787c1e0c89eef54e3', }, - poolId: { bytes: '0xcd707a1c55ced6a8ed6d3fc1893a4578b5d840e4555200bf154978619b5599a8' }, + poolId: '0xcd707a1c55ced6a8ed6d3fc1893a4578b5d840e4555200bf154978619b5599a8', stakeActivationEpoch: 5555, principal: { value: 870 }, }, @@ -903,24 +837,24 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x7c056b2af944745852e505086cc793b72e3325ccf7c3c71ec0544f7d49925621' } }, + id: { id: '0x7c056b2af944745852e505086cc793b72e3325ccf7c3c71ec0544f7d49925621' }, locked: { value: 1000 }, expirationTimestampMs: 1717884000000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xac214e255e243a7e1aceef94ae7709f7200f7fccbefef67497c59aac4b95b6f8' } }, + id: { id: '0xac214e255e243a7e1aceef94ae7709f7200f7fccbefef67497c59aac4b95b6f8' }, locked: { value: 868 }, expirationTimestampMs: 1719093600000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xdce49e0aae09e8643dc997a99bfa7a927247fa2be4de350a970244a8d91ff672' } }, + id: { id: '0xdce49e0aae09e8643dc997a99bfa7a927247fa2be4de350a970244a8d91ff672' }, stakedIota: { id: { - id: { bytes: '0x8d1fa6d30174054a212edf409026a4c9427987361103f7b74797515f860ed763' }, + id: '0x8d1fa6d30174054a212edf409026a4c9427987361103f7b74797515f860ed763', }, - poolId: { bytes: '0x2a0abc81a99e44e3dc9ec656f56cc99e1fdbd76137dd882116ab7281298df6fc' }, + poolId: '0x2a0abc81a99e44e3dc9ec656f56cc99e1fdbd76137dd882116ab7281298df6fc', stakeActivationEpoch: 5555, principal: { value: 132 }, }, @@ -928,30 +862,30 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x92bcfa0735940ff8682abe71b0d431712a3ff921b94f1c43b21f51c124e17efd' } }, + id: { id: '0x92bcfa0735940ff8682abe71b0d431712a3ff921b94f1c43b21f51c124e17efd' }, locked: { value: 1000 }, expirationTimestampMs: 1720303200000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x15a8796a100bbb71a2fe95d987b3b961f1980293673ea19a320d42ae0dd557c6' } }, + id: { id: '0x15a8796a100bbb71a2fe95d987b3b961f1980293673ea19a320d42ae0dd557c6' }, locked: { value: 1000 }, expirationTimestampMs: 1721512800000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x3ddcf7812912bdf7d1c7d015ea418c0734698c6ff5fa0a6d737103709539effc' } }, + id: { id: '0x3ddcf7812912bdf7d1c7d015ea418c0734698c6ff5fa0a6d737103709539effc' }, locked: { value: 103 }, expirationTimestampMs: 1722722400000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x1cb238a7c0dddf9ffae6857821518397d68662826ee8361de16d6caece41f1ab' } }, + id: { id: '0x1cb238a7c0dddf9ffae6857821518397d68662826ee8361de16d6caece41f1ab' }, stakedIota: { id: { - id: { bytes: '0x69dfc02157f9033d71677586fbb78c091a9c885dc93cc6f3b312c0aee94c64d3' }, + id: '0x69dfc02157f9033d71677586fbb78c091a9c885dc93cc6f3b312c0aee94c64d3', }, - poolId: { bytes: '0x5f71be4051e4c0dc71e97c35e6b76228b3b5ef081eea6ac94eef895c461754aa' }, + poolId: '0x5f71be4051e4c0dc71e97c35e6b76228b3b5ef081eea6ac94eef895c461754aa', stakeActivationEpoch: 5555, principal: { value: 897 }, }, @@ -959,18 +893,18 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x84960f357289ecf9b81ced44bc5d80b1868b6d3816183a3b56b8690425a4bfa3' } }, + id: { id: '0x84960f357289ecf9b81ced44bc5d80b1868b6d3816183a3b56b8690425a4bfa3' }, locked: { value: 299 }, expirationTimestampMs: 1723932000000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x53f54d864faa6287d17a53b806bc3f2127d8b32e62303dd6d729c2809f715336' } }, + id: { id: '0x53f54d864faa6287d17a53b806bc3f2127d8b32e62303dd6d729c2809f715336' }, stakedIota: { id: { - id: { bytes: '0xdc88e1f7c5323a0f7009a1cde781e4e61a375400e7a390c88886d8cd55169d5d' }, + id: '0xdc88e1f7c5323a0f7009a1cde781e4e61a375400e7a390c88886d8cd55169d5d', }, - poolId: { bytes: '0x7f61357fa975841cacaa9a5776ea84a8ec8d7d5a7daa0dc7fa8a7c236482af1d' }, + poolId: '0x7f61357fa975841cacaa9a5776ea84a8ec8d7d5a7daa0dc7fa8a7c236482af1d', stakeActivationEpoch: 5555, principal: { value: 701 }, }, @@ -978,18 +912,18 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xba31794b7a1dbf11975b08e571fa07346b546678e8460f88d87d55ddba040478' } }, + id: { id: '0xba31794b7a1dbf11975b08e571fa07346b546678e8460f88d87d55ddba040478' }, locked: { value: 500 }, expirationTimestampMs: 1725141600000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x17693a56211258fcd5a994a007704fdd9967b52851451b46d6ba330812a5cc3f' } }, + id: { id: '0x17693a56211258fcd5a994a007704fdd9967b52851451b46d6ba330812a5cc3f' }, stakedIota: { id: { - id: { bytes: '0xbe72eb343db6325370586436a4dfc5e248bb009fd93651fc574da4879ee7041d' }, + id: '0xbe72eb343db6325370586436a4dfc5e248bb009fd93651fc574da4879ee7041d', }, - poolId: { bytes: '0xcd707a1c55ced6a8ed6d3fc1893a4578b5d840e4555200bf154978619b5599a8' }, + poolId: '0xcd707a1c55ced6a8ed6d3fc1893a4578b5d840e4555200bf154978619b5599a8', stakeActivationEpoch: 5555, principal: { value: 500 }, }, @@ -997,36 +931,36 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x10e6438bff39079e4518dcb1a87ba95ca65c287b593a0bf9079dabdf77d6233d' } }, + id: { id: '0x10e6438bff39079e4518dcb1a87ba95ca65c287b593a0bf9079dabdf77d6233d' }, locked: { value: 1000 }, expirationTimestampMs: 1726351200000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x8ab5eff4f36b1ba0d99624ce8285362784e9bcb4ab18e7553ed9f74d1d521fce' } }, + id: { id: '0x8ab5eff4f36b1ba0d99624ce8285362784e9bcb4ab18e7553ed9f74d1d521fce' }, locked: { value: 1000 }, expirationTimestampMs: 1727560800000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x72d7f86677cf4fcc7397a9f62af722a7290e072150f457f60d0548d7b712c22c' } }, + id: { id: '0x72d7f86677cf4fcc7397a9f62af722a7290e072150f457f60d0548d7b712c22c' }, locked: { value: 1000 }, expirationTimestampMs: 1728770400000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x1672412d036ad1610f8f8c39b71babfd0a0f0a03d3c8b637635d327842132acd' } }, + id: { id: '0x1672412d036ad1610f8f8c39b71babfd0a0f0a03d3c8b637635d327842132acd' }, locked: { value: 347 }, expirationTimestampMs: 1729980000000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x8327bbe04ac8dc866d6f18c98a20ee3137c26ccc72b62effca73402e055a57d7' } }, + id: { id: '0x8327bbe04ac8dc866d6f18c98a20ee3137c26ccc72b62effca73402e055a57d7' }, stakedIota: { id: { - id: { bytes: '0x993b8db7d52e20e24fee279d0effd380f9731c1d07bea6abac545357ca73d316' }, + id: '0x993b8db7d52e20e24fee279d0effd380f9731c1d07bea6abac545357ca73d316', }, - poolId: { bytes: '0x2a0abc81a99e44e3dc9ec656f56cc99e1fdbd76137dd882116ab7281298df6fc' }, + poolId: '0x2a0abc81a99e44e3dc9ec656f56cc99e1fdbd76137dd882116ab7281298df6fc', stakeActivationEpoch: 5555, principal: { value: 653 }, }, @@ -1034,18 +968,18 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x1de6fd9da4de9ac869f728060b659c9fb170669213c476adc6763a03c25809c5' } }, + id: { id: '0x1de6fd9da4de9ac869f728060b659c9fb170669213c476adc6763a03c25809c5' }, locked: { value: 792 }, expirationTimestampMs: 1731189600000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xd7ad38945ecb7ca6eeaadbf321703b263b4f6ef714e211d00b2aa8fe241fce0c' } }, + id: { id: '0xd7ad38945ecb7ca6eeaadbf321703b263b4f6ef714e211d00b2aa8fe241fce0c' }, stakedIota: { id: { - id: { bytes: '0x850dc90cacec45a555a05f9be3c1b3a828d43bfd7fcaf7c8789319d1369832af' }, + id: '0x850dc90cacec45a555a05f9be3c1b3a828d43bfd7fcaf7c8789319d1369832af', }, - poolId: { bytes: '0xcd707a1c55ced6a8ed6d3fc1893a4578b5d840e4555200bf154978619b5599a8' }, + poolId: '0xcd707a1c55ced6a8ed6d3fc1893a4578b5d840e4555200bf154978619b5599a8', stakeActivationEpoch: 5555, principal: { value: 208 }, }, @@ -1053,18 +987,18 @@ export const MOCKED_VESTING_TIMELOCKED_AND_TIMELOCK_STAKED_OBJECTS: ( label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0x900469a81978d06246234dcf508ff1180b1521184373b87b40c83ae42466b2dc' } }, + id: { id: '0x900469a81978d06246234dcf508ff1180b1521184373b87b40c83ae42466b2dc' }, locked: { value: 49 }, expirationTimestampMs: 1732399200000, label: SUPPLY_INCREASE_VESTING_LABEL, }, { - id: { id: { bytes: '0xfae93493826f45ac789f3319316aa55f1a707c171c9edfae5c12b845713163d1' } }, + id: { id: '0xfae93493826f45ac789f3319316aa55f1a707c171c9edfae5c12b845713163d1' }, stakedIota: { id: { - id: { bytes: '0xd194fa4d9a909baec026d8d67e33a85a9d36921df7a47288ed3e8a5eae9b8b9c' }, + id: '0xd194fa4d9a909baec026d8d67e33a85a9d36921df7a47288ed3e8a5eae9b8b9c', }, - poolId: { bytes: '0x5f71be4051e4c0dc71e97c35e6b76228b3b5ef081eea6ac94eef895c461754aa' }, + poolId: '0x5f71be4051e4c0dc71e97c35e6b76228b3b5ef081eea6ac94eef895c461754aa', stakeActivationEpoch: 5555, principal: { value: 951 }, }, diff --git a/apps/wallet-dashboard/lib/interfaces/vesting.interface.ts b/apps/wallet-dashboard/lib/interfaces/vesting.interface.ts index 3e0157d8e36..4d2cf7e804d 100644 --- a/apps/wallet-dashboard/lib/interfaces/vesting.interface.ts +++ b/apps/wallet-dashboard/lib/interfaces/vesting.interface.ts @@ -1,12 +1,8 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -export interface ID { - bytes: string; -} - export interface UID { - id: ID; + id: string; } export interface Balance { @@ -22,7 +18,7 @@ export interface Timelocked { export interface StakedIota { id: UID; - poolId: ID; + poolId: string; stakeActivationEpoch: number; principal: Balance; } diff --git a/apps/wallet-dashboard/lib/utils/timelock.ts b/apps/wallet-dashboard/lib/utils/timelock.ts index 581bff8f397..08e08424ae2 100644 --- a/apps/wallet-dashboard/lib/utils/timelock.ts +++ b/apps/wallet-dashboard/lib/utils/timelock.ts @@ -1,7 +1,7 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import { SUPPLY_INCREASE_VESTING_LABEL } from '../constants'; +import { SUPPLY_INCREASE_VESTING_LABEL, TESTING_SUPPLY_INCREASE_VESTING_LABEL } from '../constants'; import { Timelocked, TimelockedStakedIota } from '../interfaces'; export function isTimelockedStakedIota( @@ -17,5 +17,8 @@ export function isTimelocked(obj: Timelocked | TimelockedStakedIota): obj is Tim } export function isVesting(obj: Timelocked | TimelockedStakedIota): boolean { - return obj.label === SUPPLY_INCREASE_VESTING_LABEL; + return ( + obj.label === SUPPLY_INCREASE_VESTING_LABEL || + obj.label === TESTING_SUPPLY_INCREASE_VESTING_LABEL + ); } diff --git a/apps/wallet-dashboard/lib/utils/vesting/vesting.ts b/apps/wallet-dashboard/lib/utils/vesting/vesting.ts index 95c24b4f1b8..5e0fc1ee279 100644 --- a/apps/wallet-dashboard/lib/utils/vesting/vesting.ts +++ b/apps/wallet-dashboard/lib/utils/vesting/vesting.ts @@ -1,6 +1,7 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 +import { IotaObjectData } from '@iota/iota.js/client'; import { SUPPLY_INCREASE_INVESTOR_VESTING_DURATION, SUPPLY_INCREASE_STAKER_VESTING_DURATION, @@ -15,6 +16,7 @@ import { SupplyIncreaseVestingPortfolio, Timelocked, TimelockedStakedIota, + UID, VestingOverview, } from '../../interfaces'; import { isTimelocked, isTimelockedStakedIota, isVesting } from '../timelock'; @@ -172,3 +174,28 @@ export function getSupplyIncreaseVestingPayoutsCount(userType: SupplyIncreaseUse return SUPPLY_INCREASE_VESTING_PAYOUTS_IN_1_YEAR * vestingDuration; } + +export function mapTimelockObjects(iotaObjects: IotaObjectData[]): Timelocked[] { + return iotaObjects.map((iotaObject) => { + if (!iotaObject?.content?.dataType || iotaObject.content.dataType !== 'moveObject') { + return { + id: { id: '' }, + locked: { value: 0 }, + expirationTimestampMs: 0, + label: '0', + }; + } + const fields = iotaObject.content.fields as unknown as { + id: UID; + locked: string; + expiration_timestamp_ms: string; + label: string; + }; + return { + id: fields.id, + locked: { value: Number(fields.locked) }, + expirationTimestampMs: Number(fields.expiration_timestamp_ms), + label: fields.label, + }; + }); +} From 292311bd26645d3beaeb996e4163cd7f0019eeea Mon Sep 17 00:00:00 2001 From: cpl121 Date: Mon, 29 Jul 2024 17:30:36 +0200 Subject: [PATCH 05/68] fix(wallet-dashboard): remove testing constants --- apps/core/src/constants/index.ts | 2 +- apps/core/src/constants/packages.constants.ts | 5 ----- apps/wallet-dashboard/lib/constants/vesting.constants.ts | 3 --- 3 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 apps/core/src/constants/packages.constants.ts diff --git a/apps/core/src/constants/index.ts b/apps/core/src/constants/index.ts index 719fddeb388..5cd44a65598 100644 --- a/apps/core/src/constants/index.ts +++ b/apps/core/src/constants/index.ts @@ -4,4 +4,4 @@ export * from './staking.constants'; export * from './recognizedPackages.constants'; export * from './coins.constants'; -export * from './packages.constants'; +export * from './timelock.constants'; diff --git a/apps/core/src/constants/packages.constants.ts b/apps/core/src/constants/packages.constants.ts deleted file mode 100644 index a1b6caa943f..00000000000 --- a/apps/core/src/constants/packages.constants.ts +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright (c) 2024 IOTA Stiftung -// SPDX-License-Identifier: Apache-2.0 - -export const TIMELOCK_PACKAGE_ID = - '0xa9ed4baf8210bda422feaf348dd5dd730618bf736372871bfcf4d755e942dd61'; // TODO: modify with real package https://github.com/iotaledger/iota/issues/1219 diff --git a/apps/wallet-dashboard/lib/constants/vesting.constants.ts b/apps/wallet-dashboard/lib/constants/vesting.constants.ts index dd6459e9434..976f74f8356 100644 --- a/apps/wallet-dashboard/lib/constants/vesting.constants.ts +++ b/apps/wallet-dashboard/lib/constants/vesting.constants.ts @@ -18,9 +18,6 @@ export const SUPPLY_INCREASE_INVESTOR_VESTING_DURATION = 4; // Years export const SUPPLY_INCREASE_VESTING_LABEL = '000000000000000000000000000000000000000000000000000000000000107a::stardust_upgrade_label::STARDUST_UPGRADE_LABEL'; -export const TESTING_SUPPLY_INCREASE_VESTING_LABEL = - 'a9ed4baf8210bda422feaf348dd5dd730618bf736372871bfcf4d755e942dd61::stardust_upgrade_label::STARDUST_UPGRADE_LABEL'; - export const MOCKED_SUPPLY_INCREASE_VESTING_TIMELOCKED_OBJECTS: Timelocked[] = [ { id: { From 3649cb7af86ee99401551b3db2f891a387da9503 Mon Sep 17 00:00:00 2001 From: cpl121 Date: Mon, 29 Jul 2024 17:31:32 +0200 Subject: [PATCH 06/68] feat(wallet-dashboard): update filter in get timelocked objects --- apps/core/src/constants/timelock.constants.ts | 4 ++++ apps/core/src/hooks/useGetTimelockedObjects.ts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 apps/core/src/constants/timelock.constants.ts diff --git a/apps/core/src/constants/timelock.constants.ts b/apps/core/src/constants/timelock.constants.ts new file mode 100644 index 00000000000..1d7fb7fb44c --- /dev/null +++ b/apps/core/src/constants/timelock.constants.ts @@ -0,0 +1,4 @@ +// Copyright (c) 2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + +export const TIMELOCK_TYPE = '0x2::timelock::TimeLock<0x2::balance::Balance<0x2::iota::IOTA>>'; diff --git a/apps/core/src/hooks/useGetTimelockedObjects.ts b/apps/core/src/hooks/useGetTimelockedObjects.ts index 16719e816b2..4d35d1507fb 100644 --- a/apps/core/src/hooks/useGetTimelockedObjects.ts +++ b/apps/core/src/hooks/useGetTimelockedObjects.ts @@ -4,14 +4,14 @@ import { useIotaClient } from '@iota/dapp-kit'; import { PaginatedObjectsResponse, type IotaObjectDataFilter } from '@iota/iota.js/client'; import { useInfiniteQuery } from '@tanstack/react-query'; -import { TIMELOCK_PACKAGE_ID } from '../constants'; +import { TIMELOCK_TYPE } from '../constants'; const MAX_OBJECTS_PER_REQ = 6; export function useGetTimelockedObjects(address: string, maxObjectRequests = MAX_OBJECTS_PER_REQ) { const client = useIotaClient(); const filter: IotaObjectDataFilter = { - Package: TIMELOCK_PACKAGE_ID, + StructType: TIMELOCK_TYPE, }; return useInfiniteQuery({ initialPageParam: null, From eb261a1dc4d9e40e7f0af51b6a31f663cd2e2a83 Mon Sep 17 00:00:00 2001 From: cpl121 Date: Tue, 30 Jul 2024 11:00:32 +0200 Subject: [PATCH 07/68] fix(wallet-dashboard): remove TESTING_SUPPLY_INCREASE_VESTING_LABEL reference --- apps/wallet-dashboard/lib/utils/timelock.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/wallet-dashboard/lib/utils/timelock.ts b/apps/wallet-dashboard/lib/utils/timelock.ts index 08e08424ae2..581bff8f397 100644 --- a/apps/wallet-dashboard/lib/utils/timelock.ts +++ b/apps/wallet-dashboard/lib/utils/timelock.ts @@ -1,7 +1,7 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import { SUPPLY_INCREASE_VESTING_LABEL, TESTING_SUPPLY_INCREASE_VESTING_LABEL } from '../constants'; +import { SUPPLY_INCREASE_VESTING_LABEL } from '../constants'; import { Timelocked, TimelockedStakedIota } from '../interfaces'; export function isTimelockedStakedIota( @@ -17,8 +17,5 @@ export function isTimelocked(obj: Timelocked | TimelockedStakedIota): obj is Tim } export function isVesting(obj: Timelocked | TimelockedStakedIota): boolean { - return ( - obj.label === SUPPLY_INCREASE_VESTING_LABEL || - obj.label === TESTING_SUPPLY_INCREASE_VESTING_LABEL - ); + return obj.label === SUPPLY_INCREASE_VESTING_LABEL; } From 8d22b5bcf49b6e35983db088f56be7e1a59bc4d4 Mon Sep 17 00:00:00 2001 From: cpl121 Date: Tue, 30 Jul 2024 12:25:30 +0200 Subject: [PATCH 08/68] feat(wallet-dashboard): hook collect(unwrap) feature to dashboard WIP --- apps/core/src/hooks/index.ts | 1 + .../useCollectUnlockTimelockedObjects.ts | 10 +++++++ .../app/dashboard/vesting/page.tsx | 26 ++++++++++++++++++- 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 apps/core/src/hooks/useCollectUnlockTimelockedObjects.ts diff --git a/apps/core/src/hooks/index.ts b/apps/core/src/hooks/index.ts index 141953eecb0..4b7bc4a1786 100644 --- a/apps/core/src/hooks/index.ts +++ b/apps/core/src/hooks/index.ts @@ -35,5 +35,6 @@ export * from './useSortedCoinsByCategories'; export * from './useGetNFTMeta'; export * from './useIotaAddressValidation'; export * from './useGetAllTimelockedObjects'; +export * from './useCollectUnlockTimelockedObjects'; export * from './stake'; diff --git a/apps/core/src/hooks/useCollectUnlockTimelockedObjects.ts b/apps/core/src/hooks/useCollectUnlockTimelockedObjects.ts new file mode 100644 index 00000000000..f185a38465f --- /dev/null +++ b/apps/core/src/hooks/useCollectUnlockTimelockedObjects.ts @@ -0,0 +1,10 @@ +// Copyright (c) 2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + +import { useCallback } from 'react'; + +export function useCollectUnlockTimelockedObjects(address: string) { + return useCallback(() => { + console.log('Collecting!', address); + }, []); +} diff --git a/apps/wallet-dashboard/app/dashboard/vesting/page.tsx b/apps/wallet-dashboard/app/dashboard/vesting/page.tsx index f18c1701b34..7726fac70ef 100644 --- a/apps/wallet-dashboard/app/dashboard/vesting/page.tsx +++ b/apps/wallet-dashboard/app/dashboard/vesting/page.tsx @@ -3,16 +3,30 @@ 'use client'; +import { Button } from '@/components'; import { getVestingOverview, mapTimelockObjects } from '@/lib/utils'; -import { useGetAllTimelockedObjects } from '@iota/core'; +import { useCollectUnlockTimelockedObjects, useGetAllTimelockedObjects } from '@iota/core'; import { useCurrentAccount } from '@iota/dapp-kit'; function VestingDashboardPage(): JSX.Element { const account = useCurrentAccount(); const { data: timelockedObjects } = useGetAllTimelockedObjects(account?.address || ''); + const collect = useCollectUnlockTimelockedObjects(account?.address || ''); const timelockedMapped = mapTimelockObjects(timelockedObjects || []); const vestingSchedule = getVestingOverview(timelockedMapped); + const handleCollect = () => { + // Update Date.now() when #1217 is merged + const unlockTimelockedObjects = timelockedMapped?.filter( + (timelockedObject) => timelockedObject.expirationTimestampMs <= Date.now(), + ); + console.log('unlockTimelockedObjects', unlockTimelockedObjects); + collect(); + }; + const handleStake = () => { + console.log('Stake'); + }; + return (

VESTING

@@ -44,6 +58,16 @@ function VestingDashboardPage(): JSX.Element { {vestingSchedule.availableStaking}
+ {account?.address && ( +
+ {vestingSchedule.availableClaiming && ( + + )} + {vestingSchedule.availableStaking && ( + + )} +
+ )} ); } From 0a5debf2a500b666a6e11e1b5b098b8e30138676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20Alvarez?= Date: Wed, 31 Jul 2024 17:11:29 +0200 Subject: [PATCH 09/68] refactor: revert prettier changes coming from last merge --- apps/wallet/src/ui/app/components/BadgeLabel.tsx | 2 +- apps/wallet/src/ui/app/components/DAppInfoCard.tsx | 4 ++-- .../src/ui/app/components/HideShowDisplayBox.tsx | 2 +- apps/wallet/src/ui/app/components/SummaryCard.tsx | 6 +++--- .../ui/app/components/accounts/AccountBalanceItem.tsx | 2 +- .../src/ui/app/components/accounts/AccountIcon.tsx | 2 +- .../src/ui/app/components/accounts/AccountItem.tsx | 2 +- .../accounts/AccountItemApproveConnection.tsx | 2 +- .../src/ui/app/components/accounts/AccountsList.tsx | 2 +- .../ui/app/components/accounts/EditableAccountName.tsx | 2 +- .../components/accounts/ImportRecoveryPhraseForm.tsx | 2 +- .../ui/app/components/accounts/LockUnlockButton.tsx | 2 +- .../app/components/accounts/RecoverAccountsGroup.tsx | 2 +- .../ui/app/components/active-coins-card/CoinItem.tsx | 2 +- .../src/ui/app/components/address-input/index.tsx | 2 +- apps/wallet/src/ui/app/components/coin-icon/index.tsx | 2 +- .../wallet/src/ui/app/components/iota-apps/IotaApp.tsx | 6 +++--- apps/wallet/src/ui/app/components/iota-apps/index.tsx | 2 +- .../ui/app/components/menu/content/MenuListItem.tsx | 8 ++++---- .../components/menu/content/WalletSettingsMenuList.tsx | 2 +- .../src/ui/app/components/nft-display/NftImage.tsx | 2 +- .../wallet/src/ui/app/components/nft-display/index.tsx | 4 ++-- .../components/receipt-card/SponsoredTxnGasSummary.tsx | 2 +- .../ui/app/components/receipt-card/StakeTxnCard.tsx | 4 ++-- .../ui/app/components/receipt-card/TxnGasSummary.tsx | 2 +- .../ui/app/components/receipt-card/UnstakeTxnCard.tsx | 4 ++-- .../components/transactions-card/NoActivityCard.tsx | 2 +- .../ui/app/components/user-approve-container/index.tsx | 6 +++--- .../ui/app/pages/accounts/ImportLedgerAccountsPage.tsx | 8 ++++---- .../src/ui/app/pages/accounts/ImportPassphrasePage.tsx | 2 +- .../src/ui/app/pages/accounts/ImportPrivateKeyPage.tsx | 2 +- .../src/ui/app/pages/accounts/ImportSeedPage.tsx | 2 +- .../src/ui/app/pages/accounts/ProtectAccountPage.tsx | 2 +- apps/wallet/src/ui/app/pages/accounts/WelcomePage.tsx | 2 +- .../accounts/forgot-password/ForgotPasswordPage.tsx | 2 +- .../pages/accounts/forgot-password/RecoverManyPage.tsx | 4 ++-- .../accounts/forgot-password/ResetWarningPage.tsx | 2 +- .../approval-request/transaction-request/GasFees.tsx | 2 +- .../transaction-request/SummaryCard.tsx | 2 +- .../transaction-request/TransactionDetails/Command.tsx | 2 +- .../transaction-request/TransactionDetails/index.tsx | 2 +- .../pages/home/hidden-assets/HiddenAssetsProvider.tsx | 4 ++-- .../src/ui/app/pages/home/hidden-assets/index.tsx | 2 +- .../src/ui/app/pages/home/nfts/AssetsOptionsMenu.tsx | 4 ++-- .../src/ui/app/pages/home/nfts/NonVisualAssets.tsx | 2 +- .../wallet/src/ui/app/pages/home/nfts/VisualAssets.tsx | 2 +- .../src/ui/app/pages/home/tokens/TokensDetails.tsx | 8 ++++---- .../src/ui/app/pages/home/transactions/index.tsx | 2 +- .../app/pages/home/transfer-coin/PreviewTransfer.tsx | 4 ++-- apps/wallet/src/ui/app/pages/restricted/index.tsx | 2 +- apps/wallet/src/ui/app/shared/Dialog.tsx | 2 +- apps/wallet/src/ui/app/shared/InputWithAction.tsx | 2 +- apps/wallet/src/ui/app/shared/LargeButton.tsx | 4 ++-- apps/wallet/src/ui/app/shared/card-layout/index.tsx | 4 ++-- apps/wallet/src/ui/app/shared/card/index.tsx | 4 ++-- apps/wallet/src/ui/app/shared/collapse/index.tsx | 2 +- apps/wallet/src/ui/app/shared/delegated-apy/index.tsx | 2 +- .../src/ui/app/shared/forms/controls/Checkbox.tsx | 4 ++-- apps/wallet/src/ui/app/shared/forms/controls/Input.tsx | 2 +- .../wallet/src/ui/app/shared/forms/controls/Select.tsx | 6 +++--- .../src/ui/app/shared/forms/controls/TextArea.tsx | 2 +- apps/wallet/src/ui/app/shared/input/password/index.tsx | 2 +- apps/wallet/src/ui/app/shared/tooltip/index.tsx | 2 +- .../src/ui/app/shared/transaction-summary/Card.tsx | 2 +- .../transaction-summary/cards/BalanceChanges.tsx | 6 +++--- .../shared/transaction-summary/cards/GasSummary.tsx | 4 ++-- .../shared/transaction-summary/cards/ObjectChanges.tsx | 4 ++-- .../shared/transaction-summary/cards/SummaryCard.tsx | 2 +- .../src/ui/app/shared/transaction-summary/index.tsx | 2 +- .../staking/delegation-detail/DelegationDetailCard.tsx | 2 +- apps/wallet/src/ui/app/staking/stake/StakeForm.tsx | 10 +++++----- .../src/ui/app/staking/stake/ValidatorFormDetail.tsx | 4 ++-- .../ui/app/staking/validators/SelectValidatorCard.tsx | 8 ++++---- .../ui/app/staking/validators/ValidatorListItem.tsx | 2 +- .../src/ui/app/staking/validators/ValidatorsCard.tsx | 8 ++++---- 75 files changed, 119 insertions(+), 119 deletions(-) diff --git a/apps/wallet/src/ui/app/components/BadgeLabel.tsx b/apps/wallet/src/ui/app/components/BadgeLabel.tsx index 042be703b92..bc706296149 100644 --- a/apps/wallet/src/ui/app/components/BadgeLabel.tsx +++ b/apps/wallet/src/ui/app/components/BadgeLabel.tsx @@ -11,7 +11,7 @@ interface BadgeLabelProps { export function BadgeLabel({ label }: BadgeLabelProps) { return ( -
+
{label} diff --git a/apps/wallet/src/ui/app/components/DAppInfoCard.tsx b/apps/wallet/src/ui/app/components/DAppInfoCard.tsx index bb77c7bb8fd..aab81deed46 100644 --- a/apps/wallet/src/ui/app/components/DAppInfoCard.tsx +++ b/apps/wallet/src/ui/app/components/DAppInfoCard.tsx @@ -38,8 +38,8 @@ export function DAppInfoCard({ const { unlockAccount, lockAccount, isPending, accountToUnlock } = useUnlockAccount(); return ( -
-
+
+
{iconUrl ? {name} : null}
diff --git a/apps/wallet/src/ui/app/components/HideShowDisplayBox.tsx b/apps/wallet/src/ui/app/components/HideShowDisplayBox.tsx index 7988de6ab6c..eff9ace3fe7 100644 --- a/apps/wallet/src/ui/app/components/HideShowDisplayBox.tsx +++ b/apps/wallet/src/ui/app/components/HideShowDisplayBox.tsx @@ -55,7 +55,7 @@ export function HideShowDisplayBox({ }; }, [valueHidden]); return ( -
+
{valueHidden ? null : ( diff --git a/apps/wallet/src/ui/app/components/SummaryCard.tsx b/apps/wallet/src/ui/app/components/SummaryCard.tsx index 7673367450a..debc78d3724 100644 --- a/apps/wallet/src/ui/app/components/SummaryCard.tsx +++ b/apps/wallet/src/ui/app/components/SummaryCard.tsx @@ -34,7 +34,7 @@ export function SummaryCard({ )} > {header ? ( -
+
{header} @@ -42,7 +42,7 @@ export function SummaryCard({ ) : null}
{footer ? ( -
+
{footer}
) : null} diff --git a/apps/wallet/src/ui/app/components/accounts/AccountBalanceItem.tsx b/apps/wallet/src/ui/app/components/accounts/AccountBalanceItem.tsx index da74e70fd9c..6ffc864ac6d 100644 --- a/apps/wallet/src/ui/app/components/accounts/AccountBalanceItem.tsx +++ b/apps/wallet/src/ui/app/components/accounts/AccountBalanceItem.tsx @@ -26,7 +26,7 @@ export function AccountBalanceItem({ account }: AccountBalanceItemProps): JSX.El const [formatted, symbol] = useFormatCoin(BigInt(totalBalance), coinType); return ( -
+
diff --git a/apps/wallet/src/ui/app/components/accounts/AccountIcon.tsx b/apps/wallet/src/ui/app/components/accounts/AccountIcon.tsx index 42e131f3b6b..eaa4a8ddb95 100644 --- a/apps/wallet/src/ui/app/components/accounts/AccountIcon.tsx +++ b/apps/wallet/src/ui/app/components/accounts/AccountIcon.tsx @@ -7,7 +7,7 @@ import { LedgerLogo17, Iota } from '@iota/icons'; function IotaIcon() { return ( -
+
); diff --git a/apps/wallet/src/ui/app/components/accounts/AccountItem.tsx b/apps/wallet/src/ui/app/components/accounts/AccountItem.tsx index 0569867a6e2..8ee227e3d37 100644 --- a/apps/wallet/src/ui/app/components/accounts/AccountItem.tsx +++ b/apps/wallet/src/ui/app/components/accounts/AccountItem.tsx @@ -67,7 +67,7 @@ export const AccountItem = forwardRef(
+
Accounts diff --git a/apps/wallet/src/ui/app/components/accounts/EditableAccountName.tsx b/apps/wallet/src/ui/app/components/accounts/EditableAccountName.tsx index c773f49e5ae..c2be5bedfee 100644 --- a/apps/wallet/src/ui/app/components/accounts/EditableAccountName.tsx +++ b/apps/wallet/src/ui/app/components/accounts/EditableAccountName.tsx @@ -14,7 +14,7 @@ interface InputProps extends Omit, ' export const Input = forwardRef((props, forwardedRef) => ( diff --git a/apps/wallet/src/ui/app/components/accounts/ImportRecoveryPhraseForm.tsx b/apps/wallet/src/ui/app/components/accounts/ImportRecoveryPhraseForm.tsx index 6f64ebb8ed0..388c8f83815 100644 --- a/apps/wallet/src/ui/app/components/accounts/ImportRecoveryPhraseForm.tsx +++ b/apps/wallet/src/ui/app/components/accounts/ImportRecoveryPhraseForm.tsx @@ -113,7 +113,7 @@ export function ImportRecoveryPhraseForm({ ); })}
-
+
{touchedFields.recoveryPhrase && errors.recoveryPhrase && ( {errors.recoveryPhrase.message} )} diff --git a/apps/wallet/src/ui/app/components/accounts/LockUnlockButton.tsx b/apps/wallet/src/ui/app/components/accounts/LockUnlockButton.tsx index 78a90249bec..5e2b2295c95 100644 --- a/apps/wallet/src/ui/app/components/accounts/LockUnlockButton.tsx +++ b/apps/wallet/src/ui/app/components/accounts/LockUnlockButton.tsx @@ -17,7 +17,7 @@ export function LockUnlockButton({ isLocked, onClick, isLoading }: LockUnlockBut return (