@xoxno/types 1.0.167 → 1.0.168
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/entities/transactions/smart-contract-result.d.ts +19 -0
- package/dist/entities/transactions/smart-contract-result.js +24 -0
- package/dist/entities/transactions/transaction-detailed.d.ts +10 -0
- package/dist/entities/transactions/transaction-detailed.js +15 -0
- package/dist/entities/transactions/transaction-log-event.d.ts +6 -0
- package/dist/entities/transactions/transaction-log-event.js +12 -0
- package/dist/entities/transactions/transaction-log.d.ts +8 -0
- package/dist/entities/transactions/transaction-log.js +12 -0
- package/dist/entities/transactions/transaction-operation.d.ts +17 -0
- package/dist/entities/transactions/transaction-operation.js +19 -0
- package/dist/entities/transactions/transaction-receipt.d.ts +6 -0
- package/dist/entities/transactions/transaction-receipt.js +12 -0
- package/dist/entities/transactions/transaction.d.ts +27 -0
- package/dist/entities/transactions/transaction.js +37 -0
- package/dist/enums/index.d.ts +3 -0
- package/dist/enums/index.js +3 -0
- package/dist/enums/transaction-operation-type.enum.d.ts +8 -0
- package/dist/enums/transaction-operation-type.enum.js +12 -0
- package/dist/enums/transaction-type.enum.d.ts +4 -0
- package/dist/enums/transaction-type.enum.js +8 -0
- package/dist/enums/transaction.operation.action.d.ts +25 -0
- package/dist/enums/transaction.operation.action.js +29 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TransactionLog } from './transaction-log';
|
|
2
|
+
export declare class SmartContractResult {
|
|
3
|
+
hash: string;
|
|
4
|
+
timestamp: number;
|
|
5
|
+
nonce: number;
|
|
6
|
+
gasLimit: number;
|
|
7
|
+
gasPrice: number;
|
|
8
|
+
value: string;
|
|
9
|
+
sender: string;
|
|
10
|
+
receiver: string;
|
|
11
|
+
relayedValue: string;
|
|
12
|
+
data: string;
|
|
13
|
+
prevTxHash: string;
|
|
14
|
+
originalTxHash: string;
|
|
15
|
+
callType: string;
|
|
16
|
+
miniBlockHash: string | undefined;
|
|
17
|
+
logs: TransactionLog | undefined;
|
|
18
|
+
returnMessage: string | undefined;
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SmartContractResult = void 0;
|
|
4
|
+
class SmartContractResult {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.hash = '';
|
|
7
|
+
this.timestamp = 0;
|
|
8
|
+
this.nonce = 0;
|
|
9
|
+
this.gasLimit = 0;
|
|
10
|
+
this.gasPrice = 0;
|
|
11
|
+
this.value = '';
|
|
12
|
+
this.sender = '';
|
|
13
|
+
this.receiver = '';
|
|
14
|
+
this.relayedValue = '';
|
|
15
|
+
this.data = '';
|
|
16
|
+
this.prevTxHash = '';
|
|
17
|
+
this.originalTxHash = '';
|
|
18
|
+
this.callType = '';
|
|
19
|
+
this.miniBlockHash = undefined;
|
|
20
|
+
this.logs = undefined;
|
|
21
|
+
this.returnMessage = undefined;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.SmartContractResult = SmartContractResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SmartContractResult } from './smart-contract-result';
|
|
2
|
+
import { Transaction } from './transaction';
|
|
3
|
+
import { TransactionLog } from './transaction-log';
|
|
4
|
+
import { TransactionOperation } from './transaction-operation';
|
|
5
|
+
export declare class TransactionDetailed extends Transaction {
|
|
6
|
+
results: SmartContractResult[];
|
|
7
|
+
price: number | undefined;
|
|
8
|
+
logs: TransactionLog | undefined;
|
|
9
|
+
operations: TransactionOperation[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionDetailed = void 0;
|
|
4
|
+
const transaction_1 = require("./transaction");
|
|
5
|
+
class TransactionDetailed extends transaction_1.Transaction {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.results = [];
|
|
9
|
+
// receipt: TransactionReceipt | undefined = undefined;
|
|
10
|
+
this.price = undefined;
|
|
11
|
+
this.logs = undefined;
|
|
12
|
+
this.operations = [];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.TransactionDetailed = TransactionDetailed;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionLogEvent = void 0;
|
|
4
|
+
class TransactionLogEvent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.address = '';
|
|
7
|
+
this.identifier = '';
|
|
8
|
+
this.topics = [];
|
|
9
|
+
this.data = '';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TransactionLogEvent = TransactionLogEvent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionLog = void 0;
|
|
4
|
+
class TransactionLog {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.address = '';
|
|
7
|
+
this.events = [];
|
|
8
|
+
this.timestamp = 0;
|
|
9
|
+
this.txHash = '';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TransactionLog = TransactionLog;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TransactionOperationType } from '../../enums/transaction-operation-type.enum';
|
|
2
|
+
import { TransactionOperationAction } from '../../enums/transaction.operation.action';
|
|
3
|
+
export declare class TransactionOperation {
|
|
4
|
+
id?: string;
|
|
5
|
+
action: TransactionOperationAction;
|
|
6
|
+
type: TransactionOperationType;
|
|
7
|
+
esdtType?: any;
|
|
8
|
+
identifier: string;
|
|
9
|
+
collection?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
sender: string;
|
|
13
|
+
receiver: string;
|
|
14
|
+
decimals?: number;
|
|
15
|
+
data?: string;
|
|
16
|
+
message?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionOperation = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
|
+
const transaction_operation_type_enum_1 = require("../../enums/transaction-operation-type.enum");
|
|
6
|
+
const transaction_operation_action_1 = require("../../enums/transaction.operation.action");
|
|
7
|
+
class TransactionOperation {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.id = '';
|
|
10
|
+
this.action = transaction_operation_action_1.TransactionOperationAction.none;
|
|
11
|
+
this.type = transaction_operation_type_enum_1.TransactionOperationType.none;
|
|
12
|
+
this.identifier = '';
|
|
13
|
+
this.sender = '';
|
|
14
|
+
this.receiver = '';
|
|
15
|
+
this.data = '';
|
|
16
|
+
this.message = '';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.TransactionOperation = TransactionOperation;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionReceipt = void 0;
|
|
4
|
+
class TransactionReceipt {
|
|
5
|
+
constructor(init) {
|
|
6
|
+
this.value = '';
|
|
7
|
+
this.sender = '';
|
|
8
|
+
this.data = '';
|
|
9
|
+
Object.assign(this, init);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TransactionReceipt = TransactionReceipt;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TransactionType } from '../../enums/transaction-type.enum';
|
|
2
|
+
export declare class Transaction {
|
|
3
|
+
txHash: string;
|
|
4
|
+
gasLimit: number | undefined;
|
|
5
|
+
gasPrice: number | undefined;
|
|
6
|
+
gasUsed: number | undefined;
|
|
7
|
+
miniBlockHash: string | undefined;
|
|
8
|
+
nonce: number | undefined;
|
|
9
|
+
receiver: string;
|
|
10
|
+
receiverShard: number;
|
|
11
|
+
round: number | undefined;
|
|
12
|
+
sender: string;
|
|
13
|
+
senderShard: number;
|
|
14
|
+
signature: string | undefined;
|
|
15
|
+
status: string;
|
|
16
|
+
value: string;
|
|
17
|
+
fee: string | undefined;
|
|
18
|
+
timestamp: number;
|
|
19
|
+
data: string | undefined;
|
|
20
|
+
function: string | undefined;
|
|
21
|
+
action: any | undefined;
|
|
22
|
+
scamInfo: any | undefined;
|
|
23
|
+
type: TransactionType | undefined;
|
|
24
|
+
originalTxHash: string | undefined;
|
|
25
|
+
pendingResults: boolean | undefined;
|
|
26
|
+
getDate(): Date | undefined;
|
|
27
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Transaction = void 0;
|
|
4
|
+
class Transaction {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.txHash = '';
|
|
7
|
+
this.gasLimit = undefined;
|
|
8
|
+
this.gasPrice = undefined;
|
|
9
|
+
this.gasUsed = undefined;
|
|
10
|
+
this.miniBlockHash = undefined;
|
|
11
|
+
this.nonce = undefined;
|
|
12
|
+
this.receiver = '';
|
|
13
|
+
this.receiverShard = 0;
|
|
14
|
+
this.round = undefined;
|
|
15
|
+
this.sender = '';
|
|
16
|
+
this.senderShard = 0;
|
|
17
|
+
this.signature = undefined;
|
|
18
|
+
this.status = '';
|
|
19
|
+
this.value = '';
|
|
20
|
+
this.fee = undefined;
|
|
21
|
+
this.timestamp = 0;
|
|
22
|
+
this.data = undefined;
|
|
23
|
+
this.function = undefined;
|
|
24
|
+
this.action = undefined;
|
|
25
|
+
this.scamInfo = undefined;
|
|
26
|
+
this.type = undefined;
|
|
27
|
+
this.originalTxHash = undefined;
|
|
28
|
+
this.pendingResults = undefined;
|
|
29
|
+
}
|
|
30
|
+
getDate() {
|
|
31
|
+
if (this.timestamp) {
|
|
32
|
+
return new Date(this.timestamp * 1000);
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.Transaction = Transaction;
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -50,7 +50,10 @@ export * from "./ticketing-data-type.enum";
|
|
|
50
50
|
export * from "./ticketing-visibility.enum";
|
|
51
51
|
export * from "./token-category.enum";
|
|
52
52
|
export * from "./token-data.enum";
|
|
53
|
+
export * from "./transaction-operation-type.enum";
|
|
53
54
|
export * from "./transaction-status.enum";
|
|
55
|
+
export * from "./transaction-type.enum";
|
|
56
|
+
export * from "./transaction.operation.action";
|
|
54
57
|
export * from "./twispay.enum";
|
|
55
58
|
export * from "./user-data-type.enum";
|
|
56
59
|
export * from "./user-favorite-type.enum";
|
package/dist/enums/index.js
CHANGED
|
@@ -66,7 +66,10 @@ __exportStar(require("./ticketing-data-type.enum"), exports);
|
|
|
66
66
|
__exportStar(require("./ticketing-visibility.enum"), exports);
|
|
67
67
|
__exportStar(require("./token-category.enum"), exports);
|
|
68
68
|
__exportStar(require("./token-data.enum"), exports);
|
|
69
|
+
__exportStar(require("./transaction-operation-type.enum"), exports);
|
|
69
70
|
__exportStar(require("./transaction-status.enum"), exports);
|
|
71
|
+
__exportStar(require("./transaction-type.enum"), exports);
|
|
72
|
+
__exportStar(require("./transaction.operation.action"), exports);
|
|
70
73
|
__exportStar(require("./twispay.enum"), exports);
|
|
71
74
|
__exportStar(require("./user-data-type.enum"), exports);
|
|
72
75
|
__exportStar(require("./user-favorite-type.enum"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionOperationType = void 0;
|
|
4
|
+
var TransactionOperationType;
|
|
5
|
+
(function (TransactionOperationType) {
|
|
6
|
+
TransactionOperationType["none"] = "none";
|
|
7
|
+
TransactionOperationType["nft"] = "nft";
|
|
8
|
+
TransactionOperationType["esdt"] = "esdt";
|
|
9
|
+
TransactionOperationType["log"] = "log";
|
|
10
|
+
TransactionOperationType["error"] = "error";
|
|
11
|
+
TransactionOperationType["egld"] = "egld";
|
|
12
|
+
})(TransactionOperationType || (exports.TransactionOperationType = TransactionOperationType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionType = void 0;
|
|
4
|
+
var TransactionType;
|
|
5
|
+
(function (TransactionType) {
|
|
6
|
+
TransactionType["Transaction"] = "Transaction";
|
|
7
|
+
TransactionType["SmartContractResult"] = "SmartContractResult";
|
|
8
|
+
})(TransactionType || (exports.TransactionType = TransactionType = {}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum TransactionOperationAction {
|
|
2
|
+
none = "none",
|
|
3
|
+
transfer = "transfer",
|
|
4
|
+
burn = "burn",
|
|
5
|
+
addQuantity = "addQuantity",
|
|
6
|
+
create = "create",
|
|
7
|
+
multiTransfer = "multiTransfer",
|
|
8
|
+
localMint = "localMint",
|
|
9
|
+
localBurn = "localBurn",
|
|
10
|
+
wipe = "wipe",
|
|
11
|
+
freeze = "freeze",
|
|
12
|
+
writeLog = "writeLog",
|
|
13
|
+
signalError = "signalError",
|
|
14
|
+
buy = "buy",
|
|
15
|
+
buySft = "buySft",
|
|
16
|
+
bulkBuy = "bulkBuy",
|
|
17
|
+
acceptOffer = "acceptOffer",
|
|
18
|
+
endAuction = "endAuction",
|
|
19
|
+
listing = "listing",
|
|
20
|
+
withdraw = "withdraw",
|
|
21
|
+
changePrice = "changePrice",
|
|
22
|
+
bid = "bid",
|
|
23
|
+
sendOffer = "sendOffer",
|
|
24
|
+
withdrawOffer = "withdrawOffer"
|
|
25
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionOperationAction = void 0;
|
|
4
|
+
var TransactionOperationAction;
|
|
5
|
+
(function (TransactionOperationAction) {
|
|
6
|
+
TransactionOperationAction["none"] = "none";
|
|
7
|
+
TransactionOperationAction["transfer"] = "transfer";
|
|
8
|
+
TransactionOperationAction["burn"] = "burn";
|
|
9
|
+
TransactionOperationAction["addQuantity"] = "addQuantity";
|
|
10
|
+
TransactionOperationAction["create"] = "create";
|
|
11
|
+
TransactionOperationAction["multiTransfer"] = "multiTransfer";
|
|
12
|
+
TransactionOperationAction["localMint"] = "localMint";
|
|
13
|
+
TransactionOperationAction["localBurn"] = "localBurn";
|
|
14
|
+
TransactionOperationAction["wipe"] = "wipe";
|
|
15
|
+
TransactionOperationAction["freeze"] = "freeze";
|
|
16
|
+
TransactionOperationAction["writeLog"] = "writeLog";
|
|
17
|
+
TransactionOperationAction["signalError"] = "signalError";
|
|
18
|
+
TransactionOperationAction["buy"] = "buy";
|
|
19
|
+
TransactionOperationAction["buySft"] = "buySft";
|
|
20
|
+
TransactionOperationAction["bulkBuy"] = "bulkBuy";
|
|
21
|
+
TransactionOperationAction["acceptOffer"] = "acceptOffer";
|
|
22
|
+
TransactionOperationAction["endAuction"] = "endAuction";
|
|
23
|
+
TransactionOperationAction["listing"] = "listing";
|
|
24
|
+
TransactionOperationAction["withdraw"] = "withdraw";
|
|
25
|
+
TransactionOperationAction["changePrice"] = "changePrice";
|
|
26
|
+
TransactionOperationAction["bid"] = "bid";
|
|
27
|
+
TransactionOperationAction["sendOffer"] = "sendOffer";
|
|
28
|
+
TransactionOperationAction["withdrawOffer"] = "withdrawOffer";
|
|
29
|
+
})(TransactionOperationAction || (exports.TransactionOperationAction = TransactionOperationAction = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -142,9 +142,16 @@ export * from './entities/staking-data/user-staking-summary.dto';
|
|
|
142
142
|
export * from './entities/token-data/metrics';
|
|
143
143
|
export * from './entities/token-data/token-data.doc';
|
|
144
144
|
export * from './entities/token-data/xoxno-liquid-stats.dto';
|
|
145
|
+
export * from './entities/transactions/smart-contract-result';
|
|
145
146
|
export * from './entities/transactions/transaction-create';
|
|
147
|
+
export * from './entities/transactions/transaction-detailed';
|
|
148
|
+
export * from './entities/transactions/transaction-log-event';
|
|
149
|
+
export * from './entities/transactions/transaction-log';
|
|
150
|
+
export * from './entities/transactions/transaction-operation';
|
|
146
151
|
export * from './entities/transactions/transaction-process-status';
|
|
152
|
+
export * from './entities/transactions/transaction-receipt';
|
|
147
153
|
export * from './entities/transactions/transaction-send-result';
|
|
154
|
+
export * from './entities/transactions/transaction';
|
|
148
155
|
export * from './entities/web2user-data/native-wallet.dto';
|
|
149
156
|
export * from './entities/web2user-data/success.dto';
|
|
150
157
|
export * from './entities/web2user-data/switch-wallet-dto';
|
package/dist/index.js
CHANGED
|
@@ -158,9 +158,16 @@ __exportStar(require("./entities/staking-data/user-staking-summary.dto"), export
|
|
|
158
158
|
__exportStar(require("./entities/token-data/metrics"), exports);
|
|
159
159
|
__exportStar(require("./entities/token-data/token-data.doc"), exports);
|
|
160
160
|
__exportStar(require("./entities/token-data/xoxno-liquid-stats.dto"), exports);
|
|
161
|
+
__exportStar(require("./entities/transactions/smart-contract-result"), exports);
|
|
161
162
|
__exportStar(require("./entities/transactions/transaction-create"), exports);
|
|
163
|
+
__exportStar(require("./entities/transactions/transaction-detailed"), exports);
|
|
164
|
+
__exportStar(require("./entities/transactions/transaction-log-event"), exports);
|
|
165
|
+
__exportStar(require("./entities/transactions/transaction-log"), exports);
|
|
166
|
+
__exportStar(require("./entities/transactions/transaction-operation"), exports);
|
|
162
167
|
__exportStar(require("./entities/transactions/transaction-process-status"), exports);
|
|
168
|
+
__exportStar(require("./entities/transactions/transaction-receipt"), exports);
|
|
163
169
|
__exportStar(require("./entities/transactions/transaction-send-result"), exports);
|
|
170
|
+
__exportStar(require("./entities/transactions/transaction"), exports);
|
|
164
171
|
__exportStar(require("./entities/web2user-data/native-wallet.dto"), exports);
|
|
165
172
|
__exportStar(require("./entities/web2user-data/success.dto"), exports);
|
|
166
173
|
__exportStar(require("./entities/web2user-data/switch-wallet-dto"), exports);
|
|
@@ -223,7 +230,10 @@ __exportStar(require("./enums/ticketing-data-type.enum"), exports);
|
|
|
223
230
|
__exportStar(require("./enums/ticketing-visibility.enum"), exports);
|
|
224
231
|
__exportStar(require("./enums/token-category.enum"), exports);
|
|
225
232
|
__exportStar(require("./enums/token-data.enum"), exports);
|
|
233
|
+
__exportStar(require("./enums/transaction-operation-type.enum"), exports);
|
|
226
234
|
__exportStar(require("./enums/transaction-status.enum"), exports);
|
|
235
|
+
__exportStar(require("./enums/transaction-type.enum"), exports);
|
|
236
|
+
__exportStar(require("./enums/transaction.operation.action"), exports);
|
|
227
237
|
__exportStar(require("./enums/twispay.enum"), exports);
|
|
228
238
|
__exportStar(require("./enums/user-data-type.enum"), exports);
|
|
229
239
|
__exportStar(require("./enums/user-favorite-type.enum"), exports);
|