Deployer

Install

npm install aeproject-lib

Usage

Require

Require of the package is done as follows:

const Deployer = require('aeproject-lib').Deployer;

Deployer.deploy(path, initState, options) function can take up to 3 parameters:

  • path - relative path to the contract

  • initState - variable for the arguments of the init function of the contract. Should be passed as an array

  • options - Initial options that will be passed to init function

Example

let deployer = new Deployer(network, privateKey, compiler)
await deployer.deploy("./contracts/ExampleContract.aes", [])
Contents
Install
Usage