Logo

DeSo Dart SDK

Unofficial Dart SDK for Decentralized Social / DeSo.org

关于项目

这是第一个非官方的DeSo Dart SDK。

示例项目截图

Playground Desktop App

支持的平台

  • iOS
  • Android
  • Mac OS
  • Windows
  • Linux
  • Web

构建于

Google Flutter SDK

入门

前提条件

安装

  1. 克隆仓库

git clone https://github.com/DeverseSocial/deso_sdk.git
  1. 安装包依赖

flutter pub get
  1. 运行

flutter run

用法

// Import DeSo SDK
import 'package:deso_sdk/deso_sdk.dart';

// Instantiate DeSo SDK Object
final deso = Deso();

// Optional - Set DeSo Node host
deso.client.init(
  host: 'diamondapp.com',
  apiVersion: 0,
);

debugPrint('requesting...');
final result = await deso.general.appState();

result.fold(
  (apiError) {
    // ERROR
    final text = apiError.toJson().toString();
    debugPrint(text);
  },
  (object) {
    // SUCCESS
    final text = object.toJson().toString();
    debugPrint(text);
  },
);

debugPrint('request done');

路线图

  • 完整的API
  • 单元测试

请参阅开放的issue以获取建议的功能列表(以及已知问题)。

贡献

贡献是开源社区如此美好、激发灵感和创造的源泉。您的任何贡献都备受赞赏

  1. Fork 该项目
  2. 创建您的特性分支(git checkout -b feature/AmazingFeature
  3. 提交您的更改(git commit -m 'Add some AmazingFeature'
  4. 推送到分支(git push origin feature/AmazingFeature
  5. 打开一个拉取请求

许可证

根据 MIT 许可证分发。有关更多信息,请参阅 LICENSE

联系方式

Oliver Martinez – @nemoryoliver[email protected]

项目链接: https://github.com/DeverseSocial/deso_sdk

致谢

GitHub

查看 Github