@aggregion/dmp-contracts

Prerequisites

Usage no npm install needed!

<script type="module">
  import aggregionDmpContracts from 'https://cdn.skypack.dev/@aggregion/dmp-contracts';
</script>

README

Aggregion Contract

CODE

Prerequisites

  1. EOS v2.0.4 tools cleos and keosd accessible in path (https://github.com/EOSIO/eos/tree/release/2.0.x).
  2. EOSIO.CDT installed (https://github.com/EOSIO/eosio.cdt/tree/release/1.7.x)
  3. 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

  1. nodejs (https://nodejs.org/) in system path.
  2. nodeos in system path.
  3. public and private keys for eosio (root) account.
  4. 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

License: CC BY-NC-SA 4.0

Contacts

For any questions: info@aggregion.com