Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.2.x 开发计划 #14

Open
11 of 22 tasks
cssmagic opened this issue Jul 31, 2018 · 0 comments
Open
11 of 22 tasks

v0.2.x 开发计划 #14

cssmagic opened this issue Jul 31, 2018 · 0 comments
Labels

Comments

@cssmagic
Copy link
Member

cssmagic commented Jul 31, 2018

破坏性变更

组件交互

  • 内置 nebPay 升级到 v0.2
  • 适配 nebPay v0.2 的新特性
    • 交易相关 API 增加二维码选项('always'/'never'/'auto'
    • 兼容 debug 选项
    • 可自定义 Gas
  • 适配 Chrome 钱包扩展 v0.1.3+ 的新特性
    • 判断是否已安装钱包扩展的新方法(新老方法并存,在 Nasa.js v0.3 中将只保留新方法)
    • 获取用户地址的新方法(新老方法并存,在 Nasa.js v0.3 中将只保留新方法)
    • 考虑交易流水号发送失败之后的逻辑
    • 推动 Chrome 钱包扩展提供获取当前环境的功能

新增功能

  • Nasa.pay()
  • 为业务代码提供初始化方法 Nasa.ready()
  • 全局配置接口 Nasa.config(),可自定义 endpoint
  • 判断当前浏览器是否为手机钱包 Nasa.ua.isWalletMobileApp()
  • 本地存储相关功能
  • 头像

增强

代码组织

工具

  • 提供 .d.ts
@cssmagic cssmagic changed the title Nasa.js v0.2 开发计划(初稿) Nasa.js v0.2.x 开发计划(初稿) Aug 1, 2018
@cssmagic cssmagic added the Doc label Aug 8, 2018
@cssmagic cssmagic changed the title Nasa.js v0.2.x 开发计划(初稿) v0.2.x 开发计划(初稿) Aug 8, 2018
@cssmagic cssmagic changed the title v0.2.x 开发计划(初稿) v0.2.x 开发计划 Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant