@dynamic-labs-wallet/core 0.0.72 → 0.0.73
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/index.cjs.js +3 -4
- package/index.esm.js +3 -4
- package/package.json +1 -1
- package/src/constants.d.ts +3 -3
- package/src/types.d.ts +1 -117
- package/src/types.d.ts.map +1 -1
package/index.cjs.js
CHANGED
|
@@ -58,9 +58,9 @@ var BackupLocation = /*#__PURE__*/ function(BackupLocation) {
|
|
|
58
58
|
return BackupLocation;
|
|
59
59
|
}({});
|
|
60
60
|
const IFRAME_DOMAIN_MAP = {
|
|
61
|
-
development: 'http://localhost:
|
|
62
|
-
preprod: 'https://
|
|
63
|
-
production: 'https://
|
|
61
|
+
development: 'http://localhost:8090',
|
|
62
|
+
preprod: 'https://waas.dynamic-preprod.xyz',
|
|
63
|
+
production: 'https://waas.dynamicauth.com'
|
|
64
64
|
};
|
|
65
65
|
const ChainEnumToVerifiedCredentialName = {
|
|
66
66
|
BTC: 'bip122',
|
|
@@ -454,7 +454,6 @@ var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
|
454
454
|
SuccessEventType["CeremonyComplete"] = "ceremony_complete";
|
|
455
455
|
return SuccessEventType;
|
|
456
456
|
}({});
|
|
457
|
-
// iframe communication types end
|
|
458
457
|
|
|
459
458
|
/**
|
|
460
459
|
* Creates a promise that resolves when a specific event is received from an event stream.
|
package/index.esm.js
CHANGED
|
@@ -56,9 +56,9 @@ var BackupLocation = /*#__PURE__*/ function(BackupLocation) {
|
|
|
56
56
|
return BackupLocation;
|
|
57
57
|
}({});
|
|
58
58
|
const IFRAME_DOMAIN_MAP = {
|
|
59
|
-
development: 'http://localhost:
|
|
60
|
-
preprod: 'https://
|
|
61
|
-
production: 'https://
|
|
59
|
+
development: 'http://localhost:8090',
|
|
60
|
+
preprod: 'https://waas.dynamic-preprod.xyz',
|
|
61
|
+
production: 'https://waas.dynamicauth.com'
|
|
62
62
|
};
|
|
63
63
|
const ChainEnumToVerifiedCredentialName = {
|
|
64
64
|
BTC: 'bip122',
|
|
@@ -452,7 +452,6 @@ var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
|
452
452
|
SuccessEventType["CeremonyComplete"] = "ceremony_complete";
|
|
453
453
|
return SuccessEventType;
|
|
454
454
|
}({});
|
|
455
|
-
// iframe communication types end
|
|
456
455
|
|
|
457
456
|
/**
|
|
458
457
|
* Creates a promise that resolves when a specific event is received from an event stream.
|
package/package.json
CHANGED
package/src/constants.d.ts
CHANGED
|
@@ -51,9 +51,9 @@ export declare enum BackupLocation {
|
|
|
51
51
|
EXTERNAL = "external"
|
|
52
52
|
}
|
|
53
53
|
export declare const IFRAME_DOMAIN_MAP: {
|
|
54
|
-
readonly development: "http://localhost:
|
|
55
|
-
readonly preprod: "https://
|
|
56
|
-
readonly production: "https://
|
|
54
|
+
readonly development: "http://localhost:8090";
|
|
55
|
+
readonly preprod: "https://waas.dynamic-preprod.xyz";
|
|
56
|
+
readonly production: "https://waas.dynamicauth.com";
|
|
57
57
|
};
|
|
58
58
|
export declare const ChainEnumToVerifiedCredentialName: {
|
|
59
59
|
[key: string]: string;
|
package/src/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BackupLocation
|
|
1
|
+
import { BackupLocation } from './constants';
|
|
2
2
|
import { ThresholdSignatureScheme } from './mpc';
|
|
3
3
|
export type InitKeygenResult = {
|
|
4
4
|
keygenId: string;
|
|
@@ -69,120 +69,4 @@ export type BackupData = {
|
|
|
69
69
|
shareCount: number;
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
|
-
export type IframeRequestMessages = {
|
|
73
|
-
sendAuthToken: (token: string) => Promise<void>;
|
|
74
|
-
createWalletAccount: (request: CreateWalletAccountRequest) => Promise<CreateWalletAccountResponse>;
|
|
75
|
-
getWallets: () => Promise<GetWalletResponse[]>;
|
|
76
|
-
getWallet: (request: GetWalletRequest) => Promise<GetWalletResponse>;
|
|
77
|
-
signMessage: (request: SignMessageRequest) => Promise<string>;
|
|
78
|
-
signRawMessage: (request: SignRawMessageRequest) => Promise<string>;
|
|
79
|
-
requiresPasswordForOperation: (request: RequiresPasswordForOperationRequest) => Promise<boolean>;
|
|
80
|
-
signTransaction: (request: SignTransactionRequest) => Promise<string>;
|
|
81
|
-
isPasswordEncrypted: (request: IsPasswordEncryptedRequest) => Promise<boolean>;
|
|
82
|
-
backupKeySharesToGoogleDrive: (request: BackupKeySharesToGoogleDriveRequest) => Promise<void>;
|
|
83
|
-
restoreBackupFromGoogleDrive: (request: RestoreBackupFromGoogleDriveRequest) => Promise<void>;
|
|
84
|
-
refreshWalletAccountShares: (request: RefreshWalletAccountSharesRequest) => Promise<void>;
|
|
85
|
-
reshare: (request: ReshareRequest) => Promise<void>;
|
|
86
|
-
exportPrivateKey: (request: ExportPrivateKeyRequest) => Promise<void>;
|
|
87
|
-
verifyPassword: (request: VerifyPasswordRequest) => Promise<void>;
|
|
88
|
-
updatePassword: (request: UpdatePasswordRequest) => Promise<void>;
|
|
89
|
-
importPrivateKey: (request: ImportPrivateKeyRequest) => Promise<CreateWalletAccountResponse>;
|
|
90
|
-
exportClientKeyshares: (request: ExportClientKeysharesRequest) => Promise<void>;
|
|
91
|
-
offlineExportPrivateKey: (request: OfflineExportPrivateKeyRequest) => Promise<OfflineExportPrivateKeyResponse>;
|
|
92
|
-
};
|
|
93
|
-
export type CreateWalletAccountRequest = {
|
|
94
|
-
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
95
|
-
password?: string;
|
|
96
|
-
};
|
|
97
|
-
export type CreateWalletAccountResponse = {
|
|
98
|
-
accountAddress: string;
|
|
99
|
-
publicKeyHex: string;
|
|
100
|
-
rawPublicKey: string | Uint8Array | undefined;
|
|
101
|
-
};
|
|
102
|
-
export type GetWalletResponse = {
|
|
103
|
-
accountAddress: string;
|
|
104
|
-
chainName: string;
|
|
105
|
-
walletId: string;
|
|
106
|
-
clientKeySharesBackupInfo: KeyShareBackupInfo;
|
|
107
|
-
derivationPath: string;
|
|
108
|
-
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
109
|
-
};
|
|
110
|
-
export type GetWalletRequest = {
|
|
111
|
-
accountAddress: string;
|
|
112
|
-
walletOperation: WalletOperation;
|
|
113
|
-
shareCount?: number;
|
|
114
|
-
password?: string;
|
|
115
|
-
};
|
|
116
|
-
export type SignMessageRequest = {
|
|
117
|
-
message: string;
|
|
118
|
-
accountAddress: string;
|
|
119
|
-
password?: string;
|
|
120
|
-
};
|
|
121
|
-
export type SignRawMessageRequest = {
|
|
122
|
-
message: string;
|
|
123
|
-
accountAddress: string;
|
|
124
|
-
password?: string;
|
|
125
|
-
};
|
|
126
|
-
export type RequiresPasswordForOperationRequest = {
|
|
127
|
-
accountAddress: string;
|
|
128
|
-
walletOperation?: WalletOperation;
|
|
129
|
-
};
|
|
130
|
-
export type SignTransactionRequest = {
|
|
131
|
-
senderAddress: string;
|
|
132
|
-
transaction: string;
|
|
133
|
-
password?: string;
|
|
134
|
-
};
|
|
135
|
-
export type IsPasswordEncryptedRequest = {
|
|
136
|
-
accountAddress: string;
|
|
137
|
-
};
|
|
138
|
-
export type BackupKeySharesToGoogleDriveRequest = {
|
|
139
|
-
accountAddress: string;
|
|
140
|
-
password?: string;
|
|
141
|
-
};
|
|
142
|
-
export type RestoreBackupFromGoogleDriveRequest = {
|
|
143
|
-
accountAddress: string;
|
|
144
|
-
password?: string;
|
|
145
|
-
};
|
|
146
|
-
export type RefreshWalletAccountSharesRequest = {
|
|
147
|
-
accountAddress: string;
|
|
148
|
-
chainName: string;
|
|
149
|
-
password?: string;
|
|
150
|
-
};
|
|
151
|
-
export type ReshareRequest = {
|
|
152
|
-
chainName: string;
|
|
153
|
-
accountAddress: string;
|
|
154
|
-
oldThresholdSignatureScheme: ThresholdSignatureScheme;
|
|
155
|
-
newThresholdSignatureScheme: ThresholdSignatureScheme;
|
|
156
|
-
password?: string;
|
|
157
|
-
};
|
|
158
|
-
export type ExportPrivateKeyRequest = {
|
|
159
|
-
accountAddress: string;
|
|
160
|
-
password?: string;
|
|
161
|
-
};
|
|
162
|
-
export type VerifyPasswordRequest = {
|
|
163
|
-
accountAddress: string;
|
|
164
|
-
password?: string;
|
|
165
|
-
walletOperation?: WalletOperation;
|
|
166
|
-
};
|
|
167
|
-
export type UpdatePasswordRequest = {
|
|
168
|
-
accountAddress: string;
|
|
169
|
-
existingPassword: string;
|
|
170
|
-
newPassword: string;
|
|
171
|
-
};
|
|
172
|
-
export type ImportPrivateKeyRequest = {
|
|
173
|
-
privateKey: string;
|
|
174
|
-
chainName: string;
|
|
175
|
-
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
176
|
-
password?: string;
|
|
177
|
-
};
|
|
178
|
-
export type ExportClientKeysharesRequest = {
|
|
179
|
-
accountAddress: string;
|
|
180
|
-
password?: string;
|
|
181
|
-
};
|
|
182
|
-
export type OfflineExportPrivateKeyRequest = {
|
|
183
|
-
base64Args: string;
|
|
184
|
-
};
|
|
185
|
-
export type OfflineExportPrivateKeyResponse = {
|
|
186
|
-
derivedPrivateKey: string | undefined;
|
|
187
|
-
};
|
|
188
72
|
//# sourceMappingURL=types.d.ts.map
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../packages/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../packages/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,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