dendrite/zion
Giuseppe Rodriguez cade6d1de3 Audit Fixes 3 - [M-1] More than one Role can contain the Permissions.Owner permission (#1429)
Impact: High

Likelihood: Low

According to the discussion with the team, it is expected that in Space
contracts, only one Role can have the Permissions.Owner permission.
Currently, multiple Roles can be created containing this permission.
This is caused by Space.sol’s createRole() function allowing the
OpenZeppelin owner to create new owner-permissioned roles without limit.

Remediations to consider:

Do not allow multiple roles to be created with the ownership permission.
This could be done with something like: if Space.sol’s ownerRoleId is
set, do not allow new roles to be created with the Permissions.Owner
permission.

 Fixes HNT-703 as well
2023-02-07 19:23:07 -08:00
..
contracts Audit Fixes 3 - [M-1] More than one Role can contain the Permissions.Owner permission (#1429) 2023-02-07 19:23:07 -08:00
contract_addresses.go delete v1 smart contract-related code from dendrite (#1263) 2023-01-19 17:08:30 -08:00
README.md Sync dendrite fork changes for gating, and single chain support (#778) 2022-11-01 11:09:34 -07:00
space_contract.go Add goerli types to client lib and dendrite (#1247) 2023-01-19 09:42:09 -08:00
space_contract_goerli.go Add goerli types to client lib and dendrite (#1247) 2023-01-19 09:42:09 -08:00
space_contract_localhost.go Add goerli types to client lib and dendrite (#1247) 2023-01-19 09:42:09 -08:00
store.go matrix room Id does not resolve to channelId or spaceId correctly (#1010) 2022-11-30 20:12:00 -08:00
store_types.go Jterzis/update dendrite (#656) 2022-10-17 15:59:47 -07:00
user_identifier.go Jterzis/update dendrite (#656) 2022-10-17 15:59:47 -07:00
util_converters.go fix dendrite to interact with v1 / v2 contracts (#1155) 2022-12-29 15:37:03 -08:00
util_web3.go fix dendrite to interact with v1 / v2 contracts (#1155) 2022-12-29 15:37:03 -08:00
zion.go Setup foundry to build abi.json files (#509) 2022-09-23 14:20:03 -07:00
zion_authorization.go delete v1 smart contract-related code from dendrite (#1263) 2023-01-19 17:08:30 -08:00

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.