Skip to content

[WIP] Create documentation for deployed NetDAG contracts#6

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/create-contract-address-registry
Draft

[WIP] Create documentation for deployed NetDAG contracts#6
Copilot wants to merge 1 commit intomainfrom
copilot/create-contract-address-registry

Conversation

Copy link

Copilot AI commented Feb 17, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

📋 Create Contract Address Registry

Create comprehensive documentation and configuration files for all deployed NetDAG contracts on BSC Testnet.


🎯 FILES TO CREATE/UPDATE:

1. Create DEPLOYED-CONTRACTS.md (Root directory)

# 📋 NetDAG Deployed Contracts Registry

**Network:** BSC Testnet (Chain ID: 97)  
**Deployment Date:** February 2026  
**Deployer Wallet:** `0xF6b3c63722182eD9e7889aDD34A4F97c25e1B318`

---

## 🔗 Quick Links

- **BSC Testnet Explorer:** https://testnet.bscscan.com
- **Testnet Faucet:** https://testnet.bnbchain.org/faucet-smart
- **Network RPC:** https://data-seed-prebsc-1-s1.binance.org:8545/

---

## 📜 Deployed Contracts

### 1. 🪙 NDG Token (ERC-20)

**Address:** `0xf8E886791E26DFD9195C1225b4Ca6458725DAe50`  
**Contract:** `NDGToken.sol`  
**Status:** ✅ Active  
**BSCScan:** https://testnet.bscscan.com/address/0xf8E886791E26DFD9195C1225b4Ca6458725DAe50

**Description:**  
The main NetDAG (NDG) token contract. ERC-20 compliant with 18 decimals.

**Key Features:**
- Total Supply: 1,000,000,000 NDG (1 Billion)
- Mintable by owner
- Standard ERC-20 functions (transfer, approve, transferFrom)
- Ownable (can transfer ownership)

**Key Functions:**
- `balanceOf(address)` - Check token balance
- `transfer(address to, uint256 amount)` - Transfer tokens
- `approve(address spender, uint256 amount)` - Approve spending
- `mint(address to, uint256 amount)` - Mint new tokens (owner only)

---

### 2. 💰 Presale Contract (with Vesting & Referrals)

**Address:** `0x74d469c0eEd89b0F17189c824C95622C680f803E`  
**Contract:** `PresaleWithVesting.sol`  
**Status:** ✅ Active  
**BSCScan:** https://testnet.bscscan.com/address/0x74d469c0eEd89b0F17189c824C95622C680f803E

**Description:**  
Main presale contract with 9-tier pricing structure, vesting support, and 5% referral rewards.

**Key Features:**
- 9-tier progressive pricing ($0.025 - $0.065 per NDG)
- Accepts BNB, USDT, BUSD
- 5% referral bonus system
- Automatic vesting integration
- Chainlink price feed integration
- Min contribution: $50 USD
- Max contribution: $50,000 USD

**Key Functions:**
- `buyWithBNB(address referrer)` - Purchase with BNB
- `buyWithStable(address token, uint256 amount, address referrer)` - Purchase with stablecoins
- `tiers(uint256 index)` - Get tier details (price, cap, sold)
- `totalSoldUsd18()` - Total USD raised
- `contributionUsd18(address)` - User's total contribution
- `paused()` - Check if presale is active

**Tier Structure:**
| Tier | Price (USD) | Cap (USD) |
|------|-------------|-----------|
| 0    | $0.025      | $500,000  |
| 1    | $0.030      | $500,000  |
| 2    | $0.035      | $500,000  |
| 3    | $0.040      | $500,000  |
| 4    | $0.045      | $500,000  |
| 5    | $0.050      | $500,000  |
| 6    | $0.055      | $500,000  |
| 7    | $0.060      | $500,000  |
| 8    | $0.065      | $500,000  |

**Referral System:**
- Referrer receives 5% bonus in NDG tokens
- Referee pays normal price (no discount)
- Bonus credited immediately
- Pass `address(0)` if no referrer

---

### 3. 🔒 Vesting Vault

**Address:** `0x0aC817497d482629879d9c44fF226C033c5f64D4`  
**Contract:** `VestingVault.sol`  
**Status:** ✅ Active  
**BSCScan:** https://testnet.bscscan.com/address/0x0aC817497d482629879d9c44fF226C033c5f64D4

**Description:**  
Manages token vesting schedules for presale participants and team allocations.

**Key Features:**
- Time-locked token release
- Cliff period support
- Linear vesting over time
- Beneficiary withdrawal system
- Multiple vesting schedules per beneficiary

**Key Functions:**
- `createVestingSchedule(address beneficiary, uint256 start, uint256 cliff, uint256 duration, uint256 amount)` - Create vesting
- `release(address beneficiary)` - Release vested tokens
- `getVestingSchedule(address beneficiary)` - Get vesting details
- `getReleasableAmount(address beneficiary)` - Check claimable tokens

---

### 4. 🥩 Staking Contract

**Address:** `0x7730dCD24b93F171A7B7B85FcDB4193E94614D70`  
**Contract:** `Staking.sol`  
**Status:** 🚧 Coming Soon  
**BSCScan:** https://testnet.bscscan.com/address/0x7730dCD24b93F171A7B7B85FcDB4193E94614D70

**Description:**  
Allows NDG token holders to stake their tokens and earn rewards.

**Key Features:**
- Stake NDG tokens
- Earn rewards over time
- Withdraw staked tokens
- Claim accumulated rewards
- Limited reward pool (60M NDG allocated)

**Key Functions:**
- `stake(uint256 amount)` - Stake NDG tokens
- `withdraw(uint256 amount)` - Withdraw staked tokens
- `getReward()` - Claim accumulated rewards
- `balanceOf(address account)` - Check staked balance
- `earned(address account)` - Check pending rewards

**Note:** Staking will only accept new stakes if sufficient rewards remain in the pool.

---

## 👤 Deployer Account

**Address:** `0xF6b3c63722182eD9e7889aDD34A4F97c25e1B318`  
**Type:** EOA (Externally Owned Account)  
**Role:** Contract Owner & Deployer  
**BSCScan:** https://testnet.bscscan.com/address/0xF6b3c63722182eD9e7889aDD34A4F97c25e1B31...

</details>



<!-- START COPILOT CODING AGENT SUFFIX -->

*This pull request was created from Copilot chat.*
>

<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants