fluidex / circuits

GNU Affero General Public License v3.0
10 stars 5 forks source link

big refactor: #126 #139

Closed lispc closed 3 years ago

lispc commented 3 years ago
  1. change test case interface from {input, output, circuit} to {Array<{input, output, name}, circuit}
  2. create a template framework to generate some tx encode/decode boilerplate code. Now 'PlaceOrder' decode/encode is generated from template
  3. 126: separate order_id and order_position

  4. fix some constraints not protected by 'enabled'
HAOYUatHZ commented 3 years ago

is Num2BitsIfEnabled (for path_index) really necessary? And it adds computation overhead.