snaxdart_models 1.1.32

  • Readme
  • Changelog
  • Installing
  • 40

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
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:


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

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

  • Dart: 2.8.4
  • pana: 0.13.9+1

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

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: Documenting snaxdart_models... Initialized dartdoc with 333 libraries in 52.6 seconds Generating docs for library snaxdart_models from package:snaxdart_models/snaxdart_models.dart... Generating docs for library snaxdart_models from package:snaxdart_models/v1.dart... Validating docs... Documented 2 public libraries in 8.8 seconds stderr: warning: ambiguous reexport of accounts.Accounts, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from accounts.Accounts: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/accounts.dart:9:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) Use {@canonicalFor accounts.Accounts} in the desired library's documentation to resolve the ambiguity and/or override dartdoc's decision, or structure your package so the reexport is less ambiguous. The symbol will still be referenced in all candidates -- this only controls the location where it will be written and which library will be displayed in navigation for the relevant pages. The flag --ambiguous-reexport-scorer-min-confidence allows you to set the threshold at which this warning will appear. warning: ambiguous reexport of app_state.AppState, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from app_state.AppState: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/app_state.dart:8:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of global.Global, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from global.Global: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/global.dart:23:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of transaction.IncompleteWalletTransaction, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from transaction.IncompleteWalletTransaction: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/transaction.dart:68:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of transaction.WalletTransaction, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from transaction.WalletTransaction: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/transaction.dart:10:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of sign_up.SignUp, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from sign_up.SignUp: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/sign_up.dart:9:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of steem_account.SteemAccount, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from steem_account.SteemAccount: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/steem_account.dart:7:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of transfer.Transfer, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from transfer.Transfer: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/transfer.dart:9:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of twitter_account.TwitterAccount, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from twitter_account.TwitterAccount: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/twitter_account.dart:7:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of view.View, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from view.View: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/view.dart:9:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of wallet.Wallet, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from wallet.Wallet: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/wallet.dart:8:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of wallet_account.WalletAccount, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from wallet_account.WalletAccount: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/wallet_account.dart:9:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of transactions.WalletTransactions, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from transactions.WalletTransactions: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/transactions.dart:9:7) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of global.ApplicationRoute, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from global.ApplicationRoute: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/global.dart:8:6) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of global.NetworkState, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from global.NetworkState: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/global.dart:20:6) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of global.Platform, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from global.Platform: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/global.dart:6:6) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of transaction.TransactionSource, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from transaction.TransactionSource: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/transaction.dart:6:6) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: ambiguous reexport of transaction.TransactionType, canonicalization candidates: (snaxdart_models, snaxdart_models) -> snaxdart_models (confidence 0.000) from transaction.TransactionType: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/src/v1/transaction.dart:7:6) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) snaxdart_models: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667) warning: snaxdart_models has no library level documentation comments, from snaxdart_models: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/v1.dart:1:9) error: failed to write file at: snaxdart_models/snaxdart_models-library.html for symbol snaxdart_models: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/v1.dart:1:9) conflicting with file already generated by snaxdart_models: (file:///tmp/pub-dartlang-dartdocHBEWMH/pkg/lib/snaxdart_models.dart:1:1) Dartdoc generates a path and filename to write to for each symbol. snaxdart_models conflicts with another symbol in the generated path, and therefore can not be written out. Changing the name, library name, or class name (if appropriate) of one of the conflicting items can resolve the conflict. Alternatively, use the @nodoc tag in one symbol's documentation comments to hide it. found 19 warnings and 1 error Unhandled exception: dartdoc encountered 1 errors while processing. #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:225:9)

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 1.2.0
json_annotation ^2.2.0 2.3.0 3.0.1
json_serializable ^2.2.0 2.3.0 3.3.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.39.11
args 1.6.0
async 2.4.1
bs58check 1.0.1
build 1.3.0
build_config 0.4.2
charcode 1.1.3
checked_yaml 1.0.2
collection 1.14.13
convert 2.1.1
crypto 2.1.5
csslib 0.16.1
dart_style 1.2.9 1.3.6
front_end 0.1.19 0.1.29
glob 1.2.0
hex 0.1.2
html 0.14.0+3
http 0.12.1
http_parser 3.1.4
js 0.6.2
kernel 0.3.19 0.3.29
logging 0.11.4
meta 1.1.8 1.2.0
node_interop 1.1.1
node_io 1.1.1
package_config 1.9.3
path 1.7.0
pointycastle 1.0.2
pub_semver 1.4.4
pubspec_parse 0.1.5
source_gen 0.9.4+4 0.9.5
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.2.0
watcher 0.9.7+15
yaml 2.2.1
Dev dependencies
build_runner ^1.3.3
pedantic ^1.0.0 1.9.0 1.9.1
test ^1.6.4