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 Uint8Array get_funding_pubkey() {
22 Uint8Array ret = bindings.ChannelPublicKeys_get_funding_pubkey(this.ptr);
26 public void set_funding_pubkey(Uint8Array val) {
27 bindings.ChannelPublicKeys_set_funding_pubkey(this.ptr, val);
30 public Uint8Array get_revocation_basepoint() {
31 Uint8Array ret = bindings.ChannelPublicKeys_get_revocation_basepoint(this.ptr);
35 public void set_revocation_basepoint(Uint8Array val) {
36 bindings.ChannelPublicKeys_set_revocation_basepoint(this.ptr, val);
39 public Uint8Array get_payment_point() {
40 Uint8Array ret = bindings.ChannelPublicKeys_get_payment_point(this.ptr);
44 public void set_payment_point(Uint8Array val) {
45 bindings.ChannelPublicKeys_set_payment_point(this.ptr, val);
48 public Uint8Array get_delayed_payment_basepoint() {
49 Uint8Array ret = bindings.ChannelPublicKeys_get_delayed_payment_basepoint(this.ptr);
53 public void set_delayed_payment_basepoint(Uint8Array val) {
54 bindings.ChannelPublicKeys_set_delayed_payment_basepoint(this.ptr, val);
57 public Uint8Array get_htlc_basepoint() {
58 Uint8Array ret = bindings.ChannelPublicKeys_get_htlc_basepoint(this.ptr);
62 public void set_htlc_basepoint(Uint8Array val) {
63 bindings.ChannelPublicKeys_set_htlc_basepoint(this.ptr, val);
66 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) {
67 number ret = bindings.ChannelPublicKeys_new(funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg);
68 const ret_hu_conv: ChannelPublicKeys = new ChannelPublicKeys(null, ret);
69 ret_hu_conv.ptrs_to.add(ret_hu_conv);
73 public ChannelPublicKeys clone() {
74 number ret = bindings.ChannelPublicKeys_clone(this.ptr);
75 const ret_hu_conv: ChannelPublicKeys = new ChannelPublicKeys(null, ret);
76 ret_hu_conv.ptrs_to.add(this);
80 public Uint8Array write() {
81 Uint8Array ret = bindings.ChannelPublicKeys_write(this.ptr);
85 public static Result_ChannelPublicKeysDecodeErrorZ constructor_read(Uint8Array ser) {
86 number ret = bindings.ChannelPublicKeys_read(ser);
87 Result_ChannelPublicKeysDecodeErrorZ ret_hu_conv = Result_ChannelPublicKeysDecodeErrorZ.constr_from_ptr(ret);