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