@subwallet/extension-base 0.6.3-2 → 0.6.5-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.
@@ -930,12 +930,16 @@ export interface BondingSubmitParams {
930
930
  bondedValidators: string[];
931
931
  lockPeriod?: number;
932
932
  }
933
+ export declare enum BasicTxError {
934
+ BalanceTooLow = "BalanceTooLow"
935
+ }
933
936
  export interface BasicTxResponse {
934
937
  passwordError?: string | null;
935
938
  callHash?: string;
936
939
  status?: boolean;
937
940
  transactionHash?: string;
938
941
  txError?: boolean;
942
+ errorMessage?: BasicTxError;
939
943
  }
940
944
  export interface NftTransactionResponse extends BasicTxResponse {
941
945
  isSendingSelf: boolean;
@@ -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.3-2'
14
+ version: '0.6.5-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.3-2",
20
+ "version": "0.6.5-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.3-2",
228
- "@subwallet/extension-dapp": "^0.6.3-2",
229
- "@subwallet/extension-inject": "^0.6.3-2",
227
+ "@subwallet/extension-chains": "^0.6.5-0",
228
+ "@subwallet/extension-dapp": "^0.6.5-0",
229
+ "@subwallet/extension-inject": "^0.6.5-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.3-2'
8
+ version: '0.6.5-0'
9
9
  };