Skip to content

Commit

Permalink
chore(sdk): derive encoding for vote poll queries
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumExplorer committed Nov 15, 2024
1 parent ebe13b5 commit b9e129d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use bincode::{Decode, Encode};
#[cfg(feature = "verify")]
use super::ContractLookupFn;
use crate::drive::votes::paths::VotePollPaths;
Expand All @@ -13,6 +12,7 @@ use crate::fees::op::LowLevelDriveOperation;
#[cfg(feature = "server")]
use crate::query::GroveError;
use crate::query::Query;
use bincode::{Decode, Encode};
#[cfg(feature = "server")]
use dpp::block::block_info::BlockInfo;
use dpp::identifier::Identifier;
Expand Down
2 changes: 1 addition & 1 deletion packages/rs-drive/src/query/vote_poll_vote_state_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use crate::error::Error;
use crate::fees::op::LowLevelDriveOperation;
#[cfg(feature = "server")]
use crate::query::GroveError;
use bincode::{Decode, Encode};
use dpp::block::block_info::BlockInfo;
use dpp::data_contract::DataContract;
use dpp::identifier::Identifier;
Expand All @@ -31,7 +32,6 @@ use grovedb::query_result_type::QueryResultType;
use grovedb::{Element, TransactionArg};
use grovedb::{PathQuery, Query, QueryItem, SizedQuery};
use platform_version::version::PlatformVersion;
use bincode::{Decode, Encode};

/// Represents the types of results that can be obtained from a contested document vote poll query.
///
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use bincode::{Decode, Encode};
use super::ContractLookupFn;
use crate::drive::votes::paths::vote_contested_resource_contract_documents_indexes_path_vec;
#[cfg(feature = "server")]
Expand All @@ -14,6 +13,7 @@ use crate::fees::op::LowLevelDriveOperation;
use crate::query::GroveError;
use crate::query::Query;
use crate::util::object_size_info::DataContractResolvedInfo;
use bincode::{Decode, Encode};
#[cfg(feature = "server")]
use dpp::block::block_info::BlockInfo;
use dpp::data_contract::accessors::v0::DataContractV0Getters;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use crate::fees::op::LowLevelDriveOperation;
use crate::query::GroveError;
use crate::query::Query;
use crate::util::common::encode::{decode_u64, encode_u64};
use bincode::{Decode, Encode};
#[cfg(feature = "server")]
use dpp::block::block_info::BlockInfo;
#[cfg(feature = "server")]
Expand All @@ -27,7 +28,6 @@ use grovedb::{PathQuery, SizedQuery};
use platform_version::version::PlatformVersion;
#[cfg(feature = "server")]
use std::collections::BTreeMap;
use bincode::{Decode, Encode};

/// Vote Poll Drive Query struct
#[derive(Debug, PartialEq, Clone, Encode, Decode)]
Expand Down
2 changes: 1 addition & 1 deletion packages/rs-drive/src/query/vote_query.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use crate::drive::votes::paths::vote_contested_resource_identity_votes_tree_path_for_identity_vec;
use crate::error::Error;
use crate::query::Query;
use bincode::{Decode, Encode};
use dpp::identifier::Identifier;
use dpp::voting::vote_polls::VotePoll;
use grovedb::{PathQuery, SizedQuery};
use bincode::{Decode, Encode};

/// Vote Drive Query struct
#[derive(Debug, PartialEq, Clone, Encode, Decode)]
Expand Down

0 comments on commit b9e129d

Please sign in to comment.