How to use the @aeternity/aepp-sdk.ContractCompilerAPI function in @aeternity/aepp-sdk

To help you get started, we’ve selected a few @aeternity/aepp-sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aeternity / aepp-aeproject-js / packages / forgae-utils / utils / forgae-utils.js View on Github external
require = require('esm')(module /*, options */) // use to handle es6 import/export 
const AeSDK = require('@aeternity/aepp-sdk');
const Universal = AeSDK.Universal;
const ContractCompilerAPI = AeSDK.ContractCompilerAPI;

const config = require('forgae-config');
const {
    printError
} = require('./fs-utils')

const {
    spawn
} = require('promisify-child-process');

const getClient = async function (network, keypair = config.keypair) {
    let client;
    let internalUrl = network.url;

    if (network.url.includes("localhost")) {
        internalUrl = internalUrl + "/internal"