"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());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
const commonTypes_1 = require("../../commonTypes");
const contractWrapperBase_1 = require("../../contractWrapperBase");
const contractWrapperFactory_1 = require("../../contractWrapperFactory");
class TestWrapperWrapper extends contractWrapperBase_1.ContractWrapperBase {
    constructor() {
        super(...arguments);
        this.name = "AbsoluteVote";
        this.frendlyName = "Test Wrapper";
        this.factory = exports.TestWrapperFactory;
    }
    foo() {
        return "bar";
    }
    aMethod() {
        return "abc";
    }
    setParameters(params) {
        const _super = name => super[name];
        return __awaiter(this, void 0, void 0, function* () {
            params = Object.assign({}, {
                ownerVote: true,
                reputation: "0x1000000000000000000000000000000000000000",
                votePerc: 50,
            }, params);
            return _super("setParameters").call(this, params.reputation, params.votePerc, params.ownerVote);
        });
    }
    getDefaultPermissions(overrideValue) {
        // return overrideValue || Utils.numberToPermissionsString(DefaultSchemePermissions.MinimumPermissions);
        return (overrideValue || commonTypes_1.DefaultSchemePermissions.MinimumPermissions);
    }
}
exports.TestWrapperWrapper = TestWrapperWrapper;
exports.TestWrapperFactory = new contractWrapperFactory_1.default("AbsoluteVote", TestWrapperWrapper);
//# sourceMappingURL=testWrapper.js.map