搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。