darttonconnect 1.0.2+1 darttonconnect: ^1.0.2+1 copied to clipboard
Dart SDK for TON Connect. Use it to connect your app to TON wallets via TonConnect protocol.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add darttonconnect
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
darttonconnect: ^1.0.2+1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:darttonconnect/crypto/session_crypto.dart';
import 'package:darttonconnect/exceptions.dart';
import 'package:darttonconnect/logger.dart';
import 'package:darttonconnect/parsers/connect_event.dart';
import 'package:darttonconnect/parsers/rpc_parser.dart';
import 'package:darttonconnect/parsers/send_transaction.dart';
import 'package:darttonconnect/provider/bridge_gateway.dart';
import 'package:darttonconnect/provider/bridge_provider.dart';
import 'package:darttonconnect/provider/bridge_session.dart';
import 'package:darttonconnect/provider/provider.dart';
import 'package:darttonconnect/storage/default_storage.dart';
import 'package:darttonconnect/storage/interface.dart';
import 'package:darttonconnect/ton_connect.dart';
import 'package:darttonconnect/wallets_list_manager.dart';