Skip to content

Add Potlock contract #576

Add Potlock contract

Add Potlock contract #576

Triggered via pull request August 20, 2024 06:04
Status Failure
Total duration 2m 14s
Artifacts

actions.yml

on: pull_request
Contracts  /  Wasm tests
2m 2s
Contracts / Wasm tests
Contracts  /  Test Coverage
1m 6s
Contracts / Test Coverage
Contracts  /  Rust tests
22s
Contracts / Rust tests
Contracts  /  Clippy linter check
19s
Contracts / Clippy linter check
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 4 warnings
[clippy] contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L129: contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L129
error[E0277]: the trait bound `multiversx_sc_snippets::imports::MultiValueEncoded<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>, multiversx_sc_snippets::imports::ManagedAddress<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>>: multiversx_sc::abi::TypeAbiFrom<&multiversx_sc_snippets::imports::Bech32Address>` is not satisfied --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:129:19 | 129 | .init(admin) | ---- ^^^^^ the trait `multiversx_sc::abi::TypeAbiFrom<&multiversx_sc_snippets::imports::Bech32Address>` is not implemented for `MultiValueEncoded<VMHooksApi<StaticApiBackend>, ManagedAddress<VMHooksApi<StaticApiBackend>>>`, which is required by `&multiversx_sc_snippets::imports::Bech32Address: multiversx_sc_snippets::imports::ProxyArg<multiversx_sc_snippets::imports::MultiValueEncoded<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>, multiversx_sc_snippets::imports::ManagedAddress<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>>>` | | | required by a bound introduced by this call | = help: the following other types implement trait `multiversx_sc::abi::TypeAbiFrom<T>`: <multiversx_sc_snippets::imports::MultiValueEncoded<M, T> as multiversx_sc::abi::TypeAbiFrom<&multiversx_sc_snippets::imports::MultiValueEncoded<M, T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<M, T> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::MultiValueEncoded<M, T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<M, U> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::MultiValueVec<T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<SA, T> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::QueueMapper<SA, T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<SA, T> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::SetMapper<SA, T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<SA, T> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::UnorderedSetMapper<SA, T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<SA, T> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::VecMapper<SA, T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<SA, U> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::LinkedListMapper<SA, T>>> and 4 others = note: required for `&multiversx_sc_snippets::imports::Bech32Address` to implement `multiversx_sc_snippets::imports::ProxyArg<multiversx_sc_snippets::imports::MultiValueEncoded<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>, multiversx_sc_snippets::imports::ManagedAddress<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>>>` note: required by a bound in `proxy::PotlockProxyMethods::<Env, From, (), Gas>::init` --> contracts/potlock/interact-rs/src/proxy.rs:47:15 | 46 | pub fn init< | ---- required by a bound in this associated function 47 | Arg0: ProxyArg<MultiValueEncoded<Env::Api, ManagedAddress<Env::Api>>>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `PotlockProxyMethods::<Env, From, (), Gas>::init`
[clippy] contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L129: contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L129
error[E0277]: the trait bound `multiversx_sc_snippets::imports::MultiValueEncoded<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>, multiversx_sc_snippets::imports::ManagedAddress<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>>: multiversx_sc::abi::TypeAbiFrom<&multiversx_sc_snippets::imports::Bech32Address>` is not satisfied --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:129:19 | 129 | .init(admin) | ---- ^^^^^ the trait `multiversx_sc::abi::TypeAbiFrom<&multiversx_sc_snippets::imports::Bech32Address>` is not implemented for `MultiValueEncoded<VMHooksApi<StaticApiBackend>, ManagedAddress<VMHooksApi<StaticApiBackend>>>`, which is required by `&multiversx_sc_snippets::imports::Bech32Address: multiversx_sc_snippets::imports::ProxyArg<multiversx_sc_snippets::imports::MultiValueEncoded<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>, multiversx_sc_snippets::imports::ManagedAddress<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>>>` | | | required by a bound introduced by this call | = help: the following other types implement trait `multiversx_sc::abi::TypeAbiFrom<T>`: <multiversx_sc_snippets::imports::MultiValueEncoded<M, T> as multiversx_sc::abi::TypeAbiFrom<&multiversx_sc_snippets::imports::MultiValueEncoded<M, T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<M, T> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::MultiValueEncoded<M, T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<M, U> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::MultiValueVec<T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<SA, T> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::QueueMapper<SA, T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<SA, T> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::SetMapper<SA, T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<SA, T> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::UnorderedSetMapper<SA, T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<SA, T> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::VecMapper<SA, T>>> <multiversx_sc_snippets::imports::MultiValueEncoded<SA, U> as multiversx_sc::abi::TypeAbiFrom<multiversx_sc_snippets::imports::LinkedListMapper<SA, T>>> and 4 others = note: required for `&multiversx_sc_snippets::imports::Bech32Address` to implement `multiversx_sc_snippets::imports::ProxyArg<multiversx_sc_snippets::imports::MultiValueEncoded<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>, multiversx_sc_snippets::imports::ManagedAddress<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>>>` note: required by a bound in `proxy::PotlockProxyMethods::<Env, From, (), Gas>::init` --> contracts/potlock/interact-rs/src/proxy.rs:47:15 | 46 | pub fn init< | ---- required by a bound in this associated function 47 | Arg0: ProxyArg<MultiValueEncoded<Env::Api, ManagedAddress<Env::Api>>>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `PotlockProxyMethods::<Env, From, (), Gas>::init`
[clippy] contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L388: contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L388
error[E0599]: no method named `fee_pot_proposer` found for struct `proxy::PotlockProxyMethods` in the current scope --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:393:14 | 388 | let result_value = self | ____________________________- 389 | | .interactor 390 | | .query() 391 | | .to(self.state.current_address()) 392 | | .typed(proxy::PotlockProxy) 393 | | .fee_pot_proposer(potlock_id) | | -^^^^^^^^^^^^^^^^ method not found in `PotlockProxyMethods<InteractorEnvQuery<'_>, (), &Bech32Address, ()>` | |_____________| | | ::: contracts/potlock/interact-rs/src/proxy.rs:28:1 | 28 | pub struct PotlockProxyMethods<Env, From, To, Gas> | -------------------------------------------------- method `fee_pot_proposer` not found for this struct
[clippy] contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L388: contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L388
error[E0599]: no method named `fee_pot_proposer` found for struct `proxy::PotlockProxyMethods` in the current scope --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:393:14 | 388 | let result_value = self | ____________________________- 389 | | .interactor 390 | | .query() 391 | | .to(self.state.current_address()) 392 | | .typed(proxy::PotlockProxy) 393 | | .fee_pot_proposer(potlock_id) | | -^^^^^^^^^^^^^^^^ method not found in `PotlockProxyMethods<InteractorEnvQuery<'_>, (), &Bech32Address, ()>` | |_____________| | | ::: contracts/potlock/interact-rs/src/proxy.rs:28:1 | 28 | pub struct PotlockProxyMethods<Env, From, To, Gas> | -------------------------------------------------- method `fee_pot_proposer` not found for this struct
Contracts / Rust tests: contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L129
the trait bound `multiversx_sc_snippets::imports::MultiValueEncoded<VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>, multiversx_sc_snippets::imports::ManagedAddress<VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>>: TypeAbiFrom<&multiversx_sc_snippets::imports::Bech32Address>` is not satisfied
Contracts / Rust tests: contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L393
no method named `fee_pot_proposer` found for struct `PotlockProxyMethods` in the current scope
Contracts / Rust tests
Process completed with exit code 101.
Contracts / Test Coverage: contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L129
the trait bound `multiversx_sc_snippets::imports::MultiValueEncoded<VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>, multiversx_sc_snippets::imports::ManagedAddress<VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>>: TypeAbiFrom<&multiversx_sc_snippets::imports::Bech32Address>` is not satisfied
Contracts / Test Coverage: contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L393
no method named `fee_pot_proposer` found for struct `PotlockProxyMethods` in the current scope
Contracts / Test Coverage
Process completed with exit code 1.
Contracts / Wasm tests: contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L129
the trait bound `multiversx_sc_snippets::imports::MultiValueEncoded<VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>, multiversx_sc_snippets::imports::ManagedAddress<VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>>: TypeAbiFrom<&multiversx_sc_snippets::imports::Bech32Address>` is not satisfied
Contracts / Wasm tests: contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L393
no method named `fee_pot_proposer` found for struct `PotlockProxyMethods` in the current scope
Contracts / Wasm tests
Process completed with exit code 101.
Contracts / Clippy linter check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, giraffate/clippy-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Contracts / Rust tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Contracts / Test Coverage
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Contracts / Wasm tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/