"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.UnexecutedSequenceTestInstance = exports.UnexecutedSequenceTest = void 0;
const web3_1 = require("@alephium/web3");
const unexecuted_sequence_test_ral_json_1 = __importDefault(require("../tests/unexecuted_sequence_test.ral.json"));
class Factory extends web3_1.ContractFactory {
    at(address) {
        return new UnexecutedSequenceTestInstance(address);
    }
    testCheckSequenceMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "checkSequence", params);
        });
    }
    testDestroyMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "destroy", params);
        });
    }
}
// Use this object to test and deploy the contract
exports.UnexecutedSequenceTest = new Factory(web3_1.Contract.fromJson(unexecuted_sequence_test_ral_json_1.default, "", "959eab90ef1db13a92de0fffd3b3c7bc5b04d8b0e61bcae7ff8c0713b3d89ea7"));
// Use this class to interact with the blockchain
class UnexecutedSequenceTestInstance extends web3_1.ContractInstance {
    constructor(address) {
        super(address);
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.fetchContractState(exports.UnexecutedSequenceTest, this);
        });
    }
    subscribeContractCreatedEvent(options, fromCount) {
        return web3_1.subscribeContractCreatedEvent(this, options, fromCount);
    }
    subscribeContractDestroyedEvent(options, fromCount) {
        return web3_1.subscribeContractDestroyedEvent(this, options, fromCount);
    }
    subscribeAllEvents(options, fromCount) {
        return web3_1.subscribeAllEvents(exports.UnexecutedSequenceTest.contract, this, options, fromCount);
    }
}
exports.UnexecutedSequenceTestInstance = UnexecutedSequenceTestInstance;
