/* 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, subscribeContractCreatedEvent, subscribeContractDestroyedEvent, subscribeAllEvents, testMethod, callMethod, fetchContractState, ContractInstance, } from "@alephium/web3";
import { default as TokenBridgeFactoryContractJson } from "../token_bridge/token_bridge_factory.ral.json";
class Factory extends ContractFactory {
    at(address) {
        return new TokenBridgeFactoryInstance(address);
    }
    testGetLocalTokenPoolTemplateIdMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "getLocalTokenPoolTemplateId", params);
        });
    }
    testGetRemoteTokenPoolTemplateIdMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "getRemoteTokenPoolTemplateId", params);
        });
    }
    testGetTokenBridgeForChainTemplateIdMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "getTokenBridgeForChainTemplateId", params);
        });
    }
    testGetAttestTokenHandlerTemplateIdMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "getAttestTokenHandlerTemplateId", params);
        });
    }
    testGetUnexecutedSequenceTemplateIdMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "getUnexecutedSequenceTemplateId", params);
        });
    }
}
// Use this object to test and deploy the contract
export const TokenBridgeFactory = new Factory(Contract.fromJson(TokenBridgeFactoryContractJson, "", "b08890fe7fe29e80e21a7929ffd4a2658df0928fa1cdb5c45d63a90c55144b8f"));
// Use this class to interact with the blockchain
export class TokenBridgeFactoryInstance extends ContractInstance {
    constructor(address) {
        super(address);
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return fetchContractState(TokenBridgeFactory, this);
        });
    }
    subscribeContractCreatedEvent(options, fromCount) {
        return subscribeContractCreatedEvent(this, options, fromCount);
    }
    subscribeContractDestroyedEvent(options, fromCount) {
        return subscribeContractDestroyedEvent(this, options, fromCount);
    }
    subscribeAllEvents(options, fromCount) {
        return subscribeAllEvents(TokenBridgeFactory.contract, this, options, fromCount);
    }
    callGetLocalTokenPoolTemplateIdMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return callMethod(TokenBridgeFactory, this, "getLocalTokenPoolTemplateId", params === undefined ? {} : params);
        });
    }
    callGetRemoteTokenPoolTemplateIdMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return callMethod(TokenBridgeFactory, this, "getRemoteTokenPoolTemplateId", params === undefined ? {} : params);
        });
    }
    callGetTokenBridgeForChainTemplateIdMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return callMethod(TokenBridgeFactory, this, "getTokenBridgeForChainTemplateId", params === undefined ? {} : params);
        });
    }
    callGetAttestTokenHandlerTemplateIdMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return callMethod(TokenBridgeFactory, this, "getAttestTokenHandlerTemplateId", params === undefined ? {} : params);
        });
    }
    callGetUnexecutedSequenceTemplateIdMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return callMethod(TokenBridgeFactory, this, "getUnexecutedSequenceTemplateId", params === undefined ? {} : params);
        });
    }
}
