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

Create CODEOWNERS #49

Merged
merged 16 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all 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: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This group is setup to ensure a security review is always required for PRs
/src/ @0xPolygon/internal-security
/script/**/*.sol @0xPolygon/internal-security
/deployments/ @0xPolygon/internal-security
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Forge scripts are used to deploy or upgrade contracts and an additional extract.

## Reference Deployments

- Ethereum Mainnet [0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6](https://etherscan.io/address/0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6)
- Goerli [0x4f34BF3352A701AEc924CE34d6CfC373eABb186c](https://goerli.etherscan.io/address/0x4f34BF3352A701AEc924CE34d6CfC373eABb186c)

---
Expand Down
238 changes: 238 additions & 0 deletions broadcast/Deploy.s.sol/1/run-1698224762.json

Large diffs are not rendered by default.

701 changes: 701 additions & 0 deletions broadcast/Deploy.s.sol/1/run-1698224780.json

Large diffs are not rendered by default.

701 changes: 701 additions & 0 deletions broadcast/Deploy.s.sol/1/run-1698224867.json

Large diffs are not rendered by default.

701 changes: 701 additions & 0 deletions broadcast/Deploy.s.sol/1/run-latest.json

Large diffs are not rendered by default.

219 changes: 219 additions & 0 deletions deployments/1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
# Polygon Ecosystem Token


### Table of Contents
- [Summary](#summary)
- [Contracts](#contracts)
- [Polygon Migration](#polygon-migration)
- [Default Emission Manager](#default-emission-manager)
- [Proxy Admin](#proxy-admin)
- [Polygon Ecosystem Token](#polygon-ecosystem-token)
- [Deployment History](#deployment-history)
- [1.1.0](#110)

## Summary
<table>
<tr>
<th>Contract</th>
<th>Address</th>
<th>Version</th>
</tr><tr>
<td>PolygonMigration</td>
<td><a href="https://etherscan.io/address/0x29e7DF7b6A1B2b07b731457f499E1696c60E2C4e" target="_blank">0x29e7DF7b6A1B2b07b731457f499E1696c60E2C4e</a></td>
<td>1.1.0</td>
</tr>
<tr>
<td>DefaultEmissionManager</td>
<td><a href="https://etherscan.io/address/0xbC9f74b3b14f460a6c47dCdDFd17411cBc7b6c53" target="_blank">0xbC9f74b3b14f460a6c47dCdDFd17411cBc7b6c53</a></td>
<td>1.1.0</td>
</tr>
<tr>
<td>ProxyAdmin</td>
<td><a href="https://etherscan.io/address/0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3" target="_blank">0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3</a></td>
<td>N/A</td>
</tr>
<tr>
<td>PolygonEcosystemToken</td>
<td><a href="https://etherscan.io/address/0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6" target="_blank">0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6</a></td>
<td>1.1.0</td>
</tr></table>

## Contracts

### Polygon Migration

Address: [0x29e7DF7b6A1B2b07b731457f499E1696c60E2C4e](https://etherscan.io/address/0x29e7DF7b6A1B2b07b731457f499E1696c60E2C4e)

Deployment Txn: [0x352acb72eddab7b1d810af8823b8ff22de00a3fcbb0c270870b0fa3834230752](https://etherscan.io/tx/0x352acb72eddab7b1d810af8823b8ff22de00a3fcbb0c270870b0fa3834230752)

Version: [1.1.0](https://github.com/0xPolygon/pol-token/releases/tag/1.1.0)

Commit Hash: [4d110d7](https://github.com/0xPolygon/pol-token/commit/4d110d71d5904bb7fb6ef4ffabd774aee519d1ad)

Wed, 25 Oct 2023 09:07:47 UTC


_Proxy Information_



Proxy Type: TransparentUpgradeableProxy



Implementation: [0x550B7CDaC6F5a0d9e840505c3Df74aC045530446](https://etherscan.io/address/0x550B7CDaC6F5a0d9e840505c3Df74aC045530446)



Proxy Admin: [0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3](https://etherscan.io/address/0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3)



<details>
<summary>Implementation History</summary>
<table>
<tr>
<th>Version</th>
<th>Address</th>
<th>Commit Hash</th>
</tr>
<tr>
<td><a href="https://github.com/0xPolygon/pol-token/releases/tag/1.1.0" target="_blank">1.1.0</a></td>
<td><a href="https://etherscan.io/address/0x550B7CDaC6F5a0d9e840505c3Df74aC045530446" target="_blank">0x550B7CDaC6F5a0d9e840505c3Df74aC045530446</a></td>
<td><a href="https://github.com/0xPolygon/pol-token/commit/4d110d71d5904bb7fb6ef4ffabd774aee519d1ad" target="_blank">4d110d7</a></td>
</tr>
</table>
</details>


---

### Default Emission Manager

Address: [0xbC9f74b3b14f460a6c47dCdDFd17411cBc7b6c53](https://etherscan.io/address/0xbC9f74b3b14f460a6c47dCdDFd17411cBc7b6c53)

Deployment Txn: [0xeb8da48615884160b61712096c4d770d0f8374b0c3d2686afb798cc3f7b40610](https://etherscan.io/tx/0xeb8da48615884160b61712096c4d770d0f8374b0c3d2686afb798cc3f7b40610)

Version: [1.1.0](https://github.com/0xPolygon/pol-token/releases/tag/1.1.0)

Commit Hash: [4d110d7](https://github.com/0xPolygon/pol-token/commit/4d110d71d5904bb7fb6ef4ffabd774aee519d1ad)

Wed, 25 Oct 2023 09:07:47 UTC


_Proxy Information_



Proxy Type: TransparentUpgradeableProxy



Implementation: [0x2126E6952C3af75C9D4CF21f63F509195C79ce44](https://etherscan.io/address/0x2126E6952C3af75C9D4CF21f63F509195C79ce44)



Proxy Admin: [0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3](https://etherscan.io/address/0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3)



<details>
<summary>Implementation History</summary>
<table>
<tr>
<th>Version</th>
<th>Address</th>
<th>Commit Hash</th>
</tr>
<tr>
<td><a href="https://github.com/0xPolygon/pol-token/releases/tag/1.1.0" target="_blank">1.1.0</a></td>
<td><a href="https://etherscan.io/address/0x2126E6952C3af75C9D4CF21f63F509195C79ce44" target="_blank">0x2126E6952C3af75C9D4CF21f63F509195C79ce44</a></td>
<td><a href="https://github.com/0xPolygon/pol-token/commit/4d110d71d5904bb7fb6ef4ffabd774aee519d1ad" target="_blank">4d110d7</a></td>
</tr>
</table>
</details>


---

### Proxy Admin

Address: [0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3](https://etherscan.io/address/0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3)

Deployment Txn: [0xedee60942078fd462735060f9c49c730ac7d0e16e22ae982feb8fc88f1dd4de9](https://etherscan.io/tx/0xedee60942078fd462735060f9c49c730ac7d0e16e22ae982feb8fc88f1dd4de9)



Commit Hash: [4d110d7](https://github.com/0xPolygon/pol-token/commit/4d110d71d5904bb7fb6ef4ffabd774aee519d1ad)

Wed, 25 Oct 2023 09:07:47 UTC


---

### Polygon Ecosystem Token

Address: [0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6](https://etherscan.io/address/0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6)

Deployment Txn: [0x2a88c595a815c6aac8bf6734ee12d939c7d0dce8965771330b72f2ebc3d673bd](https://etherscan.io/tx/0x2a88c595a815c6aac8bf6734ee12d939c7d0dce8965771330b72f2ebc3d673bd)

Version: [1.1.0](https://github.com/0xPolygon/pol-token/releases/tag/1.1.0)

Commit Hash: [4d110d7](https://github.com/0xPolygon/pol-token/commit/4d110d71d5904bb7fb6ef4ffabd774aee519d1ad)

Wed, 25 Oct 2023 09:07:47 UTC


----


### Deployment History


### [1.1.0](https://github.com/0xPolygon/pol-token/releases/tag/1.1.0)

Wed, 25 Oct 2023 09:07:47 UTC

Commit Hash: [4d110d7](https://github.com/0xPolygon/pol-token/commit/4d110d71d5904bb7fb6ef4ffabd774aee519d1ad)

Deployed contracts:

- [Polygon Migration](https://etherscan.io/address/0x29e7DF7b6A1B2b07b731457f499E1696c60E2C4e) ([Implementation](https://etherscan.io/address/0x550B7CDaC6F5a0d9e840505c3Df74aC045530446))
- [Default Emission Manager](https://etherscan.io/address/0xbC9f74b3b14f460a6c47dCdDFd17411cBc7b6c53) ([Implementation](https://etherscan.io/address/0x2126E6952C3af75C9D4CF21f63F509195C79ce44))
- [Polygon Ecosystem Token](https://etherscan.io/address/0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6)

<details>
<summary>Inputs</summary>
<table>
<tr>
<th>Parameter</th>
<th>Value</th>
</tr>

<tr>
<td>matic</td>
<td>0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0</td>
</tr>

<tr>
<td>protocolCouncil</td>
<td>0x29A6f32f36EDeD399763524018F17F03B1435b18</td>
</tr>

<tr>
<td>treasury</td>
<td>0x2ff25495d77f380d5F65B95F103181aE8b1cf898</td>
</tr>

<tr>
<td>stakeManager</td>
<td>0x5e3Ef299fDDf15eAa0432E6e66473ace8c13D908</td>
</tr>

<tr>
<td>emergencyCouncil</td>
<td>0x37D085ca4a24f6b29214204E8A8666f12cf19516</td>
</tr>
</table>
</details>

86 changes: 86 additions & 0 deletions deployments/json/1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"chainId": "1",
"latest": {
"PolygonMigration": {
"implementation": "0x550B7CDaC6F5a0d9e840505c3Df74aC045530446",
"proxyAdmin": "0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3",
"address": "0x29e7DF7b6A1B2b07b731457f499E1696c60E2C4e",
"proxy": true,
"version": "1.1.0",
"proxyType": "TransparentUpgradeableProxy",
"timestamp": 1698224867,
"deploymentTxn": "0x352acb72eddab7b1d810af8823b8ff22de00a3fcbb0c270870b0fa3834230752",
"commitHash": "4d110d71d5904bb7fb6ef4ffabd774aee519d1ad"
},
"DefaultEmissionManager": {
"implementation": "0x2126E6952C3af75C9D4CF21f63F509195C79ce44",
"proxyAdmin": "0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3",
"address": "0xbC9f74b3b14f460a6c47dCdDFd17411cBc7b6c53",
"proxy": true,
"version": "1.1.0",
"proxyType": "TransparentUpgradeableProxy",
"timestamp": 1698224867,
"deploymentTxn": "0xeb8da48615884160b61712096c4d770d0f8374b0c3d2686afb798cc3f7b40610",
"commitHash": "4d110d71d5904bb7fb6ef4ffabd774aee519d1ad"
},
"ProxyAdmin": {
"address": "0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3",
"proxy": false,
"timestamp": 1698224867,
"deploymentTxn": "0xedee60942078fd462735060f9c49c730ac7d0e16e22ae982feb8fc88f1dd4de9",
"commitHash": "4d110d71d5904bb7fb6ef4ffabd774aee519d1ad"
},
"PolygonEcosystemToken": {
"address": "0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6",
"proxy": false,
"version": "1.1.0",
"timestamp": 1698224867,
"deploymentTxn": "0x2a88c595a815c6aac8bf6734ee12d939c7d0dce8965771330b72f2ebc3d673bd",
"commitHash": "4d110d71d5904bb7fb6ef4ffabd774aee519d1ad"
}
},
"history": [
{
"contracts": {
"PolygonMigration": {
"implementation": "0x550B7CDaC6F5a0d9e840505c3Df74aC045530446",
"proxyAdmin": "0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3",
"address": "0x29e7DF7b6A1B2b07b731457f499E1696c60E2C4e",
"proxy": true,
"version": "1.1.0",
"proxyType": "TransparentUpgradeableProxy",
"deploymentTxn": "0x352acb72eddab7b1d810af8823b8ff22de00a3fcbb0c270870b0fa3834230752"
},
"DefaultEmissionManager": {
"implementation": "0x2126E6952C3af75C9D4CF21f63F509195C79ce44",
"proxyAdmin": "0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3",
"address": "0xbC9f74b3b14f460a6c47dCdDFd17411cBc7b6c53",
"proxy": true,
"version": "1.1.0",
"proxyType": "TransparentUpgradeableProxy",
"deploymentTxn": "0xeb8da48615884160b61712096c4d770d0f8374b0c3d2686afb798cc3f7b40610"
},
"ProxyAdmin": {
"address": "0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3",
"proxy": false,
"deploymentTxn": "0xedee60942078fd462735060f9c49c730ac7d0e16e22ae982feb8fc88f1dd4de9"
},
"PolygonEcosystemToken": {
"address": "0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6",
"proxy": false,
"version": "1.1.0",
"deploymentTxn": "0x2a88c595a815c6aac8bf6734ee12d939c7d0dce8965771330b72f2ebc3d673bd"
}
},
"input": {
"matic": "0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0",
"protocolCouncil": "0x29A6f32f36EDeD399763524018F17F03B1435b18",
"treasury": "0x2ff25495d77f380d5F65B95F103181aE8b1cf898",
"stakeManager": "0x5e3Ef299fDDf15eAa0432E6e66473ace8c13D908",
"emergencyCouncil": "0x37D085ca4a24f6b29214204E8A8666f12cf19516"
},
"timestamp": 1698224867,
"commitHash": "4d110d71d5904bb7fb6ef4ffabd774aee519d1ad"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# DefaultEmissionManager
[Git Source](https://github.com/0xPolygon/pol-token/blob/7a1dec282d430e9f94fc81b42f7da0c058e0221b/src/DefaultEmissionManager.sol)
[Git Source](https://github.com/0xPolygon/pol-token/blob/59aa38c99af46d3b365ecc8a7e9d0765591960b9/src/DefaultEmissionManager.sol)

**Inherits:**
Ownable2StepUpgradeable, [IDefaultEmissionManager](/src/interfaces/IDefaultEmissionManager.sol/interface.IDefaultEmissionManager.md)
Expand Down Expand Up @@ -128,13 +128,13 @@ function inflatedSupplyAfter(uint256 timeElapsed) public pure returns (uint256 s
|`supply`|`uint256`|inflatedSupply supply total supply from compounded emission after timeElapsed|


### getVersion
### version

returns the version of the contract


```solidity
function getVersion() external pure returns (string memory);
function version() external pure returns (string memory);
```
**Returns**

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# PolygonEcosystemToken
[Git Source](https://github.com/0xPolygon/pol-token/blob/7a1dec282d430e9f94fc81b42f7da0c058e0221b/src/PolygonEcosystemToken.sol)
[Git Source](https://github.com/0xPolygon/pol-token/blob/59aa38c99af46d3b365ecc8a7e9d0765591960b9/src/PolygonEcosystemToken.sol)

**Inherits:**
ERC20Permit, AccessControlEnumerable, [IPolygonEcosystemToken](/src/interfaces/IPolygonEcosystemToken.sol/interface.IPolygonEcosystemToken.md)
Expand Down Expand Up @@ -67,7 +67,7 @@ bool public permit2Enabled;


```solidity
constructor(address migration, address emissionManager, address governance, address permit2Revoker)
constructor(address migration, address emissionManager, address protocolCouncil, address emergencyCouncil)
ERC20("Polygon Ecosystem Token", "POL")
ERC20Permit("Polygon Ecosystem Token");
```
Expand Down Expand Up @@ -129,15 +129,15 @@ function updatePermit2Allowance(bool enabled) external onlyRole(PERMIT2_REVOKER_
function allowance(address owner, address spender) public view override(ERC20, IERC20) returns (uint256);
```

### getVersion
### version

returns the version of the contract

*this is to support our dev pipeline, and is present despite this contract not being behind a proxy*


```solidity
function getVersion() external pure returns (string memory);
function version() external pure returns (string memory);
```
**Returns**

Expand Down
Loading
Loading