Skip to content

Commit

Permalink
feat: MintOnBehalf (#95)
Browse files Browse the repository at this point in the history
* Remove old tests

* Update config test files

* Update package version

* Implements mint on behalf

* Adds isMintableOnBehalf
Update interfaces

* Improve build commands and update tests

* Improve build commands and update tests

* Adds TP_MINTER_ROLE

* Fixes and test updates

* Fix prettier

* Fix prettier

* prettier

* Fix warnings

* Improve verification script

* Update deployments.md
  • Loading branch information
Agupane authored Aug 22, 2024
1 parent 769d09b commit 58da7f1
Show file tree
Hide file tree
Showing 33 changed files with 12,364 additions and 1,261 deletions.
1,094 changes: 1,046 additions & 48 deletions .openzeppelin/avalanche.json

Large diffs are not rendered by default.

1,094 changes: 1,046 additions & 48 deletions .openzeppelin/optimism.json

Large diffs are not rendered by default.

1,094 changes: 1,046 additions & 48 deletions .openzeppelin/polygon.json

Large diffs are not rendered by default.

2,347 changes: 2,285 additions & 62 deletions .openzeppelin/sepolia.json

Large diffs are not rendered by default.

331 changes: 320 additions & 11 deletions .openzeppelin/unknown-100.json

Large diffs are not rendered by default.

110 changes: 55 additions & 55 deletions deployments.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,98 +4,98 @@

| Network | ChainID | Tag | Address |
| -------- | -------- | ------ | ------------------------------------------ |
| Goerli | 5 | v2.3.5 | 0x4e14816A80D7c4FeEeb56C225e821c6374F4AB56 |
| Sepolia | 11155111 | v2.3.5 | 0x4e14816A80D7c4FeEeb56C225e821c6374F4AB56 |
| xDai | 100 | v2.3.5 | 0x5f90580636AE29a9E4CD2AFFCE6d73501cD594F2 |
| Polygon | 137 | v2.3.5 | 0xE6c5c3174439DA7D2D60456Ca7eB97E7Dcd551e6 |
| Mumbai | 80001 | v2.3.5 | 0xBc8B15322279D7DEDfA6f38EC22075491aEDDB0f |
| Avax | 43114 | v2.3.5 | 0xd7859d7f8fc33Eee2df9edbafd247a2F398087a6 |
| Optimism | 10 | v2.3.5 | 0xd7859d7f8fc33Eee2df9edbafd247a2F398087a6 |
| Goerli | 5 | v2.3.6 | 0x4e14816A80D7c4FeEeb56C225e821c6374F4AB56 |
| Sepolia | 11155111 | v2.3.6 | 0x4e14816A80D7c4FeEeb56C225e821c6374F4AB56 |
| xDai | 100 | v2.3.6 | 0x5f90580636AE29a9E4CD2AFFCE6d73501cD594F2 |
| Polygon | 137 | v2.3.6 | 0xE6c5c3174439DA7D2D60456Ca7eB97E7Dcd551e6 |
| Mumbai | 80001 | v2.3.6 | 0xBc8B15322279D7DEDfA6f38EC22075491aEDDB0f |
| Avax | 43114 | v2.3.6 | 0xd7859d7f8fc33Eee2df9edbafd247a2F398087a6 |
| Optimism | 10 | v2.3.6 | 0xd7859d7f8fc33Eee2df9edbafd247a2F398087a6 |

## TheBadgeStore

| Network | ChainID | Tag | Address |
| -------- | -------- | ------ | ------------------------------------------ |
| Goerli | 5 | v2.3.5 | 0x158A8379071d280e811dC7b670c22a0b46dC582D |
| Sepolia | 11155111 | v2.3.5 | 0x158A8379071d280e811dC7b670c22a0b46dC582D |
| xDai | 100 | v2.3.5 | 0xaDe4Dcc3613dc0b77593adb3D694F2F6f71E4125 |
| Polygon | 137 | v2.3.5 | 0x870cDfe4c9b4FFe0687b7f871f6e96793440B214 |
| Mumbai | 80001 | v2.3.5 | 0xfA31e6E50d2Aa260434A056e7CaA3FD582B1FfE8 |
| Avax | 43114 | v2.3.5 | 0xC1e5906C4bD80787EE859432331B2791bD9BbF12 |
| Optimism | 10 | v2.3.5 | 0xC1e5906C4bD80787EE859432331B2791bD9BbF12 |
| Goerli | 5 | v2.3.6 | 0x158A8379071d280e811dC7b670c22a0b46dC582D |
| Sepolia | 11155111 | v2.3.6 | 0x158A8379071d280e811dC7b670c22a0b46dC582D |
| xDai | 100 | v2.3.6 | 0xaDe4Dcc3613dc0b77593adb3D694F2F6f71E4125 |
| Polygon | 137 | v2.3.6 | 0x870cDfe4c9b4FFe0687b7f871f6e96793440B214 |
| Mumbai | 80001 | v2.3.6 | 0xfA31e6E50d2Aa260434A056e7CaA3FD582B1FfE8 |
| Avax | 43114 | v2.3.6 | 0xC1e5906C4bD80787EE859432331B2791bD9BbF12 |
| Optimism | 10 | v2.3.6 | 0xC1e5906C4bD80787EE859432331B2791bD9BbF12 |

## TheBadgeUsersStore

| Network | ChainID | Tag | Address |
| -------- | -------- | ------ | ------------------------------------------ |
| Goerli | 5 | v2.3.5 | 0x905a49Ead7540FF8a563EB02F66B5c13c5e8eC71 |
| Sepolia | 11155111 | v2.3.5 | 0x905a49Ead7540FF8a563EB02F66B5c13c5e8eC71 |
| xDai | 100 | v2.3.5 | 0x9316b09049c432E9F69e7d2f613036d936332Ad1 |
| Polygon | 137 | v2.3.5 | 0x7808B0320a21851139207EdAaAAfb1dc4039ceC2 |
| Mumbai | 80001 | v2.3.5 | 0x63e00a9aE661CC88620B5F71FE03DaDa958B5096 |
| Avax | 43114 | v2.3.5 | 0xba42dC1C5aa0f1094806c2914aA916E2cFe3d10E |
| Optimism | 10 | v2.3.5 | 0xba42dC1C5aa0f1094806c2914aA916E2cFe3d10E |
| Goerli | 5 | v2.3.6 | 0x905a49Ead7540FF8a563EB02F66B5c13c5e8eC71 |
| Sepolia | 11155111 | v2.3.6 | 0x905a49Ead7540FF8a563EB02F66B5c13c5e8eC71 |
| xDai | 100 | v2.3.6 | 0x9316b09049c432E9F69e7d2f613036d936332Ad1 |
| Polygon | 137 | v2.3.6 | 0x7808B0320a21851139207EdAaAAfb1dc4039ceC2 |
| Mumbai | 80001 | v2.3.6 | 0x63e00a9aE661CC88620B5F71FE03DaDa958B5096 |
| Avax | 43114 | v2.3.6 | 0xba42dC1C5aa0f1094806c2914aA916E2cFe3d10E |
| Optimism | 10 | v2.3.6 | 0xba42dC1C5aa0f1094806c2914aA916E2cFe3d10E |

## TheBadgeUsers

| Network | ChainID | Tag | Address |
| -------- | -------- | ------ | ------------------------------------------ |
| Goerli | 5 | v2.3.5 | 0xbAaA5510144470eBE7260B743CA5516596A0250E |
| Sepolia | 11155111 | v2.3.5 | 0xbAaA5510144470eBE7260B743CA5516596A0250E |
| xDai | 100 | v2.3.5 | 0x8C0DcD187127b88665fE8FD4F39Cb18758946C0f |
| Polygon | 137 | v2.3.5 | 0x8Edfc741aED6B2C43485983d4C7b6B095b00500c |
| Mumbai | 80001 | v2.3.5 | 0xAdCd2Cd1249211EeD1D4d72b1E8B53F3A792e5da |
| Avax | 43114 | v2.3.5 | 0xDb5c2bcfD8cc522B8DD634DC507E135383049566 |
| Optimism | 10 | v2.3.5 | 0xDb5c2bcfD8cc522B8DD634DC507E135383049566 |
| Goerli | 5 | v2.3.6 | 0xbAaA5510144470eBE7260B743CA5516596A0250E |
| Sepolia | 11155111 | v2.3.6 | 0xbAaA5510144470eBE7260B743CA5516596A0250E |
| xDai | 100 | v2.3.6 | 0x8C0DcD187127b88665fE8FD4F39Cb18758946C0f |
| Polygon | 137 | v2.3.6 | 0x8Edfc741aED6B2C43485983d4C7b6B095b00500c |
| Mumbai | 80001 | v2.3.6 | 0xAdCd2Cd1249211EeD1D4d72b1E8B53F3A792e5da |
| Avax | 43114 | v2.3.6 | 0xDb5c2bcfD8cc522B8DD634DC507E135383049566 |
| Optimism | 10 | v2.3.6 | 0xDb5c2bcfD8cc522B8DD634DC507E135383049566 |

## TheBadgeModels

| Network | ChainID | Tag | Address |
| -------- | -------- | ------ | ------------------------------------------ |
| Goerli | 5 | v2.3.5 | 0xDb5c2bcfD8cc522B8DD634DC507E135383049566 |
| Sepolia | 11155111 | v2.3.5 | 0xDb5c2bcfD8cc522B8DD634DC507E135383049566 |
| xDai | 100 | v2.3.5 | 0x277D01AACE02C9e6Fa617Ea61Ece24BEDa46453c |
| Polygon | 137 | v2.3.5 | 0x3C838b8571c53D29108F69b98145f8FcC446Fa5a |
| Mumbai | 80001 | v2.3.5 | 0x3540D8484C5ab270b53e16EDD71791d37A49BBf8 |
| Avax | 43114 | v2.3.5 | 0xd53Ec6aB9242cD8f8A8aa839BA91BDeDe6219475 |
| Optimism | 10 | v2.3.5 | 0xd53Ec6aB9242cD8f8A8aa839BA91BDeDe6219475 |
| Goerli | 5 | v2.3.6 | 0xDb5c2bcfD8cc522B8DD634DC507E135383049566 |
| Sepolia | 11155111 | v2.3.6 | 0xDb5c2bcfD8cc522B8DD634DC507E135383049566 |
| xDai | 100 | v2.3.6 | 0x277D01AACE02C9e6Fa617Ea61Ece24BEDa46453c |
| Polygon | 137 | v2.3.6 | 0x3C838b8571c53D29108F69b98145f8FcC446Fa5a |
| Mumbai | 80001 | v2.3.6 | 0x3540D8484C5ab270b53e16EDD71791d37A49BBf8 |
| Avax | 43114 | v2.3.6 | 0xd53Ec6aB9242cD8f8A8aa839BA91BDeDe6219475 |
| Optimism | 10 | v2.3.6 | 0xd53Ec6aB9242cD8f8A8aa839BA91BDeDe6219475 |

## KlerosBadgeModelController

| Network | ChainID | Tag | Address |
| ------- | -------- | ------ | ------------------------------------------ |
| Goerli | 5 | v2.3.5 | 0x2C68a077fc4b4e694958A978b409e4127D68f811 |
| Sepolia | 11155111 | v2.3.5 | 0x2C68a077fc4b4e694958A978b409e4127D68f811 |
| xDai | 100 | v2.3.5 | 0x51e6775fFcDc4E7bd819663E9CabD2bE723C4fBf |
| Goerli | 5 | v2.3.6 | 0x2C68a077fc4b4e694958A978b409e4127D68f811 |
| Sepolia | 11155111 | v2.3.6 | 0x2C68a077fc4b4e694958A978b409e4127D68f811 |
| xDai | 100 | v2.3.6 | 0x51e6775fFcDc4E7bd819663E9CabD2bE723C4fBf |

## KlerosBadgeModelControllerStore

| Network | ChainID | Tag | Address |
| ------- | -------- | ------ | ------------------------------------------ |
| Goerli | 5 | v2.3.5 | 0x5F7BF602cF2cc5f631C639293CA0bC733eCD31A6 |
| Sepolia | 11155111 | v2.3.5 | 0x5F7BF602cF2cc5f631C639293CA0bC733eCD31A6 |
| xDai | 100 | v2.3.5 | 0x86a3C11F2531cb064A4862d371DCB53793E26437 |
| Goerli | 5 | v2.3.6 | 0x5F7BF602cF2cc5f631C639293CA0bC733eCD31A6 |
| Sepolia | 11155111 | v2.3.6 | 0x5F7BF602cF2cc5f631C639293CA0bC733eCD31A6 |
| xDai | 100 | v2.3.6 | 0x86a3C11F2531cb064A4862d371DCB53793E26437 |

## TpBadgeModelController

| Network | ChainID | Tag | Address |
| -------- | -------- | ------ | ------------------------------------------ |
| Goerli | 5 | v2.3.5 | 0xB085F625E976c913b82Bf291d32Dc0E55566D3Af |
| Sepolia | 11155111 | v2.3.5 | 0xB085F625E976c913b82Bf291d32Dc0E55566D3Af |
| xDai | 100 | v2.3.5 | 0xDd3472bD0B1382e90238D19b5916C71a657eF223 |
| Polygon | 137 | v2.3.5 | 0x4dC5E2FaC3D0254fEF7f40163261b9307c1C9df3 |
| Mumbai | 80001 | v2.3.5 | 0x323370530CC8481Bb1599d4C9d565053c8BADAb1 |
| Avax | 43114 | v2.3.5 | 0xA76ba1A457BBCBc4736D9a9028dD29f4e89322e5 |
| Optimism | 10 | v2.3.5 | 0xf668aff78410CAB48ccEB5c804704050c2096eC2 |
| Goerli | 5 | v2.3.6 | 0xB085F625E976c913b82Bf291d32Dc0E55566D3Af |
| Sepolia | 11155111 | v2.3.6 | 0xB085F625E976c913b82Bf291d32Dc0E55566D3Af |
| xDai | 100 | v2.3.6 | 0xDd3472bD0B1382e90238D19b5916C71a657eF223 |
| Polygon | 137 | v2.3.6 | 0x4dC5E2FaC3D0254fEF7f40163261b9307c1C9df3 |
| Mumbai | 80001 | v2.3.6 | 0x323370530CC8481Bb1599d4C9d565053c8BADAb1 |
| Avax | 43114 | v2.3.6 | 0xA76ba1A457BBCBc4736D9a9028dD29f4e89322e5 |
| Optimism | 10 | v2.3.6 | 0xf668aff78410CAB48ccEB5c804704050c2096eC2 |

## TpBadgeModelControllerStore

| Network | ChainID | Tag | Address |
| -------- | -------- | ------ | ------------------------------------------ |
| Goerli | 5 | v2.3.5 | 0x9521e582c3d52cF6a8Dd5adc350f66cB0814c281 |
| Sepolia | 11155111 | v2.3.5 | 0x9521e582c3d52cF6a8Dd5adc350f66cB0814c281 |
| xDai | 100 | v2.3.5 | 0x59168cE4F00531D8d86aB1eeBBB670DB537dA8AB |
| Polygon | 137 | v2.3.5 | 0x46d5469385C4Af4a3dd858AA839fc49d1f6c485f |
| Mumbai | 80001 | v2.3.5 | 0x76c422969185675Ec46a80B765621B63451cF9F1 |
| Avax | 43114 | v2.3.5 | 0x24b3111b7C3D922179e4054F41fCb62ec474a872 |
| Optimism | 10 | v2.3.5 | 0x4F82B8F6c299ADd3f45aD0b32fDd49A62d469f57 |
| Goerli | 5 | v2.3.6 | 0x9521e582c3d52cF6a8Dd5adc350f66cB0814c281 |
| Sepolia | 11155111 | v2.3.6 | 0x9521e582c3d52cF6a8Dd5adc350f66cB0814c281 |
| xDai | 100 | v2.3.6 | 0x59168cE4F00531D8d86aB1eeBBB670DB537dA8AB |
| Polygon | 137 | v2.3.6 | 0x46d5469385C4Af4a3dd858AA839fc49d1f6c485f |
| Mumbai | 80001 | v2.3.6 | 0x76c422969185675Ec46a80B765621B63451cF9F1 |
| Avax | 43114 | v2.3.6 | 0x24b3111b7C3D922179e4054F41fCb62ec474a872 |
| Optimism | 10 | v2.3.6 | 0x4F82B8F6c299ADd3f45aD0b32fDd49A62d469f57 |
Loading

0 comments on commit 58da7f1

Please sign in to comment.