ault-sdk-ts 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +104 -1
  2. package/dist/agent/sign-and-broadcast.d.ts +1 -1
  3. package/dist/agent/tx/perpetual.d.ts +10 -0
  4. package/dist/client.d.ts +2 -0
  5. package/dist/core/clob-msgs.d.ts +12 -3
  6. package/dist/core/manifest-types.d.ts +8 -0
  7. package/dist/core/network.d.ts +11 -7
  8. package/dist/core/perpetual-gas.d.ts +12 -0
  9. package/dist/core/perpetual-msgs.d.ts +60 -0
  10. package/dist/eip712/msg-encoders.generated.d.ts +8 -0
  11. package/dist/eip712/msg.generated.d.ts +76 -6
  12. package/dist/eip712/registry.d.ts +11 -0
  13. package/dist/eip712/types.d.ts +5 -0
  14. package/dist/high-level/tx/perpetual.d.ts +3 -0
  15. package/dist/high-level/types.d.ts +83 -4
  16. package/dist/index.cjs +25837 -10411
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.ts +3 -0
  19. package/dist/index.js +25760 -10598
  20. package/dist/index.js.map +1 -1
  21. package/dist/perp/decimal.d.ts +39 -0
  22. package/dist/perp/funding.d.ts +18 -0
  23. package/dist/perp/index.d.ts +5 -0
  24. package/dist/perp/margin.d.ts +33 -0
  25. package/dist/perp/orders.d.ts +27 -0
  26. package/dist/perp/position.d.ts +29 -0
  27. package/dist/proto/gen/ault/accountx/v1/query.d.ts +10 -1
  28. package/dist/proto/gen/ault/authority/v1/authority.d.ts +2 -0
  29. package/dist/proto/gen/ault/clob/v1/genesis.d.ts +7 -0
  30. package/dist/proto/gen/ault/clob/v1/twap.d.ts +11 -8
  31. package/dist/proto/gen/ault/clob/v1/tx.d.ts +11 -1
  32. package/dist/proto/gen/ault/common/v1/system.d.ts +31 -0
  33. package/dist/proto/gen/ault/lending/v1/genesis.d.ts +34 -0
  34. package/dist/proto/gen/ault/lending/v1/lending.d.ts +152 -0
  35. package/dist/proto/gen/ault/lending/v1/params.d.ts +42 -0
  36. package/dist/proto/gen/ault/lending/v1/query.d.ts +157 -0
  37. package/dist/proto/gen/ault/lending/v1/tx.d.ts +236 -0
  38. package/dist/proto/gen/ault/margin/v1/genesis.d.ts +102 -0
  39. package/dist/proto/gen/ault/margin/v1/margin.d.ts +130 -0
  40. package/dist/proto/gen/ault/margin/v1/params.d.ts +31 -0
  41. package/dist/proto/gen/ault/margin/v1/query.d.ts +127 -0
  42. package/dist/proto/gen/ault/margin/v1/tx.d.ts +181 -0
  43. package/dist/proto/gen/ault/market/v1/market.d.ts +9 -0
  44. package/dist/proto/gen/ault/market/v1/tx.d.ts +16 -0
  45. package/dist/proto/gen/ault/oracle/v1/genesis.d.ts +69 -0
  46. package/dist/proto/gen/ault/oracle/v1/oracle.d.ts +154 -0
  47. package/dist/proto/gen/ault/oracle/v1/query.d.ts +93 -0
  48. package/dist/proto/gen/ault/oracle/v1/tx.d.ts +151 -0
  49. package/dist/proto/gen/ault/perpetual/v1/genesis.d.ts +119 -0
  50. package/dist/proto/gen/ault/perpetual/v1/order.d.ts +46 -0
  51. package/dist/proto/gen/ault/perpetual/v1/params.d.ts +30 -0
  52. package/dist/proto/gen/ault/perpetual/v1/perpetual.d.ts +192 -0
  53. package/dist/proto/gen/ault/perpetual/v1/query.d.ts +150 -0
  54. package/dist/proto/gen/ault/perpetual/v1/tx.d.ts +97 -0
  55. package/dist/proto/gen/ault/systemtx/v1/genesis.d.ts +37 -0
  56. package/dist/proto/gen/ault/vault/v1/genesis.d.ts +90 -0
  57. package/dist/proto/gen/ault/vault/v1/params.d.ts +55 -0
  58. package/dist/proto/gen/ault/vault/v1/query.d.ts +152 -0
  59. package/dist/proto/gen/ault/vault/v1/tx.d.ts +194 -0
  60. package/dist/proto/gen/ault/vault/v1/vault.d.ts +227 -0
  61. package/dist/rest/dex-types.generated.d.ts +2045 -27
  62. package/dist/rest/dex.d.ts +18 -1
  63. package/dist/rest/dex.generated.d.ts +5097 -1276
  64. package/dist/rest/perpetual.d.ts +46 -0
  65. package/dist/rest/tokenregistry.d.ts +7 -0
  66. package/dist/utils/cosmos-dec.d.ts +1 -0
  67. package/package.json +1 -1
package/README.md CHANGED
@@ -340,8 +340,110 @@ const tokenPair = await client.tokenregistry.getTokenPair(
340
340
  "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B",
341
341
  );
342
342
  const tokenPairs = await client.tokenregistry.getTokenPairs();
