mirror of
https://github.com/fluencelabs/examples
synced 2024-12-15 15:45:39 +00:00
14 lines
353 B
Plaintext
14 lines
353 B
Plaintext
import "./calc.aqua"
|
|
|
|
const PEER ?= "12D3KooWKETqJdR26urWDbkRAVRdPQhcYNSJNGMBTn1zuE9kjQmo"
|
|
const RELAY ?= "12D3KooWSD5PToNiLQwKDXsu8JSysCwUt8BVUJEqCHcDe7P5h45e"
|
|
|
|
func demoCalculation() -> f32:
|
|
on PEER via RELAY:
|
|
Calc.add(10)
|
|
Calc.multiply(5)
|
|
Calc.subtract(8)
|
|
Calc.divide(6)
|
|
res <- Calc.getResult()
|
|
<- res
|