-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement transient get/set bytes32 hostios #92
base: testnet-2
Are you sure you want to change the base?
Conversation
Fix Address has_code check
Set Sepolia Priv Key as CI Env Var
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! We'll just want to make some tweaks
stylus-sdk/src/hostio.rs
Outdated
/// value stored in the EVM transient storage at offset `key`, which will be `0` when not | ||
/// previously set. The semantics, then, are equivalent to that of the EVM's [`TLOAD`] opcode. | ||
/// | ||
/// [`TLOAD`]: https://www.evm.codes/#5c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's link the following for now since these opcodes don't yet exist
https://eips.ethereum.org/EIPS/eip-1153
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
stylus-sdk/src/hostio.rs
Outdated
/// | ||
/// [`TSTORE`]: https://www.evm.codes/#5d | ||
#[allow(dead_code)] | ||
pub fn storage_transient_store_bytes32(key: *const u8, value: *const u8); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed on slack, let's rename these
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
stylus-sdk/src/storage/mod.rs
Outdated
/// | ||
/// # Safety | ||
/// | ||
/// May alias storage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say May alias transient storage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.