Trapper
Last updated
Was this helpful?
Last updated
Was this helpful?
You must run the first
Move to your trap directory
Create a new Trap.sol
file
Paste the following contract code in it:
Replace DISCORD_USERNAME
with your discord username.
Edit drosera.toml
config
Modify the values of the specified variables as follows:
path
"out/Trap.sol/Trap.json"
response_contract
"0x4608Afa7f277C8E0BE232232265850d1cDeB600E"
response_function
"respondWithDiscordName(string)"
Compile your Trap's Contract:
Test the trap before deploying:
Apply and Deploy the Trap:
Replace xxx
with your EVM wallet privatekey (Ensure it's funded with Holesky ETH)
After the trap is deployed, we can check if the user has responded by calling the isResponder
function on the response contract.
Replace OWNER_ADDRESS
with your Trap's owner address. (Your main address that has deployed the Trap's contract)
If you receive true
as a response, it means you have successfully completed all the steps.
Replace your-rpc
with your Holesky ETH RPC, you can get it from for free