forked from Vesting-Vault/Contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_errors_local.txt
More file actions
374 lines (327 loc) · 16.9 KB
/
Copy pathbuild_errors_local.txt
File metadata and controls
374 lines (327 loc) · 16.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
cargo : Compiling vesting_contracts v0.0.0 (C:\Users\dell\Contracts\contracts\vesting_contracts)
At line:1 char:1
+ cargo test --no-run -p vesting_contracts 2>&1 | Out-File -FilePath bu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( Compiling ve...ting_contracts):String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
warning: unused imports: `Map` and `Val`
--> contracts\vesting_contracts\src\lib.rs:12:5
|
12 | Map,
| ^^^
13 | Symbol,
14 | Val,
| ^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused import: `symbol_short`
--> contracts\vesting_contracts\src\kpi_vesting.rs:5:34
|
5 | use soroban_sdk::{contractevent, symbol_short, Address, Env, Symbol};
| ^^^^^^^^^^^^
warning: unused imports: `Map` and `Symbol`
--> contracts\vesting_contracts\src\certificate_registry.rs:1:86
|
1 | use soroban_sdk::{contract, contractimpl, contracttype, contractevent, Address, Env, Map, String, Symbol, Vec,
U256};
| ^^^ ^^^^^^
warning: unused import: `Symbol`
--> contracts\vesting_contracts\src\kpi_test.rs:4:58
|
4 | symbol_short, testutils::Address as _, Address, Env, Symbol,
| ^^^^^^
warning: unused imports: `KpiOracleConfig` and `KpiVerificationRecord`
--> contracts\vesting_contracts\src\kpi_test.rs:8:18
|
8 | get_kpi_log, KpiOracleConfig, KpiVerificationRecord,
| ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `symbol_short`
--> contracts\vesting_contracts\src\certificate_registry_test.rs:3:19
|
3 | use soroban_sdk::{symbol_short, vec, Address, Env, String, U256, Vec};
| ^^^^^^^^^^^^
warning: unused imports: `CompletedVestCertificate`, `DataKey`, and `WorkVerification`
--> contracts\vesting_contracts\src\certificate_registry_test.rs:8:71
|
8 | VestingCertificateRegistry, VestingCertificateRegistryClient, CompletedVestCertificate, CertificateQuery,
WorkVerification,
| ^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^
9 | },
10 | Vault, AssetAllocationEntry, DataKey,
| ^^^^^^^
warning: unused imports: `Milestone` and `PausedVault`
--> contracts\vesting_contracts\src\test.rs:4:22
|
4 | BatchCreateData, Milestone, PausedVault, VestingContract, VestingContractClient,
| ^^^^^^^^^ ^^^^^^^^^^^
warning: unused imports: `IntoVal` and `String`
--> contracts\vesting_contracts\src\test.rs:9:31
|
9 | token, vec, Address, Env, String, IntoVal,
| ^^^^^^ ^^^^^^^
warning: unused imports: `AssetAllocationEntry`, `BatchCreateData`, and `Milestone`
--> contracts\vesting_contracts\src\invariant_test.rs:3:53
|
3 | use crate::{VestingContract, VestingContractClient, Milestone, BatchCreateData, AssetAllocationEntry};
| ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
warning: unused import: `vec`
--> contracts\vesting_contracts\src\invariant_test.rs:4:61
|
4 | use soroban_sdk::{testutils::{Address as _, Ledger}, token, vec, Address, Env};
| ^^^
warning: unnecessary parentheses around block return value
--> contracts\vesting_contracts\src\invariant_test.rs:116:27
|
116 | else { (start + (duration * i as u64 / 10)) };
| ^ ^
|
= note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
help: remove these parentheses
|
116 - else { (start + (duration * i as u64 / 10)) };
116 + else { start + (duration * i as u64 / 10) };
|
warning: unused import: `IntoVal`
--> contracts\vesting_contracts\src\diversified_test.rs:6:43
|
6 | token, vec, Address, Env, String, IntoVal,
| ^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_contract`: use `register`
--> contracts\vesting_contracts\src\certificate_registry_test.rs:23:27
|
23 | let contract_id = env.register_contract(None, VestingContract);
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated method `soroban_sdk::Env::register_contract`: use `register`
--> contracts\vesting_contracts\src\certificate_registry_test.rs:93:27
|
93 | let contract_id = env.register_contract(None, VestingCertificateRegistry);
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_contract`: use `register`
--> contracts\vesting_contracts\src\certificate_registry_test.rs:144:27
|
144 | let contract_id = env.register_contract(None, VestingCertificateRegistry);
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_contract`: use `register`
--> contracts\vesting_contracts\src\certificate_registry_test.rs:195:27
|
195 | let contract_id = env.register_contract(None, VestingCertificateRegistry);
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_contract`: use `register`
--> contracts\vesting_contracts\src\certificate_registry_test.rs:246:27
|
246 | let contract_id = env.register_contract(None, VestingCertificateRegistry);
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_contract`: use `register`
--> contracts\vesting_contracts\src\certificate_registry_test.rs:306:27
|
306 | let contract_id = env.register_contract(None, VestingCertificateRegistry);
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_contract`: use `register`
--> contracts\vesting_contracts\src\certificate_registry_test.rs:363:27
|
363 | let contract_id = env.register_contract(None, VestingCertificateRegistry);
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_stellar_asset_contract`: use
[Env::register_stellar_asset_contract_v2]
--> contracts\vesting_contracts\src\test.rs:18:29
|
18 | let token_address = env.register_stellar_asset_contract(token_admin.clone());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_contract`: use `register`
--> contracts\vesting_contracts\src\test.rs:22:27
|
22 | let contract_id = env.register_contract(None, VestingContract);
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_contract`: use `register`
--> contracts\vesting_contracts\src\invariant_test.rs:10:27
|
10 | let contract_id = env.register_contract(None, VestingContract);
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_stellar_asset_contract`: use
[Env::register_stellar_asset_contract_v2]
--> contracts\vesting_contracts\src\invariant_test.rs:15:26
|
15 | let token_addr = env.register_stellar_asset_contract(token_admin.clone());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_contract`: use `register`
--> contracts\vesting_contracts\src\invariant_test.rs:84:31
|
84 | let contract_id = env.register_contract(None, VestingContract);
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_stellar_asset_contract`: use
[Env::register_stellar_asset_contract_v2]
--> contracts\vesting_contracts\src\invariant_test.rs:89:30
|
89 | let token_addr = env.register_stellar_asset_contract(token_admin.clone());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_stellar_asset_contract`: use
[Env::register_stellar_asset_contract_v2]
--> contracts\vesting_contracts\src\diversified_test.rs:10:27
|
10 | let address = env.register_stellar_asset_contract(admin.clone());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_contract`: use `register`
--> contracts\vesting_contracts\src\diversified_test.rs:33:31
|
33 | let contract_id = env.register_contract(None, VestingContract);
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated method `soroban_sdk::Env::register_contract`: use `register`
--> contracts\vesting_contracts\src\diversified_test.rs:132:31
|
132 | let contract_id = env.register_contract(None, VestingContract);
| ^^^^^^^^^^^^^^^^^
warning: unused import: `Ledger`
--> contracts\vesting_contracts\src\certificate_registry_test.rs:4:44
|
4 | use soroban_sdk::testutils::{Address as _, Ledger as _};
| ^^^^^^
warning: unused variable: `cert1_id`
--> contracts\vesting_contracts\src\certificate_registry_test.rs:151:9
|
151 | let cert1_id = registry_client.register_completed_vest(
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cert1_id`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `vault`
--> contracts\vesting_contracts\src\lib.rs:1444:13
|
1444 | let vault = Self::get_vault_internal(&env, vault_id);
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_vault`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `vault`
--> contracts\vesting_contracts\src\lib.rs:1444:13
|
1444 | let vault = Self::get_vault_internal(&env, vault_id);
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_vault`
warning: associated functions `require_collateral_bridge` and `validate_schedule_configs` are never used
--> contracts\vesting_contracts\src\lib.rs:2239:8
|
434 | impl VestingContract {
| -------------------- associated functions in this implementation
...
2239 | fn require_collateral_bridge(env: &Env) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
...
2452 | fn validate_schedule_configs(schedules: &Vec<ScheduleConfig>) -> i128 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: trait `OracleInterface` is never used
--> contracts\vesting_contracts\src\oracle.rs:48:11
|
48 | pub trait OracleInterface {
| ^^^^^^^^^^^^^^^
warning: unused variable: `env`
--> contracts\vesting_contracts\src\test.rs:113:10
|
113 | let (env, admin, client, _, _) = setup();
| ^^^ help: if this is intentional, prefix it with an underscore: `_env`
warning: unused variable: `admin`
--> contracts\vesting_contracts\src\test.rs:113:15
|
113 | let (env, admin, client, _, _) = setup();
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_admin`
warning: `vesting_contracts` (lib test) generated 36 warnings (5 duplicates) (run `cargo fix --lib -p
vesting_contracts --tests` to apply 14 suggestions)
warning: `vesting_contracts` (lib) generated 6 warnings (run `cargo fix --lib -p vesting_contracts` to apply 4
suggestions)
warning: unexpected `cfg` condition value: `testutils`
--> contracts\vesting_contracts\examples\diversified_vesting_example.rs:8:17
|
8 | #[cfg(any(test, feature = "testutils"))]
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `testutils` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about
checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
warning: unexpected `cfg` condition value: `testutils`
--> contracts\vesting_contracts\examples\diversified_vesting_example.rs:38:21
|
38 | #[cfg(any(test, feature = "testutils"))]
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `testutils` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about
checking conditional configuration
warning: unexpected `cfg` condition value: `testutils`
--> contracts\vesting_contracts\examples\diversified_vesting_example.rs:40:25
|
40 | #[cfg(not(any(test, feature = "testutils")))]
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `testutils` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about
checking conditional configuration
warning: unexpected `cfg` condition value: `testutils`
--> contracts\vesting_contracts\examples\diversified_vesting_example.rs:43:21
|
43 | #[cfg(any(test, feature = "testutils"))]
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `testutils` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about
checking conditional configuration
warning: unexpected `cfg` condition value: `testutils`
--> contracts\vesting_contracts\examples\diversified_vesting_example.rs:45:25
|
45 | #[cfg(not(any(test, feature = "testutils")))]
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `testutils` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about
checking conditional configuration
warning: unexpected `cfg` condition value: `testutils`
--> contracts\vesting_contracts\examples\diversified_vesting_example.rs:48:21
|
48 | #[cfg(any(test, feature = "testutils"))]
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `testutils` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about
checking conditional configuration
warning: unexpected `cfg` condition value: `testutils`
--> contracts\vesting_contracts\examples\diversified_vesting_example.rs:50:25
|
50 | #[cfg(not(any(test, feature = "testutils")))]
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `testutils` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about
checking conditional configuration
warning: unexpected `cfg` condition value: `testutils`
--> contracts\vesting_contracts\examples\diversified_vesting_example.rs:53:21
|
53 | #[cfg(any(test, feature = "testutils"))]
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `testutils` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about
checking conditional configuration
warning: unexpected `cfg` condition value: `testutils`
--> contracts\vesting_contracts\examples\diversified_vesting_example.rs:55:25
|
55 | #[cfg(not(any(test, feature = "testutils")))]
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `testutils` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about
checking conditional configuration
warning: `vesting_contracts` (example "diversified_vesting_example") generated 9 warnings
Finished `test` profile [unoptimized + debuginfo] target(s) in 1m 26s
Executable unittests src\lib.rs (target\debug\deps\vesting_contracts-7cd570b29bcf58c4.exe)
Executable tests\max_duration.rs (target\debug\deps\max_duration-6df5b177f4a62d6a.exe)
Executable tests\multisig_admin_threshold.rs (target\debug\deps\multisig_admin_threshold-5a8cb172d8c9c780.exe)