credmark / credmark-model-framework-py

Credmark SDK for developing models in python
MIT License
8 stars 1 forks source link

First order data DTOs #40

Open newtectonics opened 2 years ago

newtectonics commented 2 years ago

Does it make sense to have first order data DTOs?

tx = Transaction(hash=TX_HASH)

Could then have derivitive properties like

tx.traces

tx.block

and we could add

BlockNumber(123456789).block

and the like.

iwyrkore commented 2 years ago

@newtectonics This seems to imply that all fields for a data object would need to be fetched? (I assume it would fetch the "traces", "block" etc. on demand when you access the property.) Snowflake is not optimized for retrieving more fields than you actually need.