@dynamic-labs/sdk-api-core 0.0.920 → 0.0.922

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.
Files changed (44) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +6135 -7301
  3. package/src/apis/SDKApi.d.ts +3 -3
  4. package/src/apis/SDKApi.js +6135 -7301
  5. package/src/apis/WaasApi.cjs +31 -40
  6. package/src/apis/WaasApi.js +31 -40
  7. package/src/deviceNonceSignatureEndpoints.cjs +1 -1
  8. package/src/deviceNonceSignatureEndpoints.js +1 -1
  9. package/src/index.cjs +8 -16
  10. package/src/index.js +2 -4
  11. package/src/models/CheckoutTransaction.cjs +3 -10
  12. package/src/models/CheckoutTransaction.d.ts +3 -22
  13. package/src/models/CheckoutTransaction.js +3 -10
  14. package/src/models/CheckoutTransactionQuote.cjs +51 -0
  15. package/src/models/CheckoutTransactionQuote.d.ts +77 -0
  16. package/src/models/CheckoutTransactionQuote.js +45 -0
  17. package/src/models/CreateEmbeddedWalletSpecificOpts.cjs +2 -2
  18. package/src/models/CreateEmbeddedWalletSpecificOpts.js +2 -2
  19. package/src/models/Provider.cjs +2 -0
  20. package/src/models/Provider.d.ts +6 -0
  21. package/src/models/Provider.js +2 -0
  22. package/src/models/SwapSigningPayload.cjs +4 -6
  23. package/src/models/SwapSigningPayload.d.ts +7 -9
  24. package/src/models/SwapSigningPayload.js +4 -6
  25. package/src/models/TransactionFeeEstimateRequest.cjs +37 -0
  26. package/src/models/TransactionFeeEstimateRequest.d.ts +39 -0
  27. package/src/models/TransactionFeeEstimateRequest.js +31 -0
  28. package/src/models/index.d.ts +2 -4
  29. package/src/runtime.cjs +45 -36
  30. package/src/runtime.js +45 -36
  31. package/_virtual/_tslib.cjs +0 -35
  32. package/_virtual/_tslib.js +0 -31
  33. package/src/models/CheckoutQuoteSnapshot.cjs +0 -50
  34. package/src/models/CheckoutQuoteSnapshot.d.ts +0 -76
  35. package/src/models/CheckoutQuoteSnapshot.js +0 -44
  36. package/src/models/InlineObject.cjs +0 -43
  37. package/src/models/InlineObject.d.ts +0 -27
  38. package/src/models/InlineObject.js +0 -37
  39. package/src/models/SwapPsbtTransactionData.cjs +0 -43
  40. package/src/models/SwapPsbtTransactionData.d.ts +0 -27
  41. package/src/models/SwapPsbtTransactionData.js +0 -37
  42. package/src/models/SwapSerializedTransactionData.cjs +0 -43
  43. package/src/models/SwapSerializedTransactionData.d.ts +0 -27
  44. package/src/models/SwapSerializedTransactionData.js +0 -37
package/src/runtime.js CHANGED
@@ -1,6 +1,16 @@
1
- import { __awaiter } from '../_virtual/_tslib.js';
2
-
3
1
  /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
4
14
  const BASE_PATH = "https://app.dynamicauth.com/api/v0".replace(/\/+$/, "");
5
15
  const isBlob = (value) => typeof Blob !== 'undefined' && value instanceof Blob;
