- /**
- * The threshold below which outputs on transactions broadcast by the channel acceptor will be
- * omitted
- */
- public get_dust_limit_satoshis(): bigint {
- const ret: bigint = bindings.AcceptChannelV2_get_dust_limit_satoshis(this.ptr);
- return ret;
- }
-
- /**
- * The threshold below which outputs on transactions broadcast by the channel acceptor will be
- * omitted
- */
- public set_dust_limit_satoshis(val: bigint): void {
- bindings.AcceptChannelV2_set_dust_limit_satoshis(this.ptr, val);
- }
-
- /**
- * The maximum inbound HTLC value in flight towards channel acceptor, in milli-satoshi
- */
- public get_max_htlc_value_in_flight_msat(): bigint {
- const ret: bigint = bindings.AcceptChannelV2_get_max_htlc_value_in_flight_msat(this.ptr);
- return ret;
- }
-
- /**
- * The maximum inbound HTLC value in flight towards channel acceptor, in milli-satoshi
- */
- public set_max_htlc_value_in_flight_msat(val: bigint): void {
- bindings.AcceptChannelV2_set_max_htlc_value_in_flight_msat(this.ptr, val);
- }
-
- /**
- * The minimum HTLC size incoming to channel acceptor, in milli-satoshi
- */
- public get_htlc_minimum_msat(): bigint {
- const ret: bigint = bindings.AcceptChannelV2_get_htlc_minimum_msat(this.ptr);
- return ret;
- }
-
- /**
- * The minimum HTLC size incoming to channel acceptor, in milli-satoshi
- */
- public set_htlc_minimum_msat(val: bigint): void {
- bindings.AcceptChannelV2_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.AcceptChannelV2_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.AcceptChannelV2_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.AcceptChannelV2_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.AcceptChannelV2_set_to_self_delay(this.ptr, val);
- }
-
- /**
- * The maximum number of inbound HTLCs towards channel acceptor
- */
- public get_max_accepted_htlcs(): number {
- const ret: number = bindings.AcceptChannelV2_get_max_accepted_htlcs(this.ptr);
- return ret;
- }
-
- /**
- * The maximum number of inbound HTLCs towards channel acceptor
- */
- public set_max_accepted_htlcs(val: number): void {
- bindings.AcceptChannelV2_set_max_accepted_htlcs(this.ptr, val);
- }
-
- /**
- * The channel acceptor's key controlling the funding transaction
- */
- public get_funding_pubkey(): Uint8Array {
- const ret: number = bindings.AcceptChannelV2_get_funding_pubkey(this.ptr);
- const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
- return ret_conv;
- }
-
- /**
- * The channel acceptor's key controlling the funding transaction
- */
- public set_funding_pubkey(val: Uint8Array): void {
- bindings.AcceptChannelV2_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.AcceptChannelV2_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.AcceptChannelV2_set_revocation_basepoint(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
- }
-
- /**
- * A payment key to channel acceptor for transactions broadcast by counterparty
- */
- public get_payment_basepoint(): Uint8Array {
- const ret: number = bindings.AcceptChannelV2_get_payment_basepoint(this.ptr);
- const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
- return ret_conv;
- }
-
- /**
- * A payment key to channel acceptor for transactions broadcast by counterparty
- */
- public set_payment_basepoint(val: Uint8Array): void {
- bindings.AcceptChannelV2_set_payment_basepoint(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
- }
-
- /**
- * Used to derive a payment key to channel acceptor for transactions broadcast by channel
- * acceptor
- */
- public get_delayed_payment_basepoint(): Uint8Array {
- const ret: number = bindings.AcceptChannelV2_get_delayed_payment_basepoint(this.ptr);
- const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
- return ret_conv;
- }
-
- /**
- * Used to derive a payment key to channel acceptor for transactions broadcast by channel
- * acceptor
- */
- public set_delayed_payment_basepoint(val: Uint8Array): void {
- bindings.AcceptChannelV2_set_delayed_payment_basepoint(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
- }
-
- /**
- * Used to derive an HTLC payment key to channel acceptor for transactions broadcast by counterparty
- */
- public get_htlc_basepoint(): Uint8Array {
- const ret: number = bindings.AcceptChannelV2_get_htlc_basepoint(this.ptr);
- const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
- return ret_conv;
- }
-
- /**
- * Used to derive an HTLC payment key to channel acceptor for transactions broadcast by counterparty
- */
- public set_htlc_basepoint(val: Uint8Array): void {
- bindings.AcceptChannelV2_set_htlc_basepoint(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
- }
-
- /**
- * The first to-be-broadcast-by-channel-acceptor transaction's per commitment point
- */
- public get_first_per_commitment_point(): Uint8Array {
- const ret: number = bindings.AcceptChannelV2_get_first_per_commitment_point(this.ptr);
- const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
- return ret_conv;
- }
-
- /**
- * The first to-be-broadcast-by-channel-acceptor transaction's per commitment point
- */
- public set_first_per_commitment_point(val: Uint8Array): void {
- bindings.AcceptChannelV2_set_first_per_commitment_point(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
- }
-