"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EthereumAddress = void 0;
var ethers_1 = require("ethers");
var EthereumAddress = /** @class */ (function () {
    function EthereumAddress(addr) {
        this._addr = addr;
    }
    EthereumAddress.parse = function (input) {
        return new EthereumAddress(ethers_1.ethers.utils.getAddress(input));
    };
    EthereumAddress.prototype.toString = function () {
        return this._addr;
    };
    return EthereumAddress;
}());
exports.EthereumAddress = EthereumAddress;
