"use strict";
// SPDX-License-Identifier: Apache-2.0
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AWS_KMS_SETTINGS = exports.FIREBLOCKS_SETTINGS = exports.DFNS_SETTINGS = exports.DECIMALS = exports.HEDERA_ID_ACCOUNT_ECDSA_A = exports.CLIENT_ACCOUNT_ECDSA_A = exports.CLIENT_EVM_ADDRESS_ECDSA_1_CORRECT = exports.CLIENT_ACCOUNT_ID_ECDSA_A = exports.CLIENT_EVM_ADDRESS_ECDSA_A = exports.CLIENT_PUBLIC_KEY_ECDSA_A = exports.CLIENT_PRIVATE_KEY_ECDSA_A = exports.HEDERA_ID_ACCOUNT_ECDSA_Z = exports.CLIENT_ACCOUNT_ECDSA_Z = exports.CLIENT_ACCOUNT_ID_ECDSA_Z = exports.CLIENT_EVM_ADDRESS_ECDSA_Z = exports.CLIENT_PUBLIC_KEY_ECDSA_Z = exports.CLIENT_PRIVATE_KEY_ECDSA_Z = exports.HEDERA_ID_ACCOUNT_ECDSA = exports.CLIENT_ACCOUNT_ECDSA = exports.CLIENT_ACCOUNT_ID_ECDSA = exports.CLIENT_EVM_ADDRESS_ECDSA = exports.CLIENT_PUBLIC_KEY_ECDSA = exports.CLIENT_PRIVATE_KEY_ECDSA = exports.RESOLVER_ADDRESS = exports.FACTORY_ADDRESS = exports.ENVIRONMENT = void 0;
const Account_1 = __importDefault(require("../src/domain/context/account/Account"));
const PrivateKey_1 = __importDefault(require("../src/domain/context/account/PrivateKey"));
const PublicKey_1 = __importDefault(require("../src/domain/context/account/PublicKey"));
const HederaId_1 = require("../src/domain/context/shared/HederaId");
const dotenv_1 = require("dotenv");
(0, dotenv_1.config)();
exports.ENVIRONMENT = "testnet";
exports.FACTORY_ADDRESS = process.env.FACTORY_ADDRESS ?? "";
exports.RESOLVER_ADDRESS = process.env.RESOLVER_ADDRESS ?? "";
exports.CLIENT_PRIVATE_KEY_ECDSA = new PrivateKey_1.default({
    key: process.env.CLIENT_PRIVATE_KEY_ECDSA_1 ?? "",
    type: "ECDSA",
});
exports.CLIENT_PUBLIC_KEY_ECDSA = new PublicKey_1.default({
    key: process.env.CLIENT_PUBLIC_KEY_ECDSA_1 ?? "",
    type: "ECDSA",
});
exports.CLIENT_EVM_ADDRESS_ECDSA = process.env.CLIENT_EVM_ADDRESS_ECDSA_1 ?? "";
exports.CLIENT_ACCOUNT_ID_ECDSA = process.env.CLIENT_ACCOUNT_ID_ECDSA_1 ?? "";
exports.CLIENT_ACCOUNT_ECDSA = new Account_1.default({
    id: exports.CLIENT_ACCOUNT_ID_ECDSA,
    evmAddress: exports.CLIENT_EVM_ADDRESS_ECDSA,
    privateKey: exports.CLIENT_PRIVATE_KEY_ECDSA,
    publicKey: exports.CLIENT_PUBLIC_KEY_ECDSA,
});
exports.HEDERA_ID_ACCOUNT_ECDSA = HederaId_1.HederaId.from(exports.CLIENT_ACCOUNT_ID_ECDSA);
// DEMO ACCOUNTs
// Account Z
exports.CLIENT_PRIVATE_KEY_ECDSA_Z = new PrivateKey_1.default({
    key: process.env.CLIENT_PRIVATE_KEY_ECDSA_1 ?? "",
    type: "ECDSA",
});
exports.CLIENT_PUBLIC_KEY_ECDSA_Z = new PublicKey_1.default({
    key: process.env.CLIENT_PUBLIC_KEY_ECDSA_1 ?? "",
    type: "ECDSA",
});
exports.CLIENT_EVM_ADDRESS_ECDSA_Z = process.env.CLIENT_EVM_ADDRESS_ECDSA_1 ?? "";
exports.CLIENT_ACCOUNT_ID_ECDSA_Z = process.env.CLIENT_ACCOUNT_ID_ECDSA_1 ?? "";
exports.CLIENT_ACCOUNT_ECDSA_Z = new Account_1.default({
    id: exports.CLIENT_ACCOUNT_ID_ECDSA_Z,
    evmAddress: exports.CLIENT_EVM_ADDRESS_ECDSA_Z,
    privateKey: exports.CLIENT_PRIVATE_KEY_ECDSA_Z,
    publicKey: exports.CLIENT_PUBLIC_KEY_ECDSA_Z,
});
exports.HEDERA_ID_ACCOUNT_ECDSA_Z = HederaId_1.HederaId.from(exports.CLIENT_ACCOUNT_ID_ECDSA_Z);
// Account A
exports.CLIENT_PRIVATE_KEY_ECDSA_A = new PrivateKey_1.default({
    key: process.env.CLIENT_PRIVATE_KEY_ECDSA_2 ?? "",
    type: "ECDSA",
});
exports.CLIENT_PUBLIC_KEY_ECDSA_A = new PublicKey_1.default({
    key: process.env.CLIENT_PUBLIC_KEY_ECDSA_2 ?? "",
    type: "ECDSA",
});
exports.CLIENT_EVM_ADDRESS_ECDSA_A = process.env.CLIENT_EVM_ADDRESS_ECDSA_2 ?? "";
exports.CLIENT_ACCOUNT_ID_ECDSA_A = process.env.CLIENT_ACCOUNT_ID_ECDSA_2 ?? "";
exports.CLIENT_EVM_ADDRESS_ECDSA_1_CORRECT = process.env.CLIENT_EVM_ADDRESS_ECDSA_1_CORRECT ?? "";
exports.CLIENT_ACCOUNT_ECDSA_A = new Account_1.default({
    id: exports.CLIENT_ACCOUNT_ID_ECDSA_A,
    evmAddress: exports.CLIENT_EVM_ADDRESS_ECDSA_A,
    privateKey: exports.CLIENT_PRIVATE_KEY_ECDSA_A,
    publicKey: exports.CLIENT_PUBLIC_KEY_ECDSA_A,
});
exports.HEDERA_ID_ACCOUNT_ECDSA_A = HederaId_1.HederaId.from(exports.CLIENT_ACCOUNT_ID_ECDSA_A);
exports.DECIMALS = 2;
exports.DFNS_SETTINGS = {
    authorizationToken: process.env.DFNS_SERVICE_ACCOUNT_AUTHORIZATION_TOKEN ?? "",
    credentialId: process.env.DFNS_SERVICE_ACCOUNT_CREDENTIAL_ID ?? "",
    serviceAccountPrivateKey: process.env.DFNS_SERVICE_ACCOUNT_PRIVATE_KEY_OR_PATH ?? "",
    urlApplicationOrigin: process.env.DFNS_APP_ORIGIN ?? "",
    applicationId: process.env.DFNS_APP_ID ?? "",
    baseUrl: process.env.DFNS_BASE_URL ?? "",
    walletId: process.env.DFNS_WALLET_ID ?? "",
    hederaAccountId: process.env.DFNS_HEDERA_ACCOUNT_ID ?? "",
    publicKey: process.env.DFNS_WALLET_PUBLIC_KEY ?? "",
};
exports.FIREBLOCKS_SETTINGS = {
    apiKey: process.env.FIREBLOCKS_API_KEY ?? "",
    apiSecretKey: process.env.FIREBLOCKS_API_SECRET_KEY_PATH ?? "",
    baseUrl: process.env.FIREBLOCKS_BASE_URL ?? "",
    vaultAccountId: process.env.FIREBLOCKS_VAULT_ACCOUNT_ID ?? "",
    assetId: process.env.FIREBLOCKS_ASSET_ID ?? "",
    hederaAccountId: process.env.FIREBLOCKS_HEDERA_ACCOUNT_ID ?? "",
};
exports.AWS_KMS_SETTINGS = {
    awsAccessKeyId: process.env.AWS_KMS_ACCESS_KEY_ID ?? "",
    awsSecretAccessKey: process.env.AWS_KMS_SECRET_ACCESS_KEY ?? "",
    awsRegion: process.env.AWS_KMS_REGION ?? "",
    awsKmsKeyId: process.env.AWS_KMS_KEY_ID ?? "",
    hederaAccountId: process.env.AWS_KMS_HEDERA_ACCOUNT_ID ?? "",
};
