Skip to content

Commit

Permalink
Imports, base contracts, abstract, interface, and libraries
Browse files Browse the repository at this point in the history
Added
- `import` directives are supported
- New `--importpath` command line argument to specify directories to search for imports
- Contracts can have base contracts
- Contracts can be abstract
- Interfaces are supported
- Libraries are supported
- The `using` library `for` type syntax is supported

Changed
- Solang now uses llvm 10.0 rather than llvm 8.0
- In line with Solidity 0.7.0, constructors no longer need a visibility argument

Signed-off-by: Sean Young <[email protected]>
  • Loading branch information
seanyoung committed Aug 25, 2020
1 parent 2f112cf commit beea2bd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
All notable changes to [Solang](https://github.com/hyperledger-labs/solang/)
will be documented here.

## Unreleased
## [0.1.3]

### Added
- `import` directives are supported
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "solang"
version = "0.1.2"
version = "0.1.3"
authors = ["Sean Young <[email protected]>"]
homepage = "https://github.com/hyperledger-labs/solang"
documentation = "https://solang.readthedocs.io/"
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Sean Young <[email protected]>'

# The full version, including alpha/beta/rc tags
release = '0.1.2'
release = '0.1.3'


# -- General configuration ---------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions docs/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Download release binaries

For Ubuntu, there is an x86-64 binary available in the github releases:

`<https://github.com/hyperledger-labs/solang/releases/download/v0.1.2/solang_ubuntu>`_
`<https://github.com/hyperledger-labs/solang/releases/download/v0.1.3/solang_linux>`_

For Windows x64, there is a pre-built binary available here:

`<https://github.com/hyperledger-labs/solang/releases/download/v0.1.2/solang.exe>`_
`<https://github.com/hyperledger-labs/solang/releases/download/v0.1.3/solang.exe>`_

Using hyperledgerlabs/solang docker hub images
----------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions docs/language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1892,6 +1892,9 @@ As a result of this, any method call on a variable of type ``int32[100]`` will b
For the call to match, the first argument of the function must match the variable; note that here, `bar`
is of type ``storage``, since all contract variables are implicitly ``storage``.

There is an alternative syntax ``using`` `library` ``for *;`` which binds the library functions to any
variable that will match according to these rules.

Sending and receiving value
---------------------------

Expand Down

0 comments on commit beea2bd

Please sign in to comment.