Open criadoperez opened 2 weeks ago
As we are now using DDEX messages instead of json file we should validate this with an ERN xml file. @0xbarath you have a sample here
Sample are in this folder: https://github.com/originalworks/protocol/tree/main/DDEX_messages
@0xbarath please take a look at sections 7.3 and 7.4 of the web3 nft ddex document. These allowed value sets and schema validation refered on the document might the first checks the chainlink functions will have to make.
One way to approach this is for Original Works to create an XML Schema Defiintion (XSD) for every XML message we can receive.
The Chainlink function will need to validate the XML message against the XSD and check for allowed value sets.
The XSD has to be of course compliant with DDEX but as well makes it even more strict, meaning that not only it has to be a DDEX standard but also have the fields the protocol needs to operate. For this we need to define the fields to add in the XSD file. @revelatorltd , @denciu , we can review these fields tomorrow
We need to create a chainlink function a first testcase.
This will detect the generation of a new ISRC, check it's validity (format of file) and output a binary output to confirm if file is valid or not.