+ const nativeResponseValue = wasm.TS_ScoringParameters_default();
+ return nativeResponseValue;
+}
+
+
+js_invoke = function(obj_ptr: number, fn_id: number, arg1: number, arg2: number, arg3: number, arg4: number, arg5: number, arg6: number, arg7: number, arg8: number, arg9: number, arg10: number) {
+ const weak: WeakRef<object> = js_objs[obj_ptr];
+ if (weak == null || weak == undefined) {
+ console.error("Got function call on unknown/free'd JS object!");
+ throw new Error("Got function call on unknown/free'd JS object!");
+ }
+ const obj: object = weak.deref();
+ if (obj == null || obj == undefined) {
+ console.error("Got function call on GC'd JS object!");
+ throw new Error("Got function call on GC'd JS object!");
+ }
+ var fn;
+ switch (fn_id) {
+ case 0: fn = Object.getOwnPropertyDescriptor(obj, "type_id"); break;
+ case 1: fn = Object.getOwnPropertyDescriptor(obj, "debug_str"); break;
+ case 2: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
+ case 3: fn = Object.getOwnPropertyDescriptor(obj, "get_per_commitment_point"); break;
+ case 4: fn = Object.getOwnPropertyDescriptor(obj, "release_commitment_secret"); break;
+ case 5: fn = Object.getOwnPropertyDescriptor(obj, "validate_holder_commitment"); break;
+ case 6: fn = Object.getOwnPropertyDescriptor(obj, "channel_keys_id"); break;
+ case 7: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_commitment"); break;
+ case 8: fn = Object.getOwnPropertyDescriptor(obj, "validate_counterparty_revocation"); break;
+ case 9: fn = Object.getOwnPropertyDescriptor(obj, "sign_holder_commitment_and_htlcs"); break;
+ case 10: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_output"); break;
+ case 11: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_htlc"); break;
+ case 12: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_htlc_transaction"); break;
+ case 13: fn = Object.getOwnPropertyDescriptor(obj, "sign_closing_transaction"); break;
+ case 14: fn = Object.getOwnPropertyDescriptor(obj, "sign_channel_announcement"); break;
+ case 15: fn = Object.getOwnPropertyDescriptor(obj, "ready_channel"); break;
+ case 16: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
+ case 17: fn = Object.getOwnPropertyDescriptor(obj, "get_utxo"); break;
+ case 18: fn = Object.getOwnPropertyDescriptor(obj, "register_tx"); break;
+ case 19: fn = Object.getOwnPropertyDescriptor(obj, "register_output"); break;
+ case 20: fn = Object.getOwnPropertyDescriptor(obj, "watch_channel"); break;
+ case 21: fn = Object.getOwnPropertyDescriptor(obj, "update_channel"); break;
+ case 22: fn = Object.getOwnPropertyDescriptor(obj, "release_pending_monitor_events"); break;
+ case 23: fn = Object.getOwnPropertyDescriptor(obj, "broadcast_transaction"); break;
+ case 24: fn = Object.getOwnPropertyDescriptor(obj, "get_node_secret"); break;
+ case 25: fn = Object.getOwnPropertyDescriptor(obj, "get_destination_script"); break;
+ case 26: fn = Object.getOwnPropertyDescriptor(obj, "get_shutdown_scriptpubkey"); break;
+ case 27: fn = Object.getOwnPropertyDescriptor(obj, "get_channel_signer"); break;
+ case 28: fn = Object.getOwnPropertyDescriptor(obj, "get_secure_random_bytes"); break;
+ case 29: fn = Object.getOwnPropertyDescriptor(obj, "read_chan_signer"); break;
+ case 30: fn = Object.getOwnPropertyDescriptor(obj, "sign_invoice"); break;
+ case 31: fn = Object.getOwnPropertyDescriptor(obj, "get_inbound_payment_key_material"); break;
+ case 32: fn = Object.getOwnPropertyDescriptor(obj, "get_est_sat_per_1000_weight"); break;
+ case 33: fn = Object.getOwnPropertyDescriptor(obj, "log"); break;
+ case 34: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg_events"); break;
+ case 35: fn = Object.getOwnPropertyDescriptor(obj, "handle_event"); break;
+ case 36: fn = Object.getOwnPropertyDescriptor(obj, "process_pending_events"); break;
+ case 37: fn = Object.getOwnPropertyDescriptor(obj, "block_connected"); break;
+ case 38: fn = Object.getOwnPropertyDescriptor(obj, "block_disconnected"); break;
+ case 39: fn = Object.getOwnPropertyDescriptor(obj, "transactions_confirmed"); break;
+ case 40: fn = Object.getOwnPropertyDescriptor(obj, "transaction_unconfirmed"); break;
+ case 41: fn = Object.getOwnPropertyDescriptor(obj, "best_block_updated"); break;
+ case 42: fn = Object.getOwnPropertyDescriptor(obj, "get_relevant_txids"); break;
+ case 43: fn = Object.getOwnPropertyDescriptor(obj, "persist_new_channel"); break;
+ case 44: fn = Object.getOwnPropertyDescriptor(obj, "update_persisted_channel"); break;
+ case 45: fn = Object.getOwnPropertyDescriptor(obj, "handle_open_channel"); break;
+ case 46: fn = Object.getOwnPropertyDescriptor(obj, "handle_accept_channel"); break;
+ case 47: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_created"); break;
+ case 48: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_signed"); break;
+ case 49: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_locked"); break;
+ case 50: fn = Object.getOwnPropertyDescriptor(obj, "handle_shutdown"); break;
+ case 51: fn = Object.getOwnPropertyDescriptor(obj, "handle_closing_signed"); break;
+ case 52: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_add_htlc"); break;
+ case 53: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fulfill_htlc"); break;
+ case 54: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_htlc"); break;
+ case 55: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_malformed_htlc"); break;
+ case 56: fn = Object.getOwnPropertyDescriptor(obj, "handle_commitment_signed"); break;
+ case 57: fn = Object.getOwnPropertyDescriptor(obj, "handle_revoke_and_ack"); break;
+ case 58: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fee"); break;
+ case 59: fn = Object.getOwnPropertyDescriptor(obj, "handle_announcement_signatures"); break;
+ case 60: fn = Object.getOwnPropertyDescriptor(obj, "peer_disconnected"); break;
+ case 61: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
+ case 62: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_reestablish"); break;
+ case 63: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
+ case 64: fn = Object.getOwnPropertyDescriptor(obj, "handle_error"); break;
+ case 65: fn = Object.getOwnPropertyDescriptor(obj, "handle_node_announcement"); break;
+ case 66: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_announcement"); break;
+ case 67: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
+ case 68: fn = Object.getOwnPropertyDescriptor(obj, "get_next_channel_announcements"); break;
+ case 69: fn = Object.getOwnPropertyDescriptor(obj, "get_next_node_announcements"); break;
+ case 70: fn = Object.getOwnPropertyDescriptor(obj, "sync_routing_table"); break;
+ case 71: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_channel_range"); break;
+ case 72: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_short_channel_ids_end"); break;
+ case 73: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_channel_range"); break;
+ case 74: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_short_channel_ids"); break;
+ case 75: fn = Object.getOwnPropertyDescriptor(obj, "read"); break;
+ case 76: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break;
+ case 77: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg"); break;
+ case 78: fn = Object.getOwnPropertyDescriptor(obj, "send_data"); break;
+ case 79: fn = Object.getOwnPropertyDescriptor(obj, "disconnect_socket"); break;
+ case 80: fn = Object.getOwnPropertyDescriptor(obj, "eq"); break;
+ case 81: fn = Object.getOwnPropertyDescriptor(obj, "hash"); break;
+ case 82: fn = Object.getOwnPropertyDescriptor(obj, "channel_penalty_msat"); break;
+ case 83: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_failed"); break;
+ case 84: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_successful"); break;
+ case 85: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
+ case 86: fn = Object.getOwnPropertyDescriptor(obj, "lock"); break;
+ default:
+ console.error("Got unknown function call from C!");
+ throw new Error("Got unknown function call from C!");
+ }
+ if (fn == null || fn == undefined) {
+ console.error("Got function call on incorrect JS object!");
+ throw new Error("Got function call on incorrect JS object!");
+ }
+ return fn.value.bind(obj)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
+}
\ No newline at end of file