Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

contracts: Add set_code root dispatchable #11451

Merged
merged 3 commits into from
May 18, 2022
Merged

Conversation

athei
Copy link
Member

@athei athei commented May 18, 2022

Fixes #11445

@athei athei added A3-in_progress Pull request is in progress. No review needed at this stage. B7-runtimenoteworthy C1-low PR touches the given topic and has a low impact on builders. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit. labels May 18, 2022
@athei athei added this to In Progress in Smart Contracts via automation May 18, 2022
@athei
Copy link
Member Author

athei commented May 18, 2022

/benchmark runtime pallet pallet_contracts

@parity-benchapp
Copy link

parity-benchapp bot commented May 18, 2022

Benchmark Runtime Pallet for branch "at-update-code" with command cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Toolchain: stable-x86_64-unknown-linux-gnu (default)
rustc 1.60.0 (7737e0b5c 2022-04-04)

Results
Pallet: "pallet_contracts", Extrinsic: "on_initialize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts DeletionQueue (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.641
              µs

Reads = 1
Writes = 0

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.641
              µs

Reads = 1
Writes = 0

Pallet: "pallet_contracts", Extrinsic: "on_initialize_per_trie_key", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    10.73
    + k    0.759
              µs

Reads = 1 + (0 * k)
Writes = 1 + (1 * k)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    k   mean µs  sigma µs       %
    0     9.643     0.065    0.6%
   20     28.33     0.219    0.7%
   40     43.61     0.183    0.4%
   60      57.4     0.262    0.4%
   80     69.01     1.093    1.5%
  100     82.88     0.255    0.3%
  120     97.18     0.592    0.6%
  140     113.7     0.519    0.4%
  160     129.3     0.412    0.3%
  180     144.9     0.408    0.2%
  200     159.4     0.806    0.5%
  220     176.8      1.37    0.7%
  240     191.3     0.386    0.2%
  260     206.4     0.535    0.2%
  280     221.9     1.084    0.4%
  300     236.7     0.737    0.3%
  320     253.6     0.958    0.3%
  340       275     2.666    0.9%
  360     283.7     0.756    0.2%
  380     300.7     1.047    0.3%
  400       317     0.649    0.2%
  420     331.7     1.514    0.4%
  440     348.2     1.422    0.4%
  460     359.4     0.861    0.2%
  480     377.1     0.858    0.2%
  500     392.6     0.779    0.1%
  520     412.3     3.485    0.8%
  540     423.9     1.099    0.2%
  560     439.6     0.814    0.1%
  580     456.9     1.506    0.3%
  600     471.7     1.826    0.3%
  620     483.4     1.473    0.3%
  640     504.5     8.851    1.7%
  660     511.3     1.269    0.2%
  680     529.4     2.921    0.5%
  700     540.8     1.248    0.2%
  720     556.3     1.374    0.2%
  740     574.2     2.133    0.3%
  760     586.6     1.617    0.2%
  780     601.3     1.632    0.2%
  800     619.4     2.468    0.3%
  820     636.4     5.131    0.8%
  840       650     1.805    0.2%
  860     665.6     0.908    0.1%
  880     683.1     9.013    1.3%
  900       690     1.139    0.1%
  920     703.2     3.165    0.4%
  940     718.3     2.412    0.3%
  960     734.2     8.007    1.0%
  980     752.8      5.77    0.7%
 1000     761.5      1.72    0.2%
 1020     780.5     2.088    0.2%

Quality and confidence:
param     error
k             0

Model:
Time ~=    11.28
    + k    0.758
              µs

Reads = 1 + (0 * k)
Writes = 1 + (1 * k)

