"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.AttestTokenHandlerInstance = exports.AttestTokenHandler = void 0;
const web3_1 = require("@alephium/web3");
const attest_token_handler_ral_json_1 = __importDefault(require("../token_bridge/attest_token_handler.ral.json"));
class Factory extends web3_1.ContractFactory {
    constructor() {
        super(...arguments);
        this.tests = {
            parseAttestToken: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "parseAttestToken", params);
            }),
            createLocalTokenPool: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "createLocalTokenPool", params);
            }),
            createRemoteTokenPool: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "createRemoteTokenPool", params);
            }),
            updateRemoteTokenPool: (params) => __awaiter(this, void 0, void 0, function* () {
                return web3_1.testMethod(this, "updateRemoteTokenPool", params);
            }),
        };
    }
    at(address) {
        return new AttestTokenHandlerInstance(address);
    }
}
// Use this object to test and deploy the contract
exports.AttestTokenHandler = new Factory(web3_1.Contract.fromJson(attest_token_handler_ral_json_1.default, "", "741f7658d2746b8d678a329a1ebc1f433ef645c0d4c7e0dc425b958b0a87b8bb"));
// Use this class to interact with the blockchain
class AttestTokenHandlerInstance extends web3_1.ContractInstance {
    constructor(address) {
        super(address);
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.fetchContractState(exports.AttestTokenHandler, this);
        });
    }
}
exports.AttestTokenHandlerInstance = AttestTokenHandlerInstance;
