"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.TokenBridgeForChainInstance = exports.TokenBridgeForChain = void 0;
const web3_1 = require("@alephium/web3");
const token_bridge_for_chain_ral_json_1 = __importDefault(require("../token_bridge/token_bridge_for_chain.ral.json"));
class Factory extends web3_1.ContractFactory {
    constructor() {
        super(...arguments);
        this.tests = {
            setExecuted: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "setExecuted", params);
            }),
            compact: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "compact", params);
            }),
            checkSequenceInSubContract: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "checkSequenceInSubContract", params);
            }),
            checkSequence: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "checkSequence", params);
            }),
            nextSendSequence: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "nextSendSequence", params);
            }),
            checkCompleteTransfer: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "checkCompleteTransfer", params);
            }),
            parseCompleteTransfer: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "parseCompleteTransfer", params);
            }),
            completeTransfer: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "completeTransfer", params);
            }),
            destroyUnexecutedSequenceContracts: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "destroyUnexecutedSequenceContracts", params);
            }),
            deposit: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "deposit", params);
            }),
            withdraw: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "withdraw", params);
            }),
        };
    }
    at(address) {
        return new TokenBridgeForChainInstance(address);
    }
}
// Use this object to test and deploy the contract
exports.TokenBridgeForChain = new Factory(web3_1.Contract.fromJson(token_bridge_for_chain_ral_json_1.default, "", "4ba106c0803a7a36c9fe4bc7333a10337cf417c8b7155cce01794e4f13aa5d5a"));
// Use this class to interact with the blockchain
class TokenBridgeForChainInstance extends web3_1.ContractInstance {
    constructor(address) {
        super(address);
        this.methods = {
            nextSendSequence: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.callMethod(exports.TokenBridgeForChain, this, "nextSendSequence", params === undefined ? {} : params);
            }),
        };
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.fetchContractState(exports.TokenBridgeForChain, this);
        });
    }
    multicall(calls) {
        return __awaiter(this, void 0, void 0, function* () {
            return (yield web3_1.multicallMethods(exports.TokenBridgeForChain, this, calls));
        });
    }
}
exports.TokenBridgeForChainInstance = TokenBridgeForChainInstance;
