Summary
This RFC proposes the complete removal of Toucan Carbon Token (TCO2) integration and Bridge functionality from app.regen.network. The integration spans frontend UI components, backend ledger modules, external API dependencies, and on-chain credit class data (C03).
1. Current State Analysis
1.1 On-Chain Assets (C03 Credit Class)
- Credit Class ID:
C03
- Admin:
regen1dlszg2sst9r69my4f84l3mj66zxcf3umcgujys30t84srg95dgvs8rn9rj
- Type: Carbon (C)
- Description: TCO2: Toucan Carbon Tokens Credit Class
- Active Batches: 16+ on mainnet (all with
open: true)
1.2 Frontend Components Affected
Core Bridge Feature
web-marketplace/src/features/ecocredit/BridgeFlow/
├── BridgeFlow.tsx
├── BridgeFlow.constants.ts
└── hooks/useCreditBridgeSubmit.tsx
Components
web-marketplace/src/components/organisms/BridgeModal/
web-marketplace/src/components/organisms/BridgedEcocreditsTable/
web-components/src/components/icons/ToucanIcon.tsx
web-components/src/components/modal/BridgeModal.tsx
web-components/src/components/form/BridgeForm.tsx
Dashboard/Routes
web-marketplace/src/pages/Dashboard/MyBridge/
web-marketplace/src/pages/Dashboard/hooks/useBridgeAvailabilty.tsx
web-marketplace/src/clients/regen/Regen.Routes.tsx
Type Definitions
web-marketplace/src/lib/db/types/json-ld/C03-toucan-batch.ts
web-marketplace/src/lib/db/types/json-ld/toucan-project-metadata.ts
1.3 Environment Variables
NEXT_PUBLIC_BRIDGE_API_URI=https://toucan-bridge-staging.herokuapp.com
NEXT_PUBLIC_TOUCAN_LINK=https://test.app.toucan.earth/?chainId=137
NEXT_PUBLIC_BRIDGE_CREDIT_CLASS_ID=C03
NEXT_PUBLIC_BRIDGE= # Feature flag
2. Proposed Removal Scope
Phase 1: UI Removal (Frontend-Only)
Files to DELETE (~22 files):
web-marketplace/src/features/ecocredit/BridgeFlow/ (entire directory)
web-marketplace/src/components/organisms/BridgeModal/ (entire directory)
web-marketplace/src/components/organisms/BridgedEcocreditsTable/ (entire directory)
web-components/src/components/icons/ToucanIcon.tsx
web-components/src/components/modal/BridgeModal.tsx
web-components/src/components/form/BridgeForm.tsx
web-marketplace/src/pages/Dashboard/MyBridge/ (entire directory)
web-marketplace/src/pages/Dashboard/hooks/useBridgeAvailabilty.tsx
web-marketplace/src/lib/db/types/json-ld/C03-toucan-batch.ts
web-marketplace/src/lib/db/types/json-ld/toucan-project-metadata.ts
web-marketplace/public/png/toucan-basket.png
Files to MODIFY (~11 files):
web-marketplace/src/clients/regen/Regen.Routes.tsx
web-marketplace/src/lib/tracker/types.ts
web-marketplace/src/lib/db/types/json-ld/credit-batch-intersection-ld.ts
web-marketplace/src/lib/db/types/json-ld/index.ts
web-components/src/components/icons/icons.stories.tsx
web-components/src/components/modal/modal.stories.tsx
web-marketplace/src/lib/i18n/locales/en.po
web-marketplace/src/lib/i18n/locales/es.po
.env.example
Phase 2: Ledger Module Deprecation (Optional)
- Requires governance proposal to remove "polygon" from
AllowedBridgeChainTable
- Would be tracked in separate issue in
regen-network/regen-ledger
Phase 3: C03 Credit Class Handling
Recommendation: Hide from new listings, maintain read-only view for existing credits
3. Timeline Estimate
| Phase |
Duration |
| Phase 1: UI Removal |
8-12 days |
| Phase 2: Ledger (optional) |
19-34 days |
| Phase 3: C03 Filtering |
2-4 days |
UI-only removal total: ~8-12 days
4. Risks & Mitigations
| Risk |
Mitigation |
| C03 credit holders lose access |
Maintain read-only view |
| In-progress bridges fail |
Monitor pending bridges before cutoff |
| External integrations break |
Communicate deprecation timeline |
| Regression in purchase flow |
Comprehensive E2E testing |
5. Rollback Plan
- Immediate: Set
NEXT_PUBLIC_BRIDGE=false to disable UI
- Git revert for frontend changes
- Ledger changes require governance to re-enable
6. Recommended Approach
- Immediate: Set
NEXT_PUBLIC_BRIDGE=false to disable bridge UI
- Week 1: Execute Phase 1 (UI removal)
- Week 2: Execute Phase 3 (C03 filtering)
- Month 2+: Evaluate need for Phase 2 (ledger deprecation)
7. Related Resources
Tasks Breakdown
Generated via Regen KOI MCP + Regen Ledger MCP
Summary
This RFC proposes the complete removal of Toucan Carbon Token (TCO2) integration and Bridge functionality from
app.regen.network. The integration spans frontend UI components, backend ledger modules, external API dependencies, and on-chain credit class data (C03).1. Current State Analysis
1.1 On-Chain Assets (C03 Credit Class)
C03regen1dlszg2sst9r69my4f84l3mj66zxcf3umcgujys30t84srg95dgvs8rn9rjopen: true)1.2 Frontend Components Affected
Core Bridge Feature
Components
Dashboard/Routes
Type Definitions
1.3 Environment Variables
2. Proposed Removal Scope
Phase 1: UI Removal (Frontend-Only)
Files to DELETE (~22 files):
web-marketplace/src/features/ecocredit/BridgeFlow/(entire directory)web-marketplace/src/components/organisms/BridgeModal/(entire directory)web-marketplace/src/components/organisms/BridgedEcocreditsTable/(entire directory)web-components/src/components/icons/ToucanIcon.tsxweb-components/src/components/modal/BridgeModal.tsxweb-components/src/components/form/BridgeForm.tsxweb-marketplace/src/pages/Dashboard/MyBridge/(entire directory)web-marketplace/src/pages/Dashboard/hooks/useBridgeAvailabilty.tsxweb-marketplace/src/lib/db/types/json-ld/C03-toucan-batch.tsweb-marketplace/src/lib/db/types/json-ld/toucan-project-metadata.tsweb-marketplace/public/png/toucan-basket.pngFiles to MODIFY (~11 files):
web-marketplace/src/clients/regen/Regen.Routes.tsxweb-marketplace/src/lib/tracker/types.tsweb-marketplace/src/lib/db/types/json-ld/credit-batch-intersection-ld.tsweb-marketplace/src/lib/db/types/json-ld/index.tsweb-components/src/components/icons/icons.stories.tsxweb-components/src/components/modal/modal.stories.tsxweb-marketplace/src/lib/i18n/locales/en.poweb-marketplace/src/lib/i18n/locales/es.po.env.examplePhase 2: Ledger Module Deprecation (Optional)
AllowedBridgeChainTableregen-network/regen-ledgerPhase 3: C03 Credit Class Handling
Recommendation: Hide from new listings, maintain read-only view for existing credits
3. Timeline Estimate
UI-only removal total: ~8-12 days
4. Risks & Mitigations
5. Rollback Plan
NEXT_PUBLIC_BRIDGE=falseto disable UI6. Recommended Approach
NEXT_PUBLIC_BRIDGE=falseto disable bridge UI7. Related Resources
Tasks Breakdown
NEXT_PUBLIC_BRIDGE=falsein productionGenerated via Regen KOI MCP + Regen Ledger MCP