Acala icon indicating copy to clipboard operation
Acala copied to clipboard

Add new Account Tokenizer and Foreign State Oracle modules

Open syan095 opened this issue 3 years ago • 47 comments

Added a new Account Tokenizer account. This module allows the users to convert the control of an proxy account into a NFT and back.

Added a new Foreign State Oracle module - where it interfaces with external oracles to communicate state changes/query current states on the relay chain.

Flow Chart for request_mint workflow: https://hackmd.io/8PrOrQfNT2mstTwHNlnUXg?view

Flow Chart for request_redeem workflow: https://hackmd.io/EA24goIYTAa472vognuShA?view

syan095 avatar Feb 10 '22 00:02 syan095

Codecov Report

Merging #1865 (8d5d811) into master (34ad2ca) will decrease coverage by 0.13%. The diff coverage is 91.70%.

@@            Coverage Diff             @@
##           master    #1865      +/-   ##
==========================================
- Coverage   86.18%   86.05%   -0.14%     
==========================================
  Files         102      101       -1     
  Lines       20606    19824     -782     
==========================================
- Hits        17759    17059     -700     
+ Misses       2847     2765      -82     
Impacted Files Coverage Δ
modules/homa-lite/src/mock_no_fees.rs 65.45% <ø> (ø)
modules/support/src/lib.rs 33.33% <ø> (ø)
modules/xcm-interface/src/lib.rs 0.00% <0.00%> (ø)
primitives/src/lib.rs 100.00% <ø> (ø)
modules/relaychain/src/lib.rs 54.76% <7.69%> (-21.91%) :arrow_down:
modules/foreign-state-oracle/src/lib.rs 86.48% <86.48%> (ø)
modules/account-tokenizer/src/lib.rs 88.39% <88.39%> (ø)
modules/account-tokenizer/src/tests.rs 100.00% <100.00%> (ø)
modules/foreign-state-oracle/src/tests.rs 100.00% <100.00%> (ø)
primitives/src/nft.rs 61.53% <100.00%> (+6.99%) :arrow_up:
... and 5 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 34ad2ca...8d5d811. Read the comment docs.

codecov[bot] avatar Feb 16 '22 06:02 codecov[bot]

/bench runtime mandala module-account-tokenizer

syan095 avatar Mar 10 '22 04:03 syan095

Finished benchmark for branch: feature/tokenize_account

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-account-tokenizer --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/

Results

Compiling librocksdb-sys v6.20.3 Compiling polkadot-runtime v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling kusama-runtime v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling rococo-runtime v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling westend-runtime v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling karura-runtime v2.4.0 (/app/git/Acala/runtime/karura) Compiling acala-runtime v2.4.0 (/app/git/Acala/runtime/acala) Compiling mandala-runtime v2.4.0 (/app/git/Acala/runtime/mandala) Compiling rocksdb v0.17.0 Compiling acala-primitives v2.4.0 (/app/git/Acala/primitives) Compiling orml-xtokens v0.4.1-dev (/app/git/Acala/orml/xtokens) Compiling kvdb-rocksdb v0.14.0 Compiling module-support v2.4.0 (/app/git/Acala/modules/support) Compiling module-evm-rpc-runtime-api v2.4.0 (/app/git/Acala/modules/evm/rpc/runtime_api) Compiling module-collator-selection v2.4.0 (/app/git/Acala/modules/collator-selection) Compiling sc-client-db v0.10.0-dev (https://github.com/paritytech//substrate?rev=22d40c761a985482f93bbbea5ba4199bdba74f8e#22d40c76) Compiling module-idle-scheduler v2.4.0 (/app/git/Acala/modules/idle-scheduler) Compiling module-loans v2.4.0 (/app/git/Acala/modules/loans) Compiling module-dex v2.4.0 (/app/git/Acala/modules/dex) Compiling module-transaction-payment v2.4.0 (/app/git/Acala/modules/transaction-payment) Compiling module-prices v2.4.0 (/app/git/Acala/modules/prices) Compiling module-nft v2.4.0 (/app/git/Acala/modules/nft) Compiling module-homa v2.4.0 (/app/git/Acala/modules/homa) Compiling module-relaychain v2.4.0 (/app/git/Acala/modules/relaychain) Compiling module-asset-registry v2.4.0 (/app/git/Acala/modules/asset-registry) Compiling module-currencies v2.4.0 (/app/git/Acala/modules/currencies) Compiling module-xcm-interface v2.0.3 (/app/git/Acala/modules/xcm-interface) Compiling module-auction-manager v2.4.0 (/app/git/Acala/modules/auction-manager) Compiling module-foreign-state-oracle v2.3.0 (/app/git/Acala/modules/foreign-state-oracle) Compiling module-dex-oracle v2.4.0 (/app/git/Acala/modules/dex-oracle) Compiling module-evm-accounts v2.4.0 (/app/git/Acala/modules/evm-accounts) Compiling module-incentives v2.4.0 (/app/git/Acala/modules/incentives) Compiling module-account-tokenizer v2.2.1 (/app/git/Acala/modules/account-tokenizer) Compiling module-cdp-treasury v2.4.0 (/app/git/Acala/modules/cdp-treasury) Compiling ecosystem-compound-cash v2.4.0 (/app/git/Acala/ecosystem-modules/compound-cash) Compiling module-nominees-election v2.4.0 (/app/git/Acala/modules/nominees-election) Compiling ecosystem-renvm-bridge v2.4.0 (/app/git/Acala/ecosystem-modules/ren/renvm-bridge) Compiling ecosystem-starport v2.4.0 (/app/git/Acala/ecosystem-modules/starport) Compiling sc-service v0.10.0-dev (https://github.com/paritytech//substrate?rev=22d40c761a985482f93bbbea5ba4199bdba74f8e#22d40c76) Compiling orml-bencher v0.4.1-dev (/app/git/Acala/orml/bencher) Compiling module-cdp-engine v2.4.0 (/app/git/Acala/modules/cdp-engine) Compiling module-emergency-shutdown v2.4.0 (/app/git/Acala/modules/emergency-shutdown) Compiling sc-cli v0.10.0-dev (https://github.com/paritytech//substrate?rev=22d40c761a985482f93bbbea5ba4199bdba74f8e#22d40c76) Compiling polkadot-client v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling module-evm v2.4.0 (/app/git/Acala/modules/evm) Compiling module-honzon v2.4.0 (/app/git/Acala/modules/honzon) Compiling polkadot-node-metrics v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling try-runtime-cli v0.10.0-dev (https://github.com/paritytech//substrate?rev=22d40c761a985482f93bbbea5ba4199bdba74f8e#22d40c76) Compiling frame-benchmarking-cli v4.0.0-dev (https://github.com/paritytech//substrate?rev=22d40c761a985482f93bbbea5ba4199bdba74f8e#22d40c76) Compiling acala-inspect v2.4.0 (/app/git/Acala/inspect) Compiling cumulus-client-cli v0.1.0 (https://github.com/paritytech//cumulus?rev=76479e7fef3af7c8828a44647847b01afd5fefe5#76479e7f) Compiling module-evm-bridge v2.4.0 (/app/git/Acala/modules/evm-bridge) Compiling evm-rpc v2.4.0 (/app/git/Acala/modules/evm/rpc) Compiling polkadot-overseer v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-subsystem v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling cumulus-relay-chain-interface v0.1.0 (https://github.com/paritytech//cumulus?rev=76479e7fef3af7c8828a44647847b01afd5fefe5#76479e7f) Compiling polkadot-node-subsystem-util v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-core-parachains-inherent v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling cumulus-primitives-parachain-inherent v0.1.0 (https://github.com/paritytech//cumulus?rev=76479e7fef3af7c8828a44647847b01afd5fefe5#76479e7f) Compiling cumulus-client-consensus-common v0.1.0 (https://github.com/paritytech//cumulus?rev=76479e7fef3af7c8828a44647847b01afd5fefe5#76479e7f) Compiling cumulus-client-network v0.1.0 (https://github.com/paritytech//cumulus?rev=76479e7fef3af7c8828a44647847b01afd5fefe5#76479e7f) Compiling cumulus-client-pov-recovery v0.1.0 (https://github.com/paritytech//cumulus?rev=76479e7fef3af7c8828a44647847b01afd5fefe5#76479e7f) Compiling polkadot-node-core-pvf v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-availability-bitfield-distribution v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-core-chain-api v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-dispute-distribution v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-core-av-store v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-core-dispute-coordinator v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-core-backing v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-core-chain-selection v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-availability-distribution v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-collation-generation v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-core-provisioner v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-core-runtime-api v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-gossip-support v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-core-approval-voting v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-statement-distribution v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-collator-protocol v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-network-bridge v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-core-pvf-checker v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-node-core-bitfield-signing v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-approval-distribution v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-availability-recovery v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling cumulus-pallet-parachain-system v0.1.0 (https://github.com/paritytech//cumulus?rev=76479e7fef3af7c8828a44647847b01afd5fefe5#76479e7f) Compiling cumulus-client-consensus-aura v0.1.0 (https://github.com/paritytech//cumulus?rev=76479e7fef3af7c8828a44647847b01afd5fefe5#76479e7f) Compiling cumulus-client-consensus-relay-chain v0.1.0 (https://github.com/paritytech//cumulus?rev=76479e7fef3af7c8828a44647847b01afd5fefe5#76479e7f) Compiling cumulus-client-collator v0.1.0 (https://github.com/paritytech//cumulus?rev=76479e7fef3af7c8828a44647847b01afd5fefe5#76479e7f) Compiling polkadot-node-core-candidate-validation v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling polkadot-performance-test v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling runtime-common v2.4.0 (/app/git/Acala/runtime/common) Compiling cumulus-client-service v0.1.0 (https://github.com/paritytech//cumulus?rev=76479e7fef3af7c8828a44647847b01afd5fefe5#76479e7f) Compiling polkadot-service v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling acala-rpc v2.4.0 (/app/git/Acala/rpc) Compiling cumulus-relay-chain-local v0.1.0 (https://github.com/paritytech//cumulus?rev=76479e7fef3af7c8828a44647847b01afd5fefe5#76479e7f) Compiling acala-service v2.4.0 (/app/git/Acala/node/service) Compiling polkadot-cli v0.9.17 (https://github.com/paritytech//polkadot?rev=de0ecd4760b146ecf33f5e867d707d789e21e060#de0ecd47) Compiling acala-cli v2.4.0 (/app/git/Acala/node/cli) Compiling acala v2.4.0 (/app/git/Acala/node) Finished release [optimized] target(s) in 15m 18s Running target/release/acala benchmark --chain=dev --steps=50 --repeat=20 --pallet=module-account-tokenizer '--extrinsic=*' --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/ Error: Input("No benchmarks found which match your input.")

ghost avatar Mar 10 '22 04:03 ghost

/bench runtime mandala module-account-tokenizer

syan095 avatar Mar 10 '22 05:03 syan095

Finished benchmark for branch: feature/tokenize_account

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-account-tokenizer --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/

Results

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

Storage: unknown [0x313d68a8253b2369f4110c7a64e961de4e7b9012096b41c4eb3aaf947f6ea429] (r:1 w:1) Storage: System Account (r:3 w:3) Storage: OrmlNFT NextClassId (r:1 w:1) Storage: Balances Reserves (r:1 w:1) Storage: Proxy Proxies (r:1 w:1) Storage: AccountTokenizer NFTClassId (r:0 w:1) Storage: OrmlNFT Classes (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 127.8 µs

Reads = 7 Writes = 9

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 127.8 µs

Reads = 7 Writes = 9

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

Storage: System Account (r:3 w:3) Storage: Balances Reserves (r:1 w:1) Storage: ForeignStateOracle NextQueryId (r:1 w:1) Storage: ForeignStateOracle QueryRequests (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 96.35 µs

Reads = 5 Writes = 6

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 96.35 µs

Reads = 5 Writes = 6

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: TransactionPause PausedTransactions (r:1 w:0) Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: OrmlNFT Classes (r:1 w:1) Storage: System Account (r:3 w:3) Storage: OrmlNFT NextTokenId (r:1 w:1) Storage: Balances Reserves (r:1 w:1) Storage: AccountTokenizer MintedAccount (r:0 w:1) Storage: OrmlNFT Tokens (r:0 w:1) Storage: OrmlNFT TokensByOwner (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 156.9 µs

Reads = 9 Writes = 10

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 156.9 µs

Reads = 9 Writes = 10

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

Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: AccountTokenizer MintedAccount (r:1 w:0) Storage: OrmlNFT Tokens (r:1 w:0) Storage: XcmInterface XcmDestWeightAndFee (r:1 w:0) Storage: ParachainInfo ParachainId (r:1 w:0) Storage: ParachainSystem HostConfiguration (r:1 w:0) Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) Storage: System Account (r:2 w:2) Storage: ForeignStateOracle NextQueryId (r:1 w:1) Storage: ForeignStateOracle QueryRequests (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 101.1 µs

Reads = 10 Writes = 5

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 101.1 µs

Reads = 10 Writes = 5

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: TransactionPause PausedTransactions (r:1 w:0) Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: AccountTokenizer MintedAccount (r:1 w:1) Storage: OrmlNFT Tokens (r:1 w:1) Storage: OrmlNFT Classes (r:1 w:1) Storage: Balances Reserves (r:1 w:1) Storage: System Account (r:1 w:1) Storage: OrmlNFT TokensByOwner (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 99.26 µs

Reads = 8 Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 99.26 µs

Reads = 8 Writes = 7

ghost avatar Mar 10 '22 05:03 ghost

/bench runtime karura module-account-tokenizer

syan095 avatar Mar 10 '22 05:03 syan095

Finished benchmark for branch: feature/tokenize_account

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-account-tokenizer --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Results

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

Storage: unknown [0x313d68a8253b2369f4110c7a64e961de4e7b9012096b41c4eb3aaf947f6ea429] (r:1 w:1) Storage: System Account (r:3 w:2) Storage: OrmlNFT NextClassId (r:1 w:0) Storage: OrmlNFT Classes (r:1 w:0) Storage: AccountTokenizer NFTClassId (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 71.95 µs

Reads = 6 Writes = 4

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 71.95 µs

Reads = 6 Writes = 4

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

Storage: System Account (r:3 w:3) Storage: Balances Reserves (r:1 w:1) Storage: ForeignStateOracle NextQueryId (r:1 w:1) Storage: ForeignStateOracle QueryRequests (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 110.5 µs

Reads = 5 Writes = 6

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 110.5 µs

Reads = 5 Writes = 6

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: TransactionPause PausedTransactions (r:1 w:0) Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: OrmlNFT Classes (r:1 w:1) Storage: System Account (r:3 w:3) Storage: OrmlNFT NextTokenId (r:1 w:1) Storage: Balances Reserves (r:1 w:1) Storage: AccountTokenizer MintedAccount (r:0 w:1) Storage: OrmlNFT Tokens (r:0 w:1) Storage: OrmlNFT TokensByOwner (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 161.2 µs

Reads = 9 Writes = 10

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 161.2 µs

Reads = 9 Writes = 10

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

Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: AccountTokenizer MintedAccount (r:1 w:0) Storage: OrmlNFT Tokens (r:1 w:0) Storage: XcmInterface XcmDestWeightAndFee (r:1 w:0) Storage: ParachainInfo ParachainId (r:1 w:0) Storage: PolkadotXcm SupportedVersion (r:1 w:0) Storage: ParachainSystem HostConfiguration (r:1 w:0) Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) Storage: System Account (r:2 w:2) Storage: ForeignStateOracle NextQueryId (r:1 w:1) Storage: ForeignStateOracle QueryRequests (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 111.6 µs

Reads = 11 Writes = 5

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 111.6 µs

Reads = 11 Writes = 5

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: TransactionPause PausedTransactions (r:1 w:0) Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: AccountTokenizer MintedAccount (r:1 w:1) Storage: OrmlNFT Tokens (r:1 w:1) Storage: OrmlNFT Classes (r:1 w:1) Storage: Balances Reserves (r:1 w:1) Storage: System Account (r:1 w:1) Storage: OrmlNFT TokensByOwner (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 104.1 µs

Reads = 8 Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 104.1 µs

Reads = 8 Writes = 7

ghost avatar Mar 10 '22 05:03 ghost

/bench runtime acala module-account-tokenizer

syan095 avatar Mar 10 '22 05:03 syan095

Finished benchmark for branch: feature/tokenize_account

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-account-tokenizer --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/

Results

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

Storage: unknown [0x313d68a8253b2369f4110c7a64e961de4e7b9012096b41c4eb3aaf947f6ea429] (r:1 w:1) Storage: System Account (r:3 w:2) Storage: OrmlNFT NextClassId (r:1 w:0) Storage: OrmlNFT Classes (r:1 w:0) Storage: AccountTokenizer NFTClassId (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 80.07 µs

Reads = 6 Writes = 4

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 80.07 µs

Reads = 6 Writes = 4

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

Storage: System Account (r:3 w:3) Storage: Balances Reserves (r:1 w:1) Storage: ForeignStateOracle NextQueryId (r:1 w:1) Storage: ForeignStateOracle QueryRequests (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 122.6 µs

Reads = 5 Writes = 6

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 122.6 µs

Reads = 5 Writes = 6

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: TransactionPause PausedTransactions (r:1 w:0) Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: OrmlNFT Classes (r:1 w:1) Storage: System Account (r:3 w:3) Storage: OrmlNFT NextTokenId (r:1 w:1) Storage: Balances Reserves (r:1 w:1) Storage: AccountTokenizer MintedAccount (r:0 w:1) Storage: OrmlNFT Tokens (r:0 w:1) Storage: OrmlNFT TokensByOwner (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 174.7 µs

Reads = 9 Writes = 10

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 174.7 µs

Reads = 9 Writes = 10

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

Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: AccountTokenizer MintedAccount (r:1 w:0) Storage: OrmlNFT Tokens (r:1 w:0) Storage: XcmInterface XcmDestWeightAndFee (r:1 w:0) Storage: ParachainInfo ParachainId (r:1 w:0) Storage: PolkadotXcm SupportedVersion (r:1 w:0) Storage: ParachainSystem HostConfiguration (r:1 w:0) Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) Storage: System Account (r:2 w:2) Storage: ForeignStateOracle NextQueryId (r:1 w:1) Storage: ForeignStateOracle QueryRequests (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 125.9 µs

Reads = 11 Writes = 5

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 125.9 µs

Reads = 11 Writes = 5

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: TransactionPause PausedTransactions (r:1 w:0) Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: AccountTokenizer MintedAccount (r:1 w:1) Storage: OrmlNFT Tokens (r:1 w:1) Storage: OrmlNFT Classes (r:1 w:1) Storage: Balances Reserves (r:1 w:1) Storage: System Account (r:1 w:1) Storage: OrmlNFT TokensByOwner (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 110.6 µs

Reads = 8 Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 110.6 µs

Reads = 8 Writes = 7

ghost avatar Mar 10 '22 05:03 ghost

/bench runtime module module_account_tokenizer

syan095 avatar Mar 10 '22 05:03 syan095

Finished benchmark for branch: feature/tokenize_account

Benchmark: Benchmark Runtime Module

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

Results

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

Storage: unknown [0x313d68a8253b2369f4110c7a64e961de4e7b9012096b41c4eb3aaf947f6ea429] (r:1 w:1) Storage: System Account (r:3 w:3) Storage: OrmlNFT NextClassId (r:1 w:1) Storage: Balances Reserves (r:1 w:1) Storage: Proxy Proxies (r:1 w:1) Storage: AccountTokenizer NFTClassId (r:0 w:1) Storage: OrmlNFT Classes (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 127.8 µs

Reads = 7 Writes = 9

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 127.8 µs

Reads = 7 Writes = 9

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

Storage: System Account (r:3 w:3) Storage: Balances Reserves (r:1 w:1) Storage: ForeignStateOracle NextQueryId (r:1 w:1) Storage: ForeignStateOracle QueryRequests (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 97.75 µs

Reads = 5 Writes = 6

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 97.75 µs

Reads = 5 Writes = 6

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: TransactionPause PausedTransactions (r:1 w:0) Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: OrmlNFT Classes (r:1 w:1) Storage: System Account (r:3 w:3) Storage: OrmlNFT NextTokenId (r:1 w:1) Storage: Balances Reserves (r:1 w:1) Storage: AccountTokenizer MintedAccount (r:0 w:1) Storage: OrmlNFT Tokens (r:0 w:1) Storage: OrmlNFT TokensByOwner (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 159.4 µs

Reads = 9 Writes = 10

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 159.4 µs

Reads = 9 Writes = 10

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

Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: AccountTokenizer MintedAccount (r:1 w:0) Storage: OrmlNFT Tokens (r:1 w:0) Storage: XcmInterface XcmDestWeightAndFee (r:1 w:0) Storage: ParachainInfo ParachainId (r:1 w:0) Storage: ParachainSystem HostConfiguration (r:1 w:0) Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) Storage: System Account (r:2 w:2) Storage: ForeignStateOracle NextQueryId (r:1 w:1) Storage: ForeignStateOracle QueryRequests (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 102.8 µs

Reads = 10 Writes = 5

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 102.8 µs

Reads = 10 Writes = 5

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: TransactionPause PausedTransactions (r:1 w:0) Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: AccountTokenizer MintedAccount (r:1 w:1) Storage: OrmlNFT Tokens (r:1 w:1) Storage: OrmlNFT Classes (r:1 w:1) Storage: Balances Reserves (r:1 w:1) Storage: System Account (r:1 w:1) Storage: OrmlNFT TokensByOwner (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 101.3 µs

Reads = 8 Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 101.3 µs

Reads = 8 Writes = 7

ghost avatar Mar 10 '22 05:03 ghost

/bench runtime acala module-foreign-state-oracle

ferrell-code avatar Mar 13 '22 01:03 ferrell-code

Finished benchmark for branch: feature/tokenize_account

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-foreign-state-oracle --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/

Results

Compiling karura-runtime v2.4.0 (/app/git/Acala/runtime/karura) Compiling mandala-runtime v2.4.0 (/app/git/Acala/runtime/mandala) Compiling acala-runtime v2.4.0 (/app/git/Acala/runtime/acala) Compiling module-support v2.4.0 (/app/git/Acala/modules/support) Compiling module-idle-scheduler v2.4.0 (/app/git/Acala/modules/idle-scheduler) Compiling module-loans v2.4.0 (/app/git/Acala/modules/loans) Compiling module-transaction-payment v2.4.0 (/app/git/Acala/modules/transaction-payment) Compiling module-prices v2.4.0 (/app/git/Acala/modules/prices) Compiling module-nft v2.4.0 (/app/git/Acala/modules/nft) Compiling module-dex v2.4.0 (/app/git/Acala/modules/dex) Compiling module-account-tokenizer v2.2.1 (/app/git/Acala/modules/account-tokenizer) Compiling module-dex-oracle v2.4.0 (/app/git/Acala/modules/dex-oracle) Compiling module-auction-manager v2.4.0 (/app/git/Acala/modules/auction-manager) Compiling module-cdp-treasury v2.4.0 (/app/git/Acala/modules/cdp-treasury) Compiling module-incentives v2.4.0 (/app/git/Acala/modules/incentives) Compiling module-foreign-state-oracle v2.3.0 (/app/git/Acala/modules/foreign-state-oracle) Compiling module-relaychain v2.4.0 (/app/git/Acala/modules/relaychain) Compiling module-evm-accounts v2.4.0 (/app/git/Acala/modules/evm-accounts) Compiling module-asset-registry v2.4.0 (/app/git/Acala/modules/asset-registry) Compiling module-currencies v2.4.0 (/app/git/Acala/modules/currencies) Compiling module-homa v2.4.0 (/app/git/Acala/modules/homa) Compiling module-xcm-interface v2.0.3 (/app/git/Acala/modules/xcm-interface) Compiling ecosystem-starport v2.4.0 (/app/git/Acala/ecosystem-modules/starport) Compiling module-nominees-election v2.4.0 (/app/git/Acala/modules/nominees-election) Compiling ecosystem-renvm-bridge v2.4.0 (/app/git/Acala/ecosystem-modules/ren/renvm-bridge) Compiling ecosystem-compound-cash v2.4.0 (/app/git/Acala/ecosystem-modules/compound-cash) Compiling module-evm v2.4.0 (/app/git/Acala/modules/evm) Compiling module-cdp-engine v2.4.0 (/app/git/Acala/modules/cdp-engine) Compiling module-emergency-shutdown v2.4.0 (/app/git/Acala/modules/emergency-shutdown) Compiling module-honzon v2.4.0 (/app/git/Acala/modules/honzon) Compiling runtime-common v2.4.0 (/app/git/Acala/runtime/common) Compiling module-evm-bridge v2.4.0 (/app/git/Acala/modules/evm-bridge) Compiling evm-rpc v2.4.0 (/app/git/Acala/modules/evm/rpc) Compiling acala-rpc v2.4.0 (/app/git/Acala/rpc) Compiling acala-service v2.4.0 (/app/git/Acala/node/service) Compiling acala-cli v2.4.0 (/app/git/Acala/node/cli) Compiling acala v2.4.0 (/app/git/Acala/node) Finished release [optimized] target(s) in 7m 30s Running target/release/acala benchmark --chain=acala-latest --steps=50 --repeat=20 --pallet=module-foreign-state-oracle '--extrinsic=*' --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/ Error: Input("No benchmarks found which match your input.")

ghost avatar Mar 13 '22 01:03 ghost

/bench runtime karura module-foreign-state-oracle

ferrell-code avatar Mar 13 '22 01:03 ferrell-code

Finished benchmark for branch: feature/tokenize_account

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-foreign-state-oracle --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Results

Compiling karura-runtime v2.4.0 (/app/git/Acala/runtime/karura) Compiling acala-service v2.4.0 (/app/git/Acala/node/service) Compiling acala-cli v2.4.0 (/app/git/Acala/node/cli) Compiling acala v2.4.0 (/app/git/Acala/node) Finished release [optimized] target(s) in 4m 48s Running target/release/acala benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module-foreign-state-oracle '--extrinsic=*' --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/ Error: Input("No benchmarks found which match your input.")

ghost avatar Mar 13 '22 01:03 ghost

/bench runtime karura module_foreign_state_oracle

ferrell-code avatar Mar 13 '22 01:03 ferrell-code

Finished benchmark for branch: feature/tokenize_account

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_foreign_state_oracle --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Results
Finished release [optimized] target(s) in 1.11s
 Running `target/release/acala benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module_foreign_state_oracle '--extrinsic=*' --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/`

Error: Input("No benchmarks found which match your input.")

ghost avatar Mar 13 '22 01:03 ghost

/bench runtime acala module_foreign_state_oracle

ferrell-code avatar Mar 13 '22 01:03 ferrell-code

Finished benchmark for branch: feature/tokenize_account

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_foreign_state_oracle --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/

Results

Compiling karura-runtime v2.4.0 (/app/git/Acala/runtime/karura) Compiling acala-service v2.4.0 (/app/git/Acala/node/service) Compiling acala-cli v2.4.0 (/app/git/Acala/node/cli) Compiling acala v2.4.0 (/app/git/Acala/node) Finished release [optimized] target(s) in 3m 53s Running target/release/acala benchmark --chain=acala-latest --steps=50 --repeat=20 --pallet=module_foreign_state_oracle '--extrinsic=*' --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/ Error: Input("No benchmarks found which match your input.")

ghost avatar Mar 13 '22 01:03 ghost

/bench runtime acala module-foreign-state-oracle

ferrell-code avatar Mar 13 '22 01:03 ferrell-code

Finished benchmark for branch: feature/tokenize_account

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-foreign-state-oracle --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/

Results
Finished release [optimized] target(s) in 1.17s
 Running `target/release/acala benchmark --chain=acala-latest --steps=50 --repeat=20 --pallet=module-foreign-state-oracle '--extrinsic=*' --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/`

Error: Input("No benchmarks found which match your input.")

ghost avatar Mar 13 '22 01:03 ghost

/bench runtime acala module-foreign-state-oracle

ferrell-code avatar Mar 13 '22 20:03 ferrell-code

Finished benchmark for branch: feature/tokenize_account

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-foreign-state-oracle --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/

Results

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: System Account (r:2 w:2) Storage: EvmAccounts EvmAddresses (r:1 w:0) Storage: EVM Accounts (r:1 w:1) Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 107.1 µs

Reads = 5 Writes = 5

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 107.1 µs

Reads = 5 Writes = 5

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: TransactionPause PausedTransactions (r:1 w:0) Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: OrmlNFT Classes (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 44.25 µs

Reads = 4 Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 44.25 µs

Reads = 4 Writes = 1

ghost avatar Mar 13 '22 20:03 ghost

/bench runtime karura module-foreign-state-oracle

ferrell-code avatar Mar 13 '22 20:03 ferrell-code

Finished benchmark for branch: feature/tokenize_account

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-foreign-state-oracle --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Results

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: System Account (r:2 w:2) Storage: EvmAccounts EvmAddresses (r:1 w:0) Storage: EVM Accounts (r:1 w:1) Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 95.14 µs

Reads = 5 Writes = 5

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 95.14 µs

Reads = 5 Writes = 5

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: TransactionPause PausedTransactions (r:1 w:0) Storage: AccountTokenizer NFTClassId (r:1 w:0) Storage: OrmlNFT Classes (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 40.54 µs

Reads = 4 Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 40.54 µs

Reads = 4 Writes = 1

ghost avatar Mar 13 '22 20:03 ghost

/bench runtime karura module-foreign-state-oracle

ferrell-code avatar Mar 13 '22 23:03 ferrell-code

Finished benchmark for branch: feature/tokenize_account

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-foreign-state-oracle --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Results

Compiling mandala-runtime v2.4.0 (/app/git/Acala/runtime/mandala) Compiling karura-runtime v2.4.0 (/app/git/Acala/runtime/karura) Compiling acala-runtime v2.4.0 (/app/git/Acala/runtime/acala) Compiling module-foreign-state-oracle v2.3.0 (/app/git/Acala/modules/foreign-state-oracle) Compiling acala-service v2.4.0 (/app/git/Acala/node/service) Compiling acala-cli v2.4.0 (/app/git/Acala/node/cli) Compiling acala v2.4.0 (/app/git/Acala/node) Finished release [optimized] target(s) in 7m 14s Running target/release/acala benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module-foreign-state-oracle '--extrinsic=*' --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/ Error: Input("TooLargeForeignQueryRequest")

ghost avatar Mar 13 '22 23:03 ghost

/bench runtime karura module-foreign-state-oracle

ferrell-code avatar Mar 13 '22 23:03 ferrell-code

Finished benchmark for branch: feature/tokenize_account

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-foreign-state-oracle --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Results

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1) Storage: System Account (r:2 w:2) Storage: EvmAccounts EvmAddresses (r:1 w:0) Storage: EVM Accounts (r:1 w:1) Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 89.51 µs

Reads = 5 Writes = 5

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 89.51 µs

Reads = 5 Writes = 5

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

Storage: ForeignStateOracle QueryRequests (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model: Time ~= 24.17 µs

Reads = 1 Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model: Time ~= 24.17 µs

Reads = 1 Writes = 1

ghost avatar Mar 13 '22 23:03 ghost

/bench runtime acala module-foreign-state-oracle

ferrell-code avatar Mar 13 '22 23:03 ferrell-code