4
4
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
5
5
*/
6
6
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 " ;
9
9
import { Uint128 , InstantiateMsg , Coin , ExecuteMsg , InstallableExecMsg , Binary , ExecMsg , QueryMsg , InstallableQueryMsg , QueryMsg1 , ConfigResponse , NullablePlugin , CanonicalAddr , Plugin , PluginsResponse } from "./98.types" ;
10
10
export interface 98 ReadOnlyInterface {
11
11
contractAddress : string ;
@@ -24,9 +24,9 @@ export interface 98ReadOnlyInterface {
24
24
} ) => Promise < NullablePlugin > ;
25
25
}
26
26
export class 98 QueryClient implements 98 ReadOnlyInterface {
27
- client : CosmWasmClient ;
27
+ client : ICosmWasmClient ;
28
28
contractAddress : string ;
29
- constructor ( client : CosmWasmClient , contractAddress : string ) {
29
+ constructor ( client : ICosmWasmClient , contractAddress : string ) {
30
30
this . client = client ;
31
31
this . contractAddress = contractAddress ;
32
32
this . getConfig = this . getConfig . bind ( this ) ;
@@ -73,7 +73,7 @@ export interface 98Interface extends 98ReadOnlyInterface {
73
73
} : {
74
74
id : number ;
75
75
instantiateMsg : Binary ;
76
- } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < ExecuteResult > ;
76
+ } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < DeliverTxResponse > ;
77
77
registerPlugin : ( {
78
78
checksum,
79
79
codeId,
@@ -88,12 +88,12 @@ export interface 98Interface extends 98ReadOnlyInterface {
88
88
ipfsHash : string ;
89
89
name : string ;
90
90
version : string ;
91
- } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < ExecuteResult > ;
91
+ } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < DeliverTxResponse > ;
92
92
unregisterPlugin : ( {
93
93
id
94
94
} : {
95
95
id : number ;
96
- } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < ExecuteResult > ;
96
+ } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < DeliverTxResponse > ;
97
97
updatePlugin : ( {
98
98
checksum,
99
99
codeId,
@@ -110,23 +110,23 @@ export interface 98Interface extends 98ReadOnlyInterface {
110
110
ipfsHash ?: string ;
111
111
name ?: string ;
112
112
version ?: string ;
113
- } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < ExecuteResult > ;
113
+ } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < DeliverTxResponse > ;
114
114
updateRegistryFee : ( {
115
115
newFee
116
116
} : {
117
117
newFee : Coin ;
118
- } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < ExecuteResult > ;
118
+ } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < DeliverTxResponse > ;
119
119
updateDaoAddr : ( {
120
120
newAddr
121
121
} : {
122
122
newAddr : string ;
123
- } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < ExecuteResult > ;
123
+ } , fee_ ?: number | StdFee | "auto" , memo_ ?: string , funds_ ?: Coin [ ] ) => Promise < DeliverTxResponse > ;
124
124
}
125
125
export class 98 Client extends 98 QueryClient implements 98 Interface {
126
- client : SigningCosmWasmClient ;
126
+ client : ISigningCosmWasmClient ;
127
127
sender : string ;
128
128
contractAddress : string ;
129
- constructor ( client : SigningCosmWasmClient , sender : string , contractAddress : string ) {
129
+ constructor ( client : ISigningCosmWasmClient , sender : string , contractAddress : string ) {
130
130
super ( client , contractAddress ) ;
131
131
this . client = client ;
132
132
this . sender = sender ;
@@ -144,7 +144,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
144
144
} : {
145
145
id : number ;
146
146
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 > => {
148
148
return await this . client . execute ( this . sender , this . contractAddress , {
149
149
proxy_install_plugin : {
150
150
id,
@@ -166,7 +166,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
166
166
ipfsHash : string ;
167
167
name : string ;
168
168
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 > => {
170
170
return await this . client . execute ( this . sender , this . contractAddress , {
171
171
register_plugin : {
172
172
checksum,
@@ -182,7 +182,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
182
182
id
183
183
} : {
184
184
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 > => {
186
186
return await this . client . execute ( this . sender , this . contractAddress , {
187
187
unregister_plugin : {
188
188
id
@@ -205,7 +205,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
205
205
ipfsHash ?: string ;
206
206
name ?: string ;
207
207
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 > => {
209
209
return await this . client . execute ( this . sender , this . contractAddress , {
210
210
update_plugin : {
211
211
checksum,
@@ -222,7 +222,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
222
222
newFee
223
223
} : {
224
224
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 > => {
226
226
return await this . client . execute ( this . sender , this . contractAddress , {
227
227
update_registry_fee : {
228
228
new_fee : newFee
@@ -233,7 +233,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
233
233
newAddr
234
234
} : {
235
235
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 > => {
237
237
return await this . client . execute ( this . sender , this . contractAddress , {
238
238
update_dao_addr : {
239
239
new_addr : newAddr
0 commit comments