343
+
344
+ // Perpetual queries (chain v3)
345
+ const collateralDenom = await client.perpetual.getCollateralDenom();
346
+ const crossAccount = await client.perpetual.getAccount(client.address);
347
+ const risk = await client.perpetual.getAccountRisk(client.address);
348
+ const position = await client.perpetual.getPosition(client.address, marketId, true);
349
+ const funding = await client.perpetual.getFunding(marketId);
350
+ const prices = await client.perpetual.getPrices(marketId);
351
+ const impactPrices = await client.perpetual.getImpactPrices(marketId);
352
+ ```
353
+
354
+ ## Perpetual markets
355
+
356
+ Perpetual markets (chain v3) trade on the same order book as spot. An order
357
+ on a perpetual market is a regular `placeLimitOrder`; the only perp-specific
358
+ flag is `reduceOnly`. The chain accepts limit orders only, so a "market
359
+ order" is an immediate-or-cancel limit priced through the book:
360
+
361
+ ```typescript
362
+ import { iocLimitPrice } from "ault-sdk-ts";
363
+
364
+ const book = await client._lowLevel.rest.dex.getPerpOrderbook(marketIdHex, { depth: 5 });
365
+ const { price } = iocLimitPrice({
366
+ side: "buy",
367
+ bestAsk: book.data.asks[0]?.[0],
368
+ bestBid: book.data.bids[0]?.[0],
369
+ slippage: "0.005",
370
+ priceDecimals: 2,
371
+ });
372
+ await client.placeLimitOrder({
373
+ marketId,
374
+ isBuy: true,
375
+ price,
376
+ quantity: "1",
377
+ deadline: new Date(Date.now() + 60_000),
378
+ timeInForce: "ioc",
379
+ reduceOnly: false,
380
+ });
381
+ ```
382
+
383
+ Collateral lives in a per-owner cross account in the chain's single
384
+ collateral denom; isolated markets get their own derived account. Margin mode
385
+ and leverage are set per market and cannot change while a position or resting
386
+ order exists:
387
+
388
+ ```typescript
389
+ await client.depositPerpCollateral({ amount: "1000000000" }); // base units
390
+ await client.setMarginConfig({ marketId, leverage: 10, cross: true });
391
+ await client.modifyPositionMargin({ marketId, marginDelta: "-500000" }); // isolated only
392
+ await client.withdrawPerpCollateral({ amount: "250000000" });
343
393
  ```
344
394
 
395
+ A perpetual market carries the config x/perpetual trades it under: margin
396
+ tiers, funding caps, the mark price bound and the oracle feed ids. The chain
397
+ requires that config on `MsgCreateMarket`, rejects it on a spot market, and
398
+ never lets a market change type afterwards. So `createMarket` throws on a
399
+ perpetual market type, and `createPerpetualMarket` takes the config. The
400
+ deployer can replace the whole config later with `setPerpetualMarketConfig`.
401
+ Decimal fields take the same readable strings as every other SDK input
402
+ ("0.0001"); packing the config scales them to the chain's 18-place integers.
403
+
404
+ ```typescript
405
+ const config = {
406
+ isolatedOnly: false,
407
+ fundingInterestRate: "0.0001", // per eight-hour interval
408
+ fundingInterestAdjustmentCap: "0.0005",
409
+ fundingHourlyCap: "0.005",
410
+ oracleMaxAgeSeconds: 120,
411
+ marginTiers: [
412
+ { notionalCap: "100000000000000000000000", maxLeverage: 20 },
413
+ { notionalCap: "0", maxLeverage: 10 }, // "0" = unbounded last tier
414
+ ],
415
+ markPriceMaxChangeRate: "0.05",
416
+ maxOpenInterestNotional: "0", // "0" = uncapped
417
+ maxPositionNotional: "0",
418
+ impactNotional: "10000",
419
+ maxImpactLevels: 64,
420
+ indexFeedId: "BTC-USD",
421
+ externalPerpetualFeedId: "BTC-PERP-USD",
422
+ };
423
+
424
+ await client.createPerpetualMarket({
425
+ baseDenom: "ubtc",
426
+ quoteDenom: "uusdc", // the module's collateral denom
427
+ tickPrecision: 6,
428
+ config,
429
+ });
430
+
431
+ await client.setPerpetualMarketConfig({
432
+ marketId,
433
+ config: { ...config, oracleMaxAgeSeconds: 60 },
434
+ });
435
+ ```
436
+
437
+ To build the `config` Any by hand, for a raw `msg.market.createMarket` or an
438
+ agent tx, use `packPerpetualMarketConfig`. It applies the same scaling.
439
+
440
+ The same four collateral and margin methods exist on `client.asAgent` after `attachAgent`. Read
441
+ models (markets, tickers with mark and funding, positions, fills, ledger) come
442
+ from the DEX API's `/api/v1/perp` endpoints, `listPerpMarkets` through
443
+ `listPerpCloseouts` on `createDexApi`. `src/perp` ports the chain's margin-tier,
444
+ funding and position math (`maintenanceMargin`, `initialMargin`, `equity`,
445
+ `fundingRate`, ...) with the chain's rounding for client-side previews.
446
+
345
447
  ## DEX API
346
448
 
347
449
  The SDK includes a client for the Ault DEX API — a REST API for market data, order books, trades, balances, and UDF charting. This is a separate service from the on-chain Cosmos REST endpoints.
@@ -815,7 +917,8 @@ await client.cancelOrders({ orderIds: [cloid] });
815
917
  const found = await client.findOrderByCloid(client.address, cloid);
816
918
  if (found.source !== "none") console.log(found.source, found.order);
817
919
 
818
- // Create a market
920
+ // Create a spot market. A perpetual market takes its config at creation, so
921
+ // createMarket throws on MARKET_TYPE_PERPETUAL — see createPerpetualMarket.
819
922
  await client.createMarket({
820
923
  marketType: MarketType.MARKET_TYPE_SPOT,
821
924
  baseDenom: "uatom",
@@ -3,7 +3,7 @@ import type { AnyEip712Msg } from "../eip712/builder";
3
3
  import { type FetchFn, type FetchWithRetryOptions } from "../core/http";
4
4
  import type { NetworkConfig } from "../core/network";
5
5
  export declare const AGENT_DEFAULTS: {
6
- readonly GAS_LIMIT: "147600";
6
+ readonly GAS_LIMIT: "186000";
7
7
  readonly TIMEOUT_SECONDS: 300;
8
8
  readonly EXTENSION_TYPE_URL: "/ault.agent.v1.ExtensionOptionsAgentTx";
9
9
  readonly PUBKEY_TYPE_URL: "/cosmos.evm.crypto.v1.ethsecp256k1.PubKey";
@@ -0,0 +1,10 @@
1
+ import type { GAS_CONSTANTS } from "../../core/network";
2
+ import type { AgentPerpetualTxApi } from "../../high-level/types";
3
+ import type { AgentTxExecutor } from "../tx-executor";
4
+ export interface AgentPerpetualTxContext {
5
+ masterAddress: string;
6
+ exec: AgentTxExecutor;
7
+ /** Current gas constants (base overlaid with manifest overrides); read per call. */
8
+ getGas: () => typeof GAS_CONSTANTS;
9
+ }
10
+ export declare function createAgentPerpetualTxApi({ masterAddress, exec, getGas, }: AgentPerpetualTxContext): AgentPerpetualTxApi;
package/dist/client.d.ts CHANGED
@@ -8,6 +8,7 @@ import { type ClobApi } from "./rest/clob";
8
8
  import { type LicenseApi } from "./rest/license";
9
9
  import { type MarketApi } from "./rest/market";
10
10
  import { type MinerApi } from "./rest/miner";
11
+ import { type PerpetualApi } from "./rest/perpetual";
11
12
  import { type RateLimitApi } from "./rest/ratelimit";
12
13
  import { type RewardApi } from "./rest/reward";
13
14
  import { type StakingApi } from "./rest/staking";
@@ -39,6 +40,7 @@ export interface AultClient {
39
40
  license: LicenseApi;
40
41
  market: MarketApi;
41
42
  miner: MinerApi;
43
+ perpetual: PerpetualApi;
42
44
  ratelimit: RateLimitApi;
43
45
  reward: RewardApi;
44
46
  staking: StakingApi;
@@ -9,7 +9,14 @@ export declare function buildLimitOrderMsg(sender: string, params: {
9
9
  builderAddress?: string;
10
10
  builderFeeRate?: string;
11
11
  cloid?: Uint8Array;
12
- }): import("../index.js").Eip712Msg<Omit<import("../proto/gen/ault/clob/v1/tx").MsgPlaceLimitOrder, "builderFeeRate" | "cloid" | "postOnly" | "timeInForce" | "builderAddress"> & Partial<Pick<import("../proto/gen/ault/clob/v1/tx").MsgPlaceLimitOrder, "builderFeeRate" | "cloid" | "postOnly" | "timeInForce" | "builderAddress">>, "/ault.clob.v1.MsgPlaceLimitOrder">;
12
+ /**
13
+ * Perpetual markets only. The chain requires the `PerpetualOrderOptions`
14
+ * Any on every perp order, so pass `false` for a plain perp order and
15
+ * `true` to only shrink the position. Leave it undefined on spot markets,
16
+ * which reject the options.
17
+ */
18
+ reduceOnly?: boolean;
19
+ }): import("../index.js").Eip712Msg<Omit<import("../proto/gen/ault/clob/v1/tx").MsgPlaceLimitOrder, "builderFeeRate" | "cloid" | "postOnly" | "timeInForce" | "options" | "builderAddress"> & Partial<Pick<import("../proto/gen/ault/clob/v1/tx").MsgPlaceLimitOrder, "builderFeeRate" | "cloid" | "postOnly" | "timeInForce" | "options" | "builderAddress">>, "/ault.clob.v1.MsgPlaceLimitOrder">;
13
20
  /**
14
21
  * TWAP order (chain v2.1.0+). `deadline` is the absolute end of the execution
15
22
  * window; the chain runs one slice every 30s until then. `totalDeposit` must
@@ -35,7 +42,7 @@ export declare function buildMarketOrderMsg(sender: string, params: {
35
42
  builderAddress?: string;
36
43
  builderFeeRate?: string;
37
44
  cloid?: Uint8Array;
38
- }): import("../index.js").Eip712Msg<Omit<import("../proto/gen/ault/clob/v1/tx").MsgPlaceMarketOrder, "builderFeeRate" | "worstPrice" | "priceTolerance" | "cloid" | "builderAddress"> & Partial<Pick<import("../proto/gen/ault/clob/v1/tx").MsgPlaceMarketOrder, "builderFeeRate" | "worstPrice" | "priceTolerance" | "cloid" | "builderAddress">>, "/ault.clob.v1.MsgPlaceMarketOrder">;
45
+ }): import("../index.js").Eip712Msg<Omit<import("../proto/gen/ault/clob/v1/tx").MsgPlaceMarketOrder, "builderFeeRate" | "worstPrice" | "priceTolerance" | "cloid" | "options" | "builderAddress"> & Partial<Pick<import("../proto/gen/ault/clob/v1/tx").MsgPlaceMarketOrder, "builderFeeRate" | "worstPrice" | "priceTolerance" | "cloid" | "options" | "builderAddress">>, "/ault.clob.v1.MsgPlaceMarketOrder">;
39
46
  /** Each `orderIds` entry may be an 8-byte cloid or a 16-byte chain order_id. */
40
47
  export declare function buildCancelOrdersMsg(sender: string, orderIds: Uint8Array[]): import("../index.js").Eip712Msg<import("../proto/gen/ault/clob/v1/tx").MsgCancelOrders, "/ault.clob.v1.MsgCancelOrders">;
41
48
  /**
@@ -73,4 +80,6 @@ export declare function buildScaleOrderMsg(sender: string, params: {
73
80
  postOnly?: boolean;
74
81
  builderAddress?: string;
75
82
  builderFeeRate?: string;
76
- }): import("../index.js").Eip712Msg<Omit<import("../proto/gen/ault/clob/v1/tx").MsgPlaceScaleOrder, "builderFeeRate" | "postOnly" | "builderAddress"> & Partial<Pick<import("../proto/gen/ault/clob/v1/tx").MsgPlaceScaleOrder, "builderFeeRate" | "postOnly" | "builderAddress">>, "/ault.clob.v1.MsgPlaceScaleOrder">;
83
+ /** Perpetual markets only; see `buildLimitOrderMsg`. */
84
+ reduceOnly?: boolean;
85
+ }): import("../index.js").Eip712Msg<Omit<import("../proto/gen/ault/clob/v1/tx").MsgPlaceScaleOrder, "builderFeeRate" | "postOnly" | "options" | "builderAddress"> & Partial<Pick<import("../proto/gen/ault/clob/v1/tx").MsgPlaceScaleOrder, "builderFeeRate" | "postOnly" | "options" | "builderAddress">>, "/ault.clob.v1.MsgPlaceScaleOrder">;
@@ -30,6 +30,10 @@ export declare const ManifestGasSchema: z.ZodObject<{
30
30
  CANCEL_ORDER_PER_ID: z.ZodOptional<z.ZodNumber>;
31
31
  MODIFY_ORDER_PER_ID: z.ZodOptional<z.ZodNumber>;
32
32
  OPEN_ACCOUNT: z.ZodOptional<z.ZodNumber>;
33
+ PERP_DEPOSIT: z.ZodOptional<z.ZodNumber>;
34
+ PERP_WITHDRAW: z.ZodOptional<z.ZodNumber>;
35
+ PERP_SET_MARGIN_CONFIG: z.ZodOptional<z.ZodNumber>;
36
+ PERP_MODIFY_POSITION_MARGIN: z.ZodOptional<z.ZodNumber>;
33
37
  DELEGATE: z.ZodOptional<z.ZodNumber>;
34
38
  UNDELEGATE: z.ZodOptional<z.ZodNumber>;
35
39
  BEGIN_REDELEGATE: z.ZodOptional<z.ZodNumber>;
@@ -84,6 +88,10 @@ export declare const ManifestSchema: z.ZodObject<{
84
88
  CANCEL_ORDER_PER_ID: z.ZodOptional<z.ZodNumber>;
85
89
  MODIFY_ORDER_PER_ID: z.ZodOptional<z.ZodNumber>;
86
90
  OPEN_ACCOUNT: z.ZodOptional<z.ZodNumber>;
91
+ PERP_DEPOSIT: z.ZodOptional<z.ZodNumber>;
92
+ PERP_WITHDRAW: z.ZodOptional<z.ZodNumber>;
93
+ PERP_SET_MARGIN_CONFIG: z.ZodOptional<z.ZodNumber>;
94
+ PERP_MODIFY_POSITION_MARGIN: z.ZodOptional<z.ZodNumber>;
87
95
  DELEGATE: z.ZodOptional<z.ZodNumber>;
88
96
  UNDELEGATE: z.ZodOptional<z.ZodNumber>;
89
97
  BEGIN_REDELEGATE: z.ZodOptional<z.ZodNumber>;
@@ -53,15 +53,19 @@ export declare const GAS_CONSTANTS: {
53
53
  readonly REVOKE_BUILDER: 57000;
54
54
  readonly SET_REFERRAL_CODE: 76000;
55
55
  readonly SET_REFERRAL: 80000;
56
- readonly LIMIT_ORDER: 133000;
57
- readonly MARKET_ORDER: 124000;
58
- readonly TWAP_ORDER: 135000;
59
- readonly SCALE_ORDER_BASE: 122000;
60
- readonly SCALE_ORDER_PER_SUB: 13000;
56
+ readonly LIMIT_ORDER: 155000;
57
+ readonly MARKET_ORDER: 145000;
58
+ readonly TWAP_ORDER: 118000;
59
+ readonly SCALE_ORDER_BASE: 130000;
60
+ readonly SCALE_ORDER_PER_SUB: 23000;
61
61
  readonly CANCEL_ORDER_BASE: 52000;
62
- readonly CANCEL_ORDER_PER_ID: 24000;
63
- readonly MODIFY_ORDER_PER_ID: 130000;
62
+ readonly CANCEL_ORDER_PER_ID: 29000;
63
+ readonly MODIFY_ORDER_PER_ID: 155000;
64
64
  readonly OPEN_ACCOUNT: 96000;
65
+ readonly PERP_DEPOSIT: 250000;
66
+ readonly PERP_WITHDRAW: 250000;
67
+ readonly PERP_SET_MARGIN_CONFIG: 250000;
68
+ readonly PERP_MODIFY_POSITION_MARGIN: 250000;
65
69
  readonly DELEGATE: 220000;
66
70
  readonly UNDELEGATE: 260000;
67
71
  readonly BEGIN_REDELEGATE: 400000;
@@ -0,0 +1,12 @@
1
+ import { type GAS_CONSTANTS } from "./network";
2
+ /**
3
+ * Fee-free gas for the x/perpetual collateral and margin messages, shared by
4
+ * the wallet (EIP-712) and agent factories. Each takes an explicit `gas`
5
+ * snapshot so a manifest hot-swap is honored on the next call.
6
+ */
7
+ type Gas = typeof GAS_CONSTANTS;
8
+ export declare function perpDepositGas(gas: Gas): string;
9
+ export declare function perpWithdrawGas(gas: Gas): string;
10
+ export declare function setMarginConfigGas(gas: Gas): string;
11
+ export declare function modifyPositionMarginGas(gas: Gas): string;
12
+ export {};
@@ -0,0 +1,60 @@
1
+ import { PerpetualMarketConfig } from "../proto/gen/ault/perpetual/v1/perpetual";
2
+ import type { Any } from "../proto/gen/google/protobuf/any";
3
+ export type { PerpetualMarketConfig };
4
+ export declare const PERPETUAL_ORDER_OPTIONS_TYPE_URL = "/ault.perpetual.v1.PerpetualOrderOptions";
5
+ export declare const PERPETUAL_MARKET_CONFIG_TYPE_URL = "/ault.perpetual.v1.PerpetualMarketConfig";
6
+ /**
7
+ * Packs perpetual order options into the `options` Any that the clob
8
+ * place-order messages carry. The chain routes the order to x/perpetual by
9
+ * market type; these options only tune how that module treats it.
10
+ */
11
+ export declare function packPerpetualOrderOptions(options: {
12
+ reduceOnly: boolean;
13
+ }): Any;
14
+ /**
15
+ * Packs the `config` Any a perpetual market carries on `MsgCreateMarket` and
16
+ * `MsgSetMarketConfig`. x/market requires it for `MARKET_TYPE_PERPETUAL` and
17
+ * rejects it on a spot market, and the market type is immutable, so a perp
18
+ * market must be created with its config rather than configured afterwards.
19
+ *
20
+ * The decimal fields (funding rate and caps, mark price bound, notional caps
21
+ * and the tiers' caps) take the human-readable cosmos.Dec strings every other
22
+ * SDK input uses ("0.0001"); they are scaled to the chain's 18-place integer
23
+ * wire form here, the same conversion the msg encoders apply to top-level
24
+ * messages.
25
+ */
26
+ export declare function packPerpetualMarketConfig(config: PerpetualMarketConfig): Any;
27
+ /**
28
+ * Moves collateral from the sender's bank balance into their perpetual cross
29
+ * account. `amount` is an integer string in the collateral denom's base units.
30
+ */
31
+ export declare function buildPerpDepositMsg(sender: string, params: {
32
+ amount: string;
33
+ }): import("../index.js").Eip712Msg<import("../proto/gen/ault/perpetual/v1/tx").MsgDeposit, "/ault.perpetual.v1.MsgDeposit">;
34
+ /**
35
+ * Moves collateral from the perpetual cross account back to the bank. The
36
+ * chain rejects a withdrawal that would leave the account below its transfer
37
+ * margin (initial margin plus the notional floor, plus resting-order margin).
38
+ */
39
+ export declare function buildPerpWithdrawMsg(sender: string, params: {
40
+ amount: string;
41
+ }): import("../index.js").Eip712Msg<import("../proto/gen/ault/perpetual/v1/tx").MsgWithdraw, "/ault.perpetual.v1.MsgWithdraw">;
42
+ /**
43
+ * Sets the sender's margin mode and leverage for one market. The mode cannot
44
+ * change while a position or resting order exists in that market; leverage
45
+ * applies to existing and future positions.
46
+ */
47
+ export declare function buildSetMarginConfigMsg(sender: string, params: {
48
+ marketId: Uint8Array;
49
+ leverage: number;
50
+ cross: boolean;
51
+ }): import("../index.js").Eip712Msg<import("../proto/gen/ault/perpetual/v1/tx").MsgSetMarginConfig, "/ault.perpetual.v1.MsgSetMarginConfig">;
52
+ /**
53
+ * Moves collateral between the sender's cross account and an isolated
54
+ * position. A positive `marginDelta` adds collateral to the isolated position;
55
+ * a negative one returns it to the cross account. Integer string, base units.
56
+ */
57
+ export declare function buildModifyPositionMarginMsg(sender: string, params: {
58
+ marketId: Uint8Array;
59
+ marginDelta: string;
60
+ }): import("../index.js").Eip712Msg<import("../proto/gen/ault/perpetual/v1/tx").MsgModifyPositionMargin, "/ault.perpetual.v1.MsgModifyPositionMargin">;
@@ -1 +1,9 @@
1
+ export interface AnyValueCodec {
2
+ /** Decodes packed proto bytes into the message object (proto field names). */
3
+ decode: (bytes: Uint8Array) => Record<string, unknown>;
4
+ /** Encodes a decoded message object back into packed proto bytes. */
5
+ encode: (value: unknown) => Uint8Array;
6
+ }
7
+ /** Codecs for every message that can be packed into an interface Any, by type URL. */
8
+ export declare const ANY_VALUE_CODECS: Record<string, AnyValueCodec>;
1
9
  export declare const MSG_ENCODERS: Record<string, (value: unknown) => Uint8Array>;
@@ -3,13 +3,18 @@ import type { MsgOpenAccount, MsgUpdateFeeTiers, MsgUpdateParams as MsgUpdatePar
3
3
  import type { MsgApproveAgent, MsgRevokeAgent, MsgUpdateParams as MsgUpdateParamsAultAgentV1 } from "../proto/gen/ault/agent/v1/tx";
4
4
  import type { MsgGrantRole, MsgRevokeRole } from "../proto/gen/ault/authority/v1/tx";
5
5
  import type { ModifyOrder, MsgCancelOrders, MsgModifyOrders, MsgPlaceLimitOrder, MsgPlaceMarketOrder, MsgPlaceScaleOrder, MsgPlaceTwapOrder, MsgUpdateParams as MsgUpdateParamsAultClobV1 } from "../proto/gen/ault/clob/v1/tx";
6
+ import type { MsgBorrow, MsgCancelAssetUpdates, MsgCreatePool, MsgDisablePoolActions, MsgEnablePoolActions, MsgFundInsuranceFund, MsgLiquidate as MsgLiquidateAultLendingV1, MsgRegisterAssets, MsgRepay, MsgSettleDeficit, MsgSupply, MsgSupplyCollateral, MsgUpdateAssets, MsgUpdateAssetsRisk, MsgUpdateParams as MsgUpdateParamsAultLendingV1, MsgUpdatePool, MsgUpdatePoolOwner, MsgWithdraw as MsgWithdrawAultLendingV1, MsgWithdrawCollateral, MsgWithdrawInsuranceFund, MsgWithdrawProtocolRevenue } from "../proto/gen/ault/lending/v1/tx";
6
7
  import type { MsgApproveMember, MsgBatchApproveMember, MsgBatchMintLicense, MsgBatchRevokeMember, MsgBurnLicense, MsgMintLicense, MsgRevokeLicense, MsgRevokeMember, MsgSetKYCApprovers, MsgSetMinters, MsgSetTokenURI, MsgTransferLicense, MsgUpdateParams as MsgUpdateParamsAultLicenseV1 } from "../proto/gen/ault/license/v1/tx";
7
- import type { MsgCreateMarket, MsgHaltAllMarkets, MsgHaltMarkets, MsgResumeAllMarkets, MsgResumeMarkets, MsgUpdateMarket, MsgUpdateMarketDeployer, MsgUpdateParams as MsgUpdateParamsAultMarketV1 } from "../proto/gen/ault/market/v1/tx";
8
+ import type { MsgBorrowMargin, MsgDepositMargin, MsgDisableMarginMarket, MsgEnableMarginMarket, MsgRepayMargin, MsgSetMarginLendingPool, MsgUpdateParams as MsgUpdateParamsAultMarginV1, MsgWithdrawMargin } from "../proto/gen/ault/margin/v1/tx";
9
+ import type { MsgCreateMarket, MsgHaltAllMarkets, MsgHaltMarkets, MsgResumeAllMarkets, MsgResumeMarkets, MsgSetMarketConfig, MsgUpdateMarket, MsgUpdateMarketDeployer, MsgUpdateParams as MsgUpdateParamsAultMarketV1 } from "../proto/gen/ault/market/v1/tx";
8
10
  import type { MsgBatchSubmitWork, MsgCancelMiningDelegation, MsgDelegateMining, MsgRedelegateMining, MsgRegisterOperator, MsgSetOwnerVrfKey, MsgSubmitWork, MsgUnregisterOperator, MsgUpdateOperatorInfo, MsgUpdateParams as MsgUpdateParamsAultMinerV1, WorkSubmission } from "../proto/gen/ault/miner/v1/tx";
11
+ import type { MsgInjectOraclePrices, MsgRemoveFeed, MsgSetFeed, MsgSetFeedMapping, MsgSetMarketMapping, MsgSetTrustedSigner, MsgUpdateParams as MsgUpdateParamsAultOracleV1 } from "../proto/gen/ault/oracle/v1/tx";
12
+ import type { MsgDeposit as MsgDepositAultPerpetualV1, MsgLiquidate as MsgLiquidateAultPerpetualV1, MsgModifyPositionMargin, MsgSetMarginConfig, MsgUpdateParams as MsgUpdateParamsAultPerpetualV1, MsgWithdraw as MsgWithdrawAultPerpetualV1 } from "../proto/gen/ault/perpetual/v1/tx";
9
13
  import type { MsgUpdateParams as MsgUpdateParamsAultRatelimitV1 } from "../proto/gen/ault/ratelimit/v1/tx";
10
14
  import type { MsgApproveBuilder, MsgRevokeBuilder, MsgSetDeployerShare, MsgSetReferral, MsgSetReferralCode, MsgUpdateEligibleReferrers, MsgUpdateFeeTierDiscounts, MsgUpdateParams as MsgUpdateParamsAultRewardV1, MsgUpdateRefereeDiscountRate, MsgUpdateTradingTierBenefits } from "../proto/gen/ault/reward/v1/tx";
11
15
  import type { TransferLimitConfig } from "../proto/gen/ault/tokenregistry/v1/tokenregistry";
12
16
  import type { MsgDisableTokenPair, MsgDisableTransfers, MsgEnableTokenPair, MsgEnableTransfers, MsgRegisterTokenPair, MsgRemoveTransferLimit, MsgSetTransferLimit } from "../proto/gen/ault/tokenregistry/v1/tx";
17
+ import type { MsgCancelVaultConfigUpdate, MsgCreateVault, MsgDeposit as MsgDepositAultVaultV1, MsgReallocate, MsgRedeem, MsgSetOracleFeeds, MsgSetVaultStatus, MsgUpdateParams as MsgUpdateParamsAultVaultV1, MsgUpdateVaultConfig, MsgUpdateVaultManager, MsgVaultTransfer } from "../proto/gen/ault/vault/v1/tx";
13
18
  import type { MsgWithdrawDelegatorReward } from "../proto/gen/cosmos/distribution/v1beta1/tx";
14
19
  import type { MsgBeginRedelegate, MsgDelegate, MsgUndelegate } from "../proto/gen/cosmos/staking/v1beta1/tx";
15
20
  type ModifyOrderInput = Omit<ModifyOrder, "newPrice" | "newQuantity"> & Partial<Pick<ModifyOrder, "newPrice" | "newQuantity">>;
@@ -19,16 +24,17 @@ type MsgApproveAgentInput = Omit<MsgApproveAgent, "expiresAt" | "name"> & Partia
19
24
  type MsgBatchSubmitWorkInput = Omit<MsgBatchSubmitWork, "submissions"> & {
20
25
  submissions: WorkSubmissionInput[];
21
26
  };
22
- type MsgCreateMarketInput = Omit<MsgCreateMarket, "makerFeeRate" | "takerFeeRate"> & Partial<Pick<MsgCreateMarket, "makerFeeRate" | "takerFeeRate">>;
27
+ type MsgCreateMarketInput = Omit<MsgCreateMarket, "config" | "makerFeeRate" | "takerFeeRate"> & Partial<Pick<MsgCreateMarket, "config" | "makerFeeRate" | "takerFeeRate">>;
23
28
  type MsgModifyOrdersInput = Omit<MsgModifyOrders, "orders"> & {
24
29
  orders: ModifyOrderInput[];
25
30
  };
26
- type MsgPlaceLimitOrderInput = Omit<MsgPlaceLimitOrder, "builderAddress" | "builderFeeRate" | "cloid" | "postOnly" | "timeInForce"> & Partial<Pick<MsgPlaceLimitOrder, "builderAddress" | "builderFeeRate" | "cloid" | "postOnly" | "timeInForce">>;
27
- type MsgPlaceMarketOrderInput = Omit<MsgPlaceMarketOrder, "builderAddress" | "builderFeeRate" | "cloid" | "priceTolerance" | "worstPrice"> & Partial<Pick<MsgPlaceMarketOrder, "builderAddress" | "builderFeeRate" | "cloid" | "priceTolerance" | "worstPrice">>;
28
- type MsgPlaceScaleOrderInput = Omit<MsgPlaceScaleOrder, "builderAddress" | "builderFeeRate" | "postOnly"> & Partial<Pick<MsgPlaceScaleOrder, "builderAddress" | "builderFeeRate" | "postOnly">>;
31
+ type MsgPlaceLimitOrderInput = Omit<MsgPlaceLimitOrder, "builderAddress" | "builderFeeRate" | "cloid" | "options" | "postOnly" | "timeInForce"> & Partial<Pick<MsgPlaceLimitOrder, "builderAddress" | "builderFeeRate" | "cloid" | "options" | "postOnly" | "timeInForce">>;
32
+ type MsgPlaceMarketOrderInput = Omit<MsgPlaceMarketOrder, "builderAddress" | "builderFeeRate" | "cloid" | "options" | "priceTolerance" | "worstPrice"> & Partial<Pick<MsgPlaceMarketOrder, "builderAddress" | "builderFeeRate" | "cloid" | "options" | "priceTolerance" | "worstPrice">>;
33
+ type MsgPlaceScaleOrderInput = Omit<MsgPlaceScaleOrder, "builderAddress" | "builderFeeRate" | "options" | "postOnly"> & Partial<Pick<MsgPlaceScaleOrder, "builderAddress" | "builderFeeRate" | "options" | "postOnly">>;
29
34
  type MsgPlaceTwapOrderInput = Omit<MsgPlaceTwapOrder, "builderAddress" | "builderFeeRate" | "cloid" | "priceTolerance" | "worstPrice"> & Partial<Pick<MsgPlaceTwapOrder, "builderAddress" | "builderFeeRate" | "cloid" | "priceTolerance" | "worstPrice">>;
30
35
  type MsgRegisterOperatorInput = Omit<MsgRegisterOperator, "commissionRecipient"> & Partial<Pick<MsgRegisterOperator, "commissionRecipient">>;
31
36
  type MsgRegisterTokenPairInput = Omit<MsgRegisterTokenPair, "transferLimit"> & Partial<Pick<MsgRegisterTokenPair, "transferLimit">>;
37
+ type MsgSetMarketConfigInput = Omit<MsgSetMarketConfig, "config"> & Partial<Pick<MsgSetMarketConfig, "config">>;
32
38
  type MsgSetTransferLimitInput = Omit<MsgSetTransferLimit, "transferLimit"> & {
33
39
  transferLimit: TransferLimitConfigInput;
34
40
  };
@@ -63,6 +69,29 @@ export declare const msg: {
63
69
  readonly distribution: {
64
70
  readonly withdrawDelegatorReward: (value: MsgWithdrawDelegatorReward) => Eip712Msg<MsgWithdrawDelegatorReward, "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward">;
65
71
  };
72
+ readonly lending: {
73
+ readonly borrow: (value: MsgBorrow) => Eip712Msg<MsgBorrow, "/ault.lending.v1.MsgBorrow">;
74
+ readonly cancelAssetUpdates: (value: MsgCancelAssetUpdates) => Eip712Msg<MsgCancelAssetUpdates, "/ault.lending.v1.MsgCancelAssetUpdates">;
75
+ readonly createPool: (value: MsgCreatePool) => Eip712Msg<MsgCreatePool, "/ault.lending.v1.MsgCreatePool">;
76
+ readonly disablePoolActions: (value: MsgDisablePoolActions) => Eip712Msg<MsgDisablePoolActions, "/ault.lending.v1.MsgDisablePoolActions">;
77
+ readonly enablePoolActions: (value: MsgEnablePoolActions) => Eip712Msg<MsgEnablePoolActions, "/ault.lending.v1.MsgEnablePoolActions">;
78
+ readonly fundInsuranceFund: (value: MsgFundInsuranceFund) => Eip712Msg<MsgFundInsuranceFund, "/ault.lending.v1.MsgFundInsuranceFund">;
79
+ readonly liquidate: (value: MsgLiquidateAultLendingV1) => Eip712Msg<MsgLiquidateAultLendingV1, "/ault.lending.v1.MsgLiquidate">;
80
+ readonly registerAssets: (value: MsgRegisterAssets) => Eip712Msg<MsgRegisterAssets, "/ault.lending.v1.MsgRegisterAssets">;
81
+ readonly repay: (value: MsgRepay) => Eip712Msg<MsgRepay, "/ault.lending.v1.MsgRepay">;
82
+ readonly settleDeficit: (value: MsgSettleDeficit) => Eip712Msg<MsgSettleDeficit, "/ault.lending.v1.MsgSettleDeficit">;
83
+ readonly supply: (value: MsgSupply) => Eip712Msg<MsgSupply, "/ault.lending.v1.MsgSupply">;
84
+ readonly supplyCollateral: (value: MsgSupplyCollateral) => Eip712Msg<MsgSupplyCollateral, "/ault.lending.v1.MsgSupplyCollateral">;
85
+ readonly updateAssets: (value: MsgUpdateAssets) => Eip712Msg<MsgUpdateAssets, "/ault.lending.v1.MsgUpdateAssets">;
86
+ readonly updateAssetsRisk: (value: MsgUpdateAssetsRisk) => Eip712Msg<MsgUpdateAssetsRisk, "/ault.lending.v1.MsgUpdateAssetsRisk">;
87
+ readonly updateParams: (value: MsgUpdateParamsAultLendingV1) => Eip712Msg<MsgUpdateParamsAultLendingV1, "/ault.lending.v1.MsgUpdateParams">;
88
+ readonly updatePool: (value: MsgUpdatePool) => Eip712Msg<MsgUpdatePool, "/ault.lending.v1.MsgUpdatePool">;
89
+ readonly updatePoolOwner: (value: MsgUpdatePoolOwner) => Eip712Msg<MsgUpdatePoolOwner, "/ault.lending.v1.MsgUpdatePoolOwner">;
90
+ readonly withdraw: (value: MsgWithdrawAultLendingV1) => Eip712Msg<MsgWithdrawAultLendingV1, "/ault.lending.v1.MsgWithdraw">;
91
+ readonly withdrawCollateral: (value: MsgWithdrawCollateral) => Eip712Msg<MsgWithdrawCollateral, "/ault.lending.v1.MsgWithdrawCollateral">;
92
+ readonly withdrawInsuranceFund: (value: MsgWithdrawInsuranceFund) => Eip712Msg<MsgWithdrawInsuranceFund, "/ault.lending.v1.MsgWithdrawInsuranceFund">;
93
+ readonly withdrawProtocolRevenue: (value: MsgWithdrawProtocolRevenue) => Eip712Msg<MsgWithdrawProtocolRevenue, "/ault.lending.v1.MsgWithdrawProtocolRevenue">;
94
+ };
66
95
  readonly license: {
67
96
  readonly approveMember: (value: MsgApproveMember) => Eip712Msg<MsgApproveMember, "/ault.license.v1.MsgApproveMember">;
68
97
  readonly batchApproveMember: (value: MsgBatchApproveMember) => Eip712Msg<MsgBatchApproveMember, "/ault.license.v1.MsgBatchApproveMember">;
@@ -78,12 +107,23 @@ export declare const msg: {
78
107
  readonly transferLicense: (value: MsgTransferLicenseInput) => Eip712Msg<MsgTransferLicenseInput, "/ault.license.v1.MsgTransferLicense">;
79
108
  readonly updateParams: (value: MsgUpdateParamsAultLicenseV1) => Eip712Msg<MsgUpdateParamsAultLicenseV1, "/ault.license.v1.MsgUpdateParams">;
80
109
  };
110
+ readonly margin: {
111
+ readonly borrowMargin: (value: MsgBorrowMargin) => Eip712Msg<MsgBorrowMargin, "/ault.margin.v1.MsgBorrowMargin">;
112
+ readonly depositMargin: (value: MsgDepositMargin) => Eip712Msg<MsgDepositMargin, "/ault.margin.v1.MsgDepositMargin">;
113
+ readonly disableMarginMarket: (value: MsgDisableMarginMarket) => Eip712Msg<MsgDisableMarginMarket, "/ault.margin.v1.MsgDisableMarginMarket">;
114
+ readonly enableMarginMarket: (value: MsgEnableMarginMarket) => Eip712Msg<MsgEnableMarginMarket, "/ault.margin.v1.MsgEnableMarginMarket">;
115
+ readonly repayMargin: (value: MsgRepayMargin) => Eip712Msg<MsgRepayMargin, "/ault.margin.v1.MsgRepayMargin">;
116
+ readonly setMarginLendingPool: (value: MsgSetMarginLendingPool) => Eip712Msg<MsgSetMarginLendingPool, "/ault.margin.v1.MsgSetMarginLendingPool">;
117
+ readonly updateParams: (value: MsgUpdateParamsAultMarginV1) => Eip712Msg<MsgUpdateParamsAultMarginV1, "/ault.margin.v1.MsgUpdateParams">;
118
+ readonly withdrawMargin: (value: MsgWithdrawMargin) => Eip712Msg<MsgWithdrawMargin, "/ault.margin.v1.MsgWithdrawMargin">;
119
+ };
81
120
  readonly market: {
82
121
  readonly createMarket: (value: MsgCreateMarketInput) => Eip712Msg<MsgCreateMarketInput, "/ault.market.v1.MsgCreateMarket">;
83
122
  readonly haltAllMarkets: (value: MsgHaltAllMarkets) => Eip712Msg<MsgHaltAllMarkets, "/ault.market.v1.MsgHaltAllMarkets">;
84
123
  readonly haltMarkets: (value: MsgHaltMarkets) => Eip712Msg<MsgHaltMarkets, "/ault.market.v1.MsgHaltMarkets">;
85
124
  readonly resumeAllMarkets: (value: MsgResumeAllMarkets) => Eip712Msg<MsgResumeAllMarkets, "/ault.market.v1.MsgResumeAllMarkets">;
86
125
  readonly resumeMarkets: (value: MsgResumeMarkets) => Eip712Msg<MsgResumeMarkets, "/ault.market.v1.MsgResumeMarkets">;
126
+ readonly setMarketConfig: (value: MsgSetMarketConfigInput) => Eip712Msg<MsgSetMarketConfigInput, "/ault.market.v1.MsgSetMarketConfig">;
87
127
  readonly updateMarket: (value: MsgUpdateMarket) => Eip712Msg<MsgUpdateMarket, "/ault.market.v1.MsgUpdateMarket">;
88
128
  readonly updateMarketDeployer: (value: MsgUpdateMarketDeployer) => Eip712Msg<MsgUpdateMarketDeployer, "/ault.market.v1.MsgUpdateMarketDeployer">;
89
129
  readonly updateParams: (value: MsgUpdateParamsAultMarketV1) => Eip712Msg<MsgUpdateParamsAultMarketV1, "/ault.market.v1.MsgUpdateParams">;
@@ -100,6 +140,23 @@ export declare const msg: {
100
140
  readonly updateOperatorInfo: (value: MsgUpdateOperatorInfoInput) => Eip712Msg<MsgUpdateOperatorInfoInput, "/ault.miner.v1.MsgUpdateOperatorInfo">;
101
141
  readonly updateParams: (value: MsgUpdateParamsAultMinerV1) => Eip712Msg<MsgUpdateParamsAultMinerV1, "/ault.miner.v1.MsgUpdateParams">;
102
142
  };
143
+ readonly oracle: {
144
+ readonly injectOraclePrices: (value: MsgInjectOraclePrices) => Eip712Msg<MsgInjectOraclePrices, "/ault.oracle.v1.MsgInjectOraclePrices">;
145
+ readonly removeFeed: (value: MsgRemoveFeed) => Eip712Msg<MsgRemoveFeed, "/ault.oracle.v1.MsgRemoveFeed">;
146
+ readonly setFeed: (value: MsgSetFeed) => Eip712Msg<MsgSetFeed, "/ault.oracle.v1.MsgSetFeed">;
147
+ readonly setFeedMapping: (value: MsgSetFeedMapping) => Eip712Msg<MsgSetFeedMapping, "/ault.oracle.v1.MsgSetFeedMapping">;
148
+ readonly setMarketMapping: (value: MsgSetMarketMapping) => Eip712Msg<MsgSetMarketMapping, "/ault.oracle.v1.MsgSetMarketMapping">;
149
+ readonly setTrustedSigner: (value: MsgSetTrustedSigner) => Eip712Msg<MsgSetTrustedSigner, "/ault.oracle.v1.MsgSetTrustedSigner">;
150
+ readonly updateParams: (value: MsgUpdateParamsAultOracleV1) => Eip712Msg<MsgUpdateParamsAultOracleV1, "/ault.oracle.v1.MsgUpdateParams">;
151
+ };
152
+ readonly perpetual: {
153
+ readonly deposit: (value: MsgDepositAultPerpetualV1) => Eip712Msg<MsgDepositAultPerpetualV1, "/ault.perpetual.v1.MsgDeposit">;
154
+ readonly liquidate: (value: MsgLiquidateAultPerpetualV1) => Eip712Msg<MsgLiquidateAultPerpetualV1, "/ault.perpetual.v1.MsgLiquidate">;
155
+ readonly modifyPositionMargin: (value: MsgModifyPositionMargin) => Eip712Msg<MsgModifyPositionMargin, "/ault.perpetual.v1.MsgModifyPositionMargin">;
156
+ readonly setMarginConfig: (value: MsgSetMarginConfig) => Eip712Msg<MsgSetMarginConfig, "/ault.perpetual.v1.MsgSetMarginConfig">;
157
+ readonly updateParams: (value: MsgUpdateParamsAultPerpetualV1) => Eip712Msg<MsgUpdateParamsAultPerpetualV1, "/ault.perpetual.v1.MsgUpdateParams">;
158
+ readonly withdraw: (value: MsgWithdrawAultPerpetualV1) => Eip712Msg<MsgWithdrawAultPerpetualV1, "/ault.perpetual.v1.MsgWithdraw">;
159
+ };
103
160
  readonly ratelimit: {
104
161
  readonly updateParams: (value: MsgUpdateParamsAultRatelimitV1) => Eip712Msg<MsgUpdateParamsAultRatelimitV1, "/ault.ratelimit.v1.MsgUpdateParams">;
105
162
  };
@@ -129,6 +186,19 @@ export declare const msg: {
129
186
  readonly removeTransferLimit: (value: MsgRemoveTransferLimit) => Eip712Msg<MsgRemoveTransferLimit, "/ault.tokenregistry.v1.MsgRemoveTransferLimit">;
130
187
  readonly setTransferLimit: (value: MsgSetTransferLimitInput) => Eip712Msg<MsgSetTransferLimitInput, "/ault.tokenregistry.v1.MsgSetTransferLimit">;
131
188
  };
189
+ readonly vault: {
190
+ readonly cancelVaultConfigUpdate: (value: MsgCancelVaultConfigUpdate) => Eip712Msg<MsgCancelVaultConfigUpdate, "/ault.vault.v1.MsgCancelVaultConfigUpdate">;
191
+ readonly createVault: (value: MsgCreateVault) => Eip712Msg<MsgCreateVault, "/ault.vault.v1.MsgCreateVault">;
192
+ readonly deposit: (value: MsgDepositAultVaultV1) => Eip712Msg<MsgDepositAultVaultV1, "/ault.vault.v1.MsgDeposit">;
193
+ readonly reallocate: (value: MsgReallocate) => Eip712Msg<MsgReallocate, "/ault.vault.v1.MsgReallocate">;
194
+ readonly redeem: (value: MsgRedeem) => Eip712Msg<MsgRedeem, "/ault.vault.v1.MsgRedeem">;
195
+ readonly setOracleFeeds: (value: MsgSetOracleFeeds) => Eip712Msg<MsgSetOracleFeeds, "/ault.vault.v1.MsgSetOracleFeeds">;
196
+ readonly setVaultStatus: (value: MsgSetVaultStatus) => Eip712Msg<MsgSetVaultStatus, "/ault.vault.v1.MsgSetVaultStatus">;
197
+ readonly updateParams: (value: MsgUpdateParamsAultVaultV1) => Eip712Msg<MsgUpdateParamsAultVaultV1, "/ault.vault.v1.MsgUpdateParams">;
198
+ readonly updateVaultConfig: (value: MsgUpdateVaultConfig) => Eip712Msg<MsgUpdateVaultConfig, "/ault.vault.v1.MsgUpdateVaultConfig">;
199
+ readonly updateVaultManager: (value: MsgUpdateVaultManager) => Eip712Msg<MsgUpdateVaultManager, "/ault.vault.v1.MsgUpdateVaultManager">;
200
+ readonly vaultTransfer: (value: MsgVaultTransfer) => Eip712Msg<MsgVaultTransfer, "/ault.vault.v1.MsgVaultTransfer">;
201
+ };
132
202
  };
133
- export type AnyEip712Msg = Eip712Msg<MsgOpenAccount, "/ault.accountx.v1.MsgOpenAccount"> | Eip712Msg<MsgUpdateFeeTiers, "/ault.accountx.v1.MsgUpdateFeeTiers"> | Eip712Msg<MsgUpdateParamsAultAccountxV1, "/ault.accountx.v1.MsgUpdateParams"> | Eip712Msg<MsgUpdateTradingTiers, "/ault.accountx.v1.MsgUpdateTradingTiers"> | Eip712Msg<MsgApproveAgentInput, "/ault.agent.v1.MsgApproveAgent"> | Eip712Msg<MsgRevokeAgent, "/ault.agent.v1.MsgRevokeAgent"> | Eip712Msg<MsgUpdateParamsAultAgentV1, "/ault.agent.v1.MsgUpdateParams"> | Eip712Msg<MsgGrantRole, "/ault.authority.v1.MsgGrantRole"> | Eip712Msg<MsgRevokeRole, "/ault.authority.v1.MsgRevokeRole"> | Eip712Msg<MsgCancelOrders, "/ault.clob.v1.MsgCancelOrders"> | Eip712Msg<MsgModifyOrdersInput, "/ault.clob.v1.MsgModifyOrders"> | Eip712Msg<MsgPlaceLimitOrderInput, "/ault.clob.v1.MsgPlaceLimitOrder"> | Eip712Msg<MsgPlaceMarketOrderInput, "/ault.clob.v1.MsgPlaceMarketOrder"> | Eip712Msg<MsgPlaceScaleOrderInput, "/ault.clob.v1.MsgPlaceScaleOrder"> | Eip712Msg<MsgPlaceTwapOrderInput, "/ault.clob.v1.MsgPlaceTwapOrder"> | Eip712Msg<MsgUpdateParamsAultClobV1, "/ault.clob.v1.MsgUpdateParams"> | Eip712Msg<MsgApproveMember, "/ault.license.v1.MsgApproveMember"> | Eip712Msg<MsgBatchApproveMember, "/ault.license.v1.MsgBatchApproveMember"> | Eip712Msg<MsgBatchMintLicense, "/ault.license.v1.MsgBatchMintLicense"> | Eip712Msg<MsgBatchRevokeMember, "/ault.license.v1.MsgBatchRevokeMember"> | Eip712Msg<MsgBurnLicense, "/ault.license.v1.MsgBurnLicense"> | Eip712Msg<MsgMintLicense, "/ault.license.v1.MsgMintLicense"> | Eip712Msg<MsgRevokeLicense, "/ault.license.v1.MsgRevokeLicense"> | Eip712Msg<MsgRevokeMember, "/ault.license.v1.MsgRevokeMember"> | Eip712Msg<MsgSetKYCApprovers, "/ault.license.v1.MsgSetKYCApprovers"> | Eip712Msg<MsgSetMinters, "/ault.license.v1.MsgSetMinters"> | Eip712Msg<MsgSetTokenURI, "/ault.license.v1.MsgSetTokenURI"> | Eip712Msg<MsgTransferLicenseInput, "/ault.license.v1.MsgTransferLicense"> | Eip712Msg<MsgUpdateParamsAultLicenseV1, "/ault.license.v1.MsgUpdateParams"> | Eip712Msg<MsgCreateMarketInput, "/ault.market.v1.MsgCreateMarket"> | Eip712Msg<MsgHaltAllMarkets, "/ault.market.v1.MsgHaltAllMarkets"> | Eip712Msg<MsgHaltMarkets, "/ault.market.v1.MsgHaltMarkets"> | Eip712Msg<MsgResumeAllMarkets, "/ault.market.v1.MsgResumeAllMarkets"> | Eip712Msg<MsgResumeMarkets, "/ault.market.v1.MsgResumeMarkets"> | Eip712Msg<MsgUpdateMarket, "/ault.market.v1.MsgUpdateMarket"> | Eip712Msg<MsgUpdateMarketDeployer, "/ault.market.v1.MsgUpdateMarketDeployer"> | Eip712Msg<MsgUpdateParamsAultMarketV1, "/ault.market.v1.MsgUpdateParams"> | Eip712Msg<MsgBatchSubmitWorkInput, "/ault.miner.v1.MsgBatchSubmitWork"> | Eip712Msg<MsgCancelMiningDelegation, "/ault.miner.v1.MsgCancelMiningDelegation"> | Eip712Msg<MsgDelegateMining, "/ault.miner.v1.MsgDelegateMining"> | Eip712Msg<MsgRedelegateMining, "/ault.miner.v1.MsgRedelegateMining"> | Eip712Msg<MsgRegisterOperatorInput, "/ault.miner.v1.MsgRegisterOperator"> | Eip712Msg<MsgSetOwnerVrfKey, "/ault.miner.v1.MsgSetOwnerVrfKey"> | Eip712Msg<MsgSubmitWorkInput, "/ault.miner.v1.MsgSubmitWork"> | Eip712Msg<MsgUnregisterOperator, "/ault.miner.v1.MsgUnregisterOperator"> | Eip712Msg<MsgUpdateOperatorInfoInput, "/ault.miner.v1.MsgUpdateOperatorInfo"> | Eip712Msg<MsgUpdateParamsAultMinerV1, "/ault.miner.v1.MsgUpdateParams"> | Eip712Msg<MsgUpdateParamsAultRatelimitV1, "/ault.ratelimit.v1.MsgUpdateParams"> | Eip712Msg<MsgApproveBuilder, "/ault.reward.v1.MsgApproveBuilder"> | Eip712Msg<MsgRevokeBuilder, "/ault.reward.v1.MsgRevokeBuilder"> | Eip712Msg<MsgSetDeployerShare, "/ault.reward.v1.MsgSetDeployerShare"> | Eip712Msg<MsgSetReferral, "/ault.reward.v1.MsgSetReferral"> | Eip712Msg<MsgSetReferralCode, "/ault.reward.v1.MsgSetReferralCode"> | Eip712Msg<MsgUpdateEligibleReferrers, "/ault.reward.v1.MsgUpdateEligibleReferrers"> | Eip712Msg<MsgUpdateFeeTierDiscounts, "/ault.reward.v1.MsgUpdateFeeTierDiscounts"> | Eip712Msg<MsgUpdateParamsAultRewardV1, "/ault.reward.v1.MsgUpdateParams"> | Eip712Msg<MsgUpdateRefereeDiscountRate, "/ault.reward.v1.MsgUpdateRefereeDiscountRate"> | Eip712Msg<MsgUpdateTradingTierBenefits, "/ault.reward.v1.MsgUpdateTradingTierBenefits"> | Eip712Msg<MsgDisableTokenPair, "/ault.tokenregistry.v1.MsgDisableTokenPair"> | Eip712Msg<MsgDisableTransfers, "/ault.tokenregistry.v1.MsgDisableTransfers"> | Eip712Msg<MsgEnableTokenPair, "/ault.tokenregistry.v1.MsgEnableTokenPair"> | Eip712Msg<MsgEnableTransfers, "/ault.tokenregistry.v1.MsgEnableTransfers"> | Eip712Msg<MsgRegisterTokenPairInput, "/ault.tokenregistry.v1.MsgRegisterTokenPair"> | Eip712Msg<MsgRemoveTransferLimit, "/ault.tokenregistry.v1.MsgRemoveTransferLimit"> | Eip712Msg<MsgSetTransferLimitInput, "/ault.tokenregistry.v1.MsgSetTransferLimit"> | Eip712Msg<MsgWithdrawDelegatorReward, "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"> | Eip712Msg<MsgBeginRedelegate, "/cosmos.staking.v1beta1.MsgBeginRedelegate"> | Eip712Msg<MsgDelegate, "/cosmos.staking.v1beta1.MsgDelegate"> | Eip712Msg<MsgUndelegate, "/cosmos.staking.v1beta1.MsgUndelegate">;
203
+ export type AnyEip712Msg = Eip712Msg<MsgOpenAccount, "/ault.accountx.v1.MsgOpenAccount"> | Eip712Msg<MsgUpdateFeeTiers, "/ault.accountx.v1.MsgUpdateFeeTiers"> | Eip712Msg<MsgUpdateParamsAultAccountxV1, "/ault.accountx.v1.MsgUpdateParams"> | Eip712Msg<MsgUpdateTradingTiers, "/ault.accountx.v1.MsgUpdateTradingTiers"> | Eip712Msg<MsgApproveAgentInput, "/ault.agent.v1.MsgApproveAgent"> | Eip712Msg<MsgRevokeAgent, "/ault.agent.v1.MsgRevokeAgent"> | Eip712Msg<MsgUpdateParamsAultAgentV1, "/ault.agent.v1.MsgUpdateParams"> | Eip712Msg<MsgGrantRole, "/ault.authority.v1.MsgGrantRole"> | Eip712Msg<MsgRevokeRole, "/ault.authority.v1.MsgRevokeRole"> | Eip712Msg<MsgCancelOrders, "/ault.clob.v1.MsgCancelOrders"> | Eip712Msg<MsgModifyOrdersInput, "/ault.clob.v1.MsgModifyOrders"> | Eip712Msg<MsgPlaceLimitOrderInput, "/ault.clob.v1.MsgPlaceLimitOrder"> | Eip712Msg<MsgPlaceMarketOrderInput, "/ault.clob.v1.MsgPlaceMarketOrder"> | Eip712Msg<MsgPlaceScaleOrderInput, "/ault.clob.v1.MsgPlaceScaleOrder"> | Eip712Msg<MsgPlaceTwapOrderInput, "/ault.clob.v1.MsgPlaceTwapOrder"> | Eip712Msg<MsgUpdateParamsAultClobV1, "/ault.clob.v1.MsgUpdateParams"> | Eip712Msg<MsgBorrow, "/ault.lending.v1.MsgBorrow"> | Eip712Msg<MsgCancelAssetUpdates, "/ault.lending.v1.MsgCancelAssetUpdates"> | Eip712Msg<MsgCreatePool, "/ault.lending.v1.MsgCreatePool"> | Eip712Msg<MsgDisablePoolActions, "/ault.lending.v1.MsgDisablePoolActions"> | Eip712Msg<MsgEnablePoolActions, "/ault.lending.v1.MsgEnablePoolActions"> | Eip712Msg<MsgFundInsuranceFund, "/ault.lending.v1.MsgFundInsuranceFund"> | Eip712Msg<MsgLiquidateAultLendingV1, "/ault.lending.v1.MsgLiquidate"> | Eip712Msg<MsgRegisterAssets, "/ault.lending.v1.MsgRegisterAssets"> | Eip712Msg<MsgRepay, "/ault.lending.v1.MsgRepay"> | Eip712Msg<MsgSettleDeficit, "/ault.lending.v1.MsgSettleDeficit"> | Eip712Msg<MsgSupply, "/ault.lending.v1.MsgSupply"> | Eip712Msg<MsgSupplyCollateral, "/ault.lending.v1.MsgSupplyCollateral"> | Eip712Msg<MsgUpdateAssets, "/ault.lending.v1.MsgUpdateAssets"> | Eip712Msg<MsgUpdateAssetsRisk, "/ault.lending.v1.MsgUpdateAssetsRisk"> | Eip712Msg<MsgUpdateParamsAultLendingV1, "/ault.lending.v1.MsgUpdateParams"> | Eip712Msg<MsgUpdatePool, "/ault.lending.v1.MsgUpdatePool"> | Eip712Msg<MsgUpdatePoolOwner, "/ault.lending.v1.MsgUpdatePoolOwner"> | Eip712Msg<MsgWithdrawAultLendingV1, "/ault.lending.v1.MsgWithdraw"> | Eip712Msg<MsgWithdrawCollateral, "/ault.lending.v1.MsgWithdrawCollateral"> | Eip712Msg<MsgWithdrawInsuranceFund, "/ault.lending.v1.MsgWithdrawInsuranceFund"> | Eip712Msg<MsgWithdrawProtocolRevenue, "/ault.lending.v1.MsgWithdrawProtocolRevenue"> | Eip712Msg<MsgApproveMember, "/ault.license.v1.MsgApproveMember"> | Eip712Msg<MsgBatchApproveMember, "/ault.license.v1.MsgBatchApproveMember"> | Eip712Msg<MsgBatchMintLicense, "/ault.license.v1.MsgBatchMintLicense"> | Eip712Msg<MsgBatchRevokeMember, "/ault.license.v1.MsgBatchRevokeMember"> | Eip712Msg<MsgBurnLicense, "/ault.license.v1.MsgBurnLicense"> | Eip712Msg<MsgMintLicense, "/ault.license.v1.MsgMintLicense"> | Eip712Msg<MsgRevokeLicense, "/ault.license.v1.MsgRevokeLicense"> | Eip712Msg<MsgRevokeMember, "/ault.license.v1.MsgRevokeMember"> | Eip712Msg<MsgSetKYCApprovers, "/ault.license.v1.MsgSetKYCApprovers"> | Eip712Msg<MsgSetMinters, "/ault.license.v1.MsgSetMinters"> | Eip712Msg<MsgSetTokenURI, "/ault.license.v1.MsgSetTokenURI"> | Eip712Msg<MsgTransferLicenseInput, "/ault.license.v1.MsgTransferLicense"> | Eip712Msg<MsgUpdateParamsAultLicenseV1, "/ault.license.v1.MsgUpdateParams"> | Eip712Msg<MsgBorrowMargin, "/ault.margin.v1.MsgBorrowMargin"> | Eip712Msg<MsgDepositMargin, "/ault.margin.v1.MsgDepositMargin"> | Eip712Msg<MsgDisableMarginMarket, "/ault.margin.v1.MsgDisableMarginMarket"> | Eip712Msg<MsgEnableMarginMarket, "/ault.margin.v1.MsgEnableMarginMarket"> | Eip712Msg<MsgRepayMargin, "/ault.margin.v1.MsgRepayMargin"> | Eip712Msg<MsgSetMarginLendingPool, "/ault.margin.v1.MsgSetMarginLendingPool"> | Eip712Msg<MsgUpdateParamsAultMarginV1, "/ault.margin.v1.MsgUpdateParams"> | Eip712Msg<MsgWithdrawMargin, "/ault.margin.v1.MsgWithdrawMargin"> | Eip712Msg<MsgCreateMarketInput, "/ault.market.v1.MsgCreateMarket"> | Eip712Msg<MsgHaltAllMarkets, "/ault.market.v1.MsgHaltAllMarkets"> | Eip712Msg<MsgHaltMarkets, "/ault.market.v1.MsgHaltMarkets"> | Eip712Msg<MsgResumeAllMarkets, "/ault.market.v1.MsgResumeAllMarkets"> | Eip712Msg<MsgResumeMarkets, "/ault.market.v1.MsgResumeMarkets"> | Eip712Msg<MsgSetMarketConfigInput, "/ault.market.v1.MsgSetMarketConfig"> | Eip712Msg<MsgUpdateMarket, "/ault.market.v1.MsgUpdateMarket"> | Eip712Msg<MsgUpdateMarketDeployer, "/ault.market.v1.MsgUpdateMarketDeployer"> | Eip712Msg<MsgUpdateParamsAultMarketV1, "/ault.market.v1.MsgUpdateParams"> | Eip712Msg<MsgBatchSubmitWorkInput, "/ault.miner.v1.MsgBatchSubmitWork"> | Eip712Msg<MsgCancelMiningDelegation, "/ault.miner.v1.MsgCancelMiningDelegation"> | Eip712Msg<MsgDelegateMining, "/ault.miner.v1.MsgDelegateMining"> | Eip712Msg<MsgRedelegateMining, "/ault.miner.v1.MsgRedelegateMining"> | Eip712Msg<MsgRegisterOperatorInput, "/ault.miner.v1.MsgRegisterOperator"> | Eip712Msg<MsgSetOwnerVrfKey, "/ault.miner.v1.MsgSetOwnerVrfKey"> | Eip712Msg<MsgSubmitWorkInput, "/ault.miner.v1.MsgSubmitWork"> | Eip712Msg<MsgUnregisterOperator, "/ault.miner.v1.MsgUnregisterOperator"> | Eip712Msg<MsgUpdateOperatorInfoInput, "/ault.miner.v1.MsgUpdateOperatorInfo"> | Eip712Msg<MsgUpdateParamsAultMinerV1, "/ault.miner.v1.MsgUpdateParams"> | Eip712Msg<MsgInjectOraclePrices, "/ault.oracle.v1.MsgInjectOraclePrices"> | Eip712Msg<MsgRemoveFeed, "/ault.oracle.v1.MsgRemoveFeed"> | Eip712Msg<MsgSetFeed, "/ault.oracle.v1.MsgSetFeed"> | Eip712Msg<MsgSetFeedMapping, "/ault.oracle.v1.MsgSetFeedMapping"> | Eip712Msg<MsgSetMarketMapping, "/ault.oracle.v1.MsgSetMarketMapping"> | Eip712Msg<MsgSetTrustedSigner, "/ault.oracle.v1.MsgSetTrustedSigner"> | Eip712Msg<MsgUpdateParamsAultOracleV1, "/ault.oracle.v1.MsgUpdateParams"> | Eip712Msg<MsgDepositAultPerpetualV1, "/ault.perpetual.v1.MsgDeposit"> | Eip712Msg<MsgLiquidateAultPerpetualV1, "/ault.perpetual.v1.MsgLiquidate"> | Eip712Msg<MsgModifyPositionMargin, "/ault.perpetual.v1.MsgModifyPositionMargin"> | Eip712Msg<MsgSetMarginConfig, "/ault.perpetual.v1.MsgSetMarginConfig"> | Eip712Msg<MsgUpdateParamsAultPerpetualV1, "/ault.perpetual.v1.MsgUpdateParams"> | Eip712Msg<MsgWithdrawAultPerpetualV1, "/ault.perpetual.v1.MsgWithdraw"> | Eip712Msg<MsgUpdateParamsAultRatelimitV1, "/ault.ratelimit.v1.MsgUpdateParams"> | Eip712Msg<MsgApproveBuilder, "/ault.reward.v1.MsgApproveBuilder"> | Eip712Msg<MsgRevokeBuilder, "/ault.reward.v1.MsgRevokeBuilder"> | Eip712Msg<MsgSetDeployerShare, "/ault.reward.v1.MsgSetDeployerShare"> | Eip712Msg<MsgSetReferral, "/ault.reward.v1.MsgSetReferral"> | Eip712Msg<MsgSetReferralCode, "/ault.reward.v1.MsgSetReferralCode"> | Eip712Msg<MsgUpdateEligibleReferrers, "/ault.reward.v1.MsgUpdateEligibleReferrers"> | Eip712Msg<MsgUpdateFeeTierDiscounts, "/ault.reward.v1.MsgUpdateFeeTierDiscounts"> | Eip712Msg<MsgUpdateParamsAultRewardV1, "/ault.reward.v1.MsgUpdateParams"> | Eip712Msg<MsgUpdateRefereeDiscountRate, "/ault.reward.v1.MsgUpdateRefereeDiscountRate"> | Eip712Msg<MsgUpdateTradingTierBenefits, "/ault.reward.v1.MsgUpdateTradingTierBenefits"> | Eip712Msg<MsgDisableTokenPair, "/ault.tokenregistry.v1.MsgDisableTokenPair"> | Eip712Msg<MsgDisableTransfers, "/ault.tokenregistry.v1.MsgDisableTransfers"> | Eip712Msg<MsgEnableTokenPair, "/ault.tokenregistry.v1.MsgEnableTokenPair"> | Eip712Msg<MsgEnableTransfers, "/ault.tokenregistry.v1.MsgEnableTransfers"> | Eip712Msg<MsgRegisterTokenPairInput, "/ault.tokenregistry.v1.MsgRegisterTokenPair"> | Eip712Msg<MsgRemoveTransferLimit, "/ault.tokenregistry.v1.MsgRemoveTransferLimit"> | Eip712Msg<MsgSetTransferLimitInput, "/ault.tokenregistry.v1.MsgSetTransferLimit"> | Eip712Msg<MsgCancelVaultConfigUpdate, "/ault.vault.v1.MsgCancelVaultConfigUpdate"> | Eip712Msg<MsgCreateVault, "/ault.vault.v1.MsgCreateVault"> | Eip712Msg<MsgDepositAultVaultV1, "/ault.vault.v1.MsgDeposit"> | Eip712Msg<MsgReallocate, "/ault.vault.v1.MsgReallocate"> | Eip712Msg<MsgRedeem, "/ault.vault.v1.MsgRedeem"> | Eip712Msg<MsgSetOracleFeeds, "/ault.vault.v1.MsgSetOracleFeeds"> | Eip712Msg<MsgSetVaultStatus, "/ault.vault.v1.MsgSetVaultStatus"> | Eip712Msg<MsgUpdateParamsAultVaultV1, "/ault.vault.v1.MsgUpdateParams"> | Eip712Msg<MsgUpdateVaultConfig, "/ault.vault.v1.MsgUpdateVaultConfig"> | Eip712Msg<MsgUpdateVaultManager, "/ault.vault.v1.MsgUpdateVaultManager"> | Eip712Msg<MsgVaultTransfer, "/ault.vault.v1.MsgVaultTransfer"> | Eip712Msg<MsgWithdrawDelegatorReward, "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"> | Eip712Msg<MsgBeginRedelegate, "/cosmos.staking.v1beta1.MsgBeginRedelegate"> | Eip712Msg<MsgDelegate, "/cosmos.staking.v1beta1.MsgDelegate"> | Eip712Msg<MsgUndelegate, "/cosmos.staking.v1beta1.MsgUndelegate">;
134
204
  export {};
@@ -9,6 +9,8 @@ export interface FieldSemantics {
9
9
  isCosmosInt?: boolean;
10
10
  isBinary?: boolean;
11
11
  isPubKey?: boolean;
12
+ /** google.protobuf.Any accepting a chain interface (see `anyTypes`). */
13
+ isAny?: boolean;
12
14
  deprecated?: boolean;
13
15
  }
14
16
  export interface Eip712MsgTypeConfig {
@@ -23,7 +25,16 @@ export interface Eip712MsgTypeConfig {
23
25
  optionalFields?: readonly string[];
24
26
  legacyAminoRegistered?: boolean;
25
27
  fieldSemantics?: Record<string, FieldSemantics>;
28
+ /**
29
+ * Interface-typed Any fields (e.g. clob `options`), keyed by field name and
30
+ * then by the type URL of each message the chain accepts there. The chain's
31
+ * legacy amino codec renders such a field as {"type": aminoType, "value": {...}}.
32
+ */
33
+ anyTypes?: Eip712AnyTypesMap;
26
34
  }
35
+ /** Amino/EIP-712 config of one message that can be packed into an interface Any. */
36
+ export type Eip712AnyTypeConfig = Omit<Eip712MsgTypeConfig, "eip712TypeName" | "legacyAminoRegistered">;
37
+ export type Eip712AnyTypesMap = Record<string, Record<string, Eip712AnyTypeConfig>>;
27
38
  export { EIP712_MSG_TYPES } from "./registry.generated";
28
39
  export type { Params as AgentParams } from "../proto/gen/ault/agent/v1/params";
29
40
  export { Role } from "../proto/gen/ault/authority/v1/authority";
@@ -49,6 +49,11 @@ export type Eip712Field = {
49
49
  type: string;
50
50
  jsName?: string;
51
51
  protoHint?: string;
52
+ /**
53
+ * The proto field carries (gogoproto.jsontag) without omitempty, so the
54
+ * chain's legacy amino JSON always emits it, zero value included.
55
+ */
56
+ dontOmitEmpty?: boolean;
52
57
  };
53
58
  export interface Eip712TypedData<TPrimary extends string = "Tx"> {
54
59
  types: Record<string, Eip712Field[]>;
@@ -0,0 +1,3 @@
1
+ import type { PerpetualTxApi } from "../types";
2
+ import type { TxModuleContext } from "./context";
3
+ export declare function createPerpetualTxApi({ signerAddress, exec, getGas, }: TxModuleContext): PerpetualTxApi;