@injectivelabs/sdk-ts 1.18.23 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{AbacusGrpcApi-D20s0rdk.cjs → AbacusGrpcApi-U-0XgIsS.cjs} +1 -1
- package/dist/cjs/{BaseGrpcConsumer-D3eBtnX-.cjs → BaseGrpcConsumer-Baz_ZnzI.cjs} +49 -4
- package/dist/{esm/BaseGrpcConsumer-BnUgov1D.d.ts → cjs/BaseGrpcConsumer-CZTAcNtS.d.cts} +10 -2
- package/dist/cjs/{BaseIndexerGrpcConsumer-YYgLa4Qj.cjs → BaseIndexerGrpcConsumer-ChilNYlV.cjs} +1 -1
- package/dist/cjs/{ChainGrpcExchangeApi-HCEhKxii.cjs → ChainGrpcExchangeApi-Ch1SgMjY.cjs} +2 -2
- package/dist/cjs/{ChainRestTendermintApi-BvCQntWI.cjs → ChainRestTendermintApi-COqTruoD.cjs} +2 -2
- package/dist/cjs/{IndexerGrpcWeb3GwApi-PomoqzKU.cjs → IndexerGrpcWeb3GwApi-BDH3Pyr6.cjs} +1 -1
- package/dist/cjs/{MsgSetDenomMetadata-DHTBupU-.cjs → MsgSetDenomMetadata-CDhuDaSe.cjs} +3 -2
- package/dist/cjs/{OLPGrpcApi-Bs85G4Zy.cjs → OLPGrpcApi-C58l_b_2.cjs} +1 -1
- package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-C8v0BWFG.cjs → QueryTradingStrategyContractTotalStrategies-BiIMpmJw.cjs} +2 -2
- package/dist/cjs/{StreamManagerV2-BlaYMgW3.cjs → StreamManagerV2-J45IvgwP.cjs} +54 -53
- package/dist/cjs/{TcAbacusGrpcApi-C9Q51NfB.cjs → TcAbacusGrpcApi-D81-wnP0.cjs} +1 -1
- package/dist/cjs/{chain-DiG3S2xE.cjs → chain-DlfCX5eV.cjs} +3 -3
- package/dist/cjs/client/abacus.cjs +3 -2
- package/dist/cjs/client/abacus.d.cts +4 -4
- package/dist/cjs/client/chain.cjs +6 -5
- package/dist/cjs/client/chain.d.cts +9 -9
- package/dist/cjs/client/indexer.cjs +7 -6
- package/dist/cjs/client/indexer.d.cts +9 -9
- package/dist/cjs/client/olp.cjs +4 -3
- package/dist/cjs/client/olp.d.cts +4 -4
- package/dist/cjs/client/tcAbacus.cjs +3 -2
- package/dist/cjs/client/tcAbacus.d.cts +4 -4
- package/dist/cjs/client/wasm.cjs +8 -7
- package/dist/cjs/client/wasm.d.cts +3 -3
- package/dist/cjs/core/accounts.d.cts +9 -9
- package/dist/cjs/core/modules.cjs +10 -9
- package/dist/cjs/core/modules.d.cts +9 -9
- package/dist/cjs/core/tx.cjs +7 -6
- package/dist/cjs/core/tx.d.cts +9 -9
- package/dist/cjs/cosmjs.cjs +8 -7
- package/dist/cjs/cosmjs.d.cts +2 -2
- package/dist/cjs/exports.cjs +8 -7
- package/dist/cjs/exports.d.cts +2 -2
- package/dist/cjs/{index-4xdeGNK4.d.cts → index-B-Q3ov9G.d.cts} +1 -1
- package/dist/cjs/{index-B1LZt9Ba.d.cts → index-C00Yswov.d.cts} +1 -1
- package/dist/cjs/{index-m48Rf9ow.d.cts → index-C15wCMY6.d.cts} +3 -3
- package/dist/cjs/{index-ClEub7KI.d.cts → index-CLuXJWNT.d.cts} +149 -95
- package/dist/cjs/{index-DDlyRc5p.d.cts → index-DD6UhYzr.d.cts} +1 -1
- package/dist/cjs/{index-DfJ_98xz.d.cts → index-Dvfd07fs.d.cts} +6 -6
- package/dist/cjs/{index-Cur9wjzW.d.cts → index-kODUUZaZ.d.cts} +1 -1
- package/dist/cjs/{index-9AznyVQE.d.cts → index-xSXf-Ct4.d.cts} +1 -1
- package/dist/cjs/index.cjs +22 -21
- package/dist/cjs/index.d.cts +9 -9
- package/dist/cjs/{service-D7PCdXqp.cjs → service-V-f8W7rn.cjs} +1 -1
- package/dist/cjs/service.cjs +3 -2
- package/dist/cjs/service.d.cts +3 -3
- package/dist/cjs/stream-CfBvG3Ln.cjs +87 -0
- package/dist/cjs/{tx-CfOqIbPJ.cjs → tx-DW1Z6i1x.cjs} +3 -3
- package/dist/{esm/tx_pb-B9KzLX7v.d.ts → cjs/tx_pb-BGCQilBY.d.cts} +4 -4
- package/dist/cjs/{types-BSrt7JzM.cjs → types-Cn54Lzf-.cjs} +0 -86
- package/dist/cjs/types.cjs +6 -5
- package/dist/cjs/types.d.cts +2 -2
- package/dist/cjs/utils.d.cts +9 -9
- package/dist/esm/{AbacusGrpcApi-5_yoQhYn.js → AbacusGrpcApi-B4YWpm-V.js} +1 -1
- package/dist/esm/{BaseGrpcConsumer-CK201Yfq.js → BaseGrpcConsumer-1Fv9J-Lp.js} +49 -4
- package/dist/{cjs/BaseGrpcConsumer-B0hgaf-W.d.cts → esm/BaseGrpcConsumer-BptQBj1l.d.ts} +10 -2
- package/dist/esm/{BaseIndexerGrpcConsumer-Cig9Weiv.js → BaseIndexerGrpcConsumer-Ek6rfBH7.js} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-p4Qb1h7v.js → ChainGrpcExchangeApi-BApB4VXN.js} +2 -2
- package/dist/esm/{ChainRestTendermintApi-C_NNsrIz.js → ChainRestTendermintApi-DQdsD1Kf.js} +2 -2
- package/dist/esm/{IndexerGrpcWeb3GwApi-ClF9dNYJ.js → IndexerGrpcWeb3GwApi-QDeKgWsp.js} +1 -1
- package/dist/esm/{MsgSetDenomMetadata-BdGx_g0q.js → MsgSetDenomMetadata-_b5Klju5.js} +3 -2
- package/dist/esm/{OLPGrpcApi-B8nlTHBl.js → OLPGrpcApi-Cn6LmYcu.js} +1 -1
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-DFvMhigV.js → QueryTradingStrategyContractTotalStrategies-BhAe-C30.js} +2 -2
- package/dist/esm/{StreamManagerV2-DySHgXZI.js → StreamManagerV2-CukGXKvI.js} +6 -5
- package/dist/esm/{TcAbacusGrpcApi-DmZ-Qjr_.js → TcAbacusGrpcApi-DUch8B-a.js} +1 -1
- package/dist/esm/{chain-B3A9VY7_.js → chain-CrzcdwXB.js} +3 -3
- package/dist/esm/client/abacus.d.ts +4 -4
- package/dist/esm/client/abacus.js +3 -2
- package/dist/esm/client/chain.d.ts +9 -9
- package/dist/esm/client/chain.js +6 -5
- package/dist/esm/client/indexer.d.ts +9 -9
- package/dist/esm/client/indexer.js +7 -6
- package/dist/esm/client/olp.d.ts +4 -4
- package/dist/esm/client/olp.js +4 -3
- package/dist/esm/client/tcAbacus.d.ts +4 -4
- package/dist/esm/client/tcAbacus.js +3 -2
- package/dist/esm/client/wasm.d.ts +3 -3
- package/dist/esm/client/wasm.js +8 -7
- package/dist/esm/core/accounts.d.ts +9 -9
- package/dist/esm/core/modules.d.ts +9 -9
- package/dist/esm/core/modules.js +10 -9
- package/dist/esm/core/tx.d.ts +9 -9
- package/dist/esm/core/tx.js +7 -6
- package/dist/esm/cosmjs.d.ts +2 -2
- package/dist/esm/cosmjs.js +8 -7
- package/dist/esm/exports.d.ts +2 -2
- package/dist/esm/exports.js +8 -7
- package/dist/esm/{index-DSXLogeY.d.ts → index-BSAdUyzU.d.ts} +1 -1
- package/dist/esm/{index-DhfsaTNU.d.ts → index-BYx0x8ba.d.ts} +1 -1
- package/dist/esm/{index-CZDITwmg.d.ts → index-CGvR0jtI.d.ts} +1 -1
- package/dist/esm/{index-Dc_UE3NR.d.ts → index-Cngh1mkP.d.ts} +1 -1
- package/dist/esm/{index-C8crIAg1.d.ts → index-DJtcTm1W.d.ts} +3 -3
- package/dist/esm/{index-Bn3MMVpZ.d.ts → index-Db2hVJPi.d.ts} +1 -1
- package/dist/esm/{index-C_OOzEph.d.ts → index-U2hwLy0U.d.ts} +149 -95
- package/dist/esm/{index-ECwAlIYI.d.ts → index-sT17wTBx.d.ts} +6 -6
- package/dist/esm/index.d.ts +9 -9
- package/dist/esm/index.js +18 -17
- package/dist/esm/{service-CuS3psRy.js → service-CpGjjdLV.js} +1 -1
- package/dist/esm/service.d.ts +3 -3
- package/dist/esm/service.js +3 -2
- package/dist/esm/stream-76M0PY9K.js +63 -0
- package/dist/esm/{tx-C696L2a1.js → tx-DoXJcHMC.js} +3 -3
- package/dist/{cjs/tx_pb-BN7h9uqT.d.cts → esm/tx_pb-DG9OU_HE.d.ts} +4 -4
- package/dist/esm/{types-WE16qNvL.js → types-tAnfZSw9.js} +1 -63
- package/dist/esm/types.d.ts +2 -2
- package/dist/esm/types.js +2 -1
- package/dist/esm/utils.d.ts +9 -9
- package/package.json +6 -6
- /package/dist/cjs/{BaseRestConsumer-CRkyjiSo.cjs → BaseRestConsumer-uSzCOit7.cjs} +0 -0
- /package/dist/cjs/{DirectEthSecp256k1Wallet-fFpCA8sp.cjs → DirectEthSecp256k1Wallet-B47wfyu3.cjs} +0 -0
- /package/dist/cjs/{ExecArgNeptuneWithdraw--tacGqxE.cjs → ExecArgNeptuneWithdraw-DJWhAi2w.cjs} +0 -0
- /package/dist/esm/{BaseRestConsumer-BySVL6Rh.js → BaseRestConsumer-Ca8S09Yp.js} +0 -0
- /package/dist/esm/{DirectEthSecp256k1Wallet--KKmwr9n.js → DirectEthSecp256k1Wallet-bZZ4bjk5.js} +0 -0
- /package/dist/esm/{ExecArgNeptuneWithdraw-DRip7cop.js → ExecArgNeptuneWithdraw-DRCUYj-r.js} +0 -0
|
@@ -38,68 +38,6 @@ const TokenSource = {
|
|
|
38
38
|
Axelar: "axelar"
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/types/stream.ts
|
|
43
|
-
/**
|
|
44
|
-
* Subscription interface for stream management with event-based lifecycle
|
|
45
|
-
*/
|
|
46
|
-
/**
|
|
47
|
-
* gRPC Status Codes
|
|
48
|
-
* @see https://grpc.io/docs/guides/status-codes/
|
|
49
|
-
*/
|
|
50
|
-
const GrpcStatusCode = {
|
|
51
|
-
OK: 0,
|
|
52
|
-
CANCELLED: 1,
|
|
53
|
-
UNKNOWN: 2,
|
|
54
|
-
INVALID_ARGUMENT: 3,
|
|
55
|
-
DEADLINE_EXCEEDED: 4,
|
|
56
|
-
NOT_FOUND: 5,
|
|
57
|
-
ALREADY_EXISTS: 6,
|
|
58
|
-
PERMISSION_DENIED: 7,
|
|
59
|
-
RESOURCE_EXHAUSTED: 8,
|
|
60
|
-
FAILED_PRECONDITION: 9,
|
|
61
|
-
ABORTED: 10,
|
|
62
|
-
OUT_OF_RANGE: 11,
|
|
63
|
-
UNIMPLEMENTED: 12,
|
|
64
|
-
INTERNAL: 13,
|
|
65
|
-
UNAVAILABLE: 14,
|
|
66
|
-
DATA_LOSS: 15,
|
|
67
|
-
UNAUTHENTICATED: 16
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Enhanced disconnect reasons with gRPC error code mapping
|
|
71
|
-
*/
|
|
72
|
-
const StreamDisconnectReason = {
|
|
73
|
-
UserStopped: "user-stopped",
|
|
74
|
-
StreamError: "stream-error",
|
|
75
|
-
NetworkError: "network-error",
|
|
76
|
-
Timeout: "timeout",
|
|
77
|
-
AuthenticationError: "authentication-error",
|
|
78
|
-
InvalidRequest: "invalid-request",
|
|
79
|
-
RateLimited: "rate-limited",
|
|
80
|
-
MaxRetries: "max-retries",
|
|
81
|
-
StreamEnded: "stream-ended"
|
|
82
|
-
};
|
|
83
|
-
const StreamEvent = {
|
|
84
|
-
Data: "data",
|
|
85
|
-
Connect: "connect",
|
|
86
|
-
Disconnect: "disconnect",
|
|
87
|
-
Retry: "retry",
|
|
88
|
-
StateChange: "state:change",
|
|
89
|
-
Error: "error",
|
|
90
|
-
Warn: "warn"
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* StreamManager
|
|
94
|
-
*/
|
|
95
|
-
const StreamState = {
|
|
96
|
-
Idle: "idle",
|
|
97
|
-
Connecting: "connecting",
|
|
98
|
-
Connected: "connected",
|
|
99
|
-
Reconnecting: "reconnecting",
|
|
100
|
-
Stopped: "stopped"
|
|
101
|
-
};
|
|
102
|
-
|
|
103
41
|
//#endregion
|
|
104
42
|
//#region src/types/exchange.ts
|
|
105
43
|
/**
|
|
@@ -161,12 +99,6 @@ const StreamOperation = {
|
|
|
161
99
|
};
|
|
162
100
|
|
|
163
101
|
//#endregion
|
|
164
|
-
Object.defineProperty(exports, 'GrpcStatusCode', {
|
|
165
|
-
enumerable: true,
|
|
166
|
-
get: function () {
|
|
167
|
-
return GrpcStatusCode;
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
102
|
Object.defineProperty(exports, 'OrderMaskMap', {
|
|
171
103
|
enumerable: true,
|
|
172
104
|
get: function () {
|
|
@@ -185,30 +117,12 @@ Object.defineProperty(exports, 'OrderState', {
|
|
|
185
117
|
return OrderState;
|
|
186
118
|
}
|
|
187
119
|
});
|
|
188
|
-
Object.defineProperty(exports, 'StreamDisconnectReason', {
|
|
189
|
-
enumerable: true,
|
|
190
|
-
get: function () {
|
|
191
|
-
return StreamDisconnectReason;
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
Object.defineProperty(exports, 'StreamEvent', {
|
|
195
|
-
enumerable: true,
|
|
196
|
-
get: function () {
|
|
197
|
-
return StreamEvent;
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
120
|
Object.defineProperty(exports, 'StreamOperation', {
|
|
201
121
|
enumerable: true,
|
|
202
122
|
get: function () {
|
|
203
123
|
return StreamOperation;
|
|
204
124
|
}
|
|
205
125
|
});
|
|
206
|
-
Object.defineProperty(exports, 'StreamState', {
|
|
207
|
-
enumerable: true,
|
|
208
|
-
get: function () {
|
|
209
|
-
return StreamState;
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
126
|
Object.defineProperty(exports, 'TokenSource', {
|
|
213
127
|
enumerable: true,
|
|
214
128
|
get: function () {
|
package/dist/cjs/types.cjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_stream = require('./stream-CfBvG3Ln.cjs');
|
|
2
|
+
const require_types = require('./types-Cn54Lzf-.cjs');
|
|
2
3
|
|
|
3
|
-
exports.GrpcStatusCode =
|
|
4
|
+
exports.GrpcStatusCode = require_stream.GrpcStatusCode;
|
|
4
5
|
exports.OrderMaskMap = require_types.OrderMaskMap;
|
|
5
6
|
exports.OrderSide = require_types.OrderSide;
|
|
6
7
|
exports.OrderState = require_types.OrderState;
|
|
7
|
-
exports.StreamDisconnectReason =
|
|
8
|
-
exports.StreamEvent =
|
|
8
|
+
exports.StreamDisconnectReason = require_stream.StreamDisconnectReason;
|
|
9
|
+
exports.StreamEvent = require_stream.StreamEvent;
|
|
9
10
|
exports.StreamOperation = require_types.StreamOperation;
|
|
10
|
-
exports.StreamState =
|
|
11
|
+
exports.StreamState = require_stream.StreamState;
|
|
11
12
|
exports.TokenSource = require_types.TokenSource;
|
|
12
13
|
exports.TokenType = require_types.TokenType;
|
|
13
14
|
exports.TokenVerification = require_types.TokenVerification;
|
package/dist/cjs/types.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./tx_pb-
|
|
2
|
-
import { Ct as TokenVerification, St as TokenType, _ as OrderState, _t as StreamState, a as StreamOperation, b as TradeExecutionType, bt as TokenSource, c as DirectSignResponse, d as TxRaw, dt as StreamDisconnectReason, f as GrpcWebTransportAdditionalOptions, ft as StreamError, g as OrderSide, gt as StreamManagerRetryConfig, h as OrderMaskMap, ht as StreamManagerEvents, i as PaginationOption, l as GrpcCoin, lt as GrpcStatusCode, m as OrderMask, mt as StreamManagerConfig, n as PagePagination, o as AminoSignResponse, pt as StreamEvent, r as Pagination, s as Coin, t as ExchangePagination, u as SignDoc, ut as ResolvedStreamManagerConfig, v as TradeDirection, vt as StreamSubscription, xt as TokenStatic, y as TradeExecutionSide, yt as TokenMeta } from "./index-
|
|
1
|
+
import "./tx_pb-BGCQilBY.cjs";
|
|
2
|
+
import { Ct as TokenVerification, St as TokenType, _ as OrderState, _t as StreamState, a as StreamOperation, b as TradeExecutionType, bt as TokenSource, c as DirectSignResponse, d as TxRaw, dt as StreamDisconnectReason, f as GrpcWebTransportAdditionalOptions, ft as StreamError, g as OrderSide, gt as StreamManagerRetryConfig, h as OrderMaskMap, ht as StreamManagerEvents, i as PaginationOption, l as GrpcCoin, lt as GrpcStatusCode, m as OrderMask, mt as StreamManagerConfig, n as PagePagination, o as AminoSignResponse, pt as StreamEvent, r as Pagination, s as Coin, t as ExchangePagination, u as SignDoc, ut as ResolvedStreamManagerConfig, v as TradeDirection, vt as StreamSubscription, xt as TokenStatic, y as TradeExecutionSide, yt as TokenMeta } from "./index-C15wCMY6.cjs";
|
|
3
3
|
export { AminoSignResponse, Coin, DirectSignResponse, ExchangePagination, GrpcCoin, GrpcStatusCode, GrpcWebTransportAdditionalOptions, OrderMask, OrderMaskMap, OrderSide, OrderState, PagePagination, Pagination, PaginationOption, ResolvedStreamManagerConfig, SignDoc, StreamDisconnectReason, StreamError, StreamEvent, StreamManagerConfig, StreamManagerEvents, StreamManagerRetryConfig, StreamOperation, StreamState, StreamSubscription, TokenMeta, TokenSource, TokenStatic, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType, TxRaw };
|
package/dist/cjs/utils.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./tx_pb-
|
|
2
|
-
import "./index-
|
|
3
|
-
import { $d as spotQuantityToChainQuantity, $u as uint8ArrayToBase64, Ad as derivativePriceToChainPrice, Af as ripemd160, Au as grpcPagingToPagingV2, Bd as formatPriceToAllowableDecimals, Bf as protobufTimestampToUnixMs, Bu as DEFAULT_DERIVATION_PATH, Cd as denomAmountToGrpcChainDenomAmount, Cf as hashToHex, Dd as derivativeMarginToChainMarginToFixed, Df as privateKeyToPublicKey, Du as fetchAllWithPagination, Eb as GrpcWebFetchTransport, Ed as derivativeMarginToChainMargin, Ef as privateKeyHashToPublicKeyBase64, Eu as recoverTypedSignaturePubKey, Fd as derivativeQuantityToChainQuantityToFixed, Ff as getGrpcWebTransport, Fu as BECH32_ADDR_CONS_PREFIX, Gd as isNumber, Gu as fromBase64, Hd as getExactDecimalsFromNumber, Hu as base64ToUtf8, Id as formatAmountToAllowableAmount, If as getGasPriceBasedOnMessage, Iu as BECH32_ADDR_VAL_PREFIX, Jd as spotPriceFromChainPriceToFixed, Ju as hexToBuff, Kd as numberToCosmosSdkDecString, Ku as fromUtf8, Ld as formatAmountToAllowableDecimals, Lf as makeTimeoutTimestamp, Lu as BECH32_PUBKEY_ACC_PREFIX, Md as derivativeQuantityFromChainQuantity, Mf as sha256, Mu as paginationRequestFromPagination, Nd as derivativeQuantityFromChainQuantityToFixed, Nf as parseCoins, Nu as paginationUint8ArrayToString, Od as derivativePriceFromChainPrice, Of as privateKeyToPublicKeyBase64, Ou as grpcPaginationToPagination, Pd as derivativeQuantityToChainQuantity, Pf as ofacList, Pu as BECH32_ADDR_ACC_PREFIX, Qd as spotQuantityFromChainQuantityToFixed, Qu as toUtf8, Rd as formatNumberToAllowableDecimals, Rf as makeTimeoutTimestampInNs, Ru as BECH32_PUBKEY_CONS_PREFIX, Sd as denomAmountToChainDenomAmountToFixed, Sf as domainHash, Td as derivativeMarginFromChainMarginToFixed, Tf as privateKeyHashToPublicKey, Ud as getSignificantDecimalsFromNumber, Uu as binaryToBase64, Vd as formatPriceToAllowablePrice, Vf as protobufTimestampToUnixSeconds, Vu as base64ToUint8Array, Wd as getTensMultiplier, Wu as concatUint8Arrays, Xd as spotPriceToChainPriceToFixed, Xu as stringToUint8Array, Yd as spotPriceToChainPrice, Yu as hexToUint8Array, Zd as spotQuantityFromChainQuantity, Zu as toBase64, _d as cosmosSdkDecToBigNumber, _f as SignTypedDataVersionV4, ad as getDefaultSubaccountId, af as grpcCoinToUiCoin, bd as denomAmountFromGrpcChainDenomAmount, bf as TypedMessageV4, cd as getInjectiveAddressFromSubaccountId, cf as isJsonString, dd as removeHexPrefix, df as isServerSide, ed as uint8ArrayToHex, ef as spotQuantityToChainQuantityToFixed, fd as getDerivativeMarketDecimals, ff as objectToJson, gd as amountToCosmosSdkDecAmount, gf as sortObjectByKeysWithReduce, hd as getSpotMarketTensMultiplier, hf as sortObjectByKeys, id as getChecksumAddress, if as getErrorMessage, jd as derivativePriceToChainPriceToFixed, jf as sanitizeTypedData, ju as pageRequestToGrpcPageRequestV2, kd as derivativePriceFromChainPriceToFixed, kf as publicKeyToAddress, ku as grpcPagingToPaging, ld as getSubaccountId, lf as isNode, md as getSpotMarketDecimals, mf as safeBigIntStringify, nd as addHexPrefix, nf as bigIntToNumber, od as getEthereumAddress, of as hexToNumber, pd as getDerivativeMarketTensMultiplier, pf as protoObjectToJson, qd as spotPriceFromChainPrice, qu as hexToBase64, rd as getAddressFromInjectiveAddress, rf as bigIntToString, sd as getInjectiveAddress, sf as isBrowser, td as uint8ArrayToString, tf as bigIntReplacer, ud as isCw20ContractAddress, uf as isReactNative, vd as denomAmountFromChainDenomAmount, vf as TypedDataUtilsHashStruct, wd as derivativeMarginFromChainMargin, wf as messageHash, xd as denomAmountToChainDenomAmount, xf as decompressPubKey, yd as denomAmountFromChainDenomAmountToFixed, yf as TypedDataUtilsSanitizeData, zd as formatNumberToAllowableTensMultiplier, zf as protobufTimestampToDate, zu as BECH32_PUBKEY_VAL_PREFIX } from "./index-
|
|
4
|
-
import "./BaseGrpcConsumer-
|
|
5
|
-
import "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
1
|
+
import "./tx_pb-BGCQilBY.cjs";
|
|
2
|
+
import "./index-C15wCMY6.cjs";
|
|
3
|
+
import { $d as spotQuantityToChainQuantity, $u as uint8ArrayToBase64, Ad as derivativePriceToChainPrice, Af as ripemd160, Au as grpcPagingToPagingV2, Bd as formatPriceToAllowableDecimals, Bf as protobufTimestampToUnixMs, Bu as DEFAULT_DERIVATION_PATH, Cd as denomAmountToGrpcChainDenomAmount, Cf as hashToHex, Dd as derivativeMarginToChainMarginToFixed, Df as privateKeyToPublicKey, Du as fetchAllWithPagination, Eb as GrpcWebFetchTransport, Ed as derivativeMarginToChainMargin, Ef as privateKeyHashToPublicKeyBase64, Eu as recoverTypedSignaturePubKey, Fd as derivativeQuantityToChainQuantityToFixed, Ff as getGrpcWebTransport, Fu as BECH32_ADDR_CONS_PREFIX, Gd as isNumber, Gu as fromBase64, Hd as getExactDecimalsFromNumber, Hu as base64ToUtf8, Id as formatAmountToAllowableAmount, If as getGasPriceBasedOnMessage, Iu as BECH32_ADDR_VAL_PREFIX, Jd as spotPriceFromChainPriceToFixed, Ju as hexToBuff, Kd as numberToCosmosSdkDecString, Ku as fromUtf8, Ld as formatAmountToAllowableDecimals, Lf as makeTimeoutTimestamp, Lu as BECH32_PUBKEY_ACC_PREFIX, Md as derivativeQuantityFromChainQuantity, Mf as sha256, Mu as paginationRequestFromPagination, Nd as derivativeQuantityFromChainQuantityToFixed, Nf as parseCoins, Nu as paginationUint8ArrayToString, Od as derivativePriceFromChainPrice, Of as privateKeyToPublicKeyBase64, Ou as grpcPaginationToPagination, Pd as derivativeQuantityToChainQuantity, Pf as ofacList, Pu as BECH32_ADDR_ACC_PREFIX, Qd as spotQuantityFromChainQuantityToFixed, Qu as toUtf8, Rd as formatNumberToAllowableDecimals, Rf as makeTimeoutTimestampInNs, Ru as BECH32_PUBKEY_CONS_PREFIX, Sd as denomAmountToChainDenomAmountToFixed, Sf as domainHash, Td as derivativeMarginFromChainMarginToFixed, Tf as privateKeyHashToPublicKey, Ud as getSignificantDecimalsFromNumber, Uu as binaryToBase64, Vd as formatPriceToAllowablePrice, Vf as protobufTimestampToUnixSeconds, Vu as base64ToUint8Array, Wd as getTensMultiplier, Wu as concatUint8Arrays, Xd as spotPriceToChainPriceToFixed, Xu as stringToUint8Array, Yd as spotPriceToChainPrice, Yu as hexToUint8Array, Zd as spotQuantityFromChainQuantity, Zu as toBase64, _d as cosmosSdkDecToBigNumber, _f as SignTypedDataVersionV4, ad as getDefaultSubaccountId, af as grpcCoinToUiCoin, bd as denomAmountFromGrpcChainDenomAmount, bf as TypedMessageV4, cd as getInjectiveAddressFromSubaccountId, cf as isJsonString, dd as removeHexPrefix, df as isServerSide, ed as uint8ArrayToHex, ef as spotQuantityToChainQuantityToFixed, fd as getDerivativeMarketDecimals, ff as objectToJson, gd as amountToCosmosSdkDecAmount, gf as sortObjectByKeysWithReduce, hd as getSpotMarketTensMultiplier, hf as sortObjectByKeys, id as getChecksumAddress, if as getErrorMessage, jd as derivativePriceToChainPriceToFixed, jf as sanitizeTypedData, ju as pageRequestToGrpcPageRequestV2, kd as derivativePriceFromChainPriceToFixed, kf as publicKeyToAddress, ku as grpcPagingToPaging, ld as getSubaccountId, lf as isNode, md as getSpotMarketDecimals, mf as safeBigIntStringify, nd as addHexPrefix, nf as bigIntToNumber, od as getEthereumAddress, of as hexToNumber, pd as getDerivativeMarketTensMultiplier, pf as protoObjectToJson, qd as spotPriceFromChainPrice, qu as hexToBase64, rd as getAddressFromInjectiveAddress, rf as bigIntToString, sd as getInjectiveAddress, sf as isBrowser, td as uint8ArrayToString, tf as bigIntReplacer, ud as isCw20ContractAddress, uf as isReactNative, vd as denomAmountFromChainDenomAmount, vf as TypedDataUtilsHashStruct, wd as derivativeMarginFromChainMargin, wf as messageHash, xd as denomAmountToChainDenomAmount, xf as decompressPubKey, yd as denomAmountFromChainDenomAmountToFixed, yf as TypedDataUtilsSanitizeData, zd as formatNumberToAllowableTensMultiplier, zf as protobufTimestampToDate, zu as BECH32_PUBKEY_VAL_PREFIX } from "./index-CLuXJWNT.cjs";
|
|
4
|
+
import "./BaseGrpcConsumer-CZTAcNtS.cjs";
|
|
5
|
+
import "./index-C00Yswov.cjs";
|
|
6
|
+
import "./index-Dvfd07fs.cjs";
|
|
7
|
+
import "./index-DD6UhYzr.cjs";
|
|
8
|
+
import "./index-xSXf-Ct4.cjs";
|
|
9
|
+
import "./index-B-Q3ov9G.cjs";
|
|
10
10
|
export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH, GrpcWebFetchTransport, SignTypedDataVersionV4, TypedDataUtilsHashStruct, TypedDataUtilsSanitizeData, TypedMessageV4, addHexPrefix, amountToCosmosSdkDecAmount, base64ToUint8Array, base64ToUtf8, bigIntReplacer, bigIntToNumber, bigIntToString, binaryToBase64, concatUint8Arrays, cosmosSdkDecToBigNumber, decompressPubKey, denomAmountFromChainDenomAmount, denomAmountFromChainDenomAmountToFixed, denomAmountFromGrpcChainDenomAmount, denomAmountToChainDenomAmount, denomAmountToChainDenomAmountToFixed, denomAmountToGrpcChainDenomAmount, derivativeMarginFromChainMargin, derivativeMarginFromChainMarginToFixed, derivativeMarginToChainMargin, derivativeMarginToChainMarginToFixed, derivativePriceFromChainPrice, derivativePriceFromChainPriceToFixed, derivativePriceToChainPrice, derivativePriceToChainPriceToFixed, derivativeQuantityFromChainQuantity, derivativeQuantityFromChainQuantityToFixed, derivativeQuantityToChainQuantity, derivativeQuantityToChainQuantityToFixed, domainHash, fetchAllWithPagination, formatAmountToAllowableAmount, formatAmountToAllowableDecimals, formatNumberToAllowableDecimals, formatNumberToAllowableTensMultiplier, formatPriceToAllowableDecimals, formatPriceToAllowablePrice, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getChecksumAddress, getDefaultSubaccountId, getDerivativeMarketDecimals, getDerivativeMarketTensMultiplier, getErrorMessage, getEthereumAddress, getExactDecimalsFromNumber, getGasPriceBasedOnMessage, getGrpcWebTransport, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSignificantDecimalsFromNumber, getSpotMarketDecimals, getSpotMarketTensMultiplier, getSubaccountId, getTensMultiplier, grpcCoinToUiCoin, grpcPaginationToPagination, grpcPagingToPaging, grpcPagingToPagingV2, hashToHex, hexToBase64, hexToBuff, hexToNumber, hexToUint8Array, isBrowser, isCw20ContractAddress, isJsonString, isNode, isNumber, isReactNative, isServerSide, makeTimeoutTimestamp, makeTimeoutTimestampInNs, messageHash, numberToCosmosSdkDecString, objectToJson, ofacList, pageRequestToGrpcPageRequestV2, paginationRequestFromPagination, paginationUint8ArrayToString, parseCoins, privateKeyHashToPublicKey, privateKeyHashToPublicKeyBase64, privateKeyToPublicKey, privateKeyToPublicKeyBase64, protoObjectToJson, protobufTimestampToDate, protobufTimestampToUnixMs, protobufTimestampToUnixSeconds, publicKeyToAddress, recoverTypedSignaturePubKey, removeHexPrefix, ripemd160, safeBigIntStringify, sanitizeTypedData, sha256, sortObjectByKeys, sortObjectByKeysWithReduce, spotPriceFromChainPrice, spotPriceFromChainPriceToFixed, spotPriceToChainPrice, spotPriceToChainPriceToFixed, spotQuantityFromChainQuantity, spotQuantityFromChainQuantityToFixed, spotQuantityToChainQuantity, spotQuantityToChainQuantityToFixed, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.js";
|
|
2
|
-
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-
|
|
2
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-1Fv9J-Lp.js";
|
|
3
3
|
import { IndexerErrorModule } from "@injectivelabs/exceptions";
|
|
4
4
|
import * as PointsSvcPb from "@injectivelabs/abacus-proto-ts-v2/generated/points_svc_pb";
|
|
5
5
|
import { PointsSvcClient } from "@injectivelabs/abacus-proto-ts-v2/generated/points_svc_pb.client";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.js";
|
|
2
2
|
import { n as getGrpcWebTransport } from "./grpc-BJmNoike.js";
|
|
3
|
+
import { t as GrpcStatusCode } from "./stream-76M0PY9K.js";
|
|
3
4
|
import { GrpcUnaryRequestException, TransactionException, UnspecifiedErrorCode, grpcErrorCodeToErrorCode } from "@injectivelabs/exceptions";
|
|
4
5
|
import { RpcError } from "@protobuf-ts/runtime-rpc";
|
|
5
6
|
|
|
@@ -34,6 +35,31 @@ var GrpcWebRpcTransport = class {
|
|
|
34
35
|
|
|
35
36
|
//#endregion
|
|
36
37
|
//#region src/client/base/BaseGrpcConsumer.ts
|
|
38
|
+
const GRPC_STATUS_CODE_BY_NAME = {
|
|
39
|
+
OK: GrpcStatusCode.OK,
|
|
40
|
+
CANCELLED: GrpcStatusCode.CANCELLED,
|
|
41
|
+
UNKNOWN: GrpcStatusCode.UNKNOWN,
|
|
42
|
+
INVALID_ARGUMENT: GrpcStatusCode.INVALID_ARGUMENT,
|
|
43
|
+
DEADLINE_EXCEEDED: GrpcStatusCode.DEADLINE_EXCEEDED,
|
|
44
|
+
NOT_FOUND: GrpcStatusCode.NOT_FOUND,
|
|
45
|
+
ALREADY_EXISTS: GrpcStatusCode.ALREADY_EXISTS,
|
|
46
|
+
PERMISSION_DENIED: GrpcStatusCode.PERMISSION_DENIED,
|
|
47
|
+
RESOURCE_EXHAUSTED: GrpcStatusCode.RESOURCE_EXHAUSTED,
|
|
48
|
+
FAILED_PRECONDITION: GrpcStatusCode.FAILED_PRECONDITION,
|
|
49
|
+
ABORTED: GrpcStatusCode.ABORTED,
|
|
50
|
+
OUT_OF_RANGE: GrpcStatusCode.OUT_OF_RANGE,
|
|
51
|
+
UNIMPLEMENTED: GrpcStatusCode.UNIMPLEMENTED,
|
|
52
|
+
INTERNAL: GrpcStatusCode.INTERNAL,
|
|
53
|
+
UNAVAILABLE: GrpcStatusCode.UNAVAILABLE,
|
|
54
|
+
DATA_LOSS: GrpcStatusCode.DATA_LOSS,
|
|
55
|
+
UNAUTHENTICATED: GrpcStatusCode.UNAUTHENTICATED
|
|
56
|
+
};
|
|
57
|
+
const GRPC_RETRYABLE_STATUS_CODES = new Set([
|
|
58
|
+
GrpcStatusCode.UNAVAILABLE,
|
|
59
|
+
GrpcStatusCode.DEADLINE_EXCEEDED,
|
|
60
|
+
GrpcStatusCode.RESOURCE_EXHAUSTED,
|
|
61
|
+
GrpcStatusCode.ABORTED
|
|
62
|
+
]);
|
|
37
63
|
/**
|
|
38
64
|
* BaseGrpcConsumer provides base functionality for all gRPC consumers.
|
|
39
65
|
* It uses the GrpcWebRpcTransport with GrpcWebFetchTransport from @protobuf-ts/grpcweb-transport.
|
|
@@ -91,14 +117,32 @@ var BaseGrpcConsumer = class {
|
|
|
91
117
|
return { meta: this.metadata || {} };
|
|
92
118
|
}
|
|
93
119
|
/**
|
|
94
|
-
*
|
|
120
|
+
* Converts gRPC status names or numeric status values into numeric codes.
|
|
121
|
+
*/
|
|
122
|
+
getGrpcStatusCode(code) {
|
|
123
|
+
if (typeof code === "number") return Number.isFinite(code) ? code : void 0;
|
|
124
|
+
if (typeof code !== "string") return;
|
|
125
|
+
const numericCode = Number(code);
|
|
126
|
+
if (Number.isFinite(numericCode)) return numericCode;
|
|
127
|
+
return GRPC_STATUS_CODE_BY_NAME[code];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Determines whether a gRPC error is safe to retry.
|
|
131
|
+
*/
|
|
132
|
+
isRetryableGrpcError(e) {
|
|
133
|
+
if (!(e instanceof RpcError)) return false;
|
|
134
|
+
const statusCode = this.getGrpcStatusCode(e.code);
|
|
135
|
+
return statusCode !== void 0 && GRPC_RETRYABLE_STATUS_CODES.has(statusCode);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Retry a gRPC call with backoff, only for retryable gRPC statuses.
|
|
95
139
|
*/
|
|
96
140
|
retry(grpcCall, retries = 3, delay = 1e3) {
|
|
97
141
|
const retryGrpcCall = async (attempt = 1) => {
|
|
98
142
|
try {
|
|
99
143
|
return await grpcCall();
|
|
100
144
|
} catch (e) {
|
|
101
|
-
if (attempt >= retries) throw e;
|
|
145
|
+
if (attempt >= retries || !this.isRetryableGrpcError(e)) throw e;
|
|
102
146
|
return new Promise((resolve) => setTimeout(() => resolve(retryGrpcCall(attempt + 1)), delay * attempt));
|
|
103
147
|
}
|
|
104
148
|
};
|
|
@@ -131,16 +175,17 @@ var BaseGrpcConsumer = class {
|
|
|
131
175
|
handleGrpcError(e, context) {
|
|
132
176
|
if (e instanceof RpcError) {
|
|
133
177
|
const message$1 = e.message;
|
|
178
|
+
const grpcStatusCode = this.getGrpcStatusCode(e.code);
|
|
134
179
|
const abciCode$1 = this.getABCICodeFromMessage(message$1);
|
|
135
180
|
const codespace$1 = this.getCodespaceFromMessage(message$1);
|
|
136
181
|
if (abciCode$1 && codespace$1) throw new TransactionException(new Error(message$1), {
|
|
137
|
-
code: grpcErrorCodeToErrorCode(
|
|
182
|
+
code: grpcStatusCode !== void 0 ? grpcErrorCodeToErrorCode(grpcStatusCode) : UnspecifiedErrorCode,
|
|
138
183
|
context,
|
|
139
184
|
contextModule: codespace$1,
|
|
140
185
|
contextCode: abciCode$1
|
|
141
186
|
});
|
|
142
187
|
throw new GrpcUnaryRequestException(new Error(message$1), {
|
|
143
|
-
code: grpcErrorCodeToErrorCode(
|
|
188
|
+
code: grpcStatusCode !== void 0 ? grpcErrorCodeToErrorCode(grpcStatusCode) : UnspecifiedErrorCode,
|
|
144
189
|
context,
|
|
145
190
|
contextModule: this.module
|
|
146
191
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as MethodInfo, Dt as DuplexStreamingCall, Et as UnaryCall, Ot as ClientStreamingCall, Tt as RpcTransport, f as GrpcWebTransportAdditionalOptions, kt as ServerStreamingCall, wt as RpcOptions } from "./index-
|
|
1
|
+
import { At as MethodInfo, Dt as DuplexStreamingCall, Et as UnaryCall, Ot as ClientStreamingCall, Tt as RpcTransport, f as GrpcWebTransportAdditionalOptions, kt as ServerStreamingCall, wt as RpcOptions } from "./index-DJtcTm1W.js";
|
|
2
2
|
|
|
3
3
|
//#region src/client/base/GrpcWebRpcTransport.d.ts
|
|
4
4
|
|
|
@@ -53,7 +53,15 @@ declare class BaseGrpcConsumer {
|
|
|
53
53
|
*/
|
|
54
54
|
protected getRpcOptions(): RpcOptions;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Converts gRPC status names or numeric status values into numeric codes.
|
|
57
|
+
*/
|
|
58
|
+
private getGrpcStatusCode;
|
|
59
|
+
/**
|
|
60
|
+
* Determines whether a gRPC error is safe to retry.
|
|
61
|
+
*/
|
|
62
|
+
private isRetryableGrpcError;
|
|
63
|
+
/**
|
|
64
|
+
* Retry a gRPC call with backoff, only for retryable gRPC statuses.
|
|
57
65
|
*/
|
|
58
66
|
protected retry<TResponse>(grpcCall: () => Promise<TResponse>, retries?: number, delay?: number): Promise<TResponse>;
|
|
59
67
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { O as denomAmountFromGrpcChainDenomAmount } from "./utils-XYJbh13N.js";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.js";
|
|
3
|
-
import { o as ChainModule } from "./ChainRestTendermintApi-
|
|
4
|
-
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-
|
|
3
|
+
import { o as ChainModule } from "./ChainRestTendermintApi-DQdsD1Kf.js";
|
|
4
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-1Fv9J-Lp.js";
|
|
5
5
|
import { toHumanReadable } from "@injectivelabs/utils";
|
|
6
6
|
import * as InjectiveExchangeV1Beta1QueryPb from "@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/query_pb";
|
|
7
7
|
import { QueryClient } from "@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/query_pb.client";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $t as uint8ArrayToString, Zt as uint8ArrayToBase64, l as ChainGrpcCommonTransformer } from "./utils-XYJbh13N.js";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.js";
|
|
3
|
-
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-
|
|
4
|
-
import { t as BaseRestConsumer } from "./BaseRestConsumer-
|
|
3
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-1Fv9J-Lp.js";
|
|
4
|
+
import { t as BaseRestConsumer } from "./BaseRestConsumer-Ca8S09Yp.js";
|
|
5
5
|
import { ChainErrorModule, HttpRequestException, UnspecifiedErrorCode } from "@injectivelabs/exceptions";
|
|
6
6
|
import * as InjectiveCryptoV1Beta1Ethsecp256k1KeysPb from "@injectivelabs/core-proto-ts-v2/generated/injective/crypto/v1beta1/ethsecp256k1/keys_pb";
|
|
7
7
|
import * as ExchangePb from "@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/exchange_pb";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Jt as stringToUint8Array, Qt as uint8ArrayToHex, pn as safeBigIntStringify, t as recoverTypedSignaturePubKey, zt as base64ToUint8Array } from "./utils-XYJbh13N.js";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.js";
|
|
3
|
-
import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-
|
|
3
|
+
import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-Ek6rfBH7.js";
|
|
4
4
|
import * as CosmosTxV1Beta1TxPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/v1beta1/tx_pb";
|
|
5
5
|
import { DEFAULT_BRIDGE_FEE_DENOM, DEFAULT_BRIDGE_FEE_PRICE, DEFAULT_EXCHANGE_LIMIT, DEFAULT_GAS_LIMIT } from "@injectivelabs/utils";
|
|
6
6
|
import { ErrorType, IndexerErrorModule, TransactionException, UnspecifiedErrorCode } from "@injectivelabs/exceptions";
|
|
@@ -2,8 +2,8 @@ import { Ht as concatUint8Arrays, Vt as binaryToBase64, Wt as fromUtf8, Zt as ui
|
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.js";
|
|
3
3
|
import { I as Address, j as createAny } from "./accounts-B_eo5rUB.js";
|
|
4
4
|
import { n as prepareSignBytes, t as MsgBase } from "./MsgBase-De14KlFJ.js";
|
|
5
|
-
import { t as ChainGrpcExchangeApi } from "./ChainGrpcExchangeApi-
|
|
6
|
-
import { a as dataToExecData$1, i as ExecArgBase } from "./ExecArgNeptuneWithdraw-
|
|
5
|
+
import { t as ChainGrpcExchangeApi } from "./ChainGrpcExchangeApi-BApB4VXN.js";
|
|
6
|
+
import { a as dataToExecData$1, i as ExecArgBase } from "./ExecArgNeptuneWithdraw-DRCUYj-r.js";
|
|
7
7
|
import { keccak256 } from "viem";
|
|
8
8
|
import { BigNumber, DEFAULT_BRIDGE_FEE_AMOUNT, DEFAULT_BRIDGE_FEE_DENOM, toBigNumber, toChainFormat, toPascalCase } from "@injectivelabs/utils";
|
|
9
9
|
import { GeneralException } from "@injectivelabs/exceptions";
|
|
@@ -2300,6 +2300,7 @@ var MsgCreateBinaryOptionsMarketOrder = class MsgCreateBinaryOptionsMarketOrder
|
|
|
2300
2300
|
//#endregion
|
|
2301
2301
|
//#region src/core/modules/exchange/msgs/MsgSetDelegationTransferReceivers.ts
|
|
2302
2302
|
/**
|
|
2303
|
+
* @deprecated no longer supported on chain
|
|
2303
2304
|
* @category Messages
|
|
2304
2305
|
*/
|
|
2305
2306
|
var MsgSetDelegationTransferReceivers = class MsgSetDelegationTransferReceivers extends MsgBase {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.js";
|
|
2
|
-
import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-
|
|
2
|
+
import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-Ek6rfBH7.js";
|
|
3
3
|
import { IndexerErrorModule } from "@injectivelabs/exceptions";
|
|
4
4
|
import * as DmmPb from "@injectivelabs/olp-proto-ts-v2/generated/goagen_olp_injective_dmm_v2_pb";
|
|
5
5
|
import { InjectiveDmmV2Client } from "@injectivelabs/olp-proto-ts-v2/generated/goagen_olp_injective_dmm_v2_pb.client";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ut as fromBase64, Vt as binaryToBase64, Xt as toUtf8, Yt as toBase64 } from "./utils-XYJbh13N.js";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.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-CrzcdwXB.js";
|
|
4
|
+
import { n as MsgExecuteContractCompat, r as ExecArgNeptuneDeposit, t as ExecArgNeptuneWithdraw } from "./ExecArgNeptuneWithdraw-DRCUYj-r.js";
|
|
5
5
|
import { GeneralException } from "@injectivelabs/exceptions";
|
|
6
6
|
import { Network, getNetworkEndpoints, isMainnet } from "@injectivelabs/networks";
|
|
7
7
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { $t as uint8ArrayToString, a as grpcPagingToPagingV2, nn as bigIntToString, sn as isJsonString, tn as bigIntToNumber } from "./utils-XYJbh13N.js";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.js";
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { i as StreamState, n as StreamDisconnectReason, r as StreamEvent, t as GrpcStatusCode } from "./stream-76M0PY9K.js";
|
|
4
|
+
import { n as GrpcWebRpcTransport } from "./BaseGrpcConsumer-1Fv9J-Lp.js";
|
|
5
|
+
import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-Ek6rfBH7.js";
|
|
6
|
+
import { t as BaseRestConsumer } from "./BaseRestConsumer-Ca8S09Yp.js";
|
|
7
|
+
import { f as GrpcDecodeError, m as WsState, p as WsDisconnectReason, r as IndexerModule } from "./IndexerGrpcWeb3GwApi-QDeKgWsp.js";
|
|
8
|
+
import { a as TradeDirection, i as OrderState, l as TokenType, t as StreamOperation, u as TokenVerification } from "./types-tAnfZSw9.js";
|
|
8
9
|
import { BigNumber, toBigNumber, toHumanReadable } from "@injectivelabs/utils";
|
|
9
10
|
import { GeneralException, HttpRequestException, UnspecifiedErrorCode } from "@injectivelabs/exceptions";
|
|
10
11
|
import * as InjectiveRFQExchangeRpcPb from "@injectivelabs/indexer-proto-ts-v2/generated/injective_rfq_rpc_pb";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.js";
|
|
2
|
-
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-
|
|
2
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-1Fv9J-Lp.js";
|
|
3
3
|
import { IndexerErrorModule } from "@injectivelabs/exceptions";
|
|
4
4
|
import * as TcAbacusPb from "@injectivelabs/tc-abacus-proto-ts-v2/generated/injective_tc_abacus_rpc_pb";
|
|
5
5
|
import { InjectiveTCAbacusRPCClient } from "@injectivelabs/tc-abacus-proto-ts-v2/generated/injective_tc_abacus_rpc_pb.client";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { $t as uint8ArrayToString, O as denomAmountFromGrpcChainDenomAmount, Wt as fromUtf8, Yt as toBase64, Zt as uint8ArrayToBase64, jt as protobufTimestampToUnixSeconds, kt as protobufTimestampToDate, l as ChainGrpcCommonTransformer, n as fetchAllWithPagination, nn as bigIntToString, zt as base64ToUint8Array } from "./utils-XYJbh13N.js";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.js";
|
|
3
|
-
import { o as ChainModule, p as BondStatus } from "./ChainRestTendermintApi-
|
|
4
|
-
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-
|
|
5
|
-
import { t as BaseRestConsumer } from "./BaseRestConsumer-
|
|
3
|
+
import { o as ChainModule, p as BondStatus } from "./ChainRestTendermintApi-DQdsD1Kf.js";
|
|
4
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-1Fv9J-Lp.js";
|
|
5
|
+
import { t as BaseRestConsumer } from "./BaseRestConsumer-Ca8S09Yp.js";
|
|
6
6
|
import { toBigNumber, toHumanReadable } from "@injectivelabs/utils";
|
|
7
7
|
import { ErrorType, GeneralException, HttpRequestException, UnspecifiedErrorCode } from "@injectivelabs/exceptions";
|
|
8
8
|
import * as CosmosAuthzV1Beta1AuthzPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/authz/v1beta1/authz_pb";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../tx_pb-
|
|
2
|
-
import "../index-
|
|
3
|
-
import "../BaseGrpcConsumer-
|
|
4
|
-
import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-
|
|
1
|
+
import "../tx_pb-DG9OU_HE.js";
|
|
2
|
+
import "../index-DJtcTm1W.js";
|
|
3
|
+
import "../BaseGrpcConsumer-BptQBj1l.js";
|
|
4
|
+
import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-BSAdUyzU.js";
|
|
5
5
|
export { AbacusGrpcApi, PointsLatestResponse, PointsStatsRow };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "../defineProperty-HO0rQlTT.js";
|
|
2
2
|
import "../grpc-BJmNoike.js";
|
|
3
|
-
import "../
|
|
4
|
-
import
|
|
3
|
+
import "../stream-76M0PY9K.js";
|
|
4
|
+
import "../BaseGrpcConsumer-1Fv9J-Lp.js";
|
|
5
|
+
import { t as AbacusGrpcApi } from "../AbacusGrpcApi-B4YWpm-V.js";
|
|
5
6
|
|
|
6
7
|
export { AbacusGrpcApi };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../tx_pb-
|
|
2
|
-
import { st as OracleType } from "../index-
|
|
3
|
-
import { $_ as TradeRewardCampaign, $g as EthAccount, $h as PermissionNamespace, $v as TallyResult, A as ChainGrpcAuctionApi, A_ as GrpcDenomDecimals, Ag as CreateSpotMarketOrderAuthz, Ah as AuctionParams, Av as ContractCodeHistoryOperationTypeMap, B as ChainGrpcAuthApi, B_ as GrpcOrderType, Bg as InsuranceModuleParams, Bh as GrpcPermissionPolicyStatus, Bv as grpcContractInfo, C as ChainGrpcInsuranceFundApi, C_ as GrpcCampaignRewardPool, Cg as BatchCreateDerivativeLimitOrdersAuthz, Ch as AuctionEventAuctionStart, Cv as ValidatorDescription, D as ChainGrpcTendermintApi, D_ as GrpcChainFullSpotMarket, Dg as CreateDerivativeLimitOrderAuthz, Dh as AuctionModuleState, Dv as ContractAccountsBalanceWithPagination, E as ChainGrpcPermissionsApi, E_ as GrpcChainFullDerivativeMarket, Eg as CancelSpotOrderAuthz, Eh as AuctionModuleParams, Ev as ContractAccountBalance, F as ChainGrpcPeggyApi, F_ as GrpcFeeDiscountTierInfo, Fg as GrantWithDecodedAuthorization, Fh as GrpcAuctionLastAuctionResult, Fv as GrpcCodeInfoResponse, G_ as GrpcSpotOrder, Gg as GrpcBankParams, Gh as GrpcPermissionRoleManager, Gv as GrpcProposal, H as ChainGrpcIbcApi, H_ as GrpcPointsMultiplier, Hg as GrpcMintParams, Hh as GrpcPermissionRole, Hv as GrpcGovernanceDepositParams, I as ChainGrpcAuthZApi, I_ as GrpcFeeDiscountTierTTL, Ig as GrpcInsuranceFund, Ih as GrpcAuctionParams, Iv as GrpcContractCodeHistoryEntry, J_ as GrpcTradingRewardCampaignInfo, Jg as SendEnabled, Jh as PermissionActionMap, Jv as GrpcVote, K_ as GrpcTradeRewardCampaign, Kg as GrpcSupply, Kh as GrpcPermissionsNamespace, Kv as GrpcProposalDeposit, L as ChainGrpcWasmApi, L_ as GrpcMarketStatus, Lg as GrpcInsuranceParams, Lh as GrpcPermissionActorRoles, Lv as GrpcContractInfo, M as ChainGrpcOracleApi, M_ as GrpcExchangeParams, Mg as Grant, Mh as GrpcAuctionEventAuctionResult, Mv as ContractStateWithPagination, N as ChainGrpcErc20Api, N_ as GrpcFeeDiscountAccountInfo, Ng as GrantAuthorization, Nh as GrpcAuctionEventAuctionStart, Nv as GoogleProtoBufAny, O as ChainGrpcExchangeApi, O_ as GrpcChainPosition, Og as CreateDerivativeMarketOrderAuthz, Oh as AuctionModuleStateParams, Ov as ContractCodeHistoryEntry, P as ChainGrpcWasmXApi, P_ as GrpcFeeDiscountSchedule, Pg as GrantAuthorizationWithDecodedAuthorization, Ph as GrpcAuctionEventBid, Pv as GrpcAbsoluteTxPosition, Q_ as PointsMultiplier, Qg as AuthModuleParams, Qh as PermissionGenesisState, Qv as ProposalStatusMap, R as ChainGrpcMintApi, R_ as GrpcMarketStatusMap, Rg as GrpcRedemptionSchedule, Rh as GrpcPermissionAddressVoucher, Rv as MarketingInfo, S as ChainRestBankApi, S_ as FeeDiscountTierTTL, Sg as BatchCancelSpotOrdersAuthz, Sh as AuctionEventAuctionResult, Sv as ValidatorCommission, T as ChainGrpcDistributionApi, T_ as GrpcChainDerivativePosition, Tg as CancelDerivativeOrderAuthz, Th as AuctionLastAuctionResult, Tv as CodeInfoResponse, U as ChainGrpcGovApi, U_ as GrpcSpotMarket, Ug as MinModuleParams, Uh as GrpcPermissionRoleActors, Uv as GrpcGovernanceTallyParams, V as ChainGrpcEvmApi, V_ as GrpcOrderTypeMap, Vg as OracleTypeMap, Vh as GrpcPermissionPolicyStatusManagerCapability, Vv as GovModuleStateParams, W_ as GrpcSpotMarketOrder, Wg as BankModuleParams, Wh as GrpcPermissionRoleIDs, Wv as GrpcGovernanceVotingParams, X_ as OrderType, Xg as Account, Xh as PermissionAddressRoles, Xv as ProposalDeposit, Y_ as IsOptedOutOfRewards, Yg as TotalSupply, Yh as PermissionActorRoles, Yv as Proposal, Z_ as OrderTypeMap, Zg as AuthBaseAccount, Zh as PermissionAddressVoucher, Zv as ProposalStatus, _ as ChainGrpcEvmTransformer, __ as ExchangeModuleParams, _g as Params, _h as AccountsResponse, _v as Pool, a as ChainGrpcExchangeTransformer, a_ as EvmParams, ag as PermissionRoleIDs, ah as FactoryDenomWithMetadata, av as GrpcDelegationResponse, b as ChainRestWasmApi, b_ as FeeDiscountSchedule, bg as PeggyModuleParams, bh as AuctionBid, bv as UnBondingDelegation, c as ChainGrpcCommonTransformer, c_ as GrpcEvmChainConfig, cg as PermissionsModuleParams, ch as DistributionModuleParams, cv as GrpcReDelegationEntryResponse, d as ChainGrpcPeggyTransformer, d_ as CampaignRewardPool, dg as GrpcTxFeesEipBaseFee, dh as GrpcDistributionParams, dv as GrpcUnbondingDelegation, e_ as PubKey, eg as PermissionParams, eh as ChainModule, ev as TradingRewardCampaignBoostInfo, ey as Vote, f as ChainGrpcAuthZTransformer, f_ as ChainDenomDecimal, fg as GrpcTxFeesParams, fh as ValidatorRewards, fv as GrpcUnbondingDelegationEntry, g as ChainGrpcAuthTransformer, g_ as DepositProposalParams, gg as GrpcTokenPair, gh as AccountResponse, gv as GrpcValidatorDescription, h as ChainGrpcBankTransformer, h_ as ChainPosition, hg as GrpcParams, hh as DenomOwnersResponse, hv as GrpcValidatorCommissionRates, i as ChainGrpcPermissionsTransformer, i_ as EvmLog, ig as PermissionRoleActors, ih as AuthorityMetadata, iv as GrpcDelegation, j as ChainGrpcTxFeesApi, j_ as GrpcDenomMinNotional, jg as GenericAuthorization, jh as GrpcAuctionBid, jv as ContractInfo, k as ChainGrpcStakingApi, k_ as GrpcChainSpotMarket, kg as CreateSpotLimitOrderAuthz, kh as AuctionModuleStateResponse, kv as ContractCodeHistoryOperationType, l as ChainGrpcTxFeesTransformer, l_ as GrpcEvmLog, lg as GrpcOracleParams, lh as GrpcDecCoin, lv as GrpcReDelegationResponse, m as ChainGrpcMintTransformer, m_ as ChainDerivativePosition, mg as TxFeesModuleStateParams, mh as DenomBalance, mv as GrpcValidatorCommission, n as ChainGrpcTokenFactoryTransformer, n_ as EvmBlobScheduleConfig, ng as PermissionPolicyStatus, nh as BlockLatestRestResponse, nv as BondStatus, ny as VoteOptionMap, o as ChainGrpcStakingTransformer, o_ as GrpcEvmBlobConfig, og as PermissionRoleManager, oh as TokenFactoryModuleParams, ov as GrpcPool, p as ChainGrpcWasmTransformer, p_ as ChainDenomMinNotional, pg as TxFeesEipBaseFee, ph as BalancesResponse, pv as GrpcValidator, q_ as GrpcTradingRewardCampaignBoostInfo, qg as Metadata, qh as GrpcPermissionsParams, qv as GrpcTallyResult, r as ChainGrpcDistributionTransformer, r_ as EvmChainConfig, rg as PermissionRole, rh as NodeInfoRestResponse, rv as Delegation, ry as WeightedVoteOption, s as ChainGrpcAuctionTransformer, s_ as GrpcEvmBlobScheduleConfig, sg as PermissionVoucher, sh as TokenFactoryModuleState, sv as GrpcReDelegation, t as ChainGrpcInsuranceFundTransformer, t_ as EvmBlobConfig, tg as PermissionPolicyManagerCapability, th as RestApiResponse, tv as TradingRewardCampaignInfo, ty as VoteOption, u as ChainGrpcErc20Transformer, u_ as GrpcEvmParams, ug as OracleModuleParams, uh as GrpcDelegationDelegatorReward, uv as GrpcStakingParams, v as ChainGrpcGovTransformer, v_ as ExchangeParams, vg as TokenPair, vh as BaseAccountRestResponse, vv as ReDelegation, w as ChainGrpcTokenFactoryApi, w_ as GrpcChainDerivativeMarket, wg as BatchCreateSpotLimitOrdersAuthz, wh as AuctionEventBid, wv as AbsoluteTxPosition, x as ChainRestAuthApi, x_ as FeeDiscountTierInfo, xg as BatchCancelDerivativeOrdersAuthz, xh as AuctionCurrentBasket, xv as Validator, y as ChainRestTendermintApi, y_ as FeeDiscountAccountInfo, yg as GrpcPeggyParams, yh as CosmosAccountRestResponse, yv as StakingModuleParams, z as ChainGrpcBankApi, z_ as GrpcOrderInfo, zg as InsuranceFund, zh as GrpcPermissionNamespace, zv as TokenInfo } from "../index-
|
|
4
|
-
import "../BaseGrpcConsumer-
|
|
5
|
-
import "../index-
|
|
6
|
-
import "../index-
|
|
7
|
-
import "../index-
|
|
8
|
-
import "../index-
|
|
9
|
-
import "../index-
|
|
1
|
+
import "../tx_pb-DG9OU_HE.js";
|
|
2
|
+
import { st as OracleType } from "../index-DJtcTm1W.js";
|
|
3
|
+
import { $_ as TradeRewardCampaign, $g as EthAccount, $h as PermissionNamespace, $v as TallyResult, A as ChainGrpcAuctionApi, A_ as GrpcDenomDecimals, Ag as CreateSpotMarketOrderAuthz, Ah as AuctionParams, Av as ContractCodeHistoryOperationTypeMap, B as ChainGrpcAuthApi, B_ as GrpcOrderType, Bg as InsuranceModuleParams, Bh as GrpcPermissionPolicyStatus, Bv as grpcContractInfo, C as ChainGrpcInsuranceFundApi, C_ as GrpcCampaignRewardPool, Cg as BatchCreateDerivativeLimitOrdersAuthz, Ch as AuctionEventAuctionStart, Cv as ValidatorDescription, D as ChainGrpcTendermintApi, D_ as GrpcChainFullSpotMarket, Dg as CreateDerivativeLimitOrderAuthz, Dh as AuctionModuleState, Dv as ContractAccountsBalanceWithPagination, E as ChainGrpcPermissionsApi, E_ as GrpcChainFullDerivativeMarket, Eg as CancelSpotOrderAuthz, Eh as AuctionModuleParams, Ev as ContractAccountBalance, F as ChainGrpcPeggyApi, F_ as GrpcFeeDiscountTierInfo, Fg as GrantWithDecodedAuthorization, Fh as GrpcAuctionLastAuctionResult, Fv as GrpcCodeInfoResponse, G_ as GrpcSpotOrder, Gg as GrpcBankParams, Gh as GrpcPermissionRoleManager, Gv as GrpcProposal, H as ChainGrpcIbcApi, H_ as GrpcPointsMultiplier, Hg as GrpcMintParams, Hh as GrpcPermissionRole, Hv as GrpcGovernanceDepositParams, I as ChainGrpcAuthZApi, I_ as GrpcFeeDiscountTierTTL, Ig as GrpcInsuranceFund, Ih as GrpcAuctionParams, Iv as GrpcContractCodeHistoryEntry, J_ as GrpcTradingRewardCampaignInfo, Jg as SendEnabled, Jh as PermissionActionMap, Jv as GrpcVote, K_ as GrpcTradeRewardCampaign, Kg as GrpcSupply, Kh as GrpcPermissionsNamespace, Kv as GrpcProposalDeposit, L as ChainGrpcWasmApi, L_ as GrpcMarketStatus, Lg as GrpcInsuranceParams, Lh as GrpcPermissionActorRoles, Lv as GrpcContractInfo, M as ChainGrpcOracleApi, M_ as GrpcExchangeParams, Mg as Grant, Mh as GrpcAuctionEventAuctionResult, Mv as ContractStateWithPagination, N as ChainGrpcErc20Api, N_ as GrpcFeeDiscountAccountInfo, Ng as GrantAuthorization, Nh as GrpcAuctionEventAuctionStart, Nv as GoogleProtoBufAny, O as ChainGrpcExchangeApi, O_ as GrpcChainPosition, Og as CreateDerivativeMarketOrderAuthz, Oh as AuctionModuleStateParams, Ov as ContractCodeHistoryEntry, P as ChainGrpcWasmXApi, P_ as GrpcFeeDiscountSchedule, Pg as GrantAuthorizationWithDecodedAuthorization, Ph as GrpcAuctionEventBid, Pv as GrpcAbsoluteTxPosition, Q_ as PointsMultiplier, Qg as AuthModuleParams, Qh as PermissionGenesisState, Qv as ProposalStatusMap, R as ChainGrpcMintApi, R_ as GrpcMarketStatusMap, Rg as GrpcRedemptionSchedule, Rh as GrpcPermissionAddressVoucher, Rv as MarketingInfo, S as ChainRestBankApi, S_ as FeeDiscountTierTTL, Sg as BatchCancelSpotOrdersAuthz, Sh as AuctionEventAuctionResult, Sv as ValidatorCommission, T as ChainGrpcDistributionApi, T_ as GrpcChainDerivativePosition, Tg as CancelDerivativeOrderAuthz, Th as AuctionLastAuctionResult, Tv as CodeInfoResponse, U as ChainGrpcGovApi, U_ as GrpcSpotMarket, Ug as MinModuleParams, Uh as GrpcPermissionRoleActors, Uv as GrpcGovernanceTallyParams, V as ChainGrpcEvmApi, V_ as GrpcOrderTypeMap, Vg as OracleTypeMap, Vh as GrpcPermissionPolicyStatusManagerCapability, Vv as GovModuleStateParams, W_ as GrpcSpotMarketOrder, Wg as BankModuleParams, Wh as GrpcPermissionRoleIDs, Wv as GrpcGovernanceVotingParams, X_ as OrderType, Xg as Account, Xh as PermissionAddressRoles, Xv as ProposalDeposit, Y_ as IsOptedOutOfRewards, Yg as TotalSupply, Yh as PermissionActorRoles, Yv as Proposal, Z_ as OrderTypeMap, Zg as AuthBaseAccount, Zh as PermissionAddressVoucher, Zv as ProposalStatus, _ as ChainGrpcEvmTransformer, __ as ExchangeModuleParams, _g as Params, _h as AccountsResponse, _v as Pool, a as ChainGrpcExchangeTransformer, a_ as EvmParams, ag as PermissionRoleIDs, ah as FactoryDenomWithMetadata, av as GrpcDelegationResponse, b as ChainRestWasmApi, b_ as FeeDiscountSchedule, bg as PeggyModuleParams, bh as AuctionBid, bv as UnBondingDelegation, c as ChainGrpcCommonTransformer, c_ as GrpcEvmChainConfig, cg as PermissionsModuleParams, ch as DistributionModuleParams, cv as GrpcReDelegationEntryResponse, d as ChainGrpcPeggyTransformer, d_ as CampaignRewardPool, dg as GrpcTxFeesEipBaseFee, dh as GrpcDistributionParams, dv as GrpcUnbondingDelegation, e_ as PubKey, eg as PermissionParams, eh as ChainModule, ev as TradingRewardCampaignBoostInfo, ey as Vote, f as ChainGrpcAuthZTransformer, f_ as ChainDenomDecimal, fg as GrpcTxFeesParams, fh as ValidatorRewards, fv as GrpcUnbondingDelegationEntry, g as ChainGrpcAuthTransformer, g_ as DepositProposalParams, gg as GrpcTokenPair, gh as AccountResponse, gv as GrpcValidatorDescription, h as ChainGrpcBankTransformer, h_ as ChainPosition, hg as GrpcParams, hh as DenomOwnersResponse, hv as GrpcValidatorCommissionRates, i as ChainGrpcPermissionsTransformer, i_ as EvmLog, ig as PermissionRoleActors, ih as AuthorityMetadata, iv as GrpcDelegation, j as ChainGrpcTxFeesApi, j_ as GrpcDenomMinNotional, jg as GenericAuthorization, jh as GrpcAuctionBid, jv as ContractInfo, k as ChainGrpcStakingApi, k_ as GrpcChainSpotMarket, kg as CreateSpotLimitOrderAuthz, kh as AuctionModuleStateResponse, kv as ContractCodeHistoryOperationType, l as ChainGrpcTxFeesTransformer, l_ as GrpcEvmLog, lg as GrpcOracleParams, lh as GrpcDecCoin, lv as GrpcReDelegationResponse, m as ChainGrpcMintTransformer, m_ as ChainDerivativePosition, mg as TxFeesModuleStateParams, mh as DenomBalance, mv as GrpcValidatorCommission, n as ChainGrpcTokenFactoryTransformer, n_ as EvmBlobScheduleConfig, ng as PermissionPolicyStatus, nh as BlockLatestRestResponse, nv as BondStatus, ny as VoteOptionMap, o as ChainGrpcStakingTransformer, o_ as GrpcEvmBlobConfig, og as PermissionRoleManager, oh as TokenFactoryModuleParams, ov as GrpcPool, p as ChainGrpcWasmTransformer, p_ as ChainDenomMinNotional, pg as TxFeesEipBaseFee, ph as BalancesResponse, pv as GrpcValidator, q_ as GrpcTradingRewardCampaignBoostInfo, qg as Metadata, qh as GrpcPermissionsParams, qv as GrpcTallyResult, r as ChainGrpcDistributionTransformer, r_ as EvmChainConfig, rg as PermissionRole, rh as NodeInfoRestResponse, rv as Delegation, ry as WeightedVoteOption, s as ChainGrpcAuctionTransformer, s_ as GrpcEvmBlobScheduleConfig, sg as PermissionVoucher, sh as TokenFactoryModuleState, sv as GrpcReDelegation, t as ChainGrpcInsuranceFundTransformer, t_ as EvmBlobConfig, tg as PermissionPolicyManagerCapability, th as RestApiResponse, tv as TradingRewardCampaignInfo, ty as VoteOption, u as ChainGrpcErc20Transformer, u_ as GrpcEvmParams, ug as OracleModuleParams, uh as GrpcDelegationDelegatorReward, uv as GrpcStakingParams, v as ChainGrpcGovTransformer, v_ as ExchangeParams, vg as TokenPair, vh as BaseAccountRestResponse, vv as ReDelegation, w as ChainGrpcTokenFactoryApi, w_ as GrpcChainDerivativeMarket, wg as BatchCreateSpotLimitOrdersAuthz, wh as AuctionEventBid, wv as AbsoluteTxPosition, x as ChainRestAuthApi, x_ as FeeDiscountTierInfo, xg as BatchCancelDerivativeOrdersAuthz, xh as AuctionCurrentBasket, xv as Validator, y as ChainRestTendermintApi, y_ as FeeDiscountAccountInfo, yg as GrpcPeggyParams, yh as CosmosAccountRestResponse, yv as StakingModuleParams, z as ChainGrpcBankApi, z_ as GrpcOrderInfo, zg as InsuranceFund, zh as GrpcPermissionNamespace, zv as TokenInfo } from "../index-U2hwLy0U.js";
|
|
4
|
+
import "../BaseGrpcConsumer-BptQBj1l.js";
|
|
5
|
+
import "../index-BSAdUyzU.js";
|
|
6
|
+
import "../index-sT17wTBx.js";
|
|
7
|
+
import "../index-Cngh1mkP.js";
|
|
8
|
+
import "../index-Db2hVJPi.js";
|
|
9
|
+
import "../index-BYx0x8ba.js";
|
|
10
10
|
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,10 +1,11 @@
|
|
|
1
1
|
import { l as ChainGrpcCommonTransformer } from "../utils-XYJbh13N.js";
|
|
2
2
|
import "../defineProperty-HO0rQlTT.js";
|
|
3
3
|
import "../grpc-BJmNoike.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-
|
|
5
|
-
import "../
|
|
6
|
-
import
|
|
7
|
-
import { n as
|
|
8
|
-
import "../
|
|
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-DQdsD1Kf.js";
|
|
5
|
+
import "../stream-76M0PY9K.js";
|
|
6
|
+
import "../BaseGrpcConsumer-1Fv9J-Lp.js";
|
|
7
|
+
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-CrzcdwXB.js";
|
|
8
|
+
import { n as ChainGrpcExchangeTransformer, t as ChainGrpcExchangeApi } from "../ChainGrpcExchangeApi-BApB4VXN.js";
|
|
9
|
+
import "../BaseRestConsumer-Ca8S09Yp.js";
|
|
9
10
|
|
|
10
11
|
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 };
|