- /**
- * The minimum HTLC size incoming to sender, in milli-satoshi
- */
- public get_htlc_minimum_msat(): bigint {
- const ret: bigint = bindings.AcceptChannel_get_htlc_minimum_msat(this.ptr);
- return ret;
- }
-
- /**
- * The minimum HTLC size incoming to sender, in milli-satoshi
- */
- public set_htlc_minimum_msat(val: bigint): void {
- bindings.AcceptChannel_set_htlc_minimum_msat(this.ptr, val);
- }
-
- /**
- * Minimum depth of the funding transaction before the channel is considered open
- */
- public get_minimum_depth(): number {
- const ret: number = bindings.AcceptChannel_get_minimum_depth(this.ptr);
- return ret;
- }
-
- /**
- * Minimum depth of the funding transaction before the channel is considered open
- */
- public set_minimum_depth(val: number): void {
- bindings.AcceptChannel_set_minimum_depth(this.ptr, val);
- }
-
- /**
- * The number of blocks which the counterparty will have to wait to claim on-chain funds if they broadcast a commitment transaction
- */
- public get_to_self_delay(): number {
- const ret: number = bindings.AcceptChannel_get_to_self_delay(this.ptr);
- return ret;
- }
-
- /**
- * The number of blocks which the counterparty will have to wait to claim on-chain funds if they broadcast a commitment transaction
- */
- public set_to_self_delay(val: number): void {
- bindings.AcceptChannel_set_to_self_delay(this.ptr, val);
- }
-
- /**
- * The maximum number of inbound HTLCs towards sender
- */
- public get_max_accepted_htlcs(): number {
- const ret: number = bindings.AcceptChannel_get_max_accepted_htlcs(this.ptr);
- return ret;
- }
-
- /**
- * The maximum number of inbound HTLCs towards sender
- */
- public set_max_accepted_htlcs(val: number): void {
- bindings.AcceptChannel_set_max_accepted_htlcs(this.ptr, val);
- }
-
- /**
- * The sender's key controlling the funding transaction
- */
- public get_funding_pubkey(): Uint8Array {
- const ret: number = bindings.AcceptChannel_get_funding_pubkey(this.ptr);
- const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
- return ret_conv;
- }
-
- /**
- * The sender's key controlling the funding transaction
- */
- public set_funding_pubkey(val: Uint8Array): void {
- bindings.AcceptChannel_set_funding_pubkey(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
- }
-
- /**
- * Used to derive a revocation key for transactions broadcast by counterparty
- */
- public get_revocation_basepoint(): Uint8Array {
- const ret: number = bindings.AcceptChannel_get_revocation_basepoint(this.ptr);
- const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
- return ret_conv;
- }
-
- /**
- * Used to derive a revocation key for transactions broadcast by counterparty
- */
- public set_revocation_basepoint(val: Uint8Array): void {
- bindings.AcceptChannel_set_revocation_basepoint(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
- }
-
- /**
- * A payment key to sender for transactions broadcast by counterparty
- */
- public get_payment_point(): Uint8Array {
- const ret: number = bindings.AcceptChannel_get_payment_point(this.ptr);
- const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
- return ret_conv;
- }
-
- /**
- * A payment key to sender for transactions broadcast by counterparty
- */
- public set_payment_point(val: Uint8Array): void {
- bindings.AcceptChannel_set_payment_point(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
- }
-
- /**
- * Used to derive a payment key to sender for transactions broadcast by sender
- */
- public get_delayed_payment_basepoint(): Uint8Array {
- const ret: number = bindings.AcceptChannel_get_delayed_payment_basepoint(this.ptr);
- const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
- return ret_conv;
- }
-
- /**
- * Used to derive a payment key to sender for transactions broadcast by sender
- */
- public set_delayed_payment_basepoint(val: Uint8Array): void {
- bindings.AcceptChannel_set_delayed_payment_basepoint(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
- }
-
- /**
- * Used to derive an HTLC payment key to sender for transactions broadcast by counterparty
- */
- public get_htlc_basepoint(): Uint8Array {
- const ret: number = bindings.AcceptChannel_get_htlc_basepoint(this.ptr);
- const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
- return ret_conv;
- }
-
- /**
- * Used to derive an HTLC payment key to sender for transactions broadcast by counterparty
- */
- public set_htlc_basepoint(val: Uint8Array): void {
- bindings.AcceptChannel_set_htlc_basepoint(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
- }
-
- /**
- * The first to-be-broadcast-by-sender transaction's per commitment point
- */
- public get_first_per_commitment_point(): Uint8Array {
- const ret: number = bindings.AcceptChannel_get_first_per_commitment_point(this.ptr);
- const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
- return ret_conv;
- }
-
- /**
- * The first to-be-broadcast-by-sender transaction's per commitment point
- */
- public set_first_per_commitment_point(val: Uint8Array): void {
- bindings.AcceptChannel_set_first_per_commitment_point(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
- }
-
- /**
- * A request to pre-set the to-sender output's scriptPubkey for when we collaboratively close
- */
- public get_shutdown_scriptpubkey(): Option_CVec_u8ZZ {
- const ret: bigint = bindings.AcceptChannel_get_shutdown_scriptpubkey(this.ptr);
- const ret_hu_conv: Option_CVec_u8ZZ = Option_CVec_u8ZZ.constr_from_ptr(ret);
- CommonBase.add_ref_from(ret_hu_conv, this);
- return ret_hu_conv;
- }
-
- /**
- * A request to pre-set the to-sender output's scriptPubkey for when we collaboratively close
- */
- public set_shutdown_scriptpubkey(val: Option_CVec_u8ZZ): void {
- bindings.AcceptChannel_set_shutdown_scriptpubkey(this.ptr, CommonBase.get_ptr_of(val));
- CommonBase.add_ref_from(this, val);
- }
-
- /**
- * The channel type that this channel will represent.
- *
- * If this is `None`, we derive the channel type from the intersection of
- * our feature bits with our counterparty's feature bits from the [`Init`] message.
- * This is required to match the equivalent field in [`OpenChannel::channel_type`].
- *
- * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
- */
- public get_channel_type(): ChannelTypeFeatures {
- const ret: bigint = bindings.AcceptChannel_get_channel_type(this.ptr);
- const ret_hu_conv: ChannelTypeFeatures = new ChannelTypeFeatures(null, ret);
- CommonBase.add_ref_from(ret_hu_conv, this);
- return ret_hu_conv;
- }
-
- /**
- * The channel type that this channel will represent.
- *
- * If this is `None`, we derive the channel type from the intersection of
- * our feature bits with our counterparty's feature bits from the [`Init`] message.
- * This is required to match the equivalent field in [`OpenChannel::channel_type`].
- *
- * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
- */
- public set_channel_type(val: ChannelTypeFeatures|null): void {
- bindings.AcceptChannel_set_channel_type(this.ptr, val == null ? 0n : CommonBase.get_ptr_of(val));
- CommonBase.add_ref_from(this, val);
- }
-