@subwallet/extension-base 0.7.1-wr → 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 +306 -322
- 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 -42
- package/cjs/background/KoniTypes.js +27 -35
- package/cjs/background/handlers/Extension.js +8 -55
- package/cjs/packageInfo.js +1 -1
- 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/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,59 +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
|
-
isReadOnly: boolean;
|
|
795
|
-
}
|
|
796
|
-
export interface RequestAccountCreateHardwareV2 {
|
|
797
|
-
accountIndex: number;
|
|
798
|
-
address: string;
|
|
799
|
-
addressOffset: number;
|
|
800
|
-
genesisHash: string;
|
|
801
|
-
hardwareType: string;
|
|
802
|
-
name: string;
|
|
803
|
-
isAllowed?: boolean;
|
|
804
|
-
}
|
|
805
|
-
export declare enum AccountExternalErrorCode {
|
|
806
|
-
INVALID_ADDRESS = "invalidToAccount",
|
|
807
|
-
KEYRING_ERROR = "keyringError",
|
|
808
|
-
UNKNOWN_ERROR = "unknownError"
|
|
809
|
-
}
|
|
810
|
-
export interface AccountExternalError {
|
|
811
|
-
code: AccountExternalErrorCode;
|
|
812
|
-
message: string;
|
|
813
|
-
}
|
|
814
|
-
export interface RequestAccountCreateWithSecretKey {
|
|
815
|
-
publicKey: string;
|
|
816
|
-
secretKey: string;
|
|
817
|
-
password: string;
|
|
818
|
-
name: string;
|
|
819
|
-
isAllow: boolean;
|
|
820
|
-
isEthereum: boolean;
|
|
821
|
-
}
|
|
822
|
-
export interface ResponseAccountCreateWithSecretKey {
|
|
823
|
-
errors: AccountExternalError[];
|
|
824
|
-
success: boolean;
|
|
825
|
-
}
|
|
826
789
|
export declare type RequestEvmEvents = null;
|
|
827
790
|
export declare type EvmEventType = 'connect' | 'disconnect' | 'accountsChanged' | 'chainChanged' | 'message' | 'data' | 'reconnect' | 'error';
|
|
828
791
|
export declare type EvmAccountsChangedPayload = string[];
|
|
@@ -916,28 +879,6 @@ export interface ConfirmationDefinitions {
|
|
|
916
879
|
evmSendTransactionRequest: [ConfirmationsQueueItem<EvmSendTransactionRequest>, ConfirmationResult<boolean>];
|
|
917
880
|
evmSendTransactionRequestQr: [ConfirmationsQueueItem<EvmSendTransactionRequestQr>, ConfirmationResultQr<boolean>];
|
|
918
881
|
}
|
|
919
|
-
export interface RequestParseTransactionEVM {
|
|
920
|
-
data: string;
|
|
921
|
-
}
|
|
922
|
-
export interface ResponseParseTransactionEVM {
|
|
923
|
-
data: ParseEVMTransactionData | string;
|
|
924
|
-
input: string;
|
|
925
|
-
nonce: number;
|
|
926
|
-
to: string;
|
|
927
|
-
gas: number;
|
|
928
|
-
gasPrice: number;
|
|
929
|
-
value: number;
|
|
930
|
-
}
|
|
931
|
-
export interface RequestQrSignEVM {
|
|
932
|
-
address: string;
|
|
933
|
-
message: string;
|
|
934
|
-
type: 'message' | 'transaction';
|
|
935
|
-
chainId?: number;
|
|
936
|
-
password: string;
|
|
937
|
-
}
|
|
938
|
-
export interface ResponseQrSignEVM {
|
|
939
|
-
signature: string;
|
|
940
|
-
}
|
|
941
882
|
export declare type ConfirmationType = keyof ConfirmationDefinitions;
|
|
942
883
|
export declare type ConfirmationsQueue = {
|
|
943
884
|
[ConfirmationType in keyof ConfirmationDefinitions]: Record<string, ConfirmationDefinitions[ConfirmationType][0]>;
|
|
@@ -962,6 +903,142 @@ export interface ValidatorInfo {
|
|
|
962
903
|
icon?: string;
|
|
963
904
|
hasScheduledRequest?: boolean;
|
|
964
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
|
+
}
|
|
965
1042
|
export interface BondingOptionInfo {
|
|
966
1043
|
isBondedBefore: boolean;
|
|
967
1044
|
era: number;
|
|
@@ -975,52 +1052,38 @@ export interface ChainBondingBasics {
|
|
|
975
1052
|
isMaxNominators: boolean;
|
|
976
1053
|
validatorCount: number;
|
|
977
1054
|
}
|
|
978
|
-
export interface
|
|
979
|
-
fee: string;
|
|
980
|
-
balanceError: boolean;
|
|
981
|
-
rawFee?: number;
|
|
982
|
-
}
|
|
983
|
-
export interface BondingSubmitParams {
|
|
1055
|
+
export interface BondingSubmitParams extends BaseRequestSign {
|
|
984
1056
|
networkKey: string;
|
|
985
1057
|
nominatorAddress: string;
|
|
986
1058
|
amount: number;
|
|
987
1059
|
validatorInfo: ValidatorInfo;
|
|
988
|
-
password?: string;
|
|
989
1060
|
isBondedBefore: boolean;
|
|
990
1061
|
bondedValidators: string[];
|
|
991
1062
|
lockPeriod?: number;
|
|
992
1063
|
}
|
|
993
|
-
export declare
|
|
994
|
-
|
|
995
|
-
}
|
|
996
|
-
export interface BasicTxResponse {
|
|
997
|
-
passwordError?: string | null;
|
|
998
|
-
callHash?: string;
|
|
999
|
-
status?: boolean;
|
|
1000
|
-
transactionHash?: string;
|
|
1001
|
-
txError?: boolean;
|
|
1002
|
-
errorMessage?: BasicTxError;
|
|
1003
|
-
}
|
|
1004
|
-
export interface NftTransactionResponse extends BasicTxResponse {
|
|
1005
|
-
isSendingSelf: boolean;
|
|
1006
|
-
}
|
|
1007
|
-
export interface BondingOptionParams {
|
|
1008
|
-
networkKey: string;
|
|
1009
|
-
address: string;
|
|
1010
|
-
}
|
|
1011
|
-
export interface UnbondingSubmitParams {
|
|
1064
|
+
export declare type RequestBondingSubmit = PasswordRequestSign<BondingSubmitParams>;
|
|
1065
|
+
export interface UnbondingSubmitParams extends BaseRequestSign {
|
|
1012
1066
|
amount: number;
|
|
1013
1067
|
networkKey: string;
|
|
1014
1068
|
address: string;
|
|
1015
|
-
password?: string;
|
|
1016
1069
|
validatorAddress?: string;
|
|
1017
1070
|
unstakeAll?: boolean;
|
|
1018
1071
|
}
|
|
1019
|
-
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 {
|
|
1020
1081
|
address: string;
|
|
1021
1082
|
networkKey: string;
|
|
1022
|
-
|
|
1083
|
+
validatorAddress?: string;
|
|
1084
|
+
stakingType: StakingType;
|
|
1023
1085
|
}
|
|
1086
|
+
export declare type RequestStakeClaimReward = PasswordRequestSign<StakeClaimRewardParams>;
|
|
1024
1087
|
export interface DelegationItem {
|
|
1025
1088
|
owner: string;
|
|
1026
1089
|
amount: string;
|
|
@@ -1029,107 +1092,20 @@ export interface DelegationItem {
|
|
|
1029
1092
|
hasScheduledRequest: boolean;
|
|
1030
1093
|
icon?: string;
|
|
1031
1094
|
}
|
|
1032
|
-
export interface StakeWithdrawalParams {
|
|
1033
|
-
address: string;
|
|
1034
|
-
networkKey: string;
|
|
1035
|
-
password?: string;
|
|
1036
|
-
validatorAddress?: string;
|
|
1037
|
-
action?: string;
|
|
1038
|
-
}
|
|
1039
|
-
export interface StakeClaimRewardParams {
|
|
1040
|
-
address: string;
|
|
1041
|
-
networkKey: string;
|
|
1042
|
-
validatorAddress?: string;
|
|
1043
|
-
password?: string;
|
|
1044
|
-
}
|
|
1045
|
-
export interface ResponseNftTransferExternal extends NftTransactionResponse {
|
|
1046
|
-
externalState?: ExternalState;
|
|
1047
|
-
}
|
|
1048
|
-
export interface ResponseNftTransferQr extends ResponseNftTransferExternal {
|
|
1049
|
-
qrState?: QrState;
|
|
1050
|
-
isBusy?: boolean;
|
|
1051
|
-
}
|
|
1052
|
-
export interface ResponseNftTransferLedger extends ResponseNftTransferExternal {
|
|
1053
|
-
ledgerState?: LedgerState;
|
|
1054
|
-
}
|
|
1055
|
-
export declare type RequestNftTransferExternalSubstrate = Omit<SubstrateNftSubmitTransaction, 'password'>;
|
|
1056
|
-
export declare type RequestNftTransferExternalEVM = Omit<EvmNftSubmitTransaction, 'password'>;
|
|
1057
|
-
export declare type RequestStakeExternal = Omit<BondingSubmitParams, 'password'>;
|
|
1058
|
-
export interface ResponseStakeExternal extends BasicTxResponse {
|
|
1059
|
-
externalState?: ExternalState;
|
|
1060
|
-
}
|
|
1061
|
-
export interface ResponseStakeQr extends ResponseStakeExternal {
|
|
1062
|
-
qrState?: QrState;
|
|
1063
|
-
isBusy?: boolean;
|
|
1064
|
-
}
|
|
1065
|
-
export interface ResponseStakeLedger extends ResponseStakeExternal {
|
|
1066
|
-
ledgerState?: LedgerState;
|
|
1067
|
-
}
|
|
1068
|
-
export declare type RequestUnStakeExternal = Omit<UnbondingSubmitParams, 'password'>;
|
|
1069
|
-
export interface ResponseUnStakeExternal extends BasicTxResponse {
|
|
1070
|
-
externalState?: ExternalState;
|
|
1071
|
-
}
|
|
1072
|
-
export interface ResponseUnStakeQr extends ResponseUnStakeExternal {
|
|
1073
|
-
qrState?: QrState;
|
|
1074
|
-
isBusy?: boolean;
|
|
1075
|
-
}
|
|
1076
|
-
export interface ResponseUnStakeLedger extends ResponseUnStakeExternal {
|
|
1077
|
-
ledgerState?: LedgerState;
|
|
1078
|
-
}
|
|
1079
|
-
export declare type RequestWithdrawStakeExternal = Omit<StakeWithdrawalParams, 'password'>;
|
|
1080
|
-
export interface ResponseWithdrawStakeExternal extends BasicTxResponse {
|
|
1081
|
-
externalState?: ExternalState;
|
|
1082
|
-
}
|
|
1083
|
-
export interface ResponseWithdrawStakeQr extends ResponseWithdrawStakeExternal {
|
|
1084
|
-
qrState?: QrState;
|
|
1085
|
-
isBusy?: boolean;
|
|
1086
|
-
}
|
|
1087
|
-
export interface ResponseWithdrawStakeLedger extends ResponseWithdrawStakeExternal {
|
|
1088
|
-
ledgerState?: LedgerState;
|
|
1089
|
-
}
|
|
1090
1095
|
export interface StakeDelegationRequest {
|
|
1091
1096
|
address: string;
|
|
1092
1097
|
networkKey: string;
|
|
1093
1098
|
}
|
|
1094
|
-
export interface
|
|
1095
|
-
networkKeys: string[];
|
|
1096
|
-
theme: ThemeTypes;
|
|
1097
|
-
autoTriggerDomain: string;
|
|
1098
|
-
}
|
|
1099
|
-
export declare type NestedArray<T> = T | NestedArray<T>[];
|
|
1100
|
-
export interface EVMTransactionArg {
|
|
1101
|
-
name: string;
|
|
1102
|
-
type: string;
|
|
1103
|
-
value: string;
|
|
1104
|
-
children?: EVMTransactionArg[];
|
|
1105
|
-
}
|
|
1106
|
-
export interface ParseEVMTransactionData {
|
|
1107
|
-
method: string;
|
|
1108
|
-
methodName: string;
|
|
1109
|
-
args: EVMTransactionArg[];
|
|
1110
|
-
}
|
|
1111
|
-
export interface RequestParseEVMTransactionInput {
|
|
1112
|
-
data: string;
|
|
1113
|
-
contract: string;
|
|
1114
|
-
chainId: number;
|
|
1115
|
-
}
|
|
1116
|
-
export interface ResponseParseEVMTransactionInput {
|
|
1117
|
-
result: ParseEVMTransactionData | string;
|
|
1118
|
-
}
|
|
1119
|
-
export interface LedgerNetwork {
|
|
1120
|
-
genesisHash: string;
|
|
1121
|
-
displayName: string;
|
|
1122
|
-
network: string;
|
|
1123
|
-
icon: 'substrate' | 'ethereum';
|
|
1124
|
-
isDevMode: boolean;
|
|
1125
|
-
}
|
|
1126
|
-
export interface TuringStakeCompoundParams {
|
|
1099
|
+
export interface CheckExistingTuringCompoundParams {
|
|
1127
1100
|
address: string;
|
|
1128
1101
|
collatorAddress: string;
|
|
1129
1102
|
networkKey: string;
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1103
|
+
}
|
|
1104
|
+
export interface ExistingTuringCompoundTask {
|
|
1105
|
+
exist: boolean;
|
|
1106
|
+
taskId: string;
|
|
1107
|
+
accountMinimum: number;
|
|
1108
|
+
frequency: number;
|
|
1133
1109
|
}
|
|
1134
1110
|
export interface TuringStakeCompoundResp {
|
|
1135
1111
|
txInfo: BasicTxInfo;
|
|
@@ -1138,27 +1114,30 @@ export interface TuringStakeCompoundResp {
|
|
|
1138
1114
|
compoundFee: string;
|
|
1139
1115
|
rawCompoundFee?: number;
|
|
1140
1116
|
}
|
|
1141
|
-
export interface
|
|
1142
|
-
networks: string[];
|
|
1143
|
-
tokens?: string[];
|
|
1144
|
-
}
|
|
1145
|
-
export interface CheckExistingTuringCompoundParams {
|
|
1117
|
+
export interface TuringStakeCompoundParams extends BaseRequestSign {
|
|
1146
1118
|
address: string;
|
|
1147
1119
|
collatorAddress: string;
|
|
1148
1120
|
networkKey: string;
|
|
1121
|
+
accountMinimum: string;
|
|
1122
|
+
bondedAmount: string;
|
|
1149
1123
|
}
|
|
1150
|
-
export
|
|
1151
|
-
|
|
1152
|
-
taskId: string;
|
|
1153
|
-
accountMinimum: number;
|
|
1154
|
-
frequency: number;
|
|
1155
|
-
}
|
|
1156
|
-
export interface TuringCancelStakeCompoundParams {
|
|
1124
|
+
export declare type RequestTuringStakeCompound = PasswordRequestSign<TuringStakeCompoundParams>;
|
|
1125
|
+
export interface TuringCancelStakeCompoundParams extends BaseRequestSign {
|
|
1157
1126
|
taskId: string;
|
|
1158
1127
|
networkKey: string;
|
|
1159
1128
|
address: string;
|
|
1160
|
-
password?: string;
|
|
1161
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>;
|
|
1162
1141
|
export declare type SubscriptionServiceType = 'chainRegistry' | 'balance' | 'crowdloan' | 'staking';
|
|
1163
1142
|
export declare type CronServiceType = 'price' | 'nft' | 'staking' | 'history' | 'recoverApi' | 'checkApiStatus';
|
|
1164
1143
|
export declare type CronType = 'recoverApiMap' | 'checkApiMapStatus' | 'refreshHistory' | 'refreshNft' | 'refreshPrice' | 'refreshStakeUnlockingInfo' | 'refreshStakingReward';
|
|
@@ -1180,21 +1159,21 @@ export interface ActiveCronAndSubscriptionMap {
|
|
|
1180
1159
|
cron: Record<CronServiceType, boolean>;
|
|
1181
1160
|
}
|
|
1182
1161
|
export interface KoniRequestSignatures {
|
|
1183
|
-
'pri(staking.submitTuringCancelCompound)': [
|
|
1162
|
+
'pri(staking.submitTuringCancelCompound)': [RequestTuringCancelStakeCompound, BasicTxResponse, BasicTxResponse];
|
|
1184
1163
|
'pri(staking.turingCancelCompound)': [TuringCancelStakeCompoundParams, BasicTxInfo];
|
|
1185
1164
|
'pri(staking.checkTuringCompoundTask)': [CheckExistingTuringCompoundParams, ExistingTuringCompoundTask];
|
|
1186
|
-
'pri(staking.submitTuringCompound)': [
|
|
1165
|
+
'pri(staking.submitTuringCompound)': [RequestTuringStakeCompound, BasicTxResponse, BasicTxResponse];
|
|
1187
1166
|
'pri(staking.turingCompound)': [TuringStakeCompoundParams, TuringStakeCompoundResp];
|
|
1188
1167
|
'pri(staking.delegationInfo)': [StakeDelegationRequest, DelegationItem[]];
|
|
1189
|
-
'pri(staking.submitClaimReward)': [
|
|
1168
|
+
'pri(staking.submitClaimReward)': [RequestStakeClaimReward, BasicTxResponse, BasicTxResponse];
|
|
1190
1169
|
'pri(staking.claimRewardTxInfo)': [StakeClaimRewardParams, BasicTxInfo];
|
|
1191
|
-
'pri(unbonding.submitWithdrawal)': [
|
|
1170
|
+
'pri(unbonding.submitWithdrawal)': [RequestStakeWithdrawal, BasicTxResponse, BasicTxResponse];
|
|
1192
1171
|
'pri(unbonding.withdrawalTxInfo)': [StakeWithdrawalParams, BasicTxInfo];
|
|
1193
1172
|
'pri(unbonding.subscribeUnlockingInfo)': [null, StakeUnlockingJson, StakeUnlockingJson];
|
|
1194
|
-
'pri(unbonding.submitTransaction)': [
|
|
1173
|
+
'pri(unbonding.submitTransaction)': [RequestUnbondingSubmit, BasicTxResponse, BasicTxResponse];
|
|
1195
1174
|
'pri(unbonding.txInfo)': [UnbondingSubmitParams, BasicTxInfo];
|
|
1196
1175
|
'pri(bonding.txInfo)': [BondingSubmitParams, BasicTxInfo];
|
|
1197
|
-
'pri(bonding.submitTransaction)': [
|
|
1176
|
+
'pri(bonding.submitTransaction)': [RequestBondingSubmit, BasicTxResponse, BasicTxResponse];
|
|
1198
1177
|
'pri(bonding.getChainBondingBasics)': [NetworkJson[], Record<string, ChainBondingBasics>, Record<string, ChainBondingBasics>];
|
|
1199
1178
|
'pri(bonding.getBondingOptions)': [BondingOptionParams, BondingOptionInfo];
|
|
1200
1179
|
'pri(networkMap.recoverDotSama)': [string, boolean];
|
|
@@ -1215,9 +1194,9 @@ export interface KoniRequestSignatures {
|
|
|
1215
1194
|
'pri(customTokenState.upsertCustomTokenState)': [CustomToken, boolean];
|
|
1216
1195
|
'pri(customTokenState.getCustomTokenState)': [null, CustomTokenJson];
|
|
1217
1196
|
'pri(customTokenState.getSubscription)': [null, CustomTokenJson, CustomTokenJson];
|
|
1218
|
-
'pri(evmNft.submitTransaction)': [
|
|
1197
|
+
'pri(evmNft.submitTransaction)': [RequestEvmNftSubmitTransaction, NftTransactionResponse, NftTransactionResponse];
|
|
1219
1198
|
'pri(evmNft.getTransaction)': [NftTransactionRequest, EvmNftTransaction];
|
|
1220
|
-
'pri(substrateNft.submitTransaction)': [
|
|
1199
|
+
'pri(substrateNft.submitTransaction)': [RequestSubstrateNftSubmitTransaction, NftTransactionResponse, NftTransactionResponse];
|
|
1221
1200
|
'pri(substrateNft.getTransaction)': [NftTransactionRequest, SubstrateNftTransaction];
|
|
1222
1201
|
'pri(nftTransfer.setNftTransfer)': [NftTransferExtra, boolean];
|
|
1223
1202
|
'pri(nftTransfer.getNftTransfer)': [null, NftTransferExtra];
|
|
@@ -1257,10 +1236,6 @@ export interface KoniRequestSignatures {
|
|
|
1257
1236
|
'pri(accounts.create.externalV2)': [RequestAccountCreateExternalV2, AccountExternalError[]];
|
|
1258
1237
|
'pri(accounts.create.hardwareV2)': [RequestAccountCreateHardwareV2, boolean];
|
|
1259
1238
|
'pri(accounts.create.withSecret)': [RequestAccountCreateWithSecretKey, ResponseAccountCreateWithSecretKey];
|
|
1260
|
-
'pri(accounts.checkTransfer)': [RequestCheckTransfer, ResponseCheckTransfer];
|
|
1261
|
-
'pri(accounts.checkCrossChainTransfer)': [RequestCheckCrossChainTransfer, ResponseCheckCrossChainTransfer];
|
|
1262
|
-
'pri(accounts.transfer)': [RequestTransfer, Array<TransferError>, ResponseTransfer];
|
|
1263
|
-
'pri(accounts.crossChainTransfer)': [RequestCrossChainTransfer, Array<TransferError>, ResponseTransfer];
|
|
1264
1239
|
'pri(derivation.createV2)': [RequestDeriveCreateV2, boolean];
|
|
1265
1240
|
'pri(json.restoreV2)': [RequestJsonRestoreV2, void];
|
|
1266
1241
|
'pri(json.batchRestoreV2)': [RequestBatchRestoreV2, void];
|
|
@@ -1285,13 +1260,16 @@ export interface KoniRequestSignatures {
|
|
|
1285
1260
|
'pri(transfer.getExistentialDeposit)': [RequestTransferExistentialDeposit, string];
|
|
1286
1261
|
'pri(subscription.cancel)': [string, boolean];
|
|
1287
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];
|
|
1288
1267
|
'pri(confirmations.subscribe)': [RequestConfirmationsSubscribe, ConfirmationsQueue, ConfirmationsQueue];
|
|
1289
1268
|
'pri(confirmations.complete)': [RequestConfirmationComplete, boolean];
|
|
1290
1269
|
'pub(utils.getRandom)': [RandomTestRequest, number];
|
|
1291
1270
|
'pub(accounts.listV2)': [RequestAccountList, InjectedAccount[]];
|
|
1292
1271
|
'pub(accounts.subscribeV2)': [RequestAccountSubscribe, boolean, InjectedAccount[]];
|
|
1293
|
-
'pri(qr.transaction.parse.
|
|
1294
|
-
'pri(qr.transaction.parse.evm)': [RequestParseTransactionEVM, ResponseParseTransactionEVM];
|
|
1272
|
+
'pri(qr.transaction.parse.evm)': [RequestQrParseRLP, ResponseQrParseRLP];
|
|
1295
1273
|
'pri(qr.isLocked)': [RequestQRIsLocked, ResponseQRIsLocked];
|
|
1296
1274
|
'pri(qr.sign.substrate)': [RequestQrSignSubstrate, ResponseQrSignSubstrate];
|
|
1297
1275
|
'pri(qr.sign.evm)': [RequestQrSignEVM, ResponseQrSignEVM];
|
|
@@ -1300,20 +1278,26 @@ export interface KoniRequestSignatures {
|
|
|
1300
1278
|
'evm(events.subscribe)': [RequestEvmEvents, boolean, EvmEvent];
|
|
1301
1279
|
'evm(request)': [RequestArguments, unknown];
|
|
1302
1280
|
'evm(provider.send)': [RequestEvmProviderSend, string | number, ResponseEvmProviderSend];
|
|
1303
|
-
'pri(evm.transaction.parse.input)': [
|
|
1304
|
-
'pri(accounts.transfer.qr.create)': [RequestTransferExternal,
|
|
1305
|
-
'pri(accounts.cross.transfer.qr.create)': [RequestCrossChainTransferExternal,
|
|
1306
|
-
'pri(nft.transfer.qr.create.substrate)': [RequestNftTransferExternalSubstrate,
|
|
1307
|
-
'pri(nft.transfer.qr.create.evm)': [RequestNftTransferExternalEVM,
|
|
1308
|
-
'pri(stake.qr.create)': [RequestStakeExternal,
|
|
1309
|
-
'pri(unStake.qr.create)': [RequestUnStakeExternal,
|
|
1310
|
-
'pri(withdrawStake.qr.create)': [RequestWithdrawStakeExternal,
|
|
1311
|
-
'pri(
|
|
1312
|
-
'pri(
|
|
1313
|
-
'pri(
|
|
1314
|
-
'pri(
|
|
1315
|
-
'pri(
|
|
1316
|
-
'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];
|
|
1317
1301
|
'pri(authorize.subscribe)': [null, AuthUrls, AuthUrls];
|
|
1318
1302
|
'mobile(ping)': [null, string];
|
|
1319
1303
|
'mobile(cronAndSubscription.init)': [RequestInitCronAndSubscription, ActiveCronAndSubscriptionMap];
|