@injectivelabs/sdk-ts 1.20.26 → 1.20.28
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.
- package/dist/cjs/{BaseGrpcConsumer-me9h4XPt.d.cts → BaseGrpcConsumer-D-Ocoffv.d.cts} +1 -1
- package/dist/cjs/{MsgSetDenomMetadata-tA6IVCia.cjs → MsgSetDenomMetadata-DNaPq8w6.cjs} +477 -49
- package/dist/cjs/SocialTradingGrpcApi-Cm79vDb5.cjs +158 -0
- package/dist/cjs/{StreamManagerV2-DqJ4fWu_.cjs → StreamManagerV2-B6TX-Isx.cjs} +4 -0
- package/dist/cjs/client/abacus.d.cts +5 -5
- package/dist/cjs/client/chain.d.cts +15 -14
- package/dist/cjs/client/indexer.cjs +1 -1
- package/dist/cjs/client/indexer.d.cts +16 -15
- package/dist/cjs/client/olp.d.cts +5 -5
- package/dist/cjs/client/platformServices.cjs +8 -0
- package/dist/cjs/client/platformServices.d.cts +6 -0
- package/dist/cjs/client/tcAbacus.d.cts +5 -5
- package/dist/cjs/client/wasm.d.cts +4 -4
- package/dist/cjs/core/accounts.d.cts +15 -14
- package/dist/cjs/core/modules.cjs +8 -2
- package/dist/cjs/core/modules.d.cts +16 -15
- package/dist/cjs/core/tx.cjs +1 -1
- package/dist/cjs/core/tx.d.cts +15 -14
- package/dist/cjs/cosmjs.cjs +2 -2
- package/dist/cjs/cosmjs.d.cts +2 -2
- package/dist/cjs/exports.cjs +2 -2
- package/dist/cjs/exports.d.cts +2 -2
- package/dist/cjs/{index-kR_oqvag.d.cts → index-B674D7pD.d.cts} +4 -4
- package/dist/cjs/{index-q5FdLZwj.d.cts → index-BSIx102w.d.cts} +10840 -10249
- package/dist/cjs/{index-J9cwHdjs.d.cts → index-BURuy3tW.d.cts} +1 -1
- package/dist/cjs/{index-BORRXTW4.d.cts → index-BZDon-tA.d.cts} +2 -2
- package/dist/cjs/{index-pjxJkZI4.d.cts → index-Bnw2tGrY.d.cts} +1 -1
- package/dist/cjs/{index-CFiDirCt.d.cts → index-C3kDJwt_.d.cts} +1 -1
- package/dist/cjs/{index-CEkvXgP3.d.cts → index-C9A-6Kpk.d.cts} +6 -6
- package/dist/cjs/{index-Dnv1vSBK.d.cts → index-Cbl-NhtN.d.cts} +1 -1
- package/dist/cjs/index-yXqxYazb.d.cts +305 -0
- package/dist/cjs/index.cjs +12 -4
- package/dist/cjs/index.d.cts +16 -15
- package/dist/cjs/proto/cosmos-tx.d.cts +1 -1
- package/dist/cjs/service.cjs +1 -1
- package/dist/cjs/service.d.cts +4 -4
- package/dist/cjs/{tx_pb-wznwSZgU.d.cts → tx_pb-BzYfNmn2.d.cts} +4 -4
- package/dist/cjs/types/light.d.cts +1 -1
- package/dist/cjs/types.d.cts +3 -3
- package/dist/cjs/utils/address.d.cts +1 -1
- package/dist/cjs/utils/constants.d.cts +1 -1
- package/dist/cjs/utils/encoding.d.cts +1 -1
- package/dist/cjs/utils/light.d.cts +4 -4
- package/dist/cjs/utils.d.cts +15 -14
- package/dist/esm/{AbacusGrpcApi-DVO7c0mB.js → AbacusGrpcApi-yHhbSjrF.js} +2 -2
- package/dist/esm/{BaseGrpcConsumer-Ci8sUY5h.js → BaseGrpcConsumer-6MH_z0ci.js} +3 -3
- package/dist/esm/{BaseGrpcConsumer-BRgferJ5.d.ts → BaseGrpcConsumer-BEeBd9vk.d.ts} +1 -1
- package/dist/esm/{BaseIndexerGrpcConsumer-MGB306RP.js → BaseIndexerGrpcConsumer-CPx95BY0.js} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-S5nJzebX.js → ChainGrpcExchangeApi-CGspD5dV.js} +4 -4
- package/dist/esm/{ChainRestTendermintApi-D_FQwKrf.js → ChainRestTendermintApi-C3N6b45h.js} +5 -5
- package/dist/esm/{DirectEthSecp256k1Wallet-D-KJbto6.js → DirectEthSecp256k1Wallet-CpbdozpK.js} +3 -3
- package/dist/esm/{ExecArgNeptuneWithdraw-ljDnPI2p.js → ExecArgNeptuneWithdraw-DmYVr5B4.js} +4 -4
- package/dist/esm/{IndexerGrpcWeb3GwApi-BWuDmOjX.js → IndexerGrpcWeb3GwApi-ER1GujRh.js} +4 -4
- package/dist/esm/{MsgBase-CishJWMN.js → MsgBase-DYaDzmLm.js} +1 -1
- package/dist/esm/{MsgSetDenomMetadata-DGdnd-QI.js → MsgSetDenomMetadata-OfZ7D1U-.js} +449 -58
- package/dist/esm/{OLPGrpcApi-BSFkBk80.js → OLPGrpcApi-Kp0vZ0Pu.js} +2 -2
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-C47sauu5.js → QueryTradingStrategyContractTotalStrategies-Bl44Zu8U.js} +4 -4
- package/dist/esm/SocialTradingGrpcApi-Gvt1eym5.js +151 -0
- package/dist/esm/{StreamManagerV2-CxVdNAtc.js → StreamManagerV2-CFg9pADw.js} +13 -9
- package/dist/esm/{TcAbacusGrpcApi-k3COziPh.js → TcAbacusGrpcApi-D4HZcXCV.js} +2 -2
- package/dist/esm/{accounts-3rypojw1.js → accounts-D7g8pgWl.js} +6 -6
- package/dist/esm/{chain-CQHfHLCM.js → chain-ChIDr_pP.js} +6 -6
- package/dist/esm/client/abacus.d.ts +5 -5
- package/dist/esm/client/abacus.js +6 -6
- package/dist/esm/client/chain.d.ts +15 -14
- package/dist/esm/client/chain.js +14 -14
- package/dist/esm/client/indexer.d.ts +16 -15
- package/dist/esm/client/indexer.js +15 -15
- package/dist/esm/client/olp.d.ts +5 -5
- package/dist/esm/client/olp.js +7 -7
- package/dist/esm/client/platformServices.d.ts +6 -0
- package/dist/esm/client/platformServices.js +8 -0
- package/dist/esm/client/tcAbacus.d.ts +5 -5
- package/dist/esm/client/tcAbacus.js +6 -6
- package/dist/esm/client/wasm.d.ts +4 -4
- package/dist/esm/client/wasm.js +17 -17
- package/dist/esm/core/accounts.d.ts +15 -14
- package/dist/esm/core/accounts.js +9 -9
- package/dist/esm/core/modules.d.ts +16 -15
- package/dist/esm/core/modules.js +21 -21
- package/dist/esm/core/tx.d.ts +15 -14
- package/dist/esm/core/tx.js +17 -17
- package/dist/esm/cosmjs.d.ts +2 -2
- package/dist/esm/cosmjs.js +18 -18
- package/dist/esm/exports.d.ts +2 -2
- package/dist/esm/exports.js +18 -18
- package/dist/esm/{index-BqmPYCxy.d.ts → index-B0keqriy.d.ts} +6 -6
- package/dist/esm/{index-o-N-zxKg.d.ts → index-BX0RYyak.d.ts} +2 -2
- package/dist/esm/{index-DjJS2GlY.d.ts → index-CUuBRId3.d.ts} +1 -1
- package/dist/esm/{index-VDXk-hTA.d.ts → index-Cp-Ayqjs.d.ts} +1 -1
- package/dist/esm/{index-Bbgn_zqu.d.ts → index-D8HsSSPt.d.ts} +4 -4
- package/dist/esm/{index-EwPuu2Cr.d.ts → index-DYBPtGG-.d.ts} +1 -1
- package/dist/esm/{index-CGReRoZv.d.ts → index-D_iauVcE.d.ts} +10840 -10249
- package/dist/esm/{index-DmQ5vaqU.d.ts → index-Do1evAZC.d.ts} +1 -1
- package/dist/esm/index-tsEWBsAJ.d.ts +305 -0
- package/dist/esm/index.d.ts +16 -15
- package/dist/esm/index.js +30 -29
- package/dist/esm/proto/cosmos-tx.d.ts +1 -1
- package/dist/esm/{service-BER-mZkG.js → service-ByVrhiMR.js} +3 -3
- package/dist/esm/service.d.ts +4 -4
- package/dist/esm/service.js +11 -11
- package/dist/esm/{tx-Pg714BW8.js → tx-C3kGdMjp.js} +7 -7
- package/dist/esm/{tx_pb-DZQILTFk.d.ts → tx_pb-DMlxbcd8.d.ts} +4 -4
- package/dist/esm/types/light.d.ts +1 -1
- package/dist/esm/types/light.js +1 -1
- package/dist/esm/types.d.ts +3 -3
- package/dist/esm/types.js +3 -3
- package/dist/esm/utils/address.d.ts +1 -1
- package/dist/esm/utils/address.js +1 -1
- package/dist/esm/utils/constants.d.ts +1 -1
- package/dist/esm/utils/constants.js +1 -1
- package/dist/esm/utils/encoding.d.ts +1 -1
- package/dist/esm/utils/encoding.js +1 -1
- package/dist/esm/utils/light.d.ts +4 -4
- package/dist/esm/utils/light.js +4 -4
- package/dist/esm/{utils-B3t50ZnB.js → utils-BPuX8T_g.js} +1 -1
- package/dist/esm/utils.d.ts +15 -14
- package/dist/esm/utils.js +6 -6
- package/package.json +27 -6
- /package/dist/cjs/{DirectEthSecp256k1Wallet-BpU2M9A8.cjs → DirectEthSecp256k1Wallet-DMVCWKfg.cjs} +0 -0
- /package/dist/cjs/{address-light-B5-DYwES.d.cts → address-light-CnSMr-vR.d.cts} +0 -0
- /package/dist/cjs/{coins-JbAREn6e.d.cts → coins-CSrwziXH.d.cts} +0 -0
- /package/dist/cjs/{constants-DSzHAIp3.d.cts → constants-DQTrjP5R.d.cts} +0 -0
- /package/dist/cjs/{encoding-light-CrQ0cICT.d.cts → encoding-light-D-6m9tHO.d.cts} +0 -0
- /package/dist/cjs/{light-4nNsYXxr.d.cts → light-B-3BDUJ7.d.cts} +0 -0
- /package/dist/cjs/{service-nm5Ct4_w.cjs → service-DAfIXxMj.cjs} +0 -0
- /package/dist/cjs/{tx-BlFLQ52d.cjs → tx-D8W0e6qZ.cjs} +0 -0
- /package/dist/esm/{BaseRestConsumer-L3j9-i4T.js → BaseRestConsumer-BjN9JApr.js} +0 -0
- /package/dist/esm/{address-light-C9skTx0P.js → address-light-B2JvY3Or.js} +0 -0
- /package/dist/esm/{address-light-BcZDS-ks.d.ts → address-light-DEMtolvF.d.ts} +0 -0
- /package/dist/esm/{coins-ceq0Id0M.d.ts → coins-EA0hT1HY.d.ts} +0 -0
- /package/dist/esm/{coins-D4vONigS.js → coins-MO-ob9NV.js} +0 -0
- /package/dist/esm/{constants-BZ28P_pH.d.ts → constants-Cde3Np7d.d.ts} +0 -0
- /package/dist/esm/{constants-CCVyqUU9.js → constants-J9ftgKqC.js} +0 -0
- /package/dist/esm/{defineProperty-C0TI9N8m.js → defineProperty-BwBXXd7t.js} +0 -0
- /package/dist/esm/{encoding-light-18k0e_8v.d.ts → encoding-light--y1VYXkX.d.ts} +0 -0
- /package/dist/esm/{encoding-light-DHtTGSg1.js → encoding-light-BpntDob-.js} +0 -0
- /package/dist/esm/{grpc-aI_RLGoG.js → grpc-D2EQHGkK.js} +0 -0
- /package/dist/esm/{light-BflupdEX.js → light-BBrX6IRm.js} +0 -0
- /package/dist/esm/{light-Cr4m0DAA.d.ts → light-BFGvKXwS.d.ts} +0 -0
- /package/dist/esm/{stream-BhshHZxL.js → stream-AVOxjM-h.js} +0 -0
- /package/dist/esm/{types-BAV0654v.js → types-CD1KNXoO.js} +0 -0
|
@@ -24,6 +24,8 @@ let __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_order_pb =
|
|
|
24
24
|
__injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_order_pb = require_chunk.__toESM(__injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_order_pb);
|
|
25
25
|
let __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_proposal_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v2/proposal_pb");
|
|
26
26
|
__injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_proposal_pb = require_chunk.__toESM(__injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_proposal_pb);
|
|
27
|
+
let __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_exchange_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v2/exchange_pb");
|
|
28
|
+
__injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_exchange_pb = require_chunk.__toESM(__injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_exchange_pb);
|
|
27
29
|
let __injectivelabs_core_proto_ts_v2_generated_injective_oracle_v1beta1_oracle_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/oracle/v1beta1/oracle_pb");
|
|
28
30
|
__injectivelabs_core_proto_ts_v2_generated_injective_oracle_v1beta1_oracle_pb = require_chunk.__toESM(__injectivelabs_core_proto_ts_v2_generated_injective_oracle_v1beta1_oracle_pb);
|
|
29
31
|
let __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_market_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v2/market_pb");
|
|
@@ -576,6 +578,61 @@ var MsgExternalTransfer = class MsgExternalTransfer extends require_MsgBase.MsgB
|
|
|
576
578
|
}
|
|
577
579
|
};
|
|
578
580
|
|
|
581
|
+
//#endregion
|
|
582
|
+
//#region src/core/modules/exchange/msgs/MsgOffsetPositionV2.ts
|
|
583
|
+
/**
|
|
584
|
+
* @category Messages
|
|
585
|
+
*/
|
|
586
|
+
var MsgOffsetPositionV2 = class MsgOffsetPositionV2 extends require_MsgBase.MsgBase {
|
|
587
|
+
static fromJSON(params) {
|
|
588
|
+
return new MsgOffsetPositionV2(params);
|
|
589
|
+
}
|
|
590
|
+
toProto() {
|
|
591
|
+
const { params } = this;
|
|
592
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgOffsetPosition.create({
|
|
593
|
+
sender: params.sender,
|
|
594
|
+
subaccountId: params.subaccountId,
|
|
595
|
+
marketId: params.marketId,
|
|
596
|
+
offsettingSubaccountIds: params.offsettingSubaccountIds
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
toData() {
|
|
600
|
+
const proto = this.toProto();
|
|
601
|
+
return {
|
|
602
|
+
"@type": "/injective.exchange.v2.MsgOffsetPosition",
|
|
603
|
+
...proto
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
toAmino() {
|
|
607
|
+
const proto = this.toProto();
|
|
608
|
+
return {
|
|
609
|
+
type: "exchange/MsgOffsetPosition",
|
|
610
|
+
value: {
|
|
611
|
+
sender: proto.sender,
|
|
612
|
+
subaccount_id: proto.subaccountId,
|
|
613
|
+
market_id: proto.marketId,
|
|
614
|
+
offsetting_subaccount_ids: proto.offsettingSubaccountIds
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
toWeb3Gw() {
|
|
619
|
+
const { value } = this.toAmino();
|
|
620
|
+
return {
|
|
621
|
+
"@type": "/injective.exchange.v2.MsgOffsetPosition",
|
|
622
|
+
...value
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
toDirectSign() {
|
|
626
|
+
return {
|
|
627
|
+
type: "/injective.exchange.v2.MsgOffsetPosition",
|
|
628
|
+
message: this.toProto()
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
toBinary() {
|
|
632
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgOffsetPosition.toBinary(this.toProto());
|
|
633
|
+
}
|
|
634
|
+
};
|
|
635
|
+
|
|
579
636
|
//#endregion
|
|
580
637
|
//#region src/core/modules/exchange/msgs/MsgBatchUpdateOrders.ts
|
|
581
638
|
const createSpotOrder$1 = (args) => {
|
|
@@ -1095,13 +1152,7 @@ var MsgUpdateSpotMarketV2 = class MsgUpdateSpotMarketV2 extends require_MsgBase.
|
|
|
1095
1152
|
return new MsgUpdateSpotMarketV2(params);
|
|
1096
1153
|
}
|
|
1097
1154
|
toProto() {
|
|
1098
|
-
|
|
1099
|
-
return createMessage$11({
|
|
1100
|
-
...initialParams,
|
|
1101
|
-
newMinNotional: (0, __injectivelabs_utils.toChainFormat)(initialParams.newMinNotional || "0").toFixed(),
|
|
1102
|
-
newMinQuantityTickSize: (0, __injectivelabs_utils.toChainFormat)(initialParams.newMinQuantityTickSize || "0").toFixed(),
|
|
1103
|
-
newMinPriceTickSize: (0, __injectivelabs_utils.toChainFormat)(initialParams.newMinPriceTickSize || "0").toFixed()
|
|
1104
|
-
});
|
|
1155
|
+
return createMessage$11(this.params);
|
|
1105
1156
|
}
|
|
1106
1157
|
toData() {
|
|
1107
1158
|
const proto = this.toProto();
|
|
@@ -1749,6 +1800,61 @@ var MsgCancelPostOnlyModeV2 = class MsgCancelPostOnlyModeV2 extends require_MsgB
|
|
|
1749
1800
|
}
|
|
1750
1801
|
};
|
|
1751
1802
|
|
|
1803
|
+
//#endregion
|
|
1804
|
+
//#region src/core/modules/exchange/msgs/MsgSubaccountTransferV2.ts
|
|
1805
|
+
/**
|
|
1806
|
+
* @category Messages
|
|
1807
|
+
*/
|
|
1808
|
+
var MsgSubaccountTransferV2 = class MsgSubaccountTransferV2 extends require_MsgBase.MsgBase {
|
|
1809
|
+
static fromJSON(params) {
|
|
1810
|
+
return new MsgSubaccountTransferV2(params);
|
|
1811
|
+
}
|
|
1812
|
+
toProto() {
|
|
1813
|
+
const { params } = this;
|
|
1814
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgSubaccountTransfer.create({
|
|
1815
|
+
sender: params.sender,
|
|
1816
|
+
sourceSubaccountId: params.sourceSubaccountId,
|
|
1817
|
+
destinationSubaccountId: params.destinationSubaccountId,
|
|
1818
|
+
amount: __injectivelabs_core_proto_ts_v2_generated_cosmos_base_v1beta1_coin_pb.Coin.create(params.amount)
|
|
1819
|
+
});
|
|
1820
|
+
}
|
|
1821
|
+
toData() {
|
|
1822
|
+
const proto = this.toProto();
|
|
1823
|
+
return {
|
|
1824
|
+
"@type": "/injective.exchange.v2.MsgSubaccountTransfer",
|
|
1825
|
+
...proto
|
|
1826
|
+
};
|
|
1827
|
+
}
|
|
1828
|
+
toAmino() {
|
|
1829
|
+
const proto = this.toProto();
|
|
1830
|
+
return {
|
|
1831
|
+
type: "exchange/MsgSubaccountTransfer",
|
|
1832
|
+
value: {
|
|
1833
|
+
sender: proto.sender,
|
|
1834
|
+
source_subaccount_id: proto.sourceSubaccountId,
|
|
1835
|
+
destination_subaccount_id: proto.destinationSubaccountId,
|
|
1836
|
+
amount: proto.amount
|
|
1837
|
+
}
|
|
1838
|
+
};
|
|
1839
|
+
}
|
|
1840
|
+
toWeb3Gw() {
|
|
1841
|
+
const { value } = this.toAmino();
|
|
1842
|
+
return {
|
|
1843
|
+
"@type": "/injective.exchange.v2.MsgSubaccountTransfer",
|
|
1844
|
+
...value
|
|
1845
|
+
};
|
|
1846
|
+
}
|
|
1847
|
+
toDirectSign() {
|
|
1848
|
+
return {
|
|
1849
|
+
type: "/injective.exchange.v2.MsgSubaccountTransfer",
|
|
1850
|
+
message: this.toProto()
|
|
1851
|
+
};
|
|
1852
|
+
}
|
|
1853
|
+
toBinary() {
|
|
1854
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgSubaccountTransfer.toBinary(this.toProto());
|
|
1855
|
+
}
|
|
1856
|
+
};
|
|
1857
|
+
|
|
1752
1858
|
//#endregion
|
|
1753
1859
|
//#region src/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.ts
|
|
1754
1860
|
const createLimitOrder$5 = (params) => {
|
|
@@ -1960,13 +2066,40 @@ var MsgReclaimLockedFundsV2 = class MsgReclaimLockedFundsV2 extends require_MsgB
|
|
|
1960
2066
|
};
|
|
1961
2067
|
}
|
|
1962
2068
|
toWeb3Gw() {
|
|
1963
|
-
|
|
2069
|
+
const { value } = this.toAmino();
|
|
2070
|
+
return {
|
|
2071
|
+
"@type": "/injective.exchange.v2.MsgReclaimLockedFunds",
|
|
2072
|
+
...value
|
|
2073
|
+
};
|
|
1964
2074
|
}
|
|
1965
2075
|
toEip712() {
|
|
1966
|
-
|
|
2076
|
+
const proto = this.toProto();
|
|
2077
|
+
return {
|
|
2078
|
+
type: "exchange/MsgReclaimLockedFunds",
|
|
2079
|
+
value: {
|
|
2080
|
+
sender: proto.sender,
|
|
2081
|
+
lockedAccountPubKey: Array.from(proto.lockedAccountPubKey),
|
|
2082
|
+
signature: Array.from(proto.signature)
|
|
2083
|
+
}
|
|
2084
|
+
};
|
|
1967
2085
|
}
|
|
1968
|
-
|
|
1969
|
-
|
|
2086
|
+
toEip712Types() {
|
|
2087
|
+
const map = /* @__PURE__ */ new Map();
|
|
2088
|
+
map.set("MsgValue", [
|
|
2089
|
+
{
|
|
2090
|
+
name: "sender",
|
|
2091
|
+
type: "string"
|
|
2092
|
+
},
|
|
2093
|
+
{
|
|
2094
|
+
name: "lockedAccountPubKey",
|
|
2095
|
+
type: "uint8[]"
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
name: "signature",
|
|
2099
|
+
type: "uint8[]"
|
|
2100
|
+
}
|
|
2101
|
+
]);
|
|
2102
|
+
return map;
|
|
1970
2103
|
}
|
|
1971
2104
|
toDirectSign() {
|
|
1972
2105
|
return {
|
|
@@ -1979,6 +2112,57 @@ var MsgReclaimLockedFundsV2 = class MsgReclaimLockedFundsV2 extends require_MsgB
|
|
|
1979
2112
|
}
|
|
1980
2113
|
};
|
|
1981
2114
|
|
|
2115
|
+
//#endregion
|
|
2116
|
+
//#region src/core/modules/exchange/msgs/MsgActivateStakeGrantV2.ts
|
|
2117
|
+
/**
|
|
2118
|
+
* @category Messages
|
|
2119
|
+
*/
|
|
2120
|
+
var MsgActivateStakeGrantV2 = class MsgActivateStakeGrantV2 extends require_MsgBase.MsgBase {
|
|
2121
|
+
static fromJSON(params) {
|
|
2122
|
+
return new MsgActivateStakeGrantV2(params);
|
|
2123
|
+
}
|
|
2124
|
+
toProto() {
|
|
2125
|
+
const { params } = this;
|
|
2126
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgActivateStakeGrant.create({
|
|
2127
|
+
sender: params.sender,
|
|
2128
|
+
granter: params.granter
|
|
2129
|
+
});
|
|
2130
|
+
}
|
|
2131
|
+
toData() {
|
|
2132
|
+
const proto = this.toProto();
|
|
2133
|
+
return {
|
|
2134
|
+
"@type": "/injective.exchange.v2.MsgActivateStakeGrant",
|
|
2135
|
+
...proto
|
|
2136
|
+
};
|
|
2137
|
+
}
|
|
2138
|
+
toAmino() {
|
|
2139
|
+
const proto = this.toProto();
|
|
2140
|
+
return {
|
|
2141
|
+
type: "exchange/MsgActivateStakeGrant",
|
|
2142
|
+
value: {
|
|
2143
|
+
sender: proto.sender,
|
|
2144
|
+
granter: proto.granter
|
|
2145
|
+
}
|
|
2146
|
+
};
|
|
2147
|
+
}
|
|
2148
|
+
toWeb3Gw() {
|
|
2149
|
+
const { value } = this.toAmino();
|
|
2150
|
+
return {
|
|
2151
|
+
"@type": "/injective.exchange.v2.MsgActivateStakeGrant",
|
|
2152
|
+
...value
|
|
2153
|
+
};
|
|
2154
|
+
}
|
|
2155
|
+
toDirectSign() {
|
|
2156
|
+
return {
|
|
2157
|
+
type: "/injective.exchange.v2.MsgActivateStakeGrant",
|
|
2158
|
+
message: this.toProto()
|
|
2159
|
+
};
|
|
2160
|
+
}
|
|
2161
|
+
toBinary() {
|
|
2162
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgActivateStakeGrant.toBinary(this.toProto());
|
|
2163
|
+
}
|
|
2164
|
+
};
|
|
2165
|
+
|
|
1982
2166
|
//#endregion
|
|
1983
2167
|
//#region src/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.ts
|
|
1984
2168
|
/**
|
|
@@ -2399,6 +2583,68 @@ var MsgCreateSpotLimitOrderV2 = class MsgCreateSpotLimitOrderV2 extends require_
|
|
|
2399
2583
|
}
|
|
2400
2584
|
};
|
|
2401
2585
|
|
|
2586
|
+
//#endregion
|
|
2587
|
+
//#region src/core/modules/exchange/msgs/MsgActivatePostOnlyModeV2.ts
|
|
2588
|
+
/**
|
|
2589
|
+
* @category Messages
|
|
2590
|
+
*/
|
|
2591
|
+
var MsgActivatePostOnlyModeV2 = class MsgActivatePostOnlyModeV2 extends require_MsgBase.MsgBase {
|
|
2592
|
+
static fromJSON(params) {
|
|
2593
|
+
return new MsgActivatePostOnlyModeV2(params);
|
|
2594
|
+
}
|
|
2595
|
+
toProto() {
|
|
2596
|
+
const { params } = this;
|
|
2597
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgActivatePostOnlyMode.create({
|
|
2598
|
+
sender: params.sender,
|
|
2599
|
+
blocksAmount: params.blocksAmount
|
|
2600
|
+
});
|
|
2601
|
+
}
|
|
2602
|
+
toData() {
|
|
2603
|
+
const proto = this.toProto();
|
|
2604
|
+
return {
|
|
2605
|
+
"@type": "/injective.exchange.v2.MsgActivatePostOnlyMode",
|
|
2606
|
+
...proto
|
|
2607
|
+
};
|
|
2608
|
+
}
|
|
2609
|
+
toAmino() {
|
|
2610
|
+
const proto = this.toProto();
|
|
2611
|
+
return {
|
|
2612
|
+
type: "exchange/MsgActivatePostOnlyMode",
|
|
2613
|
+
value: {
|
|
2614
|
+
sender: proto.sender,
|
|
2615
|
+
blocks_amount: proto.blocksAmount
|
|
2616
|
+
}
|
|
2617
|
+
};
|
|
2618
|
+
}
|
|
2619
|
+
toWeb3Gw() {
|
|
2620
|
+
const { value } = this.toAmino();
|
|
2621
|
+
return {
|
|
2622
|
+
"@type": "/injective.exchange.v2.MsgActivatePostOnlyMode",
|
|
2623
|
+
...value
|
|
2624
|
+
};
|
|
2625
|
+
}
|
|
2626
|
+
toDirectSign() {
|
|
2627
|
+
return {
|
|
2628
|
+
type: "/injective.exchange.v2.MsgActivatePostOnlyMode",
|
|
2629
|
+
message: this.toProto()
|
|
2630
|
+
};
|
|
2631
|
+
}
|
|
2632
|
+
toBinary() {
|
|
2633
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgActivatePostOnlyMode.toBinary(this.toProto());
|
|
2634
|
+
}
|
|
2635
|
+
toEip712Types() {
|
|
2636
|
+
const map = /* @__PURE__ */ new Map();
|
|
2637
|
+
map.set("MsgValue", [{
|
|
2638
|
+
name: "sender",
|
|
2639
|
+
type: "string"
|
|
2640
|
+
}, {
|
|
2641
|
+
name: "blocks_amount",
|
|
2642
|
+
type: "uint32"
|
|
2643
|
+
}]);
|
|
2644
|
+
return map;
|
|
2645
|
+
}
|
|
2646
|
+
};
|
|
2647
|
+
|
|
2402
2648
|
//#endregion
|
|
2403
2649
|
//#region src/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.ts
|
|
2404
2650
|
const createMessage$8 = (params) => {
|
|
@@ -2744,6 +2990,17 @@ var MsgCreateSpotMarketOrderV2 = class MsgCreateSpotMarketOrderV2 extends requir
|
|
|
2744
2990
|
}
|
|
2745
2991
|
};
|
|
2746
2992
|
|
|
2993
|
+
//#endregion
|
|
2994
|
+
//#region src/core/modules/exchange/msgs/utils/openNotionalCap.ts
|
|
2995
|
+
const toOpenNotionalCap = (openNotionalCap, formatValue = (value) => value) => {
|
|
2996
|
+
if (!openNotionalCap) return;
|
|
2997
|
+
const { cap } = openNotionalCap;
|
|
2998
|
+
if (!cap) throw new Error("Invalid OpenNotionalCap: missing cap union value");
|
|
2999
|
+
if (cap.oneofKind === "uncapped") return { uncapped: {} };
|
|
3000
|
+
if (cap.oneofKind === "capped") return { capped: { value: formatValue(cap.capped.value) } };
|
|
3001
|
+
throw new Error(`Invalid OpenNotionalCap: unsupported cap kind ${cap.oneofKind}`);
|
|
3002
|
+
};
|
|
3003
|
+
|
|
2747
3004
|
//#endregion
|
|
2748
3005
|
//#region src/core/modules/exchange/msgs/MsgUpdateDerivativeMarketV2.ts
|
|
2749
3006
|
const defaultCrossMarginEligibility = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_proposal_pb.CrossMarginEligibility.CM_ELIGIBILITY_UNSPECIFIED;
|
|
@@ -2759,6 +3016,7 @@ const createMessage$7 = (params) => {
|
|
|
2759
3016
|
newInitialMarginRatio: params.newInitialMarginRatio || "0",
|
|
2760
3017
|
newMaintenanceMarginRatio: params.newMaintenanceMarginRatio || "0",
|
|
2761
3018
|
newReduceMarginRatio: params.newReduceMarginRatio || "0",
|
|
3019
|
+
...params.newOpenNotionalCap && { newOpenNotionalCap: params.newOpenNotionalCap },
|
|
2762
3020
|
crossMarginEligibility: (_params$crossMarginEl = params.crossMarginEligibility) !== null && _params$crossMarginEl !== void 0 ? _params$crossMarginEl : defaultCrossMarginEligibility
|
|
2763
3021
|
});
|
|
2764
3022
|
};
|
|
@@ -2770,17 +3028,7 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends requ
|
|
|
2770
3028
|
return new MsgUpdateDerivativeMarketV2(params);
|
|
2771
3029
|
}
|
|
2772
3030
|
toProto() {
|
|
2773
|
-
|
|
2774
|
-
return createMessage$7({
|
|
2775
|
-
...initialParams,
|
|
2776
|
-
newMinNotional: (0, __injectivelabs_utils.toChainFormat)(initialParams.newMinNotional || "0").toFixed(),
|
|
2777
|
-
newMinQuantityTickSize: (0, __injectivelabs_utils.toChainFormat)(initialParams.newMinQuantityTickSize || "0").toFixed(),
|
|
2778
|
-
newMinPriceTickSize: (0, __injectivelabs_utils.toChainFormat)(initialParams.newMinPriceTickSize || "0").toFixed(),
|
|
2779
|
-
newInitialMarginRatio: (0, __injectivelabs_utils.toChainFormat)(initialParams.newInitialMarginRatio || "0").toFixed(),
|
|
2780
|
-
newMaintenanceMarginRatio: (0, __injectivelabs_utils.toChainFormat)(initialParams.newMaintenanceMarginRatio || "0").toFixed(),
|
|
2781
|
-
newReduceMarginRatio: (0, __injectivelabs_utils.toChainFormat)(initialParams.newReduceMarginRatio || "0").toFixed(),
|
|
2782
|
-
crossMarginEligibility: initialParams.crossMarginEligibility
|
|
2783
|
-
});
|
|
3031
|
+
return createMessage$7(this.params);
|
|
2784
3032
|
}
|
|
2785
3033
|
toData() {
|
|
2786
3034
|
const proto = this.toProto();
|
|
@@ -2804,6 +3052,7 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends requ
|
|
|
2804
3052
|
new_initial_margin_ratio: params.newInitialMarginRatio,
|
|
2805
3053
|
new_maintenance_margin_ratio: params.newMaintenanceMarginRatio,
|
|
2806
3054
|
new_reduce_margin_ratio: params.newReduceMarginRatio,
|
|
3055
|
+
...params.newOpenNotionalCap && { new_open_notional_cap: toOpenNotionalCap(params.newOpenNotionalCap) },
|
|
2807
3056
|
cross_margin_eligibility: (_params$crossMarginEl2 = params.crossMarginEligibility) !== null && _params$crossMarginEl2 !== void 0 ? _params$crossMarginEl2 : defaultCrossMarginEligibility
|
|
2808
3057
|
}
|
|
2809
3058
|
};
|
|
@@ -2823,7 +3072,7 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends requ
|
|
|
2823
3072
|
};
|
|
2824
3073
|
}
|
|
2825
3074
|
toEip712V2() {
|
|
2826
|
-
var _params$crossMarginEl3;
|
|
3075
|
+
var _toOpenNotionalCap, _params$crossMarginEl3;
|
|
2827
3076
|
const { params } = this;
|
|
2828
3077
|
return {
|
|
2829
3078
|
"@type": "/injective.exchange.v2.MsgUpdateDerivativeMarket",
|
|
@@ -2836,7 +3085,7 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends requ
|
|
|
2836
3085
|
new_initial_margin_ratio: require_utils.numberToCosmosSdkDecString(params.newInitialMarginRatio || "0"),
|
|
2837
3086
|
new_maintenance_margin_ratio: require_utils.numberToCosmosSdkDecString(params.newMaintenanceMarginRatio || "0"),
|
|
2838
3087
|
new_reduce_margin_ratio: require_utils.numberToCosmosSdkDecString(params.newReduceMarginRatio || "0"),
|
|
2839
|
-
new_open_notional_cap: {},
|
|
3088
|
+
new_open_notional_cap: (_toOpenNotionalCap = toOpenNotionalCap(params.newOpenNotionalCap, require_utils.numberToCosmosSdkDecString)) !== null && _toOpenNotionalCap !== void 0 ? _toOpenNotionalCap : {},
|
|
2840
3089
|
cross_margin_eligibility: __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_proposal_pb.CrossMarginEligibility[(_params$crossMarginEl3 = params.crossMarginEligibility) !== null && _params$crossMarginEl3 !== void 0 ? _params$crossMarginEl3 : defaultCrossMarginEligibility]
|
|
2841
3090
|
};
|
|
2842
3091
|
}
|
|
@@ -3093,16 +3342,7 @@ var MsgInstantSpotMarketLaunchV2 = class MsgInstantSpotMarketLaunchV2 extends re
|
|
|
3093
3342
|
return new MsgInstantSpotMarketLaunchV2(params);
|
|
3094
3343
|
}
|
|
3095
3344
|
toProto() {
|
|
3096
|
-
|
|
3097
|
-
return createMessage$4({
|
|
3098
|
-
...initialParams,
|
|
3099
|
-
market: {
|
|
3100
|
-
...initialParams.market,
|
|
3101
|
-
minPriceTickSize: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.minPriceTickSize).toFixed(),
|
|
3102
|
-
minQuantityTickSize: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.minQuantityTickSize).toFixed(),
|
|
3103
|
-
minNotional: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.minNotional).toFixed()
|
|
3104
|
-
}
|
|
3105
|
-
});
|
|
3345
|
+
return createMessage$4(this.params);
|
|
3106
3346
|
}
|
|
3107
3347
|
toData() {
|
|
3108
3348
|
const proto = this.toProto();
|
|
@@ -3167,6 +3407,59 @@ var MsgInstantSpotMarketLaunchV2 = class MsgInstantSpotMarketLaunchV2 extends re
|
|
|
3167
3407
|
}
|
|
3168
3408
|
};
|
|
3169
3409
|
|
|
3410
|
+
//#endregion
|
|
3411
|
+
//#region src/core/modules/exchange/msgs/MsgLiquidateCrossMarginPoolV2.ts
|
|
3412
|
+
/**
|
|
3413
|
+
* @category Messages
|
|
3414
|
+
*/
|
|
3415
|
+
var MsgLiquidateCrossMarginPoolV2 = class MsgLiquidateCrossMarginPoolV2 extends require_MsgBase.MsgBase {
|
|
3416
|
+
static fromJSON(params) {
|
|
3417
|
+
return new MsgLiquidateCrossMarginPoolV2(params);
|
|
3418
|
+
}
|
|
3419
|
+
toProto() {
|
|
3420
|
+
const { params } = this;
|
|
3421
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgLiquidateCrossMarginPool.create({
|
|
3422
|
+
sender: params.sender,
|
|
3423
|
+
subaccountId: params.subaccountId,
|
|
3424
|
+
quoteDenom: params.quoteDenom
|
|
3425
|
+
});
|
|
3426
|
+
}
|
|
3427
|
+
toData() {
|
|
3428
|
+
const proto = this.toProto();
|
|
3429
|
+
return {
|
|
3430
|
+
"@type": "/injective.exchange.v2.MsgLiquidateCrossMarginPool",
|
|
3431
|
+
...proto
|
|
3432
|
+
};
|
|
3433
|
+
}
|
|
3434
|
+
toAmino() {
|
|
3435
|
+
const proto = this.toProto();
|
|
3436
|
+
return {
|
|
3437
|
+
type: "exchange/MsgLiquidateCrossMarginPool",
|
|
3438
|
+
value: {
|
|
3439
|
+
sender: proto.sender,
|
|
3440
|
+
subaccount_id: proto.subaccountId,
|
|
3441
|
+
quote_denom: proto.quoteDenom
|
|
3442
|
+
}
|
|
3443
|
+
};
|
|
3444
|
+
}
|
|
3445
|
+
toWeb3Gw() {
|
|
3446
|
+
const { value } = this.toAmino();
|
|
3447
|
+
return {
|
|
3448
|
+
"@type": "/injective.exchange.v2.MsgLiquidateCrossMarginPool",
|
|
3449
|
+
...value
|
|
3450
|
+
};
|
|
3451
|
+
}
|
|
3452
|
+
toDirectSign() {
|
|
3453
|
+
return {
|
|
3454
|
+
type: "/injective.exchange.v2.MsgLiquidateCrossMarginPool",
|
|
3455
|
+
message: this.toProto()
|
|
3456
|
+
};
|
|
3457
|
+
}
|
|
3458
|
+
toBinary() {
|
|
3459
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgLiquidateCrossMarginPool.toBinary(this.toProto());
|
|
3460
|
+
}
|
|
3461
|
+
};
|
|
3462
|
+
|
|
3170
3463
|
//#endregion
|
|
3171
3464
|
//#region src/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.ts
|
|
3172
3465
|
const createLimitOrder$3 = (params) => {
|
|
@@ -3992,6 +4285,113 @@ var MsgCreateDerivativeMarketOrderV2 = class MsgCreateDerivativeMarketOrderV2 ex
|
|
|
3992
4285
|
}
|
|
3993
4286
|
};
|
|
3994
4287
|
|
|
4288
|
+
//#endregion
|
|
4289
|
+
//#region src/core/modules/exchange/msgs/MsgUpdateSubaccountRiskProfileV2.ts
|
|
4290
|
+
const riskProfileToWeb3Gw = (riskProfile, useEnumNames = false) => {
|
|
4291
|
+
if (!riskProfile) return;
|
|
4292
|
+
return {
|
|
4293
|
+
mode: useEnumNames ? `RISK_MODE_${__injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_exchange_pb.RiskMode[riskProfile.mode]}` : riskProfile.mode,
|
|
4294
|
+
reservation_policy: useEnumNames ? `RESERVATION_POLICY_${__injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_exchange_pb.ReservationPolicy[riskProfile.reservationPolicy]}` : riskProfile.reservationPolicy,
|
|
4295
|
+
credit_line_id: riskProfile.creditLineId
|
|
4296
|
+
};
|
|
4297
|
+
};
|
|
4298
|
+
/**
|
|
4299
|
+
* @category Messages
|
|
4300
|
+
*/
|
|
4301
|
+
var MsgUpdateSubaccountRiskProfileV2 = class MsgUpdateSubaccountRiskProfileV2 extends require_MsgBase.MsgBase {
|
|
4302
|
+
static fromJSON(params) {
|
|
4303
|
+
return new MsgUpdateSubaccountRiskProfileV2(params);
|
|
4304
|
+
}
|
|
4305
|
+
toProto() {
|
|
4306
|
+
const { params } = this;
|
|
4307
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgUpdateSubaccountRiskProfile.create({
|
|
4308
|
+
sender: params.sender,
|
|
4309
|
+
subaccountId: params.subaccountId,
|
|
4310
|
+
riskProfile: params.riskProfile
|
|
4311
|
+
});
|
|
4312
|
+
}
|
|
4313
|
+
toData() {
|
|
4314
|
+
const proto = this.toProto();
|
|
4315
|
+
return {
|
|
4316
|
+
"@type": "/injective.exchange.v2.MsgUpdateSubaccountRiskProfile",
|
|
4317
|
+
...proto
|
|
4318
|
+
};
|
|
4319
|
+
}
|
|
4320
|
+
toAmino() {
|
|
4321
|
+
const proto = this.toProto();
|
|
4322
|
+
return {
|
|
4323
|
+
type: "exchange/MsgUpdateSubaccountRiskProfile",
|
|
4324
|
+
value: {
|
|
4325
|
+
sender: proto.sender,
|
|
4326
|
+
subaccount_id: proto.subaccountId,
|
|
4327
|
+
risk_profile: riskProfileToWeb3Gw(proto.riskProfile)
|
|
4328
|
+
}
|
|
4329
|
+
};
|
|
4330
|
+
}
|
|
4331
|
+
toWeb3Gw() {
|
|
4332
|
+
const { value } = this.toAmino();
|
|
4333
|
+
return {
|
|
4334
|
+
"@type": "/injective.exchange.v2.MsgUpdateSubaccountRiskProfile",
|
|
4335
|
+
...value
|
|
4336
|
+
};
|
|
4337
|
+
}
|
|
4338
|
+
toEip712V2() {
|
|
4339
|
+
const { params } = this;
|
|
4340
|
+
return {
|
|
4341
|
+
...this.toWeb3Gw(),
|
|
4342
|
+
risk_profile: riskProfileToWeb3Gw(params.riskProfile, true)
|
|
4343
|
+
};
|
|
4344
|
+
}
|
|
4345
|
+
toEip712() {
|
|
4346
|
+
const { value, type } = this.toAmino();
|
|
4347
|
+
const riskProfile = value.risk_profile;
|
|
4348
|
+
return {
|
|
4349
|
+
type,
|
|
4350
|
+
value: {
|
|
4351
|
+
...value,
|
|
4352
|
+
risk_profile: {
|
|
4353
|
+
mode: riskProfile.mode,
|
|
4354
|
+
reservation_policy: riskProfile.reservation_policy
|
|
4355
|
+
}
|
|
4356
|
+
}
|
|
4357
|
+
};
|
|
4358
|
+
}
|
|
4359
|
+
toEip712Types() {
|
|
4360
|
+
const map = /* @__PURE__ */ new Map();
|
|
4361
|
+
map.set("TypeRiskProfile", [{
|
|
4362
|
+
name: "mode",
|
|
4363
|
+
type: "int32"
|
|
4364
|
+
}, {
|
|
4365
|
+
name: "reservation_policy",
|
|
4366
|
+
type: "int32"
|
|
4367
|
+
}]);
|
|
4368
|
+
map.set("MsgValue", [
|
|
4369
|
+
{
|
|
4370
|
+
name: "sender",
|
|
4371
|
+
type: "string"
|
|
4372
|
+
},
|
|
4373
|
+
{
|
|
4374
|
+
name: "subaccount_id",
|
|
4375
|
+
type: "string"
|
|
4376
|
+
},
|
|
4377
|
+
{
|
|
4378
|
+
name: "risk_profile",
|
|
4379
|
+
type: "TypeRiskProfile"
|
|
4380
|
+
}
|
|
4381
|
+
]);
|
|
4382
|
+
return map;
|
|
4383
|
+
}
|
|
4384
|
+
toDirectSign() {
|
|
4385
|
+
return {
|
|
4386
|
+
type: "/injective.exchange.v2.MsgUpdateSubaccountRiskProfile",
|
|
4387
|
+
message: this.toProto()
|
|
4388
|
+
};
|
|
4389
|
+
}
|
|
4390
|
+
toBinary() {
|
|
4391
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgUpdateSubaccountRiskProfile.toBinary(this.toProto());
|
|
4392
|
+
}
|
|
4393
|
+
};
|
|
4394
|
+
|
|
3995
4395
|
//#endregion
|
|
3996
4396
|
//#region src/core/modules/exchange/msgs/MsgAdminUpdateBinaryOptionsMarket.ts
|
|
3997
4397
|
const createMessage$3 = (params) => {
|
|
@@ -4851,7 +5251,8 @@ const createMessage = (params) => {
|
|
|
4851
5251
|
quoteDenom: params.market.quoteDenom,
|
|
4852
5252
|
minPriceTickSize: params.market.minPriceTickSize,
|
|
4853
5253
|
minQuantityTickSize: params.market.minQuantityTickSize,
|
|
4854
|
-
minNotional: params.market.minNotional
|
|
5254
|
+
minNotional: params.market.minNotional,
|
|
5255
|
+
...params.market.openNotionalCap && { openNotionalCap: params.market.openNotionalCap }
|
|
4855
5256
|
});
|
|
4856
5257
|
};
|
|
4857
5258
|
/**
|
|
@@ -4862,18 +5263,7 @@ var MsgInstantBinaryOptionsMarketLaunchV2 = class MsgInstantBinaryOptionsMarketL
|
|
|
4862
5263
|
return new MsgInstantBinaryOptionsMarketLaunchV2(params);
|
|
4863
5264
|
}
|
|
4864
5265
|
toProto() {
|
|
4865
|
-
|
|
4866
|
-
return createMessage({
|
|
4867
|
-
...initialParams,
|
|
4868
|
-
market: {
|
|
4869
|
-
...initialParams.market,
|
|
4870
|
-
minPriceTickSize: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.minPriceTickSize).toFixed(),
|
|
4871
|
-
makerFeeRate: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.makerFeeRate).toFixed(),
|
|
4872
|
-
takerFeeRate: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.takerFeeRate).toFixed(),
|
|
4873
|
-
minQuantityTickSize: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.minQuantityTickSize).toFixed(),
|
|
4874
|
-
minNotional: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.minNotional).toFixed()
|
|
4875
|
-
}
|
|
4876
|
-
});
|
|
5266
|
+
return createMessage(this.params);
|
|
4877
5267
|
}
|
|
4878
5268
|
toData() {
|
|
4879
5269
|
const proto = this.toProto();
|
|
@@ -4901,7 +5291,8 @@ var MsgInstantBinaryOptionsMarketLaunchV2 = class MsgInstantBinaryOptionsMarketL
|
|
|
4901
5291
|
quote_denom: params.market.quoteDenom,
|
|
4902
5292
|
min_price_tick_size: params.market.minPriceTickSize,
|
|
4903
5293
|
min_quantity_tick_size: params.market.minQuantityTickSize,
|
|
4904
|
-
min_notional: params.market.minNotional
|
|
5294
|
+
min_notional: params.market.minNotional,
|
|
5295
|
+
...params.market.openNotionalCap && { open_notional_cap: toOpenNotionalCap(params.market.openNotionalCap) }
|
|
4905
5296
|
}
|
|
4906
5297
|
};
|
|
4907
5298
|
}
|
|
@@ -4916,6 +5307,7 @@ var MsgInstantBinaryOptionsMarketLaunchV2 = class MsgInstantBinaryOptionsMarketL
|
|
|
4916
5307
|
throw new __injectivelabs_exceptions.GeneralException(/* @__PURE__ */ new Error("EIP712 v1 is not supported for MsgInstantBinaryOptionsMarketLaunch, use toEip712V2 instead."));
|
|
4917
5308
|
}
|
|
4918
5309
|
toEip712V2() {
|
|
5310
|
+
var _toOpenNotionalCap;
|
|
4919
5311
|
const { params } = this;
|
|
4920
5312
|
return {
|
|
4921
5313
|
...this.toWeb3Gw(),
|
|
@@ -4925,7 +5317,7 @@ var MsgInstantBinaryOptionsMarketLaunchV2 = class MsgInstantBinaryOptionsMarketL
|
|
|
4925
5317
|
taker_fee_rate: require_utils.numberToCosmosSdkDecString(params.market.takerFeeRate),
|
|
4926
5318
|
maker_fee_rate: require_utils.numberToCosmosSdkDecString(params.market.makerFeeRate),
|
|
4927
5319
|
oracle_type: __injectivelabs_core_proto_ts_v2_generated_injective_oracle_v1beta1_oracle_pb.OracleType[params.market.oracleType],
|
|
4928
|
-
open_notional_cap: {}
|
|
5320
|
+
open_notional_cap: (_toOpenNotionalCap = toOpenNotionalCap(params.market.openNotionalCap, require_utils.numberToCosmosSdkDecString)) !== null && _toOpenNotionalCap !== void 0 ? _toOpenNotionalCap : {}
|
|
4929
5321
|
};
|
|
4930
5322
|
}
|
|
4931
5323
|
toDirectSign() {
|
|
@@ -10672,6 +11064,18 @@ Object.defineProperty(exports, 'GrantAuthorizationType', {
|
|
|
10672
11064
|
return GrantAuthorizationType;
|
|
10673
11065
|
}
|
|
10674
11066
|
});
|
|
11067
|
+
Object.defineProperty(exports, 'MsgActivatePostOnlyModeV2', {
|
|
11068
|
+
enumerable: true,
|
|
11069
|
+
get: function () {
|
|
11070
|
+
return MsgActivatePostOnlyModeV2;
|
|
11071
|
+
}
|
|
11072
|
+
});
|
|
11073
|
+
Object.defineProperty(exports, 'MsgActivateStakeGrantV2', {
|
|
11074
|
+
enumerable: true,
|
|
11075
|
+
get: function () {
|
|
11076
|
+
return MsgActivateStakeGrantV2;
|
|
11077
|
+
}
|
|
11078
|
+
});
|
|
10675
11079
|
Object.defineProperty(exports, 'MsgAdminUpdateBinaryOptionsMarket', {
|
|
10676
11080
|
enumerable: true,
|
|
10677
11081
|
get: function () {
|
|
@@ -11050,6 +11454,12 @@ Object.defineProperty(exports, 'MsgInstantiateContract', {
|
|
|
11050
11454
|
return MsgInstantiateContract;
|
|
11051
11455
|
}
|
|
11052
11456
|
});
|
|
11457
|
+
Object.defineProperty(exports, 'MsgLiquidateCrossMarginPoolV2', {
|
|
11458
|
+
enumerable: true,
|
|
11459
|
+
get: function () {
|
|
11460
|
+
return MsgLiquidateCrossMarginPoolV2;
|
|
11461
|
+
}
|
|
11462
|
+
});
|
|
11053
11463
|
Object.defineProperty(exports, 'MsgLiquidatePosition', {
|
|
11054
11464
|
enumerable: true,
|
|
11055
11465
|
get: function () {
|
|
@@ -11080,6 +11490,12 @@ Object.defineProperty(exports, 'MsgMultiSend', {
|
|
|
11080
11490
|
return MsgMultiSend;
|
|
11081
11491
|
}
|
|
11082
11492
|
});
|
|
11493
|
+
Object.defineProperty(exports, 'MsgOffsetPositionV2', {
|
|
11494
|
+
enumerable: true,
|
|
11495
|
+
get: function () {
|
|
11496
|
+
return MsgOffsetPositionV2;
|
|
11497
|
+
}
|
|
11498
|
+
});
|
|
11083
11499
|
Object.defineProperty(exports, 'MsgPrivilegedExecuteContract', {
|
|
11084
11500
|
enumerable: true,
|
|
11085
11501
|
get: function () {
|
|
@@ -11176,6 +11592,12 @@ Object.defineProperty(exports, 'MsgStoreCode', {
|
|
|
11176
11592
|
return MsgStoreCode;
|
|
11177
11593
|
}
|
|
11178
11594
|
});
|
|
11595
|
+
Object.defineProperty(exports, 'MsgSubaccountTransferV2', {
|
|
11596
|
+
enumerable: true,
|
|
11597
|
+
get: function () {
|
|
11598
|
+
return MsgSubaccountTransferV2;
|
|
11599
|
+
}
|
|
11600
|
+
});
|
|
11179
11601
|
Object.defineProperty(exports, 'MsgSubmitGenericProposal', {
|
|
11180
11602
|
enumerable: true,
|
|
11181
11603
|
get: function () {
|
|
@@ -11284,6 +11706,12 @@ Object.defineProperty(exports, 'MsgUpdateSpotMarketV2', {
|
|
|
11284
11706
|
return MsgUpdateSpotMarketV2;
|
|
11285
11707
|
}
|
|
11286
11708
|
});
|
|
11709
|
+
Object.defineProperty(exports, 'MsgUpdateSubaccountRiskProfileV2', {
|
|
11710
|
+
enumerable: true,
|
|
11711
|
+
get: function () {
|
|
11712
|
+
return MsgUpdateSubaccountRiskProfileV2;
|
|
11713
|
+
}
|
|
11714
|
+
});
|
|
11287
11715
|
Object.defineProperty(exports, 'MsgVote', {
|
|
11288
11716
|
enumerable: true,
|
|
11289
11717
|
get: function () {
|