Skip to content

Optional developers reward #15

Optional developers reward

Optional developers reward #15

Triggered via pull request November 19, 2023 22:18
Status Failure
Total duration 4m 59s
Artifacts
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 47 warnings
casting integer literal to `u64` is unnecessary: core/src/pool_commands/refresh.rs#L364
error: casting integer literal to `u64` is unnecessary --> core/src/pool_commands/refresh.rs:364:46 | 364 | let increment: TokenAmount = (2 as u64).try_into().unwrap(); | ^^^^^^^^^^ help: try: `2_u64` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
casting integer literal to `u64` is unnecessary: core/src/pool_commands/refresh.rs#L189
error: casting integer literal to `u64` is unnecessary --> core/src/pool_commands/refresh.rs:189:100 | 189 | dev_reward_token.amount = TokenAmount::try_from((valid_in_oracle_boxes.len() as u64) - (1 as u64)).unwrap(); | ^^^^^^^^^^ help: try: `1_u64` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast = note: `-D clippy::unnecessary-cast` implied by `-D warnings`
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`: core/src/pool_commands/refresh.rs#L182
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> core/src/pool_commands/refresh.rs:182:5 | 182 | / match dev_reward_ergo_tree_bytes { 183 | | // The division was valid 184 | | Some(tbs) => { 185 | | let tb = base16::decode(tbs.as_str()).unwrap(); ... | 196 | | None => {} 197 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match = note: `-D clippy::single-match` implied by `-D warnings` help: try this | 182 ~ if let Some(tbs) = dev_reward_ergo_tree_bytes { 183 + let tb = base16::decode(tbs.as_str()).unwrap(); 184 + let t: ErgoTree = ErgoTree::sigma_parse_bytes(tb.as_slice()).unwrap(); 185 + let mut builder = ErgoBoxCandidateBuilder::new(*BASE_FEE, t, height.0); 186 + let mut dev_reward_token = in_pool_box.reward_token(); 187 + dev_reward_token.amount = TokenAmount::try_from((valid_in_oracle_boxes.len() as u64) - (1 as u64)).unwrap(); 188 + builder.add_token(dev_reward_token.into()); 189 + let devout = builder.build().unwrap(); 190 + output_candidates.push(devout); 191 + } |
casting integer literal to `u64` is unnecessary: core/src/pool_commands/refresh.rs#L364
error: casting integer literal to `u64` is unnecessary --> core/src/pool_commands/refresh.rs:364:46 | 364 | let increment: TokenAmount = (2 as u64).try_into().unwrap(); | ^^^^^^^^^^ help: try: `2_u64` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
casting integer literal to `u64` is unnecessary: core/src/pool_commands/refresh.rs#L189
error: casting integer literal to `u64` is unnecessary --> core/src/pool_commands/refresh.rs:189:100 | 189 | dev_reward_token.amount = TokenAmount::try_from((valid_in_oracle_boxes.len() as u64) - (1 as u64)).unwrap(); | ^^^^^^^^^^ help: try: `1_u64` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast = note: `-D clippy::unnecessary-cast` implied by `-D warnings`
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`: core/src/pool_commands/refresh.rs#L182
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> core/src/pool_commands/refresh.rs:182:5 | 182 | / match dev_reward_ergo_tree_bytes { 183 | | // The division was valid 184 | | Some(tbs) => { 185 | | let tb = base16::decode(tbs.as_str()).unwrap(); ... | 196 | | None => {} 197 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match = note: `-D clippy::single-match` implied by `-D warnings` help: try this | 182 ~ if let Some(tbs) = dev_reward_ergo_tree_bytes { 183 + let tb = base16::decode(tbs.as_str()).unwrap(); 184 + let t: ErgoTree = ErgoTree::sigma_parse_bytes(tb.as_slice()).unwrap(); 185 + let mut builder = ErgoBoxCandidateBuilder::new(*BASE_FEE, t, height.0); 186 + let mut dev_reward_token = in_pool_box.reward_token(); 187 + dev_reward_token.amount = TokenAmount::try_from((valid_in_oracle_boxes.len() as u64) - (1 as u64)).unwrap(); 188 + builder.add_token(dev_reward_token.into()); 189 + let devout = builder.build().unwrap(); 190 + output_candidates.push(devout); 191 + } |
push
buildx failed with: ERROR: invalid tag "***/oracle-core:320/merge": invalid reference format
build (linux/amd64, x86_64)
The following actions uses node12 which is deprecated and will be forced to run on node16: docker/setup-buildx-action@v1, docker/metadata-action@v3. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build (linux/amd64, x86_64)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
No Docker image version has been generated. Check tags input.
build (linux/amd64, x86_64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
No Docker tag has been generated. Check tags input.
build (linux/amd64, x86_64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/amd64, x86_64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The following actions uses node12 which is deprecated and will be forced to run on node16: docker/setup-buildx-action@v1, docker/metadata-action@v3. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build (linux/arm64, aarch64)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
No Docker image version has been generated. Check tags input.
build (linux/arm64, aarch64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
No Docker tag has been generated. Check tags input.
build (linux/arm64, aarch64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (linux/arm64, aarch64)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
push
The following actions uses node12 which is deprecated and will be forced to run on node16: docker/setup-buildx-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
push
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
push
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
push
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
push
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
push
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
push
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
push
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
push
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
push
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
push
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/