Skip to content

Conversation

@weichweich
Copy link
Contributor

@weichweich weichweich commented Mar 16, 2022

No Ticket

Add a proxy type that allows paying for DIDs and everything related, but not being able to delete all these entries.
This can be useful if someone wants to pay the storage deposits for others, but doesn't want to have the power to delete the dids, attestations etc. of the other.

m

Checklist:

  • I have verified that the code works
    • No panics! (checked arithmetic ops, no indexing array[3] use get(3), ...)
  • I have verified that the code is easy to understand
    • If not, I have left a well-balanced amount of inline comments
  • I have left the code in a better state
  • I have documented the changes (where applicable)

@weichweich weichweich self-assigned this Mar 16, 2022
@ntn-x2 ntn-x2 self-assigned this Mar 23, 2022
@weichweich weichweich removed their assignment Mar 23, 2022
@weichweich weichweich marked this pull request as ready for review March 23, 2022 09:04
@weichweich weichweich requested a review from ntn-x2 March 23, 2022 09:05
@ntn-x2 ntn-x2 requested review from trusch and wischli March 23, 2022 09:06
@ntn-x2 ntn-x2 added ✨ new feature feature: new feature ❤️ high priority: high ⛓ KILT node labels Mar 23, 2022
Copy link
Contributor

@wischli wischli left a comment

Choose a reason for hiding this comment

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

One question and I agree with Antonio.

| attestation::Call::revoke { .. }
)
| Call::Authorship(..)
// Excludes `Balances`
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want to exclude Balances here?

Copy link
Contributor

Choose a reason for hiding this comment

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

It is true that most calls require sudo origin, but technically by calling the balances pallet you could interact with deposits, no? Should we allow some balance calls in this proxy? Or the whole thing? What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would say we should not exclude balance transfers here. All calls should be allowed.

@ntn-x2
Copy link
Contributor

ntn-x2 commented Mar 25, 2022

/bench runtime peregrine pallet-proxy

@kilt-command-bot
Copy link

kilt-command-bot bot commented Mar 25, 2022

Benchmark Runtime Substrate Pallet for branch "aw-allow-did-gifts" with command cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-proxy --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_proxy.rs --template=.maintain/runtime-weight-template.hbs

Results
Pallet: "pallet_proxy", Extrinsic: "proxy", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:0)

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

Model:
Time ~=    19.27
    + p    0.312
              µs

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

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

Data points distribution:
    p   mean µs  sigma µs       %
    1     19.46     0.142    0.7%
    2     19.61     0.055    0.2%
    3     20.39      0.08    0.3%
    4      20.3     0.101    0.4%
    5     21.23     0.089    0.4%
    6     21.58      0.15    0.6%
    7     21.42     0.122    0.5%
    8     21.85     0.082    0.3%
    9     21.65     0.109    0.5%

Quality and confidence:
param     error
p         0.012

Model:
Time ~=    19.26
    + p    0.314
              µs

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

Pallet: "pallet_proxy", Extrinsic: "proxy_announced", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:0)
Storage: Proxy Announcements (r:1 w:1)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    42.87
    + a    0.448
    + p    0.128
              µs

Reads = 3 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

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

Data points distribution:
    a     p   mean µs  sigma µs       %
    0     9     44.09     0.365    0.8%
    1     9     44.14     0.106    0.2%
    2     9     45.32     0.421    0.9%
    3     9     45.73     0.314    0.6%
    4     9     45.94     0.167    0.3%
    5     9     46.31      0.27    0.5%
    6     9     46.47     0.074    0.1%
    7     9      46.8     0.166    0.3%
    8     9     47.04     0.335    0.7%
    9     1     46.99     0.135    0.2%
    9     2      47.4     0.649    1.3%
    9     3     48.05      0.31    0.6%
    9     4     47.72     0.155    0.3%
    9     5     48.46     0.238    0.4%
    9     6     47.93     0.214    0.4%
    9     7     48.01     0.105    0.2%
    9     8     48.49     0.134    0.2%
    9     9      48.3     0.121    0.2%

Quality and confidence:
param     error
a         0.012
p         0.014

Model:
Time ~=    43.25
    + a    0.461
    + p    0.086
              µs

Reads = 3 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

Pallet: "pallet_proxy", Extrinsic: "remove_announcement", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Announcements (r:1 w:1)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    29.71
    + a    0.499
    + p    0.001
              µs

Reads = 2 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

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

Data points distribution:
    a     p   mean µs  sigma µs       %
    0     9     29.32     0.249    0.8%
    1     9      30.2      0.17    0.5%
    2     9     30.98     0.175    0.5%
    3     9     31.26     0.109    0.3%
    4     9     32.01     0.177    0.5%
    5     9     32.18      0.16    0.4%
    6     9     32.86     0.307    0.9%
    7     9     32.83     0.354    1.0%
    8     9     33.11     0.157    0.4%
    9     1     34.39     0.142    0.4%
    9     2      34.2     0.084    0.2%
    9     3      34.7     0.177    0.5%
    9     4     34.43     0.105    0.3%
    9     5     34.65      0.16    0.4%
    9     6     34.58     0.081    0.2%
    9     7     34.44     0.121    0.3%
    9     8     34.49     0.125    0.3%
    9     9     34.35     0.138    0.4%

Quality and confidence:
param     error
a         0.008
p          0.01

Model:
Time ~=    29.93
    + a    0.515
    + p        0
              µs

Reads = 2 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

Pallet: "pallet_proxy", Extrinsic: "reject_announcement", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Announcements (r:1 w:1)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    29.99
    + a    0.459
    + p        0
              µs

Reads = 2 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

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

Data points distribution:
    a     p   mean µs  sigma µs       %
    0     9     29.49     0.388    1.3%
    1     9     30.75      0.22    0.7%
    2     9     31.03     0.136    0.4%
    3     9     31.19     0.108    0.3%
    4     9     32.06     0.144    0.4%
    5     9     32.39     0.241    0.7%
    6     9     32.51     0.193    0.5%
    7     9     32.84     0.157    0.4%
    8     9        33     0.084    0.2%
    9     1     34.33      0.06    0.1%
    9     2     34.35     0.078    0.2%
    9     3     34.71      0.18    0.5%
    9     4     34.46     0.058    0.1%
    9     5     34.64     0.098    0.2%
    9     6     34.41     0.223    0.6%
    9     7     34.26     0.133    0.3%
    9     8     34.57     0.188    0.5%
    9     9     34.37     0.112    0.3%

Quality and confidence:
param     error
a         0.009
p          0.01

Model:
Time ~=    30.31
    + a    0.479
    + p        0
              µs

Reads = 2 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

Pallet: "pallet_proxy", Extrinsic: "announce", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:0)
Storage: Proxy Announcements (r:1 w:1)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    41.21
    + a    0.435
    + p    0.031
              µs

Reads = 3 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

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

Data points distribution:
    a     p   mean µs  sigma µs       %
    0     9     41.45     0.179    0.4%
    1     9     41.72      0.12    0.2%
    2     9     42.72     0.145    0.3%
    3     9     42.86     0.103    0.2%
    4     9      43.1     0.156    0.3%
    5     9     43.52     0.184    0.4%
    6     9     43.92     0.174    0.3%
    7     9      45.2     0.163    0.3%
    8     9     45.31     0.261    0.5%
    9     1     44.72     0.106    0.2%
    9     2     45.61     0.157    0.3%
    9     3     45.25     0.126    0.2%
    9     4     44.93     0.314    0.6%
    9     5     45.47     0.139    0.3%
    9     6     45.32     0.164    0.3%
    9     7     45.29     0.156    0.3%
    9     8     45.53     0.186    0.4%
    9     9     45.24     0.125    0.2%

Quality and confidence:
param     error
a         0.009
p          0.01

