vechain-sdk-js
vechain-sdk-js copied to clipboard
Events :: Return typed decoded event data
Currently, the Software Development Kit (SDK) is returning data as a generic Result object provided by the Ethers.js library. While this Result object contains the necessary decoded data from smart contract interactions, it lacks a structured format that aligns with the smart contract's Application Binary Interface (ABI).
The ABI defines the methods and variables available in a smart contract, essentially acting as a blueprint for how data should be organized and accessed. When the SDK returns data as an unstructured Result, developers may face challenges in interpreting and utilizing this data effectively. They might need to manually parse the Result object to extract the relevant information, which can be error-prone and time-consuming.
To enhance usability and developer experience, the SDK should return the decoded data structured according to the ABI specifications. This means organizing the data into objects or formats that directly reflect the expected inputs and outputs defined in the smart contract's ABI. By doing so, developers can interact with the data more intuitively, reducing the overhead of manual data manipulation and minimizing the risk of errors.
In summary, modifying the SDK to output data structured per the ABI will streamline the development process by providing clear, well-organized data that aligns with the smart contract's defined interface