fix: ltc wallets not syncing (address generation issue) (#2676)

* fix: ltc freezing and address generation * revert: go back to network (fixme), feeRatePerKb

cyan committed Nov 25, 2025 at 13:59 UTC 98babacce0ae2a3a666db6604efa915bb833642e
12 files changed +560 -631
cw_bitcoin/lib/bitcoin_address_record.dart
+5 -1
@@ -99,7 +99,11 @@ class BitcoinAddressRecord extends BaseBitcoinAddressRecord {
99
100 String getScriptHash(BasedUtxoNetwork network) {
101 if (scriptHash != null) return scriptHash!;
102 - scriptHash = BitcoinAddressUtils.scriptHash(address, network: network);
102 + try {
103 + scriptHash = BitcoinAddressUtils.scriptHash(address, network: network);
104 + } catch (e) {
105 + return '';
106 + }
107 return scriptHash!;
108 }
109
cw_bitcoin/lib/electrum_wallet.dart
+1
@@ -2442,6 +2442,7 @@ abstract class ElectrumWalletBase
2442
2443 Future<ElectrumBalance> fetchBalances() async {
2444 final addresses = walletAddresses.allAddresses
2445 + .where((address) => address.address.isNotEmpty)
2446 .where((address) => RegexUtils.addressTypeFromStr(address.address, network) is! MwebAddress)
2447 .toList();
2448 final balanceFutures = <Future<Map<String, dynamic>>>[];
cw_bitcoin/lib/litecoin_wallet.dart
+2 -2
@@ -185,9 +185,9 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
185
186 final String? scanSecretOverride;
187 final String? spendPubkeyOverride;
188 - List<int> get scanSecret => scanSecretOverride != null
188 + List<int> get scanSecret => (scanSecretOverride != null && scanSecretOverride?.isNotEmpty == true)
189 ? hex.decode(scanSecretOverride!)
190 - : mwebHd!.childKey(Bip32KeyIndex(0x80000000)).privateKey.privKey.raw;
190 + : mwebHd?.childKey(Bip32KeyIndex(0x80000000)).privateKey.privKey.raw ?? List.filled(32, 0);
191
192 List<int> get spendSecret =>
193 mwebHd?.childKey(Bip32KeyIndex(0x80000001)).privateKey.privKey.raw ?? List.filled(32, 0);
cw_bitcoin/lib/litecoin_wallet_addresses.dart
+7 -6
@@ -50,12 +50,12 @@ abstract class LitecoinWalletAddressesBase extends ElectrumWalletAddresses with
50 final String? scanSecretOverride;
51 final String? spendPubkeyOverride;
52
53 - List<int> get scanSecret => scanSecretOverride != null
53 + List<int> get scanSecret => (scanSecretOverride != null && scanSecretOverride?.isNotEmpty == true)
54 ? hex.decode(scanSecretOverride!)
55 - : mwebHd!.childKey(Bip32KeyIndex(0x80000000)).privateKey.privKey.raw;
56 - List<int> get spendPubkey => spendPubkeyOverride != null
55 + : mwebHd?.childKey(Bip32KeyIndex(0x80000000)).privateKey.privKey.raw ?? List.filled(32, 0);
56 + List<int> get spendPubkey => (spendPubkeyOverride != null && spendPubkeyOverride?.isNotEmpty == true)
57 ? hex.decode(spendPubkeyOverride!)
58 - : mwebHd!.childKey(Bip32KeyIndex(0x80000001)).publicKey.pubKey.compressed;
58 + : mwebHd?.childKey(Bip32KeyIndex(0x80000001)).publicKey.pubKey.compressed ?? List.filled(32, 0);
59
60 @override
61 Future<void> init() async {
@@ -70,10 +70,11 @@ abstract class LitecoinWalletAddressesBase extends ElectrumWalletAddresses with
70 }
71
72 Future<void> ensureMwebAddressUpToIndexExists(int index) async {
73 + printV("aaaaaa");
74 if (Platform.isLinux || Platform.isMacOS || Platform.isWindows) {
75 return null;
76 }
76 - if ((scanSecret.length < 1 || scanSecret.reduce((a, b) => a + b) == 0) ||
77 + if ((scanSecret.length < 1 || scanSecret.reduce((a, b) => a + b) == 0) &&
78 (spendPubkey.length < 1 || spendPubkey.reduce((a, b) => a + b) == 0)) {
79 return null;
80 }
@@ -140,7 +141,7 @@ abstract class LitecoinWalletAddressesBase extends ElectrumWalletAddresses with
141 }) {
142 if (addressType == SegwitAddresType.mweb) {
143 if (mwebAddrs.length == 0) {
143 - return "null";
144 + return "";
145 }
146 return hd == sideHd ? mwebAddrs[0] : mwebAddrs[index + 1];
147 }
cw_mweb/gen-protobuf.sh new
+10
@@ -0,0 +1,10 @@
1 +#!/bin/bash
2 +
3 +docker run --platform linux/arm64 --rm \
4 + -v "$PWD":/work -w /work dart:2.17 bash -c '
5 + apt-get update &&
6 + apt-get install -y protobuf-compiler &&
7 + dart pub global activate protoc_plugin 20.0.1 &&
8 + export PATH="$PATH:/root/.pub-cache/bin" &&
9 + protoc --dart_out=grpc:./ ./lib/mwebd.proto
10 + '
cw_mweb/go/go.mod
+2 -4
@@ -2,9 +2,7 @@ module github.com/cake-tech/cake_wallet/cw_mweb/go
2
3 go 1.24.1
4
5 -require github.com/ltcmweb/mwebd v0.1.16
6 -
7 -require github.com/ltcmweb/mwebd v0.1.16
5 +require github.com/ltcmweb/mwebd v0.1.17
6
7 require (
8 github.com/Microsoft/go-winio v0.6.2 // indirect
@@ -27,7 +25,7 @@ require (
25 github.com/kkdai/bstream v1.0.0 // indirect
26 github.com/klauspost/cpuid/v2 v2.2.7 // indirect
27 github.com/ltcmweb/coinswapd v0.1.0 // indirect
30 - github.com/ltcmweb/ltcd v0.25.11 // indirect
28 + github.com/ltcmweb/ltcd v0.25.12 // indirect
29 github.com/ltcmweb/ltcd/btcec/v2 v2.3.3 // indirect
30 github.com/ltcmweb/ltcd/chaincfg/chainhash v1.0.3 // indirect
31 github.com/ltcmweb/neutrino v0.17.4 // indirect
cw_mweb/go/go.sum
+4 -4
@@ -63,14 +63,14 @@ github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuV
63 github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
64 github.com/ltcmweb/coinswapd v0.1.0 h1:M6eoz4g7fDpsQeNA8wWbBh6PY1xykrihyLU44SgljeI=
65 github.com/ltcmweb/coinswapd v0.1.0/go.mod h1:CY5cVSympaLrMO8fHWXO+e/iuPLs2L0U9daMCRTstEM=
66 -github.com/ltcmweb/ltcd v0.25.11 h1:MI0n/9I0P2Ig+myofegrXXEvh00lY3TUqPk1akYHBxA=
67 -github.com/ltcmweb/ltcd v0.25.11/go.mod h1:jQbvPfnT4bBXJKRwU5SdD9ZUopwmSvhngdjeopv2cIU=
66 +github.com/ltcmweb/ltcd v0.25.12 h1:igeogW2/rQIZ30UxCvd8lNPJuD6++viuRl70Z7xJ9nA=
67 +github.com/ltcmweb/ltcd v0.25.12/go.mod h1:jQbvPfnT4bBXJKRwU5SdD9ZUopwmSvhngdjeopv2cIU=
68 github.com/ltcmweb/ltcd/btcec/v2 v2.3.3 h1:gJc1ljDPCBtwBKFcC4SW44BFoJqoZzkeagndMYdqKKE=
69 github.com/ltcmweb/ltcd/btcec/v2 v2.3.3/go.mod h1:NRr2WtpiSiSO29TkdZhbGNRA/Q16DV2eNbORf+M2ykI=
70 github.com/ltcmweb/ltcd/chaincfg/chainhash v1.0.3 h1:CAPyzHI3bCFRrrVHZkDUR2i3Awj6l/aqAZIEi0E/nfM=
71 github.com/ltcmweb/ltcd/chaincfg/chainhash v1.0.3/go.mod h1:zB+HhI2IbIwTGpdAhdzpm1GVX4ShcWTgN42+ar9HXrg=
72 -github.com/ltcmweb/mwebd v0.1.16 h1:DaOIp/5TDhcDUxjvnWKHXkr6hF4LHe2bbY8I0zo7m9w=
73 -github.com/ltcmweb/mwebd v0.1.16/go.mod h1:GEhTe4RTG4ImmzsyqCzO2NKK11U2Zgb5+leQnwY+u+4=
72 +github.com/ltcmweb/mwebd v0.1.17 h1:PbYV0NuaWzjj5yAzYxYfEzqeZe54ay5mLz06f14UkJk=
73 +github.com/ltcmweb/mwebd v0.1.17/go.mod h1:qY2DgLYbwOh2GWfW44vV/PfzBN84sR0ulphAr51sAPc=
74 github.com/ltcmweb/neutrino v0.17.4 h1:ZsguBvicTM5CtZDsKg+OBFuPUCKjfEJ3lRSGXPjF2oM=
75 github.com/ltcmweb/neutrino v0.17.4/go.mod h1:KktZ+McIwHuTHe0K8JK9Wv4qgv8orkA21a0ZOU4SwJ4=
76 github.com/ltcmweb/neutrino/cache v1.1.0 h1:C0Qn2p8ogcskRPfrBKPUayjn3m/CUJqI7otopNScvhk=
cw_mweb/go/mweb.go
+3 -2
@@ -25,13 +25,14 @@ func StartServer(chain *C.char, dataDir *C.char, nodeUri *C.char, errMsg **C.cha
25 return 0
26 }
27
28 - err = server.StartUnix(goDataDir + "/mwebd.sock")
28 +// err = server.StartUnix(goDataDir + "/mwebd.sock")
29 + start, err := server.Start(0)
30 if err != nil {
31 *errMsg = C.CString(err.Error())
32 return 0
33 }
34
34 - return 1
35 + return C.int(start)
36 }
37
38 //export StopServer
cw_mweb/lib/cw_mweb.dart
+1 -2
@@ -64,8 +64,7 @@ class CwMweb {
64 }
65 printV("Attempting to connect to server on port: $_port");
66
67 - final address = InternetAddress("${appDir.path}/mwebd.sock", type: InternetAddressType.unix);
68 - _clientChannel = ClientChannel(address, channelShutdownHandler: () {
67 + _clientChannel = ClientChannel('127.0.0.1', port: _port!, channelShutdownHandler: () {
68 _rpcClient = null;
69 printV("Channel is shutting down!");
70 },
cw_mweb/lib/mwebd.pb.dart
+341 -494
@@ -1,13 +1,9 @@
1 -//
1 +///
2 // Generated code. Do not modify.
3 -// source: mwebd.proto
3 +// source: lib/mwebd.proto
4 //
5 // @dart = 2.12
6 -
7 -// ignore_for_file: annotate_overrides, camel_case_types, comment_references
8 -// ignore_for_file: constant_identifier_names, library_prefixes
9 -// ignore_for_file: non_constant_identifier_names, prefer_final_fields
10 -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
6 +// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name
7
8 import 'dart:core' as $core;
9
@@ -15,15 +11,14 @@ import 'package:fixnum/fixnum.dart' as $fixnum;
11 import 'package:protobuf/protobuf.dart' as $pb;
12
13 class StatusRequest extends $pb.GeneratedMessage {
18 - factory StatusRequest() => create();
19 - StatusRequest._() : super();
20 - factory StatusRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
21 - factory StatusRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
22 -
23 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StatusRequest', createEmptyInstance: create)
14 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'StatusRequest', createEmptyInstance: create)
15 ..hasRequiredFields = false
16 ;
17
18 + StatusRequest._() : super();
19 + factory StatusRequest() => create();
20 + factory StatusRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
21 + factory StatusRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
22 @$core.Deprecated(
23 'Using this can add significant overhead to your binary. '
24 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -33,10 +28,8 @@ class StatusRequest extends $pb.GeneratedMessage {
28 'Using this can add significant overhead to your binary. '
29 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
30 'Will be removed in next major version')
36 - StatusRequest copyWith(void Function(StatusRequest) updates) => super.copyWith((message) => updates(message as StatusRequest)) as StatusRequest;
37 -
31 + StatusRequest copyWith(void Function(StatusRequest) updates) => super.copyWith((message) => updates(message as StatusRequest)) as StatusRequest; // ignore: deprecated_member_use
32 $pb.BuilderInfo get info_ => _i;
39 -
33 @$core.pragma('dart2js:noInline')
34 static StatusRequest create() => StatusRequest._();
35 StatusRequest createEmptyInstance() => create();
@@ -47,39 +40,38 @@ class StatusRequest extends $pb.GeneratedMessage {
40 }
41
42 class StatusResponse extends $pb.GeneratedMessage {
43 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'StatusResponse', createEmptyInstance: create)
44 + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'blockHeaderHeight', $pb.PbFieldType.O3)
45 + ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mwebHeaderHeight', $pb.PbFieldType.O3)
46 + ..a<$core.int>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mwebUtxosHeight', $pb.PbFieldType.O3)
47 + ..a<$core.int>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'blockTime', $pb.PbFieldType.OU3)
48 + ..hasRequiredFields = false
49 + ;
50 +
51 + StatusResponse._() : super();
52 factory StatusResponse({
53 $core.int? blockHeaderHeight,
54 $core.int? mwebHeaderHeight,
55 $core.int? mwebUtxosHeight,
56 $core.int? blockTime,
57 }) {
56 - final $result = create();
58 + final _result = create();
59 if (blockHeaderHeight != null) {
58 - $result.blockHeaderHeight = blockHeaderHeight;
60 + _result.blockHeaderHeight = blockHeaderHeight;
61 }
62 if (mwebHeaderHeight != null) {
61 - $result.mwebHeaderHeight = mwebHeaderHeight;
63 + _result.mwebHeaderHeight = mwebHeaderHeight;
64 }
65 if (mwebUtxosHeight != null) {
64 - $result.mwebUtxosHeight = mwebUtxosHeight;
66 + _result.mwebUtxosHeight = mwebUtxosHeight;
67 }
68 if (blockTime != null) {
67 - $result.blockTime = blockTime;
69 + _result.blockTime = blockTime;
70 }
69 - return $result;
71 + return _result;
72 }
71 - StatusResponse._() : super();
73 factory StatusResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
74 factory StatusResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
74 -
75 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StatusResponse', createEmptyInstance: create)
76 - ..a<$core.int>(1, _omitFieldNames ? '' : 'blockHeaderHeight', $pb.PbFieldType.O3)
77 - ..a<$core.int>(2, _omitFieldNames ? '' : 'mwebHeaderHeight', $pb.PbFieldType.O3)
78 - ..a<$core.int>(3, _omitFieldNames ? '' : 'mwebUtxosHeight', $pb.PbFieldType.O3)
79 - ..a<$core.int>(4, _omitFieldNames ? '' : 'blockTime', $pb.PbFieldType.OU3)
80 - ..hasRequiredFields = false
81 - ;
82 -
75 @$core.Deprecated(
76 'Using this can add significant overhead to your binary. '
77 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -89,10 +81,8 @@ class StatusResponse extends $pb.GeneratedMessage {
81 'Using this can add significant overhead to your binary. '
82 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
83 'Will be removed in next major version')
92 - StatusResponse copyWith(void Function(StatusResponse) updates) => super.copyWith((message) => updates(message as StatusResponse)) as StatusResponse;
93 -
84 + StatusResponse copyWith(void Function(StatusResponse) updates) => super.copyWith((message) => updates(message as StatusResponse)) as StatusResponse; // ignore: deprecated_member_use
85 $pb.BuilderInfo get info_ => _i;
95 -
86 @$core.pragma('dart2js:noInline')
87 static StatusResponse create() => StatusResponse._();
88 StatusResponse createEmptyInstance() => create();
@@ -101,7 +91,6 @@ class StatusResponse extends $pb.GeneratedMessage {
91 static StatusResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<StatusResponse>(create);
92 static StatusResponse? _defaultInstance;
93
104 - /// The height of the latest block.
94 @$pb.TagNumber(1)
95 $core.int get blockHeaderHeight => $_getIZ(0);
96 @$pb.TagNumber(1)
@@ -111,7 +100,6 @@ class StatusResponse extends $pb.GeneratedMessage {
100 @$pb.TagNumber(1)
101 void clearBlockHeaderHeight() => clearField(1);
102
114 - /// The height of the latest MWEB header.
103 @$pb.TagNumber(2)
104 $core.int get mwebHeaderHeight => $_getIZ(1);
105 @$pb.TagNumber(2)
@@ -121,7 +109,6 @@ class StatusResponse extends $pb.GeneratedMessage {
109 @$pb.TagNumber(2)
110 void clearMwebHeaderHeight() => clearField(2);
111
124 - /// The height at which the MWEB utxo set is synced to.
112 @$pb.TagNumber(3)
113 $core.int get mwebUtxosHeight => $_getIZ(2);
114 @$pb.TagNumber(3)
@@ -131,7 +118,6 @@ class StatusResponse extends $pb.GeneratedMessage {
118 @$pb.TagNumber(3)
119 void clearMwebUtxosHeight() => clearField(3);
120
134 - /// The timestamp of the latest block.
121 @$pb.TagNumber(4)
122 $core.int get blockTime => $_getIZ(3);
123 @$pb.TagNumber(4)
@@ -143,29 +129,28 @@ class StatusResponse extends $pb.GeneratedMessage {
129 }
130
131 class UtxosRequest extends $pb.GeneratedMessage {
132 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'UtxosRequest', createEmptyInstance: create)
133 + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fromHeight', $pb.PbFieldType.O3)
134 + ..a<$core.List<$core.int>>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'scanSecret', $pb.PbFieldType.OY)
135 + ..hasRequiredFields = false
136 + ;
137 +
138 + UtxosRequest._() : super();
139 factory UtxosRequest({
140 $core.int? fromHeight,
141 $core.List<$core.int>? scanSecret,
142 }) {
150 - final $result = create();
143 + final _result = create();
144 if (fromHeight != null) {
152 - $result.fromHeight = fromHeight;
145 + _result.fromHeight = fromHeight;
146 }
147 if (scanSecret != null) {
155 - $result.scanSecret = scanSecret;
148 + _result.scanSecret = scanSecret;
149 }
157 - return $result;
150 + return _result;
151 }
159 - UtxosRequest._() : super();
152 factory UtxosRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
153 factory UtxosRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
162 -
163 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UtxosRequest', createEmptyInstance: create)
164 - ..a<$core.int>(1, _omitFieldNames ? '' : 'fromHeight', $pb.PbFieldType.O3)
165 - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'scanSecret', $pb.PbFieldType.OY)
166 - ..hasRequiredFields = false
167 - ;
168 -
154 @$core.Deprecated(
155 'Using this can add significant overhead to your binary. '
156 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -175,10 +160,8 @@ class UtxosRequest extends $pb.GeneratedMessage {
160 'Using this can add significant overhead to your binary. '
161 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
162 'Will be removed in next major version')
178 - UtxosRequest copyWith(void Function(UtxosRequest) updates) => super.copyWith((message) => updates(message as UtxosRequest)) as UtxosRequest;
179 -
163 + UtxosRequest copyWith(void Function(UtxosRequest) updates) => super.copyWith((message) => updates(message as UtxosRequest)) as UtxosRequest; // ignore: deprecated_member_use
164 $pb.BuilderInfo get info_ => _i;
181 -
165 @$core.pragma('dart2js:noInline')
166 static UtxosRequest create() => UtxosRequest._();
167 UtxosRequest createEmptyInstance() => create();
@@ -187,10 +170,6 @@ class UtxosRequest extends $pb.GeneratedMessage {
170 static UtxosRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<UtxosRequest>(create);
171 static UtxosRequest? _defaultInstance;
172
190 - /// The block height from which to start fetching utxos from.
191 - /// After all mined utxos have been streamed, unconfirmed and
192 - /// newly confirmed utxos will also be streamed. If this is set
193 - /// to 0 then all utxos belonging to the account will be fetched.
173 @$pb.TagNumber(1)
174 $core.int get fromHeight => $_getIZ(0);
175 @$pb.TagNumber(1)
@@ -200,8 +179,6 @@ class UtxosRequest extends $pb.GeneratedMessage {
179 @$pb.TagNumber(1)
180 void clearFromHeight() => clearField(1);
181
203 - /// The scan secret or view key represents the account for
204 - /// which utxos should be streamed.
182 @$pb.TagNumber(2)
183 $core.List<$core.int> get scanSecret => $_getN(1);
184 @$pb.TagNumber(2)
@@ -213,6 +190,16 @@ class UtxosRequest extends $pb.GeneratedMessage {
190 }
191
192 class Utxo extends $pb.GeneratedMessage {
193 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Utxo', createEmptyInstance: create)
194 + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'height', $pb.PbFieldType.O3)
195 + ..a<$fixnum.Int64>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO)
196 + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'address')
197 + ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputId')
198 + ..a<$core.int>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'blockTime', $pb.PbFieldType.OU3)
199 + ..hasRequiredFields = false
200 + ;
201 +
202 + Utxo._() : super();
203 factory Utxo({
204 $core.int? height,
205 $fixnum.Int64? value,
@@ -220,37 +207,26 @@ class Utxo extends $pb.GeneratedMessage {
207 $core.String? outputId,
208 $core.int? blockTime,
209 }) {
223 - final $result = create();
210 + final _result = create();
211 if (height != null) {
225 - $result.height = height;
212 + _result.height = height;
213 }
214 if (value != null) {
228 - $result.value = value;
215 + _result.value = value;
216 }
217 if (address != null) {
231 - $result.address = address;
218 + _result.address = address;
219 }
220 if (outputId != null) {
234 - $result.outputId = outputId;
221 + _result.outputId = outputId;
222 }
223 if (blockTime != null) {
237 - $result.blockTime = blockTime;
224 + _result.blockTime = blockTime;
225 }
239 - return $result;
226 + return _result;
227 }
241 - Utxo._() : super();
228 factory Utxo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
229 factory Utxo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
244 -
245 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Utxo', createEmptyInstance: create)
246 - ..a<$core.int>(1, _omitFieldNames ? '' : 'height', $pb.PbFieldType.O3)
247 - ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO)
248 - ..aOS(3, _omitFieldNames ? '' : 'address')
249 - ..aOS(4, _omitFieldNames ? '' : 'outputId')
250 - ..a<$core.int>(5, _omitFieldNames ? '' : 'blockTime', $pb.PbFieldType.OU3)
251 - ..hasRequiredFields = false
252 - ;
253 -
230 @$core.Deprecated(
231 'Using this can add significant overhead to your binary. '
232 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -260,10 +236,8 @@ class Utxo extends $pb.GeneratedMessage {
236 'Using this can add significant overhead to your binary. '
237 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
238 'Will be removed in next major version')
263 - Utxo copyWith(void Function(Utxo) updates) => super.copyWith((message) => updates(message as Utxo)) as Utxo;
264 -
239 + Utxo copyWith(void Function(Utxo) updates) => super.copyWith((message) => updates(message as Utxo)) as Utxo; // ignore: deprecated_member_use
240 $pb.BuilderInfo get info_ => _i;
266 -
241 @$core.pragma('dart2js:noInline')
242 static Utxo create() => Utxo._();
243 Utxo createEmptyInstance() => create();
@@ -272,7 +246,6 @@ class Utxo extends $pb.GeneratedMessage {
246 static Utxo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Utxo>(create);
247 static Utxo? _defaultInstance;
248
275 - /// The block height of the utxo, or 0 for unconfirmed.
249 @$pb.TagNumber(1)
250 $core.int get height => $_getIZ(0);
251 @$pb.TagNumber(1)
@@ -282,7 +255,6 @@ class Utxo extends $pb.GeneratedMessage {
255 @$pb.TagNumber(1)
256 void clearHeight() => clearField(1);
257
285 - /// The value of the utxo in litoshis.
258 @$pb.TagNumber(2)
259 $fixnum.Int64 get value => $_getI64(1);
260 @$pb.TagNumber(2)
@@ -292,7 +264,6 @@ class Utxo extends $pb.GeneratedMessage {
264 @$pb.TagNumber(2)
265 void clearValue() => clearField(2);
266
295 - /// The MWEB address that the utxo was received on.
267 @$pb.TagNumber(3)
268 $core.String get address => $_getSZ(2);
269 @$pb.TagNumber(3)
@@ -302,8 +273,6 @@ class Utxo extends $pb.GeneratedMessage {
273 @$pb.TagNumber(3)
274 void clearAddress() => clearField(3);
275
305 - /// The output ID. This functions like a transaction hash,
306 - /// but is unique to every utxo.
276 @$pb.TagNumber(4)
277 $core.String get outputId => $_getSZ(3);
278 @$pb.TagNumber(4)
@@ -313,7 +282,6 @@ class Utxo extends $pb.GeneratedMessage {
282 @$pb.TagNumber(4)
283 void clearOutputId() => clearField(4);
284
316 - /// The timestamp of the block the utxo was mined in.
285 @$pb.TagNumber(5)
286 $core.int get blockTime => $_getIZ(4);
287 @$pb.TagNumber(5)
@@ -325,39 +293,38 @@ class Utxo extends $pb.GeneratedMessage {
293 }
294
295 class AddressRequest extends $pb.GeneratedMessage {
296 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AddressRequest', createEmptyInstance: create)
297 + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fromIndex', $pb.PbFieldType.OU3)
298 + ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'toIndex', $pb.PbFieldType.OU3)
299 + ..a<$core.List<$core.int>>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'scanSecret', $pb.PbFieldType.OY)
300 + ..a<$core.List<$core.int>>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'spendPubkey', $pb.PbFieldType.OY)
301 + ..hasRequiredFields = false
302 + ;
303 +
304 + AddressRequest._() : super();
305 factory AddressRequest({
306 $core.int? fromIndex,
307 $core.int? toIndex,
308 $core.List<$core.int>? scanSecret,
309 $core.List<$core.int>? spendPubkey,
310 }) {
334 - final $result = create();
311 + final _result = create();
312 if (fromIndex != null) {
336 - $result.fromIndex = fromIndex;
313 + _result.fromIndex = fromIndex;
314 }
315 if (toIndex != null) {
339 - $result.toIndex = toIndex;
316 + _result.toIndex = toIndex;
317 }
318 if (scanSecret != null) {
342 - $result.scanSecret = scanSecret;
319 + _result.scanSecret = scanSecret;
320 }
321 if (spendPubkey != null) {
345 - $result.spendPubkey = spendPubkey;
322 + _result.spendPubkey = spendPubkey;
323 }
347 - return $result;
324 + return _result;
325 }
349 - AddressRequest._() : super();
326 factory AddressRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
327 factory AddressRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
352 -
353 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AddressRequest', createEmptyInstance: create)
354 - ..a<$core.int>(1, _omitFieldNames ? '' : 'fromIndex', $pb.PbFieldType.OU3)
355 - ..a<$core.int>(2, _omitFieldNames ? '' : 'toIndex', $pb.PbFieldType.OU3)
356 - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'scanSecret', $pb.PbFieldType.OY)
357 - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'spendPubkey', $pb.PbFieldType.OY)
358 - ..hasRequiredFields = false
359 - ;
360 -
328 @$core.Deprecated(
329 'Using this can add significant overhead to your binary. '
330 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -367,10 +334,8 @@ class AddressRequest extends $pb.GeneratedMessage {
334 'Using this can add significant overhead to your binary. '
335 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
336 'Will be removed in next major version')
370 - AddressRequest copyWith(void Function(AddressRequest) updates) => super.copyWith((message) => updates(message as AddressRequest)) as AddressRequest;
371 -
337 + AddressRequest copyWith(void Function(AddressRequest) updates) => super.copyWith((message) => updates(message as AddressRequest)) as AddressRequest; // ignore: deprecated_member_use
338 $pb.BuilderInfo get info_ => _i;
373 -
339 @$core.pragma('dart2js:noInline')
340 static AddressRequest create() => AddressRequest._();
341 AddressRequest createEmptyInstance() => create();
@@ -379,7 +344,6 @@ class AddressRequest extends $pb.GeneratedMessage {
344 static AddressRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AddressRequest>(create);
345 static AddressRequest? _defaultInstance;
346
382 - /// The starting index of the range.
347 @$pb.TagNumber(1)
348 $core.int get fromIndex => $_getIZ(0);
349 @$pb.TagNumber(1)
@@ -389,8 +353,6 @@ class AddressRequest extends $pb.GeneratedMessage {
353 @$pb.TagNumber(1)
354 void clearFromIndex() => clearField(1);
355
392 - /// The ending index of the range. The result will contain all
393 - /// addresses up to but not including this index.
356 @$pb.TagNumber(2)
357 $core.int get toIndex => $_getIZ(1);
358 @$pb.TagNumber(2)
@@ -400,8 +362,6 @@ class AddressRequest extends $pb.GeneratedMessage {
362 @$pb.TagNumber(2)
363 void clearToIndex() => clearField(2);
364
403 - /// The scan secret or view key represents the account for
404 - /// which addresses should be returned.
365 @$pb.TagNumber(3)
366 $core.List<$core.int> get scanSecret => $_getN(2);
367 @$pb.TagNumber(3)
@@ -411,9 +371,6 @@ class AddressRequest extends $pb.GeneratedMessage {
371 @$pb.TagNumber(3)
372 void clearScanSecret() => clearField(3);
373
414 - /// The public key of the spend secret for the account. The spend
415 - /// key is required for spending utxos but is also required
416 - /// for generating addresses.
374 @$pb.TagNumber(4)
375 $core.List<$core.int> get spendPubkey => $_getN(3);
376 @$pb.TagNumber(4)
@@ -425,24 +382,23 @@ class AddressRequest extends $pb.GeneratedMessage {
382 }
383
384 class AddressResponse extends $pb.GeneratedMessage {
385 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AddressResponse', createEmptyInstance: create)
386 + ..pPS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'address')
387 + ..hasRequiredFields = false
388 + ;
389 +
390 + AddressResponse._() : super();
391 factory AddressResponse({
392 $core.Iterable<$core.String>? address,
393 }) {
431 - final $result = create();
394 + final _result = create();
395 if (address != null) {
433 - $result.address.addAll(address);
396 + _result.address.addAll(address);
397 }
435 - return $result;
398 + return _result;
399 }
437 - AddressResponse._() : super();
400 factory AddressResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
401 factory AddressResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
440 -
441 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AddressResponse', createEmptyInstance: create)
442 - ..pPS(1, _omitFieldNames ? '' : 'address')
443 - ..hasRequiredFields = false
444 - ;
445 -
402 @$core.Deprecated(
403 'Using this can add significant overhead to your binary. '
404 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -452,10 +408,8 @@ class AddressResponse extends $pb.GeneratedMessage {
408 'Using this can add significant overhead to your binary. '
409 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
410 'Will be removed in next major version')
455 - AddressResponse copyWith(void Function(AddressResponse) updates) => super.copyWith((message) => updates(message as AddressResponse)) as AddressResponse;
456 -
411 + AddressResponse copyWith(void Function(AddressResponse) updates) => super.copyWith((message) => updates(message as AddressResponse)) as AddressResponse; // ignore: deprecated_member_use
412 $pb.BuilderInfo get info_ => _i;
458 -
413 @$core.pragma('dart2js:noInline')
414 static AddressResponse create() => AddressResponse._();
415 AddressResponse createEmptyInstance() => create();
@@ -464,30 +418,28 @@ class AddressResponse extends $pb.GeneratedMessage {
418 static AddressResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AddressResponse>(create);
419 static AddressResponse? _defaultInstance;
420
467 - /// An array of MWEB addresses within the requested range.
421 @$pb.TagNumber(1)
422 $core.List<$core.String> get address => $_getList(0);
423 }
424
425 class LedgerApdu extends $pb.GeneratedMessage {
426 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'LedgerApdu', createEmptyInstance: create)
427 + ..a<$core.List<$core.int>>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY)
428 + ..hasRequiredFields = false
429 + ;
430 +
431 + LedgerApdu._() : super();
432 factory LedgerApdu({
433 $core.List<$core.int>? data,
434 }) {
476 - final $result = create();
435 + final _result = create();
436 if (data != null) {
478 - $result.data = data;
437 + _result.data = data;
438 }
480 - return $result;
439 + return _result;
440 }
482 - LedgerApdu._() : super();
441 factory LedgerApdu.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
442 factory LedgerApdu.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
485 -
486 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LedgerApdu', createEmptyInstance: create)
487 - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY)
488 - ..hasRequiredFields = false
489 - ;
490 -
443 @$core.Deprecated(
444 'Using this can add significant overhead to your binary. '
445 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -497,10 +449,8 @@ class LedgerApdu extends $pb.GeneratedMessage {
449 'Using this can add significant overhead to your binary. '
450 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
451 'Will be removed in next major version')
500 - LedgerApdu copyWith(void Function(LedgerApdu) updates) => super.copyWith((message) => updates(message as LedgerApdu)) as LedgerApdu;
501 -
452 + LedgerApdu copyWith(void Function(LedgerApdu) updates) => super.copyWith((message) => updates(message as LedgerApdu)) as LedgerApdu; // ignore: deprecated_member_use
453 $pb.BuilderInfo get info_ => _i;
503 -
454 @$core.pragma('dart2js:noInline')
455 static LedgerApdu create() => LedgerApdu._();
456 LedgerApdu createEmptyInstance() => create();
@@ -520,24 +470,23 @@ class LedgerApdu extends $pb.GeneratedMessage {
470 }
471
472 class SpentRequest extends $pb.GeneratedMessage {
473 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SpentRequest', createEmptyInstance: create)
474 + ..pPS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputId')
475 + ..hasRequiredFields = false
476 + ;
477 +
478 + SpentRequest._() : super();
479 factory SpentRequest({
480 $core.Iterable<$core.String>? outputId,
481 }) {
526 - final $result = create();
482 + final _result = create();
483 if (outputId != null) {
528 - $result.outputId.addAll(outputId);
484 + _result.outputId.addAll(outputId);
485 }
530 - return $result;
486 + return _result;
487 }
532 - SpentRequest._() : super();
488 factory SpentRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
489 factory SpentRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
535 -
536 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpentRequest', createEmptyInstance: create)
537 - ..pPS(1, _omitFieldNames ? '' : 'outputId')
538 - ..hasRequiredFields = false
539 - ;
540 -
490 @$core.Deprecated(
491 'Using this can add significant overhead to your binary. '
492 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -547,10 +496,8 @@ class SpentRequest extends $pb.GeneratedMessage {
496 'Using this can add significant overhead to your binary. '
497 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
498 'Will be removed in next major version')
550 - SpentRequest copyWith(void Function(SpentRequest) updates) => super.copyWith((message) => updates(message as SpentRequest)) as SpentRequest;
551 -
499 + SpentRequest copyWith(void Function(SpentRequest) updates) => super.copyWith((message) => updates(message as SpentRequest)) as SpentRequest; // ignore: deprecated_member_use
500 $pb.BuilderInfo get info_ => _i;
553 -
501 @$core.pragma('dart2js:noInline')
502 static SpentRequest create() => SpentRequest._();
503 SpentRequest createEmptyInstance() => create();
@@ -559,30 +506,28 @@ class SpentRequest extends $pb.GeneratedMessage {
506 static SpentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<SpentRequest>(create);
507 static SpentRequest? _defaultInstance;
508
562 - /// An array of output IDs to perform checks for.
509 @$pb.TagNumber(1)
510 $core.List<$core.String> get outputId => $_getList(0);
511 }
512
513 class SpentResponse extends $pb.GeneratedMessage {
514 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SpentResponse', createEmptyInstance: create)
515 + ..pPS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputId')
516 + ..hasRequiredFields = false
517 + ;
518 +
519 + SpentResponse._() : super();
520 factory SpentResponse({
521 $core.Iterable<$core.String>? outputId,
522 }) {
571 - final $result = create();
523 + final _result = create();
524 if (outputId != null) {
573 - $result.outputId.addAll(outputId);
525 + _result.outputId.addAll(outputId);
526 }
575 - return $result;
527 + return _result;
528 }
577 - SpentResponse._() : super();
529 factory SpentResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
530 factory SpentResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
580 -
581 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpentResponse', createEmptyInstance: create)
582 - ..pPS(1, _omitFieldNames ? '' : 'outputId')
583 - ..hasRequiredFields = false
584 - ;
585 -
531 @$core.Deprecated(
532 'Using this can add significant overhead to your binary. '
533 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -592,10 +537,8 @@ class SpentResponse extends $pb.GeneratedMessage {
537 'Using this can add significant overhead to your binary. '
538 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
539 'Will be removed in next major version')
595 - SpentResponse copyWith(void Function(SpentResponse) updates) => super.copyWith((message) => updates(message as SpentResponse)) as SpentResponse;
596 -
540 + SpentResponse copyWith(void Function(SpentResponse) updates) => super.copyWith((message) => updates(message as SpentResponse)) as SpentResponse; // ignore: deprecated_member_use
541 $pb.BuilderInfo get info_ => _i;
598 -
542 @$core.pragma('dart2js:noInline')
543 static SpentResponse create() => SpentResponse._();
544 SpentResponse createEmptyInstance() => create();
@@ -604,14 +547,21 @@ class SpentResponse extends $pb.GeneratedMessage {
547 static SpentResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<SpentResponse>(create);
548 static SpentResponse? _defaultInstance;
549
607 - /// An array of the output IDs that were not found in the
608 - /// unspent set. This means that the outputs are either
609 - /// unconfirmed or were spent.
550 @$pb.TagNumber(1)
551 $core.List<$core.String> get outputId => $_getList(0);
552 }
553
554 class CreateRequest extends $pb.GeneratedMessage {
555 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'CreateRequest', createEmptyInstance: create)
556 + ..a<$core.List<$core.int>>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rawTx', $pb.PbFieldType.OY)
557 + ..a<$core.List<$core.int>>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'scanSecret', $pb.PbFieldType.OY)
558 + ..a<$core.List<$core.int>>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'spendSecret', $pb.PbFieldType.OY)
559 + ..a<$fixnum.Int64>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'feeRatePerKb', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO)
560 + ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'dryRun')
561 + ..hasRequiredFields = false
562 + ;
563 +
564 + CreateRequest._() : super();
565 factory CreateRequest({
566 $core.List<$core.int>? rawTx,
567 $core.List<$core.int>? scanSecret,
@@ -619,37 +569,26 @@ class CreateRequest extends $pb.GeneratedMessage {
569 $fixnum.Int64? feeRatePerKb,
570 $core.bool? dryRun,
571 }) {
622 - final $result = create();
572 + final _result = create();
573 if (rawTx != null) {
624 - $result.rawTx = rawTx;
574 + _result.rawTx = rawTx;
575 }
576 if (scanSecret != null) {
627 - $result.scanSecret = scanSecret;
577 + _result.scanSecret = scanSecret;
578 }
579 if (spendSecret != null) {
630 - $result.spendSecret = spendSecret;
580 + _result.spendSecret = spendSecret;
581 }
582 if (feeRatePerKb != null) {
633 - $result.feeRatePerKb = feeRatePerKb;
583 + _result.feeRatePerKb = feeRatePerKb;
584 }
585 if (dryRun != null) {
636 - $result.dryRun = dryRun;
586 + _result.dryRun = dryRun;
587 }
638 - return $result;
588 + return _result;
589 }
640 - CreateRequest._() : super();
590 factory CreateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
591 factory CreateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
643 -
644 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreateRequest', createEmptyInstance: create)
645 - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'rawTx', $pb.PbFieldType.OY)
646 - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'scanSecret', $pb.PbFieldType.OY)
647 - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'spendSecret', $pb.PbFieldType.OY)
648 - ..a<$fixnum.Int64>(4, _omitFieldNames ? '' : 'feeRatePerKb', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO)
649 - ..aOB(5, _omitFieldNames ? '' : 'dryRun')
650 - ..hasRequiredFields = false
651 - ;
652 -
592 @$core.Deprecated(
593 'Using this can add significant overhead to your binary. '
594 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -659,10 +598,8 @@ class CreateRequest extends $pb.GeneratedMessage {
598 'Using this can add significant overhead to your binary. '
599 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
600 'Will be removed in next major version')
662 - CreateRequest copyWith(void Function(CreateRequest) updates) => super.copyWith((message) => updates(message as CreateRequest)) as CreateRequest;
663 -
601 + CreateRequest copyWith(void Function(CreateRequest) updates) => super.copyWith((message) => updates(message as CreateRequest)) as CreateRequest; // ignore: deprecated_member_use
602 $pb.BuilderInfo get info_ => _i;
665 -
603 @$core.pragma('dart2js:noInline')
604 static CreateRequest create() => CreateRequest._();
605 CreateRequest createEmptyInstance() => create();
@@ -671,16 +608,6 @@ class CreateRequest extends $pb.GeneratedMessage {
608 static CreateRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CreateRequest>(create);
609 static CreateRequest? _defaultInstance;
610
674 - /// The raw bytes of the serialized transaction. This will be
675 - /// a template where the non-MWEB inputs will remain unchanged,
676 - /// and the MWEB inputs are specified by TxIns with the outpoint
677 - /// hash set to the output ID of the utxo being spent, and the
678 - /// outpoint index set to the index of the address that the utxo
679 - /// was received on. MWEB outputs are specified by TxOuts with
680 - /// the script pubkey set to the serialized scan and spend pubkeys
681 - /// of the destination MWEB address. Any non-MWEB outputs will be
682 - /// transformed into MWEB peg-outs. If the transaction doesn't
683 - /// contain any MWEB i/o then the result will be unchanged.
611 @$pb.TagNumber(1)
612 $core.List<$core.int> get rawTx => $_getN(0);
613 @$pb.TagNumber(1)
@@ -690,8 +617,6 @@ class CreateRequest extends $pb.GeneratedMessage {
617 @$pb.TagNumber(1)
618 void clearRawTx() => clearField(1);
619
693 - /// The scan secret or view key represents the account that
694 - /// the utxos being spent belong to.
620 @$pb.TagNumber(2)
621 $core.List<$core.int> get scanSecret => $_getN(1);
622 @$pb.TagNumber(2)
@@ -701,8 +626,6 @@ class CreateRequest extends $pb.GeneratedMessage {
626 @$pb.TagNumber(2)
627 void clearScanSecret() => clearField(2);
628
704 - /// The spend secret is the private key necessary for spending
705 - /// the utxos belonging to the account.
629 @$pb.TagNumber(3)
630 $core.List<$core.int> get spendSecret => $_getN(2);
631 @$pb.TagNumber(3)
@@ -712,7 +635,6 @@ class CreateRequest extends $pb.GeneratedMessage {
635 @$pb.TagNumber(3)
636 void clearSpendSecret() => clearField(3);
637
715 - /// The fee rate per KB in litoshis.
638 @$pb.TagNumber(4)
639 $fixnum.Int64 get feeRatePerKb => $_getI64(3);
640 @$pb.TagNumber(4)
@@ -722,8 +644,6 @@ class CreateRequest extends $pb.GeneratedMessage {
644 @$pb.TagNumber(4)
645 void clearFeeRatePerKb() => clearField(4);
646
725 - /// Whether to skip MWEB transaction creation. This is useful
726 - /// for fee estimation.
647 @$pb.TagNumber(5)
648 $core.bool get dryRun => $_getBF(4);
649 @$pb.TagNumber(5)
@@ -735,29 +655,28 @@ class CreateRequest extends $pb.GeneratedMessage {
655 }
656
657 class CreateResponse extends $pb.GeneratedMessage {
658 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'CreateResponse', createEmptyInstance: create)
659 + ..a<$core.List<$core.int>>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rawTx', $pb.PbFieldType.OY)
660 + ..pPS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputId')
661 + ..hasRequiredFields = false
662 + ;
663 +
664 + CreateResponse._() : super();
665 factory CreateResponse({
666 $core.List<$core.int>? rawTx,
667 $core.Iterable<$core.String>? outputId,
668 }) {
742 - final $result = create();
669 + final _result = create();
670 if (rawTx != null) {
744 - $result.rawTx = rawTx;
671 + _result.rawTx = rawTx;
672 }
673 if (outputId != null) {
747 - $result.outputId.addAll(outputId);
674 + _result.outputId.addAll(outputId);
675 }
749 - return $result;
676 + return _result;
677 }
751 - CreateResponse._() : super();
678 factory CreateResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
679 factory CreateResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
754 -
755 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreateResponse', createEmptyInstance: create)
756 - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'rawTx', $pb.PbFieldType.OY)
757 - ..pPS(2, _omitFieldNames ? '' : 'outputId')
758 - ..hasRequiredFields = false
759 - ;
760 -
680 @$core.Deprecated(
681 'Using this can add significant overhead to your binary. '
682 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -767,10 +686,8 @@ class CreateResponse extends $pb.GeneratedMessage {
686 'Using this can add significant overhead to your binary. '
687 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
688 'Will be removed in next major version')
770 - CreateResponse copyWith(void Function(CreateResponse) updates) => super.copyWith((message) => updates(message as CreateResponse)) as CreateResponse;
771 -
689 + CreateResponse copyWith(void Function(CreateResponse) updates) => super.copyWith((message) => updates(message as CreateResponse)) as CreateResponse; // ignore: deprecated_member_use
690 $pb.BuilderInfo get info_ => _i;
773 -
691 @$core.pragma('dart2js:noInline')
692 static CreateResponse create() => CreateResponse._();
693 CreateResponse createEmptyInstance() => create();
@@ -779,10 +696,6 @@ class CreateResponse extends $pb.GeneratedMessage {
696 static CreateResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CreateResponse>(create);
697 static CreateResponse? _defaultInstance;
698
782 - /// The raw bytes of the serialized transaction. It will contain
783 - /// a single TxOut representing the peg-in required. From this
784 - /// it is possible to determine the addtional fee that was added
785 - /// by the MWEB transaction.
699 @$pb.TagNumber(1)
700 $core.List<$core.int> get rawTx => $_getN(0);
701 @$pb.TagNumber(1)
@@ -792,36 +705,33 @@ class CreateResponse extends $pb.GeneratedMessage {
705 @$pb.TagNumber(1)
706 void clearRawTx() => clearField(1);
707
795 - /// The output IDs of any utxos created by the transaction,
796 - /// in the same order as in the template.
708 @$pb.TagNumber(2)
709 $core.List<$core.String> get outputId => $_getList(1);
710 }
711
712 class PsbtCreateRequest extends $pb.GeneratedMessage {
713 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PsbtCreateRequest', createEmptyInstance: create)
714 + ..a<$core.List<$core.int>>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rawTx', $pb.PbFieldType.OY)
715 + ..pc<TxOut>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'witnessUtxo', $pb.PbFieldType.PM, subBuilder: TxOut.create)
716 + ..hasRequiredFields = false
717 + ;
718 +
719 + PsbtCreateRequest._() : super();
720 factory PsbtCreateRequest({
721 $core.List<$core.int>? rawTx,
722 $core.Iterable<TxOut>? witnessUtxo,
723 }) {
806 - final $result = create();
724 + final _result = create();
725 if (rawTx != null) {
808 - $result.rawTx = rawTx;
726 + _result.rawTx = rawTx;
727 }
728 if (witnessUtxo != null) {
811 - $result.witnessUtxo.addAll(witnessUtxo);
729 + _result.witnessUtxo.addAll(witnessUtxo);
730 }
813 - return $result;
731 + return _result;
732 }
815 - PsbtCreateRequest._() : super();
733 factory PsbtCreateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
734 factory PsbtCreateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
818 -
819 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PsbtCreateRequest', createEmptyInstance: create)
820 - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'rawTx', $pb.PbFieldType.OY)
821 - ..pc<TxOut>(2, _omitFieldNames ? '' : 'witnessUtxo', $pb.PbFieldType.PM, subBuilder: TxOut.create)
822 - ..hasRequiredFields = false
823 - ;
824 -
735 @$core.Deprecated(
736 'Using this can add significant overhead to your binary. '
737 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -831,10 +741,8 @@ class PsbtCreateRequest extends $pb.GeneratedMessage {
741 'Using this can add significant overhead to your binary. '
742 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
743 'Will be removed in next major version')
834 - PsbtCreateRequest copyWith(void Function(PsbtCreateRequest) updates) => super.copyWith((message) => updates(message as PsbtCreateRequest)) as PsbtCreateRequest;
835 -
744 + PsbtCreateRequest copyWith(void Function(PsbtCreateRequest) updates) => super.copyWith((message) => updates(message as PsbtCreateRequest)) as PsbtCreateRequest; // ignore: deprecated_member_use
745 $pb.BuilderInfo get info_ => _i;
837 -
746 @$core.pragma('dart2js:noInline')
747 static PsbtCreateRequest create() => PsbtCreateRequest._();
748 PsbtCreateRequest createEmptyInstance() => create();
@@ -843,7 +751,6 @@ class PsbtCreateRequest extends $pb.GeneratedMessage {
751 static PsbtCreateRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PsbtCreateRequest>(create);
752 static PsbtCreateRequest? _defaultInstance;
753
846 - /// The raw bytes of the serialized transaction.
754 @$pb.TagNumber(1)
755 $core.List<$core.int> get rawTx => $_getN(0);
756 @$pb.TagNumber(1)
@@ -853,35 +760,33 @@ class PsbtCreateRequest extends $pb.GeneratedMessage {
760 @$pb.TagNumber(1)
761 void clearRawTx() => clearField(1);
762
856 - /// Witness utxos for each input.
763 @$pb.TagNumber(2)
764 $core.List<TxOut> get witnessUtxo => $_getList(1);
765 }
766
767 class TxOut extends $pb.GeneratedMessage {
768 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'TxOut', createEmptyInstance: create)
769 + ..aInt64(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value')
770 + ..a<$core.List<$core.int>>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pkScript', $pb.PbFieldType.OY)
771 + ..hasRequiredFields = false
772 + ;
773 +
774 + TxOut._() : super();
775 factory TxOut({
776 $fixnum.Int64? value,
777 $core.List<$core.int>? pkScript,
778 }) {
866 - final $result = create();
779 + final _result = create();
780 if (value != null) {
868 - $result.value = value;
781 + _result.value = value;
782 }
783 if (pkScript != null) {
871 - $result.pkScript = pkScript;
784 + _result.pkScript = pkScript;
785 }
873 - return $result;
786 + return _result;
787 }
875 - TxOut._() : super();
788 factory TxOut.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
789 factory TxOut.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
878 -
879 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TxOut', createEmptyInstance: create)
880 - ..aInt64(1, _omitFieldNames ? '' : 'value')
881 - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'pkScript', $pb.PbFieldType.OY)
882 - ..hasRequiredFields = false
883 - ;
884 -
790 @$core.Deprecated(
791 'Using this can add significant overhead to your binary. '
792 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -891,10 +796,8 @@ class TxOut extends $pb.GeneratedMessage {
796 'Using this can add significant overhead to your binary. '
797 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
798 'Will be removed in next major version')
894 - TxOut copyWith(void Function(TxOut) updates) => super.copyWith((message) => updates(message as TxOut)) as TxOut;
895 -
799 + TxOut copyWith(void Function(TxOut) updates) => super.copyWith((message) => updates(message as TxOut)) as TxOut; // ignore: deprecated_member_use
800 $pb.BuilderInfo get info_ => _i;
897 -
801 @$core.pragma('dart2js:noInline')
802 static TxOut create() => TxOut._();
803 TxOut createEmptyInstance() => create();
@@ -923,24 +826,23 @@ class TxOut extends $pb.GeneratedMessage {
826 }
827
828 class PsbtResponse extends $pb.GeneratedMessage {
829 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PsbtResponse', createEmptyInstance: create)
830 + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'psbtB64')
831 + ..hasRequiredFields = false
832 + ;
833 +
834 + PsbtResponse._() : super();
835 factory PsbtResponse({
836 $core.String? psbtB64,
837 }) {
929 - final $result = create();
838 + final _result = create();
839 if (psbtB64 != null) {
931 - $result.psbtB64 = psbtB64;
840 + _result.psbtB64 = psbtB64;
841 }
933 - return $result;
842 + return _result;
843 }
935 - PsbtResponse._() : super();
844 factory PsbtResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
845 factory PsbtResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
938 -
939 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PsbtResponse', createEmptyInstance: create)
940 - ..aOS(1, _omitFieldNames ? '' : 'psbtB64')
941 - ..hasRequiredFields = false
942 - ;
943 -
846 @$core.Deprecated(
847 'Using this can add significant overhead to your binary. '
848 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -950,10 +852,8 @@ class PsbtResponse extends $pb.GeneratedMessage {
852 'Using this can add significant overhead to your binary. '
853 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
854 'Will be removed in next major version')
953 - PsbtResponse copyWith(void Function(PsbtResponse) updates) => super.copyWith((message) => updates(message as PsbtResponse)) as PsbtResponse;
954 -
855 + PsbtResponse copyWith(void Function(PsbtResponse) updates) => super.copyWith((message) => updates(message as PsbtResponse)) as PsbtResponse; // ignore: deprecated_member_use
856 $pb.BuilderInfo get info_ => _i;
956 -
857 @$core.pragma('dart2js:noInline')
858 static PsbtResponse create() => PsbtResponse._();
859 PsbtResponse createEmptyInstance() => create();
@@ -962,7 +862,6 @@ class PsbtResponse extends $pb.GeneratedMessage {
862 static PsbtResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PsbtResponse>(create);
863 static PsbtResponse? _defaultInstance;
864
965 - /// The PSBT in base64 encoding.
865 @$pb.TagNumber(1)
866 $core.String get psbtB64 => $_getSZ(0);
867 @$pb.TagNumber(1)
@@ -974,39 +873,43 @@ class PsbtResponse extends $pb.GeneratedMessage {
873 }
874
875 class PsbtAddInputRequest extends $pb.GeneratedMessage {
876 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PsbtAddInputRequest', createEmptyInstance: create)
877 + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'psbtB64')
878 + ..a<$core.List<$core.int>>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'scanSecret', $pb.PbFieldType.OY)
879 + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputId')
880 + ..a<$core.int>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'addressIndex', $pb.PbFieldType.OU3)
881 + ..a<$fixnum.Int64>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'feeRatePerKb', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO)
882 + ..hasRequiredFields = false
883 + ;
884 +
885 + PsbtAddInputRequest._() : super();
886 factory PsbtAddInputRequest({
887 $core.String? psbtB64,
888 $core.List<$core.int>? scanSecret,
889 $core.String? outputId,
890 $core.int? addressIndex,
891 + $fixnum.Int64? feeRatePerKb,
892 }) {
983 - final $result = create();
893 + final _result = create();
894 if (psbtB64 != null) {
985 - $result.psbtB64 = psbtB64;
895 + _result.psbtB64 = psbtB64;
896 }
897 if (scanSecret != null) {
988 - $result.scanSecret = scanSecret;
898 + _result.scanSecret = scanSecret;
899 }
900 if (outputId != null) {
991 - $result.outputId = outputId;
901 + _result.outputId = outputId;
902 }
903 if (addressIndex != null) {
994 - $result.addressIndex = addressIndex;
904 + _result.addressIndex = addressIndex;
905 }
996 - return $result;
906 + if (feeRatePerKb != null) {
907 + _result.feeRatePerKb = feeRatePerKb;
908 + }
909 + return _result;
910 }
998 - PsbtAddInputRequest._() : super();
911 factory PsbtAddInputRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
912 factory PsbtAddInputRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1001 -
1002 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PsbtAddInputRequest', createEmptyInstance: create)
1003 - ..aOS(1, _omitFieldNames ? '' : 'psbtB64')
1004 - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'scanSecret', $pb.PbFieldType.OY)
1005 - ..aOS(3, _omitFieldNames ? '' : 'outputId')
1006 - ..a<$core.int>(4, _omitFieldNames ? '' : 'addressIndex', $pb.PbFieldType.OU3)
1007 - ..hasRequiredFields = false
1008 - ;
1009 -
913 @$core.Deprecated(
914 'Using this can add significant overhead to your binary. '
915 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -1016,10 +919,8 @@ class PsbtAddInputRequest extends $pb.GeneratedMessage {
919 'Using this can add significant overhead to your binary. '
920 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
921 'Will be removed in next major version')
1019 - PsbtAddInputRequest copyWith(void Function(PsbtAddInputRequest) updates) => super.copyWith((message) => updates(message as PsbtAddInputRequest)) as PsbtAddInputRequest;
1020 -
922 + PsbtAddInputRequest copyWith(void Function(PsbtAddInputRequest) updates) => super.copyWith((message) => updates(message as PsbtAddInputRequest)) as PsbtAddInputRequest; // ignore: deprecated_member_use
923 $pb.BuilderInfo get info_ => _i;
1022 -
924 @$core.pragma('dart2js:noInline')
925 static PsbtAddInputRequest create() => PsbtAddInputRequest._();
926 PsbtAddInputRequest createEmptyInstance() => create();
@@ -1028,7 +929,6 @@ class PsbtAddInputRequest extends $pb.GeneratedMessage {
929 static PsbtAddInputRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PsbtAddInputRequest>(create);
930 static PsbtAddInputRequest? _defaultInstance;
931
1031 - /// The PSBT in base64 encoding.
932 @$pb.TagNumber(1)
933 $core.String get psbtB64 => $_getSZ(0);
934 @$pb.TagNumber(1)
@@ -1038,8 +938,6 @@ class PsbtAddInputRequest extends $pb.GeneratedMessage {
938 @$pb.TagNumber(1)
939 void clearPsbtB64() => clearField(1);
940
1041 - /// The scan secret or view key represents the account that
1042 - /// the utxos being spent belong to.
941 @$pb.TagNumber(2)
942 $core.List<$core.int> get scanSecret => $_getN(1);
943 @$pb.TagNumber(2)
@@ -1049,7 +947,6 @@ class PsbtAddInputRequest extends $pb.GeneratedMessage {
947 @$pb.TagNumber(2)
948 void clearScanSecret() => clearField(2);
949
1052 - /// The output ID of the utxo.
950 @$pb.TagNumber(3)
951 $core.String get outputId => $_getSZ(2);
952 @$pb.TagNumber(3)
@@ -1059,7 +956,6 @@ class PsbtAddInputRequest extends $pb.GeneratedMessage {
956 @$pb.TagNumber(3)
957 void clearOutputId() => clearField(3);
958
1062 - /// The address index of the utxo.
959 @$pb.TagNumber(4)
960 $core.int get addressIndex => $_getIZ(3);
961 @$pb.TagNumber(4)
@@ -1068,37 +964,45 @@ class PsbtAddInputRequest extends $pb.GeneratedMessage {
964 $core.bool hasAddressIndex() => $_has(3);
965 @$pb.TagNumber(4)
966 void clearAddressIndex() => clearField(4);
967 +
968 + @$pb.TagNumber(5)
969 + $fixnum.Int64 get feeRatePerKb => $_getI64(4);
970 + @$pb.TagNumber(5)
971 + set feeRatePerKb($fixnum.Int64 v) { $_setInt64(4, v); }
972 + @$pb.TagNumber(5)
973 + $core.bool hasFeeRatePerKb() => $_has(4);
974 + @$pb.TagNumber(5)
975 + void clearFeeRatePerKb() => clearField(5);
976 }
977
978 class PsbtAddRecipientRequest extends $pb.GeneratedMessage {
979 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PsbtAddRecipientRequest', createEmptyInstance: create)
980 + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'psbtB64')
981 + ..aOM<PsbtRecipient>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'recipient', subBuilder: PsbtRecipient.create)
982 + ..a<$fixnum.Int64>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'feeRatePerKb', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO)
983 + ..hasRequiredFields = false
984 + ;
985 +
986 + PsbtAddRecipientRequest._() : super();
987 factory PsbtAddRecipientRequest({
988 $core.String? psbtB64,
989 PsbtRecipient? recipient,
990 $fixnum.Int64? feeRatePerKb,
991 }) {
1079 - final $result = create();
992 + final _result = create();
993 if (psbtB64 != null) {
1081 - $result.psbtB64 = psbtB64;
994 + _result.psbtB64 = psbtB64;
995 }
996 if (recipient != null) {
1084 - $result.recipient = recipient;
997 + _result.recipient = recipient;
998 }
999 if (feeRatePerKb != null) {
1087 - $result.feeRatePerKb = feeRatePerKb;
1000 + _result.feeRatePerKb = feeRatePerKb;
1001 }
1089 - return $result;
1002 + return _result;
1003 }
1091 - PsbtAddRecipientRequest._() : super();
1004 factory PsbtAddRecipientRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
1005 factory PsbtAddRecipientRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1094 -
1095 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PsbtAddRecipientRequest', createEmptyInstance: create)
1096 - ..aOS(1, _omitFieldNames ? '' : 'psbtB64')
1097 - ..aOM<PsbtRecipient>(2, _omitFieldNames ? '' : 'recipient', subBuilder: PsbtRecipient.create)
1098 - ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'feeRatePerKb', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO)
1099 - ..hasRequiredFields = false
1100 - ;
1101 -
1006 @$core.Deprecated(
1007 'Using this can add significant overhead to your binary. '
1008 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -1108,10 +1012,8 @@ class PsbtAddRecipientRequest extends $pb.GeneratedMessage {
1012 'Using this can add significant overhead to your binary. '
1013 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
1014 'Will be removed in next major version')
1111 - PsbtAddRecipientRequest copyWith(void Function(PsbtAddRecipientRequest) updates) => super.copyWith((message) => updates(message as PsbtAddRecipientRequest)) as PsbtAddRecipientRequest;
1112 -
1015 + PsbtAddRecipientRequest copyWith(void Function(PsbtAddRecipientRequest) updates) => super.copyWith((message) => updates(message as PsbtAddRecipientRequest)) as PsbtAddRecipientRequest; // ignore: deprecated_member_use
1016 $pb.BuilderInfo get info_ => _i;
1114 -
1017 @$core.pragma('dart2js:noInline')
1018 static PsbtAddRecipientRequest create() => PsbtAddRecipientRequest._();
1019 PsbtAddRecipientRequest createEmptyInstance() => create();
@@ -1120,7 +1022,6 @@ class PsbtAddRecipientRequest extends $pb.GeneratedMessage {
1022 static PsbtAddRecipientRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PsbtAddRecipientRequest>(create);
1023 static PsbtAddRecipientRequest? _defaultInstance;
1024
1123 - /// The PSBT in base64 encoding.
1025 @$pb.TagNumber(1)
1026 $core.String get psbtB64 => $_getSZ(0);
1027 @$pb.TagNumber(1)
@@ -1141,7 +1042,6 @@ class PsbtAddRecipientRequest extends $pb.GeneratedMessage {
1042 @$pb.TagNumber(2)
1043 PsbtRecipient ensureRecipient() => $_ensure(1);
1044
1144 - /// The fee rate per KB in litoshis.
1045 @$pb.TagNumber(3)
1046 $fixnum.Int64 get feeRatePerKb => $_getI64(2);
1047 @$pb.TagNumber(3)
@@ -1153,24 +1053,23 @@ class PsbtAddRecipientRequest extends $pb.GeneratedMessage {
1053 }
1054
1055 class PsbtGetRecipientsRequest extends $pb.GeneratedMessage {
1056 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PsbtGetRecipientsRequest', createEmptyInstance: create)
1057 + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'psbtB64')
1058 + ..hasRequiredFields = false
1059 + ;
1060 +
1061 + PsbtGetRecipientsRequest._() : super();
1062 factory PsbtGetRecipientsRequest({
1063 $core.String? psbtB64,
1064 }) {
1159 - final $result = create();
1065 + final _result = create();
1066 if (psbtB64 != null) {
1161 - $result.psbtB64 = psbtB64;
1067 + _result.psbtB64 = psbtB64;
1068 }
1163 - return $result;
1069 + return _result;
1070 }
1165 - PsbtGetRecipientsRequest._() : super();
1071 factory PsbtGetRecipientsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
1072 factory PsbtGetRecipientsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1168 -
1169 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PsbtGetRecipientsRequest', createEmptyInstance: create)
1170 - ..aOS(1, _omitFieldNames ? '' : 'psbtB64')
1171 - ..hasRequiredFields = false
1172 - ;
1173 -
1073 @$core.Deprecated(
1074 'Using this can add significant overhead to your binary. '
1075 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -1180,10 +1079,8 @@ class PsbtGetRecipientsRequest extends $pb.GeneratedMessage {
1079 'Using this can add significant overhead to your binary. '
1080 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
1081 'Will be removed in next major version')
1183 - PsbtGetRecipientsRequest copyWith(void Function(PsbtGetRecipientsRequest) updates) => super.copyWith((message) => updates(message as PsbtGetRecipientsRequest)) as PsbtGetRecipientsRequest;
1184 -
1082 + PsbtGetRecipientsRequest copyWith(void Function(PsbtGetRecipientsRequest) updates) => super.copyWith((message) => updates(message as PsbtGetRecipientsRequest)) as PsbtGetRecipientsRequest; // ignore: deprecated_member_use
1083 $pb.BuilderInfo get info_ => _i;
1186 -
1084 @$core.pragma('dart2js:noInline')
1085 static PsbtGetRecipientsRequest create() => PsbtGetRecipientsRequest._();
1086 PsbtGetRecipientsRequest createEmptyInstance() => create();
@@ -1192,7 +1089,6 @@ class PsbtGetRecipientsRequest extends $pb.GeneratedMessage {
1089 static PsbtGetRecipientsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PsbtGetRecipientsRequest>(create);
1090 static PsbtGetRecipientsRequest? _defaultInstance;
1091
1195 - /// The PSBT in base64 encoding.
1092 @$pb.TagNumber(1)
1093 $core.String get psbtB64 => $_getSZ(0);
1094 @$pb.TagNumber(1)
@@ -1204,34 +1100,33 @@ class PsbtGetRecipientsRequest extends $pb.GeneratedMessage {
1100 }
1101
1102 class PsbtGetRecipientsResponse extends $pb.GeneratedMessage {
1103 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PsbtGetRecipientsResponse', createEmptyInstance: create)
1104 + ..pc<PsbtRecipient>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'recipient', $pb.PbFieldType.PM, subBuilder: PsbtRecipient.create)
1105 + ..pPS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'inputAddress')
1106 + ..aInt64(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fee')
1107 + ..hasRequiredFields = false
1108 + ;
1109 +
1110 + PsbtGetRecipientsResponse._() : super();
1111 factory PsbtGetRecipientsResponse({
1112 $core.Iterable<PsbtRecipient>? recipient,
1113 $core.Iterable<$core.String>? inputAddress,
1114 $fixnum.Int64? fee,
1115 }) {
1212 - final $result = create();
1116 + final _result = create();
1117 if (recipient != null) {
1214 - $result.recipient.addAll(recipient);
1118 + _result.recipient.addAll(recipient);
1119 }
1120 if (inputAddress != null) {
1217 - $result.inputAddress.addAll(inputAddress);
1121 + _result.inputAddress.addAll(inputAddress);
1122 }
1123 if (fee != null) {
1220 - $result.fee = fee;
1124 + _result.fee = fee;
1125 }
1222 - return $result;
1126 + return _result;
1127 }
1224 - PsbtGetRecipientsResponse._() : super();
1128 factory PsbtGetRecipientsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
1129 factory PsbtGetRecipientsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1227 -
1228 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PsbtGetRecipientsResponse', createEmptyInstance: create)
1229 - ..pc<PsbtRecipient>(1, _omitFieldNames ? '' : 'recipient', $pb.PbFieldType.PM, subBuilder: PsbtRecipient.create)
1230 - ..pPS(2, _omitFieldNames ? '' : 'inputAddress')
1231 - ..aInt64(3, _omitFieldNames ? '' : 'fee')
1232 - ..hasRequiredFields = false
1233 - ;
1234 -
1130 @$core.Deprecated(
1131 'Using this can add significant overhead to your binary. '
1132 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -1241,10 +1136,8 @@ class PsbtGetRecipientsResponse extends $pb.GeneratedMessage {
1136 'Using this can add significant overhead to your binary. '
1137 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
1138 'Will be removed in next major version')
1244 - PsbtGetRecipientsResponse copyWith(void Function(PsbtGetRecipientsResponse) updates) => super.copyWith((message) => updates(message as PsbtGetRecipientsResponse)) as PsbtGetRecipientsResponse;
1245 -
1139 + PsbtGetRecipientsResponse copyWith(void Function(PsbtGetRecipientsResponse) updates) => super.copyWith((message) => updates(message as PsbtGetRecipientsResponse)) as PsbtGetRecipientsResponse; // ignore: deprecated_member_use
1140 $pb.BuilderInfo get info_ => _i;
1247 -
1141 @$core.pragma('dart2js:noInline')
1142 static PsbtGetRecipientsResponse create() => PsbtGetRecipientsResponse._();
1143 PsbtGetRecipientsResponse createEmptyInstance() => create();
@@ -1270,29 +1163,28 @@ class PsbtGetRecipientsResponse extends $pb.GeneratedMessage {
1163 }
1164
1165 class PsbtRecipient extends $pb.GeneratedMessage {
1166 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PsbtRecipient', createEmptyInstance: create)
1167 + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'address')
1168 + ..aInt64(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value')
1169 + ..hasRequiredFields = false
1170 + ;
1171 +
1172 + PsbtRecipient._() : super();
1173 factory PsbtRecipient({
1174 $core.String? address,
1175 $fixnum.Int64? value,
1176 }) {
1277 - final $result = create();
1177 + final _result = create();
1178 if (address != null) {
1279 - $result.address = address;
1179 + _result.address = address;
1180 }
1181 if (value != null) {
1282 - $result.value = value;
1182 + _result.value = value;
1183 }
1284 - return $result;
1184 + return _result;
1185 }
1286 - PsbtRecipient._() : super();
1186 factory PsbtRecipient.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
1187 factory PsbtRecipient.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1289 -
1290 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PsbtRecipient', createEmptyInstance: create)
1291 - ..aOS(1, _omitFieldNames ? '' : 'address')
1292 - ..aInt64(2, _omitFieldNames ? '' : 'value')
1293 - ..hasRequiredFields = false
1294 - ;
1295 -
1188 @$core.Deprecated(
1189 'Using this can add significant overhead to your binary. '
1190 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -1302,10 +1194,8 @@ class PsbtRecipient extends $pb.GeneratedMessage {
1194 'Using this can add significant overhead to your binary. '
1195 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
1196 'Will be removed in next major version')
1305 - PsbtRecipient copyWith(void Function(PsbtRecipient) updates) => super.copyWith((message) => updates(message as PsbtRecipient)) as PsbtRecipient;
1306 -
1197 + PsbtRecipient copyWith(void Function(PsbtRecipient) updates) => super.copyWith((message) => updates(message as PsbtRecipient)) as PsbtRecipient; // ignore: deprecated_member_use
1198 $pb.BuilderInfo get info_ => _i;
1308 -
1199 @$core.pragma('dart2js:noInline')
1200 static PsbtRecipient create() => PsbtRecipient._();
1201 PsbtRecipient createEmptyInstance() => create();
@@ -1334,34 +1224,33 @@ class PsbtRecipient extends $pb.GeneratedMessage {
1224 }
1225
1226 class PsbtSignRequest extends $pb.GeneratedMessage {
1227 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PsbtSignRequest', createEmptyInstance: create)
1228 + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'psbtB64')
1229 + ..a<$core.List<$core.int>>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'scanSecret', $pb.PbFieldType.OY)
1230 + ..a<$core.List<$core.int>>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'spendSecret', $pb.PbFieldType.OY)
1231 + ..hasRequiredFields = false
1232 + ;
1233 +
1234 + PsbtSignRequest._() : super();
1235 factory PsbtSignRequest({
1236 $core.String? psbtB64,
1237 $core.List<$core.int>? scanSecret,
1238 $core.List<$core.int>? spendSecret,
1239 }) {
1342 - final $result = create();
1240 + final _result = create();
1241 if (psbtB64 != null) {
1344 - $result.psbtB64 = psbtB64;
1242 + _result.psbtB64 = psbtB64;
1243 }
1244 if (scanSecret != null) {
1347 - $result.scanSecret = scanSecret;
1245 + _result.scanSecret = scanSecret;
1246 }
1247 if (spendSecret != null) {
1350 - $result.spendSecret = spendSecret;
1248 + _result.spendSecret = spendSecret;
1249 }
1352 - return $result;
1250 + return _result;
1251 }
1354 - PsbtSignRequest._() : super();
1252 factory PsbtSignRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
1253 factory PsbtSignRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1357 -
1358 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PsbtSignRequest', createEmptyInstance: create)
1359 - ..aOS(1, _omitFieldNames ? '' : 'psbtB64')
1360 - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'scanSecret', $pb.PbFieldType.OY)
1361 - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'spendSecret', $pb.PbFieldType.OY)
1362 - ..hasRequiredFields = false
1363 - ;
1364 -
1254 @$core.Deprecated(
1255 'Using this can add significant overhead to your binary. '
1256 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -1371,10 +1260,8 @@ class PsbtSignRequest extends $pb.GeneratedMessage {
1260 'Using this can add significant overhead to your binary. '
1261 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
1262 'Will be removed in next major version')
1374 - PsbtSignRequest copyWith(void Function(PsbtSignRequest) updates) => super.copyWith((message) => updates(message as PsbtSignRequest)) as PsbtSignRequest;
1375 -
1263 + PsbtSignRequest copyWith(void Function(PsbtSignRequest) updates) => super.copyWith((message) => updates(message as PsbtSignRequest)) as PsbtSignRequest; // ignore: deprecated_member_use
1264 $pb.BuilderInfo get info_ => _i;
1377 -
1265 @$core.pragma('dart2js:noInline')
1266 static PsbtSignRequest create() => PsbtSignRequest._();
1267 PsbtSignRequest createEmptyInstance() => create();
@@ -1383,7 +1270,6 @@ class PsbtSignRequest extends $pb.GeneratedMessage {
1270 static PsbtSignRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PsbtSignRequest>(create);
1271 static PsbtSignRequest? _defaultInstance;
1272
1386 - /// The PSBT in base64 encoding.
1273 @$pb.TagNumber(1)
1274 $core.String get psbtB64 => $_getSZ(0);
1275 @$pb.TagNumber(1)
@@ -1393,8 +1279,6 @@ class PsbtSignRequest extends $pb.GeneratedMessage {
1279 @$pb.TagNumber(1)
1280 void clearPsbtB64() => clearField(1);
1281
1396 - /// The scan secret or view key represents the account that
1397 - /// the utxos being spent belong to.
1282 @$pb.TagNumber(2)
1283 $core.List<$core.int> get scanSecret => $_getN(1);
1284 @$pb.TagNumber(2)
@@ -1404,8 +1288,6 @@ class PsbtSignRequest extends $pb.GeneratedMessage {
1288 @$pb.TagNumber(2)
1289 void clearScanSecret() => clearField(2);
1290
1407 - /// The spend secret is the private key necessary for spending
1408 - /// the utxos belonging to the account.
1291 @$pb.TagNumber(3)
1292 $core.List<$core.int> get spendSecret => $_getN(2);
1293 @$pb.TagNumber(3)
@@ -1417,34 +1299,33 @@ class PsbtSignRequest extends $pb.GeneratedMessage {
1299 }
1300
1301 class PsbtSignNonMwebRequest extends $pb.GeneratedMessage {
1302 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PsbtSignNonMwebRequest', createEmptyInstance: create)
1303 + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'psbtB64')
1304 + ..a<$core.List<$core.int>>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'privKey', $pb.PbFieldType.OY)
1305 + ..a<$core.int>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'index', $pb.PbFieldType.OU3)
1306 + ..hasRequiredFields = false
1307 + ;
1308 +
1309 + PsbtSignNonMwebRequest._() : super();
1310 factory PsbtSignNonMwebRequest({
1311 $core.String? psbtB64,
1312 $core.List<$core.int>? privKey,
1313 $core.int? index,
1314 }) {
1425 - final $result = create();
1315 + final _result = create();
1316 if (psbtB64 != null) {
1427 - $result.psbtB64 = psbtB64;
1317 + _result.psbtB64 = psbtB64;
1318 }
1319 if (privKey != null) {
1430 - $result.privKey = privKey;
1320 + _result.privKey = privKey;
1321 }
1322 if (index != null) {
1433 - $result.index = index;
1323 + _result.index = index;
1324 }
1435 - return $result;
1325 + return _result;
1326 }
1437 - PsbtSignNonMwebRequest._() : super();
1327 factory PsbtSignNonMwebRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
1328 factory PsbtSignNonMwebRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1440 -
1441 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PsbtSignNonMwebRequest', createEmptyInstance: create)
1442 - ..aOS(1, _omitFieldNames ? '' : 'psbtB64')
1443 - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'privKey', $pb.PbFieldType.OY)
1444 - ..a<$core.int>(3, _omitFieldNames ? '' : 'index', $pb.PbFieldType.OU3)
1445 - ..hasRequiredFields = false
1446 - ;
1447 -
1329 @$core.Deprecated(
1330 'Using this can add significant overhead to your binary. '
1331 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -1454,10 +1335,8 @@ class PsbtSignNonMwebRequest extends $pb.GeneratedMessage {
1335 'Using this can add significant overhead to your binary. '
1336 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
1337 'Will be removed in next major version')
1457 - PsbtSignNonMwebRequest copyWith(void Function(PsbtSignNonMwebRequest) updates) => super.copyWith((message) => updates(message as PsbtSignNonMwebRequest)) as PsbtSignNonMwebRequest;
1458 -
1338 + PsbtSignNonMwebRequest copyWith(void Function(PsbtSignNonMwebRequest) updates) => super.copyWith((message) => updates(message as PsbtSignNonMwebRequest)) as PsbtSignNonMwebRequest; // ignore: deprecated_member_use
1339 $pb.BuilderInfo get info_ => _i;
1460 -
1340 @$core.pragma('dart2js:noInline')
1341 static PsbtSignNonMwebRequest create() => PsbtSignNonMwebRequest._();
1342 PsbtSignNonMwebRequest createEmptyInstance() => create();
@@ -1466,7 +1345,6 @@ class PsbtSignNonMwebRequest extends $pb.GeneratedMessage {
1345 static PsbtSignNonMwebRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PsbtSignNonMwebRequest>(create);
1346 static PsbtSignNonMwebRequest? _defaultInstance;
1347
1469 - /// The PSBT in base64 encoding.
1348 @$pb.TagNumber(1)
1349 $core.String get psbtB64 => $_getSZ(0);
1350 @$pb.TagNumber(1)
@@ -1476,7 +1354,6 @@ class PsbtSignNonMwebRequest extends $pb.GeneratedMessage {
1354 @$pb.TagNumber(1)
1355 void clearPsbtB64() => clearField(1);
1356
1479 - /// The private key necessary for spending the input.
1357 @$pb.TagNumber(2)
1358 $core.List<$core.int> get privKey => $_getN(1);
1359 @$pb.TagNumber(2)
@@ -1486,7 +1363,6 @@ class PsbtSignNonMwebRequest extends $pb.GeneratedMessage {
1363 @$pb.TagNumber(2)
1364 void clearPrivKey() => clearField(2);
1365
1489 - /// The index of the input to sign.
1366 @$pb.TagNumber(3)
1367 $core.int get index => $_getIZ(2);
1368 @$pb.TagNumber(3)
@@ -1498,29 +1374,28 @@ class PsbtSignNonMwebRequest extends $pb.GeneratedMessage {
1374 }
1375
1376 class PsbtExtractRequest extends $pb.GeneratedMessage {
1377 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PsbtExtractRequest', createEmptyInstance: create)
1378 + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'psbtB64')
1379 + ..aOB(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unsigned')
1380 + ..hasRequiredFields = false
1381 + ;
1382 +
1383 + PsbtExtractRequest._() : super();
1384 factory PsbtExtractRequest({
1385 $core.String? psbtB64,
1386 $core.bool? unsigned,
1387 }) {
1505 - final $result = create();
1388 + final _result = create();
1389 if (psbtB64 != null) {
1507 - $result.psbtB64 = psbtB64;
1390 + _result.psbtB64 = psbtB64;
1391 }
1392 if (unsigned != null) {
1510 - $result.unsigned = unsigned;
1393 + _result.unsigned = unsigned;
1394 }
1512 - return $result;
1395 + return _result;
1396 }
1514 - PsbtExtractRequest._() : super();
1397 factory PsbtExtractRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
1398 factory PsbtExtractRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1517 -
1518 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PsbtExtractRequest', createEmptyInstance: create)
1519 - ..aOS(1, _omitFieldNames ? '' : 'psbtB64')
1520 - ..aOB(2, _omitFieldNames ? '' : 'unsigned')
1521 - ..hasRequiredFields = false
1522 - ;
1523 -
1399 @$core.Deprecated(
1400 'Using this can add significant overhead to your binary. '
1401 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -1530,10 +1405,8 @@ class PsbtExtractRequest extends $pb.GeneratedMessage {
1405 'Using this can add significant overhead to your binary. '
1406 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
1407 'Will be removed in next major version')
1533 - PsbtExtractRequest copyWith(void Function(PsbtExtractRequest) updates) => super.copyWith((message) => updates(message as PsbtExtractRequest)) as PsbtExtractRequest;
1534 -
1408 + PsbtExtractRequest copyWith(void Function(PsbtExtractRequest) updates) => super.copyWith((message) => updates(message as PsbtExtractRequest)) as PsbtExtractRequest; // ignore: deprecated_member_use
1409 $pb.BuilderInfo get info_ => _i;
1536 -
1410 @$core.pragma('dart2js:noInline')
1411 static PsbtExtractRequest create() => PsbtExtractRequest._();
1412 PsbtExtractRequest createEmptyInstance() => create();
@@ -1542,7 +1415,6 @@ class PsbtExtractRequest extends $pb.GeneratedMessage {
1415 static PsbtExtractRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PsbtExtractRequest>(create);
1416 static PsbtExtractRequest? _defaultInstance;
1417
1545 - /// The PSBT in base64 encoding.
1418 @$pb.TagNumber(1)
1419 $core.String get psbtB64 => $_getSZ(0);
1420 @$pb.TagNumber(1)
@@ -1552,7 +1424,6 @@ class PsbtExtractRequest extends $pb.GeneratedMessage {
1424 @$pb.TagNumber(1)
1425 void clearPsbtB64() => clearField(1);
1426
1555 - /// Extract the unsigned transaction.
1427 @$pb.TagNumber(2)
1428 $core.bool get unsigned => $_getBF(1);
1429 @$pb.TagNumber(2)
@@ -1564,24 +1435,23 @@ class PsbtExtractRequest extends $pb.GeneratedMessage {
1435 }
1436
1437 class BroadcastRequest extends $pb.GeneratedMessage {
1438 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BroadcastRequest', createEmptyInstance: create)
1439 + ..a<$core.List<$core.int>>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rawTx', $pb.PbFieldType.OY)
1440 + ..hasRequiredFields = false
1441 + ;
1442 +
1443 + BroadcastRequest._() : super();
1444 factory BroadcastRequest({
1445 $core.List<$core.int>? rawTx,
1446 }) {
1570 - final $result = create();
1447 + final _result = create();
1448 if (rawTx != null) {
1572 - $result.rawTx = rawTx;
1449 + _result.rawTx = rawTx;
1450 }
1574 - return $result;
1451 + return _result;
1452 }
1576 - BroadcastRequest._() : super();
1453 factory BroadcastRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
1454 factory BroadcastRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1579 -
1580 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BroadcastRequest', createEmptyInstance: create)
1581 - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'rawTx', $pb.PbFieldType.OY)
1582 - ..hasRequiredFields = false
1583 - ;
1584 -
1455 @$core.Deprecated(
1456 'Using this can add significant overhead to your binary. '
1457 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -1591,10 +1461,8 @@ class BroadcastRequest extends $pb.GeneratedMessage {
1461 'Using this can add significant overhead to your binary. '
1462 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
1463 'Will be removed in next major version')
1594 - BroadcastRequest copyWith(void Function(BroadcastRequest) updates) => super.copyWith((message) => updates(message as BroadcastRequest)) as BroadcastRequest;
1595 -
1464 + BroadcastRequest copyWith(void Function(BroadcastRequest) updates) => super.copyWith((message) => updates(message as BroadcastRequest)) as BroadcastRequest; // ignore: deprecated_member_use
1465 $pb.BuilderInfo get info_ => _i;
1597 -
1466 @$core.pragma('dart2js:noInline')
1467 static BroadcastRequest create() => BroadcastRequest._();
1468 BroadcastRequest createEmptyInstance() => create();
@@ -1603,7 +1471,6 @@ class BroadcastRequest extends $pb.GeneratedMessage {
1471 static BroadcastRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BroadcastRequest>(create);
1472 static BroadcastRequest? _defaultInstance;
1473
1606 - /// The raw bytes of the serialized transaction.
1474 @$pb.TagNumber(1)
1475 $core.List<$core.int> get rawTx => $_getN(0);
1476 @$pb.TagNumber(1)
@@ -1615,24 +1482,23 @@ class BroadcastRequest extends $pb.GeneratedMessage {
1482 }
1483
1484 class BroadcastResponse extends $pb.GeneratedMessage {
1485 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BroadcastResponse', createEmptyInstance: create)
1486 + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'txid')
1487 + ..hasRequiredFields = false
1488 + ;
1489 +
1490 + BroadcastResponse._() : super();
1491 factory BroadcastResponse({
1492 $core.String? txid,
1493 }) {
1621 - final $result = create();
1494 + final _result = create();
1495 if (txid != null) {
1623 - $result.txid = txid;
1496 + _result.txid = txid;
1497 }
1625 - return $result;
1498 + return _result;
1499 }
1627 - BroadcastResponse._() : super();
1500 factory BroadcastResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
1501 factory BroadcastResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1630 -
1631 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BroadcastResponse', createEmptyInstance: create)
1632 - ..aOS(1, _omitFieldNames ? '' : 'txid')
1633 - ..hasRequiredFields = false
1634 - ;
1635 -
1502 @$core.Deprecated(
1503 'Using this can add significant overhead to your binary. '
1504 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -1642,10 +1508,8 @@ class BroadcastResponse extends $pb.GeneratedMessage {
1508 'Using this can add significant overhead to your binary. '
1509 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
1510 'Will be removed in next major version')
1645 - BroadcastResponse copyWith(void Function(BroadcastResponse) updates) => super.copyWith((message) => updates(message as BroadcastResponse)) as BroadcastResponse;
1646 -
1511 + BroadcastResponse copyWith(void Function(BroadcastResponse) updates) => super.copyWith((message) => updates(message as BroadcastResponse)) as BroadcastResponse; // ignore: deprecated_member_use
1512 $pb.BuilderInfo get info_ => _i;
1648 -
1513 @$core.pragma('dart2js:noInline')
1514 static BroadcastResponse create() => BroadcastResponse._();
1515 BroadcastResponse createEmptyInstance() => create();
@@ -1654,7 +1518,6 @@ class BroadcastResponse extends $pb.GeneratedMessage {
1518 static BroadcastResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BroadcastResponse>(create);
1519 static BroadcastResponse? _defaultInstance;
1520
1657 - /// The transaction ID.
1521 @$pb.TagNumber(1)
1522 $core.String get txid => $_getSZ(0);
1523 @$pb.TagNumber(1)
@@ -1666,39 +1529,38 @@ class BroadcastResponse extends $pb.GeneratedMessage {
1529 }
1530
1531 class CoinswapRequest extends $pb.GeneratedMessage {
1532 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'CoinswapRequest', createEmptyInstance: create)
1533 + ..a<$core.List<$core.int>>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'scanSecret', $pb.PbFieldType.OY)
1534 + ..a<$core.List<$core.int>>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'spendSecret', $pb.PbFieldType.OY)
1535 + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputId')
1536 + ..a<$core.int>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'addrIndex', $pb.PbFieldType.OU3)
1537 + ..hasRequiredFields = false
1538 + ;
1539 +
1540 + CoinswapRequest._() : super();
1541 factory CoinswapRequest({
1542 $core.List<$core.int>? scanSecret,
1543 $core.List<$core.int>? spendSecret,
1544 $core.String? outputId,
1545 $core.int? addrIndex,
1546 }) {
1675 - final $result = create();
1547 + final _result = create();
1548 if (scanSecret != null) {
1677 - $result.scanSecret = scanSecret;
1549 + _result.scanSecret = scanSecret;
1550 }
1551 if (spendSecret != null) {
1680 - $result.spendSecret = spendSecret;
1552 + _result.spendSecret = spendSecret;
1553 }
1554 if (outputId != null) {
1683 - $result.outputId = outputId;
1555 + _result.outputId = outputId;
1556 }
1557 if (addrIndex != null) {
1686 - $result.addrIndex = addrIndex;
1558 + _result.addrIndex = addrIndex;
1559 }
1688 - return $result;
1560 + return _result;
1561 }
1690 - CoinswapRequest._() : super();
1562 factory CoinswapRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
1563 factory CoinswapRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1693 -
1694 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CoinswapRequest', createEmptyInstance: create)
1695 - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'scanSecret', $pb.PbFieldType.OY)
1696 - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'spendSecret', $pb.PbFieldType.OY)
1697 - ..aOS(3, _omitFieldNames ? '' : 'outputId')
1698 - ..a<$core.int>(4, _omitFieldNames ? '' : 'addrIndex', $pb.PbFieldType.OU3)
1699 - ..hasRequiredFields = false
1700 - ;
1701 -
1564 @$core.Deprecated(
1565 'Using this can add significant overhead to your binary. '
1566 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -1708,10 +1570,8 @@ class CoinswapRequest extends $pb.GeneratedMessage {
1570 'Using this can add significant overhead to your binary. '
1571 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
1572 'Will be removed in next major version')
1711 - CoinswapRequest copyWith(void Function(CoinswapRequest) updates) => super.copyWith((message) => updates(message as CoinswapRequest)) as CoinswapRequest;
1712 -
1573 + CoinswapRequest copyWith(void Function(CoinswapRequest) updates) => super.copyWith((message) => updates(message as CoinswapRequest)) as CoinswapRequest; // ignore: deprecated_member_use
1574 $pb.BuilderInfo get info_ => _i;
1714 -
1575 @$core.pragma('dart2js:noInline')
1576 static CoinswapRequest create() => CoinswapRequest._();
1577 CoinswapRequest createEmptyInstance() => create();
@@ -1720,8 +1580,6 @@ class CoinswapRequest extends $pb.GeneratedMessage {
1580 static CoinswapRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CoinswapRequest>(create);
1581 static CoinswapRequest? _defaultInstance;
1582
1723 - /// The scan secret or view key represents the account that
1724 - /// the utxo belongs to.
1583 @$pb.TagNumber(1)
1584 $core.List<$core.int> get scanSecret => $_getN(0);
1585 @$pb.TagNumber(1)
@@ -1731,8 +1589,6 @@ class CoinswapRequest extends $pb.GeneratedMessage {
1589 @$pb.TagNumber(1)
1590 void clearScanSecret() => clearField(1);
1591
1734 - /// The spend secret is the private key necessary for spending
1735 - /// the utxos belonging to the account.
1592 @$pb.TagNumber(2)
1593 $core.List<$core.int> get spendSecret => $_getN(1);
1594 @$pb.TagNumber(2)
@@ -1742,7 +1598,6 @@ class CoinswapRequest extends $pb.GeneratedMessage {
1598 @$pb.TagNumber(2)
1599 void clearSpendSecret() => clearField(2);
1600
1745 - /// Output ID of the utxo to request a coinswap for.
1601 @$pb.TagNumber(3)
1602 $core.String get outputId => $_getSZ(2);
1603 @$pb.TagNumber(3)
@@ -1752,7 +1607,6 @@ class CoinswapRequest extends $pb.GeneratedMessage {
1607 @$pb.TagNumber(3)
1608 void clearOutputId() => clearField(3);
1609
1755 - /// Address index of the utxo.
1610 @$pb.TagNumber(4)
1611 $core.int get addrIndex => $_getIZ(3);
1612 @$pb.TagNumber(4)
@@ -1764,24 +1618,23 @@ class CoinswapRequest extends $pb.GeneratedMessage {
1618 }
1619
1620 class CoinswapResponse extends $pb.GeneratedMessage {
1621 + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'CoinswapResponse', createEmptyInstance: create)
1622 + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputId')
1623 + ..hasRequiredFields = false
1624 + ;
1625 +
1626 + CoinswapResponse._() : super();
1627 factory CoinswapResponse({
1628 $core.String? outputId,
1629 }) {
1770 - final $result = create();
1630 + final _result = create();
1631 if (outputId != null) {
1772 - $result.outputId = outputId;
1632 + _result.outputId = outputId;
1633 }
1774 - return $result;
1634 + return _result;
1635 }
1776 - CoinswapResponse._() : super();
1636 factory CoinswapResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
1637 factory CoinswapResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1779 -
1780 - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CoinswapResponse', createEmptyInstance: create)
1781 - ..aOS(1, _omitFieldNames ? '' : 'outputId')
1782 - ..hasRequiredFields = false
1783 - ;
1784 -
1638 @$core.Deprecated(
1639 'Using this can add significant overhead to your binary. '
1640 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
@@ -1791,10 +1644,8 @@ class CoinswapResponse extends $pb.GeneratedMessage {
1644 'Using this can add significant overhead to your binary. '
1645 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
1646 'Will be removed in next major version')
1794 - CoinswapResponse copyWith(void Function(CoinswapResponse) updates) => super.copyWith((message) => updates(message as CoinswapResponse)) as CoinswapResponse;
1795 -
1647 + CoinswapResponse copyWith(void Function(CoinswapResponse) updates) => super.copyWith((message) => updates(message as CoinswapResponse)) as CoinswapResponse; // ignore: deprecated_member_use
1648 $pb.BuilderInfo get info_ => _i;
1797 -
1649 @$core.pragma('dart2js:noInline')
1650 static CoinswapResponse create() => CoinswapResponse._();
1651 CoinswapResponse createEmptyInstance() => create();
@@ -1803,7 +1654,6 @@ class CoinswapResponse extends $pb.GeneratedMessage {
1654 static CoinswapResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CoinswapResponse>(create);
1655 static CoinswapResponse? _defaultInstance;
1656
1806 - /// Output ID of the utxo created by the transaction.
1657 @$pb.TagNumber(1)
1658 $core.String get outputId => $_getSZ(0);
1659 @$pb.TagNumber(1)
@@ -1814,6 +1664,3 @@ class CoinswapResponse extends $pb.GeneratedMessage {
1664 void clearOutputId() => clearField(1);
1665 }
1666
1817 -
1818 -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
1819 -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
\ No newline at end of file
cw_mweb/lib/mwebd.pbgrpc.dart
+182 -116
@@ -1,155 +1,185 @@
1 -//
1 +///
2 // Generated code. Do not modify.
3 -// source: mwebd.proto
3 +// source: lib/mwebd.proto
4 //
5 // @dart = 2.12
6 -
7 -// ignore_for_file: annotate_overrides, camel_case_types, comment_references
8 -// ignore_for_file: constant_identifier_names, library_prefixes
9 -// ignore_for_file: non_constant_identifier_names, prefer_final_fields
10 -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
6 +// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name
7
8 import 'dart:async' as $async;
9 +
10 import 'dart:core' as $core;
11
12 import 'package:grpc/service_api.dart' as $grpc;
16 -import 'package:protobuf/protobuf.dart' as $pb;
17 -
13 import 'mwebd.pb.dart' as $0;
19 -
14 export 'mwebd.pb.dart';
15
22 -@$pb.GrpcServiceName('Rpc')
16 class RpcClient extends $grpc.Client {
24 - static final _$status = $grpc.ClientMethod<$0.StatusRequest, $0.StatusResponse>(
25 - '/Rpc/Status',
26 - ($0.StatusRequest value) => value.writeToBuffer(),
27 - ($core.List<$core.int> value) => $0.StatusResponse.fromBuffer(value));
17 + static final _$status =
18 + $grpc.ClientMethod<$0.StatusRequest, $0.StatusResponse>(
19 + '/Rpc/Status',
20 + ($0.StatusRequest value) => value.writeToBuffer(),
21 + ($core.List<$core.int> value) => $0.StatusResponse.fromBuffer(value));
22 static final _$utxos = $grpc.ClientMethod<$0.UtxosRequest, $0.Utxo>(
23 '/Rpc/Utxos',
24 ($0.UtxosRequest value) => value.writeToBuffer(),
25 ($core.List<$core.int> value) => $0.Utxo.fromBuffer(value));
32 - static final _$addresses = $grpc.ClientMethod<$0.AddressRequest, $0.AddressResponse>(
33 - '/Rpc/Addresses',
34 - ($0.AddressRequest value) => value.writeToBuffer(),
35 - ($core.List<$core.int> value) => $0.AddressResponse.fromBuffer(value));
26 + static final _$addresses =
27 + $grpc.ClientMethod<$0.AddressRequest, $0.AddressResponse>(
28 + '/Rpc/Addresses',
29 + ($0.AddressRequest value) => value.writeToBuffer(),
30 + ($core.List<$core.int> value) =>
31 + $0.AddressResponse.fromBuffer(value));
32 static final _$spent = $grpc.ClientMethod<$0.SpentRequest, $0.SpentResponse>(
33 '/Rpc/Spent',
34 ($0.SpentRequest value) => value.writeToBuffer(),
35 ($core.List<$core.int> value) => $0.SpentResponse.fromBuffer(value));
40 - static final _$create = $grpc.ClientMethod<$0.CreateRequest, $0.CreateResponse>(
41 - '/Rpc/Create',
42 - ($0.CreateRequest value) => value.writeToBuffer(),
43 - ($core.List<$core.int> value) => $0.CreateResponse.fromBuffer(value));
44 - static final _$psbtCreate = $grpc.ClientMethod<$0.PsbtCreateRequest, $0.PsbtResponse>(
45 - '/Rpc/PsbtCreate',
46 - ($0.PsbtCreateRequest value) => value.writeToBuffer(),
47 - ($core.List<$core.int> value) => $0.PsbtResponse.fromBuffer(value));
48 - static final _$psbtAddInput = $grpc.ClientMethod<$0.PsbtAddInputRequest, $0.PsbtResponse>(
49 - '/Rpc/PsbtAddInput',
50 - ($0.PsbtAddInputRequest value) => value.writeToBuffer(),
51 - ($core.List<$core.int> value) => $0.PsbtResponse.fromBuffer(value));
52 - static final _$psbtAddRecipient = $grpc.ClientMethod<$0.PsbtAddRecipientRequest, $0.PsbtResponse>(
53 - '/Rpc/PsbtAddRecipient',
54 - ($0.PsbtAddRecipientRequest value) => value.writeToBuffer(),
55 - ($core.List<$core.int> value) => $0.PsbtResponse.fromBuffer(value));
56 - static final _$psbtGetRecipients = $grpc.ClientMethod<$0.PsbtGetRecipientsRequest, $0.PsbtGetRecipientsResponse>(
36 + static final _$create =
37 + $grpc.ClientMethod<$0.CreateRequest, $0.CreateResponse>(
38 + '/Rpc/Create',
39 + ($0.CreateRequest value) => value.writeToBuffer(),
40 + ($core.List<$core.int> value) => $0.CreateResponse.fromBuffer(value));
41 + static final _$psbtCreate =
42 + $grpc.ClientMethod<$0.PsbtCreateRequest, $0.PsbtResponse>(
43 + '/Rpc/PsbtCreate',
44 + ($0.PsbtCreateRequest value) => value.writeToBuffer(),
45 + ($core.List<$core.int> value) => $0.PsbtResponse.fromBuffer(value));
46 + static final _$psbtAddInput =
47 + $grpc.ClientMethod<$0.PsbtAddInputRequest, $0.PsbtResponse>(
48 + '/Rpc/PsbtAddInput',
49 + ($0.PsbtAddInputRequest value) => value.writeToBuffer(),
50 + ($core.List<$core.int> value) => $0.PsbtResponse.fromBuffer(value));
51 + static final _$psbtAddRecipient =
52 + $grpc.ClientMethod<$0.PsbtAddRecipientRequest, $0.PsbtResponse>(
53 + '/Rpc/PsbtAddRecipient',
54 + ($0.PsbtAddRecipientRequest value) => value.writeToBuffer(),
55 + ($core.List<$core.int> value) => $0.PsbtResponse.fromBuffer(value));
56 + static final _$psbtGetRecipients = $grpc.ClientMethod<
57 + $0.PsbtGetRecipientsRequest, $0.PsbtGetRecipientsResponse>(
58 '/Rpc/PsbtGetRecipients',
59 ($0.PsbtGetRecipientsRequest value) => value.writeToBuffer(),
59 - ($core.List<$core.int> value) => $0.PsbtGetRecipientsResponse.fromBuffer(value));
60 - static final _$psbtSign = $grpc.ClientMethod<$0.PsbtSignRequest, $0.PsbtResponse>(
61 - '/Rpc/PsbtSign',
62 - ($0.PsbtSignRequest value) => value.writeToBuffer(),
63 - ($core.List<$core.int> value) => $0.PsbtResponse.fromBuffer(value));
64 - static final _$psbtSignNonMweb = $grpc.ClientMethod<$0.PsbtSignNonMwebRequest, $0.PsbtResponse>(
65 - '/Rpc/PsbtSignNonMweb',
66 - ($0.PsbtSignNonMwebRequest value) => value.writeToBuffer(),
67 - ($core.List<$core.int> value) => $0.PsbtResponse.fromBuffer(value));
68 - static final _$psbtExtract = $grpc.ClientMethod<$0.PsbtExtractRequest, $0.CreateResponse>(
69 - '/Rpc/PsbtExtract',
70 - ($0.PsbtExtractRequest value) => value.writeToBuffer(),
71 - ($core.List<$core.int> value) => $0.CreateResponse.fromBuffer(value));
72 - static final _$ledgerExchange = $grpc.ClientMethod<$0.LedgerApdu, $0.LedgerApdu>(
73 - '/Rpc/LedgerExchange',
74 - ($0.LedgerApdu value) => value.writeToBuffer(),
75 - ($core.List<$core.int> value) => $0.LedgerApdu.fromBuffer(value));
76 - static final _$broadcast = $grpc.ClientMethod<$0.BroadcastRequest, $0.BroadcastResponse>(
77 - '/Rpc/Broadcast',
78 - ($0.BroadcastRequest value) => value.writeToBuffer(),
79 - ($core.List<$core.int> value) => $0.BroadcastResponse.fromBuffer(value));
80 - static final _$coinswap = $grpc.ClientMethod<$0.CoinswapRequest, $0.CoinswapResponse>(
81 - '/Rpc/Coinswap',
82 - ($0.CoinswapRequest value) => value.writeToBuffer(),
83 - ($core.List<$core.int> value) => $0.CoinswapResponse.fromBuffer(value));
60 + ($core.List<$core.int> value) =>
61 + $0.PsbtGetRecipientsResponse.fromBuffer(value));
62 + static final _$psbtSign =
63 + $grpc.ClientMethod<$0.PsbtSignRequest, $0.PsbtResponse>(
64 + '/Rpc/PsbtSign',
65 + ($0.PsbtSignRequest value) => value.writeToBuffer(),
66 + ($core.List<$core.int> value) => $0.PsbtResponse.fromBuffer(value));
67 + static final _$psbtSignNonMweb =
68 + $grpc.ClientMethod<$0.PsbtSignNonMwebRequest, $0.PsbtResponse>(
69 + '/Rpc/PsbtSignNonMweb',
70 + ($0.PsbtSignNonMwebRequest value) => value.writeToBuffer(),
71 + ($core.List<$core.int> value) => $0.PsbtResponse.fromBuffer(value));
72 + static final _$psbtExtract =
73 + $grpc.ClientMethod<$0.PsbtExtractRequest, $0.CreateResponse>(
74 + '/Rpc/PsbtExtract',
75 + ($0.PsbtExtractRequest value) => value.writeToBuffer(),
76 + ($core.List<$core.int> value) => $0.CreateResponse.fromBuffer(value));
77 + static final _$ledgerExchange =
78 + $grpc.ClientMethod<$0.LedgerApdu, $0.LedgerApdu>(
79 + '/Rpc/LedgerExchange',
80 + ($0.LedgerApdu value) => value.writeToBuffer(),
81 + ($core.List<$core.int> value) => $0.LedgerApdu.fromBuffer(value));
82 + static final _$broadcast =
83 + $grpc.ClientMethod<$0.BroadcastRequest, $0.BroadcastResponse>(
84 + '/Rpc/Broadcast',
85 + ($0.BroadcastRequest value) => value.writeToBuffer(),
86 + ($core.List<$core.int> value) =>
87 + $0.BroadcastResponse.fromBuffer(value));
88 + static final _$coinswap =
89 + $grpc.ClientMethod<$0.CoinswapRequest, $0.CoinswapResponse>(
90 + '/Rpc/Coinswap',
91 + ($0.CoinswapRequest value) => value.writeToBuffer(),
92 + ($core.List<$core.int> value) =>
93 + $0.CoinswapResponse.fromBuffer(value));
94
95 RpcClient($grpc.ClientChannel channel,
96 {$grpc.CallOptions? options,
97 $core.Iterable<$grpc.ClientInterceptor>? interceptors})
88 - : super(channel, options: options,
89 - interceptors: interceptors);
98 + : super(channel, options: options, interceptors: interceptors);
99
91 - $grpc.ResponseFuture<$0.StatusResponse> status($0.StatusRequest request, {$grpc.CallOptions? options}) {
100 + $grpc.ResponseFuture<$0.StatusResponse> status($0.StatusRequest request,
101 + {$grpc.CallOptions? options}) {
102 return $createUnaryCall(_$status, request, options: options);
103 }
104
95 - $grpc.ResponseStream<$0.Utxo> utxos($0.UtxosRequest request, {$grpc.CallOptions? options}) {
96 - return $createStreamingCall(_$utxos, $async.Stream.fromIterable([request]), options: options);
105 + $grpc.ResponseStream<$0.Utxo> utxos($0.UtxosRequest request,
106 + {$grpc.CallOptions? options}) {
107 + return $createStreamingCall(_$utxos, $async.Stream.fromIterable([request]),
108 + options: options);
109 }
110
99 - $grpc.ResponseFuture<$0.AddressResponse> addresses($0.AddressRequest request, {$grpc.CallOptions? options}) {
111 + $grpc.ResponseFuture<$0.AddressResponse> addresses($0.AddressRequest request,
112 + {$grpc.CallOptions? options}) {
113 return $createUnaryCall(_$addresses, request, options: options);
114 }
115
103 - $grpc.ResponseFuture<$0.SpentResponse> spent($0.SpentRequest request, {$grpc.CallOptions? options}) {
116 + $grpc.ResponseFuture<$0.SpentResponse> spent($0.SpentRequest request,
117 + {$grpc.CallOptions? options}) {
118 return $createUnaryCall(_$spent, request, options: options);
119 }
120
107 - $grpc.ResponseFuture<$0.CreateResponse> create($0.CreateRequest request, {$grpc.CallOptions? options}) {
121 + $grpc.ResponseFuture<$0.CreateResponse> create($0.CreateRequest request,
122 + {$grpc.CallOptions? options}) {
123 return $createUnaryCall(_$create, request, options: options);
124 }
125
111 - $grpc.ResponseFuture<$0.PsbtResponse> psbtCreate($0.PsbtCreateRequest request, {$grpc.CallOptions? options}) {
126 + $grpc.ResponseFuture<$0.PsbtResponse> psbtCreate($0.PsbtCreateRequest request,
127 + {$grpc.CallOptions? options}) {
128 return $createUnaryCall(_$psbtCreate, request, options: options);
129 }
130
115 - $grpc.ResponseFuture<$0.PsbtResponse> psbtAddInput($0.PsbtAddInputRequest request, {$grpc.CallOptions? options}) {
131 + $grpc.ResponseFuture<$0.PsbtResponse> psbtAddInput(
132 + $0.PsbtAddInputRequest request,
133 + {$grpc.CallOptions? options}) {
134 return $createUnaryCall(_$psbtAddInput, request, options: options);
135 }
136
119 - $grpc.ResponseFuture<$0.PsbtResponse> psbtAddRecipient($0.PsbtAddRecipientRequest request, {$grpc.CallOptions? options}) {
137 + $grpc.ResponseFuture<$0.PsbtResponse> psbtAddRecipient(
138 + $0.PsbtAddRecipientRequest request,
139 + {$grpc.CallOptions? options}) {
140 return $createUnaryCall(_$psbtAddRecipient, request, options: options);
141 }
142
123 - $grpc.ResponseFuture<$0.PsbtGetRecipientsResponse> psbtGetRecipients($0.PsbtGetRecipientsRequest request, {$grpc.CallOptions? options}) {
143 + $grpc.ResponseFuture<$0.PsbtGetRecipientsResponse> psbtGetRecipients(
144 + $0.PsbtGetRecipientsRequest request,
145 + {$grpc.CallOptions? options}) {
146 return $createUnaryCall(_$psbtGetRecipients, request, options: options);
147 }
148
127 - $grpc.ResponseFuture<$0.PsbtResponse> psbtSign($0.PsbtSignRequest request, {$grpc.CallOptions? options}) {
149 + $grpc.ResponseFuture<$0.PsbtResponse> psbtSign($0.PsbtSignRequest request,
150 + {$grpc.CallOptions? options}) {
151 return $createUnaryCall(_$psbtSign, request, options: options);
152 }
153
131 - $grpc.ResponseFuture<$0.PsbtResponse> psbtSignNonMweb($0.PsbtSignNonMwebRequest request, {$grpc.CallOptions? options}) {
154 + $grpc.ResponseFuture<$0.PsbtResponse> psbtSignNonMweb(
155 + $0.PsbtSignNonMwebRequest request,
156 + {$grpc.CallOptions? options}) {
157 return $createUnaryCall(_$psbtSignNonMweb, request, options: options);
158 }
159
135 - $grpc.ResponseFuture<$0.CreateResponse> psbtExtract($0.PsbtExtractRequest request, {$grpc.CallOptions? options}) {
160 + $grpc.ResponseFuture<$0.CreateResponse> psbtExtract(
161 + $0.PsbtExtractRequest request,
162 + {$grpc.CallOptions? options}) {
163 return $createUnaryCall(_$psbtExtract, request, options: options);
164 }
165
139 - $grpc.ResponseFuture<$0.LedgerApdu> ledgerExchange($0.LedgerApdu request, {$grpc.CallOptions? options}) {
166 + $grpc.ResponseFuture<$0.LedgerApdu> ledgerExchange($0.LedgerApdu request,
167 + {$grpc.CallOptions? options}) {
168 return $createUnaryCall(_$ledgerExchange, request, options: options);
169 }
170
143 - $grpc.ResponseFuture<$0.BroadcastResponse> broadcast($0.BroadcastRequest request, {$grpc.CallOptions? options}) {
171 + $grpc.ResponseFuture<$0.BroadcastResponse> broadcast(
172 + $0.BroadcastRequest request,
173 + {$grpc.CallOptions? options}) {
174 return $createUnaryCall(_$broadcast, request, options: options);
175 }
176
147 - $grpc.ResponseFuture<$0.CoinswapResponse> coinswap($0.CoinswapRequest request, {$grpc.CallOptions? options}) {
177 + $grpc.ResponseFuture<$0.CoinswapResponse> coinswap($0.CoinswapRequest request,
178 + {$grpc.CallOptions? options}) {
179 return $createUnaryCall(_$coinswap, request, options: options);
180 }
181 }
182
152 -@$pb.GrpcServiceName('Rpc')
183 abstract class RpcServiceBase extends $grpc.Service {
184 $core.String get $name => 'Rpc';
185
@@ -201,21 +231,25 @@ abstract class RpcServiceBase extends $grpc.Service {
231 psbtAddInput_Pre,
232 false,
233 false,
204 - ($core.List<$core.int> value) => $0.PsbtAddInputRequest.fromBuffer(value),
234 + ($core.List<$core.int> value) =>
235 + $0.PsbtAddInputRequest.fromBuffer(value),
236 ($0.PsbtResponse value) => value.writeToBuffer()));
237 $addMethod($grpc.ServiceMethod<$0.PsbtAddRecipientRequest, $0.PsbtResponse>(
238 'PsbtAddRecipient',
239 psbtAddRecipient_Pre,
240 false,
241 false,
211 - ($core.List<$core.int> value) => $0.PsbtAddRecipientRequest.fromBuffer(value),
242 + ($core.List<$core.int> value) =>
243 + $0.PsbtAddRecipientRequest.fromBuffer(value),
244 ($0.PsbtResponse value) => value.writeToBuffer()));
213 - $addMethod($grpc.ServiceMethod<$0.PsbtGetRecipientsRequest, $0.PsbtGetRecipientsResponse>(
245 + $addMethod($grpc.ServiceMethod<$0.PsbtGetRecipientsRequest,
246 + $0.PsbtGetRecipientsResponse>(
247 'PsbtGetRecipients',
248 psbtGetRecipients_Pre,
249 false,
250 false,
218 - ($core.List<$core.int> value) => $0.PsbtGetRecipientsRequest.fromBuffer(value),
251 + ($core.List<$core.int> value) =>
252 + $0.PsbtGetRecipientsRequest.fromBuffer(value),
253 ($0.PsbtGetRecipientsResponse value) => value.writeToBuffer()));
254 $addMethod($grpc.ServiceMethod<$0.PsbtSignRequest, $0.PsbtResponse>(
255 'PsbtSign',
@@ -229,14 +263,16 @@ abstract class RpcServiceBase extends $grpc.Service {
263 psbtSignNonMweb_Pre,
264 false,
265 false,
232 - ($core.List<$core.int> value) => $0.PsbtSignNonMwebRequest.fromBuffer(value),
266 + ($core.List<$core.int> value) =>
267 + $0.PsbtSignNonMwebRequest.fromBuffer(value),
268 ($0.PsbtResponse value) => value.writeToBuffer()));
269 $addMethod($grpc.ServiceMethod<$0.PsbtExtractRequest, $0.CreateResponse>(
270 'PsbtExtract',
271 psbtExtract_Pre,
272 false,
273 false,
239 - ($core.List<$core.int> value) => $0.PsbtExtractRequest.fromBuffer(value),
274 + ($core.List<$core.int> value) =>
275 + $0.PsbtExtractRequest.fromBuffer(value),
276 ($0.CreateResponse value) => value.writeToBuffer()));
277 $addMethod($grpc.ServiceMethod<$0.LedgerApdu, $0.LedgerApdu>(
278 'LedgerExchange',
@@ -261,79 +297,109 @@ abstract class RpcServiceBase extends $grpc.Service {
297 ($0.CoinswapResponse value) => value.writeToBuffer()));
298 }
299
264 - $async.Future<$0.StatusResponse> status_Pre($grpc.ServiceCall call, $async.Future<$0.StatusRequest> request) async {
300 + $async.Future<$0.StatusResponse> status_Pre(
301 + $grpc.ServiceCall call, $async.Future<$0.StatusRequest> request) async {
302 return status(call, await request);
303 }
304
268 - $async.Stream<$0.Utxo> utxos_Pre($grpc.ServiceCall call, $async.Future<$0.UtxosRequest> request) async* {
305 + $async.Stream<$0.Utxo> utxos_Pre(
306 + $grpc.ServiceCall call, $async.Future<$0.UtxosRequest> request) async* {
307 yield* utxos(call, await request);
308 }
309
272 - $async.Future<$0.AddressResponse> addresses_Pre($grpc.ServiceCall call, $async.Future<$0.AddressRequest> request) async {
310 + $async.Future<$0.AddressResponse> addresses_Pre(
311 + $grpc.ServiceCall call, $async.Future<$0.AddressRequest> request) async {
312 return addresses(call, await request);
313 }
314
276 - $async.Future<$0.SpentResponse> spent_Pre($grpc.ServiceCall call, $async.Future<$0.SpentRequest> request) async {
315 + $async.Future<$0.SpentResponse> spent_Pre(
316 + $grpc.ServiceCall call, $async.Future<$0.SpentRequest> request) async {
317 return spent(call, await request);
318 }
319
280 - $async.Future<$0.CreateResponse> create_Pre($grpc.ServiceCall call, $async.Future<$0.CreateRequest> request) async {
320 + $async.Future<$0.CreateResponse> create_Pre(
321 + $grpc.ServiceCall call, $async.Future<$0.CreateRequest> request) async {
322 return create(call, await request);
323 }
324
284 - $async.Future<$0.PsbtResponse> psbtCreate_Pre($grpc.ServiceCall call, $async.Future<$0.PsbtCreateRequest> request) async {
325 + $async.Future<$0.PsbtResponse> psbtCreate_Pre($grpc.ServiceCall call,
326 + $async.Future<$0.PsbtCreateRequest> request) async {
327 return psbtCreate(call, await request);
328 }
329
288 - $async.Future<$0.PsbtResponse> psbtAddInput_Pre($grpc.ServiceCall call, $async.Future<$0.PsbtAddInputRequest> request) async {
330 + $async.Future<$0.PsbtResponse> psbtAddInput_Pre($grpc.ServiceCall call,
331 + $async.Future<$0.PsbtAddInputRequest> request) async {
332 return psbtAddInput(call, await request);
333 }
334
292 - $async.Future<$0.PsbtResponse> psbtAddRecipient_Pre($grpc.ServiceCall call, $async.Future<$0.PsbtAddRecipientRequest> request) async {
335 + $async.Future<$0.PsbtResponse> psbtAddRecipient_Pre($grpc.ServiceCall call,
336 + $async.Future<$0.PsbtAddRecipientRequest> request) async {
337 return psbtAddRecipient(call, await request);
338 }
339
296 - $async.Future<$0.PsbtGetRecipientsResponse> psbtGetRecipients_Pre($grpc.ServiceCall call, $async.Future<$0.PsbtGetRecipientsRequest> request) async {
340 + $async.Future<$0.PsbtGetRecipientsResponse> psbtGetRecipients_Pre(
341 + $grpc.ServiceCall call,
342 + $async.Future<$0.PsbtGetRecipientsRequest> request) async {
343 return psbtGetRecipients(call, await request);
344 }
345
300 - $async.Future<$0.PsbtResponse> psbtSign_Pre($grpc.ServiceCall call, $async.Future<$0.PsbtSignRequest> request) async {
346 + $async.Future<$0.PsbtResponse> psbtSign_Pre(
347 + $grpc.ServiceCall call, $async.Future<$0.PsbtSignRequest> request) async {
348 return psbtSign(call, await request);
349 }
350
304 - $async.Future<$0.PsbtResponse> psbtSignNonMweb_Pre($grpc.ServiceCall call, $async.Future<$0.PsbtSignNonMwebRequest> request) async {
351 + $async.Future<$0.PsbtResponse> psbtSignNonMweb_Pre($grpc.ServiceCall call,
352 + $async.Future<$0.PsbtSignNonMwebRequest> request) async {
353 return psbtSignNonMweb(call, await request);
354 }
355
308 - $async.Future<$0.CreateResponse> psbtExtract_Pre($grpc.ServiceCall call, $async.Future<$0.PsbtExtractRequest> request) async {
356 + $async.Future<$0.CreateResponse> psbtExtract_Pre($grpc.ServiceCall call,
357 + $async.Future<$0.PsbtExtractRequest> request) async {
358 return psbtExtract(call, await request);
359 }
360
312 - $async.Future<$0.LedgerApdu> ledgerExchange_Pre($grpc.ServiceCall call, $async.Future<$0.LedgerApdu> request) async {
361 + $async.Future<$0.LedgerApdu> ledgerExchange_Pre(
362 + $grpc.ServiceCall call, $async.Future<$0.LedgerApdu> request) async {
363 return ledgerExchange(call, await request);
364 }
365
316 - $async.Future<$0.BroadcastResponse> broadcast_Pre($grpc.ServiceCall call, $async.Future<$0.BroadcastRequest> request) async {
366 + $async.Future<$0.BroadcastResponse> broadcast_Pre($grpc.ServiceCall call,
367 + $async.Future<$0.BroadcastRequest> request) async {
368 return broadcast(call, await request);
369 }
370
320 - $async.Future<$0.CoinswapResponse> coinswap_Pre($grpc.ServiceCall call, $async.Future<$0.CoinswapRequest> request) async {
371 + $async.Future<$0.CoinswapResponse> coinswap_Pre(
372 + $grpc.ServiceCall call, $async.Future<$0.CoinswapRequest> request) async {
373 return coinswap(call, await request);
374 }
375
324 - $async.Future<$0.StatusResponse> status($grpc.ServiceCall call, $0.StatusRequest request);
376 + $async.Future<$0.StatusResponse> status(
377 + $grpc.ServiceCall call, $0.StatusRequest request);
378 $async.Stream<$0.Utxo> utxos($grpc.ServiceCall call, $0.UtxosRequest request);
326 - $async.Future<$0.AddressResponse> addresses($grpc.ServiceCall call, $0.AddressRequest request);
327 - $async.Future<$0.SpentResponse> spent($grpc.ServiceCall call, $0.SpentRequest request);
328 - $async.Future<$0.CreateResponse> create($grpc.ServiceCall call, $0.CreateRequest request);
329 - $async.Future<$0.PsbtResponse> psbtCreate($grpc.ServiceCall call, $0.PsbtCreateRequest request);
330 - $async.Future<$0.PsbtResponse> psbtAddInput($grpc.ServiceCall call, $0.PsbtAddInputRequest request);
331 - $async.Future<$0.PsbtResponse> psbtAddRecipient($grpc.ServiceCall call, $0.PsbtAddRecipientRequest request);
332 - $async.Future<$0.PsbtGetRecipientsResponse> psbtGetRecipients($grpc.ServiceCall call, $0.PsbtGetRecipientsRequest request);
333 - $async.Future<$0.PsbtResponse> psbtSign($grpc.ServiceCall call, $0.PsbtSignRequest request);
334 - $async.Future<$0.PsbtResponse> psbtSignNonMweb($grpc.ServiceCall call, $0.PsbtSignNonMwebRequest request);
335 - $async.Future<$0.CreateResponse> psbtExtract($grpc.ServiceCall call, $0.PsbtExtractRequest request);
336 - $async.Future<$0.LedgerApdu> ledgerExchange($grpc.ServiceCall call, $0.LedgerApdu request);
337 - $async.Future<$0.BroadcastResponse> broadcast($grpc.ServiceCall call, $0.BroadcastRequest request);
338 - $async.Future<$0.CoinswapResponse> coinswap($grpc.ServiceCall call, $0.CoinswapRequest request);
339 -}
\ No newline at end of file
379 + $async.Future<$0.AddressResponse> addresses(
380 + $grpc.ServiceCall call, $0.AddressRequest request);
381 + $async.Future<$0.SpentResponse> spent(
382 + $grpc.ServiceCall call, $0.SpentRequest request);
383 + $async.Future<$0.CreateResponse> create(
384 + $grpc.ServiceCall call, $0.CreateRequest request);
385 + $async.Future<$0.PsbtResponse> psbtCreate(
386 + $grpc.ServiceCall call, $0.PsbtCreateRequest request);
387 + $async.Future<$0.PsbtResponse> psbtAddInput(
388 + $grpc.ServiceCall call, $0.PsbtAddInputRequest request);
389 + $async.Future<$0.PsbtResponse> psbtAddRecipient(
390 + $grpc.ServiceCall call, $0.PsbtAddRecipientRequest request);
391 + $async.Future<$0.PsbtGetRecipientsResponse> psbtGetRecipients(
392 + $grpc.ServiceCall call, $0.PsbtGetRecipientsRequest request);
393 + $async.Future<$0.PsbtResponse> psbtSign(
394 + $grpc.ServiceCall call, $0.PsbtSignRequest request);
395 + $async.Future<$0.PsbtResponse> psbtSignNonMweb(
396 + $grpc.ServiceCall call, $0.PsbtSignNonMwebRequest request);
397 + $async.Future<$0.CreateResponse> psbtExtract(
398 + $grpc.ServiceCall call, $0.PsbtExtractRequest request);
399 + $async.Future<$0.LedgerApdu> ledgerExchange(
400 + $grpc.ServiceCall call, $0.LedgerApdu request);
401 + $async.Future<$0.BroadcastResponse> broadcast(
402 + $grpc.ServiceCall call, $0.BroadcastRequest request);
403 + $async.Future<$0.CoinswapResponse> coinswap(
404 + $grpc.ServiceCall call, $0.CoinswapRequest request);
405 +}
cw_mweb/pubspec.yaml
+2
@@ -14,6 +14,8 @@ dependencies:
14 path_provider: ^2.1.2
15 plugin_platform_interface: ^2.0.2
16 ffi: ^2.1.0
17 + protobuf: ^3.1.0
18 + fixnum: ^1.1.1
19
20 dev_dependencies:
21 flutter_test: