Here’s a first look at the Bitfari protocol:
## ADS ##
EVALUATE(LINK) — RETURNS EVALUATION RESULTS
FLAG(LINK) – LINK CAN NEVER BE USED AGAIN
CREATE_AD(LINK, NETWORK) — RETURNS KEY
SCHEDULE_PREAUDIT(AD_KEY) – OK/ERROR
APPROVE_PREAUDIT(AD_KEY) – OK/ERROR
REJECT_PREAUDIT(AD_KEY) – OK/ERROR
APPROVE_AUDIT(AD_KEY) – OK/ERROR
REJECT_AUDIT(AD_KEY) – OK/ERROR
PLACE_AD(LINK, D_START, D_END, LOCATION) – OK/ERROR
SCHEDULE_PREAUDIT(AD_KEY) – OK/ERROR
REMOVE_AD(AD_KEY, MEMO, NOW, DATE) – OK/ERROR
PAY_AUDITOR(AUDIT_KEY, CLIENT_KEY) – OK/ERROR
PAYOUTS(AUDIT_KEY)
PAYCALL(AUDIT_KEY[])
## CAMPAIGNS ##
CREATE_CAMPAIGN(NAME, AD_KEY MEMO, DATE) — RETURNS KEY
CANCEL_CAMPAIGN(AD_KEY MEMO, DATE) – OK/ERROR
PAUSE_CAMPAIGN(AD_KEY MEMO, DATE) – OK/ERROR
PLAY_CAMPAIGN(AD_KEY MEMO, DATE) – OK/ERROR
PAY_CAMPAIGN(KEY) – OK/ERROR
## CLIENT ENGAGE SCREEN ##
SCREEN_CONTROL(SCREEN_KEY, CLIENT_KEY)
VIEW_CONTENT(SCREEN_KEY,CONTENT_KEY,CLIENT_KEY)
## SCREEN ##
GET_ADS(AD_KEY[]) — RETURNS Null or an array of links
SHOW_CONTENT(CONTENT_KEY)
CANCEL_AD(AD_KEY, MEMO) – OK/ERROR
SETUP_SCREEN(CITY, ADDRESS, SCREEN_NAME, MODEL, ORIENTATION, HIVE, PAYMENT_ADRESS, INSTALLER_ADDRESS) – RETURNS KEY
DELETE_SCREEN(SCREEN_KEY) – OK/ERROR
SCREENCODE – AREA-COL-ROW-STATUS
## VIRTUAL CHAINS ##
VCHAIN(SCREEN_KEY[], CLIENT_KEY) – Returns vchain key
UNCHAIN(KEY) – OK/ERROR
## AREA ##
Each area can hold up to 10,000 public screens. Area codes include a code for the planet, a secondary code, and a sequential number. For example, the area for Times Square (midtown manhattan) is 010100001. Inside each area screens or billboards are stored in a boolean matrix.
## AVAILABILITY AND BOOKING ##
AVAILABILITY(AREA) – RETURNS THE AVAILABILITY MATRIX
BOOK_AREA(AREA, AD_KEY) – Books the ad for auditing in a particular area (city).
BOOK_COUNTRY(COUNTRY, AD_KEY) – Books the ad for auditing in a particular country.
BOOK_SCREEN(SCREENCODE, AD_KEY) – Books the ad for auditing at a particular screen.