"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.registry = void 0;
exports.generateRegistry = generateRegistry;
const proto_signing_1 = require("@cosmjs/proto-signing");
const stargate_1 = require("@cosmjs/stargate");
const tx_1 = require("@ritbit/v4-proto/src/codegen/ritbit/accountplus/tx");
const tx_2 = require("@ritbit/v4-proto/src/codegen/ritbit/affiliates/tx");
const tx_3 = require("@ritbit/v4-proto/src/codegen/ritbit/clob/tx");
const tx_4 = require("@ritbit/v4-proto/src/codegen/ritbit/delaymsg/tx");
const tx_5 = require("@ritbit/v4-proto/src/codegen/ritbit/listing/tx");
const tx_6 = require("@ritbit/v4-proto/src/codegen/ritbit/perpetuals/tx");
const tx_7 = require("@ritbit/v4-proto/src/codegen/ritbit/prices/tx");
const transfer_1 = require("@ritbit/v4-proto/src/codegen/ritbit/sending/transfer");
const tx_8 = require("@ritbit/v4-proto/src/codegen/ritbit/sending/tx");
const tx_9 = require("@ritbit/v4-proto/src/codegen/ritbit/vault/tx");
const tx_10 = require("@ritbit/v4-proto/src/codegen/ritbit/bridge/tx");
const constants_1 = require("../constants");
exports.registry = [];
function generateRegistry() {
    return new proto_signing_1.Registry([
        // clob
        [constants_1.TYPE_URL_MSG_PLACE_ORDER, tx_3.MsgPlaceOrder],
        [constants_1.TYPE_URL_MSG_CANCEL_ORDER, tx_3.MsgCancelOrder],
        [constants_1.TYPE_URL_BATCH_CANCEL, tx_3.MsgBatchCancel],
        [constants_1.TYPE_URL_MSG_CREATE_CLOB_PAIR, tx_3.MsgCreateClobPair],
        [constants_1.TYPE_URL_MSG_UPDATE_CLOB_PAIR, tx_3.MsgUpdateClobPair],
        // delaymsg
        [constants_1.TYPE_URL_MSG_DELAY_MESSAGE, tx_4.MsgDelayMessage],
        // listing
        [constants_1.TYPE_URL_MSG_CREATE_MARKET_PERMISSIONLESS, tx_5.MsgCreateMarketPermissionless],
        // perpetuals
        [constants_1.TYPE_URL_MSG_CREATE_PERPETUAL, tx_6.MsgCreatePerpetual],
        // prices
        [constants_1.TYPE_URL_MSG_CREATE_ORACLE_MARKET, tx_7.MsgCreateOracleMarket],
        // vaults
        [constants_1.TYPE_URL_MSG_DEPOSIT_TO_MEGAVAULT, tx_9.MsgDepositToMegavault],
        [constants_1.TYPE_URL_MSG_WITHDRAW_FROM_MEGAVAULT, tx_9.MsgWithdrawFromMegavault],
        // sending
        [constants_1.TYPE_URL_MSG_CREATE_TRANSFER, tx_8.MsgCreateTransfer],
        [constants_1.TYPE_URL_MSG_WITHDRAW_FROM_SUBACCOUNT, transfer_1.MsgWithdrawFromSubaccount],
        [constants_1.TYPE_URL_MSG_DEPOSIT_TO_SUBACCOUNT, transfer_1.MsgDepositToSubaccount],
        // affiliates
        [constants_1.TYPE_URL_MSG_REGISTER_AFFILIATE, tx_2.MsgRegisterAffiliate],
        // authentication
        [constants_1.TYPE_URL_MSG_ADD_AUTHENTICATOR, tx_1.MsgAddAuthenticator],
        [constants_1.TYPE_URL_MSG_REMOVE_AUTHENTICATOR, tx_1.MsgRemoveAuthenticator],
        // bridge
        [constants_1.TYPE_URL_MSG_WITHDRAWAL, tx_10.MsgWithdrawal],
        // default types
        ...stargate_1.defaultRegistryTypes,
    ]);
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0cnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvY2xpZW50cy9saWIvcmVnaXN0cnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBZ0RBLDRDQTRDQztBQTVGRCx5REFBZ0U7QUFDaEUsK0NBQXdEO0FBQ3hELDJFQUFpSDtBQUNqSCwwRUFBeUY7QUFDekYsb0VBTXFEO0FBQ3JELHdFQUFrRjtBQUNsRix1RUFBK0Y7QUFDL0YsMEVBQXVGO0FBQ3ZGLHNFQUFzRjtBQUN0RixtRkFHOEQ7QUFDOUQsdUVBQW1GO0FBQ25GLHFFQUdz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