-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
44,070 additions
and
585 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 |
---|---|---|
|
@@ -13,15 +13,19 @@ env: | |
HEAD_BRANCH: ${{ github.head_ref || github.ref_name }} | ||
|
||
jobs: | ||
mergeRelease2FeatureRnsUnified: | ||
mergeRelease2FeatureRepo: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
branch_name: [feature/rns-unified, feature/controller, feature/domain-price, feature/auction, feature/public-resolver, feature/ci, feature/reverse-registrar] | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/rns-unified" >> $GITHUB_ENV | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-${{matrix.branch_name}}" >> $GITHUB_ENV | ||
echo "FEATURE_NAME=$(echo ${{matrix.branch_name}} | cut -d'/' -f2)" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/rns-unified | ||
ref: ${{matrix.branch_name}} | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
|
@@ -34,205 +38,13 @@ jobs: | |
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/rns-unified | ||
toBranch: ${{matrix.branch_name}} | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
delete-branch: true | ||
title: 'chore(rns-unified): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} | ||
|
||
mergeRelease2FeatureController: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/controller" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/controller | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/controller | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
delete-branch: true | ||
title: 'chore(controller): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} | ||
|
||
mergeRelease2FeatureDomainPrice: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/domain-price" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/domain-price | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/domain-price | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
delete-branch: true | ||
title: 'chore(domain-price): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} | ||
|
||
mergeRelease2FeatureAuction: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/auction" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/auction | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/auction | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
delete-branch: true | ||
title: 'chore(auction): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} | ||
|
||
mergeRelease2FeaturePublicResolver: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/public-resolver" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/public-resolver | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/public-resolver | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
delete-branch: true | ||
title: 'chore(public-resolver): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} | ||
|
||
mergeRelease2FeatureCI: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/ci" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/ci | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/ci | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
delete-branch: true | ||
title: 'chore(ci): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} | ||
|
||
mergeRelease2FeatureReverseRegistrar: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/reverse-registrar" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/reverse-registrar | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/reverse-registrar | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
delete-branch: true | ||
title: 'chore(reverse-registrar): merge from `${{env.HEAD_BRANCH}}`' | ||
title: 'chore(`${{env.FEATURE_NAME}}`): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} |
52 changes: 52 additions & 0 deletions
52
broadcast/20231020_RNSUpgrade.s.sol/2021/run-1697784642.json
Large diffs are not rendered by default.
Oops, something went wrong.
111 changes: 111 additions & 0 deletions
111
broadcast/20231020_RNSUpgrade.s.sol/2021/run-1697784648.json
Large diffs are not rendered by default.
Oops, something went wrong.
111 changes: 111 additions & 0 deletions
111
broadcast/20231020_RNSUpgrade.s.sol/2021/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
12,802 changes: 12,541 additions & 261 deletions
12,802
deployments/ronin-testnet/RNSAuctionLogic.json
Large diffs are not rendered by default.
Oops, something went wrong.
14,657 changes: 14,605 additions & 52 deletions
14,657
deployments/ronin-testnet/RNSDomainPriceLogic.json
Large diffs are not rendered by default.
Oops, something went wrong.
16,528 changes: 16,467 additions & 61 deletions
16,528
deployments/ronin-testnet/RNSUnifiedLogic.json
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
script/20231021-upgrade-domain-price-and-auction/20231021_UpgradeDomainPriceAndAuction.s.sol
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,12 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import { ContractKey } from "foundry-deployment-kit/configs/ContractConfig.sol"; | ||
import { RNSDeploy } from "script/RNSDeploy.s.sol"; | ||
|
||
contract Migration__20231021_UpgradeDomainPriceAndAuction is RNSDeploy { | ||
function run() public trySetUp { | ||
_upgradeProxy(ContractKey.RNSAuction, EMPTY_ARGS); | ||
_upgradeProxy(ContractKey.RNSDomainPrice, EMPTY_ARGS); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
script/20231024-upgrade-auction/20231024_UpgradeAuction.s.sol
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 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import { ContractKey } from "foundry-deployment-kit/configs/ContractConfig.sol"; | ||
import { RNSDeploy } from "script/RNSDeploy.s.sol"; | ||
|
||
contract Migration__20231024_UpgradeAuction is RNSDeploy { | ||
function run() public trySetUp { | ||
_upgradeProxy(ContractKey.RNSAuction, EMPTY_ARGS); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
script/20231024-upgrade-domain-price/20231024_Config.s.sol
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,17 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import { Network, RNSDeploy } from "script/RNSDeploy.s.sol"; | ||
|
||
abstract contract Config__20231024 is RNSDeploy { | ||
function _buildMigrationConfig() internal view virtual override returns (Config memory config) { | ||
config = super._buildMigrationConfig(); | ||
if (_network == Network.RoninTestnet) { | ||
config.overrider = config.operator; | ||
} else if (_network == Network.RoninMainnet) { | ||
revert("Missing config"); | ||
} else { | ||
revert("Missing config"); | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
script/20231024-upgrade-domain-price/20231024_UpgradeDomainPrice.s.sol
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,23 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import { console2 } from "forge-std/console2.sol"; | ||
import { ContractKey } from "foundry-deployment-kit/configs/ContractConfig.sol"; | ||
import { RNSDomainPrice } from "@rns-contracts/RNSDomainPrice.sol"; | ||
import { Config__20231024 } from "./20231024_Config.s.sol"; | ||
|
||
contract Migration__20231024_UpgradeDomainPrice is Config__20231024 { | ||
function run() public trySetUp { | ||
Config memory config = getConfig(); | ||
_upgradeProxy(ContractKey.RNSDomainPrice, EMPTY_ARGS); | ||
|
||
console2.log("operator", config.operator); | ||
console2.log("overrider", config.overrider); | ||
|
||
RNSDomainPrice domainPrice = RNSDomainPrice(_config.getAddressFromCurrentNetwork(ContractKey.RNSDomainPrice)); | ||
address admin = domainPrice.getRoleMember(0x00, 0); | ||
bytes32 overriderRole = domainPrice.OVERRIDER_ROLE(); | ||
vm.broadcast(admin); | ||
domainPrice.grantRole(overriderRole, config.overrider); | ||
} | ||
} |
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
Oops, something went wrong.