import { NativeLoader } from './NativeLoader'; export class ChannelConfig extends NativeLoader { id: string = ''; fromId(id: string): this { this.id = id; return this; } async create(): Promise { this.id = await this._ldk.createChannelConfig(); return this; } async acceptUnderpayingHtlcs(): Promise { return await this._ldk.acceptUnderpayingHtlcs(this.id); } async cltvExpiryDelta(): Promise { return await this._ldk.cltvExpiryDelta(this.id); } async forceCloseAvoidanceMaxFeeSatoshis(): Promise { return await this._ldk.forceCloseAvoidanceMaxFeeSatoshis(this.id); } async forwardingFeeBaseMsat(): Promise { return await this._ldk.forwardingFeeBaseMsat(this.id); } async forwardingFeeProportionalMillionths(): Promise { return await this._ldk.forwardingFeeProportionalMillionths(this.id); } async setAcceptUnderpayingHtlcs(value: boolean): Promise { return await this._ldk.setAcceptUnderpayingHtlcs(this.id, value); } async setCltvExpiryDelta(value: number): Promise { return await this._ldk.setCltvExpiryDelta(this.id, value); } async setForceCloseAvoidanceMaxFeeSatoshis(valueSat: number): Promise { return await this._ldk.setForceCloseAvoidanceMaxFeeSatoshis(this.id, valueSat); } async setForwardingFeeBaseMsat(feeMsat: number): Promise { return await this._ldk.setForwardingFeeBaseMsat(this.id, feeMsat); } async setForwardingFeeProportionalMillionths(value: number): Promise { return await this._ldk.setForwardingFeeProportionalMillionths(this.id, value); } async setMaxDustHtlcExposureFromFeeRateMultiplier(multiplier: number): Promise { return await this._ldk.setMaxDustHtlcExposureFromFeeRateMultiplier(this.id, multiplier); } async setMaxDustHtlcExposureFromFixedLimit(limitMsat: number): Promise { return await this._ldk.setMaxDustHtlcExposureFromFixedLimit(this.id, limitMsat); } }