Skip to content

Old corrupted warranty cards just got transformed into NFTs on blockchain using Solidity and much more.

Notifications You must be signed in to change notification settings

Flip-Cards/blockchain

Repository files navigation

FlipCard Solidity Code

This code contains the Solidity implementation of the NFT Warranty cards. Here are the public getters and public mutation functions.

alt text

Installation

Install Truffle for running and testing blockchain locally

npm i -g truffle

Install ganache to run local ethereum blockchain. Download the desktop version from Here Clone this repository locally. Get inside this folder and run

npm install

Running blockchain locally

Start Local ethereum blockchain using Ganache. Simply run the application and click on "QUICKSTART" "Can't load image"

Get inside the code respository using command line

Run following command

truffle migrate

and the server will start.

Testing Smart Contract Locally (Automation)

Start the ganache server like we did in the "Running blockchain locally" above. Get inside the repository using command line and execute.

truffle test ./test/flipCard_test.js

This will deploy the server and run the tests so you can check that the smart contract is providing all the functionalities.

About

Old corrupted warranty cards just got transformed into NFTs on blockchain using Solidity and much more.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published