StreamDataSpotterFactory
StreamDataSpotterFactory__SpotterDoesNotExist
StreamDataSpotterFactory__SpotterAlreadyExist
StreamDataSpotterFactory__SpotterDisabledSettingAllowedKeys
StreamDataSpotterFactory__CallerIsNotSpotter
StreamDataSpotterFactory__CallerIsNotAllowedTransmitter
StreamDataSpotterFactory__CallerIsNotAllowedExecutor
StreamDataSpotterFactory__CallerIsNotAllowedProtocolOwner
StreamDataSpotterFactory__InvalidConsensusRate
NewStreamDataSpotter
SetSpotterConsensusRate
SetMinFinalizationInterval
SetAllowedKeys
ADMIN
ROUND_MANAGER
PendedConsensusRate
PendedMinFinalizationInterval
pendedConsensusRate
pendedMinFinalizationInterval
isSpotter
allSpotters
externalDeveloperHub
masterSmartContract
masterStreamDataSpotter
betManager
__chainId
initialize
Initializer
Parameters
Name | Type | Description |
---|---|---|
initAddr | address[5] | 0: admin, 1: externalDeveloperHub, 2: MasterSmartContract, 3: BetManager, 4: RoundManager |
_authorizeUpgrade
_onlyProtocolOwner
onlyProtocolOwner
_onlySpotter
onlySpotter
setMasterStreamDataSpotter
sets masterStreamDataSpotter contract address
Parameters
Name | Type | Description |
---|---|---|
newMasterStreamDataSpotter | address | MasterStreamDataSpotter contract address |
placeBet
releaseBetsAndReward
finalizeData
Executor function that attempts to trigger update for a given dataKey asset
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | protocol id |
sourceId | bytes32 | source id |
dataKey | bytes32 | data key |
proposeData
Transmitter function that allows to propose data for a given dataKey asset
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | protocol id |
sourceId | bytes32 | source id |
dataKey | bytes32 | data key |
value | bytes |
deployNewStreamDataSpotter
Deploy spotter contract for the new sourceID
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | protocol id |
sourceId | bytes32 | source id |
processingLib | address | address of deployed processing lib contract to be used for that spotter |
consensusRate | uint256 | consensus rate of agents necessary for update to happend |
minFinalizationInterval | uint256 | |
allowedKeys | bytes32[] | array of allowed data keys, only existing datakeys can be used to vote the data for |
onlyAllowedKeys | bool | if false, any key can be used as data key in DataSpotter |
setSpotterConsensusRate
changes consensus rate for a spotter
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | protocol id |
sourceId | bytes32 | source id |
newConsensusRate | uint256 | new consensus rate |
setMinFinalizationInterval
changes minimum finalization interval for a spotter
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | protocol id |
sourceId | bytes32 | source id |
newMinFinalizationInterval | uint256 | new minimum finalization interval |
setAllowedKeys
set allowed keys for deployed spotter
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | protocol id |
sourceId | bytes32 | source id |
allowedKeys | bytes32[] | array of new allowed datakeys |
allSpottersLength
getSpotter
get spotter contract address for source id
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | protocol id |
sourceId | bytes32 | source id |
getConsensusRate
turnRound
Last updated