This repo contains the purchase hooks to be implemented on the Slice Interface.
In the contracts
folder you can find:
- Basic
SlicerPurchasable
contracts and other presets at contracts/extensions/Purchasable - Hooks folder under contracts/hooks
- A template for quickly setting up a new hook at contracts/template/MyHook, containing:
{MyHook}.sol
Your purchase hook inheritingSlicerPurchasableClone
{MyHookCloner}.sol
: Your purchase hook factory contract (cloner)deployments.json
: Deployment addresses of cloner contract for each chain ID