injectivejs 1.12.1 → 1.13.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.
package/binary.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/binary.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
3
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
package/esm/binary.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/esm/extern.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
6
- import { createQueryRpc, } from '@interchainjs/utils';
6
+ import { createCosmosQueryClient } from "@interchainjs/cosmos";
7
7
  const _rpcClients = {};
8
8
  export const getRpcEndpointKey = (rpcEndpoint) => {
9
9
  if (typeof rpcEndpoint === 'string') {
@@ -25,6 +25,16 @@ export const getRpcClient = async (rpcEndpoint) => {
25
25
  _rpcClients[key] = rpc;
26
26
  return rpc;
27
27
  };
28
- export const createRpcClient = async (rpcEndpoint) => {
29
- return createQueryRpc(rpcEndpoint);
28
+ export const createRpcClient = async (rpcEndpoint, options) => {
29
+ if (typeof rpcEndpoint === 'string') {
30
+ return createCosmosQueryClient(rpcEndpoint, options);
31
+ }
32
+ else {
33
+ const endpointStr = rpcEndpoint.url;
34
+ const clientOptions = {
35
+ ...options,
36
+ headers: rpcEndpoint.headers
37
+ };
38
+ return createCosmosQueryClient(endpointStr, clientOptions);
39
+ }
30
40
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/esm/helpers.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/esm/registry.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/esm/types.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/esm/utf8.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/esm/varint.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/extern.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
6
6
  import { HttpEndpoint } from "@interchainjs/types";
7
7
  import { Rpc } from "./helpers";
8
+ import { ClientOptions } from "@interchainjs/cosmos";
8
9
  export declare const getRpcEndpointKey: (rpcEndpoint: string | HttpEndpoint) => string;
9
10
  export declare const getRpcClient: (rpcEndpoint: string | HttpEndpoint) => Promise<Rpc>;
10
- export declare const createRpcClient: (rpcEndpoint: string | HttpEndpoint) => Promise<import("@interchainjs/types").Rpc>;
11
+ export declare const createRpcClient: (rpcEndpoint: string | HttpEndpoint, options?: ClientOptions) => Promise<import("@interchainjs/cosmos").ICosmosQueryClient>;
package/extern.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
3
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.createRpcClient = exports.getRpcClient = exports.getRpcEndpointKey = void 0;
9
- const utils_1 = require("@interchainjs/utils");
9
+ const cosmos_1 = require("@interchainjs/cosmos");
10
10
  const _rpcClients = {};
11
11
  const getRpcEndpointKey = (rpcEndpoint) => {
12
12
  if (typeof rpcEndpoint === 'string') {
@@ -30,7 +30,17 @@ const getRpcClient = async (rpcEndpoint) => {
30
30
  return rpc;
31
31
  };
32
32
  exports.getRpcClient = getRpcClient;
33
- const createRpcClient = async (rpcEndpoint) => {
34
- return (0, utils_1.createQueryRpc)(rpcEndpoint);
33
+ const createRpcClient = async (rpcEndpoint, options) => {
34
+ if (typeof rpcEndpoint === 'string') {
35
+ return (0, cosmos_1.createCosmosQueryClient)(rpcEndpoint, options);
36
+ }
37
+ else {
38
+ const endpointStr = rpcEndpoint.url;
39
+ const clientOptions = {
40
+ ...options,
41
+ headers: rpcEndpoint.headers
42
+ };
43
+ return (0, cosmos_1.createCosmosQueryClient)(endpointStr, clientOptions);
44
+ }
35
45
  };
36
46
  exports.createRpcClient = createRpcClient;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
3
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
package/helpers.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/helpers.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
3
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
3
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "injectivejs",
3
- "version": "1.12.1",
3
+ "version": "1.13.0",
4
4
  "description": "Injectivejs is a JavaScript library for interacting with injective sdk.",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",
@@ -25,13 +25,13 @@
25
25
  "prepare": "npm run build"
26
26
  },
27
27
  "dependencies": {
28
- "@interchainjs/cosmos": "1.12.1",
29
- "@interchainjs/cosmos-types": "1.12.1",
30
- "@interchainjs/encoding": "1.12.1",
31
- "@interchainjs/math": "1.12.1",
32
- "@interchainjs/pubkey": "1.12.1",
33
- "@interchainjs/types": "1.12.1",
34
- "@interchainjs/utils": "1.12.1",
28
+ "@interchainjs/cosmos": "1.13.0",
29
+ "@interchainjs/cosmos-types": "1.13.0",
30
+ "@interchainjs/encoding": "1.13.0",
31
+ "@interchainjs/math": "1.13.0",
32
+ "@interchainjs/pubkey": "1.13.0",
33
+ "@interchainjs/types": "1.13.0",
34
+ "@interchainjs/utils": "1.13.0",
35
35
  "@noble/hashes": "^1.3.1",
36
36
  "decimal.js": "^10.4.3"
37
37
  },
@@ -42,5 +42,5 @@
42
42
  "cosmjs",
43
43
  "wallet"
44
44
  ],
45
- "gitHead": "1a84071f7fb7d6d4ba293443bf9033383fbde0e2"
45
+ "gitHead": "df4ccb929f48a2c86a6c94835bc119ce11cc3f3d"
46
46
  }
package/registry.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/registry.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
3
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
package/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/types.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
3
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
package/utf8.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/utf8.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/varint.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
2
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/varint.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.12.20
3
+ * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.0
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */