@injectivelabs/sdk-ts 1.20.18 → 1.20.20
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-CUdc9vEY.d.cts → BaseGrpcConsumer-BbYfKIY-.d.cts} +1 -1
- package/dist/cjs/{MsgSetDenomMetadata-BQbzOfkE.cjs → MsgSetDenomMetadata-tA6IVCia.cjs} +82 -65
- package/dist/cjs/{StreamManagerV2-Bdqr75jP.cjs → StreamManagerV2-FrbJ3m3S.cjs} +40 -39
- package/dist/cjs/client/abacus.d.cts +4 -4
- package/dist/cjs/client/chain.d.cts +9 -9
- package/dist/cjs/client/indexer.cjs +1 -1
- package/dist/cjs/client/indexer.d.cts +9 -9
- package/dist/cjs/client/olp.d.cts +4 -4
- package/dist/cjs/client/tcAbacus.d.cts +4 -4
- package/dist/cjs/client/wasm.d.cts +3 -3
- package/dist/cjs/core/accounts.d.cts +9 -9
- package/dist/cjs/core/modules.cjs +2 -2
- package/dist/cjs/core/modules.d.cts +10 -10
- package/dist/cjs/core/tx.d.cts +9 -9
- package/dist/cjs/cosmjs.d.cts +2 -2
- package/dist/cjs/exports.d.cts +2 -2
- package/dist/cjs/{index-2SjhKIkh.d.cts → index-BefPSiO1.d.cts} +1 -1
- package/dist/cjs/{index-BG-nzcNI.d.cts → index-BfWPeSKh.d.cts} +3 -3
- package/dist/cjs/{index-BOj_EXVL.d.cts → index-CBB2n9hg.d.cts} +1 -1
- package/dist/cjs/{index-CtkDjIwH.d.cts → index-D72KqWEz.d.cts} +6 -6
- package/dist/cjs/{index-DmanIXY9.d.cts → index-D_BlRLk1.d.cts} +1 -1
- package/dist/cjs/{index-BaPRB8bU.d.cts → index-d7_qx6Ra.d.cts} +1 -1
- package/dist/cjs/{index-D5xZvGoG.d.cts → index-owRUyNL3.d.cts} +1 -1
- package/dist/cjs/{index-BBL8kiSg.d.cts → index-q5YtgJu7.d.cts} +175 -122
- package/dist/cjs/index.cjs +3 -3
- package/dist/cjs/index.d.cts +10 -10
- package/dist/cjs/proto/cosmos-tx.d.cts +1 -1
- package/dist/cjs/service.d.cts +3 -3
- package/dist/cjs/{tx_pb-BmZhAoWC.d.cts → tx_pb-wznwSZgU.d.cts} +4 -4
- package/dist/cjs/types.d.cts +2 -2
- package/dist/cjs/utils.d.cts +9 -9
- package/dist/esm/{BaseGrpcConsumer-DnPFbzJi.d.ts → BaseGrpcConsumer-Dyo1rsKM.d.ts} +1 -1
- package/dist/esm/{MsgSetDenomMetadata-B4Ke5u9_.js → MsgSetDenomMetadata-DGdnd-QI.js} +81 -64
- package/dist/esm/{StreamManagerV2-BSUBca8a.js → StreamManagerV2-B_bsAI2j.js} +40 -39
- package/dist/esm/client/abacus.d.ts +4 -4
- package/dist/esm/client/chain.d.ts +9 -9
- package/dist/esm/client/indexer.d.ts +9 -9
- package/dist/esm/client/indexer.js +1 -1
- package/dist/esm/client/olp.d.ts +4 -4
- package/dist/esm/client/tcAbacus.d.ts +4 -4
- package/dist/esm/client/wasm.d.ts +3 -3
- package/dist/esm/core/accounts.d.ts +9 -9
- package/dist/esm/core/modules.d.ts +10 -10
- package/dist/esm/core/modules.js +2 -2
- package/dist/esm/core/tx.d.ts +9 -9
- package/dist/esm/cosmjs.d.ts +2 -2
- package/dist/esm/exports.d.ts +2 -2
- package/dist/esm/{index-BJJNBulw.d.ts → index-Bmd15r-k.d.ts} +3 -3
- package/dist/esm/{index-DcPKOj0m.d.ts → index-Cemed7AZ.d.ts} +6 -6
- package/dist/esm/{index-D3kPbyYA.d.ts → index-CkEs7_cy.d.ts} +1 -1
- package/dist/esm/{index-B73CV7nM.d.ts → index-Cq2dSdWc.d.ts} +1 -1
- package/dist/esm/{index-C_g6Cbjb.d.ts → index-DRlTMfCw.d.ts} +175 -122
- package/dist/esm/{index-CFTXl2dv.d.ts → index-DcfFcBBT.d.ts} +1 -1
- package/dist/esm/{index-81riAHnR.d.ts → index-VhsnRms4.d.ts} +1 -1
- package/dist/esm/{index-SZeXNgo8.d.ts → index-lpl00nu5.d.ts} +1 -1
- package/dist/esm/index.d.ts +10 -10
- package/dist/esm/index.js +3 -3
- package/dist/esm/proto/cosmos-tx.d.ts +1 -1
- package/dist/esm/service.d.ts +3 -3
- package/dist/esm/{tx_pb-DhFh6sWY.d.ts → tx_pb-DZQILTFk.d.ts} +4 -4
- package/dist/esm/types.d.ts +2 -2
- package/dist/esm/utils.d.ts +9 -9
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _t as ClientStreamingCall, d as GrpcWebTransportAdditionalOptions, gt as DuplexStreamingCall, ht as UnaryCall, mt as RpcTransport, pt as RpcOptions, vt as ServerStreamingCall, yt as MethodInfo } from "./index-
|
|
1
|
+
import { _t as ClientStreamingCall, d as GrpcWebTransportAdditionalOptions, gt as DuplexStreamingCall, ht as UnaryCall, mt as RpcTransport, pt as RpcOptions, vt as ServerStreamingCall, yt as MethodInfo } from "./index-BfWPeSKh.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/client/base/GrpcWebRpcTransport.d.ts
|
|
4
4
|
|
|
@@ -2746,6 +2746,7 @@ var MsgCreateSpotMarketOrderV2 = class MsgCreateSpotMarketOrderV2 extends requir
|
|
|
2746
2746
|
|
|
2747
2747
|
//#endregion
|
|
2748
2748
|
//#region src/core/modules/exchange/msgs/MsgUpdateDerivativeMarketV2.ts
|
|
2749
|
+
const defaultCrossMarginEligibility = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_proposal_pb.CrossMarginEligibility.CM_ELIGIBILITY_UNSPECIFIED;
|
|
2749
2750
|
const createMessage$7 = (params) => {
|
|
2750
2751
|
var _params$crossMarginEl;
|
|
2751
2752
|
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgUpdateDerivativeMarket.create({
|
|
@@ -2758,7 +2759,7 @@ const createMessage$7 = (params) => {
|
|
|
2758
2759
|
newInitialMarginRatio: params.newInitialMarginRatio || "0",
|
|
2759
2760
|
newMaintenanceMarginRatio: params.newMaintenanceMarginRatio || "0",
|
|
2760
2761
|
newReduceMarginRatio: params.newReduceMarginRatio || "0",
|
|
2761
|
-
crossMarginEligibility: (_params$crossMarginEl = params.crossMarginEligibility) !== null && _params$crossMarginEl !== void 0 ? _params$crossMarginEl :
|
|
2762
|
+
crossMarginEligibility: (_params$crossMarginEl = params.crossMarginEligibility) !== null && _params$crossMarginEl !== void 0 ? _params$crossMarginEl : defaultCrossMarginEligibility
|
|
2762
2763
|
});
|
|
2763
2764
|
};
|
|
2764
2765
|
/**
|
|
@@ -2777,7 +2778,8 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends requ
|
|
|
2777
2778
|
newMinPriceTickSize: (0, __injectivelabs_utils.toChainFormat)(initialParams.newMinPriceTickSize || "0").toFixed(),
|
|
2778
2779
|
newInitialMarginRatio: (0, __injectivelabs_utils.toChainFormat)(initialParams.newInitialMarginRatio || "0").toFixed(),
|
|
2779
2780
|
newMaintenanceMarginRatio: (0, __injectivelabs_utils.toChainFormat)(initialParams.newMaintenanceMarginRatio || "0").toFixed(),
|
|
2780
|
-
newReduceMarginRatio: (0, __injectivelabs_utils.toChainFormat)(initialParams.newReduceMarginRatio || "0").toFixed()
|
|
2781
|
+
newReduceMarginRatio: (0, __injectivelabs_utils.toChainFormat)(initialParams.newReduceMarginRatio || "0").toFixed(),
|
|
2782
|
+
crossMarginEligibility: initialParams.crossMarginEligibility
|
|
2781
2783
|
});
|
|
2782
2784
|
}
|
|
2783
2785
|
toData() {
|
|
@@ -2788,6 +2790,7 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends requ
|
|
|
2788
2790
|
};
|
|
2789
2791
|
}
|
|
2790
2792
|
toAmino() {
|
|
2793
|
+
var _params$crossMarginEl2;
|
|
2791
2794
|
const { params } = this;
|
|
2792
2795
|
return {
|
|
2793
2796
|
type: "exchange/MsgUpdateDerivativeMarket",
|
|
@@ -2800,7 +2803,8 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends requ
|
|
|
2800
2803
|
new_min_quantity_tick_size: params.newMinQuantityTickSize,
|
|
2801
2804
|
new_initial_margin_ratio: params.newInitialMarginRatio,
|
|
2802
2805
|
new_maintenance_margin_ratio: params.newMaintenanceMarginRatio,
|
|
2803
|
-
new_reduce_margin_ratio: params.newReduceMarginRatio
|
|
2806
|
+
new_reduce_margin_ratio: params.newReduceMarginRatio,
|
|
2807
|
+
cross_margin_eligibility: (_params$crossMarginEl2 = params.crossMarginEligibility) !== null && _params$crossMarginEl2 !== void 0 ? _params$crossMarginEl2 : defaultCrossMarginEligibility
|
|
2804
2808
|
}
|
|
2805
2809
|
};
|
|
2806
2810
|
}
|
|
@@ -2819,6 +2823,7 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends requ
|
|
|
2819
2823
|
};
|
|
2820
2824
|
}
|
|
2821
2825
|
toEip712V2() {
|
|
2826
|
+
var _params$crossMarginEl3;
|
|
2822
2827
|
const { params } = this;
|
|
2823
2828
|
return {
|
|
2824
2829
|
"@type": "/injective.exchange.v2.MsgUpdateDerivativeMarket",
|
|
@@ -2831,7 +2836,8 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends requ
|
|
|
2831
2836
|
new_initial_margin_ratio: require_utils.numberToCosmosSdkDecString(params.newInitialMarginRatio || "0"),
|
|
2832
2837
|
new_maintenance_margin_ratio: require_utils.numberToCosmosSdkDecString(params.newMaintenanceMarginRatio || "0"),
|
|
2833
2838
|
new_reduce_margin_ratio: require_utils.numberToCosmosSdkDecString(params.newReduceMarginRatio || "0"),
|
|
2834
|
-
new_open_notional_cap: {}
|
|
2839
|
+
new_open_notional_cap: {},
|
|
2840
|
+
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]
|
|
2835
2841
|
};
|
|
2836
2842
|
}
|
|
2837
2843
|
toDirectSign() {
|
|
@@ -4261,58 +4267,6 @@ var MsgCreateBinaryOptionsMarketOrder = class MsgCreateBinaryOptionsMarketOrder
|
|
|
4261
4267
|
}
|
|
4262
4268
|
};
|
|
4263
4269
|
|
|
4264
|
-
//#endregion
|
|
4265
|
-
//#region src/core/modules/exchange/msgs/MsgSetDelegationTransferReceivers.ts
|
|
4266
|
-
/**
|
|
4267
|
-
* @deprecated no longer supported on chain
|
|
4268
|
-
* @category Messages
|
|
4269
|
-
*/
|
|
4270
|
-
var MsgSetDelegationTransferReceivers = class MsgSetDelegationTransferReceivers extends require_MsgBase.MsgBase {
|
|
4271
|
-
static fromJSON(params) {
|
|
4272
|
-
return new MsgSetDelegationTransferReceivers(params);
|
|
4273
|
-
}
|
|
4274
|
-
toProto() {
|
|
4275
|
-
const { params } = this;
|
|
4276
|
-
return {
|
|
4277
|
-
sender: params.sender,
|
|
4278
|
-
receivers: params.receivers
|
|
4279
|
-
};
|
|
4280
|
-
}
|
|
4281
|
-
toData() {
|
|
4282
|
-
const proto = this.toProto();
|
|
4283
|
-
return {
|
|
4284
|
-
"@type": "/injective.exchange.v2.MsgSetDelegationTransferReceivers",
|
|
4285
|
-
...proto
|
|
4286
|
-
};
|
|
4287
|
-
}
|
|
4288
|
-
toAmino() {
|
|
4289
|
-
const proto = this.toProto();
|
|
4290
|
-
return {
|
|
4291
|
-
type: "exchange/MsgSetDelegationTransferReceivers",
|
|
4292
|
-
value: {
|
|
4293
|
-
sender: proto.sender,
|
|
4294
|
-
receivers: proto.receivers
|
|
4295
|
-
}
|
|
4296
|
-
};
|
|
4297
|
-
}
|
|
4298
|
-
toWeb3Gw() {
|
|
4299
|
-
const { value } = this.toAmino();
|
|
4300
|
-
return {
|
|
4301
|
-
"@type": "/injective.exchange.v2.MsgSetDelegationTransferReceivers",
|
|
4302
|
-
...value
|
|
4303
|
-
};
|
|
4304
|
-
}
|
|
4305
|
-
toDirectSign() {
|
|
4306
|
-
return {
|
|
4307
|
-
type: "/injective.exchange.v2.MsgSetDelegationTransferReceivers",
|
|
4308
|
-
message: this.toProto()
|
|
4309
|
-
};
|
|
4310
|
-
}
|
|
4311
|
-
toBinary() {
|
|
4312
|
-
return new Uint8Array(0);
|
|
4313
|
-
}
|
|
4314
|
-
};
|
|
4315
|
-
|
|
4316
4270
|
//#endregion
|
|
4317
4271
|
//#region src/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrderV2.ts
|
|
4318
4272
|
const createLimitOrder = (params) => {
|
|
@@ -4441,6 +4395,58 @@ var MsgCreateBinaryOptionsLimitOrderV2 = class MsgCreateBinaryOptionsLimitOrderV
|
|
|
4441
4395
|
}
|
|
4442
4396
|
};
|
|
4443
4397
|
|
|
4398
|
+
//#endregion
|
|
4399
|
+
//#region src/core/modules/exchange/msgs/MsgSetDelegationTransferReceiversV2.ts
|
|
4400
|
+
/**
|
|
4401
|
+
* @deprecated Delegation transfer receiver support was removed. This message is kept for backward compatibility.
|
|
4402
|
+
* @category Messages
|
|
4403
|
+
*/
|
|
4404
|
+
var MsgSetDelegationTransferReceiversV2 = class MsgSetDelegationTransferReceiversV2 extends require_MsgBase.MsgBase {
|
|
4405
|
+
static fromJSON(params) {
|
|
4406
|
+
return new MsgSetDelegationTransferReceiversV2(params);
|
|
4407
|
+
}
|
|
4408
|
+
toProto() {
|
|
4409
|
+
const { params } = this;
|
|
4410
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgSetDelegationTransferReceivers.create({
|
|
4411
|
+
sender: params.sender,
|
|
4412
|
+
receivers: params.receivers
|
|
4413
|
+
});
|
|
4414
|
+
}
|
|
4415
|
+
toData() {
|
|
4416
|
+
const proto = this.toProto();
|
|
4417
|
+
return {
|
|
4418
|
+
"@type": "/injective.exchange.v2.MsgSetDelegationTransferReceivers",
|
|
4419
|
+
...proto
|
|
4420
|
+
};
|
|
4421
|
+
}
|
|
4422
|
+
toAmino() {
|
|
4423
|
+
const proto = this.toProto();
|
|
4424
|
+
return {
|
|
4425
|
+
type: "exchange/MsgSetDelegationTransferReceivers",
|
|
4426
|
+
value: {
|
|
4427
|
+
sender: proto.sender,
|
|
4428
|
+
receivers: proto.receivers
|
|
4429
|
+
}
|
|
4430
|
+
};
|
|
4431
|
+
}
|
|
4432
|
+
toWeb3Gw() {
|
|
4433
|
+
const { value } = this.toAmino();
|
|
4434
|
+
return {
|
|
4435
|
+
"@type": "/injective.exchange.v2.MsgSetDelegationTransferReceivers",
|
|
4436
|
+
...value
|
|
4437
|
+
};
|
|
4438
|
+
}
|
|
4439
|
+
toDirectSign() {
|
|
4440
|
+
return {
|
|
4441
|
+
type: "/injective.exchange.v2.MsgSetDelegationTransferReceivers",
|
|
4442
|
+
message: this.toProto()
|
|
4443
|
+
};
|
|
4444
|
+
}
|
|
4445
|
+
toBinary() {
|
|
4446
|
+
return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_tx_pb.MsgSetDelegationTransferReceivers.toBinary(this.toProto());
|
|
4447
|
+
}
|
|
4448
|
+
};
|
|
4449
|
+
|
|
4444
4450
|
//#endregion
|
|
4445
4451
|
//#region src/core/modules/exchange/msgs/MsgInstantBinaryOptionsMarketLaunch.ts
|
|
4446
4452
|
const createMessage$2 = (params) => {
|
|
@@ -6124,7 +6130,8 @@ const createPerpetualMarketLaunch = (params) => {
|
|
|
6124
6130
|
minPriceTickSize: params.market.minPriceTickSize,
|
|
6125
6131
|
minQuantityTickSize: params.market.minQuantityTickSize,
|
|
6126
6132
|
minNotional: params.market.minNotional,
|
|
6127
|
-
reduceMarginRatio: params.market.reduceMarginRatio
|
|
6133
|
+
reduceMarginRatio: params.market.reduceMarginRatio,
|
|
6134
|
+
crossMarginEligibility: params.market.crossMarginEligible
|
|
6128
6135
|
};
|
|
6129
6136
|
if (params.market.adminInfo) content.adminInfo = {
|
|
6130
6137
|
admin: params.market.adminInfo.admin,
|
|
@@ -6152,7 +6159,8 @@ var MsgSubmitProposalPerpetualMarketLaunchV2 = class MsgSubmitProposalPerpetualM
|
|
|
6152
6159
|
takerFeeRate: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.takerFeeRate).toFixed(),
|
|
6153
6160
|
minQuantityTickSize: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.minQuantityTickSize).toFixed(),
|
|
6154
6161
|
minNotional: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.minNotional).toFixed(),
|
|
6155
|
-
reduceMarginRatio: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.reduceMarginRatio).toFixed()
|
|
6162
|
+
reduceMarginRatio: (0, __injectivelabs_utils.toChainFormat)(initialParams.market.reduceMarginRatio).toFixed(),
|
|
6163
|
+
crossMarginEligibility: initialParams.market.crossMarginEligible
|
|
6156
6164
|
}
|
|
6157
6165
|
};
|
|
6158
6166
|
const depositParams = __injectivelabs_core_proto_ts_v2_generated_cosmos_base_v1beta1_coin_pb.Coin.create({
|
|
@@ -6202,7 +6210,8 @@ var MsgSubmitProposalPerpetualMarketLaunchV2 = class MsgSubmitProposalPerpetualM
|
|
|
6202
6210
|
min_notional: content.minNotional,
|
|
6203
6211
|
admin_info: content.adminInfo || null,
|
|
6204
6212
|
reduce_margin_ratio: content.reduceMarginRatio,
|
|
6205
|
-
open_notional_cap: { uncapped: {} }
|
|
6213
|
+
open_notional_cap: { uncapped: {} },
|
|
6214
|
+
cross_margin_eligible: content.crossMarginEligible
|
|
6206
6215
|
}
|
|
6207
6216
|
},
|
|
6208
6217
|
initial_deposit: [{
|
|
@@ -6246,7 +6255,8 @@ var MsgSubmitProposalPerpetualMarketLaunchV2 = class MsgSubmitProposalPerpetualM
|
|
|
6246
6255
|
min_notional: (0, __injectivelabs_utils.toChainFormat)(params.market.minNotional).toFixed(),
|
|
6247
6256
|
min_quantity_tick_size: (0, __injectivelabs_utils.toChainFormat)(params.market.minQuantityTickSize).toFixed(),
|
|
6248
6257
|
reduce_margin_ratio: (0, __injectivelabs_utils.toChainFormat)(params.market.reduceMarginRatio).toFixed(),
|
|
6249
|
-
open_notional_cap: { uncapped: {} }
|
|
6258
|
+
open_notional_cap: { uncapped: {} },
|
|
6259
|
+
cross_margin_eligible: params.market.crossMarginEligible
|
|
6250
6260
|
}
|
|
6251
6261
|
}
|
|
6252
6262
|
}
|
|
@@ -6274,7 +6284,8 @@ var MsgSubmitProposalPerpetualMarketLaunchV2 = class MsgSubmitProposalPerpetualM
|
|
|
6274
6284
|
min_quantity_tick_size: require_utils.numberToCosmosSdkDecString(params.market.minQuantityTickSize),
|
|
6275
6285
|
admin_info: adminInfo,
|
|
6276
6286
|
reduce_margin_ratio: require_utils.numberToCosmosSdkDecString(params.market.reduceMarginRatio),
|
|
6277
|
-
open_notional_cap: { uncapped: {} }
|
|
6287
|
+
open_notional_cap: { uncapped: {} },
|
|
6288
|
+
cross_margin_eligible: params.market.crossMarginEligible
|
|
6278
6289
|
}
|
|
6279
6290
|
};
|
|
6280
6291
|
}
|
|
@@ -8339,6 +8350,7 @@ var MsgCreateRateLimit = class MsgCreateRateLimit extends require_MsgBase.MsgBas
|
|
|
8339
8350
|
tokenAddress: params.tokenAddress,
|
|
8340
8351
|
tokenDecimals: Number(params.tokenDecimals),
|
|
8341
8352
|
tokenPriceId: params.tokenPriceId,
|
|
8353
|
+
tokenOracleType: params.tokenOracleType,
|
|
8342
8354
|
rateLimitUsd: (0, __injectivelabs_utils.toChainFormat)(params.rateLimitInUsd).toFixed(),
|
|
8343
8355
|
absoluteMintLimit: (0, __injectivelabs_utils.toBigNumber)((_this$params$absolute = this.params.absoluteMintLimit) !== null && _this$params$absolute !== void 0 ? _this$params$absolute : 0).toFixed(),
|
|
8344
8356
|
rateLimitWindow: BigInt(params.rateLimitWindow)
|
|
@@ -8363,7 +8375,8 @@ var MsgCreateRateLimit = class MsgCreateRateLimit extends require_MsgBase.MsgBas
|
|
|
8363
8375
|
token_price_id: params.tokenPriceId,
|
|
8364
8376
|
rate_limit_usd: params.rateLimitInUsd,
|
|
8365
8377
|
absolute_mint_limit: (0, __injectivelabs_utils.toBigNumber)((_this$params$absolute2 = this.params.absoluteMintLimit) !== null && _this$params$absolute2 !== void 0 ? _this$params$absolute2 : 0).toFixed(),
|
|
8366
|
-
rate_limit_window: params.rateLimitWindow.toString()
|
|
8378
|
+
rate_limit_window: params.rateLimitWindow.toString(),
|
|
8379
|
+
token_oracle_type: params.tokenOracleType
|
|
8367
8380
|
}
|
|
8368
8381
|
};
|
|
8369
8382
|
}
|
|
@@ -8374,6 +8387,7 @@ var MsgCreateRateLimit = class MsgCreateRateLimit extends require_MsgBase.MsgBas
|
|
|
8374
8387
|
const { params } = this;
|
|
8375
8388
|
return {
|
|
8376
8389
|
...this.toWeb3Gw(),
|
|
8390
|
+
token_oracle_type: __injectivelabs_core_proto_ts_v2_generated_injective_oracle_v1beta1_oracle_pb.OracleType[params.tokenOracleType],
|
|
8377
8391
|
rate_limit_usd: require_utils.numberToCosmosSdkDecString(params.rateLimitInUsd)
|
|
8378
8392
|
};
|
|
8379
8393
|
}
|
|
@@ -8410,6 +8424,7 @@ var MsgUpdateRateLimit = class MsgUpdateRateLimit extends require_MsgBase.MsgBas
|
|
|
8410
8424
|
authority: params.injectiveAddress,
|
|
8411
8425
|
tokenAddress: params.tokenAddress,
|
|
8412
8426
|
newTokenPriceId: params.newTokenPriceId,
|
|
8427
|
+
newTokenOracleType: params.newTokenOracleType,
|
|
8413
8428
|
newRateLimitUsd: (0, __injectivelabs_utils.toChainFormat)(params.newRateLimitInUsd).toFixed(),
|
|
8414
8429
|
newRateLimitWindow: BigInt(params.newRateLimitWindow)
|
|
8415
8430
|
});
|
|
@@ -8430,7 +8445,8 @@ var MsgUpdateRateLimit = class MsgUpdateRateLimit extends require_MsgBase.MsgBas
|
|
|
8430
8445
|
token_address: params.tokenAddress,
|
|
8431
8446
|
new_token_price_id: params.newTokenPriceId,
|
|
8432
8447
|
new_rate_limit_usd: params.newRateLimitInUsd,
|
|
8433
|
-
new_rate_limit_window: params.newRateLimitWindow.toString()
|
|
8448
|
+
new_rate_limit_window: params.newRateLimitWindow.toString(),
|
|
8449
|
+
new_token_oracle_type: params.newTokenOracleType
|
|
8434
8450
|
}
|
|
8435
8451
|
};
|
|
8436
8452
|
}
|
|
@@ -8441,6 +8457,7 @@ var MsgUpdateRateLimit = class MsgUpdateRateLimit extends require_MsgBase.MsgBas
|
|
|
8441
8457
|
const { params } = this;
|
|
8442
8458
|
return {
|
|
8443
8459
|
...this.toWeb3Gw(),
|
|
8460
|
+
new_token_oracle_type: __injectivelabs_core_proto_ts_v2_generated_injective_oracle_v1beta1_oracle_pb.OracleType[params.newTokenOracleType],
|
|
8444
8461
|
new_rate_limit_usd: require_utils.numberToCosmosSdkDecString(params.newRateLimitInUsd)
|
|
8445
8462
|
};
|
|
8446
8463
|
}
|
|
@@ -11135,10 +11152,10 @@ Object.defineProperty(exports, 'MsgSendToEth', {
|
|
|
11135
11152
|
return MsgSendToEth;
|
|
11136
11153
|
}
|
|
11137
11154
|
});
|
|
11138
|
-
Object.defineProperty(exports, '
|
|
11155
|
+
Object.defineProperty(exports, 'MsgSetDelegationTransferReceiversV2', {
|
|
11139
11156
|
enumerable: true,
|
|
11140
11157
|
get: function () {
|
|
11141
|
-
return
|
|
11158
|
+
return MsgSetDelegationTransferReceiversV2;
|
|
11142
11159
|
}
|
|
11143
11160
|
});
|
|
11144
11161
|
Object.defineProperty(exports, 'MsgSetDenomMetadata', {
|
|
@@ -7248,13 +7248,14 @@ function extractGrpcError(error) {
|
|
|
7248
7248
|
* - User callback errors are caught and emitted separately to distinguish from stream errors
|
|
7249
7249
|
* - Aborted streams don't emit any events (clean shutdown)
|
|
7250
7250
|
*
|
|
7251
|
-
* @param
|
|
7251
|
+
* @param streamFactory - Creates the ServerStreamingCall from the V2 client
|
|
7252
7252
|
* @param handleResponse - Callback to process each stream response
|
|
7253
7253
|
* @returns StreamSubscription with event emitters for error/complete
|
|
7254
7254
|
*/
|
|
7255
|
-
function createStreamSubscriptionV2(
|
|
7255
|
+
function createStreamSubscriptionV2(streamFactory, handleResponse) {
|
|
7256
7256
|
const emitter = new eventemitter3.EventEmitter();
|
|
7257
7257
|
const abortController = new AbortController();
|
|
7258
|
+
const stream = streamFactory(abortController.signal);
|
|
7258
7259
|
let hasEmittedTerminalEvent = false;
|
|
7259
7260
|
const subscription = {
|
|
7260
7261
|
unsubscribe: () => {
|
|
@@ -7319,7 +7320,7 @@ var IndexerGrpcRfqStreamV2 = class {
|
|
|
7319
7320
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7320
7321
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_rfq_rpc_pb.StreamRequestRequest.create();
|
|
7321
7322
|
if (marketIds && marketIds.length > 0) request.marketIds = marketIds;
|
|
7322
|
-
return createStreamSubscriptionV2(this.client.streamRequest(request), (response) => {
|
|
7323
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamRequest(request, { abort: abortSignal }), (response) => {
|
|
7323
7324
|
callback(IndexerRfqStreamTransformer.requestStreamCallback(response));
|
|
7324
7325
|
});
|
|
7325
7326
|
}
|
|
@@ -7328,7 +7329,7 @@ var IndexerGrpcRfqStreamV2 = class {
|
|
|
7328
7329
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_rfq_rpc_pb.StreamQuoteRequest.create();
|
|
7329
7330
|
if (addresses && addresses.length > 0) request.addresses = addresses;
|
|
7330
7331
|
if (marketIds && marketIds.length > 0) request.marketIds = marketIds;
|
|
7331
|
-
return createStreamSubscriptionV2(this.client.streamQuote(request), (response) => {
|
|
7332
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamQuote(request, { abort: abortSignal }), (response) => {
|
|
7332
7333
|
callback(IndexerRfqStreamTransformer.quoteStreamCallback(response));
|
|
7333
7334
|
});
|
|
7334
7335
|
}
|
|
@@ -7336,7 +7337,7 @@ var IndexerGrpcRfqStreamV2 = class {
|
|
|
7336
7337
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7337
7338
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_rfq_rpc_pb.StreamSettlementRequest.create();
|
|
7338
7339
|
if (addresses && addresses.length > 0) request.addresses = addresses;
|
|
7339
|
-
return createStreamSubscriptionV2(this.client.streamSettlement(request), (response) => {
|
|
7340
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamSettlement(request, { abort: abortSignal }), (response) => {
|
|
7340
7341
|
callback(IndexerRfqStreamTransformer.settlementStreamCallback(response));
|
|
7341
7342
|
});
|
|
7342
7343
|
}
|
|
@@ -7362,7 +7363,7 @@ var IndexerGrpcSpotStreamV2 = class {
|
|
|
7362
7363
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7363
7364
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_spot_exchange_rpc_pb.StreamOrderbookUpdateRequest.create();
|
|
7364
7365
|
request.marketIds = marketIds;
|
|
7365
|
-
return createStreamSubscriptionV2(this.client.streamOrderbookUpdate(request), (response) => {
|
|
7366
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrderbookUpdate(request, { abort: abortSignal }), (response) => {
|
|
7366
7367
|
callback(IndexerSpotStreamTransformer.orderbookUpdateStreamCallback(response));
|
|
7367
7368
|
});
|
|
7368
7369
|
}
|
|
@@ -7380,7 +7381,7 @@ var IndexerGrpcSpotStreamV2 = class {
|
|
|
7380
7381
|
if (marketId) request.marketId = marketId;
|
|
7381
7382
|
if (subaccountId) request.subaccountId = subaccountId;
|
|
7382
7383
|
if (orderSide) request.orderSide = orderSide;
|
|
7383
|
-
return createStreamSubscriptionV2(this.client.streamOrders(request), (response) => {
|
|
7384
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrders(request, { abort: abortSignal }), (response) => {
|
|
7384
7385
|
callback(IndexerSpotStreamTransformer.ordersStreamCallback(response));
|
|
7385
7386
|
});
|
|
7386
7387
|
}
|
|
@@ -7404,7 +7405,7 @@ var IndexerGrpcSpotStreamV2 = class {
|
|
|
7404
7405
|
if (direction) request.direction = direction;
|
|
7405
7406
|
if (state) request.state = state;
|
|
7406
7407
|
if (executionTypes) request.executionTypes = executionTypes;
|
|
7407
|
-
return createStreamSubscriptionV2(this.client.streamOrdersHistory(request), (response) => {
|
|
7408
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrdersHistory(request, { abort: abortSignal }), (response) => {
|
|
7408
7409
|
callback(IndexerSpotStreamTransformer.orderHistoryStreamCallback(response));
|
|
7409
7410
|
});
|
|
7410
7411
|
}
|
|
@@ -7430,7 +7431,7 @@ var IndexerGrpcSpotStreamV2 = class {
|
|
|
7430
7431
|
if (executionSide) request.executionSide = executionSide;
|
|
7431
7432
|
if (direction) request.direction = direction;
|
|
7432
7433
|
if (executionTypes) request.executionTypes = executionTypes;
|
|
7433
|
-
return createStreamSubscriptionV2(this.client.streamTrades(request), (response) => {
|
|
7434
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamTrades(request, { abort: abortSignal }), (response) => {
|
|
7434
7435
|
callback(IndexerSpotStreamTransformer.tradesStreamCallback(response));
|
|
7435
7436
|
});
|
|
7436
7437
|
}
|
|
@@ -7457,7 +7458,7 @@ var IndexerGrpcMitoStreamV2 = class {
|
|
|
7457
7458
|
const request = __injectivelabs_mito_proto_ts_v2_generated_goadesign_goagen_mito_api_pb.StreamTransfersRequest.create();
|
|
7458
7459
|
if (vault) request.vault = vault;
|
|
7459
7460
|
if (account) request.account = account;
|
|
7460
|
-
return createStreamSubscriptionV2(this.client.streamTransfers(request), (response) => {
|
|
7461
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamTransfers(request, { abort: abortSignal }), (response) => {
|
|
7461
7462
|
callback(IndexerGrpcMitoStreamTransformer.transfersStreamCallback(response));
|
|
7462
7463
|
});
|
|
7463
7464
|
}
|
|
@@ -7471,7 +7472,7 @@ var IndexerGrpcMitoStreamV2 = class {
|
|
|
7471
7472
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7472
7473
|
const request = __injectivelabs_mito_proto_ts_v2_generated_goadesign_goagen_mito_api_pb.StreamVaultRequest.create();
|
|
7473
7474
|
if (vault) request.vault = vault;
|
|
7474
|
-
return createStreamSubscriptionV2(this.client.streamVault(request), (response) => {
|
|
7475
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamVault(request, { abort: abortSignal }), (response) => {
|
|
7475
7476
|
callback(IndexerGrpcMitoStreamTransformer.vaultStreamCallback(response));
|
|
7476
7477
|
});
|
|
7477
7478
|
}
|
|
@@ -7490,7 +7491,7 @@ var IndexerGrpcMitoStreamV2 = class {
|
|
|
7490
7491
|
request.holderAddress = holderAddress;
|
|
7491
7492
|
if (vaultAddress) request.vaultAddress = vaultAddress;
|
|
7492
7493
|
if (stakingContractAddress) request.stakingContractAddress = stakingContractAddress;
|
|
7493
|
-
return createStreamSubscriptionV2(this.client.streamHolderSubscription(request), (response) => {
|
|
7494
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamHolderSubscription(request, { abort: abortSignal }), (response) => {
|
|
7494
7495
|
callback(IndexerGrpcMitoStreamTransformer.vaultHolderSubscriptionStreamCallback(response));
|
|
7495
7496
|
});
|
|
7496
7497
|
}
|
|
@@ -7508,7 +7509,7 @@ var IndexerGrpcMitoStreamV2 = class {
|
|
|
7508
7509
|
const request = __injectivelabs_mito_proto_ts_v2_generated_goadesign_goagen_mito_api_pb.StreamStakingRewardByAccountRequest.create();
|
|
7509
7510
|
request.staker = staker;
|
|
7510
7511
|
request.stakingContractAddress = stakingContractAddress;
|
|
7511
|
-
return createStreamSubscriptionV2(this.client.streamStakingRewardByAccount(request), (response) => {
|
|
7512
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamStakingRewardByAccount(request, { abort: abortSignal }), (response) => {
|
|
7512
7513
|
callback(IndexerGrpcMitoStreamTransformer.stakingRewardByAccountStreamCallback(response));
|
|
7513
7514
|
});
|
|
7514
7515
|
}
|
|
@@ -7526,7 +7527,7 @@ var IndexerGrpcMitoStreamV2 = class {
|
|
|
7526
7527
|
const request = __injectivelabs_mito_proto_ts_v2_generated_goadesign_goagen_mito_api_pb.StreamHistoricalStakingRequest.create();
|
|
7527
7528
|
request.staker = staker;
|
|
7528
7529
|
request.stakingContractAddress = stakingContractAddress;
|
|
7529
|
-
return createStreamSubscriptionV2(this.client.streamHistoricalStaking(request), (response) => {
|
|
7530
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamHistoricalStaking(request, { abort: abortSignal }), (response) => {
|
|
7530
7531
|
callback(IndexerGrpcMitoStreamTransformer.historicalStakingStreamCallback(response));
|
|
7531
7532
|
});
|
|
7532
7533
|
}
|
|
@@ -7556,7 +7557,7 @@ var IndexerGrpcOracleStreamV2 = class {
|
|
|
7556
7557
|
if (baseSymbol) request.baseSymbol = baseSymbol;
|
|
7557
7558
|
if (quoteSymbol) request.quoteSymbol = quoteSymbol;
|
|
7558
7559
|
request.oracleType = oracleType;
|
|
7559
|
-
return createStreamSubscriptionV2(this.client.streamPrices(request), (response) => {
|
|
7560
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamPrices(request, { abort: abortSignal }), (response) => {
|
|
7560
7561
|
callback(IndexerOracleStreamTransformer.pricesStreamCallback(response));
|
|
7561
7562
|
});
|
|
7562
7563
|
}
|
|
@@ -7570,7 +7571,7 @@ var IndexerGrpcOracleStreamV2 = class {
|
|
|
7570
7571
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7571
7572
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_oracle_rpc_pb.StreamPricesByMarketsRequest.create();
|
|
7572
7573
|
if (marketIds) request.marketIds = marketIds;
|
|
7573
|
-
return createStreamSubscriptionV2(this.client.streamPricesByMarkets(request), (response) => {
|
|
7574
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamPricesByMarkets(request, { abort: abortSignal }), (response) => {
|
|
7574
7575
|
callback(IndexerOracleStreamTransformer.pricesByMarketsCallback(response));
|
|
7575
7576
|
});
|
|
7576
7577
|
}
|
|
@@ -7579,7 +7580,7 @@ var IndexerGrpcOracleStreamV2 = class {
|
|
|
7579
7580
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_oracle_rpc_pb.StreamOracleListRequest.create();
|
|
7580
7581
|
if (oracleType) request.oracleType = oracleType;
|
|
7581
7582
|
if (symbols && symbols.length > 0) request.symbols = symbols;
|
|
7582
|
-
return createStreamSubscriptionV2(this.client.streamOracleList(request), (response) => {
|
|
7583
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOracleList(request, { abort: abortSignal }), (response) => {
|
|
7583
7584
|
callback(IndexerOracleStreamTransformer.oracleListStreamCallback(response));
|
|
7584
7585
|
});
|
|
7585
7586
|
}
|
|
@@ -7605,7 +7606,7 @@ var IndexerGrpcAccountStreamV2 = class {
|
|
|
7605
7606
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7606
7607
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_accounts_rpc_pb.StreamSubaccountBalanceRequest.create();
|
|
7607
7608
|
request.subaccountId = subaccountId;
|
|
7608
|
-
return createStreamSubscriptionV2(this.client.streamSubaccountBalance(request), (response) => {
|
|
7609
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamSubaccountBalance(request, { abort: abortSignal }), (response) => {
|
|
7609
7610
|
callback(IndexerAccountStreamTransformer.balanceStreamCallback(response));
|
|
7610
7611
|
});
|
|
7611
7612
|
}
|
|
@@ -7628,7 +7629,7 @@ var IndexerGrpcAuctionStreamV2 = class {
|
|
|
7628
7629
|
streamBids({ callback }) {
|
|
7629
7630
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7630
7631
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_auction_rpc_pb.StreamBidsRequest.create();
|
|
7631
|
-
return createStreamSubscriptionV2(this.client.streamBids(request), (response) => {
|
|
7632
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamBids(request, { abort: abortSignal }), (response) => {
|
|
7632
7633
|
callback(IndexerAuctionStreamTransformer.bidsStreamCallback(response));
|
|
7633
7634
|
});
|
|
7634
7635
|
}
|
|
@@ -7656,7 +7657,7 @@ var IndexerGrpcTradingStreamV2 = class {
|
|
|
7656
7657
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_trading_rpc_pb.StreamStrategyRequest.create();
|
|
7657
7658
|
if (accountAddresses) request.accountAddresses = accountAddresses;
|
|
7658
7659
|
if (marketId) request.marketId = marketId;
|
|
7659
|
-
return createStreamSubscriptionV2(this.client.streamStrategy(request), (response) => {
|
|
7660
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamStrategy(request, { abort: abortSignal }), (response) => {
|
|
7660
7661
|
callback(response);
|
|
7661
7662
|
});
|
|
7662
7663
|
}
|
|
@@ -7682,7 +7683,7 @@ var IndexerGrpcArchiverStreamV2 = class {
|
|
|
7682
7683
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7683
7684
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_archiver_rpc_pb.StreamSpotAverageEntriesRequest.create();
|
|
7684
7685
|
request.account = account;
|
|
7685
|
-
return createStreamSubscriptionV2(this.client.streamSpotAverageEntries(request), (response) => {
|
|
7686
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamSpotAverageEntries(request, { abort: abortSignal }), (response) => {
|
|
7686
7687
|
callback(IndexerArchiverStreamTransformer.spotAverageEntriesStreamCallback(response));
|
|
7687
7688
|
});
|
|
7688
7689
|
}
|
|
@@ -7705,7 +7706,7 @@ var IndexerGrpcExplorerStreamV2 = class {
|
|
|
7705
7706
|
streamBlocks({ callback }) {
|
|
7706
7707
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7707
7708
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_explorer_rpc_pb.StreamBlocksRequest.create();
|
|
7708
|
-
return createStreamSubscriptionV2(this.client.streamBlocks(request), (response) => {
|
|
7709
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamBlocks(request, { abort: abortSignal }), (response) => {
|
|
7709
7710
|
callback(ExplorerStreamTransformer.blocksStreamCallback(response));
|
|
7710
7711
|
});
|
|
7711
7712
|
}
|
|
@@ -7717,7 +7718,7 @@ var IndexerGrpcExplorerStreamV2 = class {
|
|
|
7717
7718
|
streamBlocksWithTxs({ callback }) {
|
|
7718
7719
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7719
7720
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_explorer_rpc_pb.StreamBlocksRequest.create();
|
|
7720
|
-
return createStreamSubscriptionV2(this.client.streamBlocks(request), (response) => {
|
|
7721
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamBlocks(request, { abort: abortSignal }), (response) => {
|
|
7721
7722
|
callback(ExplorerStreamTransformer.blocksWithTxsStreamCallback(response));
|
|
7722
7723
|
});
|
|
7723
7724
|
}
|
|
@@ -7729,7 +7730,7 @@ var IndexerGrpcExplorerStreamV2 = class {
|
|
|
7729
7730
|
streamTransactions({ callback }) {
|
|
7730
7731
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7731
7732
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_explorer_rpc_pb.StreamTxsRequest.create();
|
|
7732
|
-
return createStreamSubscriptionV2(this.client.streamTxs(request), (response) => {
|
|
7733
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamTxs(request, { abort: abortSignal }), (response) => {
|
|
7733
7734
|
callback(ExplorerStreamTransformer.transactionsStreamCallback(response));
|
|
7734
7735
|
});
|
|
7735
7736
|
}
|
|
@@ -7762,7 +7763,7 @@ var IndexerGrpcWsPriceOracleStreamV2 = class {
|
|
|
7762
7763
|
if (marketIds && marketIds.length > 0) request.marketIds = marketIds;
|
|
7763
7764
|
if (oracleTypes && oracleTypes.length > 0) request.oracleTypes = oracleTypes;
|
|
7764
7765
|
if (includeInactive !== void 0) request.includeInactive = includeInactive;
|
|
7765
|
-
return createStreamSubscriptionV2(this.client.streamMarkets(request), (response) => {
|
|
7766
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamMarkets(request, { abort: abortSignal }), (response) => {
|
|
7766
7767
|
callback(IndexerWsPriceOracleStreamTransformer.streamMarketsCallback(response));
|
|
7767
7768
|
});
|
|
7768
7769
|
}
|
|
@@ -7782,7 +7783,7 @@ var IndexerGrpcWsPriceOracleStreamV2 = class {
|
|
|
7782
7783
|
if (oracleTypes && oracleTypes.length > 0) request.oracleTypes = oracleTypes;
|
|
7783
7784
|
if (includeInactive !== void 0) request.includeInactive = includeInactive;
|
|
7784
7785
|
if (mode) request.mode = mode;
|
|
7785
|
-
return createStreamSubscriptionV2(this.client.streamMarketsV2(request), (response) => {
|
|
7786
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamMarketsV2(request, { abort: abortSignal }), (response) => {
|
|
7786
7787
|
callback(IndexerWsPriceOracleStreamTransformer.streamMarketsV2Callback(response));
|
|
7787
7788
|
});
|
|
7788
7789
|
}
|
|
@@ -7811,7 +7812,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7811
7812
|
if (marketId) request.marketId = marketId;
|
|
7812
7813
|
if (subaccountId) request.subaccountId = subaccountId;
|
|
7813
7814
|
if (orderSide) request.orderSide = orderSide;
|
|
7814
|
-
return createStreamSubscriptionV2(this.client.streamOrders(request), (response) => {
|
|
7815
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrders(request, { abort: abortSignal }), (response) => {
|
|
7815
7816
|
callback(IndexerDerivativeStreamTransformer.ordersStreamCallback(response));
|
|
7816
7817
|
});
|
|
7817
7818
|
}
|
|
@@ -7835,7 +7836,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7835
7836
|
if (direction) request.direction = direction;
|
|
7836
7837
|
if (state) request.state = state;
|
|
7837
7838
|
if (executionTypes) request.executionTypes = executionTypes;
|
|
7838
|
-
return createStreamSubscriptionV2(this.client.streamOrdersHistory(request), (response) => {
|
|
7839
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrdersHistory(request, { abort: abortSignal }), (response) => {
|
|
7839
7840
|
callback(IndexerDerivativeStreamTransformer.orderHistoryStreamCallback(response));
|
|
7840
7841
|
});
|
|
7841
7842
|
}
|
|
@@ -7864,7 +7865,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7864
7865
|
if (pagination.skip !== void 0) request.skip = BigInt(pagination.skip);
|
|
7865
7866
|
if (pagination.limit !== void 0) request.limit = pagination.limit;
|
|
7866
7867
|
}
|
|
7867
|
-
return createStreamSubscriptionV2(this.client.streamTrades(request), (response) => {
|
|
7868
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamTrades(request, { abort: abortSignal }), (response) => {
|
|
7868
7869
|
callback(IndexerDerivativeStreamTransformer.tradesStreamCallback(response));
|
|
7869
7870
|
});
|
|
7870
7871
|
}
|
|
@@ -7882,7 +7883,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7882
7883
|
if (marketId) request.marketId = marketId;
|
|
7883
7884
|
if (address) request.accountAddress = address;
|
|
7884
7885
|
if (subaccountId) request.subaccountId = subaccountId;
|
|
7885
|
-
return createStreamSubscriptionV2(this.client.streamPositions(request), (response) => {
|
|
7886
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamPositions(request, { abort: abortSignal }), (response) => {
|
|
7886
7887
|
callback(IndexerDerivativeStreamTransformer.positionStreamCallback(response));
|
|
7887
7888
|
});
|
|
7888
7889
|
}
|
|
@@ -7896,7 +7897,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7896
7897
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7897
7898
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_derivative_exchange_rpc_pb.StreamMarketRequest.create();
|
|
7898
7899
|
if (marketIds && marketIds.length) request.marketIds = marketIds;
|
|
7899
|
-
return createStreamSubscriptionV2(this.client.streamMarket(request), (response) => {
|
|
7900
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamMarket(request, { abort: abortSignal }), (response) => {
|
|
7900
7901
|
callback(response);
|
|
7901
7902
|
});
|
|
7902
7903
|
}
|
|
@@ -7911,7 +7912,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7911
7912
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7912
7913
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_derivative_exchange_rpc_pb.StreamOrderbookV2Request.create();
|
|
7913
7914
|
request.marketIds = marketIds;
|
|
7914
|
-
return createStreamSubscriptionV2(this.client.streamOrderbookV2(request), (response) => {
|
|
7915
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrderbookV2(request, { abort: abortSignal }), (response) => {
|
|
7915
7916
|
callback(IndexerDerivativeStreamTransformer.orderbookV2StreamCallback(response));
|
|
7916
7917
|
});
|
|
7917
7918
|
}
|
|
@@ -7926,7 +7927,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7926
7927
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7927
7928
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_derivative_exchange_rpc_pb.StreamOrderbookUpdateRequest.create();
|
|
7928
7929
|
request.marketIds = marketIds;
|
|
7929
|
-
return createStreamSubscriptionV2(this.client.streamOrderbookUpdate(request), (response) => {
|
|
7930
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrderbookUpdate(request, { abort: abortSignal }), (response) => {
|
|
7930
7931
|
callback(IndexerDerivativeStreamTransformer.orderbookUpdateStreamCallback(response));
|
|
7931
7932
|
});
|
|
7932
7933
|
}
|
|
@@ -7944,7 +7945,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7944
7945
|
if (marketId) request.marketId = marketId;
|
|
7945
7946
|
if (address) request.accountAddress = address;
|
|
7946
7947
|
if (subaccountId) request.subaccountId = subaccountId;
|
|
7947
|
-
return createStreamSubscriptionV2(this.client.streamPositionsV2(request), (response) => {
|
|
7948
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamPositionsV2(request, { abort: abortSignal }), (response) => {
|
|
7948
7949
|
callback(IndexerDerivativeStreamTransformer.positionV2StreamCallback(response));
|
|
7949
7950
|
});
|
|
7950
7951
|
}
|
|
@@ -7964,7 +7965,7 @@ var IndexerGrpcTcDerivativesStreamV2 = class {
|
|
|
7964
7965
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb.StreamOrdersHistoryRequest.create();
|
|
7965
7966
|
if (marketId) request.marketIds = [marketId];
|
|
7966
7967
|
if (accountAddress) request.accountAddress = accountAddress;
|
|
7967
|
-
return createStreamSubscriptionV2(this.client.streamOrdersHistory(request), (response) => {
|
|
7968
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrdersHistory(request, { abort: abortSignal }), (response) => {
|
|
7968
7969
|
callback(IndexerTcDerivativesStreamTransformer.orderHistoryStreamCallback(response));
|
|
7969
7970
|
});
|
|
7970
7971
|
}
|
|
@@ -7974,7 +7975,7 @@ var IndexerGrpcTcDerivativesStreamV2 = class {
|
|
|
7974
7975
|
if (marketId) request.marketIds = [marketId];
|
|
7975
7976
|
if (accountAddress) request.accountAddress = accountAddress;
|
|
7976
7977
|
if (rfqMaker) request.rfqMaker = rfqMaker;
|
|
7977
|
-
return createStreamSubscriptionV2(this.client.streamTrades(request), (response) => {
|
|
7978
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamTrades(request, { abort: abortSignal }), (response) => {
|
|
7978
7979
|
callback(IndexerTcDerivativesStreamTransformer.tradesStreamCallback(response));
|
|
7979
7980
|
});
|
|
7980
7981
|
}
|
|
@@ -7983,7 +7984,7 @@ var IndexerGrpcTcDerivativesStreamV2 = class {
|
|
|
7983
7984
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb.StreamPositionsRequest.create();
|
|
7984
7985
|
if (marketId) request.marketIds = [marketId];
|
|
7985
7986
|
if (accountAddress) request.accountAddress = accountAddress;
|
|
7986
|
-
return createStreamSubscriptionV2(this.client.streamPositions(request), (response) => {
|
|
7987
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamPositions(request, { abort: abortSignal }), (response) => {
|
|
7987
7988
|
callback(IndexerTcDerivativesStreamTransformer.positionsStreamCallback(response));
|
|
7988
7989
|
});
|
|
7989
7990
|
}
|
|
@@ -7992,7 +7993,7 @@ var IndexerGrpcTcDerivativesStreamV2 = class {
|
|
|
7992
7993
|
const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb.StreamOrdersRequest.create();
|
|
7993
7994
|
if (marketId) request.marketIds = [marketId];
|
|
7994
7995
|
if (accountAddress) request.accountAddress = accountAddress;
|
|
7995
|
-
return createStreamSubscriptionV2(this.client.streamOrders(request), (response) => {
|
|
7996
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrders(request, { abort: abortSignal }), (response) => {
|
|
7996
7997
|
callback(IndexerTcDerivativesStreamTransformer.ordersStreamCallback(response));
|
|
7997
7998
|
});
|
|
7998
7999
|
}
|
|
@@ -8022,7 +8023,7 @@ var IndexerGrpcAccountPortfolioStreamV2 = class {
|
|
|
8022
8023
|
request.accountAddress = accountAddress;
|
|
8023
8024
|
if (subaccountId) request.subaccountId = subaccountId;
|
|
8024
8025
|
if (type) request.type = type;
|
|
8025
|
-
return createStreamSubscriptionV2(this.client.streamAccountPortfolio(request), (response) => {
|
|
8026
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamAccountPortfolio(request, { abort: abortSignal }), (response) => {
|
|
8026
8027
|
callback(IndexerAccountPortfolioStreamTransformer.accountPortfolioStreamCallback(response));
|
|
8027
8028
|
});
|
|
8028
8029
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../tx_pb-
|
|
2
|
-
import "../index-
|
|
1
|
+
import "../tx_pb-wznwSZgU.cjs";
|
|
2
|
+
import "../index-BfWPeSKh.cjs";
|
|
3
3
|
import "../light-4nNsYXxr.cjs";
|
|
4
|
-
import "../BaseGrpcConsumer-
|
|
5
|
-
import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-
|
|
4
|
+
import "../BaseGrpcConsumer-BbYfKIY-.cjs";
|
|
5
|
+
import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-CBB2n9hg.cjs";
|
|
6
6
|
export { AbacusGrpcApi, PointsLatestResponse, PointsStatsRow };
|