-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(scripts): MAPP-203: Refactor and add missing deployment scripts (#72
) ## Related Issue(s) https://pookydevs.atlassian.net/browse/MAPP-203 ## Description This PR is adding changes on deployment scripts ## Changes Made - Added deployment scripts for: - POK - Energy - NonceRegistry - BoostPXP - Pookyball - PookyballLevelUp - PookyballReroll - PookyballAscension - Stickers - StickersController - StickersManager - StickersLevelUp - StickersSale - StickersAscension - added a shell script that we can use to deploy them easier - Eg: ` ./script/shell/deploy.sh local POK` - added some admin roles in some contracts - added some documentations ## Checklist Please review and check the following before submitting your PR: - [x] Code follows the project's coding guidelines and style. - [ ] Tests have been added or updated to cover the changes. - [x] Comments in code have been updated, if applicable. - [x] No backwards-incompatible changes were introduced. ## Comments [Optional] - we have to deploy them after chainlink VRF will support amoy testnet
- Loading branch information
Showing
36 changed files
with
2,805 additions
and
361 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
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,8 @@ | ||
{ | ||
"extends": [ | ||
"development" | ||
], | ||
"hints": { | ||
"typescript-config/consistent-casing": "off" | ||
} | ||
} |
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,7 +1,7 @@ | ||
{ | ||
"extends": "solhint:default", | ||
"rules": { | ||
"max-line-length": ["error", 140], | ||
"max-line-length": ["error", 140], | ||
"func-name-mixedcase": "off" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -30,13 +30,15 @@ For more details about the internal architecture of the repository, see [CONTRIB | |
|
||
## Governance | ||
|
||
- there is no onchain governance for now | ||
|
||
### Maintainers | ||
|
||
- Mathieu Bour <[mathieu.bour@pooky.gg](mailto:mathieu.bour@pooky.gg)>, Blockchain Engineer, Pooky Labs | ||
- Claudiu Micu <[claudiu.micu@pooky.gg](mailto:claudiu.micu@pooky.gg)>, Software Engineer, Pooky Labs | ||
|
||
### Contributors | ||
|
||
- Claudiu Micu <[claudiu.micu@pooky.gg](mailto:claudiu.micu@pooky.gg)>, Software Engineer, Pooky Labs | ||
- Mathieu Bour <[mathieu.bour@pooky.gg](mailto:mathieu.bour@pooky.gg)>, Blockchain Engineer, Pooky Labs | ||
- Dusan Zdravkovic <[[email protected]](mailto:[email protected])>, Former Blockchain Engineer, Pooky Labs | ||
|
||
### On-chain maintenance | ||
|
@@ -47,11 +49,3 @@ We mainly use the following permission contracts: | |
- [solady/auth/Ownable.sol](https://github.com/Vectorized/solady/blob/main/src/auth/Ownable.sol) | ||
- [solady/auth/OwnableRoles.sol](https://github.com/Vectorized/solady/blob/main/src/auth/OwnableRoles.sol) | ||
- [openzeppelin/access/IAccessControl.sol](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/17c1a3a4584e2cbbca4131f2f1d16168c92f2310/contracts/access/AccessControl.sol) | ||
|
||
The administrative privilege of granting/revoking roles is handled by a multi-signature wallet owned by multiple | ||
engineers of Pooky Labs. | ||
The address of the current multi-signature admin wallet is [`0x3CC4F4372F83ad3C577eD6e1Aae3D244A1b955D5`](https://polygonscan.com/address/0x3CC4F4372F83ad3C577eD6e1Aae3D244A1b955D5). | ||
|
||
The Pooky dApp [pooky.gg](https://pooky.gg/app) serves as reference to the "official" Pooky smart contracts, effectively serving as smart-contracts proxy. | ||
Pooky Labs may switch the contract implementations at any time on the app. | ||
In this scenario of a token upgrades, Pooky Labs commits to airdrop the tokens to their owners in the new implementation. |
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,8 @@ | ||
## Chain info: | ||
|
||
- Network Name: `Polygon Amoy Testnet` | ||
- New RPC URL: [`https://80002.rpc.thirdweb.com`](https://80002.rpc.thirdweb.com) | ||
- Chain ID: `80002` | ||
- Currency Symbol: `MATIC` | ||
- Block Explorer URL: [`https://www.oklink.com/amoy`](https://www.oklink.com/amoy) | ||
- Faucet: [`https://faucet.polygon.technology/`](https://faucet.polygon.technology/) |
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,8 @@ | ||
## Chain info: | ||
|
||
- Network Name: `Polygon Mainnet` | ||
- New RPC URL: [`https://polygon-rpc.com`](https://polygon-rpc.com) | ||
- Chain ID: `137` | ||
- Currency Symbol: `MATIC` | ||
- Block Explorer URL: [`https://polygonscan.com`](https://polygonscan.com) | ||
- Faucet: [`https://faucet.polygon.technology/`](https://faucet.polygon.technology/) |
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,32 @@ | ||
# Production environment | ||
|
||
The administrative privilege of granting/revoking roles is handled by a multi-signature wallet owned by multiple engineers of Pooky Labs. | ||
|
||
- polygon scan address [`0x3CC4F4372F83ad3C577eD6e1Aae3D244A1b955D5`](https://polygonscan.com/address/0x3CC4F4372F83ad3C577eD6e1Aae3D244A1b955D5). | ||
|
||
- safe wallet URL is [`https://app.safe.global/home?safe=matic:0x3CC4F4372F83ad3C577eD6e1Aae3D244A1b955D5`](https://app.safe.global/home?safe=matic:0x3CC4F4372F83ad3C577eD6e1Aae3D244A1b955D5) | ||
|
||
The Pooky dApp [pooky.gg](https://pooky.gg/app) serves as reference to the "official" Pooky smart contracts | ||
Pooky Labs may switch to other smart contract at any time on the app. | ||
In this scenario, Pooky Labs commits to airdrop the tokens to their owners in the new smart contracts. | ||
|
||
# Wallets | ||
|
||
- deployer - is the address from which all smart contracts are deployed | ||
- admin - is the owner of each smart contract | ||
- backend - is another wallet that is used to sign backend payloads | ||
- treasury - is the wallet where the funds are stored on each network | ||
|
||
## Wallets Polygon mainnet network | ||
|
||
- Deployer - [`0xC0DE54132cA2B4BAce7C02AF31Aa9d3c1905f379`](https://polygonscan.com/address/0xC0DE54132cA2B4BAce7C02AF31Aa9d3c1905f379). | ||
- Admin - [`0xF00Db2f08D1F6b3f6089573085B5826Bb358e319`](https://polygonscan.com/address/0xF00Db2f08D1F6b3f6089573085B5826Bb358e319). | ||
- Backend - [`0xCAFE3e690bf74Ec274210E1c448130c1f8228513`](https://polygonscan.com/address/0xCAFE3e690bf74Ec274210E1c448130c1f8228513). | ||
- Treasury - [`0xBABA035d2e22073C3a2AadA404dae4f6A9D57BD7`](https://polygonscan.com/address/0xBABA035d2e22073C3a2AadA404dae4f6A9D57BD7). | ||
|
||
## Wallets Polygon mainnet network | ||
|
||
- Deployer - [`0xC0DE54132cA2B4BAce7C02AF31Aa9d3c1905f379`](https://www.oklink.com/amoy/address/0xC0DE54132cA2B4BAce7C02AF31Aa9d3c1905f379). | ||
- Admin - [`0xF00Db2f08D1F6b3f6089573085B5826Bb358e319`](https://www.oklink.com/amoy/address/0xF00Db2f08D1F6b3f6089573085B5826Bb358e319). | ||
- Backend - [`0xCAFE3e690bf74Ec274210E1c448130c1f8228513`](https://www.oklink.com/amoy/address/0xCAFE3e690bf74Ec274210E1c448130c1f8228513). | ||
- Treasury - [`0xBABA035d2e22073C3a2AadA404dae4f6A9D57BD7`](https://www.oklink.com/amoy/address/0xBABA035d2e22073C3a2AadA404dae4f6A9D57BD7). |
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.