eos icon indicating copy to clipboard operation
eos copied to clipboard

DAWN-479 ⁃ Route all native token actions through `transfer`

Open wanderingbort opened this issue 8 years ago • 2 comments

Refactoring Native Token Handling

The native contracts/actions take advantage of their privileged direct access to the database to manipulate the database entries for tokens for things like moving tokens to stake, creating accounts etc. While these are all legitimate actions, it should be possible to only use the basic transfer action to accomplish this. In doing so, we reduce the number of actions a 3rd party must monitor to have an accurate token balance to only the transfer action and not a handful of other "implicit" withdraws/deposits.

Tasks

  • [ ] refactor native actions which implicitly modify the eos token balance to issue inline transfer actions
    • [ ] newaccount implicitly withdraws initial stake from creators account
    • [ ] lock implicitly withdraws stake from callers account
    • [ ] claim implicitly deposits tokens to the callers account

Notes

The staking mechanics are being changed by many issues and so these native calls may not be accurate when we get around to time of implementation.

wanderingbort avatar Jan 15 '18 19:01 wanderingbort

➤ Kevin Heifner commented:

[~bart.wyatt] I believe this has already been done via bios and updates for generic_currency and eosio.system contract.

blockone-syncclient avatar Feb 19 '18 19:02 blockone-syncclient

Closing per conversation with Bart / Kevin on 2/20/2018

coreylederer avatar Feb 20 '18 21:02 coreylederer