Found 36 repositories(showing 30)
ConsenSysDiligence
MythX smart contract security verification plugin for Truffle Framework
nccgroup
This is an intentionally vulnerable smart contract truffle deployment aimed at allowing those interested in smart contract security to exploit a wide variety of issues in a safe environment.
crytic
The Trail of Bits Truffle Security Toolbox
xsmith-marinah
MythX smart contract security verification plugin for Truffle Framework
NourelhoudaAbdellaoui
Secure Donation Project based on truffle /metamask/ganache Your guide to build a project donation based on blockchain in order to ensure the traceability and the security of your money donation. Steps : Step 1:Setup your IDE coding in my case i choose VS code 1-I install the extension of truffle on VS Code .and I learn the basics of truffle thanks to the official site : https://trufflesuite.com/docs/truffle/ by the way truffle is just a development environment to code and compile your smart contract and is testing framework for blockchains using the ethereum virtual machine .So let’s take the first step : I created a folder named Nour project using this command : mkdir NourProject and also inside it i created 2 other folders :mkdir frontend and mkdir Blockchain Step2:Start with truffle so now let’s create our truffle project inside Nourproject/Blockchain thanks to the command truffle init Now let’s create our smart contract named Donation.sol in Nourproject/Blockchain/contracts and in direction Nourproject/Blockchain/migration/Donation.js fo deploying later your smart contract on ganache we will use this fil!e .js So our smart Contract looks like: //SPDX-License-Identifier:MIT pragma solidity ^0.8.0; //so contract Donation{ //struct :define your type Donor //inside struct you can grouping your different information that you wanna track it struct Donor{ //uint (only integer without minus) uint id ;//id of donor string name;// the name of donor uint256 amount;// the amount of donor address sender_address;//Donprs wallet address } uint256 id=0; //Mapping is Mapping is a reference type as arrays and structs as dictionnary in python is composed essentially by key =>value mapping(uint=>Donor)public sender; //function to add another donor to take a place //payble is function its role to recieve ETH from donors in oder to store //donors data and the amount paid function addDonor(string memory name)public payable { id+=1; sender[id]=Donor(id,name,msg.value,msg.sender); } So now let’s how to complelete the donation.js in migration so after coding our smart contract we have install ganache thanks to this link: https://trufflesuite.com/ganache/ so now let’s compile the smart contract thans to this command truffle compile before we deploy it into ganache we have to add the project into ganache now let’s relate ganache to truffle test so let’s deploy it into the ganache (local blockchain test ): truffle migrate Step3 :Frontend part this part based on html /css/js So in this part just we use the basic tools of html/css/js as u see here in the image bellow : so let’s understand some buttons function as the button connect this button it’s main function is to extract address account from metamask so the steps that you should follow it in this part just build a simple button thanks to bootstrap https://getbootstrap.com/docs/5.2/getting-started/introduction/ and create a simple squelette of form and add some animation thanks to css so let’s add the script of web3.js to let our website worked on blockchain browser thanks to this script <script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script> so enable it by writing this piece of code //Enable Web3 async function loadWeb3(){ if(window.ethereum) { window.web3 = new Web3(window.ethereum); } } and then load smart contract from truffle thanks to it’s ABI and it’s address : you can find the ABI in build file it will create automatic when you built your contract so in my case my ABI is located in the direction of build /Donation.json so My ABI : "abi": [ { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "sender", "outputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "address", "name": "sender_address", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "name", "type": "string" } ], "name": "addDonor", "outputs": [], "stateMutability": "payable", "type": "function" } ], So the address is the same of the contract address : so after loading the smart contract thanks to it’s ABI and address you can read data from and load all of it’s function by some code in js and then connect to the metamask wallet and get the address of the account after just donate by the button donate all of :this detail is written in code js you can say it in code js in the code file wish that document is helpful So as you see after donate to ether thanks for some fake ethers in the metamask wallet which is take it fro the ganache balances with simple steps just open metmask extension>settings >add network>then add the url rpc of your ganache and in the id chain write 1337 after passing the transaction another block added in the ganache so that’s all wish this documentation was helpful to you to understand the code how it running
oliviaHughes93
Repository created by GitHub Project Operator
UtkarshGupta-CS
Security infrastructure for Truffle DApps
devopsoz
This is an intentionally vulnerable smart contract truffle deployment aimed at allowing those interested in smart contract security to exploit a wide variety of issues in a safe environment.
MCalenda
Ethereum DApp for crowdfunding developed for "Data Security" course using Truffle Suite, ReactJS
animeshbhatt651
## Inspiration The current rise in cryptocurrencies in India inspired us to make a project based on NFT using BlockChain. ## What it does NFT Rible is a game centered around collectible unique items that are used to create one-of-a-kind avatars where the uniqueness is guaranteed by ERC721 protocol. No items can bereplicated, taken away, or destroyed, since the proof of ownerships are stored on Ethereum blockchain. In order to see the items and interact with the marketplace, user has to installMetaMask extension to her/his browser. Then, by connecting his/her wallet; the user can buy, bid on, offer items for auction and sell the items via the marketplace. As tree requiredand complementary pieces are purchased and worn, an avatar is created and displayed to the community. ## How we built it Client: React, Recoil, Material UI Contract: Solidity Dev Tools: Ganache, Truffle, Remix, Docker Static Smart Contract Analysis: Security 2.0, Slither Testing: Mocha ## Challenges we ran into We faced many of the difficulties in fixing and debugging the code ## Accomplishments that we're proud of We made it at last :) ## What we learned We learnt lot of new things like solidity and etherum implementation in NFT's ## What's next for NFT Rible We'll make improvements to it and will be open-sourced for public use.
OlgaIvanova99
Repository created by GitHub Project Operator
netlify
per repository trufflehog3 scanning and uniform report parsing
Poovarasi5603
Created a decentralized exchange (DEX) that facilitates the handling of multiple security tokens using the ERC1400 token standard, along with ERC1594 and ERC1643 substandards using Truffle, Solidity, Javascript, Web3.js, NodeJS, Truffle Dashboard, SepoliaTestnetwork, Pinata API
ShivankK26
In this Project, I've built a Web3 Dapp called Voting Application, using which one can vote for any candidate of any particular party. The biggest advantage of this Dapp is that it is completely decentralized, i.e it has complete security. As of now I've built the Smart Contract and Deployed it using truffle...
giridhar7889
This dapp is a developed using solidity smart contract framework Truffle.This application basically enables decentralized grading system any blocks you add will conflict with existing ones, and the other nodes will automatically reject your alterations such as increasing or decreasing marks of a student will be visible to everyone who took the course .This increases trust, security, transparency, and the traceability of data shared across a grading network
abhisamant7
# Decentralized P2P Voting App --- ##### **The voting system in India as well as in some countries abroad is flawed and can be easily manipulated and hampered by those with power to suit their personal benefits. It allows people with money to buy the votes or tamper the machine that record it. A current example can be the recent elections in Uttar Pradesh where the ruling party manipulated the voting machines to gain unfair advantage.** ##### #### Solution #### A voting system which is unhackable or which cannot be tampered. Using blockchain based distributed networks to store and record votes which allows voting to be almost 99.9% secure as it is distributed among a cluster of networks and requires computing power of over 500 supercomputers to even get hold of the network which is currently impossible to achieve. The system has a user friendly interface and can be used to run polls and elections with total security and zero percent chance of manipulation. ## Advantages :customs: * It is totally on a peer to peer network so virtually impossible for a person to hack or get hold on a network. * A person cannot vote more than once. * A distributed system means no tampering or manupulating.:bookmark_tabs: ## Security Aspect We are using blockchain technology as the backbone of our product. Because of blockchain, the data (of the voting) can’t be tampered or manipulated as it is distributed over the network. We used ganache which is a tool that collects a small percentage of test ether every time a person votes verifying the identity of the person and we also used solidity test cases to verify if the candidates and the voter is valid. ## Technologies Used:computer: * Ethereum * Truffle * Ganache-cli * Vue Js (Client side) * Webpack * Solidity * TestRPC * NPM/Yarn
glesaint
No description available
Steephanjeyaraj
test repo to validate trufflehog
fgimenez
No description available
freewind-demos
No description available
Full example of upgradable smart contract from IoTA Smart Contract Security course. Migrated, and deployed with truffle.
satyender8929
Ebay Smart Contract security test using Truffle, Hardhat and Mocha Framework
A decentralised alternative to traditional agricultural supplychain thereby improving its transparency and security. Project was developed using Solidity, Ganache and Truffle frameworks.
Rohan-Nandula
An E-voting portal using Blockchain technologies and Frameworks including Smart Contracts, Truffle, Ganache etc. It leverages the security offered by blockchain to ensure safe voting systems.
hassen-gadacha
a secure web application for medical record management using blockchain technology, enhancing data security, uninterrupted access, and record traceability with Solidity, Ganache, Truffle, Web3.js, Golang and React.js
aryanaherofficial
Created a blockchain-based eVoting system using Ganache, Truffle, and Metamask, enhancing transparency and security in the electoral process. Developed smart contracts to govern voting rules, ensuring tamper-proof elections on a local blockchain network.
SakshamK404
This project implements a decentralized candle auction using Solidity, Truffle, and OpenZeppelin. Participants place bids, and the highest bidder wins. Comprehensive tests ensure functionality and security, covering bid placements, withdrawals, auction endings, and reentrancy attack prevention.
aryanraj13
VoteChain is a decentralized voting system built on the Ethereum blockchain using Solidity, Truffle, Ganache, React, Web3.js, and MetaMask. The system eliminates centralized servers by storing all election data directly on the blockchain, ensuring security, transparency, and immutability.
decentralized healthcare system leveraging Ethereum smart contracts, Kubo IPFS, Ganache, Truffle, and MetaMask. The project aims to improve data security, privacy, and interoperability in healthcare by storing medical records on decentralized storage and enabling smart contract-based access control.
ranitabhowmik
Web3 voting: React.js frontend, Ethereum backend for transparency, security, accessibility. JSON for data, HTML for UI. Web3.js, axios for communication. Potential Truffle for smart contracts. React fetches blockchain data for dynamic UX. Offers transparent, secure, accessible democratic participation.