"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.GetConfigInfoRequestFixture = exports.UpdateResolverRequestFixture = exports.UpdateConfigRequestFixture = exports.UpdateConfigVersionRequestFixture = exports.UpdateResolverCommandFixture = exports.UpdateConfigVersionCommandFixture = exports.UpdateConfigCommandFixture = void 0;
const ContractId_1 = __importDefault(require("../../../src/domain/context/contract/ContractId"));
const config_1 = require("../config");
const DataFixture_1 = require("../shared/DataFixture");
exports.UpdateConfigCommandFixture = (0, config_1.createFixture)((command) => {
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.configVersion.faker((faker) => faker.number.int({ min: 1, max: 5 }));
    command.configId.faker((faker) => faker.string.hexadecimal({ length: 64, prefix: "0x" }));
});
exports.UpdateConfigVersionCommandFixture = (0, config_1.createFixture)((command) => {
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.configVersion.faker((faker) => faker.number.int({ min: 1, max: 5 }));
});
exports.UpdateResolverCommandFixture = (0, config_1.createFixture)((command) => {
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.configVersion.faker((faker) => faker.number.int({ min: 1, max: 5 }));
    command.configId.faker((faker) => faker.string.hexadecimal({ length: 64, prefix: "0x" }));
    command.resolver.as(() => new ContractId_1.default(DataFixture_1.HederaIdPropsFixture.create().value));
});
exports.UpdateConfigVersionRequestFixture = (0, config_1.createFixture)((request) => {
    request.configVersion.faker((faker) => faker.number.int({ min: 1, max: 10 }));
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.UpdateConfigRequestFixture = (0, config_1.createFixture)((request) => {
    request.configVersion.faker((faker) => faker.number.int({ min: 1, max: 10 }));
    request.configId.faker((faker) => `0x000000000000000000000000000000000000000000000000000000000000000${faker.number.int({ min: 1, max: 9 })}`);
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.UpdateResolverRequestFixture = (0, config_1.createFixture)((request) => {
    request.configVersion.faker((faker) => faker.number.int({ min: 1, max: 10 }));
    request.configId.faker((faker) => `0x000000000000000000000000000000000000000000000000000000000000000${faker.number.int({ min: 1, max: 9 })}`);
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.resolver.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.GetConfigInfoRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
