fn get_order(env: soroban_sdk::Env, order_id: u64) -> Option
fn initialize(
env: soroban_sdk::Env,
admin: soroban_sdk::Address,
token_wasm_hash: soroban_sdk::Address,
)
fn create_order(
env: soroban_sdk::Env,
user: soroban_sdk::Address,
order_type: OrderType,
kwh_amount: i128,
price_per_kwh: i128,
device_id: soroban_sdk::String,
) -> u64
fn match_orders(env: soroban_sdk::Env, sell_id: u64, buy_id: u64)
fn calculate_yield(env: soroban_sdk::Env, amount: i128) -> i128