3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class QueryShortChannelIds extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.QueryShortChannelIds_free(this.ptr);
21 public QueryShortChannelIds clone() {
22 number ret = bindings.QueryShortChannelIds_clone(this.ptr);
23 const ret_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(null, ret);
27 public Uint8Array get_chain_hash() {
28 Uint8Array ret = bindings.QueryShortChannelIds_get_chain_hash(this.ptr);
32 public void set_chain_hash(Uint8Array val) {
33 bindings.QueryShortChannelIds_set_chain_hash(this.ptr, val);
36 public void set_short_channel_ids(number[] val) {
37 bindings.QueryShortChannelIds_set_short_channel_ids(this.ptr, val);
40 public static QueryShortChannelIds constructor_new(Uint8Array chain_hash_arg, number[] short_channel_ids_arg) {
41 number ret = bindings.QueryShortChannelIds_new(chain_hash_arg, short_channel_ids_arg);
42 const ret_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(null, ret);
46 public static Result_QueryShortChannelIdsDecodeErrorZ constructor_read(Uint8Array ser) {
47 number ret = bindings.QueryShortChannelIds_read(ser);
48 Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret);
52 public Uint8Array write() {
53 Uint8Array ret = bindings.QueryShortChannelIds_write(this.ptr);