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

Rename anonymous to pure proxy #12283

Merged
merged 7 commits into from
Sep 22, 2022
Merged

Conversation

shawntabrizi
Copy link
Member

@shawntabrizi shawntabrizi commented Sep 15, 2022

Fixes: #7735

Gav noted in the forum that he has been using the term "pure proxy", so this is a simple rename which changes that.

https://forum.polkadot.network/t/parachain-technical-summit-next-steps/51/14?u=shawntabrizi

This should have no runtime breaking changes, but APIs like Polkadot JS will probably need to do a rename to make this functionality work again, and also to update the branding of this kind of proxy account.

polkadot companion: paritytech/polkadot#6038
cumulus companion: paritytech/cumulus#1667

@shawntabrizi shawntabrizi requested a review from wpank September 15, 2022 21:51
@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Sep 15, 2022
@shawntabrizi shawntabrizi added E5-breaksapi C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit and removed A0-please_review Pull request needs code review. labels Sep 15, 2022
Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

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

idea: It would have been awesome if somehow we could also generate a #[deprecated] section in the metadata. Then, tools like PJS api and subxt can still support the deprecated method name, but similar to #[deprecated] within rust, emit a warning that they should rename it to something else.

Might be a big engineering mountain to climb initially, but it could potentially ease the development downstream a lot.

@Polkadot-Forum
Copy link

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/parachain-technical-summit-next-steps/51/20

@shawntabrizi shawntabrizi requested a review from jacogr September 22, 2022 01:45
@shawntabrizi
Copy link
Member Author

cc @jacogr

@shawntabrizi
Copy link
Member Author

bot merge

@paritytech-processbot
Copy link

Error: "Check reviews" status is not passing for paritytech/polkadot#6038

frame/proxy/src/lib.rs Outdated Show resolved Hide resolved
frame/proxy/src/lib.rs Outdated Show resolved Hide resolved
@shawntabrizi
Copy link
Member Author

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 1f720c1 into master Sep 22, 2022
@paritytech-processbot paritytech-processbot bot deleted the shawntabrizi-pure-proxy branch September 22, 2022 14:15
@lucasvo
Copy link

lucasvo commented Sep 22, 2022

I think this still causes major confusion because the word proxy is still used for two different things:

Alice is a democracy proxy on the pure proxy Bob.

The number of people I've tried to explain the difference between Alice being a proxy and Bob being a different proxy is extremely confusing and I would suggest we call it pure account not pure proxy

@joepetrowski
Copy link
Contributor

Alice is a democracy proxy on the pure proxy Bob.

This doesn't make any sense though. What does pure account express? What makes an account created to access via proxy more pure than one accessed via cryptographic key or multisig?

ordian added a commit that referenced this pull request Sep 23, 2022
* master:
  [Fix] parameter_types! dead code errors (#12340)
  [Feature] Sequential migration execution for try-runtime (#12319)
  bench: Use `_` instead  of `::` in auto-generated file names (#12332)
  Fast Unstake Pallet (#12129)
  Rename anonymous to pure proxy (#12283)
  Migrate remaining old decl_* macros to the new pallet attribute macros (#12271)
  pallet-utility: Disallow none origin (#12321)
  Make automatic storage deposits resistant against changing deposit prices (#12083)
  Format templates and fix `--steps` default value (#12286)
  Bump `wasmtime` to 1.0.0 (#12317)
  Introduce 'intermediate_insert' method to hide implementation details (#12215)
  Bound staking storage items (#12230)
  Use `array-bytes` for All Array/Bytes/Hex Operations (#12190)
  BREAKING: Rename Origin (#12258)
  Use temporary db for benchmarking (#12254)
  rpc: Implement `chainSpec` RPC API (#12261)
  Import target block body during warp sync (#12300)
  Proper naming wrt expectations (#12311)
  [ci] Revert cancel-pipeline job (#12309)
@lucasvo
Copy link

lucasvo commented Sep 28, 2022

@shawntabrizi don't you think calling this a proxy is a bad idea? Overloading the word proxy for both a permission on an account as well as an account itself makes this extremely awkward:

Alice is a democracy proxy on the pure proxy Bob.

We use pure proxies as you call them quite extensively and no one in the team actually understands that the word proxy is used for two very different things.

@Polkadot-Forum
Copy link

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/parachain-technical-summit-next-steps/51/22

@lucasvo
Copy link

lucasvo commented Sep 28, 2022

I apologize for my earlier comment, I think it's merely the wiki that is still not up to date on the new language.

ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* rename anon to pure proxy

* remove old weight comments

* fix merge

* Update frame/proxy/src/lib.rs

Co-authored-by: joe petrowski <[email protected]>

* fn pure -> fn create_pure

Co-authored-by: joe petrowski <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Rename Anonymous Proxy to Something Else
7 participants