+int64_t __attribute__((export_name("TS_LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis"))) TS_LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(uint32_t ptr) {
+ LDKBalance *obj = (LDKBalance*)(ptr & ~1);
+ assert(obj->tag == LDKBalance_ClaimableOnChannelClose);
+ return obj->claimable_on_channel_close.claimable_amount_satoshis;
+}
+int64_t __attribute__((export_name("TS_LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis"))) TS_LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(uint32_t ptr) {
+ LDKBalance *obj = (LDKBalance*)(ptr & ~1);
+ assert(obj->tag == LDKBalance_ClaimableAwaitingConfirmations);
+ return obj->claimable_awaiting_confirmations.claimable_amount_satoshis;
+}
+int32_t __attribute__((export_name("TS_LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height"))) TS_LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(uint32_t ptr) {
+ LDKBalance *obj = (LDKBalance*)(ptr & ~1);
+ assert(obj->tag == LDKBalance_ClaimableAwaitingConfirmations);
+ return obj->claimable_awaiting_confirmations.confirmation_height;
+}
+int64_t __attribute__((export_name("TS_LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis"))) TS_LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(uint32_t ptr) {
+ LDKBalance *obj = (LDKBalance*)(ptr & ~1);
+ assert(obj->tag == LDKBalance_ContentiousClaimable);
+ return obj->contentious_claimable.claimable_amount_satoshis;
+}
+int32_t __attribute__((export_name("TS_LDKBalance_ContentiousClaimable_get_timeout_height"))) TS_LDKBalance_ContentiousClaimable_get_timeout_height(uint32_t ptr) {
+ LDKBalance *obj = (LDKBalance*)(ptr & ~1);
+ assert(obj->tag == LDKBalance_ContentiousClaimable);
+ return obj->contentious_claimable.timeout_height;
+}
+int64_t __attribute__((export_name("TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_amount_satoshis"))) TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_amount_satoshis(uint32_t ptr) {
+ LDKBalance *obj = (LDKBalance*)(ptr & ~1);
+ assert(obj->tag == LDKBalance_MaybeClaimableHTLCAwaitingTimeout);
+ return obj->maybe_claimable_htlc_awaiting_timeout.claimable_amount_satoshis;
+}
+int32_t __attribute__((export_name("TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_height"))) TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_height(uint32_t ptr) {
+ LDKBalance *obj = (LDKBalance*)(ptr & ~1);
+ assert(obj->tag == LDKBalance_MaybeClaimableHTLCAwaitingTimeout);
+ return obj->maybe_claimable_htlc_awaiting_timeout.claimable_height;
+}