@injectivelabs/sdk-ts 1.16.14 → 1.16.16
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/client/indexer/grpc_stream/IndexerGrpcArchiverStream.d.ts +18 -0
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcArchiverStream.js +38 -0
- package/dist/cjs/client/indexer/grpc_stream/index.d.ts +1 -0
- package/dist/cjs/client/indexer/grpc_stream/index.js +1 -0
- package/dist/cjs/client/indexer/transformers/IndexerArchiverStreamTransformer.d.ts +11 -0
- package/dist/cjs/client/indexer/transformers/IndexerArchiverStreamTransformer.js +21 -0
- package/dist/cjs/client/indexer/transformers/IndexerGrpcArchiverTransformer.d.ts +2 -1
- package/dist/cjs/client/indexer/transformers/IndexerGrpcArchiverTransformer.js +8 -0
- package/dist/cjs/client/indexer/transformers/index.d.ts +2 -1
- package/dist/cjs/client/indexer/transformers/index.js +2 -1
- package/dist/cjs/client/indexer/types/archiver.d.ts +7 -0
- package/dist/cjs/core/modules/distribution/index.d.ts +2 -1
- package/dist/cjs/core/modules/distribution/index.js +3 -1
- package/dist/cjs/core/modules/distribution/msgs/MsgFundCommunityPool.d.ts +39 -0
- package/dist/cjs/core/modules/distribution/msgs/MsgFundCommunityPool.js +65 -0
- package/dist/cjs/core/modules/exchange/index.d.ts +2 -1
- package/dist/cjs/core/modules/exchange/index.js +3 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgUpdateDerivativeMarketV2.d.ts +92 -0
- package/dist/cjs/core/modules/exchange/msgs/MsgUpdateDerivativeMarketV2.js +106 -0
- package/dist/cjs/core/modules/exchange/msgs/MsgUpdateSpotMarketV2.js +0 -1
- package/dist/cjs/core/modules/msgs.d.ts +52 -42
- package/dist/cjs/core/tx/eip712/maps.js +2 -0
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcArchiverStream.d.ts +18 -0
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcArchiverStream.js +34 -0
- package/dist/esm/client/indexer/grpc_stream/index.d.ts +1 -0
- package/dist/esm/client/indexer/grpc_stream/index.js +1 -0
- package/dist/esm/client/indexer/transformers/IndexerArchiverStreamTransformer.d.ts +11 -0
- package/dist/esm/client/indexer/transformers/IndexerArchiverStreamTransformer.js +17 -0
- package/dist/esm/client/indexer/transformers/IndexerGrpcArchiverTransformer.d.ts +2 -1
- package/dist/esm/client/indexer/transformers/IndexerGrpcArchiverTransformer.js +8 -0
- package/dist/esm/client/indexer/transformers/index.d.ts +2 -1
- package/dist/esm/client/indexer/transformers/index.js +2 -1
- package/dist/esm/client/indexer/types/archiver.d.ts +7 -0
- package/dist/esm/core/modules/distribution/index.d.ts +2 -1
- package/dist/esm/core/modules/distribution/index.js +2 -1
- package/dist/esm/core/modules/distribution/msgs/MsgFundCommunityPool.d.ts +39 -0
- package/dist/esm/core/modules/distribution/msgs/MsgFundCommunityPool.js +59 -0
- package/dist/esm/core/modules/exchange/index.d.ts +2 -1
- package/dist/esm/core/modules/exchange/index.js +2 -1
- package/dist/esm/core/modules/exchange/msgs/MsgUpdateDerivativeMarketV2.d.ts +92 -0
- package/dist/esm/core/modules/exchange/msgs/MsgUpdateDerivativeMarketV2.js +100 -0
- package/dist/esm/core/modules/exchange/msgs/MsgUpdateSpotMarketV2.js +0 -1
- package/dist/esm/core/modules/msgs.d.ts +52 -42
- package/dist/esm/core/tx/eip712/maps.js +2 -0
- package/package.json +6 -6
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import snakecaseKeys from 'snakecase-keys';
|
|
2
|
+
import { toChainFormat } from '@injectivelabs/utils';
|
|
3
|
+
import { InjectiveExchangeV2Tx } from '@injectivelabs/core-proto-ts';
|
|
4
|
+
import { MsgBase } from '../../MsgBase.js';
|
|
5
|
+
import { numberToCosmosSdkDecString } from '../../../../utils/numbers.js';
|
|
6
|
+
const createMessage = (params) => {
|
|
7
|
+
const message = InjectiveExchangeV2Tx.MsgUpdateDerivativeMarket.create();
|
|
8
|
+
message.admin = params.admin;
|
|
9
|
+
message.marketId = params.marketId;
|
|
10
|
+
message.newTicker = params.newTicker || '';
|
|
11
|
+
message.newMinNotional = params.newMinNotional || '0';
|
|
12
|
+
message.newMinPriceTickSize = params.newMinPriceTickSize || '0';
|
|
13
|
+
message.newMinQuantityTickSize = params.newMinQuantityTickSize || '0';
|
|
14
|
+
message.newInitialMarginRatio = params.newInitialMarginRatio || '0';
|
|
15
|
+
message.newMaintenanceMarginRatio = params.newMaintenanceMarginRatio || '0';
|
|
16
|
+
message.newReduceMarginRatio = params.newReduceMarginRatio || '0';
|
|
17
|
+
return InjectiveExchangeV2Tx.MsgUpdateDerivativeMarket.fromPartial(message);
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @category Messages
|
|
21
|
+
*/
|
|
22
|
+
export default class MsgUpdateDerivativeMarketV2 extends MsgBase {
|
|
23
|
+
static fromJSON(params) {
|
|
24
|
+
return new MsgUpdateDerivativeMarketV2(params);
|
|
25
|
+
}
|
|
26
|
+
toProto() {
|
|
27
|
+
const { params: initialParams } = this;
|
|
28
|
+
const params = {
|
|
29
|
+
...initialParams,
|
|
30
|
+
newMinNotional: toChainFormat(initialParams.newMinNotional || '0').toFixed(),
|
|
31
|
+
newMinQuantityTickSize: toChainFormat(initialParams.newMinQuantityTickSize || '0').toFixed(),
|
|
32
|
+
newMinPriceTickSize: toChainFormat(initialParams.newMinPriceTickSize || '0').toFixed(),
|
|
33
|
+
newInitialMarginRatio: toChainFormat(initialParams.newInitialMarginRatio || '0').toFixed(),
|
|
34
|
+
newMaintenanceMarginRatio: toChainFormat(initialParams.newMaintenanceMarginRatio || '0').toFixed(),
|
|
35
|
+
newReduceMarginRatio: toChainFormat(initialParams.newReduceMarginRatio || '0').toFixed(),
|
|
36
|
+
};
|
|
37
|
+
return createMessage(params);
|
|
38
|
+
}
|
|
39
|
+
toData() {
|
|
40
|
+
const proto = this.toProto();
|
|
41
|
+
return {
|
|
42
|
+
'@type': '/injective.exchange.v2.MsgUpdateDerivativeMarket',
|
|
43
|
+
...proto,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
toAmino() {
|
|
47
|
+
const { params } = this;
|
|
48
|
+
const msg = createMessage(params);
|
|
49
|
+
const message = {
|
|
50
|
+
...snakecaseKeys(msg),
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
type: 'exchange/MsgUpdateDerivativeMarket',
|
|
54
|
+
value: message,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
toWeb3Gw() {
|
|
58
|
+
const amino = this.toAmino();
|
|
59
|
+
const { value } = amino;
|
|
60
|
+
return {
|
|
61
|
+
'@type': '/injective.exchange.v2.MsgUpdateDerivativeMarket',
|
|
62
|
+
...value,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
toEip712() {
|
|
66
|
+
const amino = this.toAmino();
|
|
67
|
+
const { type, value } = amino;
|
|
68
|
+
const messageAdjusted = {
|
|
69
|
+
...value,
|
|
70
|
+
};
|
|
71
|
+
return {
|
|
72
|
+
type,
|
|
73
|
+
value: messageAdjusted,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
toEip712V2() {
|
|
77
|
+
const { params } = this;
|
|
78
|
+
const web3gw = this.toWeb3Gw();
|
|
79
|
+
const messageAdjusted = {
|
|
80
|
+
...web3gw,
|
|
81
|
+
new_min_price_tick_size: numberToCosmosSdkDecString(params.newMinPriceTickSize || '0'),
|
|
82
|
+
new_min_quantity_tick_size: numberToCosmosSdkDecString(params.newMinQuantityTickSize || '0'),
|
|
83
|
+
new_min_notional: numberToCosmosSdkDecString(params.newMinNotional || '0'),
|
|
84
|
+
new_initial_margin_ratio: numberToCosmosSdkDecString(params.newInitialMarginRatio || '0'),
|
|
85
|
+
new_maintenance_margin_ratio: numberToCosmosSdkDecString(params.newMaintenanceMarginRatio || '0'),
|
|
86
|
+
new_reduce_margin_ratio: numberToCosmosSdkDecString(params.newReduceMarginRatio || '0'),
|
|
87
|
+
};
|
|
88
|
+
return messageAdjusted;
|
|
89
|
+
}
|
|
90
|
+
toDirectSign() {
|
|
91
|
+
const proto = this.toProto();
|
|
92
|
+
return {
|
|
93
|
+
type: '/injective.exchange.v2.MsgUpdateDerivativeMarket',
|
|
94
|
+
message: proto,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
toBinary() {
|
|
98
|
+
return InjectiveExchangeV2Tx.MsgUpdateDerivativeMarket.encode(this.toProto()).finish();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -22,7 +22,6 @@ export default class MsgUpdateSpotMarketV2 extends MsgBase {
|
|
|
22
22
|
}
|
|
23
23
|
toProto() {
|
|
24
24
|
const { params: initialParams } = this;
|
|
25
|
-
console.log({ initialParams });
|
|
26
25
|
const params = {
|
|
27
26
|
...initialParams,
|
|
28
27
|
newMinNotional: toChainFormat(initialParams.newMinNotional || '0').toFixed(),
|
|
@@ -1,72 +1,82 @@
|
|
|
1
|
-
import type MsgVote from './gov/msgs/MsgVote.js';
|
|
2
|
-
import type MsgSend from './bank/msgs/MsgSend.js';
|
|
3
1
|
import type MsgBid from './auction/msgs/MsgBid.js';
|
|
4
2
|
import type MsgGrant from './authz/msgs/MsgGrant.js';
|
|
5
3
|
import type MsgRevoke from './authz/msgs/MsgRevoke.js';
|
|
6
4
|
import type MsgAuthzExec from './authz/msgs/MsgExec.js';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
9
|
-
import type MsgGovDeposit from './gov/msgs/MsgDeposit.js';
|
|
10
|
-
import type MsgBurn from './tokenfactory/msgs/MsgBurn.js';
|
|
11
|
-
import type MsgMint from './tokenfactory/msgs/MsgMint.js';
|
|
5
|
+
import type MsgGrantWithAuthorization from './authz/msgs/MsgGrantWithAuthorization.js';
|
|
6
|
+
import type MsgSend from './bank/msgs/MsgSend.js';
|
|
12
7
|
import type MsgMultiSend from './bank/msgs/MsgMultiSend.js';
|
|
8
|
+
import type MsgFundCommunityPool from './distribution/msgs/MsgFundCommunityPool.js';
|
|
9
|
+
import type MsgWithdrawDelegatorReward from './distribution/msgs/MsgWithdrawDelegatorReward.js';
|
|
10
|
+
import type MsgWithdrawValidatorCommission from './distribution/msgs/MsgWithdrawValidatorCommission.js';
|
|
13
11
|
import type MsgDeposit from './exchange/msgs/MsgDeposit.js';
|
|
14
|
-
import type MsgStoreCode from './wasm/msgs/MsgStoreCode.js';
|
|
15
|
-
import type MsgSendToEth from './peggy/msgs/MsgSendToEth.js';
|
|
16
|
-
import type MsgDelegate from './staking/msgs/MsgDelegate.js';
|
|
17
12
|
import type MsgSignData from './exchange/msgs/MsgSignData.js';
|
|
18
13
|
import type MsgWithdraw from './exchange/msgs/MsgWithdraw.js';
|
|
19
|
-
import type MsgUpdateAdmin from './wasm/msgs/MsgUpdateAdmin.js';
|
|
20
|
-
import type MsgUndelegate from './staking/msgs/MsgUndelegate.js';
|
|
21
|
-
import type MsgUnderwrite from './insurance/msgs/MsgUnderwrite.js';
|
|
22
|
-
import type MsgEditValidator from './staking/msgs/MsgEditValidator.js';
|
|
23
|
-
import type MsgExec from './wasm/msgs/MsgPrivilegedExecuteContract.js';
|
|
24
14
|
import type MsgRewardsOptOut from './exchange/msgs/MsgRewardsOptOut.js';
|
|
25
|
-
import type MsgChangeAdmin from './tokenfactory/msgs/MsgChangeAdmin.js';
|
|
26
|
-
import type MsgCreateDenom from './tokenfactory/msgs/MsgCreateDenom.js';
|
|
27
|
-
import type MsgExecuteContract from './wasm/msgs/MsgExecuteContract.js';
|
|
28
|
-
import type MsgMigrateContract from './wasm/msgs/MsgMigrateContract.js';
|
|
29
|
-
import type MsgGrantAllowance from './feegrant/msgs/MsgGrantAllowance.js';
|
|
30
|
-
import type MsgBeginRedelegate from './staking/msgs/MsgBeginRedelegate.js';
|
|
31
|
-
import type MsgCreateValidator from './staking/msgs/MsgCreateValidator.js';
|
|
32
15
|
import type MsgCancelSpotOrder from './exchange/msgs/MsgCancelSpotOrder.js';
|
|
33
|
-
import type MsgRevokeAllowance from './feegrant/msgs/MsgRevokeAllowance.js';
|
|
34
16
|
import type MsgExternalTransfer from './exchange/msgs/MsgExternalTransfer.js';
|
|
35
17
|
import type MsgBatchUpdateOrders from './exchange/msgs/MsgBatchUpdateOrders.js';
|
|
36
18
|
import type MsgLiquidatePosition from './exchange/msgs/MsgLiquidatePosition.js';
|
|
37
|
-
import type MsgInstantiateContract from './wasm/msgs/MsgInstantiateContract.js';
|
|
38
|
-
import type MsgTransferDelegation from './staking/msgs/MsgTransferDelegation.js';
|
|
39
|
-
import type MsgRequestRedemption from './insurance/msgs/MsgRequestRedemption.js';
|
|
40
19
|
import type MsgReclaimLockedFunds from './exchange/msgs/MsgReclaimLockedFunds.js';
|
|
41
|
-
import type MsgSetDenomMetadata from './tokenfactory/msgs/MsgSetDenomMetadata.js';
|
|
42
|
-
import type MsgUpdateSpotMarketV2 from './exchange/msgs/MsgUpdateSpotMarketV2.js';
|
|
43
|
-
import type MsgExecuteContractCompat from './wasm/msgs/MsgExecuteContractCompat.js';
|
|
44
|
-
import type MsgCreateInsuranceFund from './insurance/msgs/MsgCreateInsuranceFund.js';
|
|
45
20
|
import type MsgAuthorizeStakeGrants from './exchange/msgs/MsgAuthorizeStakeGrants.js';
|
|
46
21
|
import type MsgCreateSpotLimitOrder from './exchange/msgs/MsgCreateSpotLimitOrder.js';
|
|
47
|
-
import type MsgGrantWithAuthorization from './authz/msgs/MsgGrantWithAuthorization.js';
|
|
48
22
|
import type MsgBatchCancelSpotOrders from './exchange/msgs/MsgBatchCancelSpotOrders.js';
|
|
49
23
|
import type MsgCancelDerivativeOrder from './exchange/msgs/MsgCancelDerivativeOrder.js';
|
|
50
24
|
import type MsgCreateSpotMarketOrder from './exchange/msgs/MsgCreateSpotMarketOrder.js';
|
|
51
25
|
import type MsgIncreasePositionMargin from './exchange/msgs/MsgIncreasePositionMargin.js';
|
|
52
26
|
import type MsgInstantSpotMarketLaunch from './exchange/msgs/MsgInstantSpotMarketLaunch.js';
|
|
53
27
|
import type MsgCancelBinaryOptionsOrder from './exchange/msgs/MsgCancelBinaryOptionsOrder.js';
|
|
54
|
-
import type MsgCancelUnbondingDelegation from './staking/msgs/MsgCancelUnbondingDelegation.js';
|
|
55
|
-
import type MsgWithdrawDelegatorReward from './distribution/msgs/MsgWithdrawDelegatorReward.js';
|
|
56
28
|
import type MsgCreateDerivativeLimitOrder from './exchange/msgs/MsgCreateDerivativeLimitOrder.js';
|
|
57
29
|
import type MsgBatchCancelDerivativeOrders from './exchange/msgs/MsgBatchCancelDerivativeOrders.js';
|
|
58
30
|
import type MsgCreateDerivativeMarketOrder from './exchange/msgs/MsgCreateDerivativeMarketOrder.js';
|
|
59
|
-
import type MsgWithdrawValidatorCommission from './distribution/msgs/MsgWithdrawValidatorCommission.js';
|
|
60
31
|
import type MsgCreateBinaryOptionsLimitOrder from './exchange/msgs/MsgCreateBinaryOptionsLimitOrder.js';
|
|
61
32
|
import type MsgAdminUpdateBinaryOptionsMarket from './exchange/msgs/MsgAdminUpdateBinaryOptionsMarket.js';
|
|
62
33
|
import type MsgBatchCancelBinaryOptionsOrders from './exchange/msgs/MsgBatchCancelBinaryOptionsOrders.js';
|
|
63
34
|
import type MsgCreateBinaryOptionsMarketOrder from './exchange/msgs/MsgCreateBinaryOptionsMarketOrder.js';
|
|
64
35
|
import type MsgSetDelegationTransferReceivers from './exchange/msgs/MsgSetDelegationTransferReceivers.js';
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
36
|
+
import type MsgUpdateSpotMarketV2 from './exchange/msgs/MsgUpdateSpotMarketV2.js';
|
|
37
|
+
import type MsgUpdateDerivativeMarketV2 from './exchange/msgs/MsgUpdateDerivativeMarketV2.js';
|
|
38
|
+
import type MsgGrantAllowance from './feegrant/msgs/MsgGrantAllowance.js';
|
|
39
|
+
import type MsgRevokeAllowance from './feegrant/msgs/MsgRevokeAllowance.js';
|
|
40
|
+
import type MsgVote from './gov/msgs/MsgVote.js';
|
|
41
|
+
import type { MsgSubmitProposal } from './gov/index.js';
|
|
42
|
+
import type MsgGovDeposit from './gov/msgs/MsgDeposit.js';
|
|
43
|
+
import type MsgTransfer from './ibc/msgs/MsgTransfer.js';
|
|
44
|
+
import type MsgUnderwrite from './insurance/msgs/MsgUnderwrite.js';
|
|
45
|
+
import type MsgRequestRedemption from './insurance/msgs/MsgRequestRedemption.js';
|
|
46
|
+
import type MsgCreateInsuranceFund from './insurance/msgs/MsgCreateInsuranceFund.js';
|
|
47
|
+
import type MsgSendToEth from './peggy/msgs/MsgSendToEth.js';
|
|
48
|
+
import type MsgDelegate from './staking/msgs/MsgDelegate.js';
|
|
49
|
+
import type MsgUndelegate from './staking/msgs/MsgUndelegate.js';
|
|
50
|
+
import type MsgEditValidator from './staking/msgs/MsgEditValidator.js';
|
|
51
|
+
import type MsgBeginRedelegate from './staking/msgs/MsgBeginRedelegate.js';
|
|
52
|
+
import type MsgCreateValidator from './staking/msgs/MsgCreateValidator.js';
|
|
53
|
+
import type MsgTransferDelegation from './staking/msgs/MsgTransferDelegation.js';
|
|
54
|
+
import type MsgCancelUnbondingDelegation from './staking/msgs/MsgCancelUnbondingDelegation.js';
|
|
55
|
+
import type MsgBurn from './tokenfactory/msgs/MsgBurn.js';
|
|
56
|
+
import type MsgMint from './tokenfactory/msgs/MsgMint.js';
|
|
57
|
+
import type MsgChangeAdmin from './tokenfactory/msgs/MsgChangeAdmin.js';
|
|
58
|
+
import type MsgCreateDenom from './tokenfactory/msgs/MsgCreateDenom.js';
|
|
59
|
+
import type MsgSetDenomMetadata from './tokenfactory/msgs/MsgSetDenomMetadata.js';
|
|
60
|
+
import type MsgStoreCode from './wasm/msgs/MsgStoreCode.js';
|
|
61
|
+
import type MsgUpdateAdmin from './wasm/msgs/MsgUpdateAdmin.js';
|
|
62
|
+
import type MsgExec from './wasm/msgs/MsgPrivilegedExecuteContract.js';
|
|
63
|
+
import type MsgExecuteContract from './wasm/msgs/MsgExecuteContract.js';
|
|
64
|
+
import type MsgMigrateContract from './wasm/msgs/MsgMigrateContract.js';
|
|
65
|
+
import type MsgInstantiateContract from './wasm/msgs/MsgInstantiateContract.js';
|
|
66
|
+
import type MsgExecuteContractCompat from './wasm/msgs/MsgExecuteContractCompat.js';
|
|
67
|
+
export type AuctionMsgs = MsgBid;
|
|
68
|
+
export type AuthzMsgs = MsgGrant | MsgRevoke | MsgAuthzExec | MsgGrantWithAuthorization;
|
|
69
|
+
export type BankMsgs = MsgSend | MsgMultiSend;
|
|
70
|
+
export type DistributionMsgs = MsgFundCommunityPool | MsgWithdrawDelegatorReward | MsgWithdrawValidatorCommission;
|
|
71
|
+
export type ExchangeV1Msgs = MsgDeposit | MsgSignData | MsgWithdraw | MsgRewardsOptOut | MsgCancelSpotOrder | MsgExternalTransfer | MsgBatchUpdateOrders | MsgLiquidatePosition | MsgReclaimLockedFunds | MsgAuthorizeStakeGrants | MsgCreateSpotLimitOrder | MsgBatchCancelSpotOrders | MsgCancelDerivativeOrder | MsgCreateSpotMarketOrder | MsgIncreasePositionMargin | MsgInstantSpotMarketLaunch | MsgCancelBinaryOptionsOrder | MsgCreateDerivativeLimitOrder | MsgBatchCancelDerivativeOrders | MsgCreateDerivativeMarketOrder | MsgCreateBinaryOptionsLimitOrder | MsgAdminUpdateBinaryOptionsMarket | MsgBatchCancelBinaryOptionsOrders | MsgCreateBinaryOptionsMarketOrder | MsgSetDelegationTransferReceivers;
|
|
72
|
+
export type ExchangeV2Msgs = MsgUpdateSpotMarketV2 | MsgUpdateDerivativeMarketV2;
|
|
73
|
+
export type FeegrantMsgs = MsgGrantAllowance | MsgRevokeAllowance;
|
|
74
|
+
export type GovMsgs = MsgVote | MsgSubmitProposal | MsgGovDeposit;
|
|
75
|
+
export type IbcMsgs = MsgTransfer;
|
|
76
|
+
export type InsuranceMsgs = MsgUnderwrite | MsgRequestRedemption | MsgCreateInsuranceFund;
|
|
77
|
+
export type PeggyMsgs = MsgSendToEth;
|
|
78
|
+
export type StakingMsgs = MsgDelegate | MsgUndelegate | MsgEditValidator | MsgBeginRedelegate | MsgCreateValidator | MsgTransferDelegation | MsgCancelUnbondingDelegation;
|
|
79
|
+
export type TokenFactoryMsgs = MsgBurn | MsgMint | MsgChangeAdmin | MsgCreateDenom | MsgSetDenomMetadata;
|
|
80
|
+
export type WasmMsgs = MsgStoreCode | MsgUpdateAdmin | MsgExec | MsgExecuteContract | MsgMigrateContract | MsgInstantiateContract | MsgExecuteContractCompat;
|
|
81
|
+
export type Msgs = AuctionMsgs | AuthzMsgs | BankMsgs | DistributionMsgs | ExchangeV1Msgs | ExchangeV2Msgs | FeegrantMsgs | GovMsgs | IbcMsgs | InsuranceMsgs | PeggyMsgs | StakingMsgs | TokenFactoryMsgs | WasmMsgs;
|
|
82
|
+
export type ExchangeMsgs = ExchangeV1Msgs | ExchangeV2Msgs;
|
|
@@ -367,6 +367,8 @@ export const protoTypeToAminoType = (type) => {
|
|
|
367
367
|
return 'exchange/MsgTransferAndExecute';
|
|
368
368
|
case 'injective.exchange.v2.MsgUpdateSpotMarket':
|
|
369
369
|
return 'exchange/MsgUpdateSpotMarket';
|
|
370
|
+
case 'injective.exchange.v2.MsgUpdateDerivativeMarket':
|
|
371
|
+
return 'exchange/MsgUpdateDerivativeMarket';
|
|
370
372
|
case 'injective.exchange.v1beta1.CreateSpotLimitOrderAuthz':
|
|
371
373
|
return 'exchange/CreateSpotLimitOrderAuthz';
|
|
372
374
|
case 'injective.exchange.v1beta1.CreateSpotMarketOrderAuthz':
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/sdk-ts",
|
|
3
3
|
"description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.16",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": {
|
|
@@ -124,16 +124,16 @@
|
|
|
124
124
|
"@cosmjs/stargate": "^0.33.0",
|
|
125
125
|
"@injectivelabs/abacus-proto-ts": "1.14.0",
|
|
126
126
|
"@injectivelabs/core-proto-ts": "1.16.6",
|
|
127
|
-
"@injectivelabs/exceptions": "1.16.
|
|
127
|
+
"@injectivelabs/exceptions": "1.16.16",
|
|
128
128
|
"@injectivelabs/grpc-web": "^0.0.1",
|
|
129
129
|
"@injectivelabs/grpc-web-node-http-transport": "^0.0.2",
|
|
130
130
|
"@injectivelabs/grpc-web-react-native-transport": "^0.0.2",
|
|
131
131
|
"@injectivelabs/indexer-proto-ts": "1.13.18",
|
|
132
132
|
"@injectivelabs/mito-proto-ts": "1.13.2",
|
|
133
|
-
"@injectivelabs/networks": "1.16.
|
|
133
|
+
"@injectivelabs/networks": "1.16.16",
|
|
134
134
|
"@injectivelabs/olp-proto-ts": "1.13.4",
|
|
135
|
-
"@injectivelabs/ts-types": "1.16.
|
|
136
|
-
"@injectivelabs/utils": "1.16.
|
|
135
|
+
"@injectivelabs/ts-types": "1.16.16",
|
|
136
|
+
"@injectivelabs/utils": "1.16.16",
|
|
137
137
|
"@noble/curves": "^1.8.1",
|
|
138
138
|
"@noble/hashes": "^1.7.1",
|
|
139
139
|
"@scure/base": "^1.2.6",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"snakecase-keys": "^5.4.1",
|
|
152
152
|
"viem": "^2.33.2"
|
|
153
153
|
},
|
|
154
|
-
"gitHead": "
|
|
154
|
+
"gitHead": "7d2ac9ede5e2c5cb34297a58bc904fc343688025",
|
|
155
155
|
"typedoc": {
|
|
156
156
|
"entryPoint": "./src/index.ts",
|
|
157
157
|
"readmeFile": "./README.md",
|