-
Notifications
You must be signed in to change notification settings - Fork 220
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
Add Constructor Support for Solang Solidity Contracts on Soroban #1674
Merged
salaheldinsoliman
merged 3 commits into
hyperledger-solang:main
from
tareknaser:soroban_constructor22
Nov 27, 2024
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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 |
---|---|---|
|
@@ -63,7 +63,7 @@ jobs: | |
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.75.0 | ||
toolchain: 1.81.0 | ||
components: | | ||
llvm-tools | ||
clippy | ||
|
@@ -120,7 +120,7 @@ jobs: | |
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y gcc g++ make | ||
- uses: dtolnay/rust-toolchain@1.75.0 | ||
- uses: dtolnay/rust-toolchain@1.81.0 | ||
- name: Get LLVM | ||
run: curl -sSL --output llvm16.0-linux-arm64.tar.xz https://github.com/hyperledger-solang/solang-llvm/releases/download/llvm16-0/llvm16.0-linux-arm64.tar.xz | ||
- name: Extract LLVM | ||
|
@@ -153,7 +153,7 @@ jobs: | |
# Use C:\ as D:\ might run out of space | ||
- name: "Use C: for rust temporary files" | ||
run: echo "CARGO_TARGET_DIR=C:\target" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append | ||
- uses: dtolnay/rust-toolchain@1.75.0 | ||
- uses: dtolnay/rust-toolchain@1.81.0 | ||
with: | ||
components: clippy | ||
# We run clippy on Linux in the lint job above, but this does not check #[cfg(windows)] items | ||
|
@@ -179,7 +179,7 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/rust-toolchain@1.75.0 | ||
- uses: dtolnay/rust-toolchain@1.81.0 | ||
- name: Get LLVM | ||
run: curl -sSL --output llvm16.0-mac-arm.tar.xz https://github.com/hyperledger-solang/solang-llvm/releases/download/llvm16-0/llvm16.0-mac-arm.tar.xz | ||
- name: Extract LLVM | ||
|
@@ -205,7 +205,7 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/rust-toolchain@1.75.0 | ||
- uses: dtolnay/rust-toolchain@1.81.0 | ||
- name: Get LLVM | ||
run: wget -q -O llvm16.0-mac-intel.tar.xz https://github.com/hyperledger-solang/solang-llvm/releases/download/llvm16-0/llvm16.0-mac-intel.tar.xz | ||
- name: Extract LLVM | ||
|
@@ -267,7 +267,7 @@ jobs: | |
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16' | ||
- uses: dtolnay/rust-toolchain@1.75.0 | ||
- uses: dtolnay/rust-toolchain@1.81.0 | ||
- name: Setup yarn | ||
run: npm install -g yarn | ||
- uses: actions/[email protected] | ||
|
@@ -318,7 +318,7 @@ jobs: | |
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16' | ||
- uses: dtolnay/rust-toolchain@1.75.0 | ||
- uses: dtolnay/rust-toolchain@1.81.0 | ||
- uses: actions/[email protected] | ||
with: | ||
name: solang-linux-x86-64 | ||
|
@@ -329,7 +329,7 @@ jobs: | |
echo "$(pwd)/bin" >> $GITHUB_PATH | ||
|
||
- name: Install Soroban | ||
run: cargo install --locked soroban-cli --version 21.0.0-rc.1 | ||
run: cargo install --locked soroban-cli --version 22.0.0 | ||
- name: Add cargo install location to PATH | ||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH | ||
- run: npm install | ||
|
@@ -360,7 +360,7 @@ jobs: | |
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16' | ||
- uses: dtolnay/rust-toolchain@1.75.0 | ||
- uses: dtolnay/rust-toolchain@1.81.0 | ||
- uses: actions/[email protected] | ||
with: | ||
name: solang-linux-x86-64 | ||
|
@@ -537,7 +537,7 @@ jobs: | |
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.75.0 | ||
toolchain: 1.81.0 | ||
components: llvm-tools | ||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
|
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.
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.
Why is that change related to the PR?
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.
soroban-sdk
22.0.0-rc.3.2 requires rustc 1.79.0 or newer, andsoroban-cli
(which we use in the CI) now requires rustc 1.81.0 or newer.