-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: displayOptions + batch endpoints + keyset pagination + token_st…
…andard (#122)
- Loading branch information
1 parent
f0ab966
commit 8b6dc11
Showing
26 changed files
with
871 additions
and
400 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
use crate::config::Config; | ||
use digital_asset_types::feature_flag::FeatureFlags; | ||
|
||
pub struct FeatureFlags { | ||
pub enable_grand_total_query: bool, | ||
pub enable_collection_metadata: bool, | ||
} | ||
use crate::config::Config; | ||
|
||
pub fn get_feature_flags(config: &Config) -> FeatureFlags { | ||
FeatureFlags { | ||
enable_grand_total_query: config.enable_grand_total_query.unwrap_or(false), | ||
enable_collection_metadata: config.enable_collection_metadata.unwrap_or(false), | ||
enable_grand_total_query: config.enable_grand_total_query.unwrap_or(true), | ||
enable_collection_metadata: config.enable_collection_metadata.unwrap_or(true), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.