injectivejs 1.9.13 → 1.9.15
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/binary.d.ts +1 -1
- package/binary.js +1 -1
- package/cosmos/authz/v1beta1/tx.rpc.func.d.ts +3 -3
- package/cosmos/bank/v1beta1/tx.rpc.func.d.ts +4 -4
- package/cosmos/base/v1beta1/coin.js +7 -6
- package/cosmos/distribution/v1beta1/distribution.js +16 -15
- package/cosmos/distribution/v1beta1/tx.rpc.func.d.ts +7 -7
- package/cosmos/feegrant/v1beta1/tx.rpc.func.d.ts +3 -3
- package/cosmos/gov/v1/tx.rpc.func.d.ts +7 -7
- package/cosmos/gov/v1beta1/gov.js +4 -3
- package/cosmos/gov/v1beta1/tx.rpc.func.d.ts +4 -4
- package/cosmos/group/v1/tx.rpc.func.d.ts +14 -14
- package/cosmos/staking/v1beta1/staking.js +22 -21
- package/cosmos/staking/v1beta1/tx.js +4 -3
- package/cosmos/staking/v1beta1/tx.rpc.func.d.ts +7 -7
- package/cosmos/vesting/v1beta1/tx.rpc.func.d.ts +3 -3
- package/cosmwasm/wasm/v1/tx.rpc.func.d.ts +17 -17
- package/esm/binary.js +1 -1
- package/esm/cosmos/base/v1beta1/coin.js +7 -6
- package/esm/cosmos/distribution/v1beta1/distribution.js +16 -15
- package/esm/cosmos/gov/v1beta1/gov.js +4 -3
- package/esm/cosmos/staking/v1beta1/staking.js +22 -21
- package/esm/cosmos/staking/v1beta1/tx.js +4 -3
- package/esm/extern.js +1 -1
- package/esm/helper-func-types.js +1 -1
- package/esm/helpers.js +1 -1
- package/esm/injective/auction/v1beta1/auction.js +4 -3
- package/esm/injective/exchange/v1beta1/events.js +19 -18
- package/esm/injective/exchange/v1beta1/exchange.js +274 -273
- package/esm/injective/exchange/v1beta1/genesis.js +7 -6
- package/esm/injective/exchange/v1beta1/proposal.js +148 -147
- package/esm/injective/exchange/v1beta1/query.js +133 -132
- package/esm/injective/exchange/v1beta1/tx.js +121 -120
- package/esm/injective/ocr/v1beta1/ocr.js +25 -24
- package/esm/injective/oracle/v1beta1/events.js +19 -18
- package/esm/injective/oracle/v1beta1/oracle.js +46 -45
- package/esm/injective/oracle/v1beta1/query.js +19 -18
- package/esm/injective/oracle/v1beta1/tx.js +7 -6
- package/esm/injective/stream/v1beta1/query.js +31 -30
- package/esm/registry.js +1 -1
- package/esm/types.js +1 -1
- package/esm/utf8.js +1 -1
- package/esm/varint.js +1 -1
- package/extern.d.ts +1 -1
- package/extern.js +1 -1
- package/helper-func-types.d.ts +3 -66
- package/helper-func-types.js +1 -1
- package/helpers.d.ts +1 -1
- package/helpers.js +1 -1
- package/ibc/applications/transfer/v1/tx.rpc.func.d.ts +2 -2
- package/ibc/core/channel/v1/tx.rpc.func.d.ts +19 -19
- package/ibc/core/client/v1/tx.rpc.func.d.ts +7 -7
- package/ibc/core/connection/v1/tx.rpc.func.d.ts +5 -5
- package/injective/auction/v1beta1/auction.js +4 -3
- package/injective/auction/v1beta1/tx.rpc.func.d.ts +2 -2
- package/injective/exchange/v1beta1/events.js +19 -18
- package/injective/exchange/v1beta1/exchange.js +274 -273
- package/injective/exchange/v1beta1/genesis.js +7 -6
- package/injective/exchange/v1beta1/proposal.js +148 -147
- package/injective/exchange/v1beta1/query.js +133 -132
- package/injective/exchange/v1beta1/tx.js +121 -120
- package/injective/exchange/v1beta1/tx.rpc.func.d.ts +35 -35
- package/injective/insurance/v1beta1/tx.rpc.func.d.ts +4 -4
- package/injective/ocr/v1beta1/ocr.js +25 -24
- package/injective/ocr/v1beta1/tx.rpc.func.d.ts +9 -9
- package/injective/oracle/v1beta1/events.js +19 -18
- package/injective/oracle/v1beta1/oracle.js +46 -45
- package/injective/oracle/v1beta1/query.js +19 -18
- package/injective/oracle/v1beta1/tx.js +7 -6
- package/injective/oracle/v1beta1/tx.rpc.func.d.ts +8 -8
- package/injective/peggy/v1/msgs.rpc.func.d.ts +14 -14
- package/injective/permissions/v1beta1/tx.rpc.func.d.ts +7 -7
- package/injective/stream/v1beta1/query.js +31 -30
- package/injective/tokenfactory/v1beta1/tx.rpc.func.d.ts +6 -6
- package/injective/wasmx/v1/tx.rpc.func.d.ts +6 -6
- package/package.json +8 -8
- package/registry.d.ts +1 -1
- package/registry.js +1 -1
- package/types.d.ts +1 -1
- package/types.js +1 -1
- package/utf8.d.ts +1 -1
- package/utf8.js +1 -1
- package/varint.d.ts +1 -1
- package/varint.js +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SigningClientResolver } from "../../../../helper-func-types";
|
|
2
2
|
import { MsgConnectionOpenInit, MsgConnectionOpenTry, MsgConnectionOpenAck, MsgConnectionOpenConfirm, MsgUpdateParams } from "./tx";
|
|
3
|
-
export declare const createConnectionOpenInit: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgConnectionOpenInit | MsgConnectionOpenInit[], fee: import("../../../../
|
|
4
|
-
export declare const createConnectionOpenTry: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgConnectionOpenTry | MsgConnectionOpenTry[], fee: import("../../../../
|
|
5
|
-
export declare const createConnectionOpenAck: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgConnectionOpenAck | MsgConnectionOpenAck[], fee: import("../../../../
|
|
6
|
-
export declare const createConnectionOpenConfirm: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgConnectionOpenConfirm | MsgConnectionOpenConfirm[], fee: import("../../../../
|
|
7
|
-
export declare const createUpdateConnectionParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../../
|
|
3
|
+
export declare const createConnectionOpenInit: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgConnectionOpenInit | MsgConnectionOpenInit[], fee: import("../../../../types").StdFee | "auto", memo: string) => Promise<import("../../../../types").DeliverTxResponse>;
|
|
4
|
+
export declare const createConnectionOpenTry: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgConnectionOpenTry | MsgConnectionOpenTry[], fee: import("../../../../types").StdFee | "auto", memo: string) => Promise<import("../../../../types").DeliverTxResponse>;
|
|
5
|
+
export declare const createConnectionOpenAck: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgConnectionOpenAck | MsgConnectionOpenAck[], fee: import("../../../../types").StdFee | "auto", memo: string) => Promise<import("../../../../types").DeliverTxResponse>;
|
|
6
|
+
export declare const createConnectionOpenConfirm: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgConnectionOpenConfirm | MsgConnectionOpenConfirm[], fee: import("../../../../types").StdFee | "auto", memo: string) => Promise<import("../../../../types").DeliverTxResponse>;
|
|
7
|
+
export declare const createUpdateConnectionParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../../types").StdFee | "auto", memo: string) => Promise<import("../../../../types").DeliverTxResponse>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EventAuctionStart = exports.EventAuctionResult = exports.EventBid = exports.LastAuctionResult = exports.Bid = exports.Params = void 0;
|
|
4
4
|
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
5
5
|
const binary_1 = require("../../../binary");
|
|
6
|
+
const math_1 = require("@interchainjs/math");
|
|
6
7
|
function createBaseParams() {
|
|
7
8
|
return {
|
|
8
9
|
auctionPeriod: BigInt(0),
|
|
@@ -23,7 +24,7 @@ exports.Params = {
|
|
|
23
24
|
writer.uint32(8).int64(message.auctionPeriod);
|
|
24
25
|
}
|
|
25
26
|
if (message.minNextBidIncrementRate !== "") {
|
|
26
|
-
writer.uint32(18).string(message.minNextBidIncrementRate);
|
|
27
|
+
writer.uint32(18).string(math_1.Decimal.fromUserInput(message.minNextBidIncrementRate, 18).atomics);
|
|
27
28
|
}
|
|
28
29
|
return writer;
|
|
29
30
|
},
|
|
@@ -38,7 +39,7 @@ exports.Params = {
|
|
|
38
39
|
message.auctionPeriod = reader.int64();
|
|
39
40
|
break;
|
|
40
41
|
case 2:
|
|
41
|
-
message.minNextBidIncrementRate = reader.string();
|
|
42
|
+
message.minNextBidIncrementRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
42
43
|
break;
|
|
43
44
|
default:
|
|
44
45
|
reader.skipType(tag & 7);
|
|
@@ -66,7 +67,7 @@ exports.Params = {
|
|
|
66
67
|
toAmino(message) {
|
|
67
68
|
const obj = {};
|
|
68
69
|
obj.auction_period = message.auctionPeriod !== BigInt(0) ? message.auctionPeriod?.toString() : undefined;
|
|
69
|
-
obj.min_next_bid_increment_rate = message.minNextBidIncrementRate === "" ? undefined : message.minNextBidIncrementRate;
|
|
70
|
+
obj.min_next_bid_increment_rate = message.minNextBidIncrementRate === "" ? undefined : math_1.Decimal.fromUserInput(message.minNextBidIncrementRate, 18).atomics;
|
|
70
71
|
return obj;
|
|
71
72
|
},
|
|
72
73
|
fromAminoMsg(object) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SigningClientResolver } from "../../../helper-func-types";
|
|
2
2
|
import { MsgBid, MsgUpdateParams } from "./tx";
|
|
3
|
-
export declare const createBid: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgBid | MsgBid[], fee: import("../../../
|
|
4
|
-
export declare const createUpdateParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../
|
|
3
|
+
export declare const createBid: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgBid | MsgBid[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
4
|
+
export declare const createUpdateParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
@@ -5,6 +5,7 @@ const exchange_1 = require("./exchange");
|
|
|
5
5
|
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
6
6
|
const helpers_1 = require("../../../helpers");
|
|
7
7
|
const binary_1 = require("../../../binary");
|
|
8
|
+
const math_1 = require("@interchainjs/math");
|
|
8
9
|
function createBaseEventBatchSpotExecution() {
|
|
9
10
|
return {
|
|
10
11
|
marketId: "",
|
|
@@ -145,7 +146,7 @@ exports.EventBatchDerivativeExecution = {
|
|
|
145
146
|
writer.uint32(24).bool(message.isLiquidation);
|
|
146
147
|
}
|
|
147
148
|
if (message.cumulativeFunding !== undefined) {
|
|
148
|
-
writer.uint32(34).string(message.cumulativeFunding);
|
|
149
|
+
writer.uint32(34).string(math_1.Decimal.fromUserInput(message.cumulativeFunding, 18).atomics);
|
|
149
150
|
}
|
|
150
151
|
if (message.executionType !== 0) {
|
|
151
152
|
writer.uint32(40).int32(message.executionType);
|
|
@@ -172,7 +173,7 @@ exports.EventBatchDerivativeExecution = {
|
|
|
172
173
|
message.isLiquidation = reader.bool();
|
|
173
174
|
break;
|
|
174
175
|
case 4:
|
|
175
|
-
message.cumulativeFunding = reader.string();
|
|
176
|
+
message.cumulativeFunding = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
176
177
|
break;
|
|
177
178
|
case 5:
|
|
178
179
|
message.executionType = reader.int32();
|
|
@@ -222,7 +223,7 @@ exports.EventBatchDerivativeExecution = {
|
|
|
222
223
|
obj.market_id = message.marketId === "" ? undefined : message.marketId;
|
|
223
224
|
obj.is_buy = message.isBuy === false ? undefined : message.isBuy;
|
|
224
225
|
obj.is_liquidation = message.isLiquidation === false ? undefined : message.isLiquidation;
|
|
225
|
-
obj.cumulative_funding = message.cumulativeFunding === null ? undefined : message.cumulativeFunding;
|
|
226
|
+
obj.cumulative_funding = message.cumulativeFunding === null ? undefined : math_1.Decimal.fromUserInput(message.cumulativeFunding, 18).atomics;
|
|
226
227
|
obj.executionType = message.executionType === 0 ? undefined : message.executionType;
|
|
227
228
|
if (message.trades) {
|
|
228
229
|
obj.trades = message.trades.map(e => e ? exchange_1.DerivativeTradeLog.toAmino(e) : undefined);
|
|
@@ -275,10 +276,10 @@ exports.EventLostFundsFromLiquidation = {
|
|
|
275
276
|
writer.uint32(18).bytes(message.subaccountId);
|
|
276
277
|
}
|
|
277
278
|
if (message.lostFundsFromAvailableDuringPayout !== "") {
|
|
278
|
-
writer.uint32(26).string(message.lostFundsFromAvailableDuringPayout);
|
|
279
|
+
writer.uint32(26).string(math_1.Decimal.fromUserInput(message.lostFundsFromAvailableDuringPayout, 18).atomics);
|
|
279
280
|
}
|
|
280
281
|
if (message.lostFundsFromOrderCancels !== "") {
|
|
281
|
-
writer.uint32(34).string(message.lostFundsFromOrderCancels);
|
|
282
|
+
writer.uint32(34).string(math_1.Decimal.fromUserInput(message.lostFundsFromOrderCancels, 18).atomics);
|
|
282
283
|
}
|
|
283
284
|
return writer;
|
|
284
285
|
},
|
|
@@ -296,10 +297,10 @@ exports.EventLostFundsFromLiquidation = {
|
|
|
296
297
|
message.subaccountId = reader.bytes();
|
|
297
298
|
break;
|
|
298
299
|
case 3:
|
|
299
|
-
message.lostFundsFromAvailableDuringPayout = reader.string();
|
|
300
|
+
message.lostFundsFromAvailableDuringPayout = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
300
301
|
break;
|
|
301
302
|
case 4:
|
|
302
|
-
message.lostFundsFromOrderCancels = reader.string();
|
|
303
|
+
message.lostFundsFromOrderCancels = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
303
304
|
break;
|
|
304
305
|
default:
|
|
305
306
|
reader.skipType(tag & 7);
|
|
@@ -336,8 +337,8 @@ exports.EventLostFundsFromLiquidation = {
|
|
|
336
337
|
const obj = {};
|
|
337
338
|
obj.market_id = message.marketId === "" ? undefined : message.marketId;
|
|
338
339
|
obj.subaccount_id = message.subaccountId ? (0, helpers_1.base64FromBytes)(message.subaccountId) : undefined;
|
|
339
|
-
obj.lost_funds_from_available_during_payout = message.lostFundsFromAvailableDuringPayout === "" ? undefined : message.lostFundsFromAvailableDuringPayout;
|
|
340
|
-
obj.lost_funds_from_order_cancels = message.lostFundsFromOrderCancels === "" ? undefined : message.lostFundsFromOrderCancels;
|
|
340
|
+
obj.lost_funds_from_available_during_payout = message.lostFundsFromAvailableDuringPayout === "" ? undefined : math_1.Decimal.fromUserInput(message.lostFundsFromAvailableDuringPayout, 18).atomics;
|
|
341
|
+
obj.lost_funds_from_order_cancels = message.lostFundsFromOrderCancels === "" ? undefined : math_1.Decimal.fromUserInput(message.lostFundsFromOrderCancels, 18).atomics;
|
|
341
342
|
return obj;
|
|
342
343
|
},
|
|
343
344
|
fromAminoMsg(object) {
|
|
@@ -1381,10 +1382,10 @@ exports.EventPerpetualMarketFundingUpdate = {
|
|
|
1381
1382
|
writer.uint32(24).bool(message.isHourlyFunding);
|
|
1382
1383
|
}
|
|
1383
1384
|
if (message.fundingRate !== undefined) {
|
|
1384
|
-
writer.uint32(34).string(message.fundingRate);
|
|
1385
|
+
writer.uint32(34).string(math_1.Decimal.fromUserInput(message.fundingRate, 18).atomics);
|
|
1385
1386
|
}
|
|
1386
1387
|
if (message.markPrice !== undefined) {
|
|
1387
|
-
writer.uint32(42).string(message.markPrice);
|
|
1388
|
+
writer.uint32(42).string(math_1.Decimal.fromUserInput(message.markPrice, 18).atomics);
|
|
1388
1389
|
}
|
|
1389
1390
|
return writer;
|
|
1390
1391
|
},
|
|
@@ -1405,10 +1406,10 @@ exports.EventPerpetualMarketFundingUpdate = {
|
|
|
1405
1406
|
message.isHourlyFunding = reader.bool();
|
|
1406
1407
|
break;
|
|
1407
1408
|
case 4:
|
|
1408
|
-
message.fundingRate = reader.string();
|
|
1409
|
+
message.fundingRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1409
1410
|
break;
|
|
1410
1411
|
case 5:
|
|
1411
|
-
message.markPrice = reader.string();
|
|
1412
|
+
message.markPrice = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1412
1413
|
break;
|
|
1413
1414
|
default:
|
|
1414
1415
|
reader.skipType(tag & 7);
|
|
@@ -1450,8 +1451,8 @@ exports.EventPerpetualMarketFundingUpdate = {
|
|
|
1450
1451
|
obj.market_id = message.marketId === "" ? undefined : message.marketId;
|
|
1451
1452
|
obj.funding = message.funding ? exchange_1.PerpetualMarketFunding.toAmino(message.funding) : undefined;
|
|
1452
1453
|
obj.is_hourly_funding = message.isHourlyFunding === false ? undefined : message.isHourlyFunding;
|
|
1453
|
-
obj.funding_rate = message.fundingRate === null ? undefined : message.fundingRate;
|
|
1454
|
-
obj.mark_price = message.markPrice === null ? undefined : message.markPrice;
|
|
1454
|
+
obj.funding_rate = message.fundingRate === null ? undefined : math_1.Decimal.fromUserInput(message.fundingRate, 18).atomics;
|
|
1455
|
+
obj.mark_price = message.markPrice === null ? undefined : math_1.Decimal.fromUserInput(message.markPrice, 18).atomics;
|
|
1455
1456
|
return obj;
|
|
1456
1457
|
},
|
|
1457
1458
|
fromAminoMsg(object) {
|
|
@@ -1855,7 +1856,7 @@ exports.DerivativeMarketOrderCancel = {
|
|
|
1855
1856
|
exchange_1.DerivativeMarketOrder.encode(message.marketOrder, writer.uint32(10).fork()).ldelim();
|
|
1856
1857
|
}
|
|
1857
1858
|
if (message.cancelQuantity !== "") {
|
|
1858
|
-
writer.uint32(18).string(message.cancelQuantity);
|
|
1859
|
+
writer.uint32(18).string(math_1.Decimal.fromUserInput(message.cancelQuantity, 18).atomics);
|
|
1859
1860
|
}
|
|
1860
1861
|
return writer;
|
|
1861
1862
|
},
|
|
@@ -1870,7 +1871,7 @@ exports.DerivativeMarketOrderCancel = {
|
|
|
1870
1871
|
message.marketOrder = exchange_1.DerivativeMarketOrder.decode(reader, reader.uint32());
|
|
1871
1872
|
break;
|
|
1872
1873
|
case 2:
|
|
1873
|
-
message.cancelQuantity = reader.string();
|
|
1874
|
+
message.cancelQuantity = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1874
1875
|
break;
|
|
1875
1876
|
default:
|
|
1876
1877
|
reader.skipType(tag & 7);
|
|
@@ -1898,7 +1899,7 @@ exports.DerivativeMarketOrderCancel = {
|
|
|
1898
1899
|
toAmino(message) {
|
|
1899
1900
|
const obj = {};
|
|
1900
1901
|
obj.market_order = message.marketOrder ? exchange_1.DerivativeMarketOrder.toAmino(message.marketOrder) : undefined;
|
|
1901
|
-
obj.cancel_quantity = message.cancelQuantity === "" ? undefined : message.cancelQuantity;
|
|
1902
|
+
obj.cancel_quantity = message.cancelQuantity === "" ? undefined : math_1.Decimal.fromUserInput(message.cancelQuantity, 18).atomics;
|
|
1902
1903
|
return obj;
|
|
1903
1904
|
},
|
|
1904
1905
|
fromAminoMsg(object) {
|