@subwallet/extension-base 0.6.4-0 → 0.6.6-0

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.
@@ -915,6 +915,7 @@ export interface BondingOptionInfo {
915
915
  export interface ChainBondingBasics {
916
916
  stakedReturn: number;
917
917
  isMaxNominators: boolean;
918
+ validatorCount: number;
918
919
  }
919
920
  export interface BasicTxInfo {
920
921
  fee: string;
@@ -930,12 +931,16 @@ export interface BondingSubmitParams {
930
931
  bondedValidators: string[];
931
932
  lockPeriod?: number;
932
933
  }
934
+ export declare enum BasicTxError {
935
+ BalanceTooLow = "BalanceTooLow"
936
+ }
933
937
  export interface BasicTxResponse {
934
938
  passwordError?: string | null;
935
939
  callHash?: string;
936
940
  status?: boolean;
937
941
  transactionHash?: string;
938
942
  txError?: boolean;
943
+ errorMessage?: BasicTxError;
939
944
  }
940
945
  export interface NftTransactionResponse extends BasicTxResponse {
941
946
  isSendingSelf: boolean;
@@ -1069,11 +1074,47 @@ export interface LedgerNetwork {
1069
1074
  icon: 'substrate' | 'ethereum';
1070
1075
  isDevMode: boolean;
1071
1076
  }
1077
+ export interface TuringStakeCompoundParams {
1078
+ address: string;
1079
+ collatorAddress: string;
1080
+ networkKey: string;
1081
+ accountMinimum: string;
1082
+ bondedAmount: string;
1083
+ password?: string;
1084
+ }
1085
+ export interface TuringStakeCompoundResp {
1086
+ txInfo: BasicTxInfo;
1087
+ optimalFrequency: string;
1088
+ initTime: number;
1089
+ compoundFee: string;
1090
+ }
1072
1091
  export interface TransakNetwork {
1073
1092
  networks: string[];
1074
1093
  tokens: string[];
1075
1094
  }
1095
+ export interface CheckExistingTuringCompoundParams {
1096
+ address: string;
1097
+ collatorAddress: string;
1098
+ networkKey: string;
1099
+ }
1100
+ export interface ExistingTuringCompoundTask {
1101
+ exist: boolean;
1102
+ taskId: string;
1103
+ accountMinimum: number;
1104
+ frequency: number;
1105
+ }
1106
+ export interface TuringCancelStakeCompoundParams {
1107
+ taskId: string;
1108
+ networkKey: string;
1109
+ address: string;
1110
+ password?: string;
1111
+ }
1076
1112
  export interface KoniRequestSignatures {
1113
+ 'pri(staking.submitTuringCancelCompound)': [TuringCancelStakeCompoundParams, BasicTxResponse, BasicTxResponse];
1114
+ 'pri(staking.turingCancelCompound)': [TuringCancelStakeCompoundParams, BasicTxInfo];
1115
+ 'pri(staking.checkTuringCompoundTask)': [CheckExistingTuringCompoundParams, ExistingTuringCompoundTask];
1116
+ 'pri(staking.submitTuringCompound)': [TuringStakeCompoundParams, BasicTxResponse, BasicTxResponse];
1117
+ 'pri(staking.turingCompound)': [TuringStakeCompoundParams, TuringStakeCompoundResp];
1077
1118
  'pri(staking.delegationInfo)': [StakeDelegationRequest, DelegationItem[]];
1078
1119
  'pri(staking.submitClaimReward)': [StakeClaimRewardParams, BasicTxResponse, BasicTxResponse];
1079
1120
  'pri(staking.claimRewardTxInfo)': [StakeClaimRewardParams, BasicTxInfo];
@@ -115,4 +115,10 @@ export let AccountExternalErrorCode;
115
115
  AccountExternalErrorCode["INVALID_ADDRESS"] = "invalidToAccount";
116
116
  AccountExternalErrorCode["KEYRING_ERROR"] = "keyringError";
117
117
  AccountExternalErrorCode["UNKNOWN_ERROR"] = "unknownError";
118
- })(AccountExternalErrorCode || (AccountExternalErrorCode = {}));
118
+ })(AccountExternalErrorCode || (AccountExternalErrorCode = {}));
119
+
120
+ export let BasicTxError;
121
+
122
+ (function (BasicTxError) {
123
+ BasicTxError["BalanceTooLow"] = "BalanceTooLow";
124
+ })(BasicTxError || (BasicTxError = {}));
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.TransferStep = exports.TransferErrorCode = exports.RMRK_VER = exports.NETWORK_STATUS = exports.NETWORK_ERROR = exports.ExternalRequestPromiseStatus = exports.CrowdloanParaState = exports.BasicTxErrorCode = exports.ApiInitStatus = exports.AccountExternalErrorCode = exports.APIItemState = void 0;
6
+ exports.TransferStep = exports.TransferErrorCode = exports.RMRK_VER = exports.NETWORK_STATUS = exports.NETWORK_ERROR = exports.ExternalRequestPromiseStatus = exports.CrowdloanParaState = exports.BasicTxErrorCode = exports.BasicTxError = exports.ApiInitStatus = exports.AccountExternalErrorCode = exports.APIItemState = void 0;
7
7
  // Copyright 2019-2022 @polkadot/extension-koni authors & contributors
8
8
  // SPDX-License-Identifier: Apache-2.0
9
9
  let ApiInitStatus;
@@ -132,4 +132,11 @@ exports.AccountExternalErrorCode = AccountExternalErrorCode;
132
132
  AccountExternalErrorCode["INVALID_ADDRESS"] = "invalidToAccount";
133
133
  AccountExternalErrorCode["KEYRING_ERROR"] = "keyringError";
134
134
  AccountExternalErrorCode["UNKNOWN_ERROR"] = "unknownError";
135
- })(AccountExternalErrorCode || (exports.AccountExternalErrorCode = AccountExternalErrorCode = {}));
135
+ })(AccountExternalErrorCode || (exports.AccountExternalErrorCode = AccountExternalErrorCode = {}));
136
+
137
+ let BasicTxError;
138
+ exports.BasicTxError = BasicTxError;
139
+
140
+ (function (BasicTxError) {
141
+ BasicTxError["BalanceTooLow"] = "BalanceTooLow";
142
+ })(BasicTxError || (exports.BasicTxError = BasicTxError = {}));
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@subwallet/extension-base',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '0.6.4-0'
14
+ version: '0.6.6-0'
15
15
  };
16
16
  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.6.4-0",
20
+ "version": "0.6.6-0",
21
21
  "main": "./cjs/index.js",
22
22
  "module": "./index.js",
23
23
  "types": "./index.d.ts",
@@ -224,9 +224,9 @@
224
224
  "@polkadot/ui-settings": "^2.7.2",
225
225
  "@polkadot/util": "^9.7.2",
226
226
  "@polkadot/util-crypto": "^9.7.2",
227
- "@subwallet/extension-chains": "^0.6.4-0",
228
- "@subwallet/extension-dapp": "^0.6.4-0",
229
- "@subwallet/extension-inject": "^0.6.4-0",
227
+ "@subwallet/extension-chains": "^0.6.6-0",
228
+ "@subwallet/extension-dapp": "^0.6.6-0",
229
+ "@subwallet/extension-inject": "^0.6.6-0",
230
230
  "ethereumjs-tx": "^2.1.2",
231
231
  "eventemitter3": "^4.0.7",
232
232
  "rlp": "^3.0.0",
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@subwallet/extension-base',
6
6
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
7
7
  type: 'esm',
8
- version: '0.6.4-0'
8
+ version: '0.6.6-0'
9
9
  };