2022-10-16 06:50:10 +00:00
|
|
|
// Mocks generated by Mockito 5.3.2 from annotations
|
2022-08-26 08:11:35 +00:00
|
|
|
// in stackwallet/test/services/coins/manager_test.dart.
|
|
|
|
// Do not manually edit this file.
|
|
|
|
|
2022-10-16 06:50:10 +00:00
|
|
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
2023-04-09 23:02:11 +00:00
|
|
|
import 'dart:async' as _i11;
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2023-04-09 23:02:11 +00:00
|
|
|
import 'package:decimal/decimal.dart' as _i9;
|
2022-08-26 08:11:35 +00:00
|
|
|
import 'package:mockito/mockito.dart' as _i1;
|
2023-03-01 21:52:13 +00:00
|
|
|
import 'package:stackwallet/db/isar/main_db.dart' as _i7;
|
2023-01-13 17:13:52 +00:00
|
|
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i5;
|
|
|
|
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i4;
|
|
|
|
import 'package:stackwallet/models/balance.dart' as _i6;
|
2023-04-09 23:02:11 +00:00
|
|
|
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i13;
|
|
|
|
import 'package:stackwallet/models/lelantus_coin.dart' as _i15;
|
2023-01-13 17:13:52 +00:00
|
|
|
import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i3;
|
2023-04-09 23:02:11 +00:00
|
|
|
import 'package:stackwallet/models/signing_data.dart' as _i14;
|
|
|
|
import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i10;
|
2022-08-26 08:11:35 +00:00
|
|
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
2023-01-13 17:13:52 +00:00
|
|
|
as _i2;
|
2023-04-09 23:02:11 +00:00
|
|
|
import 'package:stackwallet/utilities/amount/amount.dart' as _i8;
|
|
|
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i12;
|
2022-08-26 08:11:35 +00:00
|
|
|
|
|
|
|
// ignore_for_file: type=lint
|
|
|
|
// ignore_for_file: avoid_redundant_argument_values
|
|
|
|
// ignore_for_file: avoid_setters_without_getters
|
|
|
|
// ignore_for_file: comment_references
|
|
|
|
// ignore_for_file: implementation_imports
|
|
|
|
// ignore_for_file: invalid_use_of_visible_for_testing_member
|
|
|
|
// ignore_for_file: prefer_const_constructors
|
|
|
|
// ignore_for_file: unnecessary_parenthesis
|
|
|
|
// ignore_for_file: camel_case_types
|
2022-10-16 06:50:10 +00:00
|
|
|
// ignore_for_file: subtype_of_sealed_class
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2023-01-13 17:13:52 +00:00
|
|
|
class _FakeTransactionNotificationTracker_0 extends _i1.SmartFake
|
|
|
|
implements _i2.TransactionNotificationTracker {
|
|
|
|
_FakeTransactionNotificationTracker_0(
|
2022-10-16 06:50:10 +00:00
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2023-01-13 17:13:52 +00:00
|
|
|
class _FakeFeeObject_1 extends _i1.SmartFake implements _i3.FeeObject {
|
|
|
|
_FakeFeeObject_1(
|
2022-10-16 06:50:10 +00:00
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2023-01-13 17:13:52 +00:00
|
|
|
class _FakeElectrumX_2 extends _i1.SmartFake implements _i4.ElectrumX {
|
|
|
|
_FakeElectrumX_2(
|
2022-10-16 06:50:10 +00:00
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2023-01-13 17:13:52 +00:00
|
|
|
class _FakeCachedElectrumX_3 extends _i1.SmartFake
|
|
|
|
implements _i5.CachedElectrumX {
|
|
|
|
_FakeCachedElectrumX_3(
|
2022-10-16 06:50:10 +00:00
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2023-01-13 17:13:52 +00:00
|
|
|
class _FakeBalance_4 extends _i1.SmartFake implements _i6.Balance {
|
|
|
|
_FakeBalance_4(
|
2022-10-16 06:50:10 +00:00
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2023-01-16 22:37:12 +00:00
|
|
|
class _FakeMainDB_5 extends _i1.SmartFake implements _i7.MainDB {
|
|
|
|
_FakeMainDB_5(
|
2022-10-16 06:50:10 +00:00
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2023-04-09 23:02:11 +00:00
|
|
|
class _FakeAmount_6 extends _i1.SmartFake implements _i8.Amount {
|
|
|
|
_FakeAmount_6(
|
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
class _FakeDecimal_7 extends _i1.SmartFake implements _i9.Decimal {
|
|
|
|
_FakeDecimal_7(
|
2022-10-16 06:50:10 +00:00
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
|
|
|
/// A class which mocks [FiroWallet].
|
|
|
|
///
|
|
|
|
/// See the documentation for Mockito's code generation for more information.
|
2023-04-09 23:02:11 +00:00
|
|
|
class MockFiroWallet extends _i1.Mock implements _i10.FiroWallet {
|
2022-08-26 08:11:35 +00:00
|
|
|
MockFiroWallet() {
|
|
|
|
_i1.throwOnMissingStub(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
set timer(_i11.Timer? _timer) => super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.setter(
|
|
|
|
#timer,
|
|
|
|
_timer,
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
2023-01-13 17:13:52 +00:00
|
|
|
_i2.TransactionNotificationTracker get txTracker => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.getter(#txTracker),
|
2023-01-13 17:13:52 +00:00
|
|
|
returnValue: _FakeTransactionNotificationTracker_0(
|
2022-10-16 06:50:10 +00:00
|
|
|
this,
|
|
|
|
Invocation.getter(#txTracker),
|
|
|
|
),
|
2023-01-13 17:13:52 +00:00
|
|
|
) as _i2.TransactionNotificationTracker);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-01-13 17:13:52 +00:00
|
|
|
set txTracker(_i2.TransactionNotificationTracker? _txTracker) =>
|
2022-10-16 06:50:10 +00:00
|
|
|
super.noSuchMethod(
|
|
|
|
Invocation.setter(
|
|
|
|
#txTracker,
|
|
|
|
_txTracker,
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
|
|
|
bool get refreshMutex => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#refreshMutex),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
|
|
|
@override
|
|
|
|
set refreshMutex(bool? _refreshMutex) => super.noSuchMethod(
|
|
|
|
Invocation.setter(
|
|
|
|
#refreshMutex,
|
|
|
|
_refreshMutex,
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
|
|
|
bool get longMutex => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#longMutex),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
|
|
|
@override
|
|
|
|
set longMutex(bool? _longMutex) => super.noSuchMethod(
|
|
|
|
Invocation.setter(
|
|
|
|
#longMutex,
|
|
|
|
_longMutex,
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
|
|
|
bool get isActive => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#isActive),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
|
|
|
@override
|
|
|
|
set isActive(bool? _isActive) => super.noSuchMethod(
|
|
|
|
Invocation.setter(
|
|
|
|
#isActive,
|
|
|
|
_isActive,
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
|
|
|
bool get shouldAutoSync => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#shouldAutoSync),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
|
|
|
@override
|
|
|
|
set shouldAutoSync(bool? shouldAutoSync) => super.noSuchMethod(
|
|
|
|
Invocation.setter(
|
|
|
|
#shouldAutoSync,
|
|
|
|
shouldAutoSync,
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
|
|
|
set isFavorite(bool? markFavorite) => super.noSuchMethod(
|
|
|
|
Invocation.setter(
|
|
|
|
#isFavorite,
|
|
|
|
markFavorite,
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
|
|
|
bool get isFavorite => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#isFavorite),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i12.Coin get coin => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.getter(#coin),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i12.Coin.bitcoin,
|
|
|
|
) as _i12.Coin);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<String>> get mnemonic => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.getter(#mnemonic),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<List<String>>.value(<String>[]),
|
|
|
|
) as _i11.Future<List<String>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<String?> get mnemonicString => (super.noSuchMethod(
|
2023-02-03 22:34:06 +00:00
|
|
|
Invocation.getter(#mnemonicString),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<String?>.value(),
|
|
|
|
) as _i11.Future<String?>);
|
2023-02-03 22:34:06 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<String?> get mnemonicPassphrase => (super.noSuchMethod(
|
2023-02-03 22:34:06 +00:00
|
|
|
Invocation.getter(#mnemonicPassphrase),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<String?>.value(),
|
|
|
|
) as _i11.Future<String?>);
|
2023-02-03 22:34:06 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<int> get maxFee => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.getter(#maxFee),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<int>.value(0),
|
|
|
|
) as _i11.Future<int>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<_i3.FeeObject> get fees => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.getter(#fees),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<_i3.FeeObject>.value(_FakeFeeObject_1(
|
2022-10-16 06:50:10 +00:00
|
|
|
this,
|
|
|
|
Invocation.getter(#fees),
|
|
|
|
)),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i11.Future<_i3.FeeObject>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<String> get currentReceivingAddress => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.getter(#currentReceivingAddress),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<String>.value(''),
|
|
|
|
) as _i11.Future<String>);
|
2023-01-12 03:17:12 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<String> get currentChangeAddress => (super.noSuchMethod(
|
2023-01-12 03:17:12 +00:00
|
|
|
Invocation.getter(#currentChangeAddress),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<String>.value(''),
|
|
|
|
) as _i11.Future<String>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
|
|
|
String get walletName => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#walletName),
|
|
|
|
returnValue: '',
|
|
|
|
) as String);
|
|
|
|
@override
|
|
|
|
set walletName(String? newName) => super.noSuchMethod(
|
|
|
|
Invocation.setter(
|
|
|
|
#walletName,
|
|
|
|
newName,
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
|
|
|
String get walletId => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#walletId),
|
|
|
|
returnValue: '',
|
|
|
|
) as String);
|
|
|
|
@override
|
|
|
|
bool get isConnected => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#isConnected),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
|
|
|
@override
|
2023-01-13 17:13:52 +00:00
|
|
|
_i4.ElectrumX get electrumXClient => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.getter(#electrumXClient),
|
2023-01-13 17:13:52 +00:00
|
|
|
returnValue: _FakeElectrumX_2(
|
2022-10-16 06:50:10 +00:00
|
|
|
this,
|
|
|
|
Invocation.getter(#electrumXClient),
|
|
|
|
),
|
2023-01-13 17:13:52 +00:00
|
|
|
) as _i4.ElectrumX);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-01-13 17:13:52 +00:00
|
|
|
_i5.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.getter(#cachedElectrumXClient),
|
2023-01-13 17:13:52 +00:00
|
|
|
returnValue: _FakeCachedElectrumX_3(
|
2022-10-16 06:50:10 +00:00
|
|
|
this,
|
|
|
|
Invocation.getter(#cachedElectrumXClient),
|
|
|
|
),
|
2023-01-13 17:13:52 +00:00
|
|
|
) as _i5.CachedElectrumX);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
|
|
|
bool get isRefreshing => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#isRefreshing),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
|
|
|
@override
|
|
|
|
bool get hasCalledExit => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#hasCalledExit),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<int> get chainHeight => (super.noSuchMethod(
|
2023-01-12 03:17:12 +00:00
|
|
|
Invocation.getter(#chainHeight),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<int>.value(0),
|
|
|
|
) as _i11.Future<int>);
|
2023-01-12 03:17:12 +00:00
|
|
|
@override
|
2023-01-10 23:48:55 +00:00
|
|
|
int get storedChainHeight => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#storedChainHeight),
|
|
|
|
returnValue: 0,
|
|
|
|
) as int);
|
|
|
|
@override
|
2023-01-13 17:13:52 +00:00
|
|
|
_i6.Balance get balance => (super.noSuchMethod(
|
2023-01-12 03:17:12 +00:00
|
|
|
Invocation.getter(#balance),
|
2023-01-13 17:13:52 +00:00
|
|
|
returnValue: _FakeBalance_4(
|
2023-01-12 03:17:12 +00:00
|
|
|
this,
|
|
|
|
Invocation.getter(#balance),
|
|
|
|
),
|
2023-01-13 17:13:52 +00:00
|
|
|
) as _i6.Balance);
|
2023-01-12 03:17:12 +00:00
|
|
|
@override
|
2023-01-13 17:13:52 +00:00
|
|
|
_i6.Balance get balancePrivate => (super.noSuchMethod(
|
2023-01-12 03:17:12 +00:00
|
|
|
Invocation.getter(#balancePrivate),
|
2023-01-13 17:13:52 +00:00
|
|
|
returnValue: _FakeBalance_4(
|
2023-01-12 03:17:12 +00:00
|
|
|
this,
|
|
|
|
Invocation.getter(#balancePrivate),
|
|
|
|
),
|
2023-01-13 17:13:52 +00:00
|
|
|
) as _i6.Balance);
|
2023-01-12 03:17:12 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<_i13.UTXO>> get utxos => (super.noSuchMethod(
|
2023-01-12 03:17:12 +00:00
|
|
|
Invocation.getter(#utxos),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<List<_i13.UTXO>>.value(<_i13.UTXO>[]),
|
|
|
|
) as _i11.Future<List<_i13.UTXO>>);
|
2023-01-12 03:17:12 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<_i13.Transaction>> get transactions => (super.noSuchMethod(
|
2023-01-12 03:17:12 +00:00
|
|
|
Invocation.getter(#transactions),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<_i13.Transaction>>.value(<_i13.Transaction>[]),
|
|
|
|
) as _i11.Future<List<_i13.Transaction>>);
|
|
|
|
@override
|
|
|
|
_i11.Future<String> get xpub => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#xpub),
|
|
|
|
returnValue: _i11.Future<String>.value(''),
|
|
|
|
) as _i11.Future<String>);
|
2023-01-12 03:17:12 +00:00
|
|
|
@override
|
2022-08-26 08:11:35 +00:00
|
|
|
set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) =>
|
|
|
|
super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.setter(
|
|
|
|
#onIsActiveWalletChanged,
|
|
|
|
_onIsActiveWalletChanged,
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
2023-01-16 22:37:12 +00:00
|
|
|
_i7.MainDB get db => (super.noSuchMethod(
|
2023-01-16 21:04:03 +00:00
|
|
|
Invocation.getter(#db),
|
2023-01-16 22:37:12 +00:00
|
|
|
returnValue: _FakeMainDB_5(
|
2023-01-13 17:13:52 +00:00
|
|
|
this,
|
2023-01-16 21:04:03 +00:00
|
|
|
Invocation.getter(#db),
|
2023-01-13 17:13:52 +00:00
|
|
|
),
|
2023-01-16 22:37:12 +00:00
|
|
|
) as _i7.MainDB);
|
2023-01-13 17:13:52 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
bool validateAddress(String? address) => (super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#validateAddress,
|
|
|
|
[address],
|
|
|
|
),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> updateSentCachedTxData(Map<String, dynamic>? txData) =>
|
2022-11-09 23:48:43 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#updateSentCachedTxData,
|
|
|
|
[txData],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-11-09 23:48:43 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<bool> testNetworkConnection() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#testNetworkConnection,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<bool>.value(false),
|
|
|
|
) as _i11.Future<bool>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
|
|
|
void startNetworkAlivePinging() => super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#startNetworkAlivePinging,
|
|
|
|
[],
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
|
|
|
void stopNetworkAlivePinging() => super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#stopNetworkAlivePinging,
|
|
|
|
[],
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>> prepareSendPublic({
|
2022-10-16 06:50:10 +00:00
|
|
|
required String? address,
|
2023-04-09 23:02:11 +00:00
|
|
|
required _i8.Amount? amount,
|
2022-10-16 06:50:10 +00:00
|
|
|
Map<String, dynamic>? args,
|
|
|
|
}) =>
|
2022-09-09 17:23:15 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#prepareSendPublic,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#address: address,
|
2023-04-09 23:02:11 +00:00
|
|
|
#amount: amount,
|
2022-10-16 06:50:10 +00:00
|
|
|
#args: args,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
|
|
) as _i11.Future<Map<String, dynamic>>);
|
2022-09-09 17:23:15 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<String> confirmSendPublic({dynamic txData}) =>
|
2023-01-12 03:17:12 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#confirmSendPublic,
|
|
|
|
[],
|
|
|
|
{#txData: txData},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<String>.value(''),
|
|
|
|
) as _i11.Future<String>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>> prepareSend({
|
2022-10-16 06:50:10 +00:00
|
|
|
required String? address,
|
2023-04-09 23:02:11 +00:00
|
|
|
required _i8.Amount? amount,
|
2022-10-16 06:50:10 +00:00
|
|
|
Map<String, dynamic>? args,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#prepareSend,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#address: address,
|
2023-04-09 23:02:11 +00:00
|
|
|
#amount: amount,
|
2022-10-16 06:50:10 +00:00
|
|
|
#args: args,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
|
|
) as _i11.Future<Map<String, dynamic>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
|
2022-10-16 06:50:10 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#confirmSend,
|
|
|
|
[],
|
|
|
|
{#txData: txData},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<String>.value(''),
|
|
|
|
) as _i11.Future<String>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
|
|
|
int estimateTxFee({
|
|
|
|
required int? vSize,
|
|
|
|
required int? feeRatePerKB,
|
|
|
|
}) =>
|
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#estimateTxFee,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#vSize: vSize,
|
|
|
|
#feeRatePerKB: feeRatePerKB,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue: 0,
|
|
|
|
) as int);
|
|
|
|
@override
|
|
|
|
dynamic coinSelection(
|
|
|
|
int? satoshiAmountToSend,
|
|
|
|
int? selectedTxFeeRate,
|
|
|
|
String? _recipientAddress,
|
|
|
|
bool? isSendAll, {
|
|
|
|
int? additionalOutputs = 0,
|
2023-04-09 23:02:11 +00:00
|
|
|
List<_i13.UTXO>? utxos,
|
2022-10-16 06:50:10 +00:00
|
|
|
}) =>
|
|
|
|
super.noSuchMethod(Invocation.method(
|
|
|
|
#coinSelection,
|
|
|
|
[
|
|
|
|
satoshiAmountToSend,
|
|
|
|
selectedTxFeeRate,
|
|
|
|
_recipientAddress,
|
|
|
|
isSendAll,
|
|
|
|
],
|
|
|
|
{
|
|
|
|
#additionalOutputs: additionalOutputs,
|
|
|
|
#utxos: utxos,
|
|
|
|
},
|
|
|
|
));
|
2022-09-09 17:23:15 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<_i14.SigningData>> fetchBuildTxData(
|
|
|
|
List<_i13.UTXO>? utxosToUse) =>
|
2022-10-16 06:50:10 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#fetchBuildTxData,
|
|
|
|
[utxosToUse],
|
|
|
|
),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<_i14.SigningData>>.value(<_i14.SigningData>[]),
|
|
|
|
) as _i11.Future<List<_i14.SigningData>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>> buildTransaction({
|
|
|
|
required List<_i14.SigningData>? utxoSigningData,
|
2022-10-16 06:50:10 +00:00
|
|
|
required List<String>? recipients,
|
|
|
|
required List<int>? satoshiAmounts,
|
|
|
|
}) =>
|
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#buildTransaction,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#utxoSigningData: utxoSigningData,
|
|
|
|
#recipients: recipients,
|
|
|
|
#satoshiAmounts: satoshiAmounts,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
|
|
) as _i11.Future<Map<String, dynamic>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#updateNode,
|
|
|
|
[shouldRefresh],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> initializeNew() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#initializeNew,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> initializeExisting() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#initializeExisting,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<bool> refreshIfThereIsNewData() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#refreshIfThereIsNewData,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<bool>.value(false),
|
|
|
|
) as _i11.Future<bool>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> getAllTxsToWatch() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getAllTxsToWatch,
|
2023-01-12 03:17:12 +00:00
|
|
|
[],
|
2022-10-16 06:50:10 +00:00
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> refresh() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#refresh,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
List<Map<dynamic, _i15.LelantusCoin>> getLelantusCoinMap() =>
|
2022-10-16 06:50:10 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getLelantusCoinMap,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: <Map<dynamic, _i15.LelantusCoin>>[],
|
|
|
|
) as List<Map<dynamic, _i15.LelantusCoin>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> anonymizeAllPublicFunds() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#anonymizeAllPublicFunds,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<Map<String, dynamic>>> createMintsFromAmount(int? total) =>
|
2022-10-16 06:50:10 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#createMintsFromAmount,
|
|
|
|
[total],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<List<Map<String, dynamic>>>.value(
|
2022-10-16 06:50:10 +00:00
|
|
|
<Map<String, dynamic>>[]),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i11.Future<List<Map<String, dynamic>>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<String> submitHexToNetwork(String? hex) => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#submitHexToNetwork,
|
|
|
|
[hex],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<String>.value(''),
|
|
|
|
) as _i11.Future<String>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>> buildMintTransaction(
|
|
|
|
List<_i13.UTXO>? utxosToUse,
|
2022-10-16 06:50:10 +00:00
|
|
|
int? satoshisPerRecipient,
|
|
|
|
List<Map<String, dynamic>>? mintsMap,
|
|
|
|
) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#buildMintTransaction,
|
|
|
|
[
|
|
|
|
utxosToUse,
|
|
|
|
satoshisPerRecipient,
|
|
|
|
mintsMap,
|
|
|
|
],
|
|
|
|
),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
|
|
) as _i11.Future<Map<String, dynamic>>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> checkReceivingAddressForTransactions() =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#checkReceivingAddressForTransactions,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> checkChangeAddressForTransactions() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#checkChangeAddressForTransactions,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> fullRescan(
|
2022-10-16 06:50:10 +00:00
|
|
|
int? maxUnusedAddressGap,
|
|
|
|
int? maxNumberOfIndexesToCheck,
|
|
|
|
) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#fullRescan,
|
|
|
|
[
|
|
|
|
maxUnusedAddressGap,
|
|
|
|
maxNumberOfIndexesToCheck,
|
|
|
|
],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> recoverFromMnemonic({
|
2022-10-16 06:50:10 +00:00
|
|
|
required String? mnemonic,
|
2023-02-03 22:34:06 +00:00
|
|
|
String? mnemonicPassphrase,
|
2022-10-16 06:50:10 +00:00
|
|
|
required int? maxUnusedAddressGap,
|
|
|
|
required int? maxNumberOfIndexesToCheck,
|
|
|
|
required int? height,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#recoverFromMnemonic,
|
|
|
|
[],
|
|
|
|
{
|
2022-08-26 08:11:35 +00:00
|
|
|
#mnemonic: mnemonic,
|
2023-02-03 22:34:06 +00:00
|
|
|
#mnemonicPassphrase: mnemonicPassphrase,
|
2022-08-26 08:11:35 +00:00
|
|
|
#maxUnusedAddressGap: maxUnusedAddressGap,
|
|
|
|
#maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck,
|
2022-10-16 06:50:10 +00:00
|
|
|
#height: height,
|
|
|
|
},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<int, dynamic>> getSetDataMap(int? latestSetId) =>
|
2022-10-16 06:50:10 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getSetDataMap,
|
|
|
|
[latestSetId],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<Map<int, dynamic>>.value(<int, dynamic>{}),
|
|
|
|
) as _i11.Future<Map<int, dynamic>>);
|
2022-09-09 17:23:15 +00:00
|
|
|
@override
|
2023-05-16 17:05:25 +00:00
|
|
|
_i11.Future<void> getTransactionCacheEarly(List<String>? allAddresses) =>
|
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getTransactionCacheEarly,
|
|
|
|
[allAddresses],
|
|
|
|
),
|
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<Map<String, dynamic>>> fetchAnonymitySets() =>
|
2022-10-16 06:50:10 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#fetchAnonymitySets,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<List<Map<String, dynamic>>>.value(
|
2022-10-16 06:50:10 +00:00
|
|
|
<Map<String, dynamic>>[]),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i11.Future<List<Map<String, dynamic>>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<int> getLatestSetId() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getLatestSetId,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<int>.value(0),
|
|
|
|
) as _i11.Future<int>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<dynamic>> getUsedCoinSerials() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getUsedCoinSerials,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<List<dynamic>>.value(<dynamic>[]),
|
|
|
|
) as _i11.Future<List<dynamic>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> exit() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#exit,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<dynamic> getCoinsToJoinSplit(int? required) =>
|
2023-01-12 03:17:12 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getCoinsToJoinSplit,
|
|
|
|
[required],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<dynamic>.value(),
|
|
|
|
) as _i11.Future<dynamic>);
|
2022-08-26 15:15:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<int> estimateJoinSplitFee(int? spendAmount) =>
|
2023-01-12 03:17:12 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#estimateJoinSplitFee,
|
|
|
|
[spendAmount],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<int>.value(0),
|
|
|
|
) as _i11.Future<int>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<_i8.Amount> estimateFeeFor(
|
|
|
|
_i8.Amount? amount,
|
2022-10-16 06:50:10 +00:00
|
|
|
int? feeRate,
|
|
|
|
) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#estimateFeeFor,
|
|
|
|
[
|
2023-04-09 23:02:11 +00:00
|
|
|
amount,
|
2022-10-16 06:50:10 +00:00
|
|
|
feeRate,
|
|
|
|
],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<_i8.Amount>.value(_FakeAmount_6(
|
|
|
|
this,
|
|
|
|
Invocation.method(
|
|
|
|
#estimateFeeFor,
|
|
|
|
[
|
|
|
|
amount,
|
|
|
|
feeRate,
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
) as _i11.Future<_i8.Amount>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<_i8.Amount> estimateFeeForPublic(
|
|
|
|
_i8.Amount? amount,
|
2022-10-16 06:50:10 +00:00
|
|
|
int? feeRate,
|
|
|
|
) =>
|
2022-09-09 17:23:15 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#estimateFeeForPublic,
|
|
|
|
[
|
2023-04-09 23:02:11 +00:00
|
|
|
amount,
|
2022-10-16 06:50:10 +00:00
|
|
|
feeRate,
|
|
|
|
],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<_i8.Amount>.value(_FakeAmount_6(
|
|
|
|
this,
|
|
|
|
Invocation.method(
|
|
|
|
#estimateFeeForPublic,
|
|
|
|
[
|
|
|
|
amount,
|
|
|
|
feeRate,
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
) as _i11.Future<_i8.Amount>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i8.Amount roughFeeEstimate(
|
2022-10-16 06:50:10 +00:00
|
|
|
int? inputCount,
|
|
|
|
int? outputCount,
|
|
|
|
int? feeRatePerKB,
|
|
|
|
) =>
|
2022-09-09 17:23:15 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#roughFeeEstimate,
|
|
|
|
[
|
|
|
|
inputCount,
|
|
|
|
outputCount,
|
|
|
|
feeRatePerKB,
|
|
|
|
],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _FakeAmount_6(
|
|
|
|
this,
|
|
|
|
Invocation.method(
|
|
|
|
#roughFeeEstimate,
|
|
|
|
[
|
|
|
|
inputCount,
|
|
|
|
outputCount,
|
|
|
|
feeRatePerKB,
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
) as _i8.Amount);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<_i8.Amount> sweepAllEstimate(int? feeRate) => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#sweepAllEstimate,
|
|
|
|
[feeRate],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<_i8.Amount>.value(_FakeAmount_6(
|
|
|
|
this,
|
|
|
|
Invocation.method(
|
|
|
|
#sweepAllEstimate,
|
|
|
|
[feeRate],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
) as _i11.Future<_i8.Amount>);
|
2022-09-09 17:23:15 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<Map<String, dynamic>>> fastFetch(
|
2023-01-12 03:17:12 +00:00
|
|
|
List<String>? allTxHashes) =>
|
2022-10-16 06:50:10 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#fastFetch,
|
|
|
|
[allTxHashes],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<List<Map<String, dynamic>>>.value(
|
2022-10-16 06:50:10 +00:00
|
|
|
<Map<String, dynamic>>[]),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i11.Future<List<Map<String, dynamic>>>);
|
2022-09-09 17:23:15 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<_i13.Address, _i13.Transaction>> getJMintTransactions(
|
2023-01-13 17:13:52 +00:00
|
|
|
_i5.CachedElectrumX? cachedClient,
|
2022-10-16 06:50:10 +00:00
|
|
|
List<String>? transactions,
|
2023-04-09 23:02:11 +00:00
|
|
|
_i12.Coin? coin,
|
2022-10-16 06:50:10 +00:00
|
|
|
) =>
|
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getJMintTransactions,
|
|
|
|
[
|
|
|
|
cachedClient,
|
|
|
|
transactions,
|
|
|
|
coin,
|
|
|
|
],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<Map<_i13.Address, _i13.Transaction>>.value(
|
|
|
|
<_i13.Address, _i13.Transaction>{}),
|
|
|
|
) as _i11.Future<Map<_i13.Address, _i13.Transaction>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<bool> generateNewAddress() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#generateNewAddress,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<bool>.value(false),
|
|
|
|
) as _i11.Future<bool>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i8.Amount availablePrivateBalance() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#availablePrivateBalance,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _FakeAmount_6(
|
2022-10-16 06:50:10 +00:00
|
|
|
this,
|
|
|
|
Invocation.method(
|
|
|
|
#availablePrivateBalance,
|
|
|
|
[],
|
|
|
|
),
|
2023-01-12 03:17:12 +00:00
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i8.Amount);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i8.Amount availablePublicBalance() => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#availablePublicBalance,
|
|
|
|
[],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _FakeAmount_6(
|
2022-10-16 06:50:10 +00:00
|
|
|
this,
|
|
|
|
Invocation.method(
|
|
|
|
#availablePublicBalance,
|
|
|
|
[],
|
|
|
|
),
|
2023-01-12 03:17:12 +00:00
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i8.Amount);
|
2023-01-12 03:17:12 +00:00
|
|
|
@override
|
2023-01-13 17:13:52 +00:00
|
|
|
void initCache(
|
|
|
|
String? walletId,
|
2023-04-09 23:02:11 +00:00
|
|
|
_i12.Coin? coin,
|
2023-01-13 17:13:52 +00:00
|
|
|
) =>
|
|
|
|
super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#initCache,
|
|
|
|
[
|
|
|
|
walletId,
|
|
|
|
coin,
|
|
|
|
],
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> updateCachedId(String? id) => (super.noSuchMethod(
|
2023-01-13 17:13:52 +00:00
|
|
|
Invocation.method(
|
|
|
|
#updateCachedId,
|
|
|
|
[id],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2023-01-13 17:13:52 +00:00
|
|
|
@override
|
|
|
|
int getCachedChainHeight() => (super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getCachedChainHeight,
|
|
|
|
[],
|
|
|
|
),
|
|
|
|
returnValue: 0,
|
|
|
|
) as int);
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> updateCachedChainHeight(int? height) => (super.noSuchMethod(
|
2023-01-13 17:13:52 +00:00
|
|
|
Invocation.method(
|
|
|
|
#updateCachedChainHeight,
|
|
|
|
[height],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2023-01-13 17:13:52 +00:00
|
|
|
@override
|
|
|
|
bool getCachedIsFavorite() => (super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getCachedIsFavorite,
|
|
|
|
[],
|
|
|
|
),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> updateCachedIsFavorite(bool? isFavorite) =>
|
2023-01-13 17:13:52 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#updateCachedIsFavorite,
|
|
|
|
[isFavorite],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2023-01-13 17:13:52 +00:00
|
|
|
@override
|
|
|
|
_i6.Balance getCachedBalance() => (super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getCachedBalance,
|
|
|
|
[],
|
|
|
|
),
|
|
|
|
returnValue: _FakeBalance_4(
|
|
|
|
this,
|
|
|
|
Invocation.method(
|
|
|
|
#getCachedBalance,
|
|
|
|
[],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
) as _i6.Balance);
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> updateCachedBalance(_i6.Balance? balance) =>
|
2023-01-13 17:13:52 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#updateCachedBalance,
|
|
|
|
[balance],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2023-01-13 17:13:52 +00:00
|
|
|
@override
|
|
|
|
_i6.Balance getCachedBalanceSecondary() => (super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getCachedBalanceSecondary,
|
|
|
|
[],
|
|
|
|
),
|
|
|
|
returnValue: _FakeBalance_4(
|
|
|
|
this,
|
|
|
|
Invocation.method(
|
|
|
|
#getCachedBalanceSecondary,
|
|
|
|
[],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
) as _i6.Balance);
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> updateCachedBalanceSecondary(_i6.Balance? balance) =>
|
2023-01-12 03:17:12 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
2023-01-13 17:13:52 +00:00
|
|
|
#updateCachedBalanceSecondary,
|
|
|
|
[balance],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2023-01-13 17:13:52 +00:00
|
|
|
@override
|
2023-03-23 15:37:49 +00:00
|
|
|
List<String> getWalletTokenContractAddresses() => (super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getWalletTokenContractAddresses,
|
|
|
|
[],
|
|
|
|
),
|
|
|
|
returnValue: <String>[],
|
|
|
|
) as List<String>);
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> updateWalletTokenContractAddresses(
|
2023-03-23 15:37:49 +00:00
|
|
|
List<String>? contractAddresses) =>
|
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#updateWalletTokenContractAddresses,
|
|
|
|
[contractAddresses],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2023-03-23 15:37:49 +00:00
|
|
|
@override
|
2023-01-20 21:57:54 +00:00
|
|
|
void initWalletDB({_i7.MainDB? mockableOverride}) => super.noSuchMethod(
|
2023-01-13 17:13:52 +00:00
|
|
|
Invocation.method(
|
2023-01-20 21:57:54 +00:00
|
|
|
#initWalletDB,
|
2023-01-19 20:07:08 +00:00
|
|
|
[],
|
2023-01-19 20:33:23 +00:00
|
|
|
{#mockableOverride: mockableOverride},
|
2023-01-13 17:13:52 +00:00
|
|
|
),
|
2023-01-19 20:33:23 +00:00
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
2023-01-13 17:13:52 +00:00
|
|
|
@override
|
|
|
|
void initFiroHive(String? walletId) => super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#initFiroHive,
|
|
|
|
[walletId],
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> firoUpdateJIndex(List<dynamic>? jIndex) =>
|
2023-01-13 17:13:52 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#firoUpdateJIndex,
|
|
|
|
[jIndex],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2023-01-13 17:13:52 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> firoUpdateLelantusCoins(List<dynamic>? lelantusCoins) =>
|
2023-01-13 17:13:52 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#firoUpdateLelantusCoins,
|
|
|
|
[lelantusCoins],
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2023-01-13 17:13:52 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<void> firoUpdateMintIndex(int? mintIndex) => (super.noSuchMethod(
|
2023-01-13 17:13:52 +00:00
|
|
|
Invocation.method(
|
|
|
|
#firoUpdateMintIndex,
|
|
|
|
[mintIndex],
|
2023-01-12 03:17:12 +00:00
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
|
|
|
) as _i11.Future<void>);
|
2022-08-26 08:11:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/// A class which mocks [ElectrumX].
|
|
|
|
///
|
|
|
|
/// See the documentation for Mockito's code generation for more information.
|
2023-01-13 17:13:52 +00:00
|
|
|
class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
2022-08-26 08:11:35 +00:00
|
|
|
MockElectrumX() {
|
|
|
|
_i1.throwOnMissingStub(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
2023-01-13 17:13:52 +00:00
|
|
|
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.setter(
|
|
|
|
#failovers,
|
|
|
|
_failovers,
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
int get currentFailoverIndex => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#currentFailoverIndex),
|
|
|
|
returnValue: 0,
|
|
|
|
) as int);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
|
|
|
set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.setter(
|
|
|
|
#currentFailoverIndex,
|
|
|
|
_currentFailoverIndex,
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
|
|
|
@override
|
|
|
|
String get host => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#host),
|
|
|
|
returnValue: '',
|
|
|
|
) as String);
|
|
|
|
@override
|
|
|
|
int get port => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#port),
|
|
|
|
returnValue: 0,
|
|
|
|
) as int);
|
|
|
|
@override
|
|
|
|
bool get useSSL => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#useSSL),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<dynamic> request({
|
2022-10-16 06:50:10 +00:00
|
|
|
required String? command,
|
|
|
|
List<dynamic>? args = const [],
|
|
|
|
Duration? connectionTimeout = const Duration(seconds: 60),
|
|
|
|
String? requestID,
|
|
|
|
int? retries = 2,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#request,
|
|
|
|
[],
|
|
|
|
{
|
2022-08-26 08:11:35 +00:00
|
|
|
#command: command,
|
|
|
|
#args: args,
|
|
|
|
#connectionTimeout: connectionTimeout,
|
|
|
|
#requestID: requestID,
|
2022-10-16 06:50:10 +00:00
|
|
|
#retries: retries,
|
|
|
|
},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<dynamic>.value(),
|
|
|
|
) as _i11.Future<dynamic>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<Map<String, dynamic>>> batchRequest({
|
2022-10-16 06:50:10 +00:00
|
|
|
required String? command,
|
|
|
|
required Map<String, List<dynamic>>? args,
|
|
|
|
Duration? connectionTimeout = const Duration(seconds: 60),
|
|
|
|
int? retries = 2,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#batchRequest,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#command: command,
|
|
|
|
#args: args,
|
|
|
|
#connectionTimeout: connectionTimeout,
|
|
|
|
#retries: retries,
|
|
|
|
},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<List<Map<String, dynamic>>>.value(
|
2022-10-16 06:50:10 +00:00
|
|
|
<Map<String, dynamic>>[]),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i11.Future<List<Map<String, dynamic>>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<bool> ping({
|
2022-10-16 06:50:10 +00:00
|
|
|
String? requestID,
|
|
|
|
int? retryCount = 1,
|
|
|
|
}) =>
|
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#ping,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#requestID: requestID,
|
|
|
|
#retryCount: retryCount,
|
|
|
|
},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<bool>.value(false),
|
|
|
|
) as _i11.Future<bool>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getBlockHeadTip,
|
|
|
|
[],
|
|
|
|
{#requestID: requestID},
|
|
|
|
),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
|
|
) as _i11.Future<Map<String, dynamic>>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getServerFeatures,
|
|
|
|
[],
|
|
|
|
{#requestID: requestID},
|
|
|
|
),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
|
|
) as _i11.Future<Map<String, dynamic>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<String> broadcastTransaction({
|
2022-10-16 06:50:10 +00:00
|
|
|
required String? rawTx,
|
|
|
|
String? requestID,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#broadcastTransaction,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#rawTx: rawTx,
|
|
|
|
#requestID: requestID,
|
|
|
|
},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<String>.value(''),
|
|
|
|
) as _i11.Future<String>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>> getBalance({
|
2022-10-16 06:50:10 +00:00
|
|
|
required String? scripthash,
|
|
|
|
String? requestID,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getBalance,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#scripthash: scripthash,
|
|
|
|
#requestID: requestID,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
|
|
) as _i11.Future<Map<String, dynamic>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<Map<String, dynamic>>> getHistory({
|
2022-10-16 06:50:10 +00:00
|
|
|
required String? scripthash,
|
|
|
|
String? requestID,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getHistory,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#scripthash: scripthash,
|
|
|
|
#requestID: requestID,
|
|
|
|
},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<List<Map<String, dynamic>>>.value(
|
2022-10-16 06:50:10 +00:00
|
|
|
<Map<String, dynamic>>[]),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i11.Future<List<Map<String, dynamic>>>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
2022-10-16 06:50:10 +00:00
|
|
|
{required Map<String, List<dynamic>>? args}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getBatchHistory,
|
|
|
|
[],
|
|
|
|
{#args: args},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
2022-10-16 06:50:10 +00:00
|
|
|
<String, List<Map<String, dynamic>>>{}),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i11.Future<Map<String, List<Map<String, dynamic>>>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<List<Map<String, dynamic>>> getUTXOs({
|
2022-10-16 06:50:10 +00:00
|
|
|
required String? scripthash,
|
|
|
|
String? requestID,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getUTXOs,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#scripthash: scripthash,
|
|
|
|
#requestID: requestID,
|
|
|
|
},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<List<Map<String, dynamic>>>.value(
|
2022-10-16 06:50:10 +00:00
|
|
|
<Map<String, dynamic>>[]),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i11.Future<List<Map<String, dynamic>>>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
2022-10-16 06:50:10 +00:00
|
|
|
{required Map<String, List<dynamic>>? args}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getBatchUTXOs,
|
|
|
|
[],
|
|
|
|
{#args: args},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
2022-10-16 06:50:10 +00:00
|
|
|
<String, List<Map<String, dynamic>>>{}),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i11.Future<Map<String, List<Map<String, dynamic>>>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>> getTransaction({
|
2022-10-16 06:50:10 +00:00
|
|
|
required String? txHash,
|
|
|
|
bool? verbose = true,
|
|
|
|
String? requestID,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getTransaction,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#txHash: txHash,
|
|
|
|
#verbose: verbose,
|
|
|
|
#requestID: requestID,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
|
|
) as _i11.Future<Map<String, dynamic>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>> getAnonymitySet({
|
2022-10-16 06:50:10 +00:00
|
|
|
String? groupId = r'1',
|
|
|
|
String? blockhash = r'',
|
|
|
|
String? requestID,
|
|
|
|
}) =>
|
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getAnonymitySet,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#groupId: groupId,
|
|
|
|
#blockhash: blockhash,
|
|
|
|
#requestID: requestID,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
|
|
) as _i11.Future<Map<String, dynamic>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<dynamic> getMintData({
|
2022-10-16 06:50:10 +00:00
|
|
|
dynamic mints,
|
|
|
|
String? requestID,
|
|
|
|
}) =>
|
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getMintData,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#mints: mints,
|
|
|
|
#requestID: requestID,
|
|
|
|
},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<dynamic>.value(),
|
|
|
|
) as _i11.Future<dynamic>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>> getUsedCoinSerials({
|
2022-10-16 06:50:10 +00:00
|
|
|
String? requestID,
|
|
|
|
required int? startNumber,
|
|
|
|
}) =>
|
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getUsedCoinSerials,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#requestID: requestID,
|
|
|
|
#startNumber: startNumber,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
|
|
) as _i11.Future<Map<String, dynamic>>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#getLatestCoinId,
|
|
|
|
[],
|
|
|
|
{#requestID: requestID},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<int>.value(0),
|
|
|
|
) as _i11.Future<int>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
2022-10-16 06:50:10 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getFeeRate,
|
|
|
|
[],
|
|
|
|
{#requestID: requestID},
|
|
|
|
),
|
|
|
|
returnValue:
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
|
|
) as _i11.Future<Map<String, dynamic>>);
|
2022-10-16 06:50:10 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<_i9.Decimal> estimateFee({
|
2022-10-16 06:50:10 +00:00
|
|
|
String? requestID,
|
|
|
|
required int? blocks,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#estimateFee,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#requestID: requestID,
|
|
|
|
#blocks: blocks,
|
|
|
|
},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<_i9.Decimal>.value(_FakeDecimal_7(
|
2022-10-16 06:50:10 +00:00
|
|
|
this,
|
|
|
|
Invocation.method(
|
|
|
|
#estimateFee,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#requestID: requestID,
|
|
|
|
#blocks: blocks,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
)),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i11.Future<_i9.Decimal>);
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2023-04-09 23:02:11 +00:00
|
|
|
_i11.Future<_i9.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#relayFee,
|
|
|
|
[],
|
|
|
|
{#requestID: requestID},
|
|
|
|
),
|
2023-04-09 23:02:11 +00:00
|
|
|
returnValue: _i11.Future<_i9.Decimal>.value(_FakeDecimal_7(
|
2022-10-16 06:50:10 +00:00
|
|
|
this,
|
|
|
|
Invocation.method(
|
|
|
|
#relayFee,
|
|
|
|
[],
|
|
|
|
{#requestID: requestID},
|
|
|
|
),
|
|
|
|
)),
|
2023-04-09 23:02:11 +00:00
|
|
|
) as _i11.Future<_i9.Decimal>);
|
2022-08-26 08:11:35 +00:00
|
|
|
}
|