snaxdart_models 1.1.31

Build Status

snaxdart_models #

Description #

Library which contains all versions of models used in mobile wallet.

Types #

V1 #

NameFields
AppStateWallet wallet
Accounts accounts
Global global
WalletTransactions transactions
SignUp signUp
Transfer transfer
WalletString publicKey
WalletAccount account
bool logged
AccountsList data
bool loading
SnaxError error
Globalbool walletWasCreated
bool walletWasImported
bool hasBackedUpWallet
bool hasRunBefore
bool loading
ApplicationRoute lastRoute
bool trustFall
bool trustFallWarningShowed
NetworkState networkState
String version
WalletAccountAccount snax
TwitterAccount twitter
SteemAccount steem
TwitterAccountString id
String displayName
SteemAccountString id
String displayName
SignUpbool loading
SnaxError error
String snaxAccount
WalletAccount account
Platform platform
String hash
String bindingSalt
bool confirmed
String postId
WalletTransactionTransactionSource source
TransactionType type
String blockTime
int blockNumber
String from
String fromAccount
String to
String quantity
String memo
int globalSequence
String trxId
IncompleteWalletTransactionTransactionSource source
TransactionType type
String blockTime
String from
String fromAccount
String to
String quantity
String memo
String trxId
TransactionsList data
List incomplete
bool hasMore
bool loading
SnaxError error
TransferWalletTransaction data
bool loading
SnaxError error
String recipient
TransactionSource platform
String memo
String quantity

1.0.0 #

  • Initial version

1.0.1 #

  • Fixed exports, all files formatted using dartfmt

1.1.0 #

  • Updated models, field "version" added to Global model. Initial structures for Nabla app

1.1.1 #

  • Field "fromAccount" added to WalletTransaction and IncompleteWalletTransaction models

1.1.2 #

  • Fixed WalletTransaction and IncompleteWalletTransaction serialization/deserialization

1.1.21 #

  • Field "loading" added to Global model

1.1.22 #

  • Updated README models

1.1.23 #

  • Allow to use trxId in IncompleteWalletTransaction, removed field "trxTo" from IncompleteWalletTransaction

1.1.30 #

  • Added View model

1.1.31 #

  • Set Transfer platform to Twitter by default

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  snaxdart_models: ^1.1.31

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:snaxdart_models/snaxdart_models.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
59
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
60
Overall:
Weighted score of the above. [more]
71
Learn more about scoring.

We analyzed this package on Jul 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:snaxdart_models/snaxdart_models.dart.

Health suggestions

Fix lib/src/v1/global.dart. (-1 points)

Analysis of lib/src/v1/global.dart reported 2 hints:

line 70 col 26: Avoid using null in if null operators.

line 71 col 26: Avoid using null in if null operators.

Fix lib/src/v1/transactions.dart. (-0.50 points)

Analysis of lib/src/v1/transactions.dart reported 1 hint:

line 29 col 22: Avoid using null in if null operators.

Format lib/src/v1/app_state.dart.

Run dartfmt to format lib/src/v1/app_state.dart.

Fix additional 5 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/v1/global.g.dart (Run dartfmt to format lib/src/v1/global.g.dart.)
  • lib/src/v1/transaction.dart (Run dartfmt to format lib/src/v1/transaction.dart.)
  • lib/src/v1/transactions.g.dart (Run dartfmt to format lib/src/v1/transactions.g.dart.)
  • lib/src/v1/transfer.dart (Run dartfmt to format lib/src/v1/transfer.dart.)
  • lib/src/v1/view.dart (Run dartfmt to format lib/src/v1/view.dart.)

Maintenance issues and suggestions

Support latest dependencies. (-30 points)

The version constraint in pubspec.yaml does not support the latest published versions for 3 dependencies (equatable, json_annotation, json_serializable).

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and snaxdart_models.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
equatable ^0.2.3 0.2.6 0.3.0
json_annotation ^2.2.0 2.3.0 2.4.0
json_serializable ^2.2.0 2.3.0 3.1.0
snaxdart ^1.0.1 1.0.1
snaxdart_ecc ^1.0.0 1.0.0
snaxdart_errors ^1.0.0 1.0.0
Transitive dependencies
analyzer 0.36.4 0.37.0
args 1.5.2
async 2.3.0
bs58check 1.0.1
build 1.1.5
build_config 0.4.1
charcode 1.1.2
checked_yaml 1.0.1
collection 1.14.11
convert 2.1.1
crypto 2.0.6
csslib 0.16.1
dart_style 1.2.9
front_end 0.1.19 0.1.20
glob 1.1.7
hex 0.1.2
html 0.14.0+2
http 0.12.0+2
http_parser 3.1.3
kernel 0.3.19 0.3.20
logging 0.11.3+2
meta 1.1.7
package_config 1.0.5
path 1.6.2
pointycastle 1.0.1
pub_semver 1.4.2
pubspec_parse 0.1.4
source_gen 0.9.4+3
source_span 1.5.5
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+12
yaml 2.1.16
Dev dependencies
build_runner ^1.3.3
pedantic ^1.0.0 1.8.0+1
test ^1.6.4

Admin