@dynamic-labs/sdk-api 0.184.0 → 0.185.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
|
@@ -31,15 +31,23 @@ function FlowListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'completedAt': !runtime.exists(json, 'completedAt') ? undefined : (json['completedAt'] === null ? null : new Date(json['completedAt'])),
|
|
32
32
|
'createdAt': (new Date(json['createdAt'])),
|
|
33
33
|
'currency': json['currency'],
|
|
34
|
+
'depositAddress': !runtime.exists(json, 'depositAddress') ? undefined : json['depositAddress'],
|
|
35
|
+
'exchange': !runtime.exists(json, 'exchange') ? undefined : json['exchange'],
|
|
34
36
|
'executionState': FlowExecutionStateEnum.FlowExecutionStateEnumFromJSON(json['executionState']),
|
|
35
37
|
'failure': !runtime.exists(json, 'failure') ? undefined : FlowListItemFailure.FlowListItemFailureFromJSON(json['failure']),
|
|
38
|
+
'fromAddress': !runtime.exists(json, 'fromAddress') ? undefined : json['fromAddress'],
|
|
36
39
|
'fromChain': !runtime.exists(json, 'fromChain') ? undefined : json['fromChain'],
|
|
37
40
|
'fromToken': !runtime.exists(json, 'fromToken') ? undefined : json['fromToken'],
|
|
38
41
|
'id': json['id'],
|
|
42
|
+
'inputAmountUsd': !runtime.exists(json, 'inputAmountUsd') ? undefined : json['inputAmountUsd'],
|
|
43
|
+
'feeUsd': !runtime.exists(json, 'feeUsd') ? undefined : json['feeUsd'],
|
|
39
44
|
'mode': FlowModeEnum.FlowModeEnumFromJSON(json['mode']),
|
|
45
|
+
'refundAddress': !runtime.exists(json, 'refundAddress') ? undefined : json['refundAddress'],
|
|
40
46
|
'settlementState': FlowSettlementStateEnum.FlowSettlementStateEnumFromJSON(json['settlementState']),
|
|
41
47
|
'settlementTxHash': !runtime.exists(json, 'settlementTxHash') ? undefined : json['settlementTxHash'],
|
|
48
|
+
'settledAmountUsd': !runtime.exists(json, 'settledAmountUsd') ? undefined : json['settledAmountUsd'],
|
|
42
49
|
'sourceType': !runtime.exists(json, 'sourceType') ? undefined : json['sourceType'],
|
|
50
|
+
'toAddress': !runtime.exists(json, 'toAddress') ? undefined : json['toAddress'],
|
|
43
51
|
'toChain': !runtime.exists(json, 'toChain') ? undefined : json['toChain'],
|
|
44
52
|
'toToken': !runtime.exists(json, 'toToken') ? undefined : json['toToken'],
|
|
45
53
|
'txHash': !runtime.exists(json, 'txHash') ? undefined : json['txHash'],
|
|
@@ -57,15 +65,23 @@ function FlowListItemToJSON(value) {
|
|
|
57
65
|
'completedAt': value.completedAt === undefined ? undefined : (value.completedAt === null ? null : value.completedAt.toISOString()),
|
|
58
66
|
'createdAt': (value.createdAt.toISOString()),
|
|
59
67
|
'currency': value.currency,
|
|
68
|
+
'depositAddress': value.depositAddress,
|
|
69
|
+
'exchange': value.exchange,
|
|
60
70
|
'executionState': FlowExecutionStateEnum.FlowExecutionStateEnumToJSON(value.executionState),
|
|
61
71
|
'failure': FlowListItemFailure.FlowListItemFailureToJSON(value.failure),
|
|
72
|
+
'fromAddress': value.fromAddress,
|
|
62
73
|
'fromChain': value.fromChain,
|
|
63
74
|
'fromToken': value.fromToken,
|
|
64
75
|
'id': value.id,
|
|
76
|
+
'inputAmountUsd': value.inputAmountUsd,
|
|
77
|
+
'feeUsd': value.feeUsd,
|
|
65
78
|
'mode': FlowModeEnum.FlowModeEnumToJSON(value.mode),
|
|
79
|
+
'refundAddress': value.refundAddress,
|
|
66
80
|
'settlementState': FlowSettlementStateEnum.FlowSettlementStateEnumToJSON(value.settlementState),
|
|
67
81
|
'settlementTxHash': value.settlementTxHash,
|
|
82
|
+
'settledAmountUsd': value.settledAmountUsd,
|
|
68
83
|
'sourceType': value.sourceType,
|
|
84
|
+
'toAddress': value.toAddress,
|
|
69
85
|
'toChain': value.toChain,
|
|
70
86
|
'toToken': value.toToken,
|
|
71
87
|
'txHash': value.txHash,
|
|
@@ -43,6 +43,18 @@ export interface FlowListItem {
|
|
|
43
43
|
* @memberof FlowListItem
|
|
44
44
|
*/
|
|
45
45
|
currency: string;
|
|
46
|
+
/**
|
|
47
|
+
* Latest deposit address issued for a deposit_address source
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof FlowListItem
|
|
50
|
+
*/
|
|
51
|
+
depositAddress?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Exchange provider for an exchange source, when set
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof FlowListItem
|
|
56
|
+
*/
|
|
57
|
+
exchange?: string | null;
|
|
46
58
|
/**
|
|
47
59
|
*
|
|
48
60
|
* @type {FlowExecutionStateEnum}
|
|
@@ -55,6 +67,12 @@ export interface FlowListItem {
|
|
|
55
67
|
* @memberof FlowListItem
|
|
56
68
|
*/
|
|
57
69
|
failure?: FlowListItemFailure | null;
|
|
70
|
+
/**
|
|
71
|
+
* Address the source funds were sent from, when known
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof FlowListItem
|
|
74
|
+
*/
|
|
75
|
+
fromAddress?: string | null;
|
|
58
76
|
/**
|
|
59
77
|
*
|
|
60
78
|
* @type {string}
|
|
@@ -73,12 +91,30 @@ export interface FlowListItem {
|
|
|
73
91
|
* @memberof FlowListItem
|
|
74
92
|
*/
|
|
75
93
|
id: string;
|
|
94
|
+
/**
|
|
95
|
+
* Actual amount the payer was charged in USD, when known
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof FlowListItem
|
|
98
|
+
*/
|
|
99
|
+
inputAmountUsd?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Total fee charged on the flow in USD, when known
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof FlowListItem
|
|
104
|
+
*/
|
|
105
|
+
feeUsd?: string | null;
|
|
76
106
|
/**
|
|
77
107
|
*
|
|
78
108
|
* @type {FlowModeEnum}
|
|
79
109
|
* @memberof FlowListItem
|
|
80
110
|
*/
|
|
81
111
|
mode: FlowModeEnum;
|
|
112
|
+
/**
|
|
113
|
+
* Refund destination for a deposit_address source, when set
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof FlowListItem
|
|
116
|
+
*/
|
|
117
|
+
refundAddress?: string | null;
|
|
82
118
|
/**
|
|
83
119
|
*
|
|
84
120
|
* @type {FlowSettlementStateEnum}
|
|
@@ -91,12 +127,24 @@ export interface FlowListItem {
|
|
|
91
127
|
* @memberof FlowListItem
|
|
92
128
|
*/
|
|
93
129
|
settlementTxHash?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* Actual delivered amount in USD recorded at settlement, when known
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof FlowListItem
|
|
134
|
+
*/
|
|
135
|
+
settledAmountUsd?: string | null;
|
|
94
136
|
/**
|
|
95
137
|
*
|
|
96
138
|
* @type {string}
|
|
97
139
|
* @memberof FlowListItem
|
|
98
140
|
*/
|
|
99
141
|
sourceType?: FlowListItemSourceTypeEnum;
|
|
142
|
+
/**
|
|
143
|
+
* Destination address on the target chain, when known
|
|
144
|
+
* @type {string}
|
|
145
|
+
* @memberof FlowListItem
|
|
146
|
+
*/
|
|
147
|
+
toAddress?: string | null;
|
|
100
148
|
/**
|
|
101
149
|
*
|
|
102
150
|
* @type {string}
|
|
@@ -27,15 +27,23 @@ function FlowListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
'completedAt': !exists(json, 'completedAt') ? undefined : (json['completedAt'] === null ? null : new Date(json['completedAt'])),
|
|
28
28
|
'createdAt': (new Date(json['createdAt'])),
|
|
29
29
|
'currency': json['currency'],
|
|
30
|
+
'depositAddress': !exists(json, 'depositAddress') ? undefined : json['depositAddress'],
|
|
31
|
+
'exchange': !exists(json, 'exchange') ? undefined : json['exchange'],
|
|
30
32
|
'executionState': FlowExecutionStateEnumFromJSON(json['executionState']),
|
|
31
33
|
'failure': !exists(json, 'failure') ? undefined : FlowListItemFailureFromJSON(json['failure']),
|
|
34
|
+
'fromAddress': !exists(json, 'fromAddress') ? undefined : json['fromAddress'],
|
|
32
35
|
'fromChain': !exists(json, 'fromChain') ? undefined : json['fromChain'],
|
|
33
36
|
'fromToken': !exists(json, 'fromToken') ? undefined : json['fromToken'],
|
|
34
37
|
'id': json['id'],
|
|
38
|
+
'inputAmountUsd': !exists(json, 'inputAmountUsd') ? undefined : json['inputAmountUsd'],
|
|
39
|
+
'feeUsd': !exists(json, 'feeUsd') ? undefined : json['feeUsd'],
|
|
35
40
|
'mode': FlowModeEnumFromJSON(json['mode']),
|
|
41
|
+
'refundAddress': !exists(json, 'refundAddress') ? undefined : json['refundAddress'],
|
|
36
42
|
'settlementState': FlowSettlementStateEnumFromJSON(json['settlementState']),
|
|
37
43
|
'settlementTxHash': !exists(json, 'settlementTxHash') ? undefined : json['settlementTxHash'],
|
|
44
|
+
'settledAmountUsd': !exists(json, 'settledAmountUsd') ? undefined : json['settledAmountUsd'],
|
|
38
45
|
'sourceType': !exists(json, 'sourceType') ? undefined : json['sourceType'],
|
|
46
|
+
'toAddress': !exists(json, 'toAddress') ? undefined : json['toAddress'],
|
|
39
47
|
'toChain': !exists(json, 'toChain') ? undefined : json['toChain'],
|
|
40
48
|
'toToken': !exists(json, 'toToken') ? undefined : json['toToken'],
|
|
41
49
|
'txHash': !exists(json, 'txHash') ? undefined : json['txHash'],
|
|
@@ -53,15 +61,23 @@ function FlowListItemToJSON(value) {
|
|
|
53
61
|
'completedAt': value.completedAt === undefined ? undefined : (value.completedAt === null ? null : value.completedAt.toISOString()),
|
|
54
62
|
'createdAt': (value.createdAt.toISOString()),
|
|
55
63
|
'currency': value.currency,
|
|
64
|
+
'depositAddress': value.depositAddress,
|
|
65
|
+
'exchange': value.exchange,
|
|
56
66
|
'executionState': FlowExecutionStateEnumToJSON(value.executionState),
|
|
57
67
|
'failure': FlowListItemFailureToJSON(value.failure),
|
|
68
|
+
'fromAddress': value.fromAddress,
|
|
58
69
|
'fromChain': value.fromChain,
|
|
59
70
|
'fromToken': value.fromToken,
|
|
60
71
|
'id': value.id,
|
|
72
|
+
'inputAmountUsd': value.inputAmountUsd,
|
|
73
|
+
'feeUsd': value.feeUsd,
|
|
61
74
|
'mode': FlowModeEnumToJSON(value.mode),
|
|
75
|
+
'refundAddress': value.refundAddress,
|
|
62
76
|
'settlementState': FlowSettlementStateEnumToJSON(value.settlementState),
|
|
63
77
|
'settlementTxHash': value.settlementTxHash,
|
|
78
|
+
'settledAmountUsd': value.settledAmountUsd,
|
|
64
79
|
'sourceType': value.sourceType,
|
|
80
|
+
'toAddress': value.toAddress,
|
|
65
81
|
'toChain': value.toChain,
|
|
66
82
|
'toToken': value.toToken,
|
|
67
83
|
'txHash': value.txHash,
|