#Should we support i256/u256 types?

4 messages · Page 1 of 1 (latest)

tall flax
#

@heady acorn raised this here and this should probably deserves it's own discussion #1067534037310255225 message
@heady acorn can you outline the reasoning here?

heady acorn
#

Sure! We're trying to let developers call contracts running on Ethereum,
Polygon, Avalanche, etc. from Soroban and vice-versa. On these chains [iu]256
is (sadly) common, so when we call a Soroban contract from Solidity we have to
either:

  • check values at the boundary and then (1) truncate to [iu]128 or (2) bail if
    the value is too big.
  • implement [ui]256 as a library. This is probably not a huge deal, but leaves
    room for error if it's not part of some standard lib.
tall flax
#

@heady acorn if there are other types you feel strongly about then feel free to comment on that issue