Byteball開発者向け情報wiki - スポーツオラクルについて
このページは
オラクルの仕様を勉強するために

スポーツオラクル
https://github.com/byteball/sports-oracle
の挙動について調査をした際のメモです。

*現在DAGに書き込まれた値の呼び出しかたを調査中

start.js

大まかな挙動

(調査中)
・witnessと同じく動かす際にコストが必要?
 →DAGにオラクルの機能として所定の値を書き込む際に、書き込むByte数分かそれ以上のコストの支払いが必要思われる。
 継続的なコストについては不明。

関数

readNumberOfWitnessingsAvailable

createOptimalOutputs

postDataFeed

reliablyPostDataFeed

readExistingData

getHomeInstructions(調査中)

getChampionshipInstructions

getFixturesAfterNow

getFixturesBeforeNow

searchFixtures

retrieveAndPostResult(調査中)

getFeedStatus(調査中)

getPublicCalendar

notifyForDatafeedPosted

setInterval(391行)(調査中)

getTxtCommandButton

removeAbbreviations

removeAccents

getResponseForFeedAlreadyInDAG(調査中)

getCurrentChampionshipsFromFootballDataOrg

initFootballDataOrg

encodeFixture(調査中)

initMySportsFeedsCom(調査中)

convertMySportsFeedsTimeToMomentUTC(調査中)

initUfcCom(調査中)

encodeOnlyNames

loadInCalendar

checkUsingSecondSource(調査中)

checkUsingTheScore

eventBus.on(調査中)