Skip to content

Latest commit

 

History

History
 
 

web3-labs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Web3 Labs

Welcome to the Web3 Labs assignment! In this workshop you'll learn how to automate your Solidity Contract deployment on the Polygon test network.

We'll go over core components of any pipeline, apply those with Hardhat tooling, and do so in a nosana pipeline!

Assignment overview

Hardhat is an Ethereum development environment that provides an easy way to deploy smart contracts, run tests and debug Solidity code locally.

The goal of this exercise is to learn how you can let the commands you run locally deploy your smart contract with a CI/CD system.

You're pipeline should at least contain the following components:

  1. Initial prep: Setup your automation engine
  2. Build step: Create and compile a simple smart contract
  3. Test step: Run tests
  4. Deploy step: The contract will be deployed on Matic's Mumbai Testnet

Initial prep: setup your automation engine

Disclaimer: this exercise can be done with any CI provider. However, most steps are focussed on implementation with the Nosana Network. If you would like to implement this with alternative providers, feel free to implement to forthcoming steps in the respective provider config files.

For now, let's start with setting up the engine!

  1. Fork this repository into your own development environment.

Notice the template .nosana-ci.yml file in the root of this repository. This file contains placeholders for the most crucial stages of any software pipeline. Namely the (i) build, (ii) test, and (iii) deployment stage.

  1. Hop on over to https://app.nosana.io and connect your fresh repo to the nosana network

  2. When done you're ready to start on Step 1!

Links