Skip to content

Commit

Permalink
Suffix fee, memo, and funds with underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
adairrr committed Aug 15, 2024
1 parent 3b9b357 commit ba42093
Show file tree
Hide file tree
Showing 88 changed files with 1,784 additions and 1,784 deletions.
36 changes: 18 additions & 18 deletions __fixtures__/issues/98/out/98.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export interface 98Interface extends 98ReadOnlyInterface {
}: {
id: number;
instantiateMsg: Binary;
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
registerPlugin: ({
checksum,
codeId,
Expand All @@ -88,12 +88,12 @@ export interface 98Interface extends 98ReadOnlyInterface {
ipfsHash: string;
name: string;
version: string;
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
unregisterPlugin: ({
id
}: {
id: number;
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
updatePlugin: ({
checksum,
codeId,
Expand All @@ -110,17 +110,17 @@ export interface 98Interface extends 98ReadOnlyInterface {
ipfsHash?: string;
name?: string;
version?: string;
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
updateRegistryFee: ({
newFee
}: {
newFee: Coin;
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
updateDaoAddr: ({
newAddr
}: {
newAddr: string;
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
}
export class 98Client extends 98QueryClient implements 98Interface {
client: SigningCosmWasmClient;
Expand All @@ -144,13 +144,13 @@ 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,
instantiate_msg: instantiateMsg
}
}, fee, memo, _funds);
}, fee_, memo_, funds_);
};
registerPlugin = async ({
checksum,
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 @@ -176,18 +176,18 @@ export class 98Client extends 98QueryClient implements 98Interface {
name,
version
}
}, fee, memo, _funds);
}, fee_, memo_, funds_);
};
unregisterPlugin = async ({
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
}
}, fee, memo, _funds);
}, fee_, memo_, funds_);
};
updatePlugin = async ({
checksum,
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 @@ -216,28 +216,28 @@ export class 98Client extends 98QueryClient implements 98Interface {
name,
version
}
}, fee, memo, _funds);
}, fee_, memo_, funds_);
};
updateRegistryFee = async ({
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
}
}, fee, memo, _funds);
}, fee_, memo_, funds_);
};
updateDaoAddr = async ({
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
}
}, fee, memo, _funds);
}, fee_, memo_, funds_);
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface CwAdminFactoryInterface {
codeId: number;
instantiateMsg: Binary;
label: string;
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
}
export class CwAdminFactoryClient implements CwAdminFactoryInterface {
client: SigningCosmWasmClient;
Expand All @@ -49,13 +49,13 @@ 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,
instantiate_msg: instantiateMsg,
label
}
}, fee, memo, _funds);
}, fee_, memo_, funds_);
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface CwAdminFactoryMsg {
codeId: number;
instantiateMsg: Binary;
label: string;
}, _funds?: Coin[]) => MsgExecuteContractEncodeObject;
}, funds_?: Coin[]) => MsgExecuteContractEncodeObject;
}
export class CwAdminFactoryMsgComposer implements CwAdminFactoryMsg {
sender: string;
Expand All @@ -38,7 +38,7 @@ export class CwAdminFactoryMsgComposer implements CwAdminFactoryMsg {
codeId: number;
instantiateMsg: Binary;
label: string;
}, _funds?: Coin[]): MsgExecuteContractEncodeObject => {
}, funds_?: Coin[]): MsgExecuteContractEncodeObject => {
return {
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
value: MsgExecuteContract.fromPartial({
Expand All @@ -51,7 +51,7 @@ export class CwAdminFactoryMsgComposer implements CwAdminFactoryMsg {
label
}
})),
funds: _funds
funds: funds_
})
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export interface CwCodeIdRegistryInterface {
amount: Uint128;
msg: Binary;
sender: string;
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
register: ({
chainId,
checksum,
Expand All @@ -120,7 +120,7 @@ export interface CwCodeIdRegistryInterface {
codeId: number;
name: string;
version: string;
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
setOwner: ({
chainId,
name,
Expand All @@ -129,21 +129,21 @@ export interface CwCodeIdRegistryInterface {
chainId: string;
name: string;
owner?: string;
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
unregister: ({
chainId,
codeId
}: {
chainId: string;
codeId: number;
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
updateConfig: ({
admin,
paymentInfo
}: {
admin?: string;
paymentInfo?: PaymentInfo;
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
}
export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
client: SigningCosmWasmClient;
Expand All @@ -167,14 +167,14 @@ 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,
msg,
sender
}
}, fee, memo, _funds);
}, fee_, memo_, funds_);
};
register = async ({
chainId,
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 @@ -197,7 +197,7 @@ export class CwCodeIdRegistryClient implements CwCodeIdRegistryInterface {
name,
version
}
}, fee, memo, _funds);
}, fee_, memo_, funds_);
};
setOwner = async ({
chainId,
Expand All @@ -207,41 +207,41 @@ 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,
name,
owner
}
}, fee, memo, _funds);
}, fee_, memo_, funds_);
};
unregister = async ({
chainId,
codeId
}: {
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,
code_id: codeId
}
}, fee, memo, _funds);
}, fee_, memo_, funds_);
};
updateConfig = async ({
admin,
paymentInfo
}: {
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,
payment_info: paymentInfo
}
}, fee, memo, _funds);
}, fee_, memo_, funds_);
};
}
Loading

0 comments on commit ba42093

Please sign in to comment.