"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 {
    at(address) {
        return new RemoteTokenPoolInstance(address);
    }
    testCompleteTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "completeTransfer", params);
        });
    }
    testPrepareTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "prepareTransfer", params);
        });
    }
    testPrepareCompleteTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "prepareCompleteTransfer", params);
        });
    }
    testNormalizeAmountMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "normalizeAmount", params);
        });
    }
    testDeNormalizeAmountMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "deNormalizeAmount", params);
        });
    }
    testNameMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "name", params);
        });
    }
    testSymbolMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "symbol", params);
        });
    }
    testDecimalsMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "decimals", params);
        });
    }
    testUpdateDetailsMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "updateDetails", params);
        });
    }
    testTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.testMethod(this, "transfer", params);
        });
    }
}
// Use this object to test and deploy the contract
exports.RemoteTokenPool = new Factory(web3_1.Contract.fromJson(remote_token_pool_ral_json_1.default, "", "beed1be1ba36def0fd93c0a453398674b180f8f26e0c404f30b3443ab33fe902"));
// Use this class to interact with the blockchain
class RemoteTokenPoolInstance extends web3_1.ContractInstance {
    constructor(address) {
        super(address);
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.fetchContractState(exports.RemoteTokenPool, this);
        });
    }
    callNormalizeAmountMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.callMethod(exports.RemoteTokenPool, this, "normalizeAmount", params);
        });
    }
    callDeNormalizeAmountMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.callMethod(exports.RemoteTokenPool, this, "deNormalizeAmount", params);
        });
    }
    callNameMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.callMethod(exports.RemoteTokenPool, this, "name", params === undefined ? {} : params);
        });
    }
    callSymbolMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.callMethod(exports.RemoteTokenPool, this, "symbol", params === undefined ? {} : params);
        });
    }
    callDecimalsMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.callMethod(exports.RemoteTokenPool, this, "decimals", params === undefined ? {} : params);
        });
    }
    callTransferMethod(params) {
        return __awaiter(this, void 0, void 0, function* () {
            return web3_1.callMethod(exports.RemoteTokenPool, this, "transfer", params);
        });
    }
}
exports.RemoteTokenPoolInstance = RemoteTokenPoolInstance;
