EthGlobal Bangkok
What is Venn
Venn stops exploit transactions before they even hit the blockchain, securing every transaction in real-time through a decentralized and modular network of security operators.
Hi and welcome to the Venn Challenge for DC7SEA 👋
Learn more at: Venn Site | Venn Playground
Venn Prize - $1,000
Instructions
In this challenge, you'll deploy a new Venn Firewall and integrate it into your smart contracts to enhance your project's security.
Once completed, you'll also need to integrate Venn DApp SDK to your DApp's Frontend so that transactions get approved before being sent onchain.
Ready ? Let's go 💪
Step 1: Clone Venn challenge repo
Clone the repo and install dependencies:
git clone https://github.com/ironblocks/DC7-SEA
cd DC7-SEA
npm ciSetup your private key and hardhat network configuration
Compile
Deploy a new Firewall
Venn Firewall is an onchain solution that can surgically prevent malicious transactions from going through, only allowing approved transactions to be executed.
Note the new
venn.config.jsonfile that was created with the Firewall address in it. We'll use this later in Step 4.
Step 2: In Your Smart Contracts Repo
Now that the Firewall is deployed, you'll use various Venn SDKs to integrate Venn with your project.
Install the CLI:
Run the CLI to add the Firewall to your smart contracts:
Before
After
Now that your smart contracts include the Firewall SDK, deploy them as you normally would onto any network.
Deploy your contracts as you normally would:
Step 3: Back In The Challenge Repo
Now that your smart contracts have integration with Venn, you'll need to send a setup transaction to enable the Firewall.
Remember
venn.config.json? time to use it. Open this file and add your contracts addresses:
Run the setup script. This script will send setup transactions from the
PRIVATE_KEYyou've configured in the.envfile to turn on the Firewall on each of your contracts:
Step 4: Your Repo Again (last time i promise!)
With the Venn Firewall enabled on your smart contracts, transactions need to be approved via Venn Network before they can be submitted on chain.
To do this, you'll add our Venn DApp SDK to your DApp's Frontend.
Install the SDK
Create a new instance of the SDK Client
Update your DApp to approve transactions before submitting them onchain:
Kinto Prize - $500
See here [link] for projects building on Kinto to learn more.
Last updated
Was this helpful?

