@xoxno/sdk-js 0.1.252 → 0.1.254
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/dist/dist/email.esm.d.ts +23 -0
- package/dist/dist/email.esm.d.ts.map +1 -0
- package/dist/email/event-email-2.d.ts.map +1 -1
- package/dist/email/utils.d.ts.map +1 -1
- package/dist/email.cjs.js +1 -1
- package/dist/email.esm.js +1 -1
- package/dist/scripts/renderEmail.d.ts +2 -0
- package/dist/scripts/renderEmail.d.ts.map +1 -0
- package/dist/src/collection/index.d.ts +298 -0
- package/dist/src/collection/index.d.ts.map +1 -0
- package/dist/src/common/index.d.ts +72 -0
- package/dist/src/common/index.d.ts.map +1 -0
- package/dist/src/email/Markdown.d.ts +4 -0
- package/dist/src/email/Markdown.d.ts.map +1 -0
- package/dist/src/email/email.d.ts +30 -0
- package/dist/src/email/email.d.ts.map +1 -0
- package/dist/src/email/event-email-2.d.ts +20 -0
- package/dist/src/email/event-email-2.d.ts.map +1 -0
- package/dist/src/email/event-email.d.ts +20 -0
- package/dist/src/email/event-email.d.ts.map +1 -0
- package/dist/src/email/post-email.d.ts +19 -0
- package/dist/src/email/post-email.d.ts.map +1 -0
- package/dist/src/email/types.d.ts +65 -0
- package/dist/src/email/types.d.ts.map +1 -0
- package/dist/src/email/utils.d.ts +88 -0
- package/dist/src/email/utils.d.ts.map +1 -0
- package/dist/src/email.d.ts +6 -0
- package/dist/src/email.d.ts.map +1 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/interactions/index.d.ts +256 -0
- package/dist/src/interactions/index.d.ts.map +1 -0
- package/dist/src/interactor.d.ts +6 -0
- package/dist/src/interactor.d.ts.map +1 -0
- package/dist/src/launchpad/index.d.ts +79 -0
- package/dist/src/launchpad/index.d.ts.map +1 -0
- package/dist/src/nft/index.d.ts +69 -0
- package/dist/src/nft/index.d.ts.map +1 -0
- package/dist/src/scripts/renderEmail.d.ts +2 -0
- package/dist/src/scripts/renderEmail.d.ts.map +1 -0
- package/dist/src/staking/index.d.ts +12 -0
- package/dist/src/staking/index.d.ts.map +1 -0
- package/dist/src/types/collection.d.ts +883 -0
- package/dist/src/types/collection.d.ts.map +1 -0
- package/dist/src/types/common.d.ts +72 -0
- package/dist/src/types/common.d.ts.map +1 -0
- package/dist/src/types/event.d.ts +92 -0
- package/dist/src/types/event.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +9 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/interactions.d.ts +97 -0
- package/dist/src/types/interactions.d.ts.map +1 -0
- package/dist/src/types/nft.d.ts +119 -0
- package/dist/src/types/nft.d.ts.map +1 -0
- package/dist/src/types/staking.d.ts +67 -0
- package/dist/src/types/staking.d.ts.map +1 -0
- package/dist/src/types/trading.d.ts +115 -0
- package/dist/src/types/trading.d.ts.map +1 -0
- package/dist/src/types/user.d.ts +302 -0
- package/dist/src/types/user.d.ts.map +1 -0
- package/dist/src/users/index.d.ts +202 -0
- package/dist/src/users/index.d.ts.map +1 -0
- package/dist/src/utils/SmartContractAbis.d.ts +16 -0
- package/dist/src/utils/SmartContractAbis.d.ts.map +1 -0
- package/dist/src/utils/SmartContractService.d.ts +4 -0
- package/dist/src/utils/SmartContractService.d.ts.map +1 -0
- package/dist/src/utils/api.d.ts +31 -0
- package/dist/src/utils/api.d.ts.map +1 -0
- package/dist/src/utils/const.d.ts +14 -0
- package/dist/src/utils/const.d.ts.map +1 -0
- package/dist/src/utils/getActivity.d.ts +11 -0
- package/dist/src/utils/getActivity.d.ts.map +1 -0
- package/dist/src/utils/helpers.d.ts +4 -0
- package/dist/src/utils/helpers.d.ts.map +1 -0
- package/dist/src/utils/regex.d.ts +3 -0
- package/dist/src/utils/regex.d.ts.map +1 -0
- package/dist/src/utils/scCalls.d.ts +10 -0
- package/dist/src/utils/scCalls.d.ts.map +1 -0
- package/dist/src/utils.d.ts +5 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/types/event.d.ts +1 -0
- package/dist/types/event.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,302 @@
|
|
|
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
|
+
}
|
|
73
|
+
export interface UserInventory {
|
|
74
|
+
collection: string;
|
|
75
|
+
inventoryCount: number;
|
|
76
|
+
listedCount: number;
|
|
77
|
+
stakedCount: number;
|
|
78
|
+
floorPrice: number;
|
|
79
|
+
name: string;
|
|
80
|
+
isVerified: boolean;
|
|
81
|
+
profile: string;
|
|
82
|
+
banner: string;
|
|
83
|
+
value: number;
|
|
84
|
+
}
|
|
85
|
+
export interface UserOffers {
|
|
86
|
+
hasMoreResults: boolean;
|
|
87
|
+
count: number;
|
|
88
|
+
resources: OfferBody[];
|
|
89
|
+
}
|
|
90
|
+
export interface ArgsUserOffers {
|
|
91
|
+
address: string;
|
|
92
|
+
type: OfferType;
|
|
93
|
+
skip: number;
|
|
94
|
+
top: number;
|
|
95
|
+
}
|
|
96
|
+
export declare enum OfferType {
|
|
97
|
+
Received = "received",
|
|
98
|
+
Placed = "placed"
|
|
99
|
+
}
|
|
100
|
+
export interface OfferBody {
|
|
101
|
+
dataType: string;
|
|
102
|
+
identifier: string;
|
|
103
|
+
collection: string;
|
|
104
|
+
offerId: number;
|
|
105
|
+
paymentToken: string;
|
|
106
|
+
paymentTokenNonce: number;
|
|
107
|
+
price: string;
|
|
108
|
+
priceShort: number;
|
|
109
|
+
deadline: number;
|
|
110
|
+
timestamp: number;
|
|
111
|
+
owner: Owner;
|
|
112
|
+
quantity: number;
|
|
113
|
+
marketplace: string;
|
|
114
|
+
id: string;
|
|
115
|
+
_ts: number;
|
|
116
|
+
nftInfo: NftData;
|
|
117
|
+
isActive: boolean;
|
|
118
|
+
usdValue: number;
|
|
119
|
+
floorPriceMargin: number;
|
|
120
|
+
floorPrice: number;
|
|
121
|
+
}
|
|
122
|
+
export type Nfts = {
|
|
123
|
+
count: number;
|
|
124
|
+
resultsCount: number;
|
|
125
|
+
results: NftData[];
|
|
126
|
+
empty: boolean;
|
|
127
|
+
};
|
|
128
|
+
export declare enum Type {
|
|
129
|
+
NonFungibleESDT = "NonFungibleESDT"
|
|
130
|
+
}
|
|
131
|
+
export type TickerElement = {
|
|
132
|
+
ticker: string;
|
|
133
|
+
name: string;
|
|
134
|
+
};
|
|
135
|
+
export type UserTokenInventory = {
|
|
136
|
+
tokens: EsdtToken[];
|
|
137
|
+
esdts: TokenWorth;
|
|
138
|
+
stables: TokenWorth;
|
|
139
|
+
wallet: TokenWorth;
|
|
140
|
+
};
|
|
141
|
+
export type TokenWorth = {
|
|
142
|
+
usdValue: number;
|
|
143
|
+
egldValue: number;
|
|
144
|
+
weight: number;
|
|
145
|
+
};
|
|
146
|
+
export type UserNetworkAccount = {
|
|
147
|
+
address: string;
|
|
148
|
+
nonce: number;
|
|
149
|
+
balance: string;
|
|
150
|
+
balanceShort: number;
|
|
151
|
+
usdValue: number;
|
|
152
|
+
username?: string;
|
|
153
|
+
shard: number;
|
|
154
|
+
guarded: boolean;
|
|
155
|
+
activeGuardian: ActiveGuardian;
|
|
156
|
+
};
|
|
157
|
+
export type ActiveGuardian = {
|
|
158
|
+
activationEpoch: number;
|
|
159
|
+
address: string;
|
|
160
|
+
serviceUID: string;
|
|
161
|
+
};
|
|
162
|
+
export type EsdtToken = {
|
|
163
|
+
nonce: number;
|
|
164
|
+
identifier: string;
|
|
165
|
+
decimals: number;
|
|
166
|
+
balance: string;
|
|
167
|
+
ticker: string;
|
|
168
|
+
name: string;
|
|
169
|
+
shortBalance: number;
|
|
170
|
+
usdPrice: number;
|
|
171
|
+
usdValue: number;
|
|
172
|
+
egldValue: number;
|
|
173
|
+
assets: Assets;
|
|
174
|
+
isAshSupported?: boolean;
|
|
175
|
+
weight: number;
|
|
176
|
+
};
|
|
177
|
+
export type Assets = {
|
|
178
|
+
pngUrl: string;
|
|
179
|
+
svgUrl: string;
|
|
180
|
+
};
|
|
181
|
+
export type CreatorProfile = {
|
|
182
|
+
name: string;
|
|
183
|
+
profile: string;
|
|
184
|
+
banner: string;
|
|
185
|
+
description?: string;
|
|
186
|
+
socials?: ISocials;
|
|
187
|
+
joinedDate?: number;
|
|
188
|
+
contractAddress: string;
|
|
189
|
+
address: string;
|
|
190
|
+
followCount: number;
|
|
191
|
+
creatorTag: string;
|
|
192
|
+
_ts: number;
|
|
193
|
+
};
|
|
194
|
+
export interface RewardStakinSummary {
|
|
195
|
+
tokenIdentifier: string;
|
|
196
|
+
tokenNonce: number;
|
|
197
|
+
amount: string;
|
|
198
|
+
amountShort: number;
|
|
199
|
+
usdValue: number;
|
|
200
|
+
}
|
|
201
|
+
export interface RewardAvaiblePools {
|
|
202
|
+
tokenIdentifier: string;
|
|
203
|
+
tokenNonce: number;
|
|
204
|
+
rewardPerEpochShort: number;
|
|
205
|
+
rewardBalanceShort: number;
|
|
206
|
+
rewardBalance: string;
|
|
207
|
+
rewardPerDayPerNft: number;
|
|
208
|
+
usdValue: number;
|
|
209
|
+
}
|
|
210
|
+
export interface UserPoolStakingInfo {
|
|
211
|
+
nftDocs: NftData[];
|
|
212
|
+
poolDoc: StakingSummaryPools;
|
|
213
|
+
}
|
|
214
|
+
export interface UserAnalyticSummary {
|
|
215
|
+
Purchase: Purchase;
|
|
216
|
+
Sale: Purchase;
|
|
217
|
+
}
|
|
218
|
+
export interface Purchase {
|
|
219
|
+
count: number;
|
|
220
|
+
volume: number;
|
|
221
|
+
min: Max;
|
|
222
|
+
max: Max;
|
|
223
|
+
avg: Avg;
|
|
224
|
+
}
|
|
225
|
+
export interface Avg {
|
|
226
|
+
price: number;
|
|
227
|
+
}
|
|
228
|
+
export interface Max {
|
|
229
|
+
price: number;
|
|
230
|
+
txHash: string;
|
|
231
|
+
timestamp: number;
|
|
232
|
+
identifier: string;
|
|
233
|
+
}
|
|
234
|
+
export interface UserStats {
|
|
235
|
+
wallet: Wallet;
|
|
236
|
+
totalVolume: number;
|
|
237
|
+
totalTrades: number;
|
|
238
|
+
totalCollections: number;
|
|
239
|
+
totalNfts: number;
|
|
240
|
+
totalPartners: number;
|
|
241
|
+
buyerVolume: number;
|
|
242
|
+
buyerTrades: number;
|
|
243
|
+
buyerNfts: number;
|
|
244
|
+
buyerCollections: number;
|
|
245
|
+
buyerPartners: number;
|
|
246
|
+
buyerMaxPriceData: PriceData | null;
|
|
247
|
+
buyerMinPriceData: PriceData | null;
|
|
248
|
+
sellerVolume: number;
|
|
249
|
+
sellerTrades: number;
|
|
250
|
+
sellerNfts: number;
|
|
251
|
+
sellerCollections: number;
|
|
252
|
+
sellerPartners: number;
|
|
253
|
+
sellerMaxPriceData: PriceData;
|
|
254
|
+
sellerMinPriceData: PriceData;
|
|
255
|
+
}
|
|
256
|
+
export interface PriceData {
|
|
257
|
+
price: number;
|
|
258
|
+
timestamp: number;
|
|
259
|
+
identifier: string;
|
|
260
|
+
txHash: string;
|
|
261
|
+
usdValue: number;
|
|
262
|
+
nftInfo: Pick<NftData, 'identifier' | 'collection' | 'name' | 'metadata' | 'url' | 'wasProcessed' | 'media'>;
|
|
263
|
+
}
|
|
264
|
+
export interface Wallet {
|
|
265
|
+
address: string;
|
|
266
|
+
profile: string;
|
|
267
|
+
username: string;
|
|
268
|
+
isVerified: boolean;
|
|
269
|
+
isCreator: boolean;
|
|
270
|
+
owned: number;
|
|
271
|
+
listed: number;
|
|
272
|
+
followCount: number;
|
|
273
|
+
}
|
|
274
|
+
export interface StakingCreatorInfo {
|
|
275
|
+
address: string;
|
|
276
|
+
ownedPools: number[];
|
|
277
|
+
ownedCollections: string[];
|
|
278
|
+
cutFee: number;
|
|
279
|
+
_ts: number;
|
|
280
|
+
}
|
|
281
|
+
export interface UserXOXNODrop {
|
|
282
|
+
wallet: Wallet;
|
|
283
|
+
rank: number;
|
|
284
|
+
tokenAllocation: number;
|
|
285
|
+
totalScore: number;
|
|
286
|
+
}
|
|
287
|
+
export interface Wallet {
|
|
288
|
+
address: string;
|
|
289
|
+
addressTrimmed: string;
|
|
290
|
+
profile: string;
|
|
291
|
+
username: string;
|
|
292
|
+
isVerified: boolean;
|
|
293
|
+
}
|
|
294
|
+
export interface IOwnerInfo {
|
|
295
|
+
registered: string[];
|
|
296
|
+
availableForRegister: string[];
|
|
297
|
+
}
|
|
298
|
+
export type IApiShareholder = {
|
|
299
|
+
address: string;
|
|
300
|
+
share: number;
|
|
301
|
+
};
|
|
302
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,cAAc,E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AAU,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"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import type { CreatorInfo, GetNFTsArgs, IMintInfo, 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<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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/users/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,SAAS,EACT,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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AED;;;;UAIM;IACC,oBAAoB,YAChB,MAAM,iBACA,MAAM,KACpB,OAAO,CAAC,eAAe,EAAE,CAAC,CAM5B;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IChainID } from '@multiversx/sdk-core/out/interface';
|
|
2
|
+
export declare enum Chain {
|
|
3
|
+
MAINNET = "1",
|
|
4
|
+
DEVNET = "D"
|
|
5
|
+
}
|
|
6
|
+
export declare class XOXNOClient {
|
|
7
|
+
private static instance;
|
|
8
|
+
apiUrl: string;
|
|
9
|
+
private apiKey;
|
|
10
|
+
chain: IChainID;
|
|
11
|
+
config: {
|
|
12
|
+
mediaUrl: string;
|
|
13
|
+
gatewayUrl: string;
|
|
14
|
+
XO_SC: string;
|
|
15
|
+
FM_SC: string;
|
|
16
|
+
DR_SC: string;
|
|
17
|
+
KG_SC: string;
|
|
18
|
+
Staking_SC: string;
|
|
19
|
+
Manager_SC: string;
|
|
20
|
+
P2P_SC: string;
|
|
21
|
+
};
|
|
22
|
+
private constructor();
|
|
23
|
+
static init({ apiUrl, apiKey, chain, }?: Partial<{
|
|
24
|
+
apiUrl?: string;
|
|
25
|
+
apiKey?: string;
|
|
26
|
+
chain?: Chain;
|
|
27
|
+
}>): XOXNOClient;
|
|
28
|
+
static getInstance(): XOXNOClient;
|
|
29
|
+
fetchWithTimeout: <T>(path: string, options?: Record<string, any>, timeout?: number) => Promise<T>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/utils/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAA;AAkBlE,oBAAY,KAAK;IACf,OAAO,MAAM;IACb,MAAM,MAAM;CACb;AACD,qBAAa,WAAW;IACtB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAa;IAC7B,MAAM,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,MAAM,CAAQ;IACf,KAAK,EAAE,QAAQ,CAAA;IACf,MAAM,EAAE;QACb,QAAQ,EAAE,MAAM,CAAA;QAChB,UAAU,EAAE,MAAM,CAAA;QAClB,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;QACb,UAAU,EAAE,MAAM,CAAA;QAClB,UAAU,EAAE,MAAM,CAAA;QAClB,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IAED,OAAO;WA8BO,IAAI,CAAC,EACjB,MAAgB,EAChB,MAAW,EACX,KAAqB,GACtB,GAAE,OAAO,CAAC;QACT,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,KAAK,CAAC,EAAE,KAAK,CAAA;KACd,CAAM,GAAG,WAAW;WAeP,WAAW,IAAI,WAAW;IAOjC,gBAAgB,GAAU,CAAC,QAC1B,MAAM,YACH,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,uBAE3B,OAAO,CAAC,CAAC,CAAC,CAqCZ;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const API_URL = "https://api.xoxno.com";
|
|
2
|
+
export declare const API_URL_DEV = "https://devnet-api.xoxno.com";
|
|
3
|
+
export declare const XOXNO_SC = "erd1qqqqqqqqqqqqqpgq6wegs2xkypfpync8mn2sa5cmpqjlvrhwz5nqgepyg8";
|
|
4
|
+
export declare const FM_SC = "erd1qqqqqqqqqqqqqpgq705fxpfrjne0tl3ece0rrspykq88mynn4kxs2cg43s";
|
|
5
|
+
export declare const DR_SC = "erd1qqqqqqqqqqqqqpgqd9rvv2n378e27jcts8vfwynpx0gfl5ufz6hqhfy0u0";
|
|
6
|
+
export declare const KG_SC = "erd1qqqqqqqqqqqqqpgq8xwzu82v8ex3h4ayl5lsvxqxnhecpwyvwe0sf2qj4e";
|
|
7
|
+
export declare const Staking_SC = "erd1qqqqqqqqqqqqqpgqvpkd3g3uwludduv3797j54qt6c888wa59w2shntt6z";
|
|
8
|
+
export declare const Manager_SC = "erd1qqqqqqqqqqqqqpgqg9fa0dmpn8fu3fnleeqn5zt8rl8mdqjkys5s2gtas7";
|
|
9
|
+
export declare const P2P_SC = "erd1qqqqqqqqqqqqqpgq47y8hnct68v6asjv6gxem6h9rumn9frzah0skhxxt6";
|
|
10
|
+
export declare const XOXNO_SC_DEV = "erd1qqqqqqqqqqqqqpgql0dnz6n5hpuw8cptlt00khd0nn4ja8eadsfq2xrqw4";
|
|
11
|
+
export declare const Staking_SC_DEV = "erd1qqqqqqqqqqqqqpgqsc5hnewwpep8qq0d7kjjzrquapuucrygah0s85zres";
|
|
12
|
+
export declare const Manager_SC_DEV = "erd1qqqqqqqqqqqqqpgqluclyhfsa2uw7q9cjwd8knk989hg57u8ah0slq2nlr";
|
|
13
|
+
export declare const P2P_SC_DEV = "erd1qqqqqqqqqqqqqpgqfja7ukpngrun78ueq583l0vd6aj4ekhrah0sa9wyrv";
|
|
14
|
+
//# sourceMappingURL=const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/utils/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,0BAA0B,CAAA;AAC9C,eAAO,MAAM,WAAW,iCAAiC,CAAA;AAEzD,eAAO,MAAM,QAAQ,mEAC6C,CAAA;AAClE,eAAO,MAAM,KAAK,mEACgD,CAAA;AAClE,eAAO,MAAM,KAAK,mEACgD,CAAA;AAClE,eAAO,MAAM,KAAK,mEACgD,CAAA;AAClE,eAAO,MAAM,UAAU,mEAC2C,CAAA;AAClE,eAAO,MAAM,UAAU,mEAC2C,CAAA;AAClE,eAAO,MAAM,MAAM,mEAC+C,CAAA;AAElE,eAAO,MAAM,YAAY,mEACyC,CAAA;AAClE,eAAO,MAAM,cAAc,mEACuC,CAAA;AAClE,eAAO,MAAM,cAAc,mEACuC,CAAA;AAClE,eAAO,MAAM,UAAU,mEAC2C,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { XOXNOClient } from '..';
|
|
2
|
+
import type { TradincActivityArgs, TradingActivityResponse } from '../types/trading';
|
|
3
|
+
/**
|
|
4
|
+
* Fetches the trading activity of the given collections
|
|
5
|
+
* @param args - The trading activity arguments
|
|
6
|
+
* @param api - The API client
|
|
7
|
+
* @returns - The trading activity response
|
|
8
|
+
* @throws - If the top is greater than 100
|
|
9
|
+
*/
|
|
10
|
+
export declare const getActivity: (args: TradincActivityArgs, api: XOXNOClient) => Promise<TradingActivityResponse>;
|
|
11
|
+
//# sourceMappingURL=getActivity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getActivity.d.ts","sourceRoot":"","sources":["../../../src/utils/getActivity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,IAAI,CAAA;AACrC,OAAO,KAAK,EACV,mBAAmB,EAEnB,uBAAuB,EACxB,MAAM,kBAAkB,CAAA;AAEzB;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,SAChB,mBAAmB,OACpB,WAAW,KACf,OAAO,CAAC,uBAAuB,CAgEjC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const nonceToHex: (nonce: number) => string;
|
|
2
|
+
export declare const getIdentifierFromColAndNonce: (collection: string, nonce: number) => string;
|
|
3
|
+
export declare const isAddressValid: (address: string | Buffer) => boolean;
|
|
4
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,UAAW,MAAM,KAAG,MAM1C,CAAA;AAED,eAAO,MAAM,4BAA4B,eAC3B,MAAM,SACX,MAAM,KACZ,MAEF,CAAA;AAED,eAAO,MAAM,cAAc,YAAa,MAAM,GAAG,MAAM,KAAG,OAEzD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regex.d.ts","sourceRoot":"","sources":["../../../src/utils/regex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,WAAY,MAAM,KAAG,OAExD,CAAA;AAED,eAAO,MAAM,oBAAoB,eAAgB,MAAM,KAAG,OAIzD,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Interaction } from '@multiversx/sdk-core/out/smartcontracts/interaction';
|
|
2
|
+
import type { TypedOutcomeBundle } from '@multiversx/sdk-core/out/smartcontracts/interface';
|
|
3
|
+
import type { SmartContract } from '@multiversx/sdk-core/out/smartcontracts/smartContract';
|
|
4
|
+
export declare class ContractQueryRunner {
|
|
5
|
+
private readonly proxy;
|
|
6
|
+
private readonly parser;
|
|
7
|
+
constructor();
|
|
8
|
+
runQuery(contract: SmartContract, interaction: Interaction): Promise<TypedOutcomeBundle>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=scCalls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scCalls.d.ts","sourceRoot":"","sources":["../../../src/utils/scCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAA;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAA;AAE3F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAO1F,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;IACxC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqC;;IAStD,QAAQ,CACZ,QAAQ,EAAE,aAAa,EACvB,WAAW,EAAE,WAAW,GACvB,OAAO,CAAC,kBAAkB,CAAC;CAoB/B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IEventDoc } from './types';
|
|
2
|
+
export declare function getDomain(hostname: string): string;
|
|
3
|
+
export declare function getOnlineLocation(onlineLink: string): string;
|
|
4
|
+
export declare function getMapsLink(location: IEventDoc['location']): string;
|
|
5
|
+
//# sourceMappingURL=utils.d.ts.map
|