@xoxno/sdk-js 0.1.179-alpha → 0.1.182
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.
- package/package.json +1 -1
- package/dist/collection/index.d.ts +0 -297
- package/dist/collection/index.d.ts.map +0 -1
- package/dist/collection/index.js +0 -692
- package/dist/collection/index.js.map +0 -1
- package/dist/common/index.d.ts +0 -71
- package/dist/common/index.d.ts.map +0 -1
- package/dist/common/index.js +0 -145
- package/dist/common/index.js.map +0 -1
- package/dist/email/Markdown.d.ts +0 -4
- package/dist/email/Markdown.d.ts.map +0 -1
- package/dist/email/email.d.ts +0 -31
- package/dist/email/email.d.ts.map +0 -1
- package/dist/email/email.js +0 -248
- package/dist/email/email.js.map +0 -1
- package/dist/email/event-email.d.ts +0 -20
- package/dist/email/event-email.d.ts.map +0 -1
- package/dist/email/post-email.d.ts +0 -19
- package/dist/email/post-email.d.ts.map +0 -1
- package/dist/email/types.d.ts +0 -68
- package/dist/email/types.d.ts.map +0 -1
- package/dist/email/types.js +0 -30
- package/dist/email/types.js.map +0 -1
- package/dist/email/utils.d.ts +0 -84
- package/dist/email/utils.d.ts.map +0 -1
- package/dist/email-node.cjs.js +0 -1854
- package/dist/email-node.cjs.js.LICENSE.txt +0 -102
- package/dist/email-node.esm.js +0 -1854
- package/dist/email-node.esm.js.LICENSE.txt +0 -102
- package/dist/email.cjs.js +0 -1854
- package/dist/email.cjs.js.LICENSE.txt +0 -102
- package/dist/email.d.ts +0 -15
- package/dist/email.d.ts.map +0 -1
- package/dist/email.esm.js +0 -1854
- package/dist/email.esm.js.LICENSE.txt +0 -102
- package/dist/email.js +0 -3
- package/dist/email.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +0 -1
- package/dist/index.esm.js +0 -1
- package/dist/index.js +0 -8
- package/dist/index.js.map +0 -1
- package/dist/interactions/index.d.ts +0 -256
- package/dist/interactions/index.d.ts.map +0 -1
- package/dist/interactions/index.js +0 -700
- package/dist/interactions/index.js.map +0 -1
- package/dist/interactor.cjs.js +0 -2
- package/dist/interactor.cjs.js.LICENSE.txt +0 -10
- package/dist/interactor.d.ts +0 -6
- package/dist/interactor.d.ts.map +0 -1
- package/dist/interactor.esm.js +0 -2
- package/dist/interactor.esm.js.LICENSE.txt +0 -10
- package/dist/interactor.js +0 -6
- package/dist/interactor.js.map +0 -1
- package/dist/launchpad/index.d.ts +0 -79
- package/dist/launchpad/index.d.ts.map +0 -1
- package/dist/launchpad/index.js +0 -140
- package/dist/launchpad/index.js.map +0 -1
- package/dist/nft/index.d.ts +0 -69
- package/dist/nft/index.d.ts.map +0 -1
- package/dist/nft/index.js +0 -109
- package/dist/nft/index.js.map +0 -1
- package/dist/staking/index.d.ts +0 -12
- package/dist/staking/index.d.ts.map +0 -1
- package/dist/staking/index.js +0 -17
- package/dist/staking/index.js.map +0 -1
- package/dist/types/collection.d.ts +0 -851
- package/dist/types/collection.d.ts.map +0 -1
- package/dist/types/collection.js +0 -192
- package/dist/types/collection.js.map +0 -1
- package/dist/types/common.d.ts +0 -72
- package/dist/types/common.d.ts.map +0 -1
- package/dist/types/common.js +0 -2
- package/dist/types/common.js.map +0 -1
- package/dist/types/index.d.ts +0 -8
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -8
- package/dist/types/index.js.map +0 -1
- package/dist/types/interactions.d.ts +0 -97
- package/dist/types/interactions.d.ts.map +0 -1
- package/dist/types/interactions.js +0 -8
- package/dist/types/interactions.js.map +0 -1
- package/dist/types/nft.d.ts +0 -105
- package/dist/types/nft.d.ts.map +0 -1
- package/dist/types/nft.js +0 -2
- package/dist/types/nft.js.map +0 -1
- package/dist/types/staking.d.ts +0 -67
- package/dist/types/staking.d.ts.map +0 -1
- package/dist/types/staking.js +0 -18
- package/dist/types/staking.js.map +0 -1
- package/dist/types/trading.d.ts +0 -115
- package/dist/types/trading.d.ts.map +0 -1
- package/dist/types/trading.js +0 -49
- package/dist/types/trading.js.map +0 -1
- package/dist/types/user.d.ts +0 -302
- package/dist/types/user.d.ts.map +0 -1
- package/dist/types/user.js +0 -10
- package/dist/types/user.js.map +0 -1
- package/dist/users/index.d.ts +0 -202
- package/dist/users/index.d.ts.map +0 -1
- package/dist/users/index.js +0 -380
- package/dist/users/index.js.map +0 -1
- package/dist/utils/SmartContractAbis.d.ts +0 -16
- package/dist/utils/SmartContractAbis.d.ts.map +0 -1
- package/dist/utils/SmartContractAbis.js +0 -84
- package/dist/utils/SmartContractAbis.js.map +0 -1
- package/dist/utils/SmartContractService.d.ts +0 -4
- package/dist/utils/SmartContractService.d.ts.map +0 -1
- package/dist/utils/SmartContractService.js +0 -9
- package/dist/utils/SmartContractService.js.map +0 -1
- package/dist/utils/api.d.ts +0 -31
- package/dist/utils/api.d.ts.map +0 -1
- package/dist/utils/api.js +0 -93
- package/dist/utils/api.js.map +0 -1
- package/dist/utils/const.d.ts +0 -14
- package/dist/utils/const.d.ts.map +0 -1
- package/dist/utils/const.js +0 -14
- package/dist/utils/const.js.map +0 -1
- package/dist/utils/getActivity.d.ts +0 -11
- package/dist/utils/getActivity.d.ts.map +0 -1
- package/dist/utils/getActivity.js +0 -65
- package/dist/utils/getActivity.js.map +0 -1
- package/dist/utils/helpers.d.ts +0 -4
- package/dist/utils/helpers.d.ts.map +0 -1
- package/dist/utils/helpers.js +0 -19
- package/dist/utils/helpers.js.map +0 -1
- package/dist/utils/regex.d.ts +0 -3
- package/dist/utils/regex.d.ts.map +0 -1
- package/dist/utils/regex.js +0 -7
- package/dist/utils/regex.js.map +0 -1
- package/dist/utils/scCalls.d.ts +0 -10
- package/dist/utils/scCalls.d.ts.map +0 -1
- package/dist/utils/scCalls.js +0 -25
- package/dist/utils/scCalls.js.map +0 -1
package/dist/users/index.d.ts
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { CreatorInfo, GetNFTsArgs, IMintInfo, StakingSummaryPools, SearchNFTsResponse, StatusResponse, SuggestNFTsArgs, SuggestResults, TradincActivityArgs, TradingActivityResponse, StakingStatus, StakingSummaryPoolsSlim } from '../types';
|
|
2
|
-
import { 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<IMintInfo[]>;
|
|
90
|
-
/** Gets user's staking info
|
|
91
|
-
* @param {String} address - User's address
|
|
92
|
-
* @returns {UserStakingSummary[]} User's staking info
|
|
93
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
94
|
-
* */
|
|
95
|
-
getUserStakingSummary: (address: string) => Promise<StakingSummaryPoolsSlim[]>;
|
|
96
|
-
/** Gets user's staking info
|
|
97
|
-
* @param {String} address - User's address
|
|
98
|
-
* @returns {UserStakingAvaiblePools[]} User's staking info
|
|
99
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
100
|
-
* */
|
|
101
|
-
getUserStakingAailable: (address: string) => Promise<StakingSummaryPools[]>;
|
|
102
|
-
/** Gets user's creator info
|
|
103
|
-
* @param {String} address - User's address
|
|
104
|
-
* @returns {CreatorInfo} User's creator info
|
|
105
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
106
|
-
* */
|
|
107
|
-
getUserCreatorInfo: (address: string) => Promise<CreatorInfo>;
|
|
108
|
-
/** Gets pool details
|
|
109
|
-
* @param {String} address - User's address
|
|
110
|
-
* @param {String} collection - Collection ticker
|
|
111
|
-
* @returns {UserCollectionStaking} User's creator info
|
|
112
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
113
|
-
* */
|
|
114
|
-
getUserCollectionStaking: (address: string, collection: string) => Promise<StakingSummaryPools[]>;
|
|
115
|
-
/** Gets pool details
|
|
116
|
-
* @param {number} poolId - User's address
|
|
117
|
-
* @returns {CreatoPoolDetailsrInfo} User's creator info
|
|
118
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
119
|
-
* */
|
|
120
|
-
getUserPoolStaking: (address: string, poolId: number, status: StakingStatus) => Promise<UserPoolStakingInfo>;
|
|
121
|
-
/** Gets owned pools by address
|
|
122
|
-
* @param {string} address - User's address
|
|
123
|
-
* @returns {StakingSummaryPools[]} User pools
|
|
124
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
125
|
-
* */
|
|
126
|
-
getOwnedPoolsByAddress: (address: string) => Promise<StakingSummaryPools[]>;
|
|
127
|
-
/**
|
|
128
|
-
* Gets user's analytics summary
|
|
129
|
-
*
|
|
130
|
-
* @param {String} address - User's address
|
|
131
|
-
* @returns {UserAnalyticSummary} User's analytics summary
|
|
132
|
-
*/
|
|
133
|
-
getUserAnalyticsSummary: (address: string) => Promise<UserAnalyticSummary>;
|
|
134
|
-
/** Gets user's favorite NFTs
|
|
135
|
-
* @param {String} address - User's address
|
|
136
|
-
* @param {number} top - Top
|
|
137
|
-
* @param {number} skip - Skip
|
|
138
|
-
* @returns {NftData[]} Array of NFTs
|
|
139
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
140
|
-
* */
|
|
141
|
-
getUserFavoriteNFTs: (address: string, top: number, skip: number) => Promise<SearchNFTsResponse>;
|
|
142
|
-
/** Gets user's favorite collection tickers
|
|
143
|
-
* @param {String} address - User's address
|
|
144
|
-
* @returns {String[]} Array of tickers
|
|
145
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
146
|
-
* */
|
|
147
|
-
getUserFavoriteCollectionTickers: (address: string) => Promise<string[]>;
|
|
148
|
-
/** Get if the creator tag is registered already
|
|
149
|
-
* @param {String} creatorTag - The creator tag that needs to be checked
|
|
150
|
-
* @returns {StatusResponse} True or false
|
|
151
|
-
* */
|
|
152
|
-
getIsCreatorRegistered: (creatorTag: string) => Promise<StatusResponse>;
|
|
153
|
-
/**
|
|
154
|
-
* @public
|
|
155
|
-
* @async
|
|
156
|
-
* @function getUsersStats
|
|
157
|
-
* @returns {Promise<UserStats[]>} A promise that resolves to the fetched users results.
|
|
158
|
-
*/
|
|
159
|
-
getUsersStats: ({ top, skip, orderBy, }: {
|
|
160
|
-
top: number;
|
|
161
|
-
skip: number;
|
|
162
|
-
orderBy: string;
|
|
163
|
-
}) => Promise<UserStats[]>;
|
|
164
|
-
/**
|
|
165
|
-
* @public
|
|
166
|
-
* @async
|
|
167
|
-
* @function getStakingCreatorInfo
|
|
168
|
-
* @param {String} address - The user's address.
|
|
169
|
-
* @returns {Promise<StakingCreatorInfo>} A promise that resolves to the fetched staking creator info.
|
|
170
|
-
*/
|
|
171
|
-
getStakingCreatorInfo: (address: string) => Promise<StakingCreatorInfo>;
|
|
172
|
-
/**
|
|
173
|
-
* @public
|
|
174
|
-
* @async
|
|
175
|
-
* @function getUsersDrop
|
|
176
|
-
* @returns {Promise<UserXOXNODrop[]>} A promise that resolves to the fetched users results.
|
|
177
|
-
*/
|
|
178
|
-
getUsersDrop: ({ top, skip, address, }: {
|
|
179
|
-
top: number;
|
|
180
|
-
skip: number;
|
|
181
|
-
address?: string;
|
|
182
|
-
}) => Promise<UserXOXNODrop[]>;
|
|
183
|
-
/** Gets user's creator info
|
|
184
|
-
* @param {String} address - User's address
|
|
185
|
-
* @returns {IOwnerInfo} User's creator info
|
|
186
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
187
|
-
* */
|
|
188
|
-
getUserOwnerCollections: (address: string) => Promise<IOwnerInfo>;
|
|
189
|
-
/** Gets royalties shares creator info
|
|
190
|
-
* @param {String} address - User's address
|
|
191
|
-
* @returns {IApiShareholder[]} Royalties shares creator info
|
|
192
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
193
|
-
* */
|
|
194
|
-
getRoyaltiesSharesCreator: (address: string) => Promise<IApiShareholder[]>;
|
|
195
|
-
/** Gets mint shares creator info
|
|
196
|
-
* @param {String} address - User's address
|
|
197
|
-
* @returns {IApiShareholder[]} Mint revenue shares creator info
|
|
198
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
199
|
-
* */
|
|
200
|
-
getMintSharesCreator: (address: string, collectionTag: string) => Promise<IApiShareholder[]>;
|
|
201
|
-
}
|
|
202
|
-
//# 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,EACL,WAAW,EACX,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACb,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,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,CAAC;AAKvB,qBAAa,UAAU;IACrB,OAAO,CAAC,GAAG,CAAc;IACzB,OAAO,CAAC,UAAU,CAAmB;;IAMrC;;;;;OAKG;IACI,cAAc,YAAmB,MAAM,KAAG,OAAO,CAAC,YAAY,CAAC,CAMpE;IAEF;;;;;OAKG;IACI,eAAe,cACT,MAAM,EAAE,KAClB,OAAO,CAAC,WAAW,EAAE,CAAC,CASvB;IAEF;;;;;OAKG;IACI,cAAc,YACV,MAAM,KACd,OAAO,CAAC,kBAAkB,CAAC,CAM5B;IAEF;;;;;OAKG;IACI,qBAAqB,YACjB,MAAM,KACd,OAAO,CAAC,kBAAkB,CAAC,CAM5B;IAEF;;;;;OAKG;IAEI,uBAAuB,YACnB,MAAM,+BAEd,OAAO,CAAC,aAAa,EAAE,CAAC,CAMzB;IAEF;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AC5B,MAAM,KACd,OAAO,CAAC,MAAM,EAAE,CAAC,CAOlB;IAEF;;;UAGM;IACC,sBAAsB,eACf,MAAM,KACjB,OAAO,CAAC,cAAc,CAAC,CAKxB;IAEF;;;;;OAKG;IACI,aAAa,4BAIjB;QACD,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,KAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAgBtB;IAEF;;;;;;OAMG;IACI,qBAAqB,YACjB,MAAM,KACd,OAAO,CAAC,kBAAkB,CAAC,CAU5B;IAEF;;;;;OAKG;IACI,YAAY,4BAIhB;QACD,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,KAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAuB1B;IAEF;;;;UAIM;IACC,uBAAuB,YACnB,MAAM,KACd,OAAO,CAAC,UAAU,CAAC,CAMpB;IAEF;;;;UAIM;IACC,yBAAyB,YACrB,MAAM,KACd,OAAO,CAAC,eAAe,EAAE,CAAC,CAM3B;IAEF;;;;UAIM;IACC,oBAAoB,YAChB,MAAM,iBACA,MAAM,KACpB,OAAO,CAAC,eAAe,EAAE,CAAC,CAM3B;CACH"}
|
package/dist/users/index.js
DELETED
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
import { CollectionModule, XOXNOClient } from '..';
|
|
2
|
-
import { getActivity } from '../utils/getActivity';
|
|
3
|
-
import { isAddressValid } from '../utils/helpers';
|
|
4
|
-
import { isValidCollectionTicker } from '../utils/regex';
|
|
5
|
-
export class UserModule {
|
|
6
|
-
api;
|
|
7
|
-
collection;
|
|
8
|
-
constructor() {
|
|
9
|
-
this.api = XOXNOClient.getInstance();
|
|
10
|
-
this.collection = new CollectionModule();
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Returns the user profile
|
|
14
|
-
*
|
|
15
|
-
* @param {String} address - Address of the user
|
|
16
|
-
* @returns {IUserProfile}
|
|
17
|
-
*/
|
|
18
|
-
getUserProfile = async (address) => {
|
|
19
|
-
if (!isAddressValid(address))
|
|
20
|
-
throw new Error('Invalid address');
|
|
21
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/profile`);
|
|
22
|
-
return response;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Returns the wallet accounts
|
|
26
|
-
*
|
|
27
|
-
* @param {String[]} addresses - Addresses of the user
|
|
28
|
-
* @returns {BulkAccount[]}
|
|
29
|
-
*/
|
|
30
|
-
getBulkAccounts = async (addresses) => {
|
|
31
|
-
const response = await this.api.fetchWithTimeout(`/user/network-account`, {
|
|
32
|
-
method: 'POST',
|
|
33
|
-
body: JSON.stringify(addresses),
|
|
34
|
-
});
|
|
35
|
-
return response;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Returns the user account info that inclues nonce, guardian data, esdtTokens
|
|
39
|
-
*
|
|
40
|
-
* @param {String} address - Address of the user
|
|
41
|
-
* @returns {UserAccountInfo}
|
|
42
|
-
*/
|
|
43
|
-
getUserAccount = async (address) => {
|
|
44
|
-
if (!isAddressValid(address))
|
|
45
|
-
throw new Error('Invalid address');
|
|
46
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/network-account`);
|
|
47
|
-
return response;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Returns the user account info that inclues nonce, guardian data, esdtTokens
|
|
51
|
-
*
|
|
52
|
-
* @param {String} address - Address of the user
|
|
53
|
-
* @returns {UserAccountInfo}
|
|
54
|
-
*/
|
|
55
|
-
getUserTokenInventory = async (address) => {
|
|
56
|
-
if (!isAddressValid(address))
|
|
57
|
-
throw new Error('Invalid address');
|
|
58
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/token-inventory`);
|
|
59
|
-
return response;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Gets user's inventory
|
|
63
|
-
*
|
|
64
|
-
* @param {String} address - User's address
|
|
65
|
-
* @returns {UserInventory} User's inventory
|
|
66
|
-
*/
|
|
67
|
-
getUserSummaryInventory = async (address) => {
|
|
68
|
-
if (!isAddressValid(address))
|
|
69
|
-
throw new Error('Invalid address');
|
|
70
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/inventory-summary`);
|
|
71
|
-
return response;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Fetches the user's NFTs listed on the marketplaces
|
|
75
|
-
* @param address - The user's address
|
|
76
|
-
* @returns {UserInventory} - A list of token ids and the price
|
|
77
|
-
*/
|
|
78
|
-
getUserNFTs = async (args) => {
|
|
79
|
-
return await this.collection.getNFTs(args);
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* @name getUserOffers
|
|
83
|
-
* @description Fetches all offers sent or received associated with a user address
|
|
84
|
-
* @param {String} address - The user's wallet address
|
|
85
|
-
* @returns {UserOffers} - The user's listings
|
|
86
|
-
*/
|
|
87
|
-
getUserOffers = async (args) => {
|
|
88
|
-
if (!isAddressValid(args.address))
|
|
89
|
-
throw new Error('Invalid address');
|
|
90
|
-
const response = await this.api.fetchWithTimeout(`/user/${args.address}/offers`, {
|
|
91
|
-
params: {
|
|
92
|
-
type: args.type,
|
|
93
|
-
skip: args.skip,
|
|
94
|
-
top: args.top,
|
|
95
|
-
},
|
|
96
|
-
});
|
|
97
|
-
return response;
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* @public
|
|
101
|
-
* @async
|
|
102
|
-
* @function suggestUsers
|
|
103
|
-
* @param {SuggestNFTsArgs} args - An object containing the necessary parameters to fetch suggested users results.
|
|
104
|
-
* @returns {Promise<SuggestResults>} A promise that resolves to the fetched users results.
|
|
105
|
-
*
|
|
106
|
-
* This function fetches suggested users results based on the provided arguments. It takes an object with the following properties:
|
|
107
|
-
* - name (string): The name to search for (required).
|
|
108
|
-
* - top (number, optional): The maximum number of results to return (default is 35, cannot be greater than 100).
|
|
109
|
-
* - skip (number, optional): The number of results to skip (default is 0).
|
|
110
|
-
*
|
|
111
|
-
* Finally, it returns a promise that resolves to the fetched users results.
|
|
112
|
-
*/
|
|
113
|
-
suggestUsers = async (args) => {
|
|
114
|
-
if (args.top && args.top > 100) {
|
|
115
|
-
throw new Error('Top cannot be greater than 100');
|
|
116
|
-
}
|
|
117
|
-
const payloadBody = {
|
|
118
|
-
name: args.name,
|
|
119
|
-
top: args.top || 35,
|
|
120
|
-
skip: args.skip || 0,
|
|
121
|
-
};
|
|
122
|
-
return await this.api.fetchWithTimeout(`/user/search`, {
|
|
123
|
-
params: {
|
|
124
|
-
filter: JSON.stringify(payloadBody),
|
|
125
|
-
},
|
|
126
|
-
next: {
|
|
127
|
-
tags: ['/search/global'],
|
|
128
|
-
revalidate: 180,
|
|
129
|
-
},
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Retrieves trading history based on the provided arguments.
|
|
134
|
-
*
|
|
135
|
-
* @param {TradincActivityArgs} args - The arguments for filtering the trading activity.
|
|
136
|
-
* @returns {Promise<TradingActivityResponse>} A promise resolving to a TradingActivityResponse object containing the activity.
|
|
137
|
-
* @throws {Error} Throws an error if the 'top' argument is greater than 100.
|
|
138
|
-
*/
|
|
139
|
-
getTradingActivity = async (args) => {
|
|
140
|
-
return await getActivity(args, this.api);
|
|
141
|
-
};
|
|
142
|
-
/** Gets user's creator profile
|
|
143
|
-
* @param {String} address - User's address
|
|
144
|
-
* @returns {CreatorProfile} User's creator profile struct
|
|
145
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
146
|
-
* */
|
|
147
|
-
getUserCreatorProfile = async (address) => {
|
|
148
|
-
if (!isAddressValid(address))
|
|
149
|
-
throw new Error('Invalid address');
|
|
150
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/creator/profile`);
|
|
151
|
-
return response;
|
|
152
|
-
};
|
|
153
|
-
/** Gets user's creator profile
|
|
154
|
-
* @param {String} address - User's address
|
|
155
|
-
* @returns {IMintInfo[]} User's creator profile struct
|
|
156
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
157
|
-
* */
|
|
158
|
-
getCreatorListings = async (address) => {
|
|
159
|
-
if (!isAddressValid(address))
|
|
160
|
-
throw new Error('Invalid address');
|
|
161
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/creator/listing`);
|
|
162
|
-
return response;
|
|
163
|
-
};
|
|
164
|
-
/** Gets user's staking info
|
|
165
|
-
* @param {String} address - User's address
|
|
166
|
-
* @returns {UserStakingSummary[]} User's staking info
|
|
167
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
168
|
-
* */
|
|
169
|
-
getUserStakingSummary = async (address) => {
|
|
170
|
-
if (!isAddressValid(address))
|
|
171
|
-
throw new Error('Invalid address');
|
|
172
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/staking/summary`);
|
|
173
|
-
return response;
|
|
174
|
-
};
|
|
175
|
-
/** Gets user's staking info
|
|
176
|
-
* @param {String} address - User's address
|
|
177
|
-
* @returns {UserStakingAvaiblePools[]} User's staking info
|
|
178
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
179
|
-
* */
|
|
180
|
-
getUserStakingAailable = async (address) => {
|
|
181
|
-
if (!isAddressValid(address))
|
|
182
|
-
throw new Error('Invalid address');
|
|
183
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/staking/available-pools`);
|
|
184
|
-
return response;
|
|
185
|
-
};
|
|
186
|
-
/** Gets user's creator info
|
|
187
|
-
* @param {String} address - User's address
|
|
188
|
-
* @returns {CreatorInfo} User's creator info
|
|
189
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
190
|
-
* */
|
|
191
|
-
getUserCreatorInfo = async (address) => {
|
|
192
|
-
if (!isAddressValid(address))
|
|
193
|
-
throw new Error('Invalid address');
|
|
194
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/creator/details`);
|
|
195
|
-
return response;
|
|
196
|
-
};
|
|
197
|
-
/** Gets pool details
|
|
198
|
-
* @param {String} address - User's address
|
|
199
|
-
* @param {String} collection - Collection ticker
|
|
200
|
-
* @returns {UserCollectionStaking} User's creator info
|
|
201
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
202
|
-
* */
|
|
203
|
-
getUserCollectionStaking = async (address, collection) => {
|
|
204
|
-
if (!isAddressValid(address))
|
|
205
|
-
throw new Error('Invalid address');
|
|
206
|
-
if (!isValidCollectionTicker(collection)) {
|
|
207
|
-
throw new Error('Invalid collection ticker: ' + collection);
|
|
208
|
-
}
|
|
209
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/staking/collection/${collection}`);
|
|
210
|
-
return response;
|
|
211
|
-
};
|
|
212
|
-
/** Gets pool details
|
|
213
|
-
* @param {number} poolId - User's address
|
|
214
|
-
* @returns {CreatoPoolDetailsrInfo} User's creator info
|
|
215
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
216
|
-
* */
|
|
217
|
-
getUserPoolStaking = async (address, poolId, status) => {
|
|
218
|
-
if (!isAddressValid(address))
|
|
219
|
-
throw new Error('Invalid address');
|
|
220
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/staking/pool/${poolId}/nfts?status=${status}`);
|
|
221
|
-
return response;
|
|
222
|
-
};
|
|
223
|
-
/** Gets owned pools by address
|
|
224
|
-
* @param {string} address - User's address
|
|
225
|
-
* @returns {StakingSummaryPools[]} User pools
|
|
226
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
227
|
-
* */
|
|
228
|
-
getOwnedPoolsByAddress = async (address) => {
|
|
229
|
-
if (!isAddressValid(address))
|
|
230
|
-
throw new Error('Invalid address');
|
|
231
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/staking/owned-pools`);
|
|
232
|
-
return response;
|
|
233
|
-
};
|
|
234
|
-
/**
|
|
235
|
-
* Gets user's analytics summary
|
|
236
|
-
*
|
|
237
|
-
* @param {String} address - User's address
|
|
238
|
-
* @returns {UserAnalyticSummary} User's analytics summary
|
|
239
|
-
*/
|
|
240
|
-
getUserAnalyticsSummary = async (address) => {
|
|
241
|
-
if (!isAddressValid(address))
|
|
242
|
-
throw new Error('Invalid address');
|
|
243
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/analytics/volume`);
|
|
244
|
-
return response;
|
|
245
|
-
};
|
|
246
|
-
/** Gets user's favorite NFTs
|
|
247
|
-
* @param {String} address - User's address
|
|
248
|
-
* @param {number} top - Top
|
|
249
|
-
* @param {number} skip - Skip
|
|
250
|
-
* @returns {NftData[]} Array of NFTs
|
|
251
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
252
|
-
* */
|
|
253
|
-
getUserFavoriteNFTs = async (address, top, skip) => {
|
|
254
|
-
if (!isAddressValid(address))
|
|
255
|
-
throw new Error('Invalid address');
|
|
256
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/favorite/nfts`, {
|
|
257
|
-
params: {
|
|
258
|
-
top,
|
|
259
|
-
skip,
|
|
260
|
-
},
|
|
261
|
-
});
|
|
262
|
-
return response;
|
|
263
|
-
};
|
|
264
|
-
/** Gets user's favorite collection tickers
|
|
265
|
-
* @param {String} address - User's address
|
|
266
|
-
* @returns {String[]} Array of tickers
|
|
267
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
268
|
-
* */
|
|
269
|
-
getUserFavoriteCollectionTickers = async (address) => {
|
|
270
|
-
if (!isAddressValid(address))
|
|
271
|
-
throw new Error('Invalid address');
|
|
272
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/favorite/collections`);
|
|
273
|
-
return response;
|
|
274
|
-
};
|
|
275
|
-
/** Get if the creator tag is registered already
|
|
276
|
-
* @param {String} creatorTag - The creator tag that needs to be checked
|
|
277
|
-
* @returns {StatusResponse} True or false
|
|
278
|
-
* */
|
|
279
|
-
getIsCreatorRegistered = async (creatorTag) => {
|
|
280
|
-
const response = await this.api.fetchWithTimeout(`/user/${creatorTag}/creator/is-registered`);
|
|
281
|
-
return response;
|
|
282
|
-
};
|
|
283
|
-
/**
|
|
284
|
-
* @public
|
|
285
|
-
* @async
|
|
286
|
-
* @function getUsersStats
|
|
287
|
-
* @returns {Promise<UserStats[]>} A promise that resolves to the fetched users results.
|
|
288
|
-
*/
|
|
289
|
-
getUsersStats = async ({ top, skip, orderBy, }) => {
|
|
290
|
-
if (top && top > 35) {
|
|
291
|
-
throw new Error('Top cannot be greater than 100');
|
|
292
|
-
}
|
|
293
|
-
return await this.api.fetchWithTimeout(`/user/stats`, {
|
|
294
|
-
params: {
|
|
295
|
-
top: top,
|
|
296
|
-
skip: skip,
|
|
297
|
-
orderBy: orderBy ?? 'totalVolume',
|
|
298
|
-
},
|
|
299
|
-
next: {
|
|
300
|
-
tags: ['/user/stats'],
|
|
301
|
-
revalidate: 180,
|
|
302
|
-
},
|
|
303
|
-
});
|
|
304
|
-
};
|
|
305
|
-
/**
|
|
306
|
-
* @public
|
|
307
|
-
* @async
|
|
308
|
-
* @function getStakingCreatorInfo
|
|
309
|
-
* @param {String} address - The user's address.
|
|
310
|
-
* @returns {Promise<StakingCreatorInfo>} A promise that resolves to the fetched staking creator info.
|
|
311
|
-
*/
|
|
312
|
-
getStakingCreatorInfo = async (address) => {
|
|
313
|
-
return await this.api.fetchWithTimeout(`/user/${address}/staking/creator`, {
|
|
314
|
-
next: {
|
|
315
|
-
tags: [`/user/${address}/staking/creator`],
|
|
316
|
-
revalidate: 30,
|
|
317
|
-
},
|
|
318
|
-
});
|
|
319
|
-
};
|
|
320
|
-
/**
|
|
321
|
-
* @public
|
|
322
|
-
* @async
|
|
323
|
-
* @function getUsersDrop
|
|
324
|
-
* @returns {Promise<UserXOXNODrop[]>} A promise that resolves to the fetched users results.
|
|
325
|
-
*/
|
|
326
|
-
getUsersDrop = async ({ top, skip, address, }) => {
|
|
327
|
-
if (top && top > 35) {
|
|
328
|
-
throw new Error('Top cannot be greater than 100');
|
|
329
|
-
}
|
|
330
|
-
if (address) {
|
|
331
|
-
if (!isAddressValid(address))
|
|
332
|
-
throw new Error('Invalid address');
|
|
333
|
-
}
|
|
334
|
-
return await this.api.fetchWithTimeout(`/user/xoxno-drop`, {
|
|
335
|
-
params: {
|
|
336
|
-
top: top,
|
|
337
|
-
skip: skip,
|
|
338
|
-
...(address ? { address } : {}),
|
|
339
|
-
},
|
|
340
|
-
next: {
|
|
341
|
-
tags: ['/user/xoxno-drop'],
|
|
342
|
-
revalidate: 30,
|
|
343
|
-
},
|
|
344
|
-
});
|
|
345
|
-
};
|
|
346
|
-
/** Gets user's creator info
|
|
347
|
-
* @param {String} address - User's address
|
|
348
|
-
* @returns {IOwnerInfo} User's creator info
|
|
349
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
350
|
-
* */
|
|
351
|
-
getUserOwnerCollections = async (address) => {
|
|
352
|
-
if (!isAddressValid(address))
|
|
353
|
-
throw new Error('Invalid address');
|
|
354
|
-
const response = await this.api.fetchWithTimeout(`/user/${address}/staking/owned-collections`);
|
|
355
|
-
return response;
|
|
356
|
-
};
|
|
357
|
-
/** Gets royalties shares creator info
|
|
358
|
-
* @param {String} address - User's address
|
|
359
|
-
* @returns {IApiShareholder[]} Royalties shares creator info
|
|
360
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
361
|
-
* */
|
|
362
|
-
getRoyaltiesSharesCreator = async (address) => {
|
|
363
|
-
if (!isAddressValid(address))
|
|
364
|
-
throw new Error('Invalid address');
|
|
365
|
-
const response = await this.api.fetchWithTimeout(`/launchpad/${address}/shareholders/royalties`);
|
|
366
|
-
return response;
|
|
367
|
-
};
|
|
368
|
-
/** Gets mint shares creator info
|
|
369
|
-
* @param {String} address - User's address
|
|
370
|
-
* @returns {IApiShareholder[]} Mint revenue shares creator info
|
|
371
|
-
* @throws {Error} Throws an error if the address is invalid
|
|
372
|
-
* */
|
|
373
|
-
getMintSharesCreator = async (address, collectionTag) => {
|
|
374
|
-
if (!isAddressValid(address))
|
|
375
|
-
throw new Error('Invalid address');
|
|
376
|
-
const response = await this.api.fetchWithTimeout(`/launchpad/${address}/shareholders/collection/${collectionTag}`);
|
|
377
|
-
return response;
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
//# sourceMappingURL=index.js.map
|
package/dist/users/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/users/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAgCnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,MAAM,OAAO,UAAU;IACb,GAAG,CAAc;IACjB,UAAU,CAAmB;IACrC;QACE,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,WAAW,EAAE,CAAC;QACrC,IAAI,CAAC,UAAU,GAAG,IAAI,gBAAgB,EAAE,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,cAAc,GAAG,KAAK,EAAE,OAAe,EAAyB,EAAE;QACvE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACjE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAC9C,SAAS,OAAO,UAAU,CAC3B,CAAC;QACF,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC;IAEF;;;;;OAKG;IACI,eAAe,GAAG,KAAK,EAC5B,SAAmB,EACK,EAAE;QAC1B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAC9C,uBAAuB,EACvB;YACE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;SAChC,CACF,CAAC;QACF,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC;IAEF;;;;;OAK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
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AbiRegistry } from '@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,CAAC;AAK7F,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAC,OAAO,CAAc;IACpC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAc;IACrC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAc;IACnC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAc;IACnC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAc;IACpC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAc;WAEZ,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"}
|