Giter Site home page Giter Site logo

hina1975 / solang Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyperledger/solang

0.0 0.0 0.0 17.93 MB

Solidity Compiler for Solana and Polkadot

Home Page: https://solang.readthedocs.io/

License: Apache License 2.0

Shell 0.01% JavaScript 0.10% C++ 0.01% C 1.25% Rust 81.86% TypeScript 3.94% Makefile 0.01% Dockerfile 0.01% Solidity 12.82%

solang's Introduction

Solang Logo

solang - Solidity Compiler for Solana and Polkadot

Discord CI Documentation Status license LoC

Welcome to Solang, a new Solidity compiler written in rust which uses llvm as the compiler backend. Solang can compile Solidity for Solana and Polkadot Parachains with the contracts pallet. Solang is source compatible with Solidity 0.8, with some caveats due to differences in the underlying blockchain.

Solang is under active development right now, and has extensive documentation.

Solana

Please follow the Solang Getting Started Guide.

Solang is part of the Solana Tools Suite (version v1.16.3 and higher). There is no need to install it separately.

Installation

Solang is available as a Brew cask for MacOS, with the following command:

brew install hyperledger/solang/solang

For other operating systems, please check the installation guide.

Build for Polkadot

Run the following command, selecting the flipper example available on Solang's repository:

solang compile --target polkadot examples/polkadot/flipper.sol

Alternatively if you want to use the solang container, run:

docker run --rm -it -v $(pwd):/sources ghcr.io/hyperledger/solang compile -v -o /sources --target polkadot /sources/flipper.sol

You will have a file called flipper.contract. You can use this directly in the Contracts UI, as if your smart contract was written using ink!.

Tentative roadmap

Solang has a high level of compatibility with many blockchains. We are trying to ensure the compiler stays up to date with the newest Solidity syntax and features. In addition, we focus on bringing new performance optimizations and improve developer experience. Here is a brief description of what we envision for the next versions.

V0.4

Feature Status
Improve management over optimization passes Not started
Adopt single static assignment for code generation In progress
Support openzeppelin on Polkadot target In progress
Provide Solidity -> Polkadot porting guide Not started
Declare accounts for a Solidity function on Solana In progress
Tooling for calls between ink! <> solidity In progress
Provide CLI for node interactions Done

License

Apache 2.0

solang's People

Contributors

seanyoung avatar lucasste avatar xermicus avatar salaheldinsoliman avatar ryjones avatar chioni16 avatar shekhirin avatar mattsse avatar jpopesculian avatar kichjang avatar hyperledger-bot avatar benthekush avatar danipopes avatar 0xdecentralizer avatar tareknaser avatar extraymond avatar smoelius avatar rkrasiuk avatar thanhtoantnt avatar taquangtrung avatar shuoer86 avatar omahs avatar janus avatar knarfytrebil avatar yp945 avatar nadeemb53 avatar mul53 avatar mayank-pathakk avatar guanqun avatar fanyi-zhao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.