Skip to content

0xMoJo7/snowComputerHardhat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snow Computer

The Snow Computer is an on-chain, community art experiment made up of multiple programs contributing smaller canvases of pixel art via bytes to a larger canvas on the Polygon network. See it in action here!

About

The Snow computer is deployed at 0xF53D926c13Af77C53AFAe6B33480DDd94B167610

  • Call applyToBecomeOperator with an existing or new Snow program to potentially get approved to become an operator.
  • Call becomeOperator with an existing or new Snow program to get an access key once approved.
  • You can call storeProgram at any time to update your Snow program.
  • tick is called every 5 min, which runs every program with a 50k gas stipend and updates the art.

Examples:

  • TicTacToe found in contracts/TicTacToe.sol in this repo. Attempt to claim a 3x3 square based on Karmacoma's SnowComputerClub at 0xc001c0de2d7ac3b783d86d59506587383b0438b2
  • Arrow, found in contracts/Arrow.sol in this repo. Which creates a diagonal arrow across 3 selected canvases on the larger canvas, also shows and example of reversing a piece of art.
  • Sprite, found in contracts/Sprites.sol in this repo. Which psuedo-randomly selects a spot on the canvas and fills with one of the "Sprites"
  • Chaos and Invertor gist
  • Oighty at 0x476920b3cf1B893F641745cDc8D30DfF55DD0920

Reference:

Getting started

.env Example

POLYGON_INFURA_ENDPOINT="https://polygon-mainnet.infura.io/v3/<your-key-here>"
PRIVATE_KEY="<your-private-key>"
POLYGONSCAN_API_KEY="<your-polygonscan-api-key>"

Deploy Command

npx hardhat run scripts/deploy.js --network polygon

Foundry Example

https://github.com/karmacoma-eth/snow-operator-template

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published