[INFO] fetching crate sapio-contrib 0.2.0... [INFO] checking sapio-contrib-0.2.0 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] extracting crate sapio-contrib 0.2.0 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate sapio-contrib 0.2.0 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate sapio-contrib 0.2.0 [INFO] finished tweaking crates.io crate sapio-contrib 0.2.0 [INFO] tweaked toml for crates.io crate sapio-contrib 0.2.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 55 packages [INFO] [stderr] Adding autocfg v0.1.8 (latest: v1.2.0) [INFO] [stderr] Adding base64 v0.13.1 (latest: v0.22.0) [INFO] [stderr] Adding bech32 v0.7.3 (latest: v0.11.0) [INFO] [stderr] Adding bech32 v0.8.1 (latest: v0.11.0) [INFO] [stderr] Adding bitcoin_hashes v0.9.7 (latest: v0.14.0) [INFO] [stderr] Adding bitcoin_hashes v0.10.0 (latest: v0.14.0) [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.5.0) [INFO] [stderr] Adding cloudabi v0.0.3 (latest: v0.1.0) [INFO] [stderr] Adding rand v0.6.5 (latest: v0.8.5) [INFO] [stderr] Adding rand_chacha v0.1.1 (latest: v0.3.1) [INFO] [stderr] Adding rand_core v0.3.1 (latest: v0.6.4) [INFO] [stderr] Adding rand_core v0.4.2 (latest: v0.6.4) [INFO] [stderr] Adding rand_hc v0.1.0 (latest: v0.3.2) [INFO] [stderr] Adding rand_isaac v0.1.1 (latest: v0.3.0) [INFO] [stderr] Adding rand_jitter v0.1.4 (latest: v0.4.0) [INFO] [stderr] Adding rand_os v0.1.3 (latest: v0.2.2) [INFO] [stderr] Adding rand_pcg v0.1.2 (latest: v0.3.1) [INFO] [stderr] Adding rand_xorshift v0.1.1 (latest: v0.3.0) [INFO] [stderr] Adding rdrand v0.4.0 (latest: v0.8.3) [INFO] [stderr] Adding sapio-bitcoin v0.26.0 (latest: v0.28.2) [INFO] [stderr] Adding sapio-miniscript v5.1.1 (latest: v7.0.1) [INFO] [stderr] Adding sapio-secp256k1 v0.20.1 (latest: v0.28.1) [INFO] [stderr] Adding secp256k1-sys v0.4.2 (latest: v0.9.2) [INFO] [stderr] Adding serde_derive_internals v0.26.0 (latest: v0.29.0) [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.57) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sapio_macros v0.2.4 [INFO] [stderr] Downloaded bitcoin_hashes v0.10.0 [INFO] [stderr] Downloaded bech32 v0.8.1 [INFO] [stderr] Downloaded sapio-ctv-emulator-trait v0.2.4 [INFO] [stderr] Downloaded sapio-base v0.2.4 [INFO] [stderr] Downloaded sapio v0.2.4 [INFO] [stderr] Downloaded sapio-secp256k1 v0.28.1 [INFO] [stderr] Downloaded sapio-miniscript v7.0.1 [INFO] [stderr] Downloaded sapio-bitcoin v0.28.2 [INFO] [stderr] Downloaded sapio-secp256k1-sys v0.9.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aa78c88591a64017eeb13c775d730303a84ae336766559a793949638085b14a1 [INFO] running `Command { std: "docker" "start" "-a" "aa78c88591a64017eeb13c775d730303a84ae336766559a793949638085b14a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aa78c88591a64017eeb13c775d730303a84ae336766559a793949638085b14a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa78c88591a64017eeb13c775d730303a84ae336766559a793949638085b14a1", kill_on_drop: false }` [INFO] [stdout] aa78c88591a64017eeb13c775d730303a84ae336766559a793949638085b14a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d1b2b5c298364970874a296c1fcca599dd24b7ce3960f03e307a65d565e99b2 [INFO] running `Command { std: "docker" "start" "-a" "6d1b2b5c298364970874a296c1fcca599dd24b7ce3960f03e307a65d565e99b2", kill_on_drop: false }` [INFO] [stderr] Compiling schemars v0.8.16 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking dyn-clone v1.0.17 [INFO] [stderr] Checking bech32 v0.8.1 [INFO] [stderr] Checking bech32 v0.7.3 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling sapio-secp256k1-sys v0.9.2 [INFO] [stderr] Compiling secp256k1-sys v0.4.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.57 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling serde_derive_internals v0.26.0 [INFO] [stderr] Compiling schemars_derive v0.8.16 [INFO] [stderr] Compiling sapio_macros v0.2.4 [INFO] [stderr] Checking serde v1.0.197 [INFO] [stderr] Checking serde_json v1.0.115 [INFO] [stderr] Checking bitcoin_hashes v0.10.0 [INFO] [stderr] Checking sapio-secp256k1 v0.28.1 [INFO] [stderr] Checking sapio-secp256k1 v0.20.1 [INFO] [stderr] Checking bitcoin_hashes v0.9.7 [INFO] [stderr] Checking sapio-bitcoin v0.26.0 [INFO] [stderr] Checking sapio-bitcoin v0.28.2 [INFO] [stderr] Checking sapio-miniscript v5.1.1 [INFO] [stderr] Checking sapio-miniscript v7.0.1 [INFO] [stderr] Checking sapio-base v0.2.4 [INFO] [stderr] Checking sapio-ctv-emulator-trait v0.2.4 [INFO] [stderr] Checking sapio v0.2.4 [INFO] [stderr] Checking sapio-contrib v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `bitcoin` is imported redundantly [INFO] [stdout] --> src/contracts/channel.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use bitcoin; [INFO] [stdout] | ^^^^^^^ the item `bitcoin` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `DynamicContract` is imported redundantly [INFO] [stdout] --> src/contracts/dynamic.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sapio::contract::DynamicContract; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | use sapio::contract::*; [INFO] [stdout] | ------------------ the item `DynamicContract` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `CompilationError` is imported redundantly [INFO] [stdout] --> src/contracts/eltoo_channel.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | use contract::*; [INFO] [stdout] | ----------- the item `CompilationError` is already imported here [INFO] [stdout] 11 | use sapio::contract::actions::ConditionalCompileType; [INFO] [stdout] 12 | use sapio::contract::error::CompilationError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bitcoin` is imported redundantly [INFO] [stdout] --> src/contracts/eltoo_channel.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use bitcoin; [INFO] [stdout] | ^^^^^^^ the item `bitcoin` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `DynamicContract` is imported redundantly [INFO] [stdout] --> src/contracts/dynamic.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sapio::contract::DynamicContract; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | use sapio::contract::*; [INFO] [stdout] | ------------------ the item `DynamicContract` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `CompilationError` is imported redundantly [INFO] [stdout] --> src/contracts/eltoo_channel.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | use contract::*; [INFO] [stdout] | ----------- the item `CompilationError` is already imported here [INFO] [stdout] 11 | use sapio::contract::actions::ConditionalCompileType; [INFO] [stdout] 12 | use sapio::contract::error::CompilationError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bitcoin` is imported redundantly [INFO] [stdout] --> src/contracts/eltoo_channel.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use bitcoin; [INFO] [stdout] | ^^^^^^^ the item `bitcoin` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/basic_examples.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | decl_then! {begin_contest} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/basic_examples.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | decl_then! {begin_contest} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / decl_then! { [INFO] [stdout] 14 | | /// What to do when the timeout expires [INFO] [stdout] 15 | | explodes [INFO] [stdout] 16 | | } [INFO] [stdout] | |_____^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | / decl_then! { [INFO] [stdout] 18 | | /// what to do when the holder wishes to strike [INFO] [stdout] 19 | | strikes [INFO] [stdout] 20 | | } [INFO] [stdout] | |_____^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / decl_then! { [INFO] [stdout] 14 | | /// What to do when the timeout expires [INFO] [stdout] 15 | | explodes [INFO] [stdout] 16 | | } [INFO] [stdout] | |_____^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `then_fns` has an incompatible type for trait [INFO] [stdout] --> src/contracts/dynamic.rs:24:34 [INFO] [stdout] | [INFO] [stdout] 24 | fn then_fns<'a>(&'a self) -> &'a [fn() -> Option>] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `FinishOrFunc<'a, D<'static>, ..., ..., ...>`, found `ThenFunc<'a, D<'static>>` [INFO] [stdout] | help: change the output type to match the trait: `&'a [fn() -> std::option::Option, (), ThenFuncTypeTag, sapio::contract::actions::WebAPIDisabled>>]` [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&'a D<'_>) -> &'a [fn() -> std::option::Option, (), ThenFuncTypeTag, sapio::contract::actions::WebAPIDisabled>>]` [INFO] [stdout] found signature `fn(&'a D<'_>) -> &'a [fn() -> std::option::Option>>]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | / decl_then! { [INFO] [stdout] 18 | | /// what to do when the holder wishes to strike [INFO] [stdout] 19 | | strikes [INFO] [stdout] 20 | | } [INFO] [stdout] | |_____^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `then_fns` has an incompatible type for trait [INFO] [stdout] --> src/contracts/dynamic.rs:24:34 [INFO] [stdout] | [INFO] [stdout] 24 | fn then_fns<'a>(&'a self) -> &'a [fn() -> Option>] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `FinishOrFunc<'a, D<'static>, ..., ..., ...>`, found `ThenFunc<'a, D<'static>>` [INFO] [stdout] | help: change the output type to match the trait: `&'a [fn() -> std::option::Option, (), ThenFuncTypeTag, sapio::contract::actions::WebAPIDisabled>>]` [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&'a D<'_>) -> &'a [fn() -> std::option::Option, (), ThenFuncTypeTag, sapio::contract::actions::WebAPIDisabled>>]` [INFO] [stdout] found signature `fn(&'a D<'_>) -> &'a [fn() -> std::option::Option>>]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `metadata`, `ensure_amount` [INFO] [stdout] --> src/contracts/dynamic.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | impl AnyContract for D<'static> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `metadata`, `ensure_amount` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn metadata(&'a self, _: sapio::Context) -> Result { todo!() }` [INFO] [stdout] = help: implement the missing item: `fn ensure_amount(&'a self, _: sapio::Context) -> Result { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `metadata`, `ensure_amount` [INFO] [stdout] --> src/contracts/dynamic.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | impl AnyContract for D<'static> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `metadata`, `ensure_amount` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn metadata(&'a self, _: sapio::Context) -> Result { todo!() }` [INFO] [stdout] = help: implement the missing item: `fn ensure_amount(&'a self, _: sapio::Context) -> Result { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/federated_sidechain.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / decl_then! { [INFO] [stdout] 58 | | /// Should only be defined when RecoveryState is in CanBeginRecovery [INFO] [stdout] 59 | | begin_recovery} [INFO] [stdout] | |___________________^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/federated_sidechain.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / decl_then! { [INFO] [stdout] 58 | | /// Should only be defined when RecoveryState is in CanBeginRecovery [INFO] [stdout] 59 | | begin_recovery} [INFO] [stdout] | |___________________^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/staked_signer.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | / decl_then!( [INFO] [stdout] 74 | | /// The transition from Operational to Closing [INFO] [stdout] 75 | | begin_redeem [INFO] [stdout] 76 | | ); [INFO] [stdout] | |_____^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/staked_signer.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | #[then(guarded_by = "[Self::staking_key]")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/staked_signer.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | / decl_then!( [INFO] [stdout] 74 | | /// The transition from Operational to Closing [INFO] [stdout] 75 | | begin_redeem [INFO] [stdout] 76 | | ); [INFO] [stdout] | |_____^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/staked_signer.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | #[then(guarded_by = "[Self::staking_key]")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:32:63 [INFO] [stdout] | [INFO] [stdout] 32 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/basic_examples.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | decl_then! {begin_contest} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:32:63 [INFO] [stdout] | [INFO] [stdout] 32 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/basic_examples.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | decl_then! {begin_contest} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:78:58 [INFO] [stdout] | [INFO] [stdout] 78 | self.participants.iter().map(|k| Clause::Key(*k)).collect(), [INFO] [stdout] | ----------- ^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/basic_examples.rs:89:29 [INFO] [stdout] | [INFO] [stdout] 89 | self.amount.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:78:58 [INFO] [stdout] | [INFO] [stdout] 78 | self.participants.iter().map(|k| Clause::Key(*k)).collect(), [INFO] [stdout] | ----------- ^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/basic_examples.rs:89:29 [INFO] [stdout] | [INFO] [stdout] 89 | self.amount.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:128:38 [INFO] [stdout] | [INFO] [stdout] 128 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:128:63 [INFO] [stdout] | [INFO] [stdout] 128 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/basic_examples.rs:185:37 [INFO] [stdout] | [INFO] [stdout] 185 | self.alice_escrow.0.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:186:41 [INFO] [stdout] | [INFO] [stdout] 186 | &Compiled::from_address(self.alice_escrow.1.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:128:38 [INFO] [stdout] | [INFO] [stdout] 128 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/basic_examples.rs:190:35 [INFO] [stdout] | [INFO] [stdout] 190 | self.bob_escrow.0.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:128:63 [INFO] [stdout] | [INFO] [stdout] 128 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:191:41 [INFO] [stdout] | [INFO] [stdout] 191 | &Compiled::from_address(self.bob_escrow.1.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/basic_examples.rs:185:37 [INFO] [stdout] | [INFO] [stdout] 185 | self.alice_escrow.0.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:186:41 [INFO] [stdout] | [INFO] [stdout] 186 | &Compiled::from_address(self.alice_escrow.1.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/basic_examples.rs:190:35 [INFO] [stdout] | [INFO] [stdout] 190 | self.bob_escrow.0.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/basic_examples.rs:191:41 [INFO] [stdout] | [INFO] [stdout] 191 | &Compiled::from_address(self.bob_escrow.1.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/channel.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 45 | let resolution = Compiled::from_address( [INFO] [stdout] | ---------------------- arguments to this function are incorrect [INFO] [stdout] 46 | / Descriptor::::Pkh(miniscript::descriptor::Pkh::new(public_keys[2])) [INFO] [stdout] 47 | | .address(bitcoin::Network::Regtest) [INFO] [stdout] 48 | | .expect("An Address"), [INFO] [stdout] | |_____________________________________^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/contracts/channel.rs:74:23 [INFO] [stdout] | [INFO] [stdout] 74 | let mut ctx = sapio::contract::Context::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 75 | bitcoin::Network::Regtest, [INFO] [stdout] | ------------------------- expected `Network`, found `sapio_bitcoin::Network` [INFO] [stdout] 76 | Amount::from_sat(10000), [INFO] [stdout] | ----------------------- expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Network` and `Network` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Network` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/network/constants.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 61 | / user_enum! { [INFO] [stdout] 62 | | /// The cryptocurrency to act on [INFO] [stdout] 63 | | #[derive(Copy, PartialEq, Eq, PartialOrd, Ord, Clone, Hash, Debug)] [INFO] [stdout] 64 | | pub enum Network { [INFO] [stdout] ... | [INFO] [stdout] 73 | | } [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: `Network` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/network/constants.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | / user_enum! { [INFO] [stdout] 63 | | /// The cryptocurrency to act on [INFO] [stdout] 64 | | #[derive(Copy, PartialEq, Eq, PartialOrd, Ord, Clone, Hash, Debug)] [INFO] [stdout] 65 | | pub enum Network { [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/context.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] = note: this error originates in the macro `user_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/channel.rs:232:38 [INFO] [stdout] | [INFO] [stdout] 232 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/channel.rs:232:63 [INFO] [stdout] | [INFO] [stdout] 232 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/channel.rs:265:29 [INFO] [stdout] | [INFO] [stdout] 265 | self.amount.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/channel.rs:285:37 [INFO] [stdout] | [INFO] [stdout] 285 | .add_output(self.amount.try_into()?, &self.resolution, None)? [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/coin_pool.rs:53:76 [INFO] [stdout] | [INFO] [stdout] 53 | Amount::from_sat(a.refunds.iter().map(|x| Amount::from(x.1).as_sat()).sum()), [INFO] [stdout] | ------------ ^^^ expected `Amount`, found `AmountF64` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/convert/mod.rs:585:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/coin_pool.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 52 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 53 | Amount::from_sat(a.refunds.iter().map(|x| Amount::from(x.1).as_sat()).sum()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/channel.rs:232:38 [INFO] [stdout] | [INFO] [stdout] 232 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/coin_pool.rs:58:76 [INFO] [stdout] | [INFO] [stdout] 58 | Amount::from_sat(b.refunds.iter().map(|x| Amount::from(x.1).as_sat()).sum()), [INFO] [stdout] | ------------ ^^^ expected `Amount`, found `AmountF64` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/convert/mod.rs:585:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/channel.rs:232:63 [INFO] [stdout] | [INFO] [stdout] 232 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/channel.rs:265:29 [INFO] [stdout] | [INFO] [stdout] 265 | self.amount.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/channel.rs:285:37 [INFO] [stdout] | [INFO] [stdout] 285 | .add_output(self.amount.try_into()?, &self.resolution, None)? [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/coin_pool.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 57 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 58 | Amount::from_sat(b.refunds.iter().map(|x| Amount::from(x.1).as_sat()).sum()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/coin_pool.rs:53:76 [INFO] [stdout] | [INFO] [stdout] 53 | Amount::from_sat(a.refunds.iter().map(|x| Amount::from(x.1).as_sat()).sum()), [INFO] [stdout] | ------------ ^^^ expected `Amount`, found `AmountF64` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/convert/mod.rs:585:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::PublicKey: sapio::contract::Compilable` is not satisfied [INFO] [stdout] --> src/contracts/coin_pool.rs:153:61 [INFO] [stdout] | [INFO] [stdout] 153 | let k: Arc> = Arc::new(Mutex::new(a.clone())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `sapio::contract::Contract` is not implemented for `sapio_bitcoin::PublicKey`, which is required by `sapio_bitcoin::PublicKey: sapio::contract::Compilable` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `sapio::contract::Compilable`: [INFO] [stdout] sapio::contract::Compiled [INFO] [stdout] sapio_secp256k1::key::XOnlyPublicKey [INFO] [stdout] = note: required for `sapio_bitcoin::PublicKey` to implement `sapio::contract::AnyContract` [INFO] [stdout] = note: required for `sapio_bitcoin::PublicKey` to implement `sapio::contract::Compilable` [INFO] [stdout] = note: required for the cast from `std::sync::Arc>` to `std::sync::Arc>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/coin_pool.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 52 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 53 | Amount::from_sat(a.refunds.iter().map(|x| Amount::from(x.1).as_sat()).sum()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/coin_pool.rs:58:76 [INFO] [stdout] | [INFO] [stdout] 58 | Amount::from_sat(b.refunds.iter().map(|x| Amount::from(x.1).as_sat()).sum()), [INFO] [stdout] | ------------ ^^^ expected `Amount`, found `AmountF64` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/convert/mod.rs:585:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/call.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | .add_output(profit, &v.user_api.receive_payment(profit), None)? [INFO] [stdout] | ---------- ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/coin_pool.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 57 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 58 | Amount::from_sat(b.refunds.iter().map(|x| Amount::from(x.1).as_sat()).sum()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/call.rs:51:33 [INFO] [stdout] | [INFO] [stdout] 51 | .add_output(refund, &v.operator_api.receive_payment(refund), None)? [INFO] [stdout] | ---------- ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / decl_then! { [INFO] [stdout] 14 | | /// What to do when the timeout expires [INFO] [stdout] 15 | | explodes [INFO] [stdout] 16 | | } [INFO] [stdout] | |_____^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | / decl_then! { [INFO] [stdout] 18 | | /// what to do when the holder wishes to strike [INFO] [stdout] 19 | | strikes [INFO] [stdout] 20 | | } [INFO] [stdout] | |_____^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: From` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | self.party_one.into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::Amount: Into<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::Amount` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:67:41 [INFO] [stdout] | [INFO] [stdout] 67 | &Compiled::from_address(self.key_p1.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: From` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | self.party_two.into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::Amount: Into<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::Amount` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::PublicKey: sapio::contract::Compilable` is not satisfied [INFO] [stdout] --> src/contracts/coin_pool.rs:153:61 [INFO] [stdout] | [INFO] [stdout] 153 | let k: Arc> = Arc::new(Mutex::new(a.clone())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `sapio::contract::Contract` is not implemented for `sapio_bitcoin::PublicKey`, which is required by `sapio_bitcoin::PublicKey: sapio::contract::Compilable` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `sapio::contract::Compilable`: [INFO] [stdout] sapio::contract::Compiled [INFO] [stdout] sapio_secp256k1::key::XOnlyPublicKey [INFO] [stdout] = note: required for `sapio_bitcoin::PublicKey` to implement `sapio::contract::AnyContract` [INFO] [stdout] = note: required for `sapio_bitcoin::PublicKey` to implement `sapio::contract::Compilable` [INFO] [stdout] = note: required for the cast from `std::sync::Arc>` to `std::sync::Arc>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:72:41 [INFO] [stdout] | [INFO] [stdout] 72 | &Compiled::from_address(self.key_p2.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: From` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:83:51 [INFO] [stdout] | [INFO] [stdout] 83 | (self.party_one + self.party_two).into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::Amount: Into<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::Amount` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: From` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | self.party_one.into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::Amount: Into<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::Amount` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:111:41 [INFO] [stdout] | [INFO] [stdout] 111 | &Compiled::from_address(self.key_p1.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/call.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | .add_output(profit, &v.user_api.receive_payment(profit), None)? [INFO] [stdout] | ---------- ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:121:25 [INFO] [stdout] | [INFO] [stdout] 121 | .add_amount(self.party_two) [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn add_amount(mut self, a: Amount) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: From` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:124:51 [INFO] [stdout] | [INFO] [stdout] 124 | (self.party_one + self.party_two).into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::Amount: Into<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::Amount` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/call.rs:51:33 [INFO] [stdout] | [INFO] [stdout] 51 | .add_output(refund, &v.operator_api.receive_payment(refund), None)? [INFO] [stdout] | ---------- ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / decl_then! { [INFO] [stdout] 14 | | /// What to do when the timeout expires [INFO] [stdout] 15 | | explodes [INFO] [stdout] 16 | | } [INFO] [stdout] | |_____^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | / decl_then! { [INFO] [stdout] 18 | | /// what to do when the holder wishes to strike [INFO] [stdout] 19 | | strikes [INFO] [stdout] 20 | | } [INFO] [stdout] | |_____^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/put.rs:46:33 [INFO] [stdout] | [INFO] [stdout] 46 | .add_output(profit, &v.user_api.receive_payment(profit), None)? [INFO] [stdout] | ---------- ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: From` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | self.party_one.into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::Amount: Into<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::Amount` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:67:41 [INFO] [stdout] | [INFO] [stdout] 67 | &Compiled::from_address(self.key_p1.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: From` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | self.party_two.into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::Amount: Into<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::Amount` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:72:41 [INFO] [stdout] | [INFO] [stdout] 72 | &Compiled::from_address(self.key_p2.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/put.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | .add_output(refund, &v.operator_api.receive_payment(refund), None)? [INFO] [stdout] | ---------- ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: From` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:83:51 [INFO] [stdout] | [INFO] [stdout] 83 | (self.party_one + self.party_two).into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::Amount: Into<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::Amount` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: From` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | self.party_one.into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::Amount: Into<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::Amount` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:111:41 [INFO] [stdout] | [INFO] [stdout] 111 | &Compiled::from_address(self.key_p1.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/risk_reversal.rs:134:33 [INFO] [stdout] | [INFO] [stdout] 134 | .add_output(profit, &v.user_api.receive_payment(profit), None)? [INFO] [stdout] | ---------- ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:121:25 [INFO] [stdout] | [INFO] [stdout] 121 | .add_amount(self.party_two) [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn add_amount(mut self, a: Amount) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: From` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/exploding.rs:124:51 [INFO] [stdout] | [INFO] [stdout] 124 | (self.party_one + self.party_two).into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::Amount: Into<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::Amount` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/risk_reversal.rs:135:33 [INFO] [stdout] | [INFO] [stdout] 135 | .add_output(refund, &v.operator_api.receive_payment(refund), None)? [INFO] [stdout] | ---------- ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: From` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/mod.rs:88:37 [INFO] [stdout] | [INFO] [stdout] 88 | self.amount.into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::Amount: Into<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::Amount` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/put.rs:46:33 [INFO] [stdout] | [INFO] [stdout] 46 | .add_output(profit, &v.user_api.receive_payment(profit), None)? [INFO] [stdout] | ---------- ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 3 arguments, but it takes 2 arguments [INFO] [stdout] --> src/contracts/dynamic.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 57 | func: |_s, _ctx| Err(CompilationError::TerminateCompilation), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 3 arguments [INFO] [stdout] | takes 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/dynamic.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 54 | Some(sapio::contract::actions::ThenFunc { [INFO] [stdout] | _________________----_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this enum variant are incorrect [INFO] [stdout] 55 | | conditional_compile_if: &[], [INFO] [stdout] 56 | | guard: &[], [INFO] [stdout] 57 | | func: |_s, _ctx| Err(CompilationError::TerminateCompilation), [INFO] [stdout] 58 | | name: Arc::new("Empty".into()), [INFO] [stdout] 59 | | }) [INFO] [stdout] | |_________________^ expected `FinishOrFunc<'_, String, ..., ..., ...>`, found `ThenFunc<'_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `FinishOrFunc<'_, std::string::String, (), ThenFuncTypeTag, sapio::contract::actions::WebAPIDisabled>` [INFO] [stdout] found struct `ThenFunc<'_, _>` [INFO] [stdout] help: the type constructed contains `ThenFunc<'_, _>` due to the type of the argument passed [INFO] [stdout] --> src/contracts/dynamic.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | Some(sapio::contract::actions::ThenFunc { [INFO] [stdout] | __________________^____- [INFO] [stdout] | | _________________| [INFO] [stdout] | || [INFO] [stdout] 55 | || conditional_compile_if: &[], [INFO] [stdout] 56 | || guard: &[], [INFO] [stdout] 57 | || func: |_s, _ctx| Err(CompilationError::TerminateCompilation), [INFO] [stdout] 58 | || name: Arc::new("Empty".into()), [INFO] [stdout] 59 | || }) [INFO] [stdout] | ||_________________-^ [INFO] [stdout] | |__________________| [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:579:5 [INFO] [stdout] help: call `Into::into` on this expression to convert `ThenFunc<'_, _>` into `FinishOrFunc<'_, std::string::String, (), ThenFuncTypeTag, sapio::contract::actions::WebAPIDisabled>` [INFO] [stdout] | [INFO] [stdout] 59 | }.into()) [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `ensure_amount_f` and `metadata_f` in initializer of `DynamicContract<'_, (), std::string::String>` [INFO] [stdout] --> src/contracts/dynamic.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 52 | let d2 = DynamicContract::<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `ensure_amount_f` and `metadata_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/put.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | .add_output(refund, &v.operator_api.receive_payment(refund), None)? [INFO] [stdout] | ---------- ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/eltoo_channel.rs:49:38 [INFO] [stdout] | [INFO] [stdout] 49 | Clause::And(vec![Clause::Key(self.alice_u), Clause::Key(self.bob_u)]) [INFO] [stdout] | ----------- ^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/eltoo_channel.rs:49:65 [INFO] [stdout] | [INFO] [stdout] 49 | Clause::And(vec![Clause::Key(self.alice_u), Clause::Key(self.bob_u)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/risk_reversal.rs:134:33 [INFO] [stdout] | [INFO] [stdout] 134 | .add_output(profit, &v.user_api.receive_payment(profit), None)? [INFO] [stdout] | ---------- ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `metadata` on type `&sapio::template::Output` [INFO] [stdout] --> src/contracts/eltoo_channel.rs:127:73 [INFO] [stdout] | [INFO] [stdout] 127 | template.add_output(out.amount, &out.contract, Some(out.metadata.clone()))?; [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 127 | template.add_output(out.amount, &out.contract, Some(out.contract.metadata.clone()))?; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/eltoo_channel.rs:134:38 [INFO] [stdout] | [INFO] [stdout] 134 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/eltoo_channel.rs:134:63 [INFO] [stdout] | [INFO] [stdout] 134 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/derivatives/risk_reversal.rs:135:33 [INFO] [stdout] | [INFO] [stdout] 135 | .add_output(refund, &v.operator_api.receive_payment(refund), None)? [INFO] [stdout] | ---------- ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: From` is not satisfied [INFO] [stdout] --> src/contracts/derivatives/mod.rs:88:37 [INFO] [stdout] | [INFO] [stdout] 88 | self.amount.into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::Amount: Into<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::Amount` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/federated_sidechain.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / decl_then! { [INFO] [stdout] 58 | | /// Should only be defined when RecoveryState is in CanBeginRecovery [INFO] [stdout] 59 | | begin_recovery} [INFO] [stdout] | |___________________^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/federated_sidechain.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | self.amount.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 3 arguments, but it takes 2 arguments [INFO] [stdout] --> src/contracts/dynamic.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 57 | func: |_s, _ctx| Err(CompilationError::TerminateCompilation), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 3 arguments [INFO] [stdout] | takes 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> src/contracts/federated_sidechain.rs:90:26 [INFO] [stdout] | [INFO] [stdout] 90 | .map(Clause::Key) [INFO] [stdout] | --- ^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] | | found signature defined here [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected function signature `fn(sapio_bitcoin::PublicKey) -> _` [INFO] [stdout] found function signature `fn(sapio_secp256k1::key::XOnlyPublicKey) -> _` [INFO] [stdout] note: required by a bound in `map` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/iter/traits/iterator.rs:761:5 [INFO] [stdout] help: consider wrapping the function in a closure [INFO] [stdout] | [INFO] [stdout] 90 | .map(|arg0: sapio_bitcoin::PublicKey| Clause::Key(/* sapio_secp256k1::key::XOnlyPublicKey */)) [INFO] [stdout] | ++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/dynamic.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 54 | Some(sapio::contract::actions::ThenFunc { [INFO] [stdout] | _________________----_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this enum variant are incorrect [INFO] [stdout] 55 | | conditional_compile_if: &[], [INFO] [stdout] 56 | | guard: &[], [INFO] [stdout] 57 | | func: |_s, _ctx| Err(CompilationError::TerminateCompilation), [INFO] [stdout] 58 | | name: Arc::new("Empty".into()), [INFO] [stdout] 59 | | }) [INFO] [stdout] | |_________________^ expected `FinishOrFunc<'_, String, ..., ..., ...>`, found `ThenFunc<'_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `FinishOrFunc<'_, std::string::String, (), ThenFuncTypeTag, sapio::contract::actions::WebAPIDisabled>` [INFO] [stdout] found struct `ThenFunc<'_, _>` [INFO] [stdout] help: the type constructed contains `ThenFunc<'_, _>` due to the type of the argument passed [INFO] [stdout] --> src/contracts/dynamic.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | Some(sapio::contract::actions::ThenFunc { [INFO] [stdout] | __________________^____- [INFO] [stdout] | | _________________| [INFO] [stdout] | || [INFO] [stdout] 55 | || conditional_compile_if: &[], [INFO] [stdout] 56 | || guard: &[], [INFO] [stdout] 57 | || func: |_s, _ctx| Err(CompilationError::TerminateCompilation), [INFO] [stdout] 58 | || name: Arc::new("Empty".into()), [INFO] [stdout] 59 | || }) [INFO] [stdout] | ||_________________-^ [INFO] [stdout] | |__________________| [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:579:5 [INFO] [stdout] help: call `Into::into` on this expression to convert `ThenFunc<'_, _>` into `FinishOrFunc<'_, std::string::String, (), ThenFuncTypeTag, sapio::contract::actions::WebAPIDisabled>` [INFO] [stdout] | [INFO] [stdout] 59 | }.into()) [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `ensure_amount_f` and `metadata_f` in initializer of `DynamicContract<'_, (), std::string::String>` [INFO] [stdout] --> src/contracts/dynamic.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 52 | let d2 = DynamicContract::<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `ensure_amount_f` and `metadata_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `Map>, fn(XOnlyPublicKey) -> Policy {Policy::::Key}>` is not an iterator [INFO] [stdout] --> src/contracts/federated_sidechain.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 87 | / self.keys_recovery [INFO] [stdout] 88 | | .iter() [INFO] [stdout] 89 | | .cloned() [INFO] [stdout] 90 | | .map(Clause::Key) [INFO] [stdout] 91 | | .collect(), [INFO] [stdout] | | -^^^^^^^ `Map>, fn(XOnlyPublicKey) -> Policy {Policy::::Key}>` is not an iterator [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/sapio_contrib-60e77bfcf6241ee7.long-type-17868788358538824307.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/sapio_contrib-60e77bfcf6241ee7.long-type-17868788358538824307.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::iter::Map>, fn(sapio_secp256k1::key::XOnlyPublicKey) -> sapio_miniscript::policy::concrete::Policy {sapio_miniscript::policy::concrete::Policy::::Key}>: Iterator` [INFO] [stdout] which is required by `&mut std::iter::Map>, fn(sapio_secp256k1::key::XOnlyPublicKey) -> sapio_miniscript::policy::concrete::Policy {sapio_miniscript::policy::concrete::Policy::::Key}>: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> src/contracts/federated_sidechain.rs:105:22 [INFO] [stdout] | [INFO] [stdout] 105 | .map(Clause::Key) [INFO] [stdout] | --- ^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] | | found signature defined here [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected function signature `fn(sapio_bitcoin::PublicKey) -> _` [INFO] [stdout] found function signature `fn(sapio_secp256k1::key::XOnlyPublicKey) -> _` [INFO] [stdout] note: required by a bound in `map` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/iter/traits/iterator.rs:761:5 [INFO] [stdout] help: consider wrapping the function in a closure [INFO] [stdout] | [INFO] [stdout] 105 | .map(|arg0: sapio_bitcoin::PublicKey| Clause::Key(/* sapio_secp256k1::key::XOnlyPublicKey */)) [INFO] [stdout] | ++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/eltoo_channel.rs:49:38 [INFO] [stdout] | [INFO] [stdout] 49 | Clause::And(vec![Clause::Key(self.alice_u), Clause::Key(self.bob_u)]) [INFO] [stdout] | ----------- ^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/eltoo_channel.rs:49:65 [INFO] [stdout] | [INFO] [stdout] 49 | Clause::And(vec![Clause::Key(self.alice_u), Clause::Key(self.bob_u)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `Map>, fn(XOnlyPublicKey) -> Policy {Policy::::Key}>` is not an iterator [INFO] [stdout] --> src/contracts/federated_sidechain.rs:106:18 [INFO] [stdout] | [INFO] [stdout] 102 | / self.keys_recovery [INFO] [stdout] 103 | | .iter() [INFO] [stdout] 104 | | .cloned() [INFO] [stdout] 105 | | .map(Clause::Key) [INFO] [stdout] 106 | | .collect(), [INFO] [stdout] | | -^^^^^^^ `Map>, fn(XOnlyPublicKey) -> Policy {Policy::::Key}>` is not an iterator [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/sapio_contrib-60e77bfcf6241ee7.long-type-17868788358538824307.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/sapio_contrib-60e77bfcf6241ee7.long-type-17868788358538824307.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::iter::Map>, fn(sapio_secp256k1::key::XOnlyPublicKey) -> sapio_miniscript::policy::concrete::Policy {sapio_miniscript::policy::concrete::Policy::::Key}>: Iterator` [INFO] [stdout] which is required by `&mut std::iter::Map>, fn(sapio_secp256k1::key::XOnlyPublicKey) -> sapio_miniscript::policy::concrete::Policy {sapio_miniscript::policy::concrete::Policy::::Key}>: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> src/contracts/federated_sidechain.rs:114:43 [INFO] [stdout] | [INFO] [stdout] 114 | self.keys.iter().cloned().map(Clause::Key).collect(), [INFO] [stdout] | --- ^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] | | found signature defined here [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected function signature `fn(sapio_bitcoin::PublicKey) -> _` [INFO] [stdout] found function signature `fn(sapio_secp256k1::key::XOnlyPublicKey) -> _` [INFO] [stdout] note: required by a bound in `map` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/iter/traits/iterator.rs:761:5 [INFO] [stdout] help: consider wrapping the function in a closure [INFO] [stdout] | [INFO] [stdout] 114 | self.keys.iter().cloned().map(|arg0: sapio_bitcoin::PublicKey| Clause::Key(/* sapio_secp256k1::key::XOnlyPublicKey */)).collect(), [INFO] [stdout] | ++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `metadata` on type `&sapio::template::Output` [INFO] [stdout] --> src/contracts/eltoo_channel.rs:127:73 [INFO] [stdout] | [INFO] [stdout] 127 | template.add_output(out.amount, &out.contract, Some(out.metadata.clone()))?; [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 127 | template.add_output(out.amount, &out.contract, Some(out.contract.metadata.clone()))?; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/eltoo_channel.rs:134:38 [INFO] [stdout] | [INFO] [stdout] 134 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `Map>, fn(XOnlyPublicKey) -> Policy {Policy::::Key}>` is not an iterator [INFO] [stdout] --> src/contracts/federated_sidechain.rs:114:56 [INFO] [stdout] | [INFO] [stdout] 114 | self.keys.iter().cloned().map(Clause::Key).collect(), [INFO] [stdout] | ^^^^^^^ `Map>, fn(XOnlyPublicKey) -> Policy {Policy::::Key}>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/sapio_contrib-60e77bfcf6241ee7.long-type-17868788358538824307.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/sapio_contrib-60e77bfcf6241ee7.long-type-17868788358538824307.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::iter::Map>, fn(sapio_secp256k1::key::XOnlyPublicKey) -> sapio_miniscript::policy::concrete::Policy {sapio_miniscript::policy::concrete::Policy::::Key}>: Iterator` [INFO] [stdout] which is required by `&mut std::iter::Map>, fn(sapio_secp256k1::key::XOnlyPublicKey) -> sapio_miniscript::policy::concrete::Policy {sapio_miniscript::policy::concrete::Policy::::Key}>: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/eltoo_channel.rs:134:63 [INFO] [stdout] | [INFO] [stdout] 134 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/federated_sidechain.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / decl_then! { [INFO] [stdout] 58 | | /// Should only be defined when RecoveryState is in CanBeginRecovery [INFO] [stdout] 59 | | begin_recovery} [INFO] [stdout] | |___________________^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/federated_sidechain.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | self.amount.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> src/contracts/federated_sidechain.rs:90:26 [INFO] [stdout] | [INFO] [stdout] 90 | .map(Clause::Key) [INFO] [stdout] | --- ^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] | | found signature defined here [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected function signature `fn(sapio_bitcoin::PublicKey) -> _` [INFO] [stdout] found function signature `fn(sapio_secp256k1::key::XOnlyPublicKey) -> _` [INFO] [stdout] note: required by a bound in `map` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/iter/traits/iterator.rs:761:5 [INFO] [stdout] help: consider wrapping the function in a closure [INFO] [stdout] | [INFO] [stdout] 90 | .map(|arg0: sapio_bitcoin::PublicKey| Clause::Key(/* sapio_secp256k1::key::XOnlyPublicKey */)) [INFO] [stdout] | ++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/hodl_chicken.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | Clause::Key(self.alice_key) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/hodl_chicken.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | Clause::Key(self.bob_key) [INFO] [stdout] | ----------- ^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `Map>, fn(XOnlyPublicKey) -> Policy {Policy::::Key}>` is not an iterator [INFO] [stdout] --> src/contracts/federated_sidechain.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 87 | / self.keys_recovery [INFO] [stdout] 88 | | .iter() [INFO] [stdout] 89 | | .cloned() [INFO] [stdout] 90 | | .map(Clause::Key) [INFO] [stdout] 91 | | .collect(), [INFO] [stdout] | | -^^^^^^^ `Map>, fn(XOnlyPublicKey) -> Policy {Policy::::Key}>` is not an iterator [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/sapio_contrib-632c13fd12aa937e.long-type-4518803411696901879.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/sapio_contrib-632c13fd12aa937e.long-type-4518803411696901879.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::iter::Map>, fn(sapio_secp256k1::key::XOnlyPublicKey) -> sapio_miniscript::policy::concrete::Policy {sapio_miniscript::policy::concrete::Policy::::Key}>: Iterator` [INFO] [stdout] which is required by `&mut std::iter::Map>, fn(sapio_secp256k1::key::XOnlyPublicKey) -> sapio_miniscript::policy::concrete::Policy {sapio_miniscript::policy::concrete::Policy::::Key}>: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> src/contracts/federated_sidechain.rs:105:22 [INFO] [stdout] | [INFO] [stdout] 105 | .map(Clause::Key) [INFO] [stdout] | --- ^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] | | found signature defined here [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected function signature `fn(sapio_bitcoin::PublicKey) -> _` [INFO] [stdout] found function signature `fn(sapio_secp256k1::key::XOnlyPublicKey) -> _` [INFO] [stdout] note: required by a bound in `map` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/iter/traits/iterator.rs:761:5 [INFO] [stdout] help: consider wrapping the function in a closure [INFO] [stdout] | [INFO] [stdout] 105 | .map(|arg0: sapio_bitcoin::PublicKey| Clause::Key(/* sapio_secp256k1::key::XOnlyPublicKey */)) [INFO] [stdout] | ++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `Map>, fn(XOnlyPublicKey) -> Policy {Policy::::Key}>` is not an iterator [INFO] [stdout] --> src/contracts/federated_sidechain.rs:106:18 [INFO] [stdout] | [INFO] [stdout] 102 | / self.keys_recovery [INFO] [stdout] 103 | | .iter() [INFO] [stdout] 104 | | .cloned() [INFO] [stdout] 105 | | .map(Clause::Key) [INFO] [stdout] 106 | | .collect(), [INFO] [stdout] | | -^^^^^^^ `Map>, fn(XOnlyPublicKey) -> Policy {Policy::::Key}>` is not an iterator [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/sapio_contrib-632c13fd12aa937e.long-type-4518803411696901879.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/sapio_contrib-632c13fd12aa937e.long-type-4518803411696901879.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::iter::Map>, fn(sapio_secp256k1::key::XOnlyPublicKey) -> sapio_miniscript::policy::concrete::Policy {sapio_miniscript::policy::concrete::Policy::::Key}>: Iterator` [INFO] [stdout] which is required by `&mut std::iter::Map>, fn(sapio_secp256k1::key::XOnlyPublicKey) -> sapio_miniscript::policy::concrete::Policy {sapio_miniscript::policy::concrete::Policy::::Key}>: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> src/contracts/federated_sidechain.rs:114:43 [INFO] [stdout] | [INFO] [stdout] 114 | self.keys.iter().cloned().map(Clause::Key).collect(), [INFO] [stdout] | --- ^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] | | found signature defined here [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected function signature `fn(sapio_bitcoin::PublicKey) -> _` [INFO] [stdout] found function signature `fn(sapio_secp256k1::key::XOnlyPublicKey) -> _` [INFO] [stdout] note: required by a bound in `map` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/iter/traits/iterator.rs:761:5 [INFO] [stdout] help: consider wrapping the function in a closure [INFO] [stdout] | [INFO] [stdout] 114 | self.keys.iter().cloned().map(|arg0: sapio_bitcoin::PublicKey| Clause::Key(/* sapio_secp256k1::key::XOnlyPublicKey */)).collect(), [INFO] [stdout] | ++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/hodl_chicken.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 97 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 98 | Amount::from_sat(self.winner_gets), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `Map>, fn(XOnlyPublicKey) -> Policy {Policy::::Key}>` is not an iterator [INFO] [stdout] --> src/contracts/federated_sidechain.rs:114:56 [INFO] [stdout] | [INFO] [stdout] 114 | self.keys.iter().cloned().map(Clause::Key).collect(), [INFO] [stdout] | ^^^^^^^ `Map>, fn(XOnlyPublicKey) -> Policy {Policy::::Key}>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/sapio_contrib-632c13fd12aa937e.long-type-4518803411696901879.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/sapio_contrib-632c13fd12aa937e.long-type-4518803411696901879.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::iter::Map>, fn(sapio_secp256k1::key::XOnlyPublicKey) -> sapio_miniscript::policy::concrete::Policy {sapio_miniscript::policy::concrete::Policy::::Key}>: Iterator` [INFO] [stdout] which is required by `&mut std::iter::Map>, fn(sapio_secp256k1::key::XOnlyPublicKey) -> sapio_miniscript::policy::concrete::Policy {sapio_miniscript::policy::concrete::Policy::::Key}>: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/hodl_chicken.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 102 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 103 | Amount::from_sat(self.chicken_gets), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/hodl_chicken.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 113 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 114 | Amount::from_sat(self.winner_gets), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/hodl_chicken.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | Clause::Key(self.alice_key) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/hodl_chicken.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 118 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 119 | Amount::from_sat(self.chicken_gets), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/hodl_chicken.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | Clause::Key(self.bob_key) [INFO] [stdout] | ----------- ^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/op_return_chain.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | Clause::Key(self.pk.clone()) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/hodl_chicken.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 97 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 98 | Amount::from_sat(self.winner_gets), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/op_return_chain.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 46 | tmpl = tmpl.add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 47 | Amount::from_sat(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::PublicKey: sapio::contract::Compilable` is not satisfied [INFO] [stdout] --> src/contracts/op_return_chain.rs:57:43 [INFO] [stdout] | [INFO] [stdout] 57 | tmpl = tmpl.add_output(funds, &self.pk, None)?; [INFO] [stdout] | ^^^^^^^^ the trait `sapio::contract::Contract` is not implemented for `sapio_bitcoin::PublicKey`, which is required by `sapio_bitcoin::PublicKey: sapio::contract::Compilable` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `sapio::contract::Compilable`: [INFO] [stdout] sapio::contract::Compiled [INFO] [stdout] sapio_secp256k1::key::XOnlyPublicKey [INFO] [stdout] = note: required for `sapio_bitcoin::PublicKey` to implement `sapio::contract::AnyContract` [INFO] [stdout] = note: required for `sapio_bitcoin::PublicKey` to implement `sapio::contract::Compilable` [INFO] [stdout] = note: required for the cast from `&sapio_bitcoin::PublicKey` to `&dyn sapio::contract::Compilable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/hodl_chicken.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 102 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 103 | Amount::from_sat(self.chicken_gets), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | Clause::Key(self.key) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:51:55 [INFO] [stdout] | [INFO] [stdout] 51 | Clause::Threshold(2, vec![Clause::Key(self.alice), Clause::Key(self.bob)]), [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:51:80 [INFO] [stdout] | [INFO] [stdout] 51 | Clause::Threshold(2, vec![Clause::Key(self.alice), Clause::Key(self.bob)]), [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/hodl_chicken.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 113 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 114 | Amount::from_sat(self.winner_gets), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | Clause::Key(self.escrow), [INFO] [stdout] | ----------- ^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:54:59 [INFO] [stdout] | [INFO] [stdout] 54 | Clause::Threshold(1, vec![Clause::Key(self.alice), Clause::Key(self.bob)]), [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:54:84 [INFO] [stdout] | [INFO] [stdout] 54 | Clause::Threshold(1, vec![Clause::Key(self.alice), Clause::Key(self.bob)]), [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/hodl_chicken.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 118 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 119 | Amount::from_sat(self.chicken_gets), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/op_return_chain.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | Clause::Key(self.pk.clone()) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:78:25 [INFO] [stdout] | [INFO] [stdout] 78 | Clause::Key(self.escrow), [INFO] [stdout] | ----------- ^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:79:51 [INFO] [stdout] | [INFO] [stdout] 79 | Clause::Threshold(2, vec![Clause::Key(self.alice), Clause::Key(self.bob)]), [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:79:76 [INFO] [stdout] | [INFO] [stdout] 79 | Clause::Threshold(2, vec![Clause::Key(self.alice), Clause::Key(self.bob)]), [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:84:38 [INFO] [stdout] | [INFO] [stdout] 84 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/op_return_chain.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 46 | tmpl = tmpl.add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 47 | Amount::from_sat(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:84:63 [INFO] [stdout] | [INFO] [stdout] 84 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::PublicKey: sapio::contract::Compilable` is not satisfied [INFO] [stdout] --> src/contracts/op_return_chain.rs:57:43 [INFO] [stdout] | [INFO] [stdout] 57 | tmpl = tmpl.add_output(funds, &self.pk, None)?; [INFO] [stdout] | ^^^^^^^^ the trait `sapio::contract::Contract` is not implemented for `sapio_bitcoin::PublicKey`, which is required by `sapio_bitcoin::PublicKey: sapio::contract::Compilable` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `sapio::contract::Compilable`: [INFO] [stdout] sapio::contract::Compiled [INFO] [stdout] sapio_secp256k1::key::XOnlyPublicKey [INFO] [stdout] = note: required for `sapio_bitcoin::PublicKey` to implement `sapio::contract::AnyContract` [INFO] [stdout] = note: required for `sapio_bitcoin::PublicKey` to implement `sapio::contract::Compilable` [INFO] [stdout] = note: required for the cast from `&sapio_bitcoin::PublicKey` to `&dyn sapio::contract::Compilable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | Clause::Key(self.key) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:105:63 [INFO] [stdout] | [INFO] [stdout] 105 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/readme_contracts.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | self.alice_escrow.0.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:112:41 [INFO] [stdout] | [INFO] [stdout] 112 | &Compiled::from_address(self.alice_escrow.1.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/readme_contracts.rs:116:35 [INFO] [stdout] | [INFO] [stdout] 116 | self.bob_escrow.0.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:117:41 [INFO] [stdout] | [INFO] [stdout] 117 | &Compiled::from_address(self.bob_escrow.1.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:51:55 [INFO] [stdout] | [INFO] [stdout] 51 | Clause::Threshold(2, vec![Clause::Key(self.alice), Clause::Key(self.bob)]), [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:51:80 [INFO] [stdout] | [INFO] [stdout] 51 | Clause::Threshold(2, vec![Clause::Key(self.alice), Clause::Key(self.bob)]), [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | Clause::Key(self.escrow), [INFO] [stdout] | ----------- ^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/staked_signer.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | / decl_then!( [INFO] [stdout] 74 | | /// The transition from Operational to Closing [INFO] [stdout] 75 | | begin_redeem [INFO] [stdout] 76 | | ); [INFO] [stdout] | |_____^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:54:59 [INFO] [stdout] | [INFO] [stdout] 54 | Clause::Threshold(1, vec![Clause::Key(self.alice), Clause::Key(self.bob)]), [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:54:84 [INFO] [stdout] | [INFO] [stdout] 54 | Clause::Threshold(1, vec![Clause::Key(self.alice), Clause::Key(self.bob)]), [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/staked_signer.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | Clause::Key(self.redeeming_key) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/staked_signer.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | Clause::Key(self.signing_key) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/staked_signer.rs:121:38 [INFO] [stdout] | [INFO] [stdout] 121 | Clause::And(vec![Clause::Key(self.redeeming_key), self.timeout.into()]) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:78:25 [INFO] [stdout] | [INFO] [stdout] 78 | Clause::Key(self.escrow), [INFO] [stdout] | ----------- ^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/staked_signer.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | Clause::Key(self.signing_key) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:79:51 [INFO] [stdout] | [INFO] [stdout] 79 | Clause::Threshold(2, vec![Clause::Key(self.alice), Clause::Key(self.bob)]), [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:79:76 [INFO] [stdout] | [INFO] [stdout] 79 | Clause::Threshold(2, vec![Clause::Key(self.alice), Clause::Key(self.bob)]), [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:84:38 [INFO] [stdout] | [INFO] [stdout] 84 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:84:63 [INFO] [stdout] | [INFO] [stdout] 84 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:105:63 [INFO] [stdout] | [INFO] [stdout] 105 | Clause::And(vec![Clause::Key(self.alice), Clause::Key(self.bob)]) [INFO] [stdout] | ----------- ^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/readme_contracts.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | self.alice_escrow.0.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:112:41 [INFO] [stdout] | [INFO] [stdout] 112 | &Compiled::from_address(self.alice_escrow.1.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/readme_contracts.rs:116:35 [INFO] [stdout] | [INFO] [stdout] 116 | self.bob_escrow.0.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sapio::contract::CompilationError` [INFO] [stdout] --> src/contracts/treepay.rs:44:53 [INFO] [stdout] | [INFO] [stdout] 44 | amt += amount.clone().try_into()?; [INFO] [stdout] | ^ the trait `From` is not implemented for `sapio::contract::CompilationError`, which is required by `Result>>, sapio::contract::CompilationError>: FromResidual>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] and 2 others [INFO] [stdout] = note: required for `Result>>, sapio::contract::CompilationError>` to implement `FromResidual>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/readme_contracts.rs:117:41 [INFO] [stdout] | [INFO] [stdout] 117 | &Compiled::from_address(self.bob_escrow.1.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Self: sapio::contract::Contract` is not satisfied [INFO] [stdout] --> src/contracts/staked_signer.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | / decl_then!( [INFO] [stdout] 74 | | /// The transition from Operational to Closing [INFO] [stdout] 75 | | begin_redeem [INFO] [stdout] 76 | | ); [INFO] [stdout] | |_____^ the trait `sapio::contract::Contract` is not implemented for `Self` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `decl_then` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/staked_signer.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | Clause::Key(self.redeeming_key) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/staked_signer.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | Clause::Key(self.signing_key) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/treepay.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 46 | builder = builder.add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 47 | amt, [INFO] [stdout] | ^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/staked_signer.rs:121:38 [INFO] [stdout] | [INFO] [stdout] 121 | Clause::And(vec![Clause::Key(self.redeeming_key), self.timeout.into()]) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/treepay.rs:58:31 [INFO] [stdout] | [INFO] [stdout] 58 | (*amount).try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/staked_signer.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | Clause::Key(self.signing_key) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^ expected `XOnlyPublicKey`, found `PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-miniscript-7.0.1/src/policy/concrete.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Key(Pk), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/treepay.rs:59:45 [INFO] [stdout] | [INFO] [stdout] 59 | &Compiled::from_address(address.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/undo_send.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | .add_output(self.amount.try_into()?, &self.to_contract, None)? [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/undo_send.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 45 | .add_output(self.amount.try_into()?, &self.from_contract, None)? [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/vault.rs:40:34 [INFO] [stdout] | [INFO] [stdout] 40 | self.amount_step.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/vault.rs:43:57 [INFO] [stdout] | [INFO] [stdout] 43 | to_contract: Compiled::from_address(self.hot_storage.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sapio::contract::CompilationError` [INFO] [stdout] --> src/contracts/treepay.rs:44:53 [INFO] [stdout] | [INFO] [stdout] 44 | amt += amount.clone().try_into()?; [INFO] [stdout] | ^ the trait `From` is not implemented for `sapio::contract::CompilationError`, which is required by `Result>>, sapio::contract::CompilationError>: FromResidual>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] and 2 others [INFO] [stdout] = note: required for `Result>>, sapio::contract::CompilationError>` to implement `FromResidual>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/vault.rs:64:32 [INFO] [stdout] | [INFO] [stdout] 64 | builder.add_output(sub_amount, &sub_vault, None)? [INFO] [stdout] | ---------- ^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/treepay.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 46 | builder = builder.add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 47 | amt, [INFO] [stdout] | ^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/treepay.rs:58:31 [INFO] [stdout] | [INFO] [stdout] 58 | (*amount).try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/treepay.rs:59:45 [INFO] [stdout] | [INFO] [stdout] 59 | &Compiled::from_address(address.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/vault.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 79 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 80 | amount, [INFO] [stdout] | ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/undo_send.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | .add_output(self.amount.try_into()?, &self.to_contract, None)? [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/undo_send.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 45 | .add_output(self.amount.try_into()?, &self.from_contract, None)? [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `sapio_bitcoin::util::amount::Amount: std::convert::TryFrom` is not satisfied [INFO] [stdout] --> src/contracts/vault.rs:40:34 [INFO] [stdout] | [INFO] [stdout] 40 | self.amount_step.try_into()?, [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `sapio_bitcoin::util::amount::Amount`, which is required by `sapio_bitcoin::util::amount::CoinAmount: std::convert::TryInto<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `Into` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::Amount` to implement `std::convert::TryFrom` [INFO] [stdout] = note: required for `sapio_bitcoin::util::amount::CoinAmount` to implement `std::convert::TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/vault.rs:43:57 [INFO] [stdout] | [INFO] [stdout] 43 | to_contract: Compiled::from_address(self.hot_storage.clone(), None), [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/vault.rs:115:59 [INFO] [stdout] | [INFO] [stdout] 115 | move |_a, _ctx| Ok(Compiled::from_address(cs.clone(), None)) [INFO] [stdout] | ---------------------- ^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/vault.rs:64:32 [INFO] [stdout] | [INFO] [stdout] 64 | builder.add_output(sub_amount, &sub_vault, None)? [INFO] [stdout] | ---------- ^^^^^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/vault.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 79 | .add_output( [INFO] [stdout] | ---------- arguments to this method are incorrect [INFO] [stdout] 80 | amount, [INFO] [stdout] | ^^^^^^ expected `sapio_bitcoin::util::amount::Amount`, found `sapio_bitcoin::Amount` [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Amount` and `sapio_bitcoin::util::amount::Amount` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/amount.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `sapio_bitcoin::util::amount::Amount` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/amount.rs:337:1 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct Amount(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/template/builder.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn add_output( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/contracts/vault.rs:115:59 [INFO] [stdout] | [INFO] [stdout] 115 | move |_a, _ctx| Ok(Compiled::from_address(cs.clone(), None)) [INFO] [stdout] | ---------------------- ^^^^^^^^^^ expected `Address`, found `sapio_bitcoin::Address` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `sapio_bitcoin::Address` and `Address` have similar names, but are actually distinct types [INFO] [stdout] note: `sapio_bitcoin::Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.26.0/src/util/address.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Address` is defined in crate `sapio_bitcoin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-bitcoin-0.28.2/src/util/address.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | pub struct Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `sapio_bitcoin` are being used? [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/sapio-0.2.4/src/contract/abi/object/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn from_address(address: bitcoin::Address, a: Option) -> Object { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 104 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0053, E0063, E0277, E0308, E0593, E0599, E0609, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sapio-contrib` (lib) due to 105 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 106 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0053, E0063, E0277, E0308, E0593, E0599, E0609, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sapio-contrib` (lib test) due to 107 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6d1b2b5c298364970874a296c1fcca599dd24b7ce3960f03e307a65d565e99b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d1b2b5c298364970874a296c1fcca599dd24b7ce3960f03e307a65d565e99b2", kill_on_drop: false }` [INFO] [stdout] 6d1b2b5c298364970874a296c1fcca599dd24b7ce3960f03e307a65d565e99b2 [INFO] checking sapio-contrib-0.2.0 against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] extracting crate sapio-contrib 0.2.0 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate sapio-contrib 0.2.0 on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate sapio-contrib 0.2.0 [INFO] finished tweaking crates.io crate sapio-contrib 0.2.0 [INFO] tweaked toml for crates.io crate sapio-contrib 0.2.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 983a583d15d97d2c2c995646af2e54fce2019c9a0e83fb69dec260f376caa64f [INFO] running `Command { std: "docker" "start" "-a" "983a583d15d97d2c2c995646af2e54fce2019c9a0e83fb69dec260f376caa64f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "983a583d15d97d2c2c995646af2e54fce2019c9a0e83fb69dec260f376caa64f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "983a583d15d97d2c2c995646af2e54fce2019c9a0e83fb69dec260f376caa64f", kill_on_drop: false }` [INFO] [stdout] 983a583d15d97d2c2c995646af2e54fce2019c9a0e83fb69dec260f376caa64f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51804b37cc684eb0faafaff71022119c2e75fb3b4b78dc750be68b0eccfb4a2d [INFO] running `Command { std: "docker" "start" "-a" "51804b37cc684eb0faafaff71022119c2e75fb3b4b78dc750be68b0eccfb4a2d", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "51804b37cc684eb0faafaff71022119c2e75fb3b4b78dc750be68b0eccfb4a2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51804b37cc684eb0faafaff71022119c2e75fb3b4b78dc750be68b0eccfb4a2d", kill_on_drop: false }` [INFO] [stdout] 51804b37cc684eb0faafaff71022119c2e75fb3b4b78dc750be68b0eccfb4a2d