Skip to content

Commit df0b358

Browse files
committed
Ensure client fee is underscored
1 parent ba42093 commit df0b358

17 files changed

+205
-204
lines changed

packages/ast/__tests__/client/__snapshots__/ts-client.account-nfts.test.ts.snap

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ exports[`execute classes array types 1`] = `
2525
this.allTokens = this.allTokens.bind(this);
2626
this.minter = this.minter.bind(this);
2727
}
28-
proposedNewOwner = async (fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
28+
proposedNewOwner = async (fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
2929
return await this.client.execute(this.sender, this.contractAddress, {
3030
proposed_new_owner: {}
3131
}, fee_, memo_, funds_);
@@ -36,7 +36,7 @@ exports[`execute classes array types 1`] = `
3636
}: {
3737
limit?: number;
3838
startAfter?: VaultBase_for_String;
39-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
39+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
4040
return await this.client.execute(this.sender, this.contractAddress, {
4141
allowed_vaults: {
4242
limit,
@@ -50,15 +50,15 @@ exports[`execute classes array types 1`] = `
5050
}: {
5151
limit?: number;
5252
startAfter?: string[][];
53-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
53+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
5454
return await this.client.execute(this.sender, this.contractAddress, {
5555
all_debt_shares: {
5656
limit,
5757
start_after: startAfter
5858
}
5959
}, fee_, memo_, funds_);
6060
};
61-
allPreviousOwners = async (fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
61+
allPreviousOwners = async (fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
6262
return await this.client.execute(this.sender, this.contractAddress, {
6363
all_previous_owners: {}
6464
}, fee_, memo_, funds_);
@@ -69,7 +69,7 @@ exports[`execute classes array types 1`] = `
6969
}: {
7070
includeExpired?: boolean;
7171
tokenId: string;
72-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
72+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
7373
return await this.client.execute(this.sender, this.contractAddress, {
7474
owner_of: {
7575
include_expired: includeExpired,
@@ -85,7 +85,7 @@ exports[`execute classes array types 1`] = `
8585
includeExpired?: boolean;
8686
spender: string;
8787
tokenId: string;
88-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
88+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
8989
return await this.client.execute(this.sender, this.contractAddress, {
9090
approval: {
9191
include_expired: includeExpired,
@@ -100,7 +100,7 @@ exports[`execute classes array types 1`] = `
100100
}: {
101101
includeExpired?: boolean;
102102
tokenId: string;
103-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
103+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
104104
return await this.client.execute(this.sender, this.contractAddress, {
105105
approvals: {
106106
include_expired: includeExpired,
@@ -118,7 +118,7 @@ exports[`execute classes array types 1`] = `
118118
limit?: number;
119119
owner: string;
120120
startAfter?: string;
121-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
121+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
122122
return await this.client.execute(this.sender, this.contractAddress, {
123123
all_operators: {
124124
include_expired: includeExpired,
@@ -128,12 +128,12 @@ exports[`execute classes array types 1`] = `
128128
}
129129
}, fee_, memo_, funds_);
130130
};
131-
numTokens = async (fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
131+
numTokens = async (fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
132132
return await this.client.execute(this.sender, this.contractAddress, {
133133
num_tokens: {}
134134
}, fee_, memo_, funds_);
135135
};
136-
contractInfo = async (fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
136+
contractInfo = async (fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
137137
return await this.client.execute(this.sender, this.contractAddress, {
138138
contract_info: {}
139139
}, fee_, memo_, funds_);
@@ -142,7 +142,7 @@ exports[`execute classes array types 1`] = `
142142
tokenId
143143
}: {
144144
tokenId: string;
145-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
145+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
146146
return await this.client.execute(this.sender, this.contractAddress, {
147147
nft_info: {
148148
token_id: tokenId
@@ -155,7 +155,7 @@ exports[`execute classes array types 1`] = `
155155
}: {
156156
includeExpired?: boolean;
157157
tokenId: string;
158-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
158+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
159159
return await this.client.execute(this.sender, this.contractAddress, {
160160
all_nft_info: {
161161
include_expired: includeExpired,
@@ -171,7 +171,7 @@ exports[`execute classes array types 1`] = `
171171
limit?: number;
172172
owner: string;
173173
startAfter?: string;
174-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
174+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
175175
return await this.client.execute(this.sender, this.contractAddress, {
176176
tokens: {
177177
limit,
@@ -186,15 +186,15 @@ exports[`execute classes array types 1`] = `
186186
}: {
187187
limit?: number;
188188
startAfter?: string;
189-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
189+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
190190
return await this.client.execute(this.sender, this.contractAddress, {
191191
all_tokens: {
192192
limit,
193193
start_after: startAfter
194194
}
195195
}, fee_, memo_, funds_);
196196
};
197-
minter = async (fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
197+
minter = async (fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
198198
return await this.client.execute(this.sender, this.contractAddress, {
199199
minter: {}
200200
}, fee_, memo_, funds_);

packages/ast/__tests__/client/__snapshots__/ts-client.arrays-item-tuples.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ exports[`execute classes array types 1`] = `
2323
edges: number[][];
2424
nested: number[][][];
2525
supernested: string[][][][][][];
26-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
26+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
2727
return await this.client.execute(this.sender, this.contractAddress, {
2828
update_edges: {
2929
edges3,

packages/ast/__tests__/client/__snapshots__/ts-client.arrays-ref.test.ts.snap

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ exports[`execute classes array types 1`] = `
3030
}: {
3131
amount: number;
3232
creditor: Addr;
33-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
33+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
3434
return await this.client.execute(this.sender, this.contractAddress, {
3535
create_edge: {
3636
amount,
@@ -46,7 +46,7 @@ exports[`execute classes array types 1`] = `
4646
amount: number;
4747
creditor: Addr;
4848
edgeId: number;
49-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
49+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
5050
return await this.client.execute(this.sender, this.contractAddress, {
5151
edit_edge: {
5252
amount,
@@ -59,7 +59,7 @@ exports[`execute classes array types 1`] = `
5959
edgeId
6060
}: {
6161
edgeId: number;
62-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
62+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
6363
return await this.client.execute(this.sender, this.contractAddress, {
6464
remove_edge: {
6565
edge_id: edgeId
@@ -70,7 +70,7 @@ exports[`execute classes array types 1`] = `
7070
graph
7171
}: {
7272
graph: Edge[];
73-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
73+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
7474
return await this.client.execute(this.sender, this.contractAddress, {
7575
create_graph: {
7676
graph
@@ -83,7 +83,7 @@ exports[`execute classes array types 1`] = `
8383
}: {
8484
graph: Addr[][];
8585
graphId: number;
86-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
86+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
8787
return await this.client.execute(this.sender, this.contractAddress, {
8888
create_graph_simplified: {
8989
graph,
@@ -97,7 +97,7 @@ exports[`execute classes array types 1`] = `
9797
}: {
9898
graph: Addr[][];
9999
graphId: number;
100-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
100+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
101101
return await this.client.execute(this.sender, this.contractAddress, {
102102
edit_graph_simplified: {
103103
graph,
@@ -109,7 +109,7 @@ exports[`execute classes array types 1`] = `
109109
graphId
110110
}: {
111111
graphId: number;
112-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
112+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
113113
return await this.client.execute(this.sender, this.contractAddress, {
114114
remove_graph: {
115115
graph_id: graphId
@@ -120,14 +120,14 @@ exports[`execute classes array types 1`] = `
120120
edges
121121
}: {
122122
edges: number[][];
123-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
123+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
124124
return await this.client.execute(this.sender, this.contractAddress, {
125125
update_edges: {
126126
edges
127127
}
128128
}, fee_, memo_, funds_);
129129
};
130-
findSavings = async (fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
130+
findSavings = async (fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
131131
return await this.client.execute(this.sender, this.contractAddress, {
132132
find_savings: {}
133133
}, fee_, memo_, funds_);
@@ -136,14 +136,14 @@ exports[`execute classes array types 1`] = `
136136
graphId
137137
}: {
138138
graphId: number;
139-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
139+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
140140
return await this.client.execute(this.sender, this.contractAddress, {
141141
find_savings_in_a_graph: {
142142
graph_id: graphId
143143
}
144144
}, fee_, memo_, funds_);
145145
};
146-
reset = async (fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
146+
reset = async (fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
147147
return await this.client.execute(this.sender, this.contractAddress, {
148148
reset: {}
149149
}, fee_, memo_, funds_);
@@ -152,7 +152,7 @@ exports[`execute classes array types 1`] = `
152152
filepath
153153
}: {
154154
filepath: string;
155-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
155+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
156156
return await this.client.execute(this.sender, this.contractAddress, {
157157
save_network_to_file: {
158158
filepath
@@ -163,7 +163,7 @@ exports[`execute classes array types 1`] = `
163163
filepath
164164
}: {
165165
filepath: string;
166-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
166+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
167167
return await this.client.execute(this.sender, this.contractAddress, {
168168
create_graph_from_file: {
169169
filepath
@@ -174,7 +174,7 @@ exports[`execute classes array types 1`] = `
174174
filepath
175175
}: {
176176
filepath: string;
177-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
177+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
178178
return await this.client.execute(this.sender, this.contractAddress, {
179179
apply_set_off_from_file: {
180180
filepath

packages/ast/__tests__/client/__snapshots__/ts-client.arrays.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ exports[`execute classes array types 1`] = `
2323
edges: number[][];
2424
nested: number[][][];
2525
supernested: string[][][][][][];
26-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
26+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
2727
return await this.client.execute(this.sender, this.contractAddress, {
2828
update_edges: {
2929
edges3,

packages/ast/__tests__/client/__snapshots__/ts-client.cw-named-groups.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exports[`execute classes array types 1`] = `
2121
addressesToAdd?: string[];
2222
addressesToRemove?: string[];
2323
group: string;
24-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
24+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
2525
return await this.client.execute(this.sender, this.contractAddress, {
2626
update: {
2727
addresses_to_add: addressesToAdd,
@@ -34,7 +34,7 @@ exports[`execute classes array types 1`] = `
3434
group
3535
}: {
3636
group: string;
37-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
37+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
3838
return await this.client.execute(this.sender, this.contractAddress, {
3939
remove_group: {
4040
group
@@ -45,7 +45,7 @@ exports[`execute classes array types 1`] = `
4545
owner
4646
}: {
4747
owner: string;
48-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
48+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
4949
return await this.client.execute(this.sender, this.contractAddress, {
5050
update_owner: {
5151
owner

packages/ast/__tests__/client/__snapshots__/ts-client.cw-proposal-single.test.ts.snap

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ exports[`execute classes array types 1`] = `
2727
description: string;
2828
msgs: CosmosMsg_for_Empty[];
2929
title: string;
30-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
30+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
3131
return await this.client.execute(this.sender, this.contractAddress, {
3232
propose: {
3333
description,
@@ -42,7 +42,7 @@ exports[`execute classes array types 1`] = `
4242
}: {
4343
proposalId: number;
4444
vote: Vote;
45-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
45+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
4646
return await this.client.execute(this.sender, this.contractAddress, {
4747
vote: {
4848
proposal_id: proposalId,
@@ -54,7 +54,7 @@ exports[`execute classes array types 1`] = `
5454
proposalId
5555
}: {
5656
proposalId: number;
57-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
57+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
5858
return await this.client.execute(this.sender, this.contractAddress, {
5959
execute: {
6060
proposal_id: proposalId
@@ -65,7 +65,7 @@ exports[`execute classes array types 1`] = `
6565
proposalId
6666
}: {
6767
proposalId: number;
68-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
68+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
6969
return await this.client.execute(this.sender, this.contractAddress, {
7070
close: {
7171
proposal_id: proposalId
@@ -88,7 +88,7 @@ exports[`execute classes array types 1`] = `
8888
minVotingPeriod?: Duration;
8989
onlyMembersExecute: boolean;
9090
threshold: Threshold;
91-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
91+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
9292
return await this.client.execute(this.sender, this.contractAddress, {
9393
update_config: {
9494
allow_revoting: allowRevoting,
@@ -105,7 +105,7 @@ exports[`execute classes array types 1`] = `
105105
address
106106
}: {
107107
address: string;
108-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
108+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
109109
return await this.client.execute(this.sender, this.contractAddress, {
110110
add_proposal_hook: {
111111
address
@@ -116,7 +116,7 @@ exports[`execute classes array types 1`] = `
116116
address
117117
}: {
118118
address: string;
119-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
119+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
120120
return await this.client.execute(this.sender, this.contractAddress, {
121121
remove_proposal_hook: {
122122
address
@@ -127,7 +127,7 @@ exports[`execute classes array types 1`] = `
127127
address
128128
}: {
129129
address: string;
130-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
130+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
131131
return await this.client.execute(this.sender, this.contractAddress, {
132132
add_vote_hook: {
133133
address
@@ -138,7 +138,7 @@ exports[`execute classes array types 1`] = `
138138
address
139139
}: {
140140
address: string;
141-
}, fee: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
141+
}, fee_: number | StdFee | "auto" = "auto", memo?: string, funds_?: Coin[]): Promise<ExecuteResult> => {
142142
return await this.client.execute(this.sender, this.contractAddress, {
143143
remove_vote_hook: {
144144
address

0 commit comments

Comments
 (0)