Skip to content

Commit 07a2d52

Browse files
authored
Merge branch 'dev' into cp-395/add_support_for_v1_16
2 parents 79e8f9b + 7d8fb1f commit 07a2d52

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

chain/exchange/types/exchange.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ type MatchedMarketDirection struct {
4747
SellsExists bool
4848
}
4949

50+
type TriggeredOrdersInMarket struct {
51+
Market *DerivativeMarket
52+
MarkPrice math.LegacyDec
53+
MarketOrders []*DerivativeMarketOrder
54+
LimitOrders []*DerivativeLimitOrder
55+
HasLimitBuyOrders bool
56+
HasLimitSellOrders bool
57+
}
58+
5059
type TradingRewardAccountPoints struct {
5160
Account sdk.AccAddress
5261
Points math.LegacyDec

chain/exchange/types/market.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ import (
1313

1414
var BinaryOptionsMarketRefundFlagPrice = math.LegacyNewDec(-1)
1515

16+
type DerivativeMarketInfo struct {
17+
Market *DerivativeMarket
18+
MarkPrice math.LegacyDec
19+
Funding *PerpetualMarketFunding
20+
}
21+
1622
func NewSpotMarketID(baseDenom, quoteDenom string) common.Hash {
1723
basePeggyDenom, err := peggytypes.NewPeggyDenomFromString(baseDenom)
1824
if err == nil {

proto/injective/txfees/v1beta1/txfees.proto

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@ message Params {
1212
option (amino.name) = "txfees/Params";
1313
option (gogoproto.equal) = true;
1414

15-
uint64 max_gas_wanted_per_tx = 1 [(gogoproto.moretags) = "yaml:\"max_gas_wanted_per_tx\""];
16-
uint64 high_gas_tx_threshold = 2 [(gogoproto.moretags) = "yaml:\"high_gas_tx_threshold\""];
15+
uint64 max_gas_wanted_per_tx = 1
16+
[ (gogoproto.moretags) = "yaml:\"max_gas_wanted_per_tx\"" ];
17+
uint64 high_gas_tx_threshold = 2
18+
[ (gogoproto.moretags) = "yaml:\"high_gas_tx_threshold\"" ];
1719
string min_gas_price_for_high_gas_tx = 3 [
1820
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
1921
(gogoproto.nullable) = false,
2022
(gogoproto.moretags) = "yaml:\"min_gas_price_for_high_gas_tx\""
2123
];
22-
bool mempool1559_enabled = 4 [(gogoproto.moretags) = "yaml:\"mempool1559_enabled\""];
24+
bool mempool1559_enabled = 4
25+
[ (gogoproto.moretags) = "yaml:\"mempool1559_enabled\"" ];
2326
string min_gas_price = 5 [
2427
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
2528
(gogoproto.nullable) = false,
@@ -35,7 +38,7 @@ message Params {
3538
(gogoproto.nullable) = false,
3639
(gogoproto.moretags) = "yaml:\"max_base_fee_multiplier\""
3740
];
38-
int64 reset_interval = 8 [(gogoproto.moretags) = "yaml:\"reset_interval\""];
41+
int64 reset_interval = 8 [ (gogoproto.moretags) = "yaml:\"reset_interval\"" ];
3942
string max_block_change_rate = 9 [
4043
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
4144
(gogoproto.nullable) = false,

0 commit comments

Comments
 (0)