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

Claim Account to use Eip-712 #1755

Merged
merged 20 commits into from
Jan 12, 2022
Merged

Claim Account to use Eip-712 #1755

merged 20 commits into from
Jan 12, 2022

Conversation

ferrell-code
Copy link
Contributor

@ferrell-code ferrell-code commented Jan 6, 2022

closes #1579

I believe this signature would work with no collision problems (Obviously still need to update tests/benchmarks)

@ferrell-code ferrell-code marked this pull request as draft January 6, 2022 22:35
modules/evm-accounts/src/lib.rs Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 10, 2022

Codecov Report

Merging #1755 (593d3ca) into master (1aab2a6) will decrease coverage by 0.01%.
The diff coverage is 78.43%.

❗ Current head 593d3ca differs from pull request most recent head 661bc9a. Consider uploading reports for the commit 661bc9a to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1755      +/-   ##
==========================================
- Coverage   72.30%   72.28%   -0.02%     
==========================================
  Files         171      171              
  Lines       18730    18645      -85     
==========================================
- Hits        13542    13477      -65     
+ Misses       5188     5168      -20     
Impacted Files Coverage Δ
primitives/src/unchecked_extrinsic.rs 0.00% <ø> (ø)
runtime/acala/src/lib.rs 0.00% <ø> (ø)
runtime/acala/src/weights/module_evm_accounts.rs 0.00% <0.00%> (ø)
runtime/karura/src/lib.rs 0.00% <ø> (ø)
runtime/karura/src/weights/module_evm_accounts.rs 0.00% <0.00%> (ø)
runtime/mandala/src/lib.rs 0.00% <ø> (ø)
runtime/mandala/src/weights/module_evm_accounts.rs 0.00% <0.00%> (ø)
modules/evm-accounts/src/lib.rs 74.76% <93.54%> (-0.71%) ⬇️
modules/evm-accounts/src/tests.rs 100.00% <100.00%> (ø)
primitives/src/lib.rs 100.00% <100.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6517b1a...661bc9a. Read the comment docs.

@ferrell-code
Copy link
Contributor Author

/bench runtime acala module-evm-accounts

@ghost
Copy link

ghost commented Jan 10, 2022

Finished benchmark for branch: fer-evm-claim-eip712

Benchmark: Benchmark Runtime Acala Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-acala-runtime -- benchmark --chain=acala-latest --steps=50 --repeat=20 --pallet=module-evm-accounts --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/

Results

Compiling acala-cli v2.1.3 (/app/git/Acala/node/cli)
Compiling acala-runtime v2.1.3 (/app/git/Acala/runtime/acala)
Compiling mandala-runtime v2.1.3 (/app/git/Acala/runtime/mandala)
Compiling karura-runtime v2.1.3 (/app/git/Acala/runtime/karura)
Compiling polkadot-runtime v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9)
Compiling kusama-runtime v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9)
Compiling westend-runtime v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9)
Compiling rococo-runtime v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9)
Compiling node-runtime v3.0.0-dev (https://github.com/paritytech/substrate?branch=polkadot-v0.9.13#fcc54a72)
Compiling module-evm-utiltity v2.1.3 (/app/git/Acala/modules/evm-utiltity)
Compiling nutsfinance-stable-asset v0.1.0 (/app/git/Acala/ecosystem-modules/stable-asset/lib/stable-asset)
Compiling module-transaction-pause v2.1.3 (/app/git/Acala/modules/transaction-pause)
Compiling module-evm-utiltity-macro v2.1.3 (/app/git/Acala/modules/evm-utiltity/macro)
Compiling module-session-manager v2.1.3 (/app/git/Acala/modules/session-manager)
error: failed to run custom build command for mandala-runtime v2.1.3 (/app/git/Acala/runtime/mandala)

Caused by:
process didn't exit successfully: /app/git/Acala/target/release/build/mandala-runtime-f6c088bebf14d06c/build-script-build (exit status: 1)
--- stdout
�[1;33mInformation that should be included in a bug report.�[0m
�[1;33mExecuting build command:�[0m "/root/.rustup/toolchains/nightly-2021-11-07-x86_64-unknown-linux-gnu/bin/cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/app/git/Acala/target/release/wbuild/mandala-runtime/Cargo.toml" "--color=always" "--release"
�[1;33mUsing rustc version:�[0m rustc 1.58.0-nightly (072799443 2021-11-06)

--- stderr
�[0m�[0m�[1m�[33mwarning�[0m�[1m:�[0m Patch cumulus-client-cli v0.1.0 (https://github.com/paritytech//cumulus?rev=0be8e8fc214641e306e4f913dd64ff1913e46e95#0be8e8fc) was not used in the crate graph.
Patch cumulus-client-consensus-aura v0.1.0 (https://github.com/paritytech//cumulus?rev=0be8e8fc214641e306e4f913dd64ff1913e46e95#0be8e8fc) was not used in the crate graph.
Patch cumulus-client-consensus-common v0.1.0 (https://github.com/paritytech//cumulus?rev=0be8e8fc214641e306e4f913dd64ff1913e46e95#0be8e8fc) was not used in the crate graph.
Patch cumulus-client-consensus-relay-chain v0.1.0 (https://github.com/paritytech//cumulus?rev=0be8e8fc214641e306e4f913dd64ff1913e46e95#0be8e8fc) was not used in the crate graph.
Patch cumulus-client-network v0.1.0 (https://github.com/paritytech//cumulus?rev=0be8e8fc214641e306e4f913dd64ff1913e46e95#0be8e8fc) was not used in the crate graph.
Patch cumulus-client-service v0.1.0 (https://github.com/paritytech//cumulus?rev=0be8e8fc214641e306e4f913dd64ff1913e46e95#0be8e8fc) was not used in the crate graph.
Patch cumulus-test-relay-sproof-builder v0.1.0 (https://github.com/paritytech//cumulus?rev=0be8e8fc214641e306e4f913dd64ff1913e46e95#0be8e8fc) was not used in the crate graph.
Patch kusama-runtime v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch polkadot-cli v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch polkadot-client v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch polkadot-node-core-pvf v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch polkadot-node-network-protocol v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch polkadot-node-primitives v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch polkadot-node-subsystem v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch polkadot-overseer v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch polkadot-runtime v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch polkadot-runtime-common v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch polkadot-runtime-parachains v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch polkadot-service v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch polkadot-statement-table v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch rococo-runtime v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch westend-runtime v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch xcm-simulator v0.9.13 (https://github.com/paritytech//polkadot?rev=7d8f00b90cd6d87780123b3e08ca120cfb0c6e50#7d8f00b9) was not used in the crate graph.
Patch frame-benchmarking-cli v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch frame-election-provider-support v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch frame-system-benchmarking v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch frame-try-runtime v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-authority-discovery v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-babe v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-election-provider-multi-phase v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-gilt v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-grandpa v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-identity v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-im-online v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-mmr v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-mmr-primitives v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-mmr-rpc v3.0.0 (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-nicks v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-offences-benchmarking v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-session-benchmarking v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-society v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-staking v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-staking-reward-curve v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-staking-reward-fn v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-transaction-payment-rpc v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch pallet-vesting v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch remote-externalities v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-authority-discovery v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-basic-authorship v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-block-builder v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-chain-spec v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-cli v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-client-api v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-client-db v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-consensus v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-consensus-aura v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-consensus-babe v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-consensus-babe-rpc v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-consensus-epochs v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-consensus-manual-seal v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-consensus-slots v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-consensus-uncles v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-executor v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-executor-common v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-executor-wasmtime v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-finality-grandpa v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-finality-grandpa-rpc v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-informant v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-keystore v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-network v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-network-gossip v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-network-test v0.8.0 (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-offchain v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-rpc v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-rpc-api v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-rpc-server v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-service v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-sync-state-rpc v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-telemetry v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-tracing v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-transaction-pool v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-transaction-pool-api v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sc-utils v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sp-blockchain v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sp-consensus v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sp-consensus-babe v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sp-consensus-vrf v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sp-finality-grandpa v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sp-keyring v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sp-keystore v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sp-rpc v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch sp-serializer v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch substrate-build-script-utils v3.0.0 (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch substrate-frame-rpc-system v4.0.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch substrate-prometheus-endpoint v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch substrate-test-runtime v2.0.0 (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch substrate-test-runtime-client v2.0.0 (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Patch try-runtime-cli v0.10.0-dev (https://github.com/paritytech//substrate?rev=fcc54a72973d03afe7bf9e3ef2736050b3f33465#fcc54a72) was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run cargo update to use the new
version. This may also occur with an optional dependency that is not enabled.
�[0m�[0m�[1m�[36m Blocking�[0m waiting for file lock on package cache
�[0m�[0m�[1m�[36m Blocking�[0m waiting for file lock on package cache
�[0m�[0m�[1m�[32m Compiling�[0m mandala-runtime v2.1.3 (/app/git/Acala/runtime/mandala)
�[0m�[0m�[1m�[32m Compiling�[0m module-evm-utiltity v2.1.3 (/app/git/Acala/modules/evm-utiltity)
�[0m�[0m�[1m�[32m Compiling�[0m module-evm-utiltity-macro v2.1.3 (/app/git/Acala/modules/evm-utiltity/macro)
�[0m�[0m�[1m�[32m Compiling�[0m nutsfinance-stable-asset v0.1.0 (/app/git/Acala/ecosystem-modules/stable-asset/lib/stable-asset)
�[0m�[0m�[1m�[32m Compiling�[0m module-transaction-pause v2.1.3 (/app/git/Acala/modules/transaction-pause)
�[0m�[0m�[1m�[32m Compiling�[0m acala-primitives v2.1.3 (/app/git/Acala/primitives)
�[0m�[0m�[1m�[32m Compiling�[0m module-support v2.1.3 (/app/git/Acala/modules/support)
�[0m�[0m�[1m�[32m Compiling�[0m module-nft v2.1.3 (/app/git/Acala/modules/nft)
�[0m�[0m�[1m�[32m Compiling�[0m module-evm-rpc-runtime-api v2.1.3 (/app/git/Acala/modules/evm/rpc/runtime_api)
�[0m�[0m�[1m�[32m Compiling�[0m module-loans v2.1.3 (/app/git/Acala/modules/loans)
�[0m�[0m�[1m�[32m Compiling�[0m module-evm v2.1.3 (/app/git/Acala/modules/evm)
�[0m�[0m�[1m�[32m Compiling�[0m module-prices v2.1.3 (/app/git/Acala/modules/prices)
�[0m�[0m�[1m�[32m Compiling�[0m module-transaction-payment v2.1.3 (/app/git/Acala/modules/transaction-payment)
�[0m�[0m�[1m�[32m Compiling�[0m module-idle-scheduler v2.1.3 (/app/git/Acala/modules/idle-scheduler)
�[0m�[0m�[1m�[32m Compiling�[0m module-dex v2.1.3 (/app/git/Acala/modules/dex)
�[0m�[0m�[1m�[32m Compiling�[0m module-homa-xcm v2.0.3 (/app/git/Acala/modules/homa-xcm)
�[0m�[0m�[1m�[32m Compiling�[0m module-incentives v2.1.3 (/app/git/Acala/modules/incentives)
�[0m�[0m�[1m�[32m Compiling�[0m module-asset-registry v2.1.3 (/app/git/Acala/modules/asset-registry)
�[0m�[0m�[1m�[32m Compiling�[0m module-auction-manager v2.1.3 (/app/git/Acala/modules/auction-manager)
�[0m�[0m�[1m�[32m Compiling�[0m module-nominees-election v2.1.3 (/app/git/Acala/modules/nominees-election)
�[0m�[0m�[1m�[32m Compiling�[0m module-relaychain v2.1.3 (/app/git/Acala/modules/relaychain)
�[0m�[0m�[1m�[32m Compiling�[0m module-homa v2.1.3 (/app/git/Acala/modules/homa)
�[0m�[0m�[1m�[32m Compiling�[0m module-cdp-treasury v2.1.3 (/app/git/Acala/modules/cdp-treasury)
�[0m�[0m�[1m�[32m Compiling�[0m ecosystem-starport v2.1.3 (/app/git/Acala/ecosystem-modules/starport)
�[0m�[0m�[1m�[32m Compiling�[0m module-currencies v2.1.3 (/app/git/Acala/modules/currencies)
�[0m�[0m�[1m�[32m Compiling�[0m module-evm-accounts v2.1.3 (/app/git/Acala/modules/evm-accounts)
�[0m�[0m�[1m�[32m Compiling�[0m ecosystem-renvm-bridge v2.1.3 (/app/git/Acala/ecosystem-modules/ren/renvm-bridge)
�[0m�[0m�[1m�[32m Compiling�[0m ecosystem-compound-cash v2.1.3 (/app/git/Acala/ecosystem-modules/compound-cash)
�[0m�[0m�[1m�[32m Compiling�[0m module-session-manager v2.1.3 (/app/git/Acala/modules/session-manager)
�[0m�[0m�[1m�[32m Compiling�[0m module-collator-selection v2.1.3 (/app/git/Acala/modules/collator-selection)
�[0m�[0m�[1m�[32m Compiling�[0m module-cdp-engine v2.1.3 (/app/git/Acala/modules/cdp-engine)
�[0m�[0m�[1m�[32m Compiling�[0m module-emergency-shutdown v2.1.3 (/app/git/Acala/modules/emergency-shutdown)
�[0m�[0m�[1m�[32m Compiling�[0m module-evm-bridge v2.1.3 (/app/git/Acala/modules/evm-bridge)
�[0m�[0m�[1m�[32m Compiling�[0m runtime-common v2.1.3 (/app/git/Acala/runtime/common)
�[0m�[0m�[1m�[32m Compiling�[0m module-honzon v2.1.3 (/app/git/Acala/modules/honzon)
�[0m�[1m�[38;5;9merror[E0432]�[0m�[0m�[1m: unresolved import orml_xcm_support::DepositToAlternative�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/app/git/Acala/runtime/mandala/src/lib.rs:86:28�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m86�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0mpub use orml_xcm_support::{DepositToAlternative, IsNativeConcrete, MultiCurrencyAdapter, MultiNativeAsset};�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^�[0m�[0m �[0m�[0m�[1m�[38;5;9mno DepositToAlternative in the root�[0m

�[0m�[1m�[33mwarning�[0m�[0m�[1m: unused import: codec::Encode�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/app/git/Acala/runtime/mandala/src/benchmarking/evm_accounts.rs:22:5�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m22�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0muse codec::Encode;�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[33m^^^^^^^^^^^^^�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: #[warn(unused_imports)] on by default�[0m

�[0m�[1m�[38;5;9merror[E0107]�[0m�[0m�[1m: this struct takes 7 generic arguments but 8 generic arguments were supplied�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/app/git/Acala/runtime/mandala/src/lib.rs:1709:33�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m1709�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0mpub type LocalAssetTransactor = MultiCurrencyAdapter<�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^�[0m�[0m �[0m�[0m�[1m�[38;5;9mexpected 7 generic arguments�[0m
�[0m�[1m�[38;5;12m...�[0m
�[0m�[1m�[38;5;12m1717�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m DepositToAlternative<TreasuryAccount, Currencies, CurrencyId, AccountId, Balance>,�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;12m---------------------------------------------------------------------------------�[0m�[0m �[0m�[0m�[1m�[38;5;12mhelp: remove this generic argument�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;10mnote�[0m�[0m: struct defined here, with 7 generic parameters: MultiCurrency, UnknownAsset, Match, AccountId, AccountIdConvert, CurrencyId, CurrencyIdConvert�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/app/git/Acala/orml/xcm-support/src/currency_adapter.rs:44:12�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m44�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0mpub struct MultiCurrencyAdapter<�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;10m^^^^^^^^^^^^^^^^^^^^�[0m
�[0m�[1m�[38;5;12m45�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m MultiCurrency,�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;12m-------------�[0m
�[0m�[1m�[38;5;12m46�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m UnknownAsset,�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;12m------------�[0m
�[0m�[1m�[38;5;12m47�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m Match,�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;12m-----�[0m
�[0m�[1m�[38;5;12m48�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m AccountId,�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;12m---------�[0m
�[0m�[1m�[38;5;12m49�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m AccountIdConvert,�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;12m----------------�[0m
�[0m�[1m�[38;5;12m50�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m CurrencyId,�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;12m----------�[0m
�[0m�[1m�[38;5;12m51�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m CurrencyIdConvert,�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;12m-----------------�[0m

�[0m�[1mSome errors have detailed explanations: E0107, E0432.�[0m
�[0m�[1mFor more information about an error, try rustc --explain E0107.�[0m
�[0m�[0m�[1m�[33mwarning�[0m�[1m:�[0m mandala-runtime (lib) generated 1 warning
�[0m�[0m�[1m�[31merror�[0m�[1m:�[0m could not compile mandala-runtime due to 2 previous errors; 1 warning emitted
warning: build failed, waiting for other jobs to finish...
error: build failed

@ferrell-code
Copy link
Contributor Author

/bench runtime acala module-evm-accounts

@ghost
Copy link

ghost commented Jan 10, 2022

Finished benchmark for branch: fer-evm-claim-eip712

Benchmark: Benchmark Runtime Acala Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-acala-runtime -- benchmark --chain=acala-latest --steps=50 --repeat=20 --pallet=module-evm-accounts --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/

Results

Pallet: "module_evm_accounts", Extrinsic: "claim_account", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: EvmAccounts EvmAddresses (r:1 w:1)
Storage: EvmAccounts Accounts (r:1 w:1)
Storage: System BlockHash (r:1 w:0)
Storage: System Account (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 269.3
µs

Reads = 4
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 269.3
µs

Reads = 4
Writes = 2

Pallet: "module_evm_accounts", Extrinsic: "claim_default_account", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: EvmAccounts EvmAddresses (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 29.34
µs

Reads = 1
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 29.34
µs

Reads = 1
Writes = 2

…hmarks --features=with-acala-runtime -- benchmark --chain=acala-latest --steps=50 --repeat=20 --pallet=module-evm-accounts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/
@ferrell-code
Copy link
Contributor Author

/bench runtime karura module-evm-accounts

@ghost
Copy link

ghost commented Jan 10, 2022

Finished benchmark for branch: fer-evm-claim-eip712

Benchmark: Benchmark Runtime Karura Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-karura-runtime -- benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module-evm-accounts --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Results

Pallet: "module_evm_accounts", Extrinsic: "claim_account", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: EvmAccounts EvmAddresses (r:1 w:1)
Storage: EvmAccounts Accounts (r:1 w:1)
Storage: System BlockHash (r:1 w:0)
Storage: System Account (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 260.1
µs

Reads = 4
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 260.1
µs

Reads = 4
Writes = 2

Pallet: "module_evm_accounts", Extrinsic: "claim_default_account", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: EvmAccounts EvmAddresses (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 28.65
µs

Reads = 1
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 28.65
µs

Reads = 1
Writes = 2

@ferrell-code
Copy link
Contributor Author

/bench runtime mandala module-evm-accounts

…hmarks --features=with-karura-runtime -- benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module-evm-accounts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/
@ghost
Copy link

ghost commented Jan 10, 2022

Finished benchmark for branch: fer-evm-claim-eip712

Benchmark: Benchmark Runtime Mandala Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module-evm-accounts --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/

Results

Pallet: "module_evm_accounts", Extrinsic: "claim_account", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: EvmAccounts EvmAddresses (r:1 w:1)
Storage: EvmAccounts Accounts (r:1 w:1)
Storage: System BlockHash (r:1 w:0)
Storage: System Account (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 259.3
µs

Reads = 4
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 259.3
µs

Reads = 4
Writes = 2

Pallet: "module_evm_accounts", Extrinsic: "claim_default_account", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: EvmAccounts EvmAddresses (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 27.61
µs

Reads = 1
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 27.61
µs

Reads = 1
Writes = 2

…hmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module-evm-accounts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/
@xlc xlc requested a review from zjb0807 January 11, 2022 21:10
@ferrell-code ferrell-code marked this pull request as ready for review January 12, 2022 04:31
Copy link
Member

@zjb0807 zjb0807 left a comment

Choose a reason for hiding this comment

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

LGTM

runtime/karura/src/weights/module_evm_accounts.rs Outdated Show resolved Hide resolved
ts-tests/tests/test-claim-account-eip712.ts Outdated Show resolved Hide resolved
zjb0807
zjb0807 previously approved these changes Jan 12, 2022
Copy link
Member

@zjb0807 zjb0807 left a comment

Choose a reason for hiding this comment

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

xlc
xlc previously approved these changes Jan 12, 2022
@ferrell-code ferrell-code dismissed stale reviews from xlc and zjb0807 via 661bc9a January 12, 2022 22:45
@ferrell-code ferrell-code merged commit 4c3bc11 into master Jan 12, 2022
@ferrell-code ferrell-code deleted the fer-evm-claim-eip712 branch January 12, 2022 23:26
syan095 pushed a commit that referenced this pull request Jan 13, 2022
* origin/master: (53 commits)
  add new audit report
  Use ExitReason::Revert instead of ExitReason::Error (#1772)
  Claim Account to use Eip-712 (#1755)
  Benchmark evm (#1674)
  support evm create rpc and allow H160 default (#1771)
  Update template files license header. (#1770)
  Fix collect_fee (#1766)
  handle nonce for eth tx (#1707)
  updated to the ORML's test coverage file (#1760)
  rm runtime upgrade (#1757)
  Happy new year 2022. (#1761)
  Excluded some files from test coverage (#1759)
  XCM: add deposit error handler for multi-currency adapter. (#1756)
  update stable asset (#1758)
  Fix test coverage for acala (#1590)
  Fix collect_fee (#1754)
  Update HEADER-GPL3
  Update extrinsic-ordering-check-from-bin.yml (#1752)
  Update HEADER-GPL3
  bump version (#1751)
  ...
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.

Use EIP712 for EVM claim account signature
3 participants