Skip to content

Commit 125e76b

Browse files
committed
Updated client
1 parent 88566f3 commit 125e76b

19 files changed

+180
-91
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
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 { Coin, StdFee } from "@cosmjs/amino";
7+
import { ICosmWasmClient, ISigningCosmWasmClient } from "./contractContextBase";
8+
import { ExecuteResult } from "@interchainjs/cosmos/signing-client";
9+
import { Coin, StdFee } from "@interchainjs/amino";
910
import { ExecuteMsg, Binary, InstantiateMsg, QueryMsg } from "./CwAdminFactory.types";
1011
export interface CwAdminFactoryReadOnlyInterface {
1112
contractAddress: string;
1213
}
1314
export class CwAdminFactoryQueryClient implements CwAdminFactoryReadOnlyInterface {
14-
client: CosmWasmClient;
15+
client: ICosmWasmClient;
1516
contractAddress: string;
16-
constructor(client: CosmWasmClient, contractAddress: string) {
17+
constructor(client: ICosmWasmClient, contractAddress: string) {
1718
this.client = client;
1819
this.contractAddress = contractAddress;
1920
}
@@ -32,10 +33,10 @@ export interface CwAdminFactoryInterface {
3233
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
3334
}
3435
export class CwAdminFactoryClient implements CwAdminFactoryInterface {
35-
client: SigningCosmWasmClient;
36+
client: ISigningCosmWasmClient;
3637
sender: string;
3738
contractAddress: string;
38-
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
39+
constructor(client: ISigningCosmWasmClient, sender: string, contractAddress: string) {
3940
this.client = client;
4041
this.sender = sender;
4142
this.contractAddress = contractAddress;

__output__/builder/bundler_test/contracts/CwAdminFactory.message-composer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { Coin } from "@cosmjs/amino";
8-
import { MsgExecuteContractEncodeObject } from "@cosmjs/cosmwasm-stargate";
9-
import { MsgExecuteContract } from "cosmjs-types/cosmwasm/wasm/v1/tx";
10-
import { toUtf8 } from "@cosmjs/encoding";
7+
import { Coin } from "@interchainjs/amino";
8+
import { MsgExecuteContractEncodeObject } from "@interchainjs/cosmwasm/wasm/v1/tx";
9+
import { MsgExecuteContract } from "@interchainjs/cosmwasm/wasm/v1/tx";
10+
import { toUtf8 } from "@interchainjs/encoding";
1111
import { ExecuteMsg, Binary, InstantiateMsg, QueryMsg } from "./CwAdminFactory.types";
1212
export interface CwAdminFactoryMsg {
1313
contractAddress: string;

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
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 { Coin, StdFee } from "@cosmjs/amino";
7+
import { ICosmWasmClient, ISigningCosmWasmClient } from "./contractContextBase";
8+
import { ExecuteResult } from "@interchainjs/cosmos/signing-client";
9+
import { Coin, StdFee } from "@interchainjs/amino";
910
import { Addr, PaymentInfo, Uint128, ConfigResponse, ExecuteMsg, Binary, Cw20ReceiveMsg, GetRegistrationResponse, Registration, InfoForCodeIdResponse, InstantiateMsg, ListRegistrationsResponse, QueryMsg, ReceiveMsg } from "./CwCodeIdRegistry.types";
1011
export interface CwCodeIdRegistryReadOnlyInterface {
1112
contractAddress: string;
@@ -35,9 +36,9 @@ export interface CwCodeIdRegistryReadOnlyInterface {
3536
}) => Promise<ListRegistrationsResponse>;
3637
}
3738
export class CwCodeIdRegistryQueryClient implements CwCodeIdRegistryReadOnlyInterface {
38-
client: CosmWasmClient;
39+
client: ICosmWasmClient;
3940
contractAddress: string;
40-
constructor(client: CosmWasmClient, contractAddress: string) {
41+
constructor(client: ICosmWasmClient, contractAddress: string) {
4142
this.client = client;
4243
this.contractAddress = contractAddress;
4344
this.config = this.config.bind(this);
@@ -146,10 +147,10 @@ export interface CwCodeIdRegistryInterface {
146147
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
147148
}
148149
export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
149-
client: SigningCosmWasmClient;
150+
client: ISigningCosmWasmClient;
150151
sender: string;
151152
contractAddress: string;
152-
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
153+
constructor(client: ISigningCosmWasmClient, sender: string, contractAddress: string) {
153154
this.client = client;
154155
this.sender = sender;
155156
this.contractAddress = contractAddress;

__output__/builder/bundler_test/contracts/CwCodeIdRegistry.message-composer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { Coin } from "@cosmjs/amino";
8-
import { MsgExecuteContractEncodeObject } from "@cosmjs/cosmwasm-stargate";
9-
import { MsgExecuteContract } from "cosmjs-types/cosmwasm/wasm/v1/tx";
10-
import { toUtf8 } from "@cosmjs/encoding";
7+
import { Coin } from "@interchainjs/amino";
8+
import { MsgExecuteContractEncodeObject } from "@interchainjs/cosmwasm/wasm/v1/tx";
9+
import { MsgExecuteContract } from "@interchainjs/cosmwasm/wasm/v1/tx";
10+
import { toUtf8 } from "@interchainjs/encoding";
1111
import { Addr, PaymentInfo, Uint128, ConfigResponse, ExecuteMsg, Binary, Cw20ReceiveMsg, GetRegistrationResponse, Registration, InfoForCodeIdResponse, InstantiateMsg, ListRegistrationsResponse, QueryMsg, ReceiveMsg } from "./CwCodeIdRegistry.types";
1212
export interface CwCodeIdRegistryMsg {
1313
contractAddress: string;

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
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 "./contractContextBase";
8+
import { ExecuteResult } from "@interchainjs/cosmos/signing-client";
9+
import { StdFee } from "@interchainjs/amino";
910
import { Addr, Uint128, Duration, Threshold, PercentageThreshold, Decimal, ConfigResponse, CheckedDepositInfo, ExecuteMsg, CosmosMsgForEmpty, BankMsg, StakingMsg, DistributionMsg, Binary, IbcMsg, Timestamp, Uint64, WasmMsg, GovMsg, VoteOption, Vote, DepositToken, Coin, Empty, IbcTimeout, IbcTimeoutBlock, DepositInfo, GovernanceModulesResponse, InfoResponse, ContractVersion, InstantiateMsg, Expiration, Status, ListProposalsResponse, ProposalResponse, Proposal, Votes, ListVotesResponse, VoteInfo, MigrateMsg, ProposalCountResponse, ProposalHooksResponse, QueryMsg, ReverseProposalsResponse, VoteHooksResponse, VoteResponse } from "./CwSingle.types";
1011
export interface CwSingleReadOnlyInterface {
1112
contractAddress: string;
@@ -51,9 +52,9 @@ export interface CwSingleReadOnlyInterface {
5152
info: () => Promise<InfoResponse>;
5253
}
5354
export class CwSingleQueryClient implements CwSingleReadOnlyInterface {
54-
client: CosmWasmClient;
55+
client: ICosmWasmClient;
5556
contractAddress: string;
56-
constructor(client: CosmWasmClient, contractAddress: string) {
57+
constructor(client: ICosmWasmClient, contractAddress: string) {
5758
this.client = client;
5859
this.contractAddress = contractAddress;
5960
this.config = this.config.bind(this);
@@ -231,10 +232,10 @@ export interface CwSingleInterface {
231232
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
232233
}
233234
export class CwSingleClient implements CwSingleInterface {
234-
client: SigningCosmWasmClient;
235+
client: ISigningCosmWasmClient;
235236
sender: string;
236237
contractAddress: string;
237-
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
238+
constructor(client: ISigningCosmWasmClient, sender: string, contractAddress: string) {
238239
this.client = client;
239240
this.sender = sender;
240241
this.contractAddress = contractAddress;

__output__/builder/bundler_test/contracts/CwSingle.message-composer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { MsgExecuteContractEncodeObject } from "@cosmjs/cosmwasm-stargate";
8-
import { MsgExecuteContract } from "cosmjs-types/cosmwasm/wasm/v1/tx";
9-
import { toUtf8 } from "@cosmjs/encoding";
7+
import { MsgExecuteContractEncodeObject } from "@interchainjs/cosmwasm/wasm/v1/tx";
8+
import { MsgExecuteContract } from "@interchainjs/cosmwasm/wasm/v1/tx";
9+
import { toUtf8 } from "@interchainjs/encoding";
1010
import { Addr, Uint128, Duration, Threshold, PercentageThreshold, Decimal, ConfigResponse, CheckedDepositInfo, ExecuteMsg, CosmosMsgForEmpty, BankMsg, StakingMsg, DistributionMsg, Binary, IbcMsg, Timestamp, Uint64, WasmMsg, GovMsg, VoteOption, Vote, DepositToken, Coin, Empty, IbcTimeout, IbcTimeoutBlock, DepositInfo, GovernanceModulesResponse, InfoResponse, ContractVersion, InstantiateMsg, Expiration, Status, ListProposalsResponse, ProposalResponse, Proposal, Votes, ListVotesResponse, VoteInfo, MigrateMsg, ProposalCountResponse, ProposalHooksResponse, QueryMsg, ReverseProposalsResponse, VoteHooksResponse, VoteResponse } from "./CwSingle.types";
1111
export interface CwSingleMsg {
1212
contractAddress: string;

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
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 "./contractContextBase";
8+
import { ExecuteResult } from "@interchainjs/cosmos/signing-client";
9+
import { StdFee } from "@interchainjs/amino";
910
import { AdminAddrResponse, CodeIdResponse, CodeIdType, Uint128, Binary, CreateWalletMsg, Guardians, MultiSig, Coin, Cw20Coin, ExecuteMsg, Addr, ProxyMigrationTxMsg, WalletAddr, CanonicalAddr, RelayTransaction, FeeResponse, GovecAddrResponse, InstantiateMsg, QueryMsg, WalletQueryPrefix, Duration, StakingOptions, WalletInfo, ContractVersion, WalletsOfResponse, WalletsResponse } from "./Factory.types";
1011
export interface FactoryReadOnlyInterface {
1112
contractAddress: string;
@@ -35,9 +36,9 @@ export interface FactoryReadOnlyInterface {
3536
adminAddr: () => Promise<AdminAddrResponse>;
3637
}
3738
export class FactoryQueryClient implements FactoryReadOnlyInterface {
38-
client: CosmWasmClient;
39+
client: ICosmWasmClient;
3940
contractAddress: string;
40-
constructor(client: CosmWasmClient, contractAddress: string) {
41+
constructor(client: ICosmWasmClient, contractAddress: string) {
4142
this.client = client;
4243
this.contractAddress = contractAddress;
4344
this.wallets = this.wallets.bind(this);
@@ -151,10 +152,10 @@ export interface FactoryInterface {
151152
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
152153
}
153154
export class FactoryClient implements FactoryInterface {
154-
client: SigningCosmWasmClient;
155+
client: ISigningCosmWasmClient;
155156
sender: string;
156157
contractAddress: string;
157-
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
158+
constructor(client: ISigningCosmWasmClient, sender: string, contractAddress: string) {
158159
this.client = client;
159160
this.sender = sender;
160161
this.contractAddress = contractAddress;

__output__/builder/bundler_test/contracts/Factory.message-composer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { MsgExecuteContractEncodeObject } from "@cosmjs/cosmwasm-stargate";
8-
import { MsgExecuteContract } from "cosmjs-types/cosmwasm/wasm/v1/tx";
9-
import { toUtf8 } from "@cosmjs/encoding";
7+
import { MsgExecuteContractEncodeObject } from "@interchainjs/cosmwasm/wasm/v1/tx";
8+
import { MsgExecuteContract } from "@interchainjs/cosmwasm/wasm/v1/tx";
9+
import { toUtf8 } from "@interchainjs/encoding";
1010
import { AdminAddrResponse, CodeIdResponse, CodeIdType, Uint128, Binary, CreateWalletMsg, Guardians, MultiSig, Coin, Cw20Coin, ExecuteMsg, Addr, ProxyMigrationTxMsg, WalletAddr, CanonicalAddr, RelayTransaction, FeeResponse, GovecAddrResponse, InstantiateMsg, QueryMsg, WalletQueryPrefix, Duration, StakingOptions, WalletInfo, ContractVersion, WalletsOfResponse, WalletsResponse } from "./Factory.types";
1111
export interface FactoryMsg {
1212
contractAddress: string;

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
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 "./contractContextBase";
8+
import { ExecuteResult } from "@interchainjs/cosmos/signing-client";
9+
import { StdFee } from "@interchainjs/amino";
910
import { Addr, Timestamp, Uint64, Uint128, Config, Coin, ConfigResponse, ExecuteMsg, Decimal, InstantiateMsg, InstantiateMsg1, CollectionInfoForRoyaltyInfoResponse, RoyaltyInfoResponse, QueryMsg } from "./Minter.types";
1011
export interface MinterReadOnlyInterface {
1112
contractAddress: string;
@@ -20,9 +21,9 @@ export interface MinterReadOnlyInterface {
2021
}) => Promise<MintCountResponse>;
2122
}
2223
export class MinterQueryClient implements MinterReadOnlyInterface {
23-
client: CosmWasmClient;
24+
client: ICosmWasmClient;
2425
contractAddress: string;
25-
constructor(client: CosmWasmClient, contractAddress: string) {
26+
constructor(client: ICosmWasmClient, contractAddress: string) {
2627
this.client = client;
2728
this.contractAddress = contractAddress;
2829
this.config = this.config.bind(this);
@@ -93,10 +94,10 @@ export interface MinterInterface {
9394
withdraw: (fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
9495
}
9596
export class MinterClient implements MinterInterface {
96-
client: SigningCosmWasmClient;
97+
client: ISigningCosmWasmClient;
9798
sender: string;
9899
contractAddress: string;
99-
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
100+
constructor(client: ISigningCosmWasmClient, sender: string, contractAddress: string) {
100101
this.client = client;
101102
this.sender = sender;
102103
this.contractAddress = contractAddress;

__output__/builder/bundler_test/contracts/Minter.message-composer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { MsgExecuteContractEncodeObject } from "@cosmjs/cosmwasm-stargate";
8-
import { MsgExecuteContract } from "cosmjs-types/cosmwasm/wasm/v1/tx";
9-
import { toUtf8 } from "@cosmjs/encoding";
7+
import { MsgExecuteContractEncodeObject } from "@interchainjs/cosmwasm/wasm/v1/tx";
8+
import { MsgExecuteContract } from "@interchainjs/cosmwasm/wasm/v1/tx";
9+
import { toUtf8 } from "@interchainjs/encoding";
1010
import { Addr, Timestamp, Uint64, Uint128, Config, Coin, ConfigResponse, ExecuteMsg, Decimal, InstantiateMsg, InstantiateMsg1, CollectionInfoForRoyaltyInfoResponse, RoyaltyInfoResponse, QueryMsg } from "./Minter.types";
1111
export interface MinterMsg {
1212
contractAddress: string;

0 commit comments

Comments
 (0)