@dynamic-labs/sdk-api 0.0.1064 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.1064",
3
+ "version": "0.0.1065",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -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
 
@@ -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;
@@ -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
 
@@ -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