Skip to content

Commit 8141bdd

Browse files
committed
Update comments for the nullability annotation.
1 parent 2fbdae4 commit 8141bdd

15 files changed

+33
-0
lines changed

out/structs/AcceptChannel.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,8 @@ extension Bindings {
898898
}
899899

900900
/// Constructs a new AcceptChannel given each field
901+
///
902+
/// Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
901903
public init(
902904
temporaryChannelIdArg: [UInt8], dustLimitSatoshisArg: UInt64, maxHtlcValueInFlightMsatArg: UInt64,
903905
channelReserveSatoshisArg: UInt64, htlcMinimumMsatArg: UInt64, minimumDepthArg: UInt32,

out/structs/AcceptChannelV2.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,8 @@ extension Bindings {
10221022
}
10231023

10241024
/// Constructs a new AcceptChannelV2 given each field
1025+
///
1026+
/// Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
10251027
@available(
10261028
*, deprecated,
10271029
message:

out/structs/ChannelCounterparty.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ extension Bindings {
425425
}
426426

427427
/// Constructs a new ChannelCounterparty given each field
428+
///
429+
/// Note that forwarding_info_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
428430
public init(
429431
nodeIdArg: [UInt8], featuresArg: InitFeatures, unspendablePunishmentReserveArg: UInt64,
430432
forwardingInfoArg: CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: UInt64?,

out/structs/ChannelDetails.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,6 +1652,10 @@ extension Bindings {
16521652
}
16531653

16541654
/// Constructs a new ChannelDetails given each field
1655+
///
1656+
/// Note that funding_txo_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
1657+
/// Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
1658+
/// Note that config_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
16551659
public init(
16561660
channelIdArg: [UInt8], counterpartyArg: ChannelCounterparty, fundingTxoArg: OutPoint,
16571661
channelTypeArg: ChannelTypeFeatures, shortChannelIdArg: UInt64?, outboundScidAliasArg: UInt64?,

out/structs/ChannelTransactionParameters.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,9 @@ extension Bindings {
417417
}
418418

419419
/// Constructs a new ChannelTransactionParameters given each field
420+
///
421+
/// Note that counterparty_parameters_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
422+
/// Note that funding_outpoint_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
420423
public init(
421424
holderPubkeysArg: ChannelPublicKeys, holderSelectedContestDelayArg: UInt16, isOutboundFromHolderArg: Bool,
422425
counterpartyParametersArg: CounterpartyChannelTransactionParameters, fundingOutpointArg: OutPoint,

out/structs/ChannelUpdateInfo.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ extension Bindings {
426426
}
427427

428428
/// Constructs a new ChannelUpdateInfo given each field
429+
///
430+
/// Note that last_update_message_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
429431
public init(
430432
lastUpdateArg: UInt32, enabledArg: Bool, cltvExpiryDeltaArg: UInt16, htlcMinimumMsatArg: UInt64,
431433
htlcMaximumMsatArg: UInt64, feesArg: RoutingFees, lastUpdateMessageArg: ChannelUpdate

out/structs/ClosingSigned.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ extension Bindings {
301301
}
302302

303303
/// Constructs a new ClosingSigned given each field
304+
///
305+
/// Note that fee_range_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
304306
public init(
305307
channelIdArg: [UInt8], feeSatoshisArg: UInt64, signatureArg: [UInt8], feeRangeArg: ClosingSignedFeeRange
306308
) {

out/structs/CommitmentUpdate.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,8 @@ extension Bindings {
419419
}
420420

421421
/// Constructs a new CommitmentUpdate given each field
422+
///
423+
/// Note that update_fee_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
422424
public init(
423425
updateAddHtlcsArg: [UpdateAddHTLC], updateFulfillHtlcsArg: [UpdateFulfillHTLC],
424426
updateFailHtlcsArg: [UpdateFailHTLC], updateFailMalformedHtlcsArg: [UpdateFailMalformedHTLC],

out/structs/InvoiceError.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ extension Bindings {
201201
}
202202

203203
/// Constructs a new InvoiceError given each field
204+
///
205+
/// Note that erroneous_field_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
204206
public init(erroneousFieldArg: ErroneousField, messageArg: UntrustedString) {
205207
// native call variable prep
206208

out/structs/NodeAnnouncementInfo.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@ extension Bindings {
355355
}
356356

357357
/// Constructs a new NodeAnnouncementInfo given each field
358+
///
359+
/// Note that announcement_message_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
358360
public init(
359361
featuresArg: NodeFeatures, lastUpdateArg: UInt32, rgbArg: [UInt8], aliasArg: NodeAlias,
360362
announcementMessageArg: NodeAnnouncement

0 commit comments

Comments
 (0)