-
Notifications
You must be signed in to change notification settings - Fork 253
Open
Description
This tasks involves adding support for integer width of 256 for Stellar.
This involves adding the proper logic in the Soroban decoder/encoder: https://github.com/hyperledger-solang/solang/blob/main/src/codegen/encoding/soroban_encoding.rs
Stellar has built-in host function to do this encoding/decoding, however Solang would need to prepare the correct args for the host function call and this is the major part of the task.
We have previously added support for i128:
fn encode_i128( |
Resources:
- Host function calls to deal with encoding/decoding: https://github.com/stellar/rs-soroban-env/blob/main/soroban-env-common/env.json
- U256/I256 definition in the Soroban host: https://github.com/stellar/stellar-protocol/blob/master/core/cap-0046-01.md
- A PR showing the process of adding i128 : Refactor Soroban decoding/encoding logic #1752
@guptapratykshh please let me know if you have any questions. This task is supposed to be tricky, so please ask, ask and ask :)
guptapratykshh
Metadata
Metadata
Assignees
Labels
No labels