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

feat(controller): implement blacklist-fullstring #123

Closed
Changes from 8 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
2c27fe0
feat: update RONRegistrarController artifact that validate name in re…
TuDo1403 Oct 24, 2023
9413dd4
fix: validate available name for registerProtectectedName fn (#108)
TuDo1403 Oct 25, 2023
ef648ca
chore: add artifact for rns unified that allow reverse registrar to m…
TuDo1403 Oct 25, 2023
72a5821
chore(`rns-unified`): merge from `release/v0.2.0` (#106)
TuDo1403 Oct 25, 2023
89b450e
fix: getRecord fn return non null owner when id is expired
TuDo1403 Oct 25, 2023
c0a5cf4
chore: add artifact for rns unified that nullify owner in getRecord f…
TuDo1403 Oct 25, 2023
49105dc
feat(rns-unified): implement `invalidate-expired-owner` (#110)
TuDo1403 Oct 25, 2023
3667736
feat: allow 3rd level domain for parent 'addr.reverse' & nullify doma…
TuDo1403 Oct 25, 2023
7b1da92
Merge branch 'release/v0.2.0' into deploy/v0.2.0-testnet
TuDo1403 Oct 25, 2023
ca9e0c6
chore: add latests artifacts for `RNSUnified`, `RONRegistrarControlle…
TuDo1403 Oct 25, 2023
2ca16ce
feature update dynamic list feature branches
huyngopt1994 Oct 25, 2023
0e8768f
Add needs
huyngopt1994 Oct 25, 2023
b25984e
feat: update dynamic list feature branches (#115)
ducthotran2010 Oct 25, 2023
23abf06
Change feature grep pattern in CI
huyngopt1994 Oct 25, 2023
824e342
fix: feature grep pattern in CI (#116)
ducthotran2010 Oct 25, 2023
cd82168
change grep pattern for avoiding merge pattern
huyngopt1994 Oct 25, 2023
13982e5
fix: grep pattern for avoiding merge pattern (#118)
ducthotran2010 Oct 25, 2023
5c59ea1
chore: merge from branch 'release/v0.2.0' (#119)
ducthotran2010 Oct 25, 2023
9fbfc8d
forge install: foundry-deployment-kit
TuDo1403 Nov 4, 2023
a3f217e
forge install: foundry-deployment-kit
TuDo1403 Nov 4, 2023
32e113b
forge install: migration-20231015
TuDo1403 Nov 4, 2023
2ef1a79
forge install: foundry-deployment-kit
TuDo1403 Nov 5, 2023
9433b2e
forge install: migration-20231020
TuDo1403 Nov 5, 2023
72adf44
forge install: migration-20231024
TuDo1403 Nov 5, 2023
54c6bd9
forge install: migration-20231025
TuDo1403 Nov 5, 2023
e7ef83c
forge install: foundry-deployment-kit
TuDo1403 Nov 6, 2023
95a1c4e
feat: add mainnet deployment script
TuDo1403 Nov 6, 2023
4cdc147
chore: clean up config
ducthotran2010 Nov 6, 2023
d7a9e65
chore: rm unncessary checks
ducthotran2010 Nov 6, 2023
69e2f5b
chore: add deployment artifacts
ducthotran2010 Nov 6, 2023
c5be330
forge install: foundry-deployment-kit
TuDo1403 Nov 6, 2023
a8ee9a0
feat: add mainnet config prelaunch config
TuDo1403 Nov 6, 2023
5bde2e4
feat: move json parsing logic to internal fn
TuDo1403 Nov 6, 2023
47b94a3
feat: config owner multicaller & add test reserved names
TuDo1403 Nov 7, 2023
d949508
feat: add Migration__20231106_TransferOwnership script
TuDo1403 Nov 7, 2023
35b021f
feat: add Migration__20231106_TransferOwnership script
TuDo1403 Nov 7, 2023
73d646a
fix: fix script setApprovalForAll
TuDo1403 Nov 7, 2023
120f23a
feat: add pause gas metering
TuDo1403 Nov 7, 2023
2757885
feat: add prelaunch config migration scripts (#122)
ducthotran2010 Nov 7, 2023
df27c36
chore: add broadcast artifact
ducthotran2010 Nov 10, 2023
26a58c5
feat: add claim-auction, list-auction, set-protected script
TuDo1403 Nov 11, 2023
2912e65
feat: add whitelist-protected script
TuDo1403 Nov 11, 2023
f773850
feat: add override-fee script
TuDo1403 Nov 13, 2023
d266d22
feat: update list-auction script
TuDo1403 Nov 13, 2023
b680b0b
feat: add place-bid script
TuDo1403 Nov 13, 2023
c212df2
fix: override-fee script
TuDo1403 Nov 13, 2023
e8ccaa4
feat: blacklist full string instead of substrings
TuDo1403 Nov 14, 2023
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
32 changes: 17 additions & 15 deletions script/20231106-config-prelaunch/20231106_SubmitReservedNames.s.sol
Original file line number Diff line number Diff line change
@@ -13,15 +13,29 @@ contract Migration__20231106_SubmitReservedNames is RNSDeploy {
using JSONParserLib for JSONParserLib.Item;

function run() public {
string memory raw = vm.readFile("script/20231106-script/data/mock.json");
(address[] memory tos, string[] memory labels) = _parseData("script/20231106-script/data/mock.json");

uint64 duration = uint64(365 days);
OwnedMulticaller multicall = new OwnedMulticallerDeploy().run();
RNSUnified rns = RNSUnified(_config.getAddressFromCurrentNetwork(ContractKey.RNSUnified));
address resolver = _config.getAddressFromCurrentNetwork(ContractKey.PublicResolver);
address ronOwner = rns.ownerOf(LibRNSDomain.RON_ID);
vm.startBroadcast(ronOwner);
rns.approve(address(multicall), LibRNSDomain.RON_ID);
multicall.multiMint(rns, LibRNSDomain.RON_ID, resolver, duration, tos, labels);
vm.stopBroadcast();
}

function _parseData(string memory path) internal view returns (address[] memory tos, string[] memory labels) {
string memory raw = vm.readFile(path);
console2.log("raw", raw);
JSONParserLib.Item memory reservedNames = raw.parse().at('"reservedNames"');
uint256 length = reservedNames.size();

console2.log("length", length);

address[] memory tos = new address[](length);
string[] memory labels = new string[](length);
tos = new address[](length);
labels = new string[](length);

for (uint256 i; i < length; ++i) {
tos[i] = vm.parseAddress(reservedNames.at(i).at('"address"').value().decodeString());
@@ -30,17 +44,5 @@ contract Migration__20231106_SubmitReservedNames is RNSDeploy {
console2.log("tos:", i, tos[i]);
console2.log("labels:", i, labels[i]);
}

uint64 duration = uint64(365 days);
OwnedMulticaller multicall = new OwnedMulticallerDeploy().run();
RNSUnified rns = RNSUnified(_config.getAddressFromCurrentNetwork(ContractKey.RNSUnified));
address resolver = _config.getAddressFromCurrentNetwork(ContractKey.PublicResolver);

address ronOwner = rns.ownerOf(LibRNSDomain.RON_ID);

vm.startBroadcast(ronOwner);
rns.approve(address(multicall), LibRNSDomain.RON_ID);
multicall.multiMint(rns, LibRNSDomain.RON_ID, resolver, duration, tos, labels);
vm.stopBroadcast();
}
}