-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from kodadot/main
🔖 Speck v5.1.1
- Loading branch information
Showing
4 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
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,11 +1,12 @@ | ||
export const totalTokenEntities = ` | ||
SELECT COUNT(id) as total_count | ||
SELECT COUNT(DISTINCT token_id) as total_count | ||
FROM nft_entity | ||
WHERE | ||
($1::text IS NULL OR current_owner = $1) AND | ||
($6::text IS NULL OR issuer = $6) AND | ||
($5::text[] IS NULL OR issuer NOT IN (SELECT unnest($5))) AND | ||
($2::bigint IS NULL OR price >= $2::bigint) AND | ||
($3::bigint IS NULL OR price > $3::bigint) AND | ||
($4::bigint IS NULL OR price <= $4::bigint); | ||
` | ||
($4::bigint IS NULL OR price <= $4::bigint) AND | ||
($7::text[] IS NULL OR nft_entity.collection_id = ANY($7)); | ||
` |
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