// SPDX-License-Identifier: Apache-2.0
import ContractId from "../../../src/domain/context/contract/ContractId";
import { createFixture } from "../config";
import { HederaIdPropsFixture } from "../shared/DataFixture";
export const UpdateConfigCommandFixture = createFixture((command) => {
    command.securityId.as(() => 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" }));
});
export const UpdateConfigVersionCommandFixture = createFixture((command) => {
    command.securityId.as(() => HederaIdPropsFixture.create().value);
    command.configVersion.faker((faker) => faker.number.int({ min: 1, max: 5 }));
});
export const UpdateResolverCommandFixture = createFixture((command) => {
    command.securityId.as(() => 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(HederaIdPropsFixture.create().value));
});
export const UpdateConfigVersionRequestFixture = createFixture((request) => {
    request.configVersion.faker((faker) => faker.number.int({ min: 1, max: 10 }));
    request.securityId.as(() => HederaIdPropsFixture.create().value);
});
export const UpdateConfigRequestFixture = 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(() => HederaIdPropsFixture.create().value);
});
export const UpdateResolverRequestFixture = 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(() => HederaIdPropsFixture.create().value);
    request.resolver.as(() => HederaIdPropsFixture.create().value);
});
export const GetConfigInfoRequestFixture = createFixture((request) => {
    request.securityId.as(() => HederaIdPropsFixture.create().value);
});
