-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from decent-dao/develop
v0.3.0 into main
- Loading branch information
Showing
160 changed files
with
41,630 additions
and
8,652 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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
MAINNET_DEPLOYER_PRIVATE_KEY="0x0000000000000000000000000000000000000000000000000000000000000000" | ||
GOERLI_DEPLOYER_PRIVATE_KEY="0x0000000000000000000000000000000000000000000000000000000000000000" | ||
RINKEBY_DEPLOYER_PRIVATE_KEY="0x0000000000000000000000000000000000000000000000000000000000000000" | ||
SEPOLIA_DEPLOYER_PRIVATE_KEY="0x0000000000000000000000000000000000000000000000000000000000000000" | ||
POLYGON_DEPLOYER_PRIVATE_KEY="0x0000000000000000000000000000000000000000000000000000000000000000" | ||
|
||
MAINNET_PROVIDER=https://eth-mainnet.alchemyapi.io/v2/<YOUR ALCHEMY KEY> | ||
GOERLI_PROVIDER=https://eth-goerli.alchemyapi.io/v2/<YOUR ALCHEMY KEY> | ||
RINKEBY_PROVIDER=https://eth-rinkeby.alchemyapi.io/v2/<YOUR ALCHEMY KEY> | ||
SEPOLIA_PROVIDER=https://eth-sepolia.alchemyapi.io/v2/<YOUR ALCHEMY KEY> | ||
POLYGON_PROVIDER=https://eth-polygon.alchemyapi.io/v2/<YOUR ALCHEMY KEY> | ||
|
||
ETHERSCAN_API_KEY="" | ||
POLYGONSCAN_API_KEY="" | ||
|
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,11 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Check out the docs | ||
url: https://docs.fractalframework.xyz/ | ||
about: Your question might already be answered here! | ||
- name: Report a Vulnerability | ||
url: https://github.com/decent-dao/fractal-contracts/blob/HEAD/.github/SECURITY.md | ||
about: Securely report a vulnerability | ||
- name: Join our Discord | ||
url: https://chat.fractalframework.xyz/ | ||
about: You can ask product related questions here. |
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,25 @@ | ||
## Description | ||
|
||
<!-- Please describe your changes --> | ||
|
||
## Notes | ||
|
||
<!-- Is there any additional information a reviewer should know? --> | ||
|
||
## Issue / Notion doc (if applicable) | ||
|
||
<!----------------------------------------------------------------------------- | ||
If applicable, link to the relevant Github issue(s) with `closes #XXX` to auto-close it when this PR is merged. | ||
If there is an accompanying Notion document, please link that here as well. | ||
------------------------------------------------------------------------------> | ||
|
||
## Testing | ||
|
||
<!----------------------------------------------------------------------------- | ||
If your testing steps are technical, outline steps for an engineer to verify. | ||
If your testing steps are functional, please provide a full guide with any features requiring special attention for operations to test your branch in the preview environment. | ||
------------------------------------------------------------------------------> | ||
|
||
## Screenshots (if applicable) |
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,22 @@ | ||
# Security Policy | ||
|
||
We at Fractal encourage security researchers to contact us directly and privately to report any potential security vulnerabilities in either our smart contracts or front end code. | ||
|
||
If the issue you are reporting is not a security vulnerability, simply [open a new GitHub issue](https://github.com/decent-dao/fractal-contracts/issues/new/choose). | ||
|
||
## Reporting a Vulnerability | ||
|
||
If you would like to disclose a vulnerability in Fractal, please send a new email to [[email protected]](mailto:[email protected]). | ||
|
||
Please include the following information in your email: | ||
|
||
- The date / time you first identified the vulnerability. | ||
- How you identified the vulnerability. | ||
- Step by step instructions for performing the vulnerability. | ||
- Any additional information about the vulnerability. | ||
|
||
## Secure Communication | ||
|
||
If you prefer secure communication, please use the following GPG key: | ||
|
||
https://keys.openpgp.org/search?q=security%40decentlabs.io |
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,49 @@ | ||
name: Publish NPM Package | ||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version-file: '.nvmrc' | ||
|
||
- name: Install node modules | ||
run: npm install | ||
|
||
- name: Compile contracts | ||
run: npx hardhat compile | ||
|
||
- name: Run contract tests | ||
id: run-tests | ||
run: npx hardhat test | ||
env: | ||
GOERLI_PROVIDER: ${{ secrets.GOERLI_PROVIDER }} | ||
publish: | ||
name: Publish Contracts | ||
environment: global | ||
runs-on: ubuntu-latest | ||
needs: deploy | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
registry-url: "https://registry.npmjs.org" | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Compile and publish | ||
run: npm run publish-packages | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,34 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
deploy: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version-file: '.nvmrc' | ||
|
||
- name: Install node modules | ||
run: npm install | ||
|
||
- name: Compile contracts | ||
run: npx hardhat compile | ||
|
||
- name: Run contract tests | ||
id: run-tests | ||
run: npx hardhat test | ||
env: | ||
GOERLI_PROVIDER: ${{ secrets.GOERLI_PROVIDER }} |
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 |
---|---|---|
@@ -1,24 +1,21 @@ | ||
This is free and unencumbered software released into the public domain. | ||
MIT License | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
Copyright (c) 2023 fractal-framework | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
For more information, please refer to <https://unlicense.org> | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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
Oops, something went wrong.