originalworks / protocol

Protocol of Original Works
https://www.original.works
1 stars 0 forks source link

Create First Chainlink function #16

Open criadoperez opened 2 weeks ago

criadoperez commented 2 weeks ago

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.

criadoperez commented 3 days 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

criadoperez commented 2 days ago

Sample are in this folder: https://github.com/originalworks/protocol/tree/main/DDEX_messages

criadoperez commented 1 day ago

@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.

criadoperez commented 19 hours ago

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