Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for executed proposals #450

Merged
merged 3 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CGPs/cgp-0001.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: Enable validator elections, epoch rewards and carbon offsetting
date-created: 2020-04-27
author: '@aslawson'
status: EXECUTED
governance-proposal-id: 2
governance-proposal-id: 1
0xzoz marked this conversation as resolved.
Show resolved Hide resolved
date-executed: 2020-05-02
---

NA -- Do not use this as an exxample GCP. This was generated retroactively before this process was defined and proposal details for this governance proposal can be found [here](https://gist.github.com/aslawson/a1f693f0e4c5fd391eac463237c4182a).
NA -- Do not use this as an example GCP. This was generated retroactively before this process was defined and proposal details for this governance proposal can be found [here](https://gist.github.com/aslawson/a1f693f0e4c5fd391eac463237c4182a).
4 changes: 2 additions & 2 deletions CGPs/cgp-0044.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ cgp: 44
title: Increasing Mento Bucket Sizes for cUSD and cEUR
date-created: 2021-10-28
author: '@martinvol, @rcroessmann'
status: EXECUTED
status: REJECTED
discussions-to: https://forum.celo.org/t/economic-parameters-bucket-sizes-and-reserve-allocation-cgp-40-cgp-43/1997
governance-proposal-id: 55
governance-proposal-id: 45
0xzoz marked this conversation as resolved.
Show resolved Hide resolved
date-executed:
---

Expand Down
2 changes: 1 addition & 1 deletion CGPs/cgp-0103.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ date-created: 2023-09-29
author: "Serge Kiema <sergek@dunia.africa>, Serge Ouedraogo <serge_o@dunia.africa>"
discussions-to: https://forum.celo.org/t/dunia-launching-exof-on-celo/6261/1
status: EXECUTED
governance-proposal-id: 140
governance-proposal-id: 139
0xzoz marked this conversation as resolved.
Show resolved Hide resolved
date-executed: 2023-10-20
---

Expand Down
2 changes: 1 addition & 1 deletion CGPs/cgp-0132.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cgp: 132
title: Proposal for Funding Stabila - Driving Stablecoin Adoption on Celo
date-created: 2024-04-26
author: "Kevin Tharayil (@KevinTharayil)"
status: PROPOSED
status: EXPIRED
discussions-to: https://forum.celo.org/t/final-proposal-for-funding-stabila-driving-stablecoin-adoption-on-celo/7810
governance-proposal-id: 173
date-executed:
Expand Down
6 changes: 3 additions & 3 deletions CGPs/cgp-0133.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
cgp: 0133
cgp: 133
title: Cel2 Proposal Temperature Check - Using Optimism Stack for Cel2
date-created: 2024-05-03
author: Mariano Cortesi (@mcortesi), cLabs Blockchain & Primitives teams
status: PROPOSED
status: EXECUTED
discussions-to: https://forum.celo.org/t/clabs-proposes-migrating-celo-to-an-ethereum-l2-leveraging-the-op-stack/7902
governance-proposal-id: 174
date-executed:
date-executed: 2024-05-11
---

## Overview
Expand Down
6 changes: 3 additions & 3 deletions CGPs/cgp-0134.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
cgp: 0134
cgp: 134
title: "Validators rewards - changes in epoch parameters"
date-created: 2024-05-04
author: '@Thylacine @Patrick @Dee>'
status: PROPOSED
status: EXECUTED
discussions-to: https://forum.celo.org/t/draft-validators-rewards-change-in-epoch-parameters/7702
governance-proposal-id: 178
date-executed:
date-executed: 2024-05-23
---

## Overview
Expand Down
5 changes: 3 additions & 2 deletions CGPs/cgp-0135.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ cgp: 135
title: Kenyan Shilling & USDT/USD Oracle Rates
date-created: 2024-05-08
author: "@nvtaveras, @bayological"
status: DRAFT
status: EXECUTED
discussions-to: https://forum.celo.org/t/draft-launch-of-a-kenyan-shilling-stablecoin/7964
governance-proposal-id: 175
date-executed:
date-executed: 2024-05-15
---

## Overview
Expand Down
4 changes: 2 additions & 2 deletions CGPs/cgp-0136.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ cgp: 136
title: Launch of Kenyan Shilling (cKES) Stablecoin
date-created: 2024-05-13
author: "@bayological"
status: DRAFT
status: EXECUTED
discussions-to: https://forum.celo.org/t/draft-launch-of-a-kenyan-shilling-stablecoin/7964
governance-proposal-id: 177
date-executed:
date-executed: 2024-05-21
---

## Overview
Expand Down
6 changes: 3 additions & 3 deletions CGPs/cgp-0138.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ cgp: 138
title: MU06 - Native USDT integration on Mento v2
date-created: 2024-05-23
author: "@philbow61, @nvtaveras"
status: DRAFT
status: EXECUTED
discussions-to: https://forum.celo.org/t/proposal-mento-upgrade-mu06-native-usdt-integration/
governance-proposal-id:
date-executed:
governance-proposal-id: 179
date-executed: 2024-05-30
---

## Overview
Expand Down
4 changes: 2 additions & 2 deletions CGPs/cgp-0139.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ cgp: 139
title: Mento Spin-off and Launch of the MENTO token
date-created: 2024-05-23
author: "Bogdan Dumitru <bogdan@mentolabs.xyz>, Roman Croessmann <roman@mentolabs.xyz>, Markus Franke <markus@mentolabs.xyz>, Oleksiy Novykov <oleksiy.novykov@mentolabs.xyz>"
status: PROPOSED
status: EXECUTED
discussions-to: https://forum.celo.org/t/mento-spin-off-and-launch-of-the-mento-token/7747
governance-proposal-id: 180
date-executed:
date-executed: 2024-05-31
---

## Summary
Expand Down
9 changes: 9 additions & 0 deletions scripts/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const CGP_FOLDER_REGEX = /^cgp-(\d+)$/;
const CGP_FILENAME_REGEX = /^cgp-(\d+)\.md$/;
const CGP_TEMPLATE_FILENAME = "cgp-template.md";

const proposalIds = new Set();

function validateCGPs() {
console.log("Validating CGPs");

Expand Down Expand Up @@ -118,6 +120,13 @@ function validateFrontMatter(data, filename) {
) {
throw new Error(`Proposal ID required for non-draft CGPs`);
}

if (proposalIds.has(proposalId)) {
throw new Error(`Proposal ID already in use in another CGP`);
} else if (proposalId){
proposalIds.add(proposalId);
}

if (dateCreated) validateDate(dateCreated);
if (dateExecuted) validateDate(dateExecuted);
} catch (error) {
Expand Down
Loading