Skip to content

Conversation

bdmason
Copy link
Contributor

@bdmason bdmason commented Aug 21, 2025

The goal of the proxy precompile is to allow smart contracts to interact with the subtensor pallet by making other precompile calls on behalf of users. Much like DEXs can swap tokens on behalf of users using ERC20's allowance functionality, the proxy precompile allows smart contracts to perform actions on behalf of users, such as transferring stake.

This is just a draft right now, it still needs tests to ensure it works, and also to ensure that the elevated permissions inside precompile can't be abused. We need tests to prove the proxied call is scoped to the proxy type and the proxied account.

Closes #1967

This won't work, so adding a more specific proxyTransferStake precompile method instead.

@bdmason
Copy link
Contributor Author

bdmason commented Aug 28, 2025

we're going to pallet_contracts instead

@bdmason bdmason closed this Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant