web3_browser 0.0.1
web3_browser: ^0.0.1 copied to clipboard
Support for using web3 dart with browser clients such as MetaMask.
We analyzed this package 12 days ago, and awarded it 80 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
11 out of 18 API elements (61.1 %) have documentation comments.
Some symbols that are missing documentation: web3_browser, web3_browser.Ethereum, web3_browser.Ethereum.Ethereum.new, web3_browser.Ethereum.autoRefreshOnNetworkChange, web3_browser.Ethereum.chainId.
10/10 points: Package has an example
20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Web
These platforms are not supported:
Package not compatible with platform Android
Because:
package:web3_browser/web3_browser.dartthat imports:package:web3_browser/src/javascript.dartthat imports:package:web3_browser/src/dart_wrappers.dartthat imports:package:web3_browser/src/credentials.dartthat imports:package:js/js.dartthat imports:dart:js
Package not compatible with platform iOS
Because:
package:web3_browser/web3_browser.dartthat imports:package:web3_browser/src/javascript.dartthat imports:package:web3_browser/src/dart_wrappers.dartthat imports:package:web3_browser/src/credentials.dartthat imports:package:js/js.dartthat imports:dart:js
Package not compatible with platform Windows
Because:
package:web3_browser/web3_browser.dartthat imports:package:web3_browser/src/javascript.dartthat imports:package:web3_browser/src/dart_wrappers.dartthat imports:package:web3_browser/src/credentials.dartthat imports:package:js/js.dartthat imports:dart:js
Package not compatible with platform Linux
Because:
package:web3_browser/web3_browser.dartthat imports:package:web3_browser/src/javascript.dartthat imports:package:web3_browser/src/dart_wrappers.dartthat imports:package:web3_browser/src/credentials.dartthat imports:package:js/js.dartthat imports:dart:js
Package not compatible with platform macOS
Because:
package:web3_browser/web3_browser.dartthat imports:package:web3_browser/src/javascript.dartthat imports:package:web3_browser/src/dart_wrappers.dartthat imports:package:web3_browser/src/credentials.dartthat imports:package:js/js.dartthat imports:dart:js
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 4 issues. Showing the first 2:
ERROR: Missing concrete implementation of 'abstract class Credentials.signToEcSignature'.
lib/src/credentials.dart:13:7
╷
13 │ class MetaMaskCredentials extends CredentialsWithKnownAddress
│ ^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/credentials.dart
ERROR: The import of 'package:js/js.dart' is unnecessary because all of the used elements are also provided by the import of 'package:js/js_util.dart'.
lib/src/dart_wrappers.dart:3:8
╷
3 │ import 'package:js/js.dart';
│ ^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/dart_wrappers.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
js |
^0.6.4 |
0.6.7 | 0.7.2 | Discontinued |
web3dart |
^2.3.5 |
2.7.3 | 3.0.1 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
async |
- | 2.13.0 | 2.13.0 | |
collection |
- | 1.19.1 | 1.19.1 | |
convert |
- | 3.1.2 | 3.1.2 | |
crypto |
- | 3.0.7 | 3.0.7 | |
eip1559 |
- | 0.6.2 | 0.6.2 | |
eip55 |
- | 1.0.2 | 1.0.3 | |
fixnum |
- | 1.1.1 | 1.1.1 | |
http |
- | 1.6.0 | 1.6.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
json_rpc_2 |
- | 3.0.3 | 4.0.0 | |
meta |
- | 1.17.0 | 1.17.0 | |
path |
- | 1.9.1 | 1.9.1 | |
pointycastle |
- | 3.9.1 | 4.0.0 | |
sec |
- | 1.1.0 | 1.1.1 | |
source_span |
- | 1.10.1 | 1.10.1 | |
stack_trace |
- | 1.12.1 | 1.12.1 | |
stream_channel |
- | 2.1.4 | 2.1.4 | |
stream_transform |
- | 2.1.1 | 2.1.1 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
uuid |
- | 4.5.2 | 4.5.2 | |
wallet |
- | 0.0.13 | 0.0.18 | |
web |
- | 1.1.1 | 1.1.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
Found 3 issues. Showing the first 2:
The constraint `^0.6.4` on js does not support the stable version `0.7.0`.
Try running dart pub upgrade --major-versions js to update the constraint.
The constraint `^2.3.5` on web3dart does not support the stable version `3.0.0`.
Try running dart pub upgrade --major-versions web3dart to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 1 error:
UNNECESSARY_IMPORT-lib/src/dart_wrappers.dart:3:8- The import of 'package:js/js.dart' is unnecessary because all of the used elements are also provided by the import of 'package:js/js_util.dart'.
Run dart pub downgrade and then dart analyze to reproduce the above problem.
You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.
Analyzed with Pana 0.23.3, Dart 3.10.4.
Check the analysis log for details.