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

Casper 2.0 #502

Draft
wants to merge 22 commits into
base: release/1.3.0
Choose a base branch
from
Draft

Casper 2.0 #502

wants to merge 22 commits into from

Conversation

kubaplas
Copy link
Contributor

No description provided.

Copy link
Contributor

coderabbitai bot commented Jul 12, 2024

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    -- I pushed a fix in commit <commit_id>, please review it.
    -- Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    -- @coderabbitai generate unit testing code for this file.
    -- @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    -- @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    -- @coderabbitai read src/utils.ts and generate unit testing code.
    -- @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    -- @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@kubaplas kubaplas force-pushed the feature/casper-2.0-rust-sdk branch 5 times, most recently from 3fe76ea to f77c524 Compare July 30, 2024 12:33
Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +36.411106694 CSPR (23.72%)
Contract Call Entry point: set_variable 🔴 +0.00615366 CSPR (4.02%)
Contract Call Entry point: get_variable 🟢 -0.412478699 CSPR (76.51%)
Contract Call Entry point: set_struct_variable 🔴 +0.01790203 CSPR (9.43%)
Contract Call Entry point: get_struct_variable 🟢 -0.30843059 CSPR (74.20%)
Contract Call Entry point: set_mapping 🔴 +0.00687508 CSPR (4.38%)
Contract Call Entry point: get_mapping 🟢 -0.31022942 CSPR (79.32%)
Contract Call Entry point: push_list 🔴 +0.01152528 CSPR (3.65%)
Contract Call Entry point: get_list 🟢 -0.31006689 CSPR (78.19%)
Contract Call Entry point: init_submodule 🔴 +0.03933961 CSPR (4.09%)
Contract Call Entry point: call_submodule 🟢 -0.30730569 CSPR (79.98%)
Contract Call Entry point: call_payable 🟢 -0.700586578 CSPR (11.75%)
Contract Call Entry point: transfer_back 🔴 +0.00634272 CSPR (0.25%)
Contract Call Entry point: emit_event 🔴 +0.01080325 CSPR (7.52%)
Contract Call Entry point: set_named_key 🟢 -0.099625449 CSPR (48.40%)
Contract Call Entry point: get_named_key 🟢 -0.30886194 CSPR (77.10%)
Contract Call Entry point: set_dictionary 🟢 -0.098863099 CSPR (32.70%)
Contract Call Entry point: get_dictionary 🟢 -0.31287189 CSPR (78.06%)

@kubaplas kubaplas force-pushed the feature/casper-2.0-rust-sdk branch from f77c524 to b85eef3 Compare July 30, 2024 12:52
Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +36.411106694 CSPR (23.72%)
Contract Call Entry point: set_variable 🔴 +0.00615366 CSPR (4.02%)
Contract Call Entry point: get_variable 🟢 -0.412478699 CSPR (76.51%)
Contract Call Entry point: set_struct_variable 🔴 +0.01790203 CSPR (9.43%)
Contract Call Entry point: get_struct_variable 🟢 -0.30843059 CSPR (74.20%)
Contract Call Entry point: set_mapping 🔴 +0.00687508 CSPR (4.38%)
Contract Call Entry point: get_mapping 🟢 -0.31022942 CSPR (79.32%)
Contract Call Entry point: push_list 🔴 +0.01152528 CSPR (3.65%)
Contract Call Entry point: get_list 🟢 -0.31006689 CSPR (78.19%)
Contract Call Entry point: init_submodule 🔴 +0.03933961 CSPR (4.09%)
Contract Call Entry point: call_submodule 🟢 -0.30730569 CSPR (79.98%)
Contract Call Entry point: call_payable 🟢 -0.700586578 CSPR (11.75%)
Contract Call Entry point: transfer_back 🔴 +0.00634272 CSPR (0.25%)
Contract Call Entry point: emit_event 🔴 +0.01080325 CSPR (7.52%)
Contract Call Entry point: set_named_key 🟢 -0.099625449 CSPR (48.40%)
Contract Call Entry point: get_named_key 🟢 -0.30886194 CSPR (77.10%)
Contract Call Entry point: set_dictionary 🟢 -0.098863099 CSPR (32.70%)
Contract Call Entry point: get_dictionary 🟢 -0.31287189 CSPR (78.06%)

