drosera-operator
Drosera solo operator node for running traps. Checkout dev.drosera.io
drosera-operator
drosera-network/drosera-operator:latest
Just deployed
/app/.data/drosera.db
Operators
Operators are crucial players in Drosera, consisting of organizations and solo stakers who run the Drosera Operator Client software to help maintain and protect the DeFi ecosystem. These dedicated individuals are responsible for executing Traps and performing on-chain response actions, ensuring the security and stability of the network.
To execute a Trap, an Operator must first gain permission by opting into the specific Trap. Once opted in, the Operator gains access to the off-chain Trap and the current peers in the network. This allows them to actively participate in monitoring and evaluating every new block based on the conditions set by the Trap.
In the event that the conditions of a Trap are met, the Operator will promptly execute the on-chain response function. This swift action helps to mitigate potential threats and exploits.
Deploying the drosera-operator template
- Populate the 2 required environment variables
- DRO__ETH__RPC_URL
- DRO__ETH__PRIVATE_KEY
- Deploy the operator
After deployment steps
Enable Networking
In order for liveness data for this operator to be seen on the frontend, we need to add an http proxy.
- Open the
Settings
tab of your service. - Navigate to the
Networking
section of the settings tab. - Click the
Generate Domain
button. - Select port
31314
port from the dropdown list (if you changed the DRO__SERVER__PORT variable, choose the value you set). - Click the
Generate Domain
button again.
Redeploy the Operator
Now we need to redeploy the service to pick up the networking changes
- Select the
Deployments
tab of your service. - In the green active deployment box, click the vertical 3 dot menu.
- Click
Redeploy
Template Content
drosera-operator
ghcr.io/drosera-network/drosera-operator:latestDRO__ETH__RPC_URL
The node used for querying and sending transactions
DRO__ETH__PRIVATE_KEY
The private key used to sign transactions