projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[TS] Update auto-generated TypeScript Bindings
[ldk-java]
/
ts
/
structs
/
BroadcasterInterface.mts
diff --git
a/ts/structs/BroadcasterInterface.mts
b/ts/structs/BroadcasterInterface.mts
index fe1c7a6d51bb6617cd1891c98141e57c50c39a8f..ae0eb85d48a64b6112607a0cef4874c02f74fbbc 100644
(file)
--- a/
ts/structs/BroadcasterInterface.mts
+++ b/
ts/structs/BroadcasterInterface.mts
@@
-280,11
+280,13
@@
import { MultiThreadedLockableScore } from '../structs/MultiThreadedLockableScor
import CommonBase from './CommonBase.mjs';
import * as bindings from '../bindings.mjs'
import CommonBase from './CommonBase.mjs';
import * as bindings from '../bindings.mjs'
-import * as InternalUtils from '../InternalUtils.mjs'
+/** An implementation of BroadcasterInterface */
export interface BroadcasterInterfaceInterface {
export interface BroadcasterInterfaceInterface {
+ /**Sends a transaction out to (hopefully) be mined.
+ */
broadcast_transaction(tx: Uint8Array): void;
}
broadcast_transaction(tx: Uint8Array): void;
}
@@
-292,6
+294,9
@@
class LDKBroadcasterInterfaceHolder {
held: BroadcasterInterface;
}
held: BroadcasterInterface;
}
+/**
+ * An interface to send a transaction to the Bitcoin network.
+ */
export class BroadcasterInterface extends CommonBase {
/* @internal */
public bindings_instance?: bindings.LDKBroadcasterInterface;
export class BroadcasterInterface extends CommonBase {
/* @internal */
public bindings_instance?: bindings.LDKBroadcasterInterface;
@@
-302,11
+307,13
@@
export class BroadcasterInterface extends CommonBase {
this.bindings_instance = null;
}
this.bindings_instance = null;
}
- static new_impl(arg: BroadcasterInterfaceInterface): BroadcasterInterface {
+ /** Creates a new instance of BroadcasterInterface from a given implementation */
+ public static new_impl(arg: BroadcasterInterfaceInterface): BroadcasterInterface {
const impl_holder: LDKBroadcasterInterfaceHolder = new LDKBroadcasterInterfaceHolder();
let structImplementation = {
const impl_holder: LDKBroadcasterInterfaceHolder = new LDKBroadcasterInterfaceHolder();
let structImplementation = {
- broadcast_transaction (tx: Uint8Array): void {
- arg.broadcast_transaction(tx);
+ broadcast_transaction (tx: number): void {
+ const tx_conv: Uint8Array = bindings.decodeUint8Array(tx);
+ arg.broadcast_transaction(tx_conv);
},
} as bindings.LDKBroadcasterInterface;
const ptr: number = bindings.LDKBroadcasterInterface_new(structImplementation);
},
} as bindings.LDKBroadcasterInterface;
const ptr: number = bindings.LDKBroadcasterInterface_new(structImplementation);
@@
-315,8
+322,12
@@
export class BroadcasterInterface extends CommonBase {
impl_holder.held.bindings_instance = structImplementation;
return impl_holder.held;
}
impl_holder.held.bindings_instance = structImplementation;
return impl_holder.held;
}
+
+ /**
+ * Sends a transaction out to (hopefully) be mined.
+ */
public broadcast_transaction(tx: Uint8Array): void {
public broadcast_transaction(tx: Uint8Array): void {
- bindings.BroadcasterInterface_broadcast_transaction(this.ptr,
tx
);
+ bindings.BroadcasterInterface_broadcast_transaction(this.ptr,
bindings.encodeUint8Array(tx)
);
}
}
}
}