"use strict";
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.FocedTransferCommandFixture = exports.ForcedTransferRequestFixture = exports.ForceTransferRequestFixture = exports.TransferAndLockRequestFixture = exports.TransferRequestFixture = exports.TransferCommandFixture = exports.TransferAndLockCommandFixture = void 0;
const config_1 = require("../config");
const DataFixture_1 = require("../shared/DataFixture");
exports.TransferAndLockCommandFixture = (0, config_1.createFixture)((command) => {
    command.amount.faker((faker) => faker.number.int({ min: 1, max: 1000 }).toString());
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.expirationDate.faker((faker) => faker.date.future().getTime().toString());
});
exports.TransferCommandFixture = (0, config_1.createFixture)((command) => {
    command.amount.faker((faker) => faker.number.int({ min: 1, max: 1000 }).toString());
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.sourceId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.partitionId.as(() => DataFixture_1.PartitionIdFixture.create().value);
    command.deadline.faker((faker) => faker.date.future().getTime().toString());
    command.nounce.faker((faker) => faker.number.int({ min: 0, max: 1000 }).toString());
    command.signature.faker((faker) => faker.string.hexadecimal({ length: 64, prefix: "0x" }));
});
exports.TransferRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.amount.faker((faker) => faker.number.int({ min: 1, max: 10 }).toString());
});
exports.TransferAndLockRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.amount.faker((faker) => faker.number.int({ min: 1, max: 10 }).toString());
    request.expirationDate.faker((faker) => faker.date.future().getTime().toString());
});
exports.ForceTransferRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.sourceId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.amount.faker((faker) => faker.number.int({ min: 1, max: 10 }).toString());
});
exports.ForcedTransferRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.sourceId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.amount.faker((faker) => faker.number.int({ min: 1, max: 10 }).toString());
});
exports.FocedTransferCommandFixture = (0, config_1.createFixture)((command) => {
    command.sourceId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.amount.faker((faker) => faker.number.int({ min: 1, max: 10 }).toString());
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
