/* 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());
    });
};
import { Contract, ContractFactory, testMethod, fetchContractState, ContractInstance, } from "@alephium/web3";
import { default as UnexecutedSequenceContractJson } from "../sequence/unexecuted_sequence.ral.json";
class Factory extends ContractFactory {
    at(address) {
        return new UnexecutedSequenceInstance(address);
    }
    testCheckSequenceMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "checkSequence", params);
        });
    }
    testDestroyMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "destroy", params);
        });
    }
}
// Use this object to test and deploy the contract
export const UnexecutedSequence = new Factory(Contract.fromJson(UnexecutedSequenceContractJson, "", "6a3855ba8ab9a6ee3aa47ef937d7e6257af42177a5fb6b67d8aab6119543f5e8"));
// Use this class to interact with the blockchain
export class UnexecutedSequenceInstance extends ContractInstance {
    constructor(address) {
        super(address);
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return fetchContractState(UnexecutedSequence, this);
        });
    }
}
