@dynamic-labs/sdk-api 0.0.883 → 0.0.884
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/package.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
5
6
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
6
7
|
var WalletTransactionAssetTransfer = require('./WalletTransactionAssetTransfer.cjs');
|
|
7
8
|
var WalletTransactionType = require('./WalletTransactionType.cjs');
|
|
@@ -18,7 +19,7 @@ function WalletTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
19
|
'transactionHash': json['transactionHash'],
|
|
19
20
|
'blockNumber': json['blockNumber'],
|
|
20
21
|
'transactionTimestamp': (new Date(json['transactionTimestamp'])),
|
|
21
|
-
'blockHash': json['blockHash'],
|
|
22
|
+
'blockHash': !runtime.exists(json, 'blockHash') ? undefined : json['blockHash'],
|
|
22
23
|
'blockExplorerUrls': json['blockExplorerUrls'],
|
|
23
24
|
'fromAddress': json['fromAddress'],
|
|
24
25
|
'toAddress': json['toAddress'],
|
|
@@ -26,6 +27,10 @@ function WalletTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
27
|
'assetTransfers': (json['assetTransfers'].map(WalletTransactionAssetTransfer.WalletTransactionAssetTransferFromJSON)),
|
|
27
28
|
'chainName': ChainEnum.ChainEnumFromJSON(json['chainName']),
|
|
28
29
|
'networkId': json['networkId'],
|
|
30
|
+
'description': !runtime.exists(json, 'description') ? undefined : json['description'],
|
|
31
|
+
'source': !runtime.exists(json, 'source') ? undefined : json['source'],
|
|
32
|
+
'spam': !runtime.exists(json, 'spam') ? undefined : json['spam'],
|
|
33
|
+
'transactionType': !runtime.exists(json, 'transactionType') ? undefined : json['transactionType'],
|
|
29
34
|
};
|
|
30
35
|
}
|
|
31
36
|
function WalletTransactionToJSON(value) {
|
|
@@ -47,6 +52,10 @@ function WalletTransactionToJSON(value) {
|
|
|
47
52
|
'assetTransfers': (value.assetTransfers.map(WalletTransactionAssetTransfer.WalletTransactionAssetTransferToJSON)),
|
|
48
53
|
'chainName': ChainEnum.ChainEnumToJSON(value.chainName),
|
|
49
54
|
'networkId': value.networkId,
|
|
55
|
+
'description': value.description,
|
|
56
|
+
'source': value.source,
|
|
57
|
+
'spam': value.spam,
|
|
58
|
+
'transactionType': value.transactionType,
|
|
50
59
|
};
|
|
51
60
|
}
|
|
52
61
|
|
|
@@ -37,11 +37,11 @@ export interface WalletTransaction {
|
|
|
37
37
|
*/
|
|
38
38
|
transactionTimestamp: Date;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Block hash of the transaction. May be empty for some chains.
|
|
41
41
|
* @type {string}
|
|
42
42
|
* @memberof WalletTransaction
|
|
43
43
|
*/
|
|
44
|
-
blockHash
|
|
44
|
+
blockHash?: string;
|
|
45
45
|
/**
|
|
46
46
|
* URLs to the block explorer for the transaction
|
|
47
47
|
* @type {Array<string>}
|
|
@@ -84,6 +84,30 @@ export interface WalletTransaction {
|
|
|
84
84
|
* @memberof WalletTransaction
|
|
85
85
|
*/
|
|
86
86
|
networkId: number;
|
|
87
|
+
/**
|
|
88
|
+
* Human-readable description of the transaction
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof WalletTransaction
|
|
91
|
+
*/
|
|
92
|
+
description?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Protocol or program that originated the transaction
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof WalletTransaction
|
|
97
|
+
*/
|
|
98
|
+
source?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Whether the transaction is likely spam or dust
|
|
101
|
+
* @type {boolean}
|
|
102
|
+
* @memberof WalletTransaction
|
|
103
|
+
*/
|
|
104
|
+
spam?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Detailed transaction type from the data provider (e.g., TRANSFER, SWAP, BURN, STAKE)
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof WalletTransaction
|
|
109
|
+
*/
|
|
110
|
+
transactionType?: string;
|
|
87
111
|
}
|
|
88
112
|
export declare function WalletTransactionFromJSON(json: any): WalletTransaction;
|
|
89
113
|
export declare function WalletTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletTransaction;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
1
2
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
2
3
|
import { WalletTransactionAssetTransferFromJSON, WalletTransactionAssetTransferToJSON } from './WalletTransactionAssetTransfer.js';
|
|
3
4
|
import { WalletTransactionTypeFromJSON, WalletTransactionTypeToJSON } from './WalletTransactionType.js';
|
|
@@ -14,7 +15,7 @@ function WalletTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
15
|
'transactionHash': json['transactionHash'],
|
|
15
16
|
'blockNumber': json['blockNumber'],
|
|
16
17
|
'transactionTimestamp': (new Date(json['transactionTimestamp'])),
|
|
17
|
-
'blockHash': json['blockHash'],
|
|
18
|
+
'blockHash': !exists(json, 'blockHash') ? undefined : json['blockHash'],
|
|
18
19
|
'blockExplorerUrls': json['blockExplorerUrls'],
|
|
19
20
|
'fromAddress': json['fromAddress'],
|
|
20
21
|
'toAddress': json['toAddress'],
|
|
@@ -22,6 +23,10 @@ function WalletTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
23
|
'assetTransfers': (json['assetTransfers'].map(WalletTransactionAssetTransferFromJSON)),
|
|
23
24
|
'chainName': ChainEnumFromJSON(json['chainName']),
|
|
24
25
|
'networkId': json['networkId'],
|
|
26
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
27
|
+
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
28
|
+
'spam': !exists(json, 'spam') ? undefined : json['spam'],
|
|
29
|
+
'transactionType': !exists(json, 'transactionType') ? undefined : json['transactionType'],
|
|
25
30
|
};
|
|
26
31
|
}
|
|
27
32
|
function WalletTransactionToJSON(value) {
|
|
@@ -43,6 +48,10 @@ function WalletTransactionToJSON(value) {
|
|
|
43
48
|
'assetTransfers': (value.assetTransfers.map(WalletTransactionAssetTransferToJSON)),
|
|
44
49
|
'chainName': ChainEnumToJSON(value.chainName),
|
|
45
50
|
'networkId': value.networkId,
|
|
51
|
+
'description': value.description,
|
|
52
|
+
'source': value.source,
|
|
53
|
+
'spam': value.spam,
|
|
54
|
+
'transactionType': value.transactionType,
|
|
46
55
|
};
|
|
47
56
|
}
|
|
48
57
|
|