mirror of
https://github.com/GrassrootsEconomics/cic-dw.git
synced 2024-11-16 20:46:46 +01:00
parent
18020e8451
commit
e158ce28bc
@ -58,7 +58,7 @@ exclude AS (
|
|||||||
SELECT sys_address FROM sys_accounts WHERE sys_address IS NOT NULL
|
SELECT sys_address FROM sys_accounts WHERE sys_address IS NOT NULL
|
||||||
),
|
),
|
||||||
cmr_tokens AS (
|
cmr_tokens AS (
|
||||||
SELECT token_address from tokens WHERE token_symbol IN ('MBIP')
|
SELECT token_address from tokens WHERE token_symbol IN ('MBIP', 'MUN')
|
||||||
)
|
)
|
||||||
SELECT date_range.day AS x, COUNT(transactions.id) AS y
|
SELECT date_range.day AS x, COUNT(transactions.id) AS y
|
||||||
FROM date_range
|
FROM date_range
|
||||||
@ -112,4 +112,4 @@ LIMIT 730;
|
|||||||
--name: latest-token-transactions
|
--name: latest-token-transactions
|
||||||
-- Returns latest token transactions, with curosr forward query and limit
|
-- Returns latest token transactions, with curosr forward query and limit
|
||||||
SELECT id, block_number, date_block, tx_hash, sender_address, recipient_address, tx_value, success FROM transactions
|
SELECT id, block_number, date_block, tx_hash, sender_address, recipient_address, tx_value, success FROM transactions
|
||||||
WHERE token_address = $1 AND date_block > TIMESTAMP 'yesterday' ORDER BY id DESC;
|
WHERE token_address = $1 AND date_block > TIMESTAMP 'yesterday' ORDER BY id DESC;
|
||||||
|
Loading…
Reference in New Issue
Block a user