Summary
Each BDK type wrapper requires ~50-100 lines of repetitive boilerplate (struct definition, From/Into impls, wasm_bindgen getters/setters). Investigate if procedural or declarative macros can reduce this.
Current Pattern
#[wasm_bindgen]
pub struct WasmType(BdkType);
impl From<BdkType> for WasmType { ... }
impl From<WasmType> for BdkType { ... }
#[wasm_bindgen]
impl WasmType {
#[wasm_bindgen(getter)]
pub fn field(&self) -> ... { self.0.field.into() }
// ... repeat for every field
}
Tasks