Skip to content

Commit

Permalink
chore(FnameResolver): add deploy script (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
horsefacts authored Jul 24, 2023
1 parent 8c96cd6 commit 4f76604
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
STORAGE_RENT_PRICE_FEED_ADDRESS=
STORAGE_RENT_UPTIME_FEED_ADDRESS=
STORAGE_RENT_ROLE_ADMIN_ADDRESS=
STORAGE_RENT_VAULT_ADDRESS=
STORAGE_RENT_ADMIN_ADDRESS=
STORAGE_RENT_OPERATOR_ADDRESS=
STORAGE_RENT_TREASURER_ADDRESS=
ID_REGISTRY_OWNER_ADDRESS=
FNAME_RESOLVER_SERVER_URI=
FNAME_RESOLVER_SIGNER_ADDRESS=
21 changes: 21 additions & 0 deletions script/FnameResolver.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.19;

import "forge-std/Script.sol";

import {FnameResolver} from "../src/FnameResolver.sol";

contract FnameResolverScript is Script {
bytes32 internal constant CREATE2_SALT = "fc";

function run() public {
string memory serverURI = vm.envString("FNAME_RESOLVER_SERVER_URL");
address signer = vm.envAddress("FNAME_RESOLVER_SIGNER_ADDRESS");

vm.broadcast();
new FnameResolver{ salt: CREATE2_SALT }(
serverURI,
signer
);
}
}

0 comments on commit 4f76604

Please sign in to comment.