From cd75e0f59ae502d5a397eba2ef71a367f7b23f6f Mon Sep 17 00:00:00 2001 From: Stefano Cunego <93382903+kukkok3@users.noreply.github.com> Date: Fri, 19 Apr 2024 13:51:00 +0200 Subject: [PATCH] feat: Adds fund12 dev continuos snap dates | NPG-000 (#694) # Description Adds Fund12 dates for dryrun Fixes # (issue) _if applicable_ ## Type of change Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ## How Has This Been Tested? Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration - [ ] Test A - [ ] Test B **Test Configuration**: _if applicable_ - Firmware version: - Hardware: - Toolchain: - SDK: **List of new dependencies**: _if applicable_ Provide a list of newly added dependencies in this PR, with the description of what are they doing and why do we need them. - Crate A: description - Crate B: description ## Checklist - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --- ...nd100_event.sql => 00001_fund12_event.sql} | 34 +++++++++---------- ...100_params.sql => 00002_fund12_params.sql} | 10 +++--- 2 files changed, 22 insertions(+), 22 deletions(-) rename src/event-db/stage_data/dev/{00001_fund100_event.sql => 00001_fund12_event.sql} (74%) rename src/event-db/stage_data/dev/{00002_fund100_params.sql => 00002_fund12_params.sql} (96%) diff --git a/src/event-db/stage_data/dev/00001_fund100_event.sql b/src/event-db/stage_data/dev/00001_fund12_event.sql similarity index 74% rename from src/event-db/stage_data/dev/00001_fund100_event.sql rename to src/event-db/stage_data/dev/00001_fund12_event.sql index a7370041f5..c2c3aa8c92 100644 --- a/src/event-db/stage_data/dev/00001_fund100_event.sql +++ b/src/event-db/stage_data/dev/00001_fund12_event.sql @@ -1,4 +1,4 @@ --- F100 +-- F12 INSERT INTO event ( row_id, name, @@ -26,25 +26,25 @@ INSERT INTO event ( extra, cast_to ) VALUES ( - 100, - 'Fund 100', - 'Catalyst Testnet - Fund 100', - '2024-06-15 21:45:00', -- Registration Snapshot Time - '2024-06-15 22:15:00', -- Snapshot Start. + 12, + 'Fund 12', + 'Catalyst Testnet - Fund 12', + '2024-04-25 09:00:00', -- Registration Snapshot Time + '2024-04-25 09:15:00', -- Snapshot Start. 50000000, -- Voting Power Threshold 1, -- Max Voting Power PCT NULL, -- Review Rewards - '2024-01-01 00:00:00', -- Start Time - '2024-12-31 00:00:00', -- End Time - '2024-07-28 04:00:00', -- Insight Sharing Start - '2024-07-28 04:00:00', -- Proposal Submission Start - '2024-07-28 04:00:00', -- Refine Proposals Start - '2024-07-28 04:00:00', -- Finalize Proposals Start - '2024-07-28 04:00:00', -- Proposal Assessment Start - '2024-07-28 04:00:00', -- Assessment QA Start - '2024-07-28 09:00:00', -- Voting Starts - '2024-08-13 13:00:00', -- Voting Ends - '2024-08-22 02:00:00', -- Tallying Ends + '2024-04-17 11:00:00', -- Start Time + '2024-07-24 09:00:00', -- End Time + '2024-04-17 11:00:00', -- Insight Sharing Start + '2024-04-17 11:00:00', -- Proposal Submission Start + '2024-04-17 11:00:00', -- Refine Proposals Start + '2024-04-17 11:00:00', -- Finalize Proposals Start + '2024-04-17 11:00:00', -- Proposal Assessment Start + '2024-04-17 11:00:00', -- Assessment QA Start + '2024-04-25 14:00:00', -- Voting Starts + '2024-04-27 11:00:00', -- Voting Ends + '2024-07-24 09:00:00', -- Tallying Ends NULL, -- Block 0 Data NULL, -- Block 0 Hash 1, -- Committee Size diff --git a/src/event-db/stage_data/dev/00002_fund100_params.sql b/src/event-db/stage_data/dev/00002_fund12_params.sql similarity index 96% rename from src/event-db/stage_data/dev/00002_fund100_params.sql rename to src/event-db/stage_data/dev/00002_fund12_params.sql index b97b283410..afc2372f3a 100644 --- a/src/event-db/stage_data/dev/00002_fund100_params.sql +++ b/src/event-db/stage_data/dev/00002_fund12_params.sql @@ -1,7 +1,7 @@ --- Define F100 IdeaScale parameters. +-- Define F12 IdeaScale parameters. INSERT INTO config (id, id2, id3, value) VALUES ( 'ideascale', - '100', + '12', '', '{ "group_id": 31051, @@ -51,11 +51,11 @@ INSERT INTO config (id, id2, id3, value) VALUES ( ) ON CONFLICT (id, id2, id3) DO UPDATE SET value = EXCLUDED.value; --- Use F100 params for event with row_id = 100. +-- Use F12 params for event with row_id = 12. INSERT INTO config (id, id2, id3, value) VALUES ( 'event', 'ideascale_params', - '100', - '{"params_id": "F100"}' + '12', + '{"params_id": "F12"}' ) ON CONFLICT (id, id2, id3) DO UPDATE SET value = EXCLUDED.value;