wasm-ast-types 0.20.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- package/main/client/client.js +4 -6
- package/main/client/test/ts-client.issue-103.test.js +48 -0
- package/main/message-composer/message-composer.js +3 -5
- package/main/react-query/react-query.js +4 -11
- package/main/utils/babel.js +1 -0
- package/main/utils/constants.js +25 -0
- package/main/utils/index.js +22 -1
- package/module/client/client.js +3 -4
- package/module/client/test/ts-client.issue-103.test.js +41 -0
- package/module/message-composer/message-composer.js +4 -5
- package/module/react-query/react-query.js +5 -6
- package/module/utils/babel.js +1 -0
- package/module/utils/constants.js +6 -0
- package/module/utils/index.js +3 -1
- package/package.json +2 -2
- package/src/client/client.ts +235 -323
- package/src/client/test/__snapshots__/ts-client.account-nfts.spec.ts.snap +45 -45
- package/src/client/test/__snapshots__/ts-client.arrays-ref.spec.ts.snap +42 -42
- package/src/client/test/__snapshots__/ts-client.arrays.spec.ts.snap +3 -3
- package/src/client/test/__snapshots__/ts-client.cw-named-groups.test.ts.snap +9 -9
- package/src/client/test/__snapshots__/ts-client.cw-proposal-single.test.ts.snap +27 -27
- package/src/client/test/__snapshots__/ts-client.issue-101.spec.ts.snap +6 -6
- package/src/client/test/__snapshots__/ts-client.issue-103.test.ts.snap +79 -0
- package/src/client/test/__snapshots__/ts-client.issue-71.test.ts.snap +30 -30
- package/src/client/test/__snapshots__/ts-client.issue-98.test.ts.snap +9 -9
- package/src/client/test/__snapshots__/ts-client.issues.test.ts.snap +78 -78
- package/src/client/test/__snapshots__/ts-client.overrides.spec.ts.snap +80 -80
- package/src/client/test/__snapshots__/ts-client.sg721.spec.ts.snap +24 -24
- package/src/client/test/__snapshots__/ts-client.spec.ts.snap +46 -46
- package/src/client/test/__snapshots__/ts-client.vectis.spec.ts.snap +24 -24
- package/src/client/test/__snapshots__/ts-client.wager.spec.ts.snap +8 -8
- package/src/client/test/ts-client.issue-103.test.ts +106 -0
- package/src/context/context.ts +2 -0
- package/src/message-composer/__snapshots__/message-composer.spec.ts.snap +30 -30
- package/src/message-composer/message-composer.ts +216 -267
- package/src/react-query/react-query.ts +28 -25
- package/src/utils/babel.ts +4 -3
- package/src/utils/constants.ts +30 -0
- package/src/utils/index.ts +2 -0
- package/types/context/context.d.ts +2 -0
@@ -29,14 +29,14 @@ exports[`execute classes array types 1`] = `
|
|
29
29
|
description: string;
|
30
30
|
msgs: CosmosMsg_for_Empty[];
|
31
31
|
title: string;
|
32
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
32
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
33
33
|
return await this.client.execute(this.sender, this.contractAddress, {
|
34
34
|
propose: {
|
35
35
|
description,
|
36
36
|
msgs,
|
37
37
|
title
|
38
38
|
}
|
39
|
-
}, fee, memo,
|
39
|
+
}, fee, memo, _funds);
|
40
40
|
};
|
41
41
|
vote = async ({
|
42
42
|
proposalId,
|
@@ -44,35 +44,35 @@ exports[`execute classes array types 1`] = `
|
|
44
44
|
}: {
|
45
45
|
proposalId: number;
|
46
46
|
vote: Vote;
|
47
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
47
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
48
48
|
return await this.client.execute(this.sender, this.contractAddress, {
|
49
49
|
vote: {
|
50
50
|
proposal_id: proposalId,
|
51
51
|
vote
|
52
52
|
}
|
53
|
-
}, fee, memo,
|
53
|
+
}, fee, memo, _funds);
|
54
54
|
};
|
55
55
|
execute = async ({
|
56
56
|
proposalId
|
57
57
|
}: {
|
58
58
|
proposalId: number;
|
59
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
59
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
60
60
|
return await this.client.execute(this.sender, this.contractAddress, {
|
61
61
|
execute: {
|
62
62
|
proposal_id: proposalId
|
63
63
|
}
|
64
|
-
}, fee, memo,
|
64
|
+
}, fee, memo, _funds);
|
65
65
|
};
|
66
66
|
close = async ({
|
67
67
|
proposalId
|
68
68
|
}: {
|
69
69
|
proposalId: number;
|
70
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
70
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
71
71
|
return await this.client.execute(this.sender, this.contractAddress, {
|
72
72
|
close: {
|
73
73
|
proposal_id: proposalId
|
74
74
|
}
|
75
|
-
}, fee, memo,
|
75
|
+
}, fee, memo, _funds);
|
76
76
|
};
|
77
77
|
updateConfig = async ({
|
78
78
|
allowRevoting,
|
@@ -90,7 +90,7 @@ exports[`execute classes array types 1`] = `
|
|
90
90
|
minVotingPeriod?: Duration;
|
91
91
|
onlyMembersExecute: boolean;
|
92
92
|
threshold: Threshold;
|
93
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
93
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
94
94
|
return await this.client.execute(this.sender, this.contractAddress, {
|
95
95
|
update_config: {
|
96
96
|
allow_revoting: allowRevoting,
|
@@ -101,51 +101,51 @@ exports[`execute classes array types 1`] = `
|
|
101
101
|
only_members_execute: onlyMembersExecute,
|
102
102
|
threshold
|
103
103
|
}
|
104
|
-
}, fee, memo,
|
104
|
+
}, fee, memo, _funds);
|
105
105
|
};
|
106
106
|
addProposalHook = async ({
|
107
107
|
address
|
108
108
|
}: {
|
109
109
|
address: string;
|
110
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
110
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
111
111
|
return await this.client.execute(this.sender, this.contractAddress, {
|
112
112
|
add_proposal_hook: {
|
113
113
|
address
|
114
114
|
}
|
115
|
-
}, fee, memo,
|
115
|
+
}, fee, memo, _funds);
|
116
116
|
};
|
117
117
|
removeProposalHook = async ({
|
118
118
|
address
|
119
119
|
}: {
|
120
120
|
address: string;
|
121
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
121
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
122
122
|
return await this.client.execute(this.sender, this.contractAddress, {
|
123
123
|
remove_proposal_hook: {
|
124
124
|
address
|
125
125
|
}
|
126
|
-
}, fee, memo,
|
126
|
+
}, fee, memo, _funds);
|
127
127
|
};
|
128
128
|
addVoteHook = async ({
|
129
129
|
address
|
130
130
|
}: {
|
131
131
|
address: string;
|
132
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
132
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
133
133
|
return await this.client.execute(this.sender, this.contractAddress, {
|
134
134
|
add_vote_hook: {
|
135
135
|
address
|
136
136
|
}
|
137
|
-
}, fee, memo,
|
137
|
+
}, fee, memo, _funds);
|
138
138
|
};
|
139
139
|
removeVoteHook = async ({
|
140
140
|
address
|
141
141
|
}: {
|
142
142
|
address: string;
|
143
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
143
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
144
144
|
return await this.client.execute(this.sender, this.contractAddress, {
|
145
145
|
remove_vote_hook: {
|
146
146
|
address
|
147
147
|
}
|
148
|
-
}, fee, memo,
|
148
|
+
}, fee, memo, _funds);
|
149
149
|
};
|
150
150
|
}"
|
151
151
|
`;
|
@@ -162,24 +162,24 @@ exports[`execute interfaces no extends 1`] = `
|
|
162
162
|
description: string;
|
163
163
|
msgs: CosmosMsg_for_Empty[];
|
164
164
|
title: string;
|
165
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
165
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
166
166
|
vote: ({
|
167
167
|
proposalId,
|
168
168
|
vote
|
169
169
|
}: {
|
170
170
|
proposalId: number;
|
171
171
|
vote: Vote;
|
172
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
172
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
173
173
|
execute: ({
|
174
174
|
proposalId
|
175
175
|
}: {
|
176
176
|
proposalId: number;
|
177
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
177
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
178
178
|
close: ({
|
179
179
|
proposalId
|
180
180
|
}: {
|
181
181
|
proposalId: number;
|
182
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
182
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
183
183
|
updateConfig: ({
|
184
184
|
allowRevoting,
|
185
185
|
dao,
|
@@ -196,27 +196,27 @@ exports[`execute interfaces no extends 1`] = `
|
|
196
196
|
minVotingPeriod?: Duration;
|
197
197
|
onlyMembersExecute: boolean;
|
198
198
|
threshold: Threshold;
|
199
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
199
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
200
200
|
addProposalHook: ({
|
201
201
|
address
|
202
202
|
}: {
|
203
203
|
address: string;
|
204
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
204
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
205
205
|
removeProposalHook: ({
|
206
206
|
address
|
207
207
|
}: {
|
208
208
|
address: string;
|
209
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
209
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
210
210
|
addVoteHook: ({
|
211
211
|
address
|
212
212
|
}: {
|
213
213
|
address: string;
|
214
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
214
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
215
215
|
removeVoteHook: ({
|
216
216
|
address
|
217
217
|
}: {
|
218
218
|
address: string;
|
219
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
219
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
220
220
|
}"
|
221
221
|
`;
|
222
222
|
|
@@ -8,8 +8,8 @@ exports[`execute interfaces no extends 1`] = `
|
|
8
8
|
newFactory
|
9
9
|
}: {
|
10
10
|
newFactory: string;
|
11
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
12
|
-
updateOwnership: (action: Action, fee?: number | StdFee | \\"auto\\", memo?: string,
|
11
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
12
|
+
updateOwnership: (action: Action, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
13
13
|
}"
|
14
14
|
`;
|
15
15
|
|
@@ -31,17 +31,17 @@ exports[`ownership client with tuple 1`] = `
|
|
31
31
|
newFactory
|
32
32
|
}: {
|
33
33
|
newFactory: string;
|
34
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
34
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
35
35
|
return await this.client.execute(this.sender, this.contractAddress, {
|
36
36
|
set_factory: {
|
37
37
|
new_factory: newFactory
|
38
38
|
}
|
39
|
-
}, fee, memo,
|
39
|
+
}, fee, memo, _funds);
|
40
40
|
};
|
41
|
-
updateOwnership = async (action: Action, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
41
|
+
updateOwnership = async (action: Action, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
42
42
|
return await this.client.execute(this.sender, this.contractAddress, {
|
43
43
|
update_ownership: action
|
44
|
-
}, fee, memo,
|
44
|
+
}, fee, memo, _funds);
|
45
45
|
};
|
46
46
|
}"
|
47
47
|
`;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`execute execute classes array types 1`] = `
|
4
|
+
"export class Client implements Instance {
|
5
|
+
client: SigningCosmWasmClient;
|
6
|
+
sender: string;
|
7
|
+
contractAddress: string;
|
8
|
+
|
9
|
+
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
|
10
|
+
this.client = client;
|
11
|
+
this.sender = sender;
|
12
|
+
this.contractAddress = contractAddress;
|
13
|
+
}
|
14
|
+
|
15
|
+
}"
|
16
|
+
`;
|
17
|
+
|
18
|
+
exports[`execute execute interfaces no extends 1`] = `
|
19
|
+
"export interface SG721Instance {
|
20
|
+
contractAddress: string;
|
21
|
+
sender: string;
|
22
|
+
}"
|
23
|
+
`;
|
24
|
+
|
25
|
+
exports[`execute execute_msg_for__empty 1`] = `"export type ExecuteMsg = ExecuteMsg;"`;
|
26
|
+
|
27
|
+
exports[`execute query classes 1`] = `
|
28
|
+
"export class QueryClient implements ReadOnlyInstance {
|
29
|
+
client: CosmWasmClient;
|
30
|
+
contractAddress: string;
|
31
|
+
|
32
|
+
constructor(client: CosmWasmClient, contractAddress: string) {
|
33
|
+
this.client = client;
|
34
|
+
this.contractAddress = contractAddress;
|
35
|
+
}
|
36
|
+
|
37
|
+
}"
|
38
|
+
`;
|
39
|
+
|
40
|
+
exports[`execute query classes response 1`] = `"export type QueryMsg = QueryMsg;"`;
|
41
|
+
|
42
|
+
exports[`query execute classes array types 1`] = `
|
43
|
+
"export class Client implements Instance {
|
44
|
+
client: SigningCosmWasmClient;
|
45
|
+
sender: string;
|
46
|
+
contractAddress: string;
|
47
|
+
|
48
|
+
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
|
49
|
+
this.client = client;
|
50
|
+
this.sender = sender;
|
51
|
+
this.contractAddress = contractAddress;
|
52
|
+
}
|
53
|
+
|
54
|
+
}"
|
55
|
+
`;
|
56
|
+
|
57
|
+
exports[`query execute interfaces no extends 1`] = `
|
58
|
+
"export interface SG721Instance {
|
59
|
+
contractAddress: string;
|
60
|
+
sender: string;
|
61
|
+
}"
|
62
|
+
`;
|
63
|
+
|
64
|
+
exports[`query execute_msg_for__empty 1`] = `"export type QueryMsg = QueryMsg;"`;
|
65
|
+
|
66
|
+
exports[`query query classes 1`] = `
|
67
|
+
"export class QueryClient implements ReadOnlyInstance {
|
68
|
+
client: CosmWasmClient;
|
69
|
+
contractAddress: string;
|
70
|
+
|
71
|
+
constructor(client: CosmWasmClient, contractAddress: string) {
|
72
|
+
this.client = client;
|
73
|
+
this.contractAddress = contractAddress;
|
74
|
+
}
|
75
|
+
|
76
|
+
}"
|
77
|
+
`;
|
78
|
+
|
79
|
+
exports[`query query classes response 1`] = `"export type QueryMsg = QueryMsg;"`;
|
@@ -30,14 +30,14 @@ exports[`execute class /issues/71/execute_msg.json 1`] = `
|
|
30
30
|
amount: Uint128;
|
31
31
|
msg: Binary;
|
32
32
|
sender: string;
|
33
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
33
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
34
34
|
return await this.client.execute(this.sender, this.contractAddress, {
|
35
35
|
receive: {
|
36
36
|
amount,
|
37
37
|
msg,
|
38
38
|
sender
|
39
39
|
}
|
40
|
-
}, fee, memo,
|
40
|
+
}, fee, memo, _funds);
|
41
41
|
};
|
42
42
|
updateConfig = async ({
|
43
43
|
feeCollector,
|
@@ -47,14 +47,14 @@ exports[`execute class /issues/71/execute_msg.json 1`] = `
|
|
47
47
|
feeCollector?: string;
|
48
48
|
generatorAddress?: string;
|
49
49
|
lpTokenCodeId?: number;
|
50
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
50
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
51
51
|
return await this.client.execute(this.sender, this.contractAddress, {
|
52
52
|
update_config: {
|
53
53
|
fee_collector: feeCollector,
|
54
54
|
generator_address: generatorAddress,
|
55
55
|
lp_token_code_id: lpTokenCodeId
|
56
56
|
}
|
57
|
-
}, fee, memo,
|
57
|
+
}, fee, memo, _funds);
|
58
58
|
};
|
59
59
|
updatePoolConfig = async ({
|
60
60
|
isDisabled,
|
@@ -64,25 +64,25 @@ exports[`execute class /issues/71/execute_msg.json 1`] = `
|
|
64
64
|
isDisabled?: boolean;
|
65
65
|
newFeeInfo?: FeeInfo;
|
66
66
|
poolType: PoolType;
|
67
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
67
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
68
68
|
return await this.client.execute(this.sender, this.contractAddress, {
|
69
69
|
update_pool_config: {
|
70
70
|
is_disabled: isDisabled,
|
71
71
|
new_fee_info: newFeeInfo,
|
72
72
|
pool_type: poolType
|
73
73
|
}
|
74
|
-
}, fee, memo,
|
74
|
+
}, fee, memo, _funds);
|
75
75
|
};
|
76
76
|
addToRegistery = async ({
|
77
77
|
newPoolConfig
|
78
78
|
}: {
|
79
79
|
newPoolConfig: PoolConfig;
|
80
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
80
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
81
81
|
return await this.client.execute(this.sender, this.contractAddress, {
|
82
82
|
add_to_registery: {
|
83
83
|
new_pool_config: newPoolConfig
|
84
84
|
}
|
85
|
-
}, fee, memo,
|
85
|
+
}, fee, memo, _funds);
|
86
86
|
};
|
87
87
|
createPoolInstance = async ({
|
88
88
|
assetInfos,
|
@@ -96,7 +96,7 @@ exports[`execute class /issues/71/execute_msg.json 1`] = `
|
|
96
96
|
lpTokenName?: string;
|
97
97
|
lpTokenSymbol?: string;
|
98
98
|
poolType: PoolType;
|
99
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
99
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
100
100
|
return await this.client.execute(this.sender, this.contractAddress, {
|
101
101
|
create_pool_instance: {
|
102
102
|
asset_infos: assetInfos,
|
@@ -105,7 +105,7 @@ exports[`execute class /issues/71/execute_msg.json 1`] = `
|
|
105
105
|
lp_token_symbol: lpTokenSymbol,
|
106
106
|
pool_type: poolType
|
107
107
|
}
|
108
|
-
}, fee, memo,
|
108
|
+
}, fee, memo, _funds);
|
109
109
|
};
|
110
110
|
joinPool = async ({
|
111
111
|
assets,
|
@@ -121,7 +121,7 @@ exports[`execute class /issues/71/execute_msg.json 1`] = `
|
|
121
121
|
poolId: Uint128;
|
122
122
|
recipient?: string;
|
123
123
|
slippageTolerance?: Decimal;
|
124
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
124
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
125
125
|
return await this.client.execute(this.sender, this.contractAddress, {
|
126
126
|
join_pool: {
|
127
127
|
assets,
|
@@ -131,7 +131,7 @@ exports[`execute class /issues/71/execute_msg.json 1`] = `
|
|
131
131
|
recipient,
|
132
132
|
slippage_tolerance: slippageTolerance
|
133
133
|
}
|
134
|
-
}, fee, memo,
|
134
|
+
}, fee, memo, _funds);
|
135
135
|
};
|
136
136
|
swap = async ({
|
137
137
|
recipient,
|
@@ -139,13 +139,13 @@ exports[`execute class /issues/71/execute_msg.json 1`] = `
|
|
139
139
|
}: {
|
140
140
|
recipient?: string;
|
141
141
|
swapRequest: SingleSwapRequest;
|
142
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
142
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
143
143
|
return await this.client.execute(this.sender, this.contractAddress, {
|
144
144
|
swap: {
|
145
145
|
recipient,
|
146
146
|
swap_request: swapRequest
|
147
147
|
}
|
148
|
-
}, fee, memo,
|
148
|
+
}, fee, memo, _funds);
|
149
149
|
};
|
150
150
|
proposeNewOwner = async ({
|
151
151
|
expiresIn,
|
@@ -153,23 +153,23 @@ exports[`execute class /issues/71/execute_msg.json 1`] = `
|
|
153
153
|
}: {
|
154
154
|
expiresIn: number;
|
155
155
|
owner: string;
|
156
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
156
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
157
157
|
return await this.client.execute(this.sender, this.contractAddress, {
|
158
158
|
propose_new_owner: {
|
159
159
|
expires_in: expiresIn,
|
160
160
|
owner
|
161
161
|
}
|
162
|
-
}, fee, memo,
|
162
|
+
}, fee, memo, _funds);
|
163
163
|
};
|
164
|
-
dropOwnershipProposal = async (fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
164
|
+
dropOwnershipProposal = async (fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
165
165
|
return await this.client.execute(this.sender, this.contractAddress, {
|
166
166
|
drop_ownership_proposal: {}
|
167
|
-
}, fee, memo,
|
167
|
+
}, fee, memo, _funds);
|
168
168
|
};
|
169
|
-
claimOwnership = async (fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
169
|
+
claimOwnership = async (fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
170
170
|
return await this.client.execute(this.sender, this.contractAddress, {
|
171
171
|
claim_ownership: {}
|
172
|
-
}, fee, memo,
|
172
|
+
}, fee, memo, _funds);
|
173
173
|
};
|
174
174
|
}"
|
175
175
|
`;
|
@@ -186,7 +186,7 @@ exports[`execute interface /issues/71/execute_msg.json 1`] = `
|
|
186
186
|
amount: Uint128;
|
187
187
|
msg: Binary;
|
188
188
|
sender: string;
|
189
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
189
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
190
190
|
updateConfig: ({
|
191
191
|
feeCollector,
|
192
192
|
generatorAddress,
|
@@ -195,7 +195,7 @@ exports[`execute interface /issues/71/execute_msg.json 1`] = `
|
|
195
195
|
feeCollector?: string;
|
196
196
|
generatorAddress?: string;
|
197
197
|
lpTokenCodeId?: number;
|
198
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
198
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
199
199
|
updatePoolConfig: ({
|
200
200
|
isDisabled,
|
201
201
|
newFeeInfo,
|
@@ -204,12 +204,12 @@ exports[`execute interface /issues/71/execute_msg.json 1`] = `
|
|
204
204
|
isDisabled?: boolean;
|
205
205
|
newFeeInfo?: FeeInfo;
|
206
206
|
poolType: PoolType;
|
207
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
207
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
208
208
|
addToRegistery: ({
|
209
209
|
newPoolConfig
|
210
210
|
}: {
|
211
211
|
newPoolConfig: PoolConfig;
|
212
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
212
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
213
213
|
createPoolInstance: ({
|
214
214
|
assetInfos,
|
215
215
|
initParams,
|
@@ -222,7 +222,7 @@ exports[`execute interface /issues/71/execute_msg.json 1`] = `
|
|
222
222
|
lpTokenName?: string;
|
223
223
|
lpTokenSymbol?: string;
|
224
224
|
poolType: PoolType;
|
225
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
225
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
226
226
|
joinPool: ({
|
227
227
|
assets,
|
228
228
|
autoStake,
|
@@ -237,23 +237,23 @@ exports[`execute interface /issues/71/execute_msg.json 1`] = `
|
|
237
237
|
poolId: Uint128;
|
238
238
|
recipient?: string;
|
239
239
|
slippageTolerance?: Decimal;
|
240
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
240
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
241
241
|
swap: ({
|
242
242
|
recipient,
|
243
243
|
swapRequest
|
244
244
|
}: {
|
245
245
|
recipient?: string;
|
246
246
|
swapRequest: SingleSwapRequest;
|
247
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
247
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
248
248
|
proposeNewOwner: ({
|
249
249
|
expiresIn,
|
250
250
|
owner
|
251
251
|
}: {
|
252
252
|
expiresIn: number;
|
253
253
|
owner: string;
|
254
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
255
|
-
dropOwnershipProposal: (fee?: number | StdFee | \\"auto\\", memo?: string,
|
256
|
-
claimOwnership: (fee?: number | StdFee | \\"auto\\", memo?: string,
|
254
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
255
|
+
dropOwnershipProposal: (fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
256
|
+
claimOwnership: (fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
257
257
|
}"
|
258
258
|
`;
|
259
259
|
|
@@ -15,10 +15,10 @@ exports[`execute classes array types 1`] = `
|
|
15
15
|
this.getPluginById = this.getPluginById.bind(this);
|
16
16
|
}
|
17
17
|
|
18
|
-
getConfig = async (fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
18
|
+
getConfig = async (fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
19
19
|
return await this.client.execute(this.sender, this.contractAddress, {
|
20
20
|
get_config: {}
|
21
|
-
}, fee, memo,
|
21
|
+
}, fee, memo, _funds);
|
22
22
|
};
|
23
23
|
getPlugins = async ({
|
24
24
|
limit,
|
@@ -26,24 +26,24 @@ exports[`execute classes array types 1`] = `
|
|
26
26
|
}: {
|
27
27
|
limit?: number;
|
28
28
|
startAfter?: number;
|
29
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
29
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
30
30
|
return await this.client.execute(this.sender, this.contractAddress, {
|
31
31
|
get_plugins: {
|
32
32
|
limit,
|
33
33
|
start_after: startAfter
|
34
34
|
}
|
35
|
-
}, fee, memo,
|
35
|
+
}, fee, memo, _funds);
|
36
36
|
};
|
37
37
|
getPluginById = async ({
|
38
38
|
id
|
39
39
|
}: {
|
40
40
|
id: number;
|
41
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
41
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
42
42
|
return await this.client.execute(this.sender, this.contractAddress, {
|
43
43
|
get_plugin_by_id: {
|
44
44
|
id
|
45
45
|
}
|
46
|
-
}, fee, memo,
|
46
|
+
}, fee, memo, _funds);
|
47
47
|
};
|
48
48
|
}"
|
49
49
|
`;
|
@@ -52,19 +52,19 @@ exports[`execute interfaces no extends 1`] = `
|
|
52
52
|
"export interface SG721Instance {
|
53
53
|
contractAddress: string;
|
54
54
|
sender: string;
|
55
|
-
getConfig: (fee?: number | StdFee | \\"auto\\", memo?: string,
|
55
|
+
getConfig: (fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
56
56
|
getPlugins: ({
|
57
57
|
limit,
|
58
58
|
startAfter
|
59
59
|
}: {
|
60
60
|
limit?: number;
|
61
61
|
startAfter?: number;
|
62
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
62
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
63
63
|
getPluginById: ({
|
64
64
|
id
|
65
65
|
}: {
|
66
66
|
id: number;
|
67
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
67
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
68
68
|
}"
|
69
69
|
`;
|
70
70
|
|