An implementation of the Adamnite Protocol in the GoLang programming language.
In case you want to run your A1 smart contract on the Adamnite blockchain, make sure you go through the following steps:
- Use A1 compiler to compile smart contract to the ADVM bytecode. Follow instructions specified here.
- Build the CLI application by running the following commands:
$ cd VM/cli
$ go build
- 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>
- 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.