From e42b7ca1141b05b348efe4510622b09b24c0277f Mon Sep 17 00:00:00 2001 From: Kieran O'Neill Date: Mon, 30 Sep 2024 16:09:56 +0300 Subject: [PATCH] feat: update the nft indexer for voi mainnet (#332) * feat: add mainnet nft explorers and indexers * feat: update what's new modal --- src/extension/config/networks.ts | 15 +++++++++++++-- .../modals/WhatsNewModal/WhatsNewModal.tsx | 9 ++------- .../NFTNavigatorNFTExplorer.ts | 2 +- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/extension/config/networks.ts b/src/extension/config/networks.ts index b846ee51..a35088e9 100644 --- a/src/extension/config/networks.ts +++ b/src/extension/config/networks.ts @@ -36,7 +36,14 @@ const networks: INetwork[] = [ url: 'https://mainnet-api.voi.nodely.dev', }, ], - arc0072Indexers: [], + arc0072Indexers: [ + new NautilusARC0072Indexer({ + baseURL: 'https://mainnet-idx.nautilus.sh', + }), + new NFTNavigatorARC0072Indexer({ + baseURL: 'https://arc72-voi-mainnet.nftnavigator.xyz', + }), + ], canonicalName: 'Voi', chakraTheme: 'voi', blockExplorers: [ @@ -73,7 +80,11 @@ const networks: INetwork[] = [ type: AssetTypeEnum.Native, verified: true, }, - nftExplorers: [], + nftExplorers: [ + new NFTNavigatorNFTExplorer({ + baseURL: 'https://nftnavigator.xyz', + }), + ], type: NetworkTypeEnum.Stable, }, { diff --git a/src/extension/modals/WhatsNewModal/WhatsNewModal.tsx b/src/extension/modals/WhatsNewModal/WhatsNewModal.tsx index 2a6d0a88..1cb4b102 100644 --- a/src/extension/modals/WhatsNewModal/WhatsNewModal.tsx +++ b/src/extension/modals/WhatsNewModal/WhatsNewModal.tsx @@ -64,13 +64,8 @@ const WhatsNewModal: FC = ({ onClose }) => { const primaryColorScheme = usePrimaryColorScheme(); const subTextColor = useSubTextColor(); // misc - const features = [ - '↕️ Re-order accounts in the sidebar.', - '⭐ Set a primary account.', - ]; - const fixes = [ - 'Add "unlimitedStorage" permission to avoid the storage quota being exceeded.', - ]; + const features = ['🖼️ Add Voi mainnet indexers and explorer.']; + const fixes: string[] = []; // handlers const handleClose = () => { // mark as read diff --git a/src/extension/models/NFTNavigatorNFTExplorer/NFTNavigatorNFTExplorer.ts b/src/extension/models/NFTNavigatorNFTExplorer/NFTNavigatorNFTExplorer.ts index 726b6140..4c1c4afc 100644 --- a/src/extension/models/NFTNavigatorNFTExplorer/NFTNavigatorNFTExplorer.ts +++ b/src/extension/models/NFTNavigatorNFTExplorer/NFTNavigatorNFTExplorer.ts @@ -17,7 +17,7 @@ export default class NFTNavigatorNFTExplorer extends BaseNFTExplorer { super({ baseURL, canonicalName: canonicalName || 'NFT Navigator', - id: id || 'nft-navigator-arc-0072-indexer', + id: id || 'nft-navigator-nft-explorer', }); }