패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.1.24+1

agent_dart

인터넷 컴퓨터를 위한 에이전트 라이브러리로, Dart 및 Flutter 앱용 플러그인 패키지입니다. 개발자는 Dfinity의 블록체인과 직접 상호작용할 수 있도록 자체 라이브러리를 구축할 수 있습니다.

30일 다운로드
644
좋아요
21
Pub 점수
60

패키지 설치

flutter pub add agent_dart

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

agent_dart는 Dfinity의 탈중앙화 생태계의 일부인 Internet Computer 블록체인과 직접 상호작용할 수 있도록 해주는 Dart 및 Flutter 플러그인입니다. Web3 애플리케이션을 위한 것으로, 블록체인상의 canister에 인증된 호출을 수행할 수 있는 소프트웨어 에이전트를 구축하는 도구를 제공합니다. 이 패키지는 Flutter 앱에서 블록체인 서비스와의 통합을 간소화하며, 탈중앙화 애플리케이션과의 안전하고 효율적인 통신을 지원합니다. 직접 블록체인 접근 기능을 갖춘 크립토 네이티브 모바일 경험을 개발하고자 하는 개발자에게 이상적입니다.

사용 사례

  • 인터넷 컴퓨터 캔티스와 상호 작용하는 Flutter 앱 빌드
  • 탈중앙화된 신원 솔루션 만들기
  • 지갑 및 토큰 상호작용 활성화
  • 직접 블록체인 통신을 통한 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 개

소스 저장소

이 패키지를 사용하는 프로젝트