@xoxno/sdk-js 0.1.281 → 0.1.282

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 (109) hide show
  1. package/package.json +2 -20
  2. package/dist/848.cjs.js +0 -2
  3. package/dist/848.cjs.js.LICENSE.txt +0 -29
  4. package/dist/848.esm.js +0 -2
  5. package/dist/848.esm.js.LICENSE.txt +0 -29
  6. package/dist/dist/email.esm.d.ts +0 -27
  7. package/dist/dist/email.esm.d.ts.map +0 -1
  8. package/dist/email/approval-accepted-email.d.ts +0 -21
  9. package/dist/email/approval-accepted-email.d.ts.map +0 -1
  10. package/dist/email/approval-pending-email.d.ts +0 -21
  11. package/dist/email/approval-pending-email.d.ts.map +0 -1
  12. package/dist/email/approval-rejected-email.d.ts +0 -21
  13. package/dist/email/approval-rejected-email.d.ts.map +0 -1
  14. package/dist/email/checkedin-email.d.ts +0 -23
  15. package/dist/email/checkedin-email.d.ts.map +0 -1
  16. package/dist/email/email.d.ts +0 -36
  17. package/dist/email/email.d.ts.map +0 -1
  18. package/dist/email/event-email.d.ts +0 -24
  19. package/dist/email/event-email.d.ts.map +0 -1
  20. package/dist/email/invite-email.d.ts +0 -25
  21. package/dist/email/invite-email.d.ts.map +0 -1
  22. package/dist/email/types.d.ts +0 -63
  23. package/dist/email/types.d.ts.map +0 -1
  24. package/dist/email/utils.d.ts +0 -95
  25. package/dist/email/utils.d.ts.map +0 -1
  26. package/dist/email.cjs.js +0 -1854
  27. package/dist/email.cjs.js.LICENSE.txt +0 -82
  28. package/dist/email.d.ts +0 -10
  29. package/dist/email.d.ts.map +0 -1
  30. package/dist/email.esm.js +0 -1854
  31. package/dist/email.esm.js.LICENSE.txt +0 -82
  32. package/dist/scripts/renderEmail.d.ts +0 -2
  33. package/dist/scripts/renderEmail.d.ts.map +0 -1
  34. package/dist/src/collection/index.d.ts +0 -301
  35. package/dist/src/collection/index.d.ts.map +0 -1
  36. package/dist/src/common/index.d.ts +0 -72
  37. package/dist/src/common/index.d.ts.map +0 -1
  38. package/dist/src/email/approval-accepted-email.d.ts +0 -21
  39. package/dist/src/email/approval-accepted-email.d.ts.map +0 -1
  40. package/dist/src/email/approval-pending-email.d.ts +0 -21
  41. package/dist/src/email/approval-pending-email.d.ts.map +0 -1
  42. package/dist/src/email/approval-rejected-email.d.ts +0 -21
  43. package/dist/src/email/approval-rejected-email.d.ts.map +0 -1
  44. package/dist/src/email/checkedin-email.d.ts +0 -23
  45. package/dist/src/email/checkedin-email.d.ts.map +0 -1
  46. package/dist/src/email/email.d.ts +0 -36
  47. package/dist/src/email/email.d.ts.map +0 -1
  48. package/dist/src/email/event-email.d.ts +0 -24
  49. package/dist/src/email/event-email.d.ts.map +0 -1
  50. package/dist/src/email/invite-email.d.ts +0 -25
  51. package/dist/src/email/invite-email.d.ts.map +0 -1
  52. package/dist/src/email/types.d.ts +0 -63
  53. package/dist/src/email/types.d.ts.map +0 -1
  54. package/dist/src/email/utils.d.ts +0 -95
  55. package/dist/src/email/utils.d.ts.map +0 -1
  56. package/dist/src/email.d.ts +0 -10
  57. package/dist/src/email.d.ts.map +0 -1
  58. package/dist/src/index.d.ts +0 -10
  59. package/dist/src/index.d.ts.map +0 -1
  60. package/dist/src/interactions/index.d.ts +0 -256
  61. package/dist/src/interactions/index.d.ts.map +0 -1
  62. package/dist/src/interactor.d.ts +0 -6
  63. package/dist/src/interactor.d.ts.map +0 -1
  64. package/dist/src/launchpad/index.d.ts +0 -79
  65. package/dist/src/launchpad/index.d.ts.map +0 -1
  66. package/dist/src/nft/index.d.ts +0 -69
  67. package/dist/src/nft/index.d.ts.map +0 -1
  68. package/dist/src/scripts/renderEmail.d.ts +0 -2
  69. package/dist/src/scripts/renderEmail.d.ts.map +0 -1
  70. package/dist/src/staking/index.d.ts +0 -12
  71. package/dist/src/staking/index.d.ts.map +0 -1
  72. package/dist/src/types/collection.d.ts +0 -856
  73. package/dist/src/types/collection.d.ts.map +0 -1
  74. package/dist/src/types/common.d.ts +0 -72
  75. package/dist/src/types/common.d.ts.map +0 -1
  76. package/dist/src/types/event.d.ts +0 -125
  77. package/dist/src/types/event.d.ts.map +0 -1
  78. package/dist/src/types/index.d.ts +0 -9
  79. package/dist/src/types/index.d.ts.map +0 -1
  80. package/dist/src/types/interactions.d.ts +0 -98
  81. package/dist/src/types/interactions.d.ts.map +0 -1
  82. package/dist/src/types/nft.d.ts +0 -122
  83. package/dist/src/types/nft.d.ts.map +0 -1
  84. package/dist/src/types/staking.d.ts +0 -68
  85. package/dist/src/types/staking.d.ts.map +0 -1
  86. package/dist/src/types/trading.d.ts +0 -115
  87. package/dist/src/types/trading.d.ts.map +0 -1
  88. package/dist/src/types/user.d.ts +0 -303
  89. package/dist/src/types/user.d.ts.map +0 -1
  90. package/dist/src/users/index.d.ts +0 -208
  91. package/dist/src/users/index.d.ts.map +0 -1
  92. package/dist/src/utils/SmartContractAbis.d.ts +0 -16
  93. package/dist/src/utils/SmartContractAbis.d.ts.map +0 -1
  94. package/dist/src/utils/SmartContractService.d.ts +0 -4
  95. package/dist/src/utils/SmartContractService.d.ts.map +0 -1
  96. package/dist/src/utils/api.d.ts +0 -31
  97. package/dist/src/utils/api.d.ts.map +0 -1
  98. package/dist/src/utils/const.d.ts +0 -14
  99. package/dist/src/utils/const.d.ts.map +0 -1
  100. package/dist/src/utils/getActivity.d.ts +0 -11
  101. package/dist/src/utils/getActivity.d.ts.map +0 -1
  102. package/dist/src/utils/helpers.d.ts +0 -4
  103. package/dist/src/utils/helpers.d.ts.map +0 -1
  104. package/dist/src/utils/regex.d.ts +0 -3
  105. package/dist/src/utils/regex.d.ts.map +0 -1
  106. package/dist/src/utils/scCalls.d.ts +0 -10
  107. package/dist/src/utils/scCalls.d.ts.map +0 -1
  108. package/dist/src/utils.d.ts +0 -28
  109. package/dist/src/utils.d.ts.map +0 -1
