Skip to content

Commit cd79bf8

Browse files
committed
V6.7.0
Fix serialization issues in some Solana pre-instruction layouts.
1 parent 23255e1 commit cd79bf8

File tree

55 files changed

+769
-514
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+769
-514
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
## 6.7.0
2+
3+
- Fix serialization issues in some Solana pre-instruction layouts.
4+
15
## 6.6.0
26

37
- Update dependencies.
48
- Private keys (except sepc256r1) now using constant-time for safty generate public key
5-
- all sign method (except sepc256r1) using constant-time with blinding ecmult for safty generate signature"
9+
- all sign method (except sepc256r1) using constant-time for safty generate signature
610

711
## 6.5.0
812

analysis_options.yaml

Lines changed: 25 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,28 @@
1-
# This file configures the analyzer to use the lint rule set from `package:lint`
2-
include: package:lints/recommended.yaml
3-
# include: package:flutter_lints/flutter.yaml # For production apps
4-
# include: package:lint/casual.yaml # For code samples, hackathons and other non-production code
5-
# include: package:lint/package.yaml # Use this for packages with public API
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
67

8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
711

8-
# You might want to exclude auto-generated files from dart analysis
9-
analyzer:
10-
exclude:
11-
#- '**.freezed.dart'
12-
#- '**.g.dart'
13-
14-
# You can customize the lint rules set to your own liking. A list of all rules
15-
# can be found at https://dart-lang.github.io/linter/lints/options/options.html
1612
linter:
17-
# rules:
18-
# - unnecessary_const
19-
# - prefer_const_declarations
20-
# - prefer_final_locals # Warns when a local variable could be final
21-
# - prefer_final_in_for_each # Warns when a forEach variable could be final
22-
# - always_declare_return_types
23-
# - annotate_overrides
24-
# - avoid_init_to_null
25-
# - avoid_null_checks_in_equality_operators
26-
# - avoid_relative_lib_imports
27-
# - avoid_return_types_on_setters
28-
# - avoid_shadowing_type_parameters
29-
# - avoid_single_cascade_in_expression_statements
30-
# - avoid_types_as_parameter_names
31-
# - await_only_futures
32-
# - camel_case_extensions
33-
# - curly_braces_in_flow_control_structures
34-
# - empty_catches
35-
# - empty_constructor_bodies
36-
# - library_names
37-
# - library_prefixes
38-
# - no_duplicate_case_values
39-
# - null_closures
40-
# # - omit_local_variable_types
41-
# - prefer_adjacent_string_concatenation
42-
# - prefer_collection_literals
43-
# - prefer_conditional_assignment
44-
# - prefer_contains
45-
# - prefer_equal_for_default_values
46-
# - prefer_final_fields
47-
# - prefer_for_elements_to_map_fromIterable
48-
# - prefer_generic_function_type_aliases
49-
# - prefer_if_null_operators
50-
# - prefer_inlined_adds
51-
# - prefer_is_empty
52-
# - prefer_is_not_empty
53-
# - prefer_iterable_whereType
54-
# - prefer_single_quotes
55-
# - prefer_spread_collections
56-
# - recursive_getters
57-
# - slash_for_doc_comments
58-
# - sort_child_properties_last
59-
# - type_init_formals
60-
# - unawaited_futures
61-
# - unnecessary_brace_in_string_interps
62-
# - unnecessary_getters_setters
63-
# - unnecessary_new
64-
# - unnecessary_null_in_if_null_operators
65-
# - unnecessary_this
66-
# - unrelated_type_equality_checks
67-
# - use_function_type_syntax_for_parameters
68-
# - use_rethrow_when_possible
69-
# - valid_regexps
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
23+
rules:
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
27+
# Additional information about this file can be found at
28+
# https://dart.dev/guides/language/analysis-options

example/lib/example/tron/transactions/account/create_account_example.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,8 @@ void main() async {
2828
final request = await rpc
2929
.request(TronRequestCreateAccount.fromContract(transferContract));
3030

31-
/// An error has occurred with the request, and we need to investigate the issue to determine what is happening.
32-
if (!request.isSuccess) {
33-
/// print(request.error);
34-
return;
35-
}
36-
3731
/// get transactionRaw from response and make sure set fee limit
38-
final rawTr = request.transactionRaw!
32+
final rawTr = request.rawData
3933
.copyWith(data: utf8.encode("https://github.com/mrtnetwork"));
4034

4135
/// txID

example/lib/example/tron/transactions/account/update_account_name_example.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,8 @@ void main() async {
2727
final request =
2828
await rpc.request(TronRequestUpdateAccount.fromContract(contract));
2929

30-
/// An error has occurred with the request, and we need to investigate the issue to determine what is happening.
31-
if (!request.isSuccess) {
32-
// print(request.error);
33-
return;
34-
}
35-
3630
/// get transactionRaw from response and make sure set fee limit
37-
final rawTr = request.transactionRaw!.copyWith(
31+
final rawTr = request.rawData.copyWith(
3832
feeLimit: BigInt.from(10000000),
3933
data: utf8.encode("https://github.com/mrtnetwork"));
4034

example/lib/example/tron/transactions/account_resource/delegate_resource_v2.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,8 @@ void main() async {
3434
contract,
3535
permissionId: null));
3636

37-
/// An error has occurred with the request, and we need to investigate the issue to determine what is happening.
38-
if (!request.isSuccess) {
39-
// print(request.error);
40-
return;
41-
}
42-
4337
/// get transactionRaw from response and make sure set fee limit
44-
final rawTr = request.transactionRaw!.copyWith(
38+
final rawTr = request.rawData.copyWith(
4539
feeLimit: BigInt.from(10000000),
4640
data: utf8.encode("https://github.com/mrtnetwork"));
4741

example/lib/example/tron/transactions/account_resource/frozen_balance_v2.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,8 @@ void main() async {
2929
/// params: permission ID (multi-sig Transaction)
3030
contract));
3131

32-
/// An error has occurred with the request, and we need to investigate the issue to determine what is happening.
33-
if (!request.isSuccess) {
34-
//// print(request.error);
35-
return;
36-
}
37-
3832
/// get transactionRaw from response and make sure set fee limit
39-
final rawTr = request.transactionRaw!.copyWith(
33+
final rawTr = request.rawData.copyWith(
4034
feeLimit: BigInt.from(10000000),
4135
data: utf8.encode("https://github.com/mrtnetwork"));
4236

example/lib/example/tron/transactions/account_resource/undelegated_resource.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,8 @@ void main() async {
3131
contract,
3232
));
3333

34-
/// An error has occurred with the request, and we need to investigate the issue to determine what is happening.
35-
if (!request.isSuccess) {
36-
/// print(request.error);
37-
return;
38-
}
39-
4034
/// get transactionRaw from response and make sure set fee limit
41-
final rawTr = request.transactionRaw!.copyWith(
35+
final rawTr = request.rawData.copyWith(
4236
feeLimit: BigInt.from(10000000),
4337
data: utf8.encode("https://github.com/mrtnetwork"));
4438

example/lib/example/tron/transactions/account_resource/unfreez_balance_v2.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,8 @@ void main() async {
3030
contract,
3131
permissionId: null));
3232

33-
/// An error has occurred with the request, and we need to investigate the issue to determine what is happening.
34-
if (!request.isSuccess) {
35-
/// print(request.error);
36-
return;
37-
}
38-
3933
/// get transactionRaw from response and make sure set fee limit
40-
final rawTr = request.transactionRaw!.copyWith(
34+
final rawTr = request.rawData.copyWith(
4135
feeLimit: BigInt.from(10000000),
4236
data: utf8.encode("https://github.com/mrtnetwork"));
4337

example/lib/example/tron/transactions/asset_issue_examples/create_trc10_example.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,8 @@ void main() async {
4444
/// params: permission ID (multi-sig Transaction)
4545
transferContract));
4646

47-
/// An error has occurred with the request, and we need to investigate the issue to determine what is happening.
48-
if (!request.isSuccess) {
49-
/// print(request.error);
50-
return;
51-
}
52-
5347
/// get transactionRaw from response and make sure set fee limit
54-
final rawTr = request.transactionRaw!.copyWith(
48+
final rawTr = request.rawData.copyWith(
5549
feeLimit: BigInt.from(10000000),
5650
data: utf8.encode("https://github.com/mrtnetwork"));
5751

example/lib/example/tron/transactions/asset_issue_examples/particip_ateasset_issue_example.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,8 @@ void main() async {
4040
/// params: permission ID (multi-sig Transaction)
4141
contract));
4242

43-
/// An error has occurred with the request, and we need to investigate the issue to determine what is happening.
44-
if (!request.isSuccess) {
45-
/// print(request.error);
46-
return;
47-
}
48-
4943
/// get transactionRaw from response and make sure set fee limit
50-
final rawTr = request.transactionRaw!.copyWith(
44+
final rawTr = request.rawData.copyWith(
5145
feeLimit: BigInt.from(10000000),
5246
data: utf8.encode("https://github.com/mrtnetwork"));
5347

0 commit comments

Comments
 (0)