Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aggregion/dmp-contracts

Package Overview
Dependencies
Maintainers
6
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aggregion/dmp-contracts

# CODE

  • 0.0.59
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

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

FAQs

Package last updated on 02 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc