@xoxno/types 1.0.5 → 1.0.6
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/common/owner.dto.d.ts +0 -5
- package/dist/common/socials.d.ts +0 -1
- package/dist/common/statistics.d.ts +0 -1
- package/dist/cosmos-db/cosmos-db-query.d.ts +2 -2
- package/dist/cosmos-db/documents/collection/collectionConfig.d.ts +0 -1
- package/dist/cosmos-db/documents/collection/mintProfile.d.ts +0 -1
- package/dist/cosmos-db/documents/collection/mintStage.d.ts +0 -1
- package/dist/cosmos-db/documents/collection/profile.d.ts +2 -3
- package/dist/cosmos-db/documents/collection/stats.d.ts +0 -1
- package/dist/cosmos-db/documents/lending/lending-nft-attributes.d.ts +0 -1
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.d.ts +0 -1
- package/dist/cosmos-db/documents/token/nft-details.doc.d.ts +3 -4
- package/dist/cosmos-db/documents/token/nft-metadata-attributes.d.ts +0 -1
- package/dist/cosmos-db/documents/user/user-creator-profile.doc.d.ts +2 -2
- package/dist/cosmos-db/documents/user/user-creator-profile.doc.js +2 -1
- package/dist/cosmos-db/documents/user/user-deposit.d.ts +0 -1
- package/dist/entities/auth/auth-strategy.enum.d.ts +4 -0
- package/dist/entities/auth/auth-strategy.enum.js +8 -0
- package/dist/entities/auth/login-request.dto.d.ts +8 -0
- package/dist/entities/auth/login-request.dto.js +52 -0
- package/dist/entities/auth/role.enum.d.ts +10 -0
- package/dist/entities/auth/role.enum.js +14 -0
- package/dist/entities/token-data/fiat-tokens.enum.d.ts +10 -0
- package/dist/entities/token-data/fiat-tokens.enum.js +10 -0
- package/dist/entities/token-data/known-mvx-tokens.enum.d.ts +34 -0
- package/dist/entities/token-data/known-mvx-tokens.enum.js +32 -0
- package/dist/entities/token-data/metrics.d.ts +46 -0
- package/dist/entities/token-data/metrics.js +177 -0
- package/dist/entities/token-data/query-prices.enum.d.ts +44 -0
- package/dist/entities/token-data/query-prices.enum.js +34 -0
- package/dist/entities/token-data/token-category.enum.d.ts +9 -0
- package/dist/entities/token-data/token-category.enum.js +13 -0
- package/dist/entities/token-data/token-data.doc.d.ts +16 -0
- package/dist/entities/token-data/token-data.doc.js +10 -0
- package/dist/entities/web2user-data/linked-account-type.enum.d.ts +6 -0
- package/dist/entities/web2user-data/linked-account-type.enum.js +10 -0
- package/dist/entities/web2user-data/native-wallet.dto.d.ts +6 -0
- package/dist/entities/web2user-data/native-wallet.dto.js +50 -0
- package/dist/entities/web2user-data/switch-wallet-dto.d.ts +3 -0
- package/dist/entities/web2user-data/switch-wallet-dto.js +22 -0
- package/dist/entities/web2user-data/wallet-client-type.enum.d.ts +11 -0
- package/dist/entities/web2user-data/wallet-client-type.enum.js +15 -0
- package/dist/entities/web2user-data/web2user-account.d.ts +10 -0
- package/dist/entities/web2user-data/web2user-account.dto.d.ts +8 -0
- package/dist/entities/web2user-data/web2user-account.dto.js +50 -0
- package/dist/entities/web2user-data/web2user-account.js +69 -0
- package/dist/entities/web2user-data/web2user-shards.dto.d.ts +3 -0
- package/dist/entities/web2user-data/web2user-shards.dto.js +24 -0
- package/dist/entities/web2user-data/web2user-wallet.d.ts +13 -0
- package/dist/entities/web2user-data/web2user-wallet.dto.d.ts +12 -0
- package/dist/entities/web2user-data/web2user-wallet.dto.js +71 -0
- package/dist/entities/web2user-data/web2user-wallet.js +77 -0
- package/dist/entities/web2user-data/web2user.doc.d.ts +17 -0
- package/dist/entities/web2user-data/web2user.doc.js +100 -0
- package/dist/index.d.ts +0 -1
- package/package.json +1 -1
package/dist/common/socials.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SqlQuerySpec } from '@azure/cosmos';
|
|
2
2
|
import { CosmosDbGenericFilter } from './cosmos-db-generic-filter';
|
|
3
|
-
import { NftMetadataAttributes
|
|
3
|
+
import { NftMetadataAttributes } from './documents/token/nft-metadata-attributes';
|
|
4
4
|
export declare enum QueryConditionOperator {
|
|
5
5
|
EQUAL = "EQUAL",
|
|
6
6
|
NOT_EQUAL = "NOT_EQUAL",
|
|
@@ -74,7 +74,7 @@ export declare class CosmosDbQueryBuilder {
|
|
|
74
74
|
filterString: string;
|
|
75
75
|
parameters: Record<string, string>;
|
|
76
76
|
};
|
|
77
|
-
groupAttributesByTrait(attributes:
|
|
77
|
+
groupAttributesByTrait(attributes: NftMetadataAttributes[]): {
|
|
78
78
|
trait_type: string;
|
|
79
79
|
values: string[];
|
|
80
80
|
}[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EsdtTokenType, EsdtTokenSubType, ActivityChain } from '../../../common/enums';
|
|
2
2
|
import { SocialsDto } from '../../../common/socials';
|
|
3
|
-
import {
|
|
3
|
+
import { StatisticsDto } from '../../../common/statistics';
|
|
4
4
|
import { XoxnoMarketplaceScCollectionConfig } from './collectionConfig';
|
|
5
5
|
import { CollectionDataType } from './dataTypes';
|
|
6
6
|
export declare class Rule {
|
|
@@ -27,7 +27,7 @@ export declare class CollectionProfileDoc {
|
|
|
27
27
|
subType?: EsdtTokenSubType;
|
|
28
28
|
profile: string;
|
|
29
29
|
banner: string;
|
|
30
|
-
statistics:
|
|
30
|
+
statistics: StatisticsDto;
|
|
31
31
|
chain: ActivityChain;
|
|
32
32
|
transferPolicies: TransferPolicy[];
|
|
33
33
|
owner: string;
|
|
@@ -49,4 +49,3 @@ export declare class CollectionProfileDoc {
|
|
|
49
49
|
_ts: number;
|
|
50
50
|
constructor(props?: Partial<CollectionProfileDoc>);
|
|
51
51
|
}
|
|
52
|
-
export type CollectionProfileDocType = CollectionProfileDoc;
|
|
@@ -3,7 +3,7 @@ import { NftMetadata } from './nft-metadata';
|
|
|
3
3
|
import { NftSaleInfo } from './nft-sale-info';
|
|
4
4
|
import { ActivityChain, EsdtTokenSubType, EsdtTokenType } from '../../../common/enums';
|
|
5
5
|
import { CollectionProfileDoc } from '../collection/profile';
|
|
6
|
-
import {
|
|
6
|
+
import { OwnerDto } from '../../../common/owner.dto';
|
|
7
7
|
export declare class NFTEventData {
|
|
8
8
|
eventId: string;
|
|
9
9
|
ticketId: string;
|
|
@@ -41,8 +41,8 @@ export declare class NftDoc {
|
|
|
41
41
|
creator?: string;
|
|
42
42
|
wasProcessed: boolean;
|
|
43
43
|
media?: NftMedia;
|
|
44
|
-
currentOwner?: string |
|
|
45
|
-
owner?: string |
|
|
44
|
+
currentOwner?: string | OwnerDto;
|
|
45
|
+
owner?: string | OwnerDto;
|
|
46
46
|
onSale: boolean;
|
|
47
47
|
saleInfo?: NftSaleInfo;
|
|
48
48
|
statistics?: NftStats;
|
|
@@ -56,7 +56,6 @@ export declare class NftDoc {
|
|
|
56
56
|
_ts?: number;
|
|
57
57
|
constructor(props?: Partial<NftDoc>);
|
|
58
58
|
}
|
|
59
|
-
export type NftDocType = NftDoc;
|
|
60
59
|
export declare class ExtraProperties {
|
|
61
60
|
currentEpoch?: number;
|
|
62
61
|
level?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Socials } from '../../../common/socials';
|
|
2
1
|
import { UserDataType } from './user-data.type';
|
|
2
|
+
import { SocialsDto } from '../../../common/socials';
|
|
3
3
|
export declare class CreatorProfileDoc {
|
|
4
4
|
dataType: UserDataType;
|
|
5
5
|
address: string;
|
|
@@ -11,7 +11,7 @@ export declare class CreatorProfileDoc {
|
|
|
11
11
|
banner: string;
|
|
12
12
|
joinedDate: number;
|
|
13
13
|
description?: string;
|
|
14
|
-
socials?:
|
|
14
|
+
socials?: SocialsDto;
|
|
15
15
|
id: string;
|
|
16
16
|
_ts: number;
|
|
17
17
|
constructor(props?: Partial<CreatorProfileDoc>);
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreatorProfileDoc = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const user_data_type_1 = require("./user-data.type");
|
|
15
|
+
const socials_1 = require("../../../common/socials");
|
|
15
16
|
class CreatorProfileDoc {
|
|
16
17
|
constructor(props) {
|
|
17
18
|
this.dataType = user_data_type_1.UserDataType.CreatorProfile;
|
|
@@ -90,7 +91,7 @@ __decorate([
|
|
|
90
91
|
], CreatorProfileDoc.prototype, "description", void 0);
|
|
91
92
|
__decorate([
|
|
92
93
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Creator social media links' }),
|
|
93
|
-
__metadata("design:type",
|
|
94
|
+
__metadata("design:type", socials_1.SocialsDto)
|
|
94
95
|
], CreatorProfileDoc.prototype, "socials", void 0);
|
|
95
96
|
__decorate([
|
|
96
97
|
(0, swagger_1.ApiProperty)({
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthStrategy = void 0;
|
|
4
|
+
var AuthStrategy;
|
|
5
|
+
(function (AuthStrategy) {
|
|
6
|
+
AuthStrategy["FIREBASE"] = "firebase-auth";
|
|
7
|
+
AuthStrategy["OPTIONAL_FIREBASE"] = "optional-firebase-auth";
|
|
8
|
+
})(AuthStrategy || (exports.AuthStrategy = AuthStrategy = {}));
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LoginRequestDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class LoginRequestDto {
|
|
16
|
+
}
|
|
17
|
+
exports.LoginRequestDto = LoginRequestDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({ description: 'The address of the user', required: false }),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], LoginRequestDto.prototype, "address", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ description: 'The login token' }),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], LoginRequestDto.prototype, "loginToken", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({
|
|
33
|
+
description: 'The signature of the login token',
|
|
34
|
+
required: false,
|
|
35
|
+
}),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], LoginRequestDto.prototype, "signature", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({
|
|
43
|
+
description: 'Additional data as key-value pairs',
|
|
44
|
+
type: Object,
|
|
45
|
+
required: false,
|
|
46
|
+
}),
|
|
47
|
+
(0, class_validator_1.IsObject)(),
|
|
48
|
+
(0, class_validator_1.IsOptional)()
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
50
|
+
,
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], LoginRequestDto.prototype, "data", void 0);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum Role {
|
|
2
|
+
ADMIN = "admin",
|
|
3
|
+
USER_ADMIN = "user-admin",
|
|
4
|
+
COLLECTION_ADMIN = "collection-admin",
|
|
5
|
+
STAKING_ADMIN = "staking-admin",
|
|
6
|
+
CREATOR_ADMIN = "creator-admin",
|
|
7
|
+
EVENT_ADMIN = "event-admin",
|
|
8
|
+
EVENT_READER = "event-reader",
|
|
9
|
+
EVENT_CHECK_IN_MANAGER = "event-check-in-manager"
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Role = void 0;
|
|
4
|
+
var Role;
|
|
5
|
+
(function (Role) {
|
|
6
|
+
Role["ADMIN"] = "admin";
|
|
7
|
+
Role["USER_ADMIN"] = "user-admin";
|
|
8
|
+
Role["COLLECTION_ADMIN"] = "collection-admin";
|
|
9
|
+
Role["STAKING_ADMIN"] = "staking-admin";
|
|
10
|
+
Role["CREATOR_ADMIN"] = "creator-admin";
|
|
11
|
+
Role["EVENT_ADMIN"] = "event-admin";
|
|
12
|
+
Role["EVENT_READER"] = "event-reader";
|
|
13
|
+
Role["EVENT_CHECK_IN_MANAGER"] = "event-check-in-manager";
|
|
14
|
+
})(Role || (exports.Role = Role = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FiatTokens = void 0;
|
|
4
|
+
var FiatTokens;
|
|
5
|
+
(function (FiatTokens) {
|
|
6
|
+
FiatTokens["USDC"] = "USDC";
|
|
7
|
+
FiatTokens["RON"] = "RON";
|
|
8
|
+
FiatTokens["EUR"] = "EUR";
|
|
9
|
+
FiatTokens["USD"] = "USD";
|
|
10
|
+
})(FiatTokens || (exports.FiatTokens = FiatTokens = {}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The values are environment based (devnet/mainnet) and update at runtime based
|
|
3
|
+
* on env the config file Note: If value exists below, but not configured in
|
|
4
|
+
* config file, at runtime it will be undefined Default values are for mainnet
|
|
5
|
+
*/
|
|
6
|
+
export declare const KNOWN_MVX_TOKENS: {
|
|
7
|
+
readonly SUI: "0x2::sui::SUI";
|
|
8
|
+
readonly EGLD: "EGLD";
|
|
9
|
+
readonly WEGLD: "WEGLD-bd4d79";
|
|
10
|
+
readonly MEX: "MEX-455c57";
|
|
11
|
+
readonly LKMEX: "LKMEX-aab910";
|
|
12
|
+
readonly XMEX: "XMEX-fda355";
|
|
13
|
+
readonly WXMEX: "WXMEX-794dbd";
|
|
14
|
+
readonly SEGLD: "SEGLD-3ad2d0";
|
|
15
|
+
readonly USDC: "USDC-c76f1f";
|
|
16
|
+
readonly BUSD: "BUSD-40b57e";
|
|
17
|
+
readonly USDT: "USDT-f8c08c";
|
|
18
|
+
readonly DAI: "WDAI-9eeb54";
|
|
19
|
+
readonly WATER: "WATER-9ed400";
|
|
20
|
+
readonly XOXNO: "XOXNO-589e09";
|
|
21
|
+
readonly LXOXNO: "LXOXNO-a00540";
|
|
22
|
+
readonly XEGLD: "XEGLD-23b511";
|
|
23
|
+
readonly XOXNOWEGLDLP: "XOXNOWEGLD-93445e";
|
|
24
|
+
readonly XEGLDWEGLDLP: "XEGLDWEGLD-d83259";
|
|
25
|
+
readonly XEGLDLXOXNOLP: "XEGLDLXOXNO-93445e";
|
|
26
|
+
readonly EGLDUSDC: "EGLDUSDC-ac1a30";
|
|
27
|
+
};
|
|
28
|
+
export interface KnownLpTokensType {
|
|
29
|
+
[key: string]: {
|
|
30
|
+
token1: string;
|
|
31
|
+
token2: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export declare const KNOWN_LP_TOKENS: KnownLpTokensType;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KNOWN_LP_TOKENS = exports.KNOWN_MVX_TOKENS = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The values are environment based (devnet/mainnet) and update at runtime based
|
|
6
|
+
* on env the config file Note: If value exists below, but not configured in
|
|
7
|
+
* config file, at runtime it will be undefined Default values are for mainnet
|
|
8
|
+
*/
|
|
9
|
+
exports.KNOWN_MVX_TOKENS = {
|
|
10
|
+
SUI: '0x2::sui::SUI',
|
|
11
|
+
EGLD: 'EGLD',
|
|
12
|
+
WEGLD: 'WEGLD-bd4d79',
|
|
13
|
+
MEX: 'MEX-455c57',
|
|
14
|
+
LKMEX: 'LKMEX-aab910',
|
|
15
|
+
XMEX: 'XMEX-fda355',
|
|
16
|
+
WXMEX: 'WXMEX-794dbd',
|
|
17
|
+
SEGLD: 'SEGLD-3ad2d0',
|
|
18
|
+
USDC: 'USDC-c76f1f',
|
|
19
|
+
BUSD: 'BUSD-40b57e',
|
|
20
|
+
USDT: 'USDT-f8c08c',
|
|
21
|
+
DAI: 'WDAI-9eeb54',
|
|
22
|
+
WATER: 'WATER-9ed400',
|
|
23
|
+
XOXNO: 'XOXNO-589e09',
|
|
24
|
+
LXOXNO: 'LXOXNO-a00540',
|
|
25
|
+
XEGLD: 'XEGLD-23b511',
|
|
26
|
+
// LP TOKENS should be defined last after their respective tokens
|
|
27
|
+
XOXNOWEGLDLP: 'XOXNOWEGLD-93445e',
|
|
28
|
+
XEGLDWEGLDLP: 'XEGLDWEGLD-d83259',
|
|
29
|
+
XEGLDLXOXNOLP: 'XEGLDLXOXNO-93445e',
|
|
30
|
+
EGLDUSDC: 'EGLDUSDC-ac1a30',
|
|
31
|
+
};
|
|
32
|
+
exports.KNOWN_LP_TOKENS = {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare class RateType {
|
|
2
|
+
rateShort: number;
|
|
3
|
+
rate: string;
|
|
4
|
+
reverseRate: string;
|
|
5
|
+
reverseRateShort: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class EsdtTokenSummary {
|
|
8
|
+
supply: string;
|
|
9
|
+
minted: string;
|
|
10
|
+
burned: string;
|
|
11
|
+
initialMinted: string;
|
|
12
|
+
recomputedSupply: boolean;
|
|
13
|
+
burnedShort: number;
|
|
14
|
+
initialMintedShort: number;
|
|
15
|
+
minterShort: number;
|
|
16
|
+
supplyShort: number;
|
|
17
|
+
transfersCount: number;
|
|
18
|
+
holdersCount: number;
|
|
19
|
+
}
|
|
20
|
+
export declare class IMetrics extends EsdtTokenSummary {
|
|
21
|
+
rateInfo: RateType;
|
|
22
|
+
apr: number;
|
|
23
|
+
apy?: number;
|
|
24
|
+
totalStakedCount: number;
|
|
25
|
+
totalStakedCountUsd: number;
|
|
26
|
+
totalRewardsPaid: number;
|
|
27
|
+
totalRewardsPaidUsd: number;
|
|
28
|
+
uniqueStakersCount: number;
|
|
29
|
+
instantUnstake: string;
|
|
30
|
+
instantPendingUnstake: string;
|
|
31
|
+
totalWithdrawn: number;
|
|
32
|
+
serviceFee: number;
|
|
33
|
+
}
|
|
34
|
+
export declare class XoxnoInfo {
|
|
35
|
+
price: number;
|
|
36
|
+
marketCap: number;
|
|
37
|
+
fdv: number;
|
|
38
|
+
tradeVol: number;
|
|
39
|
+
supply: number;
|
|
40
|
+
burnedShort: number;
|
|
41
|
+
circulatingSupply: number;
|
|
42
|
+
holdersCount: number;
|
|
43
|
+
totalSupply: number;
|
|
44
|
+
idoPrice: number;
|
|
45
|
+
listingDate: Date;
|
|
46
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.XoxnoInfo = exports.IMetrics = exports.EsdtTokenSummary = exports.RateType = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class RateType {
|
|
15
|
+
}
|
|
16
|
+
exports.RateType = RateType;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], RateType.prototype, "rateShort", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], RateType.prototype, "rate", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], RateType.prototype, "reverseRate", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], RateType.prototype, "reverseRateShort", void 0);
|
|
33
|
+
class EsdtTokenSummary {
|
|
34
|
+
}
|
|
35
|
+
exports.EsdtTokenSummary = EsdtTokenSummary;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], EsdtTokenSummary.prototype, "supply", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], EsdtTokenSummary.prototype, "minted", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], EsdtTokenSummary.prototype, "burned", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], EsdtTokenSummary.prototype, "initialMinted", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)(),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], EsdtTokenSummary.prototype, "recomputedSupply", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)(),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], EsdtTokenSummary.prototype, "burnedShort", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], EsdtTokenSummary.prototype, "initialMintedShort", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiProperty)(),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], EsdtTokenSummary.prototype, "minterShort", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)(),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], EsdtTokenSummary.prototype, "supplyShort", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, swagger_1.ApiProperty)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], EsdtTokenSummary.prototype, "transfersCount", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)(),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], EsdtTokenSummary.prototype, "holdersCount", void 0);
|
|
80
|
+
class IMetrics extends EsdtTokenSummary {
|
|
81
|
+
}
|
|
82
|
+
exports.IMetrics = IMetrics;
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, swagger_1.ApiProperty)({ type: () => RateType }),
|
|
85
|
+
__metadata("design:type", RateType)
|
|
86
|
+
], IMetrics.prototype, "rateInfo", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, swagger_1.ApiProperty)(),
|
|
89
|
+
__metadata("design:type", Number)
|
|
90
|
+
], IMetrics.prototype, "apr", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, swagger_1.ApiProperty)(),
|
|
93
|
+
__metadata("design:type", Number)
|
|
94
|
+
], IMetrics.prototype, "apy", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, swagger_1.ApiProperty)(),
|
|
97
|
+
__metadata("design:type", Number)
|
|
98
|
+
], IMetrics.prototype, "totalStakedCount", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, swagger_1.ApiProperty)(),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], IMetrics.prototype, "totalStakedCountUsd", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, swagger_1.ApiProperty)(),
|
|
105
|
+
__metadata("design:type", Number)
|
|
106
|
+
], IMetrics.prototype, "totalRewardsPaid", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, swagger_1.ApiProperty)(),
|
|
109
|
+
__metadata("design:type", Number)
|
|
110
|
+
], IMetrics.prototype, "totalRewardsPaidUsd", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, swagger_1.ApiProperty)(),
|
|
113
|
+
__metadata("design:type", Number)
|
|
114
|
+
], IMetrics.prototype, "uniqueStakersCount", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, swagger_1.ApiProperty)(),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], IMetrics.prototype, "instantUnstake", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, swagger_1.ApiProperty)(),
|
|
121
|
+
__metadata("design:type", String)
|
|
122
|
+
], IMetrics.prototype, "instantPendingUnstake", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, swagger_1.ApiProperty)(),
|
|
125
|
+
__metadata("design:type", Number)
|
|
126
|
+
], IMetrics.prototype, "totalWithdrawn", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, swagger_1.ApiProperty)(),
|
|
129
|
+
__metadata("design:type", Number)
|
|
130
|
+
], IMetrics.prototype, "serviceFee", void 0);
|
|
131
|
+
class XoxnoInfo {
|
|
132
|
+
}
|
|
133
|
+
exports.XoxnoInfo = XoxnoInfo;
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, swagger_1.ApiProperty)(),
|
|
136
|
+
__metadata("design:type", Number)
|
|
137
|
+
], XoxnoInfo.prototype, "price", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, swagger_1.ApiProperty)(),
|
|
140
|
+
__metadata("design:type", Number)
|
|
141
|
+
], XoxnoInfo.prototype, "marketCap", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, swagger_1.ApiProperty)(),
|
|
144
|
+
__metadata("design:type", Number)
|
|
145
|
+
], XoxnoInfo.prototype, "fdv", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, swagger_1.ApiProperty)(),
|
|
148
|
+
__metadata("design:type", Number)
|
|
149
|
+
], XoxnoInfo.prototype, "tradeVol", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, swagger_1.ApiProperty)(),
|
|
152
|
+
__metadata("design:type", Number)
|
|
153
|
+
], XoxnoInfo.prototype, "supply", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, swagger_1.ApiProperty)(),
|
|
156
|
+
__metadata("design:type", Number)
|
|
157
|
+
], XoxnoInfo.prototype, "burnedShort", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, swagger_1.ApiProperty)(),
|
|
160
|
+
__metadata("design:type", Number)
|
|
161
|
+
], XoxnoInfo.prototype, "circulatingSupply", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, swagger_1.ApiProperty)(),
|
|
164
|
+
__metadata("design:type", Number)
|
|
165
|
+
], XoxnoInfo.prototype, "holdersCount", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, swagger_1.ApiProperty)(),
|
|
168
|
+
__metadata("design:type", Number)
|
|
169
|
+
], XoxnoInfo.prototype, "totalSupply", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, swagger_1.ApiProperty)(),
|
|
172
|
+
__metadata("design:type", Number)
|
|
173
|
+
], XoxnoInfo.prototype, "idoPrice", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, swagger_1.ApiProperty)({ type: Date }),
|
|
176
|
+
__metadata("design:type", Date)
|
|
177
|
+
], XoxnoInfo.prototype, "listingDate", void 0);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare enum QueryPricesSCEndpoints {
|
|
2
|
+
GET_PRICES = "getPrices",
|
|
3
|
+
GET_ASH_PRICES = "getAshPrices",
|
|
4
|
+
GET_ONE_PRICES = "getOneDexPrices",
|
|
5
|
+
GET_XEXCHANGE_PRICES = "getExchangePrices",
|
|
6
|
+
GET_MARKETS = "getMarkets",
|
|
7
|
+
GET_MARKETS_INFO = "getMarketsInfo",
|
|
8
|
+
GET_MARKET_MEMBERS = "getMarketMembers",
|
|
9
|
+
GET_MARKET_MEMBERS_INFO = "getMarketMembersInfo",
|
|
10
|
+
GET_MEMBER_INFO = "getMemberInfo",
|
|
11
|
+
GET_MARKET_MEMBER_INFO = "getMarketMemberInfo",
|
|
12
|
+
GET_MARKET_INFO = "getMarketInfo"
|
|
13
|
+
}
|
|
14
|
+
export declare enum OneDexEndpoints {
|
|
15
|
+
GET_MAIN_PAIR_TOKENS = "getMainPairTokens",
|
|
16
|
+
GET_LAST_PAIR_ID = "getLastPairId",
|
|
17
|
+
VIEW_PAIRS_PAGINATED = "viewPairsPaginated"
|
|
18
|
+
}
|
|
19
|
+
export declare enum AshSwapEndpoints {
|
|
20
|
+
GET_ASH_SWAP_STABLE_POOLS = "getAshSwapStablePools",
|
|
21
|
+
GET_ASH_SWAP_V2_POOLS = "getAshSwapV2Pools"
|
|
22
|
+
}
|
|
23
|
+
export declare enum DexType {
|
|
24
|
+
XExchange = "XExchange",
|
|
25
|
+
OneDex = "OneDex",
|
|
26
|
+
AshSwap = "AshSwap"
|
|
27
|
+
}
|
|
28
|
+
export interface QueryPricesResponse {
|
|
29
|
+
first_token_id: string;
|
|
30
|
+
second_token_id: string;
|
|
31
|
+
first_token_balance: BigNumber;
|
|
32
|
+
first_token_balance_short?: number;
|
|
33
|
+
first_token_price?: number;
|
|
34
|
+
first_token_decimals?: number;
|
|
35
|
+
second_token_balance: BigNumber;
|
|
36
|
+
second_token_balance_short?: number;
|
|
37
|
+
second_token_price?: number;
|
|
38
|
+
second_token_decimals?: number;
|
|
39
|
+
fees: number;
|
|
40
|
+
amp_factor: number;
|
|
41
|
+
dex: string;
|
|
42
|
+
address: string;
|
|
43
|
+
pair_id: string;
|
|
44
|
+
}
|