Skip to content

Commit 555f4c1

Browse files
authored
Merge pull request #98 from hyperweb-io/upgrade-telescope-1.11.24
upgrade telescope to 1.11.25 and regenerate
2 parents 7d22974 + 56b4649 commit 555f4c1

61 files changed

Lines changed: 122 additions & 594 deletions

Some content is hidden

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

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/telescope@1.11.22
2+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
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/telescope@1.11.22
2+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
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: 4 additions & 72 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/telescope@1.11.22
2+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
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
*/
@@ -9,6 +9,7 @@ import { HttpEndpoint } from "@interchainjs/types";
99
import { BinaryReader, BinaryWriter } from "./binary";
1010
import { getRpcClient } from "./extern";
1111
import { isRpc, Rpc } from "./helpers";
12+
import { DeliverTxResponse, Message, StdFee } from "./types";
1213

1314
export interface QueryBuilderOptions<TReq, TRes> {
1415
encode: (request: TReq, writer?: BinaryWriter) => BinaryWriter
@@ -62,8 +63,8 @@ export interface ISigningClient {
6263

6364
signAndBroadcast: (
6465
signerAddress: string,
65-
message: Message[],
66-
fee: StdFee | 'auto',
66+
message: Message<any>[],
67+
fee: StdFee | "auto",
6768
memo: string
6869
) => Promise<DeliverTxResponse>;
6970
}
@@ -108,75 +109,6 @@ export function buildTx<TMsg>(opts: TxBuilderOptions) {
108109
};
109110
}
110111

111-
export interface Coin {
112-
denom: string;
113-
amount: string;
114-
}
115-
116-
export interface StdFee {
117-
amount: Coin[];
118-
gas: string;
119-
/** The granter address that is used for paying with feegrants */
120-
granter?: string;
121-
/** The fee payer address. The payer must have signed the transaction. */
122-
payer?: string;
123-
}
124-
125-
/**
126-
* The response after successfully broadcasting a transaction.
127-
* Success or failure refer to the execution result.
128-
*/
129-
export interface DeliverTxResponse {
130-
height: number;
131-
/** The position of the transaction within the block. This is a 0-based index. */
132-
txIndex: number;
133-
/** Error code. The transaction suceeded if and only if code is 0. */
134-
code: number;
135-
transactionHash: string;
136-
events: Event[];
137-
/**
138-
* A string-based log document.
139-
*
140-
* This currently seems to merge attributes of multiple events into one event per type
141-
* (https://github.com/tendermint/tendermint/issues/9595). You might want to use the `events`
142-
* field instead.
143-
*/
144-
rawLog?: string;
145-
/** @deprecated Use `msgResponses` instead. */
146-
data?: MsgData[];
147-
/**
148-
* The message responses of the [TxMsgData](https://github.com/cosmos/cosmos-sdk/blob/v0.46.3/proto/cosmos/base/abci/v1beta1/abci.proto#L128-L140)
149-
* as `Any`s.
150-
* This field is an empty list for chains running Cosmos SDK < 0.46.
151-
*/
152-
msgResponses: Array<{
153-
typeUrl: string;
154-
value: Uint8Array;
155-
}>;
156-
gasUsed: bigint;
157-
gasWanted: bigint;
158-
}
159-
160-
export interface MsgData {
161-
msgType: string;
162-
data: Uint8Array;
163-
}
164-
165-
export interface Attribute {
166-
key: string;
167-
value: string;
168-
index: boolean;
169-
}
170-
export interface Event {
171-
type: string;
172-
attributes: Attribute[];
173-
}
174-
175-
export interface Message<T = any> {
176-
typeUrl: string;
177-
value: T;
178-
}
179-
180112
export interface Encoder {
181113
typeUrl: string;
182114
fromPartial: (data: any) => any;

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/telescope@1.11.22
2+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
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/telescope@1.11.22
2+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
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/telescope@1.11.22
2+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
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/telescope@1.11.22
2+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
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/telescope@1.11.22
2+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
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/telescope@1.11.22
2+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
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: 3 additions & 72 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/telescope@1.11.22
2+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
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
*/
@@ -9,7 +9,7 @@ import { HttpEndpoint } from "@interchainjs/types";
99
import { BinaryReader, BinaryWriter } from "./binary";
1010
import { getRpcClient } from "./extern";
1111
import { isRpc, Rpc } from "./helpers";
12-
import { TelescopeGeneratedCodec } from "./types";
12+
import { TelescopeGeneratedCodec, DeliverTxResponse, Message, StdFee } from "./types";
1313

1414
export interface QueryBuilderOptions<TReq, TRes> {
1515
encode: (request: TReq, writer?: BinaryWriter) => BinaryWriter
@@ -66,7 +66,7 @@ export interface ISigningClient {
6666

6767
signAndBroadcast: (
6868
signerAddress: string,
69-
message: Message[],
69+
message: Message<any>[],
7070
fee: StdFee | 'auto',
7171
memo: string
7272
) => Promise<DeliverTxResponse>;
@@ -115,75 +115,6 @@ export function buildTx<TMsg>(opts: TxBuilderOptions) {
115115
};
116116
}
117117

118-
export interface Coin {
119-
denom: string;
120-
amount: string;
121-
}
122-
123-
export interface StdFee {
124-
amount: Coin[];
125-
gas: string;
126-
/** The granter address that is used for paying with feegrants */
127-
granter?: string;
128-
/** The fee payer address. The payer must have signed the transaction. */
129-
payer?: string;
130-
}
131-
132-
/**
133-
* The response after successfully broadcasting a transaction.
134-
* Success or failure refer to the execution result.
135-
*/
136-
export interface DeliverTxResponse {
137-
height: number;
138-
/** The position of the transaction within the block. This is a 0-based index. */
139-
txIndex: number;
140-
/** Error code. The transaction suceeded if and only if code is 0. */
141-
code: number;
142-
transactionHash: string;
143-
events: Event[];
144-
/**
145-
* A string-based log document.
146-
*
147-
* This currently seems to merge attributes of multiple events into one event per type
148-
* (https://github.com/tendermint/tendermint/issues/9595). You might want to use the `events`
149-
* field instead.
150-
*/
151-
rawLog?: string;
152-
/** @deprecated Use `msgResponses` instead. */
153-
data?: MsgData[];
154-
/**
155-
* The message responses of the [TxMsgData](https://github.com/cosmos/cosmos-sdk/blob/v0.46.3/proto/cosmos/base/abci/v1beta1/abci.proto#L128-L140)
156-
* as `Any`s.
157-
* This field is an empty list for chains running Cosmos SDK < 0.46.
158-
*/
159-
msgResponses: Array<{
160-
typeUrl: string;
161-
value: Uint8Array;
162-
}>;
163-
gasUsed: bigint;
164-
gasWanted: bigint;
165-
}
166-
167-
export interface MsgData {
168-
msgType: string;
169-
data: Uint8Array;
170-
}
171-
172-
export interface Attribute {
173-
key: string;
174-
value: string;
175-
index: boolean;
176-
}
177-
export interface Event {
178-
type: string;
179-
attributes: Attribute[];
180-
}
181-
182-
export interface Message<T = any> {
183-
typeUrl: string;
184-
value: T;
185-
}
186-
187118
export interface Encoder {
188119
typeUrl: string;
189120
fromPartial: (data: any) => any;

0 commit comments

Comments
 (0)