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,5 +1,6 @@
|
|
|
1
1
|
import { Params, SpotMarket, DerivativeMarket, PerpetualMarketInfo, DerivativeMarketSettlementInfo, TradingRewardCampaignInfo, CampaignRewardPool, FeeDiscountSchedule, TradeRecords, BinaryOptionsMarket, DenomDecimals, MarketFeeMultiplier, AggregateSubaccountVolumeRecord, MarketVolume, FeeDiscountTierTTL, SpotLimitOrder, DerivativeLimitOrder, DerivativeMarketOrder, Deposit, Position, SubaccountTradeNonce, ExpiryFuturesMarketInfo, PerpetualMarketFunding, GrantAuthorization, ActiveGrant } from "./exchange";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { Decimal } from "@interchainjs/math";
|
|
3
4
|
function createBaseGenesisState() {
|
|
4
5
|
return {
|
|
5
6
|
params: Params.fromPartial({}),
|
|
@@ -882,7 +883,7 @@ export const AccountVolume = {
|
|
|
882
883
|
writer.uint32(10).string(message.account);
|
|
883
884
|
}
|
|
884
885
|
if (message.volume !== "") {
|
|
885
|
-
writer.uint32(18).string(message.volume);
|
|
886
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.volume, 18).atomics);
|
|
886
887
|
}
|
|
887
888
|
return writer;
|
|
888
889
|
},
|
|
@@ -897,7 +898,7 @@ export const AccountVolume = {
|
|
|
897
898
|
message.account = reader.string();
|
|
898
899
|
break;
|
|
899
900
|
case 2:
|
|
900
|
-
message.volume = reader.string();
|
|
901
|
+
message.volume = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
901
902
|
break;
|
|
902
903
|
default:
|
|
903
904
|
reader.skipType(tag & 7);
|
|
@@ -925,7 +926,7 @@ export const AccountVolume = {
|
|
|
925
926
|
toAmino(message) {
|
|
926
927
|
const obj = {};
|
|
927
928
|
obj.account = message.account === "" ? undefined : message.account;
|
|
928
|
-
obj.volume = message.volume === "" ? undefined : message.volume;
|
|
929
|
+
obj.volume = message.volume === "" ? undefined : Decimal.fromUserInput(message.volume, 18).atomics;
|
|
929
930
|
return obj;
|
|
930
931
|
},
|
|
931
932
|
fromAminoMsg(object) {
|
|
@@ -964,7 +965,7 @@ export const TradingRewardCampaignAccountPoints = {
|
|
|
964
965
|
writer.uint32(10).string(message.account);
|
|
965
966
|
}
|
|
966
967
|
if (message.points !== "") {
|
|
967
|
-
writer.uint32(18).string(message.points);
|
|
968
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.points, 18).atomics);
|
|
968
969
|
}
|
|
969
970
|
return writer;
|
|
970
971
|
},
|
|
@@ -979,7 +980,7 @@ export const TradingRewardCampaignAccountPoints = {
|
|
|
979
980
|
message.account = reader.string();
|
|
980
981
|
break;
|
|
981
982
|
case 2:
|
|
982
|
-
message.points = reader.string();
|
|
983
|
+
message.points = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
983
984
|
break;
|
|
984
985
|
default:
|
|
985
986
|
reader.skipType(tag & 7);
|
|
@@ -1007,7 +1008,7 @@ export const TradingRewardCampaignAccountPoints = {
|
|
|
1007
1008
|
toAmino(message) {
|
|
1008
1009
|
const obj = {};
|
|
1009
1010
|
obj.account = message.account === "" ? undefined : message.account;
|
|
1010
|
-
obj.points = message.points === "" ? undefined : message.points;
|
|
1011
|
+
obj.points = message.points === "" ? undefined : Decimal.fromUserInput(message.points, 18).atomics;
|
|
1011
1012
|
return obj;
|
|
1012
1013
|
},
|
|
1013
1014
|
fromAminoMsg(object) {
|