Remove tx.value
in favor of tx.token_values
#76
Replies: 4 comments 4 replies
-
Closing the issue, as it has been completed in #14 |
Beta Was this translation helpful? Give feedback.
-
Will reopen, we close Issues only once PRs are merged |
Beta Was this translation helpful? Give feedback.
-
Noted! |
Beta Was this translation helpful? Give feedback.
-
I have turned this into a discussion because it's less clear now that removing To what extent will this removal impact backward compatibility, especially with wallets? My guess is that the answer is "a lot". All EVM wallets pass a If my guess is correct, we need to find a more creative solution:
P.S. you might notice a trend in our latest design choices. We want to ensure maximum EVM compatibility by not altering the default opcodes, and instead building on top or besides them. |
Beta Was this translation helpful? Give feedback.
-
Discussed in #50
Originally posted by IaroslavMazur November 26, 2023
While being useful for backwards-compatibility, the
tx.value
field, if kept alongside the SabVM-introducedtx.token_values
, introduces a fair amount of confusion via the possible "overlap" with theBASE_TOKEN_ID
"value" insidetx.token_values
.Here are several disadvantages of this approach that I could think of:
tx.token_values
and thetx.value
are only used exclusively (never together).tx.token_values
- and the ones that only usetx.value
.BASE_TOKEN_ID
token submitted intx.token_values
. This essentially creates redundancy for the system - and confusion for the users and us (the devs), with the very same end result that could be obtained by 2 different tx types.At the same time, the whole "Multiple Native Tokens" paradigm feels like a serious-enough perspective shift that the future users and Application-level Devs should adopt in order to properly understand and interact with SabVM.
@sablier-labs/everybody, wdyat?
Beta Was this translation helpful? Give feedback.
All reactions