name: two_party_negotiation
author: fetchai
version: 0.1.0
license: Apache-2.0
description: 'A protocol for negotiation over a fixed set of resources involving two parties.'
speech_acts:
  cfp:
    query: ct:DataModel
  propose:
    number: pt:int
    price: pt:float
    description: pt:str
    flag: pt:bool
    query: ct:DataModel
    proposal: pt:optional[pt:dict[pt:str, ct:IOTApp7]]
    rounds: pt:set[pt:int]
    items: pt:list[ct:Unit]
    conditions: pt:optional[pt:union[pt:str, pt:dict[pt:str,pt:int], pt:set[ct:DataModel], pt:dict[pt:str, pt:float]]]
  accept: {}
  decline: {}
  match_accept: {}
---
ct:DataModel: |
  bytes data_model = 1;
ct:IOTApp7: |
  bytes iot_app_7 = 1;
ct:Unit: |
  bytes unit = 1;
