FlipsideCrypto / badger

EVM primitive, protocol and app layer that exposes top-down management mechanisms for on-chain organizations. Badger is the key to the existing gates and locks within Web3.
https://www.trybadger.com/
MIT License
22 stars 1 forks source link

feat: no more onchain archived #236

Closed nftchance closed 1 year ago

nftchance commented 1 year ago

This PR deprecates the onchain functionality of the archive while maintaining the use of an onchain write.

Much like the addition to the tags, there is no need to store it onchain while we do want it to be related onchain with a simple transaction.

Instead of having a distinct OrganizationArchived and BadgeArchived event, a single value in the .contractURI of an Organization may be updated that signals it as being archived.

While it is possible to put archived Organizations and Badges onchain, it increases the gas cost of the average user by quite a large amount. It cannot be justified as a limiting factory -- primarily because the functionality can still be accomplished (if desperately needed) with the help of a mint or transfer hook.