diff options
| author | cyan <cyjan@mrcyjanek.net> | 2024-07-30 17:46:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-30 17:46:55 +0200 |
| commit | 373588247bcdb0ef2a16531fb8cd556743c5cd74 (patch) | |
| tree | a26e5a4c08cd56b8e47a20cdc94306b0e7a3a01c /impls/monero.dart/lib/wownero.dart | |
| parent | 3b9928a665099f10cfd7e17f82cdf222e9f3ae27 (diff) | |
Generic safety cleanup (#22)
* create checksum system for versioning
* minor changes to CI
* dart ffi cleanup
* update checksums
Diffstat (limited to 'impls/monero.dart/lib/wownero.dart')
| -rw-r--r-- | impls/monero.dart/lib/wownero.dart | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/impls/monero.dart/lib/wownero.dart b/impls/monero.dart/lib/wownero.dart index 2f9252d..401da8d 100644 --- a/impls/monero.dart/lib/wownero.dart +++ b/impls/monero.dart/lib/wownero.dart @@ -77,6 +77,8 @@ import 'dart:io'; import 'package:ffi/ffi.dart'; import 'package:monero/src/generated_bindings_wownero.g.dart'; +export 'src/checksum_wownero.dart'; + typedef PendingTransaction = Pointer<Void>; WowneroC? lib; @@ -3604,6 +3606,53 @@ int WOWNERO_deprecated_14WordSeedHeight({ return s; } + +String WOWNERO_checksum_wallet2_api_c_h() { + debugStart?.call('WOWNERO_checksum_wallet2_api_c_h'); + lib ??= WowneroC(DynamicLibrary.open(libPath)); + + final s = lib!.WOWNERO_checksum_wallet2_api_c_h(); + debugEnd?.call('WOWNERO_checksum_wallet2_api_c_h'); + return s.cast<Utf8>().toDartString(); +} + +String WOWNERO_checksum_wallet2_api_c_cpp() { + debugStart?.call('WOWNERO_checksum_wallet2_api_c_cpp'); + lib ??= WowneroC(DynamicLibrary.open(libPath)); + + final s = lib!.WOWNERO_checksum_wallet2_api_c_cpp(); + debugEnd?.call('WOWNERO_checksum_wallet2_api_c_cpp'); + return s.cast<Utf8>().toDartString(); +} + +String WOWNERO_checksum_wallet2_api_c_exp() { + debugStart?.call('WOWNERO_checksum_wallet2_api_c_exp'); + lib ??= WowneroC(DynamicLibrary.open(libPath)); + + final s = lib!.WOWNERO_checksum_wallet2_api_c_exp(); + debugEnd?.call('WOWNERO_checksum_wallet2_api_c_exp'); + return s.cast<Utf8>().toDartString(); +} + +int WOWNERO_checksum_wallet2_api_c_version() { + debugStart?.call('WOWNERO_checksum_wallet2_api_c_version'); + lib ??= WowneroC(DynamicLibrary.open(libPath)); + + final s = lib!.WOWNERO_checksum_wallet2_api_c_version(); + debugEnd?.call('WOWNERO_checksum_wallet2_api_c_version'); + return s; +} + +String WOWNERO_checksum_wallet2_api_c_date() { + debugStart?.call('WOWNERO_checksum_wallet2_api_c_date'); + lib ??= WowneroC(DynamicLibrary.open(libPath)); + + final s = lib!.WOWNERO_checksum_wallet2_api_c_date(); + debugEnd?.call('WOWNERO_checksum_wallet2_api_c_date'); + return s.cast<Utf8>().toDartString(); +} + + void WOWNERO_free(Pointer<Void> wlptr) { debugStart?.call('WOWNERO_free'); lib ??= WowneroC(DynamicLibrary.open(libPath)); |
