github.com/InjectiveLabs/sdk-go@v1.53.0/proto/injective/insurance/v1beta1/events.proto (about) 1 syntax = "proto3"; 2 package injective.insurance.v1beta1; 3 4 import "gogoproto/gogo.proto"; 5 import "cosmos/base/v1beta1/coin.proto"; 6 import "injective/insurance/v1beta1/insurance.proto"; 7 8 option go_package = "github.com/InjectiveLabs/injective-core/injective-chain/modules/insurance/types"; 9 10 message EventInsuranceFundUpdate { InsuranceFund fund = 1; } 11 12 message EventRequestRedemption { RedemptionSchedule schedule = 1; } 13 14 message EventWithdrawRedemption { 15 // redemption schedule triggered withdraw 16 RedemptionSchedule schedule = 1; 17 // redeem coin amount in base_currency 18 cosmos.base.v1beta1.Coin redeem_coin = 2 [ (gogoproto.nullable) = false ]; 19 } 20 21 message EventUnderwrite { 22 // address of the underwriter 23 string underwriter = 1; 24 // marketId of insurance fund for the redemption 25 string marketId = 2; 26 // deposit coin amount 27 cosmos.base.v1beta1.Coin deposit = 3 [ (gogoproto.nullable) = false ]; 28 // share coin amount 29 cosmos.base.v1beta1.Coin shares = 4 [ (gogoproto.nullable) = false ]; 30 } 31 32 message EventInsuranceWithdraw { 33 string market_id = 1; 34 string market_ticker = 2; 35 cosmos.base.v1beta1.Coin withdrawal = 3 [ (gogoproto.nullable) = false ]; 36 }