Skip to content

Latest commit

 

History

History
75 lines (48 loc) · 3.06 KB

README.md

File metadata and controls

75 lines (48 loc) · 3.06 KB

Contracts

Snickerdoodle Protocol Contracts Package

Package Contents

Summary

The Snickerdoodle Contracts stack consists of the following primary components:

Contains an upgradable EIP721 compatible NFT implementation and an associated contract factory.

Contains an EIP20 compatible token, wrapper token (for subnet deployments), and a vesting contract.

Contains an EIP721 compatible registry contract for storing Snickerdoodle account recovery details.

Contains the implementation of the Snickerdoodle Protocol governance DAO.

Install Dependencies

Steps to install and run this project this locally:

git clone https://github.com/SnickerdoodleLabs/protocol.git
cd protocol
yarn install

Compiling Contracts

Use Hardhat to compile the protocol contracts like this:

cd /packages/contracts
yarn compile
yarn test

This command will create a subdirectory called artifacts which will contain the contract ABI and bytecode for all contracts in the contracts subdirectory.

Docker

A pre-built docker image for local development against the contract stack is available at snickerdoodlelabs/devchain. Run a local subnet like this:

docker run -d -p 8545:8545 --rm snickerdoodlelabs/devchain

Run a Hardhat node like this:

docker run -d -p 8569:8569 --name devchain --rm --env NETWORK=dev snickerdoodlelabs/devchain

Deployment Addresses

A list of Snickerdoodle Protocol contract addresses can be found here.