@injectivelabs/sdk-ts 1.16.6 → 1.16.7

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.
@@ -251,6 +251,7 @@ class ChainGrpcExchangeTransformer {
251
251
  minPriceTickSize: (0, numbers_js_1.denomAmountFromGrpcChainDenomAmount)(marketInfo.minPriceTickSize).toNumber(),
252
252
  minQuantityTickSize: (0, numbers_js_1.denomAmountFromGrpcChainDenomAmount)(marketInfo.minQuantityTickSize).toNumber(),
253
253
  minNotional: (0, numbers_js_1.denomAmountFromGrpcChainDenomAmount)(marketInfo.minNotional).toNumber(),
254
+ reduceMarginRatio: (0, numbers_js_1.denomAmountFromGrpcChainDenomAmount)(marketInfo.reduceMarginRatio).toFixed(),
254
255
  initialMarginRatio: (0, numbers_js_1.denomAmountFromGrpcChainDenomAmount)(marketInfo.initialMarginRatio).toFixed(),
255
256
  maintenanceMarginRatio: (0, numbers_js_1.denomAmountFromGrpcChainDenomAmount)(marketInfo.maintenanceMarginRatio).toFixed(),
256
257
  isPerpetual: marketInfo.isPerpetual,
@@ -65,6 +65,7 @@ export interface PerpetualMarket extends BaseDerivativeMarket {
65
65
  perpetualMarketFunding?: PerpetualMarketFunding;
66
66
  }
67
67
  export interface ExpiryFuturesMarket extends BaseDerivativeMarket {
68
+ reduceMarginRatio: string;
68
69
  initialMarginRatio: string;
69
70
  maintenanceMarginRatio: string;
70
71
  isPerpetual: boolean;
@@ -248,6 +248,7 @@ export class ChainGrpcExchangeTransformer {
248
248
  minPriceTickSize: denomAmountFromGrpcChainDenomAmount(marketInfo.minPriceTickSize).toNumber(),
249
249
  minQuantityTickSize: denomAmountFromGrpcChainDenomAmount(marketInfo.minQuantityTickSize).toNumber(),
250
250
  minNotional: denomAmountFromGrpcChainDenomAmount(marketInfo.minNotional).toNumber(),
251
+ reduceMarginRatio: denomAmountFromGrpcChainDenomAmount(marketInfo.reduceMarginRatio).toFixed(),
251
252
  initialMarginRatio: denomAmountFromGrpcChainDenomAmount(marketInfo.initialMarginRatio).toFixed(),
252
253
  maintenanceMarginRatio: denomAmountFromGrpcChainDenomAmount(marketInfo.maintenanceMarginRatio).toFixed(),
253
254
  isPerpetual: marketInfo.isPerpetual,
@@ -65,6 +65,7 @@ export interface PerpetualMarket extends BaseDerivativeMarket {
65
65
  perpetualMarketFunding?: PerpetualMarketFunding;
66
66
  }
67
67
  export interface ExpiryFuturesMarket extends BaseDerivativeMarket {
68
+ reduceMarginRatio: string;
68
69
  initialMarginRatio: string;
69
70
  maintenanceMarginRatio: string;
70
71
  isPerpetual: boolean;
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.6",
4
+ "version": "1.16.7",
5
5
  "sideEffects": false,
6
6
  "license": "Apache-2.0",
7
7
  "author": {
@@ -123,16 +123,16 @@
123
123
  "@cosmjs/stargate": "^0.33.0",
124
124
  "@injectivelabs/abacus-proto-ts": "1.14.0",
125
125
  "@injectivelabs/core-proto-ts": "1.16.1",
126
- "@injectivelabs/exceptions": "^1.16.6",
126
+ "@injectivelabs/exceptions": "^1.16.7",
127
127
  "@injectivelabs/grpc-web": "^0.0.1",
128
128
  "@injectivelabs/grpc-web-node-http-transport": "^0.0.2",
129
129
  "@injectivelabs/grpc-web-react-native-transport": "^0.0.2",
130
130
  "@injectivelabs/indexer-proto-ts": "1.13.14",
131
131
  "@injectivelabs/mito-proto-ts": "1.13.2",
132
- "@injectivelabs/networks": "^1.16.6",
132
+ "@injectivelabs/networks": "^1.16.7",
133
133
  "@injectivelabs/olp-proto-ts": "1.13.4",
134
- "@injectivelabs/ts-types": "^1.16.6",
135
- "@injectivelabs/utils": "^1.16.6",
134
+ "@injectivelabs/ts-types": "^1.16.7",
135
+ "@injectivelabs/utils": "^1.16.7",
136
136
  "@metamask/eth-sig-util": "^8.2.0",
137
137
  "@noble/curves": "^1.8.1",
138
138
  "@noble/hashes": "^1.7.1",
@@ -151,7 +151,7 @@
151
151
  "shx": "^0.3.4",
152
152
  "snakecase-keys": "^5.4.1"
153
153
  },
154
- "gitHead": "41794b09a1047a01dbb1d0e0a473a2f26305752d",
154
+ "gitHead": "78f656ef404ef511dfe6e4cc9defcae0a7cbec76",
155
155
  "typedoc": {
156
156
  "entryPoint": "./src/index.ts",
157
157
  "readmeFile": "./README.md",