@injectivelabs/sdk-ts 1.16.8 → 1.16.9

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.
@@ -19,15 +19,15 @@ const getGasPriceBasedOnMessage = (msgs) => {
19
19
  .decimalPlaces(0)
20
20
  .toNumber();
21
21
  }
22
- if (messageType.includes('wasm')) {
23
- return new utils_1.BigNumberInBase(utils_1.DEFAULT_GAS_LIMIT)
24
- .times(1.5)
22
+ if (messageType.includes('exchange')) {
23
+ return new utils_1.BigNumberInBase(utils_1.DEFAULT_EXCHANGE_LIMIT)
25
24
  .times(messages.length)
26
25
  .decimalPlaces(0)
27
26
  .toNumber();
28
27
  }
29
- if (messageType.includes('exchange')) {
30
- return new utils_1.BigNumberInBase(utils_1.DEFAULT_EXCHANGE_LIMIT)
28
+ if (messageType.includes('wasm')) {
29
+ return new utils_1.BigNumberInBase(utils_1.DEFAULT_GAS_LIMIT)
30
+ .times(1.5)
31
31
  .times(messages.length)
32
32
  .decimalPlaces(0)
33
33
  .toNumber();
@@ -16,15 +16,15 @@ export const getGasPriceBasedOnMessage = (msgs) => {
16
16
  .decimalPlaces(0)
17
17
  .toNumber();
18
18
  }
19
- if (messageType.includes('wasm')) {
20
- return new BigNumberInBase(DEFAULT_GAS_LIMIT)
21
- .times(1.5)
19
+ if (messageType.includes('exchange')) {
20
+ return new BigNumberInBase(DEFAULT_EXCHANGE_LIMIT)
22
21
  .times(messages.length)
23
22
  .decimalPlaces(0)
24
23
  .toNumber();
25
24
  }
26
- if (messageType.includes('exchange')) {
27
- return new BigNumberInBase(DEFAULT_EXCHANGE_LIMIT)
25
+ if (messageType.includes('wasm')) {
26
+ return new BigNumberInBase(DEFAULT_GAS_LIMIT)
27
+ .times(1.5)
28
28
  .times(messages.length)
29
29
  .decimalPlaces(0)
30
30
  .toNumber();
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.8",
4
+ "version": "1.16.9",
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.9",
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.8",
132
+ "@injectivelabs/networks": "1.16.9",
133
133
  "@injectivelabs/olp-proto-ts": "1.13.4",
134
- "@injectivelabs/ts-types": "1.16.8",
135
- "@injectivelabs/utils": "1.16.8",
134
+ "@injectivelabs/ts-types": "1.16.9",
135
+ "@injectivelabs/utils": "1.16.9",
136
136
  "@metamask/eth-sig-util": "^8.2.0",
137
137
  "@noble/curves": "^1.8.1",
138
138
  "@noble/hashes": "^1.7.1",
@@ -152,7 +152,7 @@
152
152
  "shx": "^0.3.4",
153
153
  "snakecase-keys": "^5.4.1"
154
154
  },
155
- "gitHead": "8bdbbfff8a07053ec2cd91a7103bfe99975672b4",
155
+ "gitHead": "e2cf78d7937552013fd491b046a50705b6b4b3a3",
156
156
  "typedoc": {
157
157
  "entryPoint": "./src/index.ts",
158
158
  "readmeFile": "./README.md",