/* 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, callMethod, fetchContractState, ContractInstance, } from "@alephium/web3";
import { default as LocalTokenPoolContractJson } from "../token_bridge/local_token_pool.ral.json";
class Factory extends ContractFactory {
    at(address) {
        return new LocalTokenPoolInstance(address);
    }
    testCompleteTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "completeTransfer", params);
        });
    }
    testPrepareTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "prepareTransfer", params);
        });
    }
    testPrepareCompleteTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "prepareCompleteTransfer", params);
        });
    }
    testNormalizeAmountMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "normalizeAmount", params);
        });
    }
    testDeNormalizeAmountMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "deNormalizeAmount", params);
        });
    }
    testTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return testMethod(this, "transfer", params);
        });
    }
}
// Use this object to test and deploy the contract
export const LocalTokenPool = new Factory(Contract.fromJson(LocalTokenPoolContractJson, "", "444de82e20bcede3089a91a26ae45c8d28e47b7d903c97c18c24e195b47df769"));
// Use this class to interact with the blockchain
export class LocalTokenPoolInstance extends ContractInstance {
    constructor(address) {
        super(address);
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return fetchContractState(LocalTokenPool, this);
        });
    }
    callNormalizeAmountMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return callMethod(LocalTokenPool, this, "normalizeAmount", params);
        });
    }
    callDeNormalizeAmountMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return callMethod(LocalTokenPool, this, "deNormalizeAmount", params);
        });
    }
    callTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return callMethod(LocalTokenPool, this, "transfer", params);
        });
    }
}
