@injectivelabs/sdk-ts 1.0.217 → 1.0.218
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/client/wasm/supernova/transformer.d.ts +26 -38
- package/dist/client/wasm/supernova/transformer.d.ts.map +1 -1
- package/dist/client/wasm/supernova/transformer.js +26 -38
- package/dist/client/wasm/supernova/transformer.js.map +1 -1
- package/dist/client/wasm/supernova/types.d.ts +25 -37
- package/dist/client/wasm/supernova/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -18,64 +18,52 @@ export declare class SupernovaQueryTransformer {
|
|
|
18
18
|
owner: string;
|
|
19
19
|
};
|
|
20
20
|
static vaultContractConfigResponseToDerivativeVaultConfig(response: WasmContractQueryResponse): {
|
|
21
|
-
|
|
22
|
-
cw20Label: string;
|
|
23
|
-
defaultMidPriceVolatilityRatio: string;
|
|
24
|
-
emergencyOracleVolatilitySampleSize: string;
|
|
25
|
-
headChangeToleranceRatio: string;
|
|
26
|
-
headToTailDeviationRatio: string;
|
|
27
|
-
lastValidMarkPrice: string;
|
|
28
|
-
leverage: string;
|
|
29
|
-
leveragedActiveCapitalToMaxPositionExposureRatio: string;
|
|
30
|
-
lpName: string;
|
|
31
|
-
lpSymbol: string;
|
|
32
|
-
lpTokenAddress: string;
|
|
21
|
+
owner: string;
|
|
33
22
|
marketId: string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
minProximityToLiquidation: string;
|
|
38
|
-
minTradeVolatilitySampleSize: string;
|
|
39
|
-
minVolatilityRatio: string;
|
|
40
|
-
oracleVolatilityGroupSec: string;
|
|
23
|
+
subaccountId: string;
|
|
24
|
+
feeRecipient: string;
|
|
25
|
+
leverage: string;
|
|
41
26
|
orderDensity: string;
|
|
42
|
-
postReductionPercOfMaxPosition: string;
|
|
43
27
|
reservationPriceSensitivityRatio: string;
|
|
44
28
|
reservationSpreadSensitivityRatio: string;
|
|
29
|
+
maxActiveCapitalUtilizationRatio: string;
|
|
30
|
+
headChangeToleranceRatio: string;
|
|
31
|
+
headToTailDeviationRatio: string;
|
|
32
|
+
signedMinHeadToFairPriceDeviationRatio: string;
|
|
33
|
+
signedMinHeadToTobDeviationRatio: string;
|
|
34
|
+
minProximityToLiquidation: string;
|
|
35
|
+
postReductionPercOfMaxPosition: string;
|
|
36
|
+
oracleVolatilityGroupSec: string;
|
|
37
|
+
minOracleVolatilitySampleSize: string;
|
|
38
|
+
emergencyOracleVolatilitySampleSize: string;
|
|
45
39
|
tradeVolatilityGroupSec: string;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
minTradeVolatilitySampleSize: string;
|
|
41
|
+
defaultMidPriceVolatilityRatio: string;
|
|
42
|
+
minVolatilityRatio: string;
|
|
43
|
+
lastValidMarkPrice: string;
|
|
44
|
+
masterAddress: string;
|
|
50
45
|
};
|
|
51
46
|
static vaultContractConfigResponseToSpotVaultContractConfig(response: WasmContractQueryResponse): {
|
|
52
|
-
cw20CodeId: string;
|
|
53
|
-
cw20Label: string;
|
|
54
47
|
defaultMidPriceVolatilityRatio: string;
|
|
55
|
-
|
|
48
|
+
fairPriceTailDeviationRatio: string;
|
|
49
|
+
feeRecipient: string;
|
|
56
50
|
headChangeToleranceRatio: string;
|
|
57
|
-
lpName: string;
|
|
58
|
-
lpSymbol: string;
|
|
59
|
-
lpTokenAddress: string;
|
|
60
51
|
marketId: string;
|
|
61
|
-
marketBuyMidPriceDeviationPercent: string;
|
|
62
|
-
marketSellMidPriceDeviationPercent: string;
|
|
63
52
|
masterAddress: string;
|
|
64
53
|
maxActiveCapitalUtilizationRatio: string;
|
|
65
|
-
midPriceTailDeviationRatio: string;
|
|
66
|
-
minHeadToMidDeviationRatio: string;
|
|
67
54
|
minHeadToTailDeviationRatio: string;
|
|
68
55
|
minTradeVolatilitySampleSize: string;
|
|
56
|
+
oracleType: string;
|
|
69
57
|
orderDensity: string;
|
|
58
|
+
owner: string;
|
|
70
59
|
reservationPriceSensitivityRatio: string;
|
|
71
60
|
reservationSpreadSensitivityRatio: string;
|
|
61
|
+
signedMinHeadToFairPriceDeviationRatio: string;
|
|
62
|
+
signedMinHeadToTobDeviationRatio: string;
|
|
63
|
+
subaccountId: string;
|
|
72
64
|
targetBaseWeight: string;
|
|
73
65
|
tradeVolatilityGroupCount: string;
|
|
74
66
|
tradeVolatilityGroupSec: string;
|
|
75
|
-
cw20MarketingInfo: string;
|
|
76
|
-
feeRecipient: string;
|
|
77
|
-
owner: string;
|
|
78
|
-
subaccountId: string;
|
|
79
67
|
};
|
|
80
68
|
static vaultUserLpAllowanceResponseToVaultUserLpAllowance(response: WasmContractQueryResponse): {
|
|
81
69
|
allowance: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../../../../src/client/wasm/supernova/transformer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EAW1B,MAAM,SAAS,CAAA;AAQhB,qBAAa,yBAAyB;IACpC,MAAM,CAAC,oDAAoD,CACzD,QAAQ,EAAE,yBAAyB;;;;;;IAYrC,MAAM,CAAC,4CAA4C,CACjD,QAAQ,EAAE,yBAAyB;;;;;;IAYrC,MAAM,CAAC,kDAAkD,CACvD,QAAQ,EAAE,yBAAyB;;;;;IAWrC,MAAM,CAAC,kDAAkD,CACvD,QAAQ,EAAE,yBAAyB
|
|
1
|
+
{"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../../../../src/client/wasm/supernova/transformer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EAW1B,MAAM,SAAS,CAAA;AAQhB,qBAAa,yBAAyB;IACpC,MAAM,CAAC,oDAAoD,CACzD,QAAQ,EAAE,yBAAyB;;;;;;IAYrC,MAAM,CAAC,4CAA4C,CACjD,QAAQ,EAAE,yBAAyB;;;;;;IAYrC,MAAM,CAAC,kDAAkD,CACvD,QAAQ,EAAE,yBAAyB;;;;;IAWrC,MAAM,CAAC,kDAAkD,CACvD,QAAQ,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;IAgErC,MAAM,CAAC,oDAAoD,CACzD,QAAQ,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;;;;;IAsDrC,MAAM,CAAC,kDAAkD,CACvD,QAAQ,EAAE,yBAAyB;;;IAWrC,MAAM,CAAC,oCAAoC,CACzC,QAAQ,EAAE,yBAAyB;;;IAOrC,MAAM,CAAC,8CAA8C,CACnD,QAAQ,EAAE,yBAAyB;;;IAOrC,MAAM,CAAC,8CAA8C,CACnD,QAAQ,EAAE,yBAAyB;;;IAOrC,MAAM,CAAC,0CAA0C,CAC/C,QAAQ,EAAE,yBAAyB;;;;;CAWtC"}
|
|
@@ -36,67 +36,55 @@ class SupernovaQueryTransformer {
|
|
|
36
36
|
static vaultContractConfigResponseToDerivativeVaultConfig(response) {
|
|
37
37
|
const { config } = (0, utils_1.fromBase64)(response.data);
|
|
38
38
|
return {
|
|
39
|
-
|
|
40
|
-
cw20Label: formatToString(config.cw20_label),
|
|
41
|
-
defaultMidPriceVolatilityRatio: formatToString(config.default_mid_price_volatility_ratio),
|
|
42
|
-
emergencyOracleVolatilitySampleSize: formatToString(config.emergency_oracle_volatility_sample_size),
|
|
43
|
-
headChangeToleranceRatio: formatToString(config.head_change_tolerance_ratio),
|
|
44
|
-
headToTailDeviationRatio: formatToString(config.head_to_tail_deviation_ratio),
|
|
45
|
-
lastValidMarkPrice: formatToString(config.last_valid_mark_price),
|
|
46
|
-
leverage: formatToString(config.leverage),
|
|
47
|
-
leveragedActiveCapitalToMaxPositionExposureRatio: formatToString(config.leveraged_active_capital_to_max_position_exposure_ratio),
|
|
48
|
-
lpName: formatToString(config.lp_name),
|
|
49
|
-
lpSymbol: formatToString(config.lp_symbol),
|
|
50
|
-
lpTokenAddress: formatToString(config.lp_token_address),
|
|
39
|
+
owner: formatToString(config.owner),
|
|
51
40
|
marketId: formatToString(config.market_id),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
minProximityToLiquidation: formatToString(config.min_proximity_to_liquidation),
|
|
56
|
-
minTradeVolatilitySampleSize: formatToString(config.min_trade_volatility_sample_size),
|
|
57
|
-
minVolatilityRatio: formatToString(config.min_volatility_ratio),
|
|
58
|
-
oracleVolatilityGroupSec: formatToString(config.oracle_volatility_group_sec),
|
|
41
|
+
subaccountId: formatToString(config.subaccount_id),
|
|
42
|
+
feeRecipient: formatToString(config.fee_recipient),
|
|
43
|
+
leverage: formatToString(config.leverage),
|
|
59
44
|
orderDensity: formatToString(config.order_density),
|
|
60
|
-
postReductionPercOfMaxPosition: formatToString(config.post_reduction_perc_of_max_position),
|
|
61
45
|
reservationPriceSensitivityRatio: formatToString(config.reservation_price_sensitivity_ratio),
|
|
62
46
|
reservationSpreadSensitivityRatio: formatToString(config.reservation_spread_sensitivity_ratio),
|
|
47
|
+
maxActiveCapitalUtilizationRatio: formatToString(config.max_active_capital_utilization_ratio),
|
|
48
|
+
headChangeToleranceRatio: formatToString(config.head_change_tolerance_ratio),
|
|
49
|
+
headToTailDeviationRatio: formatToString(config.head_to_tail_deviation_ratio),
|
|
50
|
+
signedMinHeadToFairPriceDeviationRatio: formatToString(config.signed_min_head_to_fair_price_deviation_ratio),
|
|
51
|
+
signedMinHeadToTobDeviationRatio: formatToString(config.signed_min_head_to_tob_deviation_ratio),
|
|
52
|
+
minProximityToLiquidation: formatToString(config.min_proximity_to_liquidation),
|
|
53
|
+
postReductionPercOfMaxPosition: formatToString(config.post_reduction_perc_of_max_position),
|
|
54
|
+
oracleVolatilityGroupSec: formatToString(config.oracle_volatility_group_sec),
|
|
55
|
+
minOracleVolatilitySampleSize: formatToString(config.min_oracle_volatility_sample_size),
|
|
56
|
+
emergencyOracleVolatilitySampleSize: formatToString(config.emergency_oracle_volatility_sample_size),
|
|
63
57
|
tradeVolatilityGroupSec: formatToString(config.trade_volatility_group_sec),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
minTradeVolatilitySampleSize: formatToString(config.min_trade_volatility_sample_size),
|
|
59
|
+
defaultMidPriceVolatilityRatio: formatToString(config.default_mid_price_volatility_ratio),
|
|
60
|
+
minVolatilityRatio: formatToString(config.min_volatility_ratio),
|
|
61
|
+
lastValidMarkPrice: formatToString(config.last_valid_mark_price),
|
|
62
|
+
masterAddress: formatToString(config.master_address),
|
|
68
63
|
};
|
|
69
64
|
}
|
|
70
65
|
static vaultContractConfigResponseToSpotVaultContractConfig(response) {
|
|
71
66
|
const { config } = (0, utils_1.fromBase64)(response.data);
|
|
72
67
|
return {
|
|
73
|
-
cw20CodeId: formatToString(config.cw20_code_id),
|
|
74
|
-
cw20Label: formatToString(config.cw20_label),
|
|
75
68
|
defaultMidPriceVolatilityRatio: formatToString(config.default_mid_price_volatility_ratio),
|
|
76
|
-
|
|
69
|
+
fairPriceTailDeviationRatio: formatToString(config.fair_price_tail_deviation_ratio),
|
|
70
|
+
feeRecipient: formatToString(config.fee_recipient),
|
|
77
71
|
headChangeToleranceRatio: formatToString(config.head_change_tolerance_ratio),
|
|
78
|
-
lpName: formatToString(config.lp_name),
|
|
79
|
-
lpSymbol: formatToString(config.lp_symbol),
|
|
80
|
-
lpTokenAddress: formatToString(config.lp_token_address),
|
|
81
72
|
marketId: formatToString(config.market_id),
|
|
82
|
-
marketBuyMidPriceDeviationPercent: formatToString(config.market_buy_mid_price_deviation_percent),
|
|
83
|
-
marketSellMidPriceDeviationPercent: formatToString(config.market_sell_mid_price_deviation_percent),
|
|
84
73
|
masterAddress: formatToString(config.master_address),
|
|
85
74
|
maxActiveCapitalUtilizationRatio: formatToString(config.max_active_capital_utilization_ratio),
|
|
86
|
-
midPriceTailDeviationRatio: formatToString(config.mid_price_tail_deviation_ratio),
|
|
87
|
-
minHeadToMidDeviationRatio: formatToString(config.min_head_to_mid_deviation_ratio),
|
|
88
75
|
minHeadToTailDeviationRatio: formatToString(config.min_head_to_tail_deviation_ratio),
|
|
89
76
|
minTradeVolatilitySampleSize: formatToString(config.min_trade_volatility_sample_size),
|
|
77
|
+
oracleType: formatToString(config.oracle_type),
|
|
90
78
|
orderDensity: formatToString(config.order_density),
|
|
79
|
+
owner: formatToString(config.owner),
|
|
91
80
|
reservationPriceSensitivityRatio: formatToString(config.reservation_price_sensitivity_ratio),
|
|
92
81
|
reservationSpreadSensitivityRatio: formatToString(config.reservation_spread_sensitivity_ratio),
|
|
82
|
+
signedMinHeadToFairPriceDeviationRatio: formatToString(config.signed_min_head_to_fair_price_deviation_ratio),
|
|
83
|
+
signedMinHeadToTobDeviationRatio: formatToString(config.signed_min_head_to_tob_deviation_ratio),
|
|
84
|
+
subaccountId: formatToString(config.subaccount_id),
|
|
93
85
|
targetBaseWeight: formatToString(config.target_base_weight),
|
|
94
86
|
tradeVolatilityGroupCount: formatToString(config.trade_volatility_group_count),
|
|
95
87
|
tradeVolatilityGroupSec: formatToString(config.trade_volatility_group_sec),
|
|
96
|
-
cw20MarketingInfo: formatToString(),
|
|
97
|
-
feeRecipient: formatToString(config.fee_recipient),
|
|
98
|
-
owner: formatToString(config.owner),
|
|
99
|
-
subaccountId: formatToString(config.subaccount_id),
|
|
100
88
|
};
|
|
101
89
|
}
|
|
102
90
|
static vaultUserLpAllowanceResponseToVaultUserLpAllowance(response) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformer.js","sourceRoot":"","sources":["../../../../src/client/wasm/supernova/transformer.ts"],"names":[],"mappings":";;;AAAA,0CAA2C;AAe3C;;GAEG;AAEH,MAAM,cAAc,GAAG,CAAC,KAAuB,EAAE,EAAE,CACjD,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;AAC/B,MAAa,yBAAyB;IACpC,MAAM,CAAC,oDAAoD,CACzD,QAAmC;QAEnC,MAAM,IAAI,GAAG,IAAA,kBAAU,EAAC,QAAQ,CAAC,IAAI,CAAuC,CAAA;Q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
|
|
@@ -17,66 +17,54 @@ export interface QueryMastContractConfigResponse {
|
|
|
17
17
|
}
|
|
18
18
|
export interface QueryVaultContractDerivativeConfigResponse {
|
|
19
19
|
config: {
|
|
20
|
-
|
|
21
|
-
cw20_label: string;
|
|
22
|
-
default_mid_price_volatility_ratio: string;
|
|
23
|
-
emergency_oracle_volatility_sample_size: string;
|
|
24
|
-
head_change_tolerance_ratio: string;
|
|
25
|
-
head_to_tail_deviation_ratio: string;
|
|
26
|
-
last_valid_mark_price: string;
|
|
27
|
-
leverage: string;
|
|
28
|
-
leveraged_active_capital_to_max_position_exposure_ratio: string;
|
|
29
|
-
lp_name: string;
|
|
30
|
-
lp_symbol: string;
|
|
31
|
-
lp_token_address: string;
|
|
20
|
+
owner: string;
|
|
32
21
|
market_id: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
min_proximity_to_liquidation: string;
|
|
37
|
-
min_trade_volatility_sample_size: string;
|
|
38
|
-
min_volatility_ratio: string;
|
|
39
|
-
oracle_volatility_group_sec: string;
|
|
22
|
+
subaccount_id: string;
|
|
23
|
+
fee_recipient: string;
|
|
24
|
+
leverage: string;
|
|
40
25
|
order_density: string;
|
|
41
|
-
post_reduction_perc_of_max_position: string;
|
|
42
26
|
reservation_price_sensitivity_ratio: string;
|
|
43
27
|
reservation_spread_sensitivity_ratio: string;
|
|
28
|
+
max_active_capital_utilization_ratio: string;
|
|
29
|
+
head_change_tolerance_ratio: string;
|
|
30
|
+
head_to_tail_deviation_ratio: string;
|
|
31
|
+
signed_min_head_to_fair_price_deviation_ratio: string;
|
|
32
|
+
signed_min_head_to_tob_deviation_ratio: string;
|
|
33
|
+
min_proximity_to_liquidation: string;
|
|
34
|
+
post_reduction_perc_of_max_position: string;
|
|
35
|
+
oracle_volatility_group_sec: string;
|
|
36
|
+
min_oracle_volatility_sample_size: string;
|
|
37
|
+
emergency_oracle_volatility_sample_size: string;
|
|
44
38
|
trade_volatility_group_sec: string;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
min_trade_volatility_sample_size: string;
|
|
40
|
+
default_mid_price_volatility_ratio: string;
|
|
41
|
+
min_volatility_ratio: string;
|
|
42
|
+
last_valid_mark_price: string;
|
|
43
|
+
master_address: string;
|
|
49
44
|
};
|
|
50
45
|
}
|
|
51
46
|
export interface QueryVaultContractSpotConfigResponse {
|
|
52
47
|
config: {
|
|
53
|
-
cw20_code_id: string;
|
|
54
|
-
cw20_label: string;
|
|
55
48
|
default_mid_price_volatility_ratio: string;
|
|
56
|
-
|
|
49
|
+
fair_price_tail_deviation_ratio: string;
|
|
50
|
+
fee_recipient: string;
|
|
57
51
|
head_change_tolerance_ratio: string;
|
|
58
|
-
lp_name: string;
|
|
59
|
-
lp_symbol: string;
|
|
60
|
-
lp_token_address: string;
|
|
61
52
|
market_id: string;
|
|
62
|
-
market_buy_mid_price_deviation_percent: string;
|
|
63
|
-
market_sell_mid_price_deviation_percent: string;
|
|
64
53
|
master_address: string;
|
|
65
54
|
max_active_capital_utilization_ratio: string;
|
|
66
|
-
mid_price_tail_deviation_ratio: string;
|
|
67
|
-
min_head_to_mid_deviation_ratio: string;
|
|
68
55
|
min_head_to_tail_deviation_ratio: string;
|
|
69
56
|
min_trade_volatility_sample_size: string;
|
|
57
|
+
oracle_type: string;
|
|
70
58
|
order_density: string;
|
|
59
|
+
owner: string;
|
|
71
60
|
reservation_price_sensitivity_ratio: string;
|
|
72
61
|
reservation_spread_sensitivity_ratio: string;
|
|
62
|
+
signed_min_head_to_fair_price_deviation_ratio: string;
|
|
63
|
+
signed_min_head_to_tob_deviation_ratio: string;
|
|
73
64
|
subaccount_id: string;
|
|
74
65
|
target_base_weight: string;
|
|
75
66
|
trade_volatility_group_count: string;
|
|
76
67
|
trade_volatility_group_sec: string;
|
|
77
|
-
fee_recipient: string;
|
|
78
|
-
owner: string;
|
|
79
|
-
cw20_marketing_info?: any;
|
|
80
68
|
};
|
|
81
69
|
}
|
|
82
70
|
export interface QueryVaultUserLpContractAllowanceResponse {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/client/wasm/supernova/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC9C,qBAAqB,EAAE,MAAM,CAAA;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,0CAA0C;IACzD,MAAM,EAAE;QACN,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/client/wasm/supernova/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC9C,qBAAqB,EAAE,MAAM,CAAA;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,0CAA0C;IACzD,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE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C5C,6CAA6C,EAAE,MAAM,CAAA;QACrD,sCAAsC,EAAE,MAAM,CAAA;QAC9C,aAAa,EAAE,MAAM,CAAA;QACrB,kBAAkB,EAAE,MAAM,CAAA;QAC1B,4BAA4B,EAAE,MAAM,CAAA;QACpC,0BAA0B,EAAE,MAAM,CAAA;KACnC,CAAA;CACF;AAED,MAAM,WAAW,yCAAyC;IACxD,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE;QACP,KAAK,EAAE,EAAE,CAAA;KACV,CAAA;CACF;AAED,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC9C,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,4BAA4B;IAC3C,iBAAiB,EAAE;QACjB,oBAAoB,EAAE,MAAM,CAAA;QAC5B,KAAK,EAAE;YACL,IAAI,CAAC,EAAE;gBACL,OAAO,EAAE,MAAM,CAAA;aAChB,CAAA;YACD,UAAU,CAAC,EAAE;gBACX,OAAO,EAAE,MAAM,CAAA;aAChB,CAAA;SACF,CAAA;KACF,EAAE,CAAA;CACJ;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAA;CACb"}
|
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.0.
|
|
4
|
+
"version": "1.0.218",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Bojan Angjelkoski",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"shx": "^0.3.2",
|
|
67
67
|
"snakecase-keys": "^5.4.1"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "40fbb112e47c9564dcd813183089aacf31fc5c07",
|
|
70
70
|
"typedoc": {
|
|
71
71
|
"entryPoint": "./src/index.ts",
|
|
72
72
|
"readmeFile": "./README.md",
|