@xoxno/sdk-js 0.1.322 → 0.1.325

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import type { IEventDoc } from './event';
2
- import type { CollectionInfo, Media, NftData, NFTMetadata, Owner, SaleInfo } from './nft';
2
+ import type { ChainID, CollectionInfo, Media, NftData, NFTMetadata, Owner, SaleInfo } from './nft';
3
3
  import type { NftActivityType } from './trading';
4
4
  import type { CreatorProfile, IUserProfileSearch, OfferBody } from './user';
5
5
  export interface ISocials {
@@ -53,6 +53,17 @@ export interface CollectionStatisticsProfile {
53
53
  mintData: MintStatistics;
54
54
  other: OtherStatistics;
55
55
  }
56
+ export interface Rule {
57
+ type: 'kiosk_lock_rule' | 'royalty_rule';
58
+ amount_bp?: number;
59
+ min_amount?: string;
60
+ }
61
+ export interface TransferPolicy {
62
+ id: string;
63
+ type: string;
64
+ rules: Rule[];
65
+ is_origin_byte: boolean;
66
+ }
56
67
  export interface ICollectionProfile {
57
68
  dataType: 'collectionProfile';
58
69
  collection: string;
@@ -70,6 +81,10 @@ export interface ICollectionProfile {
70
81
  id: string;
71
82
  socials: ISocials;
72
83
  type: string;
84
+ chain: ChainID;
85
+ transferPolicies: TransferPolicy[];
86
+ royalty?: number;
87
+ minSalePrice?: string;
73
88
  lastVerifiedTimestamp: number;
74
89
  lastVerifiedBy: string;
75
90
  customConfig?: {
@@ -56,6 +56,10 @@ export interface GameData {
56
56
  name: string;
57
57
  value: number;
58
58
  }
59
+ export declare enum ChainID {
60
+ MVX = "MVX",
61
+ SUI = "SUI"
62
+ }
59
63
  export interface NftData {
60
64
  id: string;
61
65
  name: string;
@@ -71,6 +75,7 @@ export interface NftData {
71
75
  onSale: boolean;
72
76
  metadata: NFTMetadata;
73
77
  media: Media;
78
+ chain?: ChainID;
74
79
  attributes?: string;
75
80
  creator?: Owner;
76
81
  hasOffers?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/sdk-js",
3
- "version": "0.1.322",
3
+ "version": "0.1.325",
4
4
  "description": "The SDK to interact with the XOXNO Protocol!",
5
5
  "type": "module",
6
6
  "exports": {