snaxdart_models 1.1.32

  • Readme
  • Changelog
  • Installing
  • 60

Build Status

snaxdart_models #

Description #

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

Types #

V1 #

AppStateWallet wallet
Accounts accounts
Global global
WalletTransactions transactions
SignUp signUp
Transfer transfer
WalletString publicKey
WalletAccount account
bool logged
bool outdated
AccountsList<WalletAccount> 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<WalletTransaction> data
List<IncompleteWalletTransaction> 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

1.1.32 #

  • Property 'outdated' added to Wallet model

Use this package as a library

1. Depend on it

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

  snaxdart_models: ^1.1.32

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';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

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

  • Dart: 2.5.1
  • pana: 0.12.21


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/accounts.dart.

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

Fix additional 6 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/v1/app_state.dart (Run dartfmt to format lib/src/v1/app_state.dart.)
  • 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/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
equatable ^0.2.3 0.2.6 0.6.1
json_annotation ^2.2.0 2.3.0 3.0.0
json_serializable ^2.2.0 2.3.0 3.2.3
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.38.5
args 1.5.2
async 2.4.0
bs58check 1.0.1
build 1.2.0
build_config 0.4.1+1
charcode 1.1.2
checked_yaml 1.0.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
csslib 0.16.1
dart_style 1.2.9 1.3.1
front_end 0.1.19 0.1.27
glob 1.2.0
hex 0.1.2
html 0.14.0+3
http 0.12.0+2
http_parser 3.1.3
js 0.6.1+1
kernel 0.3.19 0.3.27
logging 0.11.3+2
meta 1.1.7
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.1.0
path 1.6.4
pointycastle 1.0.1
pub_semver 1.4.2
pubspec_parse 0.1.5
source_gen 0.9.4+4 0.9.4+5
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+12
yaml 2.2.0
Dev dependencies
build_runner ^1.3.3
pedantic ^1.0.0 1.8.0+1
test ^1.6.4