3 releases (breaking)

0.3.0 Aug 22, 2023
0.2.0 Aug 22, 2023
0.1.0 Jul 26, 2023

#15 in #percentage

Download history 3/week @ 2024-02-19 24/week @ 2024-02-26 11/week @ 2024-03-11 23/week @ 2024-03-25 33/week @ 2024-04-01

67 downloads per month
Used in stargaze-marketplace-v2

Apache-2.0

51KB
958 lines

Stargaze Royalty Registry

The Stargaze Royalty Registry contract is a CosmWasm smart contract deployed on the Stargaze chain. It allows NFT collection admins to define the royalties that should be paid to them when their NFTs are sold on the Stargaze chain. The royalty registry logic is applied as described below:

  • Only the collection admin can register a royalty for a collection. The collection admin is defined to be the admin on the NFT collection contract. If that contract admin does not exist, then the collection admin is the contract creator.
  • The collection admin can set a default royalty percentage for the collection. This default royalty percentage is applied when there is no specific protocol royalty percentage set for a given protocol.
  • The collection admin can set a protocol royalty percentage for a given protocol. This protocol royalty percentage is applied when the protocol itself is calculating a royalty for the NFT sale.
  • Any royalty percentage set by a given collection owner can only be changed by a the maximum amount of config parameter max_share_delta per invocation. After changing a royalty percentage, the collection owner must wait update_wait_period to update the percentage again.

Dependencies

~5.5–7.5MB
~183K SLoC