Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/learn/migrate/evm/solidity-support-via-solang.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
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.

---

Leverage the Hyperledger Solang compiler to compile Solidity contracts to Soroban.

- Learn about the Solidity SDK and links to Solang in Tools: [Contract SDKs](../../../tools/sdks/contract-sdks.mdx)
- Solang docs (Soroban target): https://solang.readthedocs.io/en/latest/targets/soroban.html
- Solang repository and examples: https://github.com/hyperledger/solang/tree/main/examples/soroban
- Solang Web IDE: https://solang.io/

:::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.

14 changes: 14 additions & 0 deletions docs/tools/sdks/contract-sdks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ soroban-sdk = $VERSION
soroban-sdk = { version = $VERSION, features = ["testutils"] }
```

## Solidity SDK

[Hyperledger Solang compiler](https://github.com/hyperledger-solang/solang) | [Docs](https://solang.readthedocs.io/en/v0.3.4/)

**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.


The supported Solidity examples can be found within the [Solang repository](https://github.com/hyperledger-solang/solang/tree/main/examples/soroban).

You can report issues and add requests for features to the Solang repository [here](https://github.com/hyperledger-solang/solang/issues/new/choose).

Solang compiler also provides a Web IDE that you can use to compile, deploy and interact with Solidity contracts on Soroban. You can access the Web IDE [here](https://solang.io/).

## AssemblyScript SDK

[AssemblyScript SDK](https://github.com/Soneso/as-soroban-sdk)
Expand Down