Skip to content

basic template, integrate AirAccount(contract account and EOA), SuperPaymaster: gasless, Cards/Points/Perks(gasless card and SBT)

License

Notifications You must be signed in to change notification settings

AAStarCommunity/cos72-template-basic

Repository files navigation

Cos72 basic template

本 repo 为了完成 Cos72 整合版,作为我们的第一个 DApp 模板,所有 feature 提供插件化的拔插,方便社区自己定制。

思考

  1. Web2 的用户体验,Web3 的接入集成
  2. 无感支付 gas,发起交易,只是 60 分,刚达到 Web2 的几个水平
  3. 必须有不同于 Web2 的重大创新
    1. 技术框架为所有 DApp 简化开发,助力商业创新:Cos72
    2. 经济模型为所有 DApp 创造收入,增强可持续:Asset3
    3. 协议平台为 DApp 黏着用户,构建协作网络:Mushroom
  4. MushroomDAO 是协议的创建和发展组织,协议全名:Mycelium Protocol

Cos72 整合版

  1. 依赖下面的 AAStar 基建,Cos72 添加 NFT 三级发布(Perks)和对应积分(Points)升级规则,gas token 积分基于 AAStar 合约发布,提供结合积分和 NFT 的Cards功能,只有一个功能:收入积分,无感 gasless
  2. npx aastar:快速基于应用模板,全新建立多语言,多主题,集成 AirAccount 等基建和 Shops 模块,可配置
  3. shadcnUI 的直接 add register button,引用我们的 npm 包,改造已有网站,接入 Cos72
  4. 接入开源 auth.js,提供类似 google 的接入服务

AAStar 基建:Account 生命周期服务 0.03 版

  1. 完整的 Email 创建 Web3 账户,需要输入指纹
  2. 完整的账户交易,需要二次验证指纹
  3. 基于 ERC20 的自定义价格的 gas sponsor,需要社区自己购买 AAStar 服务 + 预付费(ETH)
  4. 背后的 Community Node 和 DVT 支持
    1. TEE 可选项,需要部分预研,保障我们的架构和未来预期一致
  5. 新增支持 EOA,EIP7702,这个提供最基础的授权合约:ERC20 gasless,任何社区可以发布自己的具备 gas token 功能的社区积分,用户只要积分充足,无感支付 gas

设计

在上述思考和规划后,我们来描述下 Cos72 的第一个通用模板如何集成。 包括为完成组件的设计开发,作为基建的端到端服务,真正减轻创新者的技术负担,聚焦事业创新。 Web2 的体验,Web3 的接入集成

features

  1. Register and login
    1. social account+fingerprint, email+fingerprint, EOA+fingerprint?
  2. Account management
    1. gasless transaction
    2. basic account API:batch transaction
  3. Community node
    1. 支持自部署(默认是 AAStar 节点)
    2. 自部署后支持发行 gasless card(需要 shop 插件)
    3. 发行自己的 Cards(需要安装 Perks/Points 和 Cards 插件)
  4. Community shop
    1. Web 版
    2. Mobile app 版
  5. 插件市场
    1. Perks
    2. Points
    3. Cards
    4. Shops
    5. Agents(设计中)
  6. Account features
    1. account recovery (only contract account)
    2. 基础的资产信息获取功能(需要持有对应的 Cards)
    3. 无 gas 转账(需要 dapp 支持 1271 签名验证,需要有 cards)
    4. 无 gas swap(需要 dapp 支持 1271 签名验证,需要有 cards)

工程

注册和登陆

  1. 使用 nextauthjs,支持 google,github,twitter,email+fingerprint

About

basic template, integrate AirAccount(contract account and EOA), SuperPaymaster: gasless, Cards/Points/Perks(gasless card and SBT)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published