@subwallet/extension-base 0.6.7-1wr → 0.6.7-2wr
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/background/KoniTypes.d.ts +23 -0
- package/package.json +1 -1
|
@@ -226,6 +226,7 @@ export interface ApiProps extends ApiState {
|
|
|
226
226
|
isApiReadyOnce: boolean;
|
|
227
227
|
isApiConnected: boolean;
|
|
228
228
|
isEthereum: boolean;
|
|
229
|
+
isEthereumOnly: boolean;
|
|
229
230
|
isApiInitialized: boolean;
|
|
230
231
|
isReady: Promise<ApiProps>;
|
|
231
232
|
apiRetry?: number;
|
|
@@ -393,6 +394,15 @@ export interface RequestAccountExportPrivateKey {
|
|
|
393
394
|
}
|
|
394
395
|
export interface ResponseAccountExportPrivateKey {
|
|
395
396
|
privateKey: string;
|
|
397
|
+
publicKey: string;
|
|
398
|
+
}
|
|
399
|
+
export interface RequestCheckPublicAndSecretKey {
|
|
400
|
+
secretKey: string;
|
|
401
|
+
publicKey: string;
|
|
402
|
+
}
|
|
403
|
+
export interface ResponseCheckPublicAndSecretKey {
|
|
404
|
+
address: string;
|
|
405
|
+
isValid: boolean;
|
|
396
406
|
}
|
|
397
407
|
export interface RequestSeedCreateV2 {
|
|
398
408
|
length?: SeedLengths;
|
|
@@ -769,6 +779,17 @@ export interface AccountExternalError {
|
|
|
769
779
|
code: AccountExternalErrorCode;
|
|
770
780
|
message: string;
|
|
771
781
|
}
|
|
782
|
+
export interface RequestAccountCreateWithSecretKey {
|
|
783
|
+
publicKey: string;
|
|
784
|
+
secretKey: string;
|
|
785
|
+
password: string;
|
|
786
|
+
name: string;
|
|
787
|
+
isAllow: boolean;
|
|
788
|
+
}
|
|
789
|
+
export interface ResponseAccountCreateWithSecretKey {
|
|
790
|
+
errors: AccountExternalError[];
|
|
791
|
+
success: boolean;
|
|
792
|
+
}
|
|
772
793
|
export declare type RequestEvmEvents = null;
|
|
773
794
|
export declare type EvmEventType = 'connect' | 'disconnect' | 'accountsChanged' | 'chainChanged' | 'message' | 'data' | 'reconnect' | 'error';
|
|
774
795
|
export declare type EvmAccountsChangedPayload = string[];
|
|
@@ -1212,6 +1233,7 @@ export interface KoniRequestSignatures {
|
|
|
1212
1233
|
'pri(accounts.create.suriV2)': [RequestAccountCreateSuriV2, ResponseAccountCreateSuriV2];
|
|
1213
1234
|
'pri(accounts.create.externalV2)': [RequestAccountCreateExternalV2, AccountExternalError[]];
|
|
1214
1235
|
'pri(accounts.create.hardwareV2)': [RequestAccountCreateHardwareV2, boolean];
|
|
1236
|
+
'pri(accounts.create.withSecret)': [RequestAccountCreateWithSecretKey, ResponseAccountCreateWithSecretKey];
|
|
1215
1237
|
'pri(accounts.checkTransfer)': [RequestCheckTransfer, ResponseCheckTransfer];
|
|
1216
1238
|
'pri(accounts.checkCrossChainTransfer)': [RequestCheckCrossChainTransfer, ResponseCheckCrossChainTransfer];
|
|
1217
1239
|
'pri(accounts.transfer)': [RequestTransfer, Array<TransferError>, ResponseTransfer];
|
|
@@ -1220,6 +1242,7 @@ export interface KoniRequestSignatures {
|
|
|
1220
1242
|
'pri(json.restoreV2)': [RequestJsonRestoreV2, void];
|
|
1221
1243
|
'pri(json.batchRestoreV2)': [RequestBatchRestoreV2, void];
|
|
1222
1244
|
'pri(accounts.exportPrivateKey)': [RequestAccountExportPrivateKey, ResponseAccountExportPrivateKey];
|
|
1245
|
+
'pri(accounts.checkPublicAndSecretKey)': [RequestCheckPublicAndSecretKey, ResponseCheckPublicAndSecretKey];
|
|
1223
1246
|
'pri(accounts.subscribeWithCurrentAddress)': [RequestAccountSubscribe, boolean, AccountsWithCurrentAddress];
|
|
1224
1247
|
'pri(accounts.subscribeAccountsInputAddress)': [RequestAccountSubscribe, string, OptionInputAddress];
|
|
1225
1248
|
'pri(accounts.saveRecent)': [RequestSaveRecentAccount, SingleAddress];
|