"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    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) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.GovernanceInstance = exports.Governance = void 0;
const web3_1 = require("@alephium/web3");
const governance_ral_json_1 = __importDefault(require("../governance.ral.json"));
class Factory extends web3_1.ContractFactory {
    at(address) {
        return new GovernanceInstance(address);
    }
    testParseConractUpgradeMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "parseConractUpgrade", params);
        });
    }
    testGetMessageFeeMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "getMessageFee", params);
        });
    }
    testPublishWormholeMessageMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "publishWormholeMessage", params);
        });
    }
    testParseAndVerifyVAAMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "parseAndVerifyVAA", params);
        });
    }
    testParseAndVerifyGovernanceVAAGenericMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "parseAndVerifyGovernanceVAAGeneric", params);
        });
    }
    testParseAndVerifyGovernanceVAAMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "parseAndVerifyGovernanceVAA", params);
        });
    }
    testGetGuardiansInfoMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "getGuardiansInfo", params);
        });
    }
    testSubmitContractUpgradeMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "submitContractUpgrade", params);
        });
    }
    testUpdatePreviousGuardianSetMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "updatePreviousGuardianSet", params);
        });
    }
    testSubmitNewGuardianSetMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "submitNewGuardianSet", params);
        });
    }
    testSubmitSetMessageFeeMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "submitSetMessageFee", params);
        });
    }
    testSubmitTransferFeesMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "submitTransferFees", params);
        });
    }
}
// Use this object to test and deploy the contract
exports.Governance = new Factory(web3_1.Contract.fromJson(governance_ral_json_1.default, "", "59e000edbf5739884298899e54a4d2e34c6ebf30ac8273b7b1b00740248cf4cb"));
// Use this class to interact with the blockchain
class GovernanceInstance extends web3_1.ContractInstance {
    constructor(address) {
        super(address);
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.fetchContractState(exports.Governance, this);
        });
    }
    getContractEventsCurrentCount() {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.getContractEventsCurrentCount(this.address);
        });
    }
    subscribeWormholeMessageEvent(options, fromCount) {
        return web3_1.subscribeContractEvent(exports.Governance.contract, this, options, "WormholeMessage", fromCount);
    }
    callGetMessageFeeMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.callMethod(exports.Governance, this, "getMessageFee", params === undefined ? {} : params);
        });
    }
    callParseAndVerifyVAAMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.callMethod(exports.Governance, this, "parseAndVerifyVAA", params);
        });
    }
    callParseAndVerifyGovernanceVAAGenericMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.callMethod(exports.Governance, this, "parseAndVerifyGovernanceVAAGeneric", params);
        });
    }
}
exports.GovernanceInstance = GovernanceInstance;
