@xoxno/sdk-js 0.1.54-alpha → 0.1.55-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/236.bundle.js +1 -0
- package/dist/265.bundle.js +2 -0
- package/dist/265.bundle.js.LICENSE.txt +10 -0
- package/dist/collection/index.d.ts +13 -1
- package/dist/common/index.d.ts +1 -9
- package/dist/index.bundle.js +1 -0
- package/dist/index.d.ts +0 -2
- package/dist/interactions.bundle.js +1 -0
- package/dist/launchpad.bundle.js +1 -0
- package/dist/runtime.bundle.js +1 -0
- package/dist/types/collection.d.ts +3 -0
- package/dist/types/trading.d.ts +39 -19
- package/dist/utils/api.d.ts +1 -1
- package/package.json +11 -8
- package/dist/collection/index.js +0 -520
- package/dist/collection/index.js.map +0 -1
- package/dist/common/index.js +0 -78
- package/dist/common/index.js.map +0 -1
- package/dist/index.js +0 -26
- package/dist/index.js.map +0 -1
- package/dist/interactions/index.js +0 -678
- package/dist/interactions/index.js.map +0 -1
- package/dist/launchpad/index.js +0 -158
- package/dist/launchpad/index.js.map +0 -1
- package/dist/nft/index.js +0 -121
- package/dist/nft/index.js.map +0 -1
- package/dist/staking/index.js +0 -29
- package/dist/staking/index.js.map +0 -1
- package/dist/types/collection.js +0 -183
- package/dist/types/collection.js.map +0 -1
- package/dist/types/common.js +0 -3
- package/dist/types/common.js.map +0 -1
- package/dist/types/index.js +0 -21
- package/dist/types/index.js.map +0 -1
- package/dist/types/interactions.js +0 -11
- package/dist/types/interactions.js.map +0 -1
- package/dist/types/nft.js +0 -3
- package/dist/types/nft.js.map +0 -1
- package/dist/types/staking.js +0 -15
- package/dist/types/staking.js.map +0 -1
- package/dist/types/trading.js +0 -26
- package/dist/types/trading.js.map +0 -1
- package/dist/types/user.js +0 -13
- package/dist/types/user.js.map +0 -1
- package/dist/users/index.js +0 -220
- package/dist/users/index.js.map +0 -1
- package/dist/utils/SmartContractAbis.js +0 -103
- package/dist/utils/SmartContractAbis.js.map +0 -1
- package/dist/utils/SmartContractService.js +0 -13
- package/dist/utils/SmartContractService.js.map +0 -1
- package/dist/utils/api.js +0 -79
- package/dist/utils/api.js.map +0 -1
- package/dist/utils/const.js +0 -17
- package/dist/utils/const.js.map +0 -1
- package/dist/utils/getActivity.js +0 -53
- package/dist/utils/getActivity.js.map +0 -1
- package/dist/utils/helpers.js +0 -27
- package/dist/utils/helpers.js.map +0 -1
- package/dist/utils/regex.js +0 -12
- package/dist/utils/regex.js.map +0 -1
- package/dist/utils/scCalls.js +0 -39
- package/dist/utils/scCalls.js.map +0 -1
package/dist/utils/regex.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isValidNftIdentifier = exports.isValidCollectionTicker = void 0;
|
|
4
|
-
const isValidCollectionTicker = (ticker) => {
|
|
5
|
-
return /^[A-Z0-9]{3,10}-[a-z0-9]{6}$/.test(ticker);
|
|
6
|
-
};
|
|
7
|
-
exports.isValidCollectionTicker = isValidCollectionTicker;
|
|
8
|
-
const isValidNftIdentifier = (identifier) => {
|
|
9
|
-
return /^[A-Za-z0-9]{3,10}-[A-Za-z0-9]{6}-[A-Za-z0-9]{2,5}(?:-\d+(?:-[A-Za-z0-9]+)?)?$/.test(identifier);
|
|
10
|
-
};
|
|
11
|
-
exports.isValidNftIdentifier = isValidNftIdentifier;
|
|
12
|
-
//# sourceMappingURL=regex.js.map
|
package/dist/utils/regex.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"regex.js","sourceRoot":"","sources":["../../src/utils/regex.ts"],"names":[],"mappings":";;;AAAO,MAAM,uBAAuB,GAAG,CAAC,MAAc,EAAW,EAAE;IACjE,OAAO,8BAA8B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEK,MAAM,oBAAoB,GAAG,CAAC,UAAkB,EAAW,EAAE;IAClE,OAAO,gFAAgF,CAAC,IAAI,CAC1F,UAAU,CACX,CAAC;AACJ,CAAC,CAAC;AAJW,QAAA,oBAAoB,wBAI/B"}
|
package/dist/utils/scCalls.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ContractQueryRunner = void 0;
|
|
13
|
-
const sdk_network_providers_1 = require("@multiversx/sdk-network-providers");
|
|
14
|
-
const index_1 = require("../index");
|
|
15
|
-
const resultsParser_1 = require("@multiversx/sdk-core/out/smartcontracts/resultsParser");
|
|
16
|
-
class ContractQueryRunner {
|
|
17
|
-
constructor() {
|
|
18
|
-
this.parser = new resultsParser_1.ResultsParser();
|
|
19
|
-
const api = index_1.XOXNOClient.init().apiUrl;
|
|
20
|
-
this.proxy = new sdk_network_providers_1.ProxyNetworkProvider(api, {
|
|
21
|
-
timeout: 10000,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
runQuery(contract, interaction) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
try {
|
|
27
|
-
const queryResponse = yield this.proxy.queryContract(interaction.buildQuery());
|
|
28
|
-
return this.parser.parseQueryResponse(queryResponse, interaction.getEndpoint());
|
|
29
|
-
}
|
|
30
|
-
catch (error) {
|
|
31
|
-
console.log(`Unexpected error when running query '${interaction.buildQuery().func}' to sc '${contract.getAddress().bech32()}' `);
|
|
32
|
-
console.error(error);
|
|
33
|
-
throw error;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ContractQueryRunner = ContractQueryRunner;
|
|
39
|
-
//# sourceMappingURL=scCalls.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scCalls.js","sourceRoot":"","sources":["../../src/utils/scCalls.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAG2C;AAG3C,oCAAuC;AACvC,yFAAsF;AAKtF,MAAa,mBAAmB;IAI9B;QAFiB,WAAM,GAAkB,IAAI,6BAAa,EAAE,CAAC;QAG3D,MAAM,GAAG,GAAG,mBAAW,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACtC,IAAI,CAAC,KAAK,GAAG,IAAI,4CAAoB,CAAC,GAAG,EAAE;YACzC,OAAO,EAAE,KAAK;SACf,CAAC,CAAC;IACL,CAAC;IAEK,QAAQ,CACZ,QAAuB,EACvB,WAAwB;;YAExB,IAAI,CAAC;gBACH,MAAM,aAAa,GACjB,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC;gBAE3D,OAAO,IAAI,CAAC,MAAM,CAAC,kBAAkB,CACnC,aAAa,EACb,WAAW,CAAC,WAAW,EAAE,CAC1B,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,GAAG,CACT,wCACE,WAAW,CAAC,UAAU,EAAE,CAAC,IAC3B,YAAY,QAAQ,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,IAAI,CAC/C,CAAC;gBACF,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBAErB,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;KAAA;CACF;AAlCD,kDAkCC"}
|