"use strict";
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProtectPartitionsCommandFixture = exports.GetNounceRequestFixture = exports.GetNounceQueryFixture = exports.PartitionsProtectedRequestFixture = exports.ProtectedRedeemFromByPartitionRequestFixture = exports.ProtectedTransferFromByPartitionRequestFixture = void 0;
const DataFixture_1 = require("../shared/DataFixture");
const config_1 = require("../config");
exports.ProtectedTransferFromByPartitionRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.partitionId.as(() => DataFixture_1.PartitionIdFixture.create().value);
    request.sourceId.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.deadline.faker((faker) => faker.date.future().getTime().toString());
    request.nounce.faker((faker) => faker.number.int({ min: 0, max: 1000 }).toString());
    request.signature.faker((faker) => faker.string.hexadecimal({ length: 64, prefix: "0x" }));
});
exports.ProtectedRedeemFromByPartitionRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.partitionId.as(() => DataFixture_1.PartitionIdFixture.create().value);
    request.sourceId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.amount.faker((faker) => faker.number.int({ min: 1, max: 10 }).toString());
    request.deadline.faker((faker) => faker.date.future().getTime().toString());
    request.nounce.faker((faker) => faker.number.int({ min: 0, max: 1000 }).toString());
    request.signature.faker((faker) => faker.string.hexadecimal({ length: 64, prefix: "0x" }));
});
exports.PartitionsProtectedRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.GetNounceQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.GetNounceRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.ProtectPartitionsCommandFixture = (0, config_1.createFixture)((command) => {
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
