721labs / partial-common-ownership

This project aims to establish a standard, open source implementation of Partial Common Ownership for non-fungible tokens.
https://721.dev
MIT License
17 stars 5 forks source link

Support token-specific beneficiaries #40

Closed will-holley closed 2 years ago

will-holley commented 2 years ago

https://github.com/721labs/partial-common-ownership/issues/30

This PR migrates to a multi-beneficiary model by default. It is necessary for completion of https://github.com/721labs/partial-common-ownership/pull/46. Now, beneficiaries must be set on a per-token basis after minting the token. It adds the ability for a beneficiary to set a new beneficiary. By extension, this PR also enables a beneficiary to be set to a downstream contract address that remits to multiple addresses ("splits").