Add Drosera Trap Simulator UI example with live logic runner#24
Open
pvsairam wants to merge 3 commits intodrosera-network:mainfrom
Open
Add Drosera Trap Simulator UI example with live logic runner#24pvsairam wants to merge 3 commits intodrosera-network:mainfrom
pvsairam wants to merge 3 commits intodrosera-network:mainfrom
Conversation
Signed-off-by: Sairam <pvsairam@hotmail.com>
Signed-off-by: Sairam <pvsairam@hotmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new way to experiment with on-chain trap logic before you deploy it.
Built for the Drosera testnet 🕸️
Try it here 👉 https://drosera-gamma.vercel.app
Let's explore how it works 👇
1️⃣ What is a Trap?
Traps are smart contracts that monitor specific blockchain events.
When triggered, they alert the Drosera response network.
You define the logic.
Drosera handles the rest.
2️⃣ Why use the Simulator?
Before you deploy a trap on-chain, test it safely:
✅ Write custom trap logic
✅ Simulate real events
✅ See when and how traps are triggered
✅ Explore trap presets (slashing, liquidity, price, bridges...)
3️⃣ Example Trap:
This trap flags high-value bridge transfers to suspicious addresses.
4️⃣ Build, Test, Deploy
Use the "Generate Trap + Event" button or pick from the dropdown to start.
Simulate your logic with 1 click.
Hit "🚀 Run Trap" and see the result instantly.
5️⃣ Bonus: Proof-of-Trap – Cadet LiveBoard 🏅
Every wallet that deploys a valid trap with a Discord name gets immortalized here:
💾 On-chain
👥 Community visible
🔍 Searchable by Discord handle
🚀 Cadet role status
7️⃣ Live Example Trap Categories:
🌀 ETH Slippage
🌒 Off-hour Txn
📉 Oracle Price Drop
⚔️ AVS Slashing
🛑 DEX Liquidity
🏦 Lending Collateral Ratio
Traps are plug-and-play – use or modify.
🔗 Try it now: https://drosera-gamma.vercel.app
PS: I'm not a full-time dev, but I wanted to understand Drosera better, so I built this simple web simulator to write, test, and visualize Trap logic.