RIDE Compiler

The RIDE smart contract language compiler

License

License

MIT
Categories

Categories

ORM Data
GroupId

GroupId

com.wavesplatform
ArtifactId

ArtifactId

lang
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

RIDE Compiler
The RIDE smart contract language compiler
Project URL

Project URL

https://docs.wavesplatform.com/en/technical-details/waves-contracts-language-description/maven-compiler-package.html
Project Organization

Project Organization

Waves Platform
Source Code Management

Source Code Management

https://github.com/wavesplatform/Waves

Download lang

How to add to project

<!-- https://jarcasting.com/artifacts/com.wavesplatform/lang/ -->
<dependency>
    <groupId>com.wavesplatform</groupId>
    <artifactId>lang</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.wavesplatform/lang/
implementation 'com.wavesplatform:lang:1.0.0'
// https://jarcasting.com/artifacts/com.wavesplatform/lang/
implementation ("com.wavesplatform:lang:1.0.0")
'com.wavesplatform:lang:jar:1.0.0'
<dependency org="com.wavesplatform" name="lang" rev="1.0.0">
  <artifact name="lang" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.wavesplatform', module='lang', version='1.0.0')
)
libraryDependencies += "com.wavesplatform" % "lang" % "1.0.0"
[com.wavesplatform/lang "1.0.0"]

Dependencies

compile (12)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.6
org.typelevel : cats-core_2.12 jar 1.1.0
org.typelevel : cats-mtl-core_2.12 jar 0.2.1
org.scalacheck : scalacheck_2.12 jar 1.13.5
org.scorexfoundation : scrypto_2.12 jar 2.0.4
org.scalatest : scalatest_2.12 jar 3.0.3
org.scalactic : scalactic_2.12 jar 3.0.3
io.monix : monix_2.12 jar 3.0.0-RC1
org.typelevel : cats-effect_2.12 jar 0.10.1
org.scodec : scodec-core_2.12 jar 1.10.3
com.lihaoyi : fastparse_2.12 jar 1.0.0
org.bykn : fastparse-cats-core_2.12 jar 0.1.0

provided (1)

Group / Artifact Type Version
org.scala-js : scalajs-stubs_2.12 jar 0.6.22

test (5)

Group / Artifact Type Version
io.github.amrhassan : scalacheck-cats_2.12 jar 0.4.0
ch.qos.logback : logback-classic jar 1.2.3
org.slf4j : slf4j-api jar 1.7.25
org.slf4j : jul-to-slf4j jar 1.7.25
net.logstash.logback : logstash-logback-encoder jar 4.11

Project Modules

There are no modules declared in this project.

πŸ”· Waves Platform Node

Build status Downloads License: MIT Open Issues Twitter: WavesPlatform

Waves is an open source blockchain platform.
You can use it to build your own decentralised applications. Waves provides full blockchain ecosystem including smart contracts language called RIDE.

✨ Demo

Waves Node Run Demo

Waves node is a host connected to the blockchain network with the next functions:

Learn more about Waves Node in the documentation.

πŸš€οΈ Getting started

A quick introduction of the minimal setup you need to get a running node.

Prerequisites:

  • configuration file for a needed network from here
  • waves-all*.jar file from releases

Linux systems:

sudo apt-get update
sudo apt-get install openjdk-8-jre
java -jar node/target/waves-all*.jar path/to/config/waves-{network}.conf

Mac systems (assuming already installed homebrew):

brew cask install adoptopenjdk/openjdk/adoptopenjdk8
java -jar node/target/waves-all*.jar path/to/config/waves-{network}.conf

Windows systems (assuming already installed OpenJDK 8):

java -jar node/target/waves-all*.jar path/to/config/waves-{network}.conf

Using docker image:

docker run -p 6869:6869 -p 6868:6868 -e WAVES_NETWORK=MAINNET -e WAVES_LOG_LEVEL=DEBUG -e WAVES_HEAP_SIZE=2g -v YOUR_LOCAL_PATH_HERE:/waves wavesplatform/node

More details on how to install a node for different platforms you can find in the documentation.

πŸ”§ Configuration

The best starting point to understand available configuration parameters is the this article.

The easiest way to start playing around with configurations is to use default configuration files for different networks, they're available here.

Logging configuration with all available levels and parameters is described here.

πŸ‘¨β€πŸ’» Development

The node can be built and installed wherever Java can run. To build and test this project, you will have to follow these steps:

Show instructions

1. Setup the environment.

  • Install Java for your platform:
sudo apt-get update
sudo apt-get install openjdk-8-jre                     # Ubuntu
# or
# brew cask install adoptopenjdk/openjdk/adoptopenjdk8 # Mac
  • Install SBT (Scala Build Tool)

Please follow the SBT installation instructions depending on your platform (Linux, Mac, Windows)

2. Clone this repo

git clone https://github.com/wavesplatform/Waves.git
cd Waves

3. Compile and run tests

sbt checkPR

4. Run integration tests (optional)

Create a Docker image before you run any test:

sbt node-it/docker
  • Run all tests. You can increase or decrease number of parallel running tests by changing waves.it.max-parallel-suites system property:
sbt -Dwaves.it.max-parallel-suites=1 node-it/test
  • Run one test:
sbt node-it/testOnly *.TestClassName
# or 
# bash node-it/testOnly full.package.TestClassName

5. Build packages

sbt packageAll                   # Mainnet
sbt -Dnetwork=testnet packageAll # Testnet

sbt packageAll β€Œproduces only deb package along with a fat jar.

6. Install DEB package

deb package is located in target folder. You can replace '*' with actual package name:

sudo dpkg -i node/target/*.deb

7. Run an extension project locally during development (optional)

sbt "extension-module/run /path/to/configuration"

8. Configure IntelliJ IDEA (optional)

The majority of contributors to this project use IntelliJ IDEA for development, if you want to use it as well please follow these steps:

  1. Click on Add configuration (or Edit configurations...)
  2. Click on + to add a new configuration, choose Application
  3. Specify:
    • Main class: com.wavesplatform.Application
    • Program arguments: /path/to/configuration
    • Use classpath of module: extension-module
  4. Click on OK
  5. Run this configuration

🀝 Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

Please follow the code of conduct during communication with the each other.

ℹ️ Support (get help)

Keep up with the latest news and articles, and find out all about events happening on the Waves Platform.

β›“ Links

πŸ“ Licence

The code in this project is licensed under MIT license

πŸ‘ Acknowledgements

We use YourKit full-featured Java Profiler to make Waves node faster. YourKit, LLC is the creator of innovative and intelligent tools for profiling Java and .NET applications.

Take a look at YourKit's leading software products: YourKit Java Profiler and YourKit .NET Profiler.

com.wavesplatform

Waves Protocol

Waves.tech is an all-encompassing ecosystem of innovative technologies advancing technological frontiers for the pioneering developers of tomorrow.

Versions

Version
1.0.0