MasterStreamDataSpotter
FinalizedData
MasterStreamDataSpotter
MasterStreamDataSpotter__OnlyDataSpotter
MasterStreamDataSpotter__OnlyDataSpotterFactory
MasterStreamDataSpotter__DataKeyNotAllowed
DataFinalized
ConsensusReadyToFinalize
ADMIN
factory
SpotterData
spotterData
initialize
Initializer
Parameters
Name | Type | Description |
---|---|---|
initAddr | address[2] | - 0: admin, 1: factory |
_authorizeUpgrade
_onlyDataSpotter
onlyDataSpotter
_onlyDataSpotterFactory
onlyDataSpotterFactory
setAllowedKeys
factory function to set allowed keys for spotter
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | protocol id |
sourceId | bytes32 | source id |
allowedKeys | bytes32[] | array of allowed dataKeys |
checkIsAllowedKey
calcMerkleRoot
Build the merkle tree from provided proofs and return the root
pushFinalizedData
Function for spotters to push their finalized data to proceed with aggregation
Parameters
Name | Type | Description |
---|---|---|
dataKey | bytes32 | data key |
data | struct FinalizedData | finalized data |
declareConsensusReadyToFinalize
Function for spotters to declare consensus ready to finalize
called by any Stream Data Spotter contract
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | protocol id |
sourceId | bytes32 | source id |
dataKey | bytes32 | data key |
getFinalizedData
get finalized data for specific sourceId and dataKey
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | protocol id |
sourceId | bytes32 | source id |
dataKey | bytes32 | data key |
getAllowedKeys
Get allowed keys list for specific protocolId and sourceId
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | protocol id |
sourceId | bytes32 | source id |
Last updated