Skip to content

Instantly share code, notes, and snippets.

@Krishna-Ravi
Krishna-Ravi / MedicineData.sol
Created August 30, 2020 07:39
This is a solidity file containing smart contract of Medical store data.
pragma solidity 0.4.18 <= 0.6.12;
contract MedicineData{
string customerName;
string medicineName;
string medicineCompany;
int medicineCost;
int quantity;
pragma solidity 0.4.18 <= 0.6.12;
contract RestarauntBill{
string customerName;
string itemName;
int rate;
int total;
int quantity;
string date;
@Krishna-Ravi
Krishna-Ravi / ElectricityBills.sol
Created September 2, 2020 15:41
This is my first smart contract develop using Solidity programming language. This is basic implementation of Electricity Bill, which adds our data into a BLOCKCHAIN network.
pragma solidity 0.4.18 <= 0.6.12;
contract ElectricityBills{
string Name;
string addrs;
string consumerId;
int units;
int amount;
function ElectricityBills(string newName, string newAddrs, string newconsumerId, int newunits, int newamt) public{
@Krishna-Ravi
Krishna-Ravi / gist:64ff2b3433343adf6c07e96d2c87ada5
Created September 10, 2020 13:16
Solidity code containing CarInsurance smart contract for storing data of customer
pragma solidity 0.4.18 <= 0.6.12;
contract CarInsurance{
string city;
string rto;
string company;
string model;
string customerName;
int phone;
string type_of_insurance;
@Krishna-Ravi
Krishna-Ravi / gist:a8a90806c0c7be375cbecf040f56f169
Created September 10, 2020 13:33
TrainTicket data storing smart contract
pragma solidity 0.4.18 <= 0.6.12;
contract TrainTickets{
string _from;
string _to;
string travel_date;
string class;
string customerName;
int phone;
int amt;