Socket
Socket
Sign inDemoInstall

@audius/fetch-nft

Package Overview
Dependencies
Maintainers
12
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@audius/fetch-nft - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

2

dist/eth/opensea.d.ts
import { OpenSeaCollection, OpenSeaEvent, OpenSeaNft } from './types';
export declare type OpenSeaConfig = {
export type OpenSeaConfig = {
apiEndpoint?: string;

@@ -4,0 +4,0 @@ apiKey?: string;

import { Nullable } from 'utils/typeUtils';
export declare type EthTokenStandard = 'ERC721' | 'ERC1155';
declare type OpenSeaAssetContract = {
export type EthTokenStandard = 'ERC721' | 'ERC1155';
type OpenSeaAssetContract = {
address: Nullable<string>;

@@ -17,3 +17,3 @@ asset_contract_type: string;

};
declare type OpenSeaAssetPerson = {
type OpenSeaAssetPerson = {
user: {

@@ -24,5 +24,5 @@ username: string;

} | null;
declare type OpenSeaAssetOwner = OpenSeaAssetPerson;
declare type OpenSeaAssetCreator = OpenSeaAssetPerson;
export declare type OpenSeaCollection = {
type OpenSeaAssetOwner = OpenSeaAssetPerson;
type OpenSeaAssetCreator = OpenSeaAssetPerson;
export type OpenSeaCollection = {
collection: string;

@@ -33,3 +33,3 @@ name: string;

};
export declare type OpenSeaNftMetadata = {
export type OpenSeaNftMetadata = {
token_id?: string;

@@ -53,3 +53,3 @@ name?: string;

};
export declare type OpenSeaNft = {
export type OpenSeaNft = {
identifier: string;

@@ -66,6 +66,6 @@ collection: string;

};
export declare type OpenSeaNftExtended = OpenSeaNft & OpenSeaNftMetadata & {
export type OpenSeaNftExtended = OpenSeaNft & OpenSeaNftMetadata & {
collectionMetadata?: OpenSeaCollection;
};
export declare type OpenSeaEvent = {
export type OpenSeaEvent = {
id: number;

@@ -78,5 +78,5 @@ event_timestamp: number;

};
export declare type OpenSeaEventExtended = Omit<OpenSeaEvent, 'nft'> & {
export type OpenSeaEventExtended = Omit<OpenSeaEvent, 'nft'> & {
nft: OpenSeaNftExtended;
};
export {};

@@ -38,3 +38,3 @@ import { Metadata } from '@metaplex-foundation/mpl-token-metadata';

enum CollectibleMediaType {
declare enum CollectibleMediaType {
IMAGE = 'IMAGE',

@@ -85,3 +85,3 @@ VIDEO = 'VIDEO',

declare type FetchNFTClientProps = {
type FetchNFTClientProps = {
openSeaConfig?: OpenSeaConfig;

@@ -117,2 +117,2 @@ heliusConfig?: HeliusConfig;

export { Collectible, CollectibleState, FetchNFTClient };
export { type Collectible, type CollectibleState, FetchNFTClient };
import { HeliusNFT } from './types';
export declare type HeliusConfig = {
export type HeliusConfig = {
apiEndpoint?: string;

@@ -4,0 +4,0 @@ apiKey?: string;

import { CollectibleState } from 'utils/types';
import { HeliusClient } from './helius';
declare type SolanaCollectiblesProviderCtorArgs = {
type SolanaCollectiblesProviderCtorArgs = {
heliusClient: HeliusClient;

@@ -5,0 +5,0 @@ rpcEndpoint?: string;

import { Metadata } from '@metaplex-foundation/mpl-token-metadata';
import { Nullable } from 'utils/typeUtils';
declare type MetaplexNFTCreator = {
type MetaplexNFTCreator = {
address: string;

@@ -8,7 +8,7 @@ verified: boolean;

};
export declare type MetaplexNFTPropertiesFile = {
export type MetaplexNFTPropertiesFile = {
type: string;
uri: string;
};
declare type MetaplexNFTProperties = {
type MetaplexNFTProperties = {
files: (string | MetaplexNFTPropertiesFile)[];

@@ -18,3 +18,3 @@ creators: MetaplexNFTCreator[];

};
export declare type MetaplexNFT = {
export type MetaplexNFT = {
name: string;

@@ -28,3 +28,3 @@ description: Nullable<string>;

};
export declare type StarAtlasNFT = {
export type StarAtlasNFT = {
_id: string;

@@ -42,3 +42,3 @@ name: string;

};
export declare type Blocklist = {
export type Blocklist = {
blocklist: string[];

@@ -52,3 +52,3 @@ nftBlocklist: string[];

};
export declare type HeliusCollection = {
export type HeliusCollection = {
address: string;

@@ -59,3 +59,3 @@ name: string;

};
export declare type HeliusNFT = {
export type HeliusNFT = {
interface: string;

@@ -117,3 +117,3 @@ id: string;

}
export declare type SolanaNFT = HeliusNFT | MetaplexNFT | StarAtlasNFT;
export type SolanaNFT = HeliusNFT | MetaplexNFT | StarAtlasNFT;
export {};

@@ -5,4 +5,4 @@ import { Metadata } from '@metaplex-foundation/mpl-token-metadata';

import { Nullable } from 'utils/typeUtils';
export declare type Chain = 'eth' | 'sol';
export declare type CollectiblesMetadata = {
export type Chain = 'eth' | 'sol';
export type CollectiblesMetadata = {
[key: string]: object;

@@ -18,3 +18,3 @@ order: string[];

}
export declare type Collectible = {
export type Collectible = {
id: string;

@@ -48,4 +48,4 @@ tokenId: string;

};
export declare type CollectibleState = {
export type CollectibleState = {
[wallet: string]: Collectible[];
};

@@ -1,1 +0,1 @@

export declare type Nullable<T> = T | null;
export type Nullable<T> = T | null;
{
"name": "@audius/fetch-nft",
"version": "0.2.6",
"version": "0.2.7",
"author": "Audius",

@@ -17,4 +17,4 @@ "description": "A utility to fetch Ethereum & Solana NFTs",

"test": "echo \"Error: no test specified\" && exit 1",
"build": "rollup -c",
"start": "rollup -c -w",
"build": "rollup -c --configPlugin typescript",
"start": "rollup -c -w --configPlugin typescript",
"prepare": "npm run build"

@@ -25,6 +25,6 @@ },

"devDependencies": {
"@rollup/plugin-commonjs": "21.0.0",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "13.0.6",
"@rollup/plugin-typescript": "8.3.0",
"@rollup/plugin-commonjs": "25.0.8",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-typescript": "11.1.6",
"@typescript-eslint/eslint-plugin": "5.1.0",

@@ -38,12 +38,8 @@ "@typescript-eslint/parser": "5.1.0",

"eslint-plugin-promise": "5.1.0",
"rollup": "2.58.0",
"rollup-plugin-dts": "4.0.1",
"rollup": "4.3.0",
"rollup-plugin-dts": "6.1.1",
"rollup-plugin-peer-deps-external": "2.2.4",
"tslib": "2.3.1",
"typescript": "4.4.4"
"typescript": "5.0.4"
},
"peerDependencies": {
"@solana/spl-token": "0.3.8",
"@solana/web3.js": "1.78.4"
},
"dependencies": {

@@ -53,3 +49,3 @@ "@metaplex-foundation/mpl-token-metadata": "3.2.1",

"@solana/spl-token": "0.3.8",
"@solana/web3.js": "1.78.4",
"@solana/web3.js": "1.93.4",
"cross-fetch": "3.1.4",

@@ -56,0 +52,0 @@ "dayjs": "1.11.10"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc