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

feat(FullAccessKeyFallback)!: remove the plugin #87

Closed mooori closed 1 year ago

mooori commented 1 year ago

Removes the FullAccessKeyFallback since there are some issues with its design: external-4, external-6, external-23, external-30.

The default implementation of FullAccessKeyFallback consists only of a few lines of code. If smart contract devs need this behavior, it makes more sense for them to implement their own solution tailored to their use-case.

Breaking changes

It removes a plugin: the FullAccessKeyFallback trait and its default implementation.

Additional changes

FullAccessKeyFallback was the last plugin that was included in examples/. As the corresponding examples were removed, some code became unused, which is removed in this PR. This allows deleting the examples/ directory.

The contracts in near-plugins-derive/tests/contracts serve as examples now (ref. #48).