@dynamic-labs/sdk-api 0.0.1048 → 0.0.1050
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/models/Flow.cjs +0 -6
- package/src/models/Flow.d.ts +0 -14
- package/src/models/Flow.js +0 -6
- package/src/models/FlowQuote.cjs +0 -2
- package/src/models/FlowQuote.d.ts +0 -6
- package/src/models/FlowQuote.js +0 -2
- package/src/models/ZerodevBundlerProvider.cjs +1 -0
- package/src/models/ZerodevBundlerProvider.d.ts +2 -1
- package/src/models/ZerodevBundlerProvider.js +1 -0
package/package.json
CHANGED
package/src/models/Flow.cjs
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
|
-
var DestinationConfigInput = require('./DestinationConfigInput.cjs');
|
|
8
7
|
var FlowExchangeSource = require('./FlowExchangeSource.cjs');
|
|
9
8
|
var FlowExecutionStateEnum = require('./FlowExecutionStateEnum.cjs');
|
|
10
9
|
var FlowFailure = require('./FlowFailure.cjs');
|
|
@@ -14,7 +13,6 @@ var FlowRiskStateEnum = require('./FlowRiskStateEnum.cjs');
|
|
|
14
13
|
var FlowSettlementData = require('./FlowSettlementData.cjs');
|
|
15
14
|
var FlowSettlementStateEnum = require('./FlowSettlementStateEnum.cjs');
|
|
16
15
|
var FlowSourceTypeEnum = require('./FlowSourceTypeEnum.cjs');
|
|
17
|
-
var SettlementConfigInput = require('./SettlementConfigInput.cjs');
|
|
18
16
|
|
|
19
17
|
/* tslint:disable */
|
|
20
18
|
function FlowFromJSON(json) {
|
|
@@ -29,8 +27,6 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
27
|
'mode': FlowModeEnum.FlowModeEnumFromJSON(json['mode']),
|
|
30
28
|
'amount': json['amount'],
|
|
31
29
|
'currency': json['currency'],
|
|
32
|
-
'settlementConfig': SettlementConfigInput.SettlementConfigInputFromJSON(json['settlementConfig']),
|
|
33
|
-
'destinationConfig': !runtime.exists(json, 'destinationConfig') ? undefined : DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
34
30
|
'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
|
|
35
31
|
'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
|
|
36
32
|
'executionState': FlowExecutionStateEnum.FlowExecutionStateEnumFromJSON(json['executionState']),
|
|
@@ -72,8 +68,6 @@ function FlowToJSON(value) {
|
|
|
72
68
|
'mode': FlowModeEnum.FlowModeEnumToJSON(value.mode),
|
|
73
69
|
'amount': value.amount,
|
|
74
70
|
'currency': value.currency,
|
|
75
|
-
'settlementConfig': SettlementConfigInput.SettlementConfigInputToJSON(value.settlementConfig),
|
|
76
|
-
'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
|
|
77
71
|
'memo': value.memo,
|
|
78
72
|
'userId': value.userId,
|
|
79
73
|
'executionState': FlowExecutionStateEnum.FlowExecutionStateEnumToJSON(value.executionState),
|
package/src/models/Flow.d.ts
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ChainEnum } from './ChainEnum';
|
|
13
|
-
import { DestinationConfigInput } from './DestinationConfigInput';
|
|
14
13
|
import { FlowExchangeSource } from './FlowExchangeSource';
|
|
15
14
|
import { FlowExecutionStateEnum } from './FlowExecutionStateEnum';
|
|
16
15
|
import { FlowFailure } from './FlowFailure';
|
|
@@ -20,7 +19,6 @@ import { FlowRiskStateEnum } from './FlowRiskStateEnum';
|
|
|
20
19
|
import { FlowSettlementData } from './FlowSettlementData';
|
|
21
20
|
import { FlowSettlementStateEnum } from './FlowSettlementStateEnum';
|
|
22
21
|
import { FlowSourceTypeEnum } from './FlowSourceTypeEnum';
|
|
23
|
-
import { SettlementConfigInput } from './SettlementConfigInput';
|
|
24
22
|
/**
|
|
25
23
|
* A single payment, deposit, or withdraw flow. Collapses the former Checkout and CheckoutTransaction into one resource.
|
|
26
24
|
* @export
|
|
@@ -51,18 +49,6 @@ export interface Flow {
|
|
|
51
49
|
* @memberof Flow
|
|
52
50
|
*/
|
|
53
51
|
currency: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {SettlementConfigInput}
|
|
57
|
-
* @memberof Flow
|
|
58
|
-
*/
|
|
59
|
-
settlementConfig: SettlementConfigInput;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {DestinationConfigInput}
|
|
63
|
-
* @memberof Flow
|
|
64
|
-
*/
|
|
65
|
-
destinationConfig?: DestinationConfigInput;
|
|
66
52
|
/**
|
|
67
53
|
* Arbitrary metadata attached to the flow
|
|
68
54
|
* @type {object}
|
package/src/models/Flow.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
|
-
import { DestinationConfigInputFromJSON, DestinationConfigInputToJSON } from './DestinationConfigInput.js';
|
|
4
3
|
import { FlowExchangeSourceFromJSON, FlowExchangeSourceToJSON } from './FlowExchangeSource.js';
|
|
5
4
|
import { FlowExecutionStateEnumFromJSON, FlowExecutionStateEnumToJSON } from './FlowExecutionStateEnum.js';
|
|
6
5
|
import { FlowFailureFromJSON, FlowFailureToJSON } from './FlowFailure.js';
|
|
@@ -10,7 +9,6 @@ import { FlowRiskStateEnumFromJSON, FlowRiskStateEnumToJSON } from './FlowRiskSt
|
|
|
10
9
|
import { FlowSettlementDataFromJSON, FlowSettlementDataToJSON } from './FlowSettlementData.js';
|
|
11
10
|
import { FlowSettlementStateEnumFromJSON, FlowSettlementStateEnumToJSON } from './FlowSettlementStateEnum.js';
|
|
12
11
|
import { FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumToJSON } from './FlowSourceTypeEnum.js';
|
|
13
|
-
import { SettlementConfigInputFromJSON, SettlementConfigInputToJSON } from './SettlementConfigInput.js';
|
|
14
12
|
|
|
15
13
|
/* tslint:disable */
|
|
16
14
|
function FlowFromJSON(json) {
|
|
@@ -25,8 +23,6 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
23
|
'mode': FlowModeEnumFromJSON(json['mode']),
|
|
26
24
|
'amount': json['amount'],
|
|
27
25
|
'currency': json['currency'],
|
|
28
|
-
'settlementConfig': SettlementConfigInputFromJSON(json['settlementConfig']),
|
|
29
|
-
'destinationConfig': !exists(json, 'destinationConfig') ? undefined : DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
30
26
|
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
31
27
|
'userId': !exists(json, 'userId') ? undefined : json['userId'],
|
|
32
28
|
'executionState': FlowExecutionStateEnumFromJSON(json['executionState']),
|
|
@@ -68,8 +64,6 @@ function FlowToJSON(value) {
|
|
|
68
64
|
'mode': FlowModeEnumToJSON(value.mode),
|
|
69
65
|
'amount': value.amount,
|
|
70
66
|
'currency': value.currency,
|
|
71
|
-
'settlementConfig': SettlementConfigInputToJSON(value.settlementConfig),
|
|
72
|
-
'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
|
|
73
67
|
'memo': value.memo,
|
|
74
68
|
'userId': value.userId,
|
|
75
69
|
'executionState': FlowExecutionStateEnumToJSON(value.executionState),
|
package/src/models/FlowQuote.cjs
CHANGED
|
@@ -20,7 +20,6 @@ function FlowQuoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
20
|
'toAmount': json['toAmount'],
|
|
21
21
|
'fees': !runtime.exists(json, 'fees') ? undefined : FlowFeeBreakdown.FlowFeeBreakdownFromJSON(json['fees']),
|
|
22
22
|
'estimatedTimeSec': !runtime.exists(json, 'estimatedTimeSec') ? undefined : json['estimatedTimeSec'],
|
|
23
|
-
'rawQuote': !runtime.exists(json, 'rawQuote') ? undefined : json['rawQuote'],
|
|
24
23
|
'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined : SwapSigningPayload.SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
25
24
|
'createdAt': (new Date(json['createdAt'])),
|
|
26
25
|
'expiresAt': (new Date(json['expiresAt'])),
|
|
@@ -39,7 +38,6 @@ function FlowQuoteToJSON(value) {
|
|
|
39
38
|
'toAmount': value.toAmount,
|
|
40
39
|
'fees': FlowFeeBreakdown.FlowFeeBreakdownToJSON(value.fees),
|
|
41
40
|
'estimatedTimeSec': value.estimatedTimeSec,
|
|
42
|
-
'rawQuote': value.rawQuote,
|
|
43
41
|
'signingPayload': SwapSigningPayload.SwapSigningPayloadToJSON(value.signingPayload),
|
|
44
42
|
'createdAt': (value.createdAt.toISOString()),
|
|
45
43
|
'expiresAt': (value.expiresAt.toISOString()),
|
|
@@ -47,12 +47,6 @@ export interface FlowQuote {
|
|
|
47
47
|
* @memberof FlowQuote
|
|
48
48
|
*/
|
|
49
49
|
estimatedTimeSec?: number;
|
|
50
|
-
/**
|
|
51
|
-
* Raw quote result data from the swap provider
|
|
52
|
-
* @type {object}
|
|
53
|
-
* @memberof FlowQuote
|
|
54
|
-
*/
|
|
55
|
-
rawQuote?: object;
|
|
56
50
|
/**
|
|
57
51
|
*
|
|
58
52
|
* @type {SwapSigningPayload}
|
package/src/models/FlowQuote.js
CHANGED
|
@@ -16,7 +16,6 @@ function FlowQuoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
16
|
'toAmount': json['toAmount'],
|
|
17
17
|
'fees': !exists(json, 'fees') ? undefined : FlowFeeBreakdownFromJSON(json['fees']),
|
|
18
18
|
'estimatedTimeSec': !exists(json, 'estimatedTimeSec') ? undefined : json['estimatedTimeSec'],
|
|
19
|
-
'rawQuote': !exists(json, 'rawQuote') ? undefined : json['rawQuote'],
|
|
20
19
|
'signingPayload': !exists(json, 'signingPayload') ? undefined : SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
21
20
|
'createdAt': (new Date(json['createdAt'])),
|
|
22
21
|
'expiresAt': (new Date(json['expiresAt'])),
|
|
@@ -35,7 +34,6 @@ function FlowQuoteToJSON(value) {
|
|
|
35
34
|
'toAmount': value.toAmount,
|
|
36
35
|
'fees': FlowFeeBreakdownToJSON(value.fees),
|
|
37
36
|
'estimatedTimeSec': value.estimatedTimeSec,
|
|
38
|
-
'rawQuote': value.rawQuote,
|
|
39
37
|
'signingPayload': SwapSigningPayloadToJSON(value.signingPayload),
|
|
40
38
|
'createdAt': (value.createdAt.toISOString()),
|
|
41
39
|
'expiresAt': (value.expiresAt.toISOString()),
|
|
@@ -26,6 +26,7 @@ exports.ZerodevBundlerProvider = void 0;
|
|
|
26
26
|
ZerodevBundlerProvider["Pimlico"] = "PIMLICO";
|
|
27
27
|
ZerodevBundlerProvider["Alchemy"] = "ALCHEMY";
|
|
28
28
|
ZerodevBundlerProvider["Gelato"] = "GELATO";
|
|
29
|
+
ZerodevBundlerProvider["UltraRelay"] = "ULTRA_RELAY";
|
|
29
30
|
})(exports.ZerodevBundlerProvider || (exports.ZerodevBundlerProvider = {}));
|
|
30
31
|
function ZerodevBundlerProviderFromJSON(json) {
|
|
31
32
|
return ZerodevBundlerProviderFromJSONTyped(json);
|
|
@@ -18,7 +18,8 @@ export declare enum ZerodevBundlerProvider {
|
|
|
18
18
|
Stackup = "STACKUP",
|
|
19
19
|
Pimlico = "PIMLICO",
|
|
20
20
|
Alchemy = "ALCHEMY",
|
|
21
|
-
Gelato = "GELATO"
|
|
21
|
+
Gelato = "GELATO",
|
|
22
|
+
UltraRelay = "ULTRA_RELAY"
|
|
22
23
|
}
|
|
23
24
|
export declare function ZerodevBundlerProviderFromJSON(json: any): ZerodevBundlerProvider;
|
|
24
25
|
export declare function ZerodevBundlerProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZerodevBundlerProvider;
|
|
@@ -22,6 +22,7 @@ var ZerodevBundlerProvider;
|
|
|
22
22
|
ZerodevBundlerProvider["Pimlico"] = "PIMLICO";
|
|
23
23
|
ZerodevBundlerProvider["Alchemy"] = "ALCHEMY";
|
|
24
24
|
ZerodevBundlerProvider["Gelato"] = "GELATO";
|
|
25
|
+
ZerodevBundlerProvider["UltraRelay"] = "ULTRA_RELAY";
|
|
25
26
|
})(ZerodevBundlerProvider || (ZerodevBundlerProvider = {}));
|
|
26
27
|
function ZerodevBundlerProviderFromJSON(json) {
|
|
27
28
|
return ZerodevBundlerProviderFromJSONTyped(json);
|