@dynamic-labs/sdk-api 0.0.809 → 0.0.810
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,8 +2,10 @@
|
|
|
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');
|
|
8
|
+
var WalletKeyShareInfo = require('./WalletKeyShareInfo.cjs');
|
|
7
9
|
|
|
8
10
|
/* tslint:disable */
|
|
9
11
|
function WaasWalletFromJSON(json) {
|
|
@@ -19,6 +21,7 @@ function WaasWalletFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
21
|
'walletId': json['walletId'],
|
|
20
22
|
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
21
23
|
'derivationPath': json['derivationPath'],
|
|
24
|
+
'keyShares': !runtime.exists(json, 'keyShares') ? undefined : (json['keyShares'].map(WalletKeyShareInfo.WalletKeyShareInfoFromJSON)),
|
|
22
25
|
};
|
|
23
26
|
}
|
|
24
27
|
function WaasWalletToJSON(value) {
|
|
@@ -34,6 +37,7 @@ function WaasWalletToJSON(value) {
|
|
|
34
37
|
'walletId': value.walletId,
|
|
35
38
|
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
36
39
|
'derivationPath': value.derivationPath,
|
|
40
|
+
'keyShares': value.keyShares === undefined ? undefined : (value.keyShares.map(WalletKeyShareInfo.WalletKeyShareInfoToJSON)),
|
|
37
41
|
};
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
|
|
13
13
|
import { WaasChainEnum } from './WaasChainEnum';
|
|
14
|
+
import { WalletKeyShareInfo } from './WalletKeyShareInfo';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -47,6 +48,12 @@ export interface WaasWallet {
|
|
|
47
48
|
* @memberof WaasWallet
|
|
48
49
|
*/
|
|
49
50
|
derivationPath: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<WalletKeyShareInfo>}
|
|
54
|
+
* @memberof WaasWallet
|
|
55
|
+
*/
|
|
56
|
+
keyShares?: Array<WalletKeyShareInfo>;
|
|
50
57
|
}
|
|
51
58
|
export declare function WaasWalletFromJSON(json: any): WaasWallet;
|
|
52
59
|
export declare function WaasWalletFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWallet;
|
package/src/models/WaasWallet.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
1
2
|
import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
|
|
2
3
|
import { WaasChainEnumFromJSON, WaasChainEnumToJSON } from './WaasChainEnum.js';
|
|
4
|
+
import { WalletKeyShareInfoFromJSON, WalletKeyShareInfoToJSON } from './WalletKeyShareInfo.js';
|
|
3
5
|
|
|
4
6
|
/* tslint:disable */
|
|
5
7
|
function WaasWalletFromJSON(json) {
|
|
@@ -15,6 +17,7 @@ function WaasWalletFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
17
|
'walletId': json['walletId'],
|
|
16
18
|
'thresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
17
19
|
'derivationPath': json['derivationPath'],
|
|
20
|
+
'keyShares': !exists(json, 'keyShares') ? undefined : (json['keyShares'].map(WalletKeyShareInfoFromJSON)),
|
|
18
21
|
};
|
|
19
22
|
}
|
|
20
23
|
function WaasWalletToJSON(value) {
|
|
@@ -30,6 +33,7 @@ function WaasWalletToJSON(value) {
|
|
|
30
33
|
'walletId': value.walletId,
|
|
31
34
|
'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
32
35
|
'derivationPath': value.derivationPath,
|
|
36
|
+
'keyShares': value.keyShares === undefined ? undefined : (value.keyShares.map(WalletKeyShareInfoToJSON)),
|
|
33
37
|
};
|
|
34
38
|
}
|
|
35
39
|
|