From 648b73f77f435cc4e33a87345870151e90466613 Mon Sep 17 00:00:00 2001 From: Kunal Date: Sat, 6 Sep 2025 12:44:41 +0530 Subject: [PATCH 1/3] Bastion Protocol Application Added detailed documentation for the Bastion Protocol, including project overview, team information, development roadmap, and future plans. --- applications/bastion_protocol.md | 201 +++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 applications/bastion_protocol.md diff --git a/applications/bastion_protocol.md b/applications/bastion_protocol.md new file mode 100644 index 00000000000..825310171f0 --- /dev/null +++ b/applications/bastion_protocol.md @@ -0,0 +1,201 @@ +# Bastion Protocol + +- **Team Name:** Bastion Labs +- **Payment Details:** + - **DOT**: 1U3JboaBjPViEFDwwzKpFLVeV2LHQx9Jy31FuMgHuRBnmxq + - **Payment**: 1U3JboaBjPViEFDwwzKpFLVeV2LHQx9Jy31FuMgHuRBnmxq (USDC) +- **[Level](https://grants.web3.foundation/docs/Introduction/levels):** 1 + +## Project Overview :page_facing_up: + +### Overview + +- **Tagline:** Circle-Based Finance (CBF) primitives for collaborative DeFi on Substrate +- **Description:** Bastion Protocol introduces Circle-Based Finance, a decentralized model where users form "circles" (social groups) to pool assets, participate in auctions, and manage staking collectively. Unlike traditional individualistic DeFi, Bastion leverages social trust and group coordination to enable new financial primitives. +- **Substrate Integration:** The project develops a native Substrate pallet (`pallet-circles`) that implements group-based financial operations as first-class runtime primitives, extending Polkadot's DeFi capabilities with social finance mechanisms. +- **Team Interest:** We believe DeFi's future lies in combining social trust with decentralized technology. Traditional finance has always been social - from village lending circles to investment clubs. Bastion brings this collaborative element to blockchain while maintaining decentralization. + +### Project Details + +**Core Architecture:** +- **`pallet-circles`**: Substrate pallet implementing circle creation, membership management, collective deposits, group staking, and auction participation +- **Demo Substrate Chain**: Local testnet showcasing pallet integration +- **React dApp**: Frontend interface for circle management and auction participation +- **Event Indexing**: Basic indexer for tracking circle activities and state changes + +**Technology Stack:** +- **Runtime**: Substrate FRAME, Rust +- **Frontend**: React, Polkadot.js API, TypeScript +- **Indexing**: SubQuery or custom lightweight indexer +- **Testing**: Substrate test framework, Jest for frontend + +**Key Features (Level 1 Scope):** +1. **Circle Management**: Create circles with configurable governance parameters (quorum, voting thresholds) +2. **Collective Deposits**: Members contribute assets to shared circle treasury +3. **Group Staking**: Circles can collectively stake pooled assets (using mock staking for demo) +4. **Circle Auctions**: Groups can participate in on-chain auctions for digital assets +5. **Basic Governance**: Simple voting mechanisms for auction participation decisions + +**What this project will NOT provide:** +- Production-ready lending/borrowing protocols (future milestone) +- Cross-chain functionality (future milestone) +- Advanced reputation systems (future milestone) +- Token economics or tokenomics design +- Mainnet deployment or production hosting + +### Ecosystem Fit + +**Position in Ecosystem:** +Bastion fills a gap in Polkadot's DeFi stack by introducing social finance primitives. While existing parachains focus on individual financial operations, Bastion enables group-based financial coordination as a core runtime primitive. + +**Target Audience:** +- **Primary**: Substrate developers building DeFi applications who need group coordination primitives +- **Secondary**: DeFi projects exploring social trust mechanisms +- **Tertiary**: Communities seeking decentralized pooled asset management + +**Needs Addressed:** +- **Collective Asset Management**: Many communities want to pool resources but lack decentralized tools +- **Social Trust in DeFi**: Individual-only DeFi ignores the social nature of finance and trust networks +- **Group Decision Making**: Need for transparent, on-chain group financial decisions + +**Evidence of Need:** +- Traditional finance has always included group mechanisms (investment clubs, lending circles, cooperatives) +- Existing DeFi protocols often require users to form informal groups off-chain for large operations +- Community DAOs struggle with financial coordination tools beyond basic treasury management + +**Similar Projects Analysis:** +- **Polkadot Ecosystem**: No direct equivalent focusing on social finance primitives as runtime modules +- **Other Ecosystems**: + - Ethereum has informal group coordination (multisigs, Gnosis Safe) but lacks native social finance primitives + - Traditional lending circles exist in various forms but aren't blockchain-native + +**Unique Differentiators:** +- First-class Substrate pallet for social finance (not just smart contracts) +- Focus on group coordination primitives rather than individual DeFi tools +- Designed for extension by other parachains and applications + +## Team :busts_in_silhouette: + +### Team members + +- Kunal (Lead Developer) +- Priya (Software Engineer) + +### Contact + +- **Contact Name:** Kunal +- **Contact Email:** kunaldrall29@gmail.com +- **Website:** https://bastionprotocol.pro + +### Legal Structure + +- **Registered Address:** N/A +- **Registered Legal Entity:** No legal entity at this stage. Project delivered under 29projects Labs open-source collective. + +### Team's experience + +**Kunal** brings 2+ years of Web3 development experience with multiple hackathon wins across Solana, Sui, and EVM ecosystems. As lead at 29projectslab, he has delivered full-stack dApps integrating complex DeFi protocols with user-friendly interfaces. His experience spans frontend development, smart contract integration, and protocol design. + +**Priya** is an experienced Rust and React developer who has contributed to various DeFi and NFT projects. Her expertise includes building secure smart contracts, backend APIs, and blockchain infrastructure. She brings deep technical knowledge of frontend and blockchain development. +Together, the team has demonstrated ability to deliver complete Web3 solutions from protocol design through frontend implementation, with particular strength in DeFi primitives and user experience design. + +### Team Code Repos + +- https://github.com/kunal-drall +- https://github.com/priaaa29 + +### Team LinkedIn Profiles (if available) + +- https://www.linkedin.com/in/kunaldrall +- https://www.linkedin.com/in/priya-singh-41466a304/ + +## Development Status :open_book: + +**Current Status:** Concept stage with preliminary research completed. + +**Prior Work:** +- Research into existing DeFi coordination mechanisms and their limitations +- Analysis of traditional lending circles and community finance models +- Technical evaluation of Substrate pallet development requirements +- Review of similar projects in other ecosystems for differentiation + +**Research Foundation:** +- Study of academic literature on social trust in financial systems +- Analysis of successful community-driven financial initiatives +- Technical research into Substrate FRAME architecture and pallet development patterns + +## Development Roadmap :nut_and_bolt: + +### Overview + +- **Total Estimated Duration:** 6 weeks +- **Full-Time Equivalent (FTE):** 1.5 FTE +- **Total Costs:** $10,000 USD +- **DOT %:** 50% + +### Milestone 1 — Core Pallet & Demo Chain + +- **Estimated duration:** 3 weeks +- **FTE:** 1.5 +- **Costs:** $5,000 USD + +| Number | Deliverable | Specification | +| -----: | ----------- | ------------- | +| **0a.** | License | Apache 2.0 | +| **0b.** | Documentation | Inline code documentation and basic tutorial explaining how to spin up the demo chain, create circles, and participate in auctions. | +| **0c.** | Testing and Testing Guide | Core pallet functions will be fully covered by unit tests (≥80% coverage). Guide will explain how to run tests and verify functionality. | +| 1. | Substrate pallet: `pallet-circles` | Core pallet implementing: circle creation with configurable parameters (quorum, member limits), member management (join/leave), collective deposit functionality, and basic storage for circle state. | +| 2. | Substrate pallet: Mock Staking Integration | Extension to pallet-circles enabling groups to participate in staking operations using mock staking module for demonstration purposes. | +| 3. | Substrate pallet: Circle Auctions | Auction functionality allowing circles to collectively bid on mock digital assets (NFTs) with member voting on participation. | +| 4. | Demo Substrate Chain | Complete working chain with pallet-circles integrated, demonstrating all core functionalities in local development environment. | +| 5. | CLI/Polkadot.js Integration | Basic integration enabling circle creation, membership management, and auction participation through Polkadot.js Apps UI. | + +### Milestone 2 — Demo dApp & Documentation + +- **Estimated Duration:** 3 weeks +- **FTE:** 1.5 +- **Costs:** $5,000 USD + +| Number | Deliverable | Specification | +| -----: | ----------- | ------------- | +| **0a.** | License | Apache 2.0 | +| **0b.** | Documentation | Complete documentation including technical specifications, user flow diagrams, and comprehensive tutorial on building Circle-Based Finance applications on Substrate. | +| **0c.** | Testing and Testing Guide | Frontend components tested with Jest, integration tests for pallet-dApp interaction, comprehensive testing guide. | +| **0d.** | Article | Technical article explaining Circle-Based Finance concepts, implementation details, and potential applications in the Polkadot ecosystem. | +| 1. | React dApp Frontend | Complete web application built with React and Polkadot.js API featuring circle management interface, auction participation flows, and treasury balance displays. | +| 2. | Extended Pallet Governance | Enhanced pallet-circles with voting mechanisms for auction decisions, proposal systems, and basic governance primitives. | +| 3. | Event System & Indexing | Event emission from pallet operations and lightweight indexer (SubQuery or custom) for tracking circle activities and historical data. | +| 4. | Comprehensive Tutorial | Step-by-step guide "Building Circle-Based Finance on Substrate" including code examples, deployment instructions, and extension patterns. | +| 5. | Public Repository | Complete open-source repository with all code, documentation, tests, and demo deployment instructions published on GitHub. | + +## Future Plans + +**Long-term Maintenance:** +The team plans to maintain and extend Bastion Protocol through a combination of: +- Community contributions and open-source development +- Follow-up grant applications for advanced features +- Potential integration partnerships with existing Polkadot parachains + +**Short-term Enhancement (Post-Level 1):** +- Apply for Level 2 grant to implement circle-based lending and borrowing +- Develop cross-chain integration capabilities with other parachains +- Build reputation and credit scoring mechanisms +- Create more sophisticated governance and proposal systems + +**Long-term Vision:** +Bastion Protocol aims to become the foundational social finance layer for the Polkadot ecosystem, enabling parachains to integrate group-based financial primitives and fostering new models of decentralized community finance. + +**Community Building:** +- Developer documentation and tutorials to encourage adoption +- Workshops and presentations at Substrate/Polkadot events +- Open-source community building around social finance primitives + +## Additional Information :heavy_plus_sign: + +**How did you hear about the Grants Program?** Web3 Foundation website and Polkadot developer documentation. + +**Additional Context:** +- This project represents the foundational layer for a broader vision of social finance in Web3 +- The team is committed to open-source development and ecosystem collaboration +- All deliverables will be designed for extensibility and integration by other developers +- The project addresses a genuine gap in current DeFi offerings by focusing on group coordination primitives From 99d2027d272a60f1c63154a61183a81d07b112ab Mon Sep 17 00:00:00 2001 From: Kunal Date: Tue, 30 Sep 2025 00:12:11 +0530 Subject: [PATCH 2/3] Revise Bastion Protocol documentation for clarity and detail Updated project overview and details for Bastion Protocol, enhancing clarity on its goals, technology stack, and unique selling propositions. Expanded sections on team experience, development status, roadmap, and future plans. --- applications/bastion_protocol.md | 382 ++++++++++++++++++++++--------- 1 file changed, 275 insertions(+), 107 deletions(-) diff --git a/applications/bastion_protocol.md b/applications/bastion_protocol.md index 825310171f0..d7360ae8c58 100644 --- a/applications/bastion_protocol.md +++ b/applications/bastion_protocol.md @@ -10,69 +10,186 @@ ### Overview -- **Tagline:** Circle-Based Finance (CBF) primitives for collaborative DeFi on Substrate -- **Description:** Bastion Protocol introduces Circle-Based Finance, a decentralized model where users form "circles" (social groups) to pool assets, participate in auctions, and manage staking collectively. Unlike traditional individualistic DeFi, Bastion leverages social trust and group coordination to enable new financial primitives. -- **Substrate Integration:** The project develops a native Substrate pallet (`pallet-circles`) that implements group-based financial operations as first-class runtime primitives, extending Polkadot's DeFi capabilities with social finance mechanisms. -- **Team Interest:** We believe DeFi's future lies in combining social trust with decentralized technology. Traditional finance has always been social - from village lending circles to investment clubs. Bastion brings this collaborative element to blockchain while maintaining decentralization. +**Tagline:** Circle-Based Finance (CBF) primitives for collaborative DeFi on Polkadot Asset Hub + +**Description:** + +Bastion Protocol introduces Circle-Based Finance, where users form "circles" (social groups) to collectively pool assets, stake together, and participate in auctions. Unlike traditional DeFi that serves only individual users, Bastion leverages social trust + group coordination to enable new financial primitives on Polkadot Asset Hub. + +**Integration with Polkadot:** + +We're building a native Substrate pallet (`pallet-circles`) for Polkadot's Asset Hub, making group-based financial coordination available as runtime primitives that any parachain or dApp can integrate. This extends Polkadot's DeFi capabilities with social finance mechanisms at the protocol level. + +**Why We're Building This:** + +Traditional finance has always been social—lending circles, credit unions, investment clubs. DeFi currently ignores this, requiring massive over-collateralization and serving only wealthy individuals. We're bringing collaborative finance to Web3 natively, enabling communities to coordinate financially with blockchain transparency and security. + +### Problem Being Solved + +**Three Critical Gaps in DeFi:** + +**1. Over-Collateralization Excludes Most Users** + +Current DeFi requires 150-200% collateral to borrow or participate. To borrow $1,000, you need $1,500+ locked up. This excludes anyone without existing crypto wealth and ignores that traditional finance successfully uses social trust and reputation to reduce collateral needs. + +*Example: A farmer with strong community ties and reliable income can't access DeFi lending despite being creditworthy in their local community.* + +**2. Communities Lack Group Coordination Tools** + +DAOs, investment clubs, and communities want to pool funds and make collective financial decisions, but blockchain provides no native primitives. Current options are limited: +- Multi-sigs: Only transaction signing, no governance or treasury management +- Off-chain coordination: Discord/Telegram with trust issues +- Custom smart contracts: Expensive to build from scratch, not standardized + +*Example: 10 friends want to pool $50K for parachain auctions. Options are a multisig (everyone signs every transaction) or trusting one person (centralization risk).* + +**3. Traditional Lending Circles Remain Informal** + +Rotating Savings and Credit Associations (ROSCAs) exist globally—"stokvels" in Africa, "tandas" in Latin America, "hui" in Asia—collectively managing billions. But they're informal, geographically limited, vulnerable to fraud, and can't integrate with financial services. + +*Example: A "paluwagan" lending circle in the Philippines managing $10K monthly collapses when the organizer moves, because there's no transparent, portable infrastructure.* + +**How Bastion Solves This:** + +We create **native runtime primitives for group finance**, enabling circles to: +- Pool assets with transparent on-chain treasury management +- Make collective financial decisions through built-in governance +- Participate in staking and auctions as unified groups +- Reduce collateral needs through social accountability +- Scale globally while maintaining local trust + +### Unique Selling Proposition (USP) + +**What Makes Bastion Unique:** + +**1. Runtime Primitives, Not Smart Contracts** + +Bastion implements social finance as native Substrate FRAME pallets, not smart contracts. This provides: +- Better performance and lower costs than smart contract execution +- Protocol-level security instead of relying on contract audits +- Direct composability—other parachains integrate the pallet into their runtime +- Upgradeability through governance without user migration + +**2. Hybrid Trust Model** + +We bridge two extremes: +- **Traditional DeFi**: Pure algorithmic trust requires 150-200% collateral, excludes most people +- **Traditional Lending Circles**: Pure social trust is vulnerable to fraud, lacks transparency + +**Bastion's approach**: Groups leverage social relationships to reduce collateral, while blockchain provides transparency, programmable enforcement, and accountability. Result: Under-collateralized lending becomes possible through group accountability. + +**3. Composable Primitives for Entire Ecosystem** + +`pallet-circles` is designed as foundational infrastructure: +- Parachains integrate the pallet to add group coordination features +- dApp developers build on circle primitives without starting from scratch +- Standardized interfaces enable cross-ecosystem interoperability +- Similar to how `pallet-assets` enabled an asset management ecosystem + +**4. Built for Asset Hub** + +Unlike standalone chains or generic smart contracts: +- Native integration with Polkadot Asset Hub for multi-asset support +- Circle treasuries hold DOT, USDC, USDT, custom assets +- Cross-parachain compatibility through Asset Hub +- Polkadot shared security model + +**5. Collective DeFi Operations** + +Not just holding funds together—groups can: +- Collectively stake with automatic reward distribution +- Participate in auctions together, pooling capital +- Future: Provide liquidity to DEXs, operate lending pools + +### Competitive Analysis + +**Within Polkadot:** + +- **Acala, Parallel**: Individual DeFi (lending, staking) for solo users. No group coordination primitives. +- **Astar**: Smart contract platform. Developers build group features from scratch. +- **Moonbeam**: EVM compatibility inherits Ethereum's limitations. + +**Key Difference**: No Polkadot parachain provides **runtime-level group financial coordination primitives**. + +**Outside Polkadot:** + +- **Gnosis Safe (Ethereum)**: Multi-sig for transaction signing only. No governance, treasury management, or collective operations. Not composable. +- **DAOs (Aragon, Moloch)**: Governance frameworks, not financial coordination primitives. Each DAO builds independently, no standardization. +- **Lido, Rocket Pool**: Protocol-specific pooled staking. Not general-purpose primitives. +- **Web2 Fintech** (eMoneyPool, Puddle): Centralized ROSCA apps. Single points of failure, geographically limited, not composable. + +**Bastion's Edge:** + +Only solution providing: +✅ Native runtime primitives (not smart contracts) +✅ Built specifically for Polkadot Asset Hub integration +✅ Composable primitives other developers can leverage +✅ Collective DeFi operations (staking, auctions, lending) +✅ Social trust + blockchain security hybrid model + +This combination doesn't exist elsewhere in blockchain. ### Project Details -**Core Architecture:** -- **`pallet-circles`**: Substrate pallet implementing circle creation, membership management, collective deposits, group staking, and auction participation -- **Demo Substrate Chain**: Local testnet showcasing pallet integration -- **React dApp**: Frontend interface for circle management and auction participation -- **Event Indexing**: Basic indexer for tracking circle activities and state changes +**Architecture:** + +1. **`pallet-circles`**: Core Substrate pallet implementing: + - Circle creation with configurable governance (voting thresholds, quorum) + - Member management (join/leave/roles) + - Treasury operations (deposits, withdrawals, balance tracking) + - Governance (proposals, voting, execution) + - Collective staking and auction participation + - Comprehensive event emission + +2. **Asset Hub Integration**: Circles manage assets via Asset Hub (DOT, USDC, USDT, custom assets) + +3. **React dApp**: Web interface for circle management, governance, staking, auctions + +4. **Event Indexer**: SubQuery or custom indexer for historical data and queries **Technology Stack:** -- **Runtime**: Substrate FRAME, Rust -- **Frontend**: React, Polkadot.js API, TypeScript -- **Indexing**: SubQuery or custom lightweight indexer -- **Testing**: Substrate test framework, Jest for frontend - -**Key Features (Level 1 Scope):** -1. **Circle Management**: Create circles with configurable governance parameters (quorum, voting thresholds) -2. **Collective Deposits**: Members contribute assets to shared circle treasury -3. **Group Staking**: Circles can collectively stake pooled assets (using mock staking for demo) -4. **Circle Auctions**: Groups can participate in on-chain auctions for digital assets -5. **Basic Governance**: Simple voting mechanisms for auction participation decisions - -**What this project will NOT provide:** -- Production-ready lending/borrowing protocols (future milestone) -- Cross-chain functionality (future milestone) -- Advanced reputation systems (future milestone) -- Token economics or tokenomics design -- Mainnet deployment or production hosting +- Runtime: Substrate FRAME, Rust +- Frontend: React, TypeScript, Polkadot.js API, Tailwind CSS +- Indexing: SubQuery, PostgreSQL, GraphQL +- Testing: Substrate tests, Jest + +**Level 1 Scope:** +- Circle management and member operations +- Collective deposits and treasury +- Group staking (mock for demo) +- Circle auctions +- Basic governance (proposals, voting) + +**Out of Scope for Level 1:** +- Lending/borrowing (Level 2) +- Advanced reputation systems (Level 2) +- Cross-chain beyond Asset Hub (Level 2) +- Mainnet deployment or audits +- Tokenomics ### Ecosystem Fit -**Position in Ecosystem:** -Bastion fills a gap in Polkadot's DeFi stack by introducing social finance primitives. While existing parachains focus on individual financial operations, Bastion enables group-based financial coordination as a core runtime primitive. +**Position in Polkadot:** + +Bastion provides foundational social finance primitives that complement existing infrastructure: +- **Asset Hub**: We extend it with group coordination +- **DeFi Parachains**: Can integrate our primitives for collective features +- **DAO Platforms**: We focus on financial coordination; they focus on governance +- **NFT Marketplaces**: Circle auctions enable group purchasing **Target Audience:** -- **Primary**: Substrate developers building DeFi applications who need group coordination primitives -- **Secondary**: DeFi projects exploring social trust mechanisms -- **Tertiary**: Communities seeking decentralized pooled asset management -**Needs Addressed:** -- **Collective Asset Management**: Many communities want to pool resources but lack decentralized tools -- **Social Trust in DeFi**: Individual-only DeFi ignores the social nature of finance and trust networks -- **Group Decision Making**: Need for transparent, on-chain group financial decisions +1. **Substrate developers** needing group coordination primitives (saves development time, provides standardization) +2. **DeFi projects** exploring social trust mechanisms to reduce collateral requirements +3. **Communities** seeking transparent group asset management (investment clubs, DAOs, lending circles) **Evidence of Need:** -- Traditional finance has always included group mechanisms (investment clubs, lending circles, cooperatives) -- Existing DeFi protocols often require users to form informal groups off-chain for large operations -- Community DAOs struggle with financial coordination tools beyond basic treasury management - -**Similar Projects Analysis:** -- **Polkadot Ecosystem**: No direct equivalent focusing on social finance primitives as runtime modules -- **Other Ecosystems**: - - Ethereum has informal group coordination (multisigs, Gnosis Safe) but lacks native social finance primitives - - Traditional lending circles exist in various forms but aren't blockchain-native -**Unique Differentiators:** -- First-class Substrate pallet for social finance (not just smart contracts) -- Focus on group coordination primitives rather than individual DeFi tools -- Designed for extension by other parachains and applications +- Traditional lending circles globally manage billions but remain informal and vulnerable +- Credit unions serve 390M+ members managing $2.6T (World Council of Credit Unions) +- Current DeFi's 150-200% collateralization excludes most of the world +- DAOs struggle with financial coordination beyond basic multisigs +- No existing solution provides runtime-level social finance primitives ## Team :busts_in_silhouette: @@ -94,108 +211,159 @@ Bastion fills a gap in Polkadot's DeFi stack by introducing social finance primi ### Team's experience -**Kunal** brings 2+ years of Web3 development experience with multiple hackathon wins across Solana, Sui, and EVM ecosystems. As lead at 29projectslab, he has delivered full-stack dApps integrating complex DeFi protocols with user-friendly interfaces. His experience spans frontend development, smart contract integration, and protocol design. +**Kunal** has 2+ years of Web3 development with multiple hackathon wins across Solana, Sui, and EVM ecosystems. Lead developer at 29projectslab, he has delivered full-stack dApps integrating complex DeFi protocols. Experience spans frontend development, smart contract integration, protocol design, and blockchain infrastructure. -**Priya** is an experienced Rust and React developer who has contributed to various DeFi and NFT projects. Her expertise includes building secure smart contracts, backend APIs, and blockchain infrastructure. She brings deep technical knowledge of frontend and blockchain development. -Together, the team has demonstrated ability to deliver complete Web3 solutions from protocol design through frontend implementation, with particular strength in DeFi primitives and user experience design. +**Priya** is an experienced Rust and React developer who has contributed to DeFi and NFT projects. Expertise includes secure smart contracts, backend APIs, and blockchain infrastructure. Strong technical knowledge of both frontend and blockchain development. + +Together, the team has demonstrated ability to deliver complete Web3 solutions from protocol design through frontend implementation, with particular strength in DeFi primitives and user experience. ### Team Code Repos - https://github.com/kunal-drall - https://github.com/priaaa29 -### Team LinkedIn Profiles (if available) +### Team LinkedIn Profiles - https://www.linkedin.com/in/kunaldrall - https://www.linkedin.com/in/priya-singh-41466a304/ ## Development Status :open_book: -**Current Status:** Concept stage with preliminary research completed. +**Current Status:** Concept stage with research completed. **Prior Work:** -- Research into existing DeFi coordination mechanisms and their limitations -- Analysis of traditional lending circles and community finance models -- Technical evaluation of Substrate pallet development requirements -- Review of similar projects in other ecosystems for differentiation +- Studied ROSCAs, credit unions, and community finance models +- Analyzed DeFi coordination mechanisms and limitations +- Evaluated Substrate FRAME architecture and Asset Hub integration +- Competitive analysis across blockchain ecosystems +- Gathered feedback from potential users (DAO operators, community leaders) **Research Foundation:** -- Study of academic literature on social trust in financial systems -- Analysis of successful community-driven financial initiatives -- Technical research into Substrate FRAME architecture and pallet development patterns +- Academic literature on social trust in financial systems +- Technical documentation: Substrate, FRAME, Asset Hub specifications +- Case studies of successful community finance initiatives +- Analysis of existing DeFi protocols and their gaps + +We're ready to begin development upon grant approval with detailed technical specifications prepared. ## Development Roadmap :nut_and_bolt: ### Overview -- **Total Estimated Duration:** 6 weeks -- **Full-Time Equivalent (FTE):** 1.5 FTE +- **Total Estimated Duration:** 8 weeks +- **Full-Time Equivalent (FTE):** 1.5 - **Total Costs:** $10,000 USD - **DOT %:** 50% -### Milestone 1 — Core Pallet & Demo Chain +### Milestone 1 — Core Circle Pallet -- **Estimated duration:** 3 weeks +- **Estimated duration:** 2 weeks - **FTE:** 1.5 -- **Costs:** $5,000 USD +- **Costs:** $3,000 USD | Number | Deliverable | Specification | | -----: | ----------- | ------------- | | **0a.** | License | Apache 2.0 | -| **0b.** | Documentation | Inline code documentation and basic tutorial explaining how to spin up the demo chain, create circles, and participate in auctions. | -| **0c.** | Testing and Testing Guide | Core pallet functions will be fully covered by unit tests (≥80% coverage). Guide will explain how to run tests and verify functionality. | -| 1. | Substrate pallet: `pallet-circles` | Core pallet implementing: circle creation with configurable parameters (quorum, member limits), member management (join/leave), collective deposit functionality, and basic storage for circle state. | -| 2. | Substrate pallet: Mock Staking Integration | Extension to pallet-circles enabling groups to participate in staking operations using mock staking module for demonstration purposes. | -| 3. | Substrate pallet: Circle Auctions | Auction functionality allowing circles to collectively bid on mock digital assets (NFTs) with member voting on participation. | -| 4. | Demo Substrate Chain | Complete working chain with pallet-circles integrated, demonstrating all core functionalities in local development environment. | -| 5. | CLI/Polkadot.js Integration | Basic integration enabling circle creation, membership management, and auction participation through Polkadot.js Apps UI. | - -### Milestone 2 — Demo dApp & Documentation +| **0b.** | Documentation | Inline rustdoc for all public APIs. Tutorial on integrating pallet, creating circles, adding members, making deposits. README with setup and architecture. | +| **0c.** | Testing and Testing Guide | Unit tests with ≥80% coverage for circle creation, member management, deposits, error conditions. Guide explaining how to run tests and verify functionality. | +| **0d.** | Docker | Dockerfile for local development node with pallet integrated. | +| 1. | Substrate module: `pallet-circles` | Core data structures (Circle, Member, CircleConfig). Storage for circles, memberships, metadata. | +| 2. | Substrate module: Circle Creation | Extrinsic for creating circles with configurable governance parameters (voting thresholds, quorum, member limits). Event emission and validation. | +| 3. | Substrate module: Member Management | Extrinsics for join requests, approvals, leaving, removal. Role management (admin, member). Events for membership changes. | +| 4. | Substrate module: Treasury | Extrinsic for deposits to circle treasury. Contribution tracking per member. Balance queries. Access control. | +| 5. | Substrate module: Asset Hub Integration | Integration with Asset Hub's asset pallet for multi-asset support (DOT, USDC, USDT, custom). Asset transfer logic and balance tracking. | + +### Milestone 2 — Governance, Auctions, and Staking + +- **Estimated Duration:** 2 weeks +- **FTE:** 1.5 +- **Costs:** $3,000 USD -- **Estimated Duration:** 3 weeks +| Number | Deliverable | Specification | +| -----: | ----------- | ------------- | +| **0a.** | Documentation | Technical docs for governance, auctions, staking. Updated tutorial. API documentation. | +| **0b.** | Testing and Testing Guide | Integration tests for end-to-end workflows (proposal → voting → execution). Auction and staking tests. Updated testing guide. | +| **0c.** | Article | "Implementing Circle-Based Finance: Governance and Collective Operations" - technical article on design and implementation. | +| 1. | Substrate module: Governance | Proposal creation for various actions. Voting extrinsics (support/against/abstain). Configurable thresholds. Time-bound voting. Automatic execution. Events. | +| 2. | Substrate module: Auctions | Auction participation proposals. Collective bidding logic. Maximum bid limits via governance. Asset distribution. Integration with mock auction pallet. Events. | +| 3. | Substrate module: Mock Staking | Mock staking pallet. Staking proposals and execution via governance. Simulated rewards. Unstaking. Reward distribution based on contributions. Events. | +| 4. | Substrate module: Events | Comprehensive event system for governance, auctions, staking with metadata for indexing. | +| 5. | Runtime Integration | Working Substrate runtime with all pallets integrated. Genesis config. Example test scripts. | + +### Milestone 3 — dApp and Complete Integration + +- **Estimated Duration:** 4 weeks - **FTE:** 1.5 -- **Costs:** $5,000 USD +- **Costs:** $4,000 USD | Number | Deliverable | Specification | | -----: | ----------- | ------------- | -| **0a.** | License | Apache 2.0 | -| **0b.** | Documentation | Complete documentation including technical specifications, user flow diagrams, and comprehensive tutorial on building Circle-Based Finance applications on Substrate. | -| **0c.** | Testing and Testing Guide | Frontend components tested with Jest, integration tests for pallet-dApp interaction, comprehensive testing guide. | -| **0d.** | Article | Technical article explaining Circle-Based Finance concepts, implementation details, and potential applications in the Polkadot ecosystem. | -| 1. | React dApp Frontend | Complete web application built with React and Polkadot.js API featuring circle management interface, auction participation flows, and treasury balance displays. | -| 2. | Extended Pallet Governance | Enhanced pallet-circles with voting mechanisms for auction decisions, proposal systems, and basic governance primitives. | -| 3. | Event System & Indexing | Event emission from pallet operations and lightweight indexer (SubQuery or custom) for tracking circle activities and historical data. | -| 4. | Comprehensive Tutorial | Step-by-step guide "Building Circle-Based Finance on Substrate" including code examples, deployment instructions, and extension patterns. | -| 5. | Public Repository | Complete open-source repository with all code, documentation, tests, and demo deployment instructions published on GitHub. | +| **0a.** | License | Apache 2.0 for all repos. | +| **0b.** | Documentation | Complete developer docs: API specs, frontend integration guide, deployment instructions, user guide, indexer docs, troubleshooting. | +| **0c.** | Testing and Testing Guide | Frontend tests (Jest, React Testing Library). E2E integration tests. Performance tests. Comprehensive testing guide. | +| **0d.** | Docker | Docker Compose for complete stack (node, indexer, frontend, database). One-command setup. | +| **0e.** | Article | "Building Circle-Based Finance on Polkadot: A Complete Guide" - overview, architecture, implementation walkthrough, integration guide, use cases, future roadmap. | +| 1. | React dApp: Setup | React + TypeScript project. Polkadot.js API integration. Wallet connection. State management. Routing. Responsive design (Tailwind CSS). | +| 2. | React dApp: Circle Management | Circle discovery page with filtering. Circle detail page. Creation form. Member invitation/approval. Role management. Real-time updates via events. | +| 3. | React dApp: Treasury | Balance display for multiple assets. Contribution tracking. Deposit interface. Transaction history. Balance visualizations. | +| 4. | React dApp: Governance | Active proposals dashboard. Proposal creation form. Voting interface. Delegation. Proposal details. Historical proposals. Analytics. | +| 5. | React dApp: Operations | Auction listing and participation. Auction bid status. Staking interface. Staking proposals. Reward tracking. | +| 6. | Event Indexer: SubQuery | SubQuery project setup. Schema for all events. Event handlers. GraphQL API. Historical data aggregation. Deployment instructions. | +| 7. | Event Indexer: Analytics | GraphQL queries for common use cases. Circle statistics. Member analytics. Governance metrics. Time-series data. Query documentation. | +| 8. | Developer Documentation | Technical specification. API reference. Integration guide: "Adding pallet-circles to Your Parachain". Frontend guide. Indexer setup. Architecture decisions. Examples. | +| 9. | Tutorial | Step-by-step: setup, runtime integration, custom circle types, frontend building, querying data, extending functionality, use cases, best practices, security. | +| 10. | Public Repository | GitHub repo with all code. Comprehensive README. Getting started guide. Examples. CI/CD pipeline. Contribution guidelines. Live demo deployment. Demo video. | ## Future Plans -**Long-term Maintenance:** -The team plans to maintain and extend Bastion Protocol through a combination of: -- Community contributions and open-source development -- Follow-up grant applications for advanced features -- Potential integration partnerships with existing Polkadot parachains +**Short-term (Next 6 Months):** +- Community engagement and developer feedback +- Video tutorials and example applications +- Bug fixes and improvements based on usage +- Presentations at Polkadot events -**Short-term Enhancement (Post-Level 1):** -- Apply for Level 2 grant to implement circle-based lending and borrowing -- Develop cross-chain integration capabilities with other parachains -- Build reputation and credit scoring mechanisms -- Create more sophisticated governance and proposal systems +**Medium-term (6-12 Months) - Level 2 Grant:** +- Circle-based lending and borrowing with reputation-based credit +- Advanced reputation system (cross-circle, privacy-preserving) +- Cross-parachain integration via XCM +- Enhanced governance (delegation, weighted voting) +- Production hardening with security audit **Long-term Vision:** -Bastion Protocol aims to become the foundational social finance layer for the Polkadot ecosystem, enabling parachains to integrate group-based financial primitives and fostering new models of decentralized community finance. - -**Community Building:** -- Developer documentation and tutorials to encourage adoption -- Workshops and presentations at Substrate/Polkadot events -- Open-source community building around social finance primitives +- Become standard social finance layer for Polkadot ecosystem +- Integration with major parachains (Acala, Astar, Parallel) +- Enable millions of underbanked individuals to access DeFi through circles +- New category of financial applications built on Bastion primitives + +**Sustainability:** +- Open-source community building +- Regular updates for new Substrate versions +- Follow-up grant applications +- Partnerships with parachains and dApps +- Consulting for integration support ## Additional Information :heavy_plus_sign: -**How did you hear about the Grants Program?** Web3 Foundation website and Polkadot developer documentation. +**How did you hear about the Grants Program?** + +Web3 Foundation website and Polkadot developer documentation. **Additional Context:** -- This project represents the foundational layer for a broader vision of social finance in Web3 -- The team is committed to open-source development and ecosystem collaboration -- All deliverables will be designed for extensibility and integration by other developers -- The project addresses a genuine gap in current DeFi offerings by focusing on group coordination primitives + +- This is our first W3F grant application +- No previous grants or external funding for this project +- Team commitment: 1.5 FTE total (0.75 FTE each) +- All deliverables will be open-source (Apache 2.0) +- Designed as foundational infrastructure for ecosystem use +- Addresses genuine gap in DeFi by focusing on group coordination primitives +- Ready to begin development immediately upon approval + +**Why Bastion Matters for Polkadot:** + +1. **New Application Category**: Enables social finance apps that don't exist yet +2. **Developer Productivity**: Reusable primitives save months of development +3. **Ecosystem Differentiation**: Positions Polkadot as leader in social finance +4. **Financial Inclusion**: Infrastructure for serving underbanked populations +5. **Network Effects**: As more parachains integrate, ecosystem value grows + +We're committed to being long-term contributors to the Polkadot ecosystem through open-source development, community engagement, and comprehensive documentation. From ac814462203f8ba3ea8c3fb329a9f7dc784f50dc Mon Sep 17 00:00:00 2001 From: Kunal Date: Sat, 4 Oct 2025 11:30:20 +0530 Subject: [PATCH 3/3] Expand bastion_protocol.md with W3F alignment details Added sections on alignment with W3F Grants Program priorities, focusing on user-centric innovation, DOT token alignment, financial inclusion, and what Bastion avoids. --- applications/bastion_protocol.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/applications/bastion_protocol.md b/applications/bastion_protocol.md index d7360ae8c58..d93c1c0f423 100644 --- a/applications/bastion_protocol.md +++ b/applications/bastion_protocol.md @@ -191,6 +191,35 @@ Bastion provides foundational social finance primitives that complement existing - DAOs struggle with financial coordination beyond basic multisigs - No existing solution provides runtime-level social finance primitives +### Alignment with W3F Grants Program Priorities + +**User-Centric Innovation** +- Addresses real user needs: communities worldwide manage billions through informal lending circles (ROSCAs, stokvels, tandas, hui) but lack transparent, scalable infrastructure +- Serves broad user base: investment clubs, DAOs, community savings groups, underbanked populations +- Solves practical challenge: DeFi's 150-200% collateralization excludes most people; we reduce requirements through social trust + blockchain accountability + +**DOT Token Alignment** +- Circle treasuries hold and operate with DOT natively +- Collective staking creates sustained DOT demand as groups stake together +- Participation in parachain auctions pools DOT from multiple users +- Multi-asset support via Asset Hub strengthens Polkadot's core infrastructure + +**Relevant Vertical: Financial Inclusion** +- Directly serves underbanked populations who currently use informal lending circles +- Enables transparent cross-border group savings and lending with blockchain security +- Brings proven traditional finance models (ROSCAs managing billions, credit unions with $2.6T globally) to Web3 +- Focus on practical financial access rather than speculation + +**What Bastion Avoids:** + +- **Not Generic**: Polkadot-specific Substrate FRAME pallets leveraging Asset Hub, DOT staking, and parachain auction mechanisms—cannot be replicated on other chains without similar runtime-level architecture + +- **Not Token-Focused**: Zero token sale or speculative token. Pure utility focus on group coordination primitives. Value comes from enabling new application categories. + +- **Not Marketing-Only**: 100% technical deliverables—working pallet, runtime integration, dApp, indexer, comprehensive documentation. No marketing budget or promotional activities. + +- **Demonstrable Usability**: Working demo with full documentation enables testing from day one. Web3 Foundation can use internally for treasury management. Open-source allows community contributions. + ## Team :busts_in_silhouette: ### Team members