-
Notifications
You must be signed in to change notification settings - Fork 341
Expand file tree
/
Copy pathprogram-build-error.txt
More file actions
631 lines (562 loc) · 45.6 KB
/
Copy pathprogram-build-error.txt
File metadata and controls
631 lines (562 loc) · 45.6 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
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
cargo : warning: unused imports: `Bytes`, `contract`, `contractimpl`, and
`symbol_short`
At line:1 char:1
+ cargo build --manifest-path contracts\program-escrow\Cargo.toml --tar ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (warning: unused... `symbol_short`
:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:24:5
|
24 | contract, contracterror, contractimpl, contracttype, symbol_short,
Address, Bytes, B...
| ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^
^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused import: `multisig::MultiSig`
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:37:5
|
37 | use multisig::MultiSig;
| ^^^^^^^^^^^^^^^^^^
warning: unused variable: `other_registry`
--> C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\error_reg
istry.rs:155:29
|
155 | pub const fn find_conflicts(other_registry: &[RegistryEntry]) -> &[u32] {
| ^^^^^^^^^^^^^^ help: if this is intentional,
prefix it with an underscore: `_other_registry`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by
default
warning: constant `MAX_DEPLOYED_CONTRACTS` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:91:7
|
91 | const MAX_DEPLOYED_CONTRACTS: u32 = 200;
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: constant `DEFAULT_TIMELOCK_DELAY` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:94:7
|
94 | const DEFAULT_TIMELOCK_DELAY: u64 = 86_400;
| ^^^^^^^^^^^^^^^^^^^^^^
warning: constant `MAX_TIMELOCK_DELAY` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:97:7
|
97 | const MAX_TIMELOCK_DELAY: u64 = 2_592_000;
| ^^^^^^^^^^^^^^^^^^
warning: constant `MIN_TIMELOCK_DELAY` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:100:7
|
100 | const MIN_TIMELOCK_DELAY: u64 = 3_600;
| ^^^^^^^^^^^^^^^^^^
warning: constant `DEFAULT_CONFIG_CHANGE_DELAY` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:103:7
|
103 | const DEFAULT_CONFIG_CHANGE_DELAY: u64 = 21_600;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `VERSION` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:106:7
|
106 | const VERSION: u32 = 2;
| ^^^^^^^
warning: function `migrate_v1_to_v2` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:2450:4
|
2450 | fn migrate_v1_to_v2(_env: &Env) {}
| ^^^^^^^^^^^^^^^^
warning: function `migrate_v2_to_v3` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:2452:4
|
2452 | fn migrate_v2_to_v3(_env: &Env) {}
| ^^^^^^^^^^^^^^^^
warning: enum `MultiSigError` is never used
--> C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\multisig.r
s:51:10
|
51 | pub enum MultiSigError {
| ^^^^^^^^^^^^^
warning: struct `MultiSig` is never constructed
--> C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\multisig.r
s:69:12
|
69 | pub struct MultiSig;
| ^^^^^^^^
warning: multiple associated functions are never used
--> C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\multisig.
rs:73:12
|
71 | impl MultiSig {
| ------------- associated functions in this implementation
72 | /// Initializes the signer set and execution threshold.
73 | pub fn init(env: &Env, signers: Vec<Address>, threshold: u32) {
| ^^^^
...
86 | pub fn propose(env: &Env, proposer: Address, expiry: u64) -> u64 {
| ^^^^^^^
...
124 | pub fn approve(env: &Env, proposal_id: u64, signer: Address) {
| ^^^^^^^
...
157 | pub fn can_execute(env: &Env, proposal_id: u64) -> bool {
| ^^^^^^^^^^^
...
173 | pub fn mark_executed(env: &Env, proposal_id: u64) {
| ^^^^^^^^^^^^^
...
201 | pub fn cancel(env: &Env, proposal_id: u64, canceller: Address) {
| ^^^^^^
...
226 | pub fn pause(env: &Env, signer: Address) {
| ^^^^^
...
237 | pub fn unpause(env: &Env, signer: Address) {
| ^^^^^^^
...
248 | pub fn is_contract_paused(env: &Env) -> bool {
| ^^^^^^^^^^^^^^^^^^
...
256 | pub fn is_state_inconsistent(env: &Env) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^
...
264 | pub fn get_config_opt(env: &Env) -> Option<MultiSigConfig> {
| ^^^^^^^^^^^^^^
...
269 | pub fn is_cancelled(env: &Env, proposal_id: u64) -> bool {
| ^^^^^^^^^^^^
...
276 | pub fn is_expired(env: &Env, proposal_id: u64) -> bool {
| ^^^^^^^^^^
...
284 | pub fn get_proposal_opt(env: &Env, proposal_id: u64) -> Option<Pro...
| ^^^^^^^^^^^^^^^^
...
291 | pub fn set_config(env: &Env, config: MultiSigConfig) {
| ^^^^^^^^^^
...
299 | pub fn clear_config(env: &Env) {
| ^^^^^^^^^^^^
...
306 | fn get_config(env: &Env) -> MultiSigConfig {
| ^^^^^^^^^^
...
313 | fn get_proposal(env: &Env, proposal_id: u64) -> Proposal {
| ^^^^^^^^^^^^
...
320 | fn assert_signer(config: &MultiSigConfig, signer: &Address) {
| ^^^^^^^^^^^^^
warning: constant `OPERATION_COUNT` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:550:11
|
550 | const OPERATION_COUNT: &str = "op_count";
| ^^^^^^^^^^^^^^^
warning: constant `USER_COUNT` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:551:11
|
551 | const USER_COUNT: &str = "usr_count";
| ^^^^^^^^^^
warning: constant `ERROR_COUNT` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:552:11
|
552 | const ERROR_COUNT: &str = "err_count";
| ^^^^^^^^^^^
warning: constant `USER_INDEX` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:553:11
|
553 | const USER_INDEX: &str = "usr_index";
| ^^^^^^^^^^
warning: constant `LAST_OPERATION_TS` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:554:11
|
554 | const LAST_OPERATION_TS: &str = "last_op_ts";
| ^^^^^^^^^^^^^^^^^
warning: constant `MAX_TRACKED_FUNCTIONS` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:625:15
|
625 | pub const MAX_TRACKED_FUNCTIONS: u32 = 50;
| ^^^^^^^^^^^^^^^^^^^^^
warning: constant `MAX_TRACKED_USERS` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:626:15
|
626 | pub const MAX_TRACKED_USERS: u32 = 64;
| ^^^^^^^^^^^^^^^^^
warning: function `get_counter` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:628:8
|
628 | fn get_counter(env: &Env, key: &str) -> u64 {
| ^^^^^^^^^^^
warning: function `set_counter` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:635:8
|
635 | fn set_counter(env: &Env, key: &str, value: u64) {
| ^^^^^^^^^^^
warning: function `get_tracked_users` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:641:8
|
641 | fn get_tracked_users(env: &Env) -> Vec<Address> {
| ^^^^^^^^^^^^^^^^^
warning: function `track_unique_user` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:648:8
|
648 | fn track_unique_user(env: &Env, caller: &Address) {
| ^^^^^^^^^^^^^^^^^
warning: function `version_semver_string` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:667:8
|
667 | fn version_semver_string(env: &Env) -> String {
| ^^^^^^^^^^^^^^^^^^^^^
warning: function `track_operation` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:698:12
|
698 | pub fn track_operation(env: &Env, operation: Symbol, caller: Addre...
| ^^^^^^^^^^^^^^^
warning: function `emit_performance` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:713:12
|
713 | pub fn emit_performance(env: &Env, function: Symbol, duration: u64) {
| ^^^^^^^^^^^^^^^^
warning: function `health_check` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:752:12
|
752 | pub fn health_check(env: &Env) -> HealthStatus {
| ^^^^^^^^^^^^
warning: function `get_analytics` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:762:12
|
762 | pub fn get_analytics(env: &Env) -> Analytics {
| ^^^^^^^^^^^^^
warning: function `get_state_snapshot` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:772:12
|
772 | pub fn get_state_snapshot(env: &Env) -> StateSnapshot {
| ^^^^^^^^^^^^^^^^^^
warning: function `get_performance_stats` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:781:12
|
781 | pub fn get_performance_stats(env: &Env, function_name: Symbol) -> ...
| ^^^^^^^^^^^^^^^^^^^^^
warning: function `check_invariants` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:792:12
|
792 | pub fn check_invariants(env: &Env) -> InvariantReport {
| ^^^^^^^^^^^^^^^^
warning: function `verify_invariants` is never used
-->
C:\Users\wave\Desktop\b\grainlify\contracts\grainlify-core\src\lib.rs:839:12
|
839 | pub fn verify_invariants(env: &Env) -> bool {
| ^^^^^^^^^^^^^^^^^
warning: `grainlify-core` (lib) generated 34 warnings (run `cargo fix --lib -p
grainlify-core` to apply 3 suggestions)
Compiling program-escrow v0.1.0
(C:\Users\wave\Desktop\b\grainlify\contracts\program-escrow)
error: custom attribute panicked
--> src\lib.rs:1425:1
|
1425 | #[contracttype]
| ^^^^^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value:
LengthExceedsMax
error: unsupported type
--> src\lib.rs:5286:59
|
5286 | pub fn get_program_pause_flags(env: &Env, program_id: &String) ->
PauseFlags {
| ^
warning: unused imports: `Address`, `Symbol`, and `vec`
--> src\gas_optimization.rs:9:19
|
9 | use soroban_sdk::{vec, Address, Env, String, Symbol, Vec};
| ^^^ ^^^^^^^ ^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `Address` and `String`
--> src\gas_optimization.rs:287:37
|
287 | use soroban_sdk::{symbol_short, Address, Env, String, Symbol};
| ^^^^^^^ ^^^^^^
warning: unused imports: `Symbol` and `symbol_short`
--> src\dynamic_pricing.rs:56:33
|
56 | use soroban_sdk::{contracttype, symbol_short, Address, Env, String,
Symbol, Bytes};
| ^^^^^^^^^^^^ ^^^^^^
error[E0592]: duplicate definitions with name `add_allowed_token_with_decimals`
--> src\lib.rs:6493:5
|
6417 | pub fn add_allowed_token_with_decimals(env: Env, token: Address,
decimals: u32) {
| --------------------------------------------------------------------
----------- other definition for `add_allowed_token_with_decimals`
...
6493 | pub fn add_allowed_token_with_decimals(env: Env, token: Address,
decimals: u32) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^ duplicate definitions for `add_allowed_token_with_decimals`
error[E0592]: duplicate definitions with name `get_token_decimals`
--> src\lib.rs:6671:5
|
6567 | pub fn get_token_decimals(env: Env, token: Address) -> Option<u32> {
| ------------------------------------------------------------------
other definition for `get_token_decimals`
...
6671 | pub fn get_token_decimals(env: Env, token: Address) -> u32 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
duplicate definitions for `get_token_decimals`
error[E0560]: struct `ProgramData` has no field named `status`
--> src\lib.rs:2704:13
|
2704 | status: ProgramStatus::Draft,
| ^^^^^^ `ProgramData` does not have this field
|
= note: all struct fields are already assigned
error[E0609]: no field `status` on type `&ProgramData`
--> src\lib.rs:2918:25
|
2918 | if program_data.status != ProgramStatus::Active {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
error[E0609]: no field `status` on type `ProgramData`
--> src\lib.rs:2942:25
|
2942 | if program_data.status != ProgramStatus::Draft {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
error[E0609]: no field `status` on type `ProgramData`
--> src\lib.rs:2946:22
|
2946 | program_data.status = ProgramStatus::Active;
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
error[E0560]: struct `ProgramData` has no field named `status`
--> src\lib.rs:3118:17
|
3118 | status: ProgramStatus::Draft,
| ^^^^^^ `ProgramData` does not have this field
|
= note: all struct fields are already assigned
error[E0609]: no field `status` on type `ProgramData`
--> src\lib.rs:3234:29
|
3234 | if program_data.status == ProgramStatus::Draft {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
error[E0609]: no field `status` on type `ProgramData`
--> src\lib.rs:3345:29
|
3345 | if program_data.status == ProgramStatus::Draft {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
error[E0609]: no field `status` on type `&ProgramData`
--> src\lib.rs:4402:25
|
4402 | if program_data.status == ProgramStatus::Draft {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
error[E0609]: no field `status` on type `ProgramData`
--> src\lib.rs:4480:25
|
4480 | if program_data.status == ProgramStatus::Draft {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
error[E0609]: no field `status` on type `ProgramData`
--> src\lib.rs:4514:25
|
4514 | if program_data.status == ProgramStatus::Draft {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
error[E0599]: no associated function or constant named `is_delegate_caller`
found for struct `ProgramEscrowContract` in the current scope
--> src\lib.rs:4813:40
|
2290 | pub struct ProgramEscrowContract;
| -------------------------------- associated function or constant
`is_delegate_caller` not found for this struct
...
4813 | let caller_is_delegate = Self::is_delegate_caller(&env,
&program_data, &caller);
| ^^^^^^^^^^^^^^^^^^ associated
function or constant not found in `ProgramEscrowContract`
error[E0599]: no associated function or constant named
`check_and_update_delegate_meta_rate_limit` found for struct
`ProgramEscrowContract` in the current scope
--> src\lib.rs:4815:19
|
2290 | pub struct ProgramEscrowContract;
| -------------------------------- associated function or constant
`check_and_update_delegate_meta_rate_limit` not found for this struct
...
4815 | Self::check_and_update_delegate_meta_rate_limit(&env,
&program_id);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated
function or constant not found in `ProgramEscrowContract`
error[E0063]: missing field `decimals` in initializer of
`TokenAllowlistUpdatedEvent`
--> src\lib.rs:6519:17
|
6519 | TokenAllowlistUpdatedEvent {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `decimals`
error[E0308]: mismatched types
--> src\lib.rs:6547:37
|
6547 | if reported_decimals != decimals {
| ----------------- ^^^^^^^^ expected `Result<u32,
ConversionError>`, found `u32`
| |
| expected because this is `core::result::Result<u32,
ConversionError>`
|
= note: expected enum `core::result::Result<u32, ConversionError>`
found type `u32`
help: try wrapping the expression in `core::prelude::v1::Ok`
|
6547 | if reported_decimals != core::prelude::v1::Ok(decimals) {
| ++++++++++++++++++++++ +
error[E0609]: no field `status` on type `ProgramData`
--> src\lib.rs:7663:25
|
7663 | if program_data.status == ProgramStatus::Draft {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
error[E0609]: no field `status` on type `ProgramData`
--> src\lib.rs:7808:25
|
7808 | if program_data.status == ProgramStatus::Draft {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
error[E0609]: no field `status` on type `ProgramData`
--> src\lib.rs:8076:25
|
8076 | if program_data.status == ProgramStatus::Draft {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
error[E0609]: no field `status` on type `ProgramData`
--> src\lib.rs:8161:25
|
8161 | if program_data.status == ProgramStatus::Draft {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
error[E0609]: no field `status` on type `ProgramData`
--> src\lib.rs:8309:20
|
8309 | if program.status == ProgramStatus::Draft {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
warning: use of deprecated associated function
`ProgramEscrowContract::get_program_info`: Use get_program_info_v2 instead
--> src\lib.rs:8602:30
|
8602 | let data = Self::get_program_info(env.clone());
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated associated function
`ProgramEscrowContract::get_program_info`: Use get_program_info_v2 instead
--> src\lib.rs:8696:34
|
8696 | let program_data = Self::get_program_info(env.clone());
| ^^^^^^^^^^^^^^^^
error[E0609]: no field `status` on type `ProgramData`
--> src\lib.rs:8698:25
|
8698 | if program_data.status == ProgramStatus::Draft {
| ^^^^^^ unknown field
|
= note: available fields are: `program_id`, `total_funds`,
`remaining_balance`, `authorized_payout_key`, `delegate` ... and 10 others
warning: use of deprecated associated function
`ProgramEscrowContract::get_program_info`: Use get_program_info_v2 instead
--> src\lib.rs:8763:34
|
8763 | let program_data = Self::get_program_info(env.clone());
| ^^^^^^^^^^^^^^^^
warning: unused variable: `state`
--> src\dynamic_pricing.rs:365:9
|
365 | state: &PricingState,
| ^^^^^ help: if this is intentional, prefix it with an
underscore: `_state`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by
default
warning: unused variable: `config`
--> src\dynamic_pricing.rs:427:9
|
427 | config: &DynamicPricingConfig,
| ^^^^^^ help: if this is intentional, prefix it with an
underscore: `_config`
warning: unused variable: `state`
--> src\dynamic_pricing.rs:429:9
|
429 | state: &PricingState,
| ^^^^^ help: if this is intentional, prefix it with an
underscore: `_state`
warning: unused variable: `program_data`
--> src\lib.rs:8199:13
|
8199 | let program_data =
| ^^^^^^^^^^^^ help: if this is intentional, prefix it with
an underscore: `_program_data`
Some errors have detailed explanations: E0063, E0308, E0560, E0592, E0599,
E0609.
For more information about an error, try `rustc --explain E0063`.
warning: `program-escrow` (lib) generated 10 warnings
error: could not compile `program-escrow` (lib) due to 24 previous errors; 10
warnings emitted