Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adairrr committed Aug 15, 2024
1 parent 08521bd commit c7805cf
Show file tree
Hide file tree
Showing 37 changed files with 222 additions and 222 deletions.
12 changes: 6 additions & 6 deletions __fixtures__/issues/98/out/98.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
}: {
id: number;
instantiateMsg: Binary;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
proxy_install_plugin: {
id,
Expand All @@ -166,7 +166,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
ipfsHash: string;
name: string;
version: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
register_plugin: {
checksum,
Expand All @@ -182,7 +182,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
id
}: {
id: number;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
unregister_plugin: {
id
Expand All @@ -205,7 +205,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
ipfsHash?: string;
name?: string;
version?: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_plugin: {
checksum,
Expand All @@ -222,7 +222,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
newFee
}: {
newFee: Coin;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_registry_fee: {
new_fee: newFee
Expand All @@ -233,7 +233,7 @@ export class 98Client extends 98QueryClient implements 98Interface {
newAddr
}: {
newAddr: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_dao_addr: {
new_addr: newAddr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class CwAdminFactoryClient implements CwAdminFactoryInterface {
codeId: number;
instantiateMsg: Binary;
label: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
instantiate_contract_with_self_admin: {
code_id: codeId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
amount: Uint128;
msg: Binary;
sender: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
receive: {
amount,
Expand All @@ -188,7 +188,7 @@ export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
codeId: number;
name: string;
version: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
register: {
chain_id: chainId,
Expand All @@ -207,7 +207,7 @@ export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
chainId: string;
name: string;
owner?: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
set_owner: {
chain_id: chainId,
Expand All @@ -222,7 +222,7 @@ export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
}: {
chainId: string;
codeId: number;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
unregister: {
chain_id: chainId,
Expand All @@ -236,7 +236,7 @@ export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
}: {
admin?: string;
paymentInfo?: PaymentInfo;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_config: {
admin,
Expand Down
18 changes: 9 additions & 9 deletions __output__/builder/bundler_test/contracts/CwSingle.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export class CwSingleClient implements CwSingleInterface {
description: string;
msgs: CosmosMsgForEmpty[];
title: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
propose: {
description,
Expand All @@ -271,7 +271,7 @@ export class CwSingleClient implements CwSingleInterface {
}: {
proposalId: number;
vote: Vote;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
vote: {
proposal_id: proposalId,
Expand All @@ -283,7 +283,7 @@ export class CwSingleClient implements CwSingleInterface {
proposalId
}: {
proposalId: number;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
execute: {
proposal_id: proposalId
Expand All @@ -294,7 +294,7 @@ export class CwSingleClient implements CwSingleInterface {
proposalId
}: {
proposalId: number;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
close: {
proposal_id: proposalId
Expand All @@ -317,7 +317,7 @@ export class CwSingleClient implements CwSingleInterface {
minVotingPeriod?: Duration;
onlyMembersExecute: boolean;
threshold: Threshold;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_config: {
allow_revoting: allowRevoting,
Expand All @@ -334,7 +334,7 @@ export class CwSingleClient implements CwSingleInterface {
address
}: {
address: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
add_proposal_hook: {
address
Expand All @@ -345,7 +345,7 @@ export class CwSingleClient implements CwSingleInterface {
address
}: {
address: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
remove_proposal_hook: {
address
Expand All @@ -356,7 +356,7 @@ export class CwSingleClient implements CwSingleInterface {
address
}: {
address: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
add_vote_hook: {
address
Expand All @@ -367,7 +367,7 @@ export class CwSingleClient implements CwSingleInterface {
address
}: {
address: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
remove_vote_hook: {
address
Expand Down
14 changes: 7 additions & 7 deletions __output__/builder/bundler_test/contracts/Factory.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class FactoryClient implements FactoryInterface {
createWalletMsg
}: {
createWalletMsg: CreateWalletMsg;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
create_wallet: {
create_wallet_msg: createWalletMsg
Expand All @@ -183,7 +183,7 @@ export class FactoryClient implements FactoryInterface {
}: {
newUser: Addr;
oldUser: Addr;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_proxy_user: {
new_user: newUser,
Expand All @@ -197,7 +197,7 @@ export class FactoryClient implements FactoryInterface {
}: {
migrationMsg: ProxyMigrationTxMsg;
walletAddress: WalletAddr;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
migrate_wallet: {
migration_msg: migrationMsg,
Expand All @@ -211,7 +211,7 @@ export class FactoryClient implements FactoryInterface {
}: {
newCodeId: number;
ty: CodeIdType;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_code_id: {
new_code_id: newCodeId,
Expand All @@ -223,7 +223,7 @@ export class FactoryClient implements FactoryInterface {
newFee
}: {
newFee: Coin;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_wallet_fee: {
new_fee: newFee
Expand All @@ -234,7 +234,7 @@ export class FactoryClient implements FactoryInterface {
addr
}: {
addr: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_govec_addr: {
addr
Expand All @@ -245,7 +245,7 @@ export class FactoryClient implements FactoryInterface {
addr
}: {
addr: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_admin: {
addr
Expand Down
14 changes: 7 additions & 7 deletions __output__/builder/bundler_test/contracts/Minter.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class MinterClient implements MinterInterface {
this.mintFor = this.mintFor.bind(this);
this.withdraw = this.withdraw.bind(this);
}
mint = async (fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
mint = async (fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
mint: {}
}, fee_, memo_, funds_);
Expand All @@ -117,14 +117,14 @@ export class MinterClient implements MinterInterface {
whitelist
}: {
whitelist: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
set_whitelist: {
whitelist
}
}, fee_, memo_, funds_);
};
updateStartTime = async (fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
updateStartTime = async (fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_start_time: {}
}, fee_, memo_, funds_);
Expand All @@ -133,7 +133,7 @@ export class MinterClient implements MinterInterface {
perAddressLimit
}: {
perAddressLimit: number;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_per_address_limit: {
per_address_limit: perAddressLimit
Expand All @@ -144,7 +144,7 @@ export class MinterClient implements MinterInterface {
recipient
}: {
recipient: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
mint_to: {
recipient
Expand All @@ -157,15 +157,15 @@ export class MinterClient implements MinterInterface {
}: {
recipient: string;
tokenId: number;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
mint_for: {
recipient,
token_id: tokenId
}
}, fee_, memo_, funds_);
};
withdraw = async (fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
withdraw = async (fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
withdraw: {}
}, fee_, memo_, funds_);
Expand Down
2 changes: 1 addition & 1 deletion __output__/builder/default/CwAdminFactory.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class CwAdminFactoryClient extends CwAdminFactoryQueryClient implements C
codeId: number;
instantiateMsg: Binary;
label: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
instantiate_contract_with_self_admin: {
code_id: codeId,
Expand Down
10 changes: 5 additions & 5 deletions __output__/builder/default/CwCodeIdRegistry.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class CwCodeIdRegistryClient extends CwCodeIdRegistryQueryClient implemen
amount: Uint128;
msg: Binary;
sender: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
receive: {
amount,
Expand All @@ -189,7 +189,7 @@ export class CwCodeIdRegistryClient extends CwCodeIdRegistryQueryClient implemen
codeId: number;
name: string;
version: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
register: {
chain_id: chainId,
Expand All @@ -208,7 +208,7 @@ export class CwCodeIdRegistryClient extends CwCodeIdRegistryQueryClient implemen
chainId: string;
name: string;
owner?: string;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
set_owner: {
chain_id: chainId,
Expand All @@ -223,7 +223,7 @@ export class CwCodeIdRegistryClient extends CwCodeIdRegistryQueryClient implemen
}: {
chainId: string;
codeId: number;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
unregister: {
chain_id: chainId,
Expand All @@ -237,7 +237,7 @@ export class CwCodeIdRegistryClient extends CwCodeIdRegistryQueryClient implemen
}: {
admin?: string;
paymentInfo?: PaymentInfo;
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
return await this.client.execute(this.sender, this.contractAddress, {
update_config: {
admin,
Expand Down
Loading

0 comments on commit c7805cf

Please sign in to comment.