Skip to content

Monorepo for Zora Protocol (contracts & sdks)

License

Notifications You must be signed in to change notification settings

emarai/zora-protocol

Repository files navigation

Zora Protocol

This repository is a monorepo for the Zora Protocol

In it you will find:

Official docs

View the official docs

Setup

Install prerequisites:

Install dependencies:

yarn

Build contracts:

yarn build

Run tests:

yarn test

Run in development mode (watch tests):

yarn dev

Bug Bounty

5 ETH for any critical bugs that could result in loss of funds. Rewards will be given for smaller bugs or ideas.

Development workflow

See DEVELOPMENT.md

Installing contracts with Forge

Our contracts import dependencies via npm/node_modules, so if using forge install, additional steps are required to install contract dependencies using yarn and setup their mappings:

  1. Make sure to have yarn installed yarn

  2. Install contracts with forge:

    forge install ourzora/zora-protocol@main

  3. Install npm dependencies for zora protocol contracts:

    cd lib/zora-protocol && yarn

  4. Add the following remappings to your project:

ourzora/1155-contracts/src/=lib/zora-protocol/packages/1155-contracts/src/
_imagine=lib/zora-protocol/packages/1155-contracts/_imagine/

ds-test/=lib/zora-protocol/node_modules/ds-test/src/
forge-std/=lib/zora-protocol/node_modules/forge-std/src/
@zoralabs/openzeppelin-contracts-upgradeable/=lib/zora-protocol/node_modules/@zoralabs/openzeppelin-contracts-upgradeable/
@zoralabs/protocol-rewards/src/=lib/zora-protocol/node_modules/@zoralabs/protocol-rewards/src/
@openzeppelin/contracts/=lib/zora-protocol/node_modules/@openzeppelin/contracts/
solemate/=lib/zora-protocol/node_modules/solemate/src/
solady/=lib/zora-protocol/node_modules/solady/src/

Now in your solidity code, you should be able to import contracts like so:

import { ZoraCreator1155Impl } from "ourzora/1155-contracts/src/nft/ZoraCreator1155Impl.sol";

About

Monorepo for Zora Protocol (contracts & sdks)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Solidity 77.9%
  • TypeScript 21.3%
  • Other 0.8%