Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jsonrpsee from 0.15.1 to 0.16.2 #1

Open
RustNinja opened this issue Apr 19, 2023 · 0 comments
Open

Update jsonrpsee from 0.15.1 to 0.16.2 #1

RustNinja opened this issue Apr 19, 2023 · 0 comments
Assignees

Comments

@RustNinja
Copy link

RustNinja commented Apr 19, 2023

The issue related to to Zenlink UI + Pendulum chain Zenlink AMM integration.

There is not possible to include Zenlink RPC endpoints to pendulum-node https://github.com/pendulum-chain/pendulum/tree/main/node because there are different version of jsonrpsee
All other pallets provide rpc implementation that depends on jsonrpsee 0.16.0 and above.

But zenlink protocol rpc version in polkadot-v.9.037 contains dependency https://github.com/zenlinkpro/Zenlink-DEX-Module/blob/polkadot-v0.9.37/zenlink-protocol/rpc/Cargo.toml#L16

in other case there is an error

node/src/rpc.rs:133:15
    |
133 |     module.merge(ZenlinkProtocol::new(client.clone()).into_rpc())?;
    |            ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<jsonrpsee_core::server::rpc_module::RpcModule<zenlink_protocol_rpc::ZenlinkProtocol<C, sp_runtime::generic::Block<sp_runtime::generic::Header<u32, BlakeTwo256>, OpaqueExtrinsic>>>>` is not implemented for `Methods`
    |            |
    |            required by a bound introduced by this call

Required changes:

  • update crate version of jsonrpsee from 0.15.1 to 0.16.2

from
jsonrpsee = { version = "0.15.1", features = ["server", "macros"] }
to
jsonrpsee = { version = "0.16.2", features = ["server", "macros"] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant