The SDK is written in Dart and designed to be a thin wrapper on top of the STON.fi contracts, which will help STON.fi protocol to be used more easily in Flutter/Dart projects
Installation
- Add this to your package's
pubspec.yaml
file:
dependencies:
stonfi: ^latest
- Get the package using your IDE's GUI or via command line with
$ flutter pub get
Usage
import 'package:stonfi/stonfi.dart';
Libraries
- api/client_index
- api/client_mapping
- api/stonfi.enums.swagger
- api/stonfi.swagger
- client/client
- contracts/contract
- contracts/contract_provider
- contracts/dex/constants
- contracts/dex/v1/lp_account_v1
- contracts/dex/v1/pool_v1
- contracts/dex/v1/router_v1
- contracts/dex/v2/lp_account/lp_account_v2
- contracts/dex/v2/pool/base_pool_v2
- contracts/dex/v2/pool/cpi_pool_v2
- contracts/dex/v2/pool/pool_v2
- contracts/dex/v2/router/base_router_v2
- contracts/dex/v2/router/cpi_router_v2
- contracts/dex/v2/router/router_v2
- contracts/dex/v2/vault/vault_v2
- contracts/pTON/constants
- contracts/pTON/pton
- contracts/pTON/v1/pton_v1
- contracts/pTON/v2/pton_v2
- stonfi
- utils/create_jetton_transfer_message
- utils/create_sbt_destroy_message
- utils/extensions