"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MNEMONIC_FROM_SIGNATURE_RESULT = exports.PUBLIC_KEY_FROM_SIGNATURE_RESULT = exports.PRIVATE_KEY_FROM_SIGNATURE_RESULT = exports.ENTROPY_FROM_SIGNATURE_RESULT = exports.SIGNATURE_RESULT = exports.defaultTransfer = exports.defaultBatchCancelOrder = exports.defaultCancelOrder = exports.orderRouterOrder = exports.builderOrder = exports.twapOrder = exports.defaultOrder = exports.defaultTransactionOptions = exports.TEST_HOST = exports.TEST_CHAIN_ID = exports.TEST_RECIPIENT_ADDRESS = exports.TEST_ADDRESS = void 0;
const long_1 = __importDefault(require("long"));
const utils_1 = require("../../src/lib/utils");
const types_1 = require("../../src/types");
exports.TEST_ADDRESS = 'dydx1vl9h9nkmau4e9v7tm30wekespu3d2qhd9404wa';
exports.TEST_RECIPIENT_ADDRESS = 'dydx1slanxj8x9ntk9knwa6cvfv2tzlsq5gk3dshml0';
exports.TEST_CHAIN_ID = 'ritbit';
exports.TEST_HOST = 'http://localhost:26657';
exports.defaultTransactionOptions = {
    accountNumber: 1,
    sequence: 10,
    chainId: exports.TEST_CHAIN_ID,
};
// PlaceOrder variables
exports.defaultOrder = {
    clientId: 0,
    orderFlags: types_1.OrderFlags.SHORT_TERM,
    clobPairId: types_1.ClobPairId.PERPETUAL_PAIR_BTC_USD,
    side: types_1.Order_Side.SIDE_BUY,
    quantums: long_1.default.fromNumber(10),
    subticks: long_1.default.fromNumber(100),
    goodTilBlock: 10000,
    timeInForce: types_1.Order_TimeInForce.TIME_IN_FORCE_UNSPECIFIED,
    reduceOnly: false,
    clientMetadata: 0,
    // New optional fields
    twapParameters: undefined,
    builderCodeParameters: undefined,
    orderRouterAddress: undefined,
};
// PlaceOrder with TWAP parameters for testing
exports.twapOrder = {
    ...exports.defaultOrder,
    clientId: 1,
    twapParameters: {
        duration: 3600, // 1 hour
        interval: 300, // 5 minutes
        priceTolerance: 50000, // 5% in ppm
    },
};
// PlaceOrder with builder code parameters for testing
exports.builderOrder = {
    ...exports.defaultOrder,
    clientId: 2,
    builderCodeParameters: {
        builderAddress: 'dydx1test_builder_address',
        feePpm: 1000, // 0.1% fee
    }
};
exports.orderRouterOrder = {
    ...exports.defaultOrder,
    clientId: 2,
    orderRouterAddress: 'dydx1test_router_address',
};
// CancelOrder variables
exports.defaultCancelOrder = {
    clientId: (0, utils_1.generateRandomClientId)(),
    orderFlags: types_1.OrderFlags.SHORT_TERM,
    clobPairId: types_1.ClobPairId.PERPETUAL_PAIR_BTC_USD,
    goodTilBlock: 4250,
};
// BatchCancelOrder variables
exports.defaultBatchCancelOrder = {
    shortTermOrders: [
        {
            clobPairId: types_1.ClobPairId.PERPETUAL_PAIR_BTC_USD,
            clientIds: [(0, utils_1.generateRandomClientId)(), (0, utils_1.generateRandomClientId)()],
        },
    ],
    goodTilBlock: 4250,
};
// Transfer variables
exports.defaultTransfer = {
    sender: {
        owner: exports.TEST_ADDRESS,
        number: 0,
    },
    recipient: {
        owner: 'dydx14063jves4u9zhm7eja5ltf3t8zspxd92qnk23t',
        number: 0,
    },
    assetId: 0,
    amount: long_1.default.fromNumber(1000),
};
// ------ Onboarding Constants ------ //
// Base Signature Result
exports.SIGNATURE_RESULT = '0xf2006b4fc0afa08a6048b40d3d67e437ac2e20e6bacf3f947f9b33aa2756d204287f5fb2155bec067d879a25d7ddac791826cf28e2786919065e19848020f1531b';
// Derived privateKeyBytes from Base Signature Result
exports.ENTROPY_FROM_SIGNATURE_RESULT = new Uint8Array([
    247, 183, 226, 106, 76, 125, 241, 35, 149, 75, 103, 180, 165, 243, 80, 128, 34, 20, 238, 201, 131,
    180, 61, 76, 223, 179, 37, 211, 144, 197, 171, 251,
]);
// Derived HDKey privateKey from Base Signature Result
exports.PRIVATE_KEY_FROM_SIGNATURE_RESULT = new Uint8Array([
    14, 92, 178, 198, 64, 65, 27, 153, 11, 45, 118, 194, 71, 194, 10, 140, 145, 40, 203, 107, 231,
    191, 138, 220, 168, 104, 28, 69, 58, 193, 203, 213,
]);
// Derived HDKey publicKey from Base Signature Result
exports.PUBLIC_KEY_FROM_SIGNATURE_RESULT = new Uint8Array([
    2, 204, 94, 45, 7, 83, 196, 55, 195, 107, 10, 35, 169, 32, 24, 37, 193, 196, 34, 210, 84, 26, 107,
    89, 119, 240, 211, 63, 187, 34, 162, 197, 36,
]);
// Derived HDKey mnemonic from Base Signature Result
exports.MNEMONIC_FROM_SIGNATURE_RESULT = 'waste sample once ocean tenant mushroom festival hollow regret convince stage able candy jazz champion isolate diary group under entry decorate glare quiz job';
//# sourceMappingURL=data:application/json;base64, 