Skip to content

Commit 9f6ad85

Browse files
committed
4.1.0
Update dependencies.
1 parent 0ec83f5 commit 9f6ad85

16 files changed

+41
-283
lines changed

Diff for: .dart_tool/package_config.json

+7-13
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
{
2929
"name": "blockchain_utils",
30-
"rootUri": "file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/blockchain_utils-1.6.0",
30+
"rootUri": "file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/blockchain_utils-2.0.1",
3131
"packageUri": "lib/",
3232
"languageVersion": "2.15"
3333
},
@@ -67,12 +67,6 @@
6767
"packageUri": "lib/",
6868
"languageVersion": "3.0"
6969
},
70-
{
71-
"name": "flutter_lints",
72-
"rootUri": "file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_lints-3.0.1",
73-
"packageUri": "lib/",
74-
"languageVersion": "3.0"
75-
},
7670
{
7771
"name": "frontend_server_client",
7872
"rootUri": "file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/frontend_server_client-3.2.0",
@@ -123,9 +117,9 @@
123117
},
124118
{
125119
"name": "matcher",
126-
"rootUri": "file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/matcher-0.12.16",
120+
"rootUri": "file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/matcher-0.12.16+1",
127121
"packageUri": "lib/",
128-
"languageVersion": "2.18"
122+
"languageVersion": "3.0"
129123
},
130124
{
131125
"name": "meta",
@@ -237,19 +231,19 @@
237231
},
238232
{
239233
"name": "test",
240-
"rootUri": "file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/test-1.24.9",
234+
"rootUri": "file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/test-1.25.2",
241235
"packageUri": "lib/",
242236
"languageVersion": "3.0"
243237
},
244238
{
245239
"name": "test_api",
246-
"rootUri": "file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/test_api-0.6.1",
240+
"rootUri": "file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/test_api-0.7.0",
247241
"packageUri": "lib/",
248242
"languageVersion": "3.0"
249243
},
250244
{
251245
"name": "test_core",
252-
"rootUri": "file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/test_core-0.5.9",
246+
"rootUri": "file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/test_core-0.6.0",
253247
"packageUri": "lib/",
254248
"languageVersion": "3.0"
255249
},
@@ -296,7 +290,7 @@
296290
"languageVersion": "2.15"
297291
}
298292
],
299-
"generated": "2024-01-24T18:21:43.538344Z",
293+
"generated": "2024-02-27T11:10:06.654853Z",
300294
"generator": "pub",
301295
"generatorVersion": "3.2.3"
302296
}

Diff for: .dart_tool/package_config_subset

-197
This file was deleted.

Diff for: .dart_tool/pub/bin/test/test.dart-3.2.3.snapshot

21.8 MB
Binary file not shown.

Diff for: .dart_tool/test/incremental_kernel.Ly9AZGFydD0yLjE1

-6.83 MB
Binary file not shown.

Diff for: .dart_tool/version

-1
This file was deleted.

Diff for: CHANGELOG.md

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1-
## Version 4.0.1
1+
## 4.1.0
2+
3+
- Update dependencies.
4+
5+
## 4.0.1
26

37
- Update the README.
48

5-
## Version 4.0.0
9+
## 4.0.0
610

7-
- Changed the package name from xrpl_dart to xrpl_dart to match the already existing SDK naming convention
11+
- Changed the package name from xrp_dart to xrpl_dart to match the already existing SDK naming convention
812

9-
## Version 3.0.3
13+
## 3.0.3
1014

1115
- Corrected fee calculation in the autoFill method.
1216
- Updated dependencies for enhanced performance and security.
1317

14-
## Version 3.0.2
18+
## 3.0.2
1519

1620
- Update dependencies.
1721
- Fixed encodeSeed method in web.
1822

19-
## Version 3.0.1
23+
## 3.0.1
2024

2125
- Update dependencies.
2226

23-
## Version 3.0.0
27+
## 3.0.0
2428

2529
- Added support for JSON-RPC WebSocket, expanding communication options.
2630
- Downgraded Dart SDK from 3.1 to 2.15 for compatibility.

Diff for: analysis_options.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:flutter_lints/flutter.yaml
1+
include: package:lints/recommended.yaml
22

33
# Additional information about this file can be found at
44
# https://dart.dev/guides/language/analysis-options

Diff for: example/lib/socket_rpc_example/http_example.dart

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// ignore_for_file: unused_local_variable
22

3+
import 'package:blockchain_utils/exception/exceptions.dart';
34
import 'package:example/socket_rpc_example/http_service.dart';
45
import 'package:xrpl_dart/xrpl_dart.dart';
56
import 'package:http/http.dart' as http;

Diff for: example/lib/socket_rpc_example/web_socket_example.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void websocketMethodsExample() async {
1919
/// see requset_params for list of requests
2020
}
2121

22-
void websocketStream() async {
22+
void test() async {
2323
/// stream event
2424
void onEnvet(Map<String, dynamic> event) {}
2525

Diff for: example/pubspec.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ packages:
2121
dependency: "direct main"
2222
description:
2323
name: blockchain_utils
24-
sha256: "9701dfaa74caad4daae1785f1ec4445cf7fb94e45620bc3a4aca1b9b281dc6c9"
24+
sha256: "7f16b50714c3b7c167d58f7f3b3839063c852af235a8937e4f6dd0a4298573b8"
2525
url: "https://pub.dev"
2626
source: hosted
27-
version: "1.6.0"
27+
version: "2.0.1"
2828
boolean_selector:
2929
dependency: transitive
3030
description:

Diff for: example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dependencies:
3535
http: ^1.1.2
3636
web_socket_channel: ^2.4.0
3737
asn1lib: ^1.5.0
38-
blockchain_utils: ^1.6.0
38+
blockchain_utils: ^2.0.1
3939

4040
# The following adds the Cupertino Icons font to your application.
4141
# Use with the CupertinoIcons class for iOS style icons.

Diff for: lib/src/rpc/exception/rpc_exception.dart

-34
This file was deleted.

Diff for: lib/src/rpc/provider/provider.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@ class XRPLRpc {
213213
Map<String, dynamic> data, RPCRequestDetails request) {
214214
// Check if an error is present in the response
215215
if (data["error"] != null) {
216-
final code = (data['error_code'] ?? 0) as int;
216+
final code = (int.tryParse((data['error_code']?.toString()) ?? "0") ?? 0);
217217
final message = (data['error_message'] ?? data["error"]) ?? "";
218218
// Throw an RPCError with the error details
219219
throw RPCError(
220220
errorCode: code,
221-
message: message,
221+
message: message.toString(),
222222
data: data,
223223
request: data["request"] ?? request.params);
224224
}

0 commit comments

Comments
 (0)