Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4a533e6

Browse files
authoredDec 21, 2024··
Merge pull request #152 from adairrr/adair/memoFix
Suffix fee, memo, and funds with underscores
2 parents 3b9b357 + c7805cf commit 4a533e6

File tree

88 files changed

+1787
-1786
lines changed

Some content is hidden

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

88 files changed

+1787
-1786
lines changed
 

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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<ExecuteResult>;
76+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
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<ExecuteResult>;
91+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
9292
unregisterPlugin: ({
9393
id
9494
}: {
9595
id: number;
96-
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
96+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
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<ExecuteResult>;
113+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
114114
updateRegistryFee: ({
115115
newFee
116116
}: {
117117
newFee: Coin;
118-
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
118+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
119119
updateDaoAddr: ({
120120
newAddr
121121
}: {
122122
newAddr: string;
123-
}, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
123+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
124124
}
125125
export class 98Client extends 98QueryClient implements 98Interface {
126126
client: SigningCosmWasmClient;
@@ -144,13 +144,13 @@ 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<ExecuteResult> => {
147+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
148148
return await this.client.execute(this.sender, this.contractAddress, {
149149
proxy_install_plugin: {
150150
id,
151151
instantiate_msg: instantiateMsg
152152
}
153-
}, fee, memo, _funds);
153+
}, fee_, memo_, funds_);
154154
};
155155
registerPlugin = async ({
156156
checksum,
@@ -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<ExecuteResult> => {
169+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
170170
return await this.client.execute(this.sender, this.contractAddress, {
171171
register_plugin: {
172172
checksum,
@@ -176,18 +176,18 @@ export class 98Client extends 98QueryClient implements 98Interface {
176176
name,
177177
version
178178
}
179-
}, fee, memo, _funds);
179+
}, fee_, memo_, funds_);
180180
};
181181
unregisterPlugin = async ({
182182
id
183183
}: {
184184
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<ExecuteResult> => {
186186
return await this.client.execute(this.sender, this.contractAddress, {
187187
unregister_plugin: {
188188
id
189189
}
190-
}, fee, memo, _funds);
190+
}, fee_, memo_, funds_);
191191
};
192192
updatePlugin = async ({
193193
checksum,
@@ -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<ExecuteResult> => {
208+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
209209
return await this.client.execute(this.sender, this.contractAddress, {
210210
update_plugin: {
211211
checksum,
@@ -216,28 +216,28 @@ export class 98Client extends 98QueryClient implements 98Interface {
216216
name,
217217
version
218218
}
219-
}, fee, memo, _funds);
219+
}, fee_, memo_, funds_);
220220
};
221221
updateRegistryFee = async ({
222222
newFee
223223
}: {
224224
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<ExecuteResult> => {
226226
return await this.client.execute(this.sender, this.contractAddress, {
227227
update_registry_fee: {
228228
new_fee: newFee
229229
}
230-
}, fee, memo, _funds);
230+
}, fee_, memo_, funds_);
231231
};
232232
updateDaoAddr = async ({
233233
newAddr
234234
}: {
235235
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<ExecuteResult> => {
237237
return await this.client.execute(this.sender, this.contractAddress, {
238238
update_dao_addr: {
239239
new_addr: newAddr
240240
}
241-
}, fee, memo, _funds);
241+
}, fee_, memo_, funds_);
242242
};
243243
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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<ExecuteResult>;
32+
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
3333
}
3434
export class CwAdminFactoryClient implements CwAdminFactoryInterface {
3535
client: SigningCosmWasmClient;
@@ -49,13 +49,13 @@ 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<ExecuteResult> => {
52+
}, fee_: number | StdFee | "auto" = "auto", memo_?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
5353
return await this.client.execute(this.sender, this.contractAddress, {
5454
instantiate_contract_with_self_admin: {
5555
code_id: codeId,
5656
instantiate_msg: instantiateMsg,
5757
label
5858
}
59-
}, fee, memo, _funds);
59+
}, fee_, memo_, funds_);
6060
};
6161
}

0 commit comments

Comments
 (0)
Please sign in to comment.