@xoxno/types 1.0.5 → 1.0.7

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 (83) hide show
  1. package/dist/common/kusto/wallet-stats.js +1 -0
  2. package/dist/common/owner.dto.d.ts +0 -5
  3. package/dist/common/socials.d.ts +0 -1
  4. package/dist/common/statistics.d.ts +0 -1
  5. package/dist/cosmos-db/cosmos-db-query.d.ts +2 -2
  6. package/dist/cosmos-db/documents/activity/nft-activity-data.d.ts +2 -2
  7. package/dist/cosmos-db/documents/collection/collectionConfig.d.ts +0 -1
  8. package/dist/cosmos-db/documents/collection/mintProfile.d.ts +0 -1
  9. package/dist/cosmos-db/documents/collection/mintStage.d.ts +0 -1
  10. package/dist/cosmos-db/documents/collection/profile.d.ts +2 -3
  11. package/dist/cosmos-db/documents/collection/stats.d.ts +0 -1
  12. package/dist/cosmos-db/documents/lending/lending-nft-attributes.d.ts +0 -1
  13. package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.d.ts +0 -1
  14. package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.js +1 -1
  15. package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.js +1 -1
  16. package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.js +1 -1
  17. package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.js +1 -1
  18. package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.js +1 -1
  19. package/dist/cosmos-db/documents/token/nft-details.doc.d.ts +3 -4
  20. package/dist/cosmos-db/documents/token/nft-metadata-attributes.d.ts +0 -1
  21. package/dist/cosmos-db/documents/token/nft-sale-info.d.ts +2 -2
  22. package/dist/cosmos-db/documents/token/nft-sale-info.js +1 -0
  23. package/dist/cosmos-db/documents/user/user-creator-profile.doc.d.ts +2 -2
  24. package/dist/cosmos-db/documents/user/user-creator-profile.doc.js +2 -1
  25. package/dist/cosmos-db/documents/user/user-deposit.d.ts +0 -1
  26. package/dist/entities/auth/auth-strategy.enum.d.ts +4 -0
  27. package/dist/entities/auth/auth-strategy.enum.js +8 -0
  28. package/dist/entities/auth/login-request.dto.d.ts +8 -0
  29. package/dist/entities/auth/login-request.dto.js +52 -0
  30. package/dist/entities/auth/role.enum.d.ts +10 -0
  31. package/dist/entities/auth/role.enum.js +14 -0
  32. package/dist/entities/token-data/fiat-tokens.enum.d.ts +10 -0
  33. package/dist/entities/token-data/fiat-tokens.enum.js +10 -0
  34. package/dist/entities/token-data/known-mvx-tokens.enum.d.ts +34 -0
  35. package/dist/entities/token-data/known-mvx-tokens.enum.js +32 -0
  36. package/dist/entities/token-data/metrics.d.ts +46 -0
  37. package/dist/entities/token-data/metrics.js +177 -0
  38. package/dist/entities/token-data/query-prices.enum.d.ts +44 -0
  39. package/dist/entities/token-data/query-prices.enum.js +34 -0
  40. package/dist/entities/token-data/token-category.enum.d.ts +9 -0
  41. package/dist/entities/token-data/token-category.enum.js +13 -0
  42. package/dist/entities/token-data/token-data.doc.d.ts +16 -0
  43. package/dist/entities/token-data/token-data.doc.js +10 -0
  44. package/dist/entities/web2user-data/linked-account-type.enum.d.ts +6 -0
  45. package/dist/entities/web2user-data/linked-account-type.enum.js +10 -0
  46. package/dist/entities/web2user-data/native-wallet.dto.d.ts +6 -0
  47. package/dist/entities/web2user-data/native-wallet.dto.js +50 -0
  48. package/dist/entities/web2user-data/switch-wallet-dto.d.ts +3 -0
  49. package/dist/entities/web2user-data/switch-wallet-dto.js +22 -0
  50. package/dist/entities/web2user-data/wallet-client-type.enum.d.ts +11 -0
  51. package/dist/entities/web2user-data/wallet-client-type.enum.js +15 -0
  52. package/dist/entities/web2user-data/web2user-account.d.ts +10 -0
  53. package/dist/entities/web2user-data/web2user-account.dto.d.ts +8 -0
  54. package/dist/entities/web2user-data/web2user-account.dto.js +50 -0
  55. package/dist/entities/web2user-data/web2user-account.js +69 -0
  56. package/dist/entities/web2user-data/web2user-shards.dto.d.ts +3 -0
  57. package/dist/entities/web2user-data/web2user-shards.dto.js +24 -0
  58. package/dist/entities/web2user-data/web2user-wallet.d.ts +13 -0
  59. package/dist/entities/web2user-data/web2user-wallet.dto.d.ts +12 -0
  60. package/dist/entities/web2user-data/web2user-wallet.dto.js +71 -0
  61. package/dist/entities/web2user-data/web2user-wallet.js +77 -0
  62. package/dist/entities/web2user-data/web2user.doc.d.ts +17 -0
  63. package/dist/entities/web2user-data/web2user.doc.js +100 -0
  64. package/dist/entities/xoxno-marketplace-sc/xoxno-auction-type.enum.d.ts +14 -0
  65. package/dist/entities/xoxno-marketplace-sc/xoxno-auction-type.enum.js +19 -0
  66. package/dist/index.d.ts +0 -1
  67. package/dist/requests/collection/collection-mint-profile.filter.js +1 -1
  68. package/dist/requests/collection/collection-offers.filter.js +1 -1
  69. package/dist/requests/collection/collection-profile.filter.js +1 -1
  70. package/dist/requests/collection/collection-stats.filter.js +1 -1
  71. package/dist/requests/collection/query-activity.d.ts +2 -2
  72. package/dist/requests/collection/query-activity.js +1 -1
  73. package/dist/requests/lending/lending-market-profile.filter.js +1 -1
  74. package/dist/requests/nft-activity-data/nft-activity-data.d.ts +4 -3
  75. package/dist/requests/nft-activity-data/nft-activity.filter.js +3 -3
  76. package/dist/requests/nft-activity-data/user-stats.d.ts +2 -10
  77. package/dist/requests/nft-activity-data/user-stats.js +3 -40
  78. package/dist/requests/nft-data/nft-doc.filter.d.ts +4 -3
  79. package/dist/requests/nft-data/nft-doc.filter.js +3 -3
  80. package/dist/requests/nft-data/nft-offer-doc.filter.js +3 -3
  81. package/dist/requests/nft-data/user-offers.d.ts +2 -16
  82. package/dist/requests/nft-data/user-offers.js +2 -81
  83. package/package.json +1 -1
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WalletTradingStats = void 0;
4
4
  const enums_1 = require("../enums");
