Skip to content

Instantly share code, notes, and snippets.

View kayvank's full-sized avatar
🏠
@127.0.0.1

Kayvan ≅ کیوان kayvank

🏠
@127.0.0.1
View GitHub Profile
@kayvank
kayvank / RholangContractProxy.scala
Last active August 26, 2018 03:17
Proxy service to deploy & propose a Rholang contract
package coop.rchain.service
import coop.rchain.domain.{Err, ErrorCode, DeployAndProposeResponse}
import coop.rchain.repo.RholangProxy
import coop.rchain.utils.Globals._
import scala.util.{Failure, Success, Try}
object RholangContractProxy {
@kayvank
kayvank / rnode-eval-error.md
Last active April 19, 2018 07:27
To run Rholang that is stored in a plain text file

Rchain

Rholang

executing Rholang source code

To run Rholang that is stored in a plain text file

Looks as if some required features are missing from the rchain/rnode. Using the instruction against the source code rholang/exmaples I could only get a successful run for:

Advanced Functional Programming with Scala - Notes

Copyright © 2016-2017 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x