Skip to content

Commit

Permalink
fix: Add Create Market Permissionless path to registry (#270)
Browse files Browse the repository at this point in the history
I missed adding type-url to registry on implementation
  • Loading branch information
jaredvu authored Oct 16, 2024
1 parent ab9372e commit 41027e6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion v4-client-js/__native__/__ios__/v4-native-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand All @@ -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
Expand All @@ -208145,7 +208148,7 @@ function generateRegistry() {
]);
}
exports.generateRegistry = generateRegistry;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0cnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY2xpZW50cy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ZCLEVBQUUsdUJBQW1DLENBQUM7UUFFcEUsU0FBUztRQUNULENBQUMsNkNBQWlDLEVBQUUsMEJBQXNDLENBQUM7UUFFM0UsU0FBUztRQUNULENBQUMsNkNBQWlDLEVBQUUsMEJBQXNDLENBQUM7UUFDM0UsQ0FBQyxnREFBb0MsRUFBRSw2QkFBeUMsQ0FBQztRQUVqRixVQUFVO1FBQ1YsQ0FBQyx3Q0FBNEIsRUFBRSxzQkFBa0MsQ0FBQztRQUNsRSxDQUFDLGlEQUFxQyxFQUFFLG9DQUEwQyxDQUFDO1FBQ25GLENBQUMsOENBQWtDLEVBQUUsaUNBQXVDLENBQUM7UUFFN0UsYUFBYTtRQUNiLENBQUMsMkNBQStCLEVBQUUseUJBQXFDLENBQUM7UUFFeEUsZ0JBQWdCO1FBQ2hCLEdBQUcsK0JBQW9CO0tBQ3hCLENBQUMsQ0FBQztBQUNMLENBQUM7QUFwQ0QsNENBb0NDIn0=

/***/ }),

Expand Down
4 changes: 2 additions & 2 deletions v4-client-js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v4-client-js/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
5 changes: 5 additions & 0 deletions v4-client-js/src/clients/lib/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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]> = [];
Expand All @@ -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],

Expand Down

0 comments on commit 41027e6

Please sign in to comment.