/* 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, fetchContractState, ContractInstance, } from "@alephium/web3";
import { default as TokenBridgeForChainContractJson } from "../token_bridge/token_bridge_for_chain.ral.json";
class Factory extends ContractFactory {
    at(address) {
        return new TokenBridgeForChainInstance(address);
    }
    testSetExecutedMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "setExecuted", params);
        });
    }
    testCompactMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "compact", params);
        });
    }
    testCheckSequenceInSubContractMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "checkSequenceInSubContract", params);
        });
    }
    testCheckSequenceMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "checkSequence", params);
        });
    }
    testNextSendSequenceMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "nextSendSequence", params);
        });
    }
    testCheckCompleteTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "checkCompleteTransfer", params);
        });
    }
    testParseCompleteTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "parseCompleteTransfer", params);
        });
    }
    testCompleteTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "completeTransfer", params);
        });
    }
    testDestroyUnexecutedSequenceContractsMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "destroyUnexecutedSequenceContracts", params);
        });
    }
    testDepositMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "deposit", params);
        });
    }
    testWithdrawMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "withdraw", params);
        });
    }
}
// Use this object to test and deploy the contract
export const TokenBridgeForChain = new Factory(Contract.fromJson(TokenBridgeForChainContractJson, "", "fcd44a6e122c9a1ee56af7ee1aa76fd73db741818b30a3df997b01a4e9d0e126"));
// Use this class to interact with the blockchain
export class TokenBridgeForChainInstance extends ContractInstance {
    constructor(address) {
        super(address);
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return fetchContractState(TokenBridgeForChain, this);
        });
    }
    callNextSendSequenceMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return callMethod(TokenBridgeForChain, this, "nextSendSequence", params === undefined ? {} : params);
        });
    }
}
