3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class ChannelPublicKeys extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.ChannelPublicKeys_free(this.ptr);
21 public ChannelPublicKeys clone() {
22 number ret = bindings.ChannelPublicKeys_clone(this.ptr);
23 const ret_hu_conv: ChannelPublicKeys = new ChannelPublicKeys(null, ret);
24 ret_hu_conv.ptrs_to.add(this);
28 public Uint8Array get_funding_pubkey() {
29 Uint8Array ret = bindings.ChannelPublicKeys_get_funding_pubkey(this.ptr);
33 public void set_funding_pubkey(Uint8Array val) {
34 bindings.ChannelPublicKeys_set_funding_pubkey(this.ptr, val);
37 public Uint8Array get_revocation_basepoint() {
38 Uint8Array ret = bindings.ChannelPublicKeys_get_revocation_basepoint(this.ptr);
42 public void set_revocation_basepoint(Uint8Array val) {
43 bindings.ChannelPublicKeys_set_revocation_basepoint(this.ptr, val);
46 public Uint8Array get_payment_point() {
47 Uint8Array ret = bindings.ChannelPublicKeys_get_payment_point(this.ptr);
51 public void set_payment_point(Uint8Array val) {
52 bindings.ChannelPublicKeys_set_payment_point(this.ptr, val);
55 public Uint8Array get_delayed_payment_basepoint() {
56 Uint8Array ret = bindings.ChannelPublicKeys_get_delayed_payment_basepoint(this.ptr);
60 public void set_delayed_payment_basepoint(Uint8Array val) {
61 bindings.ChannelPublicKeys_set_delayed_payment_basepoint(this.ptr, val);
64 public Uint8Array get_htlc_basepoint() {
65 Uint8Array ret = bindings.ChannelPublicKeys_get_htlc_basepoint(this.ptr);
69 public void set_htlc_basepoint(Uint8Array val) {
70 bindings.ChannelPublicKeys_set_htlc_basepoint(this.ptr, val);
73 public static ChannelPublicKeys constructor_new(Uint8Array funding_pubkey_arg, Uint8Array revocation_basepoint_arg, Uint8Array payment_point_arg, Uint8Array delayed_payment_basepoint_arg, Uint8Array htlc_basepoint_arg) {
74 number ret = bindings.ChannelPublicKeys_new(funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg);
75 const ret_hu_conv: ChannelPublicKeys = new ChannelPublicKeys(null, ret);
76 ret_hu_conv.ptrs_to.add(ret_hu_conv);
80 public Uint8Array write() {
81 Uint8Array ret = bindings.ChannelPublicKeys_write(this.ptr);
85 public static ChannelPublicKeys constructor_read(Uint8Array ser) {
86 number ret = bindings.ChannelPublicKeys_read(ser);
87 const ret_hu_conv: ChannelPublicKeys = new ChannelPublicKeys(null, ret);
88 ret_hu_conv.ptrs_to.add(ret_hu_conv);