@injectivelabs/sdk-ts 1.16.1-alpha.3 → 1.16.1-alpha.5
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.
|
@@ -16,7 +16,7 @@ const createPerpetualMarketLaunch = (params) => {
|
|
|
16
16
|
content.oracleBase = params.market.oracleBase;
|
|
17
17
|
content.oracleQuote = params.market.oracleQuote;
|
|
18
18
|
content.oracleScaleFactor = params.market.oracleScaleFactor;
|
|
19
|
-
content.oracleType = params.market.oracleType;
|
|
19
|
+
content.oracleType = Number(params.market.oracleType);
|
|
20
20
|
content.initialMarginRatio = params.market.initialMarginRatio;
|
|
21
21
|
content.maintenanceMarginRatio = params.market.maintenanceMarginRatio;
|
|
22
22
|
content.makerFeeRate = params.market.makerFeeRate;
|
|
@@ -49,6 +49,7 @@ class MsgSubmitProposalPerpetualMarketLaunchV2 extends MsgBase_js_1.MsgBase {
|
|
|
49
49
|
initialMarginRatio: (0, numbers_js_1.amountToCosmosSdkDecAmount)(initialParams.market.initialMarginRatio).toFixed(),
|
|
50
50
|
maintenanceMarginRatio: (0, numbers_js_1.amountToCosmosSdkDecAmount)(initialParams.market.maintenanceMarginRatio).toFixed(),
|
|
51
51
|
makerFeeRate: (0, numbers_js_1.amountToCosmosSdkDecAmount)(initialParams.market.makerFeeRate).toFixed(),
|
|
52
|
+
minPriceTickSize: (0, numbers_js_1.amountToCosmosSdkDecAmount)(initialParams.market.minPriceTickSize).toFixed(),
|
|
52
53
|
takerFeeRate: (0, numbers_js_1.amountToCosmosSdkDecAmount)(initialParams.market.takerFeeRate).toFixed(),
|
|
53
54
|
minQuantityTickSize: (0, numbers_js_1.amountToCosmosSdkDecAmount)(initialParams.market.minQuantityTickSize).toFixed(),
|
|
54
55
|
minNotional: (0, numbers_js_1.amountToCosmosSdkDecAmount)(initialParams.market.minNotional).toFixed(),
|
|
@@ -145,7 +146,7 @@ class MsgSubmitProposalPerpetualMarketLaunchV2 extends MsgBase_js_1.MsgBase {
|
|
|
145
146
|
...web3gw,
|
|
146
147
|
content: {
|
|
147
148
|
...content,
|
|
148
|
-
oracle_type: core_proto_ts_1.InjectiveOracleV1Beta1Oracle.oracleTypeToJSON(content.oracle_type),
|
|
149
|
+
oracle_type: core_proto_ts_1.InjectiveOracleV1Beta1Oracle.oracleTypeToJSON(Number(content.oracle_type)),
|
|
149
150
|
initial_margin_ratio: (0, numbers_js_1.numberToCosmosSdkDecString)(params.market.initialMarginRatio),
|
|
150
151
|
maintenance_margin_ratio: (0, numbers_js_1.numberToCosmosSdkDecString)(params.market.maintenanceMarginRatio),
|
|
151
152
|
maker_fee_rate: (0, numbers_js_1.numberToCosmosSdkDecString)(params.market.makerFeeRate),
|
|
@@ -11,7 +11,7 @@ const createPerpetualMarketLaunch = (params) => {
|
|
|
11
11
|
content.oracleBase = params.market.oracleBase;
|
|
12
12
|
content.oracleQuote = params.market.oracleQuote;
|
|
13
13
|
content.oracleScaleFactor = params.market.oracleScaleFactor;
|
|
14
|
-
content.oracleType = params.market.oracleType;
|
|
14
|
+
content.oracleType = Number(params.market.oracleType);
|
|
15
15
|
content.initialMarginRatio = params.market.initialMarginRatio;
|
|
16
16
|
content.maintenanceMarginRatio = params.market.maintenanceMarginRatio;
|
|
17
17
|
content.makerFeeRate = params.market.makerFeeRate;
|
|
@@ -44,6 +44,7 @@ export default class MsgSubmitProposalPerpetualMarketLaunchV2 extends MsgBase {
|
|
|
44
44
|
initialMarginRatio: amountToCosmosSdkDecAmount(initialParams.market.initialMarginRatio).toFixed(),
|
|
45
45
|
maintenanceMarginRatio: amountToCosmosSdkDecAmount(initialParams.market.maintenanceMarginRatio).toFixed(),
|
|
46
46
|
makerFeeRate: amountToCosmosSdkDecAmount(initialParams.market.makerFeeRate).toFixed(),
|
|
47
|
+
minPriceTickSize: amountToCosmosSdkDecAmount(initialParams.market.minPriceTickSize).toFixed(),
|
|
47
48
|
takerFeeRate: amountToCosmosSdkDecAmount(initialParams.market.takerFeeRate).toFixed(),
|
|
48
49
|
minQuantityTickSize: amountToCosmosSdkDecAmount(initialParams.market.minQuantityTickSize).toFixed(),
|
|
49
50
|
minNotional: amountToCosmosSdkDecAmount(initialParams.market.minNotional).toFixed(),
|
|
@@ -140,7 +141,7 @@ export default class MsgSubmitProposalPerpetualMarketLaunchV2 extends MsgBase {
|
|
|
140
141
|
...web3gw,
|
|
141
142
|
content: {
|
|
142
143
|
...content,
|
|
143
|
-
oracle_type: InjectiveOracleV1Beta1Oracle.oracleTypeToJSON(content.oracle_type),
|
|
144
|
+
oracle_type: InjectiveOracleV1Beta1Oracle.oracleTypeToJSON(Number(content.oracle_type)),
|
|
144
145
|
initial_margin_ratio: numberToCosmosSdkDecString(params.market.initialMarginRatio),
|
|
145
146
|
maintenance_margin_ratio: numberToCosmosSdkDecString(params.market.maintenanceMarginRatio),
|
|
146
147
|
maker_fee_rate: numberToCosmosSdkDecString(params.market.makerFeeRate),
|
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.1-alpha.
|
|
4
|
+
"version": "1.16.1-alpha.5",
|
|
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.1-alpha.
|
|
126
|
+
"@injectivelabs/exceptions": "^1.16.1-alpha.5",
|
|
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.1-alpha.
|
|
132
|
+
"@injectivelabs/networks": "^1.16.1-alpha.5",
|
|
133
133
|
"@injectivelabs/olp-proto-ts": "1.13.4",
|
|
134
|
-
"@injectivelabs/ts-types": "^1.16.1-alpha.
|
|
135
|
-
"@injectivelabs/utils": "^1.16.1-alpha.
|
|
134
|
+
"@injectivelabs/ts-types": "^1.16.1-alpha.5",
|
|
135
|
+
"@injectivelabs/utils": "^1.16.1-alpha.5",
|
|
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": "
|
|
154
|
+
"gitHead": "b58852fac80374e6795403bd5ccf06c174979e9f",
|
|
155
155
|
"typedoc": {
|
|
156
156
|
"entryPoint": "./src/index.ts",
|
|
157
157
|
"readmeFile": "./README.md",
|