-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add short and long description to space owner metadata (#276)
Proposals: **Update Space Factory with upgraded Architect Facet for Space Owner Metadata changes** - https://testnets.llama.xyz/orgs/river/base-sepolia/actions/150 **Upgrade SpaceOwner Facet on Space Owner Diamond** - https://testnets.llama.xyz/orgs/river/base-sepolia/actions/151 **Add Space Owner Diamond Proxy to Governance** - Mainnet: https://app.llama.xyz/orgs/river/base/actions/75 - Testnet: https://testnets.llama.xyz/orgs/river/base-sepolia/actions/149 --------- Co-authored-by: Tak Wai Wong <[email protected]>
- Loading branch information
1 parent
50cd0a3
commit 2d59dda
Showing
38 changed files
with
634 additions
and
162 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
53 changes: 53 additions & 0 deletions
53
contracts/scripts/deployments/facets/DeploySpaceOwnerFacet.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,53 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.23; | ||
|
||
//interfaces | ||
|
||
//libraries | ||
|
||
//contracts | ||
import {Deployer} from "contracts/scripts/common/Deployer.s.sol"; | ||
import {FacetHelper} from "contracts/test/diamond/Facet.t.sol"; | ||
|
||
import {SpaceOwner} from "contracts/src/spaces/facets/owner/SpaceOwner.sol"; | ||
import {ERC721AHelper} from "contracts/test/diamond/erc721a/ERC721ASetup.sol"; | ||
import {VotesHelper} from "contracts/test/governance/votes/VotesSetup.sol"; | ||
|
||
contract DeploySpaceOwnerFacet is FacetHelper, Deployer { | ||
ERC721AHelper erc721aHelper = new ERC721AHelper(); | ||
VotesHelper votesHelper = new VotesHelper(); | ||
|
||
constructor() { | ||
addSelector(SpaceOwner.setFactory.selector); | ||
addSelector(SpaceOwner.getFactory.selector); | ||
addSelector(SpaceOwner.nextTokenId.selector); | ||
addSelector(SpaceOwner.mintSpace.selector); | ||
addSelector(SpaceOwner.getSpaceInfo.selector); | ||
addSelector(SpaceOwner.updateSpaceInfo.selector); | ||
addSelectors(erc721aHelper.selectors()); | ||
addSelectors(votesHelper.selectors()); | ||
} | ||
|
||
function initializer() public pure override returns (bytes4) { | ||
return SpaceOwner.__SpaceOwner_init.selector; | ||
} | ||
|
||
function makeInitData( | ||
string memory name, | ||
string memory symbol, | ||
string memory version | ||
) public pure returns (bytes memory) { | ||
return abi.encodeWithSelector(initializer(), name, symbol, version); | ||
} | ||
|
||
function versionName() public pure override returns (string memory) { | ||
return "spaceOwnerFacet"; | ||
} | ||
|
||
function __deploy(address deployer) public override returns (address) { | ||
vm.startBroadcast(deployer); | ||
SpaceOwner facet = new SpaceOwner(); | ||
vm.stopBroadcast(); | ||
return address(facet); | ||
} | ||
} |
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
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
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.