Pallet: "pallet_contracts", Extrinsic: "on_initialize_per_queue_item", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts DeletionQueue (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    10.11
    + q     1.87
              µs

Reads = 1 + (0 * q)
Writes = 1 + (0 * q)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    q   mean µs  sigma µs       %
    0     1.582     0.018    1.1%
   20     48.13     0.631    1.3%
   40     85.79     0.846    0.9%
   60     127.5     0.868    0.6%
   80     161.4     0.521    0.3%
  100     199.8      1.18    0.5%
  120       251     1.285    0.5%
  140     284.8     3.407    1.1%
  160     309.1     2.554    0.8%
  180     344.5     3.129    0.9%
  200     379.5     3.497    0.9%
  220     414.8     3.932    0.9%
  240     478.8     5.505    1.1%
  260     505.1     4.992    0.9%
  280     546.4      10.4    1.9%
  300     591.5     6.033    1.0%
  320     600.1     6.082    1.0%
  340     645.2     9.933    1.5%
  360     674.9      10.8    1.6%
  380     728.9     14.94    2.0%
  400     734.6     7.493    1.0%
  420     785.4     4.879    0.6%
  440     842.3     10.82    1.2%
  460     862.3     7.836    0.9%
  480     884.7     8.919    1.0%
  500     901.8     8.664    0.9%
  520     966.8     7.152    0.7%
  540     972.3     12.59    1.2%
  560      1052     13.42    1.2%
  580      1106     9.635    0.8%
  600      1083     16.29    1.5%
  620      1165     22.99    1.9%
  640      1220     12.32    1.0%
  660      1212     13.78    1.1%
  680      1259     15.03    1.1%
  700      1307     18.93    1.4%
  720      1323     18.95    1.4%
  740      1383     15.33    1.1%
  760      1440     28.96    2.0%
  780      1417      13.5    0.9%
  800      1510     17.01    1.1%
  820      1482     9.337    0.6%
  840      1588     27.49    1.7%
  860      1591     18.47    1.1%
  880      1640     20.61    1.2%
  900      1797     16.08    0.8%
  920      1799     18.76    1.0%
  940      1834     21.74    1.1%
  960      1781      24.1    1.3%
  980      1924     13.84    0.7%
 1000      1946     28.79    1.4%
 1020      1973     30.98    1.5%

Quality and confidence:
param     error
q         0.005

Model:
Time ~=        0
    + q    1.892
              µs

Reads = 1 + (0 * q)
Writes = 1 + (0 * q)

Pallet: "pallet_contracts", Extrinsic: "reinstrument", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts PristineCode (r:1 w:0)
Storage: Contracts CodeStorage (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    23.85
    + c    0.047
              µs

Reads = 1 + (0 * c)
Writes = 1 + (0 * c)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    c   mean µs  sigma µs       %
    0     20.34     0.131    0.6%
 1284     84.15     0.248    0.2%
 2568     146.2     0.262    0.1%
 3852     204.4     0.201    0.0%
 5136     263.7      1.86    0.7%
 6420     330.4     2.515    0.7%
 7704     390.6     3.657    0.9%
 8988     446.4     4.816    1.0%
10272     501.1     1.097    0.2%
11556     569.2     5.631    0.9%
12840     644.9     8.729    1.3%
14124       696     4.805    0.6%
15408     766.9     8.069    1.0%
16692     808.3     2.199    0.2%
17976     867.7      8.97    1.0%
19260       935     14.72    1.5%
20544     990.1     13.53    1.3%
21828      1065     3.858    0.3%
23112      1102     13.95    1.2%
24396      1151     8.613    0.7%
25680      1255     11.13    0.8%
26964      1321     12.76    0.9%
28248      1385     15.56    1.1%
29532      1427     12.66    0.8%
30816      1490     15.26    1.0%
32100      1536      6.79    0.4%
33384      1618     13.63    0.8%
34668      1669     13.56    0.8%
35952      1743      7.11    0.4%
37236      1777     12.71    0.7%
38520      1837     13.88    0.7%
39804      1885     5.862    0.3%
41088      1954     14.43    0.7%
42372      2013     16.18    0.8%
43656      2073      13.5    0.6%
44940      2122     15.22    0.7%
46224      2186     10.81    0.4%
47508      2236     15.48    0.6%
48792      2309     3.937    0.1%
50076      2430     11.33    0.4%
51360      2482     17.66    0.7%
52644      2564     18.15    0.7%
53928      2610     15.45    0.5%
55212      2657     9.407    0.3%
56496      2735     17.04    0.6%
57780      2782     12.11    0.4%
59064      2828     15.31    0.5%
60348      2920     17.87    0.6%
61632      2945     4.201    0.1%
62916      3000     5.321    0.1%
64200      3054     6.246    0.2%

Quality and confidence:
param     error
c             0

Model:
Time ~=     19.9
    + c    0.048
              µs

Reads = 1 + (0 * c)
Writes = 1 + (0 * c)

Pallet: "pallet_contracts", Extrinsic: "call_with_code_per_byte", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    211.2
    + c    0.051
              µs

Reads = 4 + (0 * c)
Writes = 2 + (0 * c)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    c   mean µs  sigma µs       %
    0     217.3     0.232    0.1%
 2621     349.9     2.674    0.7%
 5242     479.1      0.51    0.1%
 7863     627.1     6.115    0.9%
10484       741     5.851    0.7%
13105     889.6     2.804    0.3%
15726      1015     3.501    0.3%
18347      1150     12.07    1.0%
20968      1269     13.85    1.0%
23589      1384     0.426    0.0%
26210      1568     15.38    0.9%
28831      1692     12.91    0.7%
31452      1815     14.88    0.8%
34073      1947     12.28    0.6%
36694      2078     11.69    0.5%
39315      2194     12.82    0.5%
41936      2339     15.64    0.6%
44557      2433     9.062    0.3%
47178      2595     9.293    0.3%
49799      2795     7.931    0.2%
52420      2906      16.8    0.5%
55041      3053      12.9    0.4%
57662      3173     15.94    0.5%
60283      3295     17.87    0.5%
62904      3417     9.124    0.2%
65525      3546     12.76    0.3%
68146      3715     24.16    0.6%
70767      3813      15.5    0.4%
73388      3939     9.668    0.2%
76009      4064     12.98    0.3%
78630      4205     33.47    0.7%
81251      4334     17.53    0.4%
83872      4436     13.42    0.3%
86493      4557     12.58    0.2%
89114      4682     23.49    0.5%
91735      4813     21.67    0.4%
94356      4906     7.438    0.1%
96977      5061     14.17    0.2%
99598      5388     19.44    0.3%
102219      5520     14.81    0.2%
104840      5656     15.74    0.2%
107461      5780     14.54    0.2%
110082      5906     12.59    0.2%
112703      6016      14.1    0.2%
115324      6156     21.86    0.3%
117945      6266      14.1    0.2%
120566      6396      19.6    0.3%
123187      6518     16.39    0.2%
125808      6636     11.13    0.1%
128429      6777     11.13    0.1%
131050      6908     19.97    0.2%

Quality and confidence:
param     error
c             0

Model:
Time ~=    200.3
    + c    0.051
              µs

Reads = 4 + (0 * c)
Writes = 2 + (0 * c)

Pallet: "pallet_contracts", Extrinsic: "instantiate_with_code", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts CodeStorage (r:1 w:1)
Storage: Contracts Nonce (r:1 w:1)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)
Storage: Contracts PristineCode (r:0 w:1)
Storage: Contracts OwnerInfoOf (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    268.5
    + c    0.121
    + s    0.001
              µs

Reads = 5 + (0 * c) + (0 * s)
Writes = 6 + (0 * c) + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    c     s   mean µs  sigma µs       %
    0 1048576      2047     4.909    0.2%
 1284 1048576      2042     3.155    0.1%
 2568 1048576      2172     11.62    0.5%
 3852 1048576      2352     16.94    0.7%
 5136 1048576      2536     2.357    0.0%
 6420 1048576      2657     13.57    0.5%
 7704 1048576      2818     15.51    0.5%
 8988 1048576      2968     19.08    0.6%
10272 1048576      3131     14.05    0.4%
11556 1048576      3270     17.84    0.5%
12840 1048576      3433     11.33    0.3%
14124 1048576      3585     10.48    0.2%
15408 1048576      3736     15.53    0.4%
16692 1048576      3932     14.34    0.3%
17976 1048576      4077     11.74    0.2%
19260 1048576      4263     27.37    0.6%
20544 1048576      4399     22.77    0.5%
21828 1048576      4524     26.62    0.5%
23112 1048576      4664     14.74    0.3%
24396 1048576      4809     17.45    0.3%
25680 1048576      5004     18.55    0.3%
26964 1048576      5116     8.423    0.1%
28248 1048576      5270     20.04    0.3%
29532 1048576      5475     23.17    0.4%
30816 1048576      5640     29.89    0.5%
32100 1048576      5756     19.14    0.3%
33384 1048576      5979        20    0.3%
34668 1048576      6121      23.3    0.3%
35952 1048576      6288     18.12    0.2%
37236 1048576      6425     16.45    0.2%
38520 1048576      6566     22.79    0.3%
39804 1048576      6715     20.57    0.3%
41088 1048576      6854     19.74    0.2%
42372 1048576      6988     24.68    0.3%
43656 1048576      7157     21.76    0.3%
44940 1048576      7313     30.69    0.4%
46224 1048576      7498     15.74    0.2%
47508 1048576      7593      14.2    0.1%
48792 1048576      7748     21.75    0.2%
50076 1048576      8036      40.7    0.5%
51360 1048576      8155     27.28    0.3%
52644 1048576      8302     36.44    0.4%
53928 1048576      8494     27.81    0.3%
55212 1048576      8599     17.93    0.2%
56496 1048576      8749      14.2    0.1%
57780 1048576      8889     16.62    0.1%
59064 1048576      9048     41.94    0.4%
60348 1048576      9186     30.78    0.3%
61632 1048576      9368      38.1    0.4%
62916 1048576      9501     41.63    0.4%
64200 1048576      9646     23.72    0.2%
64226     0      7997     25.51    0.3%
64226 20971      8033     36.02    0.4%
64226 41942      8084     40.39    0.4%
64226 62913      8085     35.76    0.4%
64226 83884      8140     39.73    0.4%
64226 104855      8178      30.3    0.3%
64226 125826      8230     27.47    0.3%
64226 146797      8239     39.66    0.4%
64226 167768      8254     21.58    0.2%
64226 188739      8289     30.99    0.3%
64226 209710      8342     22.85    0.2%
64226 230681      8350      20.1    0.2%
64226 251652      8420     42.57    0.5%
64226 272623      8439     15.42    0.1%
64226 293594      8485      39.1    0.4%
64226 314565      8472     26.12    0.3%
64226 335536      8552     33.48    0.3%
64226 356507      8539     24.93    0.2%
64226 377478      8583     36.76    0.4%
64226 398449      8625      32.3    0.3%
64226 419420      8643     31.29    0.3%
64226 440391      8689     24.88    0.2%
64226 461362      8707     19.04    0.2%
64226 482333      8752     36.49    0.4%
64226 503304      8752     28.44    0.3%
64226 524275      8819     34.87    0.3%
64226 545246      8827     23.54    0.2%
64226 566217      8861     27.22    0.3%
64226 587188      8902     26.05    0.2%
64226 608159      8891     18.52    0.2%
64226 629130      9054     51.36    0.5%
64226 650101      9044      38.4    0.4%
64226 671072      9050     26.98    0.2%
64226 692043      9073     18.52    0.2%
64226 713014      9086     26.52    0.2%
64226 733985      9127     32.25    0.3%
64226 754956      9182     18.32    0.1%
64226 775927      9206     41.93    0.4%
64226 796898      9244     22.35    0.2%
64226 817869      9272      34.6    0.3%
64226 838840      9358     25.52    0.2%
64226 859811      9347     32.81    0.3%
64226 880782      9376     13.69    0.1%
64226 901753      9374     42.51    0.4%
64226 922724      9458     62.56    0.6%
64226 943695      9434     31.55    0.3%
64226 964666      9495     41.06    0.4%
64226 985637      9528     24.51    0.2%
64226 1006608      9558     26.16    0.2%
64226 1027579      9581     40.79    0.4%
64226 1048550      9634     40.36    0.4%

Quality and confidence:
param     error
c             0
s             0

Model:
Time ~=      252
    + c    0.121
    + s    0.002
              µs

Reads = 5 + (0 * c) + (0 * s)
Writes = 6 + (0 * c) + (0 * s)

Pallet: "pallet_contracts", Extrinsic: "instantiate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts CodeStorage (r:1 w:1)
Storage: Contracts Nonce (r:1 w:1)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)
Storage: Contracts OwnerInfoOf (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    179.4
    + s    0.001
              µs

Reads = 6 + (0 * s)
Writes = 5 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     177.9      0.14    0.0%
20971     213.7     0.406    0.1%
41942     248.1     0.279    0.1%
62913     283.4     0.529    0.1%
83884     317.3     0.308    0.0%
104855     352.7     0.393    0.1%
125826     386.9     0.364    0.0%
146797     421.4     0.288    0.0%
167768     462.6     5.246    1.1%
188739     491.1     0.827    0.1%
209710     524.8     0.449    0.0%
230681     569.2     13.29    2.3%
251652     593.9     1.196    0.2%
272623     628.8     0.912    0.1%
293594     675.8     16.58    2.4%
314565     704.2     10.74    1.5%
335536     741.5     11.78    1.5%
356507     768.4     8.747    1.1%
377478     813.4     13.36    1.6%
398449       853     13.57    1.5%
419420     877.4     13.65    1.5%
440391     914.1     13.28    1.4%
461362     943.1     11.98    1.2%
482333     983.9     13.26    1.3%
503304      1021     14.65    1.4%
524275      1047     13.19    1.2%
545246      1087      14.6    1.3%
566217      1126     15.54    1.3%
587188      1158     16.06    1.3%
608159      1199     14.66    1.2%
629130      1233     13.33    1.0%
650101      1249     3.378    0.2%
671072      1304     13.46    1.0%
692043      1335      13.8    1.0%
713014      1358     7.765    0.5%
733985      1408     17.29    1.2%
754956      1430     12.07    0.8%
775927      1475     13.92    0.9%
796898      1506     14.59    0.9%
817869      1537     12.76    0.8%
838840      1576     15.38    0.9%
859811      1608     15.57    0.9%
880782      1652     14.06    0.8%
901753      1690     13.69    0.8%
922724      1717     15.55    0.9%
943695      1736     4.488    0.2%
964666      1788     10.21    0.5%
985637      1827      15.6    0.8%
1006608      1869     10.19    0.5%
1027579      1897     12.24    0.6%
1048550      1957     9.296    0.4%

Quality and confidence:
param     error
s             0

Model:
Time ~=    177.2
    + s    0.002
              µs

Reads = 6 + (0 * s)
Writes = 5 + (0 * s)

Pallet: "pallet_contracts", Extrinsic: "call", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=      146
              µs

Reads = 4
Writes = 2

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=      146
              µs

Reads = 4
Writes = 2

Pallet: "pallet_contracts", Extrinsic: "upload_code", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts CodeStorage (r:1 w:1)
Storage: Contracts PristineCode (r:0 w:1)
Storage: Contracts OwnerInfoOf (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    47.15
    + c    0.049
              µs

Reads = 1 + (0 * c)
Writes = 3 + (0 * c)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    c   mean µs  sigma µs       %
    0     45.15     0.182    0.4%
 1284     110.3     1.267    1.1%
 2568     174.9     1.389    0.7%
 3852     238.6     4.089    1.7%
 5136       299     0.442    0.1%
 6420     366.4       1.9    0.5%
 7704     425.3     1.067    0.2%
 8988     489.3      10.1    2.0%
10272       547     5.071    0.9%
11556     604.9     4.339    0.7%
12840     690.7     14.35    2.0%
14124     746.8     12.35    1.6%
15408     810.2     13.37    1.6%
16692     873.6     13.26    1.5%
17976     933.5     11.53    1.2%
19260     995.6     14.18    1.4%
20544      1051     12.42    1.1%
21828      1130     15.81    1.3%
23112      1166     13.61    1.1%
24396      1245     13.45    1.0%
25680      1334     12.37    0.9%
26964      1394     13.56    0.9%
28248      1450     13.28    0.9%
29532      1513     11.37    0.7%
30816      1563      14.7    0.9%
32100      1628     11.67    0.7%
33384      1706     7.752    0.4%
34668      1759     14.52    0.8%
35952      1823     9.053    0.4%
37236      1882     11.84    0.6%
38520      1938     14.86    0.7%
39804      2006     7.513    0.3%
41088      2065     11.39    0.5%
42372      2114     15.54    0.7%
43656      2172      10.5    0.4%
44940      2249     15.81    0.7%
46224      2302     7.063    0.3%
47508      2363     12.61    0.5%
48792      2415     10.59    0.4%
50076      2571     14.22    0.5%
51360      2596     13.55    0.5%
52644      2675     8.897    0.3%
53928      2728     8.687    0.3%
55212      2797     15.09    0.5%
56496      2857     9.663    0.3%
57780      2902     11.56    0.3%
59064      2977     10.95    0.3%
60348      3027     15.52    0.5%
61632      3097      14.1    0.4%
62916      3150     9.513    0.3%
64200      3223     13.86    0.4%

Quality and confidence:
param     error
c             0

Model:
Time ~=    43.99
    + c    0.049
              µs

Reads = 1 + (0 * c)
Writes = 3 + (0 * c)

Pallet: "pallet_contracts", Extrinsic: "remove_code", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts OwnerInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:0 w:1)
Storage: Contracts PristineCode (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=       25
              µs

Reads = 1
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=       25
              µs

Reads = 1
Writes = 3

Pallet: "pallet_contracts", Extrinsic: "set_code", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts OwnerInfoOf (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    22.94
              µs

Reads = 3
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    22.94
              µs

Reads = 3
Writes = 3

Pallet: "pallet_contracts", Extrinsic: "seal_caller", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    207.9
    + r    40.29
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     207.5     0.275    0.1%
    1       246     0.852    0.3%
    2     287.6     0.271    0.0%
    3     330.9     2.416    0.7%
    4     370.6     0.916    0.2%
    5     414.2     4.663    1.1%
    6     451.1     2.313    0.5%
    7     488.7     1.205    0.2%
    8     529.2     1.239    0.2%
    9     581.7     9.632    1.6%
   10     613.8     7.513    1.2%
   11     653.9      10.2    1.5%
   12     696.7     10.74    1.5%
   13     729.3     2.337    0.3%
   14     769.7     5.346    0.6%
   15     813.9     9.779    1.2%
   16     848.1     2.295    0.2%
   17     890.7     4.935    0.5%
   18     940.4     8.099    0.8%
   19     986.3     11.25    1.1%
   20      1024     9.233    0.9%

Quality and confidence:
param     error
r         0.088

Model:
Time ~=    207.3
    + r    40.57
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_is_contract", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    102.8
    + r    312.7
              µs

Reads = 4 + (80 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     207.5     3.413    1.6%
    1     474.7     2.613    0.5%
    2     776.9     9.353    1.2%
    3      1053     16.07    1.5%
    4      1354     14.42    1.0%
    5      1598     7.369    0.4%
    6      1945     12.69    0.6%
    7      2216     14.35    0.6%
    8      2568     15.11    0.5%
    9      2846     9.762    0.3%
   10      3123     13.39    0.4%
   11      3515     13.99    0.3%
   12      3873     16.86    0.4%
   13      4151     15.48    0.3%
   14      4456     13.54    0.3%
   15      4816     8.116    0.1%
   16      5126     34.57    0.6%
   17      5368     23.57    0.4%
   18      5836     24.65    0.4%
   19      6125     15.03    0.2%
   20      6395     26.77    0.4%

Quality and confidence:
param     error
r         0.688

Model:
Time ~=    96.69
    + r    313.3
              µs

Reads = 4 + (80 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_code_hash", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    117.1
    + r    369.7
              µs

Reads = 4 + (80 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     205.7     1.435    0.6%
    1     531.8     1.822    0.3%
    2     876.9     8.863    1.0%
    3      1198     13.35    1.1%
    4      1593     5.954    0.3%
    5      1931     11.54    0.5%
    6      2253     8.843    0.3%
    7      2646     13.13    0.4%
    8      3092     14.98    0.4%
    9      3397     18.33    0.5%
   10      3755     21.72    0.5%
   11      4173     7.882    0.1%
   12      4553     14.05    0.3%
   13      4983     15.14    0.3%
   14      5314     24.69    0.4%
   15      5622     13.13    0.2%
   16      6054     20.14    0.3%
   17      6485      11.1    0.1%
   18      6703     18.47    0.2%
   19      7089     19.99    0.2%
   20      7687     17.46    0.2%

Quality and confidence:
param     error
r         0.721

Model:
Time ~=      107
    + r    370.9
              µs

Reads = 4 + (80 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_own_code_hash", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    208.8
    + r    43.46
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     208.6     1.856    0.8%
    1     254.5     0.431    0.1%
    2     294.4     1.461    0.4%
    3     338.8     1.266    0.3%
    4     386.6     3.721    0.9%
    5     430.4     10.13    2.3%
    6     467.5     1.284    0.2%
    7     514.2      3.46    0.6%
    8       554     1.593    0.2%
    9     610.1      9.41    1.5%
   10       647     9.035    1.3%
   11     682.8     2.553    0.3%
   12     742.8     9.666    1.3%
   13     768.6     2.043    0.2%
   14     812.6     2.465    0.3%
   15     862.5     9.199    1.0%
   16       903     11.99    1.3%
   17     963.4     14.97    1.5%
   18      1004     15.32    1.5%
   19      1042     9.203    0.8%
   20      1095     9.983    0.9%

Quality and confidence:
param     error
r         0.112

Model:
Time ~=    207.1
    + r    43.97
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_caller_is_origin", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=      203
    + r    16.77
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     201.4     1.826    0.9%
    1       221     2.954    1.3%
    2     237.2     1.616    0.6%
    3       252     0.156    0.0%
    4     270.7     1.719    0.6%
    5       288     1.323    0.4%
    6     303.5     1.275    0.4%
    7     321.8     1.287    0.3%
    8     337.8      1.26    0.3%
    9     353.9     0.808    0.2%
   10     370.9     1.839    0.4%
   11     386.3     1.532    0.3%
   12     402.5     0.715    0.1%
   13     423.8     2.309    0.5%
   14     439.1     1.738    0.3%
   15     456.2      1.92    0.4%
   16     470.2      0.71    0.1%
   17     488.8     1.531    0.3%
   18     508.3     8.084    1.5%
   19     521.2     1.755    0.3%
   20     538.1     1.649    0.3%

Quality and confidence:
param     error
r         0.031

Model:
Time ~=      203
    + r    16.81
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_address", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    206.7
    + r    39.99
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     202.7     0.246    0.1%
    1     246.3     1.508    0.6%
    2     288.2     1.696    0.5%
    3     328.7     5.683    1.7%
    4     376.5      3.96    1.0%
    5     408.3     1.496    0.3%
    6     453.8     8.136    1.7%
    7     486.2     1.681    0.3%
    8     526.1     1.442    0.2%
    9     567.1     4.452    0.7%
   10     606.4     2.087    0.3%
   11     647.3     4.012    0.6%
   12     686.8     3.952    0.5%
   13     727.4     7.167    0.9%
   14     763.8     2.918    0.3%
   15     805.4     8.287    1.0%
   16     852.5     11.56    1.3%
   17     896.2     13.59    1.5%
   18     929.6     5.545    0.5%
   19     975.6     12.38    1.2%
   20      1013     10.18    1.0%

Quality and confidence:
param     error
r         0.086

Model:
Time ~=    206.6
    + r    40.23
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_gas_left", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    206.2
    + r    39.58
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0       203     0.675    0.3%
    1     246.1     1.295    0.5%
    2       287     1.756    0.6%
    3     325.2     1.197    0.3%
    4     364.4     0.594    0.1%
    5       405     1.552    0.3%
    6     444.1     1.305    0.2%
    7       484      0.88    0.1%
    8     525.5     4.916    0.9%
    9     562.4     0.937    0.1%
   10     602.2     0.915    0.1%
   11     648.4     11.02    1.7%
   12       683     6.787    0.9%
   13     729.5     9.923    1.3%
   14     766.8     13.58    1.7%
   15     799.4     6.211    0.7%
   16     836.8     6.391    0.7%
   17     881.8     12.33    1.3%
   18     923.5     8.965    0.9%
   19     963.3     6.257    0.6%
   20      1008     12.56    1.2%

Quality and confidence:
param     error
r         0.085

Model:
Time ~=    205.1
    + r    39.91
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_balance", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    212.6
    + r    115.9
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     202.9     0.176    0.0%
    1     326.8     2.513    0.7%
    2     442.2         2    0.4%
    3     560.2     2.322    0.4%
    4     683.4     12.83    1.8%
    5     792.8     9.299    1.1%
    6     918.7     11.71    1.2%
    7      1028     10.87    1.0%
    8      1141     12.78    1.1%
    9      1273     12.55    0.9%
   10      1376     8.545    0.6%
   11      1492     10.71    0.7%
   12      1611     9.719    0.6%
   13      1725     9.648    0.5%
   14      1847     10.56    0.5%
   15      1958     9.252    0.4%
   16      2068     11.35    0.5%
   17      2183     12.56    0.5%
   18      2301     11.36    0.4%
   19      2425      7.49    0.3%
   20      2531     7.951    0.3%

Quality and confidence:
param     error
r         0.126

Model:
Time ~=    213.3
    + r    116.2
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_value_transferred", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    206.7
    + r    39.68
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     203.7     1.536    0.7%
    1       245     0.333    0.1%
    2     287.6     1.834    0.6%
    3     326.8     1.049    0.3%
    4     365.5     0.994    0.2%
    5     409.7     4.696    1.1%
    6     448.7     2.247    0.5%
    7     483.8     1.337    0.2%
    8     523.4     3.027    0.5%
    9     564.8     0.952    0.1%
   10     611.9     9.923    1.6%
   11     651.8     14.05    2.1%
   12     686.2     7.801    1.1%
   13     720.9     3.121    0.4%
   14     759.9     4.753    0.6%
   15     800.4     4.344    0.5%
   16     846.9     14.75    1.7%
   17     885.5     13.93    1.5%
   18       931     11.53    1.2%
   19     969.1     11.62    1.1%
   20      1005     10.09    1.0%

Quality and confidence:
param     error
r         0.096

Model:
Time ~=    206.1
    + r    39.99
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_minimum_balance", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    206.9
    + r    39.62
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0       203     0.283    0.1%
    1       252     1.718    0.6%
    2     286.4     0.853    0.2%
    3     326.3     1.262    0.3%
    4     365.6     1.672    0.4%
    5       406     0.868    0.2%
    6     447.8     9.132    2.0%
    7     485.3     1.944    0.4%
    8       521     1.388    0.2%
    9     571.3     12.98    2.2%
   10     602.3     1.323    0.2%
   11     648.1     13.12    2.0%
   12     681.5      7.39    1.0%
   13     721.2     3.612    0.5%
   14     767.7     13.61    1.7%
   15     801.5     7.935    0.9%
   16     842.4     10.46    1.2%
   17     884.5     13.97    1.5%
   18     927.8     6.637    0.7%
   19       967     10.04    1.0%
   20      1016     14.57    1.4%

Quality and confidence:
param     error
r         0.104

Model:
Time ~=    205.5
    + r    40.04
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_block_number", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    206.6
    + r    39.45
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     203.7     1.459    0.7%
    1     244.6     0.392    0.1%
    2       287     1.553    0.5%
    3     326.9     2.785    0.8%
    4       365     1.409    0.3%
    5     405.5     1.473    0.3%
    6     448.7     4.889    1.0%
    7     480.3     1.532    0.3%
    8     520.6     1.218    0.2%
    9     563.3     1.609    0.2%
   10     603.2     1.814    0.3%
   11     653.3     9.456    1.4%
   12     677.5     1.156    0.1%
   13     717.9     6.745    0.9%
   14     755.5     2.114    0.2%
   15     803.8     11.99    1.4%
   16     847.6     15.37    1.8%
   17     873.9     1.947    0.2%
   18     931.4     12.41    1.3%
   19     960.9     7.865    0.8%
   20     998.7     5.179    0.5%

Quality and confidence:
param     error
r         0.089

Model:
Time ~=    205.7
    + r    39.75
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_now", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    206.5
    + r    39.33
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     203.2     1.459    0.7%
    1     245.3       1.2    0.4%
    2     285.4     0.808    0.2%
    3     325.3     0.953    0.2%
    4     362.9      1.11    0.3%
    5     410.8     11.86    2.8%
    6     443.3     1.653    0.3%
    7     486.4     8.659    1.7%
    8     521.5     6.811    1.3%
    9     561.2     1.868    0.3%
   10     599.1      2.08    0.3%
   11     642.1     4.552    0.7%
   12       678     3.466    0.5%
   13     721.7     8.752    1.2%
   14     751.6     1.804    0.2%
   15       796      5.01    0.6%
   16     831.4     2.706    0.3%
   17       876     9.585    1.0%
   18     920.1     3.829    0.4%
   19     960.4     7.994    0.8%
   20      1008     15.99    1.5%

Quality and confidence:
param     error
r         0.087

Model:
Time ~=    205.4
    + r     39.6
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_weight_to_fee", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=      209
    + r    101.1
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     202.8     0.367    0.1%
    1     312.6     4.112    1.3%
    2     412.2     0.872    0.2%
    3     520.6     9.205    1.7%
    4     618.3     9.458    1.5%
    5     713.9     1.749    0.2%
    6     817.5     8.253    1.0%
    7     919.3     5.142    0.5%
    8      1017     1.949    0.1%
    9      1107     9.689    0.8%
   10      1220     2.683    0.2%
   11      1321     2.451    0.1%
   12      1426      7.26    0.5%
   13      1534     10.57    0.6%
   14      1629     8.801    0.5%
   15      1740     10.76    0.6%
   16      1822     7.112    0.3%
   17      1929     8.622    0.4%
   18      2030      9.21    0.4%
   19      2125     7.974    0.3%
   20      2246     9.617    0.4%

Quality and confidence:
param     error
r         0.108

Model:
Time ~=    208.9
    + r    101.3
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_gas", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    132.5
    + r    19.13
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     129.6     0.084    0.0%
    1     150.9      0.19    0.1%
    2     170.2     0.209    0.1%
    3     190.3     0.192    0.1%
    4     214.7     0.315    0.1%
    5     228.3     0.265    0.1%
    6     247.7     0.921    0.3%
    7     267.2     0.571    0.2%
    8     286.1     0.508    0.1%
    9     304.2     0.336    0.1%
   10       323     0.456    0.1%
   11     341.8     0.685    0.2%
   12       362     2.583    0.7%
   13     383.2     0.308    0.0%
   14     400.9     0.453    0.1%
   15     420.2     0.266    0.0%
   16     440.1      2.46    0.5%
   17     457.6     0.556    0.1%
   18     476.2      0.15    0.0%
   19     496.4     3.531    0.7%
   20     513.5     0.832    0.1%

Quality and confidence:
param     error
r         0.022

Model:
Time ~=    132.7
    + r    19.12
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_input", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    206.1
    + r    38.96
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     202.4     0.325    0.1%
    1     245.6     1.296    0.5%
    2     284.6      0.24    0.0%
    3     329.7     8.093    2.4%
    4     361.6     0.964    0.2%
    5     405.4     3.798    0.9%
    6     439.9     0.955    0.2%
    7     477.6      1.34    0.2%
    8       514     0.803    0.1%
    9     569.1     14.11    2.4%
   10     596.3     3.275    0.5%
   11     635.9     5.259    0.8%
   12     672.9       2.8    0.4%
   13     709.6     2.474    0.3%
   14       750     6.599    0.8%
   15     792.7     9.447    1.1%
   16     833.3     11.84    1.4%
   17     879.5     11.35    1.2%
   18     914.6     12.05    1.3%
   19     952.1       9.3    0.9%
   20     996.2     11.44    1.1%

Quality and confidence:
param     error
r         0.096

Model:
Time ~=    205.1
    + r    39.31
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_input_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    264.8
    + n    9.588
              µs

Reads = 4 + (0 * n)
Writes = 1 + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    0     245.1     0.448    0.1%
   20     439.4     1.049    0.2%
   40     633.2      2.64    0.4%
   60       837     15.08    1.8%
   80      1019     1.606    0.1%
  100      1222     13.93    1.1%
  120      1412      14.2    1.0%
  140      1608     14.77    0.9%
  160      1822     8.062    0.4%
  180      1999      19.5    0.9%
  200      2182     14.67    0.6%
  220      2377     14.16    0.5%
  240      2571     16.83    0.6%
  260      2764     10.01    0.3%
  280      2971      13.8    0.4%
  300      3146     5.349    0.1%
  320      3331     8.662    0.2%
  340      3527     11.42    0.3%
  360      3715     12.26    0.3%
  380      3896     18.16    0.4%
  400      4109     15.14    0.3%
  420      4296     9.673    0.2%
  440      4496     23.44    0.5%
  460      4681     8.805    0.1%
  480      4859      13.1    0.2%
  500      5050     13.54    0.2%
  520      5253      20.9    0.3%
  540      5446     19.23    0.3%
  560      5640     11.97    0.2%
  580      5829      17.1    0.2%
  600      6007     17.64    0.2%
  620      6213     14.61    0.2%
  640      6404     15.95    0.2%
  660      6601     32.22    0.4%
  680      6789     11.44    0.1%
  700      6967     17.17    0.2%
  720      7191     14.31    0.1%
  740      7363     11.98    0.1%
  760      7552     20.32    0.2%
  780      7740     26.63    0.3%
  800      7943     14.92    0.1%
  820      8129     30.16    0.3%
  840      8323     16.54    0.1%
  860      8507     18.73    0.2%
  880      8708      25.1    0.2%
  900      8893     26.12    0.2%
  920      9063      16.1    0.1%
  940      9292     48.94    0.5%
  960      9447     18.48    0.1%
  980      9655     24.68    0.2%
 1000      9861     27.77    0.2%
 1020     10060     26.87    0.2%

Quality and confidence:
param     error
n         0.003

Model:
Time ~=    263.6
    + n    9.593
              µs

Reads = 4 + (0 * n)
Writes = 1 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_return", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    199.8
    + r    1.679
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     201.2      2.16    1.0%
    1     202.2     1.634    0.8%

Quality and confidence:
param     error
r         0.903

Model:
Time ~=    201.2
    + r    0.947
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_return_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    201.8
    + n    0.182
              µs

Reads = 4 + (0 * n)
Writes = 1 + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    0     202.3       1.5    0.7%
   20     206.7     1.675    0.8%
   40     209.3     0.588    0.2%
   60     213.2     1.531    0.7%
   80     218.9     3.101    1.4%
  100     220.8     1.834    0.8%
  120     222.9     0.326    0.1%
  140     227.5     1.116    0.4%
  160     232.7     1.678    0.7%
  180     235.9     1.902    0.8%
  200     243.7     0.773    0.3%
  220     242.8     1.587    0.6%
  240     246.4     1.701    0.6%
  260     248.8     0.402    0.1%
  280     258.4     6.929    2.6%
  300     255.8      0.13    0.0%
  320     260.4     1.382    0.5%
  340     265.3     1.655    0.6%
  360     267.1     1.162    0.4%
  380       271     1.181    0.4%
  400     276.2     2.593    0.9%
  420     277.7     0.355    0.1%
  440     283.6     1.548    0.5%
  460     286.9      1.63    0.5%
  480     288.6     0.505    0.1%
  500       295     5.806    1.9%
  520     298.1     5.187    1.7%
  540     301.2     1.421    0.4%
  560     304.7     1.433    0.4%
  580     310.9     7.478    2.4%
  600     310.9      0.63    0.2%
  620     319.4     10.13    3.1%
  640     321.1     4.905    1.5%
  660     322.9     1.473    0.4%
  680     327.1     2.108    0.6%
  700     328.8     1.323    0.4%
  720     334.2       1.9    0.5%
  740     344.4     2.587    0.7%
  760     340.6     1.554    0.4%
  780       344     1.082    0.3%
  800       356     1.897    0.5%
  820     350.6     0.413    0.1%
  840     355.6     1.485    0.4%
  860     358.6     1.212    0.3%
  880     362.8     1.441    0.3%
  900     365.3     1.193    0.3%
  920     370.9     1.966    0.5%
  940     376.7     7.622    2.0%
  960     378.1      1.94    0.5%
  980       380     0.429    0.1%
 1000     386.8     4.458    1.1%
 1020     391.2     8.125    2.0%

Quality and confidence:
param     error
n             0

Model:
Time ~=    202.7
    + n    0.183
              µs

Reads = 4 + (0 * n)
Writes = 1 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_terminate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: Contracts DeletionQueue (r:1 w:1)
Storage: Contracts OwnerInfoOf (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=      203
    + r    52.93
              µs

Reads = 4 + (4 * r)
Writes = 1 + (5 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     203.7     1.765    0.8%
    1     256.5     1.441    0.5%

Quality and confidence:
param     error
r         0.759

Model:
Time ~=    203.7
    + r    52.72
              µs

Reads = 4 + (4 * r)
Writes = 1 + (5 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_random", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    217.3
    + r    127.4
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     203.9     1.813    0.8%
    1       336     1.513    0.4%
    2     466.8     4.195    0.8%
    3     592.4     4.695    0.7%
    4     730.5     13.93    1.9%
    5     863.2     12.19    1.4%
    6       990     10.44    1.0%
    7      1125      11.9    1.0%
    8      1240     13.13    1.0%
    9      1354     12.09    0.8%
   10      1497     13.65    0.9%
   11      1615     8.901    0.5%
   12      1756     11.81    0.6%
   13      1876     15.57    0.8%
   14      2005     13.99    0.6%
   15      2141     10.06    0.4%
   16      2260     8.884    0.3%
   17      2382     15.32    0.6%
   18      2509     12.38    0.4%
   19      2631     11.42    0.4%
   20      2765     17.73    0.6%

Quality and confidence:
param     error
r         0.158

Model:
Time ~=    215.8
    + r    127.6
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_deposit_event", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    215.7
    + r    228.9
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     201.1     1.832    0.9%
    1     441.1     1.775    0.4%
    2     672.4     7.286    1.0%
    3     908.1     12.26    1.3%
    4      1135     11.01    0.9%
    5      1366     11.16    0.8%
    6      1595     7.982    0.5%
    7      1819     12.71    0.6%
    8      2043      12.4    0.6%
    9      2294     8.704    0.3%
   10      2503      11.7    0.4%
   11      2735     12.59    0.4%
   12      2964     11.91    0.4%
   13      3197     12.99    0.4%
   14      3420     8.704    0.2%
   15      3651     5.126    0.1%
   16      3886     8.048    0.2%
   17      4106     9.596    0.2%
   18      4348     18.45    0.4%
   19      4571     13.86    0.3%
   20      4787     10.14    0.2%

Quality and confidence:
param     error
r         0.143

Model:
Time ~=    215.3
    + r    229.1
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_deposit_event_per_topic_and_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: System EventTopics (r:80 w:80)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    475.4
    + t      241
    + n    65.38
              µs

Reads = 4 + (80 * t) + (0 * n)
Writes = 1 + (80 * t) + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    t     n   mean µs  sigma µs       %
    0    16      1477     16.62    1.1%
    1    16      1796     11.39    0.6%
    2    16      2007     7.023    0.3%
    3    16      2259     10.06    0.4%
    4     0      1413     11.95    0.8%
    4     1      1483     7.726    0.5%
    4     2      1543     14.83    0.9%
    4     3      1613     15.16    0.9%
    4     4      1669     10.76    0.6%
    4     5      1729     11.68    0.6%
    4     6      1770     11.61    0.6%
    4     7      1864     15.08    0.8%
    4     8      1926     15.48    0.8%
    4     9      1995     14.53    0.7%
    4    10      2059     13.72    0.6%
    4    11      2109     15.33    0.7%
    4    12      2161     11.67    0.5%
    4    13      2250     15.49    0.6%
    4    14      2325     16.23    0.6%
    4    15      2420     11.46    0.4%
    4    16      2470     13.02    0.5%

Quality and confidence:
param     error
t         1.733
n         0.341

Model:
Time ~=    459.8
    + t    235.4
    + n    66.36
              µs

Reads = 4 + (80 * t) + (0 * n)
Writes = 1 + (80 * t) + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_debug_message", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=      139
    + r    31.67
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     135.9     0.926    0.6%
    1       170     0.348    0.2%
    2     203.6      0.83    0.4%
    3     233.6     0.809    0.3%
    4       266     0.414    0.1%
    5     296.5     0.482    0.1%
    6     330.2     2.719    0.8%
    7     362.6     1.376    0.3%
    8       393     1.226    0.3%
    9     422.9     1.513    0.3%
   10     456.6     4.168    0.9%
   11     491.2     12.62    2.5%
   12     517.5     3.756    0.7%
   13       557     8.443    1.5%
   14     587.8     3.735    0.6%
   15     617.6     5.147    0.8%
   16     651.4     9.752    1.4%
   17     675.7     1.603    0.2%
   18     716.2     14.33    2.0%
   19     738.5     2.626    0.3%
   20     780.4     13.39    1.7%

Quality and confidence:
param     error
r         0.077

Model:
Time ~=    137.8
    + r    31.95
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_set_storage", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    98.08
    + r    327.8
              µs

Reads = 4 + (80 * r)
Writes = 1 + (80 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     207.9     1.207    0.5%
    1     482.3     0.761    0.1%
    2     782.9     9.258    1.1%
    3      1087     10.46    0.9%
    4      1388     14.11    1.0%
    5      1715     11.24    0.6%
    6      2026     9.585    0.4%
    7      2334     14.27    0.6%
    8      2646     14.21    0.5%
    9      3003     17.07    0.5%
   10      3302     15.84    0.4%
   11      3660     31.16    0.8%
   12      4031     16.37    0.4%
   13      4383      12.2    0.2%
   14      4692     23.85    0.5%
   15      5092     18.34    0.3%
   16      5372     12.99    0.2%
   17      5679     22.52    0.3%
   18      6022     18.77    0.3%
   19      6354     23.44    0.3%
   20      6719     34.99    0.5%

Quality and confidence:
param     error
r         0.589

Model:
Time ~=       94
    + r    328.6
              µs

Reads = 4 + (80 * r)
Writes = 1 + (80 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_set_storage_per_new_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    535.8
    + n     20.8
              µs

Reads = 85 + (0 * n)
Writes = 83 + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    0     484.3     0.947    0.1%
    1     563.5     12.18    2.1%
    2     577.5     2.169    0.3%
    3     600.4     1.652    0.2%
    4     625.2     6.354    1.0%
    5       644     3.897    0.6%
    6     663.5     2.683    0.4%
    7     690.8     6.899    0.9%
    8     704.3     8.828    1.2%
    9     729.1     11.96    1.6%
   10     733.7     3.234    0.4%
   11     765.2     9.306    1.2%
   12     780.4     10.06    1.2%
   13     805.6     4.128    0.5%
   14     833.5     8.777    1.0%
   15     850.4     9.944    1.1%
   16     865.7     1.923    0.2%

Quality and confidence:
param     error
n         0.233

Model:
Time ~=    528.7
    + n    21.53
              µs

Reads = 85 + (0 * n)
Writes = 83 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_set_storage_per_old_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    555.7
    + n    8.074
              µs

Reads = 85 + (0 * n)
Writes = 83 + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    0     486.1     1.307    0.2%
    1     556.7      3.81    0.6%
    2     585.1     7.186    1.2%
    3     586.4     4.028    0.6%
    4     593.2     3.764    0.6%
    5     601.3     3.266    0.5%
    6     603.8     1.093    0.1%
    7     614.1     3.325    0.5%
    8     617.7     1.472    0.2%
    9     627.1     3.587    0.5%
   10     630.6     1.002    0.1%
   11     643.2      7.06    1.0%
   12     644.4     6.664    1.0%
   13     654.8     2.547    0.3%
   14     668.7     6.204    0.9%
   15     679.1     3.273    0.4%
   16     690.1      8.48    1.2%

Quality and confidence:
param     error
n          0.27

Model:
Time ~=    543.5
    + n    9.142
              µs

Reads = 85 + (0 * n)
Writes = 83 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_clear_storage", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    135.2
    + r    312.9
              µs

Reads = 5 + (80 * r)
Writes = 3 + (80 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     204.2     1.341    0.6%
    1     494.3     1.937    0.3%
    2     778.9     4.293    0.5%
    3      1072     8.771    0.8%
    4      1358     10.23    0.7%
    5      1687     13.31    0.7%
    6      2004      5.36    0.2%
    7      2301     7.017    0.3%
    8      2588     15.58    0.6%
    9      2919      7.99    0.2%
   10      3202     19.46    0.6%
   11      3531     23.75    0.6%
   12      3895     17.44    0.4%
   13      4242     28.96    0.6%
   14      4497     15.25    0.3%
   15      4871     28.64    0.5%
   16      5155     18.08    0.3%
   17      5437      33.2    0.6%
   18      5807      30.5    0.5%
   19      6123     27.61    0.4%
   20      6450     21.87    0.3%

Quality and confidence:
param     error
r         0.471

Model:
Time ~=    129.8
    + r    313.8
              µs

Reads = 5 + (80 * r)
Writes = 3 + (80 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_clear_storage_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    538.6
    + n    8.135
              µs

Reads = 85 + (0 * n)
Writes = 83 + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    0     495.4     2.598    0.5%
    1     541.8     2.693    0.4%
    2       568     7.386    1.3%
    3     569.1      1.18    0.2%
    4     577.6      4.28    0.7%
    5     585.6     6.295    1.0%
    6     592.8     7.432    1.2%
    7     594.2     2.432    0.4%
    8       602     1.667    0.2%
    9     606.5     1.739    0.2%
   10     612.8     1.054    0.1%
   11     624.7     0.661    0.1%
   12     623.1     4.955    0.7%
   13     648.4     8.737    1.3%
   14     652.1     5.408    0.8%
   15       669      10.2    1.5%
   16     672.6     6.036    0.8%

Quality and confidence:
param     error
n         0.204

Model:
Time ~=    532.3
    + n    8.729
              µs

Reads = 85 + (0 * n)
Writes = 83 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_get_storage", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    140.4
    + r    268.2
              µs

Reads = 4 + (80 * r)
Writes = 1 + (0 * r)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    r   mean µs  sigma µs       %
    0     206.3     1.729    0.8%
    1     441.1     1.102    0.2%
    2     682.6     1.287    0.1%
    3     937.5     3.565    0.3%
    4      1206      14.9    1.2%
    5      1446     10.83    0.7%
    6      1715     11.97    0.6%
    7      1994     7.959    0.3%
    8      2252     16.13    0.7%
    9      2532     11.54    0.4%
   10      2772     20.24    0.7%
   11      3058     19.53    0.6%
   12      3368     22.09    0.6%
   13      3641      25.4    0.6%
   14      3889        15    0.3%
   15      4173     14.68    0.3%
   16      4457     31.27    0.7%
   17      4728     23.83    0.5%
   18      4968     41.59    0.8%
   19      5258     25.94    0.4%
   20      5560     43.97    0.7%

Quality and confidence:
param     error
r         0.415

Model:
Time ~=    131.7
    + r    269.1
              µs

Reads = 4 + (80 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_get_storage_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    504.5
    + n     49.6
              µs

Reads = 84 + (0 * n)
Writes = 1 + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    0     446.6     8.516    1.9%
    1     544.2     1.737    0.3%
    2       614     3.677    0.5%
    3     662.2     10.32    1.5%
    4     715.2     11.87    1.6%
    5     758.3     4.093    0.5%
    6       807     8.793    1.0%
    7     849.7     1.545    0.1%
    8     897.1     7.356    0.8%
    9     942.5     3.909    0.4%
   10     998.4     11.75    1.1%
   11      1045      11.4    1.0%
   12      1087     10.69    0.9%
   13      1140     11.23    0.9%
   14      1199     13.92    1.1%
   15      1253     12.15    0.9%
   16      1310     12.27    0.9%

Quality and confidence:
param     error
n          0.28

Model:
Time ~=    494.4
    + n    50.49
              µs

Reads = 84 + (0 * n)
Writes = 1 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_c<truncated>...

Parity Bot added 2 commits May 18, 2022 11:39
…--manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
@athei athei added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels May 18, 2022
@athei athei marked this pull request as ready for review May 18, 2022 14:29
Copy link
Contributor

@cmichi cmichi left a comment

Choose a reason for hiding this comment

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

Awesome, thx!

@athei
Copy link
Member Author

athei commented May 18, 2022

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 2b1326a into master May 18, 2022
Smart Contracts automation moved this from In Progress to Done May 18, 2022
@paritytech-processbot paritytech-processbot bot deleted the at-update-code branch May 18, 2022 23:50
godcodehunter pushed a commit to sensoriumxr/substrate that referenced this pull request Jun 22, 2022
* Add `set_code` dispatchable

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <admin@parity.io>
DaviRain-Su pushed a commit to octopus-network/substrate that referenced this pull request Aug 23, 2022
* Add `set_code` dispatchable

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <admin@parity.io>
en added a commit to octopus-network/substrate that referenced this pull request Oct 5, 2022
* generate_storage_alias: Rewrite as proc macro attribute (#11387)

* generate_storage_alias: Rewrite as proc macro attribute

This rewrites the `generate_storage_alias!` declarative macro as proc-macro attribute. While doing
this the name is changed to `storage_alias`. The prefix can now also be the name of a pallet. This
makes storage aliases work in migrations for all kind of chains and not just for the ones that use
predefined prefixes.

* Fix compilation and FMT

* Moare fixes

* :facepalm:

* ......

* Rework the syntax and support instancing

* FMT

* Prefix variants with `Storage`

* Make it compile

* Fix where clause on rust stable

* Prune some duplicated dependencies in the dep graph (#11433)

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* contracts: Get rid of `#[pallet::without_storage_info]` (#11414)

* Implement `MaxEncodeLen` for pallet-contracts storage

* Remove redundant debug println

* Move code len check to PrefabWasmModule::from_code

* Return a successful response on repeated small block request (#11429)

* [ci] Adjust job order in pipeline test stage with Gitlab DAG (#11442)

* [Do Not Merge] Test gitlab DAG in pipeline

* add jobs for pipeline cancel

* add check-tracing to cancel-pipeline

* Allow to set the max supply for collection (#11441)

* Allow to set the max supply for collection

* Update error

* Add weights info

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Update frame/uniques/src/lib.rs

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: Parity Bot <admin@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* disable check-dependent-cumulus (#11450)

* trie: Optimize `keys` function (#11457)

* trie: Optimize `keys` function

Instead of iterating the entire state and collecting all keys that match the given prefix, we can
directly use the optimized prefix iterator.

* Add a test

* add GHA support to dependabot (#11448)

* add GHA support to dependabot

* fix formatting

* add labels

* add label

* contracts: Add `set_code` root dispatchable (#11451)

* Add `set_code` dispatchable

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <admin@parity.io>

* Switch to pooling copy-on-write instantiation strategy for WASM (#11232)

* Switch to pooling copy-on-write instantiation strategy for WASM

* Fix benchmark compilation

* Fix `cargo fmt`

* Fix compilation of another benchmark I've missed

* Cleanups according to review comments

* Move `max_memory_size` to `Semantics`

* Set `memory_guaranteed_dense_image_size` to `max_memory_size`

* Rename `wasm_instantiation_strategy` to `wasmtime_instantiation_strategy`

* Update the doc-comments regarding the instantiation strategy

* Extend the integration tests to test every instantiation strategy

* Don't drop the temporary directory until the runtime is dropped in benchmarks

* Don't drop the temporary directory until the runtime is dropped in tests

* Make fields of `EraRewardPoints` public (#11422)

* add missing events to elections fallback (#11436)

* add missing events to elections fallback

* Update frame/election-provider-multi-phase/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Update frame/election-provider-multi-phase/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* add test

* fix

* fmt

* Update frame/support/src/storage/types/nmap.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Fix renaming artifacts (#11455)

* Add Score to Bags List (#11357)

* Add Score to Bags List

* fix ordering

* make compile

* in progress migration

* make migration compile

* remove old check

* remove runtime specific migration

* fix warning

* Apply suggestions from code review

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* improve migration

* fix

* fix merge

* fmt

* Update migrations.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Stabilize ecdsa_ functions (#11486)

* Bump actions/checkout from 2 to 3 (#11463)

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump gaurav-nelson/github-action-markdown-link-check from 1.0.9 to 1.0.14 (#11464)

* Bump gaurav-nelson/github-action-markdown-link-check

Bumps [gaurav-nelson/github-action-markdown-link-check](https://github.com/gaurav-nelson/github-action-markdown-link-check) from 1.0.9 to 1.0.14.
- [Release notes](https://github.com/gaurav-nelson/github-action-markdown-link-check/releases)
- [Commits](https://github.com/gaurav-nelson/github-action-markdown-link-check/compare/7481451f70251762f149d69596e3e276ebf2b236...58f84fd654812d0d8da4e4d4a559eda087daf8ce)

---
updated-dependencies:
- dependency-name: gaurav-nelson/github-action-markdown-link-check
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update .github/workflows/md-link-check.yml

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io>

* RPC: Mark storage methods as `blocking`  (#11459)

* client/api: Make `storage_keys` blocking

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* client/api: Ensure `state_*` RPC methods are blocking

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* client/rpc: Ensure `childstate_*` RPC methods are blocking

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* client/rpc: `ChainApi` make RPC methods sync

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Remove unused async-traits

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* client/rpc-api: Make chain RPC methods blocking

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Update client/rpc/src/state/state_full.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Add `blocking` to `state_getKeysPaged` RPC call

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Fix build and warning

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Remove `async_trait` tidyup

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* InMemoryBackend: Make it generic over the key hasher (#11488)

* InMemoryBackend: Make it generic over the key hasher

* Update primitives/state-machine/src/in_memory_backend.rs

Co-authored-by: cheme <emericchevalier.pro@gmail.com>

* Update primitives/state-machine/src/in_memory_backend.rs

Co-authored-by: cheme <emericchevalier.pro@gmail.com>

* FMT

Co-authored-by: cheme <emericchevalier.pro@gmail.com>

* Unify rpc api and implementation name (#11469)

* Unify rpc api and implementation name

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* MauanlSeal ==> ManualSealRpc

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Remove extra Rpc naming in the structs

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Update doc

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* fix merge

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>

* rpc servers CLI: add `--max--subscriptions--per--connection` + fix a few bugs (#11461)

* cli: fix RPC CLI nits

* remove needless lines

* cargo fmt

* Update client/service/src/lib.rs

Co-authored-by: James Wilson <james@jsdw.me>

Co-authored-by: James Wilson <james@jsdw.me>

* Make `--dev` listen by default on `/ip4/0.0.0.0/tcp/30333` (#11492)

If `--validator` is passed we also listen on this address and as `--dev` is a shortcut for multiple
CLI args, including `--validator`, we should make it consistent.

* Fix State Trie Migration Benchmarks (#11502)

* enable signed migrations in benchmarks

* T instead of Test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Remove 'mut'

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Use API for pr-custom-review (#11487)

* use API for pr-custom-review

* bump action tag

* temporary: disable draft skip

* temporary: use staging

* try it with the prod instance

* revert draft skip

* Introduce #[pallet::call_index] attribute to dispatchables (#11381)

* Introduce #[pallet::call_index] attribute to dispatchables

* cargo fmt

* Add more docs and prevent duplicates of call indices

* Add UI test for conflicting call indices

* cargo fmt

Co-authored-by: parity-processbot <>

* Create Script to Run All Benchmarks (#11493)

* Create run_all_benchmarks.sh

* Update run_all_benchmarks.sh

* Update run_all_benchmarks.sh

* Review fixes

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update scripts/run_all_benchmarks.sh

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* typo

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* add default for $1

* Typo

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update run_all_benchmarks.sh

* new weights on benchmarking machine

* prefer `--chain=dev`

* fix compile

* fix command

* fmt

* dont use square brackets

* Extend doc

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Remove +nightly

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add error file an run execute everything optimistically

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Adjust maximum memory pages hard limit for the pooling instantiation strategy (#11482)

* Run `sc-executor-wasmtime` unit tests for all instantiation strategies

* Adjust maximum memory pages hard limit for the pooling instantiation strategy

* Optimize offchain worker memory usage a bit.  (#11454)

* add missing events to elections fallback

* Merged

* add some logs and stuff

* undo a bunch of things

* undo lock file

* remove unused err

* fix build

* add rule to the ci job (#11511)

* Contracts pallet: removal on idle (#11202)

* on_initialize -> on_idle

* use remaining_weight info

* no weight_limit for on_idle

* call on_idle in tests

* attempt to fix tests

* run on_initiaize when queue full

* add on_idle to weight info

* add on_idle weight info to on_idle hook

* add basic test for on_initialize with full queue

* disbale check for all keys gone in full queue, full block test

* queue_deth as usize, add comment

* comment was removed by accident

* Update frame/contracts/src/lib.rs

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* cargo +nightly fmt

* update lazy_removal_does_no_run_on_full_queue_and_full_block

* remove changes in weights.rs

* weights on_idle -> on_process_deletion_queue_batch

* use block number for on_idle

* use BlockNumber for on_initialize

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Update frame/contracts/src/lib.rs

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* remove outcommented code

* add check that queue still full for test

* cargo fmt

* cargo +nightly fmt

* Update frame/contracts/src/benchmarking/mod.rs

Co-authored-by: Alexander Gryaznov <hi@agryaznov.com>

* fix weights.rs

* add lazy_removal_does_no_run_on_low_remaining_weight test

* Apply suggestions from code review

Co-authored-by: Alexander Gryaznov <hi@agryaznov.com>

Co-authored-by: Alexander Theißen <alex.theissen@me.com>
Co-authored-by: Parity Bot <admin@parity.io>
Co-authored-by: Alexander Gryaznov <hi@agryaznov.com>

* Fix Babe revert when last finalized block is a leaf (#11500)

* Fix Babe revert when a leaf is the last finalized block

Without this fix the last finalized block weight data is wrongly removed
on revert scenario where the last finalized block is a leaf.

* Remove redundant check

* Added test to exercise the fix

* Rename test

* Give variables better names

* Document benchmarking CLI (#11246)

* Decrese default repeats

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add benchmarking READMEs

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update docs

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update docs

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update README

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Review fixes

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>

Co-authored-by: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>

* Introduce `WeightToFee` trait instead of `WeightToFeePolynomial` and make `WeightToFeePolynomial` implement it instead (#11415)

* Introduce `WeightToFee` trait instead of `WeightToFeePolynomial` and make `WeightToFeePolynomial` implement it instead

* Rename `WeightToFee::calc()` to `WeightToFee::wight_to_fee()`

* Fix typo

* Fix node lookup on fork-tree after a warp-sync (#11476)

* Fix node lookup on fork-tree after a warp-sync

After a warp-sync, the error condition was triggered by the absence
of the parent node of the first imported block.

The previous lookup implementation was traversing the tree using a
recursive **post-order** DFS, this technique doesn't trigger the issue.

In the last iterative implementation we were using a BFS instead.

* Added internal doc warning

* Small optimization

* Specify post-order DFS in the comment

* Test for the fork-tree post-order DFS traversal requirement (#11521)

* Test for the fork-tree post-order DFS traversal requirement

* Fixed typo

* Storage Layer for All FRAME Extrinsics (#11431)

* add new trait

* implement DispatchableWithStorageLayer

* at least one transactional

* all dispatch is at least transactional

* storage_layer api

* add test

* storage layer tests

* deprecate transactional tag

* i guess no reason to deprecate

* remove transactional from batch_all

* update tests

* extend trait

* cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* fix copy paste name

* cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Create run_all_benchmarks.sh

* uncomment build

* update number of steps and repeats

* add skip build

* Update run_all_benchmarks.sh

* Update run_all_benchmarks.sh

* new benchmarks

* Update frame/support/src/traits/dispatch.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Update frame/support/src/traits/dispatch.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Update frame/support/test/tests/storage_layers.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Update frame/support/test/tests/storage_layers.rs

* weights

* Update dispatch.rs

* doc link

* decl_macro support

Co-authored-by: Parity Bot <admin@parity.io>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* CI: github no longer checks whitelisted actions this way (#11507)

* CI: github no longer checks whitelisted actions this way

* CI: actually this one is needed and no one knows it's related to a Markdown Link Check

* Fork-Tree import requires post-order DFS traversal (#11531)

* Fork-tree insert requires post-order dfs traversal

* Add dedicated test for methods requireing post-order traversal

* Fixed pruning docs (#11519)

* fix broken links (#11536)

* Safe and sane multi-item storage removal (#11490)

* Fix overlay prefix removal result

* Second part of the overlay prefix removal fix.

* Report only items deleted from storage in clear_prefix

* Fix kill_prefix

* Formatting

* Remove unused code

* Fixes

* Fixes

* Introduce clear_prefix host function v3

* Formatting

* Use v2 for now

* Fixes

* Formatting

* Docs

* Child prefix removal should also hide v3 for now

* Fixes

* Fixes

* Formatting

* Fixes

* apply_to_keys_whle takes start_at

* apply_to_keys_whle takes start_at

* apply_to_keys_whle takes start_at

* Cursor API; force limits

* Use unsafe deprecated functions

* Formatting

* Fixes

* Grumbles

* Fixes

* Docs

* Some nitpicks :see_no_evil:

* Update primitives/externalities/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Formatting

* Fixes

* cargo fmt

* Fixes

* Update primitives/io/src/lib.rs

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>

* Formatting

* Fixes

Co-authored-by: Bastian Köcher <info@kchr.de>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>

* Use `loops` rather than `backend` for compatibility. (#11542)

* Use `loops` rather than `backend` for compatibility.

* Move over other converters

* sp-core: impl serde for some offchain types (#11512)

* sp-core: impl serde for some offchain types

* Update primitives/core/src/offchain/mod.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* remove serde impls from OpaqueNetworkState/OpaqueMultiaddr

* derive default

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Several tweaks needed for Governance 2.0 (#11124)

* Add stepped curve for referenda

* Treasury SpendOrigin

* Add tests

* Better Origin Or-gating

* Reciprocal curve

* Tests for reciprical and rounding in PerThings

* Tweaks and new quad curve

* Const derivation of reciprocal curve parameters

* Remove some unneeded code

* Actually useful linear curve

* Fixes

* Provisional curves

* Rejig 'turnout' as 'support'

* Use TypedGet

* Fixes

* Enable curve's ceil to be configured

* Formatting

* Fixes

* Fixes

* Fixes

* Remove EnsureOneOf

* Fixes

* Fixes

* Fixes

* Formatting

* Fixes

* Update frame/support/src/traits/dispatch.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Grumbles

* Formatting

* Fixes

* APIs of VoteTally should include class

* Fixes

* Fix overlay prefix removal result

* Second part of the overlay prefix removal fix.

* Formatting

* Fixes

* Add some tests and make clear rounding algo

* Fixes

* Formatting

* Revert questionable fix

* Introduce test for kill_prefix

* Fixes

* Formatting

* Fixes

* Fix possible overflow

* Docs

* Add benchmark test

* Formatting

* Update frame/referenda/src/types.rs

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>

* Docs

* Fixes

* Use latest API in tests

* Formatting

* Whitespace

* Use latest API in tests

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>

* change impl FnOnce() to generic type + trait bound (#11534)

* change impl FnOnce() to generic type + trait bound

with_transaction() function can not be used with explicit generic arguments because of this issue: https://github.com/rust-lang/rust/issues/83701

* make the same changes elsewhere

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>

* Introduce `rusty-cachier` (#11462)

* Introduce `rusty-cachier`

* Return LF at the end of file

* Use `entrypoint` to `unshare(1)` into a new mount namespace

* Use `rusty-cachier`-provided absolute path for `CARGO_TARGET_DIR` everywhere

* Debug single `build-rustdoc` job

* CI: debug

* CI: debug

* CI: debug

* `unshare(1)` is no longer needed

* CI: remove debug

* Revert "Debug single `build-rustdoc` job"

* Formatiing

* Update scripts/ci/gitlab/pipeline/build.yml

Co-authored-by: Denis Pisarev <denis.pisarev@parity.io>

* Clean up `#[transactional]` (#11546)

* Deprecate #[transactional] attribute

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Remove #[transactional] from nomination pools

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Review fix

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Fix NOOP test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Suppress warnings

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Add `rusty-cachier notify` job (#11554)

* Add `rusty-cachier notify` job

* Add comments

* Fix CI after `rusty-cachier` introduction (#11556)

* Fix CI after `rusty-cachier` introduction

* Replace anchor with `extends`

* Introduce `EnsureOrigin::try_successul_origin` (#11558)

* Introduce `EnsureOrigin::try_successul_origin`

* Formatting

* Fixes

* Add Morph

* Fixes

* Formatting

* Sync: Improve major sync detection (#11547)

* Sync: Improve major sync detection

When we still have a full import queue, we should still report that we are in major sync mode,
otherwise validators may will already start producing blocks.

* Use median

* Review comments

* Fix clippy on master (#11559)

* Fix link in node-template README (#11529)

The lorri repository has moved from https://github.com/target/lorri to
https://github.com/nix-community/lorri.

* Fix minor typos (#11550)

* Fix minor typos

* FMT

Co-authored-by: Bastian Köcher <info@kchr.de>

* Short circuit Treasury::Spend benchmark for NeverEnsureOrigin (#11562)

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: parity-processbot <>

* Do not require Ord for pallet_offences::Config::IdentificationTuple (#11563)

* Ranked Collective pallet (#11548)

* Ranked Collective pallet

* Fixes

* benchmarks

* Weights

* Allow class voting in rank
Use bare ayes for calculating support.
Allow only promotion/demotion by one rank only.
Allow removal of member with rank zero only.
Use new Tally API

* Index by rank, still O(1).

* Custom vote weights

* Formatting

* Update frame/ranked-collective/src/lib.rs

* Broken :(

* origin guard; cleanup uses new API

* Formatting

* Promote/demote by rank

* Formatting

* Use new API

* Remove code in another PR

* Remove code in another PR

* Formatting

* Remove code in another PR

* Docs

* Docs

* Bump

* Fixes

* Formatting

* Fixes

* Introduce set function into storage maps (#11564)

* Introduce `SubmitOrigin` to Referenda pallet config (#11567)

* Don't limit `test-linux-stable-int` job output (#11560)

* Fix all warnings when building for wasm (#11569)

* Fix all warnings when building for wasm

Besides that it also enables warnings as errors for wasm builds in the CI.

* FMT

* Make clippy happy

* Helper macro for `Morph` impls (#11570)

* Helper macro for Morph impls

* No need to deprecate for now

* Improved macro

* Doc tests

* Grumbles

* `rusty-cachier` pipeline impovements and fixes (#11572)

* CI: fix `build-subkey-macos` build job (#11573)

* CI: fix `build-subkey-macos` build job

* CI: use full path for the `CARGO_TARGET_DIR` default value

* aura: export change_authorities and initialize_authorities (#11468)

* aura: export change_authorities and initialize_authorities

* add docs

* fix docs

* Reduce call size of Referenda pallet (#11578)

* Reduce call size of Referenda pallet

* Fixes

* Fixes

* Fixes

* Docs

* reactivate check-dependent-cumulus (#11506)

* re-enable check-dependent-cumulus

* temporary: use handle-extra-dependencies

* temporary: trim CI

* CI: include build stage

* CI: include test stage

* CI: include test stage

* Revert "temporary: trim CI"

This reverts commit dcf4ae8d842bc445a065c7ccdc3b6a603034faa4.

* CI: fix weird revert

* Revert "temporary: use handle-extra-dependencies"

This reverts commit bc0dc0f21f10284a23f66fdd8509ca6df89f2586.

* CI undebug

Co-authored-by: TriplEight <denis.pisarev@parity.io>

* wasm-builder: Rerun the build if the generated file changed (#11582)

* [ci] use cargo nextest instead cargo test in test-linux-stable (#11576)

* [DO NOT MERGE] Experimenting with nextest

* enable jobs

* enable stages

* add comment

* create test-frame-support job

* Expose ValidatedTransaction from transaction pool (#11588)

This is required to make a tx pool wrapper for some custom transaction validation, specificially
required to make a wrapper around the `LocalTransactionPool` implementation (https://github.com/subspace/subspace/blob/f54881a9b5/crates/subspace-service/src/pool.rs#L232-L269).

Related: https://github.com/paritytech/substrate/discussions/11520

* Tracable defensive errors (#11532)

* Tracable defensive errors

* small fixes

* fix

* refactored

* switched to defensive_ok_or

* Remove unnecessary type annotations and conversions

* cargo fmt

* Fixes

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>

* Remove `#[pallet::without_storage_info]` for pallet-remark (#11590)

* Add host info to weight templates (#11583)

* Add host info to weight templates

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/system/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <admin@parity.io>

* Expose Benchmarking Component Ranges (#11545)

* Add component ranges to benchmarking

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Adding component ranges to templates

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/system/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* tweak script to reduce diff

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_identity --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/identity/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <admin@parity.io>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>

* make era public (#11575)

* MEL for Ranked Collective (#11602)

* Fix one-by-off in `BoundedSlice::try_from` (#11600)

* Remove a max supply record on collection's destruction (#11593)

* Remove a max supply record on collection's destruction

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <admin@parity.io>

* Implement more IntoIter traits for bounded types (#11616)

* Remove `without_storage_info` for membership pallet (#11591)

* Improve docs on `--keep-blocks` CLI parameter and related data structures (#11611)

* Improve docs on `--keep-blocks` CLI parameter and related data structures

* Update client/db/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Improve inspection and generation of node keys (#11525)

* Improve inspection and generation of node keys

* Lock stdout before write

* Fix typo

* Fix offset

* Remove useless code

* Set inspect-node-key 'network' option as obsolete

* Better transaction pool error (#11629)

* Better transaction pool error

* Do not use `Debug` when printing errors

* Use BoundedVec in aura pallet (#11617)

* Use BoundedVec in aura pallet

* cargo fmt

* pallet alliance (#11112)

* Add pallet-alliance

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Update multihash/cid and format

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Remove useless deps

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Add pallet-alliance into node runtime

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Fix has_identity

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Add TooMantBlacklist Error

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Add TooLongWebsiteUrlLength Error

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Add remove_announcement

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Derive pallet_identity::Config and Fix test/benchmarking

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Add part weight for call of pallet-alliance

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Remove pallet_identity Config trait

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Fix propose arguments

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Some nits

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* cargo fmt

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Fix benchmarking of add_blacklist/remove_blacklist

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Some nits

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Add benchmarking for init_members

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Add benchmarking for propose/vote/veto

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Fix benchmarking

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Remove some useless

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* fix some compile issue

* more fix

* all checks

* refactor

* refactor event

* refactor

* cleanup

* cleanup

* fix benchmarking

* fix warning

* fmt

* fix benchmarks

* with storage info

* fmt

* add new config

* fix benchmarks

* fix

* fmt

* Apply suggestions from code review

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* improvements

* fix

* update docs

* rename events, errors, and functions

* make kicking events clearer

* fix

* fix tests

* fix tests

* fix runtime

* fix build

* remove unneeded change

* remove Candidate role from Alliance

* fmt grumbles

* update lock

* update recursion limit

* benchmarks

* convert-try

* benchmark assertions

* fmt ,

* cargo lock

* Update frame/alliance/src/benchmarking.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* add docs to public interfaces

* Apply suggestions from code review

Co-authored-by: Squirrel <gilescope@gmail.com>

* fix build (node)

* review

* use EitherOfDiverse

* update cargo toml

* make all dispatch class Normal

* change blacklist to unscrupulous

* formatting

* fmt oops

* rename benchmarking unscrupulous account creator

Co-authored-by: koushiro <koushiro.cqx@gmail.com>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Co-authored-by: joepetrowski <joe@parity.io>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
Co-authored-by: Squirrel <gilescope@gmail.com>

* Add fixed u64 (#11555)

Co-authored-by: parity-processbot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Remove storage `MaxValues` limits (#11643)

* Remove limits

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Remove more

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Added an event for cancel_proposal (#11620)

* Added an event for cancel_proposal

* test

* pallet-grandpa: Improve/Clarify docs of `note_stalled` (#11623)

* Bump crossbeam-utils from 0.8.5 to 0.8.8 (#11605)

Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam) from 0.8.5 to 0.8.8.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-utils-0.8.5...crossbeam-utils-0.8.8)

---
updated-dependencies:
- dependency-name: crossbeam-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix pallet_uniques docs link (#11651)

* MEL bound `state-trie-migration` (#11639)

* MEL bound state-trie-migration

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* wip

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Use sp_std

Co-authored-by: cheme <emericchevalier.pro@gmail.com>

* Add doc

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Set MaxKeyLen default to 512

Just to be sure that it will work. There is also no real penalty
from over-estimating it.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add more doc

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Clippy

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* fmt

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix assert_err_with_weight macro

Looks like I'm the only one using it anyway...

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix tests that use env macro

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: cheme <emericchevalier.pro@gmail.com>

* Move bounded type definitions to sp-runtime (#11645)

* Move bounded type definitions to sp-runtime

* cargo fmt

* Fix compile error

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Move TryCollect to sp-runtime

* Write some docs

* Import missing types

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Implement MaxEncodedLen on pallet-beefy (#11584)

* Implement MaxEncodedLen on pallet-beefy

* Return Result in intialize_authorities

* Update docs

* Log error when authorities list gets truncated

* Update frame/beefy/src/lib.rs

Co-authored-by: Adrian Catangiu <adrian@parity.io>

* cargo fmt

Co-authored-by: Adrian Catangiu <adrian@parity.io>

* Implement PartialOrd and Ord on BoundedSlice and WeakBoundedVec (#11655)

* Implement PartialOrd and Ord on BoundedSlice and WeakBoundedVec

* More implementations of PartialEq and PartialOrd

* cargo fmt

* Fixes

* Allow nomination pools to chill + fix dismantle scenario (#11426)

* make pool roles optional

* undo lock file changes?

* add migration

* add the ability for pools to chill themselves

* boilerplate of tests

* somewhat stable, but I think I found another bug as well

* Fix it all

* Add more more sophisticated test + capture one more bug.

* Update frame/staking/src/lib.rs

* reduce the diff a little bit

* add some test for the slashing bug

* cleanup

* fix lock file?

* Fix

* fmt

* Update frame/nomination-pools/src/lib.rs

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update frame/nomination-pools/src/lib.rs

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update frame/nomination-pools/src/lib.rs

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update frame/nomination-pools/src/mock.rs

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix build

* fix some fishy tests..

* add one last integrity check for MinCreateBond

* remove bad assertion -- needs to be dealt with later

* nits

* fix tests and add benchmarks for chill

* remove stuff

* fix benchmarks

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/nomination-pools/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* remove defensive

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: Parity Bot <admin@parity.io>

* Properly implement Debug on bounded types (#11659)

* remove flaky rpc subscription tests (#11653)

* Add `TypeInfo` (#11599)

* wasm-builder: Fix constant re-running of `build.rs` scripts. (#11624)

Recently we added the wasm binaries to the `rerun-if-changed` list. The problem with that is that
they have a later mtime than the `invoked.timestamp` file and this file's mtime is used to determine
if the `build.rs` script needs to be re-run. The solution to this is that we copy the mtime of this
`invoked.timestamp` file and add it to the wasm binaries. Then cargo/rustc doesn't constantly wants
to rerun the `build.rs` script.

* Increment subkey version to 2.0.2 (#11656)

* Increment subkey version to 2.0.2

* Update Cargo.lock

Co-authored-by: Davide Galassi <davxy@datawok.net>

* Implement `Deref` for `BoundedSlice` (#11660)

* Impl Deref for BoundedSlice

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update primitives/runtime/src/bounded/bounded_vec.rs

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>

* grandpa: fix creation of justification with equivocating precommits in commit (#11302)

* grandpa: fix creation of justification ancestry

we would reject commits that have precommits targeting blocks lower than the
commit target. when there is an equivocation (or if it the commit is not
minimal) it is possible to have such precommits and we should assume that they
are the round base.

* grandpa: bump to 0.16.0

* grandpa: add test for justification with equivocation

* grandpa: fix failing test

* Make it possible to disable RocksDB completely (#11537)

* Make it possible to disable RocksDB completely

* Make ParityDB non-optional

* Address review comments

* rpc servers: update jsonrpsee to fix host filtering + WS server-side pings  (#11661)

* bump jsonrpsee to fix #11480

In addition it adds WebSocket server-side pings which is configured to
send out pings periodically every 30 seconds.

* use released crates.io version

* Update Cargo.toml

* Include the chain specs instead of trying to open them by path (#11625)

This makes it possible to run the tests manually, without them expecting to be run in a special
folder etc.

* Remove `without_storage_info` from pallet `transaction-storage` (#11668)

* Introduce BoundedVec

* Fix typos

* Add comments to the bounds

* Remove migration

* Improve bound value access syntax

* combine iteratons and tolerance in sp-npos-elections API (#11498)

* Initial implementation of mms

* Some more attempts at `mms`

* Functioning `MMS` algorithm implementation.
Adding some tests too

* More tests and typos fixed.

* Adding fuzzer for `mms`
(but could not test it on Mac M1)

* Missing imports

* Fixing rustdoc

* More accurate implementation of `mms`

* Removing the fuzzer `mms` implementation

* Implementing `NposSolver` for `MMS`
had to add the `Clone` trait, maybe I could see if I can get rid of it.

* Fixing rust docs by adding () to resolve ambiguity

* Amending `unwrap` to `expect`
removing unneeded `Clone` trait

* Removing redundant `mms3.rs`

* Implementing `BalancingConfig` and rustdoc changes

* Implementing `weight` for `MMS`

* Implementing `weight` for `MMS`

* Fixing post merge

* Initial implementation of mms

* Some more attempts at `mms`

* Functioning `MMS` algorithm implementation.
Adding some tests too

* More tests and typos fixed.

* Adding fuzzer for `mms`
(but could not test it on Mac M1)

* Missing imports

* Fixing rustdoc

* More accurate implementation of `mms`

* Removing the fuzzer `mms` implementation

* Implementing `NposSolver` for `MMS`
had to add the `Clone` trait, maybe I could see if I can get rid of it.

* Amending `unwrap` to `expect`
removing unneeded `Clone` trait

* Fixing rust docs by adding () to resolve ambiguity

* Removing redundant `mms3.rs`

* Implementing `BalancingConfig` and rustdoc changes

* Implementing `weight` for `MMS`

* Implementing `weight` for `MMS`

* Fixing post merge

* Removing left over from rebase

* Fixing tests

* Removing unneeded import

* Removing unneeded functions

* Removing useless imports

Co-authored-by: kianenigma <kian@parity.io>

* Add Event to Pallet Transaction Payment (#11618)

* add Event to Pallet Transaction Payment

* Fix tests in Pallet Balance

* Fix tests in Pallet Balance/Executive/Asset-tx-payment.

* Fix

* fmt

* Fix

* Fix

* Update Cargo.lock

* Fix tests in executor

* Update frame/transaction-payment/src/lib.rs

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* update the name of the event and fmt.

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* Remove `without_storage_info` for the authorship pallet (#11610)

* Remove `without_storage_info` for the authorship pallet

* Tweak impl bounds style

* Use `defensive_proof` instead of `expect`

* MEL: Origin, Referenda, ConvictionVoting (#11631)

* Referenda & CV pallets ready

* Fix build

* Add mel_bound for Voting and Casting types

* Add mel_bound on Tally

* Add mel_bound on another Tally

* Add mel_bound for pallet_collective::RawOrigin

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>

* Remove multiply_by_rational  (#11598)

* Removed multiply_by_rational
Replaced with multiply_by_rational_with_rounding

* fixes

* Test Fixes

* nightly fmt

* Test Fix

* Fixed fuzzer.

* Upgrade to libp2p 0.45.1 (#11682)

* Upgrade to libp2p 0.45.1

* Limit max_negotiating_inbound_streams to 512

* Upgrade prost-build to 0.10

* Set max_negotiating_inbound_streams to 2048

Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>

* Fix authority discovery protobuf

* Fix comments in authority-discovery schema

Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>

* Add a comment about transport initialization

Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>

* chore: reducing codec times (#11688)

* chore: reduce uxt encode times (#11698)

* chore: reduce uxt encode times

* fmt

* Simplified code using existing APIs (#11702)

Signed-off-by: Emison Lu <lzh1633856298@gmail.com>

* `storage-alias`: Check that prefix is not an underscore (#11704)

Besides that it also adds some UI tests.

* Bump twox-hash from 1.6.2 to 1.6.3 (#11423)

Bumps [twox-hash](https://github.com/shepmaster/twox-hash) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/shepmaster/twox-hash/releases)
- [Commits](https://github.com/shepmaster/twox-hash/compare/v1.6.2...v1.6.3)

---
updated-dependencies:
- dependency-name: twox-hash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update syn and fix compilation (#11707)

* Update syn and fix compilation

* Bump pin-project

* check-dependent-cumulus should only be executed for PRs (#11693)

the script executed by check-dependent-cumulus only works for PRs, as shown in https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1630771#L87, which comes from https://github.com/paritytech/pipeline-scripts/blob/3ad10ddc0d985ef5326974a1143229c6429befab/check_dependent_project.sh#L443

* Pump the gossip engine while waiting for the BEEFY runtime pallet (memory leak fix) (#11694)

* Pump the gossip engine while waiting for the BEEFY runtime pallet

This fixes a memory leak when the BEEFY gadget is turned on, but
the runtime doesn't actually use BEEFY.

* Implement `FusedFuture` for `GossipEngine`

* Fuse futures outside of loops

* Implement Serialize/Deserialize on WeakBoundedVec (#11713)

* Implement Serialize/Deserialize on WeakBoundedVec

* cargo fmt

* Warn when there are too many elements while deserializing WeakBoundedVec

* More robust grandpa revert procedure (#11719)

* More robust revert procedure

Return an error if revert is called in a node that is not actively
running grandpa, i.e. grandpa genesis data has not been initialized.
Previous implementation was just firing an `unreachable!` code exception.

Furthermore we skip revert hassle if there is nothing to revert.

* Nit

* Fix typo in weights.rs (#11724)

overriden -> overridden

* WrapperOpaque: Use `decode_all` to decode from the `Vec<u8>` (#11726)

This ensures that there isn't any extra data attached that isn't used.

* Respect cargo offline env variable in wasm builder (#11735)

* Support offline env variable in wasm builder

* Clean up

* Improve checks

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Update crate docs

* Add docs to `lib.rs` and introduce helper method `offline_build`

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* contracts: Reduce size of deletion queue depth (#11696)

* contracts: Reduce size of deletion queue depth

* Remove unused import

* Put `rusty-cachier` before PR merge into `master` for `cargo-check-benches` job (#11737)

* epochs: don't use gap when there's at least one genesis epoch imported (#11725)

* epochs: don't use gap when there's at least one genesis epoch imported

* epochs: add test for genesis gap fix

* pallet-beefy-mmr: add API for BEEFY Authority Sets (#11406)

* pallet-beefy: add Config::OnNewValidatorSet type

Add a hook to pallet-beefy for doing specific work when
BEEFY validator set changes.

For example, this can be used by pallet-beefy-mmr to cache
a lightweight MMR root over validators and make it available
to light clients.

* pallet-beefy-mmr: implement OnNewValidatorSet

Implement pallet-beefy::OnNewValidatorSet to be notified of BEEFY
validator set changes. Use the notifications to compute and cache
a light weight 'BEEFY authority set' which is an MMR root over
BEEFY validator set plus some extra info.

Previously, pallet-beefy-mmr was interogating pallet-beefy about
validator set id on every block to find out when it needs to recompute
the authority set.
By using the event-driven approach in this commit, we also save one
extra state interogation per block.

* pallet-beefy-mmr: add new authority_set() API

Expose current and next BEEFY authority sets through runtime API.
These can be directly used by light clients to avoid having them
compute them themselves based on BEEFY validator sets.

Signed-off-by: acatangiu <adrian@parity.io>

* rename BeefyMmr exposed runtime api

* make pallet-tips & pallet-bounties instantiable (#11473)

* make pallet-tips & pallet-bounties instantiable

* update test

* add default instance

* update

* cargo fmt

* update

* update

* update

* update

* fix merge

* fix tests

* bounties benchmarking instantiable

* fix benchmarks

* make tips benchmarks instantible

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>

* [contracts] Implement transparent hashing for contract storage (#11501)

* save

* builds and old tests pass

save:  temporary value dropped while borrowed

save: finally builds

test updated but still fails

* type names enhanced

* VarSizedKey bounded to new Config param

* improved wasm runtime updated funcs

* unstable-interface tests fixed

* benchmarks fixed

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* fixes on feedback

* fixes on feedback applied + make it build

* benchmarks build but fail (old)

* "Original code too large"

* seal_clear_storage bench fixed (code size workaround hack removal tbd)

* bench_seal_clear_storage pass

* bench_seal_take_storage ... ok

* added new seal_set_storage + updated benchmarks

* added new seal_get_storage + updated benchmarks

* added new seal_contains_storage + updated benchmarks

* added tests for _transparent exec functions

* wasm test for clear_storage

* wasm test for take_storage

* wasm test for new set_storage

* wasm test for new get_storage

* wasm test for new contains_storage

* CI fix

* ci fix

* ci fix

* ci fix

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* fixes according to the review feedback

* tests & benchmarks fixed

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* refactoring

* fix to runtime api

* ci fix

* ctx.get_storage() factored out

* ctx.contains_storage() factored out

* number of batches reduced for transparent hashing storage benchmarks

* contracts RPC & pallet::get_storage to use transparent hashing

* node and rpc updated to use get_storage with VarSizedKey

* refactored (more concize)

* refactored contains_storage (DRYed)

* refactored contains_storage (DRYed)

* fix rpc

* fmt fix

* more fixes in rpc

* rollback `Pallet:get_storage` to Vec<u8> and rpc and node parts related to it

* added `KeyDecodingFailed` error

* Revert weird "fmt fix"

This reverts commit c582cfff4b5cb2c9929fd5e3b45519bb24aeb657.

* node-executor basic test update

* fix node-executor basic test

* benchmarks fix

* more benchmarks fix

* FixedSizedKey is hidden from pub, VarSizedKey is exported as StorageKey

* ci fix

* set_storage benchmark fix

* ci fix

* ci fix

* comments improved

* new error code to rpc: KEY_DECODING_FAILED

* Put `rusty-cachier` before PR merge into `master` for `cargo-check-benches` job

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* minor optimization

Co-authored-by: Alexander Theißen <alex.theissen@me.com>
Co-authored-by: Parity Bot <admin@parity.io>
Co-authored-by: Vladimir Istyufeev <vladimir@parity.io>
Co-authored-by: command-bot <>

* Explain why `rusty-cachier` is put first (#11740)

* Bump `wasmtime` to 0.38.0 and `zstd` to 0.11.2 (#11720)

* Bump `wasmtime` to 0.37.0 and `zstd` to 0.11.2

* Bump `wasmtime` to 0.38.0

* Avoid a duplicate block request when syncing from a fork (#11094)

* Separate queueing blocks for import from removal

* Add regression tests

* Remove unnecessary log

* Clear queued blocks when processed

* Move check out of match block

* Track queued block ranges

* Update client/network/sync/src/blocks.rs

* Update client/network/sync/src/blocks.rs

* Update client/network/sync/src/blocks.rs

* Update client/network/sync/src/blocks.rs

* FMT

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by: Bastian Köcher <info@kchr.de>

* Democracy.fast_track not allowed with zero voting period (#11666)

* Democracy.fast_track not allowed with zero voting period

* revert static parameter alter line

* ensure voting period greater zero

* update doc for fast_track

* unit test: instant fast track to the next block referendum is backed

* fix typos in comments

* Prevent unsoundness in environments with broken `madvise(MADV_DONTNEED)` (#11722)

* Prevend unsoundness in environments with broken `madvise(MADV_DONTNEED)`

* Add the `std` feature to `rustix` dependency

Apparently not having this breaks compilation on non-nightly toolchains.

* Autodetect the page size when checking whether `madvise` works

* Only make sure that the madvice check doesn't return `Err`

* Refund weight in `system::fillBlock` (#11754)

* fix

* pushed

* node: fix fee multiplier test

Co-authored-by: André Silva <andrerfosilva@gmail.com>

* nomination-pools fix (#11748)

* Nomination pool fix

* fmt

* [ci] Remove polkadot-companion-labels GHA (#11774)

* [contracts] Fixed the bug with transfer value for delegate call (#11771)

* Fixed the bug with transfer value.

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* Moved check into `initial_transfer`

* Fmt

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* Fix clearing queued blocks in the sync module (#11763)

* pallet-mmr: handle forks without collisions in offchain storage (#11594)

* pallet-mmr: fix some typos

* pallet-mmr: make the MMR resilient to chain forks

* pallet-mmr: get hash for block that added node

* beefy-mmr: add debug logging

* add explanatory comment

* account for block offset of pallet activation

* add support for finding all nodes added by leaf

* minor improvements

* add helper to return all nodes added to mmr with a leaf append

* simplify leaf_node_index_to_leaf_index

summing the (shifted) differences in peak positions adds up to the (shifted) final position, so
don't need to fold over positions.

* dead fish: this also doesn't work

The idea was to keep a rolling window of `(parent_hash, pos)` leaf
entries in the offchain db, with the window matching the one
that provides `block_num -> block_hash` mappings in `frame_system`.

Once a leaf exits the window it would be "canonicalized" by switching
its offchain db key from `(parent_hash, pos)` to simple `pos`.

This doesn't work however because there's no way to get leaf contents
from offchain db while in runtime context.. so no way to get+clear+set
leaf to change its key in offchain db.

Ideas:
1. move the "canonicalization" logic to offchain worker
2. enhance IndexingApi with "offchain::move(old_key, new_key)"
   This is weird, but correct, deterministic and safe AFAICT, so
   it could be exposed to runtime.

* simplify rightmost_leaf_node_index_from_pos

* minor fix

* move leaf canonicalization to offchain worker

* move storage related code to storage.rs

* on offchain reads use canonic key for old leaves

* fix offchain worker write using canon key

* fix pallet-mmr tests

* add documentation and fix logging

* add offchain mmr canonicalization test

* test canon + generate + verify

* fix pallet-beefy-mmr tests

* implement review suggestions

* improve test

* pallet-mmr: add offchain pruning of forks

* pallet-mmr: improve offchain pruning

Instead of keeping pruning map as single blob in offchain db,
keep individual parent-hash lists with block-num identifier as part
of the offchain key.

Signed-off-by: acatangiu <adrian@parity.io>

* pallet-mmr: improve MMRStore<OffchainStorage>::get()

Do the math and retrieve node using correct (canon or non-canon)
offchain db key, instead of blindly looking in both canon and non-canon
offchain db locations for each node.

Still fallback on looking at both if for any reason it's not where
expected.

Signed-off-by: acatangiu <adrian@parity.io>

* pallet-mmr: storage: improve logs

* fix tests: correctly persist overlay

runtime indexing API works on overlay, whereas offchain context
bypasses overlay, so for loops > canon-window, canon would fail.

* pallet-mmr: fix numeric typo in test

* add comment around LeafData requirements

Signed-off-by: acatangiu <adrian@parity.io>

Co-authored-by: Robert Hambrock <roberthambrock@gmail.com>

* expose grandpa BeforeBestBlockBy voting rule (#11798)

* Un-deprecate Transactional Macro (#11807)

* un-deprecate transactional macro

* add transactional back to nomination pools

* sync: Fixed clearing subsequent ranges (#11815)

* sync: Fixed clearing subsequent ranges

* Warp sync fix

* Better documentation

* CLI flag to configure tx ban duration (#11786)

* add tx-ban-seconds

* fix

* trigger CI

* trigger CI

* remove test print

* Update client/cli/src/params/transaction_pool_params.rs

Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>

Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>

* Upgrade libp2p to 0.46.1 (#11787)

* Update libp2p to 0.46.0

* Update libp2p to 0.46.1

* Fix telemetry initialization

* Fix tests

* prep council election pallet for being dissolved (#11790)

* prep council election pallet for being dissolved + make it temporarily bounded

* fix tests

* fix

* Update frame/elections-phragmen/src/lib.rs

* fix bench?

* Network sync refactoring (part 4) (#11412)

* Remove direct dependency of `sc-network` on `sc-network-light`

* Move `WarpSyncProvider` trait and surrounding data structures into `sc-network-common`

* Move `WarpSyncProvider` trait and surrounding data structures into `sc-network-common`

* Create `sync` module in `sc-network-common`, create `ChainSync` trait there (not used yet), move a bunch of associated data structures from `sc-network-sync`

* Switch from concrete implementation to `ChainSync` trait from `sc-network-common`

* Introduce `OpaqueStateRequest`/`OpaqueStateResponse` to remove generics from `StateSync` trait

* Introduce `OpaqueBlockRequest`/`OpaqueBlockResponse`, make `scheme` module of `sc-network-sync` private

* Surface `sc-network-sync` into `sc-service` and make `sc-network` not depend on it anymore

* Remove now unnecessary dependency from `sc-network`

* Replace crate links with just text since dependencies are gone now

* Remove `warp_sync` re-export from `sc-network-common`

* Update copyright in network-related files

* Address review comments about documentation

* Apply review suggestion

* Rename `extra_requests` module to `metrics`

Co-authored-by: Bastian Köcher <info@kchr.de>

* Fix off by one error in proportional slashing (#11782)

* Fix proportional slashing logic

* Update frame/nomination-pools/test-staking/src/lib.rs

Co-authored-by: David <dvdplm@gmail.com>

* Update frame/staking/src/lib.rs

Co-authored-by: David <dvdplm@gmail.com>

* Update frame/staking/src/lib.rs

Co-authored-by: David <dvdplm@gmail.com>

* Update frame/staking/src/lib.rs

Co-authored-by: David <dvdplm@gmail.com>

* fmt

* Update frame/nomination-pools/test-staking/src/lib.rs

* clean

* fix

* last fixes

* doc

Co-authored-by: David <dvdplm@gmail.com>

* Buy&Sell methods for Uniques (#11398)

* Allow to set item's price

* Clean the state when we transfer/burn an item or destroy a collection

* Allow to buy an item

* Remove redundant checks

* Improve events

* Cover with tests

* Add comments

* Apply suggestions

* Fmt

* Improvements for price validation

* Improve validation

* Update to use the new terminology

* Remove multi-assets support

* Chore

* Weights + benchmarking

* Shield against human error

* Test when we pass the higher item's price

* fmt fix

* Chore

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Remove is_frozen check when setting the price

* Try to fix benchmarking

* Fix benchmarking

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet…
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Add `set_code` dispatchable

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <admin@parity.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Enable force-overwrite of contract code at AccountId
3 participants