Skip to content

Commit

Permalink
wallet and daemon APIs upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Ez3kiel-dev committed Apr 25, 2024
1 parent 7f468de commit bc03e4c
Show file tree
Hide file tree
Showing 66 changed files with 2,136 additions and 1,066 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ pubspec.lock
coverage/html/
doc/
playground/
test/
TODO.txt
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## 0.18.0

Daemon API upgrade :

- new getMempoolCache RPC method.
- new isAccountRegistered RPC method.
- new getAccountRegistrationTopoheight RPC method.
- fix some dtos.

Wallet API upgrade :

- new hasBalance RPC method.
- new estimateFees RPC method.
- fix some dtos.

## 0.17.0

Daemon API upgrade :
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ JSON-RPC Clients to interact with daemon and wallet API.
- isTxExecutedInBlock
- getDevFeeThresholds
- getSizeOnDisk
- getMempoolCache
- isAccountRegistered
- getAccountRegistrationTopoheight

#### Wallet

Expand All @@ -59,13 +62,15 @@ JSON-RPC Clients to interact with daemon and wallet API.
- splitAddress
- rescan
- getBalance
- hasBalance
- getTrackedAssets
- getAssetPrecision
- getTransaction
- buildTransaction
- listTransactions
- isOnline
- signData
- estimateFees

### Websocket Events

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

import 'package:freezed_annotation/freezed_annotation.dart';

part 'asset.freezed.dart';
part 'asset_data.freezed.dart';

part 'asset.g.dart';
part 'asset_data.g.dart';

/// @nodoc
@freezed
class Asset with _$Asset {
class AssetData with _$AssetData {
/// @nodoc
const factory Asset({
@JsonKey(name: 'asset') required String asset,
const factory AssetData({
@JsonKey(name: 'topoheight') required int topoheight,
@JsonKey(name: 'decimals') required int decimals,
}) = _Asset;
}) = _AssetData;

/// @nodoc
factory Asset.fromJson(Map<String, dynamic> json) => _$AssetFromJson(json);
factory AssetData.fromJson(Map<String, dynamic> json) =>
_$AssetDataFromJson(json);
}

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 @@ -11,8 +11,8 @@ part 'asset_with_data.g.dart';
class AssetWithData with _$AssetWithData {
/// @nodoc
const factory AssetWithData({
@JsonKey(name: 'asset') required String assetHash,
@JsonKey(name: 'topoheight') required int topoHeight,
@JsonKey(name: 'asset') required String asset,
@JsonKey(name: 'topoheight') required int topoheight,
@JsonKey(name: 'decimals') required int decimals,
}) = _AssetWithData;

Expand Down
Loading

0 comments on commit bc03e4c

Please sign in to comment.