Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 978 Bytes

File metadata and controls

38 lines (29 loc) · 978 Bytes

ProbePlayground

On-chain code snippet sharing and IDE registry on ProbeChain Rydberg Testnet.

Features

  • Save code snippets with title, hash, and language
  • Public/private snippet visibility
  • Fork existing snippets to create derivatives
  • Like system for community curation
  • Language-based discovery
  • Popularity tracking

Setup

npm install
cp .env.example .env
# Edit .env with your private key
npx hardhat compile
npm run deploy

Contract: PlaygroundRegistry

Function Description
saveSnippet(title, codeHash, language, isPublic) Save a new snippet
forkSnippet(snippetId, newTitle, newCodeHash) Fork an existing snippet
likeSnippet(snippetId) Like a public snippet
getPopularSnippets(language) Get recent popular snippets
deleteSnippet(snippetId) Delete own snippet

Network