X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FChannelAnnouncement.ts;fp=ts%2Fstructs%2FChannelAnnouncement.ts;h=5111590e05a1cc65d3403ba6496ea873aec00b14;hb=246459dcbc3be28c38b4951140a5933f4b3aa024;hp=0ab592e29cf1be95791d9aa80c59e3f348c32acd;hpb=b52dde859c138f9257499496749d1eb89f9f6f43;p=ldk-java diff --git a/ts/structs/ChannelAnnouncement.ts b/ts/structs/ChannelAnnouncement.ts index 0ab592e2..5111590e 100644 --- a/ts/structs/ChannelAnnouncement.ts +++ b/ts/structs/ChannelAnnouncement.ts @@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ChannelAnnouncement_free(this.ptr); } } - public ChannelAnnouncement clone() { - number ret = bindings.ChannelAnnouncement_clone(this.ptr); - const ret_hu_conv: ChannelAnnouncement = new ChannelAnnouncement(null, ret); - ret_hu_conv.ptrs_to.add(this); - return ret_hu_conv; - } - public Uint8Array get_node_signature_1() { Uint8Array ret = bindings.ChannelAnnouncement_get_node_signature_1(this.ptr); return ret; @@ -81,15 +74,21 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public ChannelAnnouncement clone() { + number ret = bindings.ChannelAnnouncement_clone(this.ptr); + const ret_hu_conv: ChannelAnnouncement = new ChannelAnnouncement(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + public Uint8Array write() { Uint8Array ret = bindings.ChannelAnnouncement_write(this.ptr); return ret; } - public static ChannelAnnouncement constructor_read(Uint8Array ser) { + public static Result_ChannelAnnouncementDecodeErrorZ constructor_read(Uint8Array ser) { number ret = bindings.ChannelAnnouncement_read(ser); - const ret_hu_conv: ChannelAnnouncement = new ChannelAnnouncement(null, ret); - ret_hu_conv.ptrs_to.add(ret_hu_conv); + Result_ChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_ChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }