Giter VIP home page Giter VIP logo

egemenkus / dessay-contracts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from korayakpinar/dessay-contracts

0.0 0.0 0.0 86 KB

Dessay is an Ethereum-based content sharing and voting platform. Users can share their writings, vote on others' content, and engage with comments. It leverages blockchain technology to ensure transparency, immutability, and fair voting mechanisms.

JavaScript 30.65% Solidity 69.35%

dessay-contracts's Introduction

Dessay

Dessay is a blockchain-based content sharing and voting platform built on Ethereum. It includes two smart contracts: DessayToken and Dessay. Users can enter their writings, vote on other writings, add comments, and stake Dessay tokens. The platform aims to provide a decentralized and incentivized ecosystem for content creators and readers.

Contracts

DessayToken

DessayToken is an ERC-20 compliant token contract representing the native currency of the Dessay platform. It allows users to create, transfer, and stake Dessay tokens. The contract implements features such as staking, unstaking, and calculating user power based on staked token amounts.

Dessay

Dessay is the main smart contract that powers the content sharing and voting functionalities of the Dessay platform. It enables users to publish their writings, vote on writings from others, add comments, and interact with the community. The contract includes various features and mappings to facilitate content organization, user interactions, and badge distribution.

Installation

To run the Dessay project locally, follow these steps:

  1. Clone the project repository: git clone https://github.com/korayakpinar/dessay.git

  2. Navigate to the project directory: cd dessay

  3. Install the required packages: npm install

Testing

To run the tests for Dessay contracts, use the following command in the project directory: npx hardhat test

This will execute the test script, which verifies the functionalities of the DessayToken and Dessay contracts.

Deployment

To deploy the DessayToken and Dessay contracts to an Ethereum network, follow these steps:

  1. Update the deployment script scripts/deploy.js with the desired network configuration if needed.

  2. Run the deployment script using the following command: npx hardhat run scripts/deploy.js --network <network-name>

Replace <network-name> with the name of your target Ethereum network (e.g., rinkeby or mainnet).

This command will deploy the DessayToken and Dessay contracts to the specified network and provide the contract addresses upon successful deployment.

Documentation

For detailed information about the project, including contract explanations and usage examples, refer to the project's GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

dessay-contracts's People

Contributors

korayakpinar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.