@dynamic-labs/sdk-api-core 0.0.855 → 0.0.856
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
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
5
6
|
var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
|
|
6
7
|
var WaasChainEnum = require('./WaasChainEnum.cjs');
|
|
7
8
|
|
|
@@ -17,6 +18,7 @@ function ImportWaasPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
18
|
'chain': WaasChainEnum.WaasChainEnumFromJSON(json['chain']),
|
|
18
19
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
19
20
|
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
21
|
+
'legacyWalletId': !runtime.exists(json, 'legacyWalletId') ? undefined : json['legacyWalletId'],
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
@@ -30,6 +32,7 @@ function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
|
30
32
|
'chain': WaasChainEnum.WaasChainEnumToJSON(value.chain),
|
|
31
33
|
'clientKeygenIds': value.clientKeygenIds,
|
|
32
34
|
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
35
|
+
'legacyWalletId': value.legacyWalletId,
|
|
33
36
|
};
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -35,6 +35,12 @@ export interface ImportWaasPrivateKeyRequest {
|
|
|
35
35
|
* @memberof ImportWaasPrivateKeyRequest
|
|
36
36
|
*/
|
|
37
37
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
38
|
+
/**
|
|
39
|
+
* Optional wallet ID of an existing legacy wallet being migrated
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ImportWaasPrivateKeyRequest
|
|
42
|
+
*/
|
|
43
|
+
legacyWalletId?: string;
|
|
38
44
|
}
|
|
39
45
|
export declare function ImportWaasPrivateKeyRequestFromJSON(json: any): ImportWaasPrivateKeyRequest;
|
|
40
46
|
export declare function ImportWaasPrivateKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportWaasPrivateKeyRequest;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
1
2
|
import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
|
|
2
3
|
import { WaasChainEnumFromJSON, WaasChainEnumToJSON } from './WaasChainEnum.js';
|
|
3
4
|
|
|
@@ -13,6 +14,7 @@ function ImportWaasPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
14
|
'chain': WaasChainEnumFromJSON(json['chain']),
|
|
14
15
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
15
16
|
'thresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
17
|
+
'legacyWalletId': !exists(json, 'legacyWalletId') ? undefined : json['legacyWalletId'],
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
@@ -26,6 +28,7 @@ function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
|
26
28
|
'chain': WaasChainEnumToJSON(value.chain),
|
|
27
29
|
'clientKeygenIds': value.clientKeygenIds,
|
|
28
30
|
'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
31
|
+
'legacyWalletId': value.legacyWalletId,
|
|
29
32
|
};
|
|
30
33
|
}
|
|
31
34
|
|