From b41abf2176d4e1b22273177e0ce7b3294a4c6b9f Mon Sep 17 00:00:00 2001 From: KAVAN-DESAI Date: Mon, 8 Aug 2022 17:23:39 +0530 Subject: [PATCH] feat: increase cln version support to v0.12.0rc1 --- example/cln_grpc_example.dart | 2 +- lib/src/generated/node.pb.dart | 1611 +++++++++++++++++++++------- lib/src/generated/node.pbgrpc.dart | 51 + lib/src/generated/node.pbjson.dart | 423 ++++++-- protos/node.proto | 67 +- test/cln_client_test.dart | 2 +- 6 files changed, 1654 insertions(+), 502 deletions(-) diff --git a/example/cln_grpc_example.dart b/example/cln_grpc_example.dart index f7a16b6..8dee9ca 100644 --- a/example/cln_grpc_example.dart +++ b/example/cln_grpc_example.dart @@ -23,7 +23,7 @@ class PayProxy extends Serializable { PayProxy(this.proxy); factory PayProxy.build({required String invoice, Amount? amount}) => - PayProxy(PayRequest(bolt11: invoice, msatoshi: amount)); + PayProxy(PayRequest(bolt11: invoice, amountMsat: amount)); @override Map toJSON() => proxy.toProto3Json() as Map; diff --git a/lib/src/generated/node.pb.dart b/lib/src/generated/node.pb.dart index a0c144c..e13e0fc 100644 --- a/lib/src/generated/node.pb.dart +++ b/lib/src/generated/node.pb.dart @@ -1015,6 +1015,11 @@ class ListpeersPeers extends $pb.GeneratedMessage { ? '' : 'features', $pb.PbFieldType.OY) + ..aOS( + 7, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'remoteAddr') ..hasRequiredFields = false; ListpeersPeers._() : super(); @@ -1025,6 +1030,7 @@ class ListpeersPeers extends $pb.GeneratedMessage { $core.Iterable? channels, $core.Iterable<$core.String>? netaddr, $core.List<$core.int>? features, + $core.String? remoteAddr, }) { final _result = create(); if (id != null) { @@ -1045,6 +1051,9 @@ class ListpeersPeers extends $pb.GeneratedMessage { if (features != null) { _result.features = features; } + if (remoteAddr != null) { + _result.remoteAddr = remoteAddr; + } return _result; } factory ListpeersPeers.fromBuffer($core.List<$core.int> i, @@ -1118,6 +1127,18 @@ class ListpeersPeers extends $pb.GeneratedMessage { $core.bool hasFeatures() => $_has(5); @$pb.TagNumber(6) void clearFeatures() => clearField(6); + + @$pb.TagNumber(7) + $core.String get remoteAddr => $_getSZ(6); + @$pb.TagNumber(7) + set remoteAddr($core.String v) { + $_setString(6, v); + } + + @$pb.TagNumber(7) + $core.bool hasRemoteAddr() => $_has(6); + @$pb.TagNumber(7) + void clearRemoteAddr() => clearField(7); } class ListpeersPeersLog extends $pb.GeneratedMessage { @@ -1422,6 +1443,15 @@ class ListpeersPeersChannels extends $pb.GeneratedMessage { defaultOrMaker: $1.ChannelSide.IN, valueOf: $1.ChannelSide.valueOf, enumValues: $1.ChannelSide.values) + ..e<$1.ChannelSide>( + 17, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'closer', + $pb.PbFieldType.OE, + defaultOrMaker: $1.ChannelSide.IN, + valueOf: $1.ChannelSide.valueOf, + enumValues: $1.ChannelSide.values) ..pPS( 18, const $core.bool.fromEnvironment('protobuf.omit_field_names') @@ -1623,6 +1653,7 @@ class ListpeersPeersChannels extends $pb.GeneratedMessage { $core.List<$core.int>? closeTo, $core.bool? private, $1.ChannelSide? opener, + $1.ChannelSide? closer, $core.Iterable<$core.String>? features, $1.Amount? toUsMsat, $1.Amount? minToUsMsat, @@ -1700,6 +1731,9 @@ class ListpeersPeersChannels extends $pb.GeneratedMessage { if (opener != null) { _result.opener = opener; } + if (closer != null) { + _result.closer = closer; + } if (features != null) { _result.features.addAll(features); } @@ -1992,374 +2026,386 @@ class ListpeersPeersChannels extends $pb.GeneratedMessage { @$pb.TagNumber(16) void clearOpener() => clearField(16); + @$pb.TagNumber(17) + $1.ChannelSide get closer => $_getN(15); + @$pb.TagNumber(17) + set closer($1.ChannelSide v) { + setField(17, v); + } + + @$pb.TagNumber(17) + $core.bool hasCloser() => $_has(15); + @$pb.TagNumber(17) + void clearCloser() => clearField(17); + @$pb.TagNumber(18) - $core.List<$core.String> get features => $_getList(15); + $core.List<$core.String> get features => $_getList(16); @$pb.TagNumber(20) - $1.Amount get toUsMsat => $_getN(16); + $1.Amount get toUsMsat => $_getN(17); @$pb.TagNumber(20) set toUsMsat($1.Amount v) { setField(20, v); } @$pb.TagNumber(20) - $core.bool hasToUsMsat() => $_has(16); + $core.bool hasToUsMsat() => $_has(17); @$pb.TagNumber(20) void clearToUsMsat() => clearField(20); @$pb.TagNumber(20) - $1.Amount ensureToUsMsat() => $_ensure(16); + $1.Amount ensureToUsMsat() => $_ensure(17); @$pb.TagNumber(21) - $1.Amount get minToUsMsat => $_getN(17); + $1.Amount get minToUsMsat => $_getN(18); @$pb.TagNumber(21) set minToUsMsat($1.Amount v) { setField(21, v); } @$pb.TagNumber(21) - $core.bool hasMinToUsMsat() => $_has(17); + $core.bool hasMinToUsMsat() => $_has(18); @$pb.TagNumber(21) void clearMinToUsMsat() => clearField(21); @$pb.TagNumber(21) - $1.Amount ensureMinToUsMsat() => $_ensure(17); + $1.Amount ensureMinToUsMsat() => $_ensure(18); @$pb.TagNumber(22) - $1.Amount get maxToUsMsat => $_getN(18); + $1.Amount get maxToUsMsat => $_getN(19); @$pb.TagNumber(22) set maxToUsMsat($1.Amount v) { setField(22, v); } @$pb.TagNumber(22) - $core.bool hasMaxToUsMsat() => $_has(18); + $core.bool hasMaxToUsMsat() => $_has(19); @$pb.TagNumber(22) void clearMaxToUsMsat() => clearField(22); @$pb.TagNumber(22) - $1.Amount ensureMaxToUsMsat() => $_ensure(18); + $1.Amount ensureMaxToUsMsat() => $_ensure(19); @$pb.TagNumber(23) - $1.Amount get totalMsat => $_getN(19); + $1.Amount get totalMsat => $_getN(20); @$pb.TagNumber(23) set totalMsat($1.Amount v) { setField(23, v); } @$pb.TagNumber(23) - $core.bool hasTotalMsat() => $_has(19); + $core.bool hasTotalMsat() => $_has(20); @$pb.TagNumber(23) void clearTotalMsat() => clearField(23); @$pb.TagNumber(23) - $1.Amount ensureTotalMsat() => $_ensure(19); + $1.Amount ensureTotalMsat() => $_ensure(20); @$pb.TagNumber(24) - $1.Amount get feeBaseMsat => $_getN(20); + $1.Amount get feeBaseMsat => $_getN(21); @$pb.TagNumber(24) set feeBaseMsat($1.Amount v) { setField(24, v); } @$pb.TagNumber(24) - $core.bool hasFeeBaseMsat() => $_has(20); + $core.bool hasFeeBaseMsat() => $_has(21); @$pb.TagNumber(24) void clearFeeBaseMsat() => clearField(24); @$pb.TagNumber(24) - $1.Amount ensureFeeBaseMsat() => $_ensure(20); + $1.Amount ensureFeeBaseMsat() => $_ensure(21); @$pb.TagNumber(25) - $core.int get feeProportionalMillionths => $_getIZ(21); + $core.int get feeProportionalMillionths => $_getIZ(22); @$pb.TagNumber(25) set feeProportionalMillionths($core.int v) { - $_setUnsignedInt32(21, v); + $_setUnsignedInt32(22, v); } @$pb.TagNumber(25) - $core.bool hasFeeProportionalMillionths() => $_has(21); + $core.bool hasFeeProportionalMillionths() => $_has(22); @$pb.TagNumber(25) void clearFeeProportionalMillionths() => clearField(25); @$pb.TagNumber(26) - $1.Amount get dustLimitMsat => $_getN(22); + $1.Amount get dustLimitMsat => $_getN(23); @$pb.TagNumber(26) set dustLimitMsat($1.Amount v) { setField(26, v); } @$pb.TagNumber(26) - $core.bool hasDustLimitMsat() => $_has(22); + $core.bool hasDustLimitMsat() => $_has(23); @$pb.TagNumber(26) void clearDustLimitMsat() => clearField(26); @$pb.TagNumber(26) - $1.Amount ensureDustLimitMsat() => $_ensure(22); + $1.Amount ensureDustLimitMsat() => $_ensure(23); @$pb.TagNumber(27) - $1.Amount get maxTotalHtlcInMsat => $_getN(23); + $1.Amount get maxTotalHtlcInMsat => $_getN(24); @$pb.TagNumber(27) set maxTotalHtlcInMsat($1.Amount v) { setField(27, v); } @$pb.TagNumber(27) - $core.bool hasMaxTotalHtlcInMsat() => $_has(23); + $core.bool hasMaxTotalHtlcInMsat() => $_has(24); @$pb.TagNumber(27) void clearMaxTotalHtlcInMsat() => clearField(27); @$pb.TagNumber(27) - $1.Amount ensureMaxTotalHtlcInMsat() => $_ensure(23); + $1.Amount ensureMaxTotalHtlcInMsat() => $_ensure(24); @$pb.TagNumber(28) - $1.Amount get theirReserveMsat => $_getN(24); + $1.Amount get theirReserveMsat => $_getN(25); @$pb.TagNumber(28) set theirReserveMsat($1.Amount v) { setField(28, v); } @$pb.TagNumber(28) - $core.bool hasTheirReserveMsat() => $_has(24); + $core.bool hasTheirReserveMsat() => $_has(25); @$pb.TagNumber(28) void clearTheirReserveMsat() => clearField(28); @$pb.TagNumber(28) - $1.Amount ensureTheirReserveMsat() => $_ensure(24); + $1.Amount ensureTheirReserveMsat() => $_ensure(25); @$pb.TagNumber(29) - $1.Amount get ourReserveMsat => $_getN(25); + $1.Amount get ourReserveMsat => $_getN(26); @$pb.TagNumber(29) set ourReserveMsat($1.Amount v) { setField(29, v); } @$pb.TagNumber(29) - $core.bool hasOurReserveMsat() => $_has(25); + $core.bool hasOurReserveMsat() => $_has(26); @$pb.TagNumber(29) void clearOurReserveMsat() => clearField(29); @$pb.TagNumber(29) - $1.Amount ensureOurReserveMsat() => $_ensure(25); + $1.Amount ensureOurReserveMsat() => $_ensure(26); @$pb.TagNumber(30) - $1.Amount get spendableMsat => $_getN(26); + $1.Amount get spendableMsat => $_getN(27); @$pb.TagNumber(30) set spendableMsat($1.Amount v) { setField(30, v); } @$pb.TagNumber(30) - $core.bool hasSpendableMsat() => $_has(26); + $core.bool hasSpendableMsat() => $_has(27); @$pb.TagNumber(30) void clearSpendableMsat() => clearField(30); @$pb.TagNumber(30) - $1.Amount ensureSpendableMsat() => $_ensure(26); + $1.Amount ensureSpendableMsat() => $_ensure(27); @$pb.TagNumber(31) - $1.Amount get receivableMsat => $_getN(27); + $1.Amount get receivableMsat => $_getN(28); @$pb.TagNumber(31) set receivableMsat($1.Amount v) { setField(31, v); } @$pb.TagNumber(31) - $core.bool hasReceivableMsat() => $_has(27); + $core.bool hasReceivableMsat() => $_has(28); @$pb.TagNumber(31) void clearReceivableMsat() => clearField(31); @$pb.TagNumber(31) - $1.Amount ensureReceivableMsat() => $_ensure(27); + $1.Amount ensureReceivableMsat() => $_ensure(28); @$pb.TagNumber(32) - $1.Amount get minimumHtlcInMsat => $_getN(28); + $1.Amount get minimumHtlcInMsat => $_getN(29); @$pb.TagNumber(32) set minimumHtlcInMsat($1.Amount v) { setField(32, v); } @$pb.TagNumber(32) - $core.bool hasMinimumHtlcInMsat() => $_has(28); + $core.bool hasMinimumHtlcInMsat() => $_has(29); @$pb.TagNumber(32) void clearMinimumHtlcInMsat() => clearField(32); @$pb.TagNumber(32) - $1.Amount ensureMinimumHtlcInMsat() => $_ensure(28); + $1.Amount ensureMinimumHtlcInMsat() => $_ensure(29); @$pb.TagNumber(33) - $core.int get theirToSelfDelay => $_getIZ(29); + $core.int get theirToSelfDelay => $_getIZ(30); @$pb.TagNumber(33) set theirToSelfDelay($core.int v) { - $_setUnsignedInt32(29, v); + $_setUnsignedInt32(30, v); } @$pb.TagNumber(33) - $core.bool hasTheirToSelfDelay() => $_has(29); + $core.bool hasTheirToSelfDelay() => $_has(30); @$pb.TagNumber(33) void clearTheirToSelfDelay() => clearField(33); @$pb.TagNumber(34) - $core.int get ourToSelfDelay => $_getIZ(30); + $core.int get ourToSelfDelay => $_getIZ(31); @$pb.TagNumber(34) set ourToSelfDelay($core.int v) { - $_setUnsignedInt32(30, v); + $_setUnsignedInt32(31, v); } @$pb.TagNumber(34) - $core.bool hasOurToSelfDelay() => $_has(30); + $core.bool hasOurToSelfDelay() => $_has(31); @$pb.TagNumber(34) void clearOurToSelfDelay() => clearField(34); @$pb.TagNumber(35) - $core.int get maxAcceptedHtlcs => $_getIZ(31); + $core.int get maxAcceptedHtlcs => $_getIZ(32); @$pb.TagNumber(35) set maxAcceptedHtlcs($core.int v) { - $_setUnsignedInt32(31, v); + $_setUnsignedInt32(32, v); } @$pb.TagNumber(35) - $core.bool hasMaxAcceptedHtlcs() => $_has(31); + $core.bool hasMaxAcceptedHtlcs() => $_has(32); @$pb.TagNumber(35) void clearMaxAcceptedHtlcs() => clearField(35); @$pb.TagNumber(37) - $core.List<$core.String> get status => $_getList(32); + $core.List<$core.String> get status => $_getList(33); @$pb.TagNumber(38) - $fixnum.Int64 get inPaymentsOffered => $_getI64(33); + $fixnum.Int64 get inPaymentsOffered => $_getI64(34); @$pb.TagNumber(38) set inPaymentsOffered($fixnum.Int64 v) { - $_setInt64(33, v); + $_setInt64(34, v); } @$pb.TagNumber(38) - $core.bool hasInPaymentsOffered() => $_has(33); + $core.bool hasInPaymentsOffered() => $_has(34); @$pb.TagNumber(38) void clearInPaymentsOffered() => clearField(38); @$pb.TagNumber(39) - $1.Amount get inOfferedMsat => $_getN(34); + $1.Amount get inOfferedMsat => $_getN(35); @$pb.TagNumber(39) set inOfferedMsat($1.Amount v) { setField(39, v); } @$pb.TagNumber(39) - $core.bool hasInOfferedMsat() => $_has(34); + $core.bool hasInOfferedMsat() => $_has(35); @$pb.TagNumber(39) void clearInOfferedMsat() => clearField(39); @$pb.TagNumber(39) - $1.Amount ensureInOfferedMsat() => $_ensure(34); + $1.Amount ensureInOfferedMsat() => $_ensure(35); @$pb.TagNumber(40) - $fixnum.Int64 get inPaymentsFulfilled => $_getI64(35); + $fixnum.Int64 get inPaymentsFulfilled => $_getI64(36); @$pb.TagNumber(40) set inPaymentsFulfilled($fixnum.Int64 v) { - $_setInt64(35, v); + $_setInt64(36, v); } @$pb.TagNumber(40) - $core.bool hasInPaymentsFulfilled() => $_has(35); + $core.bool hasInPaymentsFulfilled() => $_has(36); @$pb.TagNumber(40) void clearInPaymentsFulfilled() => clearField(40); @$pb.TagNumber(41) - $1.Amount get inFulfilledMsat => $_getN(36); + $1.Amount get inFulfilledMsat => $_getN(37); @$pb.TagNumber(41) set inFulfilledMsat($1.Amount v) { setField(41, v); } @$pb.TagNumber(41) - $core.bool hasInFulfilledMsat() => $_has(36); + $core.bool hasInFulfilledMsat() => $_has(37); @$pb.TagNumber(41) void clearInFulfilledMsat() => clearField(41); @$pb.TagNumber(41) - $1.Amount ensureInFulfilledMsat() => $_ensure(36); + $1.Amount ensureInFulfilledMsat() => $_ensure(37); @$pb.TagNumber(42) - $fixnum.Int64 get outPaymentsOffered => $_getI64(37); + $fixnum.Int64 get outPaymentsOffered => $_getI64(38); @$pb.TagNumber(42) set outPaymentsOffered($fixnum.Int64 v) { - $_setInt64(37, v); + $_setInt64(38, v); } @$pb.TagNumber(42) - $core.bool hasOutPaymentsOffered() => $_has(37); + $core.bool hasOutPaymentsOffered() => $_has(38); @$pb.TagNumber(42) void clearOutPaymentsOffered() => clearField(42); @$pb.TagNumber(43) - $1.Amount get outOfferedMsat => $_getN(38); + $1.Amount get outOfferedMsat => $_getN(39); @$pb.TagNumber(43) set outOfferedMsat($1.Amount v) { setField(43, v); } @$pb.TagNumber(43) - $core.bool hasOutOfferedMsat() => $_has(38); + $core.bool hasOutOfferedMsat() => $_has(39); @$pb.TagNumber(43) void clearOutOfferedMsat() => clearField(43); @$pb.TagNumber(43) - $1.Amount ensureOutOfferedMsat() => $_ensure(38); + $1.Amount ensureOutOfferedMsat() => $_ensure(39); @$pb.TagNumber(44) - $fixnum.Int64 get outPaymentsFulfilled => $_getI64(39); + $fixnum.Int64 get outPaymentsFulfilled => $_getI64(40); @$pb.TagNumber(44) set outPaymentsFulfilled($fixnum.Int64 v) { - $_setInt64(39, v); + $_setInt64(40, v); } @$pb.TagNumber(44) - $core.bool hasOutPaymentsFulfilled() => $_has(39); + $core.bool hasOutPaymentsFulfilled() => $_has(40); @$pb.TagNumber(44) void clearOutPaymentsFulfilled() => clearField(44); @$pb.TagNumber(45) - $1.Amount get outFulfilledMsat => $_getN(40); + $1.Amount get outFulfilledMsat => $_getN(41); @$pb.TagNumber(45) set outFulfilledMsat($1.Amount v) { setField(45, v); } @$pb.TagNumber(45) - $core.bool hasOutFulfilledMsat() => $_has(40); + $core.bool hasOutFulfilledMsat() => $_has(41); @$pb.TagNumber(45) void clearOutFulfilledMsat() => clearField(45); @$pb.TagNumber(45) - $1.Amount ensureOutFulfilledMsat() => $_ensure(40); + $1.Amount ensureOutFulfilledMsat() => $_ensure(41); @$pb.TagNumber(46) - $core.List get htlcs => $_getList(41); + $core.List get htlcs => $_getList(42); @$pb.TagNumber(47) - $core.String get closeToAddr => $_getSZ(42); + $core.String get closeToAddr => $_getSZ(43); @$pb.TagNumber(47) set closeToAddr($core.String v) { - $_setString(42, v); + $_setString(43, v); } @$pb.TagNumber(47) - $core.bool hasCloseToAddr() => $_has(42); + $core.bool hasCloseToAddr() => $_has(43); @$pb.TagNumber(47) void clearCloseToAddr() => clearField(47); @$pb.TagNumber(48) - $1.Amount get minimumHtlcOutMsat => $_getN(43); + $1.Amount get minimumHtlcOutMsat => $_getN(44); @$pb.TagNumber(48) set minimumHtlcOutMsat($1.Amount v) { setField(48, v); } @$pb.TagNumber(48) - $core.bool hasMinimumHtlcOutMsat() => $_has(43); + $core.bool hasMinimumHtlcOutMsat() => $_has(44); @$pb.TagNumber(48) void clearMinimumHtlcOutMsat() => clearField(48); @$pb.TagNumber(48) - $1.Amount ensureMinimumHtlcOutMsat() => $_ensure(43); + $1.Amount ensureMinimumHtlcOutMsat() => $_ensure(44); @$pb.TagNumber(49) - $1.Amount get maximumHtlcOutMsat => $_getN(44); + $1.Amount get maximumHtlcOutMsat => $_getN(45); @$pb.TagNumber(49) set maximumHtlcOutMsat($1.Amount v) { setField(49, v); } @$pb.TagNumber(49) - $core.bool hasMaximumHtlcOutMsat() => $_has(44); + $core.bool hasMaximumHtlcOutMsat() => $_has(45); @$pb.TagNumber(49) void clearMaximumHtlcOutMsat() => clearField(49); @$pb.TagNumber(49) - $1.Amount ensureMaximumHtlcOutMsat() => $_ensure(44); + $1.Amount ensureMaximumHtlcOutMsat() => $_ensure(45); } class ListpeersPeersChannelsFeerate extends $pb.GeneratedMessage { @@ -2669,6 +2715,30 @@ class ListpeersPeersChannelsFunding extends $pb.GeneratedMessage { ? '' : 'pushedMsat', subBuilder: $1.Amount.create) + ..aOM<$1.Amount>( + 4, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'localFundsMsat', + subBuilder: $1.Amount.create) + ..aOM<$1.Amount>( + 5, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'feePaidMsat', + subBuilder: $1.Amount.create) + ..aOM<$1.Amount>( + 6, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'feeRcvdMsat', + subBuilder: $1.Amount.create) + ..aOM<$1.Amount>( + 7, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'remoteFundsMsat', + subBuilder: $1.Amount.create) ..hasRequiredFields = false; ListpeersPeersChannelsFunding._() : super(); @@ -2676,6 +2746,10 @@ class ListpeersPeersChannelsFunding extends $pb.GeneratedMessage { $1.Amount? localMsat, $1.Amount? remoteMsat, $1.Amount? pushedMsat, + $1.Amount? localFundsMsat, + $1.Amount? feePaidMsat, + $1.Amount? feeRcvdMsat, + $1.Amount? remoteFundsMsat, }) { final _result = create(); if (localMsat != null) { @@ -2687,6 +2761,18 @@ class ListpeersPeersChannelsFunding extends $pb.GeneratedMessage { if (pushedMsat != null) { _result.pushedMsat = pushedMsat; } + if (localFundsMsat != null) { + _result.localFundsMsat = localFundsMsat; + } + if (feePaidMsat != null) { + _result.feePaidMsat = feePaidMsat; + } + if (feeRcvdMsat != null) { + _result.feeRcvdMsat = feeRcvdMsat; + } + if (remoteFundsMsat != null) { + _result.remoteFundsMsat = remoteFundsMsat; + } return _result; } factory ListpeersPeersChannelsFunding.fromBuffer($core.List<$core.int> i, @@ -2761,6 +2847,154 @@ class ListpeersPeersChannelsFunding extends $pb.GeneratedMessage { void clearPushedMsat() => clearField(3); @$pb.TagNumber(3) $1.Amount ensurePushedMsat() => $_ensure(2); + + @$pb.TagNumber(4) + $1.Amount get localFundsMsat => $_getN(3); + @$pb.TagNumber(4) + set localFundsMsat($1.Amount v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasLocalFundsMsat() => $_has(3); + @$pb.TagNumber(4) + void clearLocalFundsMsat() => clearField(4); + @$pb.TagNumber(4) + $1.Amount ensureLocalFundsMsat() => $_ensure(3); + + @$pb.TagNumber(5) + $1.Amount get feePaidMsat => $_getN(4); + @$pb.TagNumber(5) + set feePaidMsat($1.Amount v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasFeePaidMsat() => $_has(4); + @$pb.TagNumber(5) + void clearFeePaidMsat() => clearField(5); + @$pb.TagNumber(5) + $1.Amount ensureFeePaidMsat() => $_ensure(4); + + @$pb.TagNumber(6) + $1.Amount get feeRcvdMsat => $_getN(5); + @$pb.TagNumber(6) + set feeRcvdMsat($1.Amount v) { + setField(6, v); + } + + @$pb.TagNumber(6) + $core.bool hasFeeRcvdMsat() => $_has(5); + @$pb.TagNumber(6) + void clearFeeRcvdMsat() => clearField(6); + @$pb.TagNumber(6) + $1.Amount ensureFeeRcvdMsat() => $_ensure(5); + + @$pb.TagNumber(7) + $1.Amount get remoteFundsMsat => $_getN(6); + @$pb.TagNumber(7) + set remoteFundsMsat($1.Amount v) { + setField(7, v); + } + + @$pb.TagNumber(7) + $core.bool hasRemoteFundsMsat() => $_has(6); + @$pb.TagNumber(7) + void clearRemoteFundsMsat() => clearField(7); + @$pb.TagNumber(7) + $1.Amount ensureRemoteFundsMsat() => $_ensure(6); +} + +class ListpeersPeersChannelsAlias extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'ListpeersPeersChannelsAlias', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'cln'), + createEmptyInstance: create) + ..aOS( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'local') + ..aOS( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'remote') + ..hasRequiredFields = false; + + ListpeersPeersChannelsAlias._() : super(); + factory ListpeersPeersChannelsAlias({ + $core.String? local, + $core.String? remote, + }) { + final _result = create(); + if (local != null) { + _result.local = local; + } + if (remote != null) { + _result.remote = remote; + } + return _result; + } + factory ListpeersPeersChannelsAlias.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListpeersPeersChannelsAlias.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListpeersPeersChannelsAlias clone() => + ListpeersPeersChannelsAlias()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListpeersPeersChannelsAlias copyWith( + void Function(ListpeersPeersChannelsAlias) updates) => + super.copyWith( + (message) => updates(message as ListpeersPeersChannelsAlias)) + as ListpeersPeersChannelsAlias; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static ListpeersPeersChannelsAlias create() => + ListpeersPeersChannelsAlias._(); + ListpeersPeersChannelsAlias createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListpeersPeersChannelsAlias getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListpeersPeersChannelsAlias? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get local => $_getSZ(0); + @$pb.TagNumber(1) + set local($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasLocal() => $_has(0); + @$pb.TagNumber(1) + void clearLocal() => clearField(1); + + @$pb.TagNumber(2) + $core.String get remote => $_getSZ(1); + @$pb.TagNumber(2) + set remote($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasRemote() => $_has(1); + @$pb.TagNumber(2) + void clearRemote() => clearField(2); } class ListpeersPeersChannelsHtlcs extends $pb.GeneratedMessage { @@ -3179,6 +3413,11 @@ class ListfundsOutputs extends $pb.GeneratedMessage { ? '' : 'blockheight', $pb.PbFieldType.OU3) + ..aOB( + 9, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'reserved') ..hasRequiredFields = false; ListfundsOutputs._() : super(); @@ -3191,6 +3430,7 @@ class ListfundsOutputs extends $pb.GeneratedMessage { $core.List<$core.int>? redeemscript, ListfundsOutputs_ListfundsOutputsStatus? status, $core.int? blockheight, + $core.bool? reserved, }) { final _result = create(); if (txid != null) { @@ -3217,6 +3457,9 @@ class ListfundsOutputs extends $pb.GeneratedMessage { if (blockheight != null) { _result.blockheight = blockheight; } + if (reserved != null) { + _result.reserved = reserved; + } return _result; } factory ListfundsOutputs.fromBuffer($core.List<$core.int> i, @@ -3343,6 +3586,18 @@ class ListfundsOutputs extends $pb.GeneratedMessage { $core.bool hasBlockheight() => $_has(7); @$pb.TagNumber(8) void clearBlockheight() => clearField(8); + + @$pb.TagNumber(9) + $core.bool get reserved => $_getBF(8); + @$pb.TagNumber(9) + set reserved($core.bool v) { + $_setBool(8, v); + } + + @$pb.TagNumber(9) + $core.bool hasReserved() => $_has(8); + @$pb.TagNumber(9) + void clearReserved() => clearField(9); } class ListfundsChannels extends $pb.GeneratedMessage { @@ -3600,12 +3855,6 @@ class SendpayRequest extends $pb.GeneratedMessage { const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'label') - ..aOM<$1.Amount>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'msatoshi', - subBuilder: $1.Amount.create) ..aOS( 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') @@ -3636,6 +3885,12 @@ class SendpayRequest extends $pb.GeneratedMessage { : 'groupid', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOM<$1.Amount>( + 10, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'amountMsat', + subBuilder: $1.Amount.create) ..hasRequiredFields = false; SendpayRequest._() : super(); @@ -3643,12 +3898,12 @@ class SendpayRequest extends $pb.GeneratedMessage { $core.Iterable? route, $core.List<$core.int>? paymentHash, $core.String? label, - $1.Amount? msatoshi, $core.String? bolt11, $core.List<$core.int>? paymentSecret, $core.int? partid, $core.List<$core.int>? localofferid, $fixnum.Int64? groupid, + $1.Amount? amountMsat, }) { final _result = create(); if (route != null) { @@ -3660,9 +3915,6 @@ class SendpayRequest extends $pb.GeneratedMessage { if (label != null) { _result.label = label; } - if (msatoshi != null) { - _result.msatoshi = msatoshi; - } if (bolt11 != null) { _result.bolt11 = bolt11; } @@ -3678,6 +3930,9 @@ class SendpayRequest extends $pb.GeneratedMessage { if (groupid != null) { _result.groupid = groupid; } + if (amountMsat != null) { + _result.amountMsat = amountMsat; + } return _result; } factory SendpayRequest.fromBuffer($core.List<$core.int> i, @@ -3734,79 +3989,79 @@ class SendpayRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearLabel() => clearField(3); - @$pb.TagNumber(4) - $1.Amount get msatoshi => $_getN(3); - @$pb.TagNumber(4) - set msatoshi($1.Amount v) { - setField(4, v); - } - - @$pb.TagNumber(4) - $core.bool hasMsatoshi() => $_has(3); - @$pb.TagNumber(4) - void clearMsatoshi() => clearField(4); - @$pb.TagNumber(4) - $1.Amount ensureMsatoshi() => $_ensure(3); - @$pb.TagNumber(5) - $core.String get bolt11 => $_getSZ(4); + $core.String get bolt11 => $_getSZ(3); @$pb.TagNumber(5) set bolt11($core.String v) { - $_setString(4, v); + $_setString(3, v); } @$pb.TagNumber(5) - $core.bool hasBolt11() => $_has(4); + $core.bool hasBolt11() => $_has(3); @$pb.TagNumber(5) void clearBolt11() => clearField(5); @$pb.TagNumber(6) - $core.List<$core.int> get paymentSecret => $_getN(5); + $core.List<$core.int> get paymentSecret => $_getN(4); @$pb.TagNumber(6) set paymentSecret($core.List<$core.int> v) { - $_setBytes(5, v); + $_setBytes(4, v); } @$pb.TagNumber(6) - $core.bool hasPaymentSecret() => $_has(5); + $core.bool hasPaymentSecret() => $_has(4); @$pb.TagNumber(6) void clearPaymentSecret() => clearField(6); @$pb.TagNumber(7) - $core.int get partid => $_getIZ(6); + $core.int get partid => $_getIZ(5); @$pb.TagNumber(7) set partid($core.int v) { - $_setUnsignedInt32(6, v); + $_setUnsignedInt32(5, v); } @$pb.TagNumber(7) - $core.bool hasPartid() => $_has(6); + $core.bool hasPartid() => $_has(5); @$pb.TagNumber(7) void clearPartid() => clearField(7); @$pb.TagNumber(8) - $core.List<$core.int> get localofferid => $_getN(7); + $core.List<$core.int> get localofferid => $_getN(6); @$pb.TagNumber(8) set localofferid($core.List<$core.int> v) { - $_setBytes(7, v); + $_setBytes(6, v); } @$pb.TagNumber(8) - $core.bool hasLocalofferid() => $_has(7); + $core.bool hasLocalofferid() => $_has(6); @$pb.TagNumber(8) void clearLocalofferid() => clearField(8); @$pb.TagNumber(9) - $fixnum.Int64 get groupid => $_getI64(8); + $fixnum.Int64 get groupid => $_getI64(7); @$pb.TagNumber(9) set groupid($fixnum.Int64 v) { - $_setInt64(8, v); + $_setInt64(7, v); } @$pb.TagNumber(9) - $core.bool hasGroupid() => $_has(8); + $core.bool hasGroupid() => $_has(7); @$pb.TagNumber(9) void clearGroupid() => clearField(9); + + @$pb.TagNumber(10) + $1.Amount get amountMsat => $_getN(8); + @$pb.TagNumber(10) + set amountMsat($1.Amount v) { + setField(10, v); + } + + @$pb.TagNumber(10) + $core.bool hasAmountMsat() => $_has(8); + @$pb.TagNumber(10) + void clearAmountMsat() => clearField(10); + @$pb.TagNumber(10) + $1.Amount ensureAmountMsat() => $_ensure(8); } class SendpayResponse extends $pb.GeneratedMessage { @@ -4180,12 +4435,6 @@ class SendpayRoute extends $pb.GeneratedMessage { ? '' : 'cln'), createEmptyInstance: create) - ..aOM<$1.Amount>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'msatoshi', - subBuilder: $1.Amount.create) ..a<$core.List<$core.int>>( 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') @@ -4203,19 +4452,22 @@ class SendpayRoute extends $pb.GeneratedMessage { const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'channel') + ..aOM<$1.Amount>( + 5, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'amountMsat', + subBuilder: $1.Amount.create) ..hasRequiredFields = false; SendpayRoute._() : super(); factory SendpayRoute({ - $1.Amount? msatoshi, $core.List<$core.int>? id, $core.int? delay, $core.String? channel, + $1.Amount? amountMsat, }) { final _result = create(); - if (msatoshi != null) { - _result.msatoshi = msatoshi; - } if (id != null) { _result.id = id; } @@ -4225,6 +4477,9 @@ class SendpayRoute extends $pb.GeneratedMessage { if (channel != null) { _result.channel = channel; } + if (amountMsat != null) { + _result.amountMsat = amountMsat; + } return _result; } factory SendpayRoute.fromBuffer($core.List<$core.int> i, @@ -4254,56 +4509,56 @@ class SendpayRoute extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SendpayRoute? _defaultInstance; - @$pb.TagNumber(1) - $1.Amount get msatoshi => $_getN(0); - @$pb.TagNumber(1) - set msatoshi($1.Amount v) { - setField(1, v); - } - - @$pb.TagNumber(1) - $core.bool hasMsatoshi() => $_has(0); - @$pb.TagNumber(1) - void clearMsatoshi() => clearField(1); - @$pb.TagNumber(1) - $1.Amount ensureMsatoshi() => $_ensure(0); - @$pb.TagNumber(2) - $core.List<$core.int> get id => $_getN(1); + $core.List<$core.int> get id => $_getN(0); @$pb.TagNumber(2) set id($core.List<$core.int> v) { - $_setBytes(1, v); + $_setBytes(0, v); } @$pb.TagNumber(2) - $core.bool hasId() => $_has(1); + $core.bool hasId() => $_has(0); @$pb.TagNumber(2) void clearId() => clearField(2); @$pb.TagNumber(3) - $core.int get delay => $_getIZ(2); + $core.int get delay => $_getIZ(1); @$pb.TagNumber(3) set delay($core.int v) { - $_setUnsignedInt32(2, v); + $_setUnsignedInt32(1, v); } @$pb.TagNumber(3) - $core.bool hasDelay() => $_has(2); + $core.bool hasDelay() => $_has(1); @$pb.TagNumber(3) void clearDelay() => clearField(3); @$pb.TagNumber(4) - $core.String get channel => $_getSZ(3); + $core.String get channel => $_getSZ(2); @$pb.TagNumber(4) set channel($core.String v) { - $_setString(3, v); + $_setString(2, v); } @$pb.TagNumber(4) - $core.bool hasChannel() => $_has(3); + $core.bool hasChannel() => $_has(2); @$pb.TagNumber(4) void clearChannel() => clearField(4); -} + + @$pb.TagNumber(5) + $1.Amount get amountMsat => $_getN(3); + @$pb.TagNumber(5) + set amountMsat($1.Amount v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasAmountMsat() => $_has(3); + @$pb.TagNumber(5) + void clearAmountMsat() => clearField(5); + @$pb.TagNumber(5) + $1.Amount ensureAmountMsat() => $_ensure(3); +} class ListchannelsRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( @@ -7792,12 +8047,6 @@ class InvoiceRequest extends $pb.GeneratedMessage { ? '' : 'cln'), createEmptyInstance: create) - ..aOM<$1.AmountOrAny>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'msatoshi', - subBuilder: $1.AmountOrAny.create) ..aOS( 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') @@ -7842,11 +8091,16 @@ class InvoiceRequest extends $pb.GeneratedMessage { const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'deschashonly') + ..aOM<$1.AmountOrAny>( + 10, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'amountMsat', + subBuilder: $1.AmountOrAny.create) ..hasRequiredFields = false; InvoiceRequest._() : super(); factory InvoiceRequest({ - $1.AmountOrAny? msatoshi, $core.String? description, $core.String? label, $core.Iterable<$core.String>? fallbacks, @@ -7855,11 +8109,9 @@ class InvoiceRequest extends $pb.GeneratedMessage { $fixnum.Int64? expiry, $core.bool? exposeprivatechannels, $core.bool? deschashonly, + $1.AmountOrAny? amountMsat, }) { final _result = create(); - if (msatoshi != null) { - _result.msatoshi = msatoshi; - } if (description != null) { _result.description = description; } @@ -7884,6 +8136,9 @@ class InvoiceRequest extends $pb.GeneratedMessage { if (deschashonly != null) { _result.deschashonly = deschashonly; } + if (amountMsat != null) { + _result.amountMsat = amountMsat; + } return _result; } factory InvoiceRequest.fromBuffer($core.List<$core.int> i, @@ -7913,106 +8168,106 @@ class InvoiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static InvoiceRequest? _defaultInstance; - @$pb.TagNumber(1) - $1.AmountOrAny get msatoshi => $_getN(0); - @$pb.TagNumber(1) - set msatoshi($1.AmountOrAny v) { - setField(1, v); - } - - @$pb.TagNumber(1) - $core.bool hasMsatoshi() => $_has(0); - @$pb.TagNumber(1) - void clearMsatoshi() => clearField(1); - @$pb.TagNumber(1) - $1.AmountOrAny ensureMsatoshi() => $_ensure(0); - @$pb.TagNumber(2) - $core.String get description => $_getSZ(1); + $core.String get description => $_getSZ(0); @$pb.TagNumber(2) set description($core.String v) { - $_setString(1, v); + $_setString(0, v); } @$pb.TagNumber(2) - $core.bool hasDescription() => $_has(1); + $core.bool hasDescription() => $_has(0); @$pb.TagNumber(2) void clearDescription() => clearField(2); @$pb.TagNumber(3) - $core.String get label => $_getSZ(2); + $core.String get label => $_getSZ(1); @$pb.TagNumber(3) set label($core.String v) { - $_setString(2, v); + $_setString(1, v); } @$pb.TagNumber(3) - $core.bool hasLabel() => $_has(2); + $core.bool hasLabel() => $_has(1); @$pb.TagNumber(3) void clearLabel() => clearField(3); @$pb.TagNumber(4) - $core.List<$core.String> get fallbacks => $_getList(3); + $core.List<$core.String> get fallbacks => $_getList(2); @$pb.TagNumber(5) - $core.List<$core.int> get preimage => $_getN(4); + $core.List<$core.int> get preimage => $_getN(3); @$pb.TagNumber(5) set preimage($core.List<$core.int> v) { - $_setBytes(4, v); + $_setBytes(3, v); } @$pb.TagNumber(5) - $core.bool hasPreimage() => $_has(4); + $core.bool hasPreimage() => $_has(3); @$pb.TagNumber(5) void clearPreimage() => clearField(5); @$pb.TagNumber(6) - $core.int get cltv => $_getIZ(5); + $core.int get cltv => $_getIZ(4); @$pb.TagNumber(6) set cltv($core.int v) { - $_setUnsignedInt32(5, v); + $_setUnsignedInt32(4, v); } @$pb.TagNumber(6) - $core.bool hasCltv() => $_has(5); + $core.bool hasCltv() => $_has(4); @$pb.TagNumber(6) void clearCltv() => clearField(6); @$pb.TagNumber(7) - $fixnum.Int64 get expiry => $_getI64(6); + $fixnum.Int64 get expiry => $_getI64(5); @$pb.TagNumber(7) set expiry($fixnum.Int64 v) { - $_setInt64(6, v); + $_setInt64(5, v); } @$pb.TagNumber(7) - $core.bool hasExpiry() => $_has(6); + $core.bool hasExpiry() => $_has(5); @$pb.TagNumber(7) void clearExpiry() => clearField(7); @$pb.TagNumber(8) - $core.bool get exposeprivatechannels => $_getBF(7); + $core.bool get exposeprivatechannels => $_getBF(6); @$pb.TagNumber(8) set exposeprivatechannels($core.bool v) { - $_setBool(7, v); + $_setBool(6, v); } @$pb.TagNumber(8) - $core.bool hasExposeprivatechannels() => $_has(7); + $core.bool hasExposeprivatechannels() => $_has(6); @$pb.TagNumber(8) void clearExposeprivatechannels() => clearField(8); @$pb.TagNumber(9) - $core.bool get deschashonly => $_getBF(8); + $core.bool get deschashonly => $_getBF(7); @$pb.TagNumber(9) set deschashonly($core.bool v) { - $_setBool(8, v); + $_setBool(7, v); } @$pb.TagNumber(9) - $core.bool hasDeschashonly() => $_has(8); + $core.bool hasDeschashonly() => $_has(7); @$pb.TagNumber(9) void clearDeschashonly() => clearField(9); + + @$pb.TagNumber(10) + $1.AmountOrAny get amountMsat => $_getN(8); + @$pb.TagNumber(10) + set amountMsat($1.AmountOrAny v) { + setField(10, v); + } + + @$pb.TagNumber(10) + $core.bool hasAmountMsat() => $_has(8); + @$pb.TagNumber(10) + void clearAmountMsat() => clearField(10); + @$pb.TagNumber(10) + $1.AmountOrAny ensureAmountMsat() => $_ensure(8); } class InvoiceResponse extends $pb.GeneratedMessage { @@ -9097,12 +9352,6 @@ class SendonionRequest extends $pb.GeneratedMessage { const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bolt11') - ..aOM<$1.Amount>( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'msatoshi', - subBuilder: $1.Amount.create) ..a<$core.List<$core.int>>( 9, const $core.bool.fromEnvironment('protobuf.omit_field_names') @@ -9122,6 +9371,12 @@ class SendonionRequest extends $pb.GeneratedMessage { : 'groupid', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOM<$1.Amount>( + 12, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'amountMsat', + subBuilder: $1.Amount.create) ..hasRequiredFields = false; SendonionRequest._() : super(); @@ -9132,10 +9387,10 @@ class SendonionRequest extends $pb.GeneratedMessage { $core.Iterable<$core.List<$core.int>>? sharedSecrets, $core.int? partid, $core.String? bolt11, - $1.Amount? msatoshi, $core.List<$core.int>? destination, $core.List<$core.int>? localofferid, $fixnum.Int64? groupid, + $1.Amount? amountMsat, }) { final _result = create(); if (onion != null) { @@ -9156,9 +9411,6 @@ class SendonionRequest extends $pb.GeneratedMessage { if (bolt11 != null) { _result.bolt11 = bolt11; } - if (msatoshi != null) { - _result.msatoshi = msatoshi; - } if (destination != null) { _result.destination = destination; } @@ -9168,6 +9420,9 @@ class SendonionRequest extends $pb.GeneratedMessage { if (groupid != null) { _result.groupid = groupid; } + if (amountMsat != null) { + _result.amountMsat = amountMsat; + } return _result; } factory SendonionRequest.fromBuffer($core.List<$core.int> i, @@ -9260,55 +9515,55 @@ class SendonionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearBolt11() => clearField(7); - @$pb.TagNumber(8) - $1.Amount get msatoshi => $_getN(6); - @$pb.TagNumber(8) - set msatoshi($1.Amount v) { - setField(8, v); - } - - @$pb.TagNumber(8) - $core.bool hasMsatoshi() => $_has(6); - @$pb.TagNumber(8) - void clearMsatoshi() => clearField(8); - @$pb.TagNumber(8) - $1.Amount ensureMsatoshi() => $_ensure(6); - @$pb.TagNumber(9) - $core.List<$core.int> get destination => $_getN(7); + $core.List<$core.int> get destination => $_getN(6); @$pb.TagNumber(9) set destination($core.List<$core.int> v) { - $_setBytes(7, v); + $_setBytes(6, v); } @$pb.TagNumber(9) - $core.bool hasDestination() => $_has(7); + $core.bool hasDestination() => $_has(6); @$pb.TagNumber(9) void clearDestination() => clearField(9); @$pb.TagNumber(10) - $core.List<$core.int> get localofferid => $_getN(8); + $core.List<$core.int> get localofferid => $_getN(7); @$pb.TagNumber(10) set localofferid($core.List<$core.int> v) { - $_setBytes(8, v); + $_setBytes(7, v); } @$pb.TagNumber(10) - $core.bool hasLocalofferid() => $_has(8); + $core.bool hasLocalofferid() => $_has(7); @$pb.TagNumber(10) void clearLocalofferid() => clearField(10); @$pb.TagNumber(11) - $fixnum.Int64 get groupid => $_getI64(9); + $fixnum.Int64 get groupid => $_getI64(8); @$pb.TagNumber(11) set groupid($fixnum.Int64 v) { - $_setInt64(9, v); + $_setInt64(8, v); } @$pb.TagNumber(11) - $core.bool hasGroupid() => $_has(9); + $core.bool hasGroupid() => $_has(8); @$pb.TagNumber(11) void clearGroupid() => clearField(11); + + @$pb.TagNumber(12) + $1.Amount get amountMsat => $_getN(9); + @$pb.TagNumber(12) + set amountMsat($1.Amount v) { + setField(12, v); + } + + @$pb.TagNumber(12) + $core.bool hasAmountMsat() => $_has(9); + @$pb.TagNumber(12) + void clearAmountMsat() => clearField(12); + @$pb.TagNumber(12) + $1.Amount ensureAmountMsat() => $_ensure(9); } class SendonionResponse extends $pb.GeneratedMessage { @@ -10825,12 +11080,6 @@ class ListtransactionsTransactionsOutputs extends $pb.GeneratedMessage { ? '' : 'index', $pb.PbFieldType.OU3) - ..aOM<$1.Amount>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'msat', - subBuilder: $1.Amount.create) ..a<$core.List<$core.int>>( 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') @@ -10858,24 +11107,27 @@ class ListtransactionsTransactionsOutputs extends $pb.GeneratedMessage { const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'channel') + ..aOM<$1.Amount>( + 6, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'amountMsat', + subBuilder: $1.Amount.create) ..hasRequiredFields = false; ListtransactionsTransactionsOutputs._() : super(); factory ListtransactionsTransactionsOutputs({ $core.int? index, - $1.Amount? msat, $core.List<$core.int>? scriptPubKey, ListtransactionsTransactionsOutputs_ListtransactionsTransactionsOutputsType? itemType, $core.String? channel, + $1.Amount? amountMsat, }) { final _result = create(); if (index != null) { _result.index = index; } - if (msat != null) { - _result.msat = msat; - } if (scriptPubKey != null) { _result.scriptPubKey = scriptPubKey; } @@ -10885,6 +11137,9 @@ class ListtransactionsTransactionsOutputs extends $pb.GeneratedMessage { if (channel != null) { _result.channel = channel; } + if (amountMsat != null) { + _result.amountMsat = amountMsat; + } return _result; } factory ListtransactionsTransactionsOutputs.fromBuffer( @@ -10932,35 +11187,21 @@ class ListtransactionsTransactionsOutputs extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearIndex() => clearField(1); - @$pb.TagNumber(2) - $1.Amount get msat => $_getN(1); - @$pb.TagNumber(2) - set msat($1.Amount v) { - setField(2, v); - } - - @$pb.TagNumber(2) - $core.bool hasMsat() => $_has(1); - @$pb.TagNumber(2) - void clearMsat() => clearField(2); - @$pb.TagNumber(2) - $1.Amount ensureMsat() => $_ensure(1); - @$pb.TagNumber(3) - $core.List<$core.int> get scriptPubKey => $_getN(2); + $core.List<$core.int> get scriptPubKey => $_getN(1); @$pb.TagNumber(3) set scriptPubKey($core.List<$core.int> v) { - $_setBytes(2, v); + $_setBytes(1, v); } @$pb.TagNumber(3) - $core.bool hasScriptPubKey() => $_has(2); + $core.bool hasScriptPubKey() => $_has(1); @$pb.TagNumber(3) void clearScriptPubKey() => clearField(3); @$pb.TagNumber(4) ListtransactionsTransactionsOutputs_ListtransactionsTransactionsOutputsType - get itemType => $_getN(3); + get itemType => $_getN(2); @$pb.TagNumber(4) set itemType( ListtransactionsTransactionsOutputs_ListtransactionsTransactionsOutputsType @@ -10969,21 +11210,35 @@ class ListtransactionsTransactionsOutputs extends $pb.GeneratedMessage { } @$pb.TagNumber(4) - $core.bool hasItemType() => $_has(3); + $core.bool hasItemType() => $_has(2); @$pb.TagNumber(4) void clearItemType() => clearField(4); @$pb.TagNumber(5) - $core.String get channel => $_getSZ(4); + $core.String get channel => $_getSZ(3); @$pb.TagNumber(5) set channel($core.String v) { - $_setString(4, v); + $_setString(3, v); } @$pb.TagNumber(5) - $core.bool hasChannel() => $_has(4); + $core.bool hasChannel() => $_has(3); @$pb.TagNumber(5) void clearChannel() => clearField(5); + + @$pb.TagNumber(6) + $1.Amount get amountMsat => $_getN(4); + @$pb.TagNumber(6) + set amountMsat($1.Amount v) { + setField(6, v); + } + + @$pb.TagNumber(6) + $core.bool hasAmountMsat() => $_has(4); + @$pb.TagNumber(6) + void clearAmountMsat() => clearField(6); + @$pb.TagNumber(6) + $1.Amount ensureAmountMsat() => $_ensure(4); } class PayRequest extends $pb.GeneratedMessage { @@ -11001,12 +11256,6 @@ class PayRequest extends $pb.GeneratedMessage { const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bolt11') - ..aOM<$1.Amount>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'msatoshi', - subBuilder: $1.Amount.create) ..aOS( 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') @@ -11064,12 +11313,17 @@ class PayRequest extends $pb.GeneratedMessage { const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'description') + ..aOM<$1.Amount>( + 13, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'amountMsat', + subBuilder: $1.Amount.create) ..hasRequiredFields = false; PayRequest._() : super(); factory PayRequest({ $core.String? bolt11, - $1.Amount? msatoshi, $core.String? label, $core.double? maxfeepercent, $core.int? retryFor, @@ -11080,14 +11334,12 @@ class PayRequest extends $pb.GeneratedMessage { $core.Iterable<$core.String>? exclude, $1.Amount? maxfee, $core.String? description, + $1.Amount? amountMsat, }) { final _result = create(); if (bolt11 != null) { _result.bolt11 = bolt11; } - if (msatoshi != null) { - _result.msatoshi = msatoshi; - } if (label != null) { _result.label = label; } @@ -11118,6 +11370,9 @@ class PayRequest extends $pb.GeneratedMessage { if (description != null) { _result.description = description; } + if (amountMsat != null) { + _result.amountMsat = amountMsat; + } return _result; } factory PayRequest.fromBuffer($core.List<$core.int> i, @@ -11158,134 +11413,134 @@ class PayRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearBolt11() => clearField(1); - @$pb.TagNumber(2) - $1.Amount get msatoshi => $_getN(1); - @$pb.TagNumber(2) - set msatoshi($1.Amount v) { - setField(2, v); - } - - @$pb.TagNumber(2) - $core.bool hasMsatoshi() => $_has(1); - @$pb.TagNumber(2) - void clearMsatoshi() => clearField(2); - @$pb.TagNumber(2) - $1.Amount ensureMsatoshi() => $_ensure(1); - @$pb.TagNumber(3) - $core.String get label => $_getSZ(2); + $core.String get label => $_getSZ(1); @$pb.TagNumber(3) set label($core.String v) { - $_setString(2, v); + $_setString(1, v); } @$pb.TagNumber(3) - $core.bool hasLabel() => $_has(2); + $core.bool hasLabel() => $_has(1); @$pb.TagNumber(3) void clearLabel() => clearField(3); @$pb.TagNumber(4) - $core.double get maxfeepercent => $_getN(3); + $core.double get maxfeepercent => $_getN(2); @$pb.TagNumber(4) set maxfeepercent($core.double v) { - $_setDouble(3, v); + $_setDouble(2, v); } @$pb.TagNumber(4) - $core.bool hasMaxfeepercent() => $_has(3); + $core.bool hasMaxfeepercent() => $_has(2); @$pb.TagNumber(4) void clearMaxfeepercent() => clearField(4); @$pb.TagNumber(5) - $core.int get retryFor => $_getIZ(4); + $core.int get retryFor => $_getIZ(3); @$pb.TagNumber(5) set retryFor($core.int v) { - $_setUnsignedInt32(4, v); + $_setUnsignedInt32(3, v); } @$pb.TagNumber(5) - $core.bool hasRetryFor() => $_has(4); + $core.bool hasRetryFor() => $_has(3); @$pb.TagNumber(5) void clearRetryFor() => clearField(5); @$pb.TagNumber(6) - $core.int get maxdelay => $_getIZ(5); + $core.int get maxdelay => $_getIZ(4); @$pb.TagNumber(6) set maxdelay($core.int v) { - $_setUnsignedInt32(5, v); + $_setUnsignedInt32(4, v); } @$pb.TagNumber(6) - $core.bool hasMaxdelay() => $_has(5); + $core.bool hasMaxdelay() => $_has(4); @$pb.TagNumber(6) void clearMaxdelay() => clearField(6); @$pb.TagNumber(7) - $1.Amount get exemptfee => $_getN(6); + $1.Amount get exemptfee => $_getN(5); @$pb.TagNumber(7) set exemptfee($1.Amount v) { setField(7, v); } @$pb.TagNumber(7) - $core.bool hasExemptfee() => $_has(6); + $core.bool hasExemptfee() => $_has(5); @$pb.TagNumber(7) void clearExemptfee() => clearField(7); @$pb.TagNumber(7) - $1.Amount ensureExemptfee() => $_ensure(6); + $1.Amount ensureExemptfee() => $_ensure(5); @$pb.TagNumber(8) - $core.double get riskfactor => $_getN(7); + $core.double get riskfactor => $_getN(6); @$pb.TagNumber(8) set riskfactor($core.double v) { - $_setDouble(7, v); + $_setDouble(6, v); } @$pb.TagNumber(8) - $core.bool hasRiskfactor() => $_has(7); + $core.bool hasRiskfactor() => $_has(6); @$pb.TagNumber(8) void clearRiskfactor() => clearField(8); @$pb.TagNumber(9) - $core.List<$core.int> get localofferid => $_getN(8); + $core.List<$core.int> get localofferid => $_getN(7); @$pb.TagNumber(9) set localofferid($core.List<$core.int> v) { - $_setBytes(8, v); + $_setBytes(7, v); } @$pb.TagNumber(9) - $core.bool hasLocalofferid() => $_has(8); + $core.bool hasLocalofferid() => $_has(7); @$pb.TagNumber(9) void clearLocalofferid() => clearField(9); @$pb.TagNumber(10) - $core.List<$core.String> get exclude => $_getList(9); + $core.List<$core.String> get exclude => $_getList(8); @$pb.TagNumber(11) - $1.Amount get maxfee => $_getN(10); + $1.Amount get maxfee => $_getN(9); @$pb.TagNumber(11) set maxfee($1.Amount v) { setField(11, v); } @$pb.TagNumber(11) - $core.bool hasMaxfee() => $_has(10); + $core.bool hasMaxfee() => $_has(9); @$pb.TagNumber(11) void clearMaxfee() => clearField(11); @$pb.TagNumber(11) - $1.Amount ensureMaxfee() => $_ensure(10); + $1.Amount ensureMaxfee() => $_ensure(9); @$pb.TagNumber(12) - $core.String get description => $_getSZ(11); + $core.String get description => $_getSZ(10); @$pb.TagNumber(12) set description($core.String v) { - $_setString(11, v); + $_setString(10, v); } @$pb.TagNumber(12) - $core.bool hasDescription() => $_has(11); + $core.bool hasDescription() => $_has(10); @$pb.TagNumber(12) void clearDescription() => clearField(12); + + @$pb.TagNumber(13) + $1.Amount get amountMsat => $_getN(11); + @$pb.TagNumber(13) + set amountMsat($1.Amount v) { + setField(13, v); + } + + @$pb.TagNumber(13) + $core.bool hasAmountMsat() => $_has(11); + @$pb.TagNumber(13) + void clearAmountMsat() => clearField(13); + @$pb.TagNumber(13) + $1.Amount ensureAmountMsat() => $_ensure(11); } class PayResponse extends $pb.GeneratedMessage { @@ -13658,12 +13913,6 @@ class KeysendRequest extends $pb.GeneratedMessage { ? '' : 'destination', $pb.PbFieldType.OY) - ..aOM<$1.Amount>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'msatoshi', - subBuilder: $1.Amount.create) ..aOS( 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') @@ -13699,26 +13948,29 @@ class KeysendRequest extends $pb.GeneratedMessage { ? '' : 'routehints', subBuilder: $1.RoutehintList.create) + ..aOM<$1.Amount>( + 10, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'amountMsat', + subBuilder: $1.Amount.create) ..hasRequiredFields = false; KeysendRequest._() : super(); factory KeysendRequest({ $core.List<$core.int>? destination, - $1.Amount? msatoshi, $core.String? label, $core.double? maxfeepercent, $core.int? retryFor, $core.int? maxdelay, $1.Amount? exemptfee, $1.RoutehintList? routehints, + $1.Amount? amountMsat, }) { final _result = create(); if (destination != null) { _result.destination = destination; } - if (msatoshi != null) { - _result.msatoshi = msatoshi; - } if (label != null) { _result.label = label; } @@ -13737,6 +13989,9 @@ class KeysendRequest extends $pb.GeneratedMessage { if (routehints != null) { _result.routehints = routehints; } + if (amountMsat != null) { + _result.amountMsat = amountMsat; + } return _result; } factory KeysendRequest.fromBuffer($core.List<$core.int> i, @@ -13778,99 +14033,99 @@ class KeysendRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearDestination() => clearField(1); - @$pb.TagNumber(2) - $1.Amount get msatoshi => $_getN(1); - @$pb.TagNumber(2) - set msatoshi($1.Amount v) { - setField(2, v); - } - - @$pb.TagNumber(2) - $core.bool hasMsatoshi() => $_has(1); - @$pb.TagNumber(2) - void clearMsatoshi() => clearField(2); - @$pb.TagNumber(2) - $1.Amount ensureMsatoshi() => $_ensure(1); - @$pb.TagNumber(3) - $core.String get label => $_getSZ(2); + $core.String get label => $_getSZ(1); @$pb.TagNumber(3) set label($core.String v) { - $_setString(2, v); + $_setString(1, v); } @$pb.TagNumber(3) - $core.bool hasLabel() => $_has(2); + $core.bool hasLabel() => $_has(1); @$pb.TagNumber(3) void clearLabel() => clearField(3); @$pb.TagNumber(4) - $core.double get maxfeepercent => $_getN(3); + $core.double get maxfeepercent => $_getN(2); @$pb.TagNumber(4) set maxfeepercent($core.double v) { - $_setDouble(3, v); + $_setDouble(2, v); } @$pb.TagNumber(4) - $core.bool hasMaxfeepercent() => $_has(3); + $core.bool hasMaxfeepercent() => $_has(2); @$pb.TagNumber(4) void clearMaxfeepercent() => clearField(4); @$pb.TagNumber(5) - $core.int get retryFor => $_getIZ(4); + $core.int get retryFor => $_getIZ(3); @$pb.TagNumber(5) set retryFor($core.int v) { - $_setUnsignedInt32(4, v); + $_setUnsignedInt32(3, v); } @$pb.TagNumber(5) - $core.bool hasRetryFor() => $_has(4); + $core.bool hasRetryFor() => $_has(3); @$pb.TagNumber(5) void clearRetryFor() => clearField(5); @$pb.TagNumber(6) - $core.int get maxdelay => $_getIZ(5); + $core.int get maxdelay => $_getIZ(4); @$pb.TagNumber(6) set maxdelay($core.int v) { - $_setUnsignedInt32(5, v); + $_setUnsignedInt32(4, v); } @$pb.TagNumber(6) - $core.bool hasMaxdelay() => $_has(5); + $core.bool hasMaxdelay() => $_has(4); @$pb.TagNumber(6) void clearMaxdelay() => clearField(6); @$pb.TagNumber(7) - $1.Amount get exemptfee => $_getN(6); + $1.Amount get exemptfee => $_getN(5); @$pb.TagNumber(7) set exemptfee($1.Amount v) { setField(7, v); } @$pb.TagNumber(7) - $core.bool hasExemptfee() => $_has(6); + $core.bool hasExemptfee() => $_has(5); @$pb.TagNumber(7) void clearExemptfee() => clearField(7); @$pb.TagNumber(7) - $1.Amount ensureExemptfee() => $_ensure(6); + $1.Amount ensureExemptfee() => $_ensure(5); @$pb.TagNumber(8) - $1.RoutehintList get routehints => $_getN(7); + $1.RoutehintList get routehints => $_getN(6); @$pb.TagNumber(8) set routehints($1.RoutehintList v) { setField(8, v); } @$pb.TagNumber(8) - $core.bool hasRoutehints() => $_has(7); + $core.bool hasRoutehints() => $_has(6); @$pb.TagNumber(8) void clearRoutehints() => clearField(8); @$pb.TagNumber(8) - $1.RoutehintList ensureRoutehints() => $_ensure(7); -} + $1.RoutehintList ensureRoutehints() => $_ensure(6); -class KeysendResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( + @$pb.TagNumber(10) + $1.Amount get amountMsat => $_getN(7); + @$pb.TagNumber(10) + set amountMsat($1.Amount v) { + setField(10, v); + } + + @$pb.TagNumber(10) + $core.bool hasAmountMsat() => $_has(7); + @$pb.TagNumber(10) + void clearAmountMsat() => clearField(10); + @$pb.TagNumber(10) + $1.Amount ensureAmountMsat() => $_ensure(7); +} + +class KeysendResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo( const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'KeysendResponse', @@ -17047,28 +17302,485 @@ class FeeratesOnchain_fee_estimates extends $pb.GeneratedMessage { void clearHtlcSuccessSatoshis() => clearField(5); } -class GetrouteRequest extends $pb.GeneratedMessage { +class FundchannelRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' - : 'GetrouteRequest', + : 'FundchannelRequest', package: const $pb.PackageName( const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'cln'), createEmptyInstance: create) - ..a<$core.List<$core.int>>( + ..aOM<$1.AmountOrAll>( 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'amount', + subBuilder: $1.AmountOrAll.create) + ..aOM<$1.Feerate>( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'feerate', + subBuilder: $1.Feerate.create) + ..aOB( + 3, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'announce') + ..aOM<$1.Amount>( + 5, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'pushMsat', + subBuilder: $1.Amount.create) + ..aOS( + 6, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'closeTo') + ..aOM<$1.Amount>( + 7, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'requestAmt', + subBuilder: $1.Amount.create) + ..aOS( + 8, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'compactLease') + ..a<$core.List<$core.int>>( + 9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id', $pb.PbFieldType.OY) - ..aOM<$1.Amount>( + ..a<$core.int>( + 10, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'minconf', + $pb.PbFieldType.OU3) + ..pc<$1.Outpoint>( + 11, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'utxos', + $pb.PbFieldType.PM, + subBuilder: $1.Outpoint.create) + ..a<$core.int>( + 12, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'mindepth', + $pb.PbFieldType.OU3) + ..hasRequiredFields = false; + + FundchannelRequest._() : super(); + factory FundchannelRequest({ + $1.AmountOrAll? amount, + $1.Feerate? feerate, + $core.bool? announce, + $1.Amount? pushMsat, + $core.String? closeTo, + $1.Amount? requestAmt, + $core.String? compactLease, + $core.List<$core.int>? id, + $core.int? minconf, + $core.Iterable<$1.Outpoint>? utxos, + $core.int? mindepth, + }) { + final _result = create(); + if (amount != null) { + _result.amount = amount; + } + if (feerate != null) { + _result.feerate = feerate; + } + if (announce != null) { + _result.announce = announce; + } + if (pushMsat != null) { + _result.pushMsat = pushMsat; + } + if (closeTo != null) { + _result.closeTo = closeTo; + } + if (requestAmt != null) { + _result.requestAmt = requestAmt; + } + if (compactLease != null) { + _result.compactLease = compactLease; + } + if (id != null) { + _result.id = id; + } + if (minconf != null) { + _result.minconf = minconf; + } + if (utxos != null) { + _result.utxos.addAll(utxos); + } + if (mindepth != null) { + _result.mindepth = mindepth; + } + return _result; + } + factory FundchannelRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory FundchannelRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FundchannelRequest clone() => FundchannelRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FundchannelRequest copyWith(void Function(FundchannelRequest) updates) => + super.copyWith((message) => updates(message as FundchannelRequest)) + as FundchannelRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static FundchannelRequest create() => FundchannelRequest._(); + FundchannelRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static FundchannelRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static FundchannelRequest? _defaultInstance; + + @$pb.TagNumber(1) + $1.AmountOrAll get amount => $_getN(0); + @$pb.TagNumber(1) + set amount($1.AmountOrAll v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasAmount() => $_has(0); + @$pb.TagNumber(1) + void clearAmount() => clearField(1); + @$pb.TagNumber(1) + $1.AmountOrAll ensureAmount() => $_ensure(0); + + @$pb.TagNumber(2) + $1.Feerate get feerate => $_getN(1); + @$pb.TagNumber(2) + set feerate($1.Feerate v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasFeerate() => $_has(1); + @$pb.TagNumber(2) + void clearFeerate() => clearField(2); + @$pb.TagNumber(2) + $1.Feerate ensureFeerate() => $_ensure(1); + + @$pb.TagNumber(3) + $core.bool get announce => $_getBF(2); + @$pb.TagNumber(3) + set announce($core.bool v) { + $_setBool(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasAnnounce() => $_has(2); + @$pb.TagNumber(3) + void clearAnnounce() => clearField(3); + + @$pb.TagNumber(5) + $1.Amount get pushMsat => $_getN(3); + @$pb.TagNumber(5) + set pushMsat($1.Amount v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasPushMsat() => $_has(3); + @$pb.TagNumber(5) + void clearPushMsat() => clearField(5); + @$pb.TagNumber(5) + $1.Amount ensurePushMsat() => $_ensure(3); + + @$pb.TagNumber(6) + $core.String get closeTo => $_getSZ(4); + @$pb.TagNumber(6) + set closeTo($core.String v) { + $_setString(4, v); + } + + @$pb.TagNumber(6) + $core.bool hasCloseTo() => $_has(4); + @$pb.TagNumber(6) + void clearCloseTo() => clearField(6); + + @$pb.TagNumber(7) + $1.Amount get requestAmt => $_getN(5); + @$pb.TagNumber(7) + set requestAmt($1.Amount v) { + setField(7, v); + } + + @$pb.TagNumber(7) + $core.bool hasRequestAmt() => $_has(5); + @$pb.TagNumber(7) + void clearRequestAmt() => clearField(7); + @$pb.TagNumber(7) + $1.Amount ensureRequestAmt() => $_ensure(5); + + @$pb.TagNumber(8) + $core.String get compactLease => $_getSZ(6); + @$pb.TagNumber(8) + set compactLease($core.String v) { + $_setString(6, v); + } + + @$pb.TagNumber(8) + $core.bool hasCompactLease() => $_has(6); + @$pb.TagNumber(8) + void clearCompactLease() => clearField(8); + + @$pb.TagNumber(9) + $core.List<$core.int> get id => $_getN(7); + @$pb.TagNumber(9) + set id($core.List<$core.int> v) { + $_setBytes(7, v); + } + + @$pb.TagNumber(9) + $core.bool hasId() => $_has(7); + @$pb.TagNumber(9) + void clearId() => clearField(9); + + @$pb.TagNumber(10) + $core.int get minconf => $_getIZ(8); + @$pb.TagNumber(10) + set minconf($core.int v) { + $_setUnsignedInt32(8, v); + } + + @$pb.TagNumber(10) + $core.bool hasMinconf() => $_has(8); + @$pb.TagNumber(10) + void clearMinconf() => clearField(10); + + @$pb.TagNumber(11) + $core.List<$1.Outpoint> get utxos => $_getList(9); + + @$pb.TagNumber(12) + $core.int get mindepth => $_getIZ(10); + @$pb.TagNumber(12) + set mindepth($core.int v) { + $_setUnsignedInt32(10, v); + } + + @$pb.TagNumber(12) + $core.bool hasMindepth() => $_has(10); + @$pb.TagNumber(12) + void clearMindepth() => clearField(12); +} + +class FundchannelResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'FundchannelResponse', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'cln'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'tx', + $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' - : 'msatoshi', - subBuilder: $1.Amount.create) + : 'txid', + $pb.PbFieldType.OY) + ..a<$core.int>( + 3, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'outnum', + $pb.PbFieldType.OU3) + ..a<$core.List<$core.int>>( + 4, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'channelId', + $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 5, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'closeTo', + $pb.PbFieldType.OY) + ..a<$core.int>( + 6, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'mindepth', + $pb.PbFieldType.OU3) + ..hasRequiredFields = false; + + FundchannelResponse._() : super(); + factory FundchannelResponse({ + $core.List<$core.int>? tx, + $core.List<$core.int>? txid, + $core.int? outnum, + $core.List<$core.int>? channelId, + $core.List<$core.int>? closeTo, + $core.int? mindepth, + }) { + final _result = create(); + if (tx != null) { + _result.tx = tx; + } + if (txid != null) { + _result.txid = txid; + } + if (outnum != null) { + _result.outnum = outnum; + } + if (channelId != null) { + _result.channelId = channelId; + } + if (closeTo != null) { + _result.closeTo = closeTo; + } + if (mindepth != null) { + _result.mindepth = mindepth; + } + return _result; + } + factory FundchannelResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory FundchannelResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FundchannelResponse clone() => FundchannelResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FundchannelResponse copyWith(void Function(FundchannelResponse) updates) => + super.copyWith((message) => updates(message as FundchannelResponse)) + as FundchannelResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static FundchannelResponse create() => FundchannelResponse._(); + FundchannelResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static FundchannelResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static FundchannelResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.List<$core.int> get tx => $_getN(0); + @$pb.TagNumber(1) + set tx($core.List<$core.int> v) { + $_setBytes(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasTx() => $_has(0); + @$pb.TagNumber(1) + void clearTx() => clearField(1); + + @$pb.TagNumber(2) + $core.List<$core.int> get txid => $_getN(1); + @$pb.TagNumber(2) + set txid($core.List<$core.int> v) { + $_setBytes(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasTxid() => $_has(1); + @$pb.TagNumber(2) + void clearTxid() => clearField(2); + + @$pb.TagNumber(3) + $core.int get outnum => $_getIZ(2); + @$pb.TagNumber(3) + set outnum($core.int v) { + $_setUnsignedInt32(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasOutnum() => $_has(2); + @$pb.TagNumber(3) + void clearOutnum() => clearField(3); + + @$pb.TagNumber(4) + $core.List<$core.int> get channelId => $_getN(3); + @$pb.TagNumber(4) + set channelId($core.List<$core.int> v) { + $_setBytes(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasChannelId() => $_has(3); + @$pb.TagNumber(4) + void clearChannelId() => clearField(4); + + @$pb.TagNumber(5) + $core.List<$core.int> get closeTo => $_getN(4); + @$pb.TagNumber(5) + set closeTo($core.List<$core.int> v) { + $_setBytes(4, v); + } + + @$pb.TagNumber(5) + $core.bool hasCloseTo() => $_has(4); + @$pb.TagNumber(5) + void clearCloseTo() => clearField(5); + + @$pb.TagNumber(6) + $core.int get mindepth => $_getIZ(5); + @$pb.TagNumber(6) + set mindepth($core.int v) { + $_setUnsignedInt32(5, v); + } + + @$pb.TagNumber(6) + $core.bool hasMindepth() => $_has(5); + @$pb.TagNumber(6) + void clearMindepth() => clearField(6); +} + +class GetrouteRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'GetrouteRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'cln'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'id', + $pb.PbFieldType.OY) ..a<$fixnum.Int64>( 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') @@ -17105,26 +17817,29 @@ class GetrouteRequest extends $pb.GeneratedMessage { ? '' : 'maxhops', $pb.PbFieldType.OU3) + ..aOM<$1.Amount>( + 9, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'amountMsat', + subBuilder: $1.Amount.create) ..hasRequiredFields = false; GetrouteRequest._() : super(); factory GetrouteRequest({ $core.List<$core.int>? id, - $1.Amount? msatoshi, $fixnum.Int64? riskfactor, $core.double? cltv, $core.List<$core.int>? fromid, $core.int? fuzzpercent, $core.Iterable<$core.String>? exclude, $core.int? maxhops, + $1.Amount? amountMsat, }) { final _result = create(); if (id != null) { _result.id = id; } - if (msatoshi != null) { - _result.msatoshi = msatoshi; - } if (riskfactor != null) { _result.riskfactor = riskfactor; } @@ -17143,6 +17858,9 @@ class GetrouteRequest extends $pb.GeneratedMessage { if (maxhops != null) { _result.maxhops = maxhops; } + if (amountMsat != null) { + _result.amountMsat = amountMsat; + } return _result; } factory GetrouteRequest.fromBuffer($core.List<$core.int> i, @@ -17184,82 +17902,82 @@ class GetrouteRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); - @$pb.TagNumber(2) - $1.Amount get msatoshi => $_getN(1); - @$pb.TagNumber(2) - set msatoshi($1.Amount v) { - setField(2, v); - } - - @$pb.TagNumber(2) - $core.bool hasMsatoshi() => $_has(1); - @$pb.TagNumber(2) - void clearMsatoshi() => clearField(2); - @$pb.TagNumber(2) - $1.Amount ensureMsatoshi() => $_ensure(1); - @$pb.TagNumber(3) - $fixnum.Int64 get riskfactor => $_getI64(2); + $fixnum.Int64 get riskfactor => $_getI64(1); @$pb.TagNumber(3) set riskfactor($fixnum.Int64 v) { - $_setInt64(2, v); + $_setInt64(1, v); } @$pb.TagNumber(3) - $core.bool hasRiskfactor() => $_has(2); + $core.bool hasRiskfactor() => $_has(1); @$pb.TagNumber(3) void clearRiskfactor() => clearField(3); @$pb.TagNumber(4) - $core.double get cltv => $_getN(3); + $core.double get cltv => $_getN(2); @$pb.TagNumber(4) set cltv($core.double v) { - $_setDouble(3, v); + $_setDouble(2, v); } @$pb.TagNumber(4) - $core.bool hasCltv() => $_has(3); + $core.bool hasCltv() => $_has(2); @$pb.TagNumber(4) void clearCltv() => clearField(4); @$pb.TagNumber(5) - $core.List<$core.int> get fromid => $_getN(4); + $core.List<$core.int> get fromid => $_getN(3); @$pb.TagNumber(5) set fromid($core.List<$core.int> v) { - $_setBytes(4, v); + $_setBytes(3, v); } @$pb.TagNumber(5) - $core.bool hasFromid() => $_has(4); + $core.bool hasFromid() => $_has(3); @$pb.TagNumber(5) void clearFromid() => clearField(5); @$pb.TagNumber(6) - $core.int get fuzzpercent => $_getIZ(5); + $core.int get fuzzpercent => $_getIZ(4); @$pb.TagNumber(6) set fuzzpercent($core.int v) { - $_setUnsignedInt32(5, v); + $_setUnsignedInt32(4, v); } @$pb.TagNumber(6) - $core.bool hasFuzzpercent() => $_has(5); + $core.bool hasFuzzpercent() => $_has(4); @$pb.TagNumber(6) void clearFuzzpercent() => clearField(6); @$pb.TagNumber(7) - $core.List<$core.String> get exclude => $_getList(6); + $core.List<$core.String> get exclude => $_getList(5); @$pb.TagNumber(8) - $core.int get maxhops => $_getIZ(7); + $core.int get maxhops => $_getIZ(6); @$pb.TagNumber(8) set maxhops($core.int v) { - $_setUnsignedInt32(7, v); + $_setUnsignedInt32(6, v); } @$pb.TagNumber(8) - $core.bool hasMaxhops() => $_has(7); + $core.bool hasMaxhops() => $_has(6); @$pb.TagNumber(8) void clearMaxhops() => clearField(8); + + @$pb.TagNumber(9) + $1.Amount get amountMsat => $_getN(7); + @$pb.TagNumber(9) + set amountMsat($1.Amount v) { + setField(9, v); + } + + @$pb.TagNumber(9) + $core.bool hasAmountMsat() => $_has(7); + @$pb.TagNumber(9) + void clearAmountMsat() => clearField(9); + @$pb.TagNumber(9) + $1.Amount ensureAmountMsat() => $_ensure(7); } class GetrouteResponse extends $pb.GeneratedMessage { @@ -18755,3 +19473,86 @@ class SignmessageResponse extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearZbase() => clearField(3); } + +class StopRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'StopRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'cln'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + StopRequest._() : super(); + factory StopRequest() => create(); + factory StopRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory StopRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + StopRequest clone() => StopRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + StopRequest copyWith(void Function(StopRequest) updates) => + super.copyWith((message) => updates(message as StopRequest)) + as StopRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static StopRequest create() => StopRequest._(); + StopRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static StopRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static StopRequest? _defaultInstance; +} + +class StopResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'StopResponse', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'cln'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + StopResponse._() : super(); + factory StopResponse() => create(); + factory StopResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory StopResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + StopResponse clone() => StopResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + StopResponse copyWith(void Function(StopResponse) updates) => + super.copyWith((message) => updates(message as StopResponse)) + as StopResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static StopResponse create() => StopResponse._(); + StopResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static StopResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static StopResponse? _defaultInstance; +} diff --git a/lib/src/generated/node.pbgrpc.dart b/lib/src/generated/node.pbgrpc.dart index df4a274..ffcb870 100644 --- a/lib/src/generated/node.pbgrpc.dart +++ b/lib/src/generated/node.pbgrpc.dart @@ -243,6 +243,12 @@ class NodeClient extends $grpc.Client { ($0.FeeratesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.FeeratesResponse.fromBuffer(value)); + static final _$fundChannel = + $grpc.ClientMethod<$0.FundchannelRequest, $0.FundchannelResponse>( + '/cln.Node/FundChannel', + ($0.FundchannelRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.FundchannelResponse.fromBuffer(value)); static final _$getRoute = $grpc.ClientMethod<$0.GetrouteRequest, $0.GetrouteResponse>( '/cln.Node/GetRoute', @@ -271,6 +277,10 @@ class NodeClient extends $grpc.Client { ($0.SignmessageRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.SignmessageResponse.fromBuffer(value)); + static final _$stop = $grpc.ClientMethod<$0.StopRequest, $0.StopResponse>( + '/cln.Node/Stop', + ($0.StopRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.StopResponse.fromBuffer(value)); NodeClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -497,6 +507,12 @@ class NodeClient extends $grpc.Client { return $createUnaryCall(_$feerates, request, options: options); } + $grpc.ResponseFuture<$0.FundchannelResponse> fundChannel( + $0.FundchannelRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$fundChannel, request, options: options); + } + $grpc.ResponseFuture<$0.GetrouteResponse> getRoute($0.GetrouteRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getRoute, request, options: options); @@ -523,6 +539,11 @@ class NodeClient extends $grpc.Client { {$grpc.CallOptions? options}) { return $createUnaryCall(_$signMessage, request, options: options); } + + $grpc.ResponseFuture<$0.StopResponse> stop($0.StopRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$stop, request, options: options); + } } abstract class NodeServiceBase extends $grpc.Service { @@ -830,6 +851,15 @@ abstract class NodeServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => $0.FeeratesRequest.fromBuffer(value), ($0.FeeratesResponse value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$0.FundchannelRequest, $0.FundchannelResponse>( + 'FundChannel', + fundChannel_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.FundchannelRequest.fromBuffer(value), + ($0.FundchannelResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.GetrouteRequest, $0.GetrouteResponse>( 'GetRoute', getRoute_Pre, @@ -869,6 +899,13 @@ abstract class NodeServiceBase extends $grpc.Service { ($core.List<$core.int> value) => $0.SignmessageRequest.fromBuffer(value), ($0.SignmessageResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.StopRequest, $0.StopResponse>( + 'Stop', + stop_Pre, + false, + false, + ($core.List<$core.int> value) => $0.StopRequest.fromBuffer(value), + ($0.StopResponse value) => value.writeToBuffer())); } $async.Future<$0.GetinfoResponse> getinfo_Pre( @@ -1077,6 +1114,11 @@ abstract class NodeServiceBase extends $grpc.Service { return feerates(call, await request); } + $async.Future<$0.FundchannelResponse> fundChannel_Pre($grpc.ServiceCall call, + $async.Future<$0.FundchannelRequest> request) async { + return fundChannel(call, await request); + } + $async.Future<$0.GetrouteResponse> getRoute_Pre( $grpc.ServiceCall call, $async.Future<$0.GetrouteRequest> request) async { return getRoute(call, await request); @@ -1103,6 +1145,11 @@ abstract class NodeServiceBase extends $grpc.Service { return signMessage(call, await request); } + $async.Future<$0.StopResponse> stop_Pre( + $grpc.ServiceCall call, $async.Future<$0.StopRequest> request) async { + return stop(call, await request); + } + $async.Future<$0.GetinfoResponse> getinfo( $grpc.ServiceCall call, $0.GetinfoRequest request); $async.Future<$0.ListpeersResponse> listPeers( @@ -1181,6 +1228,8 @@ abstract class NodeServiceBase extends $grpc.Service { $grpc.ServiceCall call, $0.DisconnectRequest request); $async.Future<$0.FeeratesResponse> feerates( $grpc.ServiceCall call, $0.FeeratesRequest request); + $async.Future<$0.FundchannelResponse> fundChannel( + $grpc.ServiceCall call, $0.FundchannelRequest request); $async.Future<$0.GetrouteResponse> getRoute( $grpc.ServiceCall call, $0.GetrouteRequest request); $async.Future<$0.ListforwardsResponse> listForwards( @@ -1191,4 +1240,6 @@ abstract class NodeServiceBase extends $grpc.Service { $grpc.ServiceCall call, $0.PingRequest request); $async.Future<$0.SignmessageResponse> signMessage( $grpc.ServiceCall call, $0.SignmessageRequest request); + $async.Future<$0.StopResponse> stop( + $grpc.ServiceCall call, $0.StopRequest request); } diff --git a/lib/src/generated/node.pbjson.dart b/lib/src/generated/node.pbjson.dart index 04e6b62..dd8b792 100644 --- a/lib/src/generated/node.pbjson.dart +++ b/lib/src/generated/node.pbjson.dart @@ -289,24 +289,34 @@ const ListpeersPeers$json = const { '10': 'channels' }, const {'1': 'netaddr', '3': 5, '4': 3, '5': 9, '10': 'netaddr'}, + const { + '1': 'remote_addr', + '3': 7, + '4': 1, + '5': 9, + '9': 0, + '10': 'remoteAddr', + '17': true + }, const { '1': 'features', '3': 6, '4': 1, '5': 12, - '9': 0, + '9': 1, '10': 'features', '17': true }, ], '8': const [ + const {'1': '_remote_addr'}, const {'1': '_features'}, ], }; /// Descriptor for `ListpeersPeers`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listpeersPeersDescriptor = $convert.base64Decode( - 'Cg5MaXN0cGVlcnNQZWVycxIOCgJpZBgBIAEoDFICaWQSHAoJY29ubmVjdGVkGAIgASgIUgljb25uZWN0ZWQSKAoDbG9nGAMgAygLMhYuY2xuLkxpc3RwZWVyc1BlZXJzTG9nUgNsb2cSNwoIY2hhbm5lbHMYBCADKAsyGy5jbG4uTGlzdHBlZXJzUGVlcnNDaGFubmVsc1IIY2hhbm5lbHMSGAoHbmV0YWRkchgFIAMoCVIHbmV0YWRkchIfCghmZWF0dXJlcxgGIAEoDEgAUghmZWF0dXJlc4gBAUILCglfZmVhdHVyZXM='); + 'Cg5MaXN0cGVlcnNQZWVycxIOCgJpZBgBIAEoDFICaWQSHAoJY29ubmVjdGVkGAIgASgIUgljb25uZWN0ZWQSKAoDbG9nGAMgAygLMhYuY2xuLkxpc3RwZWVyc1BlZXJzTG9nUgNsb2cSNwoIY2hhbm5lbHMYBCADKAsyGy5jbG4uTGlzdHBlZXJzUGVlcnNDaGFubmVsc1IIY2hhbm5lbHMSGAoHbmV0YWRkchgFIAMoCVIHbmV0YWRkchIkCgtyZW1vdGVfYWRkchgHIAEoCUgAUgpyZW1vdGVBZGRyiAEBEh8KCGZlYXR1cmVzGAYgASgMSAFSCGZlYXR1cmVziAEBQg4KDF9yZW1vdGVfYWRkckILCglfZmVhdHVyZXM='); @$core.Deprecated('Use listpeersPeersLogDescriptor instead') const ListpeersPeersLog$json = const { '1': 'ListpeersPeersLog', @@ -530,6 +540,16 @@ const ListpeersPeersChannels$json = const { '6': '.cln.ChannelSide', '10': 'opener' }, + const { + '1': 'closer', + '3': 17, + '4': 1, + '5': 14, + '6': '.cln.ChannelSide', + '9': 12, + '10': 'closer', + '17': true + }, const {'1': 'features', '3': 18, '4': 3, '5': 9, '10': 'features'}, const { '1': 'to_us_msat', @@ -537,7 +557,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 12, + '9': 13, '10': 'toUsMsat', '17': true }, @@ -547,7 +567,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 13, + '9': 14, '10': 'minToUsMsat', '17': true }, @@ -557,7 +577,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 14, + '9': 15, '10': 'maxToUsMsat', '17': true }, @@ -567,7 +587,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 15, + '9': 16, '10': 'totalMsat', '17': true }, @@ -577,7 +597,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 16, + '9': 17, '10': 'feeBaseMsat', '17': true }, @@ -586,7 +606,7 @@ const ListpeersPeersChannels$json = const { '3': 25, '4': 1, '5': 13, - '9': 17, + '9': 18, '10': 'feeProportionalMillionths', '17': true }, @@ -596,7 +616,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 18, + '9': 19, '10': 'dustLimitMsat', '17': true }, @@ -606,7 +626,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 19, + '9': 20, '10': 'maxTotalHtlcInMsat', '17': true }, @@ -616,7 +636,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 20, + '9': 21, '10': 'theirReserveMsat', '17': true }, @@ -626,7 +646,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 21, + '9': 22, '10': 'ourReserveMsat', '17': true }, @@ -636,7 +656,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 22, + '9': 23, '10': 'spendableMsat', '17': true }, @@ -646,7 +666,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 23, + '9': 24, '10': 'receivableMsat', '17': true }, @@ -656,7 +676,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 24, + '9': 25, '10': 'minimumHtlcInMsat', '17': true }, @@ -666,7 +686,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 25, + '9': 26, '10': 'minimumHtlcOutMsat', '17': true }, @@ -676,7 +696,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 26, + '9': 27, '10': 'maximumHtlcOutMsat', '17': true }, @@ -685,7 +705,7 @@ const ListpeersPeersChannels$json = const { '3': 33, '4': 1, '5': 13, - '9': 27, + '9': 28, '10': 'theirToSelfDelay', '17': true }, @@ -694,7 +714,7 @@ const ListpeersPeersChannels$json = const { '3': 34, '4': 1, '5': 13, - '9': 28, + '9': 29, '10': 'ourToSelfDelay', '17': true }, @@ -703,7 +723,7 @@ const ListpeersPeersChannels$json = const { '3': 35, '4': 1, '5': 13, - '9': 29, + '9': 30, '10': 'maxAcceptedHtlcs', '17': true }, @@ -713,7 +733,7 @@ const ListpeersPeersChannels$json = const { '3': 38, '4': 1, '5': 4, - '9': 30, + '9': 31, '10': 'inPaymentsOffered', '17': true }, @@ -723,7 +743,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 31, + '9': 32, '10': 'inOfferedMsat', '17': true }, @@ -732,7 +752,7 @@ const ListpeersPeersChannels$json = const { '3': 40, '4': 1, '5': 4, - '9': 32, + '9': 33, '10': 'inPaymentsFulfilled', '17': true }, @@ -742,7 +762,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 33, + '9': 34, '10': 'inFulfilledMsat', '17': true }, @@ -751,7 +771,7 @@ const ListpeersPeersChannels$json = const { '3': 42, '4': 1, '5': 4, - '9': 34, + '9': 35, '10': 'outPaymentsOffered', '17': true }, @@ -761,7 +781,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 35, + '9': 36, '10': 'outOfferedMsat', '17': true }, @@ -770,7 +790,7 @@ const ListpeersPeersChannels$json = const { '3': 44, '4': 1, '5': 4, - '9': 36, + '9': 37, '10': 'outPaymentsFulfilled', '17': true }, @@ -780,7 +800,7 @@ const ListpeersPeersChannels$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '9': 37, + '9': 38, '10': 'outFulfilledMsat', '17': true }, @@ -797,7 +817,7 @@ const ListpeersPeersChannels$json = const { '3': 47, '4': 1, '5': 9, - '9': 38, + '9': 39, '10': 'closeToAddr', '17': true }, @@ -816,6 +836,7 @@ const ListpeersPeersChannels$json = const { const {'1': '_next_fee_step'}, const {'1': '_close_to'}, const {'1': '_private'}, + const {'1': '_closer'}, const {'1': '_to_us_msat'}, const {'1': '_min_to_us_msat'}, const {'1': '_max_to_us_msat'}, @@ -867,7 +888,7 @@ const ListpeersPeersChannels_ListpeersPeersChannelsState$json = const { /// Descriptor for `ListpeersPeersChannels`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listpeersPeersChannelsDescriptor = $convert.base64Decode( - 'ChZMaXN0cGVlcnNQZWVyc0NoYW5uZWxzEk0KBXN0YXRlGAEgASgOMjcuY2xuLkxpc3RwZWVyc1BlZXJzQ2hhbm5lbHMuTGlzdHBlZXJzUGVlcnNDaGFubmVsc1N0YXRlUgVzdGF0ZRImCgxzY3JhdGNoX3R4aWQYAiABKAxIAFILc2NyYXRjaFR4aWSIAQESGQoFb3duZXIYBCABKAlIAVIFb3duZXKIAQESLQoQc2hvcnRfY2hhbm5lbF9pZBgFIAEoCUgCUg5zaG9ydENoYW5uZWxJZIgBARIiCgpjaGFubmVsX2lkGAYgASgMSANSCWNoYW5uZWxJZIgBARImCgxmdW5kaW5nX3R4aWQYByABKAxIBFILZnVuZGluZ1R4aWSIAQESKgoOZnVuZGluZ19vdXRudW0YCCABKA1IBVINZnVuZGluZ091dG51bYgBARIsCg9pbml0aWFsX2ZlZXJhdGUYCSABKAlIBlIOaW5pdGlhbEZlZXJhdGWIAQESJgoMbGFzdF9mZWVyYXRlGAogASgJSAdSC2xhc3RGZWVyYXRliAEBEiYKDG5leHRfZmVlcmF0ZRgLIAEoCUgIUgtuZXh0RmVlcmF0ZYgBARInCg1uZXh0X2ZlZV9zdGVwGAwgASgNSAlSC25leHRGZWVTdGVwiAEBEj8KCGluZmxpZ2h0GA0gAygLMiMuY2xuLkxpc3RwZWVyc1BlZXJzQ2hhbm5lbHNJbmZsaWdodFIIaW5mbGlnaHQSHgoIY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DV9uZXh0X2ZlZXJhdGVCEAoOX25leHRfZmVlX3N0ZXBCCwoJX2Nsb3NlX3RvQgoKCF9wcml2YXRlQgkKB19jbG9zZXJCDQoLX3RvX3VzX21zYXRCEQoPX21pbl90b191c19tc2F0QhEKD19tYXhfdG9fdXNfbXNhdEINCgtfdG90YWxfbXNhdEIQCg5fZmVlX2Jhc2VfbXNhdEIeChxfZmVlX3Byb3BvcnRpb25hbF9taWxsaW9udGhzQhIKEF9kdXN0X2xpbWl0X21zYXRCGQoXX21heF90b3RhbF9odGxjX2luX21zYXRCFQoTX3RoZWlyX3Jlc2VydmVfbXNhdEITChFfb3VyX3Jlc2VydmVfbXNhdEIRCg9fc3BlbmRhYmxlX21zYXRCEgoQX3JlY2VpdmFibGVfbXNhdEIXChVfbWluaW11bV9odGxjX2luX21zYXRCGAoWX21pbmltdW1faHRsY19vdXRfbXNhdEIYChZfbWF4aW11bV9odGxjX291dF9tc2F0QhYKFF90aGVpcl90b19zZWxmX2RlbGF5QhQKEl9vdXJfdG9fc2VsZl9kZWxheUIVChNfbWF4X2FjY2VwdGVkX2h0bGNzQhYKFF9pbl9wYXltZW50c19vZmZlcmVkQhIKEF9pbl9vZmZlcmVkX21zYXRCGAoWX2luX3BheW1lbnRzX2Z1bGZpbGxlZEIUChJfaW5fZnVsZmlsbGVkX21zYXRCFwoVX291dF9wYXltZW50c19vZmZlcmVkQhMKEV9vdXRfb2ZmZXJlZF9tc2F0QhkKF19vdXRfcGF5bWVudHNfZnVsZmlsbGVkQhUKE19vdXRfZnVsZmlsbGVkX21zYXRCEAoOX2Nsb3NlX3RvX2FkZHI='); @$core.Deprecated('Use listpeersPeersChannelsFeerateDescriptor instead') const ListpeersPeersChannelsFeerate$json = const { '1': 'ListpeersPeersChannelsFeerate', @@ -928,7 +949,9 @@ const ListpeersPeersChannelsFunding$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '10': 'localMsat' + '9': 0, + '10': 'localMsat', + '17': true }, const { '1': 'remote_msat', @@ -936,7 +959,9 @@ const ListpeersPeersChannelsFunding$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '10': 'remoteMsat' + '9': 1, + '10': 'remoteMsat', + '17': true }, const { '1': 'pushed_msat', @@ -944,15 +969,93 @@ const ListpeersPeersChannelsFunding$json = const { '4': 1, '5': 11, '6': '.cln.Amount', - '10': 'pushedMsat' + '9': 2, + '10': 'pushedMsat', + '17': true + }, + const { + '1': 'local_funds_msat', + '3': 4, + '4': 1, + '5': 11, + '6': '.cln.Amount', + '10': 'localFundsMsat' }, + const { + '1': 'remote_funds_msat', + '3': 7, + '4': 1, + '5': 11, + '6': '.cln.Amount', + '10': 'remoteFundsMsat' + }, + const { + '1': 'fee_paid_msat', + '3': 5, + '4': 1, + '5': 11, + '6': '.cln.Amount', + '9': 3, + '10': 'feePaidMsat', + '17': true + }, + const { + '1': 'fee_rcvd_msat', + '3': 6, + '4': 1, + '5': 11, + '6': '.cln.Amount', + '9': 4, + '10': 'feeRcvdMsat', + '17': true + }, + ], + '8': const [ + const {'1': '_local_msat'}, + const {'1': '_remote_msat'}, + const {'1': '_pushed_msat'}, + const {'1': '_fee_paid_msat'}, + const {'1': '_fee_rcvd_msat'}, ], }; /// Descriptor for `ListpeersPeersChannelsFunding`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listpeersPeersChannelsFundingDescriptor = $convert.base64Decode( - 'Ch1MaXN0cGVlcnNQZWVyc0NoYW5uZWxzRnVuZGluZxIqCgpsb2NhbF9tc2F0GAEgASgLMgsuY2xuLkFtb3VudFIJbG9jYWxNc2F0EiwKC3JlbW90ZV9tc2F0GAIgASgLMgsuY2xuLkFtb3VudFIKcmVtb3RlTXNhdBIsCgtwdXNoZWRfbXNhdBgDIAEoCzILLmNsbi5BbW91bnRSCnB1c2hlZE1zYXQ='); + 'Ch1MaXN0cGVlcnNQZWVyc0NoYW5uZWxzRnVuZGluZxIvCgpsb2NhbF9tc2F0GAEgASgLMgsuY2xuLkFtb3VudEgAUglsb2NhbE1zYXSIAQESMQoLcmVtb3RlX21zYXQYAiABKAsyCy5jbG4uQW1vdW50SAFSCnJlbW90ZU1zYXSIAQESMQoLcHVzaGVkX21zYXQYAyABKAsyCy5jbG4uQW1vdW50SAJSCnB1c2hlZE1zYXSIAQESNQoQbG9jYWxfZnVuZHNfbXNhdBgEIAEoCzILLmNsbi5BbW91bnRSDmxvY2FsRnVuZHNNc2F0EjcKEXJlbW90ZV9mdW5kc19tc2F0GAcgASgLMgsuY2xuLkFtb3VudFIPcmVtb3RlRnVuZHNNc2F0EjQKDWZlZV9wYWlkX21zYXQYBSABKAsyCy5jbG4uQW1vdW50SANSC2ZlZVBhaWRNc2F0iAEBEjQKDWZlZV9yY3ZkX21zYXQYBiABKAsyCy5jbG4uQW1vdW50SARSC2ZlZVJjdmRNc2F0iAEBQg0KC19sb2NhbF9tc2F0Qg4KDF9yZW1vdGVfbXNhdEIOCgxfcHVzaGVkX21zYXRCEAoOX2ZlZV9wYWlkX21zYXRCEAoOX2ZlZV9yY3ZkX21zYXQ='); +@$core.Deprecated('Use listpeersPeersChannelsAliasDescriptor instead') +const ListpeersPeersChannelsAlias$json = const { + '1': 'ListpeersPeersChannelsAlias', + '2': const [ + const { + '1': 'local', + '3': 1, + '4': 1, + '5': 9, + '9': 0, + '10': 'local', + '17': true + }, + const { + '1': 'remote', + '3': 2, + '4': 1, + '5': 9, + '9': 1, + '10': 'remote', + '17': true + }, + ], + '8': const [ + const {'1': '_local'}, + const {'1': '_remote'}, + ], +}; + +/// Descriptor for `ListpeersPeersChannelsAlias`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listpeersPeersChannelsAliasDescriptor = + $convert.base64Decode( + 'ChtMaXN0cGVlcnNQZWVyc0NoYW5uZWxzQWxpYXMSGQoFbG9jYWwYASABKAlIAFIFbG9jYWyIAQESGwoGcmVtb3RlGAIgASgJSAFSBnJlbW90ZYgBAUIICgZfbG9jYWxCCQoHX3JlbW90ZQ=='); @$core.Deprecated('Use listpeersPeersChannelsHtlcsDescriptor instead') const ListpeersPeersChannelsHtlcs$json = const { '1': 'ListpeersPeersChannelsHtlcs', @@ -1108,6 +1211,7 @@ const ListfundsOutputs$json = const { '6': '.cln.ListfundsOutputs.ListfundsOutputsStatus', '10': 'status' }, + const {'1': 'reserved', '3': 9, '4': 1, '5': 8, '10': 'reserved'}, const { '1': 'blockheight', '3': 8, @@ -1138,7 +1242,7 @@ const ListfundsOutputs_ListfundsOutputsStatus$json = const { /// Descriptor for `ListfundsOutputs`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listfundsOutputsDescriptor = $convert.base64Decode( - 'ChBMaXN0ZnVuZHNPdXRwdXRzEhIKBHR4aWQYASABKAxSBHR4aWQSFgoGb3V0cHV0GAIgASgNUgZvdXRwdXQSLAoLYW1vdW50X21zYXQYAyABKAsyCy5jbG4uQW1vdW50UgphbW91bnRNc2F0EiIKDHNjcmlwdHB1YmtleRgEIAEoDFIMc2NyaXB0cHVia2V5Eh0KB2FkZHJlc3MYBSABKAlIAFIHYWRkcmVzc4gBARInCgxyZWRlZW1zY3JpcHQYBiABKAxIAVIMcmVkZWVtc2NyaXB0iAEBEkQKBnN0YXR1cxgHIAEoDjIsLmNsbi5MaXN0ZnVuZHNPdXRwdXRzLkxpc3RmdW5kc091dHB1dHNTdGF0dXNSBnN0YXR1cxIlCgtibG9ja2hlaWdodBgIIAEoDUgCUgtibG9ja2hlaWdodIgBASJDChZMaXN0ZnVuZHNPdXRwdXRzU3RhdHVzEg8KC1VOQ09ORklSTUVEEAASDQoJQ09ORklSTUVEEAESCQoFU1BFTlQQAkIKCghfYWRkcmVzc0IPCg1fcmVkZWVtc2NyaXB0Qg4KDF9ibG9ja2hlaWdodA=='); + 'ChBMaXN0ZnVuZHNPdXRwdXRzEhIKBHR4aWQYASABKAxSBHR4aWQSFgoGb3V0cHV0GAIgASgNUgZvdXRwdXQSLAoLYW1vdW50X21zYXQYAyABKAsyCy5jbG4uQW1vdW50UgphbW91bnRNc2F0EiIKDHNjcmlwdHB1YmtleRgEIAEoDFIMc2NyaXB0cHVia2V5Eh0KB2FkZHJlc3MYBSABKAlIAFIHYWRkcmVzc4gBARInCgxyZWRlZW1zY3JpcHQYBiABKAxIAVIMcmVkZWVtc2NyaXB0iAEBEkQKBnN0YXR1cxgHIAEoDjIsLmNsbi5MaXN0ZnVuZHNPdXRwdXRzLkxpc3RmdW5kc091dHB1dHNTdGF0dXNSBnN0YXR1cxIaCghyZXNlcnZlZBgJIAEoCFIIcmVzZXJ2ZWQSJQoLYmxvY2toZWlnaHQYCCABKA1IAlILYmxvY2toZWlnaHSIAQEiQwoWTGlzdGZ1bmRzT3V0cHV0c1N0YXR1cxIPCgtVTkNPTkZJUk1FRBAAEg0KCUNPTkZJUk1FRBABEgkKBVNQRU5UEAJCCgoIX2FkZHJlc3NCDwoNX3JlZGVlbXNjcmlwdEIOCgxfYmxvY2toZWlnaHQ='); @$core.Deprecated('Use listfundsChannelsDescriptor instead') const ListfundsChannels$json = const { '1': 'ListfundsChannels', @@ -1218,13 +1322,13 @@ const SendpayRequest$json = const { '17': true }, const { - '1': 'msatoshi', - '3': 4, + '1': 'amount_msat', + '3': 10, '4': 1, '5': 11, '6': '.cln.Amount', '9': 1, - '10': 'msatoshi', + '10': 'amountMsat', '17': true }, const { @@ -1275,7 +1379,7 @@ const SendpayRequest$json = const { ], '8': const [ const {'1': '_label'}, - const {'1': '_msatoshi'}, + const {'1': '_amount_msat'}, const {'1': '_bolt11'}, const {'1': '_payment_secret'}, const {'1': '_partid'}, @@ -1286,7 +1390,7 @@ const SendpayRequest$json = const { /// Descriptor for `SendpayRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sendpayRequestDescriptor = $convert.base64Decode( - 'Cg5TZW5kcGF5UmVxdWVzdBInCgVyb3V0ZRgBIAMoCzIRLmNsbi5TZW5kcGF5Um91dGVSBXJvdXRlEiEKDHBheW1lbnRfaGFzaBgCIAEoDFILcG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ayResponseDescriptor instead') const SendpayResponse$json = const { '1': 'SendpayResponse', @@ -1424,12 +1528,12 @@ const SendpayRoute$json = const { '1': 'SendpayRoute', '2': const [ const { - '1': 'msatoshi', - '3': 1, + '1': 'amount_msat', + '3': 5, '4': 1, '5': 11, '6': '.cln.Amount', - '10': 'msatoshi' + '10': 'amountMsat' }, const {'1': 'id', '3': 2, '4': 1, '5': 12, '10': 'id'}, const {'1': 'delay', '3': 3, '4': 1, '5': 13, '10': 'delay'}, @@ -1439,7 +1543,7 @@ const SendpayRoute$json = const { /// Descriptor for `SendpayRoute`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sendpayRouteDescriptor = $convert.base64Decode( - 'CgxTZW5kcGF5Um91dGUSJwoIbXNhdG9zaGkYASABKAsyCy5jbG4uQW1vdW50Ughtc2F0b3NoaRIOCgJpZBgCIAEoDFICaWQSFAoFZGVsYXkYAyABKA1SBWRlbGF5EhgKB2NoYW5uZWwYBCABKAlSB2NoYW5uZWw='); + 'CgxTZW5kcGF5Um91dGUSLAoLYW1vdW50X21zYXQYBSABKAsyCy5jbG4uQW1vdW50UgphbW91bnRNc2F0Eg4KAmlkGAIgASgMUgJpZBIUCgVkZWxheRgDIAEoDVIFZGVsYXkSGAoHY2hhbm5lbBgEIAEoCVIHY2hhbm5lbA=='); @$core.Deprecated('Use listchannelsRequestDescriptor instead') const ListchannelsRequest$json = const { '1': 'ListchannelsRequest', @@ -1684,24 +1788,13 @@ const CheckmessageResponse$json = const { '1': 'CheckmessageResponse', '2': const [ const {'1': 'verified', '3': 1, '4': 1, '5': 8, '10': 'verified'}, - const { - '1': 'pubkey', - '3': 2, - '4': 1, - '5': 12, - '9': 0, - '10': 'pubkey', - '17': true - }, - ], - '8': const [ - const {'1': '_pubkey'}, + const {'1': 'pubkey', '3': 2, '4': 1, '5': 12, '10': 'pubkey'}, ], }; /// Descriptor for `CheckmessageResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List checkmessageResponseDescriptor = $convert.base64Decode( - 'ChRDaGVja21lc3NhZ2VSZXNwb25zZRIaCgh2ZXJpZmllZBgBIAEoCFIIdmVyaWZpZWQSGwoGcHVia2V5GAIgASgMSABSBnB1YmtleYgBAUIJCgdfcHVia2V5'); + 'ChRDaGVja21lc3NhZ2VSZXNwb25zZRIaCgh2ZXJpZmllZBgBIAEoCFIIdmVyaWZpZWQSFgoGcHVia2V5GAIgASgMUgZwdWJrZXk='); @$core.Deprecated('Use closeRequestDescriptor instead') const CloseRequest$json = const { '1': 'CloseRequest', @@ -2502,12 +2595,12 @@ const InvoiceRequest$json = const { '1': 'InvoiceRequest', '2': const [ const { - '1': 'msatoshi', - '3': 1, + '1': 'amount_msat', + '3': 10, '4': 1, '5': 11, '6': '.cln.AmountOrAny', - '10': 'msatoshi' + '10': 'amountMsat' }, const {'1': 'description', '3': 2, '4': 1, '5': 9, '10': 'description'}, const {'1': 'label', '3': 3, '4': 1, '5': 9, '10': 'label'}, @@ -2569,7 +2662,7 @@ const InvoiceRequest$json = const { /// Descriptor for `InvoiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List invoiceRequestDescriptor = $convert.base64Decode( - 'Cg5JbnZvaWNlUmVxdWVzdBIsCghtc2F0b3NoaRgBIAEoCzIQLmNsbi5BbW91bnRPckFueVIIbXNhdG9zaGkSIAoLZGVzY3JpcHRpb24YAiABKAlSC2Rlc2NyaXB0aW9uEhQKBWxhYmVsGAMgASgJUgVsYWJlbBIbCgZleHBpcnkYByABKARIAFIGZXhwaXJ5iAEBEhwKCWZhbGxiYWNrcxgEIAMoCVIJZmFsbGJhY2tzEh8KCHByZWltYWdlGAUgASgMSAFSCHByZWltYWdliAEBEjkKFWV4cG9zZXByaXZhdGVjaGFubmVscxgIIAEoCEgCUhVleHBvc2Vwcml2YXRlY2hhbm5lbHOIAQESFwoEY2x0dhgGIAEoDUgDUgRjbHR2iAEBEicKDGRlc2NoYXNob25seRgJIAEoCEgEUgxkZXNjaGFzaG9ubHmIAQFCCQoHX2V4cGlyeUILCglfcHJlaW1hZ2VCGAoWX2V4cG9zZXByaXZhdGVjaGFubmVsc0IHCgVfY2x0dkIPCg1fZGVzY2hhc2hvbmx5'); + 'Cg5JbnZvaWNlUmVxdWVzdBIxCgthbW91bnRfbXNhdBgKIAEoCzIQLmNsbi5BbW91bnRPckFueVIKYW1vdW50TXNhdBIgCgtkZXNjcmlwdGlvbhgCIAEoCVILZGVzY3JpcHRpb24SFAoFbGFiZWwYAyABKAlSBWxhYmVsEhsKBmV4cGlyeRgHIAEoBEgAUgZleHBpcnmIAQESHAoJZmFsbGJhY2tzGAQgAygJUglmYWxsYmFja3MSHwoIcHJlaW1hZ2UYBSABKAxIAVIIcHJlaW1hZ2WIAQESOQoVZXhwb3NlcHJpdmF0ZWNoYW5uZWxzGAggASgISAJSFWV4cG9zZXByaXZhdGVjaGFubmVsc4gBARIXCgRjbHR2GAYgASgNSANSBGNsdHaIAQESJwoMZGVzY2hhc2hvbmx5GAkgASgISARSDGRlc2NoYXNob25seYgBAUIJCgdfZXhwaXJ5QgsKCV9wcmVpbWFnZUIYChZfZXhwb3NlcHJpdmF0ZWNoYW5uZWxzQgcKBV9jbHR2Qg8KDV9kZXNjaGFzaG9ubHk='); @$core.Deprecated('Use invoiceResponseDescriptor instead') const InvoiceResponse$json = const { '1': 'InvoiceResponse', @@ -2962,13 +3055,13 @@ const SendonionRequest$json = const { '17': true }, const { - '1': 'msatoshi', - '3': 8, + '1': 'amount_msat', + '3': 12, '4': 1, '5': 11, '6': '.cln.Amount', '9': 3, - '10': 'msatoshi', + '10': 'amountMsat', '17': true }, const { @@ -3003,7 +3096,7 @@ const SendonionRequest$json = const { const {'1': '_label'}, const {'1': '_partid'}, const {'1': '_bolt11'}, - const {'1': '_msatoshi'}, + const {'1': '_amount_msat'}, const {'1': '_destination'}, const {'1': '_localofferid'}, const {'1': '_groupid'}, @@ -3012,7 +3105,7 @@ const SendonionRequest$json = const { /// Descriptor for `SendonionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sendonionRequestDescriptor = $convert.base64Decode( - 'ChBTZW5kb25pb25SZXF1ZXN0EhQKBW9uaW9uGAEgASgMUgVvbmlvbhIhCgxwYXltZW50X2hhc2gYAyABKAxSC3BheW1lbnRIYXNoEhkKBWxhYmVsGAQgASgJSABSBWxhYmVsiAEBEiUKDnNoYXJlZF9zZWNyZXRzGAUgAygMUg1zaGFyZWRTZWNyZXRzEhsKBnBhcnRpZBgGIAEoDUgBUgZwYXJ0aWSIAQESGwoGYm9sdDExGAcgASgJSAJSBmJvbHQxMYgBARIsCghtc2F0b3NoaRgIIAEoCzILLmNsbi5BbW91bnRIA1IIbXNhdG9zaGmIAQESJQoLZGVzdGluYXRpb24YCSABKAxIBFILZGVzdGluYXRpb26IAQESJwoMbG9jYWxvZmZlcmlkGAogASgMSAVSDGxvY2Fsb2ZmZXJpZIgBARIdCgdncm91cGlkGAsgASgESAZSB2dyb3VwaWSIAQFCCAoGX2xhYmVsQgkKB19wYXJ0aWRCCQoHX2JvbHQxMUILCglfbXNhdG9zaGlCDgoMX2Rlc3RpbmF0aW9uQg8KDV9sb2NhbG9mZmVyaWRCCgoIX2dyb3VwaWQ='); + 'ChBTZW5kb25pb25SZXF1ZXN0EhQKBW9uaW9uGAEgASgMUgVvbmlvbhIhCgxwYXltZW50X2hhc2gYAyABKAxSC3BheW1lbnRIYXNoEhkKBWxhYmVsGAQgASgJSABSBWxhYmVsiAEBEiUKDnNoYXJlZF9zZWNyZXRzGAUgAygMUg1zaGFyZWRTZWNyZXRzEhsKBnBhcnRpZBgGIAEoDUgBUgZwYXJ0aWSIAQESGwoGYm9sdDExGAcgASgJSAJSBmJvbHQxMYgBARIxCgthbW91bnRfbXNhdBgMIAEoCzILLmNsbi5BbW91bnRIA1IKYW1vdW50TXNhdIgBARIlCgtkZXN0aW5hdGlvbhgJIAEoDEgEUgtkZXN0aW5hdGlvbogBARInCgxsb2NhbG9mZmVyaWQYCiABKAxIBVIMbG9jYWxvZmZlcmlkiAEBEh0KB2dyb3VwaWQYCyABKARIBlIHZ3JvdXBpZIgBAUIICgZfbGFiZWxCCQoHX3BhcnRpZEIJCgdfYm9sdDExQg4KDF9hbW91bnRfbXNhdEIOCgxfZGVzdGluYXRpb25CDwoNX2xvY2Fsb2ZmZXJpZEIKCghfZ3JvdXBpZA=='); @$core.Deprecated('Use sendonionResponseDescriptor instead') const SendonionResponse$json = const { '1': 'SendonionResponse', @@ -3498,12 +3591,12 @@ const ListtransactionsTransactionsOutputs$json = const { '2': const [ const {'1': 'index', '3': 1, '4': 1, '5': 13, '10': 'index'}, const { - '1': 'msat', - '3': 2, + '1': 'amount_msat', + '3': 6, '4': 1, '5': 11, '6': '.cln.Amount', - '10': 'msat' + '10': 'amountMsat' }, const {'1': 'scriptPubKey', '3': 3, '4': 1, '5': 12, '10': 'scriptPubKey'}, const { @@ -3558,20 +3651,20 @@ const ListtransactionsTransactionsOutputs_ListtransactionsTransactionsOutputsTyp /// Descriptor for `ListtransactionsTransactionsOutputs`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listtransactionsTransactionsOutputsDescriptor = $convert.base64Decode( - 'CiNMaXN0dHJhbnNhY3Rpb25zVHJhbnNhY3Rpb25zT3V0cHV0cxIUCgVpbmRleBgBIAEoDVIFaW5kZXgSHwoEbXNhdBgCIAEoCzILLmNsbi5BbW91bnRSBG1zYXQSIgoMc2NyaXB0UHViS2V5GAMgASgMUgxzY3JpcHRQdWJLZXkScgoJaXRlbV90eXBlGAQgASgOMlAuY2xuLkxpc3R0cmFuc2FjdGlvbnNUcmFuc2FjdGlvbnNPdXRwdXRzLkxpc3R0cmFuc2FjdGlvbnNUcmFuc2FjdGlvbnNPdXRwdXRzVHlwZUgAUghpdGVtVHlwZYgBARIdCgdjaGFubmVsGAUgASgJSAFSB2NoYW5uZWyIAQEilwIKJ0xpc3R0cmFuc2FjdGlvbnNUcmFuc2FjdGlvbnNPdXRwdXRzV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VBAIEhMKD0NIQU5ORUxfUEVOQUxUWRAJEhwKGENIQU5ORUxfVU5JTEFURVJBTF9DSEVBVBAKQgwKCl9pdGVtX3R5cGVCCgoIX2NoYW5uZWw='); @$core.Deprecated('Use payRequestDescriptor instead') const PayRequest$json = const { '1': 'PayRequest', '2': const [ const {'1': 'bolt11', '3': 1, '4': 1, '5': 9, '10': 'bolt11'}, const { - '1': 'msatoshi', - '3': 2, + '1': 'amount_msat', + '3': 13, '4': 1, '5': 11, '6': '.cln.Amount', '9': 0, - '10': 'msatoshi', + '10': 'amountMsat', '17': true }, const { @@ -3660,7 +3753,7 @@ const PayRequest$json = const { }, ], '8': const [ - const {'1': '_msatoshi'}, + const {'1': '_amount_msat'}, const {'1': '_label'}, const {'1': '_riskfactor'}, const {'1': '_maxfeepercent'}, @@ -3675,7 +3768,7 @@ const PayRequest$json = const { /// Descriptor for `PayRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List payRequestDescriptor = $convert.base64Decode( - 'CgpQYXlSZXF1ZXN0EhYKBmJvbHQxMRgBIAEoCVIGYm9sdDExEiwKCG1zYXRvc2hpGAIgASgLMgsuY2xuLkFtb3VudEgAUghtc2F0b3NoaYgBARIZCgVsYWJlbBgDIAEoCUgBUgVsYWJlbIgBARIjCgpyaXNrZmFjdG9yGAggASgBSAJSCnJpc2tmYWN0b3KIAQESKQoNbWF4ZmVlcGVyY2VudBgEIAEoAUgDUg1tYXhmZWVwZXJjZW50iAEBEiAKCXJldHJ5X2ZvchgFIAEoDUgEUghyZXRyeUZvcogBARIfCghtYXhkZWxheRgGIAEoDUgFUghtYXhkZWxheYgBARIuCglleGVtcHRmZWUYByABKAsyCy5jbG4uQW1vdW50SAZSCWV4ZW1wdGZlZYgBARInCgxsb2NhbG9mZmVyaWQYCSABKAxIB1IMbG9jYWxvZmZlcmlkiAEBEhgKB2V4Y2x1ZGUYCiADKAlSB2V4Y2x1ZGUSKAoGbWF4ZmVlGAsgASgLMgsuY2xuLk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wdGlvbg=='); @$core.Deprecated('Use payResponseDescriptor instead') const PayResponse$json = const { '1': 'PayResponse', @@ -4450,12 +4543,12 @@ const KeysendRequest$json = const { '2': const [ const {'1': 'destination', '3': 1, '4': 1, '5': 12, '10': 'destination'}, const { - '1': 'msatoshi', - '3': 2, + '1': 'amount_msat', + '3': 10, '4': 1, '5': 11, '6': '.cln.Amount', - '10': 'msatoshi' + '10': 'amountMsat' }, const { '1': 'label', @@ -4526,7 +4619,7 @@ const KeysendRequest$json = const { /// Descriptor for `KeysendRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List keysendRequestDescriptor = $convert.base64Decode( - 'Cg5LZXlzZW5kUmVxdWVzdBIgCgtkZXN0aW5hdGlvbhgBIAEoDFILZGVzdGluYXRpb24SJwoIbXNhdG9zaGkYAiABKAsyCy5jbG4uQW1vdW50Ughtc2F0b3NoaRIZCgVsYWJlbBgDIAEoCUgAUgVsYWJlbIgBARIpCg1tYXhmZWVwZXJjZW50GAQgASgBSAFSDW1heGZlZXBlcmNlbnSIAQESIAoJcmV0cnlfZm9yGAUgASgNSAJSCHJldHJ5Rm9yiAEBEh8KCG1heGRlbGF5GAYgASgNSANSCG1heGRlbGF5iAEBEi4KCWV4ZW1wdGZlZRgHIAEoCzILLmNsbi5BbW91bnRIBFIJZXhlbXB0ZmVliAEBEjcKCnJvdXRlaGludHMYCCABKAsyEi5jbG4uUm91dGVoaW50TGlzdEgFUgpyb3V0ZWhpbnRziAEBQggKBl9sYWJlbEIQCg5fbWF4ZmVlcGVyY2VudEIMCgpfcmV0cnlfZm9yQgsKCV9tYXhkZWxheUIMCgpfZXhlbXB0ZmVlQg0KC19yb3V0ZWhpbnRz'); + 'Cg5LZXlzZW5kUmVxdWVzdBIgCgtkZXN0aW5hdGlvbhgBIAEoDFILZGVzdGluYXRpb24SLAoLYW1vdW50X21zYXQYCiABKAsyCy5jbG4uQW1vdW50UgphbW91bnRNc2F0EhkKBWxhYmVsGAMgASgJSABSBWxhYmVsiAEBEikKDW1heGZlZXBlcmNlbnQYBCABKAFIAVINbWF4ZmVlcGVyY2VudIgBARIgCglyZXRyeV9mb3IYBSABKA1IAlIIcmV0cnlGb3KIAQESHwoIbWF4ZGVsYXkYBiABKA1IA1IIbWF4ZGVsYXmIAQESLgoJZXhlbXB0ZmVlGAcgASgLMgsuY2xuLkFtb3VudEgEUglleGVtcHRmZWWIAQESNwoKcm91dGVoaW50cxgIIAEoCzISLmNsbi5Sb3V0ZWhpbnRMaXN0SAVSCnJvdXRlaGludHOIAQFCCAoGX2xhYmVsQhAKDl9tYXhmZWVwZXJjZW50QgwKCl9yZXRyeV9mb3JCCwoJX21heGRlbGF5QgwKCl9leGVtcHRmZWVCDQoLX3JvdXRlaGludHM='); @$core.Deprecated('Use keysendResponseDescriptor instead') const KeysendResponse$json = const { '1': 'KeysendResponse', @@ -5390,18 +5483,166 @@ const FeeratesOnchain_fee_estimates$json = const { final $typed_data.Uint8List feeratesOnchain_fee_estimatesDescriptor = $convert.base64Decode( 'Ch1GZWVyYXRlc09uY2hhaW5fZmVlX2VzdGltYXRlcxI4ChhvcGVuaW5nX2NoYW5uZWxfc2F0b3NoaXMYASABKARSFm9wZW5pbmdDaGFubmVsU2F0b3NoaXMSMgoVbXV0dWFsX2Nsb3NlX3NhdG9zaGlzGAIgASgEUhNtdXR1YWxDbG9zZVNhdG9zaGlzEjoKGXVuaWxhdGVyYWxfY2xvc2Vfc2F0b3NoaXMYAyABKARSF3VuaWxhdGVyYWxDbG9zZVNhdG9zaGlzEjIKFWh0bGNfdGltZW91dF9zYXRvc2hpcxgEIAEoBFITaHRsY1RpbWVvdXRTYXRvc2hpcxIyChVodGxjX3N1Y2Nlc3Nfc2F0b3NoaXMYBSABKARSE2h0bGNTdWNjZXNzU2F0b3NoaXM='); +@$core.Deprecated('Use fundchannelRequestDescriptor instead') +const FundchannelRequest$json = const { + '1': 'FundchannelRequest', + '2': const [ + const {'1': 'id', '3': 9, '4': 1, '5': 12, '10': 'id'}, + const { + '1': 'amount', + '3': 1, + '4': 1, + '5': 11, + '6': '.cln.AmountOrAll', + '10': 'amount' + }, + const { + '1': 'feerate', + '3': 2, + '4': 1, + '5': 11, + '6': '.cln.Feerate', + '9': 0, + '10': 'feerate', + '17': true + }, + const { + '1': 'announce', + '3': 3, + '4': 1, + '5': 8, + '9': 1, + '10': 'announce', + '17': true + }, + const { + '1': 'minconf', + '3': 10, + '4': 1, + '5': 13, + '9': 2, + '10': 'minconf', + '17': true + }, + const { + '1': 'push_msat', + '3': 5, + '4': 1, + '5': 11, + '6': '.cln.Amount', + '9': 3, + '10': 'pushMsat', + '17': true + }, + const { + '1': 'close_to', + '3': 6, + '4': 1, + '5': 9, + '9': 4, + '10': 'closeTo', + '17': true + }, + const { + '1': 'request_amt', + '3': 7, + '4': 1, + '5': 11, + '6': '.cln.Amount', + '9': 5, + '10': 'requestAmt', + '17': true + }, + const { + '1': 'compact_lease', + '3': 8, + '4': 1, + '5': 9, + '9': 6, + '10': 'compactLease', + '17': true + }, + const { + '1': 'utxos', + '3': 11, + '4': 3, + '5': 11, + '6': '.cln.Outpoint', + '10': 'utxos' + }, + const { + '1': 'mindepth', + '3': 12, + '4': 1, + '5': 13, + '9': 7, + '10': 'mindepth', + '17': true + }, + ], + '8': const [ + const {'1': '_feerate'}, + const {'1': '_announce'}, + const {'1': '_minconf'}, + const {'1': '_push_msat'}, + const {'1': '_close_to'}, + const {'1': '_request_amt'}, + const {'1': '_compact_lease'}, + const {'1': '_mindepth'}, + ], +}; + +/// Descriptor for `FundchannelRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List fundchannelRequestDescriptor = $convert.base64Decode( + 'ChJGdW5kY2hhbm5lbFJlcXVlc3QSDgoCaWQYCSABKAxSAmlkEigKBmFtb3VudBgBIAEoCzIQLmNsbi5BbW91bnRPckFsbFIGYW1vdW50EisKB2ZlZXJhdGUYAiABKAsyDC5jbG4uRmVlcmF0ZUgAUgdmZWVyYXRliAEBEh8KCGFubm91bmNlGAMgASgISAFSCGFubm91bmNliAEBEh0KB21pbmNvbmYYCiABKA1IAlIHbWluY29uZogBARItCglwdXNoX21zYXQYBSABKAsyCy5jbG4uQW1vdW50SANSCHB1c2hNc2F0iAEBEh4KCGNsb3NlX3RvGAYgASgJSARSB2Nsb3NlVG+IAQESMQoLcmVxdWVzdF9hbXQYByABKAsyCy5jbG4uQW1vdW50SAVSCnJlcXVlc3RBbXSIAQESKAoNY29tcGFjdF9sZWFzZRgIIAEoCUgGUgxjb21wYWN0TGVhc2WIAQESIwoFdXR4b3MYCyADKAsyDS5jbG4uT3V0cG9pbnRSBXV0eG9zEh8KCG1pbmRlcHRoGAwgASgNSAdSCG1pbmRlcHRoiAEBQgoKCF9mZWVyYXRlQgsKCV9hbm5vdW5jZUIKCghfbWluY29uZkIMCgpfcHVzaF9tc2F0QgsKCV9jbG9zZV90b0IOCgxfcmVxdWVzdF9hbXRCEAoOX2NvbXBhY3RfbGVhc2VCCwoJX21pbmRlcHRo'); +@$core.Deprecated('Use fundchannelResponseDescriptor instead') +const FundchannelResponse$json = const { + '1': 'FundchannelResponse', + '2': const [ + const {'1': 'tx', '3': 1, '4': 1, '5': 12, '10': 'tx'}, + const {'1': 'txid', '3': 2, '4': 1, '5': 12, '10': 'txid'}, + const {'1': 'outnum', '3': 3, '4': 1, '5': 13, '10': 'outnum'}, + const {'1': 'channel_id', '3': 4, '4': 1, '5': 12, '10': 'channelId'}, + const { + '1': 'close_to', + '3': 5, + '4': 1, + '5': 12, + '9': 0, + '10': 'closeTo', + '17': true + }, + const { + '1': 'mindepth', + '3': 6, + '4': 1, + '5': 13, + '9': 1, + '10': 'mindepth', + '17': true + }, + ], + '8': const [ + const {'1': '_close_to'}, + const {'1': '_mindepth'}, + ], +}; + +/// Descriptor for `FundchannelResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List fundchannelResponseDescriptor = $convert.base64Decode( + 'ChNGdW5kY2hhbm5lbFJlc3BvbnNlEg4KAnR4GAEgASgMUgJ0eBISCgR0eGlkGAIgASgMUgR0eGlkEhYKBm91dG51bRgDIAEoDVIGb3V0bnVtEh0KCmNoYW5uZWxfaWQYBCABKAxSCWNoYW5uZWxJZBIeCghjbG9zZV90bxgFIAEoDEgAUgdjbG9zZVRviAEBEh8KCG1pbmRlcHRoGAYgASgNSAFSCG1pbmRlcHRoiAEBQgsKCV9jbG9zZV90b0ILCglfbWluZGVwdGg='); @$core.Deprecated('Use getrouteRequestDescriptor instead') const GetrouteRequest$json = const { '1': 'GetrouteRequest', '2': const [ const {'1': 'id', '3': 1, '4': 1, '5': 12, '10': 'id'}, const { - '1': 'msatoshi', - '3': 2, + '1': 'amount_msat', + '3': 9, '4': 1, '5': 11, '6': '.cln.Amount', - '10': 'msatoshi' + '10': 'amountMsat' }, const {'1': 'riskfactor', '3': 3, '4': 1, '5': 4, '10': 'riskfactor'}, const { @@ -5452,7 +5693,7 @@ const GetrouteRequest$json = const { /// Descriptor for `GetrouteRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getrouteRequestDescriptor = $convert.base64Decode( - 'Cg9HZXRyb3V0ZVJlcXVlc3QSDgoCaWQYASABKAxSAmlkEicKCG1zYXRvc2hpGAIgASgLMgsuY2xuLkFtb3VudFIIbXNhdG9zaGkSHgoKcmlza2ZhY3RvchgDIAEoBFIKcmlza2ZhY3RvchIXCgRjbHR2GAQgASgBSABSBGNsdHaIAQESGwoGZnJvbWlkGAUgASgMSAFSBmZyb21pZIgBARIlCgtmdXp6cGVyY2VudBgGIAEoDUgCUgtmdXp6cGVyY2VudIgBARIYCgdleGNsdWRlGAcgAygJUgdleGNsdWRlEh0KB21heGhvcHMYCCABKA1IA1IHbWF4aG9wc4gBAUIHCgVfY2x0dkIJCgdfZnJvbWlkQg4KDF9mdXp6cGVyY2VudEIKCghfbWF4aG9wcw=='); + 'Cg9HZXRyb3V0ZVJlcXVlc3QSDgoCaWQYASABKAxSAmlkEiwKC2Ftb3VudF9tc2F0GAkgASgLMgsuY2xuLkFtb3VudFIKYW1vdW50TXNhdBIeCgpyaXNrZmFjdG9yGAMgASgEUgpyaXNrZmFjdG9yEhcKBGNsdHYYBCABKAFIAFIEY2x0dogBARIbCgZmcm9taWQYBSABKAxIAVIGZnJvbWlkiAEBEiUKC2Z1enpwZXJjZW50GAYgASgNSAJSC2Z1enpwZXJjZW50iAEBEhgKB2V4Y2x1ZGUYByADKAlSB2V4Y2x1ZGUSHQoHbWF4aG9wcxgIIAEoDUgDUgdtYXhob3BziAEBQgcKBV9jbHR2QgkKB19mcm9taWRCDgoMX2Z1enpwZXJjZW50QgoKCF9tYXhob3Bz'); @$core.Deprecated('Use getrouteResponseDescriptor instead') const GetrouteResponse$json = const { '1': 'GetrouteResponse', @@ -5938,3 +6179,19 @@ const SignmessageResponse$json = const { /// Descriptor for `SignmessageResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List signmessageResponseDescriptor = $convert.base64Decode( 'ChNTaWdubWVzc2FnZVJlc3BvbnNlEhwKCXNpZ25hdHVyZRgBIAEoDFIJc2lnbmF0dXJlEhQKBXJlY2lkGAIgASgMUgVyZWNpZBIUCgV6YmFzZRgDIAEoCVIFemJhc2U='); +@$core.Deprecated('Use stopRequestDescriptor instead') +const StopRequest$json = const { + '1': 'StopRequest', +}; + +/// Descriptor for `StopRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List stopRequestDescriptor = + $convert.base64Decode('CgtTdG9wUmVxdWVzdA=='); +@$core.Deprecated('Use stopResponseDescriptor instead') +const StopResponse$json = const { + '1': 'StopResponse', +}; + +/// Descriptor for `StopResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List stopResponseDescriptor = + $convert.base64Decode('CgxTdG9wUmVzcG9uc2U='); diff --git a/protos/node.proto b/protos/node.proto index 475d41d..d7bea56 100644 --- a/protos/node.proto +++ b/protos/node.proto @@ -47,11 +47,13 @@ service Node { rpc TxSend(TxsendRequest) returns (TxsendResponse) {} rpc Disconnect(DisconnectRequest) returns (DisconnectResponse) {} rpc Feerates(FeeratesRequest) returns (FeeratesResponse) {} + rpc FundChannel(FundchannelRequest) returns (FundchannelResponse) {} rpc GetRoute(GetrouteRequest) returns (GetrouteResponse) {} rpc ListForwards(ListforwardsRequest) returns (ListforwardsResponse) {} rpc ListPays(ListpaysRequest) returns (ListpaysResponse) {} rpc Ping(PingRequest) returns (PingResponse) {} rpc SignMessage(SignmessageRequest) returns (SignmessageResponse) {} + rpc Stop(StopRequest) returns (StopResponse) {} } message GetinfoRequest { @@ -128,6 +130,7 @@ message ListpeersPeers { repeated ListpeersPeersLog log = 3; repeated ListpeersPeersChannels channels = 4; repeated string netaddr = 5; + optional string remote_addr = 7; optional bytes features = 6; } @@ -181,6 +184,7 @@ message ListpeersPeersChannels { optional bytes close_to = 14; optional bool private = 15; ChannelSide opener = 16; + optional ChannelSide closer = 17; repeated string features = 18; optional Amount to_us_msat = 20; optional Amount min_to_us_msat = 21; @@ -228,9 +232,18 @@ message ListpeersPeersChannelsInflight { } message ListpeersPeersChannelsFunding { - Amount local_msat = 1; - Amount remote_msat = 2; - Amount pushed_msat = 3; + optional Amount local_msat = 1; + optional Amount remote_msat = 2; + optional Amount pushed_msat = 3; + Amount local_funds_msat = 4; + Amount remote_funds_msat = 7; + optional Amount fee_paid_msat = 5; + optional Amount fee_rcvd_msat = 6; +} + +message ListpeersPeersChannelsAlias { + optional string local = 1; + optional string remote = 2; } message ListpeersPeersChannelsHtlcs { @@ -271,6 +284,7 @@ message ListfundsOutputs { optional string address = 5; optional bytes redeemscript = 6; ListfundsOutputsStatus status = 7; + bool reserved = 9; optional uint32 blockheight = 8; } @@ -289,7 +303,7 @@ message SendpayRequest { repeated SendpayRoute route = 1; bytes payment_hash = 2; optional string label = 3; - optional Amount msatoshi = 4; + optional Amount amount_msat = 10; optional string bolt11 = 5; optional bytes payment_secret = 6; optional uint32 partid = 7; @@ -320,7 +334,7 @@ message SendpayResponse { } message SendpayRoute { - Amount msatoshi = 1; + Amount amount_msat = 5; bytes id = 2; uint32 delay = 3; string channel = 4; @@ -380,7 +394,7 @@ message CheckmessageRequest { message CheckmessageResponse { bool verified = 1; - optional bytes pubkey = 2; + bytes pubkey = 2; } message CloseRequest { @@ -557,7 +571,7 @@ message DelinvoiceResponse { } message InvoiceRequest { - AmountOrAny msatoshi = 1; + AmountOrAny amount_msat = 10; string description = 2; string label = 3; optional uint64 expiry = 7; @@ -636,7 +650,7 @@ message SendonionRequest { repeated bytes shared_secrets = 5; optional uint32 partid = 6; optional string bolt11 = 7; - optional Amount msatoshi = 8; + optional Amount amount_msat = 12; optional bytes destination = 9; optional bytes localofferid = 10; optional uint64 groupid = 11; @@ -765,7 +779,7 @@ message ListtransactionsTransactionsOutputs { CHANNEL_UNILATERAL_CHEAT = 10; } uint32 index = 1; - Amount msat = 2; + Amount amount_msat = 6; bytes scriptPubKey = 3; optional ListtransactionsTransactionsOutputsType item_type = 4; optional string channel = 5; @@ -773,7 +787,7 @@ message ListtransactionsTransactionsOutputs { message PayRequest { string bolt11 = 1; - optional Amount msatoshi = 2; + optional Amount amount_msat = 13; optional string label = 3; optional double riskfactor = 8; optional double maxfeepercent = 4; @@ -943,7 +957,7 @@ message WithdrawResponse { message KeysendRequest { bytes destination = 1; - Amount msatoshi = 2; + Amount amount_msat = 10; optional string label = 3; optional double maxfeepercent = 4; optional uint32 retry_for = 5; @@ -1130,9 +1144,32 @@ message FeeratesOnchain_fee_estimates { uint64 htlc_success_satoshis = 5; } +message FundchannelRequest { + bytes id = 9; + AmountOrAll amount = 1; + optional Feerate feerate = 2; + optional bool announce = 3; + optional uint32 minconf = 10; + optional Amount push_msat = 5; + optional string close_to = 6; + optional Amount request_amt = 7; + optional string compact_lease = 8; + repeated Outpoint utxos = 11; + optional uint32 mindepth = 12; +} + +message FundchannelResponse { + bytes tx = 1; + bytes txid = 2; + uint32 outnum = 3; + bytes channel_id = 4; + optional bytes close_to = 5; + optional uint32 mindepth = 6; +} + message GetrouteRequest { bytes id = 1; - Amount msatoshi = 2; + Amount amount_msat = 9; uint64 riskfactor = 3; optional double cltv = 4; optional bytes fromid = 5; @@ -1254,3 +1291,9 @@ message SignmessageResponse { bytes recid = 2; string zbase = 3; } + +message StopRequest { +} + +message StopResponse { +} diff --git a/test/cln_client_test.dart b/test/cln_client_test.dart index 52fac11..c5e0108 100644 --- a/test/cln_client_test.dart +++ b/test/cln_client_test.dart @@ -69,7 +69,7 @@ class PayProxy extends Serializable { PayProxy(this.proxy); factory PayProxy.build({required String invoice, Amount? amount}) => - PayProxy(PayRequest(bolt11: invoice, msatoshi: amount)); + PayProxy(PayRequest(bolt11: invoice, amountMsat: amount)); @override Map toJSON() => proxy.toProto3Json() as Map;