@xoxno/types 1.0.193 → 1.0.194
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/kusto/lending-overall-stats.d.ts +1 -1
- package/dist/common/kusto/lending-overall-stats.js +3 -0
- package/dist/common/kusto/user-trading-summary.js +47 -10
- package/dist/common/kusto/volume-graph.js +47 -8
- package/dist/common/kusto/wallet-stats.js +153 -29
- package/dist/common/statistics.js +54 -11
- package/dist/cosmos-db/documents/chat/group-chat-profile.doc.js +85 -0
- package/dist/cosmos-db/documents/chat/user-block.doc.js +76 -0
- package/dist/cosmos-db/documents/chat/user-conversation.doc.js +115 -0
- package/dist/cosmos-db/documents/collection/collectionConfig.d.ts +1 -1
- package/dist/cosmos-db/documents/collection/collectionConfig.js +87 -1
- package/dist/cosmos-db/documents/collection/globalOffer.js +37 -0
- package/dist/cosmos-db/documents/collection/mintProfile.js +45 -2
- package/dist/cosmos-db/documents/external-payment/binance-hook.d.ts +4 -5
- package/dist/cosmos-db/documents/external-payment/binance-hook.js +216 -0
- package/dist/cosmos-db/documents/external-payment/external-payment.doc.js +218 -0
- package/dist/cosmos-db/documents/external-payment/stripe-charge-event.d.ts +71 -71
- package/dist/cosmos-db/documents/external-payment/stripe-charge-event.js +783 -0
- package/dist/cosmos-db/documents/external-payment/twispay-cart.d.ts +1 -1
- package/dist/cosmos-db/documents/external-payment/twispay-cart.js +75 -0
- package/dist/cosmos-db/documents/external-payment/twispay-customer.d.ts +1 -2
- package/dist/cosmos-db/documents/external-payment/twispay-customer.js +102 -0
- package/dist/cosmos-db/documents/external-payment/twispay-payment-form.d.ts +1 -1
- package/dist/cosmos-db/documents/external-payment/twispay-payment-form.js +98 -0
- package/dist/cosmos-db/documents/external-payment/twispay-transaction.d.ts +1 -1
- package/dist/cosmos-db/documents/external-payment/twispay-transaction.js +116 -1
- package/dist/cosmos-db/documents/lending/lending-account-profile.js +21 -0
- package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +15 -0
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +21 -0
- package/dist/cosmos-db/documents/lending/lending-nft-attributes.js +49 -0
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.js +21 -0
- package/dist/cosmos-db/documents/notification/notification.doc.js +108 -0
- package/dist/cosmos-db/documents/staking/staking-delegator-doc.js +89 -0
- package/dist/cosmos-db/documents/staking/staking-pool-doc.js +274 -0
- package/dist/cosmos-db/documents/ticketing/event-guest.doc.js +24 -0
- package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-location.js +24 -0
- package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +14 -0
- package/dist/cosmos-db/documents/ticketing/event-question.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-referral.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +14 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +14 -0
- package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +16 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +7 -0
- package/dist/cosmos-db/documents/token/nft-details.doc.js +18 -5
- package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.js +59 -0
- package/dist/cosmos-db/documents/token/nft-metadata-attributes.js +40 -0
- package/dist/cosmos-db/documents/token/nft-metadata.js +9 -0
- package/dist/cosmos-db/documents/token/nft-sale-info.js +89 -17
- package/dist/cosmos-db/documents/token/sft-owner-doc.js +86 -0
- package/dist/cosmos-db/documents/user/user-favorite.doc.js +67 -0
- package/dist/entities/airdrop/airdrop.dto.js +77 -0
- package/dist/entities/auth/login-request.dto.js +7 -0
- package/dist/entities/delegation-data/delegation-data-output.js +106 -0
- package/dist/entities/mvx-built-in/account-on-network.js +124 -0
- package/dist/entities/mvx-built-in/esdt-token.js +187 -0
- package/dist/entities/mvx-built-in/mvx-guardian.d.ts +5 -6
- package/dist/entities/mvx-built-in/mvx-guardian.js +67 -8
- package/dist/entities/notification-data/device-tag-storage.doc.js +79 -11
- package/dist/entities/notification-data/push-notification.doc.js +147 -25
- package/dist/entities/notification-data/tag-priority.d.ts +1 -1
- package/dist/entities/notification-data/tag-priority.js +57 -1
- package/dist/entities/search-data/filter-query.dto.js +32 -0
- package/dist/entities/staking-data/staking-creator.doc.js +38 -6
- package/dist/entities/staking-data/staking-explore.js +26 -5
- package/dist/entities/staking-data/user-staking-summary.dto.js +18 -0
- package/dist/entities/token-data/metrics.js +192 -38
- package/dist/entities/token-data/token-data.doc.js +84 -18
- package/dist/entities/transactions/smart-contract-result.js +138 -0
- package/dist/entities/transactions/transaction-detailed.js +44 -0
- package/dist/entities/transactions/transaction-log-event.js +52 -0
- package/dist/entities/transactions/transaction-log.js +51 -0
- package/dist/entities/transactions/transaction-operation.js +115 -0
- package/dist/entities/transactions/transaction-receipt.js +34 -0
- package/dist/entities/transactions/transaction.js +194 -0
- package/dist/entities/web2user-data/success.dto.js +18 -0
- package/dist/requests/bober-battle/analytics.js +187 -0
- package/dist/requests/collection/collection-attributes-map.js +123 -0
- package/dist/requests/collection/shareholder.dto.js +30 -0
- package/dist/requests/lending/lending-indexes.dto.js +74 -0
- package/dist/requests/lending/lending-token-price.dto.js +18 -0
- package/dist/requests/nft-activity-data/nft-activity-data.js +168 -0
- package/dist/requests/nft-data/nft-doc.filter.js +2 -0
- package/dist/requests/nft-data/nft-offer-doc.filter.js +11 -0
- package/dist/requests/nft-data/sign-data.dto.js +10 -2
- package/dist/requests/user-data/token-inventory.js +10 -0
- package/package.json +1 -1
|
@@ -1,7 +1,20 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.TransactionDetailed = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const smart_contract_result_1 = require("./smart-contract-result");
|
|
4
15
|
const transaction_1 = require("./transaction");
|
|
16
|
+
const transaction_log_1 = require("./transaction-log");
|
|
17
|
+
const transaction_operation_1 = require("./transaction-operation");
|
|
5
18
|
class TransactionDetailed extends transaction_1.Transaction {
|
|
6
19
|
constructor() {
|
|
7
20
|
super(...arguments);
|
|
@@ -13,3 +26,34 @@ class TransactionDetailed extends transaction_1.Transaction {
|
|
|
13
26
|
}
|
|
14
27
|
}
|
|
15
28
|
exports.TransactionDetailed = TransactionDetailed;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({
|
|
31
|
+
description: 'Array of smart contract results generated by this transaction',
|
|
32
|
+
type: [smart_contract_result_1.SmartContractResult],
|
|
33
|
+
isArray: true,
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", Array)
|
|
36
|
+
], TransactionDetailed.prototype, "results", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
39
|
+
description: 'The price of the transaction in USD or other currency',
|
|
40
|
+
example: 0.0025,
|
|
41
|
+
type: Number,
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], TransactionDetailed.prototype, "price", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
47
|
+
description: 'The transaction log containing emitted events',
|
|
48
|
+
type: transaction_log_1.TransactionLog,
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], TransactionDetailed.prototype, "logs", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({
|
|
54
|
+
description: 'Array of decoded operations performed in this transaction',
|
|
55
|
+
type: [transaction_operation_1.TransactionOperation],
|
|
56
|
+
isArray: true,
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", Array)
|
|
59
|
+
], TransactionDetailed.prototype, "operations", void 0);
|
|
@@ -1,6 +1,16 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.TransactionLogEvent = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
4
14
|
class TransactionLogEvent {
|
|
5
15
|
constructor() {
|
|
6
16
|
this.address = '';
|
|
@@ -11,3 +21,45 @@ class TransactionLogEvent {
|
|
|
11
21
|
}
|
|
12
22
|
}
|
|
13
23
|
exports.TransactionLogEvent = TransactionLogEvent;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({
|
|
26
|
+
description: 'The address of the smart contract that emitted the event',
|
|
27
|
+
example: 'erd1qqqqqqqqqqqqqpgqrc4pg2xarca9z34njcxeur622qmfjp8w2jps89fxnl',
|
|
28
|
+
type: String,
|
|
29
|
+
}),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], TransactionLogEvent.prototype, "address", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({
|
|
34
|
+
description: 'The event identifier or signature',
|
|
35
|
+
example: 'transfer',
|
|
36
|
+
type: String,
|
|
37
|
+
}),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], TransactionLogEvent.prototype, "identifier", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({
|
|
42
|
+
description: 'The indexed topics of the event used for filtering',
|
|
43
|
+
example: ['0x1234567890abcdef', '0xabcdef1234567890'],
|
|
44
|
+
type: [String],
|
|
45
|
+
isArray: true,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], TransactionLogEvent.prototype, "topics", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({
|
|
51
|
+
description: 'The main data payload of the event',
|
|
52
|
+
example: '0x00000000000000000000000000000001',
|
|
53
|
+
type: String,
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], TransactionLogEvent.prototype, "data", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)({
|
|
59
|
+
description: 'Additional data associated with the event',
|
|
60
|
+
example: ['extra1', 'extra2'],
|
|
61
|
+
type: [String],
|
|
62
|
+
isArray: true,
|
|
63
|
+
}),
|
|
64
|
+
__metadata("design:type", Array)
|
|
65
|
+
], TransactionLogEvent.prototype, "additionalData", void 0);
|
|
@@ -1,6 +1,17 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.TransactionLog = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const transaction_log_event_1 = require("./transaction-log-event");
|
|
4
15
|
class TransactionLog {
|
|
5
16
|
constructor() {
|
|
6
17
|
this.address = '';
|
|
@@ -10,3 +21,43 @@ class TransactionLog {
|
|
|
10
21
|
}
|
|
11
22
|
}
|
|
12
23
|
exports.TransactionLog = TransactionLog;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
26
|
+
description: 'The unique identifier of the transaction log',
|
|
27
|
+
example: 'log-123456',
|
|
28
|
+
type: String,
|
|
29
|
+
}),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], TransactionLog.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({
|
|
34
|
+
description: 'The smart contract address that generated the log',
|
|
35
|
+
example: 'erd1qqqqqqqqqqqqqpgqrc4pg2xarca9z34njcxeur622qmfjp8w2jps89fxnl',
|
|
36
|
+
type: String,
|
|
37
|
+
}),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], TransactionLog.prototype, "address", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({
|
|
42
|
+
description: 'The array of events emitted in this log',
|
|
43
|
+
type: [transaction_log_event_1.TransactionLogEvent],
|
|
44
|
+
isArray: true,
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], TransactionLog.prototype, "events", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({
|
|
50
|
+
description: 'The Unix timestamp when the log was created',
|
|
51
|
+
example: 1672531200,
|
|
52
|
+
type: Number,
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], TransactionLog.prototype, "timestamp", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)({
|
|
58
|
+
description: 'The transaction hash associated with this log',
|
|
59
|
+
example: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef',
|
|
60
|
+
type: String,
|
|
61
|
+
}),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], TransactionLog.prototype, "txHash", void 0);
|
|
@@ -1,7 +1,17 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.TransactionOperation = void 0;
|
|
4
13
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
5
15
|
const transaction_operation_type_enum_1 = require("../../enums/transaction-operation-type.enum");
|
|
6
16
|
const transaction_operation_action_1 = require("../../enums/transaction.operation.action");
|
|
7
17
|
class TransactionOperation {
|
|
@@ -17,3 +27,108 @@ class TransactionOperation {
|
|
|
17
27
|
}
|
|
18
28
|
}
|
|
19
29
|
exports.TransactionOperation = TransactionOperation;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
32
|
+
description: 'The unique identifier of the operation',
|
|
33
|
+
example: '0x1234567890abcdef',
|
|
34
|
+
type: String,
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], TransactionOperation.prototype, "id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({
|
|
40
|
+
description: 'The action performed in this operation',
|
|
41
|
+
enum: transaction_operation_action_1.TransactionOperationAction,
|
|
42
|
+
enumName: 'TransactionOperationAction',
|
|
43
|
+
example: transaction_operation_action_1.TransactionOperationAction.transfer,
|
|
44
|
+
}),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], TransactionOperation.prototype, "action", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({
|
|
49
|
+
description: 'The type of the operation',
|
|
50
|
+
enum: transaction_operation_type_enum_1.TransactionOperationType,
|
|
51
|
+
enumName: 'TransactionOperationType',
|
|
52
|
+
example: transaction_operation_type_enum_1.TransactionOperationType.nft,
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], TransactionOperation.prototype, "type", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
58
|
+
description: 'The ESDT token type information',
|
|
59
|
+
example: 'NonFungibleESDT',
|
|
60
|
+
}),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], TransactionOperation.prototype, "esdtType", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, swagger_1.ApiProperty)({
|
|
65
|
+
description: 'The token identifier (collection-random-nonce for NFTs)',
|
|
66
|
+
example: 'XOXNO-5e0b1f-01',
|
|
67
|
+
type: String,
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], TransactionOperation.prototype, "identifier", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
73
|
+
description: 'The collection identifier for NFT operations',
|
|
74
|
+
example: 'XOXNO-5e0b1f',
|
|
75
|
+
type: String,
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], TransactionOperation.prototype, "collection", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
81
|
+
description: 'The name of the token or NFT',
|
|
82
|
+
example: 'My NFT #1',
|
|
83
|
+
type: String,
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], TransactionOperation.prototype, "name", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
89
|
+
description: 'The value transferred in the operation',
|
|
90
|
+
example: '1000000000000000000',
|
|
91
|
+
type: String,
|
|
92
|
+
}),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], TransactionOperation.prototype, "value", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, swagger_1.ApiProperty)({
|
|
97
|
+
description: 'The sender address of the operation',
|
|
98
|
+
example: 'erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th',
|
|
99
|
+
type: String,
|
|
100
|
+
}),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], TransactionOperation.prototype, "sender", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, swagger_1.ApiProperty)({
|
|
105
|
+
description: 'The receiver address of the operation',
|
|
106
|
+
example: 'erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx',
|
|
107
|
+
type: String,
|
|
108
|
+
}),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], TransactionOperation.prototype, "receiver", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
113
|
+
description: 'The number of decimals for the token',
|
|
114
|
+
example: 18,
|
|
115
|
+
type: Number,
|
|
116
|
+
}),
|
|
117
|
+
__metadata("design:type", Number)
|
|
118
|
+
], TransactionOperation.prototype, "decimals", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
121
|
+
description: 'Additional data for the operation',
|
|
122
|
+
example: 'QDZmNmI=',
|
|
123
|
+
type: String,
|
|
124
|
+
}),
|
|
125
|
+
__metadata("design:type", String)
|
|
126
|
+
], TransactionOperation.prototype, "data", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
129
|
+
description: 'Human-readable message describing the operation',
|
|
130
|
+
example: 'NFT transfer from Alice to Bob',
|
|
131
|
+
type: String,
|
|
132
|
+
}),
|
|
133
|
+
__metadata("design:type", String)
|
|
134
|
+
], TransactionOperation.prototype, "message", void 0);
|
|
@@ -1,6 +1,16 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.TransactionReceipt = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
4
14
|
class TransactionReceipt {
|
|
5
15
|
constructor(init) {
|
|
6
16
|
this.value = '';
|
|
@@ -10,3 +20,27 @@ class TransactionReceipt {
|
|
|
10
20
|
}
|
|
11
21
|
}
|
|
12
22
|
exports.TransactionReceipt = TransactionReceipt;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({
|
|
25
|
+
description: 'The value transferred in the receipt',
|
|
26
|
+
example: '1000000000000000000',
|
|
27
|
+
type: String,
|
|
28
|
+
}),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], TransactionReceipt.prototype, "value", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({
|
|
33
|
+
description: 'The sender address of the receipt',
|
|
34
|
+
example: 'erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th',
|
|
35
|
+
type: String,
|
|
36
|
+
}),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], TransactionReceipt.prototype, "sender", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, swagger_1.ApiProperty)({
|
|
41
|
+
description: 'The data field of the receipt',
|
|
42
|
+
example: 'QDZmNmI=',
|
|
43
|
+
type: String,
|
|
44
|
+
}),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], TransactionReceipt.prototype, "data", void 0);
|
|
@@ -1,6 +1,18 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.Transaction = void 0;
|
|
13
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const transaction_type_enum_1 = require("../../enums/transaction-type.enum");
|
|
4
16
|
class Transaction {
|
|
5
17
|
constructor() {
|
|
6
18
|
this.txHash = '';
|
|
@@ -35,3 +47,185 @@ class Transaction {
|
|
|
35
47
|
}
|
|
36
48
|
}
|
|
37
49
|
exports.Transaction = Transaction;
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)({
|
|
52
|
+
description: 'The unique hash identifier of the transaction',
|
|
53
|
+
example: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef',
|
|
54
|
+
type: String,
|
|
55
|
+
}),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], Transaction.prototype, "txHash", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
60
|
+
description: 'The maximum amount of gas units allocated for the transaction',
|
|
61
|
+
example: 50000,
|
|
62
|
+
type: Number,
|
|
63
|
+
}),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], Transaction.prototype, "gasLimit", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
68
|
+
description: 'The price per gas unit for the transaction',
|
|
69
|
+
example: 1000000000,
|
|
70
|
+
type: Number,
|
|
71
|
+
}),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], Transaction.prototype, "gasPrice", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
76
|
+
description: 'The actual amount of gas units consumed by the transaction',
|
|
77
|
+
example: 25000,
|
|
78
|
+
type: Number,
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], Transaction.prototype, "gasUsed", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
84
|
+
description: 'The hash of the miniblock containing this transaction',
|
|
85
|
+
example: '0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890',
|
|
86
|
+
type: String,
|
|
87
|
+
}),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], Transaction.prototype, "miniBlockHash", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
92
|
+
description: 'The sequence number of the transaction for the sender',
|
|
93
|
+
example: 42,
|
|
94
|
+
type: Number,
|
|
95
|
+
}),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], Transaction.prototype, "nonce", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, swagger_1.ApiProperty)({
|
|
100
|
+
description: 'The address of the transaction receiver',
|
|
101
|
+
example: 'erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th',
|
|
102
|
+
type: String,
|
|
103
|
+
}),
|
|
104
|
+
__metadata("design:type", Object)
|
|
105
|
+
], Transaction.prototype, "receiver", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, swagger_1.ApiProperty)({
|
|
108
|
+
description: 'The shard ID of the receiver address',
|
|
109
|
+
example: 1,
|
|
110
|
+
type: Number,
|
|
111
|
+
}),
|
|
112
|
+
__metadata("design:type", Object)
|
|
113
|
+
], Transaction.prototype, "receiverShard", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
116
|
+
description: 'The blockchain round when the transaction was processed',
|
|
117
|
+
example: 1234567,
|
|
118
|
+
type: Number,
|
|
119
|
+
}),
|
|
120
|
+
__metadata("design:type", Object)
|
|
121
|
+
], Transaction.prototype, "round", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, swagger_1.ApiProperty)({
|
|
124
|
+
description: 'The address of the transaction sender',
|
|
125
|
+
example: 'erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th',
|
|
126
|
+
type: String,
|
|
127
|
+
}),
|
|
128
|
+
__metadata("design:type", Object)
|
|
129
|
+
], Transaction.prototype, "sender", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, swagger_1.ApiProperty)({
|
|
132
|
+
description: 'The shard ID of the sender address',
|
|
133
|
+
example: 0,
|
|
134
|
+
type: Number,
|
|
135
|
+
}),
|
|
136
|
+
__metadata("design:type", Object)
|
|
137
|
+
], Transaction.prototype, "senderShard", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
140
|
+
description: 'The cryptographic signature of the transaction',
|
|
141
|
+
example: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef',
|
|
142
|
+
type: String,
|
|
143
|
+
}),
|
|
144
|
+
__metadata("design:type", Object)
|
|
145
|
+
], Transaction.prototype, "signature", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, swagger_1.ApiProperty)({
|
|
148
|
+
description: 'The current status of the transaction (e.g., success, pending, invalid)',
|
|
149
|
+
example: 'success',
|
|
150
|
+
type: String,
|
|
151
|
+
}),
|
|
152
|
+
__metadata("design:type", Object)
|
|
153
|
+
], Transaction.prototype, "status", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, swagger_1.ApiProperty)({
|
|
156
|
+
description: 'The amount of EGLD tokens transferred in the transaction',
|
|
157
|
+
example: '1000000000000000000',
|
|
158
|
+
type: String,
|
|
159
|
+
}),
|
|
160
|
+
__metadata("design:type", Object)
|
|
161
|
+
], Transaction.prototype, "value", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
164
|
+
description: 'The transaction fee paid by the sender',
|
|
165
|
+
example: '50000000000000',
|
|
166
|
+
type: String,
|
|
167
|
+
}),
|
|
168
|
+
__metadata("design:type", Object)
|
|
169
|
+
], Transaction.prototype, "fee", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, swagger_1.ApiProperty)({
|
|
172
|
+
description: 'The Unix timestamp when the transaction was processed',
|
|
173
|
+
example: 1672531200,
|
|
174
|
+
type: Number,
|
|
175
|
+
}),
|
|
176
|
+
__metadata("design:type", Object)
|
|
177
|
+
], Transaction.prototype, "timestamp", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
180
|
+
description: 'The data field of the transaction, encoded in base64',
|
|
181
|
+
example: 'RVNEVFRyYW5zZmVyQDQ0NDU1ODJkMzQzODM0MzYzNjJkMzAzMUAwMWY0',
|
|
182
|
+
type: String,
|
|
183
|
+
}),
|
|
184
|
+
__metadata("design:type", Object)
|
|
185
|
+
], Transaction.prototype, "data", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
188
|
+
description: 'The smart contract function name called in the transaction',
|
|
189
|
+
example: 'ESDTTransfer',
|
|
190
|
+
type: String,
|
|
191
|
+
}),
|
|
192
|
+
__metadata("design:type", Object)
|
|
193
|
+
], Transaction.prototype, "function", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
196
|
+
description: 'The decoded action of the transaction',
|
|
197
|
+
example: { category: 'scCall', name: 'transfer' },
|
|
198
|
+
}),
|
|
199
|
+
__metadata("design:type", Object)
|
|
200
|
+
], Transaction.prototype, "action", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
203
|
+
description: 'Information about potential scam indicators for this transaction',
|
|
204
|
+
example: { type: 'none', info: 'N/A' },
|
|
205
|
+
}),
|
|
206
|
+
__metadata("design:type", Object)
|
|
207
|
+
], Transaction.prototype, "scamInfo", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
210
|
+
description: 'The type of the transaction',
|
|
211
|
+
enum: transaction_type_enum_1.TransactionType,
|
|
212
|
+
enumName: 'TransactionType',
|
|
213
|
+
}),
|
|
214
|
+
__metadata("design:type", Object)
|
|
215
|
+
], Transaction.prototype, "type", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
218
|
+
description: 'The hash of the original transaction (for smart contract results)',
|
|
219
|
+
example: '0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba',
|
|
220
|
+
type: String,
|
|
221
|
+
}),
|
|
222
|
+
__metadata("design:type", Object)
|
|
223
|
+
], Transaction.prototype, "originalTxHash", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
226
|
+
description: 'Indicates if the transaction has pending smart contract results',
|
|
227
|
+
example: false,
|
|
228
|
+
type: Boolean,
|
|
229
|
+
}),
|
|
230
|
+
__metadata("design:type", Object)
|
|
231
|
+
], Transaction.prototype, "pendingResults", void 0);
|
|
@@ -1,7 +1,25 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.SuccessWithMessageDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
4
14
|
const block_user_dto_1 = require("../../cosmos-db/documents/chat/block-user.dto");
|
|
5
15
|
class SuccessWithMessageDto extends block_user_dto_1.SuccessDto {
|
|
6
16
|
}
|
|
7
17
|
exports.SuccessWithMessageDto = SuccessWithMessageDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
description: 'Response message indicating the result of the operation',
|
|
21
|
+
example: 'Operation completed successfully',
|
|
22
|
+
type: String,
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], SuccessWithMessageDto.prototype, "message", void 0);
|