pool registry docs
address authority
Returns the address of the Rigoblock authority contract.
address rigoblockDao
Returns the address of the Rigoblock Dao.
mapping(address => bytes32) _mapIdByAddress
mapping(address => struct IPoolRegistry.PoolMeta) _poolMetaByAddress
modifier onlyWhitelistedFactory()
modifier onlyPoolOperator(address pool)
modifier onlyRigoblockDao()
modifier whenAddressFree(address pool)
modifier whenPoolRegistered(address pool)
constructor(address newAuthority, address newRigoblockDao) public
function register(address pool, string name, string symbol, bytes32 poolId) external
Allows a factory which is an authority to register a pool.
Name | Type | Description |
---|---|---|
pool | address | Address of the pool. |
name | string | String name of the pool (31 characters/bytes or less). |
symbol | string | String symbol of the pool (3 to 5 characters/bytes). |
poolId | bytes32 | Bytes32 of the pool id. |
function setAuthority(address newAuthority) external
Allows Rigoblock governance to update authority.
Name | Type | Description |
---|---|---|
newAuthority | address | |
function setMeta(address pool, bytes32 key, bytes32 value) external
Allows pool owner to set metadata for a pool.
Name | Type | Description |
---|---|---|
pool | address | Address of the pool. |
key | bytes32 | Bytes32 of the key. |
value | bytes32 | Bytes32 of the value. |
function setRigoblockDao(address newRigoblockDao) external
Allows Rigoblock Dao to update its address.
Creates internal record.
Name | Type | Description |
---|---|---|
newRigoblockDao | address | Address of the Rigoblock Dao. |
function getPoolIdFromAddress(address pool) external view returns (bytes32 poolId)
Returns the id of a pool from its address.
Name | Type | Description |
---|---|---|
pool | address | Address of the pool. |
Name | Type | Description |
---|---|---|
poolId | bytes32 | bytes32 id of the pool. |
function getMeta(address pool, bytes32 key) external view returns (bytes32 poolMeta)
Returns metadata for a given pool.
Name | Type | Description |
---|---|---|
pool | address | Address of the pool. |
key | bytes32 | Bytes32 key. |
Name | Type | Description |
---|---|---|
poolMeta | bytes32 | Meta by key. |
function _assertValidNameAndSymbol(string name, string symbol) internal pure
function _isContract(address target) private view returns (bool)
Last modified 2mo ago