-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hover-formatting' into goto-definitions
- Loading branch information
Showing
844 changed files
with
5,916 additions
and
3,012 deletions.
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
linux-x86-64: | ||
name: Linux x86-64 | ||
runs-on: solang-ubuntu-latest | ||
container: ghcr.io/hyperledger/solang-llvm:ci-3 | ||
container: ghcr.io/hyperledger/solang-llvm:ci-4 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/[email protected] | ||
|
@@ -33,7 +33,7 @@ jobs: | |
name: Linux arm64 | ||
runs-on: linux-arm64 | ||
if: ${{ github.repository_owner == 'hyperledger' }} | ||
container: ghcr.io/hyperledger/solang-llvm:ci-3 | ||
container: ghcr.io/hyperledger/solang-llvm:ci-4 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/[email protected] | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
lints: | ||
name: Lints | ||
runs-on: solang-ubuntu-latest | ||
container: ghcr.io/hyperledger/solang-llvm:ci-3 | ||
container: ghcr.io/hyperledger/solang-llvm:ci-4 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
@@ -71,7 +71,7 @@ jobs: | |
linux-x86-64: | ||
name: Linux x86-64 | ||
runs-on: solang-ubuntu-latest | ||
container: ghcr.io/hyperledger/solang-llvm:ci-3 | ||
container: ghcr.io/hyperledger/solang-llvm:ci-4 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
@@ -86,14 +86,14 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
name: solang-linux-x86-64 | ||
path: ./target/debug/solang | ||
path: ./target/debug/solang | ||
|
||
|
||
linux-arm: | ||
name: Linux Arm | ||
runs-on: linux-arm64 | ||
if: ${{ github.repository_owner == 'hyperledger' }} | ||
container: ghcr.io/hyperledger/solang-llvm:ci-3 | ||
container: ghcr.io/hyperledger/solang-llvm:ci-4 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
@@ -226,12 +226,12 @@ jobs: | |
--provenance=false \ | ||
--tag ghcr.io/${GITHUB_REPOSITORY}:latest \ | ||
--platform linux/arm64,linux/amd64 \ | ||
--label org.opencontainers.image.description="Solidity Compiler for Solana and Substrate version $(git describe --tags)" | ||
--label org.opencontainers.image.description="Solidity Compiler for Solana and Polkadot version $(git describe --tags)" | ||
anchor: | ||
name: Anchor Integration test | ||
runs-on: solang-ubuntu-latest | ||
container: ghcr.io/hyperledger/solang-llvm:ci-3 | ||
container: ghcr.io/hyperledger/solang-llvm:ci-4 | ||
needs: linux-x86-64 | ||
steps: | ||
- name: Checkout sources | ||
|
@@ -278,7 +278,7 @@ jobs: | |
solana: | ||
name: Solana Integration test | ||
runs-on: solang-ubuntu-latest | ||
container: ghcr.io/hyperledger/solang-llvm:ci-3 | ||
container: ghcr.io/hyperledger/solang-llvm:ci-4 | ||
needs: linux-x86-64 | ||
steps: | ||
- name: Checkout sources | ||
|
@@ -309,18 +309,18 @@ jobs: | |
run: npm run test | ||
working-directory: ./integration/solana | ||
|
||
substrate: | ||
name: Substrate Integration test | ||
polkadot: | ||
name: Polkadot Integration test | ||
runs-on: solang-ubuntu-latest | ||
needs: linux-x86-64 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
# We can't run substrate as a github actions service, since it requires | ||
# We can't run substrate node as a github actions service, since it requires | ||
# command line arguments. See https://github.com/actions/runner/pull/1152 | ||
- name: Start substrate | ||
- name: Start substrate contracts node | ||
run: echo id=$(docker run -d -p 9944:9944 ghcr.io/hyperledger/solang-substrate-ci:e41a9c0 substrate-contracts-node --dev --ws-external) >> $GITHUB_OUTPUT | ||
id: substrate | ||
- uses: actions/setup-node@v3 | ||
|
@@ -334,28 +334,28 @@ jobs: | |
chmod 755 ./bin/solang | ||
echo "$(pwd)/bin" >> $GITHUB_PATH | ||
- run: npm install | ||
working-directory: ./integration/substrate | ||
working-directory: ./integration/polkadot | ||
- name: Build ink! contracts | ||
run: npm run build-ink | ||
working-directory: ./integration/substrate | ||
working-directory: ./integration/polkadot | ||
- name: Build Solang contracts | ||
run: npm run build | ||
working-directory: ./integration/substrate | ||
working-directory: ./integration/polkadot | ||
- name: Deploy and test contracts | ||
run: npm run test | ||
working-directory: ./integration/substrate | ||
working-directory: ./integration/polkadot | ||
- name: cleanup | ||
if: always() | ||
run: docker kill ${{steps.substrate.outputs.id}} | ||
|
||
substrate-subxt: | ||
name: Substrate Integration test with subxt | ||
polkadot-subxt: | ||
name: Polkadot Integration test with subxt | ||
runs-on: ubuntu-22.04 | ||
needs: linux-x86-64 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
# We can't run substrate as a github actions service, since it requires | ||
# We can't run substrate node as a github actions service, since it requires | ||
# command line arguments. See https://github.com/actions/runner/pull/1152 | ||
- name: Start substrate | ||
run: echo id=$(docker run -d -p 9944:9944 ghcr.io/hyperledger/solang-substrate-ci:e41a9c0 substrate-contracts-node --dev --ws-external) >> $GITHUB_OUTPUT | ||
|
@@ -372,8 +372,8 @@ jobs: | |
with: | ||
toolchain: stable | ||
default: true | ||
override: true | ||
- run: 'parallel solang compile -v --target substrate --release -o ./contracts/ ::: ../substrate/*.sol ../substrate/test/*.sol' | ||
override: true | ||
- run: 'parallel solang compile -v --target polkadot --wasm-opt z -o ./contracts/ ::: ../polkadot/*.sol ../polkadot/test/*.sol' | ||
working-directory: ./integration/subxt-tests | ||
- name: Deploy and test contracts | ||
run: cargo test -- --test-threads=1 | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ Cargo.lock | |
/target | ||
**/*.rs.bk | ||
bundle.ll | ||
tests/.tmp* | ||
|
||
.helix/ | ||
.vscode/ |
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,6 +1,6 @@ | ||
[submodule "solang-parser/testdata/solidity"] | ||
path = testdata/solidity | ||
url = https://github.com/ethereum/solidity | ||
[submodule "integration/substrate/tornado/tornado-cli"] | ||
path = integration/substrate/tornado/tornado-cli | ||
[submodule "integration/polkadot/tornado/tornado-cli"] | ||
path = integration/polkadot/tornado/tornado-cli | ||
url = https://github.com/tornadocash/tornado-cli.git |
This file was deleted.
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
Validating CODEOWNERS rules …
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,9 +1,9 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
* @seanyoung @xermicus @LucasSte | ||
src/emit/substrate/ @xermicus | ||
src/emit/polkadot/ @xermicus | ||
src/emit/solana/ @LucasSte @seanyoung | ||
integration/substrate/ @xermicus | ||
integration/polkadot/ @xermicus | ||
integration/subxt-tests/ @xermicus | ||
integration/solana/ @LucasSte @seanyoung | ||
integration/anchor/ @LucasSte @seanyoung |
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,13 +1,13 @@ | ||
[package] | ||
name = "solang" | ||
version = "0.3.0" | ||
version = "0.3.1" | ||
authors = ["Sean Young <[email protected]>", "Lucas Steuernagel <[email protected]>", "Cyrill Leutwiler <[email protected]>"] | ||
homepage = "https://github.com/hyperledger/solang" | ||
documentation = "https://solang.readthedocs.io/" | ||
license = "Apache-2.0" | ||
build = "build.rs" | ||
description = "Solang Solidity Compiler" | ||
keywords = [ "solidity", "compiler", "solana", "substrate" ] | ||
keywords = [ "solidity", "compiler", "solana", "polkadot", "substrate" ] | ||
rust-version = "1.68.0" | ||
edition = "2021" | ||
exclude = [ "/.*", "/docs", "/examples", "/solana-library", "/tests", "/integration", "/vscode", "/testdata" ] | ||
|
@@ -31,7 +31,7 @@ serde_derive = { version = "1.0" } | |
inkwell = { version = "0.2.0", features = ["target-webassembly", "no-libffi-linking", "llvm15-0"], optional = true } | ||
blake2-rfc = "0.2.18" | ||
handlebars = "4.3" | ||
contract-metadata = "2.1" | ||
contract-metadata = "3.0" | ||
semver = { version = "1.0", features = ["serde"] } | ||
tempfile = "3.4" | ||
libc = { version = "0.2", optional = true } | ||
|
@@ -42,38 +42,38 @@ sha2 = "0.10" | |
ripemd = "0.1" | ||
bitvec = "1" | ||
funty = "2.0" | ||
itertools = "0.10" | ||
itertools = "0.11" | ||
num-rational = "0.4" | ||
indexmap = "1.9" | ||
indexmap = "2.0" | ||
once_cell = "1.17" | ||
solang-parser = { path = "solang-parser", version = "0.3.0" } | ||
solang-parser = { path = "solang-parser", version = "0.3.1" } | ||
codespan-reporting = "0.11" | ||
phf = { version = "0.11", features = ["macros"] } | ||
rust-lapper = "1.1" | ||
anchor-syn = { version = "0.27.0", features = ["idl"] } | ||
anchor-syn = { version = "0.28.0", features = ["idl"] } | ||
convert_case = "0.6" | ||
parse-display = "0.8.0" | ||
parity-scale-codec = "3.4" | ||
ink_env = "4.2.0" | ||
ink_metadata = "4.2.0" | ||
scale-info = "2.4" | ||
petgraph = "0.6.3" | ||
wasmparser = "0.106.0" | ||
wasm-encoder = "0.28" | ||
wasmparser = "0.107.0" | ||
wasm-encoder = "0.29" | ||
toml = "0.7" | ||
wasm-opt = { version = "0.112.0", optional = true } | ||
contract-build = { version = "3.0.1", optional = true } | ||
|
||
|
||
[dev-dependencies] | ||
num-derive = "0.3" | ||
num-derive = "0.4" | ||
primitive-types = { version = "0.12", features = ["codec"] } | ||
wasmi = "0.29" | ||
wasmi = "0.30" | ||
# rand version 0.7 is needed for ed25519_dalek::keypair::generate, used in solana_tests/signature_verify.rs | ||
rand_07 = { package = "rand", version = "0.7" } | ||
sha2 = "0.10" | ||
# solana_rbpf makes api changes in patch versions | ||
solana_rbpf = "=0.2.38" | ||
solana_rbpf = "=0.5.0" | ||
byteorder = "1.4" | ||
assert_cmd = "2.0" | ||
bincode = "1.3" | ||
|
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.