MasterStreamDataSpotter
FinalizedData
MasterStreamDataSpotter
MasterStreamDataSpotter__OnlyDataSpotter
MasterStreamDataSpotter__OnlyDataSpotterFactory
MasterStreamDataSpotter__DataKeyNotAllowed
DataFinalized
ConsensusReadyToFinalize
ADMIN
factory
SpotterData
spotterData
initialize
Initializer
Parameters
initAddr
address[2]
- 0: admin, 1: factory
_authorizeUpgrade
_onlyDataSpotter
onlyDataSpotter
_onlyDataSpotterFactory
onlyDataSpotterFactory
setAllowedKeys
factory function to set allowed keys for spotter
Parameters
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
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
protocolId
bytes32
protocol id
sourceId
bytes32
source id
dataKey
bytes32
data key
getFinalizedData
get finalized data for specific sourceId and dataKey
Parameters
protocolId
bytes32
protocol id
sourceId
bytes32
source id
dataKey
bytes32
data key
getAllowedKeys
Get allowed keys list for specific protocolId and sourceId
Parameters
protocolId
bytes32
protocol id
sourceId
bytes32
source id
Last updated