This repository contains smart contracts for the BOSAGORA ecosystem.
bosagora-erc20/
├── packages/
│ ├── contracts/ # Main contracts package
│ │ ├── contracts/ # Solidity contracts
│ │ │ ├── BOSAGORA.sol # Main token contract
│ │ │ ├── TokenSwap.sol # Token swap contract
│ │ │ └── MockERC20.sol # Mock token for testing
│ │ ├── test/ # Test files
│ │ ├── deploy/ # Deployment scripts
│ │ └── hardhat.config.ts # Hardhat configuration
│ └── library/ # Shared libraries
├── .github/ # GitHub configuration
└── active_contracts.json # Active contract addresses
The main token contract implementing the BOSAGORA (BOA) token.
Features:
- Fixed maximum supply of 4.95 billion BOA tokens
- 7 decimal places
- MultiSig wallet ownership
- Controlled minting functionality
- Ownership transfer capability
- ReentrancyGuard protection
Contract: packages/contracts/contracts/BOSAGORA.sol
A contract for swapping old tokens for new tokens with a burning mechanism.
Features:
- 1:1 token swap ratio
- Burning mechanism for old tokens
- MultiSig wallet ownership
- Pausable functionality
- Token rescue capability
- ReentrancyGuard protection
- Decimals compatibility check
Contract: packages/contracts/contracts/TokenSwap.sol
All contracts implement the following security measures:
- ReentrancyGuard implementation to prevent reentrancy attacks
- MultiSig wallet ownership for enhanced security
- Pausable functionality where applicable
- Safe token transfer and burning mechanisms
- Clear error messages and rollback capabilities
- Gas-optimized implementation
- OpenZeppelin Contracts
- MultiSig Wallet Contracts
- ^0.8.2
- ERC20 implementation
- ReentrancyGuard
- Pausable
- MultiSig wallet integration
- Node.js
- npm or yarn
- Hardhat
# Install root dependencies
npm install
# Install contracts package dependencies
cd packages/contracts
npm installcd packages/contracts
npx hardhat testcd packages/contracts
npx hardhat compile- BOSAGORA Token: [Address to be added]
- TokenSwap Contract: [Address to be added]
- BOSAGORA Token: [Address to be added]
- TokenSwap Contract: [Address to be added]
MIT License
BOSAGORA Foundation