IPoolRegistry
Overview
License: Apache 2.0
interface IPoolRegistryAuthor: Gabriele Rigo - gab@rigoblock.com
Structs info
PoolMeta
struct PoolMeta {
mapping(bytes32 => bytes32) meta;
}Mapping of pool meta by pool key.
Parameters:
meta
mapping(bytes32 => bytes32)
Mapping of bytes32 key to bytes32 meta.
Events info
AuthorityChanged
Emitted when Rigoblock Dao updates authority address.
Parameters:
authority
address
Address of the new authority contract.
MetaChanged
Emitted when pool owner updates meta data for its pool.
Parameters:
pool
address
Address of the pool.
key
bytes32
Bytes32 key for indexing.
value
bytes32
Bytes32 of the value associated with the key.
Registered
Emitted when a new pool is registered in registry.
Parameters:
group
address
Address of the pool factory.
pool
address
Address of the registered pool.
name
bytes32
String name of the pool.
symbol
bytes32
String name of the pool.
id
bytes32
Bytes32 id of the pool.
RigoblockDaoChanged
Emitted when rigoblock Dao address is updated.
Parameters:
rigoblockDao
address
New Dao address.
Functions info
authority (0xbf7e214f)
Returns the address of the Rigoblock authority contract.
Return values:
[0]
address
Address of the authority contract.
rigoblockDao (0x3edd80c3)
Returns the address of the Rigoblock Dao.
Return values:
[0]
address
Address of the Rigoblock Dao.
register (0x3f47734b)
Allows a factory which is an authority to register a pool.
Parameters:
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.
setAuthority (0x7a9e5e4b)
Allows Rigoblock governance to update authority.
Parameters:
authority
address
Address of the authority contract.
setMeta (0x56d002c4)
Allows pool owner to set metadata for a pool.
Parameters:
pool
address
Address of the pool.
key
bytes32
Bytes32 of the key.
value
bytes32
Bytes32 of the value.
setRigoblockDao (0xb516e6e1)
Allows Rigoblock Dao to update its address.
Creates internal record.
Parameters:
newRigoblockDao
address
Address of the Rigoblock Dao.
getMeta (0x386f5adf)
Returns metadata for a given pool.
Parameters:
pool
address
Address of the pool.
key
bytes32
Bytes32 key.
Return values:
poolMeta
bytes32
Meta by key.
getPoolIdFromAddress (0x2cee2191)
Returns the id of a pool from its address.
Parameters:
pool
address
Address of the pool.
Return values:
poolId
bytes32
bytes32 id of the pool.
Last updated