"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
function __export(m) {
    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./commonTypes"));
__export(require("./configService"));
var wrapperService_1 = require("./wrapperService");
exports.ContractWrappers = wrapperService_1.ContractWrappers;
exports.ContractWrapperFactories = wrapperService_1.ContractWrapperFactories;
exports.ContractWrappersByType = wrapperService_1.ContractWrappersByType;
exports.ContractWrappersByAddress = wrapperService_1.ContractWrappersByAddress;
__export(require("./wrapperService"));
__export(require("./wrappers/absoluteVote"));
__export(require("./wrappers/contributionreward"));
__export(require("./wrappers/daocreator"));
__export(require("./wrappers/genesisProtocol"));
__export(require("./wrappers/globalconstraintregistrar"));
__export(require("./wrappers/schemeregistrar"));
__export(require("./wrappers/tokenCapGC"));
__export(require("./wrappers/upgradescheme"));
__export(require("./wrappers/vestingscheme"));
__export(require("./wrappers/voteInOrganizationScheme"));
__export(require("./dao"));
__export(require("./contractWrapperBase"));
__export(require("./loggingService"));
__export(require("./utils"));
const loggingService_1 = require("./loggingService");
const utils_1 = require("./utils");
const wrapperService_2 = require("./wrapperService");
/**
 * initialize() must be called before doing anything with Arc.js
 */
function InitializeArc() {
    return __awaiter(this, void 0, void 0, function* () {
        loggingService_1.LoggingService.info("Initializing Arc.js");
        const web3 = utils_1.Utils.getWeb3();
        yield wrapperService_2.WrapperService.initialize();
        return web3;
    });
}
exports.InitializeArc = InitializeArc;
//# sourceMappingURL=index.js.map