@onekeyfe/onekey-cosmos-provider 2.1.17 → 2.1.19

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.
@@ -7,6 +7,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
+ /* eslint-disable @typescript-eslint/no-unsafe-call */
11
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
12
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
10
13
  /* eslint-disable @typescript-eslint/no-explicit-any */
11
14
  /* eslint-disable tsdoc/syntax */
12
15
  import { bytesToHex, hexToBytes } from '@noble/hashes/utils';
@@ -198,7 +201,6 @@ class ProviderCosmos extends ProviderCosmosBase {
198
201
  bodyBytes: (signDoc === null || signDoc === void 0 ? void 0 : signDoc.bodyBytes) ? bytesToHex(signDoc === null || signDoc === void 0 ? void 0 : signDoc.bodyBytes) : null,
199
202
  authInfoBytes: (signDoc === null || signDoc === void 0 ? void 0 : signDoc.authInfoBytes) ? bytesToHex(signDoc === null || signDoc === void 0 ? void 0 : signDoc.authInfoBytes) : null,
200
203
  chainId: signDoc.chainId,
201
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
202
204
  accountNumber: (_a = signDoc === null || signDoc === void 0 ? void 0 : signDoc.accountNumber) === null || _a === void 0 ? void 0 : _a.toString(),
203
205
  },
204
206
  signOptions,
@@ -210,7 +212,6 @@ class ProviderCosmos extends ProviderCosmosBase {
210
212
  // @ts-expect-error
211
213
  authInfoBytes: hexToBytes(res.signed.authInfoBytes),
212
214
  // @ts-ignore
213
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
214
215
  accountNumber: Long.fromString(res.signed.accountNumber),
215
216
  chainId: res.signed.chainId,
216
217
  } });
@@ -13,6 +13,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ProviderCosmos = void 0;
16
+ /* eslint-disable @typescript-eslint/no-unsafe-call */
17
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
18
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
16
19
  /* eslint-disable @typescript-eslint/no-explicit-any */
17
20
  /* eslint-disable tsdoc/syntax */
18
21
  const utils_1 = require("@noble/hashes/utils");
@@ -204,7 +207,6 @@ class ProviderCosmos extends ProviderCosmosBase_1.ProviderCosmosBase {
204
207
  bodyBytes: (signDoc === null || signDoc === void 0 ? void 0 : signDoc.bodyBytes) ? (0, utils_1.bytesToHex)(signDoc === null || signDoc === void 0 ? void 0 : signDoc.bodyBytes) : null,
205
208
  authInfoBytes: (signDoc === null || signDoc === void 0 ? void 0 : signDoc.authInfoBytes) ? (0, utils_1.bytesToHex)(signDoc === null || signDoc === void 0 ? void 0 : signDoc.authInfoBytes) : null,
206
209
  chainId: signDoc.chainId,
207
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
208
210
  accountNumber: (_a = signDoc === null || signDoc === void 0 ? void 0 : signDoc.accountNumber) === null || _a === void 0 ? void 0 : _a.toString(),
209
211
  },
210
212
  signOptions,
@@ -216,7 +218,6 @@ class ProviderCosmos extends ProviderCosmosBase_1.ProviderCosmosBase {
216
218
  // @ts-expect-error
217
219
  authInfoBytes: (0, utils_1.hexToBytes)(res.signed.authInfoBytes),
218
220
  // @ts-ignore
219
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
220
221
  accountNumber: long_1.default.fromString(res.signed.accountNumber),
221
222
  chainId: res.signed.chainId,
222
223
  } });
@@ -13,6 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.CosmJSOfflineSigner = exports.CosmJSOfflineSignerOnlyAmino = void 0;
16
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call */
16
17
  // @ts-ignore
17
18
  const long_1 = __importDefault(require("long"));
18
19
  class CosmJSOfflineSignerOnlyAmino {
@@ -71,7 +72,6 @@ class CosmJSOfflineSigner extends CosmJSOfflineSignerOnlyAmino {
71
72
  return yield this.service.signDirect(this.chainId, signerAddress, {
72
73
  bodyBytes: signDoc.bodyBytes,
73
74
  authInfoBytes: signDoc.authInfoBytes,
74
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
75
75
  accountNumber: long_1.default.fromValue(signDoc.accountNumber),
76
76
  chainId: signDoc.chainId,
77
77
  });
package/dist/cosmjs.js CHANGED
@@ -7,6 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call */
10
11
  // @ts-ignore
11
12
  import Long from 'long';
12
13
  export class CosmJSOfflineSignerOnlyAmino {
@@ -64,7 +65,6 @@ export class CosmJSOfflineSigner extends CosmJSOfflineSignerOnlyAmino {
64
65
  return yield this.service.signDirect(this.chainId, signerAddress, {
65
66
  bodyBytes: signDoc.bodyBytes,
66
67
  authInfoBytes: signDoc.authInfoBytes,
67
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
68
68
  accountNumber: Long.fromValue(signDoc.accountNumber),
69
69
  chainId: signDoc.chainId,
70
70
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/onekey-cosmos-provider",
3
- "version": "2.1.17",
3
+ "version": "2.1.19",
4
4
  "keywords": [
5
5
  "cross-inpage-provider"
6
6
  ],
@@ -29,13 +29,13 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@noble/hashes": "^1.3.0",
32
- "@onekeyfe/cross-inpage-provider-core": "2.1.17",
33
- "@onekeyfe/cross-inpage-provider-errors": "2.1.17",
34
- "@onekeyfe/cross-inpage-provider-types": "2.1.17",
35
- "@onekeyfe/extension-bridge-injected": "2.1.17",
32
+ "@onekeyfe/cross-inpage-provider-core": "2.1.19",
33
+ "@onekeyfe/cross-inpage-provider-errors": "2.1.19",
34
+ "@onekeyfe/cross-inpage-provider-types": "2.1.19",
35
+ "@onekeyfe/extension-bridge-injected": "2.1.19",
36
36
  "eth-rpc-errors": "^4.0.3",
37
37
  "long": "^5.2.1",
38
38
  "mitt": "^3.0.0"
39
39
  },
40
- "gitHead": "6b9e350734a850a60dbf9fa4406190900f8f13f2"
40
+ "gitHead": "7428b1178d2bdb0a6db4d24fb3b51b24574ac91d"
41
41
  }