Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal commands in /search/transactions #52

Merged
merged 10 commits into from
Oct 11, 2024

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions sql/indexer_internal_commands.sql
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,16 @@ WITH
bic.sequence_no,
bic.secondary_sequence_no
) i.id,
i.command_type,
i.command_type AS "command_type: InternalCommandType",
i.receiver_id,
i.fee,
i.hash,
pk.value AS receiver,
cri.coinbase_receiver,
cri.coinbase_receiver AS "coinbase_receiver?",
bic.sequence_no,
bic.secondary_sequence_no,
bic.block_id,
bic.status AS "status: TransactionStatus",
b.state_hash,
b.height
FROM
Expand All @@ -85,7 +86,7 @@ WITH
AND bic.secondary_sequence_no=cri.secondary_sequence_no
WHERE
(
$1<=b.height
$1>=b.height
OR $1 IS NULL
)
AND (
Expand Down Expand Up @@ -128,7 +129,7 @@ WITH
SELECT
i.*,
id_count.total_count,
ac.creation_fee
ac.creation_fee AS "creation_fee?"
FROM
id_count,
(
Expand All @@ -142,9 +143,9 @@ FROM
sequence_no,
secondary_sequence_no
LIMIT
5
$8
OFFSET
0
$9
) AS i
LEFT JOIN account_identifiers AS ai ON i.receiver_id=ai.public_key_id
LEFT JOIN accounts_created AS ac ON ai.id=ac.account_identifier_id
Expand Down
2 changes: 1 addition & 1 deletion sql/indexer_user_commands.sql
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ WITH
INNER JOIN blocks AS b ON buc.block_id=b.id
WHERE
(
$1<=b.height
$1>=b.height
OR $1 IS NULL
)
AND (
Expand Down
2 changes: 1 addition & 1 deletion sql/indexer_zkapp_commands.sql
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ WITH
INNER JOIN tokens AS token_update_body ON ai_update_body.token_id=token_update_body.id
WHERE
(
$1<=b.height
$1>=b.height
OR $1 IS NULL
)
AND (
Expand Down
Loading