near / near-cli

General purpose command line tools for interacting with NEAR Protocol
https://docs.near.org
MIT License
193 stars 91 forks source link

NEAR Clear State #1016

Open doriancrutcher opened 2 years ago

doriancrutcher commented 2 years ago

Is your feature request related to a problem? Please describe. There should be a way within NEAR-CLI that allows a user to clear the state of their contract using Illia's deletion tool.

Describe the solution you'd like The approach I took was that you can list all the keys in the state send that to Illia's contract and it will delete the state, but this requires the use of the view-state command but that command sets a limitation on how much of the state you can view, past a certain size you can't use view-state

https://github.com/doriancrutcher/near-clear-state

Describe alternatives you've considered https://github.com/doriancrutcher/near-clear-state here was my working solution that works for states under a certain size

Additional context N/A