/contracts-hooks

Collection of purchase hooks for Slice products

Primary LanguageSolidityGNU General Public License v3.0GPL-3.0

Purchase Hooks - Contracts

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 inheriting SlicerPurchasableClone
    • {MyHookCloner}.sol: Your purchase hook factory contract (cloner)
    • deployments.json: Deployment addresses of cloner contract for each chain ID

Examples