5
5
  class WalletTradingStats {
6
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
7
  constructor(data) {
7
8
  this.wallet = data.Address;
8
9
  this.totalVolume = data.TotalVolume;
@@ -7,8 +7,3 @@ export declare class OwnerDto {
7
7
  address: string;
8
8
  profile: string;
9
9
  }
10
- /**
11
- * The lightweight, compile-time-only type for frontend use.
12
- * `import type { Owner } from '@your-org/types';`
13
- */
14
- export type Owner = OwnerDto;
@@ -8,4 +8,3 @@ export declare class SocialsDto {
8
8
  youtube?: string;
9
9
  constructor(props?: Partial<SocialsDto>);
10
10
  }
11
- export type Socials = SocialsDto;
@@ -8,4 +8,3 @@ export declare class StatisticsDto {
8
8
  other: StatisticsOtherDto;
9
9
  constructor(props?: Partial<StatisticsDto>);
10
10
  }
11
- export type CollectionStatistics = StatisticsDto;
@@ -1,6 +1,6 @@
1
1
  import { SqlQuerySpec } from '@azure/cosmos';
2
2
  import { CosmosDbGenericFilter } from './cosmos-db-generic-filter';
3
- import { NftMetadataAttributes, NftMetadataAttributesType } from './documents/token/nft-metadata-attributes';
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: NftMetadataAttributesType[]): {
77
+ groupAttributesByTrait(attributes: NftMetadataAttributes[]): {
78
78
  trait_type: string;
79
79
  values: string[];
80
80
  }[];
@@ -1,4 +1,4 @@
1
- import { AuctionTypes } from '../../../common/enums';
1
+ import { XoxnoAuctionTypeString } from '../../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum';
2
2
  import { NftDoc } from '../token/nft-details.doc';
3
3
  export interface NftActivityData {
4
4
  collection: string;
@@ -9,7 +9,7 @@ export interface NftActivityData {
9
9
  scId: number;
10
10
  usdValue: number;
11
11
  egldValue: number;
12
- auctionType?: AuctionTypes;
12
+ auctionType?: XoxnoAuctionTypeString;
13
13
  deadline?: number;
14
14
  originalPayment?: {
15
15
  paymentToken: string;
@@ -12,4 +12,3 @@ export interface CollectionExtraFeesConfig {
12
12
  amount: number;
13
13
  address: string;
14
14
  }
15
- export type XoxnoMarketplaceScCollectionConfigType = XoxnoMarketplaceScCollectionConfig;
@@ -33,4 +33,3 @@ export declare class CollectionMintProfileDoc {
33
33
  _ts?: number;
34
34
  constructor(props?: Partial<CollectionMintProfileDoc>);
35
35
  }
36
- export type CollectionMintProfileDocType = CollectionMintProfileDoc;
@@ -17,4 +17,3 @@ export declare class CollectionMintStageDoc {
17
17
  id: string;
18
18
  constructor(props?: Partial<CollectionMintStageDoc>);
19
19
  }
20
- export type CollectionMintStageDocType = CollectionMintStageDoc;
@@ -1,6 +1,6 @@
1
1
  import { EsdtTokenType, EsdtTokenSubType, ActivityChain } from '../../../common/enums';
2
2
  import { SocialsDto } from '../../../common/socials';
3
- import { CollectionStatistics } from '../../../common/statistics';
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: CollectionStatistics;
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;
@@ -41,5 +41,4 @@ export declare class CollectionStatsDoc {
41
41
  collectionInfo?: Partial<CollectionProfileDoc>;
42
42
  constructor(props?: Partial<CollectionStatsDoc>);
43
43
  }
44
- export type CollectionStatsDocType = CollectionStatsDoc;
45
44
  export {};
@@ -13,4 +13,3 @@ export declare class LendingNftAttributes {
13
13
  isolatedToken?: string;
14
14
  constructor(init?: Partial<LendingNftAttributes>);
15
15
  }
16
- export type LendingNftAttributesType = LendingNftAttributes;
@@ -10,4 +10,3 @@ export declare class LendingTokenEModeProfileDoc {
10
10
  _ts: number;
11
11
  constructor(init?: Partial<LendingTokenEModeProfileDoc>);
12
12
  }
13
- export type LendingTokenEModeProfileDocType = LendingTokenEModeProfileDoc;
@@ -60,7 +60,7 @@ class EventGuestFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter
60
60
  ...props?.filters,
61
61
  };
62
62
  // Assign other properties
63
- const { filters, ...otherProps } = props;
63
+ const { filters: _, ...otherProps } = props;
64
64
  Object.assign(this, otherProps);
65
65
  this.setPk();
66
66
  }
@@ -68,7 +68,7 @@ class EventInvitationFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFi
68
68
  ...props?.filters,
69
69
  };
70
70
  // Assign other properties
71
- const { filters, ...otherProps } = props;
71
+ const { filters: _, ...otherProps } = props;
72
72
  Object.assign(this, otherProps);
73
73
  this.setPk();
74
74
  }
@@ -77,7 +77,7 @@ class EventProfileFilter extends cosmos_db_generic_filter_2.CosmosDbGenericFilte
77
77
  ...props?.filters,
78
78
  };
79
79
  // Assign other properties
80
- const { filters, ...otherProps } = props;
80
+ const { filters: _, ...otherProps } = props;
81
81
  Object.assign(this, otherProps);
82
82
  this.applySelectPropertyLogic(props);
83
83
  }
@@ -83,7 +83,7 @@ class EventReferralConfigFilter extends cosmos_db_generic_filter_1.CosmosDbGener
83
83
  ...props?.filters,
84
84
  };
85
85
  // Assign other properties if any
86
- const { filters, ...otherProps } = props;
86
+ const { filters: _, ...otherProps } = props;
87
87
  Object.assign(this, otherProps);
88
88
  this.setPk();
89
89
  }
@@ -129,7 +129,7 @@ class EventReferralFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilt
129
129
  ...props?.filters,
130
130
  };
131
131
  // Assign other properties if any
132
- const { filters, ...otherProps } = props;
132
+ const { filters: _, ...otherProps } = props;
133
133
  Object.assign(this, otherProps);
134
134
  this.setPk();
135
135
  }
@@ -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 { Owner } from '../../../common/owner.dto';
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 | Owner;
45
- owner?: string | Owner;
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;
@@ -3,4 +3,3 @@ export declare class NftMetadataAttributes {
3
3
  value: string;
4
4
  constructor(json: Partial<NftMetadataAttributes>);
5
5
  }
