The enforcement of royalty payments is an important requirement for creators and businesses that derive their income from secondary sales. This example demonstrates how one might implement the Royalty Enforcement contract as well as presenting a marketplace that adheres to the spec and provides an interface for listing and selling an asset subject to a Royalty Policy.
Requires Python >= 3.10 AND the feature/abi
branch of pyteal
Install the sandbox and start it in any private network mode (dev
,release
,etc..)
Clone this repository, initialize a virtual environment and install requirements
git clone [email protected]:algorand-devrel/royalty.git
cd royalty
python3.10 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Run the example
python main.py
You should see some printed statements from the methods defined in the ARC being called.
Comments on the specific calls an contracts are inline.
Happy hacking :)