@dynamic-labs/sdk-api 0.0.563 → 0.0.564
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/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/PriceData.cjs +33 -0
- package/src/models/PriceData.d.ts +27 -0
- package/src/models/PriceData.js +27 -0
- package/src/models/SimulateTransactionResponse.cjs +3 -0
- package/src/models/SimulateTransactionResponse.d.ts +7 -0
- package/src/models/SimulateTransactionResponse.js +3 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -254,6 +254,7 @@ var PostAllowlistEntriesRequest = require('./models/PostAllowlistEntriesRequest.
|
|
|
254
254
|
var PostAllowlistsRequest = require('./models/PostAllowlistsRequest.cjs');
|
|
255
255
|
var PostTokenFields = require('./models/PostTokenFields.cjs');
|
|
256
256
|
var PrefetchRequest = require('./models/PrefetchRequest.cjs');
|
|
257
|
+
var PriceData = require('./models/PriceData.cjs');
|
|
257
258
|
var Project = require('./models/Project.cjs');
|
|
258
259
|
var ProjectEnvironment = require('./models/ProjectEnvironment.cjs');
|
|
259
260
|
var ProjectProjectEnvironments = require('./models/ProjectProjectEnvironments.cjs');
|
|
@@ -1256,6 +1257,9 @@ exports.PostTokenFieldsToJSON = PostTokenFields.PostTokenFieldsToJSON;
|
|
|
1256
1257
|
exports.PrefetchRequestFromJSON = PrefetchRequest.PrefetchRequestFromJSON;
|
|
1257
1258
|
exports.PrefetchRequestFromJSONTyped = PrefetchRequest.PrefetchRequestFromJSONTyped;
|
|
1258
1259
|
exports.PrefetchRequestToJSON = PrefetchRequest.PrefetchRequestToJSON;
|
|
1260
|
+
exports.PriceDataFromJSON = PriceData.PriceDataFromJSON;
|
|
1261
|
+
exports.PriceDataFromJSONTyped = PriceData.PriceDataFromJSONTyped;
|
|
1262
|
+
exports.PriceDataToJSON = PriceData.PriceDataToJSON;
|
|
1259
1263
|
exports.ProjectFromJSON = Project.ProjectFromJSON;
|
|
1260
1264
|
exports.ProjectFromJSONTyped = Project.ProjectFromJSONTyped;
|
|
1261
1265
|
exports.ProjectToJSON = Project.ProjectToJSON;
|
package/src/index.js
CHANGED
|
@@ -250,6 +250,7 @@ export { PostAllowlistEntriesRequestFromJSON, PostAllowlistEntriesRequestFromJSO
|
|
|
250
250
|
export { PostAllowlistsRequestFromJSON, PostAllowlistsRequestFromJSONTyped, PostAllowlistsRequestToJSON } from './models/PostAllowlistsRequest.js';
|
|
251
251
|
export { PostTokenFieldsFromJSON, PostTokenFieldsFromJSONTyped, PostTokenFieldsToJSON } from './models/PostTokenFields.js';
|
|
252
252
|
export { PrefetchRequestFromJSON, PrefetchRequestFromJSONTyped, PrefetchRequestToJSON } from './models/PrefetchRequest.js';
|
|
253
|
+
export { PriceDataFromJSON, PriceDataFromJSONTyped, PriceDataToJSON } from './models/PriceData.js';
|
|
253
254
|
export { ProjectFromJSON, ProjectFromJSONTyped, ProjectToJSON } from './models/Project.js';
|
|
254
255
|
export { ProjectEnvironmentFromJSON, ProjectEnvironmentFromJSONTyped, ProjectEnvironmentToJSON } from './models/ProjectEnvironment.js';
|
|
255
256
|
export { ProjectProjectEnvironmentsFromJSON, ProjectProjectEnvironmentsFromJSONTyped, ProjectProjectEnvironmentsToJSON } from './models/ProjectProjectEnvironments.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function PriceDataFromJSON(json) {
|
|
9
|
+
return PriceDataFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function PriceDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'nativeTokenUsdPrice': !runtime.exists(json, 'nativeTokenUsdPrice') ? undefined : json['nativeTokenUsdPrice'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function PriceDataToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'nativeTokenUsdPrice': value.nativeTokenUsdPrice,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.PriceDataFromJSON = PriceDataFromJSON;
|
|
32
|
+
exports.PriceDataFromJSONTyped = PriceDataFromJSONTyped;
|
|
33
|
+
exports.PriceDataToJSON = PriceDataToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PriceData
|
|
16
|
+
*/
|
|
17
|
+
export interface PriceData {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PriceData
|
|
22
|
+
*/
|
|
23
|
+
nativeTokenUsdPrice?: number;
|
|
24
|
+
}
|
|
25
|
+
export declare function PriceDataFromJSON(json: any): PriceData;
|
|
26
|
+
export declare function PriceDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceData;
|
|
27
|
+
export declare function PriceDataToJSON(value?: PriceData | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function PriceDataFromJSON(json) {
|
|
5
|
+
return PriceDataFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function PriceDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'nativeTokenUsdPrice': !exists(json, 'nativeTokenUsdPrice') ? undefined : json['nativeTokenUsdPrice'],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function PriceDataToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'nativeTokenUsdPrice': value.nativeTokenUsdPrice,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { PriceDataFromJSON, PriceDataFromJSONTyped, PriceDataToJSON };
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var AssetDiff = require('./AssetDiff.cjs');
|
|
7
|
+
var PriceData = require('./PriceData.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
9
10
|
function SimulateTransactionResponseFromJSON(json) {
|
|
@@ -17,6 +18,7 @@ function SimulateTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
18
|
'inAssets': (json['inAssets'].map(AssetDiff.AssetDiffFromJSON)),
|
|
18
19
|
'outAssets': (json['outAssets'].map(AssetDiff.AssetDiffFromJSON)),
|
|
19
20
|
'counterparties': !runtime.exists(json, 'counterparties') ? undefined : json['counterparties'],
|
|
21
|
+
'priceData': PriceData.PriceDataFromJSON(json['priceData']),
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
function SimulateTransactionResponseToJSON(value) {
|
|
@@ -30,6 +32,7 @@ function SimulateTransactionResponseToJSON(value) {
|
|
|
30
32
|
'inAssets': (value.inAssets.map(AssetDiff.AssetDiffToJSON)),
|
|
31
33
|
'outAssets': (value.outAssets.map(AssetDiff.AssetDiffToJSON)),
|
|
32
34
|
'counterparties': value.counterparties,
|
|
35
|
+
'priceData': PriceData.PriceDataToJSON(value.priceData),
|
|
33
36
|
};
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { AssetDiff } from './AssetDiff';
|
|
13
|
+
import { PriceData } from './PriceData';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface SimulateTransactionResponse {
|
|
|
34
35
|
* @memberof SimulateTransactionResponse
|
|
35
36
|
*/
|
|
36
37
|
counterparties?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {PriceData}
|
|
41
|
+
* @memberof SimulateTransactionResponse
|
|
42
|
+
*/
|
|
43
|
+
priceData: PriceData;
|
|
37
44
|
}
|
|
38
45
|
export declare function SimulateTransactionResponseFromJSON(json: any): SimulateTransactionResponse;
|
|
39
46
|
export declare function SimulateTransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimulateTransactionResponse;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { AssetDiffFromJSON, AssetDiffToJSON } from './AssetDiff.js';
|
|
3
|
+
import { PriceDataFromJSON, PriceDataToJSON } from './PriceData.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
5
6
|
function SimulateTransactionResponseFromJSON(json) {
|
|
@@ -13,6 +14,7 @@ function SimulateTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
14
|
'inAssets': (json['inAssets'].map(AssetDiffFromJSON)),
|
|
14
15
|
'outAssets': (json['outAssets'].map(AssetDiffFromJSON)),
|
|
15
16
|
'counterparties': !exists(json, 'counterparties') ? undefined : json['counterparties'],
|
|
17
|
+
'priceData': PriceDataFromJSON(json['priceData']),
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
function SimulateTransactionResponseToJSON(value) {
|
|
@@ -26,6 +28,7 @@ function SimulateTransactionResponseToJSON(value) {
|
|
|
26
28
|
'inAssets': (value.inAssets.map(AssetDiffToJSON)),
|
|
27
29
|
'outAssets': (value.outAssets.map(AssetDiffToJSON)),
|
|
28
30
|
'counterparties': value.counterparties,
|
|
31
|
+
'priceData': PriceDataToJSON(value.priceData),
|
|
29
32
|
};
|
|
30
33
|
}
|
|
31
34
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -220,6 +220,7 @@ export * from './PostAllowlistEntriesRequest';
|
|
|
220
220
|
export * from './PostAllowlistsRequest';
|
|
221
221
|
export * from './PostTokenFields';
|
|
222
222
|
export * from './PrefetchRequest';
|
|
223
|
+
export * from './PriceData';
|
|
223
224
|
export * from './Project';
|
|
224
225
|
export * from './ProjectEnvironment';
|
|
225
226
|
export * from './ProjectProjectEnvironments';
|