@@ -1,115 +0,0 @@
1
- import type { Marketplace, MetadataAttribute, RangeFilter, TradingActivity } from './collection';
2
- export declare enum NftActivityType {
3
- NFT_CREATE = "nftCreate",
4
- NFT_BURN = "nftBurn",
5
- NFT_UPDATE = "nftUpdate",
6
- NFT_TRANSFER = "nftTransfer",
7
- LISTING_CREATE = "listingCreate",
8
- LISTING_WITHDRAW = "listingWithdraw",
9
- LISTING_UPDATE = "listingUpdate",
10
- AUCTION_BID = "auctionBid",
11
- AUCTION_OUT_BID = "auctionOutBid",
12
- OFFER_CREATE = "offerCreate",
13
- OFFER_WITHDRAW = "offerWithdraw",
14
- OFFER_REJECT = "offerReject",
15
- GLOBAL_OFFER_CREATE = "globalOfferCreate",
16
- GLOBAL_OFFER_WITHDRAW = "globalOfferWithdraw",
17
- TRADE = "trade",
18
- BULK_TRADE = "bulkTrade",
19
- AUCTION_TRADE = "auctionTrade",
20
- OTHER_TRADE = "otherTrade",// fiat or binance buy
21
- OFFER_TRADE = "offerTrade",
22
- GLOBAL_OFFER_TRADE = "globalOfferTrade",
23
- STAKE = "stake",
24
- UN_STAKE = "unStake"
25
- }
26
- export interface TradingActivityQueryFilter {
27
- filters: {
28
- txHash?: string[];
29
- activityAddress?: string[];
30
- source?: Marketplace[];
31
- activityType?: NftActivityType[];
32
- from?: string[];
33
- to?: string[];
34
- activityData?: {
35
- collection?: string[];
36
- identifier?: string[];
37
- };
38
- range?: RangeFilter[];
39
- };
40
- strictSelect?: boolean;
41
- includeCount?: boolean;
42
- top: number;
43
- skip: number;
44
- select?: SelectFieldsTradingActivity[];
45
- orderBy?: OrderByTradingActivity[];
46
- }
47
- export interface TradincActivityArgs {
48
- /** The collections to fetch the trading activity from */
49
- collections?: string[];
50
- /** The identifier of the NFTs to fetch the trading activity from */
51
- identifiers?: string[];
52
- /** The wallets for which to fetch the trading activity */
53
- wallets?: string[];
54
- from?: string[];
55
- to?: string[];
56
- /** The marketplaces to fetch the trading activity from */
57
- source?: Marketplace[];
58
- activityType?: NftActivityType[];
59
- /** The tokens to fetch the trading activity from */
60
- placedInToken?: string[];
61
- /** The price range to fetch the trading activity from */
62
- priceRange?: {
63
- min: number;
64
- max: number;
65
- };
66
- /** The rank range to fetch the trading activity from */
67
- rankRange?: {
68
- min: number;
69
- max: number;
70
- };
71
- /** The timestamp range to fetch the trading activity from */
72
- timestampRange?: {
73
- min: number;
74
- max: number;
75
- };
76
- /** The number of results to return */
77
- top?: number;
78
- /** The number of results to skip */
79
- skip?: number;
80
- /** The fields to select from the trading activity */
81
- select?: SelectFieldsTradingActivity[];
82
- includeCount?: boolean;
83
- strictSelect?: boolean;
84
- /** The fields to order the trading activity by */
85
- orderBy?: OrderByTradingActivity[];
86
- /** The attributes to fetch the trading activity from */
87
- attributes?: MetadataAttribute[];
88
- }
89
- export declare enum OrderByTradingActivity {
90
- PriceHighToLow = "activityData.egldValue desc",
91
- PriceLowToHigh = "activityData.egldValue asc",
92
- RecentPlaced = "timestamp desc",
93
- OldestPlaced = "timestamp asc"
94
- }
95
- export declare enum SelectFieldsTradingActivity {
96
- 'attributes' = 0,
97
- 'collection' = 1,
98
- 'offer_id' = 2,
99
- 'owner' = 3,
100
- 'short_price' = 4,
101
- 'price' = 5,
102
- 'id' = 6,
103
- 'dataType' = 7,
104
- 'marketplace' = 8,
105
- 'payment_token' = 9
106
- }
107
- export interface TradingActivityResponse {
108
- hasMoreResults: boolean;
109
- /** The total count of the results for the specific query */
110
- count?: number;
111
- resources: TradingActivity[];
112
- getNextPagePayload: TradincActivityArgs;
113
- empty: boolean;
114
- }
115
- //# sourceMappingURL=trading.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trading.d.ts","sourceRoot":"","sources":["../../../src/types/trading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,eAAe,EAChB,MAAM,cAAc,CAAA;AAErB,oBAAY,eAAe;IAEzB,UAAU,cAAc;IACxB,QAAQ,YAAY;IACpB,UAAU,cAAc;IACxB,YAAY,gBAAgB;IAE5B,cAAc,kBAAkB;IAChC,gBAAgB,oBAAoB;IACpC,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,WAAW,uBAAuB;IACtC,cAAc,EAAE,OAAO,CAAA;IACvB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,eAAe,EAAE,CAAA;IAC5B,kBAAkB,EAAE,mBAAmB,CAAA;IACvC,KAAK,EAAE,OAAO,CAAA;CACf"}
@@ -1,303 +0,0 @@
1
- import type { ISocials } from './collection';
2
- import type { NftData, Owner } from './nft';
3
- import type { StakingSummaryPools } from './staking';
4
- export interface BulkAccount {
5
- address: string;
6
- nonce: number;
7
- username?: string;
8
- balance: string;
9
- balanceShort: number;
10
- }
11
- export interface IUserProfileSearch {
12
- address: string;
13
- isVerified: boolean;
14
- profile: string;
15
- herotag: string;
16
- addressTrimmed: string;
17
- }
18
- export interface IUserSettings {
19
- dataType: 'userSettings';
20
- emailNotifications: {
21
- enabled: boolean;
22
- emailAddress: string;
23
- isEmailVerificationPending: boolean;
24
- isEmailVerified: boolean;
25
- isWeb2User: boolean;
26
- timestamp?: number;
27
- };
28
- notificationPreferences: {
29
- sales: boolean;
30
- bids: boolean;
31
- offersReceived: boolean;
32
- offersAccepted: boolean;
33
- offersRejected: boolean;
34
- deposits: boolean;
35
- };
36
- address: string;
37
- id: string;
38
- _ts: number;
39
- }
40
- export interface IUserProfile {
41
- dataType: 'userProfile';
42
- hasKYC?: boolean;
43
- address: string;
44
- isBanned: boolean;
45
- isVerified: boolean;
46
- socials: ISocials;
47
- favorites: string[];
48
- joinedDate: number;
49
- id: string;
50
- profile: string;
51
- banner: string;
52
- description: string;
53
- herotag: string;
54
- isCreator: boolean;
55
- creatorInfo: {
56
- contractAddress?: string;
57
- name?: string;
58
- };
59
- isPoolOwner: boolean;
60
- followedCollections: string[];
61
- userDeposit: UserDeposit[];
62
- _ts: number;
63
- shard: number;
64
- followCount: number;
65
- userSettings?: IUserSettings;
66
- }
67
- export interface UserDeposit {
68
- balanceShort: number;
69
- balance: string;
70
- paymentToken: string;
71
- paymentTokenNonce: number;
72
- usdPrice: number;
73
- }
74
- export interface UserInventory {
75
- collection: string;
76
- inventoryCount: number;
77
- listedCount: number;
78
- stakedCount: number;
79
- floorPrice: number;
80
- name: string;
81
- isVerified: boolean;
82
- profile: string;
83
- banner: string;
84
- value: number;
85
- }
86
- export interface UserOffers {
87
- hasMoreResults: boolean;
88
- count: number;
89
- resources: OfferBody[];
90
- }
91
- export interface ArgsUserOffers {
92
- address: string;
93
- type: OfferType;
94
- skip: number;
95
- top: number;
96
- }
97
- export declare enum OfferType {
98
- Received = "received",
99
- Placed = "placed"
100
- }
101
- export interface OfferBody {
102
- dataType: string;
103
- identifier: string;
104
- collection: string;
105
- offerId: number;
106
- paymentToken: string;
107
- paymentTokenNonce: number;
108
- price: string;
109
- priceShort: number;
110
- deadline: number;
111
- timestamp: number;
112
- owner: Owner;
113
- quantity: number;
114
- marketplace: string;
115
- id: string;
116
- _ts: number;
117
- nftInfo: NftData;
118
- isActive: boolean;
119
- usdValue: number;
120
- floorPriceMargin: number;
121
- floorPrice: number;
122
- }
123
- export type Nfts = {
124
- count: number;
125
- resultsCount: number;
126
- results: NftData[];
127
- empty: boolean;
128
- };
129
- export declare enum Type {
130
- NonFungibleESDT = "NonFungibleESDT"
131
- }
132
- export type TickerElement = {
133
- ticker: string;
134
- name: string;
135
- };
136
- export type UserTokenInventory = {
137
- tokens: EsdtToken[];
138
- esdts: TokenWorth;
139
- stables: TokenWorth;
140
- wallet: TokenWorth;
141
- };
142
- export type TokenWorth = {
143
- usdValue: number;
144
- egldValue: number;
145
- weight: number;
146
- };
147
- export type UserNetworkAccount = {
148
- address: string;
149
- nonce: number;
150
- balance: string;
151
- balanceShort: number;
152
- usdValue: number;
153
- username?: string;
154
- shard: number;
155
- guarded: boolean;
156
- activeGuardian: ActiveGuardian;
157
- };
158
- export type ActiveGuardian = {
159
- activationEpoch: number;
160
- address: string;
161
- serviceUID: string;
162
- };
163
- export type EsdtToken = {
164
- nonce: number;
165
- identifier: string;
166
- decimals: number;
167
- balance: string;
168
- ticker: string;
169
- name: string;
170
- shortBalance: number;
171
- usdPrice: number;
172
- usdValue: number;
173
- egldValue: number;
174
- assets: Assets;
175
- isAshSupported: boolean;
176
- weight: number;
177
- };
178
- export type Assets = {
179
- pngUrl: string;
180
- svgUrl: string;
181
- };
182
- export type CreatorProfile = {
183
- name: string;
184
- profile: string;
185
- banner: string;
186
- description?: string;
187
- socials?: ISocials;
188
- joinedDate?: number;
189
- contractAddress: string;
190
- address: string;
191
- followCount: number;
192
- creatorTag: string;
193
- _ts: number;
194
- };
195
- export interface RewardStakinSummary {
196
- tokenIdentifier: string;
197
- tokenNonce: number;
198
- amount: string;
199
- amountShort: number;
200
- usdValue: number;
201
- }
202
- export interface RewardAvaiblePools {
203
- tokenIdentifier: string;
204
- tokenNonce: number;
205
- rewardPerEpochShort: number;
206
- rewardBalanceShort: number;
207
- rewardBalance: string;
208
- rewardPerDayPerNft: number;
209
- usdValue: number;
210
- }
211
- export interface UserPoolStakingInfo {
212
- nftDocs: NftData[];
213
- poolDoc: StakingSummaryPools;
214
- }
215
- export interface UserAnalyticSummary {
216
- Purchase: Purchase;
217
- Sale: Purchase;
218
- }
219
- export interface Purchase {
220
- count: number;
221
- volume: number;
222
- min: Max;
223
- max: Max;
224
- avg: Avg;
225
- }
226
- export interface Avg {
227
- price: number;
228
- }
229
- export interface Max {
230
- price: number;
231
- txHash: string;
232
- timestamp: number;
233
- identifier: string;
234
- }
235
- export interface UserStats {
236
- wallet: Wallet;
237
- totalVolume: number;
238
- totalTrades: number;
239
- totalCollections: number;
240
- totalNfts: number;
241
- totalPartners: number;
242
- buyerVolume: number;
243
- buyerTrades: number;
244
- buyerNfts: number;
245
- buyerCollections: number;
246
- buyerPartners: number;
247
- buyerMaxPriceData: PriceData | null;
248
- buyerMinPriceData: PriceData | null;
249
- sellerVolume: number;
250
- sellerTrades: number;
251
- sellerNfts: number;
252
- sellerCollections: number;
253
- sellerPartners: number;
254
- sellerMaxPriceData: PriceData;
255
- sellerMinPriceData: PriceData;
256
- }
257
- export interface PriceData {
258
- price: number;
259
- timestamp: number;
260
- identifier: string;
261
- txHash: string;
262
- usdValue: number;
263
- nftInfo: Pick<NftData, 'identifier' | 'collection' | 'name' | 'metadata' | 'url' | 'wasProcessed' | 'media'>;
264
- }
265
- export interface Wallet {
266
- address: string;
267
- profile: string;
268
- username: string;
269
- isVerified: boolean;
270
- isCreator: boolean;
271
- owned: number;
272
- listed: number;
273
- followCount: number;
274
- }
275
- export interface StakingCreatorInfo {
276
- address: string;
277
- ownedPools: number[];
278
- ownedCollections: string[];
279
- cutFee: number;
280
- _ts: number;
281
- }
282
- export interface UserXOXNODrop {
283
- wallet: Wallet;
284
- rank: number;
285
- tokenAllocation: number;
286
- totalScore: number;
287
- }
288
- export interface Wallet {
289
- address: string;
290
- addressTrimmed: string;
291
- profile: string;
292
- username: string;
293
- isVerified: boolean;
294
- }
295
- export interface IOwnerInfo {
296
- registered: string[];
297
- availableForRegister: string[];
298
- }
299
- export type IApiShareholder = {
300
- address: string;
301
- share: number;
302
- };
303
- //# sourceMappingURL=user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAEpD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,MAAM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CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,oBAAoB,EAAE,MAAM,EAAE,CAAA;CAC/B;AAED,MAAM,MAAM,eAAe,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA"}
@@ -1,208 +0,0 @@
1
- import type { CollectionCreatorInfo, CreatorInfo, EventCreatorInfo, GetNFTsArgs, SearchNFTsResponse, StakingStatus, StakingSummaryPools, StakingSummaryPoolsSlim, StatusResponse, SuggestNFTsArgs, SuggestResults, TradincActivityArgs, TradingActivityResponse } from '../types';
2
- import type { ArgsUserOffers, BulkAccount, CreatorProfile, IApiShareholder, IOwnerInfo, IUserProfile, StakingCreatorInfo, UserAnalyticSummary, UserInventory, UserNetworkAccount, UserOffers, UserPoolStakingInfo, UserStats, UserTokenInventory, UserXOXNODrop } from '../types/user';
3
- export declare class UserModule {
4
- private api;
5
- private collection;
6
- constructor();
7
- /**
8
- * Returns the user profile
9
- *
10
- * @param {String} address - Address of the user
11
- * @returns {IUserProfile}
12
- */
13
- getUserProfile: (address: string) => Promise<IUserProfile>;
14
- /**
15
- * Returns the wallet accounts
16
- *
17
- * @param {String[]} addresses - Addresses of the user
18
- * @returns {BulkAccount[]}
19
- */
20
- getBulkAccounts: (addresses: string[]) => Promise<BulkAccount[]>;
21
- /**
22
- * Returns the user account info that inclues nonce, guardian data, esdtTokens
23
- *
24
- * @param {String} address - Address of the user
25
- * @returns {UserAccountInfo}
26
- */
27
- getUserAccount: (address: string) => Promise<UserNetworkAccount>;
28
- /**
29
- * Returns the user account info that inclues nonce, guardian data, esdtTokens
30
- *
31
- * @param {String} address - Address of the user
32
- * @returns {UserAccountInfo}
33
- */
34
- getUserTokenInventory: (address: string) => Promise<UserTokenInventory>;
35
- /**
36
- * Gets user's inventory
37
- *
38
- * @param {String} address - User's address
39
- * @returns {UserInventory} User's inventory
40
- */
41
- getUserSummaryInventory: (address: string, activeAuctions?: boolean) => Promise<UserInventory[]>;
42
- /**
43
- * Fetches the user's NFTs listed on the marketplaces
44
- * @param address - The user's address
45
- * @returns {UserInventory} - A list of token ids and the price
46
- */
47
- getUserNFTs: (args: GetNFTsArgs) => Promise<SearchNFTsResponse>;
48
- /**
49
- * @name getUserOffers
50
- * @description Fetches all offers sent or received associated with a user address
51
- * @param {String} address - The user's wallet address
52
- * @returns {UserOffers} - The user's listings
53
- */
54
- getUserOffers: (args: ArgsUserOffers) => Promise<UserOffers>;
55
- /**
56
- * @public
57
- * @async
58
- * @function suggestUsers
59
- * @param {SuggestNFTsArgs} args - An object containing the necessary parameters to fetch suggested users results.
60
- * @returns {Promise<SuggestResults>} A promise that resolves to the fetched users results.
61
- *
62
- * This function fetches suggested users results based on the provided arguments. It takes an object with the following properties:
63
- * - name (string): The name to search for (required).
64
- * - top (number, optional): The maximum number of results to return (default is 35, cannot be greater than 100).
65
- * - skip (number, optional): The number of results to skip (default is 0).
66
- *
67
- * Finally, it returns a promise that resolves to the fetched users results.
68
- */
69
- suggestUsers: (args: SuggestNFTsArgs) => Promise<SuggestResults>;
70
- /**
71
- * Retrieves trading history based on the provided arguments.
72
- *
73
- * @param {TradincActivityArgs} args - The arguments for filtering the trading activity.
74
- * @returns {Promise<TradingActivityResponse>} A promise resolving to a TradingActivityResponse object containing the activity.
75
- * @throws {Error} Throws an error if the 'top' argument is greater than 100.
76
- */
77
- getTradingActivity: (args: TradincActivityArgs) => Promise<TradingActivityResponse>;
78
- /** Gets user's creator profile
79
- * @param {String} address - User's address
80
- * @returns {CreatorProfile} User's creator profile struct
81
- * @throws {Error} Throws an error if the address is invalid
82
- * */
83
- getUserCreatorProfile: (address: string) => Promise<CreatorProfile>;
84
- /** Gets user's creator profile
85
- * @param {String} address - User's address
86
- * @returns {IMintInfo[]} User's creator profile struct
87
- * @throws {Error} Throws an error if the address is invalid
88
- * */
89
- getCreatorListings: (address: string) => Promise<CollectionCreatorInfo>;
90
- /** Gets user's creator info
91
- * @param {String} address - User's address
92
- * @returns {EventCreatorInfo} User's creator info
93
- * @throws {Error} Throws an error if the address is invalid
94
- * */
95
- getCreatorEvents: (address: string, extra?: RequestInit) => Promise<EventCreatorInfo>;
96
- /** Gets user's staking info
97
- * @param {String} address - User's address
98
- * @returns {UserStakingSummary[]} User's staking info
99
- * @throws {Error} Throws an error if the address is invalid
100
- * */
101
- getUserStakingSummary: (address: string) => Promise<StakingSummaryPoolsSlim[]>;
102
- /** Gets user's staking info
103
- * @param {String} address - User's address
104
- * @returns {UserStakingAvaiblePools[]} User's staking info
105
- * @throws {Error} Throws an error if the address is invalid
106
- * */
107
- getUserStakingAailable: (address: string) => Promise<StakingSummaryPools[]>;
108
- /** Gets user's creator info
109
- * @param {String} address - User's address
110
- * @returns {CreatorInfo} User's creator info
111
- * @throws {Error} Throws an error if the address is invalid
112
- * */
113
- getUserCreatorInfo: (address: string, extra?: RequestInit) => Promise<CreatorInfo>;
114
- /** Gets pool details
115
- * @param {String} address - User's address
116
- * @param {String} collection - Collection ticker
117
- * @returns {UserCollectionStaking} User's creator info
118
- * @throws {Error} Throws an error if the address is invalid
119
- * */
120
- getUserCollectionStaking: (address: string, collection: string) => Promise<StakingSummaryPools[]>;
121
- /** Gets pool details
122
- * @param {number} poolId - User's address
123
- * @returns {CreatoPoolDetailsrInfo} User's creator info
124
- * @throws {Error} Throws an error if the address is invalid
125
- * */
126
- getUserPoolStaking: (address: string, poolId: number, status: StakingStatus) => Promise<UserPoolStakingInfo>;
127
- /** Gets owned pools by address
128
- * @param {string} address - User's address
129
- * @returns {StakingSummaryPools[]} User pools
130
- * @throws {Error} Throws an error if the address is invalid
131
- * */
132
- getOwnedPoolsByAddress: (address: string) => Promise<StakingSummaryPools[]>;
133
- /**
134
- * Gets user's analytics summary
135
- *
136
- * @param {String} address - User's address
137
- * @returns {UserAnalyticSummary} User's analytics summary
138
- */
139
- getUserAnalyticsSummary: (address: string) => Promise<UserAnalyticSummary>;
140
- /** Gets user's favorite NFTs
141
- * @param {String} address - User's address
142
- * @param {number} top - Top
143
- * @param {number} skip - Skip
144
- * @returns {NftData[]} Array of NFTs
145
- * @throws {Error} Throws an error if the address is invalid
146
- * */
147
- getUserFavoriteNFTs: (address: string, top: number, skip: number) => Promise<SearchNFTsResponse>;
148
- /** Gets user's favorite collection tickers
149
- * @param {String} address - User's address
150
- * @returns {String[]} Array of tickers
151
- * @throws {Error} Throws an error if the address is invalid
152
- * */
153
- getUserFavoriteCollectionTickers: (address: string) => Promise<string[]>;
154
- /** Get if the creator tag is registered already
155
- * @param {String} creatorTag - The creator tag that needs to be checked
156
- * @returns {StatusResponse} True or false
157
- * */
158
- getIsCreatorRegistered: (creatorTag: string) => Promise<StatusResponse>;
159
- /**
160
- * @public
161
- * @async
162
- * @function getUsersStats
163
- * @returns {Promise<UserStats[]>} A promise that resolves to the fetched users results.
164
- */
165
- getUsersStats: ({ top, skip, orderBy, }: {
166
- top: number;
167
- skip: number;
168
- orderBy: string;
169
- }) => Promise<UserStats[]>;
170
- /**
171
- * @public
172
- * @async
173
- * @function getStakingCreatorInfo
174
- * @param {String} address - The user's address.
175
- * @returns {Promise<StakingCreatorInfo>} A promise that resolves to the fetched staking creator info.
176
- */
177
- getStakingCreatorInfo: (address: string) => Promise<StakingCreatorInfo>;
178
- /**
179
- * @public
180
- * @async
181
- * @function getUsersDrop
182
- * @returns {Promise<UserXOXNODrop[]>} A promise that resolves to the fetched users results.
183
- */
184
- getUsersDrop: ({ top, skip, address, }: {
185
- top: number;
186
- skip: number;
187
- address?: string;
188
- }) => Promise<UserXOXNODrop[]>;
189
- /** Gets user's creator info
190
- * @param {String} address - User's address
191
- * @returns {IOwnerInfo} User's creator info
192
- * @throws {Error} Throws an error if the address is invalid
193
- * */
194
- getUserOwnerCollections: (address: string) => Promise<IOwnerInfo>;
195
- /** Gets royalties shares creator info
196
- * @param {String} address - User's address
197
- * @returns {IApiShareholder[]} Royalties shares creator info
198
- * @throws {Error} Throws an error if the address is invalid
199
- * */
200
- getRoyaltiesSharesCreator: (address: string) => Promise<IApiShareholder[]>;
201
- /** Gets mint shares creator info
202
- * @param {String} address - User's address
203
- * @returns {IApiShareholder[]} Mint revenue shares creator info
204
- * @throws {Error} Throws an error if the address is invalid
205
- * */
206
- getMintSharesCreator: (address: string, collectionTag: string) => Promise<IApiShareholder[]>;
207
- }
208
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/users/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,EACf,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,mBAAmB,EACnB,SAAS,EACT,kBAAkB,EAClB,aAAa,EACd,MAAM,eAAe,CAAA;AAKtB,qBAAa,UAAU;IACrB,OAAO,CAAC,GAAG,CAAa;IACxB,OAAO,CAAC,UAAU,CAAkB;;IAMpC;;;;;OAKG;IACI,cAAc,YAAmB,MAAM,KAAG,OAAO,CAAC,YAAY,CAAC,CAMrE;IAED;;;;;OAKG;IACI,eAAe,cACT,M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multiversx/sdk-core/out/smartcontracts/typesystem/abiRegistry';
2
- export declare class SmartContractAbis {
3
- private static manager;
4
- private static exchange;
5
- private static minter;
6
- private static market;
7
- private static staking;
8
- private static p2p;
9
- static getMarket(): Promise<AbiRegistry>;
10
- static getManager(): Promise<AbiRegistry>;
11
- static getMinter(): Promise<AbiRegistry>;
12
- static getStaking(): Promise<AbiRegistry>;
13
- static getExchange(): Promise<AbiRegistry>;
14
- static getP2P(): Promise<AbiRegistry>;
15
- }
16
- //# sourceMappingURL=SmartContractAbis.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SmartContractAbis.d.ts","sourceRoot":"","sources":["../../../src/utils/SmartContractAbis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gEAAgE,CAAA;AAM5F,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAC,OAAO,CAAa;IACnC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAa;IACpC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAa;IAClC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAa;IAClC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAa;IACnC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAa;WAEX,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC;WAiBjC,UAAU,IAAI,OAAO,CAAC,WAAW,CAAC;WAiBlC,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC;WAiBjC,UAAU,IAAI,OAAO,CAAC,WAAW,CAAC;WAiBlC,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC;WAiBnC,MAAM,IAAI,OAAO,CAAC,WAAW,CAAC;CAiBnD"}
@@ -1,4 +0,0 @@
1
- import { SmartContract } from '@multiversx/sdk-core/out/smartcontracts/smartContract';
2
- import type { AbiRegistry } from '@multiversx/sdk-core/out/smartcontracts/typesystem/abiRegistry';
3
- export declare const getSmartContract: (abiRegistry: AbiRegistry, address: string) => SmartContract;
4
- //# sourceMappingURL=SmartContractService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SmartContractService.d.ts","sourceRoot":"","sources":["../../../src/utils/SmartContractService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AACrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gEAAgE,CAAA;AAEjG,eAAO,MAAM,gBAAgB,gBAAiB,WAAW,WAAW,MAAM,kBAKzE,CAAA"}