diff options
| author | Konstantin Ullrich <konstantinullrich12@gmail.com> | 2024-11-22 12:16:50 +0100 |
|---|---|---|
| committer | Konstantin Ullrich <konstantinullrich12@gmail.com> | 2024-11-22 12:16:50 +0100 |
| commit | 208c24479ec0ceca2b7c38034f23b164bf1672e5 (patch) | |
| tree | 6fe6693d04dfe96cf7479f52315d38e2094f77ae /impls/monero.dart/lib/src | |
| parent | 29bf49228652f7c6b4418cfde965e810e1cd09ba (diff) | |
add better dummy device for ledger
Diffstat (limited to 'impls/monero.dart/lib/src')
| -rw-r--r-- | impls/monero.dart/lib/src/checksum_monero.dart | 4 | ||||
| -rw-r--r-- | impls/monero.dart/lib/src/generated_bindings_monero.g.dart | 176 |
2 files changed, 34 insertions, 146 deletions
diff --git a/impls/monero.dart/lib/src/checksum_monero.dart b/impls/monero.dart/lib/src/checksum_monero.dart index 1092533..f3f2884 100644 --- a/impls/monero.dart/lib/src/checksum_monero.dart +++ b/impls/monero.dart/lib/src/checksum_monero.dart @@ -1,4 +1,4 @@ // ignore_for_file: constant_identifier_names -const String wallet2_api_c_h_sha256 = "198a27486ce4f014b737f52ec2879a90838c3b3ca088de8dc7d55b79a10f4a5b"; -const String wallet2_api_c_cpp_sha256 = "22b0c9dd542fb55edfe9e17da67e97ddf5f80bcdd3e126e1bd64cce54234bde1-b089f9ee69924882c5d14dd1a6991deb05d9d1cd"; +const String wallet2_api_c_h_sha256 = "87ec362cdf9b3e6403d899c11e7ae39d932a8098c3ebb360723b537bded2d8de"; +const String wallet2_api_c_cpp_sha256 = "32cc5fbbdb89e77f33619b7f3d942cfac4202f3a3838605a396aed3882d668b5-b089f9ee69924882c5d14dd1a6991deb05d9d1cd"; const String wallet2_api_c_exp_sha256 = "c1f785d62709fd8b849063ecf4fe8854d9e3b05b568b9716de98d33e7bdaf522"; diff --git a/impls/monero.dart/lib/src/generated_bindings_monero.g.dart b/impls/monero.dart/lib/src/generated_bindings_monero.g.dart index cd2124b..48a59a6 100644 --- a/impls/monero.dart/lib/src/generated_bindings_monero.g.dart +++ b/impls/monero.dart/lib/src/generated_bindings_monero.g.dart @@ -4384,158 +4384,46 @@ class MoneroC { late final _MONERO_Wallet_getBytesSent = _MONERO_Wallet_getBytesSentPtr .asFunction<int Function(ffi.Pointer<ffi.Void>)>(); - bool MONERO_Wallet_getStateIsConnected( + void MONERO_Wallet_setLedgerExchange( ffi.Pointer<ffi.Void> wallet_ptr, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer<ffi.UnsignedChar> command, + ffi.UnsignedInt cmd_len, + ffi.Pointer<ffi.UnsignedChar> response, + ffi.UnsignedInt max_resp_len)>> + sendToLedgerDevice, ) { - return _MONERO_Wallet_getStateIsConnected( + return _MONERO_Wallet_setLedgerExchange( wallet_ptr, + sendToLedgerDevice, ); } - late final _MONERO_Wallet_getStateIsConnectedPtr = - _lookup<ffi.NativeFunction<ffi.Bool Function(ffi.Pointer<ffi.Void>)>>( - 'MONERO_Wallet_getStateIsConnected'); - late final _MONERO_Wallet_getStateIsConnected = - _MONERO_Wallet_getStateIsConnectedPtr.asFunction< - bool Function(ffi.Pointer<ffi.Void>)>(); - - ffi.Pointer<ffi.UnsignedChar> MONERO_Wallet_getSendToDevice( - ffi.Pointer<ffi.Void> wallet_ptr, - ) { - return _MONERO_Wallet_getSendToDevice( - wallet_ptr, - ); - } - - late final _MONERO_Wallet_getSendToDevicePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer<ffi.UnsignedChar> Function( - ffi.Pointer<ffi.Void>)>>('MONERO_Wallet_getSendToDevice'); - late final _MONERO_Wallet_getSendToDevice = - _MONERO_Wallet_getSendToDevicePtr.asFunction< - ffi.Pointer<ffi.UnsignedChar> Function(ffi.Pointer<ffi.Void>)>(); - - int MONERO_Wallet_getSendToDeviceLength( - ffi.Pointer<ffi.Void> wallet_ptr, - ) { - return _MONERO_Wallet_getSendToDeviceLength( - wallet_ptr, - ); - } - - late final _MONERO_Wallet_getSendToDeviceLengthPtr = - _lookup<ffi.NativeFunction<ffi.Size Function(ffi.Pointer<ffi.Void>)>>( - 'MONERO_Wallet_getSendToDeviceLength'); - late final _MONERO_Wallet_getSendToDeviceLength = - _MONERO_Wallet_getSendToDeviceLengthPtr.asFunction< - int Function(ffi.Pointer<ffi.Void>)>(); - - ffi.Pointer<ffi.UnsignedChar> MONERO_Wallet_getReceivedFromDevice( - ffi.Pointer<ffi.Void> wallet_ptr, - ) { - return _MONERO_Wallet_getReceivedFromDevice( - wallet_ptr, - ); - } - - late final _MONERO_Wallet_getReceivedFromDevicePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer<ffi.UnsignedChar> Function( - ffi.Pointer<ffi.Void>)>>('MONERO_Wallet_getReceivedFromDevice'); - late final _MONERO_Wallet_getReceivedFromDevice = - _MONERO_Wallet_getReceivedFromDevicePtr.asFunction< - ffi.Pointer<ffi.UnsignedChar> Function(ffi.Pointer<ffi.Void>)>(); - - int MONERO_Wallet_getReceivedFromDeviceLength( - ffi.Pointer<ffi.Void> wallet_ptr, - ) { - return _MONERO_Wallet_getReceivedFromDeviceLength( - wallet_ptr, - ); - } - - late final _MONERO_Wallet_getReceivedFromDeviceLengthPtr = - _lookup<ffi.NativeFunction<ffi.Size Function(ffi.Pointer<ffi.Void>)>>( - 'MONERO_Wallet_getReceivedFromDeviceLength'); - late final _MONERO_Wallet_getReceivedFromDeviceLength = - _MONERO_Wallet_getReceivedFromDeviceLengthPtr.asFunction< - int Function(ffi.Pointer<ffi.Void>)>(); - - bool MONERO_Wallet_getWaitsForDeviceSend( - ffi.Pointer<ffi.Void> wallet_ptr, - ) { - return _MONERO_Wallet_getWaitsForDeviceSend( - wallet_ptr, - ); - } - - late final _MONERO_Wallet_getWaitsForDeviceSendPtr = - _lookup<ffi.NativeFunction<ffi.Bool Function(ffi.Pointer<ffi.Void>)>>( - 'MONERO_Wallet_getWaitsForDeviceSend'); - late final _MONERO_Wallet_getWaitsForDeviceSend = - _MONERO_Wallet_getWaitsForDeviceSendPtr.asFunction< - bool Function(ffi.Pointer<ffi.Void>)>(); - - bool MONERO_Wallet_getWaitsForDeviceReceive( - ffi.Pointer<ffi.Void> wallet_ptr, - ) { - return _MONERO_Wallet_getWaitsForDeviceReceive( - wallet_ptr, - ); - } - - late final _MONERO_Wallet_getWaitsForDeviceReceivePtr = - _lookup<ffi.NativeFunction<ffi.Bool Function(ffi.Pointer<ffi.Void>)>>( - 'MONERO_Wallet_getWaitsForDeviceReceive'); - late final _MONERO_Wallet_getWaitsForDeviceReceive = - _MONERO_Wallet_getWaitsForDeviceReceivePtr.asFunction< - bool Function(ffi.Pointer<ffi.Void>)>(); - - void MONERO_Wallet_setDeviceReceivedData( - ffi.Pointer<ffi.Void> wallet_ptr, - ffi.Pointer<ffi.UnsignedChar> data, - int len, - ) { - return _MONERO_Wallet_setDeviceReceivedData( - wallet_ptr, - data, - len, - ); - } - - late final _MONERO_Wallet_setDeviceReceivedDataPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<ffi.Void>, - ffi.Pointer<ffi.UnsignedChar>, - ffi.Size)>>('MONERO_Wallet_setDeviceReceivedData'); - late final _MONERO_Wallet_setDeviceReceivedData = - _MONERO_Wallet_setDeviceReceivedDataPtr.asFunction< + late final _MONERO_Wallet_setLedgerExchangePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<ffi.Void>, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer<ffi.UnsignedChar> command, + ffi.UnsignedInt cmd_len, + ffi.Pointer<ffi.UnsignedChar> response, + ffi.UnsignedInt max_resp_len)>>)>>( + 'MONERO_Wallet_setLedgerExchange'); + late final _MONERO_Wallet_setLedgerExchange = + _MONERO_Wallet_setLedgerExchangePtr.asFunction< void Function( - ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.UnsignedChar>, int)>(); - - void MONERO_Wallet_setDeviceSendData( - ffi.Pointer<ffi.Void> wallet_ptr, - ffi.Pointer<ffi.UnsignedChar> data, - int len, - ) { - return _MONERO_Wallet_setDeviceSendData( - wallet_ptr, - data, - len, - ); - } - - late final _MONERO_Wallet_setDeviceSendDataPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( ffi.Pointer<ffi.Void>, - ffi.Pointer<ffi.UnsignedChar>, - ffi.Size)>>('MONERO_Wallet_setDeviceSendData'); - late final _MONERO_Wallet_setDeviceSendData = - _MONERO_Wallet_setDeviceSendDataPtr.asFunction< - void Function( - ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.UnsignedChar>, int)>(); + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer<ffi.UnsignedChar> command, + ffi.UnsignedInt cmd_len, + ffi.Pointer<ffi.UnsignedChar> response, + ffi.UnsignedInt max_resp_len)>>)>(); ffi.Pointer<ffi.Void> MONERO_WalletManager_createWallet( ffi.Pointer<ffi.Void> wm_ptr, |
