import 'dart:ffi'; import 'package:cw_monero/structs/pending_transaction.dart'; import 'package:cw_monero/structs/ut8_box.dart'; import 'package:ffi/ffi.dart'; typedef CreateWallet = int Function( Pointer, Pointer, Pointer, int, Pointer); typedef RestoreWalletFromSeed = int Function( Pointer, Pointer, Pointer, int, int, Pointer); typedef RestoreWalletFromKeys = int Function(Pointer, Pointer, Pointer, Pointer, Pointer, Pointer, int, int, Pointer); typedef IsWalletExist = int Function(Pointer); typedef LoadWallet = int Function(Pointer, Pointer, int); typedef ErrorString = Pointer Function(); typedef GetFilename = Pointer Function(); typedef GetSeed = Pointer Function(); typedef GetAddress = Pointer Function(int, int); typedef GetFullBalance = int Function(int); typedef GetUnlockedBalance = int Function(int); typedef GetCurrentHeight = int Function(); typedef GetNodeHeight = int Function(); typedef IsConnected = int Function(); typedef SetupNode = int Function( Pointer, Pointer, Pointer, int, int, Pointer); typedef StartRefresh = void Function(); typedef ConnectToNode = int Function(); typedef SetRefreshFromBlockHeight = void Function(int); typedef SetRecoveringFromSeed = void Function(int); typedef Store = void Function(Pointer); typedef SetListener = void Function(); typedef GetSyncingHeight = int Function(); typedef IsNeededToRefresh = int Function(); typedef IsNewTransactionExist = int Function(); typedef SubaddressSize = int Function(); typedef SubaddressRefresh = void Function(int); typedef SubaddressGetAll = Pointer Function(); typedef SubaddressAddNew = void Function(int accountIndex, Pointer label); typedef SubaddressSetLabel = void Function( int accountIndex, int addressIndex, Pointer label); typedef AccountSize = int Function(); typedef AccountRefresh = void Function(); typedef AccountGetAll = Pointer Function(); typedef AccountAddNew = void Function(Pointer label); typedef AccountSetLabel = void Function(int accountIndex, Pointer label); typedef TransactionsRefresh = void Function(); typedef GetTxKey = Pointer Function(Pointer txId); typedef TransactionsCount = int Function(); typedef TransactionsGetAll = Pointer Function(); typedef TransactionCreate = int Function( Pointer address, Pointer paymentId, Pointer amount, int priorityRaw, int subaddrAccount, Pointer error, Pointer pendingTransaction); typedef TransactionCreateMultDest = int Function( Pointer> addresses, Pointer paymentId, Pointer> amounts, int size, int priorityRaw, int subaddrAccount, Pointer error, Pointer pendingTransaction); typedef TransactionCommit = int Function(Pointer, Pointer); typedef SecretViewKey = Pointer Function(); typedef PublicViewKey = Pointer Function(); typedef SecretSpendKey = Pointer Function(); typedef PublicSpendKey = Pointer Function(); typedef CloseCurrentWallet = void Function(); typedef OnStartup = void Function(); typedef RescanBlockchainAsync = void Function();