tellor-io / dataSpecs

Data specifications for oracle queries
16 stars 9 forks source link

Proposal for EVMCall data type #57

Closed tallywiesenberg closed 2 years ago

tallywiesenberg commented 2 years ago

I wrote up a data type that can read data and bridge it over from one chain to another. Thoughts welcome!

themandalore commented 2 years ago

Looks great. Before I merge though, any thoughts on how to handle changing variables? Should we return a block.number or a block.timestamp with it? The problem is thing like say balance. It could be one thing at one block, the oracle grabs the data and then they transfer before the other chain even knows about it....

brendaloya commented 2 years ago

I agree, adding the time stamp or block number would be helpful.

tallywiesenberg commented 2 years ago

Great point, timestamp is a great addition

themandalore commented 2 years ago

i would actually flip it...have it return a timestamp of when it was queried. AFAIK, querying the chain by timestamp is super tough and could be pretty limiting for the node providers

themandalore commented 2 years ago

Can you give a return value example? But looking good