Skip to content

Commit 54e4cf6

Browse files
committed
kitdot application
1 parent 99eefc6 commit 54e4cf6

File tree

1 file changed

+255
-0
lines changed

1 file changed

+255
-0
lines changed

applications/kitdot.md

Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
# Kitdot Payment Features Enhancement
2+
3+
- **Team Name:** WEB3DEV Community
4+
- **Payment Details:**
5+
- **DOT**: N/A
6+
- **Payment**: 15wyV9jTKuNqU112iifFjxGQwFE1CeyFyxWJXH8qBCD5Pr2B
7+
- **[Level](https://grants.web3.foundation/docs/Introduction/levels):** 2
8+
9+
## Project Overview :page_facing_up:
10+
11+
### Overview
12+
13+
**Tagline:** Web2-like payment experiences for building Polkadot dApps
14+
15+
Kitdot Payment Features Enhancement is a comprehensive payment development toolkit that empowers developers to build production-ready payment applications on Polkadot with Web2-like user experiences.
16+
17+
**Brief Description:**
18+
19+
Kitdot is a TypeScript development toolkit that helps developers build Polkadot dApps faster with ready-to-use templates. This grant proposal aims to enhance Kitdot with three critical milestones that address the biggest barriers to mainstream Web3 adoption:
20+
21+
1. **Gasless Transactions** - Templates for gasless dApp interactions using account abstraction. Includes smart contracts and production-ready code developers can deploy.
22+
23+
2. **UX Improvements and X402 Payment Protocol** - Templates implementing x402 protocol for content and API monetization. Developers can use these to build paid services.
24+
25+
3. **Ecosystem Integration** - Templates demonstrating DotConnect, ReactiveDot, Polkadot UI, and Dedot integration. Shows developers how these tools work together.
26+
27+
**Why We're Creating This:**
28+
29+
WEB3DEV is committed to bringing mainstream adoption to Web3 using Polkadot by eliminating friction points that prevent Web2 developers and end-users from adopting Web3 technologies. Payment UX is the #1 barrier to adoption according to industry research. We believe Polkadot's technical capabilities (low fees, fast finality, cross-chain messaging) make it the ideal platform for next-generation payment applications, but the ecosystem lacks developer-friendly tooling to unlock this potential.
30+
31+
### Project Details
32+
33+
**Current Implementation:**
34+
35+
Kitdot is a CLI-first development toolkit that helps developers build Polkadot dApps through ready-to-use templates. The current implementation (v1.0) provides:
36+
37+
- **Template System:** Remote template loading from GitHub with validation
38+
- **Project Scaffolding:** Automated setup for fullstack, frontend, and backend projects
39+
- **Tool Management:** Cross-platform installation of Rust, Hardhat, Vite, and other development tools
40+
- **Integration Patterns:** Web3Auth social login and native wallet examples
41+
42+
**Architecture:** Built as Node.js CLI using TypeScript, Commander.js for command structure, and degit for template management. The tool orchestrates multiple embedded development tools (Hardhat, Vite, TypeScript compiler) providing a unified interface for Polkadot Cloud development.
43+
44+
**This Grant Proposal:**
45+
46+
This grant will enhance Kitdot with two critical payment features that address mainstream Web3 adoption barriers:
47+
48+
1. **Gasless Transactions:** Templates implementing ERC-2771 meta-transactions on Passet Hub using account abstraction. Enables Web2-like UX where users interact with dApps without holding native tokens for gas fees. Includes forwarder contracts, relay service, and recipient contract patterns.
49+
50+
2. **X402 Payment Protocol:** Templates implementing HTTP-native payments using the X402 protocol with USDT on Passet Hub. Enables seamless programmatic payments for AI agents, APIs, and web services without registration or OAuth flows. Includes custom EIP-3009 USDT wrapper, facilitator service, and frontend integration.
51+
52+
Both features will be packaged as production-ready templates that developers can deploy using `kitdot init`, with comprehensive documentation and example applications demonstrating real-world use cases.
53+
54+
**Technical Research:**
55+
56+
We've conducted hands-on feasibility research for both payment features, testing implementations on Passet Hub and documenting findings through weeks of experimentation. Our notes, contract tests, and learnings have been aggregated into comprehensive reports:
57+
- **Gasless Transactions:** https://research.w3d.community/gassless-transactions
58+
- **X402 Protocol:** https://research.w3d.community/x402
59+
60+
**Ecosystem Collaboration:**
61+
62+
Throughout development, we maintain close collaboration with key ecosystem partners to ensure seamless integration:
63+
- Worked with MetaMask DevRels to ensure Web3Auth compatibility with Passet Hub
64+
- We are going to reach out to DotConnect, ReactiveDot, Polkadot UI, and Dedot core developers to build frontends using their tools and resources.
65+
66+
### Ecosystem Fit
67+
68+
**Position in Polkadot Ecosystem:**
69+
70+
Kitdot Payment Features sits at the intersection of developer tooling and payment infrastructure. It complements existing Polkadot tools by providing higher-level payment abstractions that Web2 developers can immediately understand and use without deep blockchain knowledge.
71+
72+
**Target Audience:**
73+
74+
1. **Primary:** Web2 developers transitioning to Web3 (JavaScript/TypeScript developers with no blockchain experience)
75+
2. **Secondary:** dApp builders needing payment solutions (e-commerce, SaaS, creator economy, gaming)
76+
3. **Tertiary:** Polkadot parachain teams wanting to add payment features to their chains
77+
4. **Quaternary:** End users who benefit from gasless transactions and stablecoin payments
78+
79+
80+
**Similar Projects in Related Ecosystems:**
81+
82+
- **Ethereum:** Pimlico, Biconomy (ERC-4337 bundlers) - Focus only on account abstraction, no UX improvements or X402 protocol
83+
84+
## Team :busts_in_silhouette:
85+
86+
### Team members
87+
88+
- **Yan Luiz** (nomadbitcoin) - Lead Developer
89+
- **Anna Bida** - Project Manager, Documentation, QA & Reports
90+
91+
### Contact
92+
93+
- **Contact Name:** Yan Luiz
94+
- **Contact Email:** [email protected]
95+
- **Website:** https://w3d.community/ && https://kitdot.dev/
96+
97+
### Legal Structure
98+
99+
- **Registered Address:** Avenida Paes de Barros, 3399, Suite R
100+
Barueri São Paulo 03149-100
101+
- **Registered Legal Entity:** Multiplica LTDA
102+
103+
### Team's experience
104+
105+
**WEB3DEV Community:**
106+
WEB3DEV is Brazil's largest Web3 educational community with over 10,000 registered developers. Since 2022, the community has provided free Portuguese technical education including specialized Ethereum development courses, Rust bootcamps, and governance education, successfully graduating 500+ developers from online programs. WEB3DEV is also supporting and educating builders on Polkadot Hackatons happening in LATAM: https://latinhack.io/ and https://sub0.gg/
107+
108+
**Yan Luiz (Lead Developer):**
109+
- PBA4 Alumni (Polkadot Blockchain Academy Hong Kong 2024, developer track)
110+
- Founder of WEB3DEV and active Polkadot educator
111+
- Creator of Kitdot, featured in Polkadot Ecosystem tools directory
112+
- Created comprehensive [Rust State Machine bootcamp](https://build.w3d.community/courses/Rust_State_Machine) and an educational platform to host open courses.
113+
- Extensive Web3 development experience across DeFi, tokens, NFTs, staking, and cross-chain products
114+
- Collaborated with MetaMask DevRels to integrate Web3Auth for Passet Hub
115+
- Over 4 years experience auditing blockchain projects and building tokenized vaults for automated strategies
116+
- Created first comprehensive Portuguese-language Solidity/EVM development course
117+
- Background: Python automation, data mining, SEO, Linux server management, researching crypto since 2013
118+
119+
**Anna Bida (Project Manager):**
120+
- 15 years experience in Business Administration focusing on project, process, and people management
121+
- Co-leader of WEB3DEV, coordinating technical education and collaborative learning experiences
122+
- Organizes study groups on decentralized governance, DAOs, and collective coordination
123+
- Mentors teams in hackathons on product strategy and pitch creation
124+
- Co-host of Attempts at Governance (AAG) show covering Polkadot ecosystem in Portuguese
125+
- Part of OpenSync (Polkadot) team following OpenGov proposals with focus on delivery and outcomes
126+
- Applies governance in practice at Ipê City Network State experiment
127+
128+
**Project Experience:**
129+
130+
Kitdot CLI v1.0 has demonstrated significant real-world impact:
131+
132+
**Latin Hack Success:**
133+
- Widely adopted during Latin Hack hackathon (https://latinhack.io)
134+
- Over 50% of participants used Kitdot based on feedback and code review during judging
135+
- 2 out of 3 winners used Kitdot to deploy contracts and build UIs with Web2-like experience
136+
- Successfully onboarded 90%+ of audience into Polkadot (first Web3 experience for most participants)
137+
- Detailed impact: https://docs.google.com/document/d/1OiKZWmJKH94GohlXupwLvkHY-QE-9OeJ-yGTm2fXzJU/edit
138+
139+
**Ecosystem Recognition:**
140+
- Invitation to support Sub0 Hackathon participants
141+
- Listed on Polkadot Ecosystem tools directory (https://polkadotecosystem.com/tools/dev/kitdot)
142+
- Ongoing collaboration with integrated tool developers (DotConnect, ReactiveDot, Polkadot UI, Dedot)
143+
- See more on [this forum discussion](https://forum.polkadot.network/t/kitdot-build-web2-like-apps-on-polkadot/15303)
144+
145+
146+
### Team Code Repos
147+
148+
- https://github.com/w3b3d3v/kitdot (Kitdot CLI main repository)
149+
- https://github.com/w3b3d3v/web3auth-examples/tree/web3dev-version (Web3Auth Asset Hub integration)
150+
- https://github.com/w3b3d3v/create-polkadot-dapp/tree/web3dev-version (Polkadot dApp templates)
151+
- https://github.com/nomadbitcoin (Yan's personal contributions)
152+
153+
### Team LinkedIn Profiles
154+
155+
- https://www.linkedin.com/in/nomadbitcoin/ (Yan Luiz)
156+
- https://www.linkedin.com/in/annabida/ (Anna Bida)
157+
158+
## Development Status :open_book:
159+
160+
**Current Implementation Status:**
161+
- **Kitdot CLI v1.0** launched and available at https://kitdot.dev/
162+
- Initial codebase for project scaffolding and template generation
163+
- Web3Auth integration patterns established
164+
- Smart Contract setup initialization for PolkaVM development
165+
- AGENTS.md file with comprehensive context for LLMS
166+
167+
**Research & Prior Work:**
168+
169+
Our team has completed comprehensive feasibility research for both payment features, including:
170+
171+
**Gasless Transactions Research:**
172+
- PolkaVM compatibility testing with simplified forwarder contracts
173+
- ERC-2771 meta-transaction standard analysis
174+
- Constructor storage constraint solutions for Passet Hub
175+
- Relay service architecture design adapted for PolkaVM
176+
- Complete implementation roadmap validated through prototyping
177+
178+
**X402 Protocol Research:**
179+
- USDT EIP-3009 compatibility analysis (standard USDT lacks required functions)
180+
- Custom USDT wrapper contract design for Passet Hub
181+
- Self-hosted facilitator architecture for PolkaVM
182+
- Multi-dimensional resource metering integration
183+
- HTTP 402 payment flow validation
184+
185+
**Documentation:**
186+
- Research findings aggregated at https://research.w3d.community/gassless-transactions and https://research.w3d.community/x402
187+
- Architecture documents detailing PolkaVM-specific adaptations
188+
- Technical specifications for both payment systems
189+
190+
## Development Roadmap :nut_and_bolt:
191+
192+
### Overview
193+
194+
- **Total Estimated Duration:** 5 months
195+
- **Full-Time Equivalent (FTE):** 1.5 FTE
196+
- **Total Costs:** 30,000 USD (USDT or USDC)
197+
- **DOT %:** 0% (100% stablecoin payment in USDT or USDC)
198+
199+
### Milestone 1 — Gasless Transactions System
200+
201+
- **Estimated Duration:** 2 months
202+
- **FTE:** 1.5
203+
- **Costs:** 10,000 USD
204+
205+
| Number | Deliverable | Specification |
206+
| -----: | ----------- | ------------- |
207+
| 1. | Simplified Forwarder Contract | Solidity smart contract implementing ERC-2771 forwarder pattern adapted for PolkaVM constraints. Features: EIP-712 signature verification, nonce management, deadline validation, and call forwarding with sender extraction. Optimized to avoid constructor storage operations. |
208+
| 2. | ERC2771Context Base Contract | Simplified recipient contract base that extracts real sender from forwarded calls. Enables existing contracts to support gasless transactions by inheriting this base. |
209+
| 3. | Relay Service (Gasless Module) | Node.js/TypeScript service that accepts signed meta-transactions, validates them off-chain, and submits to forwarder contract. Features: whitelist management (user/contract/function-based), gas estimation for PolkaVM, rate limiting, and monitoring. |
210+
| 4. | Sample Recipient Contracts | Example NFT and token contracts demonstrating gasless functionality. Shows how to inherit ERC2771Context and implement trusted forwarder pattern. |
211+
| 6. | Whitelist Strategy Templates | Production-ready whitelist implementations: user-based (specific addresses authorized), contract-based (specific target contracts), function-based (specific function selectors), and hybrid approach. Each with rate limiting and gas budgets. |
212+
213+
### Milestone 2 — X402 Payment Protocol System
214+
215+
- **Estimated Duration:** 2 months
216+
- **FTE:** 1.5
217+
- **Costs:** 10,000 USD
218+
219+
| Number | Deliverable | Specification |
220+
| -----: | ----------- | ------------- |
221+
| 1. | USDT Wrapper Token Contract | Custom USDT implementation with full EIP-3009 support optimized for PolkaVM. Features: transferWithAuthorization, receiveWithAuthorization, signature-based transfers, nonce management, time-bound authorizations. Based on USDT0/txfusion patterns adapted for constructor constraints. |
222+
| 2. | Self-Hosted Facilitator (X402 Module) | Payment processor service that validates X402 payments, verifies EIP-3009 signatures, and submits transactions to Passet Hub. Adapted for PolkaVM's multi-dimensional resource metering. Features: payment verification API, blockchain settlement, confirmation tracking, and replay protection. |
223+
| 3. | Payment Escrow Contract | Smart contract for time-locked payments with dispute resolution. Allows merchants to lock payments until service delivery with configurable timeouts and refund mechanisms. |
224+
| 4. | HTTP 402 Server | Express/Fastify middleware implementing X402 challenge-response flow. Issues HTTP 402 challenges with payment details, verifies payment proofs via facilitator, and delivers resources upon confirmation. |
225+
| 5. | Kitdot Template: X402 Paid API | Complete template for monetizing APIs with X402 payments. Includes: Express API server with 402 middleware, React frontend with payment handling, USDT Wrapper token contracts, facilitator configuration, and example paid endpoints (content access, data queries, AI agent integration). |
226+
227+
### Milestone 3 — Ecosystem Collaboration & UX Refinement
228+
229+
- **Estimated Duration:** 1 month
230+
- **FTE:** 1.5
231+
- **Costs:** 10,000 USD
232+
233+
| Number | Deliverable | Specification |
234+
| -----: | ----------- | ------------- |
235+
| 1. | Ecosystem Tool Partnerships | Reach out to and collaborate with ecosystem tool teams including: DotConnect, ReactiveDot, Polkadot UI, Dedot, PAPI, LV Wallet, and other builders. Goal: Understand integration requirements, gather technical guidance, and coordinate on template development. |
236+
| 2. | Gasless Transaction Integration Templates | Build at least 2 production-ready templates demonstrating gasless transactions using ecosystem tools from partnerships above. Templates will showcase real-world use cases (e.g., gasless NFT minting with wallet X, gasless DeFi interaction with tool Y) with complete documentation. |
237+
| 3. | X402 Payment Integration Templates | Build at least 2 production-ready templates demonstrating X402 payments using ecosystem tools from partnerships above. Templates will showcase monetization use cases (e.g., paid API with tool X, content paywall with wallet Y) with complete documentation. |
238+
| 4. | UX Bounty Feedback Implementation | Address all feedback from UX Bounty team regarding developer experience improvements. This includes: refining landing page narrative, improving onboarding flow, enhancing CLI user interface, and iterating on documentation based on usability testing. |
239+
| 5. | Developer Experience Refinement | Based on ecosystem partner feedback and UX Bounty recommendations, improve: error messages, debugging tools, template discovery, configuration workflows, and overall developer journey from installation to production deployment. |
240+
| 6. | Integration Documentation | Comprehensive guides showing how to use Kitdot payment features with each partnered ecosystem tool. Includes: setup instructions, code examples, troubleshooting guides, and best practices for production deployments. |
241+
242+
## Future Plans
243+
244+
**Adoption & Promotion:**
245+
After milestone completion, we'll drive adoption through live coding sessions, community partnerships across LATAM and globally, hackathon workshops, and published case studies of projects built with Kitdot.
246+
247+
**Continuous Improvement:**
248+
We'll maintain an open feedback form for feature requests, iterate based on real-world usage, continuously refine documentation, and expand templates as the ecosystem evolves.
249+
250+
**JAM Migration:**
251+
Once JAM is available, we plan to migrate relay services (gasless transactions and X402 facilitator) to JAM services, eliminating centralized off-chain dependencies while maintaining backward compatibility.
252+
253+
## Additional Information :heavy_plus_sign:
254+
255+
**How did you hear about the Grants Program?** Community feedback and Polkadot ecosystem discussions about next steps for Kitdot.

0 commit comments

Comments
 (0)