π± CO2NEX Wallet Smart Contracts power the next generation of environmental finance β tokenizing Carbon Credits, Water Credits, Biodiversity Offsets, and more using ERC-1155 on the Polygon blockchain, with built-in escrow and Ethereum interoperability bridges.
- Project: CO2NEX Wallet Smart Contracts
- Version: v1.0.0-alpha
- Network: Polygon, Ethereum
- License: MIT
- Status: Alpha β Internal Testing Only
- π Collaborate on improvements
- π€ Get support and ask questions
- π‘ Share ideas and feedback
- π Stay updated with announcements and releases
Engage with developers, contributors, and the climate tech blockchain community to build the future of transparent, tokenized climate action.
If you love what we're building β open-source blockchain solutions for environmental impact β you can support the project:
- ETH:
0x9d1Df1C2CABB2338301b6eA25b10760f3F437fF5 - USDC / USDT ERC20:
0x9d1Df1C2CABB2338301b6eA25b10760f3F437fF5 - Polygon (MATIC):
0x3a27102ac1AF27cD3eE29688a413dc7d1333A00D - Polygon - USDC / USDT:
0x3a27102ac1AF27cD3eE29688a413dc7d1333A00D - Bitcoin (BTC):
bc1qh7ry3889lc9y9x8hn5uy25c6705eym3ks02jet - BNB:
0xEa6E44e3C7a16E08Ffc5b89f61933C7E39132c5B
Become a sponsor and help fund CO2NEX development:
π GitHub Sponsors
#CO2NEX #BlockchainClimateAction #SmartContracts #Polygon #Ethereum #HIBCToken #ESG #CarbonCredits #Web3 #ClimateTech #SustainabilityBlockchain #TokenizedClimate #TrustlessEscrow #Solidity #ERC1155 #GreenTech #OpenSourceBlockchain #CarbonMarkets
- πΌ Smart Contracts: View the Repo
- π§ Join Discussions: Start Talking
- π Roadmap & Ideas: Share Ideas
- π Announcements: View Updates
CO2NEX, Carbon Credits Blockchain, Polygon Smart Contracts, ERC-1155 Escrow, Tokenized Environmental Assets, Sustainable Blockchain, Ethereum Bridge, Carbon Credit Token, HIBC Token, Web3 Climate Solutions
co2nex-wallet-smart-contracts
βββ contracts
β βββ CO2NEX1155.sol # ERC-1155 token contract
β βββ Escrow1155.sol # Escrow contract
β βββ Migrations.sol # (Optional) deployment helper
βββ scripts
β βββ deploy.js # Deploy contracts
β βββ mint.js # Mint tokens
β βββ interact.js # Run contract interactions
βββ test
β βββ token1155.test.js # ERC-1155 unit tests
β βββ escrow1155.test.js # Escrow unit tests
βββ .devcontainer
β βββ devcontainer.json # VSCode remote container setup
βββ .gitignore
βββ hardhat.config.js
βββ package.json
βββ README.md
βββ .env.example
| Contract | Purpose |
|---|---|
CO2NEX1155.sol |
ERC-1155 Multi-Asset Token for HIBC credits |
Escrow1155.sol |
Secure escrow for tokenized credit transactions |
Migrations.sol |
Deployment helper (optional) |
| Token ID | Asset Type |
|---|---|
| 1 | Carbon Credits |
| 2 | Water Credits |
| 3 | Biodiversity Credits |
| β | Fully Extendable |
git clone https://github.com/CO2NEX/co2nex-wallet-smart-contracts.git
cd co2nex-wallet-smart-contractsnpm installcp .env.example .envThen edit .env with your values:
POLYGON_RPC_URL=https://polygon-rpc.com
ETHEREUM_RPC_URL=https://mainnet.infura.io/v3/YOUR_INFURA_KEY
PRIVATE_KEY=YOUR_WALLET_PRIVATE_KEYnpx hardhat compilenpx hardhat run scripts/deploy.js --network localhostnpx hardhat run scripts/deploy.js --network polygon-
Buyer:
- Calls
createDeal()passing the seller, token ID, and amount. - Tokens are transferred from buyer to the escrow contract.
- Calls
-
Escrow Holds Tokens:
- Tokens are securely held in the
Escrow1155contract until release.
- Tokens are securely held in the
-
Release Deal:
- Buyer OR contract owner calls
releaseDeal(dealId). - Tokens are transferred to the seller.
- Buyer OR contract owner calls
Run all unit tests:
npx hardhat testTest files:
test/token1155.test.jstest/escrow1155.test.js
- Local Development: Hardhat
- Mainnet/Testnet: Polygon (MATIC) + Ethereum bridge-ready
- Solidity:
^0.8.24 - Hardhat: Development environment
- OpenZeppelin: Security libraries
- Node.js: Scripting
Runs perfectly in GitHub Codespaces or Gitpod with pre-configured VSCode settings.
CO2NEX, Polygon Blockchain, ERC1155, Carbon Credit Token, HIBC, Escrow Smart Contract, Environmental Assets, Sustainability Blockchain, Crypto Carbon Trading, Hardhat, Web3
MIT License β open-source for environmental impact.
Version: v1.0.0-alpha
Not Production Ready β Internal Testing Only.
"Building the world's first tokenized climate finance infrastructure β for a cleaner planet."