6
16
  /**
@@ -9,26 +19,29 @@ const isBlob = (value) => typeof Blob !== 'undefined' && value instanceof Blob;
9
19
  class BaseAPI {
10
20
  constructor(configuration = new Configuration()) {
11
21
  this.configuration = configuration;
12
- this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () {
22
+ this.fetchApi = async (url, init) => {
13
23
  let fetchParams = { url, init };
14
24
  for (const middleware of this.middleware) {
15
25
  if (middleware.pre) {
16
- fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
26
+ fetchParams = await middleware.pre({
27
+ fetch: this.fetchApi,
28
+ ...fetchParams,
29
+ }) || fetchParams;
17
30
  }
18
31
  }
19
- let response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
32
+ let response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
20
33
  for (const middleware of this.middleware) {
21
34
  if (middleware.post) {
22
- response = (yield middleware.post({
35
+ response = await middleware.post({
23
36
  fetch: this.fetchApi,
24
37
  url: fetchParams.url,
25
38
  init: fetchParams.init,
26
39
  response: response.clone(),
27
- })) || response;
40
+ }) || response;
28
41
  }
29
42
  }
30
43
  return response;
31
- });
44
+ };
32
45
  this.middleware = configuration.middleware;
33
46
  }
34
47
  withMiddleware(...middlewares) {
@@ -44,15 +57,13 @@ class BaseAPI {
44
57
  const middlewares = postMiddlewares.map((post) => ({ post }));
45
58
  return this.withMiddleware(...middlewares);
46
59
  }
47
- request(context, initOverrides) {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- const { url, init } = this.createFetchParams(context, initOverrides);
50
- const response = yield this.fetchApi(url, init);
51
- if (response.status >= 200 && response.status < 300) {
52
- return response;
53
- }
54
- throw response;
55
- });
60
+ async request(context, initOverrides) {
61
+ const { url, init } = this.createFetchParams(context, initOverrides);
62
+ const response = await this.fetchApi(url, init);
63
+ if (response.status >= 200 && response.status < 300) {
64
+ return response;
65
+ }
66
+ throw response;
56
67
  }
57
68
  createFetchParams(context, initOverrides) {
58
69
  let url = this.configuration.basePath + context.path;
@@ -66,7 +77,13 @@ class BaseAPI {
66
77
  ? context.body
67
78
  : JSON.stringify(context.body);
68
79
  const headers = Object.assign({}, this.configuration.headers, context.headers);
69
- const init = Object.assign({ method: context.method, headers: headers, body, credentials: this.configuration.credentials }, initOverrides);
80
+ const init = {
81
+ method: context.method,
82
+ headers: headers,
83
+ body,
84
+ credentials: this.configuration.credentials,
85
+ ...initOverrides
86
+ };
70
87
  return { url, init };
71
88
  }
72
89
  /**
@@ -125,7 +142,7 @@ class Configuration {
125
142
  get accessToken() {
126
143
  const accessToken = this.configuration.accessToken;
127
144
  if (accessToken) {
128
- return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; });
145
+ return typeof accessToken === 'function' ? accessToken : async () => accessToken;
129
146
  }
130
147
  return undefined;
131
148
  }
@@ -162,7 +179,7 @@ function querystring(params, prefix = '') {
162
179
  .join('&');
163
180
  }
164
181
  function mapValues(data, fn) {
165
- return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {});
182
+ return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {});
166
183
  }
167
184
  function canConsumeForm(consumes) {
168
185
  for (const consume of consumes) {
@@ -177,30 +194,24 @@ class JSONApiResponse {
177
194
  this.raw = raw;
178
195
  this.transformer = transformer;
179
196
  }
180
- value() {
181
- return __awaiter(this, void 0, void 0, function* () {
182
- return this.transformer(yield this.raw.json());
183
- });
197
+ async value() {
198
+ return this.transformer(await this.raw.json());
184
199
  }
185
200
  }
186
201
  class VoidApiResponse {
187
202
  constructor(raw) {
188
203
  this.raw = raw;
189
204
  }
190
- value() {
191
- return __awaiter(this, void 0, void 0, function* () {
192
- return undefined;
193
- });
205
+ async value() {
206
+ return undefined;
194
207
  }
195
208
  }
196
209
  class BlobApiResponse {
197
210
  constructor(raw) {
198
211
  this.raw = raw;
199
212
  }
200
- value() {
201
- return __awaiter(this, void 0, void 0, function* () {
202
- return yield this.raw.blob();
203
- });
213
+ async value() {
214
+ return await this.raw.blob();
204
215
  }
205
216
  ;
206
217
  }
@@ -208,10 +219,8 @@ class TextApiResponse {
208
219
  constructor(raw) {
209
220
  this.raw = raw;
210
221
  }
211
- value() {
212
- return __awaiter(this, void 0, void 0, function* () {
213
- return yield this.raw.text();
214
- });
222
+ async value() {
223
+ return await this.raw.text();
215
224
  }
216
225
  ;
217
226
  }
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- /******************************************************************************
6
- Copyright (c) Microsoft Corporation.
7
-
8
- Permission to use, copy, modify, and/or distribute this software for any
9
- purpose with or without fee is hereby granted.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
- PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */
19
-
20
- function __awaiter(thisArg, _arguments, P, generator) {
21
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22
- return new (P || (P = Promise))(function (resolve, reject) {
23
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
24
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
25
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
26
- step((generator = generator.apply(thisArg, _arguments || [])).next());
27
- });
28
- }
29
-
30
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
31
- var e = new Error(message);
32
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
33
- };
34
-
35
- exports.__awaiter = __awaiter;
@@ -1,31 +0,0 @@
1
- /******************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
15
-
16
- function __awaiter(thisArg, _arguments, P, generator) {
17
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
- return new (P || (P = Promise))(function (resolve, reject) {
19
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
22
- step((generator = generator.apply(thisArg, _arguments || [])).next());
23
- });
24
- }
25
-
26
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
27
- var e = new Error(message);
28
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
29
- };
30
-
31
- export { __awaiter };
@@ -1,50 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var runtime = require('../runtime.cjs');
6
- var CheckoutFeeBreakdown = require('./CheckoutFeeBreakdown.cjs');
7
-
8
- /* tslint:disable */
9
- function CheckoutQuoteSnapshotFromJSON(json) {
10
- return CheckoutQuoteSnapshotFromJSONTyped(json);
11
- }
12
- function CheckoutQuoteSnapshotFromJSONTyped(json, ignoreDiscriminator) {
13
- if ((json === undefined) || (json === null)) {
14
- return json;
15
- }
16
- return {
17
- 'version': json['version'],
18
- 'fromAmount': json['fromAmount'],
19
- 'toAmount': json['toAmount'],
20
- 'toAmountMin': json['toAmountMin'],
21
- 'fees': CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSON(json['fees']),
22
- 'estimatedTimeSec': json['estimatedTimeSec'],
23
- 'route': !runtime.exists(json, 'route') ? undefined : json['route'],
24
- 'createdAt': (new Date(json['createdAt'])),
25
- 'expiresAt': (new Date(json['expiresAt'])),
26
- };
27
- }
28
- function CheckoutQuoteSnapshotToJSON(value) {
29
- if (value === undefined) {
30
- return undefined;
31
- }
32
- if (value === null) {
33
- return null;
34
- }
35
- return {
36
- 'version': value.version,
37
- 'fromAmount': value.fromAmount,
38
- 'toAmount': value.toAmount,
39
- 'toAmountMin': value.toAmountMin,
40
- 'fees': CheckoutFeeBreakdown.CheckoutFeeBreakdownToJSON(value.fees),
41
- 'estimatedTimeSec': value.estimatedTimeSec,
42
- 'route': value.route,
43
- 'createdAt': (value.createdAt.toISOString()),
44
- 'expiresAt': (value.expiresAt.toISOString()),
45
- };
46
- }
47
-
48
- exports.CheckoutQuoteSnapshotFromJSON = CheckoutQuoteSnapshotFromJSON;
49
- exports.CheckoutQuoteSnapshotFromJSONTyped = CheckoutQuoteSnapshotFromJSONTyped;
50
- exports.CheckoutQuoteSnapshotToJSON = CheckoutQuoteSnapshotToJSON;
@@ -1,76 +0,0 @@
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 { CheckoutFeeBreakdown } from './CheckoutFeeBreakdown';
13
- /**
14
- *
15
- * @export
16
- * @interface CheckoutQuoteSnapshot
17
- */
18
- export interface CheckoutQuoteSnapshot {
19
- /**
20
- *
21
- * @type {number}
22
- * @memberof CheckoutQuoteSnapshot
23
- */
24
- version: number;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof CheckoutQuoteSnapshot
29
- */
30
- fromAmount: string;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof CheckoutQuoteSnapshot
35
- */
36
- toAmount: string;
37
- /**
38
- *
39
- * @type {string}
40
- * @memberof CheckoutQuoteSnapshot
41
- */
42
- toAmountMin: string;
43
- /**
44
- *
45
- * @type {CheckoutFeeBreakdown}
46
- * @memberof CheckoutQuoteSnapshot
47
- */
48
- fees: CheckoutFeeBreakdown;
49
- /**
50
- *
51
- * @type {number}
52
- * @memberof CheckoutQuoteSnapshot
53
- */
54
- estimatedTimeSec: number;
55
- /**
56
- * Raw route data from the swap provider
57
- * @type {object}
58
- * @memberof CheckoutQuoteSnapshot
59
- */
60
- route?: object;
61
- /**
62
- *
63
- * @type {Date}
64
- * @memberof CheckoutQuoteSnapshot
65
- */
66
- createdAt: Date;
67
- /**
68
- *
69
- * @type {Date}
70
- * @memberof CheckoutQuoteSnapshot
71
- */
72
- expiresAt: Date;
73
- }
74
- export declare function CheckoutQuoteSnapshotFromJSON(json: any): CheckoutQuoteSnapshot;
75
- export declare function CheckoutQuoteSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutQuoteSnapshot;
76
- export declare function CheckoutQuoteSnapshotToJSON(value?: CheckoutQuoteSnapshot | null): any;
@@ -1,44 +0,0 @@
1
- import { exists } from '../runtime.js';
2
- import { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownToJSON } from './CheckoutFeeBreakdown.js';
3
-
4
- /* tslint:disable */
5
- function CheckoutQuoteSnapshotFromJSON(json) {
6
- return CheckoutQuoteSnapshotFromJSONTyped(json);
7
- }
8
- function CheckoutQuoteSnapshotFromJSONTyped(json, ignoreDiscriminator) {
9
- if ((json === undefined) || (json === null)) {
10
- return json;
11
- }
12
- return {
13
- 'version': json['version'],
14
- 'fromAmount': json['fromAmount'],
15
- 'toAmount': json['toAmount'],
16
- 'toAmountMin': json['toAmountMin'],
17
- 'fees': CheckoutFeeBreakdownFromJSON(json['fees']),
18
- 'estimatedTimeSec': json['estimatedTimeSec'],
19
- 'route': !exists(json, 'route') ? undefined : json['route'],
20
- 'createdAt': (new Date(json['createdAt'])),
21
- 'expiresAt': (new Date(json['expiresAt'])),
22
- };
23
- }
24
- function CheckoutQuoteSnapshotToJSON(value) {
25
- if (value === undefined) {
26
- return undefined;
27
- }
28
- if (value === null) {
29
- return null;
30
- }
31
- return {
32
- 'version': value.version,
33
- 'fromAmount': value.fromAmount,
34
- 'toAmount': value.toAmount,
35
- 'toAmountMin': value.toAmountMin,
36
- 'fees': CheckoutFeeBreakdownToJSON(value.fees),
37
- 'estimatedTimeSec': value.estimatedTimeSec,
38
- 'route': value.route,
39
- 'createdAt': (value.createdAt.toISOString()),
40
- 'expiresAt': (value.expiresAt.toISOString()),
41
- };
42
- }
43
-
44
- export { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotFromJSONTyped, CheckoutQuoteSnapshotToJSON };
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- /* tslint:disable */
6
- /* eslint-disable */
7
- /**
8
- * Dashboard API
9
- * Dashboard API documentation
10
- *
11
- * The version of the OpenAPI document: 1.0.0
12
- *
13
- *
14
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
- * https://openapi-generator.tech
16
- * Do not edit the class manually.
17
- */
18
- function InlineObjectFromJSON(json) {
19
- return InlineObjectFromJSONTyped(json);
20
- }
21
- function InlineObjectFromJSONTyped(json, ignoreDiscriminator) {
22
- if ((json === undefined) || (json === null)) {
23
- return json;
24
- }
25
- return {
26
- 'base64RawTransaction': json['base64RawTransaction'],
27
- };
28
- }
29
- function InlineObjectToJSON(value) {
30
- if (value === undefined) {
31
- return undefined;
32
- }
33
- if (value === null) {
34
- return null;
35
- }
36
- return {
37
- 'base64RawTransaction': value.base64RawTransaction,
38
- };
39
- }
40
-
41
- exports.InlineObjectFromJSON = InlineObjectFromJSON;
42
- exports.InlineObjectFromJSONTyped = InlineObjectFromJSONTyped;
43
- exports.InlineObjectToJSON = InlineObjectToJSON;
@@ -1,27 +0,0 @@
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 InlineObject
16
- */
17
- export interface InlineObject {
18
- /**
19
- * The raw transaction to estimate gas fees for
20
- * @type {string}
21
- * @memberof InlineObject
22
- */
23
- base64RawTransaction: string;
24
- }
25
- export declare function InlineObjectFromJSON(json: any): InlineObject;
26
- export declare function InlineObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject;
27
- export declare function InlineObjectToJSON(value?: InlineObject | null): any;
@@ -1,37 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dashboard API
5
- * Dashboard API documentation
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- function InlineObjectFromJSON(json) {
15
- return InlineObjectFromJSONTyped(json);
16
- }
17
- function InlineObjectFromJSONTyped(json, ignoreDiscriminator) {
18
- if ((json === undefined) || (json === null)) {
19
- return json;
20
- }
21
- return {
22
- 'base64RawTransaction': json['base64RawTransaction'],
23
- };
24
- }
25
- function InlineObjectToJSON(value) {
26
- if (value === undefined) {
27
- return undefined;
28
- }
29
- if (value === null) {
30
- return null;
31
- }
32
- return {
33
- 'base64RawTransaction': value.base64RawTransaction,
34
- };
35
- }
36
-
37
- export { InlineObjectFromJSON, InlineObjectFromJSONTyped, InlineObjectToJSON };
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- /* tslint:disable */
6
- /* eslint-disable */
7
- /**
8
- * Dashboard API
9
- * Dashboard API documentation
10
- *
11
- * The version of the OpenAPI document: 1.0.0
12
- *
13
- *
14
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
- * https://openapi-generator.tech
16
- * Do not edit the class manually.
17
- */
18
- function SwapPsbtTransactionDataFromJSON(json) {
19
- return SwapPsbtTransactionDataFromJSONTyped(json);
20
- }
21
- function SwapPsbtTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
22
- if ((json === undefined) || (json === null)) {
23
- return json;
24
- }
25
- return {
26
- 'psbt': json['psbt'],
27
- };
28
- }
29
- function SwapPsbtTransactionDataToJSON(value) {
30
- if (value === undefined) {
31
- return undefined;
32
- }
33
- if (value === null) {
34
- return null;
35
- }
36
- return {
37
- 'psbt': value.psbt,
38
- };
39
- }
40
-
41
- exports.SwapPsbtTransactionDataFromJSON = SwapPsbtTransactionDataFromJSON;
42
- exports.SwapPsbtTransactionDataFromJSONTyped = SwapPsbtTransactionDataFromJSONTyped;
43
- exports.SwapPsbtTransactionDataToJSON = SwapPsbtTransactionDataToJSON;
@@ -1,27 +0,0 @@
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 SwapPsbtTransactionData
16
- */
17
- export interface SwapPsbtTransactionData {
18
- /**
19
- * Base64-encoded unsigned PSBT
20
- * @type {string}
21
- * @memberof SwapPsbtTransactionData
22
- */
23
- psbt: string;
24
- }
25
- export declare function SwapPsbtTransactionDataFromJSON(json: any): SwapPsbtTransactionData;
26
- export declare function SwapPsbtTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapPsbtTransactionData;
27
- export declare function SwapPsbtTransactionDataToJSON(value?: SwapPsbtTransactionData | null): any;
@@ -1,37 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dashboard API
5
- * Dashboard API documentation
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- function SwapPsbtTransactionDataFromJSON(json) {
15
- return SwapPsbtTransactionDataFromJSONTyped(json);
16
- }
17
- function SwapPsbtTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
18
- if ((json === undefined) || (json === null)) {
19
- return json;
20
- }
21
- return {
22
- 'psbt': json['psbt'],
23
- };
24
- }
25
- function SwapPsbtTransactionDataToJSON(value) {
26
- if (value === undefined) {
27
- return undefined;
28
- }
29
- if (value === null) {
30
- return null;
31
- }
32
- return {
33
- 'psbt': value.psbt,
34
- };
35
- }
36
-
37
- export { SwapPsbtTransactionDataFromJSON, SwapPsbtTransactionDataFromJSONTyped, SwapPsbtTransactionDataToJSON };
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- /* tslint:disable */
6
- /* eslint-disable */
7
- /**
8
- * Dashboard API
9
- * Dashboard API documentation
10
- *
11
- * The version of the OpenAPI document: 1.0.0
12
- *
13
- *
14
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
- * https://openapi-generator.tech
16
- * Do not edit the class manually.
17
- */
18
- function SwapSerializedTransactionDataFromJSON(json) {
19
- return SwapSerializedTransactionDataFromJSONTyped(json);
20
- }
21
- function SwapSerializedTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
22
- if ((json === undefined) || (json === null)) {
23
- return json;
24
- }
25
- return {
26
- 'serializedTransaction': json['serializedTransaction'],
27
- };
28
- }
29
- function SwapSerializedTransactionDataToJSON(value) {
30
- if (value === undefined) {
31
- return undefined;
32
- }
33
- if (value === null) {
34
- return null;
35
- }
36
- return {
37
- 'serializedTransaction': value.serializedTransaction,
38
- };
39
- }
40
-
41
- exports.SwapSerializedTransactionDataFromJSON = SwapSerializedTransactionDataFromJSON;
42
- exports.SwapSerializedTransactionDataFromJSONTyped = SwapSerializedTransactionDataFromJSONTyped;
43
- exports.SwapSerializedTransactionDataToJSON = SwapSerializedTransactionDataToJSON;