/* 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, callMethod, multicallMethods, fetchContractState, ContractInstance, } from "@alephium/web3";
import { default as SequenceTestContractJson } from "../tests/sequence_test.ral.json";
class Factory extends ContractFactory {
    constructor() {
        super(...arguments);
        this.tests = {
            setExecuted: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "setExecuted", params);
            }),
            compact: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "compact", params);
            }),
            checkSequenceInSubContract: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "checkSequenceInSubContract", params);
            }),
            checkSequence: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "checkSequence", params);
            }),
            check: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "check", params);
            }),
        };
    }
    at(address) {
        return new SequenceTestInstance(address);
    }
}
// Use this object to test and deploy the contract
export const SequenceTest = new Factory(Contract.fromJson(SequenceTestContractJson, "", "8e793a256d2939004cd121580a652fa74f9083b6a51bc11936604f87a0ec5fe5"));
// Use this class to interact with the blockchain
export class SequenceTestInstance extends ContractInstance {
    constructor(address) {
        super(address);
        this.methods = {
            check: (params) => __awaiter(this, void 0, void 0, function* () {
                return callMethod(SequenceTest, this, "check", params);
            }),
        };
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return fetchContractState(SequenceTest, this);
        });
    }
    multicall(calls) {
        return __awaiter(this, void 0, void 0, function* () {
            return (yield multicallMethods(SequenceTest, this, calls));
        });
    }
}
