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
it's not exactly clear according to the documentation what UInt and Int's precisions are.The current doc only mentions that it's an arbitrary size. Doing some digging it seems like the underlying implementation is a big.Int in Go with an initializer that bounds it to int64. This is particularly troublesome when someone needs to sync a piece of on-chain struct/event field into their database while not knowing the precision.
Suggest A Solution
improve documentation so that it's clear to developers what the max value of Int/UInt is. I understand the "arbitrary" argument in the context of Go, but can't wrap my head around this idea in a blockchain where everything is highly deterministic.
What are you currently working on that this is blocking?
No response
The text was updated successfully, but these errors were encountered:
Issue to be solved
it's not exactly clear according to the documentation what
UInt
andInt
's precisions are.The current doc only mentions that it's an arbitrary size. Doing some digging it seems like the underlying implementation is abig.Int
in Go with an initializer that bounds it to int64. This is particularly troublesome when someone needs to sync a piece of on-chain struct/event field into their database while not knowing the precision.Suggest A Solution
improve documentation so that it's clear to developers what the max value of Int/UInt is. I understand the "arbitrary" argument in the context of Go, but can't wrap my head around this idea in a blockchain where everything is highly deterministic.
What are you currently working on that this is blocking?
No response
The text was updated successfully, but these errors were encountered: