@dynamic-labs/sdk-api 0.152.0 → 0.154.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.
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function FlowSourceTokenOptionTokenFromJSON(json) {
9
+ return FlowSourceTokenOptionTokenFromJSONTyped(json);
10
+ }
11
+ function FlowSourceTokenOptionTokenFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'address': json['address'],
17
+ 'decimals': json['decimals'],
18
+ 'symbol': json['symbol'],
19
+ 'iconUrl': !runtime.exists(json, 'iconUrl') ? undefined : json['iconUrl'],
20
+ };
21
+ }
22
+ function FlowSourceTokenOptionTokenToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'address': value.address,
31
+ 'decimals': value.decimals,
32
+ 'symbol': value.symbol,
33
+ 'iconUrl': value.iconUrl,
34
+ };
35
+ }
36
+
37
+ exports.FlowSourceTokenOptionTokenFromJSON = FlowSourceTokenOptionTokenFromJSON;
38
+ exports.FlowSourceTokenOptionTokenFromJSONTyped = FlowSourceTokenOptionTokenFromJSONTyped;
39
+ exports.FlowSourceTokenOptionTokenToJSON = FlowSourceTokenOptionTokenToJSON;
@@ -0,0 +1,45 @@
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
+ * A token a payer can send to a flow's deposit address.
14
+ * @export
15
+ * @interface FlowSourceTokenOptionToken
16
+ */
17
+ export interface FlowSourceTokenOptionToken {
18
+ /**
19
+ * The token's contract address, or a chain-specific placeholder for the network's native token.
20
+ * @type {string}
21
+ * @memberof FlowSourceTokenOptionToken
22
+ */
23
+ address: string;
24
+ /**
25
+ * Number of decimal places for this token
26
+ * @type {number}
27
+ * @memberof FlowSourceTokenOptionToken
28
+ */
29
+ decimals: number;
30
+ /**
31
+ * Token symbol (e.g. USDC, ETH)
32
+ * @type {string}
33
+ * @memberof FlowSourceTokenOptionToken
34
+ */
35
+ symbol: string;
36
+ /**
37
+ * Absolute HTTPS URL of the token's logo.
38
+ * @type {string}
39
+ * @memberof FlowSourceTokenOptionToken
40
+ */
41
+ iconUrl?: string;
42
+ }
43
+ export declare function FlowSourceTokenOptionTokenFromJSON(json: any): FlowSourceTokenOptionToken;
44
+ export declare function FlowSourceTokenOptionTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowSourceTokenOptionToken;
45
+ export declare function FlowSourceTokenOptionTokenToJSON(value?: FlowSourceTokenOptionToken | null): any;
@@ -0,0 +1,33 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowSourceTokenOptionTokenFromJSON(json) {
5
+ return FlowSourceTokenOptionTokenFromJSONTyped(json);
6
+ }
7
+ function FlowSourceTokenOptionTokenFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'address': json['address'],
13
+ 'decimals': json['decimals'],
14
+ 'symbol': json['symbol'],
15
+ 'iconUrl': !exists(json, 'iconUrl') ? undefined : json['iconUrl'],
16
+ };
17
+ }
18
+ function FlowSourceTokenOptionTokenToJSON(value) {
19
+ if (value === undefined) {
20
+ return undefined;
21
+ }
22
+ if (value === null) {
23
+ return null;
24
+ }
25
+ return {
26
+ 'address': value.address,
27
+ 'decimals': value.decimals,
28
+ 'symbol': value.symbol,
29
+ 'iconUrl': value.iconUrl,
30
+ };
31
+ }
32
+
33
+ export { FlowSourceTokenOptionTokenFromJSON, FlowSourceTokenOptionTokenFromJSONTyped, FlowSourceTokenOptionTokenToJSON };
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var FlowSourceTokenOption = require('./FlowSourceTokenOption.cjs');
6
+
7
+ /* tslint:disable */
8
+ function FlowSourceTokenOptionsResponseFromJSON(json) {
9
+ return FlowSourceTokenOptionsResponseFromJSONTyped(json);
10
+ }
11
+ function FlowSourceTokenOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'sourceTokenOptions': (json['sourceTokenOptions'].map(FlowSourceTokenOption.FlowSourceTokenOptionFromJSON)),
17
+ };
18
+ }
19
+ function FlowSourceTokenOptionsResponseToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'sourceTokenOptions': (value.sourceTokenOptions.map(FlowSourceTokenOption.FlowSourceTokenOptionToJSON)),
28
+ };
29
+ }
30
+
31
+ exports.FlowSourceTokenOptionsResponseFromJSON = FlowSourceTokenOptionsResponseFromJSON;
32
+ exports.FlowSourceTokenOptionsResponseFromJSONTyped = FlowSourceTokenOptionsResponseFromJSONTyped;
33
+ exports.FlowSourceTokenOptionsResponseToJSON = FlowSourceTokenOptionsResponseToJSON;
@@ -0,0 +1,28 @@
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 { FlowSourceTokenOption } from './FlowSourceTokenOption';
13
+ /**
14
+ * The tokens a flow can be paid with from a deposit address.
15
+ * @export
16
+ * @interface FlowSourceTokenOptionsResponse
17
+ */
18
+ export interface FlowSourceTokenOptionsResponse {
19
+ /**
20
+ * Networks and tokens a payer can fund the flow from.
21
+ * @type {Array<FlowSourceTokenOption>}
22
+ * @memberof FlowSourceTokenOptionsResponse
23
+ */
24
+ sourceTokenOptions: Array<FlowSourceTokenOption>;
25
+ }
26
+ export declare function FlowSourceTokenOptionsResponseFromJSON(json: any): FlowSourceTokenOptionsResponse;
27
+ export declare function FlowSourceTokenOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowSourceTokenOptionsResponse;
28
+ export declare function FlowSourceTokenOptionsResponseToJSON(value?: FlowSourceTokenOptionsResponse | null): any;
@@ -0,0 +1,27 @@
1
+ import { FlowSourceTokenOptionFromJSON, FlowSourceTokenOptionToJSON } from './FlowSourceTokenOption.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowSourceTokenOptionsResponseFromJSON(json) {
5
+ return FlowSourceTokenOptionsResponseFromJSONTyped(json);
6
+ }
7
+ function FlowSourceTokenOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'sourceTokenOptions': (json['sourceTokenOptions'].map(FlowSourceTokenOptionFromJSON)),
13
+ };
14
+ }
15
+ function FlowSourceTokenOptionsResponseToJSON(value) {
16
+ if (value === undefined) {
17
+ return undefined;
18
+ }
19
+ if (value === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ 'sourceTokenOptions': (value.sourceTokenOptions.map(FlowSourceTokenOptionToJSON)),
24
+ };
25
+ }
26
+
27
+ export { FlowSourceTokenOptionsResponseFromJSON, FlowSourceTokenOptionsResponseFromJSONTyped, FlowSourceTokenOptionsResponseToJSON };
@@ -373,6 +373,11 @@ export * from './FlowRiskStateEnum';
373
373
  export * from './FlowSettlementData';
374
374
  export * from './FlowSettlementStateEnum';
375
375
  export * from './FlowSourceResponse';
376
+ export * from './FlowSourceTokenOption';
377
+ export * from './FlowSourceTokenOptionChain';
378
+ export * from './FlowSourceTokenOptionNetwork';
379
+ export * from './FlowSourceTokenOptionToken';
380
+ export * from './FlowSourceTokenOptionsResponse';
376
381
  export * from './FlowSourceTypeEnum';
377
382
  export * from './FlowTokenInfo';
378
383
  export * from './FlowUIConfig';