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

Add custom proposal implementation #64

Merged
merged 11 commits into from
May 23, 2024
Merged

Add custom proposal implementation #64

merged 11 commits into from
May 23, 2024

Conversation

tensojka
Copy link
Contributor

Lacks setting of custom proposal configuration during deployment

Please review

@tensojka
Copy link
Contributor Author

Tests will be added once @Nerrolol finishes and merges the test setup scaffolding

Copy link
Collaborator

@Nerrolol Nerrolol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm !

@tensojka tensojka force-pushed the custom-prop-type branch from 6ed9c58 to 9c87805 Compare May 14, 2024 14:57
@tensojka
Copy link
Contributor Author

Rebased on master (master has package and imports renamed from governance to konoha

@tensojka tensojka merged commit 2a4028b into master May 23, 2024
1 check passed
tensojka added a commit that referenced this pull request May 23, 2024
* Add custom proposal implementation

Lacks setting of custom proposal configuration during deployment

* Add arbitrary proposal

* Polish apply_passed_proposal

* Polish scarb fmt

* Cherry pick setup.cairo from 1fab54f

* Move test setup to src/

* Remove unrelated functions from setup.cairo

* Fix setup

* Polish tests

* Fix import naming

* Add addition of custom proposal
tensojka added a commit that referenced this pull request May 27, 2024
* Add custom proposal implementation

Lacks setting of custom proposal configuration during deployment

* Add arbitrary proposal

* Polish apply_passed_proposal

* Polish scarb fmt

* Cherry pick setup.cairo from 1fab54f

* Move test setup to src/

* Remove unrelated functions from setup.cairo

* Fix setup

* Polish tests

* Add airdrop tests

* Adding setup file with generic function which applies a proposal to upgrade root and passes it

* Setup environment to deploy governance, deploy gov token and distribute to sample addresses and then vote on update root proposal

* Add tests on proposals

* fix some issues on proposal tests

* Proposals Frontend (#66)

* add: basic ui displaying proposals

* feat: voting invocations

* feat: ✨ new proposal form

* feat: ✨ use async for proposal creation

* fix: 🐛 bad voting code

* chore: 🗑️ cleanup

* feat: ✨ add logo

* fix: 🐛 wrong site title

---------

Co-authored-by: Tomáš Hobza <[email protected]>

* Update README.md

* Update README.md

* feat: default to_upgrade value (#69)

Co-authored-by: Tomáš Hobza <[email protected]>

* Telegram Notification bot for proposal (#71)

* initial commit

* change to testnet

* Add basic working event printing

* notification telegram bot working

* add gitignore

* Remove node_modules folder and update .gitignore

* update config.toml

* removing unused address

* Delete accidentally committed tests/proposal.cairo

* code review changes

* rest of the code-review changes

* Update packages according to code review feedback

* Add error print when unable to send messages to Telegram

* Add automatic retrieval of chain id

* Polish formatting

* Refactor config file reading

* code-review changes in index.ts, package-lock

* Add CI runner

* Trigger CI

* Fix CI

* Fix CI

* Fix CI

* Fix CI

---------

Co-authored-by: Ondřej Sojka <[email protected]>
Co-authored-by: Ondřej Sojka <[email protected]>

* Adding proposals tests

* Comment code for airdrop_tests and remove old setup file

* Add minor fixes towards compilability

* Fix all proposals tests

* Fix formatting

* Proposals Frontend (#66)

* add: basic ui displaying proposals

* feat: voting invocations

* feat: ✨ new proposal form

* feat: ✨ use async for proposal creation

* fix: 🐛 bad voting code

* chore: 🗑️ cleanup

* feat: ✨ add logo

* fix: 🐛 wrong site title

---------

Co-authored-by: Tomáš Hobza <[email protected]>

* feat: default to_upgrade value (#69)

Co-authored-by: Tomáš Hobza <[email protected]>

* Update frontend domain to konoha.vote

* Rename package from 'governance' to 'konoha'

* Add contributor guidelines

* Update README.md with contributing info

* Update CONTRIBUTING.md

* Add mdbook scaffolding (#75)

* Add mdbook stub

* Update license to Apache 2.0

* Add some docs

* Add custom proposal implementation (#64)

* Add custom proposal implementation

Lacks setting of custom proposal configuration during deployment

* Add arbitrary proposal

* Polish apply_passed_proposal

* Polish scarb fmt

* Cherry pick setup.cairo from 1fab54f

* Move test setup to src/

* Remove unrelated functions from setup.cairo

* Fix setup

* Polish tests

* Fix import naming

* Add addition of custom proposal

* Remove mentions of Carmine in this repository (#73)

* Update Scarb.toml, add [lib]

* Add custom proposal implementation

Lacks setting of custom proposal configuration during deployment

* Add arbitrary proposal

* Polish apply_passed_proposal

* Polish scarb fmt

* Cherry pick setup.cairo from 1fab54f

* Move test setup to src/

* Remove unrelated functions from setup.cairo

* Fix setup

* Polish tests

* Fix import naming

* Add addition of custom proposal

* Remove part of Carmine code

* Remove rest of Carmine stuff

* Polish with scarb fmt

* Bump version to 0.4.0

* Fix imports in tests

* Remove unused test from lib.cairo

* Remove cubit as dependency

* Update package description

* Update error message to not mention CARM

* Move snforge_std to dev-dependency

* Update snforge_std to v0.23.0

* Update snforge in CI

* Trigger CI

* Format

* Rename governance:: to konoha::

* Fix proposals tests and mint tokens to admin addr before distributing them in deploy token function

* Add quorum tests

* Move setup to testing, fix tests so they compile

* Merge branch master

---------

Co-authored-by: Ondřej Sojka <[email protected]>
Co-authored-by: Tomáš Hobza <[email protected]>
Co-authored-by: Tomáš Hobza <[email protected]>
Co-authored-by: Ondřej Sojka <[email protected]>
Co-authored-by: xkrivan5 <[email protected]>
tensojka added a commit that referenced this pull request Jun 8, 2024
* Add custom proposal implementation

Lacks setting of custom proposal configuration during deployment

* Add arbitrary proposal

* Polish apply_passed_proposal

* Polish scarb fmt

* Cherry pick setup.cairo from 1fab54f

* Move test setup to src/

* Remove unrelated functions from setup.cairo

* Fix setup

* Polish tests

* Fix import naming

* Add addition of custom proposal
tensojka added a commit that referenced this pull request Jun 8, 2024
* Add custom proposal implementation

Lacks setting of custom proposal configuration during deployment

* Add arbitrary proposal

* Polish apply_passed_proposal

* Polish scarb fmt

* Cherry pick setup.cairo from 1fab54f

* Move test setup to src/

* Remove unrelated functions from setup.cairo

* Fix setup

* Polish tests

* Add airdrop tests

* Adding setup file with generic function which applies a proposal to upgrade root and passes it

* Setup environment to deploy governance, deploy gov token and distribute to sample addresses and then vote on update root proposal

* Add tests on proposals

* fix some issues on proposal tests

* Proposals Frontend (#66)

* add: basic ui displaying proposals

* feat: voting invocations

* feat: ✨ new proposal form

* feat: ✨ use async for proposal creation

* fix: 🐛 bad voting code

* chore: 🗑️ cleanup

* feat: ✨ add logo

* fix: 🐛 wrong site title

---------

Co-authored-by: Tomáš Hobza <[email protected]>

* Update README.md

* Update README.md

* feat: default to_upgrade value (#69)

Co-authored-by: Tomáš Hobza <[email protected]>

* Telegram Notification bot for proposal (#71)

* initial commit

* change to testnet

* Add basic working event printing

* notification telegram bot working

* add gitignore

* Remove node_modules folder and update .gitignore

* update config.toml

* removing unused address

* Delete accidentally committed tests/proposal.cairo

* code review changes

* rest of the code-review changes

* Update packages according to code review feedback

* Add error print when unable to send messages to Telegram

* Add automatic retrieval of chain id

* Polish formatting

* Refactor config file reading

* code-review changes in index.ts, package-lock

* Add CI runner

* Trigger CI

* Fix CI

* Fix CI

* Fix CI

* Fix CI

---------

Co-authored-by: Ondřej Sojka <[email protected]>
Co-authored-by: Ondřej Sojka <[email protected]>

* Adding proposals tests

* Comment code for airdrop_tests and remove old setup file

* Add minor fixes towards compilability

* Fix all proposals tests

* Fix formatting

* Proposals Frontend (#66)

* add: basic ui displaying proposals

* feat: voting invocations

* feat: ✨ new proposal form

* feat: ✨ use async for proposal creation

* fix: 🐛 bad voting code

* chore: 🗑️ cleanup

* feat: ✨ add logo

* fix: 🐛 wrong site title

---------

Co-authored-by: Tomáš Hobza <[email protected]>

* feat: default to_upgrade value (#69)

Co-authored-by: Tomáš Hobza <[email protected]>

* Update frontend domain to konoha.vote

* Rename package from 'governance' to 'konoha'

* Add contributor guidelines

* Update README.md with contributing info

* Update CONTRIBUTING.md

* Add mdbook scaffolding (#75)

* Add mdbook stub

* Update license to Apache 2.0

* Add some docs

* Add custom proposal implementation (#64)

* Add custom proposal implementation

Lacks setting of custom proposal configuration during deployment

* Add arbitrary proposal

* Polish apply_passed_proposal

* Polish scarb fmt

* Cherry pick setup.cairo from 1fab54f

* Move test setup to src/

* Remove unrelated functions from setup.cairo

* Fix setup

* Polish tests

* Fix import naming

* Add addition of custom proposal

* Remove mentions of Carmine in this repository (#73)

* Update Scarb.toml, add [lib]

* Add custom proposal implementation

Lacks setting of custom proposal configuration during deployment

* Add arbitrary proposal

* Polish apply_passed_proposal

* Polish scarb fmt

* Cherry pick setup.cairo from 1fab54f

* Move test setup to src/

* Remove unrelated functions from setup.cairo

* Fix setup

* Polish tests

* Fix import naming

* Add addition of custom proposal

* Remove part of Carmine code

* Remove rest of Carmine stuff

* Polish with scarb fmt

* Bump version to 0.4.0

* Fix imports in tests

* Remove unused test from lib.cairo

* Remove cubit as dependency

* Update package description

* Update error message to not mention CARM

* Move snforge_std to dev-dependency

* Update snforge_std to v0.23.0

* Update snforge in CI

* Trigger CI

* Format

* Rename governance:: to konoha::

* Fix proposals tests and mint tokens to admin addr before distributing them in deploy token function

* Add quorum tests

* Move setup to testing, fix tests so they compile

* Merge branch master

---------

Co-authored-by: Ondřej Sojka <[email protected]>
Co-authored-by: Tomáš Hobza <[email protected]>
Co-authored-by: Tomáš Hobza <[email protected]>
Co-authored-by: Ondřej Sojka <[email protected]>
Co-authored-by: xkrivan5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants