Skip to content

Commit

Permalink
feat: activate wallet events & add BasicAuth to wallet client & misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ez3kiel-dev committed Jan 20, 2024
1 parent 771d6c0 commit 8f6815d
Show file tree
Hide file tree
Showing 38 changed files with 1,468 additions and 321 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.15.0

- fix some dtos.
- activate wallet events.
- add BasicAuth to wallet client.

## 0.14.0

Daemon API upgrade :
Expand Down
10 changes: 7 additions & 3 deletions lib/src/data_transfer_objects/dtos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,22 @@ export 'submit_block/submit_block_params.dart';
export 'submit_transaction/submit_transaction_params.dart';
export 'transaction/burn.dart';
export 'transaction/call_contract.dart';
export 'transaction/transaction.dart';
export 'transaction/transaction_response.dart';
export 'transaction/transaction_type.dart';
export 'transaction/transfer.dart';
export 'transaction_executed_event/transaction_executed_event.dart';
export 'versioned_balance/versioned_balance.dart';
export 'wallet/balance_changed_event/balance_changed.dart';
export 'wallet/balance_changed_event/balance_changed_event.dart';
export 'wallet/build_transaction/build_transaction_params.dart';
export 'wallet/build_transaction/fee_builder.dart';
export 'wallet/get_address/get_address_params.dart';
export 'wallet/list_transactions/list_transactions_params.dart';
export 'wallet/list_transactions/transaction_entry.dart';
export 'wallet/new_asset_event/asset_with_data.dart';
export 'wallet/rescan/rescan_params.dart';
export 'wallet/split_address/split_address_params.dart';
export 'wallet/split_address/split_address_result.dart';
export 'wallet/transaction_entry/coinbase.dart';
export 'wallet/transaction_entry/incoming.dart';
export 'wallet/transaction_entry/outgoing.dart';
export 'wallet/transaction_entry/tranfer_entry.dart';
export 'wallet/transaction_entry/transaction_entry.dart';

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:xelis_dart_sdk/src/data_transfer_objects/dtos.dart';

part 'transaction.freezed.dart';
part 'transaction_response.freezed.dart';

part 'transaction.g.dart';
part 'transaction_response.g.dart';

@freezed
class Transaction with _$Transaction {
class TransactionResponse with _$TransactionResponse {
@JsonSerializable(includeIfNull: false)
const factory Transaction({
const factory TransactionResponse({
@JsonKey(name: 'blocks') List<String>? blocks,
@JsonKey(name: 'executed_in_block') String? executedInBlock,
@JsonKey(name: 'hash') required String hash,
Expand All @@ -21,8 +21,8 @@ class Transaction with _$Transaction {
@JsonKey(name: 'nonce') required int nonce,
@JsonKey(name: 'owner') required String owner,
@JsonKey(name: 'signature') required String signature,
}) = _Transaction;
}) = _TransactionResponse;

factory Transaction.fromJson(Map<String, dynamic> json) =>
_$TransactionFromJson(json);
factory TransactionResponse.fromJson(Map<String, dynamic> json) =>
_$TransactionResponseFromJson(json);
}
Loading

0 comments on commit 8f6815d

Please sign in to comment.