@subwallet/extension-base 0.7.2-0wr → 0.7.2-1wr

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.
@@ -855,29 +855,28 @@ export interface ConfirmationResult<T> {
855
855
  payload?: T;
856
856
  password?: string;
857
857
  }
858
- export interface ConfirmationResultQr<T> extends ConfirmationResult<T> {
858
+ export interface ConfirmationResultExternal<T> extends ConfirmationResult<T> {
859
859
  signature: `0x${string}`;
860
860
  }
861
861
  export interface EvmSendTransactionRequest extends TransactionConfig {
862
862
  estimateGas: string;
863
863
  }
864
- export interface EvmRequestQr {
865
- qrPayload: string;
864
+ export interface EvmRequestExternal {
865
+ hashPayload: string;
866
866
  canSign: boolean;
867
867
  }
868
- export interface EvmSendTransactionRequestQr extends TransactionConfig, EvmRequestQr {
869
- estimateGas: string;
868
+ export interface EvmSendTransactionRequestExternal extends EvmSendTransactionRequest, EvmRequestExternal {
870
869
  }
871
- export interface EvmSignatureRequestQr extends EvmSignatureRequest, EvmRequestQr {
870
+ export interface EvmSignatureRequestExternal extends EvmSignatureRequest, EvmRequestExternal {
872
871
  }
873
872
  export interface ConfirmationDefinitions {
874
873
  addNetworkRequest: [ConfirmationsQueueItem<NetworkJson>, ConfirmationResult<NetworkJson>];
875
874
  addTokenRequest: [ConfirmationsQueueItem<CustomToken>, ConfirmationResult<boolean>];
876
875
  switchNetworkRequest: [ConfirmationsQueueItem<SwitchNetworkRequest>, ConfirmationResult<boolean>];
877
876
  evmSignatureRequest: [ConfirmationsQueueItem<EvmSignatureRequest>, ConfirmationResult<string>];
878
- evmSignatureRequestQr: [ConfirmationsQueueItem<EvmSignatureRequestQr>, ConfirmationResultQr<string>];
877
+ evmSignatureRequestExternal: [ConfirmationsQueueItem<EvmSignatureRequestExternal>, ConfirmationResultExternal<string>];
879
878
  evmSendTransactionRequest: [ConfirmationsQueueItem<EvmSendTransactionRequest>, ConfirmationResult<boolean>];
880
- evmSendTransactionRequestQr: [ConfirmationsQueueItem<EvmSendTransactionRequestQr>, ConfirmationResultQr<boolean>];
879
+ evmSendTransactionRequestExternal: [ConfirmationsQueueItem<EvmSendTransactionRequestExternal>, ConfirmationResultExternal<boolean>];
881
880
  }
882
881
  export declare type ConfirmationType = keyof ConfirmationDefinitions;
883
882
  export declare type ConfirmationsQueue = {
@@ -903,6 +902,11 @@ export interface ValidatorInfo {
903
902
  icon?: string;
904
903
  hasScheduledRequest?: boolean;
905
904
  }
905
+ export interface ExtraDelegationInfo {
906
+ chain: string;
907
+ address: string;
908
+ collatorAddress: string;
909
+ }
906
910
  export interface BasicTxInfo {
907
911
  fee: string;
908
912
  balanceError: boolean;
@@ -950,7 +954,7 @@ export interface TransakNetwork {
950
954
  }
951
955
  export interface FormattedMethod {
952
956
  args?: ArgInfo[];
953
- method: string;
957
+ methodName: string;
954
958
  }
955
959
  export interface ArgInfo {
956
960
  argName: string;
@@ -963,9 +967,14 @@ export interface EraInfo {
963
967
  export interface ResponseParseTransactionSubstrate {
964
968
  era: EraInfo | string;
965
969
  nonce: number;
966
- method: string;
970
+ method: string | FormattedMethod[];
967
971
  tip: number;
968
972
  specVersion: number;
973
+ message: string;
974
+ }
975
+ export interface RequestParseTransactionSubstrate {
976
+ data: string;
977
+ networkKey: string;
969
978
  }
970
979
  export interface RequestQrParseRLP {
971
980
  data: string;
@@ -979,10 +988,10 @@ export interface ResponseQrParseRLP {
979
988
  gasPrice: number;
980
989
  value: number;
981
990
  }
982
- export interface RequestQRIsLocked {
991
+ export interface RequestAccountIsLocked {
983
992
  address: string;
984
993
  }
985
- export interface ResponseQRIsLocked {
994
+ export interface ResponseAccountIsLocked {
986
995
  isLocked: boolean;
987
996
  remainingTime: number;
988
997
  }
@@ -1140,7 +1149,7 @@ export declare type RequestCreateCompoundStakeExternal = ExternalRequestSign<Tur
1140
1149
  export declare type RequestCancelCompoundStakeExternal = ExternalRequestSign<TuringCancelStakeCompoundParams>;
1141
1150
  export declare type SubscriptionServiceType = 'chainRegistry' | 'balance' | 'crowdloan' | 'staking';
1142
1151
  export declare type CronServiceType = 'price' | 'nft' | 'staking' | 'history' | 'recoverApi' | 'checkApiStatus';
1143
- export declare type CronType = 'recoverApiMap' | 'checkApiMapStatus' | 'refreshHistory' | 'refreshNft' | 'refreshPrice' | 'refreshStakeUnlockingInfo' | 'refreshStakingReward';
1152
+ export declare type CronType = 'recoverApiMap' | 'checkApiMapStatus' | 'refreshHistory' | 'refreshNft' | 'refreshPrice' | 'refreshStakeUnlockingInfo' | 'refreshStakingReward' | 'refreshPoolingStakingReward';
1144
1153
  export interface RequestInitCronAndSubscription {
1145
1154
  subscription: {
1146
1155
  activeServices: SubscriptionServiceType[];
@@ -1269,8 +1278,9 @@ export interface KoniRequestSignatures {
1269
1278
  'pub(utils.getRandom)': [RandomTestRequest, number];
1270
1279
  'pub(accounts.listV2)': [RequestAccountList, InjectedAccount[]];
1271
1280
  'pub(accounts.subscribeV2)': [RequestAccountSubscribe, boolean, InjectedAccount[]];
1281
+ 'pri(account.isLocked)': [RequestAccountIsLocked, ResponseAccountIsLocked];
1282
+ 'pri(qr.transaction.parse.substrate)': [RequestParseTransactionSubstrate, ResponseParseTransactionSubstrate];
1272
1283
  'pri(qr.transaction.parse.evm)': [RequestQrParseRLP, ResponseQrParseRLP];
1273
- 'pri(qr.isLocked)': [RequestQRIsLocked, ResponseQRIsLocked];
1274
1284
  'pri(qr.sign.substrate)': [RequestQrSignSubstrate, ResponseQrSignSubstrate];
1275
1285
  'pri(qr.sign.evm)': [RequestQrSignEVM, ResponseQrSignEVM];
1276
1286
  'pri(account.external.reject)': [RequestRejectExternalRequest, ResponseRejectExternalRequest];
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@subwallet/extension-base',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '0.7.2-0'
16
+ version: '0.7.2-1'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "./cjs/detectPackage.js"
18
18
  ],
19
19
  "type": "module",
20
- "version": "0.7.2-0wr",
20
+ "version": "0.7.2-1wr",
21
21
  "main": "./cjs/index.js",
22
22
  "module": "./index.js",
23
23
  "types": "./index.d.ts",
@@ -219,25 +219,25 @@
219
219
  "dependencies": {
220
220
  "@babel/runtime": "^7.19.0",
221
221
  "@ethereumjs/common": "^2.6.5",
222
- "@polkadot/api": "^9.4.3",
223
- "@polkadot/keyring": "^10.1.9",
224
- "@polkadot/networks": "^10.1.9",
225
- "@polkadot/phishing": "^0.18.9",
226
- "@polkadot/rpc-provider": "^9.4.3",
227
- "@polkadot/types": "^9.4.3",
228
- "@polkadot/ui-keyring": "^2.9.10",
229
- "@polkadot/ui-settings": "^2.9.10",
230
- "@polkadot/util": "^10.1.9",
231
- "@polkadot/util-crypto": "^10.1.9",
232
- "@subwallet/extension-chains": "^0.7.2-0",
233
- "@subwallet/extension-dapp": "^0.7.2-0",
234
- "@subwallet/extension-inject": "^0.7.2-0",
222
+ "@polkadot/api": "^9.9.1",
223
+ "@polkadot/keyring": "^10.1.13",
224
+ "@polkadot/networks": "^10.1.13",
225
+ "@polkadot/phishing": "^0.18.11",
226
+ "@polkadot/rpc-provider": "^9.9.1",
227
+ "@polkadot/types": "^9.9.1",
228
+ "@polkadot/ui-keyring": "^2.9.13",
229
+ "@polkadot/ui-settings": "^2.9.13",
230
+ "@polkadot/util": "^10.1.13",
231
+ "@polkadot/util-crypto": "^10.1.13",
232
+ "@subwallet/extension-chains": "^0.7.2-1",
233
+ "@subwallet/extension-dapp": "^0.7.2-1",
234
+ "@subwallet/extension-inject": "^0.7.2-1",
235
235
  "ethereumjs-tx": "^2.1.2",
236
236
  "eventemitter3": "^4.0.7",
237
237
  "rlp": "^3.0.0",
238
238
  "rxjs": "^7.5.7",
239
239
  "web3": "^1.8.0",
240
- "web3-core": "^1.8.0",
240
+ "web3-core": "^1.8.1",
241
241
  "web3-core-helpers": "^1.8.0"
242
242
  }
243
243
  }
package/packageInfo.js CHANGED
@@ -7,5 +7,5 @@ export const packageInfo = {
7
7
  name: '@subwallet/extension-base',
8
8
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
9
9
  type: 'esm',
10
- version: '0.7.2-0'
10
+ version: '0.7.2-1'
11
11
  };