@injectivelabs/sdk-ts 1.17.3 → 1.17.5
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/{AbacusGrpcApi-BSFhRFgK.cjs → AbacusGrpcApi-QbGB8ZMB.cjs} +1 -1
- package/dist/cjs/{BaseGrpcConsumer-B_mvIpmK.cjs → BaseGrpcConsumer-Db3sCC6b.cjs} +1 -1
- package/dist/cjs/{BaseIndexerGrpcConsumer-DRpriWCr.cjs → BaseIndexerGrpcConsumer-BBXxg_BR.cjs} +1 -1
- package/dist/cjs/{ChainGrpcExchangeApi-6SEFLrhR.cjs → ChainGrpcExchangeApi-Xtflr7xp.cjs} +3 -3
- package/dist/cjs/{ChainRestTendermintApi-B2934YcX.cjs → ChainRestTendermintApi-CyeoAmer.cjs} +3 -3
- package/dist/cjs/{DirectEthSecp256k1Wallet-CIdxvYjL.cjs → DirectEthSecp256k1Wallet-BiAOoEd6.cjs} +2 -2
- package/dist/cjs/{ExecArgNeptuneWithdraw-C-NQ72VM.cjs → ExecArgNeptuneWithdraw-4esQ6Su-.cjs} +2 -2
- package/dist/cjs/{IndexerGrpcWeb3GwApi-DzqoC5Jw.cjs → IndexerGrpcWeb3GwApi-BxJoq1-k.cjs} +2 -2
- package/dist/cjs/{MsgSetDenomMetadata-CJFO-LDN.cjs → MsgSetDenomMetadata-DzYvKtNj.cjs} +5 -5
- package/dist/cjs/{OLPGrpcApi-REqBM4Dt.cjs → OLPGrpcApi-Cy4tRUMM.cjs} +107 -107
- package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-BWV29f7F.cjs → QueryTradingStrategyContractTotalStrategies-DPrIH5Jb.cjs} +3 -3
- package/dist/cjs/{StreamManagerV2-bxmrwMoi.cjs → StreamManagerV2-Dvfpwi5Z.cjs} +16 -6
- package/dist/cjs/{accounts-CHKUxDIf.cjs → accounts-HFzAaFRB.cjs} +2 -2
- package/dist/cjs/{chain-CtjB0xod.cjs → chain-CPs0kwL0.cjs} +12 -13
- package/dist/cjs/client/abacus.cjs +3 -3
- package/dist/cjs/client/chain.cjs +7 -8
- package/dist/cjs/client/chain.d.cts +2 -2
- package/dist/cjs/client/indexer.cjs +8 -9
- package/dist/cjs/client/indexer.d.cts +3 -3
- package/dist/cjs/client/olp.cjs +4 -5
- package/dist/cjs/client/olp.d.cts +1 -1
- package/dist/cjs/client/wasm.cjs +10 -11
- package/dist/cjs/core/accounts.cjs +4 -5
- package/dist/cjs/core/accounts.d.cts +2 -2
- package/dist/cjs/core/modules.cjs +13 -14
- package/dist/cjs/core/modules.d.cts +2 -2
- package/dist/cjs/core/tx.cjs +10 -11
- package/dist/cjs/core/tx.d.cts +2 -2
- package/dist/cjs/cosmjs.cjs +11 -12
- package/dist/cjs/exports.cjs +11 -12
- package/dist/cjs/{index-B3Hd6YoY.d.cts → index-CtpWCH7L.d.cts} +644 -434
- package/dist/cjs/{index-C_ioefRg.d.cts → index-YmLrS29a.d.cts} +44 -18
- package/dist/cjs/index.cjs +25 -26
- package/dist/cjs/index.d.cts +3 -3
- package/dist/cjs/{service-BCLvTVy_.cjs → service-C0DSVBn_.cjs} +2 -2
- package/dist/cjs/service.cjs +4 -5
- package/dist/cjs/{tx-BXn3eqwi.cjs → tx-MgHAjEie.cjs} +5 -5
- package/dist/cjs/types.cjs +1 -1
- package/dist/cjs/{utils-CDl812vv.cjs → utils-D3XFGv8y.cjs} +73 -0
- package/dist/cjs/utils.cjs +7 -8
- package/dist/cjs/utils.d.cts +2 -2
- package/dist/esm/{AbacusGrpcApi-Ccjmvton.js → AbacusGrpcApi-H-P0UiPh.js} +1 -1
- package/dist/esm/{BaseGrpcConsumer-D3CPxlPN.js → BaseGrpcConsumer-a7fB9A_e.js} +1 -1
- package/dist/esm/{BaseGrpcConsumer-CBQRoq72.d.ts → BaseGrpcConsumer-iOh57BsK.d.ts} +1 -1
- package/dist/esm/{BaseIndexerGrpcConsumer-DQUmeane.js → BaseIndexerGrpcConsumer-CrwqSxDq.js} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-DQvLWB5R.js → ChainGrpcExchangeApi-Ko7rM6Df.js} +3 -3
- package/dist/esm/{ChainRestTendermintApi-DUK7FvxW.js → ChainRestTendermintApi-BUV-cxVj.js} +3 -3
- package/dist/esm/{DirectEthSecp256k1Wallet-BqxC1b40.js → DirectEthSecp256k1Wallet-CMxBvSTE.js} +2 -2
- package/dist/esm/{ExecArgNeptuneWithdraw-uLf3HttI.js → ExecArgNeptuneWithdraw-BRJZq8Vb.js} +2 -2
- package/dist/esm/{IndexerGrpcWeb3GwApi-yHniiZ22.js → IndexerGrpcWeb3GwApi-CX4ohUOk.js} +2 -2
- package/dist/esm/{MsgSetDenomMetadata-BNYIha2C.js → MsgSetDenomMetadata-CeD0R82a.js} +5 -5
- package/dist/esm/{OLPGrpcApi-8NQqfKhT.js → OLPGrpcApi-Cg0YLBqL.js} +95 -95
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-D_4tvQEy.js → QueryTradingStrategyContractTotalStrategies-D9fMELJH.js} +3 -3
- package/dist/esm/{StreamManagerV2-BGjxaWMK.js → StreamManagerV2-B_6ctbMb.js} +16 -6
- package/dist/esm/{accounts-C5HEaz0B.js → accounts-CP_DVUou.js} +2 -2
- package/dist/esm/{chain-DKislBAW.js → chain-CQczt2h3.js} +4 -5
- package/dist/esm/client/abacus.d.ts +3 -3
- package/dist/esm/client/abacus.js +3 -3
- package/dist/esm/client/chain.d.ts +7 -7
- package/dist/esm/client/chain.js +7 -8
- package/dist/esm/client/indexer.d.ts +8 -8
- package/dist/esm/client/indexer.js +8 -9
- package/dist/esm/client/olp.d.ts +3 -3
- package/dist/esm/client/olp.js +4 -5
- package/dist/esm/client/wasm.d.ts +2 -2
- package/dist/esm/client/wasm.js +10 -11
- package/dist/esm/core/accounts.d.ts +7 -7
- package/dist/esm/core/accounts.js +4 -5
- package/dist/esm/core/modules.d.ts +7 -7
- package/dist/esm/core/modules.js +13 -14
- package/dist/esm/core/tx.d.ts +7 -7
- package/dist/esm/core/tx.js +10 -11
- package/dist/esm/cosmjs.d.ts +1 -1
- package/dist/esm/cosmjs.js +11 -12
- package/dist/esm/exports.d.ts +1 -1
- package/dist/esm/exports.js +11 -12
- package/dist/esm/{index-Dh15HnVF.d.ts → index-BbVYW9Fg.d.ts} +1 -1
- package/dist/esm/{index-Bn3JkjMQ.d.ts → index-DxWcn_6h.d.ts} +47 -21
- package/dist/esm/{index-BhybypN9.d.ts → index-VRG59FQR.d.ts} +1 -1
- package/dist/esm/{index-DpjBqbbT.d.ts → index-m9_e257q.d.ts} +1 -1
- package/dist/esm/{index-BhVscuMR.d.ts → index-s9-wgpHE.d.ts} +645 -435
- package/dist/esm/index.d.ts +8 -8
- package/dist/esm/index.js +20 -21
- package/dist/esm/{service-CnqMmybI.js → service-CqKPnKgb.js} +2 -2
- package/dist/esm/service.d.ts +2 -2
- package/dist/esm/service.js +4 -5
- package/dist/esm/{tx-D0NTtgOO.js → tx-ZGcAWTaC.js} +5 -5
- package/dist/esm/types.d.ts +1 -1
- package/dist/esm/types.js +1 -1
- package/dist/esm/{utils-BFBu_LnJ.js → utils-CewUFGKA.js} +45 -2
- package/dist/esm/utils.d.ts +7 -7
- package/dist/esm/utils.js +2 -3
- package/package.json +7 -7
- package/dist/cjs/time-B4xLc27Y.cjs +0 -76
- package/dist/esm/time-DYEqYFao.js +0 -46
- /package/dist/cjs/{BaseRestConsumer-uSzCOit7.cjs → BaseRestConsumer-CRkyjiSo.cjs} +0 -0
- /package/dist/cjs/{MsgBase-DqOmzCyS.cjs → MsgBase-D_1CCpXQ.cjs} +0 -0
- /package/dist/cjs/{grpc-DQDVCGpY.cjs → grpc-FG2z-ICE.cjs} +0 -0
- /package/dist/cjs/{types-BTuy007B.cjs → types-BSrt7JzM.cjs} +0 -0
- /package/dist/esm/{BaseRestConsumer-rK4eS4W8.js → BaseRestConsumer-DTvorEHL.js} +0 -0
- /package/dist/esm/{MsgBase-BkRgVbdY.js → MsgBase-D4pO6org.js} +0 -0
- /package/dist/esm/{grpc-lYZqzL0k.js → grpc-C3eJiY2o.js} +0 -0
- /package/dist/esm/{index-BVWIwmli.d.ts → index-B3d3VkdN.d.ts} +0 -0
- /package/dist/esm/{index-BqYLsIZe.d.ts → index-RFPnFBbK.d.ts} +0 -0
- /package/dist/esm/{types-68OuBiEQ.js → types-Cf4oVv93.js} +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { t as _defineProperty } from "./defineProperty-Bq6QU9Te.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-DQUmeane.js";
|
|
2
|
+
import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-CrwqSxDq.js";
|
|
4
3
|
import { IndexerErrorModule } from "@injectivelabs/exceptions";
|
|
5
|
-
import * as DmmPb from "@injectivelabs/olp-proto-ts-v2/generated/
|
|
6
|
-
import {
|
|
4
|
+
import * as DmmPb from "@injectivelabs/olp-proto-ts-v2/generated/goagen_olp_injective_dmm_v2_pb";
|
|
5
|
+
import { InjectiveDmmV2Client } from "@injectivelabs/olp-proto-ts-v2/generated/goagen_olp_injective_dmm_v2_pb.client";
|
|
7
6
|
|
|
8
7
|
//#region src/client/olp/grpc/transformers/index.ts
|
|
9
8
|
var DmmGrpcTransformer = class DmmGrpcTransformer {
|
|
@@ -11,34 +10,34 @@ var DmmGrpcTransformer = class DmmGrpcTransformer {
|
|
|
11
10
|
return response.epochs.map(DmmGrpcTransformer.grpcEpochToEpoch);
|
|
12
11
|
}
|
|
13
12
|
static grpcEpochToEpoch(epoch) {
|
|
14
|
-
var _epoch$
|
|
13
|
+
var _epoch$endHeight, _epoch$startHeight;
|
|
15
14
|
return {
|
|
16
|
-
epochId: epoch.epochId,
|
|
17
15
|
status: epoch.status,
|
|
18
|
-
|
|
19
|
-
endHeight: (_epoch$endHeight = epoch.endHeight) === null || _epoch$endHeight === void 0 ? void 0 : _epoch$endHeight.toString(),
|
|
20
|
-
snapshotCount: epoch.snapshotCount,
|
|
16
|
+
epochId: epoch.epochId,
|
|
21
17
|
resultCount: epoch.resultCount,
|
|
18
|
+
snapshotCount: epoch.snapshotCount,
|
|
19
|
+
endHeight: (_epoch$endHeight = epoch.endHeight) === null || _epoch$endHeight === void 0 ? void 0 : _epoch$endHeight.toString(),
|
|
20
|
+
startHeight: (_epoch$startHeight = epoch.startHeight) === null || _epoch$startHeight === void 0 ? void 0 : _epoch$startHeight.toString(),
|
|
22
21
|
config: epoch.config ? {
|
|
23
|
-
|
|
24
|
-
endDate: protobufTimestampToDate(epoch.config.endDate),
|
|
22
|
+
number: epoch.config.number,
|
|
25
23
|
rewardInj: epoch.config.rewardInj,
|
|
26
|
-
|
|
27
|
-
marketId: market.marketId,
|
|
28
|
-
ticker: market.ticker,
|
|
29
|
-
startDate: protobufTimestampToDate(market.startDate),
|
|
30
|
-
preAllocatedReward: market.preAllocatedReward
|
|
31
|
-
})),
|
|
32
|
-
liquidityScoreExponent: epoch.config.liquidityScoreExponent,
|
|
24
|
+
isMiniEpoch: epoch.config.isMiniEpoch,
|
|
33
25
|
uptimeExponent: epoch.config.uptimeExponent,
|
|
34
26
|
volumeExponent: epoch.config.volumeExponent,
|
|
27
|
+
liquidityScoreExponent: epoch.config.liquidityScoreExponent,
|
|
35
28
|
permanenceVolumeThreshold: epoch.config.permanenceVolumeThreshold,
|
|
36
29
|
qualifyingVolumeThreshold: epoch.config.qualifyingVolumeThreshold,
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
startDate: epoch.config.startDate ? new Date(epoch.config.startDate) : void 0,
|
|
31
|
+
endDate: epoch.config.endDate ? new Date(epoch.config.endDate) : void 0,
|
|
32
|
+
markets: epoch.config.markets.map((market) => ({
|
|
33
|
+
ticker: market.ticker,
|
|
34
|
+
marketId: market.marketId,
|
|
35
|
+
startDate: market.startDate ? new Date(market.startDate) : void 0,
|
|
36
|
+
preAllocatedReward: market.preAllocatedReward
|
|
37
|
+
}))
|
|
39
38
|
} : void 0,
|
|
40
|
-
createdAt:
|
|
41
|
-
updatedAt:
|
|
39
|
+
createdAt: epoch.createdAt ? new Date(epoch.createdAt) : void 0,
|
|
40
|
+
updatedAt: epoch.updatedAt ? new Date(epoch.updatedAt) : void 0
|
|
42
41
|
};
|
|
43
42
|
}
|
|
44
43
|
static marketRewardsResponseToMarketRewards(response) {
|
|
@@ -47,18 +46,18 @@ var DmmGrpcTransformer = class DmmGrpcTransformer {
|
|
|
47
46
|
static grpcMarketRewardToMarketReward(marketReward) {
|
|
48
47
|
var _marketReward$height;
|
|
49
48
|
return {
|
|
49
|
+
reward: marketReward.reward,
|
|
50
50
|
epochId: marketReward.epochId,
|
|
51
51
|
marketId: marketReward.marketId,
|
|
52
|
-
height: (_marketReward$height = marketReward.height) === null || _marketReward$height === void 0 ? void 0 : _marketReward$height.toString(),
|
|
53
|
-
reward: marketReward.reward,
|
|
54
|
-
rewardPercentage: marketReward.rewardPercentage,
|
|
55
52
|
liquidity: marketReward.liquidity,
|
|
56
|
-
startDate: protobufTimestampToDate(marketReward.startDate),
|
|
57
|
-
endDate: protobufTimestampToDate(marketReward.endDate),
|
|
58
53
|
totalScore: marketReward.totalScore,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
miniEpochsReward: marketReward.miniEpochsReward
|
|
54
|
+
height: (_marketReward$height = marketReward.height) === null || _marketReward$height === void 0 ? void 0 : _marketReward$height.toString(),
|
|
55
|
+
rewardPercentage: marketReward.rewardPercentage,
|
|
56
|
+
miniEpochsReward: marketReward.miniEpochsReward,
|
|
57
|
+
startDate: marketReward.startDate ? new Date(marketReward.startDate) : void 0,
|
|
58
|
+
endDate: marketReward.endDate ? new Date(marketReward.endDate) : void 0,
|
|
59
|
+
createdAt: marketReward.createdAt ? new Date(marketReward.createdAt) : void 0,
|
|
60
|
+
updatedAt: marketReward.updatedAt ? new Date(marketReward.updatedAt) : void 0
|
|
62
61
|
};
|
|
63
62
|
}
|
|
64
63
|
static eligibleAddressesResponseToEligibleAddresses(response) {
|
|
@@ -71,12 +70,12 @@ var DmmGrpcTransformer = class DmmGrpcTransformer {
|
|
|
71
70
|
static grpcEligibleAddresssesToEligibileAddresses(eligibleAddress) {
|
|
72
71
|
var _eligibleAddress$heig;
|
|
73
72
|
return {
|
|
73
|
+
source: eligibleAddress.source,
|
|
74
74
|
epochId: eligibleAddress.epochId,
|
|
75
|
-
accountAddress: eligibleAddress.accountAddress,
|
|
76
75
|
height: (_eligibleAddress$heig = eligibleAddress.height) === null || _eligibleAddress$heig === void 0 ? void 0 : _eligibleAddress$heig.toString(),
|
|
77
|
-
|
|
78
|
-
createdAt:
|
|
79
|
-
updatedAt:
|
|
76
|
+
accountAddress: eligibleAddress.accountAddress,
|
|
77
|
+
createdAt: eligibleAddress.createdAt ? new Date(eligibleAddress.createdAt) : void 0,
|
|
78
|
+
updatedAt: eligibleAddress.updatedAt ? new Date(eligibleAddress.updatedAt) : void 0
|
|
80
79
|
};
|
|
81
80
|
}
|
|
82
81
|
static epochScoresResponseToEpochScores(response) {
|
|
@@ -89,28 +88,28 @@ var DmmGrpcTransformer = class DmmGrpcTransformer {
|
|
|
89
88
|
static grpcEpochScoresToEpochScores(score) {
|
|
90
89
|
var _score$height, _score$startHeight;
|
|
91
90
|
return {
|
|
91
|
+
volume: score.volume,
|
|
92
|
+
reward: score.reward,
|
|
92
93
|
epochId: score.epochId,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
blockTime: protobufTimestampToDate(score.blockTime),
|
|
96
|
-
startHeight: (_score$startHeight = score.startHeight) === null || _score$startHeight === void 0 ? void 0 : _score$startHeight.toString(),
|
|
97
|
-
liquidityScore: score.liquidityScore,
|
|
98
|
-
liquidityScorePonderated: score.liquidityScorePonderated,
|
|
94
|
+
qualifies: score.qualifies,
|
|
95
|
+
totalScore: score.totalScore,
|
|
99
96
|
uptimeScore: score.uptimeScore,
|
|
100
|
-
uptimeScorePonderated: score.uptimeScorePonderated,
|
|
101
|
-
uptimePercentage: score.uptimePercentage,
|
|
102
97
|
volumeScore: score.volumeScore,
|
|
103
|
-
volumeScorePonderated: score.volumeScorePonderated,
|
|
104
|
-
totalScore: score.totalScore,
|
|
105
|
-
volume: score.volume,
|
|
106
98
|
makerVolume: score.makerVolume,
|
|
107
99
|
takerVolume: score.takerVolume,
|
|
108
|
-
|
|
100
|
+
height: (_score$height = score.height) === null || _score$height === void 0 ? void 0 : _score$height.toString(),
|
|
101
|
+
accountAddress: score.accountAddress,
|
|
102
|
+
liquidityScore: score.liquidityScore,
|
|
103
|
+
uptimePercentage: score.uptimePercentage,
|
|
109
104
|
rewardPercentage: score.rewardPercentage,
|
|
110
|
-
qualifies: score.qualifies,
|
|
111
105
|
volumePercentage: score.volumePercentage,
|
|
112
|
-
|
|
113
|
-
|
|
106
|
+
startHeight: (_score$startHeight = score.startHeight) === null || _score$startHeight === void 0 ? void 0 : _score$startHeight.toString(),
|
|
107
|
+
uptimeScorePonderated: score.uptimeScorePonderated,
|
|
108
|
+
volumeScorePonderated: score.volumeScorePonderated,
|
|
109
|
+
liquidityScorePonderated: score.liquidityScorePonderated,
|
|
110
|
+
blockTime: score.blockTime ? new Date(score.blockTime) : void 0,
|
|
111
|
+
createdAt: score.createdAt ? new Date(score.createdAt) : void 0,
|
|
112
|
+
updatedAt: score.updatedAt ? new Date(score.updatedAt) : void 0
|
|
114
113
|
};
|
|
115
114
|
}
|
|
116
115
|
static epochScoresHistoryResponseToEpochScoresHistory(response) {
|
|
@@ -130,37 +129,37 @@ var DmmGrpcTransformer = class DmmGrpcTransformer {
|
|
|
130
129
|
static grpcTotalScoresToTotalScores(score) {
|
|
131
130
|
var _score$height2, _score$startHeight2;
|
|
132
131
|
return {
|
|
133
|
-
epochId: score.epochId,
|
|
134
|
-
marketId: score.marketId,
|
|
135
|
-
accountAddress: score.accountAddress,
|
|
136
|
-
height: (_score$height2 = score.height) === null || _score$height2 === void 0 ? void 0 : _score$height2.toString(),
|
|
137
|
-
startHeight: (_score$startHeight2 = score.startHeight) === null || _score$startHeight2 === void 0 ? void 0 : _score$startHeight2.toString(),
|
|
138
|
-
blockTime: protobufTimestampToDate(score.blockTime),
|
|
139
132
|
bid: score.bid,
|
|
140
133
|
ask: score.ask,
|
|
141
134
|
depth: score.depth,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
135
|
+
volume: score.volume,
|
|
136
|
+
reward: score.reward,
|
|
137
|
+
epochId: score.epochId,
|
|
138
|
+
marketId: score.marketId,
|
|
139
|
+
totalScore: score.totalScore,
|
|
145
140
|
uptimeScore: score.uptimeScore,
|
|
146
|
-
uptimeScorePonderated: score.uptimeScorePonderated,
|
|
147
|
-
uptimePercentage: score.uptimePercentage,
|
|
148
141
|
startVolume: score.startVolume,
|
|
149
|
-
currentVolume: score.currentVolume,
|
|
150
|
-
volume: score.volume,
|
|
151
142
|
volumeScore: score.volumeScore,
|
|
152
|
-
volumeScorePonderated: score.volumeScorePonderated,
|
|
153
|
-
takerStartVolume: score.takerStartVolume,
|
|
154
|
-
takerCurrentVolume: score.takerCurrentVolume,
|
|
155
143
|
takerVolume: score.takerVolume,
|
|
156
|
-
makerStartVolume: score.makerStartVolume,
|
|
157
|
-
makerCurrentVolume: score.makerCurrentVolume,
|
|
158
144
|
makerVolume: score.makerVolume,
|
|
159
|
-
|
|
160
|
-
|
|
145
|
+
height: (_score$height2 = score.height) === null || _score$height2 === void 0 ? void 0 : _score$height2.toString(),
|
|
146
|
+
snapshotCount: score.snapshotCount,
|
|
147
|
+
currentVolume: score.currentVolume,
|
|
148
|
+
accountAddress: score.accountAddress,
|
|
149
|
+
liquidityScore: score.liquidityScore,
|
|
150
|
+
uptimePercentage: score.uptimePercentage,
|
|
151
|
+
takerStartVolume: score.takerStartVolume,
|
|
152
|
+
makerStartVolume: score.makerStartVolume,
|
|
161
153
|
rewardPercentage: score.rewardPercentage,
|
|
162
|
-
|
|
163
|
-
|
|
154
|
+
startHeight: (_score$startHeight2 = score.startHeight) === null || _score$startHeight2 === void 0 ? void 0 : _score$startHeight2.toString(),
|
|
155
|
+
takerCurrentVolume: score.takerCurrentVolume,
|
|
156
|
+
makerCurrentVolume: score.makerCurrentVolume,
|
|
157
|
+
uptimeScorePonderated: score.uptimeScorePonderated,
|
|
158
|
+
volumeScorePonderated: score.volumeScorePonderated,
|
|
159
|
+
liquidityScorePonderated: score.liquidityScorePonderated,
|
|
160
|
+
blockTime: score.blockTime ? new Date(score.blockTime) : void 0,
|
|
161
|
+
createdAt: score.createdAt ? new Date(score.createdAt) : void 0,
|
|
162
|
+
updatedAt: score.updatedAt ? new Date(score.updatedAt) : void 0
|
|
164
163
|
};
|
|
165
164
|
}
|
|
166
165
|
static totalScoresHistoryResponseToTotalScoresHistory(response) {
|
|
@@ -180,15 +179,15 @@ var DmmGrpcTransformer = class DmmGrpcTransformer {
|
|
|
180
179
|
static grpcRewardsDistributionToRewardsDistribution(reward) {
|
|
181
180
|
var _reward$height, _reward$startHeight;
|
|
182
181
|
return {
|
|
182
|
+
depth: reward.depth,
|
|
183
|
+
reward: reward.reward,
|
|
183
184
|
epochId: reward.epochId,
|
|
184
|
-
accountAddress: reward.accountAddress,
|
|
185
185
|
height: (_reward$height = reward.height) === null || _reward$height === void 0 ? void 0 : _reward$height.toString(),
|
|
186
|
+
accountAddress: reward.accountAddress,
|
|
186
187
|
startHeight: (_reward$startHeight = reward.startHeight) === null || _reward$startHeight === void 0 ? void 0 : _reward$startHeight.toString(),
|
|
187
|
-
blockTime:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
createdAt: protobufTimestampToDate(reward.createdAt),
|
|
191
|
-
updatedAt: protobufTimestampToDate(reward.updatedAt)
|
|
188
|
+
blockTime: reward.blockTime ? new Date(reward.blockTime) : void 0,
|
|
189
|
+
createdAt: reward.createdAt ? new Date(reward.createdAt) : void 0,
|
|
190
|
+
updatedAt: reward.updatedAt ? new Date(reward.updatedAt) : void 0
|
|
192
191
|
};
|
|
193
192
|
}
|
|
194
193
|
static accountVolumesResponseToAccountVolumes(response) {
|
|
@@ -197,38 +196,39 @@ var DmmGrpcTransformer = class DmmGrpcTransformer {
|
|
|
197
196
|
static grpcAccountVolumesToAccountVolumes(reward) {
|
|
198
197
|
var _reward$height2;
|
|
199
198
|
return {
|
|
200
|
-
epochId: reward.epochId,
|
|
201
|
-
accountAddress: reward.accountAddress,
|
|
202
|
-
height: (_reward$height2 = reward.height) === null || _reward$height2 === void 0 ? void 0 : _reward$height2.toString(),
|
|
203
|
-
blockTime: protobufTimestampToDate(reward.blockTime),
|
|
204
199
|
date: reward.date,
|
|
205
|
-
dateTimestamp: protobufTimestampToDate(reward.dateTimestamp),
|
|
206
200
|
volume: reward.volume,
|
|
201
|
+
epochId: reward.epochId,
|
|
207
202
|
takerVolume: reward.takerVolume,
|
|
208
203
|
makerVolume: reward.makerVolume,
|
|
209
|
-
volumePercentage: reward.volumePercentage,
|
|
210
|
-
makerVolumePercentage: reward.makerVolumePercentage,
|
|
211
|
-
takerVolumePercentage: reward.takerVolumePercentage,
|
|
212
204
|
dailyVolume: reward.dailyVolume,
|
|
205
|
+
height: (_reward$height2 = reward.height) === null || _reward$height2 === void 0 ? void 0 : _reward$height2.toString(),
|
|
206
|
+
accountAddress: reward.accountAddress,
|
|
207
|
+
dailyQualified: reward.dailyQualified,
|
|
208
|
+
volumePercentage: reward.volumePercentage,
|
|
213
209
|
dailyMakerVolume: reward.dailyMakerVolume,
|
|
214
210
|
dailyTakerVolume: reward.dailyTakerVolume,
|
|
211
|
+
makerVolumePercentage: reward.makerVolumePercentage,
|
|
212
|
+
takerVolumePercentage: reward.takerVolumePercentage,
|
|
215
213
|
dailyVolumePercentage: reward.dailyVolumePercentage,
|
|
216
214
|
dailyMakerVolumePercentage: reward.dailyMakerVolumePercentage,
|
|
217
215
|
dailyTakerVolumePercentage: reward.dailyTakerVolumePercentage,
|
|
218
|
-
|
|
219
|
-
createdAt:
|
|
220
|
-
updatedAt:
|
|
216
|
+
blockTime: reward.blockTime ? new Date(reward.blockTime) : void 0,
|
|
217
|
+
createdAt: reward.createdAt ? new Date(reward.createdAt) : void 0,
|
|
218
|
+
updatedAt: reward.updatedAt ? new Date(reward.updatedAt) : void 0,
|
|
219
|
+
dateTimestamp: reward.dateTimestamp ? new Date(reward.dateTimestamp) : void 0
|
|
221
220
|
};
|
|
222
221
|
}
|
|
223
222
|
static rewardsEligibilityResponseToRewardsEligibility(response) {
|
|
223
|
+
const volumes = response.volumes;
|
|
224
224
|
return {
|
|
225
|
-
|
|
226
|
-
currentMakerVolumePercentage: response.currentMakerVolumePercentage,
|
|
227
|
-
averageDailyMakerVolumePercentage: response.averageDailyMakerVolumePercentage,
|
|
225
|
+
estimatedReward: response.estimatedReward,
|
|
228
226
|
eligibleForNextEpoch: response.eligibleForNextEpoch,
|
|
229
227
|
eligibleForCurrentEpoch: response.eligibleForCurrentEpoch,
|
|
230
|
-
|
|
231
|
-
updatedAt:
|
|
228
|
+
currentMakerVolumePercentage: response.currentMakerVolumePercentage,
|
|
229
|
+
updatedAt: response.updatedAt ? new Date(response.updatedAt) : void 0,
|
|
230
|
+
averageDailyMakerVolumePercentage: response.averageDailyMakerVolumePercentage,
|
|
231
|
+
volumes: volumes.map(DmmGrpcTransformer.grpcAccountVolumesToAccountVolumes)
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
static marketRewardsRangeResponseToMarketRewardsRange(response) {
|
|
@@ -253,7 +253,7 @@ var OLPGrpcApi = class extends BaseIndexerGrpcConsumer {
|
|
|
253
253
|
_defineProperty(this, "module", IndexerErrorModule.OLP);
|
|
254
254
|
}
|
|
255
255
|
get client() {
|
|
256
|
-
return this.initClient(
|
|
256
|
+
return this.initClient(InjectiveDmmV2Client);
|
|
257
257
|
}
|
|
258
258
|
async fetchEpochs(status) {
|
|
259
259
|
const request = DmmPb.GetEpochsRequest.create();
|
|
@@ -332,7 +332,7 @@ var OLPGrpcApi = class extends BaseIndexerGrpcConsumer {
|
|
|
332
332
|
const request = DmmPb.GetMarketRewardsRangeRequest.create();
|
|
333
333
|
request.epochId = epochId;
|
|
334
334
|
request.marketId = marketId;
|
|
335
|
-
const response = await this.executeGrpcCall(request, this.client.
|
|
335
|
+
const response = await this.executeGrpcCall(request, this.client.getMarketRewardsRange.bind(this.client));
|
|
336
336
|
return DmmGrpcTransformer.marketRewardsRangeResponseToMarketRewardsRange(response);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ut as fromBase64, Vt as binaryToBase64, Xt as toUtf8, Yt as toBase64 } from "./utils-CewUFGKA.js";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-Bq6QU9Te.js";
|
|
3
|
-
import { h as ChainGrpcWasmApi } from "./chain-
|
|
4
|
-
import { n as MsgExecuteContractCompat, r as ExecArgNeptuneDeposit, t as ExecArgNeptuneWithdraw } from "./ExecArgNeptuneWithdraw-
|
|
3
|
+
import { h as ChainGrpcWasmApi } from "./chain-CQczt2h3.js";
|
|
4
|
+
import { n as MsgExecuteContractCompat, r as ExecArgNeptuneDeposit, t as ExecArgNeptuneWithdraw } from "./ExecArgNeptuneWithdraw-BRJZq8Vb.js";
|
|
5
5
|
import { GeneralException } from "@injectivelabs/exceptions";
|
|
6
6
|
import { Network, getNetworkEndpoints, isMainnet } from "@injectivelabs/networks";
|
|
7
7
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as uint8ArrayToString, a as grpcPagingToPagingV2, nn as bigIntToString, sn as isJsonString, tn as bigIntToNumber } from "./utils-CewUFGKA.js";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-Bq6QU9Te.js";
|
|
3
|
-
import { n as GrpcWebRpcTransport } from "./BaseGrpcConsumer-
|
|
4
|
-
import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-
|
|
5
|
-
import { t as BaseRestConsumer } from "./BaseRestConsumer-
|
|
6
|
-
import { r as IndexerModule } from "./IndexerGrpcWeb3GwApi-
|
|
7
|
-
import { a as TradeDirection, c as GrpcStatusCode, d as StreamState, i as OrderState, l as StreamDisconnectReason, m as TokenVerification, p as TokenType, t as StreamOperation, u as StreamEvent } from "./types-
|
|
3
|
+
import { n as GrpcWebRpcTransport } from "./BaseGrpcConsumer-a7fB9A_e.js";
|
|
4
|
+
import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-CrwqSxDq.js";
|
|
5
|
+
import { t as BaseRestConsumer } from "./BaseRestConsumer-DTvorEHL.js";
|
|
6
|
+
import { r as IndexerModule } from "./IndexerGrpcWeb3GwApi-CX4ohUOk.js";
|
|
7
|
+
import { a as TradeDirection, c as GrpcStatusCode, d as StreamState, i as OrderState, l as StreamDisconnectReason, m as TokenVerification, p as TokenType, t as StreamOperation, u as StreamEvent } from "./types-Cf4oVv93.js";
|
|
8
8
|
import { BigNumber, toBigNumber, toHumanReadable } from "@injectivelabs/utils";
|
|
9
9
|
import { GeneralException, HttpRequestException, UnspecifiedErrorCode } from "@injectivelabs/exceptions";
|
|
10
10
|
import { MitoAPIClient } from "@injectivelabs/mito-proto-ts-v2/generated/goadesign_goagen_mito_api_pb.client";
|
|
@@ -1112,6 +1112,9 @@ var IndexerGrpcAuctionTransformer = class IndexerGrpcAuctionTransformer {
|
|
|
1112
1112
|
totalBurntInUsd: response.totalUsdValue
|
|
1113
1113
|
};
|
|
1114
1114
|
}
|
|
1115
|
+
static auctionAccountStatusResponseToAuctionAccountStatus(response) {
|
|
1116
|
+
return { status: response.status };
|
|
1117
|
+
}
|
|
1115
1118
|
};
|
|
1116
1119
|
|
|
1117
1120
|
//#endregion
|
|
@@ -3366,6 +3369,13 @@ var IndexerGrpcAuctionApi = class extends BaseIndexerGrpcConsumer {
|
|
|
3366
3369
|
const response = await this.executeGrpcCall(request, this.client.auctionsStats.bind(this.client));
|
|
3367
3370
|
return IndexerGrpcAuctionTransformer.auctionStatsResponseToAuctionStats(response);
|
|
3368
3371
|
}
|
|
3372
|
+
async fetchAccountAuctionStatus({ address, round = -1 }) {
|
|
3373
|
+
const request = InjectiveAuctionRpcPb.AuctionAccountStatusRequest.create();
|
|
3374
|
+
if (round) request.round = BigInt(round);
|
|
3375
|
+
if (address) request.address = address;
|
|
3376
|
+
const response = await this.executeGrpcCall(request, this.client.auctionAccountStatus.bind(this.client));
|
|
3377
|
+
return IndexerGrpcAuctionTransformer.auctionAccountStatusResponseToAuctionAccountStatus(response);
|
|
3378
|
+
}
|
|
3369
3379
|
};
|
|
3370
3380
|
|
|
3371
3381
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ft as BECH32_PUBKEY_ACC_PREFIX, Jt as stringToUint8Array, Mt as BECH32_ADDR_ACC_PREFIX, Nt as BECH32_ADDR_CONS_PREFIX, Pt as BECH32_ADDR_VAL_PREFIX, Qt as uint8ArrayToHex, Rt as DEFAULT_DERIVATION_PATH, Xt as toUtf8, Zt as uint8ArrayToBase64, dt as TypedDataUtilsSanitizeData, et as numberToCosmosSdkDecString, ft as decompressPubKey, h as getInjectiveAddress, m as getEthereumAddress, pn as safeBigIntStringify, qt as hexToUint8Array, t as recoverTypedSignaturePubKey, zt as base64ToUint8Array } from "./utils-CewUFGKA.js";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-Bq6QU9Te.js";
|
|
3
|
-
import { t as MsgBase } from "./MsgBase-
|
|
3
|
+
import { t as MsgBase } from "./MsgBase-D4pO6org.js";
|
|
4
4
|
import * as CosmosTxV1Beta1TxPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/v1beta1/tx_pb";
|
|
5
5
|
import { hashTypedData, keccak256, toBytes } from "viem";
|
|
6
6
|
import { DEFAULT_GAS_LIMIT, getDefaultStdFee, getStdFee, toBigNumber, toChainFormat } from "@injectivelabs/utils";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as uint8ArrayToString, O as denomAmountFromGrpcChainDenomAmount, Wt as fromUtf8, Yt as toBase64, jt as protobufTimestampToUnixSeconds, kt as protobufTimestampToDate, l as ChainGrpcCommonTransformer, n as fetchAllWithPagination, nn as bigIntToString, zt as base64ToUint8Array } from "./utils-CewUFGKA.js";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-Bq6QU9Te.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as BaseRestConsumer } from "./BaseRestConsumer-rK4eS4W8.js";
|
|
3
|
+
import { o as ChainModule, p as BondStatus } from "./ChainRestTendermintApi-BUV-cxVj.js";
|
|
4
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-a7fB9A_e.js";
|
|
5
|
+
import { t as BaseRestConsumer } from "./BaseRestConsumer-DTvorEHL.js";
|
|
7
6
|
import { toBigNumber, toHumanReadable } from "@injectivelabs/utils";
|
|
8
7
|
import { ErrorType, GeneralException, HttpRequestException, UnspecifiedErrorCode } from "@injectivelabs/exceptions";
|
|
9
8
|
import * as CosmosAuthzV1Beta1AuthzPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/authz/v1beta1/authz_pb";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../tx_pb-DiV92WM9.js";
|
|
2
|
-
import "../index-
|
|
3
|
-
import "../BaseGrpcConsumer-
|
|
4
|
-
import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-
|
|
2
|
+
import "../index-B3d3VkdN.js";
|
|
3
|
+
import "../BaseGrpcConsumer-iOh57BsK.js";
|
|
4
|
+
import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-VRG59FQR.js";
|
|
5
5
|
export { AbacusGrpcApi, PointsLatestResponse, PointsStatsRow };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../defineProperty-Bq6QU9Te.js";
|
|
2
|
-
import "../grpc-
|
|
3
|
-
import "../BaseGrpcConsumer-
|
|
4
|
-
import { t as AbacusGrpcApi } from "../AbacusGrpcApi-
|
|
2
|
+
import "../grpc-C3eJiY2o.js";
|
|
3
|
+
import "../BaseGrpcConsumer-a7fB9A_e.js";
|
|
4
|
+
import { t as AbacusGrpcApi } from "../AbacusGrpcApi-H-P0UiPh.js";
|
|
5
5
|
|
|
6
6
|
export { AbacusGrpcApi };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../tx_pb-DiV92WM9.js";
|
|
2
|
-
import { st as OracleType } from "../index-
|
|
3
|
-
import { $g as
|
|
4
|
-
import "../BaseGrpcConsumer-
|
|
5
|
-
import "../index-
|
|
6
|
-
import "../index-
|
|
7
|
-
import "../index-
|
|
8
|
-
import "../index-
|
|
2
|
+
import { st as OracleType } from "../index-B3d3VkdN.js";
|
|
3
|
+
import { $g as ContractCodeHistoryOperationTypeMap, $h as GrpcDenomDecimals, $m as CreateSpotMarketOrderAuthz, $p as AuctionParams, A as ChainGrpcAuctionApi, Ag as GrpcReDelegation, Ah as GrpcEvmBlobScheduleConfig, Am as PermissionVoucher, Ap as TokenFactoryModuleState, B as ChainGrpcAuthApi, Bg as Pool, Bh as ExchangeModuleParams, Bm as Params, Bp as AccountsResponse, C as ChainGrpcInsuranceFundApi, C_ as Vote, Cg as TradingRewardCampaignBoostInfo, Ch as PubKey, Cm as PermissionParams, Cp as ChainModule, D as ChainGrpcTendermintApi, Dg as GrpcDelegation, Dh as EvmLog, Dm as PermissionRoleActors, Dp as AuthorityMetadata, E as ChainGrpcPermissionsApi, E_ as WeightedVoteOption, Eg as Delegation, Eh as EvmChainConfig, Em as PermissionRole, Ep as NodeInfoRestResponse, F as ChainGrpcPeggyApi, Fg as GrpcUnbondingDelegationEntry, Fh as ChainDenomDecimal, Fm as GrpcTxFeesParams, Fp as ValidatorRewards, Gg as ValidatorCommission, Gh as FeeDiscountTierTTL, Gm as BatchCancelSpotOrdersAuthz, Gp as AuctionEventAuctionResult, H as ChainGrpcIbcApi, Hg as StakingModuleParams, Hh as FeeDiscountAccountInfo, Hm as GrpcPeggyParams, Hp as CosmosAccountRestResponse, I as ChainGrpcAuthZApi, Ig as GrpcValidator, Ih as ChainDenomMinNotional, Im as TxFeesEipBaseFee, Ip as BalancesResponse, Jg as CodeInfoResponse, Jh as GrpcChainDerivativePosition, Jm as CancelDerivativeOrderAuthz, Jp as AuctionLastAuctionResult, Kg as ValidatorDescription, Kh as GrpcCampaignRewardPool, Km as BatchCreateDerivativeLimitOrdersAuthz, Kp as AuctionEventAuctionStart, L as ChainGrpcWasmApi, Lg as GrpcValidatorCommission, Lh as ChainDerivativePosition, Lm as TxFeesModuleStateParams, Lp as DenomBalance, M as ChainGrpcOracleApi, Mg as GrpcReDelegationResponse, Mh as GrpcEvmLog, Mm as GrpcOracleParams, Mp as GrpcDecCoin, N as ChainGrpcErc20Api, Ng as GrpcStakingParams, Nh as GrpcEvmParams, Nm as OracleModuleParams, Np as GrpcDelegationDelegatorReward, O as ChainGrpcExchangeApi, Og as GrpcDelegationResponse, Oh as EvmParams, Om as PermissionRoleIDs, Op as FactoryDenomWithMetadata, P as ChainGrpcWasmXApi, Pg as GrpcUnbondingDelegation, Ph as CampaignRewardPool, Pm as GrpcTxFeesEipBaseFee, Pp as GrpcDistributionParams, Qg as ContractCodeHistoryOperationType, Qh as GrpcChainSpotMarket, Qm as CreateSpotLimitOrderAuthz, Qp as AuctionModuleStateResponse, R as ChainGrpcMintApi, Rg as GrpcValidatorCommissionRates, Rh as ChainPosition, Rm as GrpcParams, Rp as DenomOwnersResponse, S as ChainRestBankApi, S_ as TallyResult, Sg as TradeRewardCampaign, Sh as EthAccount, Sm as PermissionNamespace, T as ChainGrpcDistributionApi, T_ as VoteOptionMap, Tg as BondStatus, Th as EvmBlobScheduleConfig, Tm as PermissionPolicyStatus, Tp as BlockLatestRestResponse, U as ChainGrpcGovApi, Ug as UnBondingDelegation, Uh as FeeDiscountSchedule, Um as PeggyModuleParams, Up as AuctionBid, V as ChainGrpcEvmApi, Vg as ReDelegation, Vh as ExchangeParams, Vm as TokenPair, Vp as BaseAccountRestResponse, Wg as Validator, Wh as FeeDiscountTierInfo, Wm as BatchCancelDerivativeOrdersAuthz, Wp as AuctionCurrentBasket, Xg as ContractAccountsBalanceWithPagination, Xh as GrpcChainFullSpotMarket, Xm as CreateDerivativeLimitOrderAuthz, Xp as AuctionModuleState, Yg as ContractAccountBalance, Yh as GrpcChainFullDerivativeMarket, Ym as CancelSpotOrderAuthz, Yp as AuctionModuleParams, Zg as ContractCodeHistoryEntry, Zh as GrpcChainPosition, Zm as CreateDerivativeMarketOrderAuthz, Zp as AuctionModuleStateParams, _ as ChainGrpcEvmTransformer, __ as GrpcVote, _g as GrpcTradingRewardCampaignInfo, _h as SendEnabled, _m as PermissionActionMap, a as ChainGrpcExchangeTransformer, a_ as GrpcContractCodeHistoryEntry, ag as GrpcFeeDiscountTierTTL, ah as GrpcInsuranceFund, am as GrpcAuctionParams, b as ChainRestWasmApi, b_ as ProposalStatus, bg as OrderTypeMap, bh as AuthBaseAccount, bm as PermissionAddressVoucher, c as ChainGrpcCommonTransformer, c_ as TokenInfo, cg as GrpcOrderInfo, ch as InsuranceFund, cm as GrpcPermissionNamespace, d as ChainGrpcPeggyTransformer, d_ as GrpcGovernanceDepositParams, dg as GrpcPointsMultiplier, dh as GrpcMintParams, dm as GrpcPermissionRole, e_ as ContractInfo, eg as GrpcDenomMinNotional, eh as GenericAuthorization, em as GrpcAuctionBid, f as ChainGrpcAuthZTransformer, f_ as GrpcGovernanceTallyParams, fg as GrpcSpotMarket, fh as MinModuleParams, fm as GrpcPermissionRoleActors, g as ChainGrpcAuthTransformer, g_ as GrpcTallyResult, gg as GrpcTradingRewardCampaignBoostInfo, gh as Metadata, gm as GrpcPermissionsParams, h as ChainGrpcBankTransformer, h_ as GrpcProposalDeposit, hg as GrpcTradeRewardCampaign, hh as GrpcSupply, hm as GrpcPermissionsNamespace, i as ChainGrpcPermissionsTransformer, i_ as GrpcCodeInfoResponse, ig as GrpcFeeDiscountTierInfo, ih as GrantWithDecodedAuthorization, im as GrpcAuctionLastAuctionResult, j as ChainGrpcTxFeesApi, jg as GrpcReDelegationEntryResponse, jh as GrpcEvmChainConfig, jm as PermissionsModuleParams, jp as DistributionModuleParams, k as ChainGrpcStakingApi, kg as GrpcPool, kh as GrpcEvmBlobConfig, km as PermissionRoleManager, kp as TokenFactoryModuleParams, l as ChainGrpcTxFeesTransformer, l_ as grpcContractInfo, lg as GrpcOrderType, lh as InsuranceModuleParams, lm as GrpcPermissionPolicyStatus, m as ChainGrpcMintTransformer, m_ as GrpcProposal, mg as GrpcSpotOrder, mh as GrpcBankParams, mm as GrpcPermissionRoleManager, n as ChainGrpcTokenFactoryTransformer, n_ as GoogleProtoBufAny, ng as GrpcFeeDiscountAccountInfo, nh as GrantAuthorization, nm as GrpcAuctionEventAuctionStart, o as ChainGrpcStakingTransformer, o_ as GrpcContractInfo, og as GrpcMarketStatus, oh as GrpcInsuranceParams, om as GrpcPermissionActorRoles, p as ChainGrpcWasmTransformer, p_ as GrpcGovernanceVotingParams, pg as GrpcSpotMarketOrder, ph as BankModuleParams, pm as GrpcPermissionRoleIDs, qg as AbsoluteTxPosition, qh as GrpcChainDerivativeMarket, qm as BatchCreateSpotLimitOrdersAuthz, qp as AuctionEventBid, r as ChainGrpcDistributionTransformer, r_ as GrpcAbsoluteTxPosition, rg as GrpcFeeDiscountSchedule, rh as GrantAuthorizationWithDecodedAuthorization, rm as GrpcAuctionEventBid, s as ChainGrpcAuctionTransformer, s_ as MarketingInfo, sg as GrpcMarketStatusMap, sh as GrpcRedemptionSchedule, sm as GrpcPermissionAddressVoucher, t as ChainGrpcInsuranceFundTransformer, t_ as ContractStateWithPagination, tg as GrpcExchangeParams, th as Grant, tm as GrpcAuctionEventAuctionResult, u as ChainGrpcErc20Transformer, u_ as GovModuleStateParams, ug as GrpcOrderTypeMap, uh as OracleTypeMap, um as GrpcPermissionPolicyStatusManagerCapability, v as ChainGrpcGovTransformer, v_ as Proposal, vg as IsOptedOutOfRewards, vh as TotalSupply, vm as PermissionActorRoles, w as ChainGrpcTokenFactoryApi, w_ as VoteOption, wg as TradingRewardCampaignInfo, wh as EvmBlobConfig, wm as PermissionPolicyManagerCapability, wp as RestApiResponse, x as ChainRestAuthApi, x_ as ProposalStatusMap, xg as PointsMultiplier, xh as AuthModuleParams, xm as PermissionGenesisState, y as ChainRestTendermintApi, y_ as ProposalDeposit, yg as OrderType, yh as Account, ym as PermissionAddressRoles, z as ChainGrpcBankApi, zg as GrpcValidatorDescription, zh as DepositProposalParams, zm as GrpcTokenPair, zp as AccountResponse } from "../index-DxWcn_6h.js";
|
|
4
|
+
import "../BaseGrpcConsumer-iOh57BsK.js";
|
|
5
|
+
import "../index-VRG59FQR.js";
|
|
6
|
+
import "../index-BbVYW9Fg.js";
|
|
7
|
+
import "../index-s9-wgpHE.js";
|
|
8
|
+
import "../index-m9_e257q.js";
|
|
9
9
|
export { AbsoluteTxPosition, Account, AccountResponse, AccountsResponse, AuctionBid, AuctionCurrentBasket, AuctionEventAuctionResult, AuctionEventAuctionStart, AuctionEventBid, AuctionLastAuctionResult, AuctionModuleParams, AuctionModuleState, AuctionModuleStateParams, AuctionModuleStateResponse, AuctionParams, AuthBaseAccount, AuthModuleParams, AuthorityMetadata, BalancesResponse, BankModuleParams, BaseAccountRestResponse, BatchCancelDerivativeOrdersAuthz, BatchCancelSpotOrdersAuthz, BatchCreateDerivativeLimitOrdersAuthz, BatchCreateSpotLimitOrdersAuthz, BlockLatestRestResponse, BondStatus, CampaignRewardPool, CancelDerivativeOrderAuthz, CancelSpotOrderAuthz, ChainDenomDecimal, ChainDenomMinNotional, ChainDerivativePosition, ChainGrpcAuctionApi, ChainGrpcAuctionTransformer, ChainGrpcAuthApi, ChainGrpcAuthTransformer, ChainGrpcAuthZApi, ChainGrpcAuthZTransformer, ChainGrpcBankApi, ChainGrpcBankTransformer, ChainGrpcCommonTransformer, ChainGrpcDistributionApi, ChainGrpcDistributionTransformer, ChainGrpcErc20Api, ChainGrpcErc20Transformer, ChainGrpcEvmApi, ChainGrpcEvmTransformer, ChainGrpcExchangeApi, ChainGrpcExchangeTransformer, ChainGrpcGovApi, ChainGrpcGovTransformer, ChainGrpcIbcApi, ChainGrpcInsuranceFundApi, ChainGrpcInsuranceFundTransformer, ChainGrpcMintApi, ChainGrpcMintTransformer, ChainGrpcOracleApi, ChainGrpcPeggyApi, ChainGrpcPeggyTransformer, ChainGrpcPermissionsApi, ChainGrpcPermissionsTransformer, ChainGrpcStakingApi, ChainGrpcStakingTransformer, ChainGrpcTendermintApi, ChainGrpcTokenFactoryApi, ChainGrpcTokenFactoryTransformer, ChainGrpcTxFeesApi, ChainGrpcTxFeesTransformer, ChainGrpcWasmApi, ChainGrpcWasmTransformer, ChainGrpcWasmXApi, ChainModule, ChainPosition, ChainRestAuthApi, ChainRestBankApi, ChainRestTendermintApi, ChainRestWasmApi, CodeInfoResponse, ContractAccountBalance, ContractAccountsBalanceWithPagination, ContractCodeHistoryEntry, ContractCodeHistoryOperationType, ContractCodeHistoryOperationTypeMap, ContractInfo, ContractStateWithPagination, CosmosAccountRestResponse, CreateDerivativeLimitOrderAuthz, CreateDerivativeMarketOrderAuthz, CreateSpotLimitOrderAuthz, CreateSpotMarketOrderAuthz, Delegation, DenomBalance, DenomOwnersResponse, DepositProposalParams, DistributionModuleParams, EthAccount, EvmBlobConfig, EvmBlobScheduleConfig, EvmChainConfig, EvmLog, EvmParams, ExchangeModuleParams, ExchangeParams, FactoryDenomWithMetadata, FeeDiscountAccountInfo, FeeDiscountSchedule, FeeDiscountTierInfo, FeeDiscountTierTTL, GenericAuthorization, GoogleProtoBufAny, GovModuleStateParams, Grant, GrantAuthorization, GrantAuthorizationWithDecodedAuthorization, GrantWithDecodedAuthorization, GrpcAbsoluteTxPosition, GrpcAuctionBid, GrpcAuctionEventAuctionResult, GrpcAuctionEventAuctionStart, GrpcAuctionEventBid, GrpcAuctionLastAuctionResult, GrpcAuctionParams, GrpcBankParams, GrpcCampaignRewardPool, GrpcChainDerivativeMarket, GrpcChainDerivativePosition, GrpcChainFullDerivativeMarket, GrpcChainFullSpotMarket, GrpcChainPosition, GrpcChainSpotMarket, GrpcCodeInfoResponse, GrpcContractCodeHistoryEntry, GrpcContractInfo, GrpcDecCoin, GrpcDelegation, GrpcDelegationDelegatorReward, GrpcDelegationResponse, GrpcDenomDecimals, GrpcDenomMinNotional, GrpcDistributionParams, GrpcEvmBlobConfig, GrpcEvmBlobScheduleConfig, GrpcEvmChainConfig, GrpcEvmLog, GrpcEvmParams, GrpcExchangeParams, GrpcFeeDiscountAccountInfo, GrpcFeeDiscountSchedule, GrpcFeeDiscountTierInfo, GrpcFeeDiscountTierTTL, GrpcGovernanceDepositParams, GrpcGovernanceTallyParams, GrpcGovernanceVotingParams, GrpcInsuranceFund, GrpcInsuranceParams, GrpcMarketStatus, GrpcMarketStatusMap, GrpcMintParams, GrpcOracleParams, GrpcOrderInfo, GrpcOrderType, GrpcOrderTypeMap, GrpcParams, GrpcPeggyParams, GrpcPermissionActorRoles, GrpcPermissionAddressVoucher, GrpcPermissionNamespace, GrpcPermissionPolicyStatus, GrpcPermissionPolicyStatusManagerCapability, GrpcPermissionRole, GrpcPermissionRoleActors, GrpcPermissionRoleIDs, GrpcPermissionRoleManager, GrpcPermissionsNamespace, GrpcPermissionsParams, GrpcPointsMultiplier, GrpcPool, GrpcProposal, GrpcProposalDeposit, ProposalStatus as GrpcProposalStatus, ProposalStatus, GrpcReDelegation, GrpcReDelegationEntryResponse, GrpcReDelegationResponse, GrpcRedemptionSchedule, GrpcSpotMarket, GrpcSpotMarketOrder, GrpcSpotOrder, GrpcStakingParams, GrpcSupply, GrpcTallyResult, GrpcTokenPair, GrpcTradeRewardCampaign, GrpcTradingRewardCampaignBoostInfo, GrpcTradingRewardCampaignInfo, GrpcTxFeesEipBaseFee, GrpcTxFeesParams, GrpcUnbondingDelegation, GrpcUnbondingDelegationEntry, GrpcValidator, GrpcValidatorCommission, GrpcValidatorCommissionRates, GrpcValidatorDescription, GrpcVote, InsuranceFund, InsuranceModuleParams, IsOptedOutOfRewards, MarketingInfo, Metadata, MinModuleParams, NodeInfoRestResponse, OracleModuleParams, OracleType, OracleTypeMap, OrderType, OrderTypeMap, Params, PeggyModuleParams, PermissionActionMap, PermissionActorRoles, PermissionAddressRoles, PermissionAddressVoucher, PermissionGenesisState, PermissionNamespace, PermissionParams, PermissionPolicyManagerCapability, PermissionPolicyStatus, PermissionRole, PermissionRoleActors, PermissionRoleIDs, PermissionRoleManager, PermissionVoucher, PermissionsModuleParams, PointsMultiplier, Pool, Proposal, ProposalDeposit, ProposalStatusMap, PubKey, ReDelegation, RestApiResponse, SendEnabled, StakingModuleParams, TallyResult, TokenFactoryModuleParams, TokenFactoryModuleState, TokenInfo, TokenPair, TotalSupply, TradeRewardCampaign, TradingRewardCampaignBoostInfo, TradingRewardCampaignInfo, TxFeesEipBaseFee, TxFeesModuleStateParams, UnBondingDelegation, Validator, ValidatorCommission, ValidatorDescription, ValidatorRewards, Vote, VoteOption, VoteOptionMap, WeightedVoteOption, grpcContractInfo };
|
package/dist/esm/client/chain.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { l as ChainGrpcCommonTransformer } from "../utils-
|
|
1
|
+
import { l as ChainGrpcCommonTransformer } from "../utils-CewUFGKA.js";
|
|
2
2
|
import "../defineProperty-Bq6QU9Te.js";
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
import
|
|
6
|
-
import "../
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import "../BaseRestConsumer-rK4eS4W8.js";
|
|
3
|
+
import "../grpc-C3eJiY2o.js";
|
|
4
|
+
import { a as ChainGrpcAuthTransformer, c as OracleType, d as GrpcOrderTypeMap, f as OrderTypeMap, g as VoteOptionMap, h as ProposalStatusMap, i as ChainGrpcAuthApi, l as OracleTypeMap, m as ContractCodeHistoryOperationTypeMap, n as ChainRestAuthApi, o as ChainModule, p as BondStatus, r as ChainGrpcTendermintApi, s as PermissionActionMap, t as ChainRestTendermintApi, u as GrpcMarketStatusMap } from "../ChainRestTendermintApi-BUV-cxVj.js";
|
|
5
|
+
import "../BaseGrpcConsumer-a7fB9A_e.js";
|
|
6
|
+
import { A as ChainGrpcAuthZTransformer, C as ChainGrpcDistributionTransformer, D as ChainGrpcTxFeesTransformer, E as ChainGrpcAuctionTransformer, F as ChainGrpcGovTransformer, M as ChainGrpcMintTransformer, N as ChainGrpcBankTransformer, O as ChainGrpcErc20Transformer, P as ChainGrpcEvmTransformer, S as ChainGrpcTokenFactoryTransformer, T as ChainGrpcStakingTransformer, _ as ChainGrpcBankApi, a as ChainGrpcDistributionApi, b as ChainGrpcGovApi, c as ChainGrpcAuctionApi, d as ChainGrpcErc20Api, f as ChainGrpcWasmXApi, g as ChainGrpcMintApi, h as ChainGrpcWasmApi, i as ChainGrpcTokenFactoryApi, j as ChainGrpcWasmTransformer, k as ChainGrpcPeggyTransformer, l as ChainGrpcTxFeesApi, m as ChainGrpcAuthZApi, n as ChainRestBankApi, o as ChainGrpcPermissionsApi, p as ChainGrpcPeggyApi, r as ChainGrpcInsuranceFundApi, s as ChainGrpcStakingApi, t as ChainRestWasmApi, u as ChainGrpcOracleApi, v as ChainGrpcEvmApi, w as ChainGrpcPermissionsTransformer, x as ChainGrpcInsuranceFundTransformer, y as ChainGrpcIbcApi } from "../chain-CQczt2h3.js";
|
|
7
|
+
import { n as ChainGrpcExchangeTransformer, t as ChainGrpcExchangeApi } from "../ChainGrpcExchangeApi-Ko7rM6Df.js";
|
|
8
|
+
import "../BaseRestConsumer-DTvorEHL.js";
|
|
10
9
|
|
|
11
10
|
export { BondStatus, ChainGrpcAuctionApi, ChainGrpcAuctionTransformer, ChainGrpcAuthApi, ChainGrpcAuthTransformer, ChainGrpcAuthZApi, ChainGrpcAuthZTransformer, ChainGrpcBankApi, ChainGrpcBankTransformer, ChainGrpcCommonTransformer, ChainGrpcDistributionApi, ChainGrpcDistributionTransformer, ChainGrpcErc20Api, ChainGrpcErc20Transformer, ChainGrpcEvmApi, ChainGrpcEvmTransformer, ChainGrpcExchangeApi, ChainGrpcExchangeTransformer, ChainGrpcGovApi, ChainGrpcGovTransformer, ChainGrpcIbcApi, ChainGrpcInsuranceFundApi, ChainGrpcInsuranceFundTransformer, ChainGrpcMintApi, ChainGrpcMintTransformer, ChainGrpcOracleApi, ChainGrpcPeggyApi, ChainGrpcPeggyTransformer, ChainGrpcPermissionsApi, ChainGrpcPermissionsTransformer, ChainGrpcStakingApi, ChainGrpcStakingTransformer, ChainGrpcTendermintApi, ChainGrpcTokenFactoryApi, ChainGrpcTokenFactoryTransformer, ChainGrpcTxFeesApi, ChainGrpcTxFeesTransformer, ChainGrpcWasmApi, ChainGrpcWasmTransformer, ChainGrpcWasmXApi, ChainModule, ChainRestAuthApi, ChainRestBankApi, ChainRestTendermintApi, ChainRestWasmApi, ContractCodeHistoryOperationTypeMap, GrpcMarketStatusMap, GrpcOrderTypeMap, OracleType, OracleTypeMap, OrderTypeMap, PermissionActionMap, ProposalStatusMap, VoteOptionMap };
|