-
Notifications
You must be signed in to change notification settings - Fork 25
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
build: bump Stylus SDK to v0.7.0-beta.1 and alloy to v0.8.13 #433
Draft
bidzyyys
wants to merge
30
commits into
main
Choose a base branch
from
build/stylus-v0.7.0-beta.1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
2b688ce
build: bump Stylus SDK and alloy versions
bidzyyys ddef560
fix: move const value in AccessControl
bidzyyys 1d27f6c
ref: move interfaces to base modules
bidzyyys c3cc640
ref: fix AccessControl example
bidzyyys e0e71ba
fix: add missing Vec imports
bidzyyys b24bcdf
build: use koba with updated alloy
bidzyyys 0f40dc4
build: update E2E crate with new alloy
bidzyyys 3c909bf
ref: extract v as u8 from Signature
bidzyyys 1acaa4c
fix: use proper data type for U96
bidzyyys fa476f1
fix: benches
bidzyyys 1078a12
fix: constrain storage ints
bidzyyys a9c3fbe
build: update koba to v0.3.0
bidzyyys 94cb034
remove not used Provider
qalisander 06945d6
add stylus-sdk patch for external calls
qalisander 3a6e6bd
retrieve tx hashes for block timestamp
qalisander d33bdc3
fix run_check_release test for vesting_wallet
qalisander a580f98
Merge remote-tracking branch 'origin/main' into build/stylus-v0.7.0-b…
qalisander eb5cc95
update alloy to 0.8.14
qalisander 378da95
Merge remote-tracking branch 'origin/main' into build/stylus-v0.7.0-b…
qalisander e7d074f
Merge remote-tracking branch 'origin/main' into build/stylus-v0.7.0-b…
qalisander c255a90
++
qalisander f8b7645
import alloc::vec::Vec for permit
qalisander 0f2a246
remove unused code
qalisander 74b4672
Merge remote-tracking branch 'origin/main' into build/stylus-v0.7.0-b…
qalisander b6898fc
post merge fix
qalisander a16de97
++
qalisander acd843a
++
qalisander 6661c5a
bump stylus sdk 0.7.0-rc.1
qalisander f6e7c5f
Merge remote-tracking branch 'origin/main' into build/stylus-v0.7.0-b…
qalisander dafd146
patch motsu
qalisander File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +0,0 @@ | ||
#![allow(missing_docs)] | ||
#![cfg_attr(coverage_nightly, coverage(off))] | ||
//! Module with an interface required for smart contract | ||
//! in order to receive ERC-1155 token transfers. | ||
|
||
use stylus_sdk::stylus_proc::sol_interface; | ||
|
||
sol_interface! { | ||
/// Interface that must be implemented by smart contracts | ||
/// in order to receive ERC-1155 token transfers. | ||
interface IERC1155Receiver { | ||
/// Handles the receipt of a single ERC-1155 token type. | ||
/// This function is called at the end of a | ||
/// [`IErc1155::safe_batch_transfer_from`] | ||
/// after the balance has been updated. | ||
/// | ||
/// NOTE: To accept the transfer, | ||
/// this must return [`SINGLE_TRANSFER_FN_SELECTOR`], | ||
/// or its own function selector. | ||
/// | ||
/// * `operator` - The address which initiated the transfer. | ||
/// * `from` - The address which previously owned the token. | ||
/// * `id` - The ID of the token being transferred. | ||
/// * `value` - The amount of tokens being transferred. | ||
/// * `data` - Additional data with no specified format. | ||
#[allow(missing_docs)] | ||
function onERC1155Received( | ||
address operator, | ||
address from, | ||
uint256 id, | ||
uint256 value, | ||
bytes calldata data | ||
) external returns (bytes4); | ||
|
||
/// Handles the receipt of multiple ERC-1155 token types. | ||
/// This function is called at the end of a | ||
/// [`IErc1155::safe_batch_transfer_from`] | ||
/// after the balances have been updated. | ||
/// | ||
/// NOTE: To accept the transfer(s), | ||
/// this must return [`BATCH_TRANSFER_FN_SELECTOR`], | ||
/// or its own function selector. | ||
/// | ||
/// * `operator` - The address which initiated the batch transfer. | ||
/// * `from` - The address which previously owned the token. | ||
/// * `ids` - An array containing ids of each token being transferred | ||
/// (order and length must match values array). | ||
/// * `values` - An array containing amounts of each token | ||
/// being transferred (order and length must match ids array). | ||
/// * `data` - Additional data with no specified format. | ||
#[allow(missing_docs)] | ||
function onERC1155BatchReceived( | ||
address operator, | ||
address from, | ||
uint256[] calldata ids, | ||
uint256[] calldata values, | ||
bytes calldata data | ||
) external returns (bytes4); | ||
} | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Moved it back into the main file after all :D