@dynamic-labs/sdk-api 0.78.0 → 0.79.0
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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var FlowTokenInfo = require('./FlowTokenInfo.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
8
9
|
function FlowSettlementDataFromJSON(json) {
|
|
@@ -17,6 +18,9 @@ function FlowSettlementDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
18
|
'toToken': json['toToken'],
|
|
18
19
|
'toAddress': json['toAddress'],
|
|
19
20
|
'completedAt': !runtime.exists(json, 'completedAt') ? undefined : (new Date(json['completedAt'])),
|
|
21
|
+
'amount': !runtime.exists(json, 'amount') ? undefined : json['amount'],
|
|
22
|
+
'amountUsd': !runtime.exists(json, 'amountUsd') ? undefined : json['amountUsd'],
|
|
23
|
+
'toTokenInfo': !runtime.exists(json, 'toTokenInfo') ? undefined : FlowTokenInfo.FlowTokenInfoFromJSON(json['toTokenInfo']),
|
|
20
24
|
};
|
|
21
25
|
}
|
|
22
26
|
function FlowSettlementDataToJSON(value) {
|
|
@@ -31,6 +35,9 @@ function FlowSettlementDataToJSON(value) {
|
|
|
31
35
|
'toToken': value.toToken,
|
|
32
36
|
'toAddress': value.toAddress,
|
|
33
37
|
'completedAt': value.completedAt === undefined ? undefined : (value.completedAt.toISOString()),
|
|
38
|
+
'amount': value.amount,
|
|
39
|
+
'amountUsd': value.amountUsd,
|
|
40
|
+
'toTokenInfo': FlowTokenInfo.FlowTokenInfoToJSON(value.toTokenInfo),
|
|
34
41
|
};
|
|
35
42
|
}
|
|
36
43
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { FlowTokenInfo } from './FlowTokenInfo';
|
|
12
13
|
/**
|
|
13
14
|
* Resolved settlement destination and completion time for a flow.
|
|
14
15
|
* @export
|
|
@@ -39,6 +40,24 @@ export interface FlowSettlementData {
|
|
|
39
40
|
* @memberof FlowSettlementData
|
|
40
41
|
*/
|
|
41
42
|
completedAt?: Date;
|
|
43
|
+
/**
|
|
44
|
+
* Amount actually delivered to the destination, in the smallest unit of toToken. Can differ from the quoted amount when a deposit-address flow settles short. Absent when the provider did not report it.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof FlowSettlementData
|
|
47
|
+
*/
|
|
48
|
+
amount?: string;
|
|
49
|
+
/**
|
|
50
|
+
* USD equivalent of the delivered amount
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof FlowSettlementData
|
|
53
|
+
*/
|
|
54
|
+
amountUsd?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {FlowTokenInfo}
|
|
58
|
+
* @memberof FlowSettlementData
|
|
59
|
+
*/
|
|
60
|
+
toTokenInfo?: FlowTokenInfo;
|
|
42
61
|
}
|
|
43
62
|
export declare function FlowSettlementDataFromJSON(json: any): FlowSettlementData;
|
|
44
63
|
export declare function FlowSettlementDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowSettlementData;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { FlowTokenInfoFromJSON, FlowTokenInfoToJSON } from './FlowTokenInfo.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
4
5
|
function FlowSettlementDataFromJSON(json) {
|
|
@@ -13,6 +14,9 @@ function FlowSettlementDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
14
|
'toToken': json['toToken'],
|
|
14
15
|
'toAddress': json['toAddress'],
|
|
15
16
|
'completedAt': !exists(json, 'completedAt') ? undefined : (new Date(json['completedAt'])),
|
|
17
|
+
'amount': !exists(json, 'amount') ? undefined : json['amount'],
|
|
18
|
+
'amountUsd': !exists(json, 'amountUsd') ? undefined : json['amountUsd'],
|
|
19
|
+
'toTokenInfo': !exists(json, 'toTokenInfo') ? undefined : FlowTokenInfoFromJSON(json['toTokenInfo']),
|
|
16
20
|
};
|
|
17
21
|
}
|
|
18
22
|
function FlowSettlementDataToJSON(value) {
|
|
@@ -27,6 +31,9 @@ function FlowSettlementDataToJSON(value) {
|
|
|
27
31
|
'toToken': value.toToken,
|
|
28
32
|
'toAddress': value.toAddress,
|
|
29
33
|
'completedAt': value.completedAt === undefined ? undefined : (value.completedAt.toISOString()),
|
|
34
|
+
'amount': value.amount,
|
|
35
|
+
'amountUsd': value.amountUsd,
|
|
36
|
+
'toTokenInfo': FlowTokenInfoToJSON(value.toTokenInfo),
|
|
30
37
|
};
|
|
31
38
|
}
|
|
32
39
|
|