@injectivelabs/sdk-ts 1.19.4 → 1.19.6
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/{DirectEthSecp256k1Wallet-B47wfyu3.cjs → DirectEthSecp256k1Wallet-BWF4bTRg.cjs} +1 -1
- package/dist/cjs/{ExecArgNeptuneWithdraw-DJWhAi2w.cjs → ExecArgNeptuneWithdraw-DNeBN5p6.cjs} +1 -1
- package/dist/cjs/{MsgBase-B3DOk7mn.cjs → MsgBase-CAiwUyBz.cjs} +53 -1
- package/dist/cjs/{MsgSetDenomMetadata-CDhuDaSe.cjs → MsgSetDenomMetadata-LBaVHPTZ.cjs} +3145 -565
- package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-BiIMpmJw.cjs → QueryTradingStrategyContractTotalStrategies-HVnqU1yl.cjs} +1 -1
- package/dist/cjs/{StreamManagerV2-DKU1HxNh.cjs → StreamManagerV2-XG-0fX_C.cjs} +4 -1
- package/dist/cjs/{accounts-CCczSIa8.cjs → accounts-Rcz0OUDn.cjs} +1 -1
- package/dist/cjs/client/chain.d.cts +1 -1
- package/dist/cjs/client/indexer.cjs +1 -1
- package/dist/cjs/client/indexer.d.cts +1 -1
- package/dist/cjs/client/wasm.cjs +3 -3
- package/dist/cjs/core/accounts.cjs +2 -2
- package/dist/cjs/core/accounts.d.cts +1 -1
- package/dist/cjs/core/modules.cjs +31 -5
- package/dist/cjs/core/modules.d.cts +2 -2
- package/dist/cjs/core/tx.cjs +4 -3
- package/dist/cjs/core/tx.d.cts +2 -2
- package/dist/cjs/cosmjs.cjs +4 -4
- package/dist/cjs/exports.cjs +4 -4
- package/dist/cjs/{index-VKrX1Enj.d.cts → index-DYNILG8y.d.cts} +4516 -1407
- package/dist/cjs/index.cjs +34 -7
- package/dist/cjs/index.d.cts +2 -2
- package/dist/cjs/{tx-D7F4nbJj.cjs → tx-BLPNQat_.cjs} +1 -1
- package/dist/cjs/utils.d.cts +1 -1
- package/dist/esm/{DirectEthSecp256k1Wallet-bZZ4bjk5.js → DirectEthSecp256k1Wallet-6nqAaBW9.js} +1 -1
- package/dist/esm/{ExecArgNeptuneWithdraw-DRCUYj-r.js → ExecArgNeptuneWithdraw-mI_hNm4-.js} +1 -1
- package/dist/esm/{MsgBase-De14KlFJ.js → MsgBase-CpH99FqH.js} +48 -2
- package/dist/esm/{MsgSetDenomMetadata-_b5Klju5.js → MsgSetDenomMetadata-CWhjd9Yp.js} +2871 -449
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-BhAe-C30.js → QueryTradingStrategyContractTotalStrategies-D6IBqS_q.js} +1 -1
- package/dist/esm/{StreamManagerV2-DrJDfnKY.js → StreamManagerV2-DSRSyzg6.js} +4 -1
- package/dist/esm/{accounts-B_eo5rUB.js → accounts-C3KF9pTp.js} +1 -1
- package/dist/esm/client/chain.d.ts +1 -1
- package/dist/esm/client/indexer.d.ts +1 -1
- package/dist/esm/client/indexer.js +1 -1
- package/dist/esm/client/wasm.js +3 -3
- package/dist/esm/core/accounts.d.ts +1 -1
- package/dist/esm/core/accounts.js +2 -2
- package/dist/esm/core/modules.d.ts +2 -2
- package/dist/esm/core/modules.js +6 -6
- package/dist/esm/core/tx.d.ts +2 -2
- package/dist/esm/core/tx.js +4 -4
- package/dist/esm/cosmjs.js +4 -4
- package/dist/esm/exports.js +4 -4
- package/dist/esm/{index-DFTOkhWv.d.ts → index-DvOw3RHi.d.ts} +4516 -1407
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +8 -8
- package/dist/esm/{tx-Cb1fEFK8.js → tx-QGNUs1B0.js} +1 -1
- package/dist/esm/utils.d.ts +1 -1
- package/package.json +5 -5
package/dist/cjs/{DirectEthSecp256k1Wallet-B47wfyu3.cjs → DirectEthSecp256k1Wallet-BWF4bTRg.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
2
|
const require_utils = require('./utils-Bfjw459k.cjs');
|
|
3
3
|
const require_defineProperty = require('./defineProperty-DAtJs5JQ.cjs');
|
|
4
|
-
const require_accounts = require('./accounts-
|
|
4
|
+
const require_accounts = require('./accounts-Rcz0OUDn.cjs');
|
|
5
5
|
let __injectivelabs_core_proto_ts_v2_generated_cosmos_base_v1beta1_coin_pb = require("@injectivelabs/core-proto-ts-v2/generated/cosmos/base/v1beta1/coin_pb");
|
|
6
6
|
__injectivelabs_core_proto_ts_v2_generated_cosmos_base_v1beta1_coin_pb = require_chunk.__toESM(__injectivelabs_core_proto_ts_v2_generated_cosmos_base_v1beta1_coin_pb);
|
|
7
7
|
let __injectivelabs_core_proto_ts_v2_generated_injective_types_v1beta1_account_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/types/v1beta1/account_pb");
|
package/dist/cjs/{ExecArgNeptuneWithdraw-DJWhAi2w.cjs → ExecArgNeptuneWithdraw-DNeBN5p6.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
2
|
const require_utils = require('./utils-Bfjw459k.cjs');
|
|
3
3
|
const require_defineProperty = require('./defineProperty-DAtJs5JQ.cjs');
|
|
4
|
-
const require_MsgBase = require('./MsgBase-
|
|
4
|
+
const require_MsgBase = require('./MsgBase-CAiwUyBz.cjs');
|
|
5
5
|
let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
|
|
6
6
|
let __injectivelabs_core_proto_ts_v2_generated_injective_wasmx_v1_tx_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/wasmx/v1/tx_pb");
|
|
7
7
|
__injectivelabs_core_proto_ts_v2_generated_injective_wasmx_v1_tx_pb = require_chunk.__toESM(__injectivelabs_core_proto_ts_v2_generated_injective_wasmx_v1_tx_pb);
|
|
@@ -26,7 +26,8 @@ const objectKeysToEip712Types = ({ object, messageType, primaryType = "MsgValue"
|
|
|
26
26
|
"option",
|
|
27
27
|
"proposal_id",
|
|
28
28
|
"creation_height",
|
|
29
|
-
"contract_hook_max_gas"
|
|
29
|
+
"contract_hook_max_gas",
|
|
30
|
+
"expiration_block"
|
|
30
31
|
];
|
|
31
32
|
const stringFieldsWithNumberValue = [
|
|
32
33
|
"timeout_timestamp",
|
|
@@ -128,6 +129,24 @@ const objectKeysToEip712Types = ({ object, messageType, primaryType = "MsgValue"
|
|
|
128
129
|
return output;
|
|
129
130
|
};
|
|
130
131
|
/**
|
|
132
|
+
* The chain always includes expiration_block in order type schemas
|
|
133
|
+
* even when the EIP712 v1 message value omits zero-valued fields.
|
|
134
|
+
* Patch the resolved type map to add it to any of the given keys
|
|
135
|
+
* that are missing it.
|
|
136
|
+
*/
|
|
137
|
+
const patchOrderTypesWithExpirationBlock = (result, orderTypeKeys) => {
|
|
138
|
+
const expirationBlockField = {
|
|
139
|
+
name: "expiration_block",
|
|
140
|
+
type: "int64"
|
|
141
|
+
};
|
|
142
|
+
for (const key of orderTypeKeys) {
|
|
143
|
+
if (!result.has(key)) continue;
|
|
144
|
+
const fields = result.get(key);
|
|
145
|
+
if (!fields.some((f) => f.name === "expiration_block")) result.set(key, [...fields, expirationBlockField]);
|
|
146
|
+
}
|
|
147
|
+
return result;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
131
150
|
* JavaScript doesn't know the exact number types that
|
|
132
151
|
* we represent these fields on chain so we have to map
|
|
133
152
|
* them in their chain representation from the number value
|
|
@@ -176,6 +195,7 @@ const numberTypeToReflectionNumberType = (property, messageType) => {
|
|
|
176
195
|
case "round": return "uint64";
|
|
177
196
|
case "expiry": return "int64";
|
|
178
197
|
case "creation_height": return "int64";
|
|
198
|
+
case "expiration_block": return "int64";
|
|
179
199
|
case "option": return "int32";
|
|
180
200
|
case "proposal_id": return "uint64";
|
|
181
201
|
default: return "uint64";
|
|
@@ -282,6 +302,32 @@ const protoTypeToAminoType = (type) => {
|
|
|
282
302
|
case "injective.exchange.v1beta1.BatchCancelDerivativeOrdersAuthz": return "exchange/BatchCancelDerivativeOrdersAuthz";
|
|
283
303
|
case "injective.exchange.v1beta1.BatchUpdateOrdersAuthz": return "exchange/BatchUpdateOrdersAuthz";
|
|
284
304
|
case "injective.exchange.v2.MsgSetDelegationTransferReceivers": return "exchange/MsgSetDelegationTransferReceivers";
|
|
305
|
+
case "injective.exchange.v2.MsgDeposit": return "exchange/MsgDeposit";
|
|
306
|
+
case "injective.exchange.v2.MsgWithdraw": return "exchange/MsgWithdraw";
|
|
307
|
+
case "injective.exchange.v2.MsgSignData": return "exchange/MsgSignData";
|
|
308
|
+
case "injective.exchange.v2.MsgRewardsOptOut": return "exchange/MsgRewardsOptOut";
|
|
309
|
+
case "injective.exchange.v2.MsgCancelSpotOrder": return "exchange/MsgCancelSpotOrder";
|
|
310
|
+
case "injective.exchange.v2.MsgExternalTransfer": return "exchange/MsgExternalTransfer";
|
|
311
|
+
case "injective.exchange.v2.MsgBatchUpdateOrders": return "exchange/MsgBatchUpdateOrders";
|
|
312
|
+
case "injective.exchange.v2.MsgLiquidatePosition": return "exchange/MsgLiquidatePosition";
|
|
313
|
+
case "injective.exchange.v2.MsgReclaimLockedFunds": return "exchange/MsgReclaimLockedFunds";
|
|
314
|
+
case "injective.exchange.v2.MsgAuthorizeStakeGrants": return "exchange/MsgAuthorizeStakeGrants";
|
|
315
|
+
case "injective.exchange.v2.MsgCancelDerivativeOrder": return "exchange/MsgCancelDerivativeOrder";
|
|
316
|
+
case "injective.exchange.v2.MsgBatchCancelSpotOrders": return "exchange/MsgBatchCancelSpotOrders";
|
|
317
|
+
case "injective.exchange.v2.MsgCreateSpotLimitOrder": return "exchange/MsgCreateSpotLimitOrder";
|
|
318
|
+
case "injective.exchange.v2.MsgCreateSpotMarketOrder": return "exchange/MsgCreateSpotMarketOrder";
|
|
319
|
+
case "injective.exchange.v2.MsgIncreasePositionMargin": return "exchange/MsgIncreasePositionMargin";
|
|
320
|
+
case "injective.exchange.v2.MsgDecreasePositionMargin": return "exchange/MsgDecreasePositionMargin";
|
|
321
|
+
case "injective.exchange.v2.MsgInstantSpotMarketLaunch": return "exchange/MsgInstantSpotMarketLaunch";
|
|
322
|
+
case "injective.exchange.v2.MsgCancelBinaryOptionsOrder": return "exchange/MsgCancelBinaryOptionsOrder";
|
|
323
|
+
case "injective.exchange.v2.MsgCreateDerivativeLimitOrder": return "exchange/MsgCreateDerivativeLimitOrder";
|
|
324
|
+
case "injective.exchange.v2.MsgBatchCancelDerivativeOrders": return "exchange/MsgBatchCancelDerivativeOrders";
|
|
325
|
+
case "injective.exchange.v2.MsgCreateDerivativeMarketOrder": return "exchange/MsgCreateDerivativeMarketOrder";
|
|
326
|
+
case "injective.exchange.v2.MsgCreateBinaryOptionsLimitOrder": return "exchange/MsgCreateBinaryOptionsLimitOrder";
|
|
327
|
+
case "injective.exchange.v2.MsgAdminUpdateBinaryOptionsMarket": return "exchange/MsgAdminUpdateBinaryOptionsMarket";
|
|
328
|
+
case "injective.exchange.v2.MsgBatchCancelBinaryOptionsOrders": return "exchange/MsgBatchCancelBinaryOptionsOrders";
|
|
329
|
+
case "injective.exchange.v2.MsgCreateBinaryOptionsMarketOrder": return "exchange/MsgCreateBinaryOptionsMarketOrder";
|
|
330
|
+
case "injective.exchange.v2.MsgInstantBinaryOptionsMarketLaunch": return "exchange/MsgInstantBinaryOptionsMarketLaunch";
|
|
285
331
|
case "injective.auction.v1beta1.MsgBid": return "auction/MsgBid";
|
|
286
332
|
case "injective.insurance.v1beta1.MsgCreateInsuranceFund": return "insurance/MsgCreateInsuranceFund";
|
|
287
333
|
case "injective.insurance.v1beta1.MsgUnderwrite": return "insurance/MsgUnderwrite";
|
|
@@ -427,6 +473,12 @@ Object.defineProperty(exports, 'objectKeysToEip712Types', {
|
|
|
427
473
|
return objectKeysToEip712Types;
|
|
428
474
|
}
|
|
429
475
|
});
|
|
476
|
+
Object.defineProperty(exports, 'patchOrderTypesWithExpirationBlock', {
|
|
477
|
+
enumerable: true,
|
|
478
|
+
get: function () {
|
|
479
|
+
return patchOrderTypesWithExpirationBlock;
|
|
480
|
+
}
|
|
481
|
+
});
|
|
430
482
|
Object.defineProperty(exports, 'prepareSignBytes', {
|
|
431
483
|
enumerable: true,
|
|
432
484
|
get: function () {
|