6
- export type NftMetadataAttributesType = NftMetadataAttributes;
@@ -1,5 +1,5 @@
1
1
  import { OwnerDto } from '../../../common/owner.dto';
2
- import { AuctionTypes } from '../../../common/enums';
2
+ import { XoxnoAuctionTypeString } from '../../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum';
3
3
  export declare class NftSaleInfo {
4
4
  auctionId: number;
5
5
  seller: string;
@@ -11,7 +11,7 @@ export declare class NftSaleInfo {
11
11
  deadline: number;
12
12
  paymentToken: string;
13
13
  paymentTokenNonce: number;
14
- auctionType: AuctionTypes;
14
+ auctionType: XoxnoAuctionTypeString;
15
15
  timestamp: number;
16
16
  minBidShort: number;
17
17
  minBidUsdValue?: number;
@@ -13,6 +13,7 @@ exports.NftSaleInfo = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const owner_dto_1 = require("../../../common/owner.dto");
15
15
  const enums_1 = require("../../../common/enums");
16
+ const xoxno_auction_type_enum_1 = require("../../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum");
16
17
  class NftSaleInfo {
17
18
  }
18
19
  exports.NftSaleInfo = NftSaleInfo;
@@ -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?: 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", Object)
94
+ __metadata("design:type", socials_1.SocialsDto)
94
95
  ], CreatorProfileDoc.prototype, "socials", void 0);
95
96
  __decorate([
96
97
  (0, swagger_1.ApiProperty)({
@@ -6,4 +6,3 @@ export declare class UserDeposit {
6
6
  usdPrice: number;
7
7
  constructor(props: Partial<UserDeposit>);
8
8
  }
9
- export type UserDepositType = UserDeposit;
@@ -0,0 +1,4 @@
1
+ export declare enum AuthStrategy {
2
+ FIREBASE = "firebase-auth",
3
+ OPTIONAL_FIREBASE = "optional-firebase-auth"
4
+ }
@@ -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,8 @@
1
+ export declare class LoginRequestDto {
2
+ address?: string;
3
+ loginToken: string;
4
+ signature?: string;
5
+ data?: {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -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
+ export declare enum FiatTokens {
2
+ USDC = "USDC",
3
+ RON = "RON",
4
+ EUR = "EUR",
5
+ USD = "USD"
6
+ }
7
+ export interface TokenValue {
8
+ usdPrice: number;
9
+ egldPrice: number;
10
+ }
@@ -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
+ }