@dynamic-labs/sdk-api-core 0.0.1063 → 0.0.1064
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
|
@@ -21,6 +21,7 @@ function FlowAttachSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
21
|
'fromChainId': !runtime.exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
22
22
|
'fromChainName': !runtime.exists(json, 'fromChainName') ? undefined : ChainEnum.ChainEnumFromJSON(json['fromChainName']),
|
|
23
23
|
'exchangeProvider': !runtime.exists(json, 'exchangeProvider') ? undefined : ExchangeKeyEnum.ExchangeKeyEnumFromJSON(json['exchangeProvider']),
|
|
24
|
+
'refundAddress': !runtime.exists(json, 'refundAddress') ? undefined : json['refundAddress'],
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
function FlowAttachSourceRequestToJSON(value) {
|
|
@@ -36,6 +37,7 @@ function FlowAttachSourceRequestToJSON(value) {
|
|
|
36
37
|
'fromChainId': value.fromChainId,
|
|
37
38
|
'fromChainName': ChainEnum.ChainEnumToJSON(value.fromChainName),
|
|
38
39
|
'exchangeProvider': ExchangeKeyEnum.ExchangeKeyEnumToJSON(value.exchangeProvider),
|
|
40
|
+
'refundAddress': value.refundAddress,
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowAttachSourceRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/FlowAttachSourceRequest.ts"],"sourcesContent":null,"names":["FlowSourceTypeEnumFromJSON","exists","ChainEnumFromJSON","ExchangeKeyEnumFromJSON","FlowSourceTypeEnumToJSON","ChainEnumToJSON","ExchangeKeyEnumToJSON"],"mappings":";;;;;;;;;AAAA;
|
|
1
|
+
{"version":3,"file":"FlowAttachSourceRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/FlowAttachSourceRequest.ts"],"sourc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A,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,YAAY,EAAEG,2CAAwB,CAAC,KAAK,CAAC,UAAU,CAAC;QACxD,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,aAAa,EAAE,KAAK,CAAC,WAAW;AAChC,QAAA,eAAe,EAAEC,yBAAe,CAAC,KAAK,CAAC,aAAa,CAAC;AACrD,QAAA,kBAAkB,EAAEC,qCAAqB,CAAC,KAAK,CAAC,gBAAgB,CAAC;QACjE,eAAe,EAAE,KAAK,CAAC,aAAa;KACvC,CAAC;AACN;;;;;;"}
|
|
@@ -13,7 +13,7 @@ import { ChainEnum } from './ChainEnum';
|
|
|
13
13
|
import { ExchangeKeyEnum } from './ExchangeKeyEnum';
|
|
14
14
|
import { FlowSourceTypeEnum } from './FlowSourceTypeEnum';
|
|
15
15
|
/**
|
|
16
|
-
* fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet'. When sourceType is 'exchange', they are optional; pass exchangeProvider to generate the buy URL and create the exchange source record server-side. When sourceType is 'deposit_address', fromChainId and fromChainName are required
|
|
16
|
+
* fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet'. When sourceType is 'exchange', they are optional; pass exchangeProvider to generate the buy URL and create the exchange source record server-side. When sourceType is 'deposit_address', fromChainId and fromChainName are required; fromAddress is not accepted (use refundAddress instead to specify where funds should be returned if the deposit fails).
|
|
17
17
|
* @export
|
|
18
18
|
* @interface FlowAttachSourceRequest
|
|
19
19
|
*/
|
|
@@ -48,6 +48,12 @@ export interface FlowAttachSourceRequest {
|
|
|
48
48
|
* @memberof FlowAttachSourceRequest
|
|
49
49
|
*/
|
|
50
50
|
exchangeProvider?: ExchangeKeyEnum;
|
|
51
|
+
/**
|
|
52
|
+
* Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON)
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof FlowAttachSourceRequest
|
|
55
|
+
*/
|
|
56
|
+
refundAddress?: string;
|
|
51
57
|
}
|
|
52
58
|
export declare function FlowAttachSourceRequestFromJSON(json: any): FlowAttachSourceRequest;
|
|
53
59
|
export declare function FlowAttachSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowAttachSourceRequest;
|
|
@@ -17,6 +17,7 @@ function FlowAttachSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
17
|
'fromChainId': !exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
18
18
|
'fromChainName': !exists(json, 'fromChainName') ? undefined : ChainEnumFromJSON(json['fromChainName']),
|
|
19
19
|
'exchangeProvider': !exists(json, 'exchangeProvider') ? undefined : ExchangeKeyEnumFromJSON(json['exchangeProvider']),
|
|
20
|
+
'refundAddress': !exists(json, 'refundAddress') ? undefined : json['refundAddress'],
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
function FlowAttachSourceRequestToJSON(value) {
|
|
@@ -32,6 +33,7 @@ function FlowAttachSourceRequestToJSON(value) {
|
|
|
32
33
|
'fromChainId': value.fromChainId,
|
|
33
34
|
'fromChainName': ChainEnumToJSON(value.fromChainName),
|
|
34
35
|
'exchangeProvider': ExchangeKeyEnumToJSON(value.exchangeProvider),
|
|
36
|
+
'refundAddress': value.refundAddress,
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowAttachSourceRequest.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowAttachSourceRequest.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;AAAA;
|
|
1
|
+
{"version":3,"file":"FlowAttachSourceRequest.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowAttachSourceRequest.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;AAAA;AA8EM,SAAU,+BAA+B,CAAC,IAAS,EAAA;AACrD,IAAA,OAAO,oCAAoC,CA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