mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-17 19:13:10 -06:00
Removing the OpenZeppelin ownership logic, and, checking directly for the ownership of the Space’s SpaceOwner NFT. The SpaceFactory could be the owner during the bootstrapping phase, and afterwards, could transfer the NFT to the proper owner. Doing a direct check like _spaceOwner().ownerOf(tokenId) == _msgSender() would be safe because that’s what the owner entitlement is going to check eventually. --------- Co-authored-by: Kerem Kazan <kerem.kazan@gmail.com> |
||
|---|---|---|
| .. | ||
| contracts | ||
| contract_addresses.go | ||
| README.md | ||
| space_contract.go | ||
| space_contract_goerli.go | ||
| space_contract_localhost.go | ||
| store.go | ||
| store_types.go | ||
| user_identifier.go | ||
| util_converters.go | ||
| util_web3.go | ||
| zion.go | ||
| zion_authorization.go | ||
Purpose
Additional packages added for the Zion project, nothing in here should be in the Matrix Dendrite upstream, nor in the herenotthere/dendrite-fork.
The zion_space_manager_(mainnet|rinkeby|localhost).go files are generated as new versions of the smart contracts are build and deployed. The bindings are in this location so they can be built alongside the dendrite server in the build process.