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