/* 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, multicallMethods, fetchContractState, ContractInstance, } from "@alephium/web3";
import { default as LocalTokenPoolContractJson } from "../token_bridge/local_token_pool.ral.json";
class Factory extends ContractFactory {
    constructor() {
        super(...arguments);
        this.tests = {
            getSymbol: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "getSymbol", params);
            }),
            getName: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "getName", params);
            }),
            getDecimals: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "getDecimals", params);
            }),
            getTotalSupply: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "getTotalSupply", params);
            }),
            completeTransfer: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "completeTransfer", params);
            }),
            prepareTransfer: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "prepareTransfer", params);
            }),
            prepareCompleteTransfer: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "prepareCompleteTransfer", params);
            }),
            normalizeAmount: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "normalizeAmount", params);
            }),
            deNormalizeAmount: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "deNormalizeAmount", params);
            }),
            transfer: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "transfer", params);
            }),
        };
    }
    at(address) {
        return new LocalTokenPoolInstance(address);
    }
}
// Use this object to test and deploy the contract
export const LocalTokenPool = new Factory(Contract.fromJson(LocalTokenPoolContractJson, "", "6330d3736eef41d3bc9c5026d0608def44267cc00ed8d8be0620d01f4627f035"));
// Use this class to interact with the blockchain
export class LocalTokenPoolInstance extends ContractInstance {
    constructor(address) {
        super(address);
        this.methods = {
            getSymbol: (params) => __awaiter(this, void 0, void 0, function* () {
                return callMethod(LocalTokenPool, this, "getSymbol", params === undefined ? {} : params);
            }),
            getName: (params) => __awaiter(this, void 0, void 0, function* () {
                return callMethod(LocalTokenPool, this, "getName", params === undefined ? {} : params);
            }),
            getDecimals: (params) => __awaiter(this, void 0, void 0, function* () {
                return callMethod(LocalTokenPool, this, "getDecimals", params === undefined ? {} : params);
            }),
            getTotalSupply: (params) => __awaiter(this, void 0, void 0, function* () {
                return callMethod(LocalTokenPool, this, "getTotalSupply", params === undefined ? {} : params);
            }),
            normalizeAmount: (params) => __awaiter(this, void 0, void 0, function* () {
                return callMethod(LocalTokenPool, this, "normalizeAmount", params);
            }),
            deNormalizeAmount: (params) => __awaiter(this, void 0, void 0, function* () {
                return callMethod(LocalTokenPool, this, "deNormalizeAmount", params);
            }),
            transfer: (params) => __awaiter(this, void 0, void 0, function* () {
                return callMethod(LocalTokenPool, this, "transfer", params);
            }),
        };
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return fetchContractState(LocalTokenPool, this);
        });
    }
    multicall(calls) {
        return __awaiter(this, void 0, void 0, function* () {
            return (yield multicallMethods(LocalTokenPool, this, calls));
        });
    }
}
