import { Registry } from '@cosmjs/proto-signing';
import { defaultRegistryTypes } from '@cosmjs/stargate';
import { MsgAddAuthenticator, MsgRemoveAuthenticator } from '@ritbit/v4-proto/src/codegen/ritbit/accountplus/tx';
import { MsgRegisterAffiliate } from '@ritbit/v4-proto/src/codegen/ritbit/affiliates/tx';
import { MsgPlaceOrder, MsgCancelOrder, MsgCreateClobPair, MsgUpdateClobPair, MsgBatchCancel, } from '@ritbit/v4-proto/src/codegen/ritbit/clob/tx';
import { MsgDelayMessage } from '@ritbit/v4-proto/src/codegen/ritbit/delaymsg/tx';
import { MsgCreateMarketPermissionless } from '@ritbit/v4-proto/src/codegen/ritbit/listing/tx';
import { MsgCreatePerpetual } from '@ritbit/v4-proto/src/codegen/ritbit/perpetuals/tx';
import { MsgCreateOracleMarket } from '@ritbit/v4-proto/src/codegen/ritbit/prices/tx';
import { MsgWithdrawFromSubaccount, MsgDepositToSubaccount, } from '@ritbit/v4-proto/src/codegen/ritbit/sending/transfer';
import { MsgCreateTransfer } from '@ritbit/v4-proto/src/codegen/ritbit/sending/tx';
import { MsgDepositToMegavault, MsgWithdrawFromMegavault, } from '@ritbit/v4-proto/src/codegen/ritbit/vault/tx';
import { MsgWithdrawal } from '@ritbit/v4-proto/src/codegen/ritbit/bridge/tx';
import { TYPE_URL_MSG_PLACE_ORDER, TYPE_URL_MSG_CANCEL_ORDER, TYPE_URL_MSG_CREATE_CLOB_PAIR, TYPE_URL_MSG_UPDATE_CLOB_PAIR, TYPE_URL_MSG_DELAY_MESSAGE, TYPE_URL_MSG_CREATE_PERPETUAL, TYPE_URL_MSG_CREATE_ORACLE_MARKET, TYPE_URL_MSG_CREATE_TRANSFER, TYPE_URL_MSG_WITHDRAW_FROM_SUBACCOUNT, TYPE_URL_MSG_DEPOSIT_TO_SUBACCOUNT, TYPE_URL_BATCH_CANCEL, TYPE_URL_MSG_DEPOSIT_TO_MEGAVAULT, TYPE_URL_MSG_WITHDRAW_FROM_MEGAVAULT, TYPE_URL_MSG_REGISTER_AFFILIATE, TYPE_URL_MSG_CREATE_MARKET_PERMISSIONLESS, TYPE_URL_MSG_ADD_AUTHENTICATOR, TYPE_URL_MSG_REMOVE_AUTHENTICATOR, TYPE_URL_MSG_WITHDRAWAL, } from '../constants';
export const registry = [];
export function generateRegistry() {
    return new Registry([
        // clob
        [TYPE_URL_MSG_PLACE_ORDER, MsgPlaceOrder],
        [TYPE_URL_MSG_CANCEL_ORDER, MsgCancelOrder],
        [TYPE_URL_BATCH_CANCEL, MsgBatchCancel],
        [TYPE_URL_MSG_CREATE_CLOB_PAIR, MsgCreateClobPair],
        [TYPE_URL_MSG_UPDATE_CLOB_PAIR, MsgUpdateClobPair],
        // delaymsg
        [TYPE_URL_MSG_DELAY_MESSAGE, MsgDelayMessage],
        // listing
        [TYPE_URL_MSG_CREATE_MARKET_PERMISSIONLESS, MsgCreateMarketPermissionless],
        // perpetuals
        [TYPE_URL_MSG_CREATE_PERPETUAL, MsgCreatePerpetual],
        // prices
        [TYPE_URL_MSG_CREATE_ORACLE_MARKET, MsgCreateOracleMarket],
        // vaults
        [TYPE_URL_MSG_DEPOSIT_TO_MEGAVAULT, MsgDepositToMegavault],
        [TYPE_URL_MSG_WITHDRAW_FROM_MEGAVAULT, MsgWithdrawFromMegavault],
        // sending
        [TYPE_URL_MSG_CREATE_TRANSFER, MsgCreateTransfer],
        [TYPE_URL_MSG_WITHDRAW_FROM_SUBACCOUNT, MsgWithdrawFromSubaccount],
        [TYPE_URL_MSG_DEPOSIT_TO_SUBACCOUNT, MsgDepositToSubaccount],
        // affiliates
        [TYPE_URL_MSG_REGISTER_AFFILIATE, MsgRegisterAffiliate],
        // authentication
        [TYPE_URL_MSG_ADD_AUTHENTICATOR, MsgAddAuthenticator],
        [TYPE_URL_MSG_REMOVE_AUTHENTICATOR, MsgRemoveAuthenticator],
        // bridge
        [TYPE_URL_MSG_WITHDRAWAL, MsgWithdrawal],
        // default types
        ...defaultRegistryTypes,
    ]);
}
//# sourceMappingURL=data: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