@dynamic-labs/sdk-api 0.0.843 → 0.0.844
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/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/CreateWaasAccountRequest.cjs +2 -0
- package/src/models/CreateWaasAccountRequest.d.ts +6 -0
- package/src/models/CreateWaasAccountRequest.js +2 -0
- package/src/models/ExportWaasWalletPrivateKeyRequest.cjs +4 -12
- package/src/models/ExportWaasWalletPrivateKeyRequest.d.ts +6 -0
- package/src/models/ExportWaasWalletPrivateKeyRequest.js +4 -12
- package/src/models/SignMessageWithWaasRequest.cjs +3 -0
- package/src/models/SignMessageWithWaasRequest.d.ts +7 -0
- package/src/models/SignMessageWithWaasRequest.js +3 -0
- package/src/models/WaasChainEnum.cjs +1 -0
- package/src/models/WaasChainEnum.d.ts +2 -1
- package/src/models/WaasChainEnum.js +1 -0
- package/src/models/WalletBitcoinConfig.cjs +35 -0
- package/src/models/WalletBitcoinConfig.d.ts +33 -0
- package/src/models/WalletBitcoinConfig.js +29 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -601,6 +601,7 @@ var WaasWalletSettings = require('./models/WaasWalletSettings.cjs');
|
|
|
601
601
|
var Wallet = require('./models/Wallet.cjs');
|
|
602
602
|
var WalletAdditionalAddress = require('./models/WalletAdditionalAddress.cjs');
|
|
603
603
|
var WalletAddressType = require('./models/WalletAddressType.cjs');
|
|
604
|
+
var WalletBitcoinConfig = require('./models/WalletBitcoinConfig.cjs');
|
|
604
605
|
var WalletDetail = require('./models/WalletDetail.cjs');
|
|
605
606
|
var WalletKeyShareInfo = require('./models/WalletKeyShareInfo.cjs');
|
|
606
607
|
var WalletKeyShareInfoWithEncryptedAccountCredential = require('./models/WalletKeyShareInfoWithEncryptedAccountCredential.cjs');
|
|
@@ -2723,6 +2724,9 @@ Object.defineProperty(exports, 'WalletAddressType', {
|
|
|
2723
2724
|
exports.WalletAddressTypeFromJSON = WalletAddressType.WalletAddressTypeFromJSON;
|
|
2724
2725
|
exports.WalletAddressTypeFromJSONTyped = WalletAddressType.WalletAddressTypeFromJSONTyped;
|
|
2725
2726
|
exports.WalletAddressTypeToJSON = WalletAddressType.WalletAddressTypeToJSON;
|
|
2727
|
+
exports.WalletBitcoinConfigFromJSON = WalletBitcoinConfig.WalletBitcoinConfigFromJSON;
|
|
2728
|
+
exports.WalletBitcoinConfigFromJSONTyped = WalletBitcoinConfig.WalletBitcoinConfigFromJSONTyped;
|
|
2729
|
+
exports.WalletBitcoinConfigToJSON = WalletBitcoinConfig.WalletBitcoinConfigToJSON;
|
|
2726
2730
|
exports.WalletDetailFromJSON = WalletDetail.WalletDetailFromJSON;
|
|
2727
2731
|
exports.WalletDetailFromJSONTyped = WalletDetail.WalletDetailFromJSONTyped;
|
|
2728
2732
|
exports.WalletDetailToJSON = WalletDetail.WalletDetailToJSON;
|
package/src/index.js
CHANGED
|
@@ -597,6 +597,7 @@ export { WaasWalletSettingsFromJSON, WaasWalletSettingsFromJSONTyped, WaasWallet
|
|
|
597
597
|
export { WalletFromJSON, WalletFromJSONTyped, WalletToJSON } from './models/Wallet.js';
|
|
598
598
|
export { WalletAdditionalAddressFromJSON, WalletAdditionalAddressFromJSONTyped, WalletAdditionalAddressToJSON } from './models/WalletAdditionalAddress.js';
|
|
599
599
|
export { WalletAddressType, WalletAddressTypeFromJSON, WalletAddressTypeFromJSONTyped, WalletAddressTypeToJSON } from './models/WalletAddressType.js';
|
|
600
|
+
export { WalletBitcoinConfigFromJSON, WalletBitcoinConfigFromJSONTyped, WalletBitcoinConfigToJSON } from './models/WalletBitcoinConfig.js';
|
|
600
601
|
export { WalletDetailFromJSON, WalletDetailFromJSONTyped, WalletDetailToJSON } from './models/WalletDetail.js';
|
|
601
602
|
export { WalletKeyShareInfoFromJSON, WalletKeyShareInfoFromJSONTyped, WalletKeyShareInfoToJSON } from './models/WalletKeyShareInfo.js';
|
|
602
603
|
export { WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped, WalletKeyShareInfoWithEncryptedAccountCredentialToJSON } from './models/WalletKeyShareInfoWithEncryptedAccountCredential.js';
|
|
@@ -19,6 +19,7 @@ function CreateWaasAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
19
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
20
20
|
'thresholdSignatureScheme': !runtime.exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
21
21
|
'skipLock': !runtime.exists(json, 'skipLock') ? undefined : json['skipLock'],
|
|
22
|
+
'addressType': !runtime.exists(json, 'addressType') ? undefined : json['addressType'],
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
function CreateWaasAccountRequestToJSON(value) {
|
|
@@ -33,6 +34,7 @@ function CreateWaasAccountRequestToJSON(value) {
|
|
|
33
34
|
'clientKeygenIds': value.clientKeygenIds,
|
|
34
35
|
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
35
36
|
'skipLock': value.skipLock,
|
|
37
|
+
'addressType': value.addressType,
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -41,6 +41,12 @@ export interface CreateWaasAccountRequest {
|
|
|
41
41
|
* @memberof CreateWaasAccountRequest
|
|
42
42
|
*/
|
|
43
43
|
skipLock?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateWaasAccountRequest
|
|
48
|
+
*/
|
|
49
|
+
addressType?: string;
|
|
44
50
|
}
|
|
45
51
|
export declare function CreateWaasAccountRequestFromJSON(json: any): CreateWaasAccountRequest;
|
|
46
52
|
export declare function CreateWaasAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWaasAccountRequest;
|
|
@@ -15,6 +15,7 @@ function CreateWaasAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
16
16
|
'thresholdSignatureScheme': !exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
17
17
|
'skipLock': !exists(json, 'skipLock') ? undefined : json['skipLock'],
|
|
18
|
+
'addressType': !exists(json, 'addressType') ? undefined : json['addressType'],
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
function CreateWaasAccountRequestToJSON(value) {
|
|
@@ -29,6 +30,7 @@ function CreateWaasAccountRequestToJSON(value) {
|
|
|
29
30
|
'clientKeygenIds': value.clientKeygenIds,
|
|
30
31
|
'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
31
32
|
'skipLock': value.skipLock,
|
|
33
|
+
'addressType': value.addressType,
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
|
|
@@ -2,19 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
5
7
|
/* 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
8
|
function ExportWaasWalletPrivateKeyRequestFromJSON(json) {
|
|
19
9
|
return ExportWaasWalletPrivateKeyRequestFromJSONTyped(json);
|
|
20
10
|
}
|
|
@@ -24,6 +14,7 @@ function ExportWaasWalletPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
24
14
|
}
|
|
25
15
|
return {
|
|
26
16
|
'exportId': json['exportId'],
|
|
17
|
+
'addressType': !runtime.exists(json, 'addressType') ? undefined : json['addressType'],
|
|
27
18
|
};
|
|
28
19
|
}
|
|
29
20
|
function ExportWaasWalletPrivateKeyRequestToJSON(value) {
|
|
@@ -35,6 +26,7 @@ function ExportWaasWalletPrivateKeyRequestToJSON(value) {
|
|
|
35
26
|
}
|
|
36
27
|
return {
|
|
37
28
|
'exportId': value.exportId,
|
|
29
|
+
'addressType': value.addressType,
|
|
38
30
|
};
|
|
39
31
|
}
|
|
40
32
|
|
|
@@ -21,6 +21,12 @@ export interface ExportWaasWalletPrivateKeyRequest {
|
|
|
21
21
|
* @memberof ExportWaasWalletPrivateKeyRequest
|
|
22
22
|
*/
|
|
23
23
|
exportId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ExportWaasWalletPrivateKeyRequest
|
|
28
|
+
*/
|
|
29
|
+
addressType?: string;
|
|
24
30
|
}
|
|
25
31
|
export declare function ExportWaasWalletPrivateKeyRequestFromJSON(json: any): ExportWaasWalletPrivateKeyRequest;
|
|
26
32
|
export declare function ExportWaasWalletPrivateKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportWaasWalletPrivateKeyRequest;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
1
3
|
/* 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
4
|
function ExportWaasWalletPrivateKeyRequestFromJSON(json) {
|
|
15
5
|
return ExportWaasWalletPrivateKeyRequestFromJSONTyped(json);
|
|
16
6
|
}
|
|
@@ -20,6 +10,7 @@ function ExportWaasWalletPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
20
10
|
}
|
|
21
11
|
return {
|
|
22
12
|
'exportId': json['exportId'],
|
|
13
|
+
'addressType': !exists(json, 'addressType') ? undefined : json['addressType'],
|
|
23
14
|
};
|
|
24
15
|
}
|
|
25
16
|
function ExportWaasWalletPrivateKeyRequestToJSON(value) {
|
|
@@ -31,6 +22,7 @@ function ExportWaasWalletPrivateKeyRequestToJSON(value) {
|
|
|
31
22
|
}
|
|
32
23
|
return {
|
|
33
24
|
'exportId': value.exportId,
|
|
25
|
+
'addressType': value.addressType,
|
|
34
26
|
};
|
|
35
27
|
}
|
|
36
28
|
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var SignMessageContext = require('./SignMessageContext.cjs');
|
|
7
|
+
var WalletBitcoinConfig = require('./WalletBitcoinConfig.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
9
10
|
function SignMessageWithWaasRequestFromJSON(json) {
|
|
@@ -18,6 +19,7 @@ function SignMessageWithWaasRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
19
|
'isFormatted': !runtime.exists(json, 'isFormatted') ? undefined : json['isFormatted'],
|
|
19
20
|
'roomId': !runtime.exists(json, 'roomId') ? undefined : json['roomId'],
|
|
20
21
|
'context': !runtime.exists(json, 'context') ? undefined : SignMessageContext.SignMessageContextFromJSON(json['context']),
|
|
22
|
+
'bitcoinConfig': !runtime.exists(json, 'bitcoinConfig') ? undefined : WalletBitcoinConfig.WalletBitcoinConfigFromJSON(json['bitcoinConfig']),
|
|
21
23
|
};
|
|
22
24
|
}
|
|
23
25
|
function SignMessageWithWaasRequestToJSON(value) {
|
|
@@ -32,6 +34,7 @@ function SignMessageWithWaasRequestToJSON(value) {
|
|
|
32
34
|
'isFormatted': value.isFormatted,
|
|
33
35
|
'roomId': value.roomId,
|
|
34
36
|
'context': SignMessageContext.SignMessageContextToJSON(value.context),
|
|
37
|
+
'bitcoinConfig': WalletBitcoinConfig.WalletBitcoinConfigToJSON(value.bitcoinConfig),
|
|
35
38
|
};
|
|
36
39
|
}
|
|
37
40
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { SignMessageContext } from './SignMessageContext';
|
|
13
|
+
import { WalletBitcoinConfig } from './WalletBitcoinConfig';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -40,6 +41,12 @@ export interface SignMessageWithWaasRequest {
|
|
|
40
41
|
* @memberof SignMessageWithWaasRequest
|
|
41
42
|
*/
|
|
42
43
|
context?: SignMessageContext;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {WalletBitcoinConfig}
|
|
47
|
+
* @memberof SignMessageWithWaasRequest
|
|
48
|
+
*/
|
|
49
|
+
bitcoinConfig?: WalletBitcoinConfig;
|
|
43
50
|
}
|
|
44
51
|
export declare function SignMessageWithWaasRequestFromJSON(json: any): SignMessageWithWaasRequest;
|
|
45
52
|
export declare function SignMessageWithWaasRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageWithWaasRequest;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { SignMessageContextFromJSON, SignMessageContextToJSON } from './SignMessageContext.js';
|
|
3
|
+
import { WalletBitcoinConfigFromJSON, WalletBitcoinConfigToJSON } from './WalletBitcoinConfig.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
5
6
|
function SignMessageWithWaasRequestFromJSON(json) {
|
|
@@ -14,6 +15,7 @@ function SignMessageWithWaasRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
15
|
'isFormatted': !exists(json, 'isFormatted') ? undefined : json['isFormatted'],
|
|
15
16
|
'roomId': !exists(json, 'roomId') ? undefined : json['roomId'],
|
|
16
17
|
'context': !exists(json, 'context') ? undefined : SignMessageContextFromJSON(json['context']),
|
|
18
|
+
'bitcoinConfig': !exists(json, 'bitcoinConfig') ? undefined : WalletBitcoinConfigFromJSON(json['bitcoinConfig']),
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
21
|
function SignMessageWithWaasRequestToJSON(value) {
|
|
@@ -28,6 +30,7 @@ function SignMessageWithWaasRequestToJSON(value) {
|
|
|
28
30
|
'isFormatted': value.isFormatted,
|
|
29
31
|
'roomId': value.roomId,
|
|
30
32
|
'context': SignMessageContextToJSON(value.context),
|
|
33
|
+
'bitcoinConfig': WalletBitcoinConfigToJSON(value.bitcoinConfig),
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
|
|
@@ -25,6 +25,7 @@ exports.WaasChainEnum = void 0;
|
|
|
25
25
|
WaasChainEnum["Evm"] = "EVM";
|
|
26
26
|
WaasChainEnum["Svm"] = "SVM";
|
|
27
27
|
WaasChainEnum["Sui"] = "SUI";
|
|
28
|
+
WaasChainEnum["Btc"] = "BTC";
|
|
28
29
|
})(exports.WaasChainEnum || (exports.WaasChainEnum = {}));
|
|
29
30
|
function WaasChainEnumFromJSON(json) {
|
|
30
31
|
return WaasChainEnumFromJSONTyped(json);
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
export declare enum WaasChainEnum {
|
|
18
18
|
Evm = "EVM",
|
|
19
19
|
Svm = "SVM",
|
|
20
|
-
Sui = "SUI"
|
|
20
|
+
Sui = "SUI",
|
|
21
|
+
Btc = "BTC"
|
|
21
22
|
}
|
|
22
23
|
export declare function WaasChainEnumFromJSON(json: any): WaasChainEnum;
|
|
23
24
|
export declare function WaasChainEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasChainEnum;
|
|
@@ -21,6 +21,7 @@ var WaasChainEnum;
|
|
|
21
21
|
WaasChainEnum["Evm"] = "EVM";
|
|
22
22
|
WaasChainEnum["Svm"] = "SVM";
|
|
23
23
|
WaasChainEnum["Sui"] = "SUI";
|
|
24
|
+
WaasChainEnum["Btc"] = "BTC";
|
|
24
25
|
})(WaasChainEnum || (WaasChainEnum = {}));
|
|
25
26
|
function WaasChainEnumFromJSON(json) {
|
|
26
27
|
return WaasChainEnumFromJSONTyped(json);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WalletBitcoinConfigFromJSON(json) {
|
|
9
|
+
return WalletBitcoinConfigFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WalletBitcoinConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'addressType': !runtime.exists(json, 'addressType') ? undefined : json['addressType'],
|
|
17
|
+
'network': !runtime.exists(json, 'network') ? undefined : json['network'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function WalletBitcoinConfigToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'addressType': value.addressType,
|
|
29
|
+
'network': value.network,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.WalletBitcoinConfigFromJSON = WalletBitcoinConfigFromJSON;
|
|
34
|
+
exports.WalletBitcoinConfigFromJSONTyped = WalletBitcoinConfigFromJSONTyped;
|
|
35
|
+
exports.WalletBitcoinConfigToJSON = WalletBitcoinConfigToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 WalletBitcoinConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface WalletBitcoinConfig {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WalletBitcoinConfig
|
|
22
|
+
*/
|
|
23
|
+
addressType?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WalletBitcoinConfig
|
|
28
|
+
*/
|
|
29
|
+
network?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function WalletBitcoinConfigFromJSON(json: any): WalletBitcoinConfig;
|
|
32
|
+
export declare function WalletBitcoinConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletBitcoinConfig;
|
|
33
|
+
export declare function WalletBitcoinConfigToJSON(value?: WalletBitcoinConfig | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WalletBitcoinConfigFromJSON(json) {
|
|
5
|
+
return WalletBitcoinConfigFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WalletBitcoinConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'addressType': !exists(json, 'addressType') ? undefined : json['addressType'],
|
|
13
|
+
'network': !exists(json, 'network') ? undefined : json['network'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function WalletBitcoinConfigToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'addressType': value.addressType,
|
|
25
|
+
'network': value.network,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { WalletBitcoinConfigFromJSON, WalletBitcoinConfigFromJSONTyped, WalletBitcoinConfigToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -560,6 +560,7 @@ export * from './WaasWalletSettings';
|
|
|
560
560
|
export * from './Wallet';
|
|
561
561
|
export * from './WalletAdditionalAddress';
|
|
562
562
|
export * from './WalletAddressType';
|
|
563
|
+
export * from './WalletBitcoinConfig';
|
|
563
564
|
export * from './WalletDetail';
|
|
564
565
|
export * from './WalletKeyShareInfo';
|
|
565
566
|
export * from './WalletKeyShareInfoWithEncryptedAccountCredential';
|