Near-One / near-plugins

Implementation of common patterns used for NEAR smart contracts.
Creative Commons Zero v1.0 Universal
27 stars 12 forks source link

Add top-level attributes to describe whole `impl` blocks #106

Closed bepro-bot closed 1 year ago

bepro-bot commented 1 year ago

Right now we use attributes such as #[pause] and #[only] that can only be used at the level function. In some implementations, different impl sections are grouped with different access requirements but similar for every function in the same impl. For those cases, it makes sense to have current attributes to work at a top level.