搜索插件、代码仓与 APP 分类

插件详情v1.39.0

fuels

Dart FFI 桥接 Fuel Rust SDK

AndroidiOSmacOSWindowsLinux
近 30 天下载
161
喜欢数
2
Pub 分数
120

安装插件

flutter pub add fuels

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Fuels 是一个 Dart FFI 桥接工具,使 Flutter 应用能够与 Fuel Rust SDK 交互,从而实现与 Fuel 区块链的无缝集成。它允许开发者利用 Dart 在跨平台环境中的能力,在 Fuel 上构建去中心化应用(dApps)。该包支持 Android、iOS、macOS、Windows 和 Linux 等主要平台,非常适合全栈区块链开发。通过直接访问 Fuel 的底层功能,Fuels 使开发者能够高效地执行交易、管理资产和部署智能合约。

适合场景

  • 在 Fuel 上构建跨平台 dApps
  • 将Fuel区块链功能集成到Flutter应用中
  • 执行智能合约交互
  • 在Flutter应用中管理数字资产
  • 开发基于区块链的移动应用程序

主要特点

  • Dart FFI 与 Fuel Rust SDK 集成
  • 跨平台支持(Android、iOS、macOS、Windows、Linux)
  • 对Fuel区块链操作的直接访问
  • 通过原生绑定实现高效性能
  • 无缝兼容 Flutter

适合对象

  • 面向Fuel区块链的Flutter开发者
  • Web3 应用程序创建者
  • 区块链工程师正在构建移动dApps
  • 需要高性能区块链集成的团队
  • 需要多平台区块链支持的项目

使用建议

  • 需要熟悉Fuel区块链概念
  • 可能需要为原生依赖项进行额外设置
  • 仅限燃料生态系统功能
  • 调试 FFI 调用时可能出现的复杂性
  • 依赖于稳定的 Fuel SDK 版本

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

fuels-dart

Dart & Flutter SDK for Fuel Blockchain. Essentially, it's a wrapper over the official Rust SDK for mobile and official TypeScript SDK for web. It's implemented with the help of flutter_rust_bridge library.

For more information about SDK functionality and abilities, please check out fuels-rs SDK documentation.

The project tries to stick to the same interfaces as used in the Rust SDK wherever possible.

The project structure explanation can be found in the FRB documentation.

Documentation

Work on documentation for Dart/Flutter SDK is in progress.

Implemented features

  • [x] Create wallet
  • [x] Get account balances
  • [x] Transfer tokens
  • [ ] Sign transactions

Contributing

packages/fuels/native folder contains Rust files. api.rs is the main entrypoint of the Rust methods accessed from Dart.

After changing any of the Rust files, you need to regenerate the wrapper. Just call:

melos run frb-gen

All commits in the main branch must follow the Conventional Commits format.

Releasing

To upgrade the library version before releasing, do:

melos version

Then push the generated commit with tags:

git push --follow-tags

Ths will start Github actions tasks for creating and publishing a release on Github.

In order to publish a package to https://pub.dev/, you need to wait for the CI/CD tasks from the previous step to complete. Then call the following command from the corresponding package:

cd packages/[needed package]
flutter pub publish

所属分类

依赖

依赖清单 6 项

源码仓库

使用此插件的项目

暂无相关数据。