Skip to content

Latest commit

 

History

History
 
 

obox-exchange

obox-exchange

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

Directory structure

$ tree
└── obox-exchange
    ├── build
    └── config
    └── contracts
        └── config
        └── contracts
        ontsctf.py
    └── src
    └── static
    └── wallet

build Files for building vue project.

config Configuration files.

contracts Diretory for smart contracts related files. config contains configuration files for deploying and invoking smart contracts. contracts contains smartc contract source codes, avm and abi files generated after comiple.

src Vue project source codes.

static Static files

wallet Wallet file.

How to use ontsctf.py ?

ontsctf.py is used to compile, deploy and test smart contracts。

Compile

npm run sc-compile

It will generate the abi and avm files and put them in /contracts/contracts directory.

Deploy

npm run sc-deploy

Smart contract deployment needs the configuration file deploy.json and put it in /contracts/config/ directory.

Test SC methods

npm run sc-invoke

Testing sc methods needs the configuration file invoke.json and put it in /contracts/config/ directory.