3 open class FeeEstimator {
5 public var cOpaqueStruct: LDKFeeEstimator?;
9 /* NATIVE_CALLBACKS_START */
11 func get_est_sat_per_1000_weightCallback(pointer: UnsafeRawPointer?, confirmation_target: LDKConfirmationTarget) -> UInt32 {
12 let instance: FeeEstimator = Bindings.pointerToInstance(pointer: pointer!, sourceMarker: "FeeEstimator.swift::get_est_sat_per_1000_weight")
14 return instance.get_est_sat_per_1000_weight(confirmation_target: confirmation_target);
17 func freeCallback(pointer: UnsafeMutableRawPointer?) -> Void {
18 let instance: FeeEstimator = Bindings.pointerToInstance(pointer: pointer!, sourceMarker: "FeeEstimator.swift::free")
20 return instance.free();
23 /* NATIVE_CALLBACKS_END */
25 self.cOpaqueStruct = LDKFeeEstimator(this_arg: Bindings.instanceToPointer(instance: self),
26 get_est_sat_per_1000_weight: get_est_sat_per_1000_weightCallback,
30 public init(pointer: LDKFeeEstimator){
31 self.cOpaqueStruct = pointer
34 /* SWIFT_CALLBACKS_START */
36 open func get_est_sat_per_1000_weight(confirmation_target: LDKConfirmationTarget) -> UInt32 {
41 open func free() -> Void {
46 /* SWIFT_CALLBACKS_END */
51 public class NativelyImplementedFeeEstimator: FeeEstimator {
52 /* SWIFT_DEFAULT_CALLBACKS_START */
54 public override func get_est_sat_per_1000_weight(confirmation_target: LDKConfirmationTarget) -> UInt32 {
57 self.cOpaqueStruct!.get_est_sat_per_1000_weight(self.cOpaqueStruct!.this_arg, confirmation_target)
62 public override func free() -> Void {
65 self.cOpaqueStruct!.free(self.cOpaqueStruct!.this_arg)
70 /* SWIFT_DEFAULT_CALLBACKS_END */