"use strict";
// Copyright 2017-2020 @polkadot/api-contract authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
Object.defineProperty(exports, "__esModule", { value: true });
// import { map } from 'rxjs/operators';
const api_1 = require("../../api");
const types_1 = require("../../types");
const util_1 = require("./util");
class BlueprintCreateResult extends api_1.SubmittableResult {
    constructor(result, contract) {
        super(result);
        this.contract = contract;
    }
}
// NOTE Experimental, POC, bound to change
class Blueprint extends util_1.BaseWithTx {
    constructor(api, abi, decorateMethod, codeHash) {
        super(api, abi, decorateMethod);
        this.codeHash = types_1.createType(this.registry, 'Hash', codeHash);
    }
}
exports.default = Blueprint;