@kubaplas kubaplas force-pushed the feature/casper-2.0-rust-sdk branch from b85eef3 to fd0e287 Compare July 30, 2024 14:49
Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +36.411106694 CSPR (23.72%)
Contract Call Entry point: set_variable 🔴 +0.00615366 CSPR (4.02%)
Contract Call Entry point: get_variable 🟢 -0.412478699 CSPR (76.51%)
Contract Call Entry point: set_struct_variable 🔴 +0.01790203 CSPR (9.43%)
Contract Call Entry point: get_struct_variable 🟢 -0.30843059 CSPR (74.20%)
Contract Call Entry point: set_mapping 🔴 +0.00687508 CSPR (4.38%)
Contract Call Entry point: get_mapping 🟢 -0.31022942 CSPR (79.32%)
Contract Call Entry point: push_list 🔴 +0.01152528 CSPR (3.65%)
Contract Call Entry point: get_list 🟢 -0.31006689 CSPR (78.19%)
Contract Call Entry point: init_submodule 🔴 +0.03933961 CSPR (4.09%)
Contract Call Entry point: call_submodule 🟢 -0.30730569 CSPR (79.98%)
Contract Call Entry point: call_payable 🟢 -0.700586578 CSPR (11.75%)
Contract Call Entry point: transfer_back 🔴 +0.00634272 CSPR (0.25%)
Contract Call Entry point: emit_event 🔴 +0.01080325 CSPR (7.52%)
Contract Call Entry point: set_named_key 🟢 -0.099625449 CSPR (48.40%)
Contract Call Entry point: get_named_key 🟢 -0.30886194 CSPR (77.10%)
Contract Call Entry point: set_dictionary 🟢 -0.098863099 CSPR (32.70%)
Contract Call Entry point: get_dictionary 🟢 -0.31287189 CSPR (78.06%)

@kubaplas kubaplas force-pushed the feature/casper-2.0-rust-sdk branch from fd0e287 to 19e060f Compare July 30, 2024 15:07
Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +36.411106694 CSPR (23.72%)
Contract Call Entry point: set_variable 🔴 +0.00615366 CSPR (4.02%)
Contract Call Entry point: get_variable 🟢 -0.412478699 CSPR (76.51%)
Contract Call Entry point: set_struct_variable 🔴 +0.01790203 CSPR (9.43%)
Contract Call Entry point: get_struct_variable 🟢 -0.30843059 CSPR (74.20%)
Contract Call Entry point: set_mapping 🔴 +0.00687508 CSPR (4.38%)
Contract Call Entry point: get_mapping 🟢 -0.31022942 CSPR (79.32%)
Contract Call Entry point: push_list 🔴 +0.01152528 CSPR (3.65%)
Contract Call Entry point: get_list 🟢 -0.31006689 CSPR (78.19%)
Contract Call Entry point: init_submodule 🔴 +0.03933961 CSPR (4.09%)
Contract Call Entry point: call_submodule 🟢 -0.30730569 CSPR (79.98%)
Contract Call Entry point: call_payable 🟢 -0.700586578 CSPR (11.75%)
Contract Call Entry point: transfer_back 🔴 +0.00634272 CSPR (0.25%)
Contract Call Entry point: emit_event 🔴 +0.01080325 CSPR (7.52%)
Contract Call Entry point: set_named_key 🟢 -0.099625449 CSPR (48.40%)
Contract Call Entry point: get_named_key 🟢 -0.30886194 CSPR (77.10%)
Contract Call Entry point: set_dictionary 🟢 -0.098863099 CSPR (32.70%)
Contract Call Entry point: get_dictionary 🟢 -0.31287189 CSPR (78.06%)

Copy link

github-actions bot commented Aug 5, 2024

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +36.390990128 CSPR (23.70%)
Contract Call Entry point: set_variable 🔴 +0.00615366 CSPR (4.02%)
Contract Call Entry point: get_variable 🟢 -0.412478699 CSPR (76.51%)
Contract Call Entry point: set_struct_variable 🔴 +0.01790203 CSPR (9.43%)
Contract Call Entry point: get_struct_variable 🟢 -0.30843059 CSPR (74.20%)
Contract Call Entry point: set_mapping 🔴 +0.00687508 CSPR (4.38%)
Contract Call Entry point: get_mapping 🟢 -0.31022942 CSPR (79.32%)
Contract Call Entry point: push_list 🔴 +0.01152528 CSPR (3.65%)
Contract Call Entry point: get_list 🟢 -0.31006689 CSPR (78.19%)
Contract Call Entry point: init_submodule 🔴 +0.03933961 CSPR (4.09%)
Contract Call Entry point: call_submodule 🟢 -0.30730569 CSPR (79.98%)
Contract Call Entry point: call_payable 🟢 -0.700586578 CSPR (11.75%)
Contract Call Entry point: transfer_back 🔴 +0.00634272 CSPR (0.25%)
Contract Call Entry point: emit_event 🔴 +0.01080325 CSPR (7.52%)
Contract Call Entry point: set_named_key 🟢 -0.099625449 CSPR (48.40%)
Contract Call Entry point: get_named_key 🟢 -0.30886194 CSPR (77.10%)
Contract Call Entry point: set_dictionary 🟢 -0.098863099 CSPR (32.70%)
Contract Call Entry point: get_dictionary 🟢 -0.31287189 CSPR (78.06%)

odra-casper/wasm-env/src/host_functions.rs Outdated Show resolved Hide resolved
odra-casper/wasm-env/src/lib.rs Outdated Show resolved Hide resolved
odra-casper/rpc-client/src/casper_client/configuration.rs Outdated Show resolved Hide resolved
odra-casper/rpc-client/src/casper_client/configuration.rs Outdated Show resolved Hide resolved
odra-casper/rpc-client/src/casper_client.rs Outdated Show resolved Hide resolved
@kubaplas kubaplas force-pushed the feature/casper-2.0-rust-sdk branch from b1e806a to f539e3f Compare August 5, 2024 09:25
@kubaplas kubaplas changed the title Feature/casper 2.0 rust sdk Casper 2.0 Aug 5, 2024
Copy link

github-actions bot commented Aug 5, 2024

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +36.390990128 CSPR (23.70%)
Contract Call Entry point: set_variable 🔴 +0.00615366 CSPR (4.02%)
Contract Call Entry point: get_variable 🟢 -0.412478699 CSPR (76.51%)
Contract Call Entry point: set_struct_variable 🔴 +0.01790203 CSPR (9.43%)
Contract Call Entry point: get_struct_variable 🟢 -0.30843059 CSPR (74.20%)
Contract Call Entry point: set_mapping 🔴 +0.00687508 CSPR (4.38%)
Contract Call Entry point: get_mapping 🟢 -0.31022942 CSPR (79.32%)
Contract Call Entry point: push_list 🔴 +0.01152528 CSPR (3.65%)
Contract Call Entry point: get_list 🟢 -0.31006689 CSPR (78.19%)
Contract Call Entry point: init_submodule 🔴 +0.03933961 CSPR (4.09%)
Contract Call Entry point: call_submodule 🟢 -0.30730569 CSPR (79.98%)
Contract Call Entry point: call_payable 🟢 -0.700586578 CSPR (11.75%)
Contract Call Entry point: transfer_back 🔴 +0.00634272 CSPR (0.25%)
Contract Call Entry point: emit_event 🔴 +0.01080325 CSPR (7.52%)
Contract Call Entry point: set_named_key 🟢 -0.099625449 CSPR (48.40%)
Contract Call Entry point: get_named_key 🟢 -0.30886194 CSPR (77.10%)
Contract Call Entry point: set_dictionary 🟢 -0.098863099 CSPR (32.70%)
Contract Call Entry point: get_dictionary 🟢 -0.31287189 CSPR (78.06%)

@kubaplas kubaplas force-pushed the feature/casper-2.0-rust-sdk branch from f539e3f to bde22de Compare August 5, 2024 09:38
Copy link

github-actions bot commented Aug 5, 2024

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +36.390990128 CSPR (23.70%)
Contract Call Entry point: set_variable 🔴 +0.00615366 CSPR (4.02%)
Contract Call Entry point: get_variable 🟢 -0.412478699 CSPR (76.51%)
Contract Call Entry point: set_struct_variable 🔴 +0.01790203 CSPR (9.43%)
Contract Call Entry point: get_struct_variable 🟢 -0.30843059 CSPR (74.20%)
Contract Call Entry point: set_mapping 🔴 +0.00687508 CSPR (4.38%)
Contract Call Entry point: get_mapping 🟢 -0.31022942 CSPR (79.32%)
Contract Call Entry point: push_list 🔴 +0.01152528 CSPR (3.65%)
Contract Call Entry point: get_list 🟢 -0.31006689 CSPR (78.19%)
Contract Call Entry point: init_submodule 🔴 +0.03933961 CSPR (4.09%)
Contract Call Entry point: call_submodule 🟢 -0.30730569 CSPR (79.98%)
Contract Call Entry point: call_payable 🟢 -0.700586578 CSPR (11.75%)
Contract Call Entry point: transfer_back 🔴 +0.00634272 CSPR (0.25%)
Contract Call Entry point: emit_event 🔴 +0.01080325 CSPR (7.52%)
Contract Call Entry point: set_named_key 🟢 -0.099625449 CSPR (48.40%)
Contract Call Entry point: get_named_key 🟢 -0.30886194 CSPR (77.10%)
Contract Call Entry point: set_dictionary 🟢 -0.098863099 CSPR (32.70%)
Contract Call Entry point: get_dictionary 🟢 -0.31287189 CSPR (78.06%)

@kubaplas kubaplas force-pushed the feature/casper-2.0-rust-sdk branch from bde22de to f5f3af8 Compare August 5, 2024 10:01
Copy link

github-actions bot commented Aug 5, 2024

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +9.755368665 CSPR (6.35%)
Contract Call Entry point: set_variable 🟢 -0.00231534 CSPR (1.51%)
Contract Call Entry point: get_variable 🟢 -0.419105939 CSPR (77.74%)
Contract Call Entry point: set_struct_variable 🟢 -0.00414851 CSPR (2.18%)
Contract Call Entry point: get_struct_variable 🟢 -0.31635225 CSPR (76.10%)
Contract Call Entry point: set_mapping 🟢 -0.00363722 CSPR (2.32%)
Contract Call Entry point: get_mapping 🟢 -0.31898714 CSPR (81.56%)
Contract Call Entry point: push_list 🟢 -0.00615815 CSPR (1.95%)
Contract Call Entry point: get_list 🟢 -0.31903119 CSPR (80.45%)
Contract Call Entry point: init_submodule 🟢 -0.01651716 CSPR (1.72%)
Contract Call Entry point: call_submodule 🟢 -0.31476049 CSPR (81.92%)
Contract Call Entry point: call_payable 🟢 -0.705988438 CSPR (11.85%)
Contract Call Entry point: transfer_back 🟢 -0.00356595 CSPR (0.14%)
Contract Call Entry point: emit_event 🟢 -0.00387252 CSPR (2.69%)
Contract Call Entry point: set_named_key 🟢 -0.104387929 CSPR (50.72%)
Contract Call Entry point: get_named_key 🟢 -0.31668402 CSPR (79.06%)
Contract Call Entry point: set_dictionary 🟢 -0.106472829 CSPR (35.22%)
Contract Call Entry point: get_dictionary 🟢 -0.32202705 CSPR (80.34%)

@kubaplas kubaplas force-pushed the feature/casper-2.0-rust-sdk branch from f5f3af8 to b315b2e Compare August 5, 2024 10:41
Copy link

github-actions bot commented Aug 5, 2024

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +9.755368665 CSPR (6.35%)
Contract Call Entry point: set_variable 🟢 -0.00231534 CSPR (1.51%)
Contract Call Entry point: get_variable 🟢 -0.419105939 CSPR (77.74%)
Contract Call Entry point: set_struct_variable 🟢 -0.00414851 CSPR (2.18%)
Contract Call Entry point: get_struct_variable 🟢 -0.31635225 CSPR (76.10%)
Contract Call Entry point: set_mapping 🟢 -0.00363722 CSPR (2.32%)
Contract Call Entry point: get_mapping 🟢 -0.31898714 CSPR (81.56%)
Contract Call Entry point: push_list 🟢 -0.00615815 CSPR (1.95%)
Contract Call Entry point: get_list 🟢 -0.31903119 CSPR (80.45%)
Contract Call Entry point: init_submodule 🟢 -0.01651716 CSPR (1.72%)
Contract Call Entry point: call_submodule 🟢 -0.31476049 CSPR (81.92%)
Contract Call Entry point: call_payable 🟢 -0.705988438 CSPR (11.85%)
Contract Call Entry point: transfer_back 🟢 -0.00356595 CSPR (0.14%)
Contract Call Entry point: emit_event 🟢 -0.00387252 CSPR (2.69%)
Contract Call Entry point: set_named_key 🟢 -0.104387929 CSPR (50.72%)
Contract Call Entry point: get_named_key 🟢 -0.31668402 CSPR (79.06%)
Contract Call Entry point: set_dictionary 🟢 -0.106472829 CSPR (35.22%)
Contract Call Entry point: get_dictionary 🟢 -0.32202705 CSPR (80.34%)

core/src/address.rs Outdated Show resolved Hide resolved
core/src/address.rs Outdated Show resolved Hide resolved
core/src/callstack.rs Outdated Show resolved Hide resolved
core/src/callstack.rs Outdated Show resolved Hide resolved
core/src/list.rs Show resolved Hide resolved
@@ -74,6 +74,7 @@ impl OdraVmState {

pub fn emit_event(&mut self, event_data: &Bytes) {
let contract_address = self.callstack.current().address();
#[allow(clippy::manual_inspect)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Newest clippy wants me to rewrite the code using inspect, but I failed...

odra-vm/src/vm/utils.rs Show resolved Hide resolved
odra-vm/src/vm/utils.rs Show resolved Hide resolved
odra-casper/livenet-env/src/livenet_host.rs Outdated Show resolved Hide resolved
odra-casper/proxy-caller/src/lib.rs Outdated Show resolved Hide resolved
Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +9.209986209 CSPR (6.00%)
Contract Call Entry point: set_variable 🟢 -0.00231534 CSPR (1.51%)
Contract Call Entry point: get_variable 🟢 -0.419105939 CSPR (77.74%)
Contract Call Entry point: set_struct_variable 🟢 -0.00414851 CSPR (2.18%)
Contract Call Entry point: get_struct_variable 🟢 -0.31635225 CSPR (76.10%)
Contract Call Entry point: set_mapping 🟢 -0.00363722 CSPR (2.32%)
Contract Call Entry point: get_mapping 🟢 -0.31898714 CSPR (81.56%)
Contract Call Entry point: push_list 🟢 -0.00615815 CSPR (1.95%)
Contract Call Entry point: get_list 🟢 -0.31903119 CSPR (80.45%)
Contract Call Entry point: init_submodule 🟢 -0.01651716 CSPR (1.72%)
Contract Call Entry point: call_submodule 🟢 -0.31476049 CSPR (81.92%)
Contract Call Entry point: call_payable 🟢 -0.705988438 CSPR (11.85%)
Contract Call Entry point: transfer_back 🟢 -0.00356595 CSPR (0.14%)
Contract Call Entry point: emit_event 🟢 -0.00387252 CSPR (2.69%)
Contract Call Entry point: set_named_key 🟢 -0.104405439 CSPR (50.72%)
Contract Call Entry point: get_named_key 🟢 -0.31668402 CSPR (79.06%)
Contract Call Entry point: set_dictionary 🟢 -0.106472829 CSPR (35.22%)
Contract Call Entry point: get_dictionary 🟢 -0.32202705 CSPR (80.34%)

@kubaplas kubaplas changed the base branch from release/1.2.0 to release/1.3.0 August 13, 2024 09:43
Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +38.917027099 CSPR (25.35%)
Contract Call Entry point: set_variable 🔴 +0.01297748 CSPR (8.49%)
Contract Call Entry point: get_variable 🟢 -0.407518269 CSPR (75.59%)
Contract Call Entry point: set_struct_variable 🔴 +0.02898775 CSPR (15.26%)
Contract Call Entry point: get_struct_variable 🟢 -0.30337325 CSPR (72.98%)
Contract Call Entry point: set_mapping 🔴 +0.01619359 CSPR (10.31%)
Contract Call Entry point: get_mapping 🟢 -0.3028238 CSPR (77.42%)
Contract Call Entry point: push_list 🔴 +0.02347187 CSPR (7.43%)
Contract Call Entry point: get_list 🟢 -0.30288442 CSPR (76.38%)
Contract Call Entry point: init_submodule 🔴 +0.06784282 CSPR (7.06%)
Contract Call Entry point: call_submodule 🟢 -0.30197561 CSPR (78.59%)
Contract Call Entry point: call_payable 🟢 -0.690903138 CSPR (11.59%)
Contract Call Entry point: transfer_back 🔴 +0.00958425 CSPR (0.38%)
Contract Call Entry point: emit_event 🔴 +0.01744319 CSPR (12.14%)
Contract Call Entry point: set_named_key 🟢 -0.091349749 CSPR (44.38%)
Contract Call Entry point: get_named_key 🟢 -0.30476163 CSPR (76.08%)
Contract Call Entry point: set_dictionary 🟢 -0.089576989 CSPR (29.63%)
Contract Call Entry point: get_dictionary 🟢 -0.30863664 CSPR (77.00%)

Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +38.894675359 CSPR (25.33%)
Contract Call Entry point: set_variable 🔴 +0.01297748 CSPR (8.49%)
Contract Call Entry point: get_variable 🟢 -0.407518269 CSPR (75.59%)
Contract Call Entry point: set_struct_variable 🔴 +0.02898775 CSPR (15.26%)
Contract Call Entry point: get_struct_variable 🟢 -0.30337325 CSPR (72.98%)
Contract Call Entry point: set_mapping 🔴 +0.01619359 CSPR (10.31%)
Contract Call Entry point: get_mapping 🟢 -0.3028238 CSPR (77.42%)
Contract Call Entry point: push_list 🔴 +0.02347187 CSPR (7.43%)
Contract Call Entry point: get_list 🟢 -0.30288442 CSPR (76.38%)
Contract Call Entry point: init_submodule 🔴 +0.06784282 CSPR (7.06%)
Contract Call Entry point: call_submodule 🟢 -0.30197561 CSPR (78.59%)
Contract Call Entry point: call_payable 🟢 -0.690903138 CSPR (11.59%)
Contract Call Entry point: transfer_back 🔴 +0.00958425 CSPR (0.38%)
Contract Call Entry point: emit_event 🔴 +0.01744319 CSPR (12.14%)
Contract Call Entry point: set_named_key 🟢 -0.091349749 CSPR (44.38%)
Contract Call Entry point: get_named_key 🟢 -0.30476163 CSPR (76.08%)
Contract Call Entry point: set_dictionary 🟢 -0.089576989 CSPR (29.63%)
Contract Call Entry point: get_dictionary 🟢 -0.30863664 CSPR (77.00%)

Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +38.902498468 CSPR (25.34%)
Contract Call Entry point: set_variable 🔴 +0.01297748 CSPR (8.49%)
Contract Call Entry point: get_variable 🟢 -0.407518269 CSPR (75.59%)
Contract Call Entry point: set_struct_variable 🔴 +0.02898775 CSPR (15.26%)
Contract Call Entry point: get_struct_variable 🟢 -0.30337325 CSPR (72.98%)
Contract Call Entry point: set_mapping 🔴 +0.01619359 CSPR (10.31%)
Contract Call Entry point: get_mapping 🟢 -0.3028238 CSPR (77.42%)
Contract Call Entry point: push_list 🔴 +0.02347187 CSPR (7.43%)
Contract Call Entry point: get_list 🟢 -0.30288442 CSPR (76.38%)
Contract Call Entry point: init_submodule 🔴 +0.06784282 CSPR (7.06%)
Contract Call Entry point: call_submodule 🟢 -0.30197561 CSPR (78.59%)
Contract Call Entry point: call_payable 🟢 -0.690903138 CSPR (11.59%)
Contract Call Entry point: transfer_back 🔴 +0.00958425 CSPR (0.38%)
Contract Call Entry point: emit_event 🔴 +0.01744319 CSPR (12.14%)
Contract Call Entry point: set_named_key 🟢 -0.091349749 CSPR (44.38%)
Contract Call Entry point: get_named_key 🟢 -0.30476163 CSPR (76.08%)
Contract Call Entry point: set_dictionary 🟢 -0.089576989 CSPR (29.63%)
Contract Call Entry point: get_dictionary 🟢 -0.30863664 CSPR (77.00%)

Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +38.894675359 CSPR (25.33%)
Contract Call Entry point: set_variable 🔴 +0.01297748 CSPR (8.49%)
Contract Call Entry point: get_variable 🟢 -0.407518269 CSPR (75.59%)
Contract Call Entry point: set_struct_variable 🔴 +0.02898775 CSPR (15.26%)
Contract Call Entry point: get_struct_variable 🟢 -0.30337325 CSPR (72.98%)
Contract Call Entry point: set_mapping 🔴 +0.01619359 CSPR (10.31%)
Contract Call Entry point: get_mapping 🟢 -0.3028238 CSPR (77.42%)
Contract Call Entry point: push_list 🔴 +0.02347187 CSPR (7.43%)
Contract Call Entry point: get_list 🟢 -0.30288442 CSPR (76.38%)
Contract Call Entry point: init_submodule 🔴 +0.06784282 CSPR (7.06%)
Contract Call Entry point: call_submodule 🟢 -0.30197561 CSPR (78.59%)
Contract Call Entry point: call_payable 🟢 -0.690903138 CSPR (11.59%)
Contract Call Entry point: transfer_back 🔴 +0.00958425 CSPR (0.38%)
Contract Call Entry point: emit_event 🔴 +0.01744319 CSPR (12.14%)
Contract Call Entry point: set_named_key 🟢 -0.091349749 CSPR (44.38%)
Contract Call Entry point: get_named_key 🟢 -0.30476163 CSPR (76.08%)
Contract Call Entry point: set_dictionary 🟢 -0.089576989 CSPR (29.63%)
Contract Call Entry point: get_dictionary 🟢 -0.30863664 CSPR (77.00%)

Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +15.84914149 CSPR (10.32%)
Contract Call Entry point: set_variable 🟢 -0.00142545 CSPR (0.93%)
Contract Call Entry point: get_variable 🟢 -0.418445779 CSPR (77.62%)
Contract Call Entry point: set_struct_variable 🟢 -0.00107142 CSPR (0.56%)
Contract Call Entry point: get_struct_variable 🟢 -0.3153924 CSPR (75.87%)
Contract Call Entry point: set_mapping 🟢 -0.00237424 CSPR (1.51%)
Contract Call Entry point: get_mapping 🟢 -0.31795389 CSPR (81.29%)
Contract Call Entry point: push_list 🟢 -0.00369868 CSPR (1.17%)
Contract Call Entry point: get_list 🟢 -0.31799794 CSPR (80.19%)
Contract Call Entry point: init_submodule 🟢 -0.00864491 CSPR (0.90%)
Contract Call Entry point: call_submodule 🟢 -0.31392431 CSPR (81.70%)
Contract Call Entry point: call_payable 🟢 -0.705211198 CSPR (11.83%)
Contract Call Entry point: transfer_back 🟢 -0.00321088 CSPR (0.13%)
Contract Call Entry point: emit_event 🟢 -0.00259505 CSPR (1.81%)
Contract Call Entry point: set_named_key 🟢 -0.103569309 CSPR (50.32%)
Contract Call Entry point: get_named_key 🟢 -0.31599677 CSPR (78.89%)
Contract Call Entry point: set_dictionary 🟢 -0.105190059 CSPR (34.80%)
Contract Call Entry point: get_dictionary 🟢 -0.32112269 CSPR (80.12%)

Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +15.84914149 CSPR (10.32%)
Contract Call Entry point: set_variable 🟢 -0.00142545 CSPR (0.93%)
Contract Call Entry point: get_variable 🟢 -0.418445779 CSPR (77.62%)
Contract Call Entry point: set_struct_variable 🟢 -0.00107142 CSPR (0.56%)
Contract Call Entry point: get_struct_variable 🟢 -0.3153924 CSPR (75.87%)
Contract Call Entry point: set_mapping 🟢 -0.00237424 CSPR (1.51%)
Contract Call Entry point: get_mapping 🟢 -0.31795389 CSPR (81.29%)
Contract Call Entry point: push_list 🟢 -0.00369868 CSPR (1.17%)
Contract Call Entry point: get_list 🟢 -0.31799794 CSPR (80.19%)
Contract Call Entry point: init_submodule 🟢 -0.00864491 CSPR (0.90%)
Contract Call Entry point: call_submodule 🟢 -0.31392431 CSPR (81.70%)
Contract Call Entry point: call_payable 🟢 -0.705211198 CSPR (11.83%)
Contract Call Entry point: transfer_back 🟢 -0.00321088 CSPR (0.13%)
Contract Call Entry point: emit_event 🟢 -0.00259505 CSPR (1.81%)
Contract Call Entry point: set_named_key 🟢 -0.103569309 CSPR (50.32%)
Contract Call Entry point: get_named_key 🟢 -0.31599677 CSPR (78.89%)
Contract Call Entry point: set_dictionary 🟢 -0.105190059 CSPR (34.80%)
Contract Call Entry point: get_dictionary 🟢 -0.32112269 CSPR (80.12%)

Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +15.84914149 CSPR (10.32%)
Contract Call Entry point: set_variable 🟢 -0.00142545 CSPR (0.93%)
Contract Call Entry point: get_variable 🟢 -0.418445779 CSPR (77.62%)
Contract Call Entry point: set_struct_variable 🟢 -0.00107142 CSPR (0.56%)
Contract Call Entry point: get_struct_variable 🟢 -0.3153924 CSPR (75.87%)
Contract Call Entry point: set_mapping 🟢 -0.00237424 CSPR (1.51%)
Contract Call Entry point: get_mapping 🟢 -0.31795389 CSPR (81.29%)
Contract Call Entry point: push_list 🟢 -0.00369868 CSPR (1.17%)
Contract Call Entry point: get_list 🟢 -0.31799794 CSPR (80.19%)
Contract Call Entry point: init_submodule 🟢 -0.00864491 CSPR (0.90%)
Contract Call Entry point: call_submodule 🟢 -0.31392431 CSPR (81.70%)
Contract Call Entry point: call_payable 🟢 -0.705211198 CSPR (11.83%)
Contract Call Entry point: transfer_back 🟢 -0.00321088 CSPR (0.13%)
Contract Call Entry point: emit_event 🟢 -0.00259505 CSPR (1.81%)
Contract Call Entry point: set_named_key 🟢 -0.103569309 CSPR (50.32%)
Contract Call Entry point: get_named_key 🟢 -0.31599677 CSPR (78.89%)
Contract Call Entry point: set_dictionary 🟢 -0.105190059 CSPR (34.80%)
Contract Call Entry point: get_dictionary 🟢 -0.32112269 CSPR (80.12%)

Update chainspec to be compatible with newest version of Condor.
Copy link

Benchmark report

Action Details Gas diff
Wasm Deploy Filename: Benchmark.wasm 🔴 +15.896075644 CSPR (10.35%)
Contract Call Entry point: set_variable 🟢 -0.00142545 CSPR (0.93%)
Contract Call Entry point: get_variable 🟢 -0.418445779 CSPR (77.62%)
Contract Call Entry point: set_struct_variable 🟢 -0.00107142 CSPR (0.56%)
Contract Call Entry point: get_struct_variable 🟢 -0.3153924 CSPR (75.87%)
Contract Call Entry point: set_mapping 🟢 -0.00237424 CSPR (1.51%)
Contract Call Entry point: get_mapping 🟢 -0.31795389 CSPR (81.29%)
Contract Call Entry point: push_list 🟢 -0.00369868 CSPR (1.17%)
Contract Call Entry point: get_list 🟢 -0.31799794 CSPR (80.19%)
Contract Call Entry point: init_submodule 🟢 -0.00864691 CSPR (0.90%)
Contract Call Entry point: call_submodule 🟢 -0.31392431 CSPR (81.70%)
Contract Call Entry point: call_payable 🟢 -0.705211698 CSPR (11.83%)
Contract Call Entry point: transfer_back 🟢 -0.00321088 CSPR (0.13%)
Contract Call Entry point: emit_event 🟢 -0.00259605 CSPR (1.81%)
Contract Call Entry point: set_named_key 🟢 -0.103569809 CSPR (50.32%)
Contract Call Entry point: get_named_key 🟢 -0.31599727 CSPR (78.89%)
Contract Call Entry point: set_dictionary 🟢 -0.105190559 CSPR (34.80%)
Contract Call Entry point: get_dictionary 🟢 -0.32112269 CSPR (80.12%)

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

Successfully merging this pull request may close these issues.

3 participants