-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from archethic-foundation/61-watchaccount---on…
…changecallback2-is-not-correct fix: 🐛 Fix watchAccount method
- Loading branch information
Showing
8 changed files
with
43 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
## 1.0.0-rc.5 | ||
* 🐛 Fix watchAccount method | ||
|
||
## 1.0.0-rc.4 | ||
* ✨ reconnect method implemented. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import 'package:wagmi_flutter_web/src/models/account.dart'; | ||
|
||
/// [Documentation API](https://wagmi.sh/core/api/actions/watchAccount) | ||
typedef OnChangeCallback2 = void Function(Map<String, dynamic> accounts); | ||
typedef OnChangeCallbackWatchAccount = void Function( | ||
Account account, | ||
Account prevAccount, | ||
); | ||
|
||
class WatchAccountParameters { | ||
WatchAccountParameters({required this.onChange}); | ||
final OnChangeCallback2 onChange; | ||
final OnChangeCallbackWatchAccount onChange; | ||
} | ||
|
||
typedef WatchAccountReturnType = void Function(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters