You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the SDK interfaces are tightly coupled with the underlying contract interfaces. This results in breaking changes whenever contract interfaces are updated, even if the core functionality remains the same. To improve flexibility and maintainability, we should refactor the SDK to adopt a request-response pattern.
Proposed Solution
Introduce request structs to encapsulate input parameters.
Introduce response structs to encapsulate returned values.
Ensure that blockNumber can be set to nil to default to the latest block.
The text was updated successfully, but these errors were encountered:
damiramirez
changed the title
refactor: refactor elcontracts/reader interface to use request-response pattern
refactor: elcontracts/reader interface to use request-response pattern
Jan 31, 2025
Currently, the SDK interfaces are tightly coupled with the underlying contract interfaces. This results in breaking changes whenever contract interfaces are updated, even if the core functionality remains the same. To improve flexibility and maintainability, we should refactor the SDK to adopt a request-response pattern.
Proposed Solution
request
structs to encapsulate input parameters.response
structs to encapsulate returned values.blockNumber
can be set to nil to default to the latest block.Updated methods:
elcontracts
new reader interface #493elcontracts
new reader interface #493elcontracts
new reader interface #493elcontracts
new reader interface #493elcontracts
new reader interface #493elcontracts
new reader interface #493elcontracts
new reader interface #493elcontracts
update morereader
interfaces #497elcontracts
update morereader
interfaces #497elcontracts
update morereader
interfaces #497elcontracts
update morereader
interfaces #497elcontracts
update morereader
interfaces #497elcontracts
update morereader
interfaces #497elcontracts
update morereader
interfaces #497elcontracts
update morereader
interfaces #497elcontracts/reader
new interface with operator and strategy #500elcontracts/reader
new interface with operator and strategy #500elcontracts/reader
new interface with operator and strategy #500elcontracts/reader
new interface with operator and strategy #500elcontracts/reader
new interface with operator and strategy #500elcontracts/reader
new interface with operator and strategy #500elcontracts/reader
new interface with operator and strategy #500The text was updated successfully, but these errors were encountered: