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

Add support for state_call JSON-RPC function #2374

Merged
merged 6 commits into from
Jun 14, 2022

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Jun 13, 2022

Copy link
Contributor

@mergify mergify bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automatically approving tomaka's pull requests. This auto-approval will be removed once more maintainers are active.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 13, 2022

twiggy diff report

Difference in .wasm size before and after this pull request.


 Delta Bytes │ Item
─────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
      +42930 ┊ smoldot::json_rpc::methods::MethodCall::from_defs::h090439a7b8e25d92
      -41864 ┊ smoldot::json_rpc::methods::MethodCall::from_defs::h9295beb16bc69022
      +10403 ┊ <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h11264ce31f3acef3
      -10089 ┊ <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h5909e667edc01070
       +4768 ┊ <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hff1e15df471ba380
       +4245 ┊ <smoldot::json_rpc::methods::MethodCall as core::fmt::Debug>::fmt::h7e77f9282aabea6e
       -4131 ┊ <smoldot::json_rpc::methods::MethodCall as core::fmt::Debug>::fmt::h69dc12246fd7c6b5
       +2284 ┊ <&mut serde_json::de::Deserializer<R> as serde::de::Deserializer>::deserialize_struct::h5240242da21d3cdb
       +1582 ┊ <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h25e0c2c09f38a050
       +1348 ┊ core::ptr::drop_in_place<core::future::from_generator::GenFuture<smoldot_light_base::json_rpc_service::Background<smoldot_light_wasm::platform::Platform>::handle_request::{{closure}}>>::h52b3ceb92ac6b44d
       -1318 ┊ core::ptr::drop_in_place<core::future::from_generator::GenFuture<smoldot_light_base::json_rpc_service::Background<smoldot_light_wasm::platform::Platform>::handle_request::{{closure}}>>::hf8cb8d6f1699faa2
       +1208 ┊ <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h6fb5d604fb93f46e
       +1186 ┊ <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h0acb01bb6bdbce09
       +1174 ┊ <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hca2116a48455916b
        +948 ┊ smoldot::executor::host::HostVmPrototype::run_vectored::h88c0b83edebf77a5
        +551 ┊ core::ptr::drop_in_place<smoldot::json_rpc::methods::MethodCall>::hfb4598374b1f297a
        -525 ┊ core::ptr::drop_in_place<smoldot::json_rpc::methods::MethodCall>::hd89dfbc4a4e14bdf
        +519 ┊ <serde_json::de::MapAccess<R> as serde::de::MapAccess>::next_key_seed::hbdc93a9f51d514a7
        +485 ┊ <core::iter::adapters::chain::Chain<A,B> as core::iter::traits::iterator::Iterator>::fold::h37d03f8ff0bbadde
        +464 ┊ <core::iter::adapters::chain::Chain<A,B> as core::iter::traits::iterator::Iterator>::fold::h18e97954256099f0
       +2286 ┊ ... and 28 more.
      +22465 ┊ Σ [48 Total Rows]

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tomaka tomaka added the automerge Automatically merge pull request as soon as possible label Jun 14, 2022
@mergify mergify bot merged commit fcd53f4 into paritytech:main Jun 14, 2022
@tomaka tomaka deleted the state-call branch June 14, 2022 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge pull request as soon as possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants