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
- Host: GitHub
- URL: https://github.com/ergoplatform/ergo-playgrounds
- Owner: ergoplatform
- License: cc0-1.0
- Created: 2020-02-23T12:10:58.000Z (about 5 years ago)
- Default Branch: develop
- Last Pushed: 2022-08-30T07:43:45.000Z (over 2 years ago)
- Last Synced: 2025-04-25T18:42:40.968Z (11 days ago)
- Topics: hacktoberfest
- Language: Scala
- Homepage:
- Size: 206 KB
- Stars: 7
- Watchers: 6
- Forks: 8
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ergo - Ergo Playgrounds - based framework for writing and testing Ergo contracts and off-chain logic in a simulated environment. [`Scala`] *(Active)* | [jaysee260 Fork](https://github.com/jaysee260/ergo-playground) (🛠️ Development Tooling <a id="development-tooling"></a> / 📜 Smart Contracts & ErgoScript <a id="smart-contracts--ergoscript"></a>)
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)