From 22dd11f04aa1b77a545f52cf1776430fbf5b63b0 Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 12 Jun 2024 12:12:46 -0600 Subject: [PATCH] update mocks --- test/cached_electrumx_test.mocks.dart | 59 ++++++++++++++----- .../bitcoin/bitcoin_wallet_test.mocks.dart | 59 ++++++++++++++----- .../bitcoincash_wallet_test.mocks.dart | 59 ++++++++++++++----- .../dogecoin/dogecoin_wallet_test.mocks.dart | 59 ++++++++++++++----- .../namecoin/namecoin_wallet_test.mocks.dart | 59 ++++++++++++++----- .../particl/particl_wallet_test.mocks.dart | 59 ++++++++++++++----- 6 files changed, 258 insertions(+), 96 deletions(-) diff --git a/test/cached_electrumx_test.mocks.dart b/test/cached_electrumx_test.mocks.dart index e8bdc2e53..8a0ea1c71 100644 --- a/test/cached_electrumx_test.mocks.dart +++ b/test/cached_electrumx_test.mocks.dart @@ -428,22 +428,6 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { _i7.Future>.value({}), ) as _i7.Future>); @override - _i7.Future> getSparkUnhashedUsedCoinsTags({ - String? requestID, - required int? startNumber, - }) => - (super.noSuchMethod( - Invocation.method( - #getSparkUnhashedUsedCoinsTags, - [], - { - #requestID: requestID, - #startNumber: startNumber, - }, - ), - returnValue: _i7.Future>.value([]), - ) as _i7.Future>); - @override _i7.Future>> getSparkMintMetaData({ String? requestID, required List? sparkCoinHashes, @@ -471,6 +455,49 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future.value(0), ) as _i7.Future); @override + _i7.Future> getMempoolTxids({String? requestID}) => + (super.noSuchMethod( + Invocation.method( + #getMempoolTxids, + [], + {#requestID: requestID}, + ), + returnValue: _i7.Future>.value({}), + ) as _i7.Future>); + @override + _i7.Future> getMempoolSparkData({ + String? requestID, + required List? txids, + }) => + (super.noSuchMethod( + Invocation.method( + #getMempoolSparkData, + [], + { + #requestID: requestID, + #txids: txids, + }, + ), + returnValue: + _i7.Future>.value({}), + ) as _i7.Future>); + @override + _i7.Future>> getSparkUnhashedUsedCoinsTagsWithTxHashes({ + String? requestID, + required int? startNumber, + }) => + (super.noSuchMethod( + Invocation.method( + #getSparkUnhashedUsedCoinsTagsWithTxHashes, + [], + { + #requestID: requestID, + #startNumber: startNumber, + }, + ), + returnValue: _i7.Future>>.value(>[]), + ) as _i7.Future>>); + @override _i7.Future> getFeeRate({String? requestID}) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart index af94be20b..078584849 100644 --- a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart +++ b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart @@ -425,22 +425,6 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { _i6.Future>.value({}), ) as _i6.Future>); @override - _i6.Future> getSparkUnhashedUsedCoinsTags({ - String? requestID, - required int? startNumber, - }) => - (super.noSuchMethod( - Invocation.method( - #getSparkUnhashedUsedCoinsTags, - [], - { - #requestID: requestID, - #startNumber: startNumber, - }, - ), - returnValue: _i6.Future>.value([]), - ) as _i6.Future>); - @override _i6.Future>> getSparkMintMetaData({ String? requestID, required List? sparkCoinHashes, @@ -468,6 +452,49 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(0), ) as _i6.Future); @override + _i6.Future> getMempoolTxids({String? requestID}) => + (super.noSuchMethod( + Invocation.method( + #getMempoolTxids, + [], + {#requestID: requestID}, + ), + returnValue: _i6.Future>.value({}), + ) as _i6.Future>); + @override + _i6.Future> getMempoolSparkData({ + String? requestID, + required List? txids, + }) => + (super.noSuchMethod( + Invocation.method( + #getMempoolSparkData, + [], + { + #requestID: requestID, + #txids: txids, + }, + ), + returnValue: + _i6.Future>.value({}), + ) as _i6.Future>); + @override + _i6.Future>> getSparkUnhashedUsedCoinsTagsWithTxHashes({ + String? requestID, + required int? startNumber, + }) => + (super.noSuchMethod( + Invocation.method( + #getSparkUnhashedUsedCoinsTagsWithTxHashes, + [], + { + #requestID: requestID, + #startNumber: startNumber, + }, + ), + returnValue: _i6.Future>>.value(>[]), + ) as _i6.Future>>); + @override _i6.Future> getFeeRate({String? requestID}) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart index 85565e3cf..25ae15056 100644 --- a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart +++ b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart @@ -425,22 +425,6 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { _i6.Future>.value({}), ) as _i6.Future>); @override - _i6.Future> getSparkUnhashedUsedCoinsTags({ - String? requestID, - required int? startNumber, - }) => - (super.noSuchMethod( - Invocation.method( - #getSparkUnhashedUsedCoinsTags, - [], - { - #requestID: requestID, - #startNumber: startNumber, - }, - ), - returnValue: _i6.Future>.value([]), - ) as _i6.Future>); - @override _i6.Future>> getSparkMintMetaData({ String? requestID, required List? sparkCoinHashes, @@ -468,6 +452,49 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(0), ) as _i6.Future); @override + _i6.Future> getMempoolTxids({String? requestID}) => + (super.noSuchMethod( + Invocation.method( + #getMempoolTxids, + [], + {#requestID: requestID}, + ), + returnValue: _i6.Future>.value({}), + ) as _i6.Future>); + @override + _i6.Future> getMempoolSparkData({ + String? requestID, + required List? txids, + }) => + (super.noSuchMethod( + Invocation.method( + #getMempoolSparkData, + [], + { + #requestID: requestID, + #txids: txids, + }, + ), + returnValue: + _i6.Future>.value({}), + ) as _i6.Future>); + @override + _i6.Future>> getSparkUnhashedUsedCoinsTagsWithTxHashes({ + String? requestID, + required int? startNumber, + }) => + (super.noSuchMethod( + Invocation.method( + #getSparkUnhashedUsedCoinsTagsWithTxHashes, + [], + { + #requestID: requestID, + #startNumber: startNumber, + }, + ), + returnValue: _i6.Future>>.value(>[]), + ) as _i6.Future>>); + @override _i6.Future> getFeeRate({String? requestID}) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart index 03e117e4b..24b7bd226 100644 --- a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart +++ b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart @@ -425,22 +425,6 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { _i6.Future>.value({}), ) as _i6.Future>); @override - _i6.Future> getSparkUnhashedUsedCoinsTags({ - String? requestID, - required int? startNumber, - }) => - (super.noSuchMethod( - Invocation.method( - #getSparkUnhashedUsedCoinsTags, - [], - { - #requestID: requestID, - #startNumber: startNumber, - }, - ), - returnValue: _i6.Future>.value([]), - ) as _i6.Future>); - @override _i6.Future>> getSparkMintMetaData({ String? requestID, required List? sparkCoinHashes, @@ -468,6 +452,49 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(0), ) as _i6.Future); @override + _i6.Future> getMempoolTxids({String? requestID}) => + (super.noSuchMethod( + Invocation.method( + #getMempoolTxids, + [], + {#requestID: requestID}, + ), + returnValue: _i6.Future>.value({}), + ) as _i6.Future>); + @override + _i6.Future> getMempoolSparkData({ + String? requestID, + required List? txids, + }) => + (super.noSuchMethod( + Invocation.method( + #getMempoolSparkData, + [], + { + #requestID: requestID, + #txids: txids, + }, + ), + returnValue: + _i6.Future>.value({}), + ) as _i6.Future>); + @override + _i6.Future>> getSparkUnhashedUsedCoinsTagsWithTxHashes({ + String? requestID, + required int? startNumber, + }) => + (super.noSuchMethod( + Invocation.method( + #getSparkUnhashedUsedCoinsTagsWithTxHashes, + [], + { + #requestID: requestID, + #startNumber: startNumber, + }, + ), + returnValue: _i6.Future>>.value(>[]), + ) as _i6.Future>>); + @override _i6.Future> getFeeRate({String? requestID}) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart index 4e57a7657..e8927e3e7 100644 --- a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart +++ b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart @@ -425,22 +425,6 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { _i6.Future>.value({}), ) as _i6.Future>); @override - _i6.Future> getSparkUnhashedUsedCoinsTags({ - String? requestID, - required int? startNumber, - }) => - (super.noSuchMethod( - Invocation.method( - #getSparkUnhashedUsedCoinsTags, - [], - { - #requestID: requestID, - #startNumber: startNumber, - }, - ), - returnValue: _i6.Future>.value([]), - ) as _i6.Future>); - @override _i6.Future>> getSparkMintMetaData({ String? requestID, required List? sparkCoinHashes, @@ -468,6 +452,49 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(0), ) as _i6.Future); @override + _i6.Future> getMempoolTxids({String? requestID}) => + (super.noSuchMethod( + Invocation.method( + #getMempoolTxids, + [], + {#requestID: requestID}, + ), + returnValue: _i6.Future>.value({}), + ) as _i6.Future>); + @override + _i6.Future> getMempoolSparkData({ + String? requestID, + required List? txids, + }) => + (super.noSuchMethod( + Invocation.method( + #getMempoolSparkData, + [], + { + #requestID: requestID, + #txids: txids, + }, + ), + returnValue: + _i6.Future>.value({}), + ) as _i6.Future>); + @override + _i6.Future>> getSparkUnhashedUsedCoinsTagsWithTxHashes({ + String? requestID, + required int? startNumber, + }) => + (super.noSuchMethod( + Invocation.method( + #getSparkUnhashedUsedCoinsTagsWithTxHashes, + [], + { + #requestID: requestID, + #startNumber: startNumber, + }, + ), + returnValue: _i6.Future>>.value(>[]), + ) as _i6.Future>>); + @override _i6.Future> getFeeRate({String? requestID}) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/particl/particl_wallet_test.mocks.dart b/test/services/coins/particl/particl_wallet_test.mocks.dart index 9cb9db169..3490fc59f 100644 --- a/test/services/coins/particl/particl_wallet_test.mocks.dart +++ b/test/services/coins/particl/particl_wallet_test.mocks.dart @@ -425,22 +425,6 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { _i6.Future>.value({}), ) as _i6.Future>); @override - _i6.Future> getSparkUnhashedUsedCoinsTags({ - String? requestID, - required int? startNumber, - }) => - (super.noSuchMethod( - Invocation.method( - #getSparkUnhashedUsedCoinsTags, - [], - { - #requestID: requestID, - #startNumber: startNumber, - }, - ), - returnValue: _i6.Future>.value([]), - ) as _i6.Future>); - @override _i6.Future>> getSparkMintMetaData({ String? requestID, required List? sparkCoinHashes, @@ -468,6 +452,49 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(0), ) as _i6.Future); @override + _i6.Future> getMempoolTxids({String? requestID}) => + (super.noSuchMethod( + Invocation.method( + #getMempoolTxids, + [], + {#requestID: requestID}, + ), + returnValue: _i6.Future>.value({}), + ) as _i6.Future>); + @override + _i6.Future> getMempoolSparkData({ + String? requestID, + required List? txids, + }) => + (super.noSuchMethod( + Invocation.method( + #getMempoolSparkData, + [], + { + #requestID: requestID, + #txids: txids, + }, + ), + returnValue: + _i6.Future>.value({}), + ) as _i6.Future>); + @override + _i6.Future>> getSparkUnhashedUsedCoinsTagsWithTxHashes({ + String? requestID, + required int? startNumber, + }) => + (super.noSuchMethod( + Invocation.method( + #getSparkUnhashedUsedCoinsTagsWithTxHashes, + [], + { + #requestID: requestID, + #startNumber: startNumber, + }, + ), + returnValue: _i6.Future>>.value(>[]), + ) as _i6.Future>>); + @override _i6.Future> getFeeRate({String? requestID}) => (super.noSuchMethod( Invocation.method(