Skip to content

Commit

Permalink
Merge pull request #17 from nftscan-official/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
yohuohuohuo authored Sep 20, 2023
2 parents 01318e3 + d590a4b commit 8e0a50a
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -62,6 +63,7 @@ export enum EvmChain {
OPTIMISM = 'optimism',
ZKSYNC = 'zksync',
LINEA = 'linea',
Base = 'base',
AVALANCHE = 'avalanche',
MOONBEAM = 'moonbeam',
PLATON = 'platon',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 5 additions & 0 deletions src/types/evm/asset/response-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
5 changes: 5 additions & 0 deletions src/types/evm/collection/response-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
45 changes: 45 additions & 0 deletions src/types/evm/statistic/response-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -717,6 +742,11 @@ export interface QueryCollectionStatisticsResponse {
*/
volume_1d: number;

/**
* The volume for 1 hour
*/
volume_1h: number;

/**
* The 24h volume
*/
Expand All @@ -727,6 +757,11 @@ export interface QueryCollectionStatisticsResponse {
*/
volume_30d: number;

/**
* The volume for 6 hours
*/
volume_6h: number;

/**
* The volume for 7 days
*/
Expand All @@ -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
*/
Expand Down
1 change: 1 addition & 0 deletions src/types/nftscan-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export enum EvmChain {
OPTIMISM = 'optimism',
ZKSYNC = 'zksync',
LINEA = 'linea',
BASE = 'base',
AVALANCHE = 'avalanche',
MOONBEAM = 'moonbeam',
PLATON = 'platon',
Expand Down
1 change: 1 addition & 0 deletions src/util/nftscan.const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

/**
Expand Down

0 comments on commit 8e0a50a

Please sign in to comment.