-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into poc_bats
- Loading branch information
Showing
44 changed files
with
2,130 additions
and
1,242 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -1,70 +1,59 @@ | ||
<!-- PROJECT SHIELDS --> | ||
![Build][Build-badge] | ||
[![Coverage][Coverage-badge]][Sonar-url] | ||
[![Vulnerabilities][Vulnerability-badge]][Sonar-url] | ||
|
||
# 0xPolygon GitHub Template | ||
This repo serves as a template for new repositories in the 0xPolygon organization. | ||
<div id="top"></div> | ||
<!-- PROJECT LOGO --> | ||
<br /> | ||
<div align="center"> | ||
|
||
<img src="./.github/assets/cdk-logo.svg#gh-light-mode-only" alt="Logo" width="100"> | ||
<img src="./.github/assets/cdk-logo.svg#gh-dark-mode-only" alt="Logo" width="100"> | ||
|
||
# Action Items | ||
The following actions are required once you create a new repository from this repo: | ||
- Update this README. Complete the sections to reflect your project | ||
- Update `CODEOWNERS` file | ||
- Update `sonar-project.properties` by adding your Sonar project key provided by the Security Team | ||
- Update badges to reflect your project (badges are located at the bottom of this README) | ||
- Ensure you are using Issue and PR Templates | ||
## Polygon CDK | ||
|
||
## About The Project | ||
**Polygon CDK** (Chain Development Kit) is a modular framework that developers can use to build and deploy Zero Knowledge Proofs enabled Rollups and Validiums. | ||
|
||
The CDK allow to build Rollups that are ZK powered, verifying the execution using the zkEVM prover from Polygon, they can be completelly personalizable because its modullar architecture. | ||
|
||
### Built With | ||
<!-- PROJECT SHIELDS --> | ||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=0xPolygon_cdk&metric=alert_status&token=aa6d76993fc213c4153bf65e0d62e4d08207ea7e)](https://sonarcloud.io/summary/new_code?id=0xPolygon_cdk) | ||
|
||
[![Node.js 18][Language-badge]][Language-url] | ||
</div> | ||
</div> | ||
|
||
<br /> | ||
|
||
## Getting Started | ||
|
||
### Local Development | ||
## Pre-requisites | ||
|
||
Setup Kurtosis following this instructions https://github.com/0xPolygon/kurtosis-cdk?tab=readme-ov-file#getting-started | ||
|
||
### Local Testing | ||
|
||
- You can run locally against kurtosis-cdk environment using: [docs/local_debug.md](docs/local_debug.md) | ||
|
||
### Database | ||
## Contributing | ||
|
||
### Installation | ||
Contributions are very welcomed, the guidelines are currently not available (WIP) | ||
|
||
## Usage | ||
## Support | ||
|
||
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples, and demos work well in this space. This is incredibly useful for support personnel when responding to issues related to your application. | ||
Feel free to [open an issue](https://github.com/0xPolygon/cdk/issues/new) if you have any feature request or bug report.<br /> | ||
|
||
## Contributing | ||
|
||
This is the place to document your delivery workflow. For example: | ||
|
||
1. Clone the project | ||
2. Create a feature branch beginning with the ticket number (`git checkout -b INC-7689/update-readme`) | ||
3. Commit your changes (`git commit -m 'Update README.me with default template`) | ||
4. Push to the branch (`git push origin INC-7689/update-readme`) | ||
5. Open a Pull Request | ||
6. After review and approval, changes are deployed immediately | ||
|
||
## Contact | ||
|
||
![Email][Email-badge] | ||
![Slack][Slack-badge] | ||
[![Production URL][Production-badge]][Production-url] | ||
[![Staging URL][Staging-badge]][Staging-url] | ||
|
||
|
||
<!-- MARKDOWN LINKS AND IMAGES (update/replace as needed for your application) --> | ||
[Build-badge]: https://github.com/0xPolygon/learn-api/actions/workflows/main.yml/badge.svg | ||
[Coverage-badge]: https://sonarqube.polygon.technology/api/project_badges/measure?project=TODO | ||
[Vulnerability-badge]: https://sonarqube.polygon.technology/api/project_badges/measure?project=TODO | ||
[Sonar-url]: https://sonarqube.polygon.technology/dashboard?id=TODO | ||
[Language-badge]: https://img.shields.io/badge/Nodejs-18.0-informational | ||
[Language-url]: https://nodejs.org/en | ||
[Email-badge]: https://img.shields.io/badge/Email-team_email_address-informational?logo=gmail | ||
[Slack-badge]: https://img.shields.io/badge/Slack-team_ChannelName-informational?logo=slack | ||
[Production-badge]: https://img.shields.io/badge/Production_URL-polygon.technology-informational | ||
[Production-url]: https://link.to/prod | ||
[Staging-badge]: https://img.shields.io/badge/Staging_URL-staging.polygon.technology-informational | ||
[Staging-url]: https://link.to/staging | ||
## License | ||
|
||
Polygon Chain Development Kit | ||
Copyright (c) 2024 PT Services DMCC | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published | ||
by the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
|
||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. |
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
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
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
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
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,42 @@ | ||
-- +migrate Down | ||
DROP TABLE IF EXISTS block; | ||
DROP TABLE IF EXISTS claim; | ||
DROP TABLE IF EXISTS bridge; | ||
|
||
-- +migrate Up | ||
CREATE TABLE block ( | ||
num BIGINT PRIMARY KEY | ||
); | ||
|
||
CREATE TABLE bridge ( | ||
block_num INTEGER NOT NULL REFERENCES block(num) ON DELETE CASCADE, | ||
block_pos INTEGER NOT NULL, | ||
leaf_type INTEGER NOT NULL, | ||
origin_network INTEGER NOT NULL, | ||
origin_address VARCHAR NOT NULL, | ||
destination_network INTEGER NOT NULL, | ||
destination_address VARCHAR NOT NULL, | ||
amount DECIMAL(78, 0) NOT NULL, | ||
metadata BLOB, | ||
deposit_count INTEGER NOT NULL, | ||
PRIMARY KEY (block_num, block_pos) | ||
); | ||
|
||
CREATE TABLE claim ( | ||
block_num INTEGER NOT NULL REFERENCES block(num) ON DELETE CASCADE, | ||
block_pos INTEGER NOT NULL, | ||
global_index DECIMAL(78, 0) NOT NULL, | ||
origin_network INTEGER NOT NULL, | ||
origin_address VARCHAR NOT NULL, | ||
destination_address VARCHAR NOT NULL, | ||
amount DECIMAL(78, 0) NOT NULL, | ||
proof_local_exit_root VARCHAR, | ||
proof_rollup_exit_root VARCHAR, | ||
mainnet_exit_root VARCHAR, | ||
rollup_exit_root VARCHAR, | ||
global_exit_root VARCHAR, | ||
destination_network INTEGER NOT NULL, | ||
metadata BLOB, | ||
is_message BOOLEAN, | ||
PRIMARY KEY (block_num, block_pos) | ||
); |
Oops, something went wrong.