Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

APIchain/contract-tool-cpp

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

contract

  create a new folder to save contract file, for example helloworld
  enter the contract folder, then create helloworld.cpp and helloworld.hpp

Compile

  enter the contract folder, for example "cd testHelloWorld", then compile cpp:
  python ../gentool.py --type common --file helloworld.cpp
  then common.hpp will be created. next add '#include "common.hpp"' as the last "#include" to your helloWorld.cpp.
  
  enter the contract folder, for example "cd testHelloWorld", then compile cpp:
  python ../gentool.py --type wasm --file helloworld.cpp

  then helloworld.wast and helloworld.wasm will be created.

  generate abi file:
  python ../gentool.py --file helloworld.hpp

  then helloworld.abi will be created.


ref to https://github.com/WebAssembly/wabt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • WebAssembly 56.7%
  • C++ 34.2%
  • Python 8.0%
  • C 1.1%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.