Skip to content

add support for json_rpc_signer in wasm (#37) #48

add support for json_rpc_signer in wasm (#37)

add support for json_rpc_signer in wasm (#37) #48

Triggered via push October 20, 2023 06:57
Status Failure
Total duration 7m 37s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 15 warnings
mismatched types: interface/src/json_rpc_signer.rs#L108
error[E0308]: mismatched types --> interface/src/json_rpc_signer.rs:108:12 | 108 | Ok(signed_order) | -- ^^^^^^^^^^^^ expected `Order`, found `Arc<Order>` | | | arguments to this enum variant are incorrect | = note: expected struct `zklink_sdk_types::prelude::Order` found struct `std::sync::Arc<zklink_sdk_types::prelude::Order>` help: the type constructed contains `std::sync::Arc<zklink_sdk_types::prelude::Order>` due to the type of the argument passed --> interface/src/json_rpc_signer.rs:108:9 | 108 | Ok(signed_order) | ^^^------------^ | | | this argument influences the type of `Ok` note: tuple variant defined here --> /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/result.rs:506:5
arguments to this function are incorrect: interface/src/json_rpc_signer.rs#L107
error[E0308]: arguments to this function are incorrect --> interface/src/json_rpc_signer.rs:107:28 | 107 | let signed_order = create_signed_order(&self.zklink_signer, order)?; | ^^^^^^^^^^^^^^^^^^^ | note: expected `Arc<ZkLinkSigner>`, found `&ZkLinkSigner` --> interface/src/json_rpc_signer.rs:107:48 | 107 | let signed_order = create_signed_order(&self.zklink_signer, order)?; | ^^^^^^^^^^^^^^^^^^^ = note: expected struct `std::sync::Arc<zklink_sdk_signers::zklink_signer::ZkLinkSigner>` found reference `&zklink_sdk_signers::zklink_signer::ZkLinkSigner` note: expected `Arc<Order>`, found `&Order` --> interface/src/json_rpc_signer.rs:107:69 | 107 | let signed_order = create_signed_order(&self.zklink_signer, order)?; | ^^^^^ = note: expected struct `std::sync::Arc<zklink_sdk_types::prelude::Order>` found reference `&zklink_sdk_types::prelude::Order` note: function defined here --> interface/src/sign_order.rs:19:8 | 19 | pub fn create_signed_order( | ^^^^^^^^^^^^^^^^^^^ 20 | zklink_signer: Arc<ZkLinkSigner>, | -------------------------------- 21 | order: Arc<Order>, | -----------------
cannot find type `EthSigner` in this scope: interface/src/sign_change_pubkey.rs#L21
error[E0412]: cannot find type `EthSigner` in this scope --> interface/src/sign_change_pubkey.rs:21:21 | 21 | eth_signer: Arc<EthSigner>, | ^^^^^^^^^ not found in this scope | help: consider importing this struct | 1 + use zklink_sdk_signers::eth_signer::EthSigner; |
clippy_check
Clippy had exited with the 101 exit code
mismatched types: interface/src/json_rpc_signer.rs#L108
error[E0308]: mismatched types --> interface/src/json_rpc_signer.rs:108:12 | 108 | Ok(signed_order) | -- ^^^^^^^^^^^^ expected `Order`, found `Arc<Order>` | | | arguments to this enum variant are incorrect | = note: expected struct `zklink_sdk_types::prelude::Order` found struct `std::sync::Arc<zklink_sdk_types::prelude::Order>` help: the type constructed contains `std::sync::Arc<zklink_sdk_types::prelude::Order>` due to the type of the argument passed --> interface/src/json_rpc_signer.rs:108:9 | 108 | Ok(signed_order) | ^^^------------^ | | | this argument influences the type of `Ok` note: tuple variant defined here --> /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/result.rs:506:5
arguments to this function are incorrect: interface/src/json_rpc_signer.rs#L107
error[E0308]: arguments to this function are incorrect --> interface/src/json_rpc_signer.rs:107:28 | 107 | let signed_order = create_signed_order(&self.zklink_signer, order)?; | ^^^^^^^^^^^^^^^^^^^ | note: expected `Arc<ZkLinkSigner>`, found `&ZkLinkSigner` --> interface/src/json_rpc_signer.rs:107:48 | 107 | let signed_order = create_signed_order(&self.zklink_signer, order)?; | ^^^^^^^^^^^^^^^^^^^ = note: expected struct `std::sync::Arc<zklink_sdk_signers::zklink_signer::ZkLinkSigner>` found reference `&zklink_sdk_signers::zklink_signer::ZkLinkSigner` note: expected `Arc<Order>`, found `&Order` --> interface/src/json_rpc_signer.rs:107:69 | 107 | let signed_order = create_signed_order(&self.zklink_signer, order)?; | ^^^^^ = note: expected struct `std::sync::Arc<zklink_sdk_types::prelude::Order>` found reference `&zklink_sdk_types::prelude::Order` note: function defined here --> interface/src/sign_order.rs:19:8 | 19 | pub fn create_signed_order( | ^^^^^^^^^^^^^^^^^^^ 20 | zklink_signer: Arc<ZkLinkSigner>, | -------------------------------- 21 | order: Arc<Order>, | -----------------
cannot find type `EthSigner` in this scope: interface/src/sign_change_pubkey.rs#L21
error[E0412]: cannot find type `EthSigner` in this scope --> interface/src/sign_change_pubkey.rs:21:21 | 21 | eth_signer: Arc<EthSigner>, | ^^^^^^^^^ not found in this scope | help: consider importing this struct | 1 + use zklink_sdk_signers::eth_signer::EthSigner; |
taplo_fmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
cargo_machete
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
cargo fmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
cargo fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
cargo fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
cargo fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
cargo fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
cargo sort
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy_check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
cargo build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
cargo build
the following packages contain code that will be rejected by a future version of Rust: mathru v0.6.10
cargo test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
cargo test
the following packages contain code that will be rejected by a future version of Rust: mathru v0.6.10
go binding build and test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
go binding build and test
Restore cache failed: Dependencies file is not found in /home/runner/work/zklink_sdk/zklink_sdk. Supported file pattern: go.sum