4646 tx_pb2 as injective_permissions_tx_pb ,
4747)
4848from pyinjective .proto .injective .stream .v1beta1 import query_pb2 as chain_stream_query
49- from pyinjective .proto .injective .stream .v2 import query_pb2 as chain_stream_v2_query
5049from pyinjective .proto .injective .tokenfactory .v1beta1 import tx_pb2 as token_factory_tx_pb
5150from pyinjective .proto .injective .wasmx .v1 import tx_pb2 as wasmx_tx_pb
5251from pyinjective .utils .denom import Denom
@@ -2713,32 +2712,13 @@ def MsgVote(
27132712 def chain_stream_bank_balances_filter (
27142713 self , accounts : Optional [List [str ]] = None
27152714 ) -> chain_stream_query .BankBalancesFilter :
2716- """
2717- This method is deprecated and will be removed soon. Please use `chain_stream_bank_balances_v2_filter` instead
2718- """
2719- warn (
2720- "This method is deprecated. Use chain_stream_bank_balances_v2_filter instead" ,
2721- DeprecationWarning ,
2722- stacklevel = 2 ,
2723- )
2724-
27252715 accounts = accounts or ["*" ]
27262716 return chain_stream_query .BankBalancesFilter (accounts = accounts )
27272717
27282718 def chain_stream_subaccount_deposits_filter (
27292719 self ,
27302720 subaccount_ids : Optional [List [str ]] = None ,
27312721 ) -> chain_stream_query .SubaccountDepositsFilter :
2732- """
2733- This method is deprecated and will be removed soon.
2734- Please use `chain_stream_subaccount_deposits_v2_filter` instead
2735- """
2736- warn (
2737- "This method is deprecated. Use chain_stream_subaccount_deposits_v2_filter instead" ,
2738- DeprecationWarning ,
2739- stacklevel = 2 ,
2740- )
2741-
27422722 subaccount_ids = subaccount_ids or ["*" ]
27432723 return chain_stream_query .SubaccountDepositsFilter (subaccount_ids = subaccount_ids )
27442724
@@ -2747,11 +2727,6 @@ def chain_stream_trades_filter(
27472727 subaccount_ids : Optional [List [str ]] = None ,
27482728 market_ids : Optional [List [str ]] = None ,
27492729 ) -> chain_stream_query .TradesFilter :
2750- """
2751- This method is deprecated and will be removed soon. Please use `chain_stream_trades_v2_filter` instead
2752- """
2753- warn ("This method is deprecated. Use chain_stream_trades_v2_filter instead" , DeprecationWarning , stacklevel = 2 )
2754-
27552730 subaccount_ids = subaccount_ids or ["*" ]
27562731 market_ids = market_ids or ["*" ]
27572732 return chain_stream_query .TradesFilter (subaccount_ids = subaccount_ids , market_ids = market_ids )
@@ -2761,11 +2736,6 @@ def chain_stream_orders_filter(
27612736 subaccount_ids : Optional [List [str ]] = None ,
27622737 market_ids : Optional [List [str ]] = None ,
27632738 ) -> chain_stream_query .OrdersFilter :
2764- """
2765- This method is deprecated and will be removed soon. Please use `chain_stream_orders_v2_filter` instead
2766- """
2767- warn ("This method is deprecated. Use chain_stream_orders_v2_filter instead" , DeprecationWarning , stacklevel = 2 )
2768-
27692739 subaccount_ids = subaccount_ids or ["*" ]
27702740 market_ids = market_ids or ["*" ]
27712741 return chain_stream_query .OrdersFilter (subaccount_ids = subaccount_ids , market_ids = market_ids )
@@ -2774,13 +2744,6 @@ def chain_stream_orderbooks_filter(
27742744 self ,
27752745 market_ids : Optional [List [str ]] = None ,
27762746 ) -> chain_stream_query .OrderbookFilter :
2777- """
2778- This method is deprecated and will be removed soon. Please use `chain_stream_orderbooks_v2_filter` instead
2779- """
2780- warn (
2781- "This method is deprecated. Use chain_stream_orderbooks_v2_filter instead" , DeprecationWarning , stacklevel = 2
2782- )
2783-
27842747 market_ids = market_ids or ["*" ]
27852748 return chain_stream_query .OrderbookFilter (market_ids = market_ids )
27862749
@@ -2789,13 +2752,6 @@ def chain_stream_positions_filter(
27892752 subaccount_ids : Optional [List [str ]] = None ,
27902753 market_ids : Optional [List [str ]] = None ,
27912754 ) -> chain_stream_query .PositionsFilter :
2792- """
2793- This method is deprecated and will be removed soon. Please use `chain_stream_positions_v2_filter` instead
2794- """
2795- warn (
2796- "This method is deprecated. Use chain_stream_positions_v2_filter instead" , DeprecationWarning , stacklevel = 2
2797- )
2798-
27992755 subaccount_ids = subaccount_ids or ["*" ]
28002756 market_ids = market_ids or ["*" ]
28012757 return chain_stream_query .PositionsFilter (subaccount_ids = subaccount_ids , market_ids = market_ids )
@@ -2804,72 +2760,9 @@ def chain_stream_oracle_price_filter(
28042760 self ,
28052761 symbols : Optional [List [str ]] = None ,
28062762 ) -> chain_stream_query .PositionsFilter :
2807- """
2808- This method is deprecated and will be removed soon. Please use `chain_stream_oracle_price_v2_filter` instead
2809- """
2810- warn (
2811- "This method is deprecated. Use chain_stream_oracle_price_v2_filter instead" ,
2812- DeprecationWarning ,
2813- stacklevel = 2 ,
2814- )
2815-
28162763 symbols = symbols or ["*" ]
28172764 return chain_stream_query .OraclePriceFilter (symbol = symbols )
28182765
2819- def chain_stream_bank_balances_v2_filter (
2820- self , accounts : Optional [List [str ]] = None
2821- ) -> chain_stream_v2_query .BankBalancesFilter :
2822- accounts = accounts or ["*" ]
2823- return chain_stream_v2_query .BankBalancesFilter (accounts = accounts )
2824-
2825- def chain_stream_subaccount_deposits_v2_filter (
2826- self ,
2827- subaccount_ids : Optional [List [str ]] = None ,
2828- ) -> chain_stream_v2_query .SubaccountDepositsFilter :
2829- subaccount_ids = subaccount_ids or ["*" ]
2830- return chain_stream_v2_query .SubaccountDepositsFilter (subaccount_ids = subaccount_ids )
2831-
2832- def chain_stream_trades_v2_filter (
2833- self ,
2834- subaccount_ids : Optional [List [str ]] = None ,
2835- market_ids : Optional [List [str ]] = None ,
2836- ) -> chain_stream_v2_query .TradesFilter :
2837- subaccount_ids = subaccount_ids or ["*" ]
2838- market_ids = market_ids or ["*" ]
2839- return chain_stream_v2_query .TradesFilter (subaccount_ids = subaccount_ids , market_ids = market_ids )
2840-
2841- def chain_stream_orders_v2_filter (
2842- self ,
2843- subaccount_ids : Optional [List [str ]] = None ,
2844- market_ids : Optional [List [str ]] = None ,
2845- ) -> chain_stream_v2_query .OrdersFilter :
2846- subaccount_ids = subaccount_ids or ["*" ]
2847- market_ids = market_ids or ["*" ]
2848- return chain_stream_v2_query .OrdersFilter (subaccount_ids = subaccount_ids , market_ids = market_ids )
2849-
2850- def chain_stream_orderbooks_v2_filter (
2851- self ,
2852- market_ids : Optional [List [str ]] = None ,
2853- ) -> chain_stream_v2_query .OrderbookFilter :
2854- market_ids = market_ids or ["*" ]
2855- return chain_stream_v2_query .OrderbookFilter (market_ids = market_ids )
2856-
2857- def chain_stream_positions_v2_filter (
2858- self ,
2859- subaccount_ids : Optional [List [str ]] = None ,
2860- market_ids : Optional [List [str ]] = None ,
2861- ) -> chain_stream_v2_query .PositionsFilter :
2862- subaccount_ids = subaccount_ids or ["*" ]
2863- market_ids = market_ids or ["*" ]
2864- return chain_stream_v2_query .PositionsFilter (subaccount_ids = subaccount_ids , market_ids = market_ids )
2865-
2866- def chain_stream_oracle_price_v2_filter (
2867- self ,
2868- symbols : Optional [List [str ]] = None ,
2869- ) -> chain_stream_v2_query .PositionsFilter :
2870- symbols = symbols or ["*" ]
2871- return chain_stream_v2_query .OraclePriceFilter (symbol = symbols )
2872-
28732766 # endregion
28742767
28752768 # ------------------------------------------------
0 commit comments