diff --git a/packages/web3-providers/src/SimpleHash/apis/EVM.ts b/packages/web3-providers/src/SimpleHash/apis/EVM.ts index e5b0afa36cd9..00e7dc6e5232 100644 --- a/packages/web3-providers/src/SimpleHash/apis/EVM.ts +++ b/packages/web3-providers/src/SimpleHash/apis/EVM.ts @@ -8,10 +8,7 @@ import { createNextIndicator, NetworkPluginID, } from '@masknet/shared-base' -import { - type NonFungibleAsset, - type NonFungibleCollection, -} from '@masknet/web3-shared-base' +import { type NonFungibleAsset, type NonFungibleCollection } from '@masknet/web3-shared-base' import { ChainId, SchemaType, isValidChainId, isValidAddress } from '@masknet/web3-shared-evm' import { fetchFromSimpleHash, diff --git a/packages/web3-providers/src/SimpleHash/apis/Solana.ts b/packages/web3-providers/src/SimpleHash/apis/Solana.ts index fecd3e98b6ea..a22ede892c16 100644 --- a/packages/web3-providers/src/SimpleHash/apis/Solana.ts +++ b/packages/web3-providers/src/SimpleHash/apis/Solana.ts @@ -80,7 +80,7 @@ class SimpleHashAPI_Solana implements NonFungibleTokenAPI.Provider = {}, + { chainId = ChainId.Mainnet, indicator }: BaseHubOptions = {}, skipScoreCheck = false, ) { const chain = resolveChain(NetworkPluginID.PLUGIN_SOLANA, chainId) @@ -94,9 +94,9 @@ class SimpleHashAPI_Solana implements NonFungibleTokenAPI.Provider(path) - const assets = response.nfts.map((x) => createSolanaNonFungibleAsset(x, skipScoreCheck)).filter(Boolean) as Array< - NonFungibleAsset - > + const assets = response.nfts + .map((x) => createSolanaNonFungibleAsset(x, skipScoreCheck)) + .filter(Boolean) as Array> return createPageable( assets, @@ -122,9 +122,9 @@ class SimpleHashAPI_Solana implements NonFungibleTokenAPI.Provider(path) - const assets = response.nfts.map((x) => createSolanaNonFungibleAsset(x, skipScoreCheck)).filter(Boolean) as Array< - NonFungibleAsset - > + const assets = response.nfts + .map((x) => createSolanaNonFungibleAsset(x, skipScoreCheck)) + .filter(Boolean) as Array> return createPageable( assets, diff --git a/packages/web3-providers/src/types/SimpleHash.ts b/packages/web3-providers/src/types/SimpleHash.ts index 7632a8784d48..820ab361b41e 100644 --- a/packages/web3-providers/src/types/SimpleHash.ts +++ b/packages/web3-providers/src/types/SimpleHash.ts @@ -1,7 +1,7 @@ import { type BigNumber } from 'bignumber.js' export namespace SimpleHash { - interface FloorPrice { + export interface FloorPrice { marketplace_id: LiteralUnion<'blur' | 'looksrare' | 'opensea' | 'x2y2'> marketplace_name: LiteralUnion<'Blur' | 'LooksRare' | 'OpenSea' | 'X2Y2'> value: number