wasm-ast-types 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -32,61 +32,61 @@ exports[`execute classes array types 1`] = `
|
|
32
32
|
msgs
|
33
33
|
}: {
|
34
34
|
msgs: CosmosMsg_for_Empty[];
|
35
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
35
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
36
36
|
return await this.client.execute(this.sender, this.contractAddress, {
|
37
37
|
execute: {
|
38
38
|
msgs
|
39
39
|
}
|
40
|
-
}, fee, memo,
|
40
|
+
}, fee, memo, _funds);
|
41
41
|
};
|
42
|
-
revertFreezeStatus = async (fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
42
|
+
revertFreezeStatus = async (fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
43
43
|
return await this.client.execute(this.sender, this.contractAddress, {
|
44
44
|
revert_freeze_status: {}
|
45
|
-
}, fee, memo,
|
45
|
+
}, fee, memo, _funds);
|
46
46
|
};
|
47
47
|
relay = async ({
|
48
48
|
transaction
|
49
49
|
}: {
|
50
50
|
transaction: RelayTransaction;
|
51
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
51
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
52
52
|
return await this.client.execute(this.sender, this.contractAddress, {
|
53
53
|
relay: {
|
54
54
|
transaction
|
55
55
|
}
|
56
|
-
}, fee, memo,
|
56
|
+
}, fee, memo, _funds);
|
57
57
|
};
|
58
58
|
rotateUserKey = async ({
|
59
59
|
newUserAddress
|
60
60
|
}: {
|
61
61
|
newUserAddress: string;
|
62
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
62
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
63
63
|
return await this.client.execute(this.sender, this.contractAddress, {
|
64
64
|
rotate_user_key: {
|
65
65
|
new_user_address: newUserAddress
|
66
66
|
}
|
67
|
-
}, fee, memo,
|
67
|
+
}, fee, memo, _funds);
|
68
68
|
};
|
69
69
|
addRelayer = async ({
|
70
70
|
newRelayerAddress
|
71
71
|
}: {
|
72
72
|
newRelayerAddress: Addr;
|
73
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
73
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
74
74
|
return await this.client.execute(this.sender, this.contractAddress, {
|
75
75
|
add_relayer: {
|
76
76
|
new_relayer_address: newRelayerAddress
|
77
77
|
}
|
78
|
-
}, fee, memo,
|
78
|
+
}, fee, memo, _funds);
|
79
79
|
};
|
80
80
|
removeRelayer = async ({
|
81
81
|
relayerAddress
|
82
82
|
}: {
|
83
83
|
relayerAddress: Addr;
|
84
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
84
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
85
85
|
return await this.client.execute(this.sender, this.contractAddress, {
|
86
86
|
remove_relayer: {
|
87
87
|
relayer_address: relayerAddress
|
88
88
|
}
|
89
|
-
}, fee, memo,
|
89
|
+
}, fee, memo, _funds);
|
90
90
|
};
|
91
91
|
updateGuardians = async ({
|
92
92
|
guardians,
|
@@ -94,24 +94,24 @@ exports[`execute classes array types 1`] = `
|
|
94
94
|
}: {
|
95
95
|
guardians: Guardians;
|
96
96
|
newMultisigCodeId?: number;
|
97
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
97
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
98
98
|
return await this.client.execute(this.sender, this.contractAddress, {
|
99
99
|
update_guardians: {
|
100
100
|
guardians,
|
101
101
|
new_multisig_code_id: newMultisigCodeId
|
102
102
|
}
|
103
|
-
}, fee, memo,
|
103
|
+
}, fee, memo, _funds);
|
104
104
|
};
|
105
105
|
updateLabel = async ({
|
106
106
|
newLabel
|
107
107
|
}: {
|
108
108
|
newLabel: string;
|
109
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
109
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
110
110
|
return await this.client.execute(this.sender, this.contractAddress, {
|
111
111
|
update_label: {
|
112
112
|
new_label: newLabel
|
113
113
|
}
|
114
|
-
}, fee, memo,
|
114
|
+
}, fee, memo, _funds);
|
115
115
|
};
|
116
116
|
}"
|
117
117
|
`;
|
@@ -124,40 +124,40 @@ exports[`execute interfaces no extends 1`] = `
|
|
124
124
|
msgs
|
125
125
|
}: {
|
126
126
|
msgs: CosmosMsg_for_Empty[];
|
127
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
128
|
-
revertFreezeStatus: (fee?: number | StdFee | \\"auto\\", memo?: string,
|
127
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
128
|
+
revertFreezeStatus: (fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
129
129
|
relay: ({
|
130
130
|
transaction
|
131
131
|
}: {
|
132
132
|
transaction: RelayTransaction;
|
133
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
133
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
134
134
|
rotateUserKey: ({
|
135
135
|
newUserAddress
|
136
136
|
}: {
|
137
137
|
newUserAddress: string;
|
138
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
138
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
139
139
|
addRelayer: ({
|
140
140
|
newRelayerAddress
|
141
141
|
}: {
|
142
142
|
newRelayerAddress: Addr;
|
143
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
143
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
144
144
|
removeRelayer: ({
|
145
145
|
relayerAddress
|
146
146
|
}: {
|
147
147
|
relayerAddress: Addr;
|
148
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
148
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
149
149
|
updateGuardians: ({
|
150
150
|
guardians,
|
151
151
|
newMultisigCodeId
|
152
152
|
}: {
|
153
153
|
guardians: Guardians;
|
154
154
|
newMultisigCodeId?: number;
|
155
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
155
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
156
156
|
updateLabel: ({
|
157
157
|
newLabel
|
158
158
|
}: {
|
159
159
|
newLabel: string;
|
160
|
-
}, fee?: number | StdFee | \\"auto\\", memo?: string,
|
160
|
+
}, fee?: number | StdFee | \\"auto\\", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
|
161
161
|
}"
|
162
162
|
`;
|
163
163
|
|
@@ -22,12 +22,12 @@ exports[`execute classes 1`] = `
|
|
22
22
|
params
|
23
23
|
}: {
|
24
24
|
params: ParamInfo;
|
25
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
25
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
26
26
|
return await this.client.execute(this.sender, this.contractAddress, {
|
27
27
|
update_config: {
|
28
28
|
params
|
29
29
|
}
|
30
|
-
}, fee, memo,
|
30
|
+
}, fee, memo, _funds);
|
31
31
|
};
|
32
32
|
setWinner = async ({
|
33
33
|
currentPrices,
|
@@ -37,14 +37,14 @@ exports[`execute classes 1`] = `
|
|
37
37
|
currentPrices: number[][];
|
38
38
|
prevPrices: number[][];
|
39
39
|
wagerKey: Addr[][];
|
40
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
40
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
41
41
|
return await this.client.execute(this.sender, this.contractAddress, {
|
42
42
|
set_winner: {
|
43
43
|
current_prices: currentPrices,
|
44
44
|
prev_prices: prevPrices,
|
45
45
|
wager_key: wagerKey
|
46
46
|
}
|
47
|
-
}, fee, memo,
|
47
|
+
}, fee, memo, _funds);
|
48
48
|
};
|
49
49
|
wager = async ({
|
50
50
|
againstCurrencies,
|
@@ -56,7 +56,7 @@ exports[`execute classes 1`] = `
|
|
56
56
|
currency: Currency;
|
57
57
|
expiry: number;
|
58
58
|
token: Addr[][];
|
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
|
wager: {
|
62
62
|
against_currencies: againstCurrencies,
|
@@ -64,18 +64,18 @@ exports[`execute classes 1`] = `
|
|
64
64
|
expiry,
|
65
65
|
token
|
66
66
|
}
|
67
|
-
}, fee, memo,
|
67
|
+
}, fee, memo, _funds);
|
68
68
|
};
|
69
69
|
cancel = async ({
|
70
70
|
token
|
71
71
|
}: {
|
72
72
|
token: Addr[][];
|
73
|
-
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string,
|
73
|
+
}, fee: number | StdFee | \\"auto\\" = \\"auto\\", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => {
|
74
74
|
return await this.client.execute(this.sender, this.contractAddress, {
|
75
75
|
cancel: {
|
76
76
|
token
|
77
77
|
}
|
78
|
-
}, fee, memo,
|
78
|
+
}, fee, memo, _funds);
|
79
79
|
};
|
80
80
|
}"
|
81
81
|
`;
|
@@ -0,0 +1,106 @@
|
|
1
|
+
import contract from '../../../../../__fixtures__/issues/103/schema.json';
|
2
|
+
|
3
|
+
import {
|
4
|
+
createQueryClass,
|
5
|
+
createExecuteClass,
|
6
|
+
createExecuteInterface,
|
7
|
+
createTypeInterface
|
8
|
+
} from '../client'
|
9
|
+
import { expectCode, printCode, makeContext } from '../../../test-utils';
|
10
|
+
|
11
|
+
const queryMessage = contract.query
|
12
|
+
const executeMessage = contract.execute
|
13
|
+
const queryCtx = makeContext(queryMessage);
|
14
|
+
const executeCtx = makeContext(executeMessage);
|
15
|
+
|
16
|
+
describe('query', () => {
|
17
|
+
it('execute_msg_for__empty', () => {
|
18
|
+
expectCode(createTypeInterface(
|
19
|
+
queryCtx,
|
20
|
+
queryMessage
|
21
|
+
))
|
22
|
+
})
|
23
|
+
|
24
|
+
|
25
|
+
it('query classes', () => {
|
26
|
+
expectCode(createQueryClass(
|
27
|
+
queryCtx,
|
28
|
+
'QueryClient',
|
29
|
+
'ReadOnlyInstance',
|
30
|
+
queryMessage
|
31
|
+
))
|
32
|
+
});
|
33
|
+
|
34
|
+
it('query classes response', () => {
|
35
|
+
expectCode(createTypeInterface(
|
36
|
+
queryCtx,
|
37
|
+
contract.query
|
38
|
+
))
|
39
|
+
});
|
40
|
+
|
41
|
+
it('execute classes array types', () => {
|
42
|
+
expectCode(createExecuteClass(
|
43
|
+
queryCtx,
|
44
|
+
'Client',
|
45
|
+
'Instance',
|
46
|
+
null,
|
47
|
+
queryMessage
|
48
|
+
))
|
49
|
+
});
|
50
|
+
|
51
|
+
it('execute interfaces no extends', () => {
|
52
|
+
expectCode(createExecuteInterface(
|
53
|
+
queryCtx,
|
54
|
+
'SG721Instance',
|
55
|
+
null,
|
56
|
+
queryMessage
|
57
|
+
))
|
58
|
+
});
|
59
|
+
|
60
|
+
});
|
61
|
+
|
62
|
+
describe('execute', () => {
|
63
|
+
it('execute_msg_for__empty', () => {
|
64
|
+
expectCode(createTypeInterface(
|
65
|
+
executeCtx,
|
66
|
+
executeMessage
|
67
|
+
))
|
68
|
+
})
|
69
|
+
|
70
|
+
|
71
|
+
it('query classes', () => {
|
72
|
+
expectCode(createQueryClass(
|
73
|
+
executeCtx,
|
74
|
+
'QueryClient',
|
75
|
+
'ReadOnlyInstance',
|
76
|
+
executeMessage
|
77
|
+
))
|
78
|
+
});
|
79
|
+
|
80
|
+
it('query classes response', () => {
|
81
|
+
expectCode(createTypeInterface(
|
82
|
+
executeCtx,
|
83
|
+
contract.query
|
84
|
+
))
|
85
|
+
});
|
86
|
+
|
87
|
+
it('execute classes array types', () => {
|
88
|
+
expectCode(createExecuteClass(
|
89
|
+
executeCtx,
|
90
|
+
'Client',
|
91
|
+
'Instance',
|
92
|
+
null,
|
93
|
+
executeMessage
|
94
|
+
))
|
95
|
+
});
|
96
|
+
|
97
|
+
it('execute interfaces no extends', () => {
|
98
|
+
expectCode(createExecuteInterface(
|
99
|
+
executeCtx,
|
100
|
+
'SG721Instance',
|
101
|
+
null,
|
102
|
+
executeMessage
|
103
|
+
))
|
104
|
+
});
|
105
|
+
|
106
|
+
});
|
package/src/context/context.ts
CHANGED
@@ -10,7 +10,7 @@ exports[`createMessageComposerInterface 1`] = `
|
|
10
10
|
}: {
|
11
11
|
recipient: string;
|
12
12
|
tokenId: string;
|
13
|
-
},
|
13
|
+
}, _funds?: Coin[]) => MsgExecuteContractEncodeObject;
|
14
14
|
sendNft: ({
|
15
15
|
contract,
|
16
16
|
msg,
|
@@ -19,7 +19,7 @@ exports[`createMessageComposerInterface 1`] = `
|
|
19
19
|
contract: string;
|
20
20
|
msg: Binary;
|
21
21
|
tokenId: string;
|
22
|
-
},
|
22
|
+
}, _funds?: Coin[]) => MsgExecuteContractEncodeObject;
|
23
23
|
approve: ({
|
24
24
|
expires,
|
25
25
|
spender,
|
@@ -28,26 +28,26 @@ exports[`createMessageComposerInterface 1`] = `
|
|
28
28
|
expires?: Expiration;
|
29
29
|
spender: string;
|
30
30
|
tokenId: string;
|
31
|
-
},
|
31
|
+
}, _funds?: Coin[]) => MsgExecuteContractEncodeObject;
|
32
32
|
revoke: ({
|
33
33
|
spender,
|
34
34
|
tokenId
|
35
35
|
}: {
|
36
36
|
spender: string;
|
37
37
|
tokenId: string;
|
38
|
-
},
|
38
|
+
}, _funds?: Coin[]) => MsgExecuteContractEncodeObject;
|
39
39
|
approveAll: ({
|
40
40
|
expires,
|
41
41
|
operator
|
42
42
|
}: {
|
43
43
|
expires?: Expiration;
|
44
44
|
operator: string;
|
45
|
-
},
|
45
|
+
}, _funds?: Coin[]) => MsgExecuteContractEncodeObject;
|
46
46
|
revokeAll: ({
|
47
47
|
operator
|
48
48
|
}: {
|
49
49
|
operator: string;
|
50
|
-
},
|
50
|
+
}, _funds?: Coin[]) => MsgExecuteContractEncodeObject;
|
51
51
|
mint: ({
|
52
52
|
extension,
|
53
53
|
owner,
|
@@ -58,12 +58,12 @@ exports[`createMessageComposerInterface 1`] = `
|
|
58
58
|
owner: string;
|
59
59
|
tokenId: string;
|
60
60
|
tokenUri?: string;
|
61
|
-
},
|
61
|
+
}, _funds?: Coin[]) => MsgExecuteContractEncodeObject;
|
62
62
|
burn: ({
|
63
63
|
tokenId
|
64
64
|
}: {
|
65
65
|
tokenId: string;
|
66
|
-
},
|
66
|
+
}, _funds?: Coin[]) => MsgExecuteContractEncodeObject;
|
67
67
|
}"
|
68
68
|
`;
|
69
69
|
|
@@ -91,7 +91,7 @@ exports[`execute classes 1`] = `
|
|
91
91
|
}: {
|
92
92
|
recipient: string;
|
93
93
|
tokenId: string;
|
94
|
-
},
|
94
|
+
}, _funds?: Coin[]): MsgExecuteContractEncodeObject => {
|
95
95
|
return {
|
96
96
|
typeUrl: \\"/cosmwasm.wasm.v1.MsgExecuteContract\\",
|
97
97
|
value: MsgExecuteContract.fromPartial({
|
@@ -103,7 +103,7 @@ exports[`execute classes 1`] = `
|
|
103
103
|
token_id: tokenId
|
104
104
|
}
|
105
105
|
})),
|
106
|
-
funds
|
106
|
+
funds: _funds
|
107
107
|
})
|
108
108
|
};
|
109
109
|
};
|
@@ -115,7 +115,7 @@ exports[`execute classes 1`] = `
|
|
115
115
|
contract: string;
|
116
116
|
msg: Binary;
|
117
117
|
tokenId: string;
|
118
|
-
},
|
118
|
+
}, _funds?: Coin[]): MsgExecuteContractEncodeObject => {
|
119
119
|
return {
|
120
120
|
typeUrl: \\"/cosmwasm.wasm.v1.MsgExecuteContract\\",
|
121
121
|
value: MsgExecuteContract.fromPartial({
|
@@ -128,7 +128,7 @@ exports[`execute classes 1`] = `
|
|
128
128
|
token_id: tokenId
|
129
129
|
}
|
130
130
|
})),
|
131
|
-
funds
|
131
|
+
funds: _funds
|
132
132
|
})
|
133
133
|
};
|
134
134
|
};
|
@@ -140,7 +140,7 @@ exports[`execute classes 1`] = `
|
|
140
140
|
expires?: Expiration;
|
141
141
|
spender: string;
|
142
142
|
tokenId: string;
|
143
|
-
},
|
143
|
+
}, _funds?: Coin[]): MsgExecuteContractEncodeObject => {
|
144
144
|
return {
|
145
145
|
typeUrl: \\"/cosmwasm.wasm.v1.MsgExecuteContract\\",
|
146
146
|
value: MsgExecuteContract.fromPartial({
|
@@ -153,7 +153,7 @@ exports[`execute classes 1`] = `
|
|
153
153
|
token_id: tokenId
|
154
154
|
}
|
155
155
|
})),
|
156
|
-
funds
|
156
|
+
funds: _funds
|
157
157
|
})
|
158
158
|
};
|
159
159
|
};
|
@@ -163,7 +163,7 @@ exports[`execute classes 1`] = `
|
|
163
163
|
}: {
|
164
164
|
spender: string;
|
165
165
|
tokenId: string;
|
166
|
-
},
|
166
|
+
}, _funds?: Coin[]): MsgExecuteContractEncodeObject => {
|
167
167
|
return {
|
168
168
|
typeUrl: \\"/cosmwasm.wasm.v1.MsgExecuteContract\\",
|
169
169
|
value: MsgExecuteContract.fromPartial({
|
@@ -175,7 +175,7 @@ exports[`execute classes 1`] = `
|
|
175
175
|
token_id: tokenId
|
176
176
|
}
|
177
177
|
})),
|
178
|
-
funds
|
178
|
+
funds: _funds
|
179
179
|
})
|
180
180
|
};
|
181
181
|
};
|
@@ -185,7 +185,7 @@ exports[`execute classes 1`] = `
|
|
185
185
|
}: {
|
186
186
|
expires?: Expiration;
|
187
187
|
operator: string;
|
188
|
-
},
|
188
|
+
}, _funds?: Coin[]): MsgExecuteContractEncodeObject => {
|
189
189
|
return {
|
190
190
|
typeUrl: \\"/cosmwasm.wasm.v1.MsgExecuteContract\\",
|
191
191
|
value: MsgExecuteContract.fromPartial({
|
@@ -197,7 +197,7 @@ exports[`execute classes 1`] = `
|
|
197
197
|
operator
|
198
198
|
}
|
199
199
|
})),
|
200
|
-
funds
|
200
|
+
funds: _funds
|
201
201
|
})
|
202
202
|
};
|
203
203
|
};
|
@@ -205,7 +205,7 @@ exports[`execute classes 1`] = `
|
|
205
205
|
operator
|
206
206
|
}: {
|
207
207
|
operator: string;
|
208
|
-
},
|
208
|
+
}, _funds?: Coin[]): MsgExecuteContractEncodeObject => {
|
209
209
|
return {
|
210
210
|
typeUrl: \\"/cosmwasm.wasm.v1.MsgExecuteContract\\",
|
211
211
|
value: MsgExecuteContract.fromPartial({
|
@@ -216,7 +216,7 @@ exports[`execute classes 1`] = `
|
|
216
216
|
operator
|
217
217
|
}
|
218
218
|
})),
|
219
|
-
funds
|
219
|
+
funds: _funds
|
220
220
|
})
|
221
221
|
};
|
222
222
|
};
|
@@ -230,7 +230,7 @@ exports[`execute classes 1`] = `
|
|
230
230
|
owner: string;
|
231
231
|
tokenId: string;
|
232
232
|
tokenUri?: string;
|
233
|
-
},
|
233
|
+
}, _funds?: Coin[]): MsgExecuteContractEncodeObject => {
|
234
234
|
return {
|
235
235
|
typeUrl: \\"/cosmwasm.wasm.v1.MsgExecuteContract\\",
|
236
236
|
value: MsgExecuteContract.fromPartial({
|
@@ -244,7 +244,7 @@ exports[`execute classes 1`] = `
|
|
244
244
|
token_uri: tokenUri
|
245
245
|
}
|
246
246
|
})),
|
247
|
-
funds
|
247
|
+
funds: _funds
|
248
248
|
})
|
249
249
|
};
|
250
250
|
};
|
@@ -252,7 +252,7 @@ exports[`execute classes 1`] = `
|
|
252
252
|
tokenId
|
253
253
|
}: {
|
254
254
|
tokenId: string;
|
255
|
-
},
|
255
|
+
}, _funds?: Coin[]): MsgExecuteContractEncodeObject => {
|
256
256
|
return {
|
257
257
|
typeUrl: \\"/cosmwasm.wasm.v1.MsgExecuteContract\\",
|
258
258
|
value: MsgExecuteContract.fromPartial({
|
@@ -263,7 +263,7 @@ exports[`execute classes 1`] = `
|
|
263
263
|
token_id: tokenId
|
264
264
|
}
|
265
265
|
})),
|
266
|
-
funds
|
266
|
+
funds: _funds
|
267
267
|
})
|
268
268
|
};
|
269
269
|
};
|
@@ -286,7 +286,7 @@ exports[`ownershipClass 1`] = `
|
|
286
286
|
newFactory
|
287
287
|
}: {
|
288
288
|
newFactory: string;
|
289
|
-
},
|
289
|
+
}, _funds?: Coin[]): MsgExecuteContractEncodeObject => {
|
290
290
|
return {
|
291
291
|
typeUrl: \\"/cosmwasm.wasm.v1.MsgExecuteContract\\",
|
292
292
|
value: MsgExecuteContract.fromPartial({
|
@@ -297,11 +297,11 @@ exports[`ownershipClass 1`] = `
|
|
297
297
|
new_factory: newFactory
|
298
298
|
}
|
299
299
|
})),
|
300
|
-
funds
|
300
|
+
funds: _funds
|
301
301
|
})
|
302
302
|
};
|
303
303
|
};
|
304
|
-
updateOwnership = (action: Action,
|
304
|
+
updateOwnership = (action: Action, _funds?: Coin[]): MsgExecuteContractEncodeObject => {
|
305
305
|
return {
|
306
306
|
typeUrl: \\"/cosmwasm.wasm.v1.MsgExecuteContract\\",
|
307
307
|
value: MsgExecuteContract.fromPartial({
|
@@ -310,7 +310,7 @@ exports[`ownershipClass 1`] = `
|
|
310
310
|
msg: toUtf8(JSON.stringify({
|
311
311
|
update_ownership: action
|
312
312
|
})),
|
313
|
-
funds
|
313
|
+
funds: _funds
|
314
314
|
})
|
315
315
|
};
|
316
316
|
};
|
@@ -325,7 +325,7 @@ exports[`ownershipInterface 1`] = `
|
|
325
325
|
newFactory
|
326
326
|
}: {
|
327
327
|
newFactory: string;
|
328
|
-
},
|
329
|
-
updateOwnership: (action: Action,
|
328
|
+
}, _funds?: Coin[]) => MsgExecuteContractEncodeObject;
|
329
|
+
updateOwnership: (action: Action, _funds?: Coin[]) => MsgExecuteContractEncodeObject;
|
330
330
|
}"
|
331
331
|
`;
|