<aside> đź’ˇ
This guide is only for those who have already deployed traps to the Drosera testnet.
</aside>
If you have already deployed one or more traps then this quick guide is for you. We kindly ask you to re-apply
your traps. This will re-deploy your trap to the best available seed node. Please follow the steps below.
Get the latest Trapper CLI by running our easy installation utility https://dev.drosera.io/docs/trappers/getting-started#installing-droseraup. If you’ve already deployed traps (who this guide is for) then you will already have this utility installed. Simply run droseraup
in your terminal to install the latest version of the Trapper CLI.
drosera.toml
FilePreviously, your trapper CLI drosera.toml
file was configured with the drosera_rpc
field set directly to the only seed node ("<https://seed-node.testnet.drosera.io>"
), hosted by the Drosera team.
...
**drosera_rpc = "<https://seed-node.testnet.drosera.io>"**
...
[traps]
[traps.mytrap]
...
address = "0xCEbc5a0cCF165ff62f0f26766759D6Ee1B37d739"
Now, to take advantage of the new relay server, please update the drosera_rpc
field to point to the new Drosera relay server at "<https://relay.testnet.drosera.io>"
.
...
**drosera_rpc = "<https://relay.testnet.drosera.io>"**
...
[traps]
[traps.mytrap]
...
address = "0xCEbc5a0cCF165ff62f0f26766759D6Ee1B37d739"
If all your traps are in one drosera.toml
file and each trap has an address, then you can skip to the re-apply step. If some of your traps in your drosera.toml
are missing addresses then they were either never deployed, or they were deleted by accident. If they were deleted by accident then you can go on to the Drosera dapp and find them.
Go to https://app.drosera.io/
Connect your web3 wallet. This must be the same account you used to deploy your trap(s) with.
Select the “Traps Owned” button to display only traps that your account owns
For each trap your account owns (I only have one trap deployed on this account, but you may have up to two)
Click on the trap to go to the trap’s page
On the trap’s page, click on the “Trap Config” address hyperlink. This will open a page to holesky etherscan.
Click the button to copy the contract’s address.
Paste that address as the value for the corresponding trap’s address
field in your drosera.toml
file
If you have traps in another drosera.toml
file, repeat this process there.
If you have traps deployed using a different private key, repeat this process using that account.