@subwallet/extension-base 0.7.1 → 0.7.2-0wr
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 +339 -321
- 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/defaults.js +3 -1
- 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/defaults.d.ts +2 -1
- package/defaults.js +2 -1
- package/package.json +10 -5
- 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[];
|
|
@@ -915,28 +879,6 @@ export interface ConfirmationDefinitions {
|
|
|
915
879
|
evmSendTransactionRequest: [ConfirmationsQueueItem<EvmSendTransactionRequest>, ConfirmationResult<boolean>];
|
|
916
880
|
evmSendTransactionRequestQr: [ConfirmationsQueueItem<EvmSendTransactionRequestQr>, ConfirmationResultQr<boolean>];
|
|
917
881
|
}
|
|
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;
|
|
939
|
-
}
|
|
940
882
|
export declare type ConfirmationType = keyof ConfirmationDefinitions;
|
|
941
883
|
export declare type ConfirmationsQueue = {
|
|
942
884
|
[ConfirmationType in keyof ConfirmationDefinitions]: Record<string, ConfirmationDefinitions[ConfirmationType][0]>;
|
|
@@ -961,6 +903,142 @@ export interface ValidatorInfo {
|
|
|
961
903
|
icon?: string;
|
|
962
904
|
hasScheduledRequest?: boolean;
|
|
963
905
|
}
|
|
906
|
+
export interface BasicTxInfo {
|
|
907
|
+
fee: string;
|
|
908
|
+
balanceError: boolean;
|
|
909
|
+
rawFee?: number;
|
|
910
|
+
}
|
|
911
|
+
export interface BondingOptionParams {
|
|
912
|
+
networkKey: string;
|
|
913
|
+
address: string;
|
|
914
|
+
}
|
|
915
|
+
export interface SingleModeJson {
|
|
916
|
+
networkKeys: string[];
|
|
917
|
+
theme: ThemeTypes;
|
|
918
|
+
autoTriggerDomain: string;
|
|
919
|
+
}
|
|
920
|
+
export declare type NestedArray<T> = T | NestedArray<T>[];
|
|
921
|
+
export interface EVMTransactionArg {
|
|
922
|
+
name: string;
|
|
923
|
+
type: string;
|
|
924
|
+
value: string;
|
|
925
|
+
children?: EVMTransactionArg[];
|
|
926
|
+
}
|
|
927
|
+
export interface ParseEVMTransactionData {
|
|
928
|
+
method: string;
|
|
929
|
+
methodName: string;
|
|
930
|
+
args: EVMTransactionArg[];
|
|
931
|
+
}
|
|
932
|
+
export interface RequestParseEVMContractInput {
|
|
933
|
+
data: string;
|
|
934
|
+
contract: string;
|
|
935
|
+
chainId: number;
|
|
936
|
+
}
|
|
937
|
+
export interface ResponseParseEVMContractInput {
|
|
938
|
+
result: ParseEVMTransactionData | string;
|
|
939
|
+
}
|
|
940
|
+
export interface LedgerNetwork {
|
|
941
|
+
genesisHash: string;
|
|
942
|
+
displayName: string;
|
|
943
|
+
network: string;
|
|
944
|
+
icon: 'substrate' | 'ethereum';
|
|
945
|
+
isDevMode: boolean;
|
|
946
|
+
}
|
|
947
|
+
export interface TransakNetwork {
|
|
948
|
+
networks: string[];
|
|
949
|
+
tokens?: string[];
|
|
950
|
+
}
|
|
951
|
+
export interface FormattedMethod {
|
|
952
|
+
args?: ArgInfo[];
|
|
953
|
+
method: string;
|
|
954
|
+
}
|
|
955
|
+
export interface ArgInfo {
|
|
956
|
+
argName: string;
|
|
957
|
+
argValue: string | string[];
|
|
958
|
+
}
|
|
959
|
+
export interface EraInfo {
|
|
960
|
+
period: number;
|
|
961
|
+
phase: number;
|
|
962
|
+
}
|
|
963
|
+
export interface ResponseParseTransactionSubstrate {
|
|
964
|
+
era: EraInfo | string;
|
|
965
|
+
nonce: number;
|
|
966
|
+
method: string;
|
|
967
|
+
tip: number;
|
|
968
|
+
specVersion: number;
|
|
969
|
+
}
|
|
970
|
+
export interface RequestQrParseRLP {
|
|
971
|
+
data: string;
|
|
972
|
+
}
|
|
973
|
+
export interface ResponseQrParseRLP {
|
|
974
|
+
data: ParseEVMTransactionData | string;
|
|
975
|
+
input: string;
|
|
976
|
+
nonce: number;
|
|
977
|
+
to: string;
|
|
978
|
+
gas: number;
|
|
979
|
+
gasPrice: number;
|
|
980
|
+
value: number;
|
|
981
|
+
}
|
|
982
|
+
export interface RequestQRIsLocked {
|
|
983
|
+
address: string;
|
|
984
|
+
}
|
|
985
|
+
export interface ResponseQRIsLocked {
|
|
986
|
+
isLocked: boolean;
|
|
987
|
+
remainingTime: number;
|
|
988
|
+
}
|
|
989
|
+
export declare type SignerDataType = 'transaction' | 'message';
|
|
990
|
+
export interface RequestQrSignSubstrate {
|
|
991
|
+
address: string;
|
|
992
|
+
data: string;
|
|
993
|
+
savePass: boolean;
|
|
994
|
+
networkKey: string;
|
|
995
|
+
password?: string;
|
|
996
|
+
}
|
|
997
|
+
export interface ResponseQrSignSubstrate {
|
|
998
|
+
signature: string;
|
|
999
|
+
}
|
|
1000
|
+
export interface RequestQrSignEVM {
|
|
1001
|
+
address: string;
|
|
1002
|
+
message: string;
|
|
1003
|
+
type: 'message' | 'transaction';
|
|
1004
|
+
chainId?: number;
|
|
1005
|
+
password: string;
|
|
1006
|
+
}
|
|
1007
|
+
export interface ResponseQrSignEVM {
|
|
1008
|
+
signature: string;
|
|
1009
|
+
}
|
|
1010
|
+
export interface RequestCheckTransfer extends BaseRequestSign {
|
|
1011
|
+
networkKey: string;
|
|
1012
|
+
from: string;
|
|
1013
|
+
to: string;
|
|
1014
|
+
value?: string;
|
|
1015
|
+
transferAll?: boolean;
|
|
1016
|
+
token?: string;
|
|
1017
|
+
}
|
|
1018
|
+
export interface ResponseCheckTransfer {
|
|
1019
|
+
errors?: Array<BasicTxError>;
|
|
1020
|
+
fromAccountFree: string;
|
|
1021
|
+
toAccountFree: string;
|
|
1022
|
+
estimateFee?: string;
|
|
1023
|
+
feeSymbol?: string;
|
|
1024
|
+
}
|
|
1025
|
+
export declare type RequestTransfer = PasswordRequestSign<RequestCheckTransfer>;
|
|
1026
|
+
export interface RequestCheckCrossChainTransfer extends BaseRequestSign {
|
|
1027
|
+
originNetworkKey: string;
|
|
1028
|
+
destinationNetworkKey: string;
|
|
1029
|
+
from: string;
|
|
1030
|
+
to: string;
|
|
1031
|
+
transferAll?: boolean;
|
|
1032
|
+
value: string;
|
|
1033
|
+
token: string;
|
|
1034
|
+
}
|
|
1035
|
+
export declare type RequestCrossChainTransfer = PasswordRequestSign<RequestCheckCrossChainTransfer>;
|
|
1036
|
+
export interface ResponseCheckCrossChainTransfer {
|
|
1037
|
+
errors?: Array<BasicTxError>;
|
|
1038
|
+
feeString?: string;
|
|
1039
|
+
estimatedFee: string;
|
|
1040
|
+
feeSymbol: string;
|
|
1041
|
+
}
|
|
964
1042
|
export interface BondingOptionInfo {
|
|
965
1043
|
isBondedBefore: boolean;
|
|
966
1044
|
era: number;
|
|
@@ -974,52 +1052,38 @@ export interface ChainBondingBasics {
|
|
|
974
1052
|
isMaxNominators: boolean;
|
|
975
1053
|
validatorCount: number;
|
|
976
1054
|
}
|
|
977
|
-
export interface
|
|
978
|
-
fee: string;
|
|
979
|
-
balanceError: boolean;
|
|
980
|
-
rawFee?: number;
|
|
981
|
-
}
|
|
982
|
-
export interface BondingSubmitParams {
|
|
1055
|
+
export interface BondingSubmitParams extends BaseRequestSign {
|
|
983
1056
|
networkKey: string;
|
|
984
1057
|
nominatorAddress: string;
|
|
985
1058
|
amount: number;
|
|
986
1059
|
validatorInfo: ValidatorInfo;
|
|
987
|
-
password?: string;
|
|
988
1060
|
isBondedBefore: boolean;
|
|
989
1061
|
bondedValidators: string[];
|
|
990
1062
|
lockPeriod?: number;
|
|
991
1063
|
}
|
|
992
|
-
export declare
|
|
993
|
-
|
|
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
|
-
export interface BondingOptionParams {
|
|
1007
|
-
networkKey: string;
|
|
1008
|
-
address: string;
|
|
1009
|
-
}
|
|
1010
|
-
export interface UnbondingSubmitParams {
|
|
1064
|
+
export declare type RequestBondingSubmit = PasswordRequestSign<BondingSubmitParams>;
|
|
1065
|
+
export interface UnbondingSubmitParams extends BaseRequestSign {
|
|
1011
1066
|
amount: number;
|
|
1012
1067
|
networkKey: string;
|
|
1013
1068
|
address: string;
|
|
1014
|
-
password?: string;
|
|
1015
1069
|
validatorAddress?: string;
|
|
1016
1070
|
unstakeAll?: boolean;
|
|
1017
1071
|
}
|
|
1018
|
-
export
|
|
1072
|
+
export declare type RequestUnbondingSubmit = PasswordRequestSign<UnbondingSubmitParams>;
|
|
1073
|
+
export interface StakeWithdrawalParams extends BaseRequestSign {
|
|
1074
|
+
address: string;
|
|
1075
|
+
networkKey: string;
|
|
1076
|
+
validatorAddress?: string;
|
|
1077
|
+
action?: string;
|
|
1078
|
+
}
|
|
1079
|
+
export declare type RequestStakeWithdrawal = PasswordRequestSign<StakeWithdrawalParams>;
|
|
1080
|
+
export interface StakeClaimRewardParams extends BaseRequestSign {
|
|
1019
1081
|
address: string;
|
|
1020
1082
|
networkKey: string;
|
|
1021
|
-
|
|
1083
|
+
validatorAddress?: string;
|
|
1084
|
+
stakingType: StakingType;
|
|
1022
1085
|
}
|
|
1086
|
+
export declare type RequestStakeClaimReward = PasswordRequestSign<StakeClaimRewardParams>;
|
|
1023
1087
|
export interface DelegationItem {
|
|
1024
1088
|
owner: string;
|
|
1025
1089
|
amount: string;
|
|
@@ -1028,107 +1092,20 @@ export interface DelegationItem {
|
|
|
1028
1092
|
hasScheduledRequest: boolean;
|
|
1029
1093
|
icon?: string;
|
|
1030
1094
|
}
|
|
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
1095
|
export interface StakeDelegationRequest {
|
|
1090
1096
|
address: string;
|
|
1091
1097
|
networkKey: string;
|
|
1092
1098
|
}
|
|
1093
|
-
export interface
|
|
1094
|
-
networkKeys: string[];
|
|
1095
|
-
theme: ThemeTypes;
|
|
1096
|
-
autoTriggerDomain: string;
|
|
1097
|
-
}
|
|
1098
|
-
export declare type NestedArray<T> = T | NestedArray<T>[];
|
|
1099
|
-
export interface EVMTransactionArg {
|
|
1100
|
-
name: string;
|
|
1101
|
-
type: string;
|
|
1102
|
-
value: string;
|
|
1103
|
-
children?: EVMTransactionArg[];
|
|
1104
|
-
}
|
|
1105
|
-
export interface ParseEVMTransactionData {
|
|
1106
|
-
method: string;
|
|
1107
|
-
methodName: string;
|
|
1108
|
-
args: EVMTransactionArg[];
|
|
1109
|
-
}
|
|
1110
|
-
export interface RequestParseEVMTransactionInput {
|
|
1111
|
-
data: string;
|
|
1112
|
-
contract: string;
|
|
1113
|
-
chainId: number;
|
|
1114
|
-
}
|
|
1115
|
-
export interface ResponseParseEVMTransactionInput {
|
|
1116
|
-
result: ParseEVMTransactionData | string;
|
|
1117
|
-
}
|
|
1118
|
-
export interface LedgerNetwork {
|
|
1119
|
-
genesisHash: string;
|
|
1120
|
-
displayName: string;
|
|
1121
|
-
network: string;
|
|
1122
|
-
icon: 'substrate' | 'ethereum';
|
|
1123
|
-
isDevMode: boolean;
|
|
1124
|
-
}
|
|
1125
|
-
export interface TuringStakeCompoundParams {
|
|
1099
|
+
export interface CheckExistingTuringCompoundParams {
|
|
1126
1100
|
address: string;
|
|
1127
1101
|
collatorAddress: string;
|
|
1128
1102
|
networkKey: string;
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1103
|
+
}
|
|
1104
|
+
export interface ExistingTuringCompoundTask {
|
|
1105
|
+
exist: boolean;
|
|
1106
|
+
taskId: string;
|
|
1107
|
+
accountMinimum: number;
|
|
1108
|
+
frequency: number;
|
|
1132
1109
|
}
|
|
1133
1110
|
export interface TuringStakeCompoundResp {
|
|
1134
1111
|
txInfo: BasicTxInfo;
|
|
@@ -1137,43 +1114,66 @@ export interface TuringStakeCompoundResp {
|
|
|
1137
1114
|
compoundFee: string;
|
|
1138
1115
|
rawCompoundFee?: number;
|
|
1139
1116
|
}
|
|
1140
|
-
export interface
|
|
1141
|
-
networks: string[];
|
|
1142
|
-
tokens?: string[];
|
|
1143
|
-
}
|
|
1144
|
-
export interface CheckExistingTuringCompoundParams {
|
|
1117
|
+
export interface TuringStakeCompoundParams extends BaseRequestSign {
|
|
1145
1118
|
address: string;
|
|
1146
1119
|
collatorAddress: string;
|
|
1147
1120
|
networkKey: string;
|
|
1121
|
+
accountMinimum: string;
|
|
1122
|
+
bondedAmount: string;
|
|
1148
1123
|
}
|
|
1149
|
-
export
|
|
1150
|
-
|
|
1151
|
-
taskId: string;
|
|
1152
|
-
accountMinimum: number;
|
|
1153
|
-
frequency: number;
|
|
1154
|
-
}
|
|
1155
|
-
export interface TuringCancelStakeCompoundParams {
|
|
1124
|
+
export declare type RequestTuringStakeCompound = PasswordRequestSign<TuringStakeCompoundParams>;
|
|
1125
|
+
export interface TuringCancelStakeCompoundParams extends BaseRequestSign {
|
|
1156
1126
|
taskId: string;
|
|
1157
1127
|
networkKey: string;
|
|
1158
1128
|
address: string;
|
|
1159
|
-
|
|
1129
|
+
}
|
|
1130
|
+
export declare type RequestTuringCancelStakeCompound = PasswordRequestSign<TuringCancelStakeCompoundParams>;
|
|
1131
|
+
export declare type RequestTransferExternal = ExternalRequestSign<RequestCheckTransfer>;
|
|
1132
|
+
export declare type RequestCrossChainTransferExternal = ExternalRequestSign<RequestCheckCrossChainTransfer>;
|
|
1133
|
+
export declare type RequestNftTransferExternalSubstrate = ExternalRequestSign<SubstrateNftSubmitTransaction>;
|
|
1134
|
+
export declare type RequestNftTransferExternalEVM = ExternalRequestSign<EvmNftSubmitTransaction>;
|
|
1135
|
+
export declare type RequestStakeExternal = ExternalRequestSign<BondingSubmitParams>;
|
|
1136
|
+
export declare type RequestUnStakeExternal = ExternalRequestSign<UnbondingSubmitParams>;
|
|
1137
|
+
export declare type RequestWithdrawStakeExternal = ExternalRequestSign<StakeWithdrawalParams>;
|
|
1138
|
+
export declare type RequestClaimRewardExternal = ExternalRequestSign<StakeClaimRewardParams>;
|
|
1139
|
+
export declare type RequestCreateCompoundStakeExternal = ExternalRequestSign<TuringStakeCompoundParams>;
|
|
1140
|
+
export declare type RequestCancelCompoundStakeExternal = ExternalRequestSign<TuringCancelStakeCompoundParams>;
|
|
1141
|
+
export declare type SubscriptionServiceType = 'chainRegistry' | 'balance' | 'crowdloan' | 'staking';
|
|
1142
|
+
export declare type CronServiceType = 'price' | 'nft' | 'staking' | 'history' | 'recoverApi' | 'checkApiStatus';
|
|
1143
|
+
export declare type CronType = 'recoverApiMap' | 'checkApiMapStatus' | 'refreshHistory' | 'refreshNft' | 'refreshPrice' | 'refreshStakeUnlockingInfo' | 'refreshStakingReward';
|
|
1144
|
+
export interface RequestInitCronAndSubscription {
|
|
1145
|
+
subscription: {
|
|
1146
|
+
activeServices: SubscriptionServiceType[];
|
|
1147
|
+
};
|
|
1148
|
+
cron: {
|
|
1149
|
+
intervalMap: Partial<Record<CronType, number>>;
|
|
1150
|
+
activeServices: CronServiceType[];
|
|
1151
|
+
};
|
|
1152
|
+
}
|
|
1153
|
+
export interface RequestCronAndSubscriptionAction {
|
|
1154
|
+
subscriptionServices: SubscriptionServiceType[];
|
|
1155
|
+
cronServices: CronServiceType[];
|
|
1156
|
+
}
|
|
1157
|
+
export interface ActiveCronAndSubscriptionMap {
|
|
1158
|
+
subscription: Record<SubscriptionServiceType, boolean>;
|
|
1159
|
+
cron: Record<CronServiceType, boolean>;
|
|
1160
1160
|
}
|
|
1161
1161
|
export interface KoniRequestSignatures {
|
|
1162
|
-
'pri(staking.submitTuringCancelCompound)': [
|
|
1162
|
+
'pri(staking.submitTuringCancelCompound)': [RequestTuringCancelStakeCompound, BasicTxResponse, BasicTxResponse];
|
|
1163
1163
|
'pri(staking.turingCancelCompound)': [TuringCancelStakeCompoundParams, BasicTxInfo];
|
|
1164
1164
|
'pri(staking.checkTuringCompoundTask)': [CheckExistingTuringCompoundParams, ExistingTuringCompoundTask];
|
|
1165
|
-
'pri(staking.submitTuringCompound)': [
|
|
1165
|
+
'pri(staking.submitTuringCompound)': [RequestTuringStakeCompound, BasicTxResponse, BasicTxResponse];
|
|
1166
1166
|
'pri(staking.turingCompound)': [TuringStakeCompoundParams, TuringStakeCompoundResp];
|
|
1167
1167
|
'pri(staking.delegationInfo)': [StakeDelegationRequest, DelegationItem[]];
|
|
1168
|
-
'pri(staking.submitClaimReward)': [
|
|
1168
|
+
'pri(staking.submitClaimReward)': [RequestStakeClaimReward, BasicTxResponse, BasicTxResponse];
|
|
1169
1169
|
'pri(staking.claimRewardTxInfo)': [StakeClaimRewardParams, BasicTxInfo];
|
|
1170
|
-
'pri(unbonding.submitWithdrawal)': [
|
|
1170
|
+
'pri(unbonding.submitWithdrawal)': [RequestStakeWithdrawal, BasicTxResponse, BasicTxResponse];
|
|
1171
1171
|
'pri(unbonding.withdrawalTxInfo)': [StakeWithdrawalParams, BasicTxInfo];
|
|
1172
1172
|
'pri(unbonding.subscribeUnlockingInfo)': [null, StakeUnlockingJson, StakeUnlockingJson];
|
|
1173
|
-
'pri(unbonding.submitTransaction)': [
|
|
1173
|
+
'pri(unbonding.submitTransaction)': [RequestUnbondingSubmit, BasicTxResponse, BasicTxResponse];
|
|
1174
1174
|
'pri(unbonding.txInfo)': [UnbondingSubmitParams, BasicTxInfo];
|
|
1175
1175
|
'pri(bonding.txInfo)': [BondingSubmitParams, BasicTxInfo];
|
|
1176
|
-
'pri(bonding.submitTransaction)': [
|
|
1176
|
+
'pri(bonding.submitTransaction)': [RequestBondingSubmit, BasicTxResponse, BasicTxResponse];
|
|
1177
1177
|
'pri(bonding.getChainBondingBasics)': [NetworkJson[], Record<string, ChainBondingBasics>, Record<string, ChainBondingBasics>];
|
|
1178
1178
|
'pri(bonding.getBondingOptions)': [BondingOptionParams, BondingOptionInfo];
|
|
1179
1179
|
'pri(networkMap.recoverDotSama)': [string, boolean];
|
|
@@ -1194,9 +1194,9 @@ export interface KoniRequestSignatures {
|
|
|
1194
1194
|
'pri(customTokenState.upsertCustomTokenState)': [CustomToken, boolean];
|
|
1195
1195
|
'pri(customTokenState.getCustomTokenState)': [null, CustomTokenJson];
|
|
1196
1196
|
'pri(customTokenState.getSubscription)': [null, CustomTokenJson, CustomTokenJson];
|
|
1197
|
-
'pri(evmNft.submitTransaction)': [
|
|
1197
|
+
'pri(evmNft.submitTransaction)': [RequestEvmNftSubmitTransaction, NftTransactionResponse, NftTransactionResponse];
|
|
1198
1198
|
'pri(evmNft.getTransaction)': [NftTransactionRequest, EvmNftTransaction];
|
|
1199
|
-
'pri(substrateNft.submitTransaction)': [
|
|
1199
|
+
'pri(substrateNft.submitTransaction)': [RequestSubstrateNftSubmitTransaction, NftTransactionResponse, NftTransactionResponse];
|
|
1200
1200
|
'pri(substrateNft.getTransaction)': [NftTransactionRequest, SubstrateNftTransaction];
|
|
1201
1201
|
'pri(nftTransfer.setNftTransfer)': [NftTransferExtra, boolean];
|
|
1202
1202
|
'pri(nftTransfer.getNftTransfer)': [null, NftTransferExtra];
|
|
@@ -1236,10 +1236,6 @@ export interface KoniRequestSignatures {
|
|
|
1236
1236
|
'pri(accounts.create.externalV2)': [RequestAccountCreateExternalV2, AccountExternalError[]];
|
|
1237
1237
|
'pri(accounts.create.hardwareV2)': [RequestAccountCreateHardwareV2, boolean];
|
|
1238
1238
|
'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
1239
|
'pri(derivation.createV2)': [RequestDeriveCreateV2, boolean];
|
|
1244
1240
|
'pri(json.restoreV2)': [RequestJsonRestoreV2, void];
|
|
1245
1241
|
'pri(json.batchRestoreV2)': [RequestBatchRestoreV2, void];
|
|
@@ -1250,6 +1246,7 @@ export interface KoniRequestSignatures {
|
|
|
1250
1246
|
'pri(accounts.saveRecent)': [RequestSaveRecentAccount, SingleAddress];
|
|
1251
1247
|
'pri(accounts.triggerSubscription)': [null, boolean];
|
|
1252
1248
|
'pri(accounts.get.meta)': [RequestAccountMeta, ResponseAccountMeta];
|
|
1249
|
+
'pri(accounts.updateCurrentAddress)': [string, boolean];
|
|
1253
1250
|
'pri(currentAccount.saveAddress)': [RequestCurrentAccountAddress, boolean, CurrentAccountInfo];
|
|
1254
1251
|
'pri(settings.changeBalancesVisibility)': [null, boolean, ResponseSettingsType];
|
|
1255
1252
|
'pri(settings.subscribe)': [null, ResponseSettingsType, ResponseSettingsType];
|
|
@@ -1263,13 +1260,16 @@ export interface KoniRequestSignatures {
|
|
|
1263
1260
|
'pri(transfer.getExistentialDeposit)': [RequestTransferExistentialDeposit, string];
|
|
1264
1261
|
'pri(subscription.cancel)': [string, boolean];
|
|
1265
1262
|
'pri(freeBalance.subscribe)': [RequestFreeBalance, string, string];
|
|
1263
|
+
'pri(accounts.checkTransfer)': [RequestCheckTransfer, ResponseCheckTransfer];
|
|
1264
|
+
'pri(accounts.transfer)': [RequestTransfer, BasicTxResponse, BasicTxResponse];
|
|
1265
|
+
'pri(accounts.checkCrossChainTransfer)': [RequestCheckCrossChainTransfer, ResponseCheckCrossChainTransfer];
|
|
1266
|
+
'pri(accounts.crossChainTransfer)': [RequestCrossChainTransfer, BasicTxResponse, BasicTxResponse];
|
|
1266
1267
|
'pri(confirmations.subscribe)': [RequestConfirmationsSubscribe, ConfirmationsQueue, ConfirmationsQueue];
|
|
1267
1268
|
'pri(confirmations.complete)': [RequestConfirmationComplete, boolean];
|
|
1268
1269
|
'pub(utils.getRandom)': [RandomTestRequest, number];
|
|
1269
1270
|
'pub(accounts.listV2)': [RequestAccountList, InjectedAccount[]];
|
|
1270
1271
|
'pub(accounts.subscribeV2)': [RequestAccountSubscribe, boolean, InjectedAccount[]];
|
|
1271
|
-
'pri(qr.transaction.parse.
|
|
1272
|
-
'pri(qr.transaction.parse.evm)': [RequestParseTransactionEVM, ResponseParseTransactionEVM];
|
|
1272
|
+
'pri(qr.transaction.parse.evm)': [RequestQrParseRLP, ResponseQrParseRLP];
|
|
1273
1273
|
'pri(qr.isLocked)': [RequestQRIsLocked, ResponseQRIsLocked];
|
|
1274
1274
|
'pri(qr.sign.substrate)': [RequestQrSignSubstrate, ResponseQrSignSubstrate];
|
|
1275
1275
|
'pri(qr.sign.evm)': [RequestQrSignEVM, ResponseQrSignEVM];
|
|
@@ -1278,21 +1278,39 @@ export interface KoniRequestSignatures {
|
|
|
1278
1278
|
'evm(events.subscribe)': [RequestEvmEvents, boolean, EvmEvent];
|
|
1279
1279
|
'evm(request)': [RequestArguments, unknown];
|
|
1280
1280
|
'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(
|
|
1281
|
+
'pri(evm.transaction.parse.input)': [RequestParseEVMContractInput, ResponseParseEVMContractInput];
|
|
1282
|
+
'pri(accounts.transfer.qr.create)': [RequestTransferExternal, BasicTxResponse, BasicTxResponse];
|
|
1283
|
+
'pri(accounts.cross.transfer.qr.create)': [RequestCrossChainTransferExternal, BasicTxResponse, BasicTxResponse];
|
|
1284
|
+
'pri(nft.transfer.qr.create.substrate)': [RequestNftTransferExternalSubstrate, NftTransactionResponse, NftTransactionResponse];
|
|
1285
|
+
'pri(nft.transfer.qr.create.evm)': [RequestNftTransferExternalEVM, NftTransactionResponse, NftTransactionResponse];
|
|
1286
|
+
'pri(stake.qr.create)': [RequestStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1287
|
+
'pri(unStake.qr.create)': [RequestUnStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1288
|
+
'pri(withdrawStake.qr.create)': [RequestWithdrawStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1289
|
+
'pri(claimReward.qr.create)': [RequestClaimRewardExternal, BasicTxResponse, BasicTxResponse];
|
|
1290
|
+
'pri(createCompound.qr.create)': [RequestCreateCompoundStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1291
|
+
'pri(cancelCompound.qr.create)': [RequestCancelCompoundStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1292
|
+
'pri(accounts.transfer.ledger.create)': [RequestTransferExternal, BasicTxResponse, BasicTxResponse];
|
|
1293
|
+
'pri(accounts.cross.transfer.ledger.create)': [RequestCrossChainTransferExternal, BasicTxResponse, BasicTxResponse];
|
|
1294
|
+
'pri(nft.transfer.ledger.create.substrate)': [RequestNftTransferExternalSubstrate, NftTransactionResponse, NftTransactionResponse];
|
|
1295
|
+
'pri(stake.ledger.create)': [RequestStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1296
|
+
'pri(unStake.ledger.create)': [RequestUnStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1297
|
+
'pri(withdrawStake.ledger.create)': [RequestWithdrawStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1298
|
+
'pri(claimReward.ledger.create)': [RequestClaimRewardExternal, BasicTxResponse, BasicTxResponse];
|
|
1299
|
+
'pri(createCompound.ledger.create)': [RequestCreateCompoundStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1300
|
+
'pri(cancelCompound.ledger.create)': [RequestCancelCompoundStakeExternal, BasicTxResponse, BasicTxResponse];
|
|
1295
1301
|
'pri(authorize.subscribe)': [null, AuthUrls, AuthUrls];
|
|
1302
|
+
'mobile(ping)': [null, string];
|
|
1303
|
+
'mobile(cronAndSubscription.init)': [RequestInitCronAndSubscription, ActiveCronAndSubscriptionMap];
|
|
1304
|
+
'mobile(cronAndSubscription.activeService.subscribe)': [null, ActiveCronAndSubscriptionMap, ActiveCronAndSubscriptionMap];
|
|
1305
|
+
'mobile(cronAndSubscription.start)': [RequestCronAndSubscriptionAction, void];
|
|
1306
|
+
'mobile(cronAndSubscription.stop)': [RequestCronAndSubscriptionAction, void];
|
|
1307
|
+
'mobile(cronAndSubscription.restart)': [RequestCronAndSubscriptionAction, void];
|
|
1308
|
+
'mobile(cron.start)': [CronServiceType[], void];
|
|
1309
|
+
'mobile(cron.stop)': [CronServiceType[], void];
|
|
1310
|
+
'mobile(cron.restart)': [CronServiceType[], void];
|
|
1311
|
+
'mobile(subscription.start)': [SubscriptionServiceType[], void];
|
|
1312
|
+
'mobile(subscription.stop)': [SubscriptionServiceType[], void];
|
|
1313
|
+
'mobile(subscription.restart)': [SubscriptionServiceType[], void];
|
|
1296
1314
|
}
|
|
1297
1315
|
export interface ApplicationMetadataType {
|
|
1298
1316
|
version: string;
|