All Projects → knowledge → ethereum-contracts

knowledge / ethereum-contracts

Licence: MIT license
Knowledge Ethereum Smart Contracts

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ethereum-contracts

solidity-contracts
📦 Resources for the Ethereum Smart Contract Development tutorial series.
Stars: ✭ 64 (+56.1%)
Mutual labels:  smart-contracts, truffle, ethereum-contract
Solidity Smart Contracts
smart contracts which are built on ethereum wallet mist,truffle compiler using solidity language.
Stars: ✭ 11 (-73.17%)
Mutual labels:  smart-contracts, truffle, ethereum-contract
Simple-Game-ERC-721-Token-Template
🔮 Very Simple ERC-721 Smart Contract Template to create your own ERC-721 Tokens on the Ethereum Blockchain, with many customizable Options 🔮
Stars: ✭ 83 (+102.44%)
Mutual labels:  smart-contracts, ethereum-contract, token
erc1363-payable-token
Code implementation for the ERC-1363 Payable Token
Stars: ✭ 83 (+102.44%)
Mutual labels:  smart-contracts, truffle, token
React Ethereum Dapp Example
A starter boilerplate for an Ethereum dapp using web3.js v1.0, truffle, react, and parity
Stars: ✭ 384 (+836.59%)
Mutual labels:  smart-contracts, truffle, ethereum-contract
etherbrite
🗓 Clone eventbrite on Ethereum, built in Solidity, TruffleJS, Web3js and React/Redux.
Stars: ✭ 19 (-53.66%)
Mutual labels:  smart-contracts, truffle, ethereum-contract
ethereum-dex
Decentralized exchange implementation for the 0xcert protocol on the Ethereum blockchain.
Stars: ✭ 18 (-56.1%)
Mutual labels:  smart-contracts, token
create-truffle-dapp
Create and deploy Truffle projects with no configuration.
Stars: ✭ 17 (-58.54%)
Mutual labels:  smart-contracts, truffle
truffle-react
⚛️ A boilerplate Truffle Box project with Create React App for rapid Ethereum Dapp development
Stars: ✭ 45 (+9.76%)
Mutual labels:  truffle, ethereum-contract
web3j-example
Android web3j example
Stars: ✭ 27 (-34.15%)
Mutual labels:  smart-contracts, truffle
ethereum-crowdsale
0xcert protocol crowdsale contracts for Ethereum blockchain.
Stars: ✭ 15 (-63.41%)
Mutual labels:  smart-contracts, token
proof-of-existence
Ethereum Smart Contract to prove a document's existence at some point by storing and verifying its hash.
Stars: ✭ 22 (-46.34%)
Mutual labels:  smart-contracts, truffle
erc721
The reference implementation of the ERC-721 non-fungible token standard.
Stars: ✭ 989 (+2312.2%)
Mutual labels:  smart-contracts, token
trufflepig
🍄🐷Truffle contract artifact loading tool for local development
Stars: ✭ 45 (+9.76%)
Mutual labels:  smart-contracts, truffle
eth-decoder
Simple library to decode ethereum transaction and logs
Stars: ✭ 32 (-21.95%)
Mutual labels:  smart-contracts, truffle
starter-kit-gsn
An OpenZeppelin starter kit focused on GSN.
Stars: ✭ 39 (-4.88%)
Mutual labels:  smart-contracts, truffle
blockstarter
This is a white label solution to create a contribution crypto-wallet that can be used in your ICO campaign.
Stars: ✭ 21 (-48.78%)
Mutual labels:  smart-contracts, token
tvdapp
Blockchain DApp using React, Next.js and MobX
Stars: ✭ 66 (+60.98%)
Mutual labels:  smart-contracts, truffle
pyrrha-consensus
Core set of Ethereum contracts for Pandora Boxchain functioning
Stars: ✭ 25 (-39.02%)
Mutual labels:  truffle, ethereum-contract
contracts
Neufund and platform smart contracts
Stars: ✭ 23 (-43.9%)
Mutual labels:  smart-contracts, ethereum-contract

Knowledge Ethereum Contracts

StandardJS Style Collaborative Etiquete Travis FOSSA Status Gitter

This repository contains all Ethereum Smart Contracts used at Knowledge.

Truffle is our development, testing and deployment framework.
OpenZeppelin is the solidity library we use for writing secure Smart Contracts on Ethereum.
We follow the Knowledge Project Guidelines and Consensys Best Practices.

Knowledge Token Sale

The Knowledge Token Sale starts on January 15, 2018 and it ends April 8th at 12pm. For more information visit knowledge.io or join the Knowledge Token Channel on Telegram where we'll be happy to discuss any questions you may have about our platform.

Contents

Features

  • Smart contract compilation, deployment and binary management with Truffle.
  • Automated contract testing with Mocha and Chai.
  • Solidity code linting with Solium.
  • Automated known vulnerability checks with Solium.
  • JavaScript code linting with StandardJS.
  • Secure solidity utility functions with OpenZeppelin Solidity
  • Continuous integration testing with Travis CI
  • Code testing coverage reports with solidity-coverage and codecov
  • Ethereum gas cost reporter with eth-gas-reporter
  • Configurable build pipeline with support for custom build processes.
  • Scriptable deployment & migrations with Truffle framework.
  • Upgradable ERC20 Token contract.
  • Network management for deploying to many public & private networks.
  • Ropsten TestNet deployment script.
  • Interactive console for direct contract communication.
  • Instant rebuilding of assets during development.
  • External script runner that executes scripts within a Truffle environment.

Contracts

All ethereum solidity smart contracts can be found in the /contracts directory.

  • ERC20Token.sol is a standard ERC20 token contract, based on OpenZeppelin implementation.
  • KnowledgeToken.sol is the ERC20 Token contract implementation for the KNW token. 150,000,000.00000000 tokens are created in total.
  • UpgradableToken.sol is used to be able to upgrade the contract. If we ever discover a security vulnerability or have the need to publish a another version of the token contract users will be able to migrate their tokens to the new contract version. It's inspired by Lunyr and Civic token contract.
  • PayableToken.sol is used to receive payments at the Knowledge Marketplace and Adviser Self Service Platform. It can generate payment requests and manage fees.
  • /utils/ is meant for utilitarian contracts, such as SafeMath or Ownable.
  • /interfaces/ are contracts used just for type safety.

Getting Started

For you to able to understand and execute the code in this repository advanced knowledge of JavaScript, Node.js and Ethereum is required. If you are not familiar with these technologies we suggest you to visit ethereum.org and learnnode.com.

To get started with smart contract programming with Solidity you can find an introduction to the language in the Solidity documentation. In the documentation, you can find code examples as well as a reference of the syntax and details on how to write smart contracts.

You can start using Solidity in your browser with no need to download or compile anything.

Environment Dependencies

You need some global environment configurations

Project Dependencies

In the project root directory run npm install to install all project dependencies

Running Development Mode

In separate tabs of your console run the following commands:

npm run ganache
npm run deploy

For more information visit the Truffle Framework documentation.

Testing your code

We do both static linting and analysis and functional tests.

npm run ganache
npm run lint
npm run test

Running scripts

You can run scripts with automated functionality like creating contracts and transfer tokens. Here's a list of scripts and how to run them:

  • npm run truffle:exec -- current-version - Displays the current version
  • npm run truffle:exec -- deploy-first-time [--network development] - Deploy all the neccesary contracts needed for the first time, or if you want to just create all the contracts again form zero
  • npm run truffle:exec -- upgrade-to-contract [--network development] - Upgrades the proxy contract to a new version, you'll be prompted with the contract name (the contract class name) of the contract to upgrade to. This will also updates the CURRENT_VERSION file in the root
  • npm run truffle:exec -- transfer-tokens [--network development] - This will help you transfer tokens from an account to another
  • npm run truffle:exec -- transfer-ether [--network development] - This will help you transfer ether from an account to another

Contributing

Read the contributing guidelines for details.

Bug Reporting

Please report bugs big and small by opening an issue. No possible bug report is too small.

License

MIT © Knowledge
See LICENSE for more info

FOSSA Status


About Knowledge

Blockchain technology is rebuilding the internet in a trustless, decentralized way, allowing for fundamental core improvements on existing business models and industries, and a new breed of dot-io powerhouse frameworks are emerging. Knowledge.io is producing an ecosystem that offers significant improvement in the areas of ad tech, commerce, education, and employment, and a supply and demand marketplace of goods and services, all based around rewarding users for what the massive and centralized supergiants utilize to make extraordinary profits - people’s data. The Knowledge.io ecosystem is built on the foundation of decentralization and rewarding people for sharing their knowledge.

knowledge.io

Knowledge Twitter Knowledge Facebook Knowledge Github

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].