https://github.com/stewsquared/jobmixer
JBC Mixer
https://github.com/stewsquared/jobmixer
Last synced: over 1 year ago
JSON representation
JBC Mixer
- Host: GitHub
- URL: https://github.com/stewsquared/jobmixer
- Owner: stewSquared
- Created: 2018-04-21T00:11:58.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-25T05:19:08.000Z (about 8 years ago)
- Last Synced: 2025-01-15T10:56:47.759Z (over 1 year ago)
- Language: Scala
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Jobmixer - A Jobcoin Mixer
To use, install `sbt` and run:
```bash
sbt "run foo bar baz"
```
where foo, bar, and baz are your withdrawal addresses.
This will start a new mixer and generate a deposit address. Once the
deposit is detected, the mixer will transfer funds to your withdrawal
addresses, then exit.
Alternatively, just run `sbt console`, then paste something like the following.
```scala
import jobcoin._
val client = new RestClient()
val mixer = new AsyncMixer(client)
val (depositAddress, _) = mixer.mix("foo", "bar", "baz")
val customerAddress = newAddress("customer")
client.create(customerAddress)
client.send(from = customerAddress, to = depositAddress, Jobcoin(13))
```
Use `sbt scalafmt` and `sbt test` to format and run tests, respectively.