@dynamic-labs/sdk-api 0.155.0 → 0.157.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.155.0",
3
+ "version": "0.157.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
package/src/index.cjs CHANGED
@@ -270,6 +270,7 @@ var CreateUserWaasWalletsRequest = require('./models/CreateUserWaasWalletsReques
270
270
  var CreateWaasAccountRequest = require('./models/CreateWaasAccountRequest.cjs');
271
271
  var CreateWalletAccountRequest = require('./models/CreateWalletAccountRequest.cjs');
272
272
  var CreateWalletRequest = require('./models/CreateWalletRequest.cjs');
273
+ var CrossChainAssetDiff = require('./models/CrossChainAssetDiff.cjs');
273
274
  var CryptoDotComPaymentCreateRequest = require('./models/CryptoDotComPaymentCreateRequest.cjs');
274
275
  var CryptoDotComPaymentResponse = require('./models/CryptoDotComPaymentResponse.cjs');
275
276
  var Currency = require('./models/Currency.cjs');
@@ -2074,6 +2075,9 @@ exports.CreateWalletAccountRequestToJSON = CreateWalletAccountRequest.CreateWall
2074
2075
  exports.CreateWalletRequestFromJSON = CreateWalletRequest.CreateWalletRequestFromJSON;
2075
2076
  exports.CreateWalletRequestFromJSONTyped = CreateWalletRequest.CreateWalletRequestFromJSONTyped;
2076
2077
  exports.CreateWalletRequestToJSON = CreateWalletRequest.CreateWalletRequestToJSON;
2078
+ exports.CrossChainAssetDiffFromJSON = CrossChainAssetDiff.CrossChainAssetDiffFromJSON;
2079
+ exports.CrossChainAssetDiffFromJSONTyped = CrossChainAssetDiff.CrossChainAssetDiffFromJSONTyped;
2080
+ exports.CrossChainAssetDiffToJSON = CrossChainAssetDiff.CrossChainAssetDiffToJSON;
2077
2081
  exports.CryptoDotComPaymentCreateRequestFromJSON = CryptoDotComPaymentCreateRequest.CryptoDotComPaymentCreateRequestFromJSON;
2078
2082
  exports.CryptoDotComPaymentCreateRequestFromJSONTyped = CryptoDotComPaymentCreateRequest.CryptoDotComPaymentCreateRequestFromJSONTyped;
2079
2083
  exports.CryptoDotComPaymentCreateRequestToJSON = CryptoDotComPaymentCreateRequest.CryptoDotComPaymentCreateRequestToJSON;
package/src/index.js CHANGED
@@ -266,6 +266,7 @@ export { CreateUserWaasWalletsRequestFromJSON, CreateUserWaasWalletsRequestFromJ
266
266
  export { CreateWaasAccountRequestFromJSON, CreateWaasAccountRequestFromJSONTyped, CreateWaasAccountRequestToJSON } from './models/CreateWaasAccountRequest.js';
267
267
  export { CreateWalletAccountRequestFromJSON, CreateWalletAccountRequestFromJSONTyped, CreateWalletAccountRequestToJSON } from './models/CreateWalletAccountRequest.js';
268
268
  export { CreateWalletRequestFromJSON, CreateWalletRequestFromJSONTyped, CreateWalletRequestToJSON } from './models/CreateWalletRequest.js';
269
+ export { CrossChainAssetDiffFromJSON, CrossChainAssetDiffFromJSONTyped, CrossChainAssetDiffToJSON } from './models/CrossChainAssetDiff.js';
269
270
  export { CryptoDotComPaymentCreateRequestFromJSON, CryptoDotComPaymentCreateRequestFromJSONTyped, CryptoDotComPaymentCreateRequestToJSON } from './models/CryptoDotComPaymentCreateRequest.js';
270
271
  export { CryptoDotComPaymentResponseFromJSON, CryptoDotComPaymentResponseFromJSONTyped, CryptoDotComPaymentResponseToJSON } from './models/CryptoDotComPaymentResponse.js';
271
272
  export { CurrencyFromJSON, CurrencyFromJSONTyped, CurrencyToJSON } from './models/Currency.js';
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Asset = require('./Asset.cjs');
6
+ var AssetTransfer = require('./AssetTransfer.cjs');
7
+
8
+ /* tslint:disable */
9
+ function CrossChainAssetDiffFromJSON(json) {
10
+ return CrossChainAssetDiffFromJSONTyped(json);
11
+ }
12
+ function CrossChainAssetDiffFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'chain': json['chain'],
18
+ 'asset': Asset.AssetFromJSON(json['asset']),
19
+ 'transferIn': (json['transferIn'].map(AssetTransfer.AssetTransferFromJSON)),
20
+ 'transferOut': (json['transferOut'].map(AssetTransfer.AssetTransferFromJSON)),
21
+ };
22
+ }
23
+ function CrossChainAssetDiffToJSON(value) {
24
+ if (value === undefined) {
25
+ return undefined;
26
+ }
27
+ if (value === null) {
28
+ return null;
29
+ }
30
+ return {
31
+ 'chain': value.chain,
32
+ 'asset': Asset.AssetToJSON(value.asset),
33
+ 'transferIn': (value.transferIn.map(AssetTransfer.AssetTransferToJSON)),
34
+ 'transferOut': (value.transferOut.map(AssetTransfer.AssetTransferToJSON)),
35
+ };
36
+ }
37
+
38
+ exports.CrossChainAssetDiffFromJSON = CrossChainAssetDiffFromJSON;
39
+ exports.CrossChainAssetDiffFromJSONTyped = CrossChainAssetDiffFromJSONTyped;
40
+ exports.CrossChainAssetDiffToJSON = CrossChainAssetDiffToJSON;
@@ -0,0 +1,47 @@
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
+ import { Asset } from './Asset';
13
+ import { AssetTransfer } from './AssetTransfer';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CrossChainAssetDiff
18
+ */
19
+ export interface CrossChainAssetDiff {
20
+ /**
21
+ * Identifier of the chain where the asset movement occurs
22
+ * @type {string}
23
+ * @memberof CrossChainAssetDiff
24
+ */
25
+ chain: string;
26
+ /**
27
+ *
28
+ * @type {Asset}
29
+ * @memberof CrossChainAssetDiff
30
+ */
31
+ asset: Asset;
32
+ /**
33
+ * List of incoming asset transfers on this chain
34
+ * @type {Array<AssetTransfer>}
35
+ * @memberof CrossChainAssetDiff
36
+ */
37
+ transferIn: Array<AssetTransfer>;
38
+ /**
39
+ * List of outgoing asset transfers on this chain
40
+ * @type {Array<AssetTransfer>}
41
+ * @memberof CrossChainAssetDiff
42
+ */
43
+ transferOut: Array<AssetTransfer>;
44
+ }
45
+ export declare function CrossChainAssetDiffFromJSON(json: any): CrossChainAssetDiff;
46
+ export declare function CrossChainAssetDiffFromJSONTyped(json: any, ignoreDiscriminator: boolean): CrossChainAssetDiff;
47
+ export declare function CrossChainAssetDiffToJSON(value?: CrossChainAssetDiff | null): any;
@@ -0,0 +1,34 @@
1
+ import { AssetFromJSON, AssetToJSON } from './Asset.js';
2
+ import { AssetTransferFromJSON, AssetTransferToJSON } from './AssetTransfer.js';
3
+
4
+ /* tslint:disable */
5
+ function CrossChainAssetDiffFromJSON(json) {
6
+ return CrossChainAssetDiffFromJSONTyped(json);
7
+ }
8
+ function CrossChainAssetDiffFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'chain': json['chain'],
14
+ 'asset': AssetFromJSON(json['asset']),
15
+ 'transferIn': (json['transferIn'].map(AssetTransferFromJSON)),
16
+ 'transferOut': (json['transferOut'].map(AssetTransferFromJSON)),
17
+ };
18
+ }
19
+ function CrossChainAssetDiffToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'chain': value.chain,
28
+ 'asset': AssetToJSON(value.asset),
29
+ 'transferIn': (value.transferIn.map(AssetTransferToJSON)),
30
+ 'transferOut': (value.transferOut.map(AssetTransferToJSON)),
31
+ };
32
+ }
33
+
34
+ export { CrossChainAssetDiffFromJSON, CrossChainAssetDiffFromJSONTyped, CrossChainAssetDiffToJSON };
@@ -6,6 +6,7 @@ var runtime = require('../runtime.cjs');
6
6
  var AssetDiff = require('./AssetDiff.cjs');
7
7
  var AssetExposure = require('./AssetExposure.cjs');
8
8
  var BlockaidValidation = require('./BlockaidValidation.cjs');
9
+ var CrossChainAssetDiff = require('./CrossChainAssetDiff.cjs');
9
10
  var PriceData = require('./PriceData.cjs');
10
11
 
11
12
  /* tslint:disable */
@@ -24,6 +25,7 @@ function SimulateTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
24
25
  'showTotalFiat': json['showTotalFiat'],
25
26
  'validation': !runtime.exists(json, 'validation') ? undefined : BlockaidValidation.BlockaidValidationFromJSON(json['validation']),
26
27
  'assetExposures': !runtime.exists(json, 'assetExposures') ? undefined : (json['assetExposures'].map(AssetExposure.AssetExposureFromJSON)),
28
+ 'crossChainAssetDiffs': !runtime.exists(json, 'crossChainAssetDiffs') ? undefined : (json['crossChainAssetDiffs'].map(CrossChainAssetDiff.CrossChainAssetDiffFromJSON)),
27
29
  };
28
30
  }
29
31
  function SimulateTransactionResponseToJSON(value) {
@@ -41,6 +43,7 @@ function SimulateTransactionResponseToJSON(value) {
41
43
  'showTotalFiat': value.showTotalFiat,
42
44
  'validation': BlockaidValidation.BlockaidValidationToJSON(value.validation),
43
45
  'assetExposures': value.assetExposures === undefined ? undefined : (value.assetExposures.map(AssetExposure.AssetExposureToJSON)),
46
+ 'crossChainAssetDiffs': value.crossChainAssetDiffs === undefined ? undefined : (value.crossChainAssetDiffs.map(CrossChainAssetDiff.CrossChainAssetDiffToJSON)),
44
47
  };
45
48
  }
46
49
 
@@ -12,6 +12,7 @@
12
12
  import { AssetDiff } from './AssetDiff';
13
13
  import { AssetExposure } from './AssetExposure';
14
14
  import { BlockaidValidation } from './BlockaidValidation';
15
+ import { CrossChainAssetDiff } from './CrossChainAssetDiff';
15
16
  import { PriceData } from './PriceData';
16
17
  /**
17
18
  *
@@ -61,6 +62,12 @@ export interface SimulateTransactionResponse {
61
62
  * @memberof SimulateTransactionResponse
62
63
  */
63
64
  assetExposures?: Array<AssetExposure>;
65
+ /**
66
+ * List of asset movements on other chains (e.g. destination side of a bridge)
67
+ * @type {Array<CrossChainAssetDiff>}
68
+ * @memberof SimulateTransactionResponse
69
+ */
70
+ crossChainAssetDiffs?: Array<CrossChainAssetDiff>;
64
71
  }
65
72
  export declare function SimulateTransactionResponseFromJSON(json: any): SimulateTransactionResponse;
66
73
  export declare function SimulateTransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimulateTransactionResponse;
@@ -2,6 +2,7 @@ import { exists } from '../runtime.js';
2
2
  import { AssetDiffFromJSON, AssetDiffToJSON } from './AssetDiff.js';
3
3
  import { AssetExposureFromJSON, AssetExposureToJSON } from './AssetExposure.js';
4
4
  import { BlockaidValidationFromJSON, BlockaidValidationToJSON } from './BlockaidValidation.js';
5
+ import { CrossChainAssetDiffFromJSON, CrossChainAssetDiffToJSON } from './CrossChainAssetDiff.js';
5
6
  import { PriceDataFromJSON, PriceDataToJSON } from './PriceData.js';
6
7
 
7
8
  /* tslint:disable */
@@ -20,6 +21,7 @@ function SimulateTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
20
21
  'showTotalFiat': json['showTotalFiat'],
21
22
  'validation': !exists(json, 'validation') ? undefined : BlockaidValidationFromJSON(json['validation']),
22
23
  'assetExposures': !exists(json, 'assetExposures') ? undefined : (json['assetExposures'].map(AssetExposureFromJSON)),
24
+ 'crossChainAssetDiffs': !exists(json, 'crossChainAssetDiffs') ? undefined : (json['crossChainAssetDiffs'].map(CrossChainAssetDiffFromJSON)),
23
25
  };
24
26
  }
25
27
  function SimulateTransactionResponseToJSON(value) {
@@ -37,6 +39,7 @@ function SimulateTransactionResponseToJSON(value) {
37
39
  'showTotalFiat': value.showTotalFiat,
38
40
  'validation': BlockaidValidationToJSON(value.validation),
39
41
  'assetExposures': value.assetExposures === undefined ? undefined : (value.assetExposures.map(AssetExposureToJSON)),
42
+ 'crossChainAssetDiffs': value.crossChainAssetDiffs === undefined ? undefined : (value.crossChainAssetDiffs.map(CrossChainAssetDiffToJSON)),
40
43
  };
41
44
  }
42
45
 
@@ -213,6 +213,7 @@ export * from './CreateUserWaasWalletsRequest';
213
213
  export * from './CreateWaasAccountRequest';
214
214
  export * from './CreateWalletAccountRequest';
215
215
  export * from './CreateWalletRequest';
216
+ export * from './CrossChainAssetDiff';
216
217
  export * from './CryptoDotComPaymentCreateRequest';
217
218
  export * from './CryptoDotComPaymentResponse';
218
219
  export * from './Currency';