safe-global / safe-client-gateway

Serves as a bridge for the Safe{Wallet} clients (Android, iOS, Web)
https://docs.safe.global
MIT License
27 stars 64 forks source link

Type `ITransactionApi` responses at "raw" #2098

Closed iamacook closed 1 week ago

iamacook commented 1 week ago

Partial implementation of #1731

Summary

We validate API responses on the domain layer, but directly assign the type in the datasources. This means that the response types are not necessarily correct.

This types all the ITransactionApi responses as "raw". These responses can therefore not be used directly unless they are validated.

Changes