"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.TokenBridgeFactoryInstance = exports.TokenBridgeFactory = void 0;
const web3_1 = require("@alephium/web3");
const token_bridge_factory_ral_json_1 = __importDefault(require("../token_bridge/token_bridge_factory.ral.json"));
class Factory extends web3_1.ContractFactory {
    constructor() {
        super(...arguments);
        this.tests = {
            parseConractUpgrade: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "parseConractUpgrade", params);
            }),
            getLocalTokenPoolTemplateId: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "getLocalTokenPoolTemplateId", params);
            }),
            getRemoteTokenPoolTemplateId: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "getRemoteTokenPoolTemplateId", params);
            }),
            getTokenBridgeForChainTemplateId: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "getTokenBridgeForChainTemplateId", params);
            }),
            getAttestTokenHandlerTemplateId: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "getAttestTokenHandlerTemplateId", params);
            }),
            getUnexecutedSequenceTemplateId: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "getUnexecutedSequenceTemplateId", params);
            }),
        };
    }
    at(address) {
        return new TokenBridgeFactoryInstance(address);
    }
}
// Use this object to test and deploy the contract
exports.TokenBridgeFactory = new Factory(web3_1.Contract.fromJson(token_bridge_factory_ral_json_1.default, "", "5b857883b9d09ff0a521bf1742cec209f2253afb1b974e3d06eef1401692a32c"));
// Use this class to interact with the blockchain
class TokenBridgeFactoryInstance extends web3_1.ContractInstance {
    constructor(address) {
        super(address);
        this.methods = {
            parseConractUpgrade: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.callMethod(exports.TokenBridgeFactory, this, "parseConractUpgrade", params);
            }),
            getLocalTokenPoolTemplateId: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.callMethod(exports.TokenBridgeFactory, this, "getLocalTokenPoolTemplateId", params === undefined ? {} : params);
            }),
            getRemoteTokenPoolTemplateId: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.callMethod(exports.TokenBridgeFactory, this, "getRemoteTokenPoolTemplateId", params === undefined ? {} : params);
            }),
            getTokenBridgeForChainTemplateId: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.callMethod(exports.TokenBridgeFactory, this, "getTokenBridgeForChainTemplateId", params === undefined ? {} : params);
            }),
            getAttestTokenHandlerTemplateId: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.callMethod(exports.TokenBridgeFactory, this, "getAttestTokenHandlerTemplateId", params === undefined ? {} : params);
            }),
            getUnexecutedSequenceTemplateId: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.callMethod(exports.TokenBridgeFactory, this, "getUnexecutedSequenceTemplateId", params === undefined ? {} : params);
            }),
        };
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.fetchContractState(exports.TokenBridgeFactory, this);
        });
    }
    multicall(calls) {
        return __awaiter(this, void 0, void 0, function* () {
            return (yield web3_1.multicallMethods(exports.TokenBridgeFactory, this, calls));
        });
    }
}
exports.TokenBridgeFactoryInstance = TokenBridgeFactoryInstance;
