]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/InvalidShutdownScript.ts
Update auto-generated bindings to 0.0.103
[ldk-java] / ts / structs / InvalidShutdownScript.ts
1
2             
3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
5
6
7
8             export default class InvalidShutdownScript extends CommonBase {
9                 constructor(_dummy: object, ptr: number) {
10                     super(ptr);
11                 }
12
13                 
14                 protected finalize() {
15                     super.finalize();
16
17                     if (this.ptr != 0) {
18                         bindings.InvalidShutdownScript_free(this.ptr);
19                     }
20                 }
21         public Uint8Array get_script() {
22                 Uint8Array ret = bindings.InvalidShutdownScript_get_script(this.ptr);
23                 return ret;
24         }
25
26         public void set_script(Uint8Array val) {
27                 bindings.InvalidShutdownScript_set_script(this.ptr, val);
28         }
29
30         public static InvalidShutdownScript constructor_new(Uint8Array script_arg) {
31                 number ret = bindings.InvalidShutdownScript_new(script_arg);
32                 const ret_hu_conv: InvalidShutdownScript = new InvalidShutdownScript(null, ret);
33                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
34                 return ret_hu_conv;
35         }
36
37         public InvalidShutdownScript clone() {
38                 number ret = bindings.InvalidShutdownScript_clone(this.ptr);
39                 const ret_hu_conv: InvalidShutdownScript = new InvalidShutdownScript(null, ret);
40                 ret_hu_conv.ptrs_to.add(this);
41                 return ret_hu_conv;
42         }
43
44 }