@dynamic-labs/sdk-api 0.0.1063 → 0.0.1065
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 +1 -1
- package/src/models/Flow.cjs +2 -0
- package/src/models/Flow.d.ts +6 -0
- package/src/models/Flow.js +2 -0
- package/src/models/FlowAttachSourceRequest.cjs +2 -0
- package/src/models/FlowAttachSourceRequest.d.ts +7 -1
- package/src/models/FlowAttachSourceRequest.js +2 -0
- package/src/models/FlowCreateRequest.cjs +2 -0
- package/src/models/FlowCreateRequest.d.ts +6 -0
- package/src/models/FlowCreateRequest.js +2 -0
package/package.json
CHANGED
package/src/models/Flow.cjs
CHANGED
|
@@ -55,6 +55,7 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
56
56
|
'depositAddress': !runtime.exists(json, 'depositAddress') ? undefined : json['depositAddress'],
|
|
57
57
|
'exchangeSource': !runtime.exists(json, 'exchangeSource') ? undefined : FlowExchangeSource.FlowExchangeSourceFromJSON(json['exchangeSource']),
|
|
58
|
+
'pegStablecoins': !runtime.exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
function FlowToJSON(value) {
|
|
@@ -97,6 +98,7 @@ function FlowToJSON(value) {
|
|
|
97
98
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
98
99
|
'depositAddress': value.depositAddress,
|
|
99
100
|
'exchangeSource': FlowExchangeSource.FlowExchangeSourceToJSON(value.exchangeSource),
|
|
101
|
+
'pegStablecoins': value.pegStablecoins,
|
|
100
102
|
};
|
|
101
103
|
}
|
|
102
104
|
|
package/src/models/Flow.d.ts
CHANGED
|
@@ -217,6 +217,12 @@ export interface Flow {
|
|
|
217
217
|
* @memberof Flow
|
|
218
218
|
*/
|
|
219
219
|
exchangeSource?: FlowExchangeSource;
|
|
220
|
+
/**
|
|
221
|
+
* When true, known stablecoins (USDC, USDT, DAI, etc.) in the settlement config are pegged 1:1 to the flow currency, skipping market-price lookup. Non-stablecoin settlements still use live pricing.
|
|
222
|
+
* @type {boolean}
|
|
223
|
+
* @memberof Flow
|
|
224
|
+
*/
|
|
225
|
+
pegStablecoins?: boolean;
|
|
220
226
|
}
|
|
221
227
|
export declare function FlowFromJSON(json: any): Flow;
|
|
222
228
|
export declare function FlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Flow;
|
package/src/models/Flow.js
CHANGED
|
@@ -51,6 +51,7 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
52
52
|
'depositAddress': !exists(json, 'depositAddress') ? undefined : json['depositAddress'],
|
|
53
53
|
'exchangeSource': !exists(json, 'exchangeSource') ? undefined : FlowExchangeSourceFromJSON(json['exchangeSource']),
|
|
54
|
+
'pegStablecoins': !exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
function FlowToJSON(value) {
|
|
@@ -93,6 +94,7 @@ function FlowToJSON(value) {
|
|
|
93
94
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
94
95
|
'depositAddress': value.depositAddress,
|
|
95
96
|
'exchangeSource': FlowExchangeSourceToJSON(value.exchangeSource),
|
|
97
|
+
'pegStablecoins': value.pegStablecoins,
|
|
96
98
|
};
|
|
97
99
|
}
|
|
98
100
|
|
|
@@ -21,6 +21,7 @@ function FlowAttachSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
21
|
'fromChainId': !runtime.exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
22
22
|
'fromChainName': !runtime.exists(json, 'fromChainName') ? undefined : ChainEnum.ChainEnumFromJSON(json['fromChainName']),
|
|
23
23
|
'exchangeProvider': !runtime.exists(json, 'exchangeProvider') ? undefined : ExchangeKeyEnum.ExchangeKeyEnumFromJSON(json['exchangeProvider']),
|
|
24
|
+
'refundAddress': !runtime.exists(json, 'refundAddress') ? undefined : json['refundAddress'],
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
function FlowAttachSourceRequestToJSON(value) {
|
|
@@ -36,6 +37,7 @@ function FlowAttachSourceRequestToJSON(value) {
|
|
|
36
37
|
'fromChainId': value.fromChainId,
|
|
37
38
|
'fromChainName': ChainEnum.ChainEnumToJSON(value.fromChainName),
|
|
38
39
|
'exchangeProvider': ExchangeKeyEnum.ExchangeKeyEnumToJSON(value.exchangeProvider),
|
|
40
|
+
'refundAddress': value.refundAddress,
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
|
|
@@ -13,7 +13,7 @@ import { ChainEnum } from './ChainEnum';
|
|
|
13
13
|
import { ExchangeKeyEnum } from './ExchangeKeyEnum';
|
|
14
14
|
import { FlowSourceTypeEnum } from './FlowSourceTypeEnum';
|
|
15
15
|
/**
|
|
16
|
-
* fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet'. When sourceType is 'exchange', they are optional; pass exchangeProvider to generate the buy URL and create the exchange source record server-side. When sourceType is 'deposit_address', fromChainId and fromChainName are required
|
|
16
|
+
* fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet'. When sourceType is 'exchange', they are optional; pass exchangeProvider to generate the buy URL and create the exchange source record server-side. When sourceType is 'deposit_address', fromChainId and fromChainName are required; fromAddress is not accepted (use refundAddress instead to specify where funds should be returned if the deposit fails).
|
|
17
17
|
* @export
|
|
18
18
|
* @interface FlowAttachSourceRequest
|
|
19
19
|
*/
|
|
@@ -48,6 +48,12 @@ export interface FlowAttachSourceRequest {
|
|
|
48
48
|
* @memberof FlowAttachSourceRequest
|
|
49
49
|
*/
|
|
50
50
|
exchangeProvider?: ExchangeKeyEnum;
|
|
51
|
+
/**
|
|
52
|
+
* Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON)
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof FlowAttachSourceRequest
|
|
55
|
+
*/
|
|
56
|
+
refundAddress?: string;
|
|
51
57
|
}
|
|
52
58
|
export declare function FlowAttachSourceRequestFromJSON(json: any): FlowAttachSourceRequest;
|
|
53
59
|
export declare function FlowAttachSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowAttachSourceRequest;
|
|
@@ -17,6 +17,7 @@ function FlowAttachSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
17
|
'fromChainId': !exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
18
18
|
'fromChainName': !exists(json, 'fromChainName') ? undefined : ChainEnumFromJSON(json['fromChainName']),
|
|
19
19
|
'exchangeProvider': !exists(json, 'exchangeProvider') ? undefined : ExchangeKeyEnumFromJSON(json['exchangeProvider']),
|
|
20
|
+
'refundAddress': !exists(json, 'refundAddress') ? undefined : json['refundAddress'],
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
function FlowAttachSourceRequestToJSON(value) {
|
|
@@ -32,6 +33,7 @@ function FlowAttachSourceRequestToJSON(value) {
|
|
|
32
33
|
'fromChainId': value.fromChainId,
|
|
33
34
|
'fromChainName': ChainEnumToJSON(value.fromChainName),
|
|
34
35
|
'exchangeProvider': ExchangeKeyEnumToJSON(value.exchangeProvider),
|
|
36
|
+
'refundAddress': value.refundAddress,
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -23,6 +23,7 @@ function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
23
|
'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
|
|
24
24
|
'feeConfig': !runtime.exists(json, 'feeConfig') ? undefined : FlowFeeConfig.FlowFeeConfigFromJSON(json['feeConfig']),
|
|
25
25
|
'expiresIn': !runtime.exists(json, 'expiresIn') ? undefined : json['expiresIn'],
|
|
26
|
+
'pegStablecoins': !runtime.exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
function FlowCreateRequestToJSON(value) {
|
|
@@ -40,6 +41,7 @@ function FlowCreateRequestToJSON(value) {
|
|
|
40
41
|
'memo': value.memo,
|
|
41
42
|
'feeConfig': FlowFeeConfig.FlowFeeConfigToJSON(value.feeConfig),
|
|
42
43
|
'expiresIn': value.expiresIn,
|
|
44
|
+
'pegStablecoins': value.pegStablecoins,
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
47
|
|
|
@@ -60,6 +60,12 @@ export interface FlowCreateRequest {
|
|
|
60
60
|
* @memberof FlowCreateRequest
|
|
61
61
|
*/
|
|
62
62
|
expiresIn?: number;
|
|
63
|
+
/**
|
|
64
|
+
* When true, known stablecoins (USDC, USDT, DAI, etc.) in the settlement config are pegged 1:1 to the flow currency at quote time, skipping market-price lookup. Defaults to false.
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof FlowCreateRequest
|
|
67
|
+
*/
|
|
68
|
+
pegStablecoins?: boolean;
|
|
63
69
|
}
|
|
64
70
|
export declare function FlowCreateRequestFromJSON(json: any): FlowCreateRequest;
|
|
65
71
|
export declare function FlowCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowCreateRequest;
|
|
@@ -19,6 +19,7 @@ function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
19
|
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
20
20
|
'feeConfig': !exists(json, 'feeConfig') ? undefined : FlowFeeConfigFromJSON(json['feeConfig']),
|
|
21
21
|
'expiresIn': !exists(json, 'expiresIn') ? undefined : json['expiresIn'],
|
|
22
|
+
'pegStablecoins': !exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
function FlowCreateRequestToJSON(value) {
|
|
@@ -36,6 +37,7 @@ function FlowCreateRequestToJSON(value) {
|
|
|
36
37
|
'memo': value.memo,
|
|
37
38
|
'feeConfig': FlowFeeConfigToJSON(value.feeConfig),
|
|
38
39
|
'expiresIn': value.expiresIn,
|
|
40
|
+
'pegStablecoins': value.pegStablecoins,
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
|