Skip to content

Commit

Permalink
feat: Add stage specific ideascale params data for dev and F10 data f…
Browse files Browse the repository at this point in the history
…or testnet+dev
  • Loading branch information
Felipe Rosa committed Aug 1, 2023
1 parent e61f752 commit b1a4c77
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 0 deletions.
54 changes: 54 additions & 0 deletions src/event-db/stage_data/dev/00001_fund10_event.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
-- F10
INSERT INTO event (
row_id,
name,
description,
registration_snapshot_time,
snapshot_start,
voting_power_threshold,
max_voting_power_pct,
review_rewards,
start_time,
end_time,
insight_sharing_start,
proposal_submission_start,
refine_proposals_start,
finalize_proposals_start,
proposal_assessment_start,
assessment_qa_start,
voting_start,
voting_end,
tallying_end,
block0,
block0_hash,
committee_size,
committee_threshold,
extra,
cast_to
) VALUES (
10,
'Fund 10',
'Fund 10 Description',
'2023-08-18 00:00:00',
'2023-08-23 00:00:00',
450000000,
1,
NULL,
'2023-06-16 19:56:00',
'2023-09-18 00:00:00',
'2023-06-22 00:00:00',
'2023-06-22 00:00:00',
'2023-06-22 00:00:00',
'2023-07-13 00:00:00',
'2023-07-20 00:00:00',
'2023-08-10 00:00:00',
'2023-08-31 00:00:00',
'2023-09-14 00:00:00',
'2023-09-18 00:00:00',
NULL,
NULL,
10,
7,
NULL,
NULL
);
53 changes: 53 additions & 0 deletions src/event-db/stage_data/testnet/00001_fund10_event.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
INSERT INTO event (
row_id,
name,
description,
registration_snapshot_time,
snapshot_start,
voting_power_threshold,
max_voting_power_pct,
review_rewards,
start_time,
end_time,
insight_sharing_start,
proposal_submission_start,
refine_proposals_start,
finalize_proposals_start,
proposal_assessment_start,
assessment_qa_start,
voting_start,
voting_end,
tallying_end,
block0,
block0_hash,
committee_size,
committee_threshold,
extra,
cast_to
) VALUES (
10,
'Fund 10',
'Fund 10 Description',
'2023-08-18 00:00:00',
'2023-08-23 00:00:00',
450000000,
1,
NULL,
'2023-06-16 19:56:00',
'2023-09-18 00:00:00',
'2023-06-22 00:00:00',
'2023-06-22 00:00:00',
'2023-06-22 00:00:00',
'2023-07-13 00:00:00',
'2023-07-20 00:00:00',
'2023-08-10 00:00:00',
'2023-08-31 00:00:00',
'2023-09-14 00:00:00',
'2023-09-18 00:00:00',
NULL,
NULL,
10,
7,
NULL,
NULL
);
18 changes: 18 additions & 0 deletions src/event-db/stage_data/testnet/00002_fund10_ideascale_params.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-- Define F10 IdeaScale parameters.
INSERT INTO config (id, id2, id3, value) VALUES (
'ideascale',
'params',
'F10',
'{
"campaign_group_id": 63,
"stage_ids": [4590, 4596, 4602, 4608, 4614, 4620, 4626, 4632, 4638, 4644, 4650, 4656, 4662]
}'
);

-- Use F10 params for event with row_id = 10.
INSERT INTO config (id, id2, id3, value) VALUES (
'event',
'ideascale_params',
'10',
'{"params_id": "F10"}'
);

0 comments on commit b1a4c77

Please sign in to comment.