Skip to content

caigicungdev/Fluent-Storage-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Fluent Network Chain ID Python Web3.py

🌊 Fluent Storage Demo

Polymorphic Smart Contract Deployment Framework for Fluent Network

ExplorerDocumentationQuick Start


🎯 Overview

A professional automated framework for deploying and interacting with smart contracts on the Fluent Network. Features polymorphic deployment strategies with random contract selection for diverse on-chain footprints.

┌─────────────────────────────────────────────────────────────┐
│  📂 Load Wallets  →  💰 Check Balance  →  📝 Deploy Contract │
│                                                              │
│  ⏳ Wait 5s  →  🔄 Interact (store random value)  →  ✅ Done │
└─────────────────────────────────────────────────────────────┘

✨ Features

Feature Description
🔐 Secure Wallet Management Environment-based key storage via wallets.txt
Dynamic Gas Estimation Auto gas calculation with 50% safety buffer
🎲 Polymorphic Deployment Random contract selection (Storage/Counter)
🎨 Colorful Logging Rich terminal output with colorama
🛡️ Anti-Sybil Protection Random delays between operations

🔗 On-Chain Proof

👤 Developer0x2edf6941A4CC6892de65d415F435feCD0b1211a2
📄 Contract0xd39Af61160E3c22269f3D0061c863A28F5d8DE7c
🚀 Deploy Tx0x497fed...6b72
🔄 Interact Tx0xabe58d...bdb3

� Quick Start

Installation

# Clone repository
git clone https://github.com/caigicungdev/Fluent-Storage-Demo.git
cd Fluent-Storage-Demo

# Install dependencies
pip install web3 colorama

Configuration

Create wallets.txt with your private keys (one per line):

# Private keys (without 0x prefix)
your_private_key_here
another_private_key

Run

python3 fluent_deploy_bot.py

📜 Smart Contract

SimpleStorage.sol (Click to expand)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract SimpleStorage {
    uint256 private storedValue;
    
    function store(uint256 value) public {
        storedValue = value;
    }
    
    function retrieve() public view returns (uint256) {
        return storedValue;
    }
}

🛠️ Tech Stack

  • Runtime: Python 3.9+
  • Blockchain: Web3.py v7.0
  • Network: Fluent Testnet (Chain ID: 20994)
  • RPC: https://rpc.testnet.fluent.xyz/

🤝 Contributing

Contributions welcome! Feel free to submit issues and PRs.


Built with 💜 for Fluent Network
Author: JaydenCo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages