← Back to home

Chris Buren

SolidityReactNode.js

Practice on creating objects that could become NFTs with certain traits.

Problem Statement

This is a smart contract that can create 'objects' that are virtual spiders, similar to crypto kitties. It has three attributes: number of legs, name, and color. Number of legs is an unsigned integer, so it must be positive. Name and color are both strings, so they must be letters and characters. Someone can interact with the contract and create a 'spider' object and they can specify what name they want it to have, what color, and what number of legs. The long term product roadmap will automatically create the spider as an NFT, with the right name, color and number of legs.

Solution

This project uses the solidity language as a backend. It has on class (makeSpider) and test is run later in the contract where a spider "bob" is created, has a "blue" color and has 8 legs. To later improve on this project, one can hook it up to a front end using node.js or react.

Hackathon

ETHOnline 2021

2021