Skip to content

Designed to empower global financial inclusion and streamline cross-border transactions. Built on a secure and scalable blockchain, DRIP focuses on sustainability, transparency, and community-driven growth. Its mission is to provide fast, low-cost, and eco-friendly digital payments.

Notifications You must be signed in to change notification settings

skyleraiguy/DRIP-Global-Coin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drip Global Coin

Drip Global Coin (DGC) is a cryptocurrency designed for microtransactions and Pay-As-You-Go services. This project includes the smart contract for the token, Python scripts to interact with the Ethereum blockchain, and a custom C library to handle transactions.

Project Structure

DripGlobalCoin/
├── .vscode/
│   └── settings.json
├── contracts/
│   └── DRIPGlobalCoin.sol
├── crypto-env/
│   ├── Include/
│   │   ├── drip_pay_lib.h
│   │   └── Python.h
│   ├── Lib/
│   ├── Scripts/
│   │   ├── compile_contract.py
│   │   ├── deploy_contract.py
│   │   ├── interact_contract.py
│   │   └── test_drippay.py
├── setup.py
├── Python.c
├── drip_pay_lib.c
├── pyvenv.cfg
└── README.md

Prerequisites

  • Python 3.8+
  • Ganache (for local Ethereum blockchain development)
  • Node.js and npm (for installing Truffle if needed)
  • Solidity compiler (solc) or (py-solc-x)

Installation

Setting Up the Environment

  1. Clone the Repository:

    git clone https://github.com/skyleraiguy/DripGlobalCoin.git
    cd DripGlobalCoin
  2. Create a Virtual Environment:

    python -m venv crypto-env
    source crypto-env/bin/activate   # On Windows use `crypto-env\Scripts\activate`
  3. Install Python Dependencies:

    pip install web3 py-solc-x
  4. Install Node.js and Truffle (if not already installed):

    npm install -g truffle

Compile and Deploy the Smart Contract

  1. Compile the Smart Contract:

    python crypto-env/Scripts/compile_contract.py
  2. Deploy the Smart Contract:

    • Update the YOUR_INFURA_ENDPOINT in deploy_contract.py.
    • Run the deployment script:
      python crypto-env/Scripts/deploy_contract.py

Build the C Extension Module

  1. Build the C Extension:
    python setup.py build_ext --inplace

Usage

Interacting with the Smart Contract

  1. Run the Interaction Script:
    • Update the YOUR_DEPLOYED_CONTRACT_ADDRESS in interact_contract.py.
    • Run the script:
      python crypto-env/Scripts/interact_contract.py

Testing the DripPay Library

  1. Run the Test Script:
    python crypto-env/Scripts/test_drippay.py

Files and Directories

  • .vscode/settings.json: Configuration for VSCode.
  • contracts/DRIPGlobalCoin.sol: Solidity smart contract for the Drip Global Coin.
  • crypto-env/Include/drip_pay_lib.h: Header file for the custom C library.
  • crypto-env/Include/Python.h: Header file for Python C API integration.
  • crypto-env/Lib/: Directory for any additional libraries.
  • crypto-env/Scripts/compile_contract.py: Script to compile the Solidity contract.
  • crypto-env/Scripts/deploy_contract.py: Script to deploy the compiled contract to the Ethereum blockchain.
  • crypto-env/Scripts/interact_contract.py: Script to interact with the deployed smart contract.
  • crypto-env/Scripts/test_drippay.py: Script to test the drippay module.
  • setup.py: Setup script to build the C extension module.
  • Python.c: Implementation of the functions declared in Python.h.
  • drip_pay_lib.c: Implementation of the core logic of the custom library.
  • pyvenv.cfg: Configuration for the Python virtual environment.

License

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

Contact

For more information, you can connect with Skyler Seegmiller on here on LinkedIn or X.

LinkedIn X


This `README.md` file provides a comprehensive guide to setting up and using your Drip Global Coin project, including compiling and deploying the smart contract, building the C extension module, and running tests. Make sure to replace placeholders like `YOUR_INFURA_ENDPOINT` and `YOUR_DEPLOYED_CONTRACT_ADDRESS` with actual values relevant to your deployment.

About

Designed to empower global financial inclusion and streamline cross-border transactions. Built on a secure and scalable blockchain, DRIP focuses on sustainability, transparency, and community-driven growth. Its mission is to provide fast, low-cost, and eco-friendly digital payments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages