# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: nibiru/perp/v2/event.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2
from nibiru_proto.nibiru.perp.v2 import state_pb2 as nibiru_dot_perp_dot_v2_dot_state__pb2
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1anibiru/perp/v2/event.proto\x12\x0enibiru.perp.v2\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1anibiru/perp/v2/state.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf0\x06\n\x14PositionChangedEvent\x12\x45\n\x0e\x66inal_position\x18\x01 \x01(\x0b\x32\x18.nibiru.perp.v2.PositionB\x04\xc8\xde\x1f\x00R\rfinalPosition\x12[\n\x11position_notional\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x10positionNotional\x12\x62\n\x0ftransaction_fee\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x1e\xc8\xde\x1f\x00\xf2\xde\x1f\x16yaml:\"transaction_fee\"R\x0etransactionFee\x12Q\n\x0crealized_pnl\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0brealizedPnl\x12:\n\x08\x62\x61\x64_debt\x18\x05 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x07\x62\x61\x64\x44\x65\x62t\x12W\n\x0f\x66unding_payment\x18\x06 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0e\x66undingPayment\x12!\n\x0c\x62lock_height\x18\x07 \x01(\x03R\x0b\x62lockHeight\x12T\n\x0emargin_to_user\x18\x08 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.IntR\x0cmarginToUser\x12\x39\n\rchange_reason\x18\t \x01(\tB\x14\xc8\xde\x1f\x00\xda\xde\x1f\x0c\x43hangeReasonR\x0c\x63hangeReason\x12U\n\x0e\x65xchanged_size\x18\n \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\rexchangedSize\x12]\n\x12\x65xchanged_notional\x18\x0b \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x11\x65xchangedNotional\"\x87\x03\n\x17PositionLiquidatedEvent\x12`\n\x16position_changed_event\x18\x01 \x01(\x0b\x32$.nibiru.perp.v2.PositionChangedEventB\x04\xc8\xde\x1f\x00R\x14positionChangedEvent\x12-\n\x12liquidator_address\x18\x02 \x01(\tR\x11liquidatorAddress\x12g\n\x11\x66\x65\x65_to_liquidator\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB \xc8\xde\x1f\x00\xf2\xde\x1f\x18yaml:\"fee_to_liquidator\"R\x0f\x66\x65\x65ToLiquidator\x12r\n\x15\x66\x65\x65_to_ecosystem_fund\x18\x04 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB$\xc8\xde\x1f\x00\xf2\xde\x1f\x1cyaml:\"fee_to_ecosystem_fund\"R\x12\x66\x65\x65ToEcosystemFund\"\x97\x02\n\x14PositionSettledEvent\x12M\n\x04pair\x18\x01 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12%\n\x0etrader_address\x18\x02 \x01(\tR\rtraderAddress\x12\x88\x01\n\rsettled_coins\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBH\xc8\xde\x1f\x00\xf2\xde\x1f\x14yaml:\"settled_coins\"\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x0csettledCoins\"\xe5\x03\n\x17\x46undingRateChangedEvent\x12M\n\x04pair\x18\x01 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12V\n\x0fmark_price_twap\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\rmarkPriceTwap\x12X\n\x10index_price_twap\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0eindexPriceTwap\x12Y\n\x10premium_fraction\x18\x05 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0fpremiumFraction\x12n\n\x1b\x63umulative_premium_fraction\x18\x06 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x19\x63umulativePremiumFraction\"\xe9\x02\n\x16LiquidationFailedEvent\x12M\n\x04pair\x18\x01 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12\x16\n\x06trader\x18\x02 \x01(\tR\x06trader\x12\x1e\n\nliquidator\x18\x03 \x01(\tR\nliquidator\x12V\n\x06reason\x18\x04 \x01(\x0e\x32>.nibiru.perp.v2.LiquidationFailedEvent.LiquidationFailedReasonR\x06reason\"p\n\x17LiquidationFailedReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x14\n\x10POSITION_HEALTHY\x10\x01\x12\x14\n\x10NONEXISTENT_PAIR\x10\x02\x12\x18\n\x14NONEXISTENT_POSITION\x10\x03\"\xfb\x01\n\x0f\x41mmUpdatedEvent\x12\x36\n\tfinal_amm\x18\x01 \x01(\x0b\x32\x13.nibiru.perp.v2.AMMB\x04\xc8\xde\x1f\x00R\x08\x66inalAmm\x12V\n\x0fmark_price_twap\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\rmarkPriceTwap\x12X\n\x10index_price_twap\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0eindexPriceTwap\"U\n\x12MarketUpdatedEvent\x12?\n\x0c\x66inal_market\x18\x01 \x01(\x0b\x32\x16.nibiru.perp.v2.MarketB\x04\xc8\xde\x1f\x00R\x0b\x66inalMarketB/Z-github.com/NibiruChain/nibiru/x/perp/v2/typesb\x06proto3')

_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.perp.v2.event_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  DESCRIPTOR._serialized_options = b'Z-github.com/NibiruChain/nibiru/x/perp/v2/types'
  _POSITIONCHANGEDEVENT.fields_by_name['final_position']._options = None
  _POSITIONCHANGEDEVENT.fields_by_name['final_position']._serialized_options = b'\310\336\037\000'
  _POSITIONCHANGEDEVENT.fields_by_name['position_notional']._options = None
  _POSITIONCHANGEDEVENT.fields_by_name['position_notional']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _POSITIONCHANGEDEVENT.fields_by_name['transaction_fee']._options = None
  _POSITIONCHANGEDEVENT.fields_by_name['transaction_fee']._serialized_options = b'\310\336\037\000\362\336\037\026yaml:\"transaction_fee\"'
  _POSITIONCHANGEDEVENT.fields_by_name['realized_pnl']._options = None
  _POSITIONCHANGEDEVENT.fields_by_name['realized_pnl']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _POSITIONCHANGEDEVENT.fields_by_name['bad_debt']._options = None
  _POSITIONCHANGEDEVENT.fields_by_name['bad_debt']._serialized_options = b'\310\336\037\000'
  _POSITIONCHANGEDEVENT.fields_by_name['funding_payment']._options = None
  _POSITIONCHANGEDEVENT.fields_by_name['funding_payment']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _POSITIONCHANGEDEVENT.fields_by_name['margin_to_user']._options = None
  _POSITIONCHANGEDEVENT.fields_by_name['margin_to_user']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int'
  _POSITIONCHANGEDEVENT.fields_by_name['change_reason']._options = None
  _POSITIONCHANGEDEVENT.fields_by_name['change_reason']._serialized_options = b'\310\336\037\000\332\336\037\014ChangeReason'
  _POSITIONCHANGEDEVENT.fields_by_name['exchanged_size']._options = None
  _POSITIONCHANGEDEVENT.fields_by_name['exchanged_size']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _POSITIONCHANGEDEVENT.fields_by_name['exchanged_notional']._options = None
  _POSITIONCHANGEDEVENT.fields_by_name['exchanged_notional']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _POSITIONLIQUIDATEDEVENT.fields_by_name['position_changed_event']._options = None
  _POSITIONLIQUIDATEDEVENT.fields_by_name['position_changed_event']._serialized_options = b'\310\336\037\000'
  _POSITIONLIQUIDATEDEVENT.fields_by_name['fee_to_liquidator']._options = None
  _POSITIONLIQUIDATEDEVENT.fields_by_name['fee_to_liquidator']._serialized_options = b'\310\336\037\000\362\336\037\030yaml:\"fee_to_liquidator\"'
  _POSITIONLIQUIDATEDEVENT.fields_by_name['fee_to_ecosystem_fund']._options = None
  _POSITIONLIQUIDATEDEVENT.fields_by_name['fee_to_ecosystem_fund']._serialized_options = b'\310\336\037\000\362\336\037\034yaml:\"fee_to_ecosystem_fund\"'
  _POSITIONSETTLEDEVENT.fields_by_name['pair']._options = None
  _POSITIONSETTLEDEVENT.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair'
  _POSITIONSETTLEDEVENT.fields_by_name['settled_coins']._options = None
  _POSITIONSETTLEDEVENT.fields_by_name['settled_coins']._serialized_options = b'\310\336\037\000\362\336\037\024yaml:\"settled_coins\"\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins'
  _FUNDINGRATECHANGEDEVENT.fields_by_name['pair']._options = None
  _FUNDINGRATECHANGEDEVENT.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair'
  _FUNDINGRATECHANGEDEVENT.fields_by_name['mark_price_twap']._options = None
  _FUNDINGRATECHANGEDEVENT.fields_by_name['mark_price_twap']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _FUNDINGRATECHANGEDEVENT.fields_by_name['index_price_twap']._options = None
  _FUNDINGRATECHANGEDEVENT.fields_by_name['index_price_twap']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _FUNDINGRATECHANGEDEVENT.fields_by_name['premium_fraction']._options = None
  _FUNDINGRATECHANGEDEVENT.fields_by_name['premium_fraction']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _FUNDINGRATECHANGEDEVENT.fields_by_name['cumulative_premium_fraction']._options = None
  _FUNDINGRATECHANGEDEVENT.fields_by_name['cumulative_premium_fraction']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _LIQUIDATIONFAILEDEVENT.fields_by_name['pair']._options = None
  _LIQUIDATIONFAILEDEVENT.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair'
  _AMMUPDATEDEVENT.fields_by_name['final_amm']._options = None
  _AMMUPDATEDEVENT.fields_by_name['final_amm']._serialized_options = b'\310\336\037\000'
  _AMMUPDATEDEVENT.fields_by_name['mark_price_twap']._options = None
  _AMMUPDATEDEVENT.fields_by_name['mark_price_twap']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _AMMUPDATEDEVENT.fields_by_name['index_price_twap']._options = None
  _AMMUPDATEDEVENT.fields_by_name['index_price_twap']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _MARKETUPDATEDEVENT.fields_by_name['final_market']._options = None
  _MARKETUPDATEDEVENT.fields_by_name['final_market']._serialized_options = b'\310\336\037\000'
  _POSITIONCHANGEDEVENT._serialized_start=192
  _POSITIONCHANGEDEVENT._serialized_end=1072
  _POSITIONLIQUIDATEDEVENT._serialized_start=1075
  _POSITIONLIQUIDATEDEVENT._serialized_end=1466
  _POSITIONSETTLEDEVENT._serialized_start=1469
  _POSITIONSETTLEDEVENT._serialized_end=1748
  _FUNDINGRATECHANGEDEVENT._serialized_start=1751
  _FUNDINGRATECHANGEDEVENT._serialized_end=2236
  _LIQUIDATIONFAILEDEVENT._serialized_start=2239
  _LIQUIDATIONFAILEDEVENT._serialized_end=2600
  _LIQUIDATIONFAILEDEVENT_LIQUIDATIONFAILEDREASON._serialized_start=2488
  _LIQUIDATIONFAILEDEVENT_LIQUIDATIONFAILEDREASON._serialized_end=2600
  _AMMUPDATEDEVENT._serialized_start=2603
  _AMMUPDATEDEVENT._serialized_end=2854
  _MARKETUPDATEDEVENT._serialized_start=2856
  _MARKETUPDATEDEVENT._serialized_end=2941
# @@protoc_insertion_point(module_scope)
