warden-protocol / wardenprotocol

Monorepo for the Warden Protocol.
https://wardenprotocol.org
Apache License 2.0
1.1k stars 107 forks source link

shield: move from "int" to big.Int #327

Closed Pitasi closed 4 months ago

Pitasi commented 4 months ago

Internally in the shield interpreter we should be able to parse and deal with big numbers (this spans from the lexer to the evaluator).

I think it's fine to use the stdlib big.Int. Add unit tests.

optifat commented 4 months ago

Are you suggesting to replace int64 with big.Int completely or rather making conversion one to another for some internal actions?

Pitasi commented 4 months ago

yeah I would use big.Int all the times