Skip to content

add wasm support for sdk #42

add wasm support for sdk

add wasm support for sdk #42

Re-run triggered October 19, 2023 07:17
Status Failure
Total duration 3m 11s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 15 warnings
mismatched types: interface/src/json_rpc_signer.rs#L72
error[E0308]: mismatched types --> interface/src/json_rpc_signer.rs:72:27 | 72 | check_create2data(&self.zklink_signer, create2data.clone(), from_account)?; | ----------------- ^^^^^^^^^^^^^^^^^^^ expected `Arc<ZkLinkSigner>`, found `&ZkLinkSigner` | | | arguments to this function are incorrect | = note: expected struct `std::sync::Arc<zklink_sdk_signers::zklink_signer::ZkLinkSigner>` found reference `&zklink_sdk_signers::zklink_signer::ZkLinkSigner` note: function defined here --> interface/src/sign_change_pubkey.rs:107:8 | 107 | pub fn check_create2data( | ^^^^^^^^^^^^^^^^^ 108 | zklink_singer: Arc<ZkLinkSigner>, | --------------------------------
cannot find type `EthSigner` in this scope: interface/src/sign_change_pubkey.rs#L98
error[E0412]: cannot find type `EthSigner` in this scope --> interface/src/sign_change_pubkey.rs:98:21 | 98 | eth_signer: Arc<EthSigner>, | ^^^^^^^^^ not found in this scope | help: consider importing this struct | 1 + use zklink_sdk_signers::eth_signer::EthSigner; |
cannot find struct, variant or union type `TxSignature` in this scope: interface/src/sign_change_pubkey.rs#L88
error[E0422]: cannot find struct, variant or union type `TxSignature` in this scope --> interface/src/sign_change_pubkey.rs:88:8 | 88 | Ok(TxSignature { | ^^^^^^^^^^^ not found in this scope | help: consider importing this struct | 1 + use zklink_sdk_types::prelude::TxSignature; |
failed to resolve: use of undeclared type `ChangePubKeyAuthRequest`: interface/src/sign_change_pubkey.rs#L75
error[E0433]: failed to resolve: use of undeclared type `ChangePubKeyAuthRequest` --> interface/src/sign_change_pubkey.rs:75:9 | 75 | ChangePubKeyAuthRequest::EthCreate2 { data } => { | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ChangePubKeyAuthRequest` | help: an enum with a similar name exists | 75 | ChangePubKeyAuthData::EthCreate2 { data } => { | ~~~~~~~~~~~~~~~~~~~~ help: consider importing this enum | 1 + use crate::ChangePubKeyAuthRequest; |
failed to resolve: use of undeclared type `ChangePubKeyAuthRequest`: interface/src/sign_change_pubkey.rs#L68
error[E0433]: failed to resolve: use of undeclared type `ChangePubKeyAuthRequest` --> interface/src/sign_change_pubkey.rs:68:9 | 68 | ChangePubKeyAuthRequest::EthECDSA => { | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ChangePubKeyAuthRequest` | help: an enum with a similar name exists | 68 | ChangePubKeyAuthData::EthECDSA => { | ~~~~~~~~~~~~~~~~~~~~ help: consider importing this enum | 1 + use crate::ChangePubKeyAuthRequest; |
failed to resolve: use of undeclared type `ChangePubKeyAuthRequest`: interface/src/sign_change_pubkey.rs#L67
error[E0433]: failed to resolve: use of undeclared type `ChangePubKeyAuthRequest` --> interface/src/sign_change_pubkey.rs:67:9 | 67 | ChangePubKeyAuthRequest::Onchain => Ok(ChangePubKeyAuthData::Onchain), | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ChangePubKeyAuthRequest` | help: an enum with a similar name exists | 67 | ChangePubKeyAuthData::Onchain => Ok(ChangePubKeyAuthData::Onchain), | ~~~~~~~~~~~~~~~~~~~~ help: consider importing this enum | 1 + use crate::ChangePubKeyAuthRequest; |
cannot find type `TxSignature` in this scope: interface/src/sign_change_pubkey.rs#L65
error[E0412]: cannot find type `TxSignature` in this scope --> interface/src/sign_change_pubkey.rs:65:13 | 65 | ) -> Result<TxSignature, SignError> { | ^^^^^^^^^^^ not found in this scope | help: consider importing this struct | 1 + use zklink_sdk_types::prelude::TxSignature; |
cannot find type `ChangePubKeyAuthRequest` in this scope: interface/src/sign_change_pubkey.rs#L64
error[E0412]: cannot find type `ChangePubKeyAuthRequest` in this scope --> interface/src/sign_change_pubkey.rs:64:19 | 64 | auth_request: ChangePubKeyAuthRequest, | ^^^^^^^^^^^^^^^^^^^^^^^ | ::: /home/runner/work/zklink_sdk/zklink_sdk/types/src/tx_type/change_pubkey.rs:53:1 | 53 | pub enum ChangePubKeyAuthData { | ----------------------------- similarly named enum `ChangePubKeyAuthData` defined here | help: an enum with a similar name exists | 64 | auth_request: ChangePubKeyAuthData, | ~~~~~~~~~~~~~~~~~~~~ help: consider importing this enum | 1 + use crate::ChangePubKeyAuthRequest; |
clippy_check
Clippy had exited with the 101 exit code
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 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/
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 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
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/
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
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/
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/