GithubHelp home page GithubHelp logo

showtime-contracts-v2's Introduction

Showtime Contracts v2

This repository contains the Solidity smart contracts for the 2023 version of Showtime:

src
├── ShowtimeVerifier.sol -- verifies that transactions are coming from the trusted showtime.xyz backend
├── editions
│   ├── EditionFactory.sol -- interfaces with ShowtimeVerifier and deploys contracts from showtime-xyz/nft-editions
│   └── interfaces
│       ├── Errors.sol
│       └── IEditionFactory.sol
└── interfaces
    └── IShowtimeVerifier.sol

Getting started

You will need to install Foundry.

Then clone this repository and just build and test:

git clone [email protected]:showtime-xyz/showtime-contracts-v2.git
cd showtime-contracts-v2
forge build
forge test

Deploy

# say you want to deploy ${CONTRACT}

# provision a new deployer
cast wallet new

# save the private in .env (PRIVATE_KEY=...)
# fund the deployer address

# perform a local simulation
forge script script/${CONTRACT}.s.sol

# perform a simulation against a network
forge script script/${CONTRACT}.s.sol --rpc-url <network>

# actually perform the deployment
SAVE_DEPLOYMENTS=1 forge script script/${CONTRACT}.s.sol --ffi --rpc-url <network> --broadcast --verify --watch

# optionally verify the contract as a separate step
forge verify-contract 0xA17f8d960B5a7A42174847213f3C5c19a7ef9dFd SingleBatchEdition --chain <network> --watch

showtime-contracts-v2's People

Contributors

karmacoma-eth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.