@@ -414,21 +414,6 @@ enum VssHeaderProviderError {
414414 "InternalError",
415415};
416416
417- [Enum]
418- interface Event {
419- PaymentSuccessful(PaymentId? payment_id, PaymentHash payment_hash, PaymentPreimage? payment_preimage, u64? fee_paid_msat);
420- PaymentFailed(PaymentId? payment_id, PaymentHash? payment_hash, PaymentFailureReason? reason);
421- PaymentReceived(PaymentId? payment_id, PaymentHash payment_hash, u64 amount_msat, sequence<CustomTlvRecord> custom_records);
422- PaymentClaimable(PaymentId payment_id, PaymentHash payment_hash, u64 claimable_amount_msat, u32? claim_deadline, sequence<CustomTlvRecord> custom_records);
423- PaymentForwarded(ChannelId prev_channel_id, ChannelId next_channel_id, UserChannelId?
424- prev_user_channel_id, UserChannelId? next_user_channel_id, PublicKey? prev_node_id, PublicKey? next_node_id, u64? total_fee_earned_msat, u64? skimmed_fee_msat, boolean claim_from_onchain_tx, u64? outbound_amount_forwarded_msat);
425- ChannelPending(ChannelId channel_id, UserChannelId user_channel_id, ChannelId former_temporary_channel_id, PublicKey counterparty_node_id, OutPoint funding_txo);
426- ChannelReady(ChannelId channel_id, UserChannelId user_channel_id, PublicKey? counterparty_node_id, OutPoint? funding_txo);
427- ChannelClosed(ChannelId channel_id, UserChannelId user_channel_id, PublicKey? counterparty_node_id, ClosureReason? reason);
428- SplicePending(ChannelId channel_id, UserChannelId user_channel_id, PublicKey counterparty_node_id, OutPoint new_funding_txo);
429- SpliceFailed(ChannelId channel_id, UserChannelId user_channel_id, PublicKey counterparty_node_id, OutPoint? abandoned_funding_txo);
430- };
431-
432417[Remote]
433418enum PaymentFailureReason {
434419 "RecipientRejected",
@@ -443,25 +428,6 @@ enum PaymentFailureReason {
443428 "BlindedPathCreationFailed",
444429};
445430
446- [Enum]
447- interface ClosureReason {
448- CounterpartyForceClosed(UntrustedString peer_msg);
449- HolderForceClosed(boolean? broadcasted_latest_txn, string message);
450- LegacyCooperativeClosure();
451- CounterpartyInitiatedCooperativeClosure();
452- LocallyInitiatedCooperativeClosure();
453- CommitmentTxConfirmed();
454- FundingTimedOut();
455- ProcessingError(string err);
456- DisconnectedPeer();
457- OutdatedChannelManager();
458- CounterpartyCoopClosedUnfundedChannel();
459- LocallyCoopClosedUnfundedChannel();
460- FundingBatchClosure();
461- HTLCsTimedOut( PaymentHash? payment_hash );
462- PeerFeerateTooLow(u32 peer_feerate_sat_per_kw, u32 required_feerate_sat_per_kw);
463- };
464-
465431[Enum]
466432interface PaymentKind {
467433 Onchain(Txid txid, ConfirmationStatus status);
@@ -939,3 +905,6 @@ typedef string LSPSDateTime;
939905
940906[Custom]
941907typedef string ScriptBuf;
908+
909+ typedef interface ClosureReason;
910+ typedef enum Event;
0 commit comments