@xoxno/sdk-js 0.1.30-alpha → 0.1.32-alpha
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/staking/index.d.ts +7 -52
- package/dist/staking/index.js +7 -95
- package/dist/staking/index.js.map +1 -1
- package/dist/types/collection.d.ts +33 -6
- package/dist/types/collection.js.map +1 -1
- package/dist/types/user.d.ts +54 -0
- package/dist/users/index.d.ts +47 -12
- package/dist/users/index.js +74 -15
- package/dist/users/index.js.map +1 -1
- package/package.json +7 -7
package/dist/staking/index.d.ts
CHANGED
|
@@ -1,56 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Nfts } from '../types/user';
|
|
1
|
+
import { PoolDetails } from '../types/user';
|
|
3
2
|
export declare class StakingModule {
|
|
4
3
|
private api;
|
|
5
4
|
constructor();
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Returns all staking pools by collection
|
|
14
|
-
*
|
|
15
|
-
* @returns {StakingPool[]}
|
|
16
|
-
*/
|
|
17
|
-
getPoolsByTicker: (collection: string) => Promise<StakingPool[]>;
|
|
18
|
-
/**
|
|
19
|
-
* Returns the staking pool by id
|
|
20
|
-
*
|
|
21
|
-
* @returns {StakingPool}
|
|
22
|
-
*/
|
|
23
|
-
getStakingPoolInfo: (poolId: number) => Promise<StakingPool>;
|
|
24
|
-
/**
|
|
25
|
-
* Returns the staking pools grouped by collection
|
|
26
|
-
*
|
|
27
|
-
* @returns {GetGroupedStakingPools[]}
|
|
28
|
-
*/
|
|
29
|
-
getGroupedStakingPools: () => Promise<GetGroupedStakingPools[]>;
|
|
30
|
-
/**
|
|
31
|
-
* Returns the staking pool by id
|
|
32
|
-
* @param poolId - The pool id
|
|
33
|
-
* @param address - The user's address
|
|
34
|
-
* @param tickers - The collection tickers
|
|
35
|
-
* @returns {Nfts} - A list of token ids and the price
|
|
36
|
-
* @example
|
|
37
|
-
* const nfts = await new StakingModule().getStakableNFTsByWallet(1, 'erd111', ['EGIRL-absd123']);
|
|
38
|
-
* @throws an error if the pool id is not a number
|
|
39
|
-
* @throws an error if the address is not valid
|
|
40
|
-
* @throws an error if the tickers are not valid
|
|
41
|
-
**/
|
|
42
|
-
getStakableNFTsByWallet: (poolId: number, address: string, tickers: string[]) => Promise<Nfts>;
|
|
43
|
-
/**
|
|
44
|
-
* Returns the a list of NFTs which can be used for the specified pool id
|
|
45
|
-
* @param poolId - The pool id
|
|
46
|
-
* @param address - The user's address
|
|
47
|
-
* @param tickers - The collection tickers
|
|
48
|
-
* @returns {Nfts} - A list of token ids and the price
|
|
49
|
-
* @example
|
|
50
|
-
* const nfts = await new StakingModule().getPerkNFTsByWallet(1, 'erd111', ['EGIRL-absd123']);
|
|
51
|
-
* @throws an error if the pool id is not a number
|
|
52
|
-
* @throws an error if the address is not valid
|
|
53
|
-
* @throws an error if the tickers are not valid
|
|
54
|
-
**/
|
|
55
|
-
getPerkNFTsByWallet: (poolId: number, address: string, tickers: string[]) => Promise<Nfts>;
|
|
5
|
+
/** Gets pool details
|
|
6
|
+
* @param {number} poolId - User's address
|
|
7
|
+
* @returns {CreatoPoolDetailsrInfo} User's creator info
|
|
8
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
9
|
+
* */
|
|
10
|
+
getPoolDetails: (poolId: number) => Promise<PoolDetails>;
|
|
56
11
|
}
|
package/dist/staking/index.js
CHANGED
|
@@ -11,103 +11,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.StakingModule = void 0;
|
|
13
13
|
const api_1 = require("../utils/api");
|
|
14
|
-
const helpers_1 = require("../utils/helpers");
|
|
15
|
-
const regex_1 = require("../utils/regex");
|
|
16
14
|
class StakingModule {
|
|
17
15
|
constructor() {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @
|
|
22
|
-
*/
|
|
23
|
-
this.
|
|
24
|
-
const response = yield this.api.fetchWithTimeout(
|
|
25
|
-
return response;
|
|
26
|
-
});
|
|
27
|
-
/**
|
|
28
|
-
* Returns all staking pools by collection
|
|
29
|
-
*
|
|
30
|
-
* @returns {StakingPool[]}
|
|
31
|
-
*/
|
|
32
|
-
this.getPoolsByTicker = (collection) => __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
if (!(0, regex_1.isValidCollectionTicker)(collection)) {
|
|
34
|
-
throw new Error('Invalid collection ticker: ' + collection);
|
|
35
|
-
}
|
|
36
|
-
const response = yield this.api.fetchWithTimeout(`/getPoolsByTicker/${collection}`);
|
|
37
|
-
return response;
|
|
38
|
-
});
|
|
39
|
-
/**
|
|
40
|
-
* Returns the staking pool by id
|
|
41
|
-
*
|
|
42
|
-
* @returns {StakingPool}
|
|
43
|
-
*/
|
|
44
|
-
this.getStakingPoolInfo = (poolId) => __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
if (typeof poolId !== 'number')
|
|
46
|
-
throw new Error('Invalid pool id');
|
|
47
|
-
const response = yield this.api.fetchWithTimeout(`/getPoolDetails/${poolId}`);
|
|
48
|
-
return response;
|
|
49
|
-
});
|
|
50
|
-
/**
|
|
51
|
-
* Returns the staking pools grouped by collection
|
|
52
|
-
*
|
|
53
|
-
* @returns {GetGroupedStakingPools[]}
|
|
54
|
-
*/
|
|
55
|
-
this.getGroupedStakingPools = () => __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
const response = yield this.api.fetchWithTimeout(`/getGroupedStakingPools`);
|
|
57
|
-
return response;
|
|
58
|
-
});
|
|
59
|
-
/**
|
|
60
|
-
* Returns the staking pool by id
|
|
61
|
-
* @param poolId - The pool id
|
|
62
|
-
* @param address - The user's address
|
|
63
|
-
* @param tickers - The collection tickers
|
|
64
|
-
* @returns {Nfts} - A list of token ids and the price
|
|
65
|
-
* @example
|
|
66
|
-
* const nfts = await new StakingModule().getStakableNFTsByWallet(1, 'erd111', ['EGIRL-absd123']);
|
|
67
|
-
* @throws an error if the pool id is not a number
|
|
68
|
-
* @throws an error if the address is not valid
|
|
69
|
-
* @throws an error if the tickers are not valid
|
|
70
|
-
**/
|
|
71
|
-
this.getStakableNFTsByWallet = (poolId, address, tickers) => __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
if (typeof poolId !== 'number')
|
|
73
|
-
throw new Error('Invalid pool id');
|
|
74
|
-
if (!(0, helpers_1.isAddressValid)(address))
|
|
75
|
-
throw new Error('Invalid address');
|
|
76
|
-
const response = yield this.api.fetchWithTimeout('/getNftsForStake', {
|
|
77
|
-
method: 'POST',
|
|
78
|
-
body: JSON.stringify({
|
|
79
|
-
poolId,
|
|
80
|
-
address,
|
|
81
|
-
tickers,
|
|
82
|
-
}),
|
|
83
|
-
});
|
|
84
|
-
return response;
|
|
85
|
-
});
|
|
86
|
-
/**
|
|
87
|
-
* Returns the a list of NFTs which can be used for the specified pool id
|
|
88
|
-
* @param poolId - The pool id
|
|
89
|
-
* @param address - The user's address
|
|
90
|
-
* @param tickers - The collection tickers
|
|
91
|
-
* @returns {Nfts} - A list of token ids and the price
|
|
92
|
-
* @example
|
|
93
|
-
* const nfts = await new StakingModule().getPerkNFTsByWallet(1, 'erd111', ['EGIRL-absd123']);
|
|
94
|
-
* @throws an error if the pool id is not a number
|
|
95
|
-
* @throws an error if the address is not valid
|
|
96
|
-
* @throws an error if the tickers are not valid
|
|
97
|
-
**/
|
|
98
|
-
this.getPerkNFTsByWallet = (poolId, address, tickers) => __awaiter(this, void 0, void 0, function* () {
|
|
99
|
-
if (typeof poolId !== 'number')
|
|
100
|
-
throw new Error('Invalid pool id');
|
|
101
|
-
if (!(0, helpers_1.isAddressValid)(address))
|
|
102
|
-
throw new Error('Invalid address');
|
|
103
|
-
const response = yield this.api.fetchWithTimeout('/getNftsForPerk', {
|
|
104
|
-
method: 'POST',
|
|
105
|
-
body: JSON.stringify({
|
|
106
|
-
poolId,
|
|
107
|
-
address,
|
|
108
|
-
tickers,
|
|
109
|
-
}),
|
|
110
|
-
});
|
|
16
|
+
/** Gets pool details
|
|
17
|
+
* @param {number} poolId - User's address
|
|
18
|
+
* @returns {CreatoPoolDetailsrInfo} User's creator info
|
|
19
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
20
|
+
* */
|
|
21
|
+
this.getPoolDetails = (poolId) => __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const response = yield this.api.fetchWithTimeout(`/pool/${poolId}/details`);
|
|
111
23
|
return response;
|
|
112
24
|
});
|
|
113
25
|
this.api = api_1.XOXNOClient.init();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/staking/index.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/staking/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,sCAA2C;AAE3C,MAAa,aAAa;IAExB;QAGA;;;;cAIM;QACC,mBAAc,GAAG,CAAO,MAAc,EAAwB,EAAE;YACrE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAC9C,SAAS,MAAM,UAAU,CAC1B,CAAC;YACF,OAAO,QAAQ,CAAC;QAClB,CAAC,CAAA,CAAC;QAZA,IAAI,CAAC,GAAG,GAAG,iBAAW,CAAC,IAAI,EAAE,CAAC;IAChC,CAAC;CAYF;AAhBD,sCAgBC"}
|
|
@@ -10,17 +10,44 @@ export interface ISocials {
|
|
|
10
10
|
youtube: string;
|
|
11
11
|
}
|
|
12
12
|
export interface IMintInfo {
|
|
13
|
+
dataType: string;
|
|
14
|
+
collection: string;
|
|
13
15
|
contractAddress: string;
|
|
14
|
-
totalNftMinted: number;
|
|
15
16
|
collectionTag: string;
|
|
16
17
|
cid: string;
|
|
17
18
|
mediaType: string;
|
|
19
|
+
baseNftName: string;
|
|
20
|
+
hasAttributes: boolean;
|
|
21
|
+
ownerTransferred: boolean;
|
|
18
22
|
collectionSize: number;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
totalNftMinted: number;
|
|
24
|
+
globalWalletLimit: number;
|
|
25
|
+
royalties: number;
|
|
26
|
+
oldVersion: boolean;
|
|
27
|
+
nameShuffle: boolean;
|
|
28
|
+
nftTransferLimited: boolean;
|
|
29
|
+
allowsPublicBurn: boolean;
|
|
30
|
+
kycRequired: boolean;
|
|
31
|
+
allowsRefund: boolean;
|
|
32
|
+
hasBotProtection: boolean;
|
|
33
|
+
hasReveal: boolean;
|
|
34
|
+
tags: string[];
|
|
35
|
+
id: string;
|
|
36
|
+
_ts: number;
|
|
37
|
+
}
|
|
38
|
+
export interface IMintInfoExtended extends IMintInfo {
|
|
39
|
+
collectionInfo: {
|
|
40
|
+
name: string;
|
|
41
|
+
isVerified: boolean;
|
|
42
|
+
profile: string;
|
|
43
|
+
banner: string;
|
|
44
|
+
volume: number;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export interface CreatorInfo {
|
|
48
|
+
name: string;
|
|
49
|
+
contractAddress: string;
|
|
50
|
+
listing: IMintInfoExtended[];
|
|
24
51
|
}
|
|
25
52
|
export interface ICollectionProfile {
|
|
26
53
|
dataType: 'collectionProfile';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/types/collection.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/types/collection.ts"],"names":[],"mappings":";;;AAqGA,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,2BAAY,CAAA;IACZ,6BAAc,CAAA;IACd,8BAAe,CAAA;IACf,4BAAa,CAAA;AACf,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAmBD,IAAY,cAiBX;AAjBD,WAAY,cAAc;IACxB,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EAA8C,CAAA;IAC9C,sFAA4D,CAAA;IAC5D,oFAA0D,CAAA;AAC5D,CAAC,EAlDW,sBAAsB,sCAAtB,sBAAsB,QAkDjC"}
|
package/dist/types/user.d.ts
CHANGED
|
@@ -189,3 +189,57 @@ export type Assets = {
|
|
|
189
189
|
pngUrl: string;
|
|
190
190
|
svgUrl: string;
|
|
191
191
|
};
|
|
192
|
+
export type CreatorProfile = {
|
|
193
|
+
name: string;
|
|
194
|
+
contractAddress: string;
|
|
195
|
+
address: string;
|
|
196
|
+
_ts: number;
|
|
197
|
+
};
|
|
198
|
+
export interface UserStakingSummary {
|
|
199
|
+
collection: string;
|
|
200
|
+
stakedCount: number;
|
|
201
|
+
name: string;
|
|
202
|
+
isVerified: boolean;
|
|
203
|
+
profile: string;
|
|
204
|
+
banner: string;
|
|
205
|
+
reward: RewardStakinSummary[];
|
|
206
|
+
}
|
|
207
|
+
export interface UserCollectionStaking {
|
|
208
|
+
poolId: number;
|
|
209
|
+
name: string;
|
|
210
|
+
profile: string;
|
|
211
|
+
stakedCount: number;
|
|
212
|
+
reward: RewardStakinSummary[];
|
|
213
|
+
isActive: boolean;
|
|
214
|
+
daysLeft: number;
|
|
215
|
+
}
|
|
216
|
+
export interface RewardStakinSummary {
|
|
217
|
+
tokenIdentifier: string;
|
|
218
|
+
tokenNonce: number;
|
|
219
|
+
amount: string;
|
|
220
|
+
amountShort: number;
|
|
221
|
+
usdValue: number;
|
|
222
|
+
}
|
|
223
|
+
export interface PoolDetails {
|
|
224
|
+
poolId: number;
|
|
225
|
+
name: string;
|
|
226
|
+
profile: string;
|
|
227
|
+
collection: string[];
|
|
228
|
+
rewardDuration: number;
|
|
229
|
+
reward: RewardAvaiblePools[];
|
|
230
|
+
poolType: string;
|
|
231
|
+
issuingType: string;
|
|
232
|
+
isActive: boolean;
|
|
233
|
+
daysLeft: number;
|
|
234
|
+
percentFilled: number;
|
|
235
|
+
}
|
|
236
|
+
export interface RewardAvaiblePools {
|
|
237
|
+
tokenIdentifier: string;
|
|
238
|
+
tokenNonce: number;
|
|
239
|
+
rewardPerEpochShort: number;
|
|
240
|
+
rewardPerDayPerNft: number;
|
|
241
|
+
}
|
|
242
|
+
export interface UserPoolStakingInfo {
|
|
243
|
+
nftDocs: NftData[];
|
|
244
|
+
poolDoc: PoolDetails;
|
|
245
|
+
}
|
package/dist/users/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GetNFTsArgs, SearchNFTsResponse, TradincActivityArgs, TradingActivityResponse } from '../types';
|
|
1
|
+
import { CreatorInfo, GetNFTsArgs, IMintInfo, NftData, SearchNFTsResponse, TradincActivityArgs, TradingActivityResponse } from '../types';
|
|
2
2
|
import { GroupStakingInfo } from '../types/staking';
|
|
3
|
-
import { ArgsUserOffers, BulkAccount, IUserProfile, UserAccountInfo, UserInventory, UserOffers,
|
|
3
|
+
import { ArgsUserOffers, BulkAccount, CreatorProfile, IUserProfile, PoolDetails, UserAccountInfo, UserCollectionStaking, UserInventory, UserOffers, UserPoolStakingInfo, UserStakingSummary } from '../types/user';
|
|
4
4
|
export declare class UserModule {
|
|
5
5
|
private api;
|
|
6
6
|
private collection;
|
|
@@ -54,25 +54,60 @@ export declare class UserModule {
|
|
|
54
54
|
* @throws {Error} Throws an error if the 'top' argument is greater than 35.
|
|
55
55
|
*/
|
|
56
56
|
getTradingActivity: (args: TradincActivityArgs) => Promise<TradingActivityResponse>;
|
|
57
|
+
/** Gets user's staking info by ticker
|
|
58
|
+
* @param {String} address - User's address
|
|
59
|
+
* @param {String} ticker - Collection's ticker
|
|
60
|
+
* @returns {GroupStakingInfo[]} User's staking info
|
|
61
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
62
|
+
* */
|
|
63
|
+
getUserStakingTickerInfoGrouped: (address: string, ticker: string) => Promise<GroupStakingInfo[]>;
|
|
64
|
+
/** Gets user's creator profile
|
|
65
|
+
* @param {String} address - User's address
|
|
66
|
+
* @returns {CreatorProfile} User's creator profile struct
|
|
67
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
68
|
+
* */
|
|
69
|
+
getUserCreatorProfile: (address: string) => Promise<CreatorProfile>;
|
|
70
|
+
/** Gets user's creator profile
|
|
71
|
+
* @param {String} address - User's address
|
|
72
|
+
* @returns {IMintInfo[]} User's creator profile struct
|
|
73
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
74
|
+
* */
|
|
75
|
+
getCreatorListings: (address: string) => Promise<IMintInfo[]>;
|
|
57
76
|
/** Gets user's staking info
|
|
58
77
|
* @param {String} address - User's address
|
|
59
|
-
* @returns {
|
|
78
|
+
* @returns {UserStakingSummary[]} User's staking info
|
|
60
79
|
* @throws {Error} Throws an error if the address is invalid
|
|
61
|
-
* @example const userStakingInfo = await new UserModule().getUserStakingInfo('erd11...');
|
|
62
80
|
* */
|
|
63
|
-
|
|
81
|
+
getUserStakingSummary: (address: string) => Promise<UserStakingSummary[]>;
|
|
64
82
|
/** Gets user's staking info
|
|
65
83
|
* @param {String} address - User's address
|
|
66
|
-
* @returns {
|
|
84
|
+
* @returns {UserStakingAvaiblePools[]} User's staking info
|
|
67
85
|
* @throws {Error} Throws an error if the address is invalid
|
|
68
|
-
* @example const userStakingInfo = await new UserModule().getUserStakingInfo('erd11...');
|
|
69
86
|
* */
|
|
70
|
-
|
|
71
|
-
/** Gets user's
|
|
87
|
+
getUserStakingaAailable: (address: string) => Promise<PoolDetails[]>;
|
|
88
|
+
/** Gets user's creator info
|
|
72
89
|
* @param {String} address - User's address
|
|
73
|
-
* @
|
|
74
|
-
* @returns {GroupStakingInfo[]} User's staking info
|
|
90
|
+
* @returns {CreatorInfo} User's creator info
|
|
75
91
|
* @throws {Error} Throws an error if the address is invalid
|
|
76
92
|
* */
|
|
77
|
-
|
|
93
|
+
getUserCreatorInfo: (address: string) => Promise<CreatorInfo>;
|
|
94
|
+
/** Gets pool details
|
|
95
|
+
* @param {String} address - User's address
|
|
96
|
+
* @param {String} collection - Collection ticker
|
|
97
|
+
* @returns {UserCollectionStaking} User's creator info
|
|
98
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
99
|
+
* */
|
|
100
|
+
getUserCollectionStaking: (address: string, collection: string) => Promise<UserCollectionStaking[]>;
|
|
101
|
+
/** Gets pool details
|
|
102
|
+
* @param {number} poolId - User's address
|
|
103
|
+
* @returns {CreatoPoolDetailsrInfo} User's creator info
|
|
104
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
105
|
+
* */
|
|
106
|
+
getUserPoolStaking: (address: string, poolId: number) => Promise<UserPoolStakingInfo>;
|
|
107
|
+
/** Gets pool details
|
|
108
|
+
* @param {number} poolId - User's address
|
|
109
|
+
* @returns {CreatoPoolDetailsrInfo} User's creator info
|
|
110
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
111
|
+
* */
|
|
112
|
+
getAvailableNFTsForStakingPool: (address: string, poolId: number) => Promise<NftData[]>;
|
|
78
113
|
}
|
package/dist/users/index.js
CHANGED
|
@@ -95,42 +95,101 @@ class UserModule {
|
|
|
95
95
|
this.getTradingActivity = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
96
96
|
return yield (0, getActivity_1.getActivity)(args, this.api);
|
|
97
97
|
});
|
|
98
|
+
/** Gets user's staking info by ticker
|
|
99
|
+
* @param {String} address - User's address
|
|
100
|
+
* @param {String} ticker - Collection's ticker
|
|
101
|
+
* @returns {GroupStakingInfo[]} User's staking info
|
|
102
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
103
|
+
* */
|
|
104
|
+
this.getUserStakingTickerInfoGrouped = (address, ticker) => __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
if (!(0, helpers_1.isAddressValid)(address))
|
|
106
|
+
throw new Error('Invalid address');
|
|
107
|
+
if (!(0, regex_1.isValidCollectionTicker)(ticker))
|
|
108
|
+
throw new Error('Invalid ticker');
|
|
109
|
+
const response = yield this.api.fetchWithTimeout(`/getUserStakingInfo/${address}?groupByTicker=true&ticker=${ticker}`);
|
|
110
|
+
return response;
|
|
111
|
+
});
|
|
112
|
+
/** Gets user's creator profile
|
|
113
|
+
* @param {String} address - User's address
|
|
114
|
+
* @returns {CreatorProfile} User's creator profile struct
|
|
115
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
116
|
+
* */
|
|
117
|
+
this.getUserCreatorProfile = (address) => __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
if (!(0, helpers_1.isAddressValid)(address))
|
|
119
|
+
throw new Error('Invalid address');
|
|
120
|
+
const response = yield this.api.fetchWithTimeout(`/user/${address}/creator-profile`);
|
|
121
|
+
return response;
|
|
122
|
+
});
|
|
123
|
+
/** Gets user's creator profile
|
|
124
|
+
* @param {String} address - User's address
|
|
125
|
+
* @returns {IMintInfo[]} User's creator profile struct
|
|
126
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
127
|
+
* */
|
|
128
|
+
this.getCreatorListings = (address) => __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
if (!(0, helpers_1.isAddressValid)(address))
|
|
130
|
+
throw new Error('Invalid address');
|
|
131
|
+
const response = yield this.api.fetchWithTimeout(`/user/${address}/creator-listing`);
|
|
132
|
+
return response;
|
|
133
|
+
});
|
|
98
134
|
/** Gets user's staking info
|
|
99
135
|
* @param {String} address - User's address
|
|
100
|
-
* @returns {
|
|
136
|
+
* @returns {UserStakingSummary[]} User's staking info
|
|
101
137
|
* @throws {Error} Throws an error if the address is invalid
|
|
102
|
-
* @example const userStakingInfo = await new UserModule().getUserStakingInfo('erd11...');
|
|
103
138
|
* */
|
|
104
|
-
this.
|
|
139
|
+
this.getUserStakingSummary = (address) => __awaiter(this, void 0, void 0, function* () {
|
|
105
140
|
if (!(0, helpers_1.isAddressValid)(address))
|
|
106
141
|
throw new Error('Invalid address');
|
|
107
|
-
const response = yield this.api.fetchWithTimeout(`/
|
|
142
|
+
const response = yield this.api.fetchWithTimeout(`/user/${address}/staking-summary`);
|
|
108
143
|
return response;
|
|
109
144
|
});
|
|
110
145
|
/** Gets user's staking info
|
|
111
146
|
* @param {String} address - User's address
|
|
112
|
-
* @returns {
|
|
147
|
+
* @returns {UserStakingAvaiblePools[]} User's staking info
|
|
113
148
|
* @throws {Error} Throws an error if the address is invalid
|
|
114
|
-
* @example const userStakingInfo = await new UserModule().getUserStakingInfo('erd11...');
|
|
115
149
|
* */
|
|
116
|
-
this.
|
|
150
|
+
this.getUserStakingaAailable = (address) => __awaiter(this, void 0, void 0, function* () {
|
|
117
151
|
if (!(0, helpers_1.isAddressValid)(address))
|
|
118
152
|
throw new Error('Invalid address');
|
|
119
|
-
const response = yield this.api.fetchWithTimeout(`/
|
|
153
|
+
const response = yield this.api.fetchWithTimeout(`/user/${address}/available-pools`);
|
|
120
154
|
return response;
|
|
121
155
|
});
|
|
122
|
-
/** Gets user's
|
|
156
|
+
/** Gets user's creator info
|
|
123
157
|
* @param {String} address - User's address
|
|
124
|
-
* @
|
|
125
|
-
* @returns {GroupStakingInfo[]} User's staking info
|
|
158
|
+
* @returns {CreatorInfo} User's creator info
|
|
126
159
|
* @throws {Error} Throws an error if the address is invalid
|
|
127
160
|
* */
|
|
128
|
-
this.
|
|
161
|
+
this.getUserCreatorInfo = (address) => __awaiter(this, void 0, void 0, function* () {
|
|
129
162
|
if (!(0, helpers_1.isAddressValid)(address))
|
|
130
163
|
throw new Error('Invalid address');
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
164
|
+
const response = yield this.api.fetchWithTimeout(`/user/${address}/creator-info`);
|
|
165
|
+
return response;
|
|
166
|
+
});
|
|
167
|
+
/** Gets pool details
|
|
168
|
+
* @param {String} address - User's address
|
|
169
|
+
* @param {String} collection - Collection ticker
|
|
170
|
+
* @returns {UserCollectionStaking} User's creator info
|
|
171
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
172
|
+
* */
|
|
173
|
+
this.getUserCollectionStaking = (address, collection) => __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
const response = yield this.api.fetchWithTimeout(`/user/${address}/collection-staking/${collection}`);
|
|
175
|
+
return response;
|
|
176
|
+
});
|
|
177
|
+
/** Gets pool details
|
|
178
|
+
* @param {number} poolId - User's address
|
|
179
|
+
* @returns {CreatoPoolDetailsrInfo} User's creator info
|
|
180
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
181
|
+
* */
|
|
182
|
+
this.getUserPoolStaking = (address, poolId) => __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
const response = yield this.api.fetchWithTimeout(`/user/${address}/pool-staking/${poolId}`);
|
|
184
|
+
return response;
|
|
185
|
+
});
|
|
186
|
+
/** Gets pool details
|
|
187
|
+
* @param {number} poolId - User's address
|
|
188
|
+
* @returns {CreatoPoolDetailsrInfo} User's creator info
|
|
189
|
+
* @throws {Error} Throws an error if the address is invalid
|
|
190
|
+
* */
|
|
191
|
+
this.getAvailableNFTsForStakingPool = (address, poolId) => __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
const response = yield this.api.fetchWithTimeout(`/user/${address}/pool/${poolId}/available-nfts`);
|
|
134
193
|
return response;
|
|
135
194
|
});
|
|
136
195
|
this.api = index_1.XOXNOClient.init();
|
package/dist/users/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/users/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAyD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/users/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAyD;AAwBzD,sDAAmD;AACnD,8CAAkD;AAClD,0CAAyD;AAEzD,MAAa,UAAU;IAGrB;QAKA;;;;;WAKG;QACI,mBAAc,GAAG,CAAO,OAAe,EAAyB,EAAE;YACvE,IAAI,CAAC,IAAA,wBAAc,EAAC,OAAO,CAAC;gBAAE,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;YACjE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAC9C,mBAAmB,OAAO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AAC;QAClB,CAAC,CAAA,CAAC;QAEF;;;;;cAKM;QACC,6BAAwB,GAAG,CAChC,OAAe,EACf,UAAkB,EACgB,EAAE;YACpC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAC9C,SAAS,OAAO,uBAAuB,UAAU,EAAE,CACpD,CAAC;YACF,OAAO,QAAQ,CAAC;QAClB,CAAC,CAAA,CAAC;QAEF;;;;cAIM;QACC,uBAAkB,GAAG,CAC1B,OAAe,EACf,MAAc,EACgB,EAAE;YAChC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAC9C,SAAS,OAAO,iBAAiB,MAAM,EAAE,CAC1C,CAAC;YACF,OAAO,QAAQ,CAAC;QAClB,CAAC,CAAA,CAAC;QAEF;;;;cAIM;QACC,mCAA8B,GAAG,CACtC,OAAe,EACf,MAAc,EACM,EAAE;YACtB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAC9C,SAAS,OAAO,SAAS,MAAM,iBAAiB,CACjD,CAAC;YACF,OAAO,QAAQ,CAAC;QAClB,CAAC,CAAA,CAAC;QArPA,IAAI,CAAC,GAAG,GAAG,mBAAW,CAAC,IAAI,EAAE,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAgB,EAAE,CAAC;IAC3C,CAAC;CAoPF;AA1PD,gCA0PC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/sdk-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32-alpha",
|
|
4
4
|
"description": "The SDK to interact with the XOXNO Protocol!",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://github.com/XOXNO/sdk-js#readme",
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@commitlint/cli": "^18.
|
|
48
|
-
"@commitlint/config-conventional": "^18.
|
|
47
|
+
"@commitlint/cli": "^18.6.0",
|
|
48
|
+
"@commitlint/config-conventional": "^18.6.0",
|
|
49
49
|
"@semantic-release/changelog": "^6.0.3",
|
|
50
50
|
"@semantic-release/git": "^10.0.1",
|
|
51
51
|
"@types/jest": "^29.5.11",
|
|
52
|
-
"@types/node": "^20.11.
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^6.19.
|
|
54
|
-
"@typescript-eslint/parser": "^6.19.
|
|
52
|
+
"@types/node": "^20.11.8",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
54
|
+
"@typescript-eslint/parser": "^6.19.1",
|
|
55
55
|
"commitizen": "^4.3.0",
|
|
56
56
|
"cz-conventional-changelog": "^3.3.0",
|
|
57
57
|
"eslint": "^8.56.0",
|
|
58
58
|
"eslint-config-prettier": "^9.1.0",
|
|
59
59
|
"eslint-plugin-prettier": "^5.1.3",
|
|
60
|
-
"husky": "^
|
|
60
|
+
"husky": "^9.0.6",
|
|
61
61
|
"jest": "^29.7.0",
|
|
62
62
|
"prettier": "^3.2.4",
|
|
63
63
|
"semantic-release": "^23.0.0",
|