@aggregion/dmp-contracts
v0.0.59
Published
# CODE
Downloads
140
Keywords
Readme
Aggregion Contract
CODE
Prerequisites
- EOS v2.0.4 tools
cleos
andkeosd
accessible in path (https://github.com/EOSIO/eos/tree/release/2.0.x). - EOSIO.CDT installed (https://github.com/EOSIO/eosio.cdt/tree/release/1.7.x)
- EOSIO contracts cloned (https://github.com/EOSIO/eosio.contracts)
Environment variables
# Example
export EOSIO_CDT_ROOT=/opt/eosio.cdt/
export EOS_CONTRACTS_ROOT=/home/user/eosio.contracts/
export NODE_URL=http://testnet:8888
Building
$ cd build
$ cmake ..
$ make
Deploy smart contract to blockchain
$ cleos unlock wallet
$ make deploy
TESTS
Prerequisites
nodejs
(https://nodejs.org/) in system path.nodeos
in system path.- public and private keys for
eosio
(root) account. - accessible contracts wasm and abi files.
Write config file and put it in test
directory. Config file content example:
{
"node": {
"endpoint": "127.0.0.1:8888",
"workdir": "/tmp/aggregion_tests_blockchain_data"
},
"debug" : false,
"blockchain": {
"eosio_root_key": {
"public": "<eosio public key>",
"private": "<eosio private key>"
}
},
"contracts" : {
"aggregion": {
"account" : "aggregion",
"wasm": "/home/user/aggregion-dmp-contracts/build/aggregion/Aggregion.wasm",
"abi": "/home/user/aggregion-dmp-contracts/build/aggregion/Aggregion.abi"
}
"dmpusers": {
"account" : "dmpusers",
"wasm": "/home/user/aggregion-dmp-contracts/build/dmpusers/Dmpusers.wasm",
"abi": "/home/user/aggregion-dmp-contracts/build/dmpusers/Dmpusers.abi"
}
}
}
Run tests
$ npm install
$ npm test
License
Contacts
For any questions: [email protected]