/* 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 TestTokenContractJson } from "../tests/test_token.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);
            }),
            buy: (params) => __awaiter(this, void 0, void 0, function* () {
                return testMethod(this, "buy", params);
            }),
        };
    }
    at(address) {
        return new TestTokenInstance(address);
    }
}
// Use this object to test and deploy the contract
export const TestToken = new Factory(Contract.fromJson(TestTokenContractJson, "", "de33924ab0e8e07c90c855bfdde7f3b859de0ba8b192de514ecbc49ff52c16bc"));
// Use this class to interact with the blockchain
export class TestTokenInstance extends ContractInstance {
    constructor(address) {
        super(address);
        this.methods = {
            getSymbol: (params) => __awaiter(this, void 0, void 0, function* () {
                return callMethod(TestToken, this, "getSymbol", params === undefined ? {} : params);
            }),
            getName: (params) => __awaiter(this, void 0, void 0, function* () {
                return callMethod(TestToken, this, "getName", params === undefined ? {} : params);
            }),
            getDecimals: (params) => __awaiter(this, void 0, void 0, function* () {
                return callMethod(TestToken, this, "getDecimals", params === undefined ? {} : params);
            }),
            getTotalSupply: (params) => __awaiter(this, void 0, void 0, function* () {
                return callMethod(TestToken, this, "getTotalSupply", params === undefined ? {} : params);
            }),
        };
    }
    fetchState() {
        return __awaiter(this, void 0, void 0, function* () {
            return fetchContractState(TestToken, this);
        });
    }
    multicall(calls) {
        return __awaiter(this, void 0, void 0, function* () {
            return (yield multicallMethods(TestToken, this, calls));
        });
    }
}
