Skip to content

Conversation

@salaheldinsoliman
Copy link

This PR mentions Hyperledger Solang as an SDK that can be used to compile Solidity to Soroban.
It also mentions the Web IDE: https://solang.io/

Copy link
Contributor

@ElliotFriend ElliotFriend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @salaheldinsoliman!! Thanks so much for this contribution! I love the additions and think it'll greatly help raise awareness of the solang compatibility.

I've added some nitpicky comments, changing Soroban in a few places to Stellar. I know the solang repo refers to it as Soroban, which is fine. But, in general, in our docs, we're trying to move away from the distinction between Soroban (the smart contract platform/runtime) and Stellar (the blockchain).


**The Solang compiler is maintained by the Hyperledger community.**

Solang is an llvm-based compiler for Solidity that can target multiple blockchains, including Soroban.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Solang is an llvm-based compiler for Solidity that can target multiple blockchains, including Soroban.
Solang is an llvm-based compiler for Solidity that can target multiple blockchains, including Stellar.


:::caution

Solidity support via Solang for Soroban is experimental and evolving. Not all Solidity features are supported yet, and breaking changes may occur. We Don't recommend using Solang for production contracts at this time.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Solidity support via Solang for Soroban is experimental and evolving. Not all Solidity features are supported yet, and breaking changes may occur. We Don't recommend using Solang for production contracts at this time.
Solidity support via Solang for Stellar is experimental and evolving. Not all Solidity features are supported yet, and breaking changes may occur. We Don't recommend using Solang for production contracts at this time.

:::

- The easiest way to use Solang is via the Web IDE, but you can also build Solang from source or use prebuilt binaries.
- For deployment and interaction, use the Soroban CLI and client SDKs after compiling your Wasm artifact.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- For deployment and interaction, use the Soroban CLI and client SDKs after compiling your Wasm artifact.
- For deployment and interaction, use the Stellar CLI and client SDKs after compiling your Wasm artifact.

---
sidebar_position: 4
title: Solidity support via Solang
description: Compile Solidity contracts to Wasm for Soroban using the Solang compiler.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Compile Solidity contracts to Wasm for Soroban using the Solang compiler.
description: Compile Solidity contracts to Wasm for Stellar using the Solang compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants