Skip to content

Commit 7026f7f

Browse files
Gefei HouGefei Hou
authored andcommitted
Update new version of interchainjs and related code change
1 parent 1eed441 commit 7026f7f

File tree

64 files changed

+866
-866
lines changed

Some content is hidden

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

64 files changed

+866
-866
lines changed

__fixtures__/issues/98/out/98.client.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { ICosmWasmClient, ISigningCosmWasmClient } from "./baseClient";
8-
import { DeliverTxResponse, StdFee } from "@interchainjs/types";
8+
import { StdFee } from "@interchainjs/types";
99
import { Uint128, InstantiateMsg, Coin, ExecuteMsg, InstallableExecMsg, Binary, ExecMsg, QueryMsg, InstallableQueryMsg, QueryMsg1, ConfigResponse, NullablePlugin, CanonicalAddr, Plugin, PluginsResponse } from "./98.types";
1010
export interface 98ReadOnlyInterface {
1111
contractAddress: string;
@@ -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<DeliverTxResponse>;
76+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<any>;
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<DeliverTxResponse>;
91+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<any>;
9292
unregisterPlugin: ({
9393
id
9494
}: {
9595
id: number;
96-
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<DeliverTxResponse>;
96+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<any>;
9797
updatePlugin: ({
9898
checksum,
9999
codeId,
@@ -110,17 +110,17 @@ export interface 98Interface extends 98ReadOnlyInterface {
110110
ipfsHash?: string;
111111
name?: string;
112112
version?: string;
113-
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<DeliverTxResponse>;
113+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<any>;
114114
updateRegistryFee: ({
115115
newFee
116116
}: {
117117
newFee: Coin;
118-
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<DeliverTxResponse>;
118+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<any>;
119119
updateDaoAddr: ({
120120
newAddr
121121
}: {
122122
newAddr: string;
123-
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<DeliverTxResponse>;
123+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<any>;
124124
}
125125
export class 98Client extends 98QueryClient implements 98Interface {
126126
client: ISigningCosmWasmClient;
@@ -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<DeliverTxResponse> => {
147+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<any> => {
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<DeliverTxResponse> => {
169+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<any> => {
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<DeliverTxResponse> => {
185+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<any> => {
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<DeliverTxResponse> => {
208+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<any> => {
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<DeliverTxResponse> => {
225+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<any> => {
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<DeliverTxResponse> => {
236+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<any> => {
237237
return await this.client.execute(this.sender, this.contractAddress, {
238238
update_dao_addr: {
239239
new_addr: newAddr

__fixtures__/issues/98/out/baseClient.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
*/
66

77

8-
import { StdFee, Coin, DeliverTxResponse } from '@interchainjs/types';
9-
import { SigningClient } from '@interchainjs/cosmos/signing-client';
8+
import { StdFee, Coin } from '@interchainjs/types';
9+
import { DirectSigner } from '@interchainjs/cosmos';
1010
import { getSmartContractState } from 'interchainjs/cosmwasm/wasm/v1/query.rpc.func';
1111
import { executeContract } from 'interchainjs/cosmwasm/wasm/v1/tx.rpc.func';
1212
import { QuerySmartContractStateRequest, QuerySmartContractStateResponse } from 'interchainjs/cosmwasm/wasm/v1/query';
@@ -112,7 +112,7 @@ export interface ISigningCosmWasmClient {
112112
memo?: string,
113113
funds?: Coin[],
114114
chainConfig?: ChainConfig
115-
): Promise<DeliverTxResponse>;
115+
): Promise<any>;
116116
}
117117

118118
export interface ISigningClient {
@@ -121,7 +121,7 @@ export interface ISigningClient {
121121
messages: any[],
122122
fee: number | StdFee | "auto",
123123
memo?: string
124-
): Promise<DeliverTxResponse>;
124+
): Promise<any>;
125125
}
126126

127127
// Helper functions to create InterchainJS clients
@@ -143,7 +143,7 @@ export function getCosmWasmClient(rpcEndpoint: string): ICosmWasmClient {
143143
};
144144
}
145145

146-
export function getSigningCosmWasmClient(signingClient: SigningClient): ISigningCosmWasmClient {
146+
export function getSigningCosmWasmClient(signingClient: DirectSigner): ISigningCosmWasmClient {
147147
return {
148148
execute: async (
149149
sender: string,

__output__/builder/bundler_test/contracts/CwAdminFactory.client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { ICosmWasmClient, ISigningCosmWasmClient } from "./baseClient";
8-
import { Coin, DeliverTxResponse, StdFee } from "@interchainjs/types";
8+
import { Coin, StdFee } from "@interchainjs/types";
99
import { ExecuteMsg, Binary, InstantiateMsg, QueryMsg } from "./CwAdminFactory.types";
1010
export interface CwAdminFactoryReadOnlyInterface {
1111
contractAddress: string;
@@ -29,7 +29,7 @@ export interface CwAdminFactoryInterface {
2929
codeId: number;
3030
instantiateMsg: Binary;
3131
label: string;
32-
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<DeliverTxResponse>;
32+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<any>;
3333
}
3434
export class CwAdminFactoryClient implements CwAdminFactoryInterface {
3535
client: ISigningCosmWasmClient;
@@ -49,7 +49,7 @@ export class CwAdminFactoryClient implements CwAdminFactoryInterface {
4949
codeId: number;
5050
instantiateMsg: Binary;
5151
label: string;
52-
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<DeliverTxResponse> => {
52+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<any> => {
5353
return await this.client.execute(this.sender, this.contractAddress, {
5454
instantiate_contract_with_self_admin: {
5555
code_id: codeId,

__output__/builder/bundler_test/contracts/CwCodeIdRegistry.client.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { ICosmWasmClient, ISigningCosmWasmClient } from "./baseClient";
8-
import { Coin, DeliverTxResponse, StdFee } from "@interchainjs/types";
8+
import { Coin, StdFee } from "@interchainjs/types";
99
import { Addr, PaymentInfo, Uint128, ConfigResponse, ExecuteMsg, Binary, Cw20ReceiveMsg, GetRegistrationResponse, Registration, InfoForCodeIdResponse, InstantiateMsg, ListRegistrationsResponse, QueryMsg, ReceiveMsg } from "./CwCodeIdRegistry.types";
1010
export interface CwCodeIdRegistryReadOnlyInterface {
1111
contractAddress: string;
@@ -107,7 +107,7 @@ export interface CwCodeIdRegistryInterface {
107107
amount: Uint128;
108108
msg: Binary;
109109
sender: string;
110-
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<DeliverTxResponse>;
110+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<any>;
111111
register: ({
112112
chainId,
113113
checksum,
@@ -120,7 +120,7 @@ export interface CwCodeIdRegistryInterface {
120120
codeId: number;
121121
name: string;
122122
version: string;
123-
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<DeliverTxResponse>;
123+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<any>;
124124
setOwner: ({
125125
chainId,
126126
name,
@@ -129,21 +129,21 @@ export interface CwCodeIdRegistryInterface {
129129
chainId: string;
130130
name: string;
131131
owner?: string;
132-
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<DeliverTxResponse>;
132+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<any>;
133133
unregister: ({
134134
chainId,
135135
codeId
136136
}: {
137137
chainId: string;
138138
codeId: number;
139-
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<DeliverTxResponse>;
139+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<any>;
140140
updateConfig: ({
141141
admin,
142142
paymentInfo
143143
}: {
144144
admin?: string;
145145
paymentInfo?: PaymentInfo;
146-
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<DeliverTxResponse>;
146+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<any>;
147147
}
148148
export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
149149
client: ISigningCosmWasmClient;
@@ -167,7 +167,7 @@ export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
167167
amount: Uint128;
168168
msg: Binary;
169169
sender: string;
170-
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<DeliverTxResponse> => {
170+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<any> => {
171171
return await this.client.execute(this.sender, this.contractAddress, {
172172
receive: {
173173
amount,
@@ -188,7 +188,7 @@ export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
188188
codeId: number;
189189
name: string;
190190
version: string;
191-
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<DeliverTxResponse> => {
191+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<any> => {
192192
return await this.client.execute(this.sender, this.contractAddress, {
193193
register: {
194194
chain_id: chainId,
@@ -207,7 +207,7 @@ export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
207207
chainId: string;
208208
name: string;
209209
owner?: string;
210-
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<DeliverTxResponse> => {
210+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<any> => {
211211
return await this.client.execute(this.sender, this.contractAddress, {
212212
set_owner: {
213213
chain_id: chainId,
@@ -222,7 +222,7 @@ export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
222222
}: {
223223
chainId: string;
224224
codeId: number;
225-
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<DeliverTxResponse> => {
225+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<any> => {
226226
return await this.client.execute(this.sender, this.contractAddress, {
227227
unregister: {
228228
chain_id: chainId,
@@ -236,7 +236,7 @@ export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
236236
}: {
237237
admin?: string;
238238
paymentInfo?: PaymentInfo;
239-
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<DeliverTxResponse> => {
239+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<any> => {
240240
return await this.client.execute(this.sender, this.contractAddress, {
241241
update_config: {
242242
admin,

0 commit comments

Comments
 (0)