You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INSERT INTO todo_updates.evm_tokens AS old (runtime, token_address, total_supply, num_transfers, last_mutate_round)
878
-
VALUES ($1, $2, $3, $4, $5)`
878
+
INSERT INTO todo_updates.evm_tokens AS old (runtime, token_address, total_supply, num_transfers, likely_no_events, last_mutate_round)
879
+
VALUES ($1, $2, $3, $4, $5, $6)`
879
880
880
881
RuntimeEVMTokenRecompute=`
881
-
INSERT INTO chain.evm_tokens AS old (runtime, token_address, total_supply, num_transfers, last_mutate_round)
882
+
INSERT INTO chain.evm_tokens AS old (runtime, token_address, total_supply, num_transfers, likely_no_events, last_mutate_round)
882
883
(
883
-
SELECT runtime, token_address, SUM(total_supply) AS total_supply, SUM(num_transfers) AS num_transfers, MAX(last_mutate_round) AS last_mutate_round
884
+
SELECT runtime, token_address, SUM(total_supply) AS total_supply, SUM(num_transfers) AS num_transfers, BOOL_AND(likely_no_events) AS likely_no_events, MAX(last_mutate_round) AS last_mutate_round
884
885
FROM todo_updates.evm_tokens
885
886
WHERE runtime = $1
886
887
GROUP BY runtime, token_address
887
888
)
888
889
ON CONFLICT (runtime, token_address) DO UPDATE SET
0 commit comments