-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add stage specific ideascale params data for dev and F10 data f…
…or testnet+dev
- Loading branch information
Felipe Rosa
committed
Aug 1, 2023
1 parent
e61f752
commit b1a4c77
Showing
4 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
src/event-db/stage_data/testnet/00002_fund10_ideascale_params.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}' | ||
); |