Skip to content

Adamnite/goAdamnite

Repository files navigation

goAdamnite

An implementation of the Adamnite Protocol in the GoLang programming language.

Build

Running A1 smart contract

In case you want to run your A1 smart contract on the Adamnite blockchain, make sure you go through the following steps:

  1. Use A1 compiler to compile smart contract to the ADVM bytecode. Follow instructions specified here.
  2. Build the CLI application by running the following commands:
$ cd VM/cli
$ go build
  1. Once you have a binary file, run the following command to get code hash, parameters and types:
$ ./cli debug --from-file <path-to-binary-file>

# if you want to try out our examples, try using hexadecimal content of .a1 files in examples directory
$ ./cli debug --from-hex <hexadecimal-string>
  1. Using the code hash given by above command, run the CLI again to execute the function:
$ ./cli execute --from-file <path-to-binary-file> --args <args> --gas <gas> --function <code-hash>

Congratulations! You have now ran your first smart contract on Adamnite blockchain.

About

Official Go implementation of the Adamnite protocol

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published