Skip to content

Commit 8ab7f18

Browse files
committed
upgrade telescope and regen
1 parent 623198c commit 8ab7f18

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+213
-168
lines changed

libs/cosmos-types/src/binary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This file and any referenced files were automatically generated by @cosmology/[email protected].16
2+
* This file and any referenced files were automatically generated by @cosmology/[email protected].19
33
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
44
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
55
*/

libs/cosmos-types/src/extern.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This file and any referenced files were automatically generated by @cosmology/[email protected].16
2+
* This file and any referenced files were automatically generated by @cosmology/[email protected].19
33
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
44
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
55
*/

libs/cosmos-types/src/helper-func-types.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This file and any referenced files were automatically generated by @cosmology/[email protected].16
2+
* This file and any referenced files were automatically generated by @cosmology/[email protected].19
33
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
44
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
55
*/
@@ -95,12 +95,15 @@ export function buildTx<TMsg>(opts: TxBuilderOptions) {
9595
client.addEncoders(opts.encoders ?? []);
9696
client.addConverters(opts.converters ?? []);
9797

98-
const data = [
99-
{
100-
typeUrl: opts.typeUrl,
101-
value: message,
102-
},
103-
];
98+
const data = Array.isArray(message)
99+
? message.map(msg => ({
100+
typeUrl: opts.typeUrl,
101+
value: msg,
102+
}))
103+
: [{
104+
typeUrl: opts.typeUrl,
105+
value: message,
106+
}];
104107
return client.signAndBroadcast!(signerAddress, data, fee, memo);
105108
};
106109
}

libs/cosmos-types/src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This file and any referenced files were automatically generated by @cosmology/[email protected].16
2+
* This file and any referenced files were automatically generated by @cosmology/[email protected].19
33
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
44
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
55
*/

libs/cosmos-types/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This file and any referenced files were automatically generated by @cosmology/[email protected].16
2+
* This file and any referenced files were automatically generated by @cosmology/[email protected].19
33
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
44
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
55
*/

libs/cosmos-types/src/utf8.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This file and any referenced files were automatically generated by @cosmology/[email protected].16
2+
* This file and any referenced files were automatically generated by @cosmology/[email protected].19
33
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
44
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
55
*/

libs/cosmos-types/src/varint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This file and any referenced files were automatically generated by @cosmology/[email protected].16
2+
* This file and any referenced files were automatically generated by @cosmology/[email protected].19
33
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
44
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
55
*/

libs/injective-react/src/binary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This file and any referenced files were automatically generated by @cosmology/[email protected].16
2+
* This file and any referenced files were automatically generated by @cosmology/[email protected].19
33
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
44
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
55
*/

libs/injective-react/src/extern.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This file and any referenced files were automatically generated by @cosmology/[email protected].16
2+
* This file and any referenced files were automatically generated by @cosmology/[email protected].19
33
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
44
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
55
*/

libs/injective-react/src/helper-func-types.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This file and any referenced files were automatically generated by @cosmology/[email protected].16
2+
* This file and any referenced files were automatically generated by @cosmology/[email protected].19
33
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
44
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
55
*/
@@ -10,7 +10,6 @@ import { BinaryReader, BinaryWriter } from "./binary";
1010
import { getRpcClient } from "./extern";
1111
import { isRpc, Rpc } from "./helpers";
1212
import { TelescopeGeneratedCodec } from "./types";
13-
import { GlobalDecoderRegistry } from "./registry";
1413

1514
export interface QueryBuilderOptions<TReq, TRes> {
1615
encode: (request: TReq, writer?: BinaryWriter) => BinaryWriter
@@ -103,12 +102,15 @@ export function buildTx<TMsg>(opts: TxBuilderOptions) {
103102
client.addEncoders(opts.encoders ?? []);
104103
client.addConverters(opts.converters ?? []);
105104

106-
const data = [
107-
{
108-
typeUrl: opts.typeUrl,
109-
value: message,
110-
},
111-
];
105+
const data = Array.isArray(message)
106+
? message.map(msg => ({
107+
typeUrl: opts.typeUrl,
108+
value: msg,
109+
}))
110+
: [{
111+
typeUrl: opts.typeUrl,
112+
value: message,
113+
}];
112114
return client.signAndBroadcast!(signerAddress, data, fee, memo);
113115
};
114116
}

0 commit comments

Comments
 (0)