drive/query/token_status_drive_query.rs
1use crate::drive::Drive;
2use bincode::{Decode, Encode};
3use dpp::identifier::Identifier;
4use grovedb::PathQuery;
5
6/// Token status drive query struct
7#[derive(Debug, PartialEq, Clone, Encode, Decode)]
8pub struct TokenStatusDriveQuery {
9 /// the token id
10 pub token_id: Identifier,
11}
12
13impl TokenStatusDriveQuery {
14 /// Operations to construct a path query.
15 pub fn construct_path_query(&self) -> PathQuery {
16 Drive::token_status_query(self.token_id.to_buffer())
17 }
18}