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";
99import { BinaryReader , BinaryWriter } from "./binary" ;
1010import { getRpcClient } from "./extern" ;
1111import { isRpc , Rpc } from "./helpers" ;
12- import { TelescopeGeneratedCodec } from "./types" ;
12+ import { TelescopeGeneratedCodec , DeliverTxResponse , Message , StdFee } from "./types" ;
1313
1414export 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-
187118export interface Encoder {
188119 typeUrl : string ;
189120 fromPartial : ( data : any ) => any ;
0 commit comments