Model:
Time ~=    41.02
    + a    0.445
    + p    0.051
              µs

Reads = 3 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

Pallet: "pallet_proxy", Extrinsic: "add_proxy", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:1)

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

Model:
Time ~=    33.61
    + p    0.355
              µs

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

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

Data points distribution:
    p   mean µs  sigma µs       %
    1     33.28     0.172    0.5%
    2     35.13     0.186    0.5%
    3     33.87     0.245    0.7%
    4     35.23     0.071    0.2%
    5     35.25     0.104    0.2%
    6     35.28     0.135    0.3%
    7     36.12     0.126    0.3%
    8     36.74     0.165    0.4%
    9     36.35      0.23    0.6%

Quality and confidence:
param     error
p         0.021

Model:
Time ~=    33.45
    + p     0.36
              µs

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

Pallet: "pallet_proxy", Extrinsic: "remove_proxy", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:1)

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

Model:
Time ~=     28.4
    + p    0.337
              µs

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

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

Data points distribution:
    p   mean µs  sigma µs       %
    1     27.73     0.121    0.4%
    2     29.12     0.132    0.4%
    3     29.28     0.116    0.3%
    4     30.37     0.046    0.1%
    5     30.17      0.11    0.3%
    6     30.64     0.118    0.3%
    7     30.91     0.136    0.4%
    8     31.03     0.075    0.2%
    9     30.75     0.118    0.3%

Quality and confidence:
param     error
p         0.019

Model:
Time ~=    28.22
    + p    0.356
              µs

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

Pallet: "pallet_proxy", Extrinsic: "remove_proxies", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:1)

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

Model:
Time ~=    28.08
    + p    0.238
              µs

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

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

Data points distribution:
    p   mean µs  sigma µs       %
    1     27.63     0.094    0.3%
    2     28.63     0.228    0.7%
    3     28.96     0.125    0.4%
    4     29.49     0.141    0.4%
    5     29.29     0.124    0.4%
    6     29.63     0.138    0.4%
    7     28.95     0.055    0.1%
    8     30.51     0.094    0.3%
    9     29.67     0.104    0.3%

Quality and confidence:
param     error
p         0.019

Model:
Time ~=    28.04
    + p    0.232
              µs

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

Pallet: "pallet_proxy", Extrinsic: "anonymous", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
Storage: Proxy Proxies (r:1 w:1)

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

Model:
Time ~=    39.44
    + p        0
              µs

Reads = 2 + (0 * p)
Writes = 1 + (0 * p)

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

Data points distribution:
    p   mean µs  sigma µs       %
    1     39.12     0.236    0.6%
    2     39.61     0.102    0.2%
    3     39.23     0.164    0.4%
    4     39.73     0.215    0.5%
    5      39.2     0.448    1.1%
    6      39.4     0.144    0.3%
    7     39.29     0.209    0.5%
    8     39.12     0.428    1.0%
    9      39.7     0.393    0.9%

Quality and confidence:
param     error
p         0.015

Model:
Time ~=    39.32
    + p    0.011
              µs

Reads = 2 + (0 * p)
Writes = 1 + (0 * p)

Pallet: "pallet_proxy", Extrinsic: "kill_anonymous", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:1)

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

Model:
Time ~=    30.69
    + p    0.205
              µs

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

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

Data points distribution:
    p   mean µs  sigma µs       %
    0     30.81     0.129    0.4%
    1     30.66     0.168    0.5%
    2     31.45     0.147    0.4%
    3     30.64     0.086    0.2%
    4     31.83     0.156    0.4%
    5     31.82     0.155    0.4%
    6     31.84     0.303    0.9%
    7     31.84     0.135    0.4%
    8     32.51     0.106    0.3%

Quality and confidence:
param     error
p         0.014

Model:
Time ~=    30.67
    + p    0.205
              µs

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


@ntn-x2
Copy link
Contributor

ntn-x2 commented Mar 25, 2022

/bench runtime spiritnet-runtime pallet-proxy

…hmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-proxy --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_proxy.rs --template=.maintain/runtime-weight-template.hbs
@kilt-command-bot
Copy link

kilt-command-bot bot commented Mar 25, 2022

Benchmark Runtime Pallet for branch "aw-allow-did-gifts" with command cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-proxy --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_proxy.rs --template=.maintain/runtime-weight-template.hbs

Results
Pallet: "pallet_proxy", Extrinsic: "proxy", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:0)

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

Model:
Time ~=    19.65
    + p    0.163
              µs

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

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

Data points distribution:
    p   mean µs  sigma µs       %
    1     19.69     0.053    0.2%
    2     19.92     0.065    0.3%
    3     20.04     0.077    0.3%
    4     20.75     0.078    0.3%
    5     20.39     0.087    0.4%
    6     21.37       0.1    0.4%
    7      20.7     0.071    0.3%
    8      21.2     0.126    0.5%
    9     20.67     0.083    0.4%

Quality and confidence:
param     error
p         0.014

Model:
Time ~=    19.72
    + p    0.162
              µs

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

Pallet: "pallet_proxy", Extrinsic: "proxy_announced", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:0)
Storage: Proxy Announcements (r:1 w:1)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    42.35
    + a    0.481
    + p    0.157
              µs

Reads = 3 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

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

Data points distribution:
    a     p   mean µs  sigma µs       %
    0     9     43.23     0.152    0.3%
    1     9     45.37     0.524    1.1%
    2     9     45.03     0.462    1.0%
    3     9     44.58     0.135    0.3%
    4     9     45.68     0.231    0.5%
    5     9     46.84      0.15    0.3%
    6     9     46.38      0.12    0.2%
    7     9     46.85     0.186    0.3%
    8     9     47.95     0.131    0.2%
    9     1     47.08     0.179    0.3%
    9     2     46.52     0.214    0.4%
    9     3     47.83     0.143    0.2%
    9     4     46.98       0.1    0.2%
    9     5      48.2     0.262    0.5%
    9     6     48.41      0.22    0.4%
    9     7     47.72      0.14    0.2%
    9     8     48.79     0.203    0.4%
    9     9     47.99     0.174    0.3%

Quality and confidence:
param     error
a         0.016
p         0.018

Model:
Time ~=    42.42
    + a    0.496
    + p    0.155
              µs

Reads = 3 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

Pallet: "pallet_proxy", Extrinsic: "remove_announcement", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Announcements (r:1 w:1)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    29.83
    + a    0.472
    + p        0
              µs

Reads = 2 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

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

Data points distribution:
    a     p   mean µs  sigma µs       %
    0     9     29.15     0.096    0.3%
    1     9     31.11     0.184    0.5%
    2     9     30.64     0.155    0.5%
    3     9     31.12     0.283    0.9%
    4     9     31.63     0.106    0.3%
    5     9     32.39      0.12    0.3%
    6     9     32.05     0.089    0.2%
    7     9     32.78     0.104    0.3%
    8     9     33.85     0.144    0.4%
    9     1     34.24     0.084    0.2%
    9     2     33.99     0.132    0.3%
    9     3     34.51     0.179    0.5%
    9     4     34.38      0.24    0.6%
    9     5     34.55     0.172    0.4%
    9     6     34.73     0.167    0.4%
    9     7     34.27     0.105    0.3%
    9     8     34.75     0.157    0.4%
    9     9     33.92     0.146    0.4%

Quality and confidence:
param     error
a         0.011
p         0.013

Model:
Time ~=    29.95
    + a    0.499
    + p        0
              µs

Reads = 2 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

Pallet: "pallet_proxy", Extrinsic: "reject_announcement", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Announcements (r:1 w:1)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    29.69
    + a    0.497
    + p        0
              µs

Reads = 2 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

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

Data points distribution:
    a     p   mean µs  sigma µs       %
    0     9     29.16     0.137    0.4%
    1     9     30.49     0.159    0.5%
    2     9     30.83     0.104    0.3%
    3     9     30.84     0.107    0.3%
    4     9     31.75     0.156    0.4%
    5     9     33.39     0.135    0.4%
    6     9     32.46     0.365    1.1%
    7     9     32.83     0.091    0.2%
    8     9     33.77     0.089    0.2%
    9     1     34.32       0.3    0.8%
    9     2     33.64     0.112    0.3%
    9     3     34.62     0.132    0.3%
    9     4      33.9      0.12    0.3%
    9     5     34.59     0.103    0.2%
    9     6     34.53     0.093    0.2%
    9     7     33.99      0.16    0.4%
    9     8     34.71     0.106    0.3%
    9     9        34     0.193    0.5%

Quality and confidence:
param     error
a         0.012
p         0.014

Model:
Time ~=    29.56
    + a    0.513
    + p    0.011
              µs

Reads = 2 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

Pallet: "pallet_proxy", Extrinsic: "announce", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:0)
Storage: Proxy Announcements (r:1 w:1)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    39.84
    + a    0.539
    + p    0.202
              µs

Reads = 3 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

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

Data points distribution:
    a     p   mean µs  sigma µs       %
    0     9     40.61     0.082    0.2%
    1     9     42.53     0.257    0.6%
    2     9     42.92     0.179    0.4%
    3     9     43.61     0.363    0.8%
    4     9     43.98     0.147    0.3%
    5     9     44.25      0.13    0.2%
    6     9     44.91     0.189    0.4%
    7     9     45.48     0.225    0.4%
    8     9      46.3     0.345    0.7%
    9     1      44.2     0.111    0.2%
    9     2     44.84     0.209    0.4%
    9     3     44.98     0.173    0.3%
    9     4     46.38     0.367    0.7%
    9     5      46.2     0.183    0.3%
    9     6      46.3      0.16    0.3%
    9     7     45.78     0.155    0.3%
    9     8     45.71     0.099    0.2%
    9     9     46.33     0.175    0.3%

Quality and confidence:
param     error
a         0.014
p         0.016

Model:
Time ~=    39.48
    + a     0.56
    + p    0.229
              µs

Reads = 3 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)

Pallet: "pallet_proxy", Extrinsic: "add_proxy", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:1)

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

Model:
Time ~=     34.7
    + p     0.23
              µs

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

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

Data points distribution:
    p   mean µs  sigma µs       %
    1     33.97     0.174    0.5%
    2     35.36     0.282    0.7%
    3     35.63     0.145    0.4%
    4     35.81     0.164    0.4%
    5     35.84     0.107    0.2%
    6     36.16     0.259    0.7%
    7     35.89     0.254    0.7%
    8     36.72      0.16    0.4%
    9     36.47     0.286    0.7%

Quality and confidence:
param     error
p         0.017

Model:
Time ~=    34.52
    + p    0.249
              µs

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

Pallet: "pallet_proxy", Extrinsic: "remove_proxy", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:1)

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

Model:
Time ~=    29.04
    + p    0.242
              µs

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

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

Data points distribution:
    p   mean µs  sigma µs       %
    1     28.95     0.079    0.2%
    2      29.6     0.114    0.3%
    3     29.79     0.057    0.1%
    4     30.54     0.105    0.3%
    5     30.57     0.174    0.5%
    6     29.79     0.167    0.5%
    7     30.64     0.104    0.3%
    8      31.5     0.139    0.4%
    9     30.89     0.133    0.4%

Quality and confidence:
param     error
p         0.017

Model:
Time ~=    29.05
    + p     0.24
              µs

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

Pallet: "pallet_proxy", Extrinsic: "remove_proxies", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:1)

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

Model:
Time ~=     28.9
    + p    0.176
              µs

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

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

Data points distribution:
    p   mean µs  sigma µs       %
    1     28.34     0.217    0.7%
    2     29.19     0.115    0.3%
    3     29.68     0.088    0.2%
    4     29.88     0.135    0.4%
    5     29.98     0.154    0.5%
    6      29.9     0.123    0.4%
    7     29.02     0.127    0.4%
    8     30.56     0.162    0.5%
    9      30.4     0.087    0.2%

Quality and confidence:
param     error
p         0.019

Model:
Time ~=    28.74
    + p    0.184
              µs

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

Pallet: "pallet_proxy", Extrinsic: "anonymous", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
Storage: Proxy Proxies (r:1 w:1)

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

Model:
Time ~=    40.77
    + p        0
              µs

Reads = 2 + (0 * p)
Writes = 1 + (0 * p)

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

Data points distribution:
    p   mean µs  sigma µs       %
    1     40.12     0.343    0.8%
    2     40.25     0.192    0.4%
    3     40.36     0.232    0.5%
    4     40.54      0.15    0.3%
    5     40.36     0.183    0.4%
    6     39.25     0.178    0.4%
    7     39.79     0.234    0.5%
    8     39.57     0.186    0.4%
    9        39     0.108    0.2%

Quality and confidence:
param     error
p         0.016

Model:
Time ~=    40.66
    + p        0
              µs

Reads = 2 + (0 * p)
Writes = 1 + (0 * p)

Pallet: "pallet_proxy", Extrinsic: "kill_anonymous", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Proxy Proxies (r:1 w:1)

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

Model:
Time ~=    31.11
    + p    0.215
              µs

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

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

Data points distribution:
    p   mean µs  sigma µs       %
    0     31.34     0.139    0.4%
    1     31.23     0.086    0.2%
    2     31.48     0.139    0.4%
    3     32.11     0.134    0.4%
    4     31.68     0.309    0.9%
    5     32.05     0.125    0.3%
    6     31.88     0.415    1.3%
    7     32.61     0.129    0.3%
    8     33.31     0.071    0.2%

Quality and confidence:
param     error
p         0.014

Model:
Time ~=    31.11
    + p    0.213
              µs

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


…hmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-proxy --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_proxy.rs --template=.maintain/runtime-weight-template.hbs
@ntn-x2 ntn-x2 merged commit a402710 into develop Mar 25, 2022
@ntn-x2 ntn-x2 deleted the aw-allow-did-gifts branch March 25, 2022 07:54
ntn-x2 added a commit that referenced this pull request Mar 25, 2022
* proxy type for disableling deposit claiming

* fix

* fix: explicit proxy pallet logic for peregrine runtime

* fix: finalise proxy definition for spiritnet

* chore: add explicit encoding value for proxy types

* chore: update mashnet-node with similar proxy structure as peregrine

* chore: clippy

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-proxy --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_proxy.rs --template=.maintain/runtime-weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-proxy --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_proxy.rs --template=.maintain/runtime-weight-template.hbs

Co-authored-by: Antonio Antonino <[email protected]>
Co-authored-by: kiltbot <>
(cherry picked from commit a402710)
ntn-x2 added a commit that referenced this pull request Mar 25, 2022
* Adds two more relaychain bootnodes for staging environment  (#334)

* Adds two more bootnodes for staging environment closes #1864

* Fixes staging parachain bootNodes

(cherry picked from commit 73097ff)

* ci: use caching

(cherry picked from commit aafb1a9)

* chore: reset peregrine stg (#335)

* reset peregrine stg

* delete tmp files

(cherry picked from commit f27917c)

* chore: minor peregrine-stg fix

(cherry picked from commit c2819c9)

* fix: swapped ed & sr keys

(cherry picked from commit dcb7afa)

* fix: peregrine-stg bootnodes

(cherry picked from commit 30b1cfa)

* fix: peregrine-stg parachain nodes

(cherry picked from commit 896f01a)

* fix: peregrine-stg node identity

(cherry picked from commit b84dbda)

* ci: use custom ci image (#336)

* switch to own ci image

skipping one step should speed up the build

* add ci dockerfile

* add tag

(cherry picked from commit e999bfb)

* Optimizes docker layer (#337)

* Adds copy all files in a sigle layer command

* Removes unused docker layer

* Changes debian image to ubuntu

Co-authored-by: Albrecht <[email protected]>
(cherry picked from commit 76025b1)

* chore: update toolchain version to nightly 1.59 (#339)

* chore: bump up toolchain to nightly 1.59

* chore: address Clippy warnings

(cherry picked from commit 80182c5)

* fix: add did lookup pallet to DID authorization logic + reverse lookup index (#343)

* fix: add did lookup pallet to DID authorization logic

* test: add unit tests for spiritnet and peregrine runtimes for correct DID verification key derivation

* chore: clippy

* feat: add additional map for reverse index

* test: add unit tests

* chore: update benchmarks checks

* wip: runtime upgrade scripts

* wip: lookup pallet migration

* chore: update toolchain version to nightly 1.59 (#339)

* chore: bump up toolchain to nightly 1.59

* chore: address Clippy warnings

* wip: benchmarks

* bench: benchmark compiling

* chore: try-runtime complete

* chore: update deps

* chore: add migrations to Spiritnet runtime

* chore: add comment in lookup migration

* chore: move migration into lookup pallet

* fix: add try-runtime feature to did lookup crate

* chore: fixes after rebase

* chore: fmt

* chore: ConnectedAccounts map comment

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=pallets/pallet-did-lookup/src/default_weights.rs --template=.maintain/weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

* bench: update benchmarks to include account replacement as worst case

* bench: fix InsufficientFunds error in benchmarks

* chore: fmt

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=pallets/pallet-did-lookup/src/default_weights.rs --template=.maintain/weight-template.hbs

* chore: update comments

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

Co-authored-by: kiltbot <>
(cherry picked from commit ff34f86)

* feat: proxy type for disableling deposit claiming (#341)

* proxy type for disableling deposit claiming

* fix

* fix: explicit proxy pallet logic for peregrine runtime

* fix: finalise proxy definition for spiritnet

* chore: add explicit encoding value for proxy types

* chore: update mashnet-node with similar proxy structure as peregrine

* chore: clippy

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-proxy --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_proxy.rs --template=.maintain/runtime-weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-proxy --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_proxy.rs --template=.maintain/runtime-weight-template.hbs

Co-authored-by: Antonio Antonino <[email protected]>
Co-authored-by: kiltbot <>
(cherry picked from commit a402710)

* fix: pallet_did_lookup weights filename

* chore: bump pallet and runtime versions

Co-authored-by: Gerawork Aynekulu <[email protected]>
Co-authored-by: weichweich <[email protected]>
ntn-x2 added a commit that referenced this pull request Jun 24, 2022
* Adds two more relaychain bootnodes for staging environment  (#334)

* chore: reset peregrine stg (#335)

* ci: use custom ci image (#336)

* Optimizes docker layer (#337)

* fix: add did lookup pallet to DID authorization logic + reverse lookup index (#343)

* chore: update toolchain version to nightly 1.59 (#339)

* feat: proxy type for disableling deposit claiming (#341)

* fix: rococo protocol id (#369)

* feat: generic access control (#316)

* Updates toolchain version (#345)

* refactor: enforce no runtime in pallet (#349)

* fix: features (#353)

* feat: add tips pallet (#352)

* feat: upgrade to Polkadot v0.9.19 (#357)

* chore: upgrade and clean up (#360)

* Adds the new rococo chainspec (#363)

* feat: add launch pallet removal migration (#359)

* refactor: update rilt para id from 2015 to 2108 (#364)

* fix: rilt para id (#365)

* feat: upgrade to Polkadot v0.9.23 (#366)

* use ci-linx:production base image (#368)

* feat: upgrade to Polkadot v0.9.24 (#370)

* fix: fix CI builders compilation errors and pin to a specific hash (#372)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

❤️ high priority: high ⛓ KILT node ✨ new feature feature: new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants