mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-06-04 16:19:32 +00:00
BREAKING CHANGE: LEZ crates have been moved from top-level directories into
a dedicated `lez/` subdirectory. The following crates were relocated:
common → lez/common
indexer → lez/indexer
explorer_service→ lez/explorer_service
keycard_wallet → lez/keycard_wallet
mempool → lez/mempool
sequencer → lez/sequencer
storage → lez/storage
testnet_initial_state → lez/testnet_initial_state
wallet → lez/wallet
wallet-ffi → lez/wallet-ffi
Any external tooling, scripts, or paths referencing these crates at their
previous top-level locations must be updated.
41 lines
1.1 KiB
TOML
41 lines
1.1 KiB
TOML
language = "C"
|
|
header = """
|
|
/**
|
|
* LEE Wallet FFI Bindings
|
|
*
|
|
* Thread Safety: All functions are thread-safe. The wallet handle can be
|
|
* shared across threads, but operations are serialized internally.
|
|
*
|
|
* Memory Management:
|
|
* - Functions returning pointers allocate memory that must be freed
|
|
* - Use the corresponding wallet_ffi_free_* function to free memory
|
|
* - Never free memory returned by FFI using standard C free()
|
|
*
|
|
* Error Handling:
|
|
* - Functions return WalletFfiError codes
|
|
* - On error, call wallet_ffi_get_last_error() for detailed message
|
|
* - The error string must be freed with wallet_ffi_free_error_string()
|
|
*
|
|
* Initialization:
|
|
* 1. Call wallet_ffi_init_runtime() before any other function
|
|
* 2. Create wallet with wallet_ffi_create_new() or wallet_ffi_open()
|
|
* 3. Destroy wallet with wallet_ffi_destroy() when done
|
|
*/
|
|
"""
|
|
|
|
include_guard = "WALLET_FFI_H"
|
|
include_version = true
|
|
no_includes = false
|
|
|
|
[export]
|
|
include = ["Ffi.*", "WalletFfiError", "WalletHandle"]
|
|
|
|
[enum]
|
|
rename_variants = "ScreamingSnakeCase"
|
|
|
|
[fn]
|
|
rename_args = "None"
|
|
|
|
[struct]
|
|
rename_fields = "None"
|