@xoxno/sdk-js 0.1.75-alpha → 0.1.76-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.
Files changed (183) hide show
  1. package/out/cjs/collection/index.js +625 -0
  2. package/out/cjs/collection/index.js.map +1 -0
  3. package/out/cjs/common/index.js +141 -0
  4. package/out/cjs/common/index.js.map +1 -0
  5. package/out/cjs/index.js +26 -0
  6. package/out/cjs/index.js.map +1 -0
  7. package/out/cjs/index.large.js +19 -0
  8. package/out/cjs/index.large.js.map +1 -0
  9. package/out/cjs/interactions/index.js +678 -0
  10. package/out/cjs/interactions/index.js.map +1 -0
  11. package/out/cjs/launchpad/index.js +158 -0
  12. package/out/cjs/launchpad/index.js.map +1 -0
  13. package/out/cjs/nft/index.js +121 -0
  14. package/out/cjs/nft/index.js.map +1 -0
  15. package/out/cjs/staking/index.js +29 -0
  16. package/out/cjs/staking/index.js.map +1 -0
  17. package/{dist → out/cjs}/types/collection.js +31 -28
  18. package/out/cjs/types/collection.js.map +1 -0
  19. package/out/cjs/types/common.js +3 -0
  20. package/{dist → out/cjs}/types/common.js.map +1 -1
  21. package/out/cjs/types/index.js +24 -0
  22. package/out/cjs/types/index.js.map +1 -0
  23. package/{dist → out/cjs}/types/interactions.js +5 -2
  24. package/out/cjs/types/interactions.js.map +1 -0
  25. package/out/cjs/types/nft.js +3 -0
  26. package/out/cjs/types/nft.js.map +1 -0
  27. package/out/cjs/types/staking.js +15 -0
  28. package/out/cjs/types/staking.js.map +1 -0
  29. package/{dist → out/cjs}/types/trading.js +9 -6
  30. package/out/cjs/types/trading.js.map +1 -0
  31. package/out/cjs/types/user.js +13 -0
  32. package/out/cjs/types/user.js.map +1 -0
  33. package/out/cjs/users/index.js +335 -0
  34. package/out/cjs/users/index.js.map +1 -0
  35. package/out/cjs/utils/SmartContractAbis.js +103 -0
  36. package/out/cjs/utils/SmartContractAbis.js.map +1 -0
  37. package/out/cjs/utils/SmartContractService.js +13 -0
  38. package/out/cjs/utils/SmartContractService.js.map +1 -0
  39. package/out/cjs/utils/api.js +79 -0
  40. package/out/cjs/utils/api.js.map +1 -0
  41. package/out/cjs/utils/const.js +17 -0
  42. package/out/cjs/utils/const.js.map +1 -0
  43. package/out/cjs/utils/getActivity.js +65 -0
  44. package/out/cjs/utils/getActivity.js.map +1 -0
  45. package/out/cjs/utils/helpers.js +27 -0
  46. package/out/cjs/utils/helpers.js.map +1 -0
  47. package/out/cjs/utils/regex.js +12 -0
  48. package/out/cjs/utils/regex.js.map +1 -0
  49. package/out/cjs/utils/scCalls.js +39 -0
  50. package/out/cjs/utils/scCalls.js.map +1 -0
  51. package/out/src/collection/__tests__/collection.test.js +2 -0
  52. package/out/src/collection/__tests__/collection.test.js.map +1 -0
  53. package/out/src/collection/index.js +2 -0
  54. package/out/src/collection/index.js.map +1 -0
  55. package/out/src/common/index.js +2 -0
  56. package/out/src/common/index.js.map +1 -0
  57. package/out/src/index.js +2 -0
  58. package/out/src/index.js.map +1 -0
  59. package/out/src/index.large.js +2 -0
  60. package/out/src/index.large.js.map +1 -0
  61. package/out/src/interactions/__tests__/market.test.js +2 -0
  62. package/out/src/interactions/__tests__/market.test.js.map +1 -0
  63. package/out/src/interactions/index.js +2 -0
  64. package/out/src/interactions/index.js.map +1 -0
  65. package/out/src/launchpad/__tests__/market.test.js +2 -0
  66. package/out/src/launchpad/__tests__/market.test.js.map +1 -0
  67. package/out/src/launchpad/index.js +2 -0
  68. package/out/src/launchpad/index.js.map +1 -0
  69. package/out/src/nft/__tests__/nft.test.js +2 -0
  70. package/out/src/nft/__tests__/nft.test.js.map +1 -0
  71. package/out/src/nft/index.js +2 -0
  72. package/out/src/nft/index.js.map +1 -0
  73. package/out/src/staking/index.js +2 -0
  74. package/out/src/staking/index.js.map +1 -0
  75. package/out/src/types/collection.js +2 -0
  76. package/out/src/types/collection.js.map +1 -0
  77. package/out/src/types/common.js +2 -0
  78. package/out/src/types/common.js.map +1 -0
  79. package/out/src/types/index.js +2 -0
  80. package/out/src/types/index.js.map +1 -0
  81. package/out/src/types/interactions.js +2 -0
  82. package/out/src/types/interactions.js.map +1 -0
  83. package/out/src/types/nft.js +2 -0
  84. package/out/src/types/nft.js.map +1 -0
  85. package/out/src/types/staking.js +2 -0
  86. package/out/src/types/staking.js.map +1 -0
  87. package/out/src/types/trading.js +2 -0
  88. package/out/src/types/trading.js.map +1 -0
  89. package/out/src/types/user.js +2 -0
  90. package/out/src/types/user.js.map +1 -0
  91. package/out/src/users/__tests__/user.test.js +2 -0
  92. package/out/src/users/__tests__/user.test.js.map +1 -0
  93. package/out/src/users/index.js +2 -0
  94. package/out/src/users/index.js.map +1 -0
  95. package/out/src/utils/SmartContractAbis.js +2 -0
  96. package/out/src/utils/SmartContractAbis.js.map +1 -0
  97. package/out/src/utils/SmartContractService.js +2 -0
  98. package/out/src/utils/SmartContractService.js.map +1 -0
  99. package/out/src/utils/api.js +2 -0
  100. package/out/src/utils/api.js.map +1 -0
  101. package/out/src/utils/const.js +2 -0
  102. package/out/src/utils/const.js.map +1 -0
  103. package/out/src/utils/getActivity.js +2 -0
  104. package/out/src/utils/getActivity.js.map +1 -0
  105. package/out/src/utils/helpers.js +2 -0
  106. package/out/src/utils/helpers.js.map +1 -0
  107. package/out/src/utils/regex.js +2 -0
  108. package/out/src/utils/regex.js.map +1 -0
  109. package/out/src/utils/scCalls.js +2 -0
  110. package/out/src/utils/scCalls.js.map +1 -0
  111. package/package.json +21 -8
  112. package/.eslintrc.json +0 -19
  113. package/dist/collection/index.js +0 -660
  114. package/dist/collection/index.js.map +0 -1
  115. package/dist/common/index.js +0 -132
  116. package/dist/common/index.js.map +0 -1
  117. package/dist/index.js +0 -10
  118. package/dist/index.js.map +0 -1
  119. package/dist/index.large.js +0 -3
  120. package/dist/index.large.js.map +0 -1
  121. package/dist/interactions/index.js +0 -619
  122. package/dist/interactions/index.js.map +0 -1
  123. package/dist/launchpad/index.js +0 -140
  124. package/dist/launchpad/index.js.map +0 -1
  125. package/dist/nft/index.js +0 -109
  126. package/dist/nft/index.js.map +0 -1
  127. package/dist/staking/index.js +0 -17
  128. package/dist/staking/index.js.map +0 -1
  129. package/dist/types/collection.js.map +0 -1
  130. package/dist/types/common.js +0 -2
  131. package/dist/types/index.js +0 -8
  132. package/dist/types/index.js.map +0 -1
  133. package/dist/types/interactions.js.map +0 -1
  134. package/dist/types/nft.js +0 -2
  135. package/dist/types/nft.js.map +0 -1
  136. package/dist/types/staking.js +0 -12
  137. package/dist/types/staking.js.map +0 -1
  138. package/dist/types/trading.js.map +0 -1
  139. package/dist/types/user.js +0 -10
  140. package/dist/types/user.js.map +0 -1
  141. package/dist/users/index.js +0 -324
  142. package/dist/users/index.js.map +0 -1
  143. package/dist/utils/SmartContractAbis.js +0 -84
  144. package/dist/utils/SmartContractAbis.js.map +0 -1
  145. package/dist/utils/SmartContractService.js +0 -9
  146. package/dist/utils/SmartContractService.js.map +0 -1
  147. package/dist/utils/api.js +0 -82
  148. package/dist/utils/api.js.map +0 -1
  149. package/dist/utils/const.js +0 -14
  150. package/dist/utils/const.js.map +0 -1
  151. package/dist/utils/getActivity.js +0 -64
  152. package/dist/utils/getActivity.js.map +0 -1
  153. package/dist/utils/helpers.js +0 -21
  154. package/dist/utils/helpers.js.map +0 -1
  155. package/dist/utils/regex.js +0 -7
  156. package/dist/utils/regex.js.map +0 -1
  157. package/dist/utils/scCalls.js +0 -25
  158. package/dist/utils/scCalls.js.map +0 -1
  159. /package/{dist → out/cjs}/collection/index.d.ts +0 -0
  160. /package/{dist → out/cjs}/common/index.d.ts +0 -0
  161. /package/{dist → out/cjs}/index.d.ts +0 -0
  162. /package/{dist → out/cjs}/index.large.d.ts +0 -0
  163. /package/{dist → out/cjs}/interactions/index.d.ts +0 -0
  164. /package/{dist → out/cjs}/launchpad/index.d.ts +0 -0
  165. /package/{dist → out/cjs}/nft/index.d.ts +0 -0
  166. /package/{dist → out/cjs}/staking/index.d.ts +0 -0
  167. /package/{dist → out/cjs}/types/collection.d.ts +0 -0
  168. /package/{dist → out/cjs}/types/common.d.ts +0 -0
  169. /package/{dist → out/cjs}/types/index.d.ts +0 -0
  170. /package/{dist → out/cjs}/types/interactions.d.ts +0 -0
  171. /package/{dist → out/cjs}/types/nft.d.ts +0 -0
  172. /package/{dist → out/cjs}/types/staking.d.ts +0 -0
  173. /package/{dist → out/cjs}/types/trading.d.ts +0 -0
  174. /package/{dist → out/cjs}/types/user.d.ts +0 -0
  175. /package/{dist → out/cjs}/users/index.d.ts +0 -0
  176. /package/{dist → out/cjs}/utils/SmartContractAbis.d.ts +0 -0
  177. /package/{dist → out/cjs}/utils/SmartContractService.d.ts +0 -0
  178. /package/{dist → out/cjs}/utils/api.d.ts +0 -0
  179. /package/{dist → out/cjs}/utils/const.d.ts +0 -0
  180. /package/{dist → out/cjs}/utils/getActivity.d.ts +0 -0
  181. /package/{dist → out/cjs}/utils/helpers.d.ts +0 -0
  182. /package/{dist → out/cjs}/utils/regex.d.ts +0 -0
  183. /package/{dist → out/cjs}/utils/scCalls.d.ts +0 -0
@@ -1,140 +0,0 @@
1
- import { SmartContractAbis } from '../utils/SmartContractAbis';
2
- import { getSmartContract } from '../utils/SmartContractService';
3
- import { ContractQueryRunner } from '../utils/scCalls';
4
- /**
5
- * LaunchpadModule provides methods to interact with the minter smart contract.
6
- * @class
7
- */
8
- export class LaunchpadModule {
9
- minter;
10
- call;
11
- /**
12
- * @constructor
13
- * @param {SmartContract} minterAbiXOXNO - The minter smart contract instance.
14
- */
15
- constructor(minterAbiXOXNO) {
16
- this.minter = minterAbiXOXNO;
17
- this.call = new ContractQueryRunner();
18
- }
19
- /**
20
- * Executes the provided interaction and returns the result.
21
- * @private
22
- * @param {Interaction} interaction - The smart contract interaction.
23
- * @returns {Promise<any>} The result of the interaction.
24
- */
25
- async getResult(interaction) {
26
- return await this.call.runQuery(this.minter, interaction);
27
- }
28
- /**
29
- * Initializes the LaunchpadModule with a minter smart contract instance.
30
- * @static
31
- * @param {string} minterSC - The minter smart contract address.
32
- * @returns {Promise<LaunchpadModule>} A new instance of LaunchpadModule.
33
- */
34
- static async init(minterSC) {
35
- const minterAbiXOXNO = await SmartContractAbis.getMinter();
36
- const minter_abi = getSmartContract(minterAbiXOXNO, minterSC);
37
- return new LaunchpadModule(minter_abi);
38
- }
39
- /**
40
- * Fetches all unique tags from the minter smart contract.
41
- * @public
42
- * @returns {Promise<string[]>} An array of unique tags.
43
- */
44
- getAllUniqueTags = async () => {
45
- const interaction = this.minter.methods.collections();
46
- const result = await this.getResult(interaction);
47
- return result.firstValue?.valueOf().map((x) => x.toString());
48
- };
49
- /**
50
- * Fetches the global buy count for a user and tag.
51
- * @public
52
- * @param {string} user - The user's address.
53
- * @param {string} tag - The tag.
54
- * @returns {Promise<number>} The global buy count.
55
- */
56
- getWalletGlobalBuyCount = async (user, tag) => {
57
- const interaction = this.minter.methods.buysPerWallet([user, tag]);
58
- const result = await this.getResult(interaction);
59
- return result.firstValue?.valueOf();
60
- };
61
- /**
62
- * Fetches the stage buy count for a user, tag, and stage.
63
- * @public
64
- * @param {string} user - The user's address.
65
- * @param {string} tag - The tag.
66
- * @param {string} stage - The stage.
67
- * @returns {Promise<number>} The stage buy count.
68
- */
69
- getWalletStageBuyCount = async (user, tag, stage) => {
70
- const interaction = this.minter.methods.buysStagePerWallet([
71
- user,
72
- tag,
73
- stage,
74
- ]);
75
- const result = await this.getResult(interaction);
76
- return result.firstValue?.valueOf();
77
- };
78
- /**
79
- * Fetches the local owner's address from the minter smart contract.
80
- * @public
81
- * @returns {Promise<string>} The local owner's address.
82
- */
83
- getLocalOwner = async () => {
84
- const interaction = this.minter.methods.localOwner();
85
- const result = await this.getResult(interaction);
86
- return result.firstValue?.valueOf();
87
- };
88
- /**
89
- * Fetches the launchpad cut fee percentage from the minter smart contract.
90
- * @public
91
- * @returns {Promise<number>} The launchpad cut fee percentage.
92
- */
93
- getLaunchpadCutFee = async () => {
94
- const interaction = this.minter.methods.cutPercentage();
95
- const result = await this.getResult(interaction);
96
- return result.firstValue?.valueOf();
97
- };
98
- /**
99
- * Fetches the stage whitelist of wallets for a tag and stage.
100
- * @public
101
- * @param {string} tag - The tag.
102
- * @param {string} stage - The stage.
103
- * @returns {Promise<string[]>} An array of whitelisted wallet addresses.
104
- */
105
- getStageWhitelist = async (tag, stage) => {
106
- const interaction = this.minter.methods.getWhitelistedWallets([tag, stage]);
107
- const result = await this.getResult(interaction);
108
- return result.firstValue?.valueOf().map((x) => x.toString());
109
- };
110
- /**
111
- * Fetches the list of stages for a tag.
112
- * @public
113
- * @param {string} tag - The tag.
114
- * @returns {Promise<string[]>} An array of stages.
115
- */
116
- getStages = async (tag) => {
117
- const interaction = this.minter.methods.mintStage([tag]);
118
- const result = await this.getResult(interaction);
119
- return result.firstValue?.valueOf().map((x) => {
120
- const body = x[1].valueOf();
121
- body.name = body.name.toString();
122
- body.tag = body.name.toString();
123
- body.start_time = parseInt(body.start_time.toString());
124
- body.end_time = parseInt(body.end_time.toString());
125
- body.mint_limit = parseInt(body.mint_limit.toString());
126
- body.mint_count = parseInt(body.mint_count.toString());
127
- body.max_per_wallet = parseInt(body.max_per_wallet.toString());
128
- body.prices = body.prices.map((x) => {
129
- const pr = x.valueOf();
130
- return {
131
- ...pr,
132
- token_nonce: parseInt(pr.token_nonce.toString()),
133
- amount: pr.amount.toString(),
134
- };
135
- });
136
- return body;
137
- });
138
- };
139
- }
140
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/launchpad/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD;;;GAGG;AACH,MAAM,OAAO,eAAe;IAClB,MAAM,CAAgB;IACtB,IAAI,CAAsB;IAClC;;;OAGG;I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EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;gBACvB,OAAO;oBACL,GAAG,EAAE;oBACL,WAAW,EAAE,QAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;oBAChD,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE;iBAC7B,CAAC;YACJ,CAAC,CAAC,CAAC;YAEH,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;CACH"}
package/dist/nft/index.js DELETED
@@ -1,109 +0,0 @@
1
- import { XOXNOClient } from '..';
2
- import { getActivity } from '../utils/getActivity';
3
- import { getIdentifierFromColAndNonce } from '../utils/helpers';
4
- import { isValidCollectionTicker, isValidNftIdentifier } from '../utils/regex';
5
- /**
6
- * NFTModule provides a set of methods to interact with single NFTs.
7
- * It includes methods for getting single NFT information, and searching NFTs by collection and nonce.
8
- *
9
- * @example
10
- * const nftModule = new NFTModule();
11
- */
12
- export class NFTModule {
13
- api;
14
- constructor() {
15
- this.api = XOXNOClient.init();
16
- }
17
- /**
18
- * @public
19
- * @async
20
- * @function getNFTByIdentifier
21
- * @param {string} identifier - The identifier of the NFT to fetch data for.
22
- * @returns {Promise<NftData>} A promise that resolves to the fetched NFT data.
23
- *
24
- * This function fetches data for a given NFT by its identifier. It takes the following parameter:
25
- * - identifier (string): The identifier of the NFT to fetch data for.
26
- *
27
- * The function first validates the input identifier and checks if it is a valid NFT identifier.
28
- * If it is valid, the function fetches the NFT data using the API.
29
- * Finally, it returns a promise that resolves to the fetched NFT data.
30
- */
31
- getNFTByIdentifier = async (identifier) => {
32
- if (!isValidNftIdentifier(identifier)) {
33
- throw new Error('Invalid identifier: ' + identifier);
34
- }
35
- const response = await this.api.fetchWithTimeout(`/nft/${identifier}`);
36
- return response;
37
- };
38
- /**
39
- * @public
40
- * @async
41
- * @function getNFTByIdentifier
42
- * @param {string} identifier - The identifier of the NFT to fetch data for.
43
- * @returns {Promise<NftData>} A promise that resolves to the fetched NFT data.
44
- *
45
- * This function fetches data for a given NFT by its identifier. It takes the following parameter:
46
- * - identifier (string): The identifier of the NFT to fetch data for.
47
- *
48
- * The function first validates the input identifier and checks if it is a valid NFT identifier.
49
- * If it is valid, the function fetches the NFT data using the API.
50
- * Finally, it returns a promise that resolves to the fetched NFT data.
51
- */
52
- getNFTsOffers = async (identifier, skip = 0, top = 25) => {
53
- if (!isValidNftIdentifier(identifier)) {
54
- throw new Error('Invalid identifier: ' + identifier);
55
- }
56
- const response = await this.api.fetchWithTimeout(`/nft/${identifier}/offers?skip=${skip}&top=${top}`, {
57
- next: {
58
- tags: ['getNFTsOffers'],
59
- revalidate: 12,
60
- },
61
- });
62
- return response;
63
- };
64
- /**
65
- * Gets an NFT by collection and nonce.
66
- * @param collection The collection ticker.
67
- * @param nonce The nonce of the NFT.
68
- * @returns {Promise<NftData>} The NFT data.
69
- * @throws Throws an error when the collection ticker is invalid.
70
- */
71
- getNFTByCollectionAndNonce = async (collection, nonce) => {
72
- if (!isValidCollectionTicker(collection)) {
73
- throw new Error('Invalid collection ticker: ' + collection);
74
- }
75
- const response = await this.api.fetchWithTimeout(`/${getIdentifierFromColAndNonce(collection, nonce)}`);
76
- return response;
77
- };
78
- /**
79
- * Get NFT by collection and nonce hex
80
- *
81
- * @param collection - collection ticker
82
- * @param nonceHex - nonce hex
83
- * @return {Promise<NftData>} NFT data
84
- */
85
- getNFTByCollectionAndNonceHex = async (collection, nonceHex) => {
86
- // check that collection is valid
87
- if (!isValidCollectionTicker(collection)) {
88
- throw new Error('Invalid collection ticker: ' + collection);
89
- }
90
- // make sure nonceHex is even
91
- if (nonceHex.length % 2 !== 0) {
92
- nonceHex = '0' + nonceHex;
93
- }
94
- // fetch the NFT data
95
- const response = await this.api.fetchWithTimeout(`/${[collection, nonceHex].join('-')}`);
96
- return response;
97
- };
98
- /**
99
- * Retrieves trading history based on the provided arguments.
100
- *
101
- * @param {TradincActivityArgs} args - The arguments for filtering the trading activity.
102
- * @returns {Promise<TradingActivityResponse>} A promise resolving to a TradingActivityResponse object containing the activity.
103
- * @throws {Error} Throws an error if the 'top' argument is greater than 35.
104
- */
105
- getTradingActivity = async (args) => {
106
- return await getActivity(args, this.api);
107
- };
108
- }
109
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/nft/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAIjC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE/E;;;;;;GAMG;AAEH,MAAM,OAAO,SAAS;IACZ,GAAG,CAAc;IACzB;QACE,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;IAChC,CAAC;IAED;;;;;;;;;;;;;OAaG;IACI,kBAAkB,GAAG,KAAK,EAAE,UAAkB,EAAoB,EAAE;QACzE,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE,CAAC;YACtC,MAAM,IAAI,KAAK,CAAC,sBAAsB,GAAG,UAAU,CAAC,CAAC;QACvD,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAC9C,QAAQ,UAAU,EAAE,CACrB,CAAC;QACF,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC;IAEF;;;;;;;;;;;;;OAaG;IACI,aAAa,GAAG,KAAK,EAC1B,UAAkB,EAClB,OAAe,CAAC,EAChB,MAAc,EAAE,EACK,EAAE;QACvB,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE,CAAC;YACtC,MAAM,IAAI,KAAK,CAAC,sBAAsB,GAAG,UAAU,CAAC,CAAC;QACvD,CAAC;QACD,MAAM,QAAQ,GA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ACI,kBAAkB,GAAG,KAAK,EAC/B,IAAyB,EACS,EAAE;QACpC,OAAO,MAAM,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3C,CAAC,CAAC;CACH"}
@@ -1,17 +0,0 @@
1
- import { XOXNOClient } from '../utils/api';
2
- export class StakingModule {
3
- api;
4
- constructor() {
5
- this.api = XOXNOClient.init();
6
- }
7
- /** Gets pool details
8
- * @param {number} poolId - User's address
9
- * @returns {CreatoPoolDetailsrInfo} User's creator info
10
- * @throws {Error} Throws an error if the address is invalid
11
- * */
12
- getPoolDetails = async (poolId) => {
13
- const response = await this.api.fetchWithTimeout(`/pool/${poolId}/profile`);
14
- return response;
15
- };
16
- }
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/staking/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,OAAO,aAAa;IAChB,GAAG,CAAc;IACzB;QACE,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;IAChC,CAAC;IACD;;;;UAIM;IACC,cAAc,GAAG,KAAK,EAAE,MAAc,EAAwB,EAAE;QACrE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAC9C,SAAS,MAAM,UAAU,CAC1B,CAAC;QACF,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC;CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/types/collection.ts"],"names":[],"mappings":"AA+GA,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,2BAAY,CAAA;IACZ,6BAAc,CAAA;IACd,8BAAe,CAAA;IACf,4BAAa,CAAA;AACf,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAmBD,MAAM,CAAN,IAAY,cAiBX;AAjBD,WAAY,cA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AA8C,CAAA;IAC9C,sFAA4D,CAAA;IAC5D,oFAA0D,CAAA;IAC1D,0EAAgD,CAAA;IAChD,wEAA8C,CAAA;IAC9C,sFAA4D,CAAA;IAC5D,oFAA0D,CAAA;IAE1D,4EAAkD,CAAA;IAClD,0EAAgD,CAAA;IAChD,wFAA8D,CAAA;IAC9D,sFAA4D,CAAA;IAC5D,4EAAkD,CAAA;IAClD,0EAAgD,CAAA;IAChD,wFAA8D,CAAA;IAC9D,sFAA4D,CAAA;IAE5D,0EAAgD,CAAA;IAChD,wEAA8C,CAAA;IAC9C,sFAA4D,CAAA;IAC5D,oFAA0D,CAAA;IAC1D,0EAAgD,CAAA;IAChD,wEAA8C,CAAA;IAC9C,sFAA4D,CAAA;IAC5D,oFAA0D,CAAA;AAC5D,CAAC,EAlDW,sBAAsB,KAAtB,sBAAsB,QAkDjC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=common.js.map
@@ -1,8 +0,0 @@
1
- export * from './collection';
2
- export * from './nft';
3
- export * from './trading';
4
- export * from './interactions';
5
- export * from './staking';
6
- export * from './user';
7
- export * from './common';
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"interactions.js","sourceRoot":"","sources":["../../src/types/interactions.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,iDAAM,CAAA;IACN,2CAAG,CAAA;IACH,iDAAM,CAAA;IACN,qEAAgB,CAAA;AAClB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB"}
package/dist/types/nft.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=nft.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nft.js","sourceRoot":"","sources":["../../src/types/nft.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- export var IssuingType;
2
- (function (IssuingType) {
3
- IssuingType["Dynamic"] = "Dynamic";
4
- IssuingType["Fixed"] = "Fixed";
5
- })(IssuingType || (IssuingType = {}));
6
- export var PoolType;
7
- (function (PoolType) {
8
- PoolType["Duo"] = "Duo";
9
- PoolType["Single"] = "Single";
10
- PoolType["Perk"] = "Perk";
11
- })(PoolType || (PoolType = {}));
12
- //# sourceMappingURL=staking.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"staking.js","sourceRoot":"","sources":["../../src/types/staking.ts"],"names":[],"mappings":"AAuCA,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAED,MAAM,CAAN,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,6BAAiB,CAAA;IACjB,yBAAa,CAAA;AACf,CAAC,EAJW,QAAQ,KAAR,QAAQ,QAInB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"trading.js","sourceRoot":"","sources":["../../src/types/trading.ts"],"names":[],"mappings":"AAOA,MAAM,CAAN,IAAY,eA0BX;AA1BD,WAAY,eAAe;IACzB,eAAe;IACf,2CAAwB,CAAA;IACxB,uCAAoB,CAAA;IACpB,2CAAwB,CAAA;IACxB,+CAA4B,CAAA;IAC5B,cAAc;IACd,mDAAgC,CAAA;IAChC,uDAAoC,CAAA;IACpC,mDAAgC,CAAA;IAChC,6CAA0B,CAAA;IAC1B,oDAAiC,CAAA;IACjC,+CAA4B,CAAA;IAC5B,mDAAgC,CAAA;IAChC,+CAA4B,CAAA;IAC5B,4DAAyC,CAAA;IACzC,gEAA6C,CAAA;IAC7C,kCAAe,CAAA;IACf,2CAAwB,CAAA;IACxB,iDAA8B,CAAA;IAC9B,6CAA0B,CAAA;IAC1B,6CAA0B,CAAA;IAC1B,0DAAuC,CAAA;IACvC,UAAU;IACV,kCAAe,CAAA;IACf,uCAAoB,CAAA;AACtB,CAAC,EA1BW,eAAe,KAAf,eAAe,QA0B1B;AAgED,MAAM,CAAN,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAChC,wEAA8C,CAAA;IAC9C,uEAA6C,CAAA;IAC7C,yDAA+B,CAAA;IAC/B,wDAA8B,CAAA;AAChC,CAAC,EALW,sBAAsB,KAAtB,sBAAsB,QAKjC;AAED,MAAM,CAAN,IAAY,2BAWX;AAXD,WAAY,2BAA2B;IACrC,yFAAY,CAAA;IACZ,yFAAY,CAAA;IACZ,qFAAU,CAAA;IACV,+EAAO,CAAA;IACP,2FAAa,CAAA;IACb,+EAAO,CAAA;IACP,yEAAI,CAAA;IACJ,qFAAU,CAAA;IACV,2FAAa,CAAA;IACb,+FAAe,CAAA;AACjB,CAAC,EAXW,2BAA2B,KAA3B,2BAA2B,QAWtC"}
@@ -1,10 +0,0 @@
1
- export var OfferType;
2
- (function (OfferType) {
3
- OfferType["Received"] = "received";
4
- OfferType["Placed"] = "placed";
5
- })(OfferType || (OfferType = {}));
6
- export var Type;
7
- (function (Type) {
8
- Type["NonFungibleESDT"] = "NonFungibleESDT";
9
- })(Type || (Type = {}));
10
- //# sourceMappingURL=user.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":"AA+EA,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;AACnB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA2CD,MAAM,CAAN,IAAY,IAEX;AAFD,WAAY,IAAI;IACd,2CAAmC,CAAA;AACrC,CAAC,EAFW,IAAI,KAAJ,IAAI,QAEf"}