@@ -406,15 +406,7 @@ enum PaymentFailureReason {
406406 "BlindedPathCreationFailed",
407407};
408408
409- [Enum]
410- interface PaymentKind {
411- Onchain(Txid txid, ConfirmationStatus status);
412- Bolt11(PaymentHash hash, PaymentPreimage? preimage, PaymentSecret? secret);
413- Bolt11Jit(PaymentHash hash, PaymentPreimage? preimage, PaymentSecret? secret, u64? counterparty_skimmed_fee_msat, LSPFeeLimits lsp_fee_limits);
414- Bolt12Offer(PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret, OfferId offer_id, UntrustedString? payer_note, u64? quantity);
415- Bolt12Refund(PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret, UntrustedString? payer_note, u64? quantity);
416- Spontaneous(PaymentHash hash, PaymentPreimage? preimage);
417- };
409+ typedef enum PaymentKind;
418410
419411[Enum]
420412interface UnifiedPaymentResult {
@@ -427,16 +419,9 @@ typedef enum PaymentDirection;
427419
428420typedef enum PaymentStatus;
429421
430- dictionary LSPFeeLimits {
431- u64? max_total_opening_fee_msat;
432- u64? max_proportional_opening_fee_ppm_msat;
433- };
422+ typedef dictionary LSPFeeLimits;
434423
435- [Enum]
436- interface ConfirmationStatus {
437- Confirmed (BlockHash block_hash, u32 height, u64 timestamp);
438- Unconfirmed ();
439- };
424+ typedef enum ConfirmationStatus;
440425
441426dictionary PaymentDetails {
442427 PaymentId id;
@@ -574,54 +559,7 @@ dictionary PeerDetails {
574559 boolean is_connected;
575560};
576561
577- [Enum]
578- interface LightningBalance {
579- ClaimableOnChannelClose (
580- ChannelId channel_id,
581- PublicKey counterparty_node_id,
582- u64 amount_satoshis,
583- u64 transaction_fee_satoshis,
584- u64 outbound_payment_htlc_rounded_msat,
585- u64 outbound_forwarded_htlc_rounded_msat,
586- u64 inbound_claiming_htlc_rounded_msat,
587- u64 inbound_htlc_rounded_msat
588- );
589- ClaimableAwaitingConfirmations (
590- ChannelId channel_id,
591- PublicKey counterparty_node_id,
592- u64 amount_satoshis,
593- u32 confirmation_height,
594- BalanceSource source
595- );
596- ContentiousClaimable (
597- ChannelId channel_id,
598- PublicKey counterparty_node_id,
599- u64 amount_satoshis,
600- u32 timeout_height,
601- PaymentHash payment_hash,
602- PaymentPreimage payment_preimage
603- );
604- MaybeTimeoutClaimableHTLC (
605- ChannelId channel_id,
606- PublicKey counterparty_node_id,
607- u64 amount_satoshis,
608- u32 claimable_height,
609- PaymentHash payment_hash,
610- boolean outbound_payment
611- );
612- MaybePreimageClaimableHTLC (
613- ChannelId channel_id,
614- PublicKey counterparty_node_id,
615- u64 amount_satoshis,
616- u32 expiry_height,
617- PaymentHash payment_hash
618- );
619- CounterpartyRevokedOutputClaimable (
620- ChannelId channel_id,
621- PublicKey counterparty_node_id,
622- u64 amount_satoshis
623- );
624- };
562+ typedef enum LightningBalance;
625563
626564[Remote]
627565enum BalanceSource {
@@ -631,12 +569,7 @@ enum BalanceSource {
631569 "Htlc",
632570};
633571
634- [Enum]
635- interface PendingSweepBalance {
636- PendingBroadcast ( ChannelId? channel_id, u64 amount_satoshis );
637- BroadcastAwaitingConfirmation ( ChannelId? channel_id, u32 latest_broadcast_height, Txid latest_spending_txid, u64 amount_satoshis );
638- AwaitingThresholdConfirmations ( ChannelId? channel_id, Txid latest_spending_txid, BlockHash confirmation_hash, u32 confirmation_height, u64 amount_satoshis);
639- };
572+ typedef enum PendingSweepBalance;
640573
641574dictionary BalanceDetails {
642575 u64 total_onchain_balance_sats;
@@ -656,11 +589,7 @@ dictionary ChannelConfig {
656589 boolean accept_underpaying_htlcs;
657590};
658591
659- [Enum]
660- interface MaxDustHTLCExposure {
661- FixedLimit ( u64 limit_msat );
662- FeeRateMultiplier ( u64 multiplier );
663- };
592+ typedef enum MaxDustHTLCExposure;
664593
665594interface NetworkGraph {
666595 sequence<u64> list_channels();
0 commit comments