ic_web3_rs/transforms/
processors.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use super::transform::{
    ArrayResultTransformProcessor, ArrayResultTransformProcessorBuilder, SingleResultTransformProcessor,
    SingleResultTransformProcessorBuilder,
};

pub fn send_transaction_processor() -> SingleResultTransformProcessor {
    SingleResultTransformProcessorBuilder::default()
        .transaction_index(true)
        .build()
        .unwrap()
}

pub fn get_filter_changes_processor() -> ArrayResultTransformProcessor {
    ArrayResultTransformProcessorBuilder::default()
        .log_index(true)
        .transaction_index(true)
        .build()
        .unwrap()
}