|
|
@@ -11,11 +11,12 @@ Welcome to Solang, a new Solidity compiler written in rust which uses
|
|
|
llvm as the compiler backend. As a result, only the compiler front end
|
|
|
needs to be written in rust.
|
|
|
|
|
|
-Solang targets Substrate, ewasm, and Sawtooth.
|
|
|
+Solang targets Substrate, Solana, ewasm, and Sawtooth.
|
|
|
+Solang is source compatible with Solidity 0.7, with some caveats due to
|
|
|
+differences in the underlying blockchain.
|
|
|
|
|
|
-Solang is under active development right now, and should be documented at
|
|
|
-the same time as the implementation. Please have a look at
|
|
|
-[our documentation](https://solang.readthedocs.io/en/latest/).
|
|
|
+Solang is under active development right now, and has
|
|
|
+[extensive documentation](https://solang.readthedocs.io/en/latest/).
|
|
|
|
|
|
## Simple example
|
|
|
|
|
|
@@ -43,13 +44,13 @@ contract flipper {
|
|
|
Now run:
|
|
|
|
|
|
```bash
|
|
|
-solang flipper.sol
|
|
|
+solang --target substrate flipper.sol
|
|
|
```
|
|
|
|
|
|
Alternatively if you want to use the solang docker image, run:
|
|
|
|
|
|
```
|
|
|
-docker run --rm -it -v $(pwd):/sources hyperledgerlabs/solang -v -o /sources /sources/flipper.sol
|
|
|
+docker run --rm -it -v $(pwd):/sources hyperledgerlabs/solang -v -o /sources --target substrate /sources/flipper.sol
|
|
|
```
|
|
|
You will have a flipper.wasm and flipper.json. You can use these directly in
|
|
|
the [Polkadot UI](https://substrate.dev/substrate-contracts-workshop/#/0/deploying-your-contract?id=putting-your-code-on-the-blockchain), as if your smart
|