From 41027e6dfa7265e1dc99cf72f803c681c8c60c22 Mon Sep 17 00:00:00 2001 From: Jared Vu Date: Wed, 16 Oct 2024 09:34:58 -0700 Subject: [PATCH] fix: Add Create Market Permissionless path to registry (#270) I missed adding type-url to registry on implementation --- v4-client-js/__native__/__ios__/v4-native-client.js | 5 ++++- v4-client-js/package-lock.json | 4 ++-- v4-client-js/package.json | 2 +- v4-client-js/src/clients/lib/registry.ts | 5 +++++ 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/v4-client-js/__native__/__ios__/v4-native-client.js b/v4-client-js/__native__/__ios__/v4-native-client.js index 38aba4be..6741dfbf 100644 --- a/v4-client-js/__native__/__ios__/v4-native-client.js +++ b/v4-client-js/__native__/__ios__/v4-native-client.js @@ -208116,6 +208116,7 @@ const transfer_1 = __webpack_require__(/*! @dydxprotocol/v4-proto/src/codegen/dy const tx_6 = __webpack_require__(/*! @dydxprotocol/v4-proto/src/codegen/dydxprotocol/sending/tx */ "./node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/sending/tx.ts"); const tx_7 = __webpack_require__(/*! @dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/tx */ "./node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/tx.ts"); const constants_1 = __webpack_require__(/*! ../constants */ "./src/clients/constants.ts"); +const types_1 = __webpack_require__(/*! ../types */ "./src/clients/types.ts"); exports.registry = []; function generateRegistry() { return new proto_signing_1.Registry([ @@ -208127,6 +208128,8 @@ function generateRegistry() { [constants_1.TYPE_URL_MSG_UPDATE_CLOB_PAIR, tx_2.MsgUpdateClobPair], // delaymsg [constants_1.TYPE_URL_MSG_DELAY_MESSAGE, tx_3.MsgDelayMessage], + // listing + [constants_1.TYPE_URL_MSG_CREATE_MARKET_PERMISSIONLESS, types_1.MsgCreateMarketPermissionless], // perpetuals [constants_1.TYPE_URL_MSG_CREATE_PERPETUAL, tx_4.MsgCreatePerpetual], // prices @@ -208145,7 +208148,7 @@ function generateRegist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tDLENBQUM7UUFFbkUsV0FBVztRQUNYLENBQUMsc0NBQTBCLEVBQUUsb0JBQWdDLENBQUM7UUFFOUQsVUFBVTtRQUNWLENBQUMscURBQXlDLEVBQUUscUNBQThDLENBQUM7UUFFM0YsYUFBYTtRQUNiLENBQUMseUNBQTZCLEVBQUUsdUJBQW1DLENBQUM7UUFFcEUsU0FBUztRQUNULENBQUMsNkNBQWlDLEVBQUUsMEJBQXNDLENBQUM7UUFFM0UsU0FBUztRQUNULENBQUMsNkNBQWlDLEVBQUUsMEJBQXNDLENBQUM7UUFDM0UsQ0FBQyxnREFBb0MsRUFBRSw2QkFBeUMsQ0FBQztRQUVqRixVQUFVO1FBQ1YsQ0FBQyx3Q0FBNEIsRUFBRSxzQkFBa0MsQ0FBQztRQUNsRSxDQUFDLGlEQUFxQyxFQUFFLG9DQUEwQyxDQUFDO1FBQ25GLENBQUMsOENBQWtDLEVBQUUsaUNBQXVDLENBQUM7UUFFN0UsYUFBYTtRQUNiLENBQUMsMkNBQStCLEVBQUUseUJBQXFDLENBQUM7UUFFeEUsZ0JBQWdCO1FBQ2hCLEdBQUcsK0JBQW9CO0tBQ3hCLENBQUMsQ0FBQztBQUNMLENBQUM7QUFwQ0QsNENBb0NDIn0= /***/ }), diff --git a/v4-client-js/package-lock.json b/v4-client-js/package-lock.json index 002d1d9e..3315bf9d 100644 --- a/v4-client-js/package-lock.json +++ b/v4-client-js/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dydxprotocol/v4-client-js", - "version": "1.3.9", + "version": "1.3.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dydxprotocol/v4-client-js", - "version": "1.3.9", + "version": "1.3.10", "license": "AGPL-3.0", "dependencies": { "@cosmjs/amino": "^0.32.1", diff --git a/v4-client-js/package.json b/v4-client-js/package.json index da6dcc30..bc4156d2 100644 --- a/v4-client-js/package.json +++ b/v4-client-js/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-client-js", - "version": "1.3.9", + "version": "1.3.10", "description": "General client library for the new dYdX system (v4 decentralized)", "main": "build/src/index.js", "scripts": { diff --git a/v4-client-js/src/clients/lib/registry.ts b/v4-client-js/src/clients/lib/registry.ts index 0b7924dd..8a93b870 100644 --- a/v4-client-js/src/clients/lib/registry.ts +++ b/v4-client-js/src/clients/lib/registry.ts @@ -9,6 +9,7 @@ import { MsgBatchCancel, } from '@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/tx'; import { MsgDelayMessage } from '@dydxprotocol/v4-proto/src/codegen/dydxprotocol/delaymsg/tx'; +import { MsgCreateMarketPermissionless } from '@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/tx'; import { MsgCreatePerpetual } from '@dydxprotocol/v4-proto/src/codegen/dydxprotocol/perpetuals/tx'; import { MsgCreateOracleMarket } from '@dydxprotocol/v4-proto/src/codegen/dydxprotocol/prices/tx'; import { @@ -36,6 +37,7 @@ import { TYPE_URL_MSG_DEPOSIT_TO_MEGAVAULT, TYPE_URL_MSG_WITHDRAW_FROM_MEGAVAULT, TYPE_URL_MSG_REGISTER_AFFILIATE, + TYPE_URL_MSG_CREATE_MARKET_PERMISSIONLESS, } from '../constants'; export const registry: ReadonlyArray<[string, GeneratedType]> = []; @@ -51,6 +53,9 @@ export function generateRegistry(): Registry { // delaymsg [TYPE_URL_MSG_DELAY_MESSAGE, MsgDelayMessage as GeneratedType], + // listing + [TYPE_URL_MSG_CREATE_MARKET_PERMISSIONLESS, MsgCreateMarketPermissionless as GeneratedType], + // perpetuals [TYPE_URL_MSG_CREATE_PERPETUAL, MsgCreatePerpetual as GeneratedType],