Update auto-generated bindings
[ldk-java] / ts / structs / TrustedClosingTransaction.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 TrustedClosingTransaction 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.TrustedClosingTransaction_free(this.ptr);
19                     }
20                 }
21         public Uint8Array built_transaction() {
22                 Uint8Array ret = bindings.TrustedClosingTransaction_built_transaction(this.ptr);
23                 return ret;
24         }
25
26         public Uint8Array get_sighash_all(Uint8Array funding_redeemscript, number channel_value_satoshis) {
27                 Uint8Array ret = bindings.TrustedClosingTransaction_get_sighash_all(this.ptr, funding_redeemscript, channel_value_satoshis);
28                 return ret;
29         }
30
31         public Uint8Array sign(Uint8Array funding_key, Uint8Array funding_redeemscript, number channel_value_satoshis) {
32                 Uint8Array ret = bindings.TrustedClosingTransaction_sign(this.ptr, InternalUtils.check_arr_len(funding_key, 32), funding_redeemscript, channel_value_satoshis);
33                 return ret;
34         }
35
36 }