Skip to content

algorand-devrel/royalty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Royalty Enforcement example implementing ARC-0018

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.

WARNING: This code is not audited and should not be used in a production environment

Running the demo

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 :)

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages