MIT License
Also includes a tool to pull in updated contracts from various repos or from the blockchain into your workspace.
Provided as is. Care recommended. Always review all changes and .cdc files, even if your tests pass!
- Refactorer ignores comments (line or block) and strings inside quotes.
- Change pub to access(all) // heh
- Refactor AuthAccount authorizers to &Account
- Refactor account storage access
- Refactor capability borrowing/publishing
- Auto-fix restricted types // I think this one is broken
- Detect storage/capability entitlement usage and apply it to &Account // see limitations
- Limited block-scope awareness
- Refactor getAuthAccount() usage
- Apply entitlement to getAuthAccount() usage in scripts
- Refactoring related to NFT contract updates (examples:)
- MetadataViews to ViewResolver fixups // simple
- add 'view' to functions as defined in contract // trivial
- Remove private storage interactions
- Prevent it from messing up already migrated code // hardish
- AST Visitor is very badly implemented
- block-scope awareness could track more interesting things
- entitlement usage works only for main body (no tracking across function calls / imports)
- Entitlement tracking across function calls // hard
- Apply entitlement requirements to function params