@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
|
@@ -2704,6 +2704,7 @@ var MsgCreateSpotMarketOrderV2 = class MsgCreateSpotMarketOrderV2 extends MsgBas
|
|
|
2704
2704
|
|
|
2705
2705
|
//#endregion
|
|
2706
2706
|
//#region src/core/modules/exchange/msgs/MsgUpdateDerivativeMarketV2.ts
|
|
2707
|
+
const defaultCrossMarginEligibility = InjectiveExchangeV2ProposalPb.CrossMarginEligibility.CM_ELIGIBILITY_UNSPECIFIED;
|
|
2707
2708
|
const createMessage$7 = (params) => {
|
|
2708
2709
|
var _params$crossMarginEl;
|
|
2709
2710
|
return InjectiveExchangeV2TxPb.MsgUpdateDerivativeMarket.create({
|
|
@@ -2716,7 +2717,7 @@ const createMessage$7 = (params) => {
|
|
|
2716
2717
|
newInitialMarginRatio: params.newInitialMarginRatio || "0",
|
|
2717
2718
|
newMaintenanceMarginRatio: params.newMaintenanceMarginRatio || "0",
|
|
2718
2719
|
newReduceMarginRatio: params.newReduceMarginRatio || "0",
|
|
2719
|
-
crossMarginEligibility: (_params$crossMarginEl = params.crossMarginEligibility) !== null && _params$crossMarginEl !== void 0 ? _params$crossMarginEl :
|
|
2720
|
+
crossMarginEligibility: (_params$crossMarginEl = params.crossMarginEligibility) !== null && _params$crossMarginEl !== void 0 ? _params$crossMarginEl : defaultCrossMarginEligibility
|
|
2720
2721
|
});
|
|
2721
2722
|
};
|
|
2722
2723
|
/**
|
|
@@ -2735,7 +2736,8 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends MsgB
|
|
|
2735
2736
|
newMinPriceTickSize: toChainFormat(initialParams.newMinPriceTickSize || "0").toFixed(),
|
|
2736
2737
|
newInitialMarginRatio: toChainFormat(initialParams.newInitialMarginRatio || "0").toFixed(),
|
|
2737
2738
|
newMaintenanceMarginRatio: toChainFormat(initialParams.newMaintenanceMarginRatio || "0").toFixed(),
|
|
2738
|
-
newReduceMarginRatio: toChainFormat(initialParams.newReduceMarginRatio || "0").toFixed()
|
|
2739
|
+
newReduceMarginRatio: toChainFormat(initialParams.newReduceMarginRatio || "0").toFixed(),
|
|
2740
|
+
crossMarginEligibility: initialParams.crossMarginEligibility
|
|
2739
2741
|
});
|
|
2740
2742
|
}
|
|
2741
2743
|
toData() {
|
|
@@ -2746,6 +2748,7 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends MsgB
|
|
|
2746
2748
|
};
|
|
2747
2749
|
}
|
|
2748
2750
|
toAmino() {
|
|
2751
|
+
var _params$crossMarginEl2;
|
|
2749
2752
|
const { params } = this;
|
|
2750
2753
|
return {
|
|
2751
2754
|
type: "exchange/MsgUpdateDerivativeMarket",
|
|
@@ -2758,7 +2761,8 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends MsgB
|
|
|
2758
2761
|
new_min_quantity_tick_size: params.newMinQuantityTickSize,
|
|
2759
2762
|
new_initial_margin_ratio: params.newInitialMarginRatio,
|
|
2760
2763
|
new_maintenance_margin_ratio: params.newMaintenanceMarginRatio,
|
|
2761
|
-
new_reduce_margin_ratio: params.newReduceMarginRatio
|
|
2764
|
+
new_reduce_margin_ratio: params.newReduceMarginRatio,
|
|
2765
|
+
cross_margin_eligibility: (_params$crossMarginEl2 = params.crossMarginEligibility) !== null && _params$crossMarginEl2 !== void 0 ? _params$crossMarginEl2 : defaultCrossMarginEligibility
|
|
2762
2766
|
}
|
|
2763
2767
|
};
|
|
2764
2768
|
}
|
|
@@ -2777,6 +2781,7 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends MsgB
|
|
|
2777
2781
|
};
|
|
2778
2782
|
}
|
|
2779
2783
|
toEip712V2() {
|
|
2784
|
+
var _params$crossMarginEl3;
|
|
2780
2785
|
const { params } = this;
|
|
2781
2786
|
return {
|
|
2782
2787
|
"@type": "/injective.exchange.v2.MsgUpdateDerivativeMarket",
|
|
@@ -2789,7 +2794,8 @@ var MsgUpdateDerivativeMarketV2 = class MsgUpdateDerivativeMarketV2 extends MsgB
|
|
|
2789
2794
|
new_initial_margin_ratio: numberToCosmosSdkDecString(params.newInitialMarginRatio || "0"),
|
|
2790
2795
|
new_maintenance_margin_ratio: numberToCosmosSdkDecString(params.newMaintenanceMarginRatio || "0"),
|
|
2791
2796
|
new_reduce_margin_ratio: numberToCosmosSdkDecString(params.newReduceMarginRatio || "0"),
|
|
2792
|
-
new_open_notional_cap: {}
|
|
2797
|
+
new_open_notional_cap: {},
|
|
2798
|
+
cross_margin_eligibility: InjectiveExchangeV2ProposalPb.CrossMarginEligibility[(_params$crossMarginEl3 = params.crossMarginEligibility) !== null && _params$crossMarginEl3 !== void 0 ? _params$crossMarginEl3 : defaultCrossMarginEligibility]
|
|
2793
2799
|
};
|
|
2794
2800
|
}
|
|
2795
2801
|
toDirectSign() {
|
|
@@ -4219,58 +4225,6 @@ var MsgCreateBinaryOptionsMarketOrder = class MsgCreateBinaryOptionsMarketOrder
|
|
|
4219
4225
|
}
|
|
4220
4226
|
};
|
|
4221
4227
|
|
|
4222
|
-
//#endregion
|
|
4223
|
-
//#region src/core/modules/exchange/msgs/MsgSetDelegationTransferReceivers.ts
|
|
4224
|
-
/**
|
|
4225
|
-
* @deprecated no longer supported on chain
|
|
4226
|
-
* @category Messages
|
|
4227
|
-
*/
|
|
4228
|
-
var MsgSetDelegationTransferReceivers = class MsgSetDelegationTransferReceivers extends MsgBase {
|
|
4229
|
-
static fromJSON(params) {
|
|
4230
|
-
return new MsgSetDelegationTransferReceivers(params);
|
|
4231
|
-
}
|
|
4232
|
-
toProto() {
|
|
4233
|
-
const { params } = this;
|
|
4234
|
-
return {
|
|
4235
|
-
sender: params.sender,
|
|
4236
|
-
receivers: params.receivers
|
|
4237
|
-
};
|
|
4238
|
-
}
|
|
4239
|
-
toData() {
|
|
4240
|
-
const proto = this.toProto();
|
|
4241
|
-
return {
|
|
4242
|
-
"@type": "/injective.exchange.v2.MsgSetDelegationTransferReceivers",
|
|
4243
|
-
...proto
|
|
4244
|
-
};
|
|
4245
|
-
}
|
|
4246
|
-
toAmino() {
|
|
4247
|
-
const proto = this.toProto();
|
|
4248
|
-
return {
|
|
4249
|
-
type: "exchange/MsgSetDelegationTransferReceivers",
|
|
4250
|
-
value: {
|
|
4251
|
-
sender: proto.sender,
|
|
4252
|
-
receivers: proto.receivers
|
|
4253
|
-
}
|
|
4254
|
-
};
|
|
4255
|
-
}
|
|
4256
|
-
toWeb3Gw() {
|
|
4257
|
-
const { value } = this.toAmino();
|
|
4258
|
-
return {
|
|
4259
|
-
"@type": "/injective.exchange.v2.MsgSetDelegationTransferReceivers",
|
|
4260
|
-
...value
|
|
4261
|
-
};
|
|
4262
|
-
}
|
|
4263
|
-
toDirectSign() {
|
|
4264
|
-
return {
|
|
4265
|
-
type: "/injective.exchange.v2.MsgSetDelegationTransferReceivers",
|
|
4266
|
-
message: this.toProto()
|
|
4267
|
-
};
|
|
4268
|
-
}
|
|
4269
|
-
toBinary() {
|
|
4270
|
-
return new Uint8Array(0);
|
|
4271
|
-
}
|
|
4272
|
-
};
|
|
4273
|
-
|
|
4274
4228
|
//#endregion
|
|
4275
4229
|
//#region src/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrderV2.ts
|
|
4276
4230
|
const createLimitOrder = (params) => {
|
|
@@ -4399,6 +4353,58 @@ var MsgCreateBinaryOptionsLimitOrderV2 = class MsgCreateBinaryOptionsLimitOrderV
|
|
|
4399
4353
|
}
|
|
4400
4354
|
};
|
|
4401
4355
|
|
|
4356
|
+
//#endregion
|
|
4357
|
+
//#region src/core/modules/exchange/msgs/MsgSetDelegationTransferReceiversV2.ts
|
|
4358
|
+
/**
|
|
4359
|
+
* @deprecated Delegation transfer receiver support was removed. This message is kept for backward compatibility.
|
|
4360
|
+
* @category Messages
|
|
4361
|
+
*/
|
|
4362
|
+
var MsgSetDelegationTransferReceiversV2 = class MsgSetDelegationTransferReceiversV2 extends MsgBase {
|
|
4363
|
+
static fromJSON(params) {
|
|
4364
|
+
return new MsgSetDelegationTransferReceiversV2(params);
|
|
4365
|
+
}
|
|
4366
|
+
toProto() {
|
|
4367
|
+
const { params } = this;
|
|
4368
|
+
return InjectiveExchangeV2TxPb.MsgSetDelegationTransferReceivers.create({
|
|
4369
|
+
sender: params.sender,
|
|
4370
|
+
receivers: params.receivers
|
|
4371
|
+
});
|
|
4372
|
+
}
|
|
4373
|
+
toData() {
|
|
4374
|
+
const proto = this.toProto();
|
|
4375
|
+
return {
|
|
4376
|
+
"@type": "/injective.exchange.v2.MsgSetDelegationTransferReceivers",
|
|
4377
|
+
...proto
|
|
4378
|
+
};
|
|
4379
|
+
}
|
|
4380
|
+
toAmino() {
|
|
4381
|
+
const proto = this.toProto();
|
|
4382
|
+
return {
|
|
4383
|
+
type: "exchange/MsgSetDelegationTransferReceivers",
|
|
4384
|
+
value: {
|
|
4385
|
+
sender: proto.sender,
|
|
4386
|
+
receivers: proto.receivers
|
|
4387
|
+
}
|
|
4388
|
+
};
|
|
4389
|
+
}
|
|
4390
|
+
toWeb3Gw() {
|
|
4391
|
+
const { value } = this.toAmino();
|
|
4392
|
+
return {
|
|
4393
|
+
"@type": "/injective.exchange.v2.MsgSetDelegationTransferReceivers",
|
|
4394
|
+
...value
|
|
4395
|
+
};
|
|
4396
|
+
}
|
|
4397
|
+
toDirectSign() {
|
|
4398
|
+
return {
|
|
4399
|
+
type: "/injective.exchange.v2.MsgSetDelegationTransferReceivers",
|
|
4400
|
+
message: this.toProto()
|
|
4401
|
+
};
|
|
4402
|
+
}
|
|
4403
|
+
toBinary() {
|
|
4404
|
+
return InjectiveExchangeV2TxPb.MsgSetDelegationTransferReceivers.toBinary(this.toProto());
|
|
4405
|
+
}
|
|
4406
|
+
};
|
|
4407
|
+
|
|
4402
4408
|
//#endregion
|
|
4403
4409
|
//#region src/core/modules/exchange/msgs/MsgInstantBinaryOptionsMarketLaunch.ts
|
|
4404
4410
|
const createMessage$2 = (params) => {
|
|
@@ -6082,7 +6088,8 @@ const createPerpetualMarketLaunch = (params) => {
|
|
|
6082
6088
|
minPriceTickSize: params.market.minPriceTickSize,
|
|
6083
6089
|
minQuantityTickSize: params.market.minQuantityTickSize,
|
|
6084
6090
|
minNotional: params.market.minNotional,
|
|
6085
|
-
reduceMarginRatio: params.market.reduceMarginRatio
|
|
6091
|
+
reduceMarginRatio: params.market.reduceMarginRatio,
|
|
6092
|
+
crossMarginEligibility: params.market.crossMarginEligible
|
|
6086
6093
|
};
|
|
6087
6094
|
if (params.market.adminInfo) content.adminInfo = {
|
|
6088
6095
|
admin: params.market.adminInfo.admin,
|
|
@@ -6110,7 +6117,8 @@ var MsgSubmitProposalPerpetualMarketLaunchV2 = class MsgSubmitProposalPerpetualM
|
|
|
6110
6117
|
takerFeeRate: toChainFormat(initialParams.market.takerFeeRate).toFixed(),
|
|
6111
6118
|
minQuantityTickSize: toChainFormat(initialParams.market.minQuantityTickSize).toFixed(),
|
|
6112
6119
|
minNotional: toChainFormat(initialParams.market.minNotional).toFixed(),
|
|
6113
|
-
reduceMarginRatio: toChainFormat(initialParams.market.reduceMarginRatio).toFixed()
|
|
6120
|
+
reduceMarginRatio: toChainFormat(initialParams.market.reduceMarginRatio).toFixed(),
|
|
6121
|
+
crossMarginEligibility: initialParams.market.crossMarginEligible
|
|
6114
6122
|
}
|
|
6115
6123
|
};
|
|
6116
6124
|
const depositParams = CosmosBaseV1Beta1CoinPb.Coin.create({
|
|
@@ -6160,7 +6168,8 @@ var MsgSubmitProposalPerpetualMarketLaunchV2 = class MsgSubmitProposalPerpetualM
|
|
|
6160
6168
|
min_notional: content.minNotional,
|
|
6161
6169
|
admin_info: content.adminInfo || null,
|
|
6162
6170
|
reduce_margin_ratio: content.reduceMarginRatio,
|
|
6163
|
-
open_notional_cap: { uncapped: {} }
|
|
6171
|
+
open_notional_cap: { uncapped: {} },
|
|
6172
|
+
cross_margin_eligible: content.crossMarginEligible
|
|
6164
6173
|
}
|
|
6165
6174
|
},
|
|
6166
6175
|
initial_deposit: [{
|
|
@@ -6204,7 +6213,8 @@ var MsgSubmitProposalPerpetualMarketLaunchV2 = class MsgSubmitProposalPerpetualM
|
|
|
6204
6213
|
min_notional: toChainFormat(params.market.minNotional).toFixed(),
|
|
6205
6214
|
min_quantity_tick_size: toChainFormat(params.market.minQuantityTickSize).toFixed(),
|
|
6206
6215
|
reduce_margin_ratio: toChainFormat(params.market.reduceMarginRatio).toFixed(),
|
|
6207
|
-
open_notional_cap: { uncapped: {} }
|
|
6216
|
+
open_notional_cap: { uncapped: {} },
|
|
6217
|
+
cross_margin_eligible: params.market.crossMarginEligible
|
|
6208
6218
|
}
|
|
6209
6219
|
}
|
|
6210
6220
|
}
|
|
@@ -6232,7 +6242,8 @@ var MsgSubmitProposalPerpetualMarketLaunchV2 = class MsgSubmitProposalPerpetualM
|
|
|
6232
6242
|
min_quantity_tick_size: numberToCosmosSdkDecString(params.market.minQuantityTickSize),
|
|
6233
6243
|
admin_info: adminInfo,
|
|
6234
6244
|
reduce_margin_ratio: numberToCosmosSdkDecString(params.market.reduceMarginRatio),
|
|
6235
|
-
open_notional_cap: { uncapped: {} }
|
|
6245
|
+
open_notional_cap: { uncapped: {} },
|
|
6246
|
+
cross_margin_eligible: params.market.crossMarginEligible
|
|
6236
6247
|
}
|
|
6237
6248
|
};
|
|
6238
6249
|
}
|
|
@@ -8297,6 +8308,7 @@ var MsgCreateRateLimit = class MsgCreateRateLimit extends MsgBase {
|
|
|
8297
8308
|
tokenAddress: params.tokenAddress,
|
|
8298
8309
|
tokenDecimals: Number(params.tokenDecimals),
|
|
8299
8310
|
tokenPriceId: params.tokenPriceId,
|
|
8311
|
+
tokenOracleType: params.tokenOracleType,
|
|
8300
8312
|
rateLimitUsd: toChainFormat(params.rateLimitInUsd).toFixed(),
|
|
8301
8313
|
absoluteMintLimit: toBigNumber((_this$params$absolute = this.params.absoluteMintLimit) !== null && _this$params$absolute !== void 0 ? _this$params$absolute : 0).toFixed(),
|
|
8302
8314
|
rateLimitWindow: BigInt(params.rateLimitWindow)
|
|
@@ -8321,7 +8333,8 @@ var MsgCreateRateLimit = class MsgCreateRateLimit extends MsgBase {
|
|
|
8321
8333
|
token_price_id: params.tokenPriceId,
|
|
8322
8334
|
rate_limit_usd: params.rateLimitInUsd,
|
|
8323
8335
|
absolute_mint_limit: toBigNumber((_this$params$absolute2 = this.params.absoluteMintLimit) !== null && _this$params$absolute2 !== void 0 ? _this$params$absolute2 : 0).toFixed(),
|
|
8324
|
-
rate_limit_window: params.rateLimitWindow.toString()
|
|
8336
|
+
rate_limit_window: params.rateLimitWindow.toString(),
|
|
8337
|
+
token_oracle_type: params.tokenOracleType
|
|
8325
8338
|
}
|
|
8326
8339
|
};
|
|
8327
8340
|
}
|
|
@@ -8332,6 +8345,7 @@ var MsgCreateRateLimit = class MsgCreateRateLimit extends MsgBase {
|
|
|
8332
8345
|
const { params } = this;
|
|
8333
8346
|
return {
|
|
8334
8347
|
...this.toWeb3Gw(),
|
|
8348
|
+
token_oracle_type: InjectiveOracleV1Beta1OraclePb.OracleType[params.tokenOracleType],
|
|
8335
8349
|
rate_limit_usd: numberToCosmosSdkDecString(params.rateLimitInUsd)
|
|
8336
8350
|
};
|
|
8337
8351
|
}
|
|
@@ -8368,6 +8382,7 @@ var MsgUpdateRateLimit = class MsgUpdateRateLimit extends MsgBase {
|
|
|
8368
8382
|
authority: params.injectiveAddress,
|
|
8369
8383
|
tokenAddress: params.tokenAddress,
|
|
8370
8384
|
newTokenPriceId: params.newTokenPriceId,
|
|
8385
|
+
newTokenOracleType: params.newTokenOracleType,
|
|
8371
8386
|
newRateLimitUsd: toChainFormat(params.newRateLimitInUsd).toFixed(),
|
|
8372
8387
|
newRateLimitWindow: BigInt(params.newRateLimitWindow)
|
|
8373
8388
|
});
|
|
@@ -8388,7 +8403,8 @@ var MsgUpdateRateLimit = class MsgUpdateRateLimit extends MsgBase {
|
|
|
8388
8403
|
token_address: params.tokenAddress,
|
|
8389
8404
|
new_token_price_id: params.newTokenPriceId,
|
|
8390
8405
|
new_rate_limit_usd: params.newRateLimitInUsd,
|
|
8391
|
-
new_rate_limit_window: params.newRateLimitWindow.toString()
|
|
8406
|
+
new_rate_limit_window: params.newRateLimitWindow.toString(),
|
|
8407
|
+
new_token_oracle_type: params.newTokenOracleType
|
|
8392
8408
|
}
|
|
8393
8409
|
};
|
|
8394
8410
|
}
|
|
@@ -8399,6 +8415,7 @@ var MsgUpdateRateLimit = class MsgUpdateRateLimit extends MsgBase {
|
|
|
8399
8415
|
const { params } = this;
|
|
8400
8416
|
return {
|
|
8401
8417
|
...this.toWeb3Gw(),
|
|
8418
|
+
new_token_oracle_type: InjectiveOracleV1Beta1OraclePb.OracleType[params.newTokenOracleType],
|
|
8402
8419
|
new_rate_limit_usd: numberToCosmosSdkDecString(params.newRateLimitInUsd)
|
|
8403
8420
|
};
|
|
8404
8421
|
}
|
|
@@ -10463,4 +10480,4 @@ var MsgSetDenomMetadata = class MsgSetDenomMetadata extends MsgBase {
|
|
|
10463
10480
|
};
|
|
10464
10481
|
|
|
10465
10482
|
//#endregion
|
|
10466
|
-
export { ExecArgIncreaseAllowance as $, MsgUpdateDerivativeMarketV2 as $t, MsgCreateRateLimit as A, OrderHashManager as At, MsgExec as B, MsgAdminUpdateBinaryOptionsMarket as Bt, MsgEditValidator as C, MsgCancelSpotOrder as Cn, MsgSubmitProposalPerpetualMarketLaunch as Ct, MsgRelayProviderPrices as D, MsgDepositV2 as Dn, MsgSubmitTextProposal as Dt, MsgBid as E, MsgSignDataV2 as En, MsgSubmitGenericProposal as Et, MsgGrantWithAuthorization as F, MsgInstantBinaryOptionsMarketLaunch as Ft, ExecPrivilegedArgVaultSubscribe as G, MsgCreateDerivativeMarketOrder as Gt, ExecPrivilegedArgOffChainVaultSubscribe as H, MsgBatchCancelDerivativeOrdersV2 as Ht, MsgRevoke as I,
|
|
10483
|
+
export { ExecArgIncreaseAllowance as $, MsgUpdateDerivativeMarketV2 as $t, MsgCreateRateLimit as A, OrderHashManager as At, MsgExec as B, MsgAdminUpdateBinaryOptionsMarket as Bt, MsgEditValidator as C, MsgCancelSpotOrder as Cn, MsgSubmitProposalPerpetualMarketLaunch as Ct, MsgRelayProviderPrices as D, MsgDepositV2 as Dn, MsgSubmitTextProposal as Dt, MsgBid as E, MsgSignDataV2 as En, MsgSubmitGenericProposal as Et, MsgGrantWithAuthorization as F, MsgInstantBinaryOptionsMarketLaunch as Ft, ExecPrivilegedArgVaultSubscribe as G, MsgCreateDerivativeMarketOrder as Gt, ExecPrivilegedArgOffChainVaultSubscribe as H, MsgBatchCancelDerivativeOrdersV2 as Ht, MsgRevoke as I, MsgSetDelegationTransferReceiversV2 as It, ExecArgCreatePerpGridStrategy as J, MsgCreateDerivativeLimitOrder as Jt, ExecPrivilegedArgVaultRedeem as K, MsgBatchCancelDerivativeOrders as Kt, MsgGrant as L, MsgCreateBinaryOptionsLimitOrderV2 as Lt, ContractExecutionCompatAuthorization as M, MsgCreateBinaryOptionsMarketOrderV2 as Mt, ContractExecutionAuthorization as N, MsgBatchCancelBinaryOptionsOrdersV2 as Nt, MsgRemoveRateLimit as O, MsgWithdraw as On, MsgDeposit as Ot, GenericAuthorization as P, MsgAdminUpdateBinaryOptionsMarketV2 as Pt, ExecArgRemoveGridStrategy as Q, MsgCancelBinaryOptionsOrder as Qt, getGenericAuthorizationFromMessageType as R, MsgCreateBinaryOptionsMarketOrder as Rt, MsgBeginRedelegate as S, MsgRewardsOptOutV2 as Sn, MsgSubmitProposalSpotMarketParamUpdate as St, MsgDelegate as T, MsgWithdrawV2 as Tn, MsgSubmitProposalSpotMarketLaunch as Tt, ExecPrivilegedArgOffChainVaultRedeem as U, MsgCreateBinaryOptionsLimitOrder as Ut, GrantAuthorizationType as V, MsgCreateDerivativeMarketOrderV2 as Vt, ExecArgCW20AdapterRedeemAndTransfer as W, MsgCreateDerivativeLimitOrderV2 as Wt, StrategyType as X, MsgDecreasePositionMarginV2 as Xt, ExitType as Y, MsgInstantSpotMarketLaunchV2 as Yt, MsgPrivilegedExecuteContract as Z, MsgIncreasePositionMarginV2 as Zt, MsgRevokeAllowance as _, MsgReclaimLockedFunds as _n, MsgSend as _t, MsgBurn as a, MsgAuthorizeStakeGrantsV2 as an, ExecArgDepositTokens as at, MsgTransferDelegation as b, MsgBatchUpdateOrders as bn, MsgSubmitProposalExpiryFuturesMarketLaunch as bt, MsgFundCommunityPool as c, MsgBatchCancelSpotOrders as cn, ExecArgCW20Transfer as ct, MsgCreateNamespace as d, MsgCreateSpotLimitOrder as dn, MsgMigrateContract as dt, MsgCreateSpotMarketOrderV2 as en, ExecArgUpdateGridConfig as et, MsgUpdateParams as f, MsgCancelPostOnlyModeV2 as fn, MsgExecuteContract as ft, MsgUnderwrite as g, MsgUpdateSpotMarketV2 as gn, MsgMultiSend as gt, MsgRequestRedemption as h, MsgExternalTransferV2 as hn, MsgStoreCode as ht, MsgMint as i, MsgCreateSpotLimitOrderV2 as in, ExecArgSwapMinOutput as it, MsgSendToEth as j, MsgInstantBinaryOptionsMarketLaunchV2 as jt, MsgUpdateRateLimit as k, MsgDeposit$1 as kn, MsgVote as kt, MsgUpdateActorRoles as l, MsgReclaimLockedFundsV2 as ln, ExecArgCreateRound as lt, MsgCreateInsuranceFund as m, MsgBatchUpdateOrdersV2 as mn, MsgUpdateAdmin as mt, MsgCreateDenom as n, MsgCancelDerivativeOrderV2 as nn, ExecArgSwapExactOutput as nt, MsgWithdrawValidatorCommission as o, MsgCreateSpotMarketOrder as on, MsgInstantiateContract as ot, MsgClaimVoucher as p, MsgLiquidatePositionV2 as pn, ExecArgCW20Send as pt, ExecArgCreateSpotGridStrategy as q, MsgCancelBinaryOptionsOrderV2 as qt, MsgChangeAdmin as r, MsgInstantSpotMarketLaunch as rn, ExecArgCreateCampaign as rt, MsgWithdrawDelegatorReward as s, MsgCancelDerivativeOrder as sn, ExecArgFundCampaign as st, MsgSetDenomMetadata as t, MsgBatchCancelSpotOrdersV2 as tn, ExecArgInitiateTransfer as tt, MsgUpdateNamespace as u, MsgAuthorizeStakeGrants as un, ExecArgSubmitVaa as ut, MsgGrantAllowance as v, MsgCancelSpotOrderV2 as vn, MsgTransfer as vt, MsgUndelegate as w, MsgRewardsOptOut as wn, MsgGrantProviderPrivilegeProposal as wt, MsgCreateValidator as x, MsgExternalTransfer as xn, MsgSubmitProposalPerpetualMarketLaunchV2 as xt, MsgCancelUnbondingDelegation as y, MsgLiquidatePosition as yn, ProposalDecomposer as yt, msgsOrMsgExecMsgs as z, MsgBatchCancelBinaryOptionsOrders as zt };
|
|
@@ -7228,13 +7228,14 @@ function extractGrpcError(error) {
|
|
|
7228
7228
|
* - User callback errors are caught and emitted separately to distinguish from stream errors
|
|
7229
7229
|
* - Aborted streams don't emit any events (clean shutdown)
|
|
7230
7230
|
*
|
|
7231
|
-
* @param
|
|
7231
|
+
* @param streamFactory - Creates the ServerStreamingCall from the V2 client
|
|
7232
7232
|
* @param handleResponse - Callback to process each stream response
|
|
7233
7233
|
* @returns StreamSubscription with event emitters for error/complete
|
|
7234
7234
|
*/
|
|
7235
|
-
function createStreamSubscriptionV2(
|
|
7235
|
+
function createStreamSubscriptionV2(streamFactory, handleResponse) {
|
|
7236
7236
|
const emitter = new EventEmitter();
|
|
7237
7237
|
const abortController = new AbortController();
|
|
7238
|
+
const stream = streamFactory(abortController.signal);
|
|
7238
7239
|
let hasEmittedTerminalEvent = false;
|
|
7239
7240
|
const subscription = {
|
|
7240
7241
|
unsubscribe: () => {
|
|
@@ -7299,7 +7300,7 @@ var IndexerGrpcRfqStreamV2 = class {
|
|
|
7299
7300
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7300
7301
|
const request = InjectiveRFQExchangeRpcPb.StreamRequestRequest.create();
|
|
7301
7302
|
if (marketIds && marketIds.length > 0) request.marketIds = marketIds;
|
|
7302
|
-
return createStreamSubscriptionV2(this.client.streamRequest(request), (response) => {
|
|
7303
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamRequest(request, { abort: abortSignal }), (response) => {
|
|
7303
7304
|
callback(IndexerRfqStreamTransformer.requestStreamCallback(response));
|
|
7304
7305
|
});
|
|
7305
7306
|
}
|
|
@@ -7308,7 +7309,7 @@ var IndexerGrpcRfqStreamV2 = class {
|
|
|
7308
7309
|
const request = InjectiveRFQExchangeRpcPb.StreamQuoteRequest.create();
|
|
7309
7310
|
if (addresses && addresses.length > 0) request.addresses = addresses;
|
|
7310
7311
|
if (marketIds && marketIds.length > 0) request.marketIds = marketIds;
|
|
7311
|
-
return createStreamSubscriptionV2(this.client.streamQuote(request), (response) => {
|
|
7312
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamQuote(request, { abort: abortSignal }), (response) => {
|
|
7312
7313
|
callback(IndexerRfqStreamTransformer.quoteStreamCallback(response));
|
|
7313
7314
|
});
|
|
7314
7315
|
}
|
|
@@ -7316,7 +7317,7 @@ var IndexerGrpcRfqStreamV2 = class {
|
|
|
7316
7317
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7317
7318
|
const request = InjectiveRFQExchangeRpcPb.StreamSettlementRequest.create();
|
|
7318
7319
|
if (addresses && addresses.length > 0) request.addresses = addresses;
|
|
7319
|
-
return createStreamSubscriptionV2(this.client.streamSettlement(request), (response) => {
|
|
7320
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamSettlement(request, { abort: abortSignal }), (response) => {
|
|
7320
7321
|
callback(IndexerRfqStreamTransformer.settlementStreamCallback(response));
|
|
7321
7322
|
});
|
|
7322
7323
|
}
|
|
@@ -7342,7 +7343,7 @@ var IndexerGrpcSpotStreamV2 = class {
|
|
|
7342
7343
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7343
7344
|
const request = InjectiveSpotExchangeRpcPb.StreamOrderbookUpdateRequest.create();
|
|
7344
7345
|
request.marketIds = marketIds;
|
|
7345
|
-
return createStreamSubscriptionV2(this.client.streamOrderbookUpdate(request), (response) => {
|
|
7346
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrderbookUpdate(request, { abort: abortSignal }), (response) => {
|
|
7346
7347
|
callback(IndexerSpotStreamTransformer.orderbookUpdateStreamCallback(response));
|
|
7347
7348
|
});
|
|
7348
7349
|
}
|
|
@@ -7360,7 +7361,7 @@ var IndexerGrpcSpotStreamV2 = class {
|
|
|
7360
7361
|
if (marketId) request.marketId = marketId;
|
|
7361
7362
|
if (subaccountId) request.subaccountId = subaccountId;
|
|
7362
7363
|
if (orderSide) request.orderSide = orderSide;
|
|
7363
|
-
return createStreamSubscriptionV2(this.client.streamOrders(request), (response) => {
|
|
7364
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrders(request, { abort: abortSignal }), (response) => {
|
|
7364
7365
|
callback(IndexerSpotStreamTransformer.ordersStreamCallback(response));
|
|
7365
7366
|
});
|
|
7366
7367
|
}
|
|
@@ -7384,7 +7385,7 @@ var IndexerGrpcSpotStreamV2 = class {
|
|
|
7384
7385
|
if (direction) request.direction = direction;
|
|
7385
7386
|
if (state) request.state = state;
|
|
7386
7387
|
if (executionTypes) request.executionTypes = executionTypes;
|
|
7387
|
-
return createStreamSubscriptionV2(this.client.streamOrdersHistory(request), (response) => {
|
|
7388
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrdersHistory(request, { abort: abortSignal }), (response) => {
|
|
7388
7389
|
callback(IndexerSpotStreamTransformer.orderHistoryStreamCallback(response));
|
|
7389
7390
|
});
|
|
7390
7391
|
}
|
|
@@ -7410,7 +7411,7 @@ var IndexerGrpcSpotStreamV2 = class {
|
|
|
7410
7411
|
if (executionSide) request.executionSide = executionSide;
|
|
7411
7412
|
if (direction) request.direction = direction;
|
|
7412
7413
|
if (executionTypes) request.executionTypes = executionTypes;
|
|
7413
|
-
return createStreamSubscriptionV2(this.client.streamTrades(request), (response) => {
|
|
7414
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamTrades(request, { abort: abortSignal }), (response) => {
|
|
7414
7415
|
callback(IndexerSpotStreamTransformer.tradesStreamCallback(response));
|
|
7415
7416
|
});
|
|
7416
7417
|
}
|
|
@@ -7437,7 +7438,7 @@ var IndexerGrpcMitoStreamV2 = class {
|
|
|
7437
7438
|
const request = GoadesignGoagenMitoApiPb.StreamTransfersRequest.create();
|
|
7438
7439
|
if (vault) request.vault = vault;
|
|
7439
7440
|
if (account) request.account = account;
|
|
7440
|
-
return createStreamSubscriptionV2(this.client.streamTransfers(request), (response) => {
|
|
7441
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamTransfers(request, { abort: abortSignal }), (response) => {
|
|
7441
7442
|
callback(IndexerGrpcMitoStreamTransformer.transfersStreamCallback(response));
|
|
7442
7443
|
});
|
|
7443
7444
|
}
|
|
@@ -7451,7 +7452,7 @@ var IndexerGrpcMitoStreamV2 = class {
|
|
|
7451
7452
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7452
7453
|
const request = GoadesignGoagenMitoApiPb.StreamVaultRequest.create();
|
|
7453
7454
|
if (vault) request.vault = vault;
|
|
7454
|
-
return createStreamSubscriptionV2(this.client.streamVault(request), (response) => {
|
|
7455
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamVault(request, { abort: abortSignal }), (response) => {
|
|
7455
7456
|
callback(IndexerGrpcMitoStreamTransformer.vaultStreamCallback(response));
|
|
7456
7457
|
});
|
|
7457
7458
|
}
|
|
@@ -7470,7 +7471,7 @@ var IndexerGrpcMitoStreamV2 = class {
|
|
|
7470
7471
|
request.holderAddress = holderAddress;
|
|
7471
7472
|
if (vaultAddress) request.vaultAddress = vaultAddress;
|
|
7472
7473
|
if (stakingContractAddress) request.stakingContractAddress = stakingContractAddress;
|
|
7473
|
-
return createStreamSubscriptionV2(this.client.streamHolderSubscription(request), (response) => {
|
|
7474
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamHolderSubscription(request, { abort: abortSignal }), (response) => {
|
|
7474
7475
|
callback(IndexerGrpcMitoStreamTransformer.vaultHolderSubscriptionStreamCallback(response));
|
|
7475
7476
|
});
|
|
7476
7477
|
}
|
|
@@ -7488,7 +7489,7 @@ var IndexerGrpcMitoStreamV2 = class {
|
|
|
7488
7489
|
const request = GoadesignGoagenMitoApiPb.StreamStakingRewardByAccountRequest.create();
|
|
7489
7490
|
request.staker = staker;
|
|
7490
7491
|
request.stakingContractAddress = stakingContractAddress;
|
|
7491
|
-
return createStreamSubscriptionV2(this.client.streamStakingRewardByAccount(request), (response) => {
|
|
7492
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamStakingRewardByAccount(request, { abort: abortSignal }), (response) => {
|
|
7492
7493
|
callback(IndexerGrpcMitoStreamTransformer.stakingRewardByAccountStreamCallback(response));
|
|
7493
7494
|
});
|
|
7494
7495
|
}
|
|
@@ -7506,7 +7507,7 @@ var IndexerGrpcMitoStreamV2 = class {
|
|
|
7506
7507
|
const request = GoadesignGoagenMitoApiPb.StreamHistoricalStakingRequest.create();
|
|
7507
7508
|
request.staker = staker;
|
|
7508
7509
|
request.stakingContractAddress = stakingContractAddress;
|
|
7509
|
-
return createStreamSubscriptionV2(this.client.streamHistoricalStaking(request), (response) => {
|
|
7510
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamHistoricalStaking(request, { abort: abortSignal }), (response) => {
|
|
7510
7511
|
callback(IndexerGrpcMitoStreamTransformer.historicalStakingStreamCallback(response));
|
|
7511
7512
|
});
|
|
7512
7513
|
}
|
|
@@ -7536,7 +7537,7 @@ var IndexerGrpcOracleStreamV2 = class {
|
|
|
7536
7537
|
if (baseSymbol) request.baseSymbol = baseSymbol;
|
|
7537
7538
|
if (quoteSymbol) request.quoteSymbol = quoteSymbol;
|
|
7538
7539
|
request.oracleType = oracleType;
|
|
7539
|
-
return createStreamSubscriptionV2(this.client.streamPrices(request), (response) => {
|
|
7540
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamPrices(request, { abort: abortSignal }), (response) => {
|
|
7540
7541
|
callback(IndexerOracleStreamTransformer.pricesStreamCallback(response));
|
|
7541
7542
|
});
|
|
7542
7543
|
}
|
|
@@ -7550,7 +7551,7 @@ var IndexerGrpcOracleStreamV2 = class {
|
|
|
7550
7551
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7551
7552
|
const request = InjectiveOracleRpcPb.StreamPricesByMarketsRequest.create();
|
|
7552
7553
|
if (marketIds) request.marketIds = marketIds;
|
|
7553
|
-
return createStreamSubscriptionV2(this.client.streamPricesByMarkets(request), (response) => {
|
|
7554
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamPricesByMarkets(request, { abort: abortSignal }), (response) => {
|
|
7554
7555
|
callback(IndexerOracleStreamTransformer.pricesByMarketsCallback(response));
|
|
7555
7556
|
});
|
|
7556
7557
|
}
|
|
@@ -7559,7 +7560,7 @@ var IndexerGrpcOracleStreamV2 = class {
|
|
|
7559
7560
|
const request = InjectiveOracleRpcPb.StreamOracleListRequest.create();
|
|
7560
7561
|
if (oracleType) request.oracleType = oracleType;
|
|
7561
7562
|
if (symbols && symbols.length > 0) request.symbols = symbols;
|
|
7562
|
-
return createStreamSubscriptionV2(this.client.streamOracleList(request), (response) => {
|
|
7563
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOracleList(request, { abort: abortSignal }), (response) => {
|
|
7563
7564
|
callback(IndexerOracleStreamTransformer.oracleListStreamCallback(response));
|
|
7564
7565
|
});
|
|
7565
7566
|
}
|
|
@@ -7585,7 +7586,7 @@ var IndexerGrpcAccountStreamV2 = class {
|
|
|
7585
7586
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7586
7587
|
const request = InjectiveAccountsRpcPb.StreamSubaccountBalanceRequest.create();
|
|
7587
7588
|
request.subaccountId = subaccountId;
|
|
7588
|
-
return createStreamSubscriptionV2(this.client.streamSubaccountBalance(request), (response) => {
|
|
7589
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamSubaccountBalance(request, { abort: abortSignal }), (response) => {
|
|
7589
7590
|
callback(IndexerAccountStreamTransformer.balanceStreamCallback(response));
|
|
7590
7591
|
});
|
|
7591
7592
|
}
|
|
@@ -7608,7 +7609,7 @@ var IndexerGrpcAuctionStreamV2 = class {
|
|
|
7608
7609
|
streamBids({ callback }) {
|
|
7609
7610
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7610
7611
|
const request = InjectiveAuctionRpcPb.StreamBidsRequest.create();
|
|
7611
|
-
return createStreamSubscriptionV2(this.client.streamBids(request), (response) => {
|
|
7612
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamBids(request, { abort: abortSignal }), (response) => {
|
|
7612
7613
|
callback(IndexerAuctionStreamTransformer.bidsStreamCallback(response));
|
|
7613
7614
|
});
|
|
7614
7615
|
}
|
|
@@ -7636,7 +7637,7 @@ var IndexerGrpcTradingStreamV2 = class {
|
|
|
7636
7637
|
const request = InjectiveTradingRpcPb.StreamStrategyRequest.create();
|
|
7637
7638
|
if (accountAddresses) request.accountAddresses = accountAddresses;
|
|
7638
7639
|
if (marketId) request.marketId = marketId;
|
|
7639
|
-
return createStreamSubscriptionV2(this.client.streamStrategy(request), (response) => {
|
|
7640
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamStrategy(request, { abort: abortSignal }), (response) => {
|
|
7640
7641
|
callback(response);
|
|
7641
7642
|
});
|
|
7642
7643
|
}
|
|
@@ -7662,7 +7663,7 @@ var IndexerGrpcArchiverStreamV2 = class {
|
|
|
7662
7663
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7663
7664
|
const request = InjectiveArchiverRpcPb.StreamSpotAverageEntriesRequest.create();
|
|
7664
7665
|
request.account = account;
|
|
7665
|
-
return createStreamSubscriptionV2(this.client.streamSpotAverageEntries(request), (response) => {
|
|
7666
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamSpotAverageEntries(request, { abort: abortSignal }), (response) => {
|
|
7666
7667
|
callback(IndexerArchiverStreamTransformer.spotAverageEntriesStreamCallback(response));
|
|
7667
7668
|
});
|
|
7668
7669
|
}
|
|
@@ -7685,7 +7686,7 @@ var IndexerGrpcExplorerStreamV2 = class {
|
|
|
7685
7686
|
streamBlocks({ callback }) {
|
|
7686
7687
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7687
7688
|
const request = InjectiveExplorerRpcPb.StreamBlocksRequest.create();
|
|
7688
|
-
return createStreamSubscriptionV2(this.client.streamBlocks(request), (response) => {
|
|
7689
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamBlocks(request, { abort: abortSignal }), (response) => {
|
|
7689
7690
|
callback(ExplorerStreamTransformer.blocksStreamCallback(response));
|
|
7690
7691
|
});
|
|
7691
7692
|
}
|
|
@@ -7697,7 +7698,7 @@ var IndexerGrpcExplorerStreamV2 = class {
|
|
|
7697
7698
|
streamBlocksWithTxs({ callback }) {
|
|
7698
7699
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7699
7700
|
const request = InjectiveExplorerRpcPb.StreamBlocksRequest.create();
|
|
7700
|
-
return createStreamSubscriptionV2(this.client.streamBlocks(request), (response) => {
|
|
7701
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamBlocks(request, { abort: abortSignal }), (response) => {
|
|
7701
7702
|
callback(ExplorerStreamTransformer.blocksWithTxsStreamCallback(response));
|
|
7702
7703
|
});
|
|
7703
7704
|
}
|
|
@@ -7709,7 +7710,7 @@ var IndexerGrpcExplorerStreamV2 = class {
|
|
|
7709
7710
|
streamTransactions({ callback }) {
|
|
7710
7711
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7711
7712
|
const request = InjectiveExplorerRpcPb.StreamTxsRequest.create();
|
|
7712
|
-
return createStreamSubscriptionV2(this.client.streamTxs(request), (response) => {
|
|
7713
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamTxs(request, { abort: abortSignal }), (response) => {
|
|
7713
7714
|
callback(ExplorerStreamTransformer.transactionsStreamCallback(response));
|
|
7714
7715
|
});
|
|
7715
7716
|
}
|
|
@@ -7742,7 +7743,7 @@ var IndexerGrpcWsPriceOracleStreamV2 = class {
|
|
|
7742
7743
|
if (marketIds && marketIds.length > 0) request.marketIds = marketIds;
|
|
7743
7744
|
if (oracleTypes && oracleTypes.length > 0) request.oracleTypes = oracleTypes;
|
|
7744
7745
|
if (includeInactive !== void 0) request.includeInactive = includeInactive;
|
|
7745
|
-
return createStreamSubscriptionV2(this.client.streamMarkets(request), (response) => {
|
|
7746
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamMarkets(request, { abort: abortSignal }), (response) => {
|
|
7746
7747
|
callback(IndexerWsPriceOracleStreamTransformer.streamMarketsCallback(response));
|
|
7747
7748
|
});
|
|
7748
7749
|
}
|
|
@@ -7762,7 +7763,7 @@ var IndexerGrpcWsPriceOracleStreamV2 = class {
|
|
|
7762
7763
|
if (oracleTypes && oracleTypes.length > 0) request.oracleTypes = oracleTypes;
|
|
7763
7764
|
if (includeInactive !== void 0) request.includeInactive = includeInactive;
|
|
7764
7765
|
if (mode) request.mode = mode;
|
|
7765
|
-
return createStreamSubscriptionV2(this.client.streamMarketsV2(request), (response) => {
|
|
7766
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamMarketsV2(request, { abort: abortSignal }), (response) => {
|
|
7766
7767
|
callback(IndexerWsPriceOracleStreamTransformer.streamMarketsV2Callback(response));
|
|
7767
7768
|
});
|
|
7768
7769
|
}
|
|
@@ -7791,7 +7792,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7791
7792
|
if (marketId) request.marketId = marketId;
|
|
7792
7793
|
if (subaccountId) request.subaccountId = subaccountId;
|
|
7793
7794
|
if (orderSide) request.orderSide = orderSide;
|
|
7794
|
-
return createStreamSubscriptionV2(this.client.streamOrders(request), (response) => {
|
|
7795
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrders(request, { abort: abortSignal }), (response) => {
|
|
7795
7796
|
callback(IndexerDerivativeStreamTransformer.ordersStreamCallback(response));
|
|
7796
7797
|
});
|
|
7797
7798
|
}
|
|
@@ -7815,7 +7816,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7815
7816
|
if (direction) request.direction = direction;
|
|
7816
7817
|
if (state) request.state = state;
|
|
7817
7818
|
if (executionTypes) request.executionTypes = executionTypes;
|
|
7818
|
-
return createStreamSubscriptionV2(this.client.streamOrdersHistory(request), (response) => {
|
|
7819
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrdersHistory(request, { abort: abortSignal }), (response) => {
|
|
7819
7820
|
callback(IndexerDerivativeStreamTransformer.orderHistoryStreamCallback(response));
|
|
7820
7821
|
});
|
|
7821
7822
|
}
|
|
@@ -7844,7 +7845,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7844
7845
|
if (pagination.skip !== void 0) request.skip = BigInt(pagination.skip);
|
|
7845
7846
|
if (pagination.limit !== void 0) request.limit = pagination.limit;
|
|
7846
7847
|
}
|
|
7847
|
-
return createStreamSubscriptionV2(this.client.streamTrades(request), (response) => {
|
|
7848
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamTrades(request, { abort: abortSignal }), (response) => {
|
|
7848
7849
|
callback(IndexerDerivativeStreamTransformer.tradesStreamCallback(response));
|
|
7849
7850
|
});
|
|
7850
7851
|
}
|
|
@@ -7862,7 +7863,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7862
7863
|
if (marketId) request.marketId = marketId;
|
|
7863
7864
|
if (address) request.accountAddress = address;
|
|
7864
7865
|
if (subaccountId) request.subaccountId = subaccountId;
|
|
7865
|
-
return createStreamSubscriptionV2(this.client.streamPositions(request), (response) => {
|
|
7866
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamPositions(request, { abort: abortSignal }), (response) => {
|
|
7866
7867
|
callback(IndexerDerivativeStreamTransformer.positionStreamCallback(response));
|
|
7867
7868
|
});
|
|
7868
7869
|
}
|
|
@@ -7876,7 +7877,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7876
7877
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7877
7878
|
const request = InjectiveDerivativeExchangeRpcPb.StreamMarketRequest.create();
|
|
7878
7879
|
if (marketIds && marketIds.length) request.marketIds = marketIds;
|
|
7879
|
-
return createStreamSubscriptionV2(this.client.streamMarket(request), (response) => {
|
|
7880
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamMarket(request, { abort: abortSignal }), (response) => {
|
|
7880
7881
|
callback(response);
|
|
7881
7882
|
});
|
|
7882
7883
|
}
|
|
@@ -7891,7 +7892,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7891
7892
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7892
7893
|
const request = InjectiveDerivativeExchangeRpcPb.StreamOrderbookV2Request.create();
|
|
7893
7894
|
request.marketIds = marketIds;
|
|
7894
|
-
return createStreamSubscriptionV2(this.client.streamOrderbookV2(request), (response) => {
|
|
7895
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrderbookV2(request, { abort: abortSignal }), (response) => {
|
|
7895
7896
|
callback(IndexerDerivativeStreamTransformer.orderbookV2StreamCallback(response));
|
|
7896
7897
|
});
|
|
7897
7898
|
}
|
|
@@ -7906,7 +7907,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7906
7907
|
if (typeof callback !== "function") throw new Error("callback must be a function");
|
|
7907
7908
|
const request = InjectiveDerivativeExchangeRpcPb.StreamOrderbookUpdateRequest.create();
|
|
7908
7909
|
request.marketIds = marketIds;
|
|
7909
|
-
return createStreamSubscriptionV2(this.client.streamOrderbookUpdate(request), (response) => {
|
|
7910
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrderbookUpdate(request, { abort: abortSignal }), (response) => {
|
|
7910
7911
|
callback(IndexerDerivativeStreamTransformer.orderbookUpdateStreamCallback(response));
|
|
7911
7912
|
});
|
|
7912
7913
|
}
|
|
@@ -7924,7 +7925,7 @@ var IndexerGrpcDerivativesStreamV2 = class {
|
|
|
7924
7925
|
if (marketId) request.marketId = marketId;
|
|
7925
7926
|
if (address) request.accountAddress = address;
|
|
7926
7927
|
if (subaccountId) request.subaccountId = subaccountId;
|
|
7927
|
-
return createStreamSubscriptionV2(this.client.streamPositionsV2(request), (response) => {
|
|
7928
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamPositionsV2(request, { abort: abortSignal }), (response) => {
|
|
7928
7929
|
callback(IndexerDerivativeStreamTransformer.positionV2StreamCallback(response));
|
|
7929
7930
|
});
|
|
7930
7931
|
}
|
|
@@ -7944,7 +7945,7 @@ var IndexerGrpcTcDerivativesStreamV2 = class {
|
|
|
7944
7945
|
const request = InjectiveTCDerivativesRpcPb.StreamOrdersHistoryRequest.create();
|
|
7945
7946
|
if (marketId) request.marketIds = [marketId];
|
|
7946
7947
|
if (accountAddress) request.accountAddress = accountAddress;
|
|
7947
|
-
return createStreamSubscriptionV2(this.client.streamOrdersHistory(request), (response) => {
|
|
7948
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrdersHistory(request, { abort: abortSignal }), (response) => {
|
|
7948
7949
|
callback(IndexerTcDerivativesStreamTransformer.orderHistoryStreamCallback(response));
|
|
7949
7950
|
});
|
|
7950
7951
|
}
|
|
@@ -7954,7 +7955,7 @@ var IndexerGrpcTcDerivativesStreamV2 = class {
|
|
|
7954
7955
|
if (marketId) request.marketIds = [marketId];
|
|
7955
7956
|
if (accountAddress) request.accountAddress = accountAddress;
|
|
7956
7957
|
if (rfqMaker) request.rfqMaker = rfqMaker;
|
|
7957
|
-
return createStreamSubscriptionV2(this.client.streamTrades(request), (response) => {
|
|
7958
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamTrades(request, { abort: abortSignal }), (response) => {
|
|
7958
7959
|
callback(IndexerTcDerivativesStreamTransformer.tradesStreamCallback(response));
|
|
7959
7960
|
});
|
|
7960
7961
|
}
|
|
@@ -7963,7 +7964,7 @@ var IndexerGrpcTcDerivativesStreamV2 = class {
|
|
|
7963
7964
|
const request = InjectiveTCDerivativesRpcPb.StreamPositionsRequest.create();
|
|
7964
7965
|
if (marketId) request.marketIds = [marketId];
|
|
7965
7966
|
if (accountAddress) request.accountAddress = accountAddress;
|
|
7966
|
-
return createStreamSubscriptionV2(this.client.streamPositions(request), (response) => {
|
|
7967
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamPositions(request, { abort: abortSignal }), (response) => {
|
|
7967
7968
|
callback(IndexerTcDerivativesStreamTransformer.positionsStreamCallback(response));
|
|
7968
7969
|
});
|
|
7969
7970
|
}
|
|
@@ -7972,7 +7973,7 @@ var IndexerGrpcTcDerivativesStreamV2 = class {
|
|
|
7972
7973
|
const request = InjectiveTCDerivativesRpcPb.StreamOrdersRequest.create();
|
|
7973
7974
|
if (marketId) request.marketIds = [marketId];
|
|
7974
7975
|
if (accountAddress) request.accountAddress = accountAddress;
|
|
7975
|
-
return createStreamSubscriptionV2(this.client.streamOrders(request), (response) => {
|
|
7976
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamOrders(request, { abort: abortSignal }), (response) => {
|
|
7976
7977
|
callback(IndexerTcDerivativesStreamTransformer.ordersStreamCallback(response));
|
|
7977
7978
|
});
|
|
7978
7979
|
}
|
|
@@ -8002,7 +8003,7 @@ var IndexerGrpcAccountPortfolioStreamV2 = class {
|
|
|
8002
8003
|
request.accountAddress = accountAddress;
|
|
8003
8004
|
if (subaccountId) request.subaccountId = subaccountId;
|
|
8004
8005
|
if (type) request.type = type;
|
|
8005
|
-
return createStreamSubscriptionV2(this.client.streamAccountPortfolio(request), (response) => {
|
|
8006
|
+
return createStreamSubscriptionV2((abortSignal) => this.client.streamAccountPortfolio(request, { abort: abortSignal }), (response) => {
|
|
8006
8007
|
callback(IndexerAccountPortfolioStreamTransformer.accountPortfolioStreamCallback(response));
|
|
8007
8008
|
});
|
|
8008
8009
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../tx_pb-
|
|
2
|
-
import "../index-
|
|
1
|
+
import "../tx_pb-DZQILTFk.js";
|
|
2
|
+
import "../index-Bmd15r-k.js";
|
|
3
3
|
import "../light-Cr4m0DAA.js";
|
|
4
|
-
import "../BaseGrpcConsumer-
|
|
5
|
-
import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-
|
|
4
|
+
import "../BaseGrpcConsumer-Dyo1rsKM.js";
|
|
5
|
+
import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-lpl00nu5.js";
|
|
6
6
|
export { AbacusGrpcApi, PointsLatestResponse, PointsStatsRow };
|