sporeprotocol / dob-decoder-standalone-server

2 stars 6 forks source link

feat: adapt to new dob/0 format #9

Closed ashuralyk closed 5 months ago

ashuralyk commented 5 months ago

Description

since the format we put DNA into field content from Spore cell has changed to three different types, they are:

  1. array type, like ["<dna-1>", "<dna-2>"]
  2. string type, like "<dna>"
  3. object type, like {"dna": "<dna>"}, which is the legacy one

so we have to expand the responsibility to adapt to this new upcoming feature