パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.1.24+1

agent_dart

Internet Computer 向けに構築されたエージェントライブラリで、Dart および Flutter アプリ用のプラグインパッケージです。開発者は、Dfinity のブロックチェーンと直接やり取りできるように独自のライブラリを構築できます。

30日間ダウンロード
834
いいね数
21
Pub ポイント
60

パッケージをインストール

flutter pub add agent_dart

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

agent_dart は、Dfinity の分散型エコシステムの一部である Internet Computer ブロックチェーンと直接やり取りできる Dart および Flutter プラグインです。Web3 アプリケーション向けに設計されており、ブロックチェーン上の canister に対して認証された呼び出しを行うことができるソフトウェアエージェントを構築するためのツールを提供します。このパッケージは、Flutter アプリでのブロックチェーンサービスとの統合を簡素化し、分散型アプリケーションとの安全で効率的な通信をサポートします。直接ブロックチェーンへのアクセスを持つ暗号資産ネイティブなモバイル体験を開発したい開発者にとって理想的です。

用途

  • インターネットコンピュータのキャンティスと連携するFlutterアプリの構築
  • 分散型IDソリューションの構築
  • ウォレットおよびトークンの相互作用を有効化する
  • 直接ブロックチェーン通信によるdAppsの開発
  • Dfinityのスマートコントラクトインフラストラクチャとの統合

主な機能

  • インターネットコンピュータのカンスターやとの直接的な相互作用
  • エージェントベースの認証のサポート
  • 軽量なDart/Flutter統合
  • ブロックチェーンノードとの安全な通信
  • IC固有のデータ型に対する組み込みサポート

適している対象

  • Flutter開発者がWeb3アプリケーションを構築しています
  • インターネットコンピューター向けのDart開発者
  • 分散型モバイルアプリを作成するチーム
  • Dart を使用するブロックチェーンエンジニア
  • Dfinityエコシステムにおける暗号資産に特化したスタートアップ

注意事項

  • インターネットコンピュータおよびカニスターのアーキテクチャに精通している必要がある
  • Dfinityのブロックチェーンプラットフォームに限定
  • ローカル開発用に追加の設定が必要になる場合があります
  • IC ノードへの安定したネットワーク接続に依存する
  • 非ICブロックチェーン環境には適していません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Agent Dart

Pub License

An agent library built for Internet Computer for Dart and Flutter apps.

Join the Discord channel: Discord


📃 Table of content


⚡️ Quick start

For Dart/Flutter app

The latest stable version is: pub

dependencies:
  agent_dart: ^latest-version
For iOS projects

When you're using the plugin in your Flutter projects that contains iOS platform, make sure you've done the following setup the build settings.

  1. Open ios/Runner.xcworkspace.
  2. Select Runner on left folder view, and Project -> Runner.
  3. Select Build Settings, All, Combined and type strip style in the filter input field.
  4. Switch Strip Style and select Non-Global Symbols.

Settings

For developing the plugin
  1. Clone and follow Prerequisites, and make sure your Flutter installed properly.

  2. MUST DO: Bootstrap your project

./scripts/bootstrap.sh

🚦 Prerequisites

🧰 Resources

📖 Documentation
🔧 Helpers/Tooling
  • candid_dart, an automated candid builder for Dart classes
  • agent_dart_auth, an extension plugin for authorization, used for Internet-Identity authorization.
💡 Examples
  • simple counter, a simple counter demonstrate how to use agent_dart, a backend canister within.
  • auth counter, a counter needs user's authorization from Internet-Identity, demonstrate how to combine with agent_dart_auth.
  • ledger_app, a ledger app demonstrate how to import seed-phrase and make transactions.

🧘‍♂️ Motivation

The Internet Computer is powered by blockchain and its major impact is to bring WebApp to be truly decentralized. However, we are in the mobile internet era, even we can use Safari or Chrome on our cell phones. But most average people, not crypto enthusiasts, are likely to use native mobile apps, major users are there.

It's important to attract these people to use DApps of Internet Computer, by providing stable, fast, and fully integrated to Dfinity's blockchain. We likely to provide further solution to balancing the "Decentralization" and "Efficiency". But first things first, we have to make mobile native apps work.

agent-rs and agent-js are the actual lower level client-SDKs, just like ether.js or web3.js of Ethereum's ecosystem. This library is aiming to port and replicate features from them. And this library is mainly for mobile apps to connect canisters, not deploying contracts (you can do that if you want, but use dart directly).

We have tried our best to migrate most interface styles just like Javascript version, but there are limitations and differences between different programming languages, we will document them as much as possible.

🏆 Milestones

  • Milestone 1: ✅ Core features/libraries implementation.
  • Milestone 2: ✅ Enhanced built tool and more example apps
  • Milestone 3: 👷 Documentation and community driven development

👨‍💻 Contributing

By contributing to agent_dart, you agree that your contributions will be licensed under its MIT License.

  1. Fork this library and add your own branch like {feat|fix|test|dep}-{detail}.
  2. Follow the Prerequisites.
  3. Build rust dependencies for all supported platforms:
sh ./scripts/bootstrap
  1. Start the example.
cd example
flutter run
  1. Tests. (Unit Test and Integration Test)
flutter test
  1. Commit and make a pull request.

🔗 Reference and related projects

Feel free to list your project here, you can submit here.

⚠️ FAQ

Build rust libraries for iOS/MacOS
  • All rust method have to be written inside SwiftAgentDartPlugin.swift to avoid tree shaking by XCode.
Network problem in macOS
  • If you run example or build a flutter app, you may come up with this:
[macOS] SocketException: Connection failed (OS Error: Operation not permitted, errno = 1)
  • Go to macos/Runner of macOS.
  • Add following in DebugProfile.entitlements and ReleaseProfile.entitlements:
<key>com.apple.security.network.client</key>
<true/>

カテゴリー

依存関係

依存関係一覧 23 件

ソースリポジトリ

このパッケージを使用しているプロジェクト