diff --git a/CHANGELOG.md b/CHANGELOG.md index 5174e72..f618eed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,13 @@ # Changelog +## [1.10.0](https://github.com/nftscan-official/nftscan-api-js-sdk/compare/v1.9.0...v1.10.0) (2023-09-20) + + +### ✨ Features | 新功能 + +* Added `is_spam` attribute to Collection-related interface return parameters ([e378db9](https://github.com/nftscan-official/nftscan-api-js-sdk/commit/e378db9da98a33c6826226a44bd8684e033ed016)) +* added support the EVM-like chain `Base` ([b8a2ae8](https://github.com/nftscan-official/nftscan-api-js-sdk/commit/b8a2ae8334153f4f3b1da623a38000309d989013)) +* Update the return parameters of interface `getCollectionStatistics` ([ffe82b0](https://github.com/nftscan-official/nftscan-api-js-sdk/commit/ffe82b0ed119694d7a19cbb5fac460769fb6ea36)) + ## [1.9.0](https://github.com/nftscan-official/nftscan-api-js-sdk/compare/v1.8.1...v1.9.0) (2023-08-08) diff --git a/README.md b/README.md index 4975fba..594aac7 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ The SDK currently supports the following chains: | OP Mainnet | optimismapi.nftscan.com | optimism | | zkSync Era | zksyncapi.nftscan.com | zksync | | Linea | lineaapi.nftscan.com | linea | +| Base | baseapi.nftscan.com | base | | PlatON | platonapi.nftscan.com | platon | | Avalanche-C | avaxapi.nftscan.com | avalanche | | Cronos | cronosapi.nftscan.com | cronos | @@ -62,6 +63,7 @@ export enum EvmChain { OPTIMISM = 'optimism', ZKSYNC = 'zksync', LINEA = 'linea', + Base = 'base', AVALANCHE = 'avalanche', MOONBEAM = 'moonbeam', PLATON = 'platon', diff --git a/package.json b/package.json index a2ad07d..6faf4cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nftscan-api", - "version": "1.9.0", + "version": "1.10.0", "description": "js/ts SDK for NFTScan APIs", "main": "dist/cjs/index.js", "main-es": "dist/es/index.js", diff --git a/src/types/evm/asset/response-data.ts b/src/types/evm/asset/response-data.ts index cbe258b..44a33b7 100644 --- a/src/types/evm/asset/response-data.ts +++ b/src/types/evm/asset/response-data.ts @@ -202,6 +202,11 @@ export interface CollectionAssets { */ floor_price: number; + /** + * Whether the collection is spam contract marked by NFTScan + */ + is_spam: boolean; + /** * How many items for the collection */ diff --git a/src/types/evm/collection/response-data.ts b/src/types/evm/collection/response-data.ts index baa1fb6..526f5b9 100644 --- a/src/types/evm/collection/response-data.ts +++ b/src/types/evm/collection/response-data.ts @@ -102,6 +102,11 @@ export interface Collection { */ instagram: string; + /** + * Whether the collection is spam contract marked by NFTScan + */ + is_spam: boolean; + /** * How many items for the collection */ diff --git a/src/types/evm/statistic/response-data.ts b/src/types/evm/statistic/response-data.ts index f9a0836..c3468c3 100644 --- a/src/types/evm/statistic/response-data.ts +++ b/src/types/evm/statistic/response-data.ts @@ -702,11 +702,36 @@ export interface QueryCollectionStatisticsResponse { */ sales: number; + /** + * The sale for 1 day + */ + sales_1d: number; + + /** + * The sale for 1 hour + */ + sales_1h: number; + /** * The 24h sales */ sales_24h: number; + /** + * The sale for 30 days + */ + sales_30d: number; + + /** + * The sale for 6 hours + */ + sales_6h: number; + + /** + * The sale for 7 days + */ + sales_7d: number; + /** * The total volume */ @@ -717,6 +742,11 @@ export interface QueryCollectionStatisticsResponse { */ volume_1d: number; + /** + * The volume for 1 hour + */ + volume_1h: number; + /** * The 24h volume */ @@ -727,6 +757,11 @@ export interface QueryCollectionStatisticsResponse { */ volume_30d: number; + /** + * The volume for 6 hours + */ + volume_6h: number; + /** * The volume for 7 days */ @@ -737,11 +772,21 @@ export interface QueryCollectionStatisticsResponse { */ volume_change_1d: string; + /** + * The volume growth rate for 1 hour + */ + volume_change_1h: string; + /** * The volume growth rate for 30 days */ volume_change_30d: string; + /** + * The volume growth rate for 6 hours + */ + volume_change_6h: string; + /** * The volume growth rate for 7 days */ diff --git a/src/types/nftscan-type.ts b/src/types/nftscan-type.ts index 5da22c4..5a4f220 100644 --- a/src/types/nftscan-type.ts +++ b/src/types/nftscan-type.ts @@ -10,6 +10,7 @@ export enum EvmChain { OPTIMISM = 'optimism', ZKSYNC = 'zksync', LINEA = 'linea', + BASE = 'base', AVALANCHE = 'avalanche', MOONBEAM = 'moonbeam', PLATON = 'platon', diff --git a/src/util/nftscan.const.ts b/src/util/nftscan.const.ts index e83345d..da1e977 100644 --- a/src/util/nftscan.const.ts +++ b/src/util/nftscan.const.ts @@ -17,6 +17,7 @@ export default class NftscanConst { gnosis: 'https://gnosisapi.nftscan.com/api', zksync: 'https://zksyncapi.nftscan.com/api', linea: 'https://lineaapi.nftscan.com/api', + base: 'https://baseapi.nftscan.com/api', }; /**