@subwallet/extension-base 0.7.1 → 0.7.2-1
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 +319 -329
- package/background/KoniTypes.js +31 -30
- package/background/handlers/Extension.d.ts +5 -3
- package/background/handlers/Extension.js +5 -50
- package/background/types.d.ts +1 -41
- package/cjs/background/KoniTypes.js +27 -35
- package/cjs/background/handlers/Extension.js +8 -55
- package/cjs/packageInfo.js +1 -1
- package/cjs/page/PostMessageProvider.js +1 -0
- package/cjs/signers/substrates/KeyringSigner.js +35 -0
- package/cjs/signers/types.js +15 -1
- package/package.json +9 -4
- package/packageInfo.js +1 -1
- package/page/PostMessageProvider.d.ts +1 -0
- package/page/PostMessageProvider.js +1 -0
- package/signers/substrates/KeyringSigner.d.ts +13 -0
- package/signers/substrates/KeyringSigner.js +27 -0
- package/signers/types.d.ts +6 -0
- package/signers/types.js +9 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AuthUrls, Resolver } from '@subwallet/extension-base/background/handlers/State';
|
|
2
|
-
import { AccountAuthType, AccountJson, AuthorizeRequest, RequestAccountList, RequestAccountSubscribe, RequestAuthorizeCancel, RequestAuthorizeReject, RequestAuthorizeSubscribe, RequestAuthorizeTab, RequestCurrentAccountAddress,
|
|
2
|
+
import { AccountAuthType, AccountJson, AuthorizeRequest, RequestAccountList, RequestAccountSubscribe, RequestAuthorizeCancel, RequestAuthorizeReject, RequestAuthorizeSubscribe, RequestAuthorizeTab, RequestCurrentAccountAddress, ResponseAuthorizeList, ResponseJsonGetAccountInfo, SeedLengths } from '@subwallet/extension-base/background/types';
|
|
3
3
|
import { ExternalState, LedgerState, QrState } from '@subwallet/extension-base/signers/types';
|
|
4
4
|
import { InjectedAccount, MetadataDefBase } from '@subwallet/extension-inject/types';
|
|
5
5
|
import Web3 from 'web3';
|
|
@@ -57,6 +57,9 @@ export interface RequestAuthorizationBlock {
|
|
|
57
57
|
id: string;
|
|
58
58
|
connectedValue: boolean;
|
|
59
59
|
}
|
|
60
|
+
export interface RequestForgetSite {
|
|
61
|
+
url: string;
|
|
62
|
+
}
|
|
60
63
|
export interface ResultResolver {
|
|
61
64
|
result: boolean;
|
|
62
65
|
accounts: string[];
|
|
@@ -65,9 +68,6 @@ export interface RejectResolver {
|
|
|
65
68
|
error: Error;
|
|
66
69
|
accounts: string[];
|
|
67
70
|
}
|
|
68
|
-
export interface RequestForgetSite {
|
|
69
|
-
url: string;
|
|
70
|
-
}
|
|
71
71
|
export declare enum StakingType {
|
|
72
72
|
NOMINATED = "nominated",
|
|
73
73
|
POOLED = "pooled"
|
|
@@ -81,6 +81,7 @@ export interface StakingRewardItem {
|
|
|
81
81
|
latestReward?: string;
|
|
82
82
|
totalReward?: string;
|
|
83
83
|
totalSlash?: string;
|
|
84
|
+
unclaimedReward?: string;
|
|
84
85
|
}
|
|
85
86
|
export interface UnlockingStakeInfo {
|
|
86
87
|
chain: string;
|
|
@@ -436,10 +437,15 @@ export interface RequestSeedCreateV2 {
|
|
|
436
437
|
seed?: string;
|
|
437
438
|
types?: Array<KeypairType>;
|
|
438
439
|
}
|
|
440
|
+
export interface ResponseSeedCreateV2 {
|
|
441
|
+
seed: string;
|
|
442
|
+
addressMap: Record<KeypairType, string>;
|
|
443
|
+
}
|
|
439
444
|
export interface RequestSeedValidateV2 {
|
|
440
445
|
suri: string;
|
|
441
446
|
types?: Array<KeypairType>;
|
|
442
447
|
}
|
|
448
|
+
export declare type ResponseSeedValidateV2 = ResponseSeedCreateV2;
|
|
443
449
|
export interface RequestAccountCreateSuriV2 {
|
|
444
450
|
name: string;
|
|
445
451
|
genesisHash?: string | null;
|
|
@@ -448,6 +454,7 @@ export interface RequestAccountCreateSuriV2 {
|
|
|
448
454
|
types?: Array<KeypairType>;
|
|
449
455
|
isAllowed: boolean;
|
|
450
456
|
}
|
|
457
|
+
export declare type ResponseAccountCreateSuriV2 = Record<KeypairType, string>;
|
|
451
458
|
export interface RequestDeriveCreateV2 {
|
|
452
459
|
name: string;
|
|
453
460
|
genesisHash?: string | null;
|
|
@@ -469,56 +476,77 @@ export interface RequestBatchRestoreV2 {
|
|
|
469
476
|
accountsInfo: ResponseJsonGetAccountInfo[];
|
|
470
477
|
isAllowed: boolean;
|
|
471
478
|
}
|
|
472
|
-
export interface
|
|
473
|
-
seed: string;
|
|
479
|
+
export interface ResponsePrivateKeyValidateV2 {
|
|
474
480
|
addressMap: Record<KeypairType, string>;
|
|
481
|
+
autoAddPrefix: boolean;
|
|
475
482
|
}
|
|
476
|
-
export
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
value?: string;
|
|
481
|
-
transferAll?: boolean;
|
|
482
|
-
token?: string;
|
|
483
|
+
export declare enum AccountExternalErrorCode {
|
|
484
|
+
INVALID_ADDRESS = "invalidToAccount",
|
|
485
|
+
KEYRING_ERROR = "keyringError",
|
|
486
|
+
UNKNOWN_ERROR = "unknownError"
|
|
483
487
|
}
|
|
484
|
-
export interface
|
|
485
|
-
|
|
488
|
+
export interface AccountExternalError {
|
|
489
|
+
code: AccountExternalErrorCode;
|
|
490
|
+
message: string;
|
|
486
491
|
}
|
|
487
|
-
export interface
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
token: string;
|
|
492
|
+
export interface RequestAccountCreateExternalV2 {
|
|
493
|
+
address: string;
|
|
494
|
+
genesisHash?: string | null;
|
|
495
|
+
name: string;
|
|
496
|
+
isEthereum: boolean;
|
|
497
|
+
isAllowed: boolean;
|
|
498
|
+
isReadOnly: boolean;
|
|
495
499
|
}
|
|
496
|
-
export interface
|
|
500
|
+
export interface RequestAccountCreateHardwareV2 {
|
|
501
|
+
accountIndex: number;
|
|
502
|
+
address: string;
|
|
503
|
+
addressOffset: number;
|
|
504
|
+
genesisHash: string;
|
|
505
|
+
hardwareType: string;
|
|
506
|
+
name: string;
|
|
507
|
+
isAllowed?: boolean;
|
|
508
|
+
}
|
|
509
|
+
export interface RequestAccountCreateWithSecretKey {
|
|
510
|
+
publicKey: string;
|
|
511
|
+
secretKey: string;
|
|
497
512
|
password: string;
|
|
513
|
+
name: string;
|
|
514
|
+
isAllow: boolean;
|
|
515
|
+
isEthereum: boolean;
|
|
498
516
|
}
|
|
499
|
-
export interface
|
|
500
|
-
errors
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
517
|
+
export interface ResponseAccountCreateWithSecretKey {
|
|
518
|
+
errors: AccountExternalError[];
|
|
519
|
+
success: boolean;
|
|
520
|
+
}
|
|
521
|
+
export declare enum ExternalRequestPromiseStatus {
|
|
522
|
+
PENDING = 0,
|
|
523
|
+
REJECTED = 1,
|
|
524
|
+
FAILED = 2,
|
|
525
|
+
COMPLETED = 3
|
|
526
|
+
}
|
|
527
|
+
export interface ExternalRequestPromise {
|
|
528
|
+
resolve?: (result: SignerResult | PromiseLike<SignerResult>) => void;
|
|
529
|
+
reject?: (error?: Error) => void;
|
|
530
|
+
status: ExternalRequestPromiseStatus;
|
|
531
|
+
message?: string;
|
|
532
|
+
createdAt: number;
|
|
533
|
+
}
|
|
534
|
+
export interface PrepareExternalRequest {
|
|
535
|
+
id: string;
|
|
536
|
+
setState: (promise: ExternalRequestPromise) => void;
|
|
537
|
+
updateState: (promise: Partial<ExternalRequestPromise>) => void;
|
|
504
538
|
}
|
|
505
|
-
export declare type RequestTransferExternal = RequestCheckTransfer;
|
|
506
|
-
export declare type RequestCrossChainTransferExternal = RequestCheckCrossChainTransfer;
|
|
507
539
|
export interface RequestRejectExternalRequest {
|
|
508
540
|
id: string;
|
|
509
541
|
message?: string;
|
|
510
542
|
throwError?: boolean;
|
|
511
543
|
}
|
|
544
|
+
export declare type ResponseRejectExternalRequest = void;
|
|
512
545
|
export interface RequestResolveExternalRequest {
|
|
513
546
|
id: string;
|
|
514
547
|
data: SignerResult;
|
|
515
548
|
}
|
|
516
|
-
export
|
|
517
|
-
addressMap: Record<KeypairType, string>;
|
|
518
|
-
autoAddPrefix: boolean;
|
|
519
|
-
}
|
|
520
|
-
export declare type ResponseSeedValidateV2 = ResponseSeedCreateV2;
|
|
521
|
-
export declare type ResponseAccountCreateSuriV2 = Record<KeypairType, string>;
|
|
549
|
+
export declare type ResponseResolveExternalRequest = void;
|
|
522
550
|
export declare type AccountRef = Array<string>;
|
|
523
551
|
export declare type AccountRefMap = Record<string, AccountRef>;
|
|
524
552
|
export declare type RequestPrice = null;
|
|
@@ -557,48 +585,55 @@ export declare enum NETWORK_STATUS {
|
|
|
557
585
|
PENDING = "pending"
|
|
558
586
|
}
|
|
559
587
|
export declare enum TransferErrorCode {
|
|
560
|
-
INVALID_FROM_ADDRESS = "invalidFromAccount",
|
|
561
|
-
INVALID_TO_ADDRESS = "invalidToAccount",
|
|
562
588
|
NOT_ENOUGH_VALUE = "notEnoughValue",
|
|
563
589
|
INVALID_VALUE = "invalidValue",
|
|
564
590
|
INVALID_TOKEN = "invalidToken",
|
|
565
|
-
INVALID_PARAM = "invalidParam",
|
|
566
|
-
KEYRING_ERROR = "keyringError",
|
|
567
591
|
TRANSFER_ERROR = "transferError",
|
|
568
|
-
TIMEOUT = "timeout",
|
|
569
592
|
UNSUPPORTED = "unsupported"
|
|
570
593
|
}
|
|
571
594
|
export declare enum BasicTxErrorCode {
|
|
572
|
-
INVALID_FROM_ADDRESS = "invalidFromAccount",
|
|
573
|
-
INVALID_TO_ADDRESS = "invalidToAccount",
|
|
574
|
-
NOT_ENOUGH_VALUE = "notEnoughValue",
|
|
575
|
-
INVALID_VALUE = "invalidValue",
|
|
576
|
-
INVALID_TOKEN = "invalidToken",
|
|
577
595
|
INVALID_PARAM = "invalidParam",
|
|
578
596
|
KEYRING_ERROR = "keyringError",
|
|
579
|
-
TRANSFER_ERROR = "transferError",
|
|
580
597
|
STAKING_ERROR = "stakingError",
|
|
581
598
|
UN_STAKING_ERROR = "unStakingError",
|
|
582
599
|
WITHDRAW_STAKING_ERROR = "withdrawStakingError",
|
|
600
|
+
CLAIM_REWARD_ERROR = "claimRewardError",
|
|
601
|
+
CREATE_COMPOUND_ERROR = "createCompoundError",
|
|
602
|
+
CANCEL_COMPOUND_ERROR = "cancelCompoundError",
|
|
583
603
|
TIMEOUT = "timeout",
|
|
584
|
-
|
|
604
|
+
BALANCE_TO_LOW = "balanceTooLow1",
|
|
605
|
+
UNKNOWN_ERROR = "unknownError"
|
|
585
606
|
}
|
|
586
|
-
export declare type
|
|
587
|
-
|
|
607
|
+
export declare type TxErrorCode = TransferErrorCode | BasicTxErrorCode;
|
|
608
|
+
export declare type BasicTxError = {
|
|
609
|
+
code: TxErrorCode;
|
|
588
610
|
data?: object;
|
|
589
611
|
message: string;
|
|
590
612
|
};
|
|
591
|
-
export interface
|
|
592
|
-
|
|
593
|
-
|
|
613
|
+
export interface BasicTxResponse {
|
|
614
|
+
passwordError?: string | null;
|
|
615
|
+
callHash?: string;
|
|
616
|
+
status?: boolean;
|
|
617
|
+
extrinsicHash?: string;
|
|
618
|
+
txError?: boolean;
|
|
619
|
+
errors?: BasicTxError[];
|
|
620
|
+
externalState?: ExternalState;
|
|
621
|
+
qrState?: QrState;
|
|
622
|
+
ledgerState?: LedgerState;
|
|
623
|
+
isBusy?: boolean;
|
|
624
|
+
txResult?: TxResultType;
|
|
625
|
+
isFinalized?: boolean;
|
|
594
626
|
}
|
|
595
|
-
export interface
|
|
596
|
-
|
|
597
|
-
fromAccountFree: string;
|
|
598
|
-
toAccountFree: string;
|
|
599
|
-
estimateFee?: string;
|
|
600
|
-
feeSymbol?: string;
|
|
627
|
+
export interface NftTransactionResponse extends BasicTxResponse {
|
|
628
|
+
isSendingSelf: boolean;
|
|
601
629
|
}
|
|
630
|
+
export declare type HandleBasicTx = (data: BasicTxResponse) => void;
|
|
631
|
+
export declare type HandleTxResponse<T extends BasicTxResponse> = (data: T) => void;
|
|
632
|
+
export declare type BaseRequestSign = {};
|
|
633
|
+
export declare type PasswordRequestSign<T extends BaseRequestSign> = T & {
|
|
634
|
+
password: string;
|
|
635
|
+
};
|
|
636
|
+
export declare type ExternalRequestSign<T extends BaseRequestSign> = Omit<T, 'password'>;
|
|
602
637
|
export declare enum TransferStep {
|
|
603
638
|
READY = "ready",
|
|
604
639
|
SIGNING = "signing",
|
|
@@ -613,25 +648,6 @@ export declare type TxResultType = {
|
|
|
613
648
|
fee?: string;
|
|
614
649
|
feeSymbol?: string;
|
|
615
650
|
};
|
|
616
|
-
export interface ResponseTransfer {
|
|
617
|
-
step: TransferStep;
|
|
618
|
-
errors?: Array<TransferError>;
|
|
619
|
-
extrinsicHash?: string;
|
|
620
|
-
extrinsicStatus?: string;
|
|
621
|
-
data?: object;
|
|
622
|
-
txResult?: TxResultType;
|
|
623
|
-
isFinalized?: boolean;
|
|
624
|
-
}
|
|
625
|
-
export interface ResponseTransferExternal extends ResponseTransfer {
|
|
626
|
-
externalState?: ExternalState;
|
|
627
|
-
}
|
|
628
|
-
export interface ResponseTransferQr extends ResponseTransferExternal {
|
|
629
|
-
qrState?: QrState;
|
|
630
|
-
isBusy?: boolean;
|
|
631
|
-
}
|
|
632
|
-
export interface ResponseTransferLedger extends ResponseTransferExternal {
|
|
633
|
-
ledgerState?: LedgerState;
|
|
634
|
-
}
|
|
635
651
|
export interface NftTransactionRequest {
|
|
636
652
|
networkKey: string;
|
|
637
653
|
senderAddress: string;
|
|
@@ -643,9 +659,8 @@ export interface EvmNftTransaction {
|
|
|
643
659
|
estimatedFee: string | null;
|
|
644
660
|
balanceError: boolean;
|
|
645
661
|
}
|
|
646
|
-
export interface EvmNftSubmitTransaction {
|
|
662
|
+
export interface EvmNftSubmitTransaction extends BaseRequestSign {
|
|
647
663
|
senderAddress: string;
|
|
648
|
-
password: string;
|
|
649
664
|
recipientAddress: string;
|
|
650
665
|
networkKey: string;
|
|
651
666
|
rawTransaction: Record<string, any>;
|
|
@@ -747,12 +762,13 @@ export interface SubstrateNftTransaction {
|
|
|
747
762
|
estimatedFee?: string;
|
|
748
763
|
balanceError: boolean;
|
|
749
764
|
}
|
|
750
|
-
export interface SubstrateNftSubmitTransaction {
|
|
765
|
+
export interface SubstrateNftSubmitTransaction extends BaseRequestSign {
|
|
751
766
|
params: Record<string, any> | null;
|
|
752
|
-
password: string;
|
|
753
767
|
senderAddress: string;
|
|
754
768
|
recipientAddress: string;
|
|
755
769
|
}
|
|
770
|
+
export declare type RequestSubstrateNftSubmitTransaction = PasswordRequestSign<SubstrateNftSubmitTransaction>;
|
|
771
|
+
export declare type RequestEvmNftSubmitTransaction = PasswordRequestSign<EvmNftSubmitTransaction>;
|
|
756
772
|
export declare type ChainRelationType = 'p' | 'r';
|
|
757
773
|
export interface ChainRelationInfo {
|
|
758
774
|
type: ChainRelationType;
|
|
@@ -770,58 +786,6 @@ export interface RequestAccountMeta {
|
|
|
770
786
|
export interface ResponseAccountMeta {
|
|
771
787
|
meta: KeyringPair$Meta;
|
|
772
788
|
}
|
|
773
|
-
export declare type ResponseRejectExternalRequest = void;
|
|
774
|
-
export declare type ResponseResolveExternalRequest = void;
|
|
775
|
-
export declare enum ExternalRequestPromiseStatus {
|
|
776
|
-
PENDING = 0,
|
|
777
|
-
REJECTED = 1,
|
|
778
|
-
FAILED = 2,
|
|
779
|
-
COMPLETED = 3
|
|
780
|
-
}
|
|
781
|
-
export interface ExternalRequestPromise {
|
|
782
|
-
resolve?: (result: SignerResult | PromiseLike<SignerResult>) => void;
|
|
783
|
-
reject?: (error?: Error) => void;
|
|
784
|
-
status: ExternalRequestPromiseStatus;
|
|
785
|
-
message?: string;
|
|
786
|
-
createdAt: number;
|
|
787
|
-
}
|
|
788
|
-
export interface RequestAccountCreateExternalV2 {
|
|
789
|
-
address: string;
|
|
790
|
-
genesisHash?: string | null;
|
|
791
|
-
name: string;
|
|
792
|
-
isEthereum: boolean;
|
|
793
|
-
isAllowed: boolean;
|
|
794
|
-
}
|
|
795
|
-
export interface RequestAccountCreateHardwareV2 {
|
|
796
|
-
accountIndex: number;
|
|
797
|
-
address: string;
|
|
798
|
-
addressOffset: number;
|
|
799
|
-
genesisHash: string;
|
|
800
|
-
hardwareType: string;
|
|
801
|
-
name: string;
|
|
802
|
-
isAllowed?: boolean;
|
|
803
|
-
}
|
|
804
|
-
export declare enum AccountExternalErrorCode {
|
|
805
|
-
INVALID_ADDRESS = "invalidToAccount",
|
|
806
|
-
KEYRING_ERROR = "keyringError",
|
|
807
|
-
UNKNOWN_ERROR = "unknownError"
|
|
808
|
-
}
|
|
809
|
-
export interface AccountExternalError {
|
|
810
|
-
code: AccountExternalErrorCode;
|
|
811
|
-
message: string;
|
|
812
|
-
}
|
|
813
|
-
export interface RequestAccountCreateWithSecretKey {
|
|
814
|
-
publicKey: string;
|
|
815
|
-
secretKey: string;
|
|
816
|
-
password: string;
|
|
817
|
-
name: string;
|
|
818
|
-
isAllow: boolean;
|
|
819
|
-
isEthereum: boolean;
|
|
820
|
-
}
|
|
821
|
-
export interface ResponseAccountCreateWithSecretKey {
|
|
822
|
-
errors: AccountExternalError[];
|
|
823
|
-
success: boolean;
|
|
824
|
-
}
|
|
825
789
|
export declare type RequestEvmEvents = null;
|
|
826
790
|
export declare type EvmEventType = 'connect' | 'disconnect' | 'accountsChanged' | 'chainChanged' | 'message' | 'data' | 'reconnect' | 'error';
|
|
827
791
|
export declare type EvmAccountsChangedPayload = string[];
|
|
@@ -891,51 +855,28 @@ export interface ConfirmationResult<T> {
|
|
|
891
855
|
payload?: T;
|
|
892
856
|
password?: string;
|
|
893
857
|
}
|
|
894
|
-
export interface
|
|
858
|
+
export interface ConfirmationResultExternal<T> extends ConfirmationResult<T> {
|
|
895
859
|
signature: `0x${string}`;
|
|
896
860
|
}
|
|
897
861
|
export interface EvmSendTransactionRequest extends TransactionConfig {
|
|
898
862
|
estimateGas: string;
|
|
899
863
|
}
|
|
900
|
-
export interface
|
|
901
|
-
|
|
864
|
+
export interface EvmRequestExternal {
|
|
865
|
+
hashPayload: string;
|
|
902
866
|
canSign: boolean;
|
|
903
867
|
}
|
|
904
|
-
export interface
|
|
905
|
-
estimateGas: string;
|
|
868
|
+
export interface EvmSendTransactionRequestExternal extends EvmSendTransactionRequest, EvmRequestExternal {
|
|
906
869
|
}
|
|
907
|
-
export interface
|
|
870
|
+
export interface EvmSignatureRequestExternal extends EvmSignatureRequest, EvmRequestExternal {
|
|
908
871
|
}
|
|
909
872
|
export interface ConfirmationDefinitions {
|
|
910
873
|
addNetworkRequest: [ConfirmationsQueueItem<NetworkJson>, ConfirmationResult<NetworkJson>];
|
|
911
874
|
addTokenRequest: [ConfirmationsQueueItem<CustomToken>, ConfirmationResult<boolean>];
|
|
912
875
|
switchNetworkRequest: [ConfirmationsQueueItem<SwitchNetworkRequest>, ConfirmationResult<boolean>];
|
|
913
876
|
evmSignatureRequest: [ConfirmationsQueueItem<EvmSignatureRequest>, ConfirmationResult<string>];
|
|
914
|
-
|
|
877
|
+
evmSignatureRequestExternal: [ConfirmationsQueueItem<EvmSignatureRequestExternal>, ConfirmationResultExternal<string>];
|
|
915
878
|
evmSendTransactionRequest: [ConfirmationsQueueItem<EvmSendTransactionRequest>, ConfirmationResult<boolean>];
|
|
916
|
-
|
|
917
|
-
}
|
|
918
|
-
export interface RequestParseTransactionEVM {
|
|
919
|
-
data: string;
|
|
920
|
-
}
|
|
921
|
-
export interface ResponseParseTransactionEVM {
|
|
922
|
-
data: ParseEVMTransactionData | string;
|
|
923
|
-
input: string;
|
|
924
|
-
nonce: number;
|
|
925
|
-
to: string;
|
|
926
|
-
gas: number;
|
|
927
|
-
gasPrice: number;
|
|
928
|
-
value: number;
|
|
929
|
-
}
|
|
930
|
-
export interface RequestQrSignEVM {
|
|
931
|
-
address: string;
|
|
932
|
-
message: string;
|
|
933
|
-
type: 'message' | 'transaction';
|
|
934
|
-
chainId?: number;
|
|
935
|
-
password: string;
|
|
936
|
-
}
|
|
937
|
-
export interface ResponseQrSignEVM {
|
|
938
|
-
signature: string;
|
|
879
|
+
evmSendTransactionRequestExternal: [ConfirmationsQueueItem<EvmSendTransactionRequestExternal>, ConfirmationResultExternal<boolean>];
|
|
939
880
|
}
|
|
940
881
|
export declare type ConfirmationType = keyof ConfirmationDefinitions;
|
|
941
882
|
export declare type ConfirmationsQueue = {
|
|
@@ -961,135 +902,20 @@ export interface ValidatorInfo {
|
|
|
961
902
|
icon?: string;
|
|
962
903
|
hasScheduledRequest?: boolean;
|
|
963
904
|
}
|
|
964
|
-
export interface
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
maxNominatorPerValidator: number;
|
|
969
|
-
validators: ValidatorInfo[];
|
|
970
|
-
bondedValidators: string[];
|
|
971
|
-
}
|
|
972
|
-
export interface ChainBondingBasics {
|
|
973
|
-
stakedReturn: number;
|
|
974
|
-
isMaxNominators: boolean;
|
|
975
|
-
validatorCount: number;
|
|
905
|
+
export interface ExtraDelegationInfo {
|
|
906
|
+
chain: string;
|
|
907
|
+
address: string;
|
|
908
|
+
collatorAddress: string;
|
|
976
909
|
}
|
|
977
910
|
export interface BasicTxInfo {
|
|
978
911
|
fee: string;
|
|
979
912
|
balanceError: boolean;
|
|
980
913
|
rawFee?: number;
|
|
981
914
|
}
|
|
982
|
-
export interface BondingSubmitParams {
|
|
983
|
-
networkKey: string;
|
|
984
|
-
nominatorAddress: string;
|
|
985
|
-
amount: number;
|
|
986
|
-
validatorInfo: ValidatorInfo;
|
|
987
|
-
password?: string;
|
|
988
|
-
isBondedBefore: boolean;
|
|
989
|
-
bondedValidators: string[];
|
|
990
|
-
lockPeriod?: number;
|
|
991
|
-
}
|
|
992
|
-
export declare enum BasicTxError {
|
|
993
|
-
BalanceTooLow = "BalanceTooLow"
|
|
994
|
-
}
|
|
995
|
-
export interface BasicTxResponse {
|
|
996
|
-
passwordError?: string | null;
|
|
997
|
-
callHash?: string;
|
|
998
|
-
status?: boolean;
|
|
999
|
-
transactionHash?: string;
|
|
1000
|
-
txError?: boolean;
|
|
1001
|
-
errorMessage?: BasicTxError;
|
|
1002
|
-
}
|
|
1003
|
-
export interface NftTransactionResponse extends BasicTxResponse {
|
|
1004
|
-
isSendingSelf: boolean;
|
|
1005
|
-
}
|
|
1006
915
|
export interface BondingOptionParams {
|
|
1007
916
|
networkKey: string;
|
|
1008
917
|
address: string;
|
|
1009
918
|
}
|
|
1010
|
-
export interface UnbondingSubmitParams {
|
|
1011
|
-
amount: number;
|
|
1012
|
-
networkKey: string;
|
|
1013
|
-
address: string;
|
|
1014
|
-
password?: string;
|
|
1015
|
-
validatorAddress?: string;
|
|
1016
|
-
unstakeAll?: boolean;
|
|
1017
|
-
}
|
|
1018
|
-
export interface UnlockingStakeParams {
|
|
1019
|
-
address: string;
|
|
1020
|
-
networkKey: string;
|
|
1021
|
-
validatorList?: string[];
|
|
1022
|
-
}
|
|
1023
|
-
export interface DelegationItem {
|
|
1024
|
-
owner: string;
|
|
1025
|
-
amount: string;
|
|
1026
|
-
identity?: string;
|
|
1027
|
-
minBond: string;
|
|
1028
|
-
hasScheduledRequest: boolean;
|
|
1029
|
-
icon?: string;
|
|
1030
|
-
}
|
|
1031
|
-
export interface StakeWithdrawalParams {
|
|
1032
|
-
address: string;
|
|
1033
|
-
networkKey: string;
|
|
1034
|
-
password?: string;
|
|
1035
|
-
validatorAddress?: string;
|
|
1036
|
-
action?: string;
|
|
1037
|
-
}
|
|
1038
|
-
export interface StakeClaimRewardParams {
|
|
1039
|
-
address: string;
|
|
1040
|
-
networkKey: string;
|
|
1041
|
-
validatorAddress?: string;
|
|
1042
|
-
password?: string;
|
|
1043
|
-
}
|
|
1044
|
-
export interface ResponseNftTransferExternal extends NftTransactionResponse {
|
|
1045
|
-
externalState?: ExternalState;
|
|
1046
|
-
}
|
|
1047
|
-
export interface ResponseNftTransferQr extends ResponseNftTransferExternal {
|
|
1048
|
-
qrState?: QrState;
|
|
1049
|
-
isBusy?: boolean;
|
|
1050
|
-
}
|
|
1051
|
-
export interface ResponseNftTransferLedger extends ResponseNftTransferExternal {
|
|
1052
|
-
ledgerState?: LedgerState;
|
|
1053
|
-
}
|
|
1054
|
-
export declare type RequestNftTransferExternalSubstrate = Omit<SubstrateNftSubmitTransaction, 'password'>;
|
|
1055
|
-
export declare type RequestNftTransferExternalEVM = Omit<EvmNftSubmitTransaction, 'password'>;
|
|
1056
|
-
export declare type RequestStakeExternal = Omit<BondingSubmitParams, 'password'>;
|
|
1057
|
-
export interface ResponseStakeExternal extends BasicTxResponse {
|
|
1058
|
-
externalState?: ExternalState;
|
|
1059
|
-
}
|
|
1060
|
-
export interface ResponseStakeQr extends ResponseStakeExternal {
|
|
1061
|
-
qrState?: QrState;
|
|
1062
|
-
isBusy?: boolean;
|
|
1063
|
-
}
|
|
1064
|
-
export interface ResponseStakeLedger extends ResponseStakeExternal {
|
|
1065
|
-
ledgerState?: LedgerState;
|
|
1066
|
-
}
|
|
1067
|
-
export declare type RequestUnStakeExternal = Omit<UnbondingSubmitParams, 'password'>;
|
|
1068
|
-
export interface ResponseUnStakeExternal extends BasicTxResponse {
|
|
1069
|
-
externalState?: ExternalState;
|
|
1070
|
-
}
|
|
1071
|
-
export interface ResponseUnStakeQr extends ResponseUnStakeExternal {
|
|
1072
|
-
qrState?: QrState;
|
|
1073
|
-
isBusy?: boolean;
|
|
1074
|
-
}
|
|
1075
|
-
export interface ResponseUnStakeLedger extends ResponseUnStakeExternal {
|
|
1076
|
-
ledgerState?: LedgerState;
|
|
1077
|
-
}
|
|
1078
|
-
export declare type RequestWithdrawStakeExternal = Omit<StakeWithdrawalParams, 'password'>;
|
|
1079
|
-
export interface ResponseWithdrawStakeExternal extends BasicTxResponse {
|
|
1080
|
-
externalState?: ExternalState;
|
|
1081
|
-
}
|
|
1082
|
-
export interface ResponseWithdrawStakeQr extends ResponseWithdrawStakeExternal {
|
|
1083
|
-
qrState?: QrState;
|
|
1084
|
-
isBusy?: boolean;
|
|
1085
|
-
}
|
|
1086
|
-
export interface ResponseWithdrawStakeLedger extends ResponseWithdrawStakeExternal {
|
|
1087
|
-
ledgerState?: LedgerState;
|
|
1088
|
-
}
|
|
1089
|
-
export interface StakeDelegationRequest {
|
|
1090
|
-
address: string;
|
|
1091
|
-
networkKey: string;
|
|
1092
|
-
}
|
|
1093
919
|
export interface SingleModeJson {
|
|
1094
920
|
networkKeys: string[];
|
|
1095
921
|
theme: ThemeTypes;
|
|
@@ -1107,12 +933,12 @@ export interface ParseEVMTransactionData {
|
|
|
1107
933
|
methodName: string;
|
|
1108
934
|
args: EVMTransactionArg[];
|
|
1109
935
|
}
|
|
1110
|
-
export interface
|
|
936
|
+
export interface RequestParseEVMContractInput {
|
|
1111
937
|
data: string;
|
|
1112
938
|
contract: string;
|
|
1113
939
|
chainId: number;
|
|
1114
940
|
}
|
|
1115
|
-
export interface
|
|
941
|
+
export interface ResponseParseEVMContractInput {
|
|
1116
942
|
result: ParseEVMTransactionData | string;
|
|
1117
943
|
}
|
|
1118
944
|
export interface LedgerNetwork {
|
|
@@ -1122,24 +948,157 @@ export interface LedgerNetwork {
|
|
|
1122
948
|
icon: 'substrate' | 'ethereum';
|
|
1123
949
|
isDevMode: boolean;
|
|
1124
950
|
}
|
|
1125
|
-
export interface
|
|
951
|
+
export interface TransakNetwork {
|
|
952
|
+
networks: string[];
|
|
953
|
+
tokens?: string[];
|
|
954
|
+
}
|
|
955
|
+
export interface FormattedMethod {
|
|
956
|
+
args?: ArgInfo[];
|
|
957
|
+
method: string;
|
|
958
|
+
}
|
|
959
|
+
export interface ArgInfo {
|
|
960
|
+
argName: string;
|
|
961
|
+
argValue: string | string[];
|
|
962
|
+
}
|
|
963
|
+
export interface EraInfo {
|
|
964
|
+
period: number;
|
|
965
|
+
phase: number;
|
|
966
|
+
}
|
|
967
|
+
export interface ResponseParseTransactionSubstrate {
|
|
968
|
+
era: EraInfo | string;
|
|
969
|
+
nonce: number;
|
|
970
|
+
method: string;
|
|
971
|
+
tip: number;
|
|
972
|
+
specVersion: number;
|
|
973
|
+
}
|
|
974
|
+
export interface RequestQrParseRLP {
|
|
975
|
+
data: string;
|
|
976
|
+
}
|
|
977
|
+
export interface ResponseQrParseRLP {
|
|
978
|
+
data: ParseEVMTransactionData | string;
|
|
979
|
+
input: string;
|
|
980
|
+
nonce: number;
|
|
981
|
+
to: string;
|
|
982
|
+
gas: number;
|
|
983
|
+
gasPrice: number;
|
|
984
|
+
value: number;
|
|
985
|
+
}
|
|
986
|
+
export interface RequestQRIsLocked {
|
|
1126
987
|
address: string;
|
|
1127
|
-
|
|
988
|
+
}
|
|
989
|
+
export interface ResponseQRIsLocked {
|
|
990
|
+
isLocked: boolean;
|
|
991
|
+
remainingTime: number;
|
|
992
|
+
}
|
|
993
|
+
export declare type SignerDataType = 'transaction' | 'message';
|
|
994
|
+
export interface RequestQrSignSubstrate {
|
|
995
|
+
address: string;
|
|
996
|
+
data: string;
|
|
997
|
+
savePass: boolean;
|
|
1128
998
|
networkKey: string;
|
|
1129
|
-
accountMinimum: string;
|
|
1130
|
-
bondedAmount: string;
|
|
1131
999
|
password?: string;
|
|
1132
1000
|
}
|
|
1133
|
-
export interface
|
|
1134
|
-
|
|
1135
|
-
optimalFrequency: string;
|
|
1136
|
-
initTime: number;
|
|
1137
|
-
compoundFee: string;
|
|
1138
|
-
rawCompoundFee?: number;
|
|
1001
|
+
export interface ResponseQrSignSubstrate {
|
|
1002
|
+
signature: string;
|
|
1139
1003
|
}
|
|
1140
|
-
export interface
|
|
1141
|
-
|
|
1142
|
-
|
|
1004
|
+
export interface RequestQrSignEVM {
|
|
1005
|
+
address: string;
|
|
1006
|
+
message: string;
|
|
1007
|
+
type: 'message' | 'transaction';
|
|
1008
|
+
chainId?: number;
|
|
1009
|
+
password: string;
|
|
1010
|
+
}
|
|
1011
|
+
export interface ResponseQrSignEVM {
|
|
1012
|
+
signature: string;
|
|
1013
|
+
}
|
|
1014
|
+
export interface RequestCheckTransfer extends BaseRequestSign {
|
|
1015
|
+
networkKey: string;
|
|
1016
|
+
from: string;
|
|
1017
|
+
to: string;
|
|
1018
|
+
value?: string;
|
|
1019
|
+
transferAll?: boolean;
|
|
1020
|
+
token?: string;
|
|
1021
|
+
}
|
|
1022
|
+
export interface ResponseCheckTransfer {
|
|
1023
|
+
errors?: Array<BasicTxError>;
|
|
1024
|
+
fromAccountFree: string;
|
|
1025
|
+
toAccountFree: string;
|
|
1026
|
+
estimateFee?: string;
|
|
1027
|
+
feeSymbol?: string;
|
|
1028
|
+
}
|
|
1029
|
+
export declare type RequestTransfer = PasswordRequestSign<RequestCheckTransfer>;
|
|
1030
|
+
export interface RequestCheckCrossChainTransfer extends BaseRequestSign {
|
|
1031
|
+
originNetworkKey: string;
|
|
1032
|
+
destinationNetworkKey: string;
|
|
1033
|
+
from: string;
|
|
1034
|
+
to: string;
|
|
1035
|
+
transferAll?: boolean;
|
|
1036
|
+
value: string;
|
|
1037
|
+
token: string;
|
|
1038
|
+
}
|
|
1039
|
+
export declare type RequestCrossChainTransfer = PasswordRequestSign<RequestCheckCrossChainTransfer>;
|
|
1040
|
+
export interface ResponseCheckCrossChainTransfer {
|
|
1041
|
+
errors?: Array<BasicTxError>;
|
|
1042
|
+
feeString?: string;
|
|
1043
|
+
estimatedFee: string;
|
|
1044
|
+
feeSymbol: string;
|
|
1045
|
+
}
|
|
1046
|
+
export interface BondingOptionInfo {
|
|
1047
|
+
isBondedBefore: boolean;
|
|
1048
|
+
era: number;
|
|
1049
|
+
maxNominations: number;
|
|
1050
|
+
maxNominatorPerValidator: number;
|
|
1051
|
+
validators: ValidatorInfo[];
|
|
1052
|
+
bondedValidators: string[];
|
|
1053
|
+
}
|
|
1054
|
+
export interface ChainBondingBasics {
|
|
1055
|
+
stakedReturn: number;
|
|
1056
|
+
isMaxNominators: boolean;
|
|
1057
|
+
validatorCount: number;
|
|
1058
|
+
}
|
|
1059
|
+
export interface BondingSubmitParams extends BaseRequestSign {
|
|
1060
|
+
networkKey: string;
|
|
1061
|
+
nominatorAddress: string;
|
|
1062
|
+
amount: number;
|
|
1063
|
+
validatorInfo: ValidatorInfo;
|
|
1064
|
+
isBondedBefore: boolean;
|
|
1065
|
+
bondedValidators: string[];
|
|
1066
|
+
lockPeriod?: number;
|
|
1067
|
+
}
|
|
1068
|
+
export declare type RequestBondingSubmit = PasswordRequestSign<BondingSubmitParams>;
|
|
1069
|
+
export interface UnbondingSubmitParams extends BaseRequestSign {
|
|
1070
|
+
amount: number;
|
|
1071
|
+
networkKey: string;
|
|
1072
|
+
address: string;
|
|
1073
|
+
validatorAddress?: string;
|
|
1074
|
+
unstakeAll?: boolean;
|
|
1075
|
+
}
|
|
1076
|
+
export declare type RequestUnbondingSubmit = PasswordRequestSign<UnbondingSubmitParams>;
|
|
1077
|
+
export interface StakeWithdrawalParams extends BaseRequestSign {
|
|
1078
|
+
address: string;
|
|
1079
|
+
networkKey: string;
|
|
1080
|
+
validatorAddress?: string;
|
|
1081
|
+
action?: string;
|
|
1082
|
+
}
|
|
1083
|
+
export declare type RequestStakeWithdrawal = PasswordRequestSign<StakeWithdrawalParams>;
|
|
1084
|
+
export interface StakeClaimRewardParams extends BaseRequestSign {
|
|
1085
|
+
address: string;
|
|
1086
|
+
networkKey: string;
|
|
1087
|
+
validatorAddress?: string;
|
|
1088
|
+
stakingType: StakingType;
|
|
1089
|
+
}
|
|
1090
|
+
export declare type RequestStakeClaimReward = PasswordRequestSign<StakeClaimRewardParams>;
|
|
1091
|
+
export interface DelegationItem {
|
|
1092
|
+
owner: string;
|
|
1093
|
+
amount: string;
|
|
1094
|
+
identity?: string;
|
|
1095
|
+
minBond: string;
|
|
1096
|
+
hasScheduledRequest: boolean;
|
|
1097
|
+
icon?: string;
|
|
1098
|
+
}
|
|
1099
|
+
export interface StakeDelegationRequest {
|
|
1100
|
+
address: string;
|
|
1101
|
+
networkKey: string;
|
|
1143
1102
|
}
|
|
1144
1103
|
export interface CheckExistingTuringCompoundParams {
|
|
1145
1104
|
address: string;
|
|
@@ -1152,28 +1111,53 @@ export interface ExistingTuringCompoundTask {
|
|
|
1152
1111
|
accountMinimum: number;
|
|
1153
1112
|
frequency: number;
|
|
1154
1113
|
}
|
|
1155
|
-
export interface
|
|
1114
|
+
export interface TuringStakeCompoundResp {
|
|
1115
|
+
txInfo: BasicTxInfo;
|
|
1116
|
+
optimalFrequency: string;
|
|
1117
|
+
initTime: number;
|
|
1118
|
+
compoundFee: string;
|
|
1119
|
+
rawCompoundFee?: number;
|
|
1120
|
+
}
|
|
1121
|
+
export interface TuringStakeCompoundParams extends BaseRequestSign {
|
|
1122
|
+
address: string;
|
|
1123
|
+
collatorAddress: string;
|
|
1124
|
+
networkKey: string;
|
|
1125
|
+
accountMinimum: string;
|
|
1126
|
+
bondedAmount: string;
|
|
1127
|
+
}
|
|
1128
|
+
export declare type RequestTuringStakeCompound = PasswordRequestSign<TuringStakeCompoundParams>;
|
|
1129
|
+
export interface TuringCancelStakeCompoundParams extends BaseRequestSign {
|
|
1156
1130
|
taskId: string;
|
|
1157
1131
|
networkKey: string;
|
|
1158
1132
|
address: string;
|
|
1159
|
-
password?: string;
|
|
1160
1133
|
}
|
|
1134
|
+
export declare type RequestTuringCancelStakeCompound = PasswordRequestSign<TuringCancelStakeCompoundParams>;
|
|
1135
|
+
export declare type RequestTransferExternal = ExternalRequestSign<RequestCheckTransfer>;
|
|
1136
|
+
export declare type RequestCrossChainTransferExternal = ExternalRequestSign<RequestCheckCrossChainTransfer>;
|
|
1137
|
+
export declare type RequestNftTransferExternalSubstrate = ExternalRequestSign<SubstrateNftSubmitTransaction>;
|
|
1138
|
+
export declare type RequestNftTransferExternalEVM = ExternalRequestSign<EvmNftSubmitTransaction>;
|
|
1139
|
+
export declare type RequestStakeExternal = ExternalRequestSign<BondingSubmitParams>;
|
|
1140
|
+
export declare type RequestUnStakeExternal = ExternalRequestSign<UnbondingSubmitParams>;
|
|
1141
|
+
export declare type RequestWithdrawStakeExternal = ExternalRequestSign<StakeWithdrawalParams>;
|
|
1142
|
+
export declare type RequestClaimRewardExternal = ExternalRequestSign<StakeClaimRewardParams>;
|
|
1143
|
+
export declare type RequestCreateCompoundStakeExternal = ExternalRequestSign<TuringStakeCompoundParams>;
|
|
1144
|
+
export declare type RequestCancelCompoundStakeExternal = ExternalRequestSign<TuringCancelStakeCompoundParams>;
|
|
1161
1145
|
export interface KoniRequestSignatures {
|
|
1162
|
-
'pri(staking.submitTuringCancelCompound)': [
|
|
1146
|
+
'pri(staking.submitTuringCancelCompound)': [RequestTuringCancelStakeCompound, BasicTxResponse, BasicTxResponse];
|
|
1163
1147
|
'pri(staking.turingCancelCompound)': [TuringCancelStakeCompoundParams, BasicTxInfo];
|
|
1164
1148
|
'pri(staking.checkTuringCompoundTask)': [CheckExistingTuringCompoundParams, ExistingTuringCompoundTask];
|
|
1165
|
-
'pri(staking.submitTuringCompound)': [
|
|
1149
|
+
'pri(staking.submitTuringCompound)': [RequestTuringStakeCompound, BasicTxResponse, BasicTxResponse];
|
|
1166
1150
|
'pri(staking.turingCompound)': [TuringStakeCompoundParams, TuringStakeCompoundResp];
|
|
1167
1151
|
'pri(staking.delegationInfo)': [StakeDelegationRequest, DelegationItem[]];
|
|
1168
|
-
'pri(staking.submitClaimReward)': [
|
|
1152
|
+
'pri(staking.submitClaimReward)': [RequestStakeClaimReward, BasicTxResponse, BasicTxResponse];
|
|
1169
1153
|
'pri(staking.claimRewardTxInfo)': [StakeClaimRewardParams, BasicTxInfo];
|
|
1170
|
-
'pri(unbonding.submitWithdrawal)': [
|
|
1154
|
+
'pri(unbonding.submitWithdrawal)': [RequestStakeWithdrawal, BasicTxResponse, BasicTxResponse];
|
|
1171
1155
|
'pri(unbonding.withdrawalTxInfo)': [StakeWithdrawalParams, BasicTxInfo];
|
|
1172
1156
|
'pri(unbonding.subscribeUnlockingInfo)': [null, StakeUnlockingJson, StakeUnlockingJson];
|
|
1173
|
-
'pri(unbonding.submitTransaction)': [
|
|
1157
|
+
'pri(unbonding.submitTransaction)': [RequestUnbondingSubmit, BasicTxResponse, BasicTxResponse];
|
|
1174
1158
|
'pri(unbonding.txInfo)': [UnbondingSubmitParams, BasicTxInfo];
|
|
1175
1159
|
'pri(bonding.txInfo)': [BondingSubmitParams, BasicTxInfo];
|
|
1176
|
-
'pri(bonding.submitTransaction)': [
|
|
1160
|
+
'pri(bonding.submitTransaction)': [RequestBondingSubmit, BasicTxResponse, BasicTxResponse];
|
|
1177
1161
|
'pri(bonding.getChainBondingBasics)': [NetworkJson[], Record<string, ChainBondingBasics>, Record<string, ChainBondingBasics>];
|
|
1178
1162
|
'pri(bonding.getBondingOptions)': [BondingOptionParams, BondingOptionInfo];
|
|
1179
1163
|
'pri(networkMap.recoverDotSama)': [string, boolean];
|
|
@@ -1194,9 +1178,9 @@ export interface KoniRequestSignatures {
|
|
|
1194
1178
|
'pri(customTokenState.upsertCustomTokenState)': [CustomToken, boolean];
|
|
1195
1179
|
'pri(customTokenState.getCustomTokenState)': [null, CustomTokenJson];
|
|
1196
1180
|
'pri(customTokenState.getSubscription)': [null, CustomTokenJson, CustomTokenJson];
|
|
1197
|
-
'pri(evmNft.submitTransaction)': [
|
|
1181
|
+
'pri(evmNft.submitTransaction)': [RequestEvmNftSubmitTransaction, NftTransactionResponse, NftTransactionResponse];
|
|
1198
1182
|
'pri(evmNft.getTransaction)': [NftTransactionRequest, EvmNftTransaction];
|
|
1199
|
-
'pri(substrateNft.submitTransaction)': [
|
|
1183
|
+
'pri(substrateNft.submitTransaction)': [RequestSubstrateNftSubmitTransaction, NftTransactionResponse, NftTransactionResponse];
|
|
1200
1184
|
'pri(substrateNft.getTransaction)': [NftTransactionRequest, SubstrateNftTransaction];
|
|
1201
1185
|
'pri(nftTransfer.setNftTransfer)': [NftTransferExtra, boolean];
|
|
1202
1186
|
'pri(nftTransfer.getNftTransfer)': [null, NftTransferExtra];
|
|
@@ -1236,10 +1220,6 @@ export interface KoniRequestSignatures {
|
|
|
1236
1220
|
'pri(accounts.create.externalV2)': [RequestAccountCreateExternalV2, AccountExternalError[]];
|
|
1237
1221
|
'pri(accounts.create.hardwareV2)': [RequestAccountCreateHardwareV2, boolean];
|
|
1238
1222
|
'pri(accounts.create.withSecret)': [RequestAccountCreateWithSecretKey, ResponseAccountCreateWithSecretKey];
|
|
1239
|
-
'pri(accounts.checkTransfer)': [RequestCheckTransfer, ResponseCheckTransfer];
|
|
1240
|
-
'pri(accounts.checkCrossChainTransfer)': [RequestCheckCrossChainTransfer, ResponseCheckCrossChainTransfer];
|
|
1241
|
-
'pri(accounts.transfer)': [RequestTransfer, Array<TransferError>, ResponseTransfer];
|
|
1242
|
-
'pri(accounts.crossChainTransfer)': [RequestCrossChainTransfer, Array<TransferError>, ResponseTransfer];
|
|
1243
1223
|
'pri(derivation.createV2)': [RequestDeriveCreateV2, boolean];
|
|
1244
1224
|
'pri(json.restoreV2)': [RequestJsonRestoreV2, void];
|
|
1245
1225
|
'pri(json.batchRestoreV2)': [RequestBatchRestoreV2, void];
|
|
@@ -1250,6 +1230,7 @@ export interface KoniRequestSignatures {
|
|
|
1250
1230
|
'pri(accounts.saveRecent)': [RequestSaveRecentAccount, SingleAddress];
|
|
1251
1231
|
'pri(accounts.triggerSubscription)': [null, boolean];
|
|
1252
1232
|
'pri(accounts.get.meta)': [RequestAccountMeta, ResponseAccountMeta];
|
|
1233
|
+
'pri(accounts.updateCurrentAddress)': [string, boolean];
|
|
1253
1234
|
'pri(currentAccount.saveAddress)': [RequestCurrentAccountAddress, boolean, CurrentAccountInfo];
|
|
1254
1235
|
'pri(settings.changeBalancesVisibility)': [null, boolean, ResponseSettingsType];
|
|
1255
1236
|
'pri(settings.subscribe)': [null, ResponseSettingsType, ResponseSettingsType];
|
|
@@ -1263,13 +1244,16 @@ export interface KoniRequestSignatures {
|
|
|
1263
1244
|
'pri(transfer.getExistentialDeposit)': [RequestTransferExistentialDeposit, string];
|
|
1264
1245
|
'pri(subscription.cancel)': [string, boolean];
|
|
1265
1246
|
'pri(freeBalance.subscribe)': [RequestFreeBalance, string, string];
|
|
1247
|
+
'pri(accounts.checkTransfer)': [RequestCheckTransfer, ResponseCheckTransfer];
|
|
1248
|
+
'pri(accounts.transfer)': [RequestTransfer, BasicTxResponse, BasicTxResponse];
|
|
1249
|
+
'pri(accounts.checkCrossChainTransfer)': [RequestCheckCrossChainTransfer, ResponseCheckCrossChainTransfer];
|
|
1250
|
+
'pri(accounts.crossChainTransfer)': [RequestCrossChainTransfer, BasicTxResponse, BasicTxResponse];
|
|
1266
1251
|
'pri(confirmations.subscribe)': [RequestConfirmationsSubscribe, ConfirmationsQueue, ConfirmationsQueue];
|
|
1267
1252
|
'pri(confirmations.complete)': [RequestConfirmationComplete, boolean];
|
|
1268
1253
|
'pub(utils.getRandom)': [RandomTestRequest, number];
|
|
1269
1254
|
'pub(accounts.listV2)': [RequestAccountList, InjectedAccount[]];
|
|
1270
1255
|
'pub(accounts.subscribeV2)': [RequestAccountSubscribe, boolean, InjectedAccount[]];
|
|
1271
|
-
'pri(qr.transaction.parse.
|
|
1272
|
-
'pri(qr.transaction.parse.evm)': [RequestParseTransactionEVM, ResponseParseTransactionEVM];
|
|
1256
|
+
'pri(qr.transaction.parse.evm)': [RequestQrParseRLP, ResponseQrParseRLP];
|
|
1273
1257
|
'pri(qr.isLocked)': [RequestQRIsLocked, ResponseQRIsLocked];
|
|
1274
1258
|
'pri(qr.sign.substrate)': [RequestQrSignSubstrate, ResponseQrSignSubstrate];
|
|
1275
1259
|
'pri(qr.sign.evm)': [RequestQrSignEVM, ResponseQrSignEVM];
|
|
@@ -1278,20 +1262,26 @@ export interface KoniRequestSignatures {
|
|
|
1278
1262
|
'evm(events.subscribe)': [RequestEvmEvents, boolean, EvmEvent];
|
|
1279
1263
|
'evm(request)': [RequestArguments, unknown];
|
|
1280
1264
|
'evm(provider.send)': [RequestEvmProviderSend, string | number, ResponseEvmProviderSend];
|
|
1281
|
-
'pri(evm.transaction.parse.input)': [
|
|
1282
|
-
'pri(accounts.transfer.qr.create)': [RequestTransferExternal,
|
|
1283
|
-
'pri(accounts.cross.transfer.qr.create)': [RequestCrossChainTransferExternal,
|
|
1284
|
-
'pri(nft.transfer.qr.create.substrate)': [RequestNftTransferExternalSubstrate,
|
|
1285
|
-
'pri(nft.transfer.qr.create.evm)': [RequestNftTransferExternalEVM,
|
|
1286
|
-
'pri(stake.qr.create)': [RequestStakeExternal,
|
|
1287
|
-
'pri(unStake.qr.create)': [RequestUnStakeExternal,
|
|
1288
|
-
'pri(withdrawStake.qr.create)': [RequestWithdrawStakeExternal,
|
|
1289
|
-
'pri(
|
|
1290
|
-
'pri(
|
|
1291
|
-
'pri(
|
|
1292
|
-
'pri(
|
|
1293
|
-
'pri(
|
|
1294
|
-
'pri(
|
|
1265
|
+
'pri(evm.transaction.parse.input)': [RequestParseEVMContractInput, ResponseParseEVMContractInput];
|
|
1266
|
+
'pri(accounts.transfer.qr.create)': [RequestTransferExternal, BasicTxResponse, BasicTxResponse];
|
|
1267
|
+
'pri(accounts.cross.transfer.qr.create)': [RequestCrossChainTransferExternal, BasicTxResponse, BasicTxResponse];
|
|
1268
|
+
'pri(nft.transfer.qr.create.substrate)': [RequestNftTransferExternalSubstrate, NftTransactionResponse, NftTransactionResponse];
|
|
1269
|
+
'pri(nft.transfer.qr.create.evm)': [RequestNftTransferExternalEVM, NftTransactionResponse, NftTransactionResponse];
|
|
1270
|
+
'pri(stake.qr.create)': [RequestStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1271
|
+
'pri(unStake.qr.create)': [RequestUnStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1272
|
+
'pri(withdrawStake.qr.create)': [RequestWithdrawStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1273
|
+
'pri(claimReward.qr.create)': [RequestClaimRewardExternal, BasicTxResponse, BasicTxResponse];
|
|
1274
|
+
'pri(createCompound.qr.create)': [RequestCreateCompoundStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1275
|
+
'pri(cancelCompound.qr.create)': [RequestCancelCompoundStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1276
|
+
'pri(accounts.transfer.ledger.create)': [RequestTransferExternal, BasicTxResponse, BasicTxResponse];
|
|
1277
|
+
'pri(accounts.cross.transfer.ledger.create)': [RequestCrossChainTransferExternal, BasicTxResponse, BasicTxResponse];
|
|
1278
|
+
'pri(nft.transfer.ledger.create.substrate)': [RequestNftTransferExternalSubstrate, NftTransactionResponse, NftTransactionResponse];
|
|
1279
|
+
'pri(stake.ledger.create)': [RequestStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1280
|
+
'pri(unStake.ledger.create)': [RequestUnStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1281
|
+
'pri(withdrawStake.ledger.create)': [RequestWithdrawStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1282
|
+
'pri(claimReward.ledger.create)': [RequestClaimRewardExternal, BasicTxResponse, BasicTxResponse];
|
|
1283
|
+
'pri(createCompound.ledger.create)': [RequestCreateCompoundStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1284
|
+
'pri(cancelCompound.ledger.create)': [RequestCancelCompoundStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1295
1285
|
'pri(authorize.subscribe)': [null, AuthUrls, AuthUrls];
|
|
1296
1286
|
}
|
|
1297
1287
|
export interface ApplicationMetadataType {
|