Senior Software Engineer@Box
I enjoy experimenting with new ideas and building Apps and tools with JS for the Web, Desktop, and Mobile. As a curious tinkerer, I'm always learning.
A blockchain is a type of digital ledger
A blockchain is a type of digital ledger
Kadena's smart contract language
Bridging Kadena and Web Frontends
(namespace 'free )
(module world-world G
(defcap G () true)
(defun say-hello(name:string)
(format "Hello, {}!" [name])
)
)
// install pact
brew install kadena-io/pact/pact
pact hello-world.pact
// Load successful(begin-tx "Load hello world")
(env-data {
'admin-ks: { "keys": [], "pred": "keys-all" }
})
(define-namespace "free" (read-keyset "admin-ks") (read-keyset "admin-ks"))
(load "hello-world.pact")
(print (hello-world.say-hello "World"))
(expect "Hello, World!" (hello-world.say-hello "World"))
(commit-tx)
pact pact/hello-world.repl
// Hello, World!
// Load successful