Skip to content

Commit

Permalink
Merge pull request #160 from axieinfinity/implement-feature/rework/ad…
Browse files Browse the repository at this point in the history
…d-profile

feat(rework): implement `add-profile`
  • Loading branch information
TuDo1403 authored Oct 7, 2024
2 parents f3f5311 + 1328dee commit 7f1f948
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/BaseGeneralConfig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ contract BaseGeneralConfig is
// Double check source: https://saigon-app.roninchain.com/address/0x54B3AC74a90E64E8dDE60671b6fE8F8DDf18eC9d
setAddress(roninTestnet, DefaultContract.RoninValidatorSet.key(), 0x54B3AC74a90E64E8dDE60671b6fE8F8DDf18eC9d);

// Double check source: https://saigon-app.roninchain.com/address/0x3b67c8D22a91572a6AB18acC9F70787Af04A4043
setAddress(roninTestnet, DefaultContract.Profile.key(), 0x3b67c8D22a91572a6AB18acC9F70787Af04A4043);

// Double check source: https://saigon-app.roninchain.com/address/0xA60c1e07fa030E4B49Eb54950ADb298Ab94dD312
setAddress(roninTestnet, DefaultContract.RoninVRFCoordinator.key(), 0xA60c1e07fa030E4B49Eb54950ADb298Ab94dD312);

Expand Down Expand Up @@ -200,6 +203,9 @@ contract BaseGeneralConfig is
// Double check source: https://app.roninchain.com/address/0x617c5d73662282EA7FfD231E020eCa6D2B0D552f
setAddress(roninMainnet, DefaultContract.RoninValidatorSet.key(), 0x617c5d73662282EA7FfD231E020eCa6D2B0D552f);

// Double check source: https://app.roninchain.com/address/0x840EBf1CA767CB690029E91856A357a43B85d035
setAddress(roninMainnet, DefaultContract.Profile.key(), 0x840EBf1CA767CB690029E91856A357a43B85d035);

// Double check source: https://app.roninchain.com/address/0x16A62a921e7fEC5Bf867fF5c805b662Db757B778
setAddress(roninMainnet, DefaultContract.RoninVRFCoordinator.key(), 0x16A62a921e7fEC5Bf867fF5c805b662Db757B778);

Expand Down
2 changes: 2 additions & 0 deletions script/utils/DefaultContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ enum DefaultContract {
ERC721BatchTransfer,
RoninGovernanceAdmin,
RoninValidatorSet,
Profile,
RoninVRFCoordinator
}

Expand Down Expand Up @@ -61,5 +62,6 @@ function name(
if (defaultContract == DefaultContract.RoninGovernanceAdmin) return "RoninGovernanceAdmin";
if (defaultContract == DefaultContract.RoninValidatorSet) return "RoninValidatorSet";
if (defaultContract == DefaultContract.RoninVRFCoordinator) return "RoninVRFCoordinator";
if (defaultContract == DefaultContract.Profile) return "Profile";
revert("DefaultContract: Unknown contract");
}

0 comments on commit 7f1f948

Please sign in to comment.