injectivejs 1.11.0 → 1.11.2
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 +1 -1
- package/binary.js +1 -1
- package/esm/binary.js +1 -1
- package/esm/extern.js +1 -1
- package/esm/helper-func-types.js +3 -3
- package/esm/helpers.js +1 -1
- package/esm/registry.js +1 -1
- package/esm/types.js +1 -1
- package/esm/utf8.js +1 -1
- package/esm/varint.js +1 -1
- package/extern.d.ts +1 -1
- package/extern.js +1 -1
- package/helper-func-types.d.ts +4 -4
- package/helper-func-types.js +3 -3
- package/helpers.d.ts +1 -1
- package/helpers.js +1 -1
- package/package.json +8 -8
- package/registry.d.ts +1 -1
- package/registry.js +1 -1
- package/types.d.ts +1 -1
- package/types.js +1 -1
- package/utf8.d.ts +1 -1
- package/utf8.js +1 -1
- package/varint.d.ts +1 -1
- package/varint.js +1 -1
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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/helper-func-types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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
|
*/
|
|
@@ -26,7 +26,7 @@ export function buildQuery(opts) {
|
|
|
26
26
|
export function isISigningClient(client) {
|
|
27
27
|
return client !== null && client !== undefined
|
|
28
28
|
&& typeof client.signAndBroadcast === 'function'
|
|
29
|
-
&& typeof client.addConverters === 'function'
|
|
29
|
+
&& (!client.addConverters || typeof client.addConverters === 'function')
|
|
30
30
|
&& typeof client.addEncoders === 'function';
|
|
31
31
|
}
|
|
32
32
|
export function buildTx(opts) {
|
|
@@ -38,7 +38,7 @@ export function buildTx(opts) {
|
|
|
38
38
|
throw new Error("SigningClient is not initialized");
|
|
39
39
|
//register all related encoders and converters
|
|
40
40
|
client.addEncoders(toEncoders(opts.msg));
|
|
41
|
-
client.addConverters(toConverters(opts.msg));
|
|
41
|
+
client.addConverters?.(toConverters(opts.msg));
|
|
42
42
|
const data = Array.isArray(message)
|
|
43
43
|
? message.map(msg => ({
|
|
44
44
|
typeUrl: opts.msg.typeUrl,
|
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.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.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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/helper-func-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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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
|
*/
|
|
@@ -26,12 +26,12 @@ export interface ISigningClient {
|
|
|
26
26
|
/**
|
|
27
27
|
* register converters
|
|
28
28
|
*/
|
|
29
|
-
addConverters
|
|
29
|
+
addConverters?: (converters: (AminoConverter | TelescopeGeneratedCodec<any, any, any>)[]) => void;
|
|
30
30
|
/**
|
|
31
31
|
* register encoders
|
|
32
32
|
*/
|
|
33
|
-
addEncoders: (encoders: Encoder[]) => void;
|
|
34
|
-
signAndBroadcast: (signerAddress: string, message: Message<any>[], fee: StdFee |
|
|
33
|
+
addEncoders: (encoders: (Encoder | TelescopeGeneratedCodec<any, any, any>)[]) => void;
|
|
34
|
+
signAndBroadcast: (signerAddress: string, message: Message<any>[], fee: StdFee | "auto", memo: string) => Promise<DeliverTxResponse>;
|
|
35
35
|
}
|
|
36
36
|
export interface TxBuilderOptions {
|
|
37
37
|
msg: TelescopeGeneratedCodec<any, any, any>;
|
package/helper-func-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.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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
|
*/
|
|
@@ -31,7 +31,7 @@ function buildQuery(opts) {
|
|
|
31
31
|
function isISigningClient(client) {
|
|
32
32
|
return client !== null && client !== undefined
|
|
33
33
|
&& typeof client.signAndBroadcast === 'function'
|
|
34
|
-
&& typeof client.addConverters === 'function'
|
|
34
|
+
&& (!client.addConverters || typeof client.addConverters === 'function')
|
|
35
35
|
&& typeof client.addEncoders === 'function';
|
|
36
36
|
}
|
|
37
37
|
function buildTx(opts) {
|
|
@@ -43,7 +43,7 @@ function buildTx(opts) {
|
|
|
43
43
|
throw new Error("SigningClient is not initialized");
|
|
44
44
|
//register all related encoders and converters
|
|
45
45
|
client.addEncoders((0, utils_1.toEncoders)(opts.msg));
|
|
46
|
-
client.addConverters((0, utils_1.toConverters)(opts.msg));
|
|
46
|
+
client.addConverters?.((0, utils_1.toConverters)(opts.msg));
|
|
47
47
|
const data = Array.isArray(message)
|
|
48
48
|
? message.map(msg => ({
|
|
49
49
|
typeUrl: opts.msg.typeUrl,
|
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.11.
|
|
3
|
+
"version": "1.11.2",
|
|
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,12 +25,12 @@
|
|
|
25
25
|
"prepare": "npm run build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@interchainjs/cosmos": "1.11.
|
|
29
|
-
"@interchainjs/cosmos-types": "1.11.
|
|
30
|
-
"@interchainjs/encoding": "1.11.
|
|
31
|
-
"@interchainjs/pubkey": "1.11.
|
|
32
|
-
"@interchainjs/types": "1.11.
|
|
33
|
-
"@interchainjs/utils": "1.11.
|
|
28
|
+
"@interchainjs/cosmos": "1.11.2",
|
|
29
|
+
"@interchainjs/cosmos-types": "1.11.2",
|
|
30
|
+
"@interchainjs/encoding": "1.11.2",
|
|
31
|
+
"@interchainjs/pubkey": "1.11.2",
|
|
32
|
+
"@interchainjs/types": "1.11.2",
|
|
33
|
+
"@interchainjs/utils": "1.11.2",
|
|
34
34
|
"@noble/hashes": "^1.3.1",
|
|
35
35
|
"decimal.js": "^10.4.3"
|
|
36
36
|
},
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"cosmjs",
|
|
42
42
|
"wallet"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "0446d457022881b104f584e7582d3ad8a61a2abc"
|
|
45
45
|
}
|
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.3
|
|
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
|
*/
|