An open API service indexing awesome lists of open source software.

https://github.com/ergoplatform/ergo-playgrounds

Run contracts + off-chain code in the browser
https://github.com/ergoplatform/ergo-playgrounds

hacktoberfest

Last synced: 5 days ago
JSON representation

Run contracts + off-chain code in the browser

Awesome Lists containing this project

README

        

# Ergo Playgrounds
Run contracts + off-chain code in the browser.
1. Design and model a contract along with its off-chain counterpart in the same Scala environment.
2. Share and discuss the contract. Explain how it works.
3. Check different scenarios of contract execution.

Enjoy:
- seamless on-chain < - > off-chain code integration;
- immediate feedback.

## Version
CI will publish a snapshot version on success. Check the version number in build logs. As of 17/10/21 the latest version of `ergo-playground-env` is `0.0.0-88-a781666a-SNAPSHOT`.

## Examples:

### DEX with partial filling contracts

[Run in Scastie](https://scastie.scala-lang.org/YCzvl8NBQwa7R0pVI5mHnA)

[Source code](https://github.com/ergoplatform/ergo-playgrounds/blob/c91117ae0b1434b7a554028592e30a5bba15a14b/playgrounds/src/main/scala/org/ergoplatform/playgrounds/examples/AssetsAtomicExchangePlayground.scala#L1-L1)

### Assets Atomic Exchange contracts

[Run in Scastie](https://scastie.scala-lang.org/qx8LnkelR124gGkWzdn2wg)

[Source code](https://github.com/ergoplatform/ergo-playgrounds/blob/c91117ae0b1434b7a554028592e30a5bba15a14b/playgrounds/src/main/scala/org/ergoplatform/playgrounds/examples/AssetsAtomicExchangePlayground.scala#L1-L1)