44* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55*/
66
7- import { CosmWasmClient , SigningCosmWasmClient , ExecuteResult } from "@cosmjs/cosmwasm-stargate " ;
8- import { StdFee } from "@cosmjs/amino " ;
7+ import { ICosmWasmClient , ISigningCosmWasmClient } from "./baseClient " ;
8+ import { DeliverTxResponse , StdFee } from "@interchainjs/types " ;
99import { Uint128 , InstantiateMsg , Coin , ExecuteMsg , InstallableExecMsg , Binary , ExecMsg , QueryMsg , InstallableQueryMsg , QueryMsg1 , ConfigResponse , NullablePlugin , CanonicalAddr , Plugin , PluginsResponse } from "./98.types" ;
1010export interface 98 ReadOnlyInterface {
1111 contractAddress : string ;
@@ -24,9 +24,9 @@ export interface 98ReadOnlyInterface {
2424 } ) => Promise < NullablePlugin > ;
2525}
2626export class 98 QueryClient implements 98 ReadOnlyInterface {
27- client : CosmWasmClient ;
27+ client : ICosmWasmClient ;
2828 contractAddress : string ;
29- constructor ( client : CosmWasmClient , contractAddress : string ) {
29+ constructor ( client : ICosmWasmClient , contractAddress : string ) {
3030 this . client = client ;
3131 this . contractAddress = contractAddress ;
3232 this . getConfig = this . getConfig . bind ( this ) ;
@@ -73,7 +73,7 @@ export interface 98Interface extends 98ReadOnlyInterface {
7373 } : {
7474 id : number ;
7575 instantiateMsg : Binary ;
76- } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < ExecuteResult > ;
76+ } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < DeliverTxResponse > ;
7777 registerPlugin : ( {
7878 checksum,
7979 codeId,
@@ -88,12 +88,12 @@ export interface 98Interface extends 98ReadOnlyInterface {
8888 ipfsHash : string ;
8989 name : string ;
9090 version : string ;
91- } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < ExecuteResult > ;
91+ } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < DeliverTxResponse > ;
9292 unregisterPlugin : ( {
9393 id
9494 } : {
9595 id : number ;
96- } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < ExecuteResult > ;
96+ } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < DeliverTxResponse > ;
9797 updatePlugin : ( {
9898 checksum,
9999 codeId,
@@ -110,23 +110,23 @@ export interface 98Interface extends 98ReadOnlyInterface {
110110 ipfsHash ?: string ;
111111 name ?: string ;
112112 version ?: string ;
113- } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < ExecuteResult > ;
113+ } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < DeliverTxResponse > ;
114114 updateRegistryFee : ( {
115115 newFee
116116 } : {
117117 newFee : Coin ;
118- } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < ExecuteResult > ;
118+ } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < DeliverTxResponse > ;
119119 updateDaoAddr : ( {
120120 newAddr
121121 } : {
122122 newAddr : string ;
123- } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < ExecuteResult > ;
123+ } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < DeliverTxResponse > ;
124124}
125125export class 98 Client extends 98 QueryClient implements 98 Interface {
126- client : SigningCosmWasmClient ;
126+ client : ISigningCosmWasmClient ;
127127 sender : string ;
128128 contractAddress : string ;
129- constructor ( client : SigningCosmWasmClient , sender : string , contractAddress : string ) {
129+ constructor ( client : ISigningCosmWasmClient , sender : string , contractAddress : string ) {
130130 super ( client , contractAddress ) ;
131131 this . client = client ;
132132 this . sender = sender ;
@@ -144,7 +144,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
144144 } : {
145145 id : number ;
146146 instantiateMsg : Binary ;
147- } , fee_ : number | StdFee | "auto" = "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) : Promise < ExecuteResult > => {
147+ } , fee_ : number | StdFee | "auto" = "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) : Promise < DeliverTxResponse > => {
148148 return await this . client . execute ( this . sender , this . contractAddress , {
149149 proxy_install_plugin : {
150150 id,
@@ -166,7 +166,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
166166 ipfsHash : string ;
167167 name : string ;
168168 version : string ;
169- } , fee_ : number | StdFee | "auto" = "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) : Promise < ExecuteResult > => {
169+ } , fee_ : number | StdFee | "auto" = "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) : Promise < DeliverTxResponse > => {
170170 return await this . client . execute ( this . sender , this . contractAddress , {
171171 register_plugin : {
172172 checksum,
@@ -182,7 +182,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
182182 id
183183 } : {
184184 id : number ;
185- } , fee_ : number | StdFee | "auto" = "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) : Promise < ExecuteResult > => {
185+ } , fee_ : number | StdFee | "auto" = "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) : Promise < DeliverTxResponse > => {
186186 return await this . client . execute ( this . sender , this . contractAddress , {
187187 unregister_plugin : {
188188 id
@@ -205,7 +205,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
205205 ipfsHash ?: string ;
206206 name ?: string ;
207207 version ?: string ;
208- } , fee_ : number | StdFee | "auto" = "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) : Promise < ExecuteResult > => {
208+ } , fee_ : number | StdFee | "auto" = "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) : Promise < DeliverTxResponse > => {
209209 return await this . client . execute ( this . sender , this . contractAddress , {
210210 update_plugin : {
211211 checksum,
@@ -222,7 +222,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
222222 newFee
223223 } : {
224224 newFee : Coin ;
225- } , fee_ : number | StdFee | "auto" = "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) : Promise < ExecuteResult > => {
225+ } , fee_ : number | StdFee | "auto" = "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) : Promise < DeliverTxResponse > => {
226226 return await this . client . execute ( this . sender , this . contractAddress , {
227227 update_registry_fee : {
228228 new_fee : newFee
@@ -233,7 +233,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
233233 newAddr
234234 } : {
235235 newAddr : string ;
236- } , fee_ : number | StdFee | "auto" = "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) : Promise < ExecuteResult > => {
236+ } , fee_ : number | StdFee | "auto" = "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) : Promise < DeliverTxResponse > => {
237237 return await this . client . execute ( this . sender , this . contractAddress , {
238238 update_dao_addr : {
239239 new_addr : newAddr
0 commit comments