@xoxno/sdk-js 0.1.183 → 0.1.185

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.
Files changed (75) hide show
  1. package/dist/collection/index.d.ts +297 -0
  2. package/dist/collection/index.d.ts.map +1 -0
  3. package/dist/common/index.d.ts +71 -0
  4. package/dist/common/index.d.ts.map +1 -0
  5. package/dist/email/Markdown.d.ts +4 -0
  6. package/dist/email/Markdown.d.ts.map +1 -0
  7. package/dist/email/email.d.ts +31 -0
  8. package/dist/email/email.d.ts.map +1 -0
  9. package/dist/email/event-email.d.ts +20 -0
  10. package/dist/email/event-email.d.ts.map +1 -0
  11. package/dist/email/post-email.d.ts +19 -0
  12. package/dist/email/post-email.d.ts.map +1 -0
  13. package/dist/email/types.d.ts +68 -0
  14. package/dist/email/types.d.ts.map +1 -0
  15. package/dist/email/utils.d.ts +84 -0
  16. package/dist/email/utils.d.ts.map +1 -0
  17. package/dist/email.cjs.js +1854 -0
  18. package/dist/email.cjs.js.LICENSE.txt +102 -0
  19. package/dist/email.d.ts +15 -0
  20. package/dist/email.d.ts.map +1 -0
  21. package/dist/email.esm.js +1854 -0
  22. package/dist/email.esm.js.LICENSE.txt +102 -0
  23. package/dist/index.cjs.js +1 -0
  24. package/dist/index.d.ts +8 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.esm.js +1 -0
  27. package/dist/interactions/index.d.ts +256 -0
  28. package/dist/interactions/index.d.ts.map +1 -0
  29. package/dist/interactor.cjs.js +2 -0
  30. package/dist/interactor.cjs.js.LICENSE.txt +10 -0
  31. package/dist/interactor.d.ts +6 -0
  32. package/dist/interactor.d.ts.map +1 -0
  33. package/dist/interactor.esm.js +2 -0
  34. package/dist/interactor.esm.js.LICENSE.txt +10 -0
  35. package/dist/launchpad/index.d.ts +79 -0
  36. package/dist/launchpad/index.d.ts.map +1 -0
  37. package/dist/nft/index.d.ts +69 -0
  38. package/dist/nft/index.d.ts.map +1 -0
  39. package/dist/staking/index.d.ts +12 -0
  40. package/dist/staking/index.d.ts.map +1 -0
  41. package/dist/types/collection.d.ts +851 -0
  42. package/dist/types/collection.d.ts.map +1 -0
  43. package/dist/types/common.d.ts +72 -0
  44. package/dist/types/common.d.ts.map +1 -0
  45. package/dist/types/index.d.ts +8 -0
  46. package/dist/types/index.d.ts.map +1 -0
  47. package/dist/types/interactions.d.ts +97 -0
  48. package/dist/types/interactions.d.ts.map +1 -0
  49. package/dist/types/nft.d.ts +106 -0
  50. package/dist/types/nft.d.ts.map +1 -0
  51. package/dist/types/staking.d.ts +67 -0
  52. package/dist/types/staking.d.ts.map +1 -0
  53. package/dist/types/trading.d.ts +115 -0
  54. package/dist/types/trading.d.ts.map +1 -0
  55. package/dist/types/user.d.ts +302 -0
  56. package/dist/types/user.d.ts.map +1 -0
  57. package/dist/users/index.d.ts +202 -0
  58. package/dist/users/index.d.ts.map +1 -0
  59. package/dist/utils/SmartContractAbis.d.ts +16 -0
  60. package/dist/utils/SmartContractAbis.d.ts.map +1 -0
  61. package/dist/utils/SmartContractService.d.ts +4 -0
  62. package/dist/utils/SmartContractService.d.ts.map +1 -0
  63. package/dist/utils/api.d.ts +31 -0
  64. package/dist/utils/api.d.ts.map +1 -0
  65. package/dist/utils/const.d.ts +14 -0
  66. package/dist/utils/const.d.ts.map +1 -0
  67. package/dist/utils/getActivity.d.ts +11 -0
  68. package/dist/utils/getActivity.d.ts.map +1 -0
  69. package/dist/utils/helpers.d.ts +4 -0
  70. package/dist/utils/helpers.d.ts.map +1 -0
  71. package/dist/utils/regex.d.ts +3 -0
  72. package/dist/utils/regex.d.ts.map +1 -0
  73. package/dist/utils/scCalls.d.ts +10 -0
  74. package/dist/utils/scCalls.d.ts.map +1 -0
  75. package/package.json +1 -1
@@ -0,0 +1,297 @@
1
+ import { AnalyticsGraphs, NftData, StakingSummaryPools } from '../types';
2
+ import { CollectionsNFTsResponse, GetCollectionsArgs, ICollectionAttributes, ICollectionProfile, GetNFTsArgs, SearchNFTsResponse, SuggestNFTsArgs, SuggestResults, CollectionVolume, IOwners, ISingleHolder, GetGlobalOffersArgs, GlobalOffersResult, GetCollectionMintInfo, GetCollectionStatsArgs, CollectionStatsResults, CollectionRanksExport, CollectionStatsDoc, GETDropsArgs, GetDropsResponse, CollectionListings } from '../types/collection';
3
+ import { TradincActivityArgs, TradingActivityResponse } from '../types/trading';
4
+ /**
5
+ * CollectionModule provides a set of methods to interact with NFT collections.
6
+ * It includes methods for getting collection profile information, floor price,
7
+ * collection attributes, and searching NFTs within a collection.
8
+ *
9
+ * @example
10
+ * const collectionModule = new CollectionModule();
11
+ */
12
+ export declare class CollectionModule {
13
+ private api;
14
+ constructor();
15
+ /**
16
+ * @public
17
+ * @async
18
+ * @function getCollectionProfile
19
+ * @param {string} collection - The ticker of the collection to fetch the profile for.
20
+ * @returns {Promise<ICollectionProfile>} A promise that resolves to the fetched collection profile.
21
+ *
22
+ * This function fetches the profile of a given collection. It takes the following parameter:
23
+ * - collection (string): The ticker of the collection to fetch the profile for.
24
+ *
25
+ * The function first validates the input ticker and checks if it is a valid collection ticker.
26
+ * If it is valid, the function fetches the collection profile using the API.
27
+ * Finally, it returns a promise that resolves to the fetched collection profile.
28
+ */
29
+ getCollectionProfile: (collection: string) => Promise<ICollectionProfile>;
30
+ /**
31
+ * @public
32
+ * @async
33
+ * @function getDailyTrending
34
+ * @returns {Promise<NftData[]>} A promise that resolves to the array of trending NFTs.
35
+ * This function fetches the top NFTs that are trending today based on their floor and volumes
36
+ */
37
+ getDailyTrending: () => Promise<NftData[]>;
38
+ /**
39
+ * Fetches the floor price of a collection.
40
+ * @param collection - The ticker of the collection.
41
+ * @param token - The token for the floor price calculation (default: 'EGLD').
42
+ * @returns A Promise that resolves to the collection's floor price as a number.
43
+ * @throws An error if the provided collection ticker is invalid.
44
+ */
45
+ getCollectionFloorPrice: (collection: string, token?: string) => Promise<number>;
46
+ /**
47
+ * @public
48
+ * @async
49
+ * @function getCollectionAttributes
50
+ * @param {string} collection - The ticker of the collection to fetch the attributes for.
51
+ * @returns {Promise<ICollectionAttributes>} A promise that resolves to the fetched collection attributes.
52
+ *
53
+ * This function fetches the attributes of a given collection. It takes the following parameter:
54
+ * - collection (string): The ticker of the collection to fetch the attributes for.
55
+ *
56
+ * The function first validates the input ticker and checks if it is a valid collection ticker.
57
+ * If it is valid, the function fetches the collection attributes using the API.
58
+ * Finally, it returns a promise that resolves to the fetched collection attributes.
59
+ */
60
+ getCollectionAttributes: (collection: string) => Promise<ICollectionAttributes>;
61
+ /**
62
+ * Searches for NFTs based on the provided arguments.
63
+ * @param {SearchNFTsArgs} args - The SearchNFTsArgs object containing the search parameters.
64
+ * @returns {Promise<SearchNFTsResponse>} A Promise that resolves to the SearchNFTsResponse object.
65
+ * @throws An error if the provided collection ticker is invalid or if the 'top' value is greater than 100.
66
+ */
67
+ getNFTs: (args: GetNFTsArgs) => Promise<SearchNFTsResponse>;
68
+ /**
69
+ * Searches for NFTs based on the provided arguments.
70
+ * @param {SearchNFTsArgs} args - The SearchNFTsArgs object containing the search parameters.
71
+ * @returns {Promise<SearchNFTsResponse>} A Promise that resolves to the SearchNFTsResponse object.
72
+ * @throws An error if the provided collection ticker is invalid or if the 'top' value is greater than 100.
73
+ */
74
+ getSearchNFTs: (args: GetNFTsArgs) => Promise<SearchNFTsResponse>;
75
+ /**
76
+ * @public
77
+ * @async
78
+ * @function suggestCollections
79
+ * @param {SuggestNFTsArgs} args - An object containing the necessary parameters to fetch suggested collections results.
80
+ * @returns {Promise<SuggestResults>} A promise that resolves to the fetched collections results.
81
+ *
82
+ * This function fetches suggested collections results based on the provided arguments. It takes an object with the following properties:
83
+ * - name (string): The name to search for (required).
84
+ * - top (number, optional): The maximum number of results to return (default is 35, cannot be greater than 100).
85
+ * - skip (number, optional): The number of results to skip (default is 0).
86
+ *
87
+ * Finally, it returns a promise that resolves to the fetched collections results.
88
+ */
89
+ suggestCollections: (args: SuggestNFTsArgs) => Promise<SuggestResults>;
90
+ /**
91
+ * @public
92
+ * @async
93
+ * @function collectionListingsAnalytics
94
+ * @param {string} ticker - The unique collection identifier called ticker
95
+ * @returns {Promise<CollectionListings>} A promise that resolves to the distribution of listings
96
+ */
97
+ collectionListingsAnalytics: (ticker: string) => Promise<CollectionListings>;
98
+ /**
99
+ * Retrieves trading history based on the provided arguments.
100
+ *
101
+ * @param {TradincActivityArgs} args - The arguments for filtering the trading activity.
102
+ * @returns {Promise<TradingActivityResponse>} A promise resolving to a TradingActivityResponse object containing the activity.
103
+ * @throws {Error} Throws an error if the 'top' argument is greater than 100.
104
+ */
105
+ getTradingActivity: (args: TradincActivityArgs) => Promise<TradingActivityResponse>;
106
+ /**
107
+ * Fetch collections profiles based on the provided arguments.
108
+ * @param {GetCollectionsArgs} args - The GetCollectionsArgs object containing the search parameters.
109
+ * @returns {Promise<CollectionsNFTsResponse>} A Promise that resolves to the CollectionsNFTsResponse object.
110
+ * @throws An error if the 'top' value is greater than 100.
111
+ */
112
+ getCollections: (args?: GetCollectionsArgs) => Promise<CollectionsNFTsResponse>;
113
+ /**
114
+ * Fetch global offers based on the provided arguments.
115
+ * @param {GetGlobalOffersArgs} args - The GetCollectionsArgs object containing the search parameters.
116
+ * @returns {Promise<GlobalOffersResult>} A Promise that resolves to the GlobalOffersResult object.
117
+ * @throws An error if the 'top' value is greater than 100.
118
+ */
119
+ getGlobalOffers: (args?: GetGlobalOffersArgs) => Promise<GlobalOffersResult>;
120
+ /**
121
+ * @public
122
+ * @async
123
+ * @function getCollectionVolume
124
+ * @param {string} collection - The ticker of the collection to fetch the volume for (e.g., 'EAPES-8f3c1f').
125
+ * @param {string} after - The start date (inclusive) of the date range for the volume data (e.g., '2023-04-17').
126
+ * @param {string} before - The end date (inclusive) of the date range for the volume data (e.g., '2023-04-25').
127
+ * @param {string} bin - The binning period for the volume data (e.g., '1d' for 1 day).
128
+ * @returns {Promise<CollectionVolume[]>} A promise that resolves to an array of collection volume data.
129
+ *
130
+ * This function fetches volume data for a given collection within a specified date range and binning period. It takes the following parameters:
131
+ * - collection (string): The ticker of the collection to fetch the volume for (e.g., 'EAPES-8f3c1f').
132
+ * - after (string): The start date (inclusive) of the date range for the volume data (e.g., '2023-04-17').
133
+ * - before (string): The end date (inclusive) of the date range for the volume data (e.g., '2023-04-25').
134
+ * - bin (string): The binning period for the volume data (e.g., '1d' for 1 day).
135
+ *
136
+ * The function first validates the input collection ticker and checks if it is a valid collection ticker.
137
+ * If it is valid, the function fetches the collection volume data using the API with the specified query parameters.
138
+ * Finally, it returns a promise that resolves to an array of collection volume data.
139
+ */
140
+ getCollectionVolume: (collection: string, after: string, before: string, bin: string) => Promise<CollectionVolume[]>;
141
+ /**
142
+ * @public
143
+ * @async
144
+ * @function getMarketplaceVolume
145
+ * @param {string} after - The start date (inclusive) of the date range for the volume data (e.g., '2023-04-17').
146
+ * @param {string} before - The end date (inclusive) of the date range for the volume data (e.g., '2023-04-25').
147
+ * @param {string} bin - The binning period for the volume data (e.g., '1d' for 1 day).
148
+ * @returns {Promise<CollectionVolume[]>} A promise that resolves to an array of collection volume data.
149
+ *
150
+ * This function fetches volume data for a given collection within a specified date range and binning period. It takes the following parameters:
151
+ * - collection (string): The ticker of the collection to fetch the volume for (e.g., 'EAPES-8f3c1f').
152
+ * - after (string): The start date (inclusive) of the date range for the volume data (e.g., '2023-04-17').
153
+ * - before (string): The end date (inclusive) of the date range for the volume data (e.g., '2023-04-25').
154
+ * - bin (string): The binning period for the volume data (e.g., '1d' for 1 day).
155
+ *
156
+ * The function first validates the input collection ticker and checks if it is a valid collection ticker.
157
+ * If it is valid, the function fetches the collection volume data using the API with the specified query parameters.
158
+ * Finally, it returns a promise that resolves to an array of collection volume data.
159
+ */
160
+ getMarketplaceVolume: (after: string, before: string, bin: string) => Promise<CollectionVolume[]>;
161
+ /**
162
+ * @public
163
+ * @async
164
+ * @function getCollectionOwners
165
+ * @param {string} collection - The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
166
+ * @returns {Promise<IOwners>} A promise that resolves a struct of collection information about holders
167
+ *
168
+ * This function fetches owner information for a given collection. It takes the following parameter:
169
+ * - collection (string): The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
170
+ *
171
+ * The function first validates the input collection ticker and checks if it is a valid collection ticker.
172
+ * If it is valid, the function fetches the collection owner information using the API.
173
+ * Finally, it returns a promise that resolves a struct of collection information about holders
174
+ */
175
+ getCollectionOwners: (collection: string) => Promise<IOwners>;
176
+ /**
177
+ * @public
178
+ * @async
179
+ * @function getExportOwners
180
+ * @param {string} collection - The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
181
+ * @returns {Promise<ISingleHolder[]>} A promise that resolves an array of holders part of the collection.
182
+ *
183
+ * This function fetches owners information for a given collection. It takes the following parameter:
184
+ * - collection (string): The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
185
+ *
186
+ * The function first validates the input collection ticker and checks if it is a valid collection ticker.
187
+ * If it is valid, the function fetches the collection owner information using the API.
188
+ * Finally, it returns a promise that resolves to an array of collection owner information.
189
+ */
190
+ getExportOwners: (collection: string) => Promise<ISingleHolder[]>;
191
+ /**
192
+ * @public
193
+ * @async
194
+ * @function getCollectionsStatistics
195
+ * @param {GetCollectionStatsArgs} args - The filter payload for the collection statsitics
196
+ * @returns {Promise<CollectionStatsResults>} A promise that resolves to a struct with information
197
+ * Finally, it returns a promise that resolves a struct with information
198
+ */
199
+ getCollectionsStatistics: (args: GetCollectionStatsArgs) => Promise<CollectionStatsResults>;
200
+ /**
201
+ * @public
202
+ * @async
203
+ * @function getCollectionStats
204
+ * @param {GetCollectionStatsArgs} args - The filter payload for the collection statsitics
205
+ * @returns {Promise<CollectionStatsDoc>} A promise that resolves to a struct with information
206
+ * Finally, it returns a promise that resolves a struct with information
207
+ */
208
+ getCollectionStats: (ticker: string) => Promise<CollectionStatsDoc>;
209
+ getAwaitEmpty: (delay: number) => Promise<boolean>;
210
+ /**
211
+ * @public
212
+ * @async
213
+ * @function getCollectionMintInfo
214
+ * @param {string} ticker - The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
215
+ * @returns {Promise<GetCollectionMintInfo>} A promise that resolves to a struct with information
216
+ * Finally, it returns a promise that resolves a struct with information
217
+ */
218
+ getCollectionMintInfo: ({ ticker, extra, }: {
219
+ ticker: string;
220
+ extra?: RequestInit;
221
+ }) => Promise<GetCollectionMintInfo>;
222
+ /**
223
+ * @public
224
+ * @async
225
+ * @function getCollectionRanks
226
+ * @param {string} ticker - The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
227
+ * @returns {Promise<CollectionRanksExport[]>} A promise that resolves to a struct with information
228
+ * Finally, it returns a promise that resolves a struct with information
229
+ */
230
+ getCollectionRanks: ({ ticker, extra, }: {
231
+ ticker: string;
232
+ extra?: RequestInit;
233
+ }) => Promise<CollectionRanksExport[]>;
234
+ /**
235
+ * @public
236
+ * @async
237
+ * @function getDropInfo
238
+ * @param {string} collectionTag - The unique ID of the collection part of the launchpad smart contract
239
+ * @param {string} creatorTag - The unique ID of the creator part of the launchpad smart contract
240
+ * @returns {Promise<GetCollectionMintInfo>} A promise that resolves to a struct with information
241
+ * Finally, it returns a promise that resolves a struct with information
242
+ */
243
+ getDropInfo: ({ collectionTag, creatorTag, extra, }: {
244
+ collectionTag: string;
245
+ creatorTag: string;
246
+ extra?: RequestInit;
247
+ }) => Promise<GetCollectionMintInfo>;
248
+ /**
249
+ * @public
250
+ * @async
251
+ * @function getCollectionGraphData
252
+ * @param category - The ticker of the collection.
253
+ * @returns {Promise<AnalyticsGraphs>} A promise the required analytics data
254
+ * This function gets the global graph data
255
+ */
256
+ getCollectionGraphData: (collection: string, startTime: string, endTime: string, bin: string) => Promise<AnalyticsGraphs>;
257
+ /**
258
+ * @public
259
+ * @async
260
+ * @function getPinnedCollections
261
+ * @returns {Promise<ICollectionProfile[]>} A promise that resolves to the fetched pinned collections.
262
+ */
263
+ getPinnedCollections: () => Promise<ICollectionProfile[]>;
264
+ /**
265
+ * Get drops based on the provided arguments.
266
+ * @param {SearchNFTsArgs} args - The SearchNFTsArgs object containing the search parameters.
267
+ * @returns {Promise<SearchNFTsResponse>} A Promise that resolves to the SearchNFTsResponse object.
268
+ * @throws An error if the provided collection ticker is invalid or if the 'top' value is greater than 100.
269
+ */
270
+ getSearchDrops: (args: GETDropsArgs) => Promise<GetDropsResponse>;
271
+ /**
272
+ * Get drops based on the provided arguments.
273
+ * @param {SearchNFTsArgs} args - The SearchNFTsArgs object containing the search parameters.
274
+ * @returns {Promise<SearchNFTsResponse>} A Promise that resolves to the SearchNFTsResponse object.
275
+ * @throws An error if the provided collection ticker is invalid or if the 'top' value is greater than 100.
276
+ */
277
+ getDrops: (args: GETDropsArgs) => Promise<GetDropsResponse>;
278
+ /** Gets collection staking info
279
+ * @param {String} collection - User's address
280
+ * @returns {StakingSummaryPools[]} Collection's staking info
281
+ * @throws {Error} Throws an error if the collection is invalid
282
+ * */
283
+ getCollectionStakingSummary: ({ collection, extra, }: {
284
+ collection: string;
285
+ extra?: RequestInit;
286
+ }) => Promise<StakingSummaryPools[]>;
287
+ /**
288
+ * @public
289
+ * @async
290
+ * @function getCollectionsFloor
291
+ * @param collections - The tickers of the collection.
292
+ * @returns {Promise<Record<string, number>>} Floor price of the collections
293
+ * This function gets the floor price of the collections
294
+ */
295
+ getCollectionsFloor: (collections: string[]) => Promise<Record<string, number>>;
296
+ }
297
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/collection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAElB,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,aAAa,EACb,mB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,OAAO,CAAC,eAAe,CAAC,CAmBzB;IAEF;;;;;OAKG;IACI,oBAAoB,QAAa,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAWnE;IAEF;;;;;OAKG;IACI,cAAc,SACb,YAAY,KACjB,OAAO,CAAC,gBAAgB,CAAC,CAmD1B;IAEF;;;;;OAKG;IACI,QAAQ,SAAgB,YAAY,KAAG,OAAO,CAAC,gBAAgB,CAAC,CAmDrE;IAEF;;;;UAIM;IACC,2BAA2B,2BAG/B;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,WAAW,CAAC;KACrB,KAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAYhC;IAEF;;;;;;;OAOG;IACI,mBAAmB,gBACX,MAAM,EAAE,KACpB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAehC;CACH"}
@@ -0,0 +1,71 @@
1
+ import { AssetCategory, FungibleAssetsMap, SuggestNFTsArgs, SuggestResults } from '../types/collection';
2
+ import { AnalyticsGraphs, AshSwapPaymentData, StakingExplore, StatisticsSummary, TokenUSDPrices } from '../types/common';
3
+ export declare class CommonModule {
4
+ private api;
5
+ constructor();
6
+ /** Gets all tokens usd price
7
+ * @returns {TokenUSDPrices} User's creator info
8
+ * */
9
+ getTokensUsdPrice: () => Promise<TokenUSDPrices>;
10
+ /** Gets all tokens usd price
11
+ * @returns {TokenUSDPrices} User's creator info
12
+ * */
13
+ getAshSwapAmount: ({ originalToken, originalTokenValue, paymentToken, }: {
14
+ originalToken: string;
15
+ originalTokenValue: string;
16
+ paymentToken: string;
17
+ }) => Promise<AshSwapPaymentData>;
18
+ /**
19
+ * @public
20
+ * @async
21
+ * @function getFungibleTokens
22
+ * @param category - The ticker of the collection.
23
+ * @returns {Promise<FungibleAssetsMap>} A promise that resolves a map of ESDT tokens and their info
24
+ * This function fetches all branded fungible assets and their info
25
+ */
26
+ getFungibleTokens: (categories?: AssetCategory[], identifiers?: string[]) => Promise<FungibleAssetsMap>;
27
+ /**
28
+ * @public
29
+ * @async
30
+ * @function getGlobalGraphData
31
+ * @param category - The ticker of the collection.
32
+ * @returns {Promise<AnalyticsGraphs>} A promise the required analytics data
33
+ * This function gets the global graph data
34
+ */
35
+ getGlobalGraphData: (startTime: string, endTime: string, bin: string) => Promise<AnalyticsGraphs>;
36
+ /**
37
+ * @public
38
+ * @async
39
+ * @function getAnalyticsOverview
40
+ * @returns {Promise<StatisticsSummary>} A promise the required analytics data
41
+ * This function gets the global graph data
42
+ */
43
+ getAnalyticsOverview: () => Promise<StatisticsSummary>;
44
+ /**
45
+ * @public
46
+ * @async
47
+ * @function suggestResults
48
+ * @param {SuggestNFTsArgs} args - An object containing the necessary parameters to fetch suggested NFT results.
49
+ * @returns {Promise<SuggestResults>} A promise that resolves to the fetched NFT results.
50
+ *
51
+ * This function fetches suggested NFT results based on the provided arguments. It takes an object with the following properties:
52
+ * - name (string): The name to search for (required).
53
+ * - orderBy (SuggestOrderBy[], optional): An array of ordering preferences for the results.
54
+ * - top (number, optional): The maximum number of results to return (default is 35, cannot be greater than 100).
55
+ * - skip (number, optional): The number of results to skip (default is 0).
56
+ *
57
+ * The function first validates the input arguments and constructs a payload body with the provided parameters.
58
+ * Then, it converts the payload body into a base64 string and fetches the suggested results using the API.
59
+ * Finally, it returns a promise that resolves to the fetched NFT results.
60
+ */
61
+ suggestResults: (args: SuggestNFTsArgs) => Promise<SuggestResults>;
62
+ /**
63
+ * @public
64
+ * @async
65
+ * @function getExploreStaking
66
+ * @returns {Promise<StakingExplore[]>} A promise that resolves to the fetched staking explore data.
67
+ * This function fetches the staking explore data.
68
+ */
69
+ getExploreStaking: () => Promise<StakingExplore[]>;
70
+ }
71
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,cAAc,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACf,MAAM,iBAAiB,CAAC;AAGzB,qBAAa,YAAY;IACvB,OAAO,CAAC,GAAG,CAAc;;IAIzB;;UAEM;IACC,iBAAiB,QAAa,OAAO,CAAC,cAAc,CAAC,CAI1D;IAEF;;UAEM;IACC,gBAAgB,yDAIpB;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,YAAY,EAAE,MAAM,CAAC;KACtB,KAAG,OAAO,CAAC,kBAAkB,CAAC,CAY7B;IAEF;;;;;;;OAOG;IACI,iBAAiB,gBACV,aAAa,EAAE,gBACb,MAAM,EAAE,KACrB,OAAO,CAAC,iBAAiB,CAAC,CAsB3B;IAEF;;;;;;;OAOG;IACI,kBAAkB,cACZ,MAAM,WACR,MAAM,OACV,MAAM,KACV,OAAO,CAAC,eAAe,CAAC,CAgBzB;IAEF;;;;;;OAMG;IACI,oBAAoB,QAAa,OAAO,CAAC,iBAAiB,CAAC,CAWhE;IAEF;;;;;;;;;;;;;;;;OAgBG;IACI,cAAc,SACb,eAAe,KACpB,OAAO,CAAC,cAAc,CAAC,CAoBxB;IAEF;;;;;;OAMG;IACI,iBAAiB,QAAa,OAAO,CAAC,cAAc,EAAE,CAAC,CAW5D;CACH"}
@@ -0,0 +1,4 @@
1
+ import React, { type ComponentProps } from 'react';
2
+ import ReactMarkdown from 'react-markdown';
3
+ export declare function Markdown(props: ComponentProps<typeof ReactMarkdown>): React.JSX.Element;
4
+ //# sourceMappingURL=Markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../src/email/Markdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAgD3C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,aAAa,CAAC,qBAEnE"}
@@ -0,0 +1,31 @@
1
+ import { type ComponentProps } from 'react';
2
+ import { IBaseNotification, IEmailActivityType } from './types';
3
+ import React from 'react';
4
+ import { IHost } from './utils';
5
+ export type IProps = {
6
+ host?: IHost;
7
+ } & ({
8
+ activityType: Exclude<IEmailActivityType, 'verifyEmail'>;
9
+ payload: {
10
+ name: string;
11
+ address: string;
12
+ nft: Pick<IBaseNotification, 'asset' | 'owner' | 'activity'>;
13
+ code?: never;
14
+ };
15
+ } | {
16
+ activityType: Extract<IEmailActivityType, 'verifyEmail'>;
17
+ payload: {
18
+ name: string;
19
+ address?: never;
20
+ nft?: never;
21
+ code: string;
22
+ };
23
+ });
24
+ declare const XOXNOEmail: ({ host, ...props }: IProps) => React.JSX.Element;
25
+ export declare const renderEmail: (props: ComponentProps<typeof XOXNOEmail>) => Promise<{
26
+ html: string;
27
+ plainText: string;
28
+ subject: string;
29
+ }>;
30
+ export {};
31
+ //# sourceMappingURL=email.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../src/email/email.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAc3D,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAanB,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEL,KAAK,EAYN,MAAM,SAAS,CAAC;AA0HjB,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC;CACd,GAAG,CACA;IACE,YAAY,EAAE,OAAO,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAC;IACzD,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,GAAG,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC;QAC7D,IAAI,CAAC,EAAE,KAAK,CAAC;KACd,CAAC;CACH,GACD;IACE,YAAY,EAAE,OAAO,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAC;IACzD,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,KAAK,CAAC;QAChB,GAAG,CAAC,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CACJ,CAAC;AAIF,QAAA,MAAM,UAAU,uBAAsC,MAAM,sBAsH3D,CAAC;AAEF,eAAO,MAAM,WAAW,UAAiB,cAAc,CAAC,OAAO,UAAU,CAAC;;;;EAIzE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type ComponentProps } from 'react';
2
+ import React from 'react';
3
+ import { IHost } from './utils';
4
+ import { IEvent } from './types';
5
+ export type IProps = {
6
+ host?: IHost;
7
+ name: string;
8
+ event: IEvent;
9
+ style?: {
10
+ backgroundColor: string;
11
+ };
12
+ };
13
+ declare const EventEmail: ({ host, event, name, style, }: IProps) => React.JSX.Element;
14
+ export declare const renderEventEmail: (props: ComponentProps<typeof EventEmail>) => Promise<{
15
+ html: string;
16
+ plainText: string;
17
+ subject: string;
18
+ }>;
19
+ export {};
20
+ //# sourceMappingURL=event-email.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-email.d.ts","sourceRoot":"","sources":["../../src/email/event-email.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAc3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,KAAK,EAUN,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAoBjC,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE;QACN,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;CACH,CAAC;AAIF,QAAA,MAAM,UAAU,kCAKb,MAAM,sBAsHR,CAAC;AAEF,eAAO,MAAM,gBAAgB,UACpB,cAAc,CAAC,OAAO,UAAU,CAAC;;;;EAKzC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type ComponentProps } from 'react';
2
+ import React from 'react';
3
+ import { IHost } from './utils';
4
+ export type IProps = {
5
+ host?: IHost;
6
+ subject: string;
7
+ message: string;
8
+ style?: {
9
+ backgroundColor: string;
10
+ };
11
+ };
12
+ declare const PostEmail: ({ host, subject, message, style, }: IProps) => React.JSX.Element;
13
+ export declare const renderPostEmail: (props: ComponentProps<typeof PostEmail>) => Promise<{
14
+ html: string;
15
+ plainText: string;
16
+ subject: string;
17
+ }>;
18
+ export {};
19
+ //# sourceMappingURL=post-email.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-email.d.ts","sourceRoot":"","sources":["../../src/email/post-email.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAc3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,KAAK,EAUN,MAAM,SAAS,CAAC;AAsBjB,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QACN,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;CACH,CAAC;AAIF,QAAA,MAAM,SAAS,uCAKZ,MAAM,sBAsDR,CAAC;AAEF,eAAO,MAAM,eAAe,UACnB,cAAc,CAAC,OAAO,SAAS,CAAC;;;;EAKxC,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { NftActivityType } from '../types';
2
+ export declare const offerTradeTypes: readonly [NftActivityType.OFFER_TRADE, NftActivityType.GLOBAL_OFFER_TRADE];
3
+ export declare const tradeTypes: readonly [NftActivityType.TRADE, NftActivityType.BULK_TRADE, NftActivityType.OTHER_TRADE];
4
+ export declare const offerTypes: readonly [NftActivityType.OFFER_CREATE, NftActivityType.OFFER_REJECT];
5
+ export declare const bidTypes: readonly [NftActivityType.AUCTION_BID, NftActivityType.AUCTION_OUT_BID];
6
+ export declare const depositTypes: readonly ["deposit", "withdrawDeposit"];
7
+ export declare const verifyEmailTypes: readonly ["verifyEmail"];
8
+ export type IOfferTradeTypes = (typeof offerTradeTypes)[number];
9
+ export type ITradeTypes = (typeof tradeTypes)[number];
10
+ export type IDepositTypes = (typeof depositTypes)[number];
11
+ export type IBidTypes = (typeof bidTypes)[number];
12
+ export type IOfferTypes = (typeof offerTypes)[number];
13
+ export type IVerifyEmailTypes = (typeof verifyEmailTypes)[number];
14
+ declare const emailActivityTypes: readonly [NftActivityType.OFFER_TRADE, NftActivityType.GLOBAL_OFFER_TRADE, NftActivityType.TRADE, NftActivityType.BULK_TRADE, NftActivityType.OTHER_TRADE, NftActivityType.OFFER_CREATE, NftActivityType.OFFER_REJECT, "deposit", "withdrawDeposit", NftActivityType.AUCTION_BID, NftActivityType.AUCTION_OUT_BID, "verifyEmail"];
15
+ export type IEmailActivityType = (typeof emailActivityTypes)[number];
16
+ export declare enum NotificationAssetType {
17
+ NFT = "nft",
18
+ USER = "user",
19
+ CHAT = "chat"
20
+ }
21
+ export interface IBaseNotification {
22
+ id: string;
23
+ isRead: boolean;
24
+ txHash: string;
25
+ source: string;
26
+ activityType: IEmailActivityType | '';
27
+ message?: string;
28
+ asset: {
29
+ type: NotificationAssetType;
30
+ collection?: string;
31
+ identifier?: string;
32
+ address?: string;
33
+ name?: string;
34
+ url?: string;
35
+ };
36
+ activity: {
37
+ price?: number;
38
+ paymentToken?: string;
39
+ quantity?: number;
40
+ buyer?: string;
41
+ seller?: string;
42
+ previousBidder?: string;
43
+ deadline?: number;
44
+ unreadCount?: number;
45
+ };
46
+ owner: string;
47
+ timestamp: number;
48
+ }
49
+ export interface INotification extends Omit<IBaseNotification, 'asset'> {
50
+ asset: Omit<IBaseNotification['asset'], 'url'> & {
51
+ url: string[];
52
+ };
53
+ }
54
+ export interface IEvent {
55
+ name: string;
56
+ backgroundImage: string;
57
+ ticketImage: string;
58
+ time: string;
59
+ location: {
60
+ lat: number;
61
+ lng: number;
62
+ value: string;
63
+ };
64
+ ticketId: string;
65
+ eventId: string;
66
+ }
67
+ export {};
68
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/email/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,eAAe,4EAGlB,CAAC;AAEX,eAAO,MAAM,UAAU,2FAIb,CAAC;AAEX,eAAO,MAAM,UAAU,uEAGb,CAAC;AAEX,eAAO,MAAM,QAAQ,yEAGX,CAAC;AAEX,eAAO,MAAM,YAAY,yCAA0C,CAAC;AAEpE,eAAO,MAAM,gBAAgB,0BAA2B,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,QAAA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C;CACpE;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,84 @@
1
+ import { PropsWithChildren, ReactElement } from 'react';
2
+ import React from 'react';
3
+ export declare const MEDIA = "https://media.xoxno.com";
4
+ export declare const GeneralEmail: ({ title, children, }: PropsWithChildren<{
5
+ title: string;
6
+ }>) => React.JSX.Element;
7
+ export declare function Center({ children }: PropsWithChildren): React.JSX.Element;
8
+ export declare const headingStyle: {
9
+ color: "var(--color-palettes-primary-text-fill, #FFF)";
10
+ fontFamily: "Heading, Verdana";
11
+ textAlign: "center";
12
+ fontSize: string;
13
+ fontStyle: "normal";
14
+ fontWeight: number;
15
+ lineHeight: string;
16
+ };
17
+ export declare const linkStyle: {
18
+ color: "var(--color-palettes-lime-fill, #AEFB4F)";
19
+ fontFamily: "Body, Verdana";
20
+ fontSize: string;
21
+ fontStyle: "normal";
22
+ fontWeight: "500";
23
+ lineHeight: string;
24
+ whiteSpace: "nowrap";
25
+ };
26
+ export declare const bodyStyle: {
27
+ color: "var(--color-palettes-button-tertiary-text, #D0D0D0)";
28
+ textAlign: "center";
29
+ fontFamily: "Body, Verdana";
30
+ fontSize: string;
31
+ fontStyle: "normal";
32
+ fontWeight: "400";
33
+ lineHeight: string;
34
+ };
35
+ export declare const hintStyle: {
36
+ color: "var(--color-palettes-button-tertiary-text, #D0D0D0)";
37
+ textAlign: "center";
38
+ fontFamily: "Body, Verdana";
39
+ fontSize: string;
40
+ fontStyle: "normal";
41
+ fontWeight: "300";
42
+ lineHeight: string;
43
+ };
44
+ export declare const highlightStyle: {
45
+ color: "var(--color-palettes-primary-text-fill, #FFF)";
46
+ fontFamily: "Body, Verdana";
47
+ fontSize: string;
48
+ fontStyle: "normal";
49
+ fontWeight: "500";
50
+ lineHeight: string;
51
+ };
52
+ export declare const buttonStyle: {
53
+ fontFamily: "Button, Verdana";
54
+ padding: string;
55
+ borderRadius: string;
56
+ background: string;
57
+ color: "var(--color-palettes-button-primary-text, #000)";
58
+ fontSize: string;
59
+ fontStyle: "normal";
60
+ fontWeight: "500";
61
+ lineHeight: string;
62
+ };
63
+ declare const locales: readonly ["en", "de"];
64
+ type ILocale = (typeof locales)[number];
65
+ export type Translations<T = object> = {
66
+ namespace: string;
67
+ translations: {
68
+ en: T;
69
+ } & Partial<{
70
+ [key in Exclude<ILocale, 'en'>]: Partial<T>;
71
+ }>;
72
+ };
73
+ export declare const defaultHost = "https://xoxno.com";
74
+ declare const hosts: readonly ["https://xoxno.com", "https://next.xoxno.com", "https://devnet.xoxno.com"];
75
+ export declare function getHost(propHost: IHost): "https://xoxno.com" | "https://next.xoxno.com" | "https://devnet.xoxno.com";
76
+ export type IHost = (typeof hosts)[number];
77
+ export declare const apiMappers: Record<IHost, string>;
78
+ export declare function renderGenericEmail(Email: ReactElement): Promise<{
79
+ html: string;
80
+ plainText: string;
81
+ subject: string;
82
+ }>;
83
+ export {};
84
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/email/utils.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAsB,MAAM,OAAO,CAAC;AAU5E,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,KAAK,4BAA4B,CAAC;AA+B/C,eAAO,MAAM,YAAY,yBAGtB,iBAAiB,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,sBA+CtC,CAAC;AAEF,wBAAgB,MAAM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