@@ -33,23 +33,23 @@ fun String.hexa(): ByteArray {
3333val Invoice .asJson: WritableMap
3434 get() {
3535 val result = Arguments .createMap()
36- val signedInv = this . into_signed_raw()
36+ val signedInv = into_signed_raw()
3737 val rawInvoice = signedInv.raw_invoice()
3838
39- result.putDouble(" amount_milli_satoshis" , (this . amount_milli_satoshis() as Option_u64Z .Some ).some.toDouble())
39+ result.putDouble(" amount_milli_satoshis" , (amount_milli_satoshis() as Option_u64Z .Some ).some.toDouble())
4040 result.putString(" description" , rawInvoice.description()?.into_inner())
4141 result.putBoolean(" check_signature" , signedInv.check_signature())
42- result.putBoolean(" is_expired" , this . is_expired)
43- result.putInt(" duration_since_epoch" , this . duration_since_epoch().toInt())
44- result.putInt(" expiry_time" , this . expiry_time().toInt())
45- result.putInt(" min_final_cltv_expiry" , this . min_final_cltv_expiry().toInt())
42+ result.putBoolean(" is_expired" , is_expired)
43+ result.putInt(" duration_since_epoch" , duration_since_epoch().toInt())
44+ result.putInt(" expiry_time" , expiry_time().toInt())
45+ result.putInt(" min_final_cltv_expiry" , min_final_cltv_expiry().toInt())
4646 result.putString(" payee_pub_key" , rawInvoice.payee_pub_key()?._a ?.hexEncodedString())
47- result.putString(" recover_payee_pub_key" , this . recover_payee_pub_key().hexEncodedString())
48- result.putString(" payment_hash" , this . payment_hash().hexEncodedString())
49- result.putString(" payment_secret" , this . payment_secret().hexEncodedString())
50- result.putInt(" timestamp" , this . timestamp().toInt())
51- result.putString(" features" , this . features()?.write()?.hexEncodedString())
52- result.putInt(" currency" , this . currency().ordinal)
47+ result.putString(" recover_payee_pub_key" , recover_payee_pub_key().hexEncodedString())
48+ result.putString(" payment_hash" , payment_hash().hexEncodedString())
49+ result.putString(" payment_secret" , payment_secret().hexEncodedString())
50+ result.putInt(" timestamp" , timestamp().toInt())
51+ result.putString(" features" , features()?.write()?.hexEncodedString())
52+ result.putInt(" currency" , currency().ordinal)
5353 result.putString(" to_str" , signedInv.to_str())
5454
5555 return result
@@ -59,29 +59,29 @@ val ChannelDetails.asJson: WritableMap
5959 get() {
6060 val result = Arguments .createMap()
6161
62- result.putString(" channel_id" , this . _channel_id .hexEncodedString())
63- result.putBoolean(" is_public" , this . _is_public )
64- result.putBoolean(" is_usable" , this . _is_usable )
65- result.putBoolean(" is_outbound" , this . _is_outbound )
66- result.putInt(" balance_msat" , this . _balance_msat .toInt())
67- result.putString(" counterparty" , this . _counterparty .write().hexEncodedString())
68- result.putString(" funding_txo" , if (this . _funding_txo != null ) this . _funding_txo !! .write().hexEncodedString() else null )
69- result.putString(" channel_type" , if (this . _channel_type != null ) this . _channel_type !! .write().hexEncodedString() else null )
70- result.putInt(" user_channel_id" , this . _user_channel_id .toInt())
71- result.putInt(" get_confirmations_required" , (this . _confirmations_required as Option_u32Z .Some ).some)
72- (this . _short_channel_id as ? Option_u64Z .Some )?.some?.toInt()
62+ result.putString(" channel_id" , _channel_id .hexEncodedString())
63+ result.putBoolean(" is_public" , _is_public )
64+ result.putBoolean(" is_usable" , _is_usable )
65+ result.putBoolean(" is_outbound" , _is_outbound )
66+ result.putInt(" balance_msat" , _balance_msat .toInt())
67+ result.putString(" counterparty" , _counterparty .write().hexEncodedString())
68+ result.putString(" funding_txo" , if (_funding_txo != null ) _funding_txo !! .write().hexEncodedString() else null )
69+ result.putString(" channel_type" , if (_channel_type != null ) _channel_type !! .write().hexEncodedString() else null )
70+ result.putInt(" user_channel_id" , _user_channel_id .toInt())
71+ result.putInt(" get_confirmations_required" , (_confirmations_required as Option_u32Z .Some ).some)
72+ (_short_channel_id as ? Option_u64Z .Some )?.some?.toInt()
7373 ?.let { result.putInt(" short_channel_id" , it) } // Optional number
74- result.putBoolean(" is_funding_locked" , this . _is_funding_locked )
75- (this . _inbound_scid_alias as ? Option_u64Z .Some )?.some?.toInt()
74+ result.putBoolean(" is_funding_locked" , _is_funding_locked )
75+ (_inbound_scid_alias as ? Option_u64Z .Some )?.some?.toInt()
7676 ?.let { result.putInt(" inbound_scid_alias" , it) }
77- (this . _inbound_scid_alias as ? Option_u64Z .Some )?.some?.toInt()
77+ (_inbound_scid_alias as ? Option_u64Z .Some )?.some?.toInt()
7878 ?.let { result.putInt(" inbound_payment_scid" , it) }
79- result.putInt(" inbound_capacity_msat" , this . _inbound_capacity_msat .toInt())
80- result.putInt(" outbound_capacity_msat" , this . _outbound_capacity_msat .toInt())
81- result.putInt(" channel_value_satoshis" , this . _channel_value_satoshis .toInt())
82- (this . _force_close_spend_delay as ? Option_u16Z .Some )?.some?.toInt()
79+ result.putInt(" inbound_capacity_msat" , _inbound_capacity_msat .toInt())
80+ result.putInt(" outbound_capacity_msat" , _outbound_capacity_msat .toInt())
81+ result.putInt(" channel_value_satoshis" , _channel_value_satoshis .toInt())
82+ (_force_close_spend_delay as ? Option_u16Z .Some )?.some?.toInt()
8383 ?.let { result.putInt(" force_close_spend_delay" , it) }
84- result.putInt(" unspendable_punishment_reserve" , (this . _unspendable_punishment_reserve as Option_u64Z .Some ).some.toInt())
84+ result.putInt(" unspendable_punishment_reserve" , (_unspendable_punishment_reserve as Option_u64Z .Some ).some.toInt())
8585
8686 return result
8787 }
0 commit comments