Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

InstanceState by ref #237

InstanceState by ref

InstanceState by ref #237

Triggered via pull request May 3, 2024 18:54
Status Failure
Total duration 6m 19s
Artifacts

build_windows.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 1 warning
the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied: src/testing/basic_test.rs#L172
error[E0277]: the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied --> src/testing/basic_test.rs:172:17 | 172 | Arc::new(TestInstanceState {}), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `hotshot_types::traits::BlockPayload` is not implemented for `hotshot_example_types::block_types::TestBlockPayload`
the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied: src/testing/basic_test.rs#L274
error[E0277]: the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied --> src/testing/basic_test.rs:274:41 | 274 | let block_payload = BlockPayload::from_bytes( | _________________________________________^ 275 | | &encoded_transactions, 276 | | <TestBlockHeader as BlockHeader<TestTypes>>::metadata( 277 | | &qc_proposal.block_header, 278 | | ), 279 | | ); | |_____________________^ the trait `hotshot_types::traits::BlockPayload` is not implemented for `hotshot_example_types::block_types::TestBlockPayload`
the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied: src/testing/basic_test.rs#L276
error[E0277]: the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied --> src/testing/basic_test.rs:276:25 | 276 | / <TestBlockHeader as BlockHeader<TestTypes>>::metadata( 277 | | &qc_proposal.block_header, 278 | | ), | |_________________________^ the trait `hotshot_types::traits::BlockPayload` is not implemented for `hotshot_example_types::block_types::TestBlockPayload`
the trait bound `hotshot_example_types::block_types::TestBlockHeader: hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not satisfied: src/testing/basic_test.rs#L276
error[E0277]: the trait bound `hotshot_example_types::block_types::TestBlockHeader: hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not satisfied --> src/testing/basic_test.rs:276:26 | 276 | <TestBlockHeader as BlockHeader<TestTypes>>::metadata( | ^^^^^^^^^^^^^^^ the trait `hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not implemented for `hotshot_example_types::block_types::TestBlockHeader` | help: trait impl with same name found --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/136dd95/crates/example-types/src/block_types.rs:193:1 | 193 | / impl<TYPES: NodeType<BlockHeader = Self, BlockPayload = TestBlockPayload>> BlockHeader<TYPES> 194 | | for TestBlockHeader | |_______________________^ = note: perhaps two different versions of crate `hotshot_types` are being used?
the trait bound `hotshot_example_types::block_types::TestBlockHeader: hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not satisfied: src/testing/basic_test.rs#L251
error[E0277]: the trait bound `hotshot_example_types::block_types::TestBlockHeader: hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not satisfied --> src/testing/basic_test.rs:251:18 | 251 | <TestBlockHeader as BlockHeader<TestTypes>>::builder_commitment( | ^^^^^^^^^^^^^^^ the trait `hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not implemented for `hotshot_example_types::block_types::TestBlockHeader` | help: trait impl with same name found --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/136dd95/crates/example-types/src/block_types.rs:193:1 | 193 | / impl<TYPES: NodeType<BlockHeader = Self, BlockPayload = TestBlockPayload>> BlockHeader<TYPES> 194 | | for TestBlockHeader | |_______________________^ = note: perhaps two different versions of crate `hotshot_types` are being used?
the trait bound `hotshot_example_types::block_types::TestBlockHeader: hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not satisfied: src/testing/basic_test.rs#L247
error[E0277]: the trait bound `hotshot_example_types::block_types::TestBlockHeader: hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not satisfied --> src/testing/basic_test.rs:247:18 | 247 | <TestBlockHeader as BlockHeader<TestTypes>>::payload_commitment( | ^^^^^^^^^^^^^^^ the trait `hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not implemented for `hotshot_example_types::block_types::TestBlockHeader` | help: trait impl with same name found --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/136dd95/crates/example-types/src/block_types.rs:193:1 | 193 | / impl<TYPES: NodeType<BlockHeader = Self, BlockPayload = TestBlockPayload>> BlockHeader<TYPES> 194 | | for TestBlockHeader | |_______________________^ = note: perhaps two different versions of crate `hotshot_types` are being used?
the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied: src/testing/basic_test.rs#L204
error[E0277]: the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied --> src/testing/basic_test.rs:204:37 | 204 | let _metadata = <TestBlockHeader as BlockHeader<TestTypes>>::metadata( | _____________________________________^ 205 | | &sqc_msgs[(i - 1) as usize].proposal.data.block_header, 206 | | ); | |_____________________^ the trait `hotshot_types::traits::BlockPayload` is not implemented for `hotshot_example_types::block_types::TestBlockPayload`
the trait bound `hotshot_example_types::block_types::TestBlockHeader: hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not satisfied: src/testing/basic_test.rs#L204
error[E0277]: the trait bound `hotshot_example_types::block_types::TestBlockHeader: hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not satisfied --> src/testing/basic_test.rs:204:38 | 204 | let _metadata = <TestBlockHeader as BlockHeader<TestTypes>>::metadata( | ^^^^^^^^^^^^^^^ the trait `hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not implemented for `hotshot_example_types::block_types::TestBlockHeader` | help: trait impl with same name found --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/136dd95/crates/example-types/src/block_types.rs:193:1 | 193 | / impl<TYPES: NodeType<BlockHeader = Self, BlockPayload = TestBlockPayload>> BlockHeader<TYPES> 194 | | for TestBlockHeader | |_______________________^ = note: perhaps two different versions of crate `hotshot_types` are being used?
no method named `builder_commitment` found for struct `hotshot_example_types::block_types::TestBlockPayload` in the current scope: src/testing/basic_test.rs#L189
error[E0599]: no method named `builder_commitment` found for struct `hotshot_example_types::block_types::TestBlockPayload` in the current scope --> src/testing/basic_test.rs:189:52 | 189 | let builder_commitment = block_payload.builder_commitment(&metadata); | ^^^^^^^^^^^^^^^^^^ method not found in `TestBlockPayload` | ::: /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/136dd95/crates/types/src/traits/block_contents.rs:103:8 | 103 | fn builder_commitment(&self, metadata: &Self::Metadata) -> BuilderCommitment; | ------------------ the method is available for `hotshot_example_types::block_types::TestBlockPayload` here | = help: items from traits can only be used if the trait is in scope help: trait `BlockPayload` which provides `builder_commitment` is implemented but not in scope; perhaps you want to import it | 20 + use hotshot_types::traits::block_contents::BlockPayload; |
mismatched types: src/testing/basic_test.rs#L172
error[E0308]: mismatched types --> src/testing/basic_test.rs:172:17 | 170 | let (block_payload, metadata) = <TestBlockPayload as BlockPayload>::from_transactions( | ----------------------------------------------------- arguments to this function are incorrect 171 | vec![tx.clone()], 172 | Arc::new(TestInstanceState {}), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&_`, found `Arc<TestInstanceState>` | = note: expected reference `&_` found struct `std::sync::Arc<hotshot_example_types::state_types::TestInstanceState>` note: associated function defined here --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/54b6198/crates/types/src/traits/block_contents.rs:71:8 | 71 | fn from_transactions( | ^^^^^^^^^^^^^^^^^ help: consider borrowing here | 172 | &Arc::new(TestInstanceState {}), | +
the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied: src/testing/basic_test.rs#L170
error[E0277]: the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied --> src/testing/basic_test.rs:170:45 | 170 | let (block_payload, metadata) = <TestBlockPayload as BlockPayload>::from_transactions( | _____________________________________________^ 171 | | vec![tx.clone()], 172 | | Arc::new(TestInstanceState {}), 173 | | ) | |_____________^ the trait `hotshot_types::traits::BlockPayload` is not implemented for `hotshot_example_types::block_types::TestBlockPayload`
the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied: src/testing/basic_test.rs#L144
error[E0277]: the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied --> src/testing/basic_test.rs:144:17 | 144 | metadata: TestMetadata, | ^^^^^^^^^^^^^^^^^^^^^^ the trait `hotshot_types::traits::BlockPayload` is not implemented for `hotshot_example_types::block_types::TestBlockPayload`
the trait bound `hotshot_example_types::state_types::TestInstanceState: hotshot_types::traits::states::InstanceState` is not satisfied: src/testing/basic_test.rs#L80
error[E0277]: the trait bound `hotshot_example_types::state_types::TestInstanceState: hotshot_types::traits::states::InstanceState` is not satisfied --> src/testing/basic_test.rs:80:34 | 80 | type InstanceState = TestInstanceState; | ^^^^^^^^^^^^^^^^^ the trait `hotshot_types::traits::states::InstanceState` is not implemented for `hotshot_example_types::state_types::TestInstanceState` | help: trait impl with same name found --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/136dd95/crates/example-types/src/state_types.rs:23:1 | 23 | impl InstanceState for TestInstanceState {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: perhaps two different versions of crate `hotshot_types` are being used? note: required by a bound in `hotshot_types::traits::node_implementation::NodeType::InstanceState` --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/54b6198/crates/types/src/traits/node_implementation.rs:213:25 | 213 | type InstanceState: InstanceState; | ^^^^^^^^^^^^^ required by this bound in `NodeType::InstanceState`
the trait bound `hotshot_example_types::state_types::TestValidatedState: hotshot_types::traits::ValidatedState<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not satisfied: src/testing/basic_test.rs#L79
error[E0277]: the trait bound `hotshot_example_types::state_types::TestValidatedState: hotshot_types::traits::ValidatedState<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not satisfied --> src/testing/basic_test.rs:79:35 | 79 | type ValidatedState = TestValidatedState; | ^^^^^^^^^^^^^^^^^^ the trait `hotshot_types::traits::ValidatedState<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not implemented for `hotshot_example_types::state_types::TestValidatedState` | note: required by a bound in `hotshot_types::traits::node_implementation::NodeType::ValidatedState` --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/54b6198/crates/types/src/traits/node_implementation.rs:216:26 | 216 | type ValidatedState: ValidatedState<Self, Instance = Self::InstanceState, Time = Self::Time>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `NodeType::ValidatedState`
the trait bound `hotshot_example_types::block_types::TestTransaction: hotshot_types::traits::block_contents::Transaction` is not satisfied: src/testing/basic_test.rs#L78
error[E0277]: the trait bound `hotshot_example_types::block_types::TestTransaction: hotshot_types::traits::block_contents::Transaction` is not satisfied --> src/testing/basic_test.rs:78:32 | 78 | type Transaction = TestTransaction; | ^^^^^^^^^^^^^^^ the trait `hotshot_types::traits::block_contents::Transaction` is not implemented for `hotshot_example_types::block_types::TestTransaction` | help: trait impl with same name found --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/136dd95/crates/example-types/src/block_types.rs:70:1 | 70 | impl Transaction for TestTransaction {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: perhaps two different versions of crate `hotshot_types` are being used? note: required by a bound in `hotshot_types::traits::node_implementation::NodeType::Transaction` --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/54b6198/crates/types/src/traits/node_implementation.rs:210:23 | 210 | type Transaction: Transaction; | ^^^^^^^^^^^ required by this bound in `NodeType::Transaction`
the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied: src/testing/basic_test.rs#L76
error[E0277]: the trait bound `hotshot_example_types::block_types::TestBlockPayload: hotshot_types::traits::BlockPayload` is not satisfied --> src/testing/basic_test.rs:76:33 | 76 | type BlockPayload = TestBlockPayload; | ^^^^^^^^^^^^^^^^ the trait `hotshot_types::traits::BlockPayload` is not implemented for `hotshot_example_types::block_types::TestBlockPayload` | note: required by a bound in `hotshot_types::traits::node_implementation::NodeType::BlockPayload` --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/54b6198/crates/types/src/traits/node_implementation.rs:204:24 | 204 | type BlockPayload: BlockPayload<Instance = Self::InstanceState, Transaction = Self::Transaction>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `NodeType::BlockPayload`
the trait bound `hotshot_example_types::block_types::TestBlockHeader: hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not satisfied: src/testing/basic_test.rs#L75
error[E0277]: the trait bound `hotshot_example_types::block_types::TestBlockHeader: hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not satisfied --> src/testing/basic_test.rs:75:32 | 75 | type BlockHeader = TestBlockHeader; | ^^^^^^^^^^^^^^^ the trait `hotshot_types::traits::block_contents::BlockHeader<testing::basic_test::tests::test_builder::{closure#0}::TestTypes>` is not implemented for `hotshot_example_types::block_types::TestBlockHeader` | help: trait impl with same name found --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/136dd95/crates/example-types/src/block_types.rs:193:1 | 193 | / impl<TYPES: NodeType<BlockHeader = Self, BlockPayload = TestBlockPayload>> BlockHeader<TYPES> 194 | | for TestBlockHeader | |_______________________^ = note: perhaps two different versions of crate `hotshot_types` are being used? note: required by a bound in `hotshot_types::traits::node_implementation::NodeType::BlockHeader` --> /home/runner/.cargo/git/checkouts/hotshot-0ac703037ea89b98/54b6198/crates/types/src/traits/node_implementation.rs:200:23 | 200 | type BlockHeader: BlockHeader<Self>; | ^^^^^^^^^^^^^^^^^ required by this bound in `NodeType::BlockHeader`
windows
Process completed with exit code 1.
windows
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: arduino/setup-protoc@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.