2020-09-22 14:53:52 +02:00
|
|
|
// Copyright 2015-2020 Parity Technologies (UK) Ltd.
|
|
|
|
// This file is part of OpenEthereum.
|
2016-07-07 09:39:32 +02:00
|
|
|
|
2020-09-22 14:53:52 +02:00
|
|
|
// OpenEthereum is free software: you can redistribute it and/or modify
|
2016-07-07 09:39:32 +02:00
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
2020-09-22 14:53:52 +02:00
|
|
|
// OpenEthereum is distributed in the hope that it will be useful,
|
2016-07-07 09:39:32 +02:00
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
2020-09-22 14:53:52 +02:00
|
|
|
// along with OpenEthereum. If not, see <http://www.gnu.org/licenses/>.
|
2016-07-07 09:39:32 +02:00
|
|
|
|
|
|
|
//! Trace filter related types
|
|
|
|
|
2021-03-12 14:55:49 +01:00
|
|
|
use crate::ids::BlockId;
|
2018-01-10 13:35:18 +01:00
|
|
|
use ethereum_types::Address;
|
2016-07-07 09:39:32 +02:00
|
|
|
use std::ops::Range;
|
|
|
|
|
|
|
|
/// Easy to use trace filter.
|
|
|
|
pub struct Filter {
|
|
|
|
/// Range of filtering.
|
2016-12-09 23:01:43 +01:00
|
|
|
pub range: Range<BlockId>,
|
2016-07-07 09:39:32 +02:00
|
|
|
/// From address.
|
|
|
|
pub from_address: Vec<Address>,
|
|
|
|
/// To address.
|
|
|
|
pub to_address: Vec<Address>,
|
2017-10-03 10:03:46 +02:00
|
|
|
/// Output offset
|
|
|
|
pub after: Option<usize>,
|
|
|
|
/// Output amount
|
|
|
|
pub count: Option<usize>,
|
2016-07-07 09:39:32 +02:00
|
|
|
}
|