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
-- Queries all validators that held Validator Licenses up to a certain record time & migration ID, along with their first and latest validator license renewals.
2
+
3
+
DECLARE
4
+
as_of_record_time timestamp;
5
+
DECLARE
6
+
migration_id int64;
7
+
8
+
-- configuration parameters
9
+
SET as_of_record_time = PARSE_TIMESTAMP('%FT%TZ', '2025-07-15T00:00:00Z');
10
+
SET migration_id =3;
11
+
12
+
SELECT DISTINCT
13
+
JSON_VALUE(create_arguments, '$.record.fields[0].value.party') as validator_party,
14
+
TIMESTAMP_MICROS(MAX(created_at) OVER (PARTITION BY JSON_VALUE(create_arguments, '$.record.fields[0].value.party'))) AS latest_validator_license,
15
+
TIMESTAMP_MICROS(MIN(created_at) OVER (PARTITION BY JSON_VALUE(create_arguments, '$.record.fields[0].value.party'))) AS first_validator_license
16
+
FROM`da-cn-mainnet.mainnet_da2_scan.scan_sv_1_update_history_creates` c